@ibiz-template/runtime 0.7.41-alpha.31 → 0.7.41-alpha.33
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 +444 -209
- package/dist/index.system.min.js +1 -1
- package/out/app-hub.d.ts +31 -1
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +44 -0
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +1 -0
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/custom-dashboard.controller.js +10 -0
- package/out/controller/control/dashboard/dashboard.controller.js +4 -4
- package/out/controller/control/dashboard/dashboard.util.d.ts +6 -0
- package/out/controller/control/dashboard/dashboard.util.d.ts.map +1 -1
- package/out/controller/control/dashboard/dashboard.util.js +24 -0
- package/out/controller/control/md-ctrl/md-ctrl.controller.d.ts +32 -0
- package/out/controller/control/md-ctrl/md-ctrl.controller.d.ts.map +1 -1
- package/out/controller/control/md-ctrl/md-ctrl.controller.js +76 -2
- package/out/controller/control/report-panel/generator/bi-converter/base/grid-converter-base.d.ts +8 -0
- package/out/controller/control/report-panel/generator/bi-converter/base/grid-converter-base.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/bi-converter/base/grid-converter-base.js +17 -0
- package/out/controller/control/report-panel/generator/bi-converter/cross-table-converter.d.ts +1 -0
- package/out/controller/control/report-panel/generator/bi-converter/cross-table-converter.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/bi-converter/cross-table-converter.js +9 -3
- package/out/controller/control/report-panel/generator/bi-converter/gauge-converter.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/bi-converter/gauge-converter.js +0 -7
- package/out/de-logic/de-logic-node/debug-param-node/debug-param-node.d.ts +14 -0
- package/out/de-logic/de-logic-node/debug-param-node/debug-param-node.d.ts.map +1 -0
- package/out/de-logic/de-logic-node/debug-param-node/debug-param-node.js +18 -0
- package/out/de-logic/de-logic-node/index.d.ts +1 -0
- package/out/de-logic/de-logic-node/index.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/index.js +1 -0
- package/out/de-logic/de-logic.d.ts.map +1 -1
- package/out/de-logic/de-logic.js +4 -1
- package/out/interface/api/common/global-config/i-api-global-app-menu-config.d.ts +6 -2
- package/out/interface/api/common/global-config/i-api-global-app-menu-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-codelist-config.d.ts +2 -0
- package/out/interface/api/common/global-config/i-api-global-codelist-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +16 -5
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-config.d.ts +11 -3
- package/out/interface/api/common/global-config/i-api-global-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-flow-drtab-config.d.ts +3 -0
- package/out/interface/api/common/global-config/i-api-global-flow-drtab-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-form-config.d.ts +11 -3
- package/out/interface/api/common/global-config/i-api-global-form-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-grid-config.d.ts +5 -0
- package/out/interface/api/common/global-config/i-api-global-grid-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-img-compress-config.d.ts +3 -0
- package/out/interface/api/common/global-config/i-api-global-img-compress-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-kanban-config.d.ts +2 -0
- package/out/interface/api/common/global-config/i-api-global-kanban-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-mob-config.d.ts +14 -1
- package/out/interface/api/common/global-config/i-api-global-mob-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-picker-editor-config.d.ts +1 -0
- package/out/interface/api/common/global-config/i-api-global-picker-editor-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts +3 -1
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-tree-config.d.ts +1 -0
- package/out/interface/api/common/global-config/i-api-global-tree-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-upload-editor-config.d.ts +1 -0
- package/out/interface/api/common/global-config/i-api-global-upload-editor-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-view-config.d.ts +10 -0
- package/out/interface/api/common/global-config/i-api-global-view-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-water-mark-config.d.ts +39 -4
- package/out/interface/api/common/global-config/i-api-global-water-mark-config.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-mob-md-ctrl.controller.d.ts +5 -4
- package/out/interface/api/controller/control/i-api-mob-md-ctrl.controller.d.ts.map +1 -1
- package/out/interface/api/controller/view/i-api-view.controller.d.ts +2 -0
- package/out/interface/api/controller/view/i-api-view.controller.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-control.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-mob-md-ctrl.state.d.ts +15 -3
- package/out/interface/api/state/control/i-api-mob-md-ctrl.state.d.ts.map +1 -1
- package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts +19 -1
- package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts.map +1 -1
- package/out/interface/common/i-drawer-options/i-drawer-options.d.ts +6 -0
- package/out/interface/common/i-drawer-options/i-drawer-options.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-mob-md-ctrl.controller.d.ts +3 -3
- package/out/interface/controller/controller/control/i-mob-md-ctrl.controller.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-edit-form.event.d.ts +13 -0
- package/out/interface/controller/event/control/i-edit-form.event.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-mob-md-ctrl.event.d.ts +3 -3
- package/out/interface/controller/event/control/i-mob-md-ctrl.event.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-mob-md-ctrl.state.d.ts +3 -3
- package/out/interface/controller/state/control/i-mob-md-ctrl.state.d.ts.map +1 -1
- package/out/interface/provider/model-loader.provider.d.ts +8 -1
- package/out/interface/provider/model-loader.provider.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +1 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +1 -0
- package/out/locale/zh-CN/index.d.ts +1 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +1 -0
- package/out/service/service/code-list/code-list.service.d.ts +7 -0
- package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
- package/out/service/service/code-list/code-list.service.js +17 -1
- package/out/service/vo/control.vo.d.ts.map +1 -1
- package/out/service/vo/control.vo.js +4 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +3 -0
- package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.js +7 -3
- package/out/utils/theme-util/theme-util.d.ts +6 -0
- package/out/utils/theme-util/theme-util.d.ts.map +1 -1
- package/out/utils/theme-util/theme-util.js +8 -0
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -19475,7 +19475,8 @@ var GlobalConfig = class {
|
|
|
19475
19475
|
mobGetSignUrl: "",
|
|
19476
19476
|
mobGetSignMethod: "post",
|
|
19477
19477
|
mobWeChatDebug: false,
|
|
19478
|
-
showUploadLoading: false
|
|
19478
|
+
showUploadLoading: false,
|
|
19479
|
+
mobShowBackTop: false
|
|
19479
19480
|
};
|
|
19480
19481
|
/**
|
|
19481
19482
|
* @description 图片压缩配置
|
|
@@ -24768,8 +24769,9 @@ var ControlVO = class _ControlVO {
|
|
|
24768
24769
|
}
|
|
24769
24770
|
if (Object.prototype.hasOwnProperty.call(this.$origin, "srfuf")) {
|
|
24770
24771
|
this.$srfuf = this.$origin.srfuf;
|
|
24772
|
+
} else {
|
|
24773
|
+
this.$srfuf = this.srfkey === this.tempsrfkey ? 1 /* UPDATE */ : 0 /* CREATE */;
|
|
24771
24774
|
}
|
|
24772
|
-
this.$srfuf = this.srfkey === this.tempsrfkey ? 1 /* UPDATE */ : 0 /* CREATE */;
|
|
24773
24775
|
Object.defineProperty(this, "srfuf", {
|
|
24774
24776
|
get() {
|
|
24775
24777
|
return this.$srfuf;
|
|
@@ -27681,6 +27683,13 @@ var CodeListService = class {
|
|
|
27681
27683
|
* @type {Map<string, CodeListItem[]>}
|
|
27682
27684
|
*/
|
|
27683
27685
|
this.cache = /* @__PURE__ */ new Map();
|
|
27686
|
+
/**
|
|
27687
|
+
* 已合并子应用代码表标识缓存
|
|
27688
|
+
*
|
|
27689
|
+
* @protected
|
|
27690
|
+
* @type {Map<string, DynamicCodeListCache>}
|
|
27691
|
+
*/
|
|
27692
|
+
this.mergedSubCodeListCache = [];
|
|
27684
27693
|
}
|
|
27685
27694
|
/**
|
|
27686
27695
|
* 获取静态代码表
|
|
@@ -27727,7 +27736,12 @@ var CodeListService = class {
|
|
|
27727
27736
|
* @returns {*}
|
|
27728
27737
|
*/
|
|
27729
27738
|
getCodeList(tag) {
|
|
27730
|
-
|
|
27739
|
+
const codelist = this.allCodeLists.get(tag);
|
|
27740
|
+
if (this.appModel.appId === ibiz.env.appId && codelist && !this.mergedSubCodeListCache.includes(codelist.codeListTag)) {
|
|
27741
|
+
ibiz.hub.mergeSubAppCodeList(codelist);
|
|
27742
|
+
this.mergedSubCodeListCache.push(codelist.codeListTag);
|
|
27743
|
+
}
|
|
27744
|
+
return codelist;
|
|
27731
27745
|
}
|
|
27732
27746
|
/**
|
|
27733
27747
|
* 格式化代码表
|
|
@@ -30297,7 +30311,7 @@ import {
|
|
|
30297
30311
|
HttpError as HttpError6,
|
|
30298
30312
|
HttpResponse as HttpResponse3,
|
|
30299
30313
|
RuntimeError as RuntimeError21,
|
|
30300
|
-
RuntimeModelError as
|
|
30314
|
+
RuntimeModelError as RuntimeModelError21
|
|
30301
30315
|
} from "@ibiz-template/core";
|
|
30302
30316
|
import { isArray as isArray6, isNil as isNil16 } from "lodash-es";
|
|
30303
30317
|
import { ascSort } from "qx-util";
|
|
@@ -30599,7 +30613,7 @@ import { isArray as isArray5 } from "lodash-es";
|
|
|
30599
30613
|
import { clone as clone15 } from "ramda";
|
|
30600
30614
|
|
|
30601
30615
|
// src/de-logic/de-logic.ts
|
|
30602
|
-
import { ModelError as ModelError13, RuntimeModelError as
|
|
30616
|
+
import { ModelError as ModelError13, RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
|
|
30603
30617
|
|
|
30604
30618
|
// src/de-logic/de-logic-context.ts
|
|
30605
30619
|
import { isArray as isArray4 } from "lodash-es";
|
|
@@ -31552,6 +31566,25 @@ var AppendParamNode = class extends DELogicNode {
|
|
|
31552
31566
|
}
|
|
31553
31567
|
};
|
|
31554
31568
|
|
|
31569
|
+
// src/de-logic/de-logic-node/debug-param-node/debug-param-node.ts
|
|
31570
|
+
import { RuntimeModelError as RuntimeModelError19 } from "@ibiz-template/core";
|
|
31571
|
+
var DebugParamNode = class extends DELogicNode {
|
|
31572
|
+
async exec(ctx) {
|
|
31573
|
+
const { dstDELogicParamId, name: name2 } = this.model;
|
|
31574
|
+
if (!dstDELogicParamId) {
|
|
31575
|
+
throw new RuntimeModelError19(
|
|
31576
|
+
this.model,
|
|
31577
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
31578
|
+
);
|
|
31579
|
+
}
|
|
31580
|
+
const param = ctx.params[dstDELogicParamId];
|
|
31581
|
+
ibiz.log.info(
|
|
31582
|
+
ibiz.i18n.t("runtime.deLogic.deLogicNode.logicalNodeOperation", { name: name2 }),
|
|
31583
|
+
param
|
|
31584
|
+
);
|
|
31585
|
+
}
|
|
31586
|
+
};
|
|
31587
|
+
|
|
31555
31588
|
// src/de-logic/de-logic-node/throw-exception-node/throw-exception-node.ts
|
|
31556
31589
|
import { HttpError as HttpError4 } from "@ibiz-template/core";
|
|
31557
31590
|
var ThrowExceptionNode = class extends DELogicNode {
|
|
@@ -31725,7 +31758,7 @@ var DELogic = class {
|
|
|
31725
31758
|
var _a3, _b2;
|
|
31726
31759
|
if (model.customCode) {
|
|
31727
31760
|
if (!model.scriptCode) {
|
|
31728
|
-
throw new
|
|
31761
|
+
throw new RuntimeModelError20(
|
|
31729
31762
|
model,
|
|
31730
31763
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.noScriptCode")
|
|
31731
31764
|
);
|
|
@@ -31736,7 +31769,7 @@ var DELogic = class {
|
|
|
31736
31769
|
return;
|
|
31737
31770
|
}
|
|
31738
31771
|
if (!((_a3 = model.delogicNodes) == null ? void 0 : _a3.length)) {
|
|
31739
|
-
throw new
|
|
31772
|
+
throw new RuntimeModelError20(
|
|
31740
31773
|
model,
|
|
31741
31774
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.noConfigurationLogicNode")
|
|
31742
31775
|
);
|
|
@@ -31781,6 +31814,9 @@ var DELogic = class {
|
|
|
31781
31814
|
case "SORTPARAM":
|
|
31782
31815
|
logicNode = new SortParamNode(node);
|
|
31783
31816
|
break;
|
|
31817
|
+
case "DEBUGPARAM":
|
|
31818
|
+
logicNode = new DebugParamNode(node);
|
|
31819
|
+
break;
|
|
31784
31820
|
default:
|
|
31785
31821
|
throw new ModelError13(
|
|
31786
31822
|
node,
|
|
@@ -31843,7 +31879,7 @@ var DELogic = class {
|
|
|
31843
31879
|
const start = this.nodes.get(startDELogicNodeId);
|
|
31844
31880
|
await this.deepExec(start, ctx);
|
|
31845
31881
|
} else {
|
|
31846
|
-
throw new
|
|
31882
|
+
throw new RuntimeModelError20(
|
|
31847
31883
|
this.model,
|
|
31848
31884
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.noSetStartNode")
|
|
31849
31885
|
);
|
|
@@ -32021,7 +32057,7 @@ var DEActionMethod = class extends Method {
|
|
|
32021
32057
|
if (this.method.actionType === "DELOGIC") {
|
|
32022
32058
|
const deLogic = findDELogic(this.method.appDELogicId, this.entity);
|
|
32023
32059
|
if (!deLogic) {
|
|
32024
|
-
throw new
|
|
32060
|
+
throw new RuntimeModelError21(
|
|
32025
32061
|
this.method,
|
|
32026
32062
|
ibiz.i18n.t("runtime.service.lackEntityLogic")
|
|
32027
32063
|
);
|
|
@@ -32411,7 +32447,7 @@ var DEActionMethod = class extends Method {
|
|
|
32411
32447
|
configs = ascSort(configs, "removeOrder");
|
|
32412
32448
|
for (const config of configs) {
|
|
32413
32449
|
if (config.rstype !== "DER1N") {
|
|
32414
|
-
throw new
|
|
32450
|
+
throw new RuntimeModelError21(
|
|
32415
32451
|
config,
|
|
32416
32452
|
ibiz.i18n.t("runtime.service.deletionDeletion")
|
|
32417
32453
|
);
|
|
@@ -32689,7 +32725,7 @@ var DeActionDeMethodProvider = class {
|
|
|
32689
32725
|
import {
|
|
32690
32726
|
HttpResponse as HttpResponse4,
|
|
32691
32727
|
ModelError as ModelError14,
|
|
32692
|
-
RuntimeModelError as
|
|
32728
|
+
RuntimeModelError as RuntimeModelError22
|
|
32693
32729
|
} from "@ibiz-template/core";
|
|
32694
32730
|
import { isArray as isArray7 } from "lodash-es";
|
|
32695
32731
|
import { clone as clone17, isEmpty as isEmpty8, isNil as isNil17 } from "ramda";
|
|
@@ -32822,7 +32858,7 @@ var FetchMethod = class extends Method {
|
|
|
32822
32858
|
async fetchCodeListSet(context, params) {
|
|
32823
32859
|
const { appCodeListId } = this.method;
|
|
32824
32860
|
if (!appCodeListId) {
|
|
32825
|
-
throw new
|
|
32861
|
+
throw new RuntimeModelError22(
|
|
32826
32862
|
this.method,
|
|
32827
32863
|
ibiz.i18n.t("runtime.service.sourceCodeTable")
|
|
32828
32864
|
);
|
|
@@ -35980,7 +36016,7 @@ async function getEntitySchema(entityId, context, params = {}) {
|
|
|
35980
36016
|
}
|
|
35981
36017
|
|
|
35982
36018
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
35983
|
-
import { RuntimeError as RuntimeError29, RuntimeModelError as
|
|
36019
|
+
import { RuntimeError as RuntimeError29, RuntimeModelError as RuntimeModelError23 } from "@ibiz-template/core";
|
|
35984
36020
|
import { isNil as isNil23, mergeRight as mergeRight3 } from "ramda";
|
|
35985
36021
|
var VIEW_MSG_PREFIX = "VIEW_MSG";
|
|
35986
36022
|
var ViewMsgController = class _ViewMsgController {
|
|
@@ -36071,7 +36107,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
36071
36107
|
static async fetchDataSet(msgModel, context, params) {
|
|
36072
36108
|
const { appDataEntityId, appDEDataSetId } = msgModel;
|
|
36073
36109
|
if (!appDEDataSetId) {
|
|
36074
|
-
throw new
|
|
36110
|
+
throw new RuntimeModelError23(
|
|
36075
36111
|
msgModel,
|
|
36076
36112
|
ibiz.i18n.t("runtime.controller.utils.viewMsg.unconfigured")
|
|
36077
36113
|
);
|
|
@@ -36284,7 +36320,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
36284
36320
|
layoutPanel
|
|
36285
36321
|
} = msgModel;
|
|
36286
36322
|
if (!appDataEntityId) {
|
|
36287
|
-
throw new
|
|
36323
|
+
throw new RuntimeModelError23(
|
|
36288
36324
|
msgModel,
|
|
36289
36325
|
ibiz.i18n.t("runtime.controller.utils.viewMsg.unconfiguredEntities")
|
|
36290
36326
|
);
|
|
@@ -37667,7 +37703,7 @@ var EditorController = class {
|
|
|
37667
37703
|
};
|
|
37668
37704
|
|
|
37669
37705
|
// src/controller/common/editor/code-list-editor.controller.ts
|
|
37670
|
-
import { RuntimeModelError as
|
|
37706
|
+
import { RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
|
|
37671
37707
|
var CodeListEditorController = class extends EditorController {
|
|
37672
37708
|
constructor() {
|
|
37673
37709
|
super(...arguments);
|
|
@@ -37783,7 +37819,7 @@ var CodeListEditorController = class extends EditorController {
|
|
|
37783
37819
|
}
|
|
37784
37820
|
if (this.editorParams.enumOptions)
|
|
37785
37821
|
return this.editorParams.enumOptions;
|
|
37786
|
-
throw new
|
|
37822
|
+
throw new RuntimeModelError24(
|
|
37787
37823
|
this.model,
|
|
37788
37824
|
ibiz.i18n.t("runtime.controller.common.editor.editorNoConfigured", {
|
|
37789
37825
|
editorType: this.model.editorType
|
|
@@ -38338,7 +38374,7 @@ var ControlController = class extends BaseController {
|
|
|
38338
38374
|
import {
|
|
38339
38375
|
RuntimeError as RuntimeError32,
|
|
38340
38376
|
isElementSame,
|
|
38341
|
-
RuntimeModelError as
|
|
38377
|
+
RuntimeModelError as RuntimeModelError25
|
|
38342
38378
|
} from "@ibiz-template/core";
|
|
38343
38379
|
import { isNil as isNil26 } from "ramda";
|
|
38344
38380
|
import { isArray as isArray8 } from "lodash-es";
|
|
@@ -39006,7 +39042,7 @@ var MDControlController = class extends ControlController {
|
|
|
39006
39042
|
async importData() {
|
|
39007
39043
|
const { appDataEntityId, dedataImportId } = this.model;
|
|
39008
39044
|
if (!appDataEntityId || !dedataImportId) {
|
|
39009
|
-
throw new
|
|
39045
|
+
throw new RuntimeModelError25(
|
|
39010
39046
|
this.model,
|
|
39011
39047
|
ibiz.i18n.t("runtime.controller.common.control.noImportModel")
|
|
39012
39048
|
);
|
|
@@ -39216,7 +39252,7 @@ var MDControlController = class extends ControlController {
|
|
|
39216
39252
|
import {
|
|
39217
39253
|
findRecursiveChild,
|
|
39218
39254
|
RuntimeError as RuntimeError33,
|
|
39219
|
-
RuntimeModelError as
|
|
39255
|
+
RuntimeModelError as RuntimeModelError26
|
|
39220
39256
|
} from "@ibiz-template/core";
|
|
39221
39257
|
|
|
39222
39258
|
// src/controller/control/app-menu/custom-app-menu.controller.ts
|
|
@@ -39522,7 +39558,7 @@ var AppMenuController = class extends ControlController {
|
|
|
39522
39558
|
return provider.onClick(menuItem, event, this);
|
|
39523
39559
|
}
|
|
39524
39560
|
if (!menuItem.appFuncId) {
|
|
39525
|
-
throw new
|
|
39561
|
+
throw new RuntimeModelError26(
|
|
39526
39562
|
menuItem,
|
|
39527
39563
|
ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
|
|
39528
39564
|
);
|
|
@@ -39672,7 +39708,7 @@ var AppMenuController = class extends ControlController {
|
|
|
39672
39708
|
import {
|
|
39673
39709
|
findRecursiveChild as findRecursiveChild2,
|
|
39674
39710
|
RuntimeError as RuntimeError34,
|
|
39675
|
-
RuntimeModelError as
|
|
39711
|
+
RuntimeModelError as RuntimeModelError27
|
|
39676
39712
|
} from "@ibiz-template/core";
|
|
39677
39713
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
39678
39714
|
async onClickMenuItem(id, event) {
|
|
@@ -39690,7 +39726,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
39690
39726
|
event
|
|
39691
39727
|
});
|
|
39692
39728
|
if (!menuItem.appFuncId) {
|
|
39693
|
-
throw new
|
|
39729
|
+
throw new RuntimeModelError27(
|
|
39694
39730
|
menuItem,
|
|
39695
39731
|
ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
|
|
39696
39732
|
);
|
|
@@ -39712,7 +39748,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
39712
39748
|
|
|
39713
39749
|
// src/controller/control/calendar/calendar.controller.ts
|
|
39714
39750
|
import dayjs3 from "dayjs";
|
|
39715
|
-
import { RuntimeError as RuntimeError45, RuntimeModelError as
|
|
39751
|
+
import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
39716
39752
|
|
|
39717
39753
|
// src/controller/control/calendar/calendar.service.ts
|
|
39718
39754
|
import { RuntimeError as RuntimeError35 } from "@ibiz-template/core";
|
|
@@ -39928,11 +39964,11 @@ var CalendarService = class extends MDControlService {
|
|
|
39928
39964
|
import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError44 } from "@ibiz-template/core";
|
|
39929
39965
|
|
|
39930
39966
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
39931
|
-
import { RuntimeModelError as
|
|
39967
|
+
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
39932
39968
|
import { isArray as isArray9 } from "qx-util";
|
|
39933
39969
|
|
|
39934
39970
|
// src/ui-action/provider/ui-action-provider-base.ts
|
|
39935
|
-
import { RuntimeModelError as
|
|
39971
|
+
import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
39936
39972
|
|
|
39937
39973
|
// src/ui-logic/index.ts
|
|
39938
39974
|
import { RuntimeError as RuntimeError41 } from "@ibiz-template/core";
|
|
@@ -39941,7 +39977,7 @@ import { RuntimeError as RuntimeError41 } from "@ibiz-template/core";
|
|
|
39941
39977
|
import {
|
|
39942
39978
|
IBizContext as IBizContext6,
|
|
39943
39979
|
ModelError as ModelError23,
|
|
39944
|
-
RuntimeModelError as
|
|
39980
|
+
RuntimeModelError as RuntimeModelError44
|
|
39945
39981
|
} from "@ibiz-template/core";
|
|
39946
39982
|
import { clone as clone25 } from "ramda";
|
|
39947
39983
|
|
|
@@ -40096,20 +40132,20 @@ var UILogicContext = class {
|
|
|
40096
40132
|
};
|
|
40097
40133
|
|
|
40098
40134
|
// src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts
|
|
40099
|
-
import { RuntimeModelError as
|
|
40135
|
+
import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
|
|
40100
40136
|
|
|
40101
40137
|
// src/ui-logic/ui-logic-link/ui-logic-link.ts
|
|
40102
40138
|
import { ModelError as ModelError18 } from "@ibiz-template/core";
|
|
40103
40139
|
|
|
40104
40140
|
// src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
|
|
40105
|
-
import { RuntimeModelError as
|
|
40141
|
+
import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
|
|
40106
40142
|
|
|
40107
40143
|
// src/ui-logic/ui-logic-link/ui-logic-link-cond/ui-logic-link-cond.ts
|
|
40108
40144
|
var UILogicLinkCond = class {
|
|
40109
40145
|
};
|
|
40110
40146
|
|
|
40111
40147
|
// src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
|
|
40112
|
-
import { ModelError as ModelError17, RuntimeModelError as
|
|
40148
|
+
import { ModelError as ModelError17, RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
|
|
40113
40149
|
|
|
40114
40150
|
// src/ui-logic/utils/handle-src-val.ts
|
|
40115
40151
|
import { ModelError as ModelError16 } from "@ibiz-template/core";
|
|
@@ -40248,7 +40284,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
40248
40284
|
switch (this.type) {
|
|
40249
40285
|
case "ENTITYFIELD": {
|
|
40250
40286
|
if (!this.value) {
|
|
40251
|
-
throw new
|
|
40287
|
+
throw new RuntimeModelError28(
|
|
40252
40288
|
this.model,
|
|
40253
40289
|
ibiz.i18n.t("runtime.uiLogic.currentConditionValue")
|
|
40254
40290
|
);
|
|
@@ -40260,7 +40296,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
40260
40296
|
}
|
|
40261
40297
|
case "SRCENTITYFIELD": {
|
|
40262
40298
|
if (!this.value) {
|
|
40263
|
-
throw new
|
|
40299
|
+
throw new RuntimeModelError28(
|
|
40264
40300
|
this.model,
|
|
40265
40301
|
ibiz.i18n.t("runtime.uiLogic.sourceDataObjectAttribute")
|
|
40266
40302
|
);
|
|
@@ -40351,7 +40387,7 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
|
|
|
40351
40387
|
test(ctx, context, data) {
|
|
40352
40388
|
let bol = this.op !== "OR";
|
|
40353
40389
|
if (this.conds.length === 0) {
|
|
40354
|
-
throw new
|
|
40390
|
+
throw new RuntimeModelError29(
|
|
40355
40391
|
this.model,
|
|
40356
40392
|
ibiz.i18n.t("runtime.uiLogic.interfaceConnectionConditional")
|
|
40357
40393
|
);
|
|
@@ -40500,13 +40536,13 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
40500
40536
|
retDEUILogicParamId
|
|
40501
40537
|
} = this.model;
|
|
40502
40538
|
if (!dstAppDataEntityId) {
|
|
40503
|
-
throw new
|
|
40539
|
+
throw new RuntimeModelError30(
|
|
40504
40540
|
this.model,
|
|
40505
40541
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedEntity")
|
|
40506
40542
|
);
|
|
40507
40543
|
}
|
|
40508
40544
|
if (!dstAppDEActionId) {
|
|
40509
|
-
throw new
|
|
40545
|
+
throw new RuntimeModelError30(
|
|
40510
40546
|
this.model,
|
|
40511
40547
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedBehavior")
|
|
40512
40548
|
);
|
|
@@ -40537,13 +40573,18 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
40537
40573
|
};
|
|
40538
40574
|
|
|
40539
40575
|
// src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts
|
|
40540
|
-
import { RuntimeModelError as
|
|
40576
|
+
import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
|
|
40541
40577
|
var DEUIActionNode = class extends UILogicNode {
|
|
40542
40578
|
async exec(ctx) {
|
|
40543
|
-
const {
|
|
40579
|
+
const {
|
|
40580
|
+
dstAppDEUIActionId,
|
|
40581
|
+
dstDEUILogicParamId,
|
|
40582
|
+
dstAppDataEntityId,
|
|
40583
|
+
retDEUILogicParamId
|
|
40584
|
+
} = this.model;
|
|
40544
40585
|
const { data, parameters } = ctx;
|
|
40545
40586
|
if (!dstAppDEUIActionId) {
|
|
40546
|
-
throw new
|
|
40587
|
+
throw new RuntimeModelError31(
|
|
40547
40588
|
this.model,
|
|
40548
40589
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredInterfaceBehavior")
|
|
40549
40590
|
);
|
|
@@ -40557,15 +40598,7 @@ var DEUIActionNode = class extends UILogicNode {
|
|
|
40557
40598
|
actionData = [param];
|
|
40558
40599
|
}
|
|
40559
40600
|
}
|
|
40560
|
-
|
|
40561
|
-
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeEntityInterfaceAction", {
|
|
40562
|
-
id: this.model.id,
|
|
40563
|
-
dstAppDEUIActionId,
|
|
40564
|
-
dstAppDataEntityId,
|
|
40565
|
-
dstDEUILogicParamId
|
|
40566
|
-
})
|
|
40567
|
-
);
|
|
40568
|
-
await UIActionUtil.execAndResolved(
|
|
40601
|
+
const res = await UIActionUtil.exec(
|
|
40569
40602
|
dstAppDEUIActionId,
|
|
40570
40603
|
{
|
|
40571
40604
|
...parameters,
|
|
@@ -40575,6 +40608,19 @@ var DEUIActionNode = class extends UILogicNode {
|
|
|
40575
40608
|
},
|
|
40576
40609
|
this.model.appId
|
|
40577
40610
|
);
|
|
40611
|
+
if (!res.cancel) {
|
|
40612
|
+
ctx.params[retDEUILogicParamId] = res.data;
|
|
40613
|
+
ctx.setLastReturn(ctx.params[retDEUILogicParamId]);
|
|
40614
|
+
}
|
|
40615
|
+
ibiz.log.debug(
|
|
40616
|
+
ibiz.i18n.t("runtime.uiLogic.interfaceLogicNodeEntityInterfaceAction", {
|
|
40617
|
+
id: this.model.id,
|
|
40618
|
+
dstAppDEUIActionId,
|
|
40619
|
+
dstAppDataEntityId,
|
|
40620
|
+
dstDEUILogicParamId
|
|
40621
|
+
}),
|
|
40622
|
+
ctx.params[retDEUILogicParamId]
|
|
40623
|
+
);
|
|
40578
40624
|
}
|
|
40579
40625
|
};
|
|
40580
40626
|
|
|
@@ -40813,26 +40859,26 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
40813
40859
|
};
|
|
40814
40860
|
|
|
40815
40861
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
40816
|
-
import { RuntimeError as RuntimeError37, RuntimeModelError as
|
|
40862
|
+
import { RuntimeError as RuntimeError37, RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
40817
40863
|
import { isFunction } from "lodash-es";
|
|
40818
40864
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
40819
40865
|
async exec(ctx) {
|
|
40820
40866
|
ctx.isEndNode = true;
|
|
40821
40867
|
const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
|
|
40822
40868
|
if (!invokeCtrlId) {
|
|
40823
|
-
throw new
|
|
40869
|
+
throw new RuntimeModelError32(
|
|
40824
40870
|
this.model,
|
|
40825
40871
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredInterfaceObject")
|
|
40826
40872
|
);
|
|
40827
40873
|
}
|
|
40828
40874
|
if (!invokeParamId) {
|
|
40829
|
-
throw new
|
|
40875
|
+
throw new RuntimeModelError32(
|
|
40830
40876
|
this.model,
|
|
40831
40877
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredOperatingParameters")
|
|
40832
40878
|
);
|
|
40833
40879
|
}
|
|
40834
40880
|
if (!invokeMethod) {
|
|
40835
|
-
throw new
|
|
40881
|
+
throw new RuntimeModelError32(
|
|
40836
40882
|
this.model,
|
|
40837
40883
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredCallMethod")
|
|
40838
40884
|
);
|
|
@@ -40873,12 +40919,12 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
40873
40919
|
};
|
|
40874
40920
|
|
|
40875
40921
|
// src/ui-logic/ui-logic-node/bind-param-node/bind-param-node.ts
|
|
40876
|
-
import { RuntimeModelError as
|
|
40922
|
+
import { RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
|
|
40877
40923
|
var BindParamNode2 = class extends UILogicNode {
|
|
40878
40924
|
async exec(ctx) {
|
|
40879
40925
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
40880
40926
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
40881
|
-
throw new
|
|
40927
|
+
throw new RuntimeModelError33(
|
|
40882
40928
|
this.model,
|
|
40883
40929
|
ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
|
|
40884
40930
|
);
|
|
@@ -40897,7 +40943,7 @@ var BindParamNode2 = class extends UILogicNode {
|
|
|
40897
40943
|
};
|
|
40898
40944
|
|
|
40899
40945
|
// src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts
|
|
40900
|
-
import { ModelError as ModelError21, RuntimeModelError as
|
|
40946
|
+
import { ModelError as ModelError21, RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
|
|
40901
40947
|
var MsgBoxNode = class extends UILogicNode {
|
|
40902
40948
|
constructor() {
|
|
40903
40949
|
super(...arguments);
|
|
@@ -40911,13 +40957,13 @@ var MsgBoxNode = class extends UILogicNode {
|
|
|
40911
40957
|
async exec(ctx) {
|
|
40912
40958
|
const { msgBoxType, buttonsType, msgBoxParamId } = this.model;
|
|
40913
40959
|
if (!msgBoxType) {
|
|
40914
|
-
throw new
|
|
40960
|
+
throw new RuntimeModelError34(
|
|
40915
40961
|
this.model,
|
|
40916
40962
|
ibiz.i18n.t("runtime.uiLogic.missingMessageTypeConfiguration")
|
|
40917
40963
|
);
|
|
40918
40964
|
}
|
|
40919
40965
|
if (!buttonsType) {
|
|
40920
|
-
throw new
|
|
40966
|
+
throw new RuntimeModelError34(
|
|
40921
40967
|
this.model,
|
|
40922
40968
|
ibiz.i18n.t("runtime.uiLogic.missingButtonTypeConfiguration")
|
|
40923
40969
|
);
|
|
@@ -41001,12 +41047,12 @@ var PFPluginNode = class extends UILogicNode {
|
|
|
41001
41047
|
};
|
|
41002
41048
|
|
|
41003
41049
|
// src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts
|
|
41004
|
-
import { RuntimeModelError as
|
|
41005
|
-
var
|
|
41050
|
+
import { RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
|
|
41051
|
+
var DebugParamNode2 = class extends UILogicNode {
|
|
41006
41052
|
async exec(ctx) {
|
|
41007
41053
|
const { dstDEUILogicParamId, name: name2 } = this.model;
|
|
41008
41054
|
if (!dstDEUILogicParamId) {
|
|
41009
|
-
throw new
|
|
41055
|
+
throw new RuntimeModelError35(
|
|
41010
41056
|
this.model,
|
|
41011
41057
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
41012
41058
|
);
|
|
@@ -41020,12 +41066,12 @@ var DebugParamNode = class extends UILogicNode {
|
|
|
41020
41066
|
};
|
|
41021
41067
|
|
|
41022
41068
|
// src/ui-logic/ui-logic-node/reset-param-node/reset-param-node.ts
|
|
41023
|
-
import { RuntimeModelError as
|
|
41069
|
+
import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
|
|
41024
41070
|
var ResetParamNode2 = class extends UILogicNode {
|
|
41025
41071
|
async exec(ctx) {
|
|
41026
41072
|
const { dstDEUILogicParamId } = this.model;
|
|
41027
41073
|
if (!dstDEUILogicParamId) {
|
|
41028
|
-
throw new
|
|
41074
|
+
throw new RuntimeModelError36(
|
|
41029
41075
|
this.model,
|
|
41030
41076
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
41031
41077
|
);
|
|
@@ -41042,13 +41088,13 @@ var ResetParamNode2 = class extends UILogicNode {
|
|
|
41042
41088
|
};
|
|
41043
41089
|
|
|
41044
41090
|
// src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts
|
|
41045
|
-
import { RuntimeModelError as
|
|
41091
|
+
import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
|
|
41046
41092
|
import { clone as clone24 } from "ramda";
|
|
41047
41093
|
var CopyParamNode2 = class extends UILogicNode {
|
|
41048
41094
|
async exec(ctx) {
|
|
41049
41095
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
41050
41096
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
41051
|
-
throw new
|
|
41097
|
+
throw new RuntimeModelError37(
|
|
41052
41098
|
this.model,
|
|
41053
41099
|
ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
|
|
41054
41100
|
);
|
|
@@ -41067,7 +41113,7 @@ var CopyParamNode2 = class extends UILogicNode {
|
|
|
41067
41113
|
};
|
|
41068
41114
|
|
|
41069
41115
|
// src/ui-logic/ui-logic-node/append-param-node/append-param-node.ts
|
|
41070
|
-
import { RuntimeModelError as
|
|
41116
|
+
import { RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
|
|
41071
41117
|
var AppendParamNode2 = class extends UILogicNode {
|
|
41072
41118
|
async exec(ctx) {
|
|
41073
41119
|
const {
|
|
@@ -41078,7 +41124,7 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
41078
41124
|
srcSize
|
|
41079
41125
|
} = this.model;
|
|
41080
41126
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
41081
|
-
throw new
|
|
41127
|
+
throw new RuntimeModelError38(
|
|
41082
41128
|
this.model,
|
|
41083
41129
|
ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
|
|
41084
41130
|
);
|
|
@@ -41103,12 +41149,12 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
41103
41149
|
};
|
|
41104
41150
|
|
|
41105
41151
|
// src/ui-logic/ui-logic-node/sort-param-node/sort-param-node.ts
|
|
41106
|
-
import { RuntimeModelError as
|
|
41152
|
+
import { RuntimeModelError as RuntimeModelError39 } from "@ibiz-template/core";
|
|
41107
41153
|
var SortParamNode2 = class extends UILogicNode {
|
|
41108
41154
|
async exec(ctx) {
|
|
41109
41155
|
const { dstDEUILogicParamId, dstSortDir, dstFieldName } = this.model;
|
|
41110
41156
|
if (!dstDEUILogicParamId || !dstFieldName) {
|
|
41111
|
-
throw new
|
|
41157
|
+
throw new RuntimeModelError39(
|
|
41112
41158
|
this.model,
|
|
41113
41159
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingParameterProperty")
|
|
41114
41160
|
);
|
|
@@ -41132,12 +41178,12 @@ var SortParamNode2 = class extends UILogicNode {
|
|
|
41132
41178
|
};
|
|
41133
41179
|
|
|
41134
41180
|
// src/ui-logic/ui-logic-node/renew-param-node/renew-param-node.ts
|
|
41135
|
-
import { RuntimeModelError as
|
|
41181
|
+
import { RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
|
|
41136
41182
|
var RenewParamNode2 = class extends UILogicNode {
|
|
41137
41183
|
async exec(ctx) {
|
|
41138
41184
|
const { dstDEUILogicParamId } = this.model;
|
|
41139
41185
|
if (!dstDEUILogicParamId) {
|
|
41140
|
-
throw new
|
|
41186
|
+
throw new RuntimeModelError40(
|
|
41141
41187
|
this.model,
|
|
41142
41188
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
41143
41189
|
);
|
|
@@ -41154,7 +41200,7 @@ var RenewParamNode2 = class extends UILogicNode {
|
|
|
41154
41200
|
};
|
|
41155
41201
|
|
|
41156
41202
|
// src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts
|
|
41157
|
-
import { RuntimeModelError as
|
|
41203
|
+
import { RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
|
|
41158
41204
|
var DataSetNode2 = class extends UILogicNode {
|
|
41159
41205
|
async exec(ctx) {
|
|
41160
41206
|
const {
|
|
@@ -41164,7 +41210,7 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
41164
41210
|
retDEUILogicParamId
|
|
41165
41211
|
} = this.model;
|
|
41166
41212
|
if (!dstDEUILogicParamId) {
|
|
41167
|
-
throw new
|
|
41213
|
+
throw new RuntimeModelError41(
|
|
41168
41214
|
this.model,
|
|
41169
41215
|
ibiz.i18n.t("runtime.uiLogic.missingfilter")
|
|
41170
41216
|
);
|
|
@@ -41209,25 +41255,25 @@ var ThrowExceptionNode2 = class extends UILogicNode {
|
|
|
41209
41255
|
};
|
|
41210
41256
|
|
|
41211
41257
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
41212
|
-
import { RuntimeError as RuntimeError39, RuntimeModelError as
|
|
41258
|
+
import { RuntimeError as RuntimeError39, RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
41213
41259
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
41214
41260
|
async exec(ctx) {
|
|
41215
41261
|
ctx.isEndNode = true;
|
|
41216
41262
|
const { eventName, eventParamId, fireCtrlId } = this.model;
|
|
41217
41263
|
if (!fireCtrlId) {
|
|
41218
|
-
throw new
|
|
41264
|
+
throw new RuntimeModelError42(
|
|
41219
41265
|
this.model,
|
|
41220
41266
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredTriggerObject")
|
|
41221
41267
|
);
|
|
41222
41268
|
}
|
|
41223
41269
|
if (!eventName) {
|
|
41224
|
-
throw new
|
|
41270
|
+
throw new RuntimeModelError42(
|
|
41225
41271
|
this.model,
|
|
41226
41272
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredEvent")
|
|
41227
41273
|
);
|
|
41228
41274
|
}
|
|
41229
41275
|
if (!eventParamId) {
|
|
41230
|
-
throw new
|
|
41276
|
+
throw new RuntimeModelError42(
|
|
41231
41277
|
this.model,
|
|
41232
41278
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredEventParameters")
|
|
41233
41279
|
);
|
|
@@ -41262,7 +41308,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
41262
41308
|
};
|
|
41263
41309
|
|
|
41264
41310
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
41265
|
-
import { RuntimeError as RuntimeError40, RuntimeModelError as
|
|
41311
|
+
import { RuntimeError as RuntimeError40, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
41266
41312
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
41267
41313
|
async exec(ctx) {
|
|
41268
41314
|
const {
|
|
@@ -41272,19 +41318,19 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
41272
41318
|
retDEUILogicParamId
|
|
41273
41319
|
} = this.model;
|
|
41274
41320
|
if (!dstAppDataEntityId) {
|
|
41275
|
-
throw new
|
|
41321
|
+
throw new RuntimeModelError43(
|
|
41276
41322
|
this.model,
|
|
41277
41323
|
ibiz.i18n.t("runtime.uiLogic.noEntityConfigured")
|
|
41278
41324
|
);
|
|
41279
41325
|
}
|
|
41280
41326
|
if (!dstAppDELogicId) {
|
|
41281
|
-
throw new
|
|
41327
|
+
throw new RuntimeModelError43(
|
|
41282
41328
|
this.model,
|
|
41283
41329
|
ibiz.i18n.t("runtime.uiLogic.noEntityLogicConfigured")
|
|
41284
41330
|
);
|
|
41285
41331
|
}
|
|
41286
41332
|
if (!dstDEUILogicParamId) {
|
|
41287
|
-
throw new
|
|
41333
|
+
throw new RuntimeModelError43(
|
|
41288
41334
|
this.model,
|
|
41289
41335
|
ibiz.i18n.t("runtime.uiLogic.noIncomingLogic")
|
|
41290
41336
|
);
|
|
@@ -41513,7 +41559,7 @@ var UILogic = class {
|
|
|
41513
41559
|
this.params = /* @__PURE__ */ new Map();
|
|
41514
41560
|
var _a3;
|
|
41515
41561
|
if (!((_a3 = model.deuilogicNodes) == null ? void 0 : _a3.length)) {
|
|
41516
|
-
throw new
|
|
41562
|
+
throw new RuntimeModelError44(
|
|
41517
41563
|
model,
|
|
41518
41564
|
ibiz.i18n.t("runtime.uiLogic.noLogicalNodesConfigured")
|
|
41519
41565
|
);
|
|
@@ -41553,7 +41599,7 @@ var UILogic = class {
|
|
|
41553
41599
|
logicNode = new MsgBoxNode(node);
|
|
41554
41600
|
break;
|
|
41555
41601
|
case "DEBUGPARAM":
|
|
41556
|
-
logicNode = new
|
|
41602
|
+
logicNode = new DebugParamNode2(node);
|
|
41557
41603
|
break;
|
|
41558
41604
|
case "APPENDPARAM":
|
|
41559
41605
|
logicNode = new AppendParamNode2(node);
|
|
@@ -41643,7 +41689,7 @@ var UILogic = class {
|
|
|
41643
41689
|
const start = this.nodes.get(startDEUILogicNodeId);
|
|
41644
41690
|
await this.deepExec(start, ctx);
|
|
41645
41691
|
} else {
|
|
41646
|
-
throw new
|
|
41692
|
+
throw new RuntimeModelError44(
|
|
41647
41693
|
this.model,
|
|
41648
41694
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.noSetStartNode")
|
|
41649
41695
|
);
|
|
@@ -41834,7 +41880,7 @@ var UIActionProviderBase = class {
|
|
|
41834
41880
|
const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
|
|
41835
41881
|
if (uilogicAttachMode === "REPLACE") {
|
|
41836
41882
|
if (!appDEUILogicId) {
|
|
41837
|
-
throw new
|
|
41883
|
+
throw new RuntimeModelError45(
|
|
41838
41884
|
action,
|
|
41839
41885
|
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
41840
41886
|
);
|
|
@@ -41862,7 +41908,7 @@ var UIActionProviderBase = class {
|
|
|
41862
41908
|
}
|
|
41863
41909
|
if (action.uilogicAttachMode === "AFTER") {
|
|
41864
41910
|
if (!appDEUILogicId) {
|
|
41865
|
-
throw new
|
|
41911
|
+
throw new RuntimeModelError45(
|
|
41866
41912
|
action,
|
|
41867
41913
|
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
41868
41914
|
);
|
|
@@ -42146,7 +42192,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
42146
42192
|
const entityName = action.appDataEntityId;
|
|
42147
42193
|
const methodName = action.appDEMethodId;
|
|
42148
42194
|
if (!entityName || !methodName) {
|
|
42149
|
-
throw new
|
|
42195
|
+
throw new RuntimeModelError46(
|
|
42150
42196
|
action,
|
|
42151
42197
|
ibiz.i18n.t("runtime.uiAction.noEntityOrBehavior")
|
|
42152
42198
|
);
|
|
@@ -42281,7 +42327,7 @@ var SysUIActionProvider = class extends UIActionProviderBase {
|
|
|
42281
42327
|
// src/ui-action/provider/front-ui-action-provider.ts
|
|
42282
42328
|
import {
|
|
42283
42329
|
StringUtil as StringUtil4,
|
|
42284
|
-
RuntimeModelError as
|
|
42330
|
+
RuntimeModelError as RuntimeModelError47,
|
|
42285
42331
|
ModelError as ModelError24,
|
|
42286
42332
|
RuntimeError as RuntimeError43
|
|
42287
42333
|
} from "@ibiz-template/core";
|
|
@@ -42305,7 +42351,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
42305
42351
|
case "WIZARD": {
|
|
42306
42352
|
const frontPSAppView = action.frontAppViewId;
|
|
42307
42353
|
if (!frontPSAppView) {
|
|
42308
|
-
throw new
|
|
42354
|
+
throw new RuntimeModelError47(
|
|
42309
42355
|
action,
|
|
42310
42356
|
ibiz.i18n.t("runtime.uiAction.noConfiguredopenView")
|
|
42311
42357
|
);
|
|
@@ -42395,7 +42441,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
42395
42441
|
);
|
|
42396
42442
|
return result || {};
|
|
42397
42443
|
}
|
|
42398
|
-
throw new
|
|
42444
|
+
throw new RuntimeModelError47(
|
|
42399
42445
|
action,
|
|
42400
42446
|
ibiz.i18n.t("runtime.uiAction.missingConfigurationScriptCode")
|
|
42401
42447
|
);
|
|
@@ -42474,7 +42520,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
42474
42520
|
const { resultContext, resultParams, presetParams } = await this.handleParams(action, args.context, args.data, args.params);
|
|
42475
42521
|
const { appDataEntityId, appDEDataImportId, frontAppViewId } = action;
|
|
42476
42522
|
if (!appDataEntityId || !appDEDataImportId) {
|
|
42477
|
-
throw new
|
|
42523
|
+
throw new RuntimeModelError47(
|
|
42478
42524
|
action,
|
|
42479
42525
|
ibiz.i18n.t("runtime.controller.common.control.noImportModel")
|
|
42480
42526
|
);
|
|
@@ -42619,6 +42665,9 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
42619
42665
|
overlay.dismiss();
|
|
42620
42666
|
}
|
|
42621
42667
|
hasSave = true;
|
|
42668
|
+
},
|
|
42669
|
+
onFinish: (_eventArgs) => {
|
|
42670
|
+
overlay == null ? void 0 : overlay.dismiss();
|
|
42622
42671
|
}
|
|
42623
42672
|
},
|
|
42624
42673
|
popoverOpts
|
|
@@ -42775,7 +42824,7 @@ var LoginOutUIActionProvider = class extends UIActionProviderBase {
|
|
|
42775
42824
|
};
|
|
42776
42825
|
|
|
42777
42826
|
// src/ui-action/provider/custom-ui-action-provider.ts
|
|
42778
|
-
import { RuntimeModelError as
|
|
42827
|
+
import { RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
|
|
42779
42828
|
var CustomUIActionProvider = class extends UIActionProviderBase {
|
|
42780
42829
|
async execAction(action, args) {
|
|
42781
42830
|
const { scriptCode } = action;
|
|
@@ -42787,7 +42836,7 @@ var CustomUIActionProvider = class extends UIActionProviderBase {
|
|
|
42787
42836
|
);
|
|
42788
42837
|
return result || {};
|
|
42789
42838
|
}
|
|
42790
|
-
throw new
|
|
42839
|
+
throw new RuntimeModelError48(
|
|
42791
42840
|
action,
|
|
42792
42841
|
ibiz.i18n.t("runtime.uiAction.missingConfigurationScriptCode")
|
|
42793
42842
|
);
|
|
@@ -43400,7 +43449,7 @@ var CalendarController = class extends MDControlController {
|
|
|
43400
43449
|
}
|
|
43401
43450
|
));
|
|
43402
43451
|
if (result === -1)
|
|
43403
|
-
throw new
|
|
43452
|
+
throw new RuntimeModelError49(
|
|
43404
43453
|
calendarItem,
|
|
43405
43454
|
ibiz.i18n.t("runtime.controller.common.md.logicOpendata", {
|
|
43406
43455
|
itemType: calendarItem.itemType.toLowerCase()
|
|
@@ -43436,7 +43485,7 @@ var CalendarController = class extends MDControlController {
|
|
|
43436
43485
|
}
|
|
43437
43486
|
));
|
|
43438
43487
|
if (result === -1)
|
|
43439
|
-
throw new
|
|
43488
|
+
throw new RuntimeModelError49(
|
|
43440
43489
|
calendarItem,
|
|
43441
43490
|
ibiz.i18n.t("runtime.controller.common.md.logicNewdata", {
|
|
43442
43491
|
itemType: calendarItem.itemType.toLowerCase()
|
|
@@ -43827,10 +43876,10 @@ import { isObject as isObject2, isString as isString2 } from "qx-util";
|
|
|
43827
43876
|
import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
|
|
43828
43877
|
|
|
43829
43878
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
43830
|
-
import { RuntimeModelError as
|
|
43879
|
+
import { RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
43831
43880
|
|
|
43832
43881
|
// src/controller/control/chart/generator/base-series-generator.ts
|
|
43833
|
-
import { plus, RuntimeModelError as
|
|
43882
|
+
import { plus, RuntimeModelError as RuntimeModelError50, toNumberOrNil } from "@ibiz-template/core";
|
|
43834
43883
|
import dayjs4 from "dayjs";
|
|
43835
43884
|
import minMax from "dayjs/plugin/minMax";
|
|
43836
43885
|
import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
@@ -43912,13 +43961,13 @@ var BaseSeriesGenerator = class {
|
|
|
43912
43961
|
var _a3;
|
|
43913
43962
|
const { chartSeriesEncode, caption, id, userParam } = model;
|
|
43914
43963
|
if (!model.catalogField) {
|
|
43915
|
-
throw new
|
|
43964
|
+
throw new RuntimeModelError50(
|
|
43916
43965
|
model,
|
|
43917
43966
|
ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
|
|
43918
43967
|
);
|
|
43919
43968
|
}
|
|
43920
43969
|
if (!model.valueField) {
|
|
43921
|
-
throw new
|
|
43970
|
+
throw new RuntimeModelError50(
|
|
43922
43971
|
model,
|
|
43923
43972
|
ibiz.i18n.t("runtime.controller.control.chart.missingValue")
|
|
43924
43973
|
);
|
|
@@ -44665,13 +44714,13 @@ var BaseSeriesGenerator = class {
|
|
|
44665
44714
|
var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
44666
44715
|
calcStaticOptions() {
|
|
44667
44716
|
if (this.xAxisIndex === void 0) {
|
|
44668
|
-
throw new
|
|
44717
|
+
throw new RuntimeModelError51(
|
|
44669
44718
|
this.model,
|
|
44670
44719
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
44671
44720
|
);
|
|
44672
44721
|
}
|
|
44673
44722
|
if (this.yAxisIndex === void 0) {
|
|
44674
|
-
throw new
|
|
44723
|
+
throw new RuntimeModelError51(
|
|
44675
44724
|
this.model,
|
|
44676
44725
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
44677
44726
|
);
|
|
@@ -44690,17 +44739,17 @@ var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
44690
44739
|
};
|
|
44691
44740
|
|
|
44692
44741
|
// src/controller/control/chart/generator/bar-series-generator.ts
|
|
44693
|
-
import { RuntimeModelError as
|
|
44742
|
+
import { RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
|
|
44694
44743
|
var BarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
44695
44744
|
calcStaticOptions() {
|
|
44696
44745
|
if (this.xAxisIndex === void 0) {
|
|
44697
|
-
throw new
|
|
44746
|
+
throw new RuntimeModelError52(
|
|
44698
44747
|
this.model,
|
|
44699
44748
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
44700
44749
|
);
|
|
44701
44750
|
}
|
|
44702
44751
|
if (this.yAxisIndex === void 0) {
|
|
44703
|
-
throw new
|
|
44752
|
+
throw new RuntimeModelError52(
|
|
44704
44753
|
this.model,
|
|
44705
44754
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
44706
44755
|
);
|
|
@@ -44756,17 +44805,17 @@ var PieSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
44756
44805
|
};
|
|
44757
44806
|
|
|
44758
44807
|
// src/controller/control/chart/generator/scatter-series-generator.ts
|
|
44759
|
-
import { RuntimeModelError as
|
|
44808
|
+
import { RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
|
|
44760
44809
|
var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
|
|
44761
44810
|
calcStaticOptions() {
|
|
44762
44811
|
if (this.xAxisIndex === void 0) {
|
|
44763
|
-
throw new
|
|
44812
|
+
throw new RuntimeModelError53(
|
|
44764
44813
|
this.model,
|
|
44765
44814
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
44766
44815
|
);
|
|
44767
44816
|
}
|
|
44768
44817
|
if (this.yAxisIndex === void 0) {
|
|
44769
|
-
throw new
|
|
44818
|
+
throw new RuntimeModelError53(
|
|
44770
44819
|
this.model,
|
|
44771
44820
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
44772
44821
|
);
|
|
@@ -44896,7 +44945,7 @@ var RadarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
44896
44945
|
};
|
|
44897
44946
|
|
|
44898
44947
|
// src/controller/control/chart/generator/area-series-generator.ts
|
|
44899
|
-
import { RuntimeModelError as
|
|
44948
|
+
import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
|
|
44900
44949
|
var AreaSeriesGenerator = class extends BaseSeriesGenerator {
|
|
44901
44950
|
/**
|
|
44902
44951
|
* 计算静态序列的options
|
|
@@ -44905,13 +44954,13 @@ var AreaSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
44905
44954
|
*/
|
|
44906
44955
|
calcStaticOptions() {
|
|
44907
44956
|
if (this.xAxisIndex === void 0) {
|
|
44908
|
-
throw new
|
|
44957
|
+
throw new RuntimeModelError54(
|
|
44909
44958
|
this.model,
|
|
44910
44959
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
44911
44960
|
);
|
|
44912
44961
|
}
|
|
44913
44962
|
if (this.yAxisIndex === void 0) {
|
|
44914
|
-
throw new
|
|
44963
|
+
throw new RuntimeModelError54(
|
|
44915
44964
|
this.model,
|
|
44916
44965
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
44917
44966
|
);
|
|
@@ -44961,7 +45010,7 @@ var GaugeSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
44961
45010
|
// src/controller/control/chart/generator/candlestick-series-generator.ts
|
|
44962
45011
|
import { isNil as isNil28 } from "ramda";
|
|
44963
45012
|
import { isArray as isArray10, isNumber as isNumber4 } from "qx-util";
|
|
44964
|
-
import { plus as plus2, RuntimeModelError as
|
|
45013
|
+
import { plus as plus2, RuntimeModelError as RuntimeModelError55, toNumberOrNil as toNumberOrNil2 } from "@ibiz-template/core";
|
|
44965
45014
|
var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
|
|
44966
45015
|
/**
|
|
44967
45016
|
* 初始化参数
|
|
@@ -44974,7 +45023,7 @@ var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
44974
45023
|
var _a3;
|
|
44975
45024
|
const { chartSeriesEncode, caption, id, userParam, navViewParamJO } = model;
|
|
44976
45025
|
if (!model.catalogField) {
|
|
44977
|
-
throw new
|
|
45026
|
+
throw new RuntimeModelError55(
|
|
44978
45027
|
model,
|
|
44979
45028
|
ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
|
|
44980
45029
|
);
|
|
@@ -46790,6 +46839,24 @@ function filterPortletByConfig(config, items) {
|
|
|
46790
46839
|
}
|
|
46791
46840
|
return effectivePortlets;
|
|
46792
46841
|
}
|
|
46842
|
+
function deepFillSubAppId(model, appId2) {
|
|
46843
|
+
model.appId = appId2;
|
|
46844
|
+
const keys = Object.keys(model);
|
|
46845
|
+
keys.forEach((key) => {
|
|
46846
|
+
const value = model[key];
|
|
46847
|
+
if (value && typeof value === "object") {
|
|
46848
|
+
if (Array.isArray(value)) {
|
|
46849
|
+
value.forEach((item) => {
|
|
46850
|
+
if (item && typeof item === "object") {
|
|
46851
|
+
deepFillSubAppId(item, appId2);
|
|
46852
|
+
}
|
|
46853
|
+
});
|
|
46854
|
+
} else {
|
|
46855
|
+
deepFillSubAppId(value, appId2);
|
|
46856
|
+
}
|
|
46857
|
+
}
|
|
46858
|
+
});
|
|
46859
|
+
}
|
|
46793
46860
|
|
|
46794
46861
|
// src/controller/control/dashboard/dashboard.controller.ts
|
|
46795
46862
|
var DashboardController = class extends ControlController {
|
|
@@ -46955,7 +47022,7 @@ var DashboardController = class extends ControlController {
|
|
|
46955
47022
|
*/
|
|
46956
47023
|
async loadAllDynaPortlet() {
|
|
46957
47024
|
var _a3;
|
|
46958
|
-
const app = ibiz.hub.getApp(
|
|
47025
|
+
const app = ibiz.hub.getApp(this.model.appId);
|
|
46959
47026
|
const result = [];
|
|
46960
47027
|
if (this.controlParams.dynamiccodelist) {
|
|
46961
47028
|
const dynamicCodeListTag = this.controlParams.dynamiccodelist;
|
|
@@ -47009,7 +47076,7 @@ var DashboardController = class extends ControlController {
|
|
|
47009
47076
|
* @return {*} {(Promise<IDBPortletPart | undefined>)}
|
|
47010
47077
|
*/
|
|
47011
47078
|
async loadDynaPortletById(id) {
|
|
47012
|
-
const app = ibiz.hub.getApp(
|
|
47079
|
+
const app = ibiz.hub.getApp(this.model.appId);
|
|
47013
47080
|
const tempContext = clone31(this.context);
|
|
47014
47081
|
Object.assign(tempContext, { psappportlet: id });
|
|
47015
47082
|
const res = await app.deService.exec(
|
|
@@ -47104,7 +47171,7 @@ var DashboardController = class extends ControlController {
|
|
|
47104
47171
|
var _a3;
|
|
47105
47172
|
if (!this.customDashboard)
|
|
47106
47173
|
return;
|
|
47107
|
-
const app = ibiz.hub.getApp(
|
|
47174
|
+
const app = ibiz.hub.getApp(this.model.appId);
|
|
47108
47175
|
if (isNewFilter) {
|
|
47109
47176
|
const portletCat = (_a3 = app.model.appPortletCats) == null ? void 0 : _a3.find(
|
|
47110
47177
|
(cat) => {
|
|
@@ -47186,7 +47253,7 @@ var DashboardController = class extends ControlController {
|
|
|
47186
47253
|
var _a3, _b2;
|
|
47187
47254
|
const filterParam = this.customDashboard.portletFilter[key];
|
|
47188
47255
|
const { config, searchconds } = filterParam;
|
|
47189
|
-
const app = ibiz.hub.getApp(
|
|
47256
|
+
const app = ibiz.hub.getApp(this.model.appId);
|
|
47190
47257
|
const targetFilter = (_a3 = app.model.appPortlets) == null ? void 0 : _a3.find(
|
|
47191
47258
|
(portletModel) => {
|
|
47192
47259
|
return portletModel.id === key;
|
|
@@ -47451,6 +47518,7 @@ var CustomDashboardController = class {
|
|
|
47451
47518
|
* @Date: 2023-09-20 16:22:49
|
|
47452
47519
|
*/
|
|
47453
47520
|
async loadCustomModelData() {
|
|
47521
|
+
var _a3;
|
|
47454
47522
|
if (this.multiMode && !this.context.srfdynadashboardid) {
|
|
47455
47523
|
return { model: this.customModelData, config: this.portletConfig };
|
|
47456
47524
|
}
|
|
@@ -47467,6 +47535,7 @@ var CustomDashboardController = class {
|
|
|
47467
47535
|
if (res.model) {
|
|
47468
47536
|
for (let i = 0; i < res.model.length; i++) {
|
|
47469
47537
|
const item = res.model[i];
|
|
47538
|
+
const mainApp = ibiz.hub.getApp(ibiz.env.appId);
|
|
47470
47539
|
if (item.orignModel) {
|
|
47471
47540
|
item.portletModel = await ibiz.hub.translationModelToDsl(
|
|
47472
47541
|
item.portletModel,
|
|
@@ -47474,6 +47543,13 @@ var CustomDashboardController = class {
|
|
|
47474
47543
|
);
|
|
47475
47544
|
delete item.orignModel;
|
|
47476
47545
|
}
|
|
47546
|
+
const targetApp = (_a3 = mainApp.model.subAppRefs) == null ? void 0 : _a3.find((app) => {
|
|
47547
|
+
var _a4;
|
|
47548
|
+
return (_a4 = app.id) == null ? void 0 : _a4.endsWith(item.appCodeName);
|
|
47549
|
+
});
|
|
47550
|
+
if (targetApp && targetApp.id) {
|
|
47551
|
+
deepFillSubAppId(item.portletModel, targetApp.id);
|
|
47552
|
+
}
|
|
47477
47553
|
}
|
|
47478
47554
|
this.customModelData = res.model;
|
|
47479
47555
|
}
|
|
@@ -48145,7 +48221,7 @@ import { clone as clone34 } from "ramda";
|
|
|
48145
48221
|
import { isString as isString3 } from "lodash-es";
|
|
48146
48222
|
|
|
48147
48223
|
// src/controller/control/search-bar/search-bar-filter.controller.ts
|
|
48148
|
-
import { RuntimeModelError as
|
|
48224
|
+
import { RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
|
|
48149
48225
|
|
|
48150
48226
|
// src/controller/control/search-bar/util.ts
|
|
48151
48227
|
var ItemsValueOPs = [
|
|
@@ -48226,7 +48302,7 @@ var SearchBarFilterController = class {
|
|
|
48226
48302
|
async init() {
|
|
48227
48303
|
if (!this.noEditor) {
|
|
48228
48304
|
if (!this.model.editor) {
|
|
48229
|
-
throw new
|
|
48305
|
+
throw new RuntimeModelError56(
|
|
48230
48306
|
this.model,
|
|
48231
48307
|
ibiz.i18n.t("runtime.controller.control.searchBar.missingModel")
|
|
48232
48308
|
);
|
|
@@ -50141,7 +50217,7 @@ import {
|
|
|
50141
50217
|
clone as clone36,
|
|
50142
50218
|
DataTypes as DataTypes4,
|
|
50143
50219
|
isElementSame as isElementSame2,
|
|
50144
|
-
RuntimeModelError as
|
|
50220
|
+
RuntimeModelError as RuntimeModelError57
|
|
50145
50221
|
} from "@ibiz-template/core";
|
|
50146
50222
|
import { isNil as isNil30 } from "ramda";
|
|
50147
50223
|
import { createUUID as createUUID13, isBoolean } from "qx-util";
|
|
@@ -50534,7 +50610,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
50534
50610
|
const { enableGroup } = this.state;
|
|
50535
50611
|
if (enableGroup && groupMode) {
|
|
50536
50612
|
if (!groupAppDEFieldId) {
|
|
50537
|
-
throw new
|
|
50613
|
+
throw new RuntimeModelError57(
|
|
50538
50614
|
this.model,
|
|
50539
50615
|
ibiz.i18n.t(
|
|
50540
50616
|
"runtime.controller.control.dataView.propertiesNoConfigured"
|
|
@@ -50627,7 +50703,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
50627
50703
|
async handleCodeListGroup() {
|
|
50628
50704
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
50629
50705
|
if (!groupCodeListId) {
|
|
50630
|
-
throw new
|
|
50706
|
+
throw new RuntimeModelError57(
|
|
50631
50707
|
this.model,
|
|
50632
50708
|
ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
|
|
50633
50709
|
);
|
|
@@ -50740,7 +50816,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
50740
50816
|
caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
50741
50817
|
}
|
|
50742
50818
|
if (!item.appDEFieldId) {
|
|
50743
|
-
throw new
|
|
50819
|
+
throw new RuntimeModelError57(
|
|
50744
50820
|
item,
|
|
50745
50821
|
ibiz.i18n.t("runtime.controller.control.dataView.sortingItems")
|
|
50746
50822
|
);
|
|
@@ -50961,13 +51037,13 @@ var DataViewControlController = class extends MDControlController {
|
|
|
50961
51037
|
await this.updateChangedItems([draggedItem]);
|
|
50962
51038
|
} else {
|
|
50963
51039
|
if (!minorSortAppDEFieldId)
|
|
50964
|
-
throw new
|
|
51040
|
+
throw new RuntimeModelError57(
|
|
50965
51041
|
this.model,
|
|
50966
51042
|
ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
|
|
50967
51043
|
);
|
|
50968
51044
|
const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
|
|
50969
51045
|
if (!moveAction)
|
|
50970
|
-
throw new
|
|
51046
|
+
throw new RuntimeModelError57(
|
|
50971
51047
|
this.model,
|
|
50972
51048
|
ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
|
|
50973
51049
|
);
|
|
@@ -51009,14 +51085,14 @@ var DataViewControlController = class extends MDControlController {
|
|
|
51009
51085
|
};
|
|
51010
51086
|
|
|
51011
51087
|
// src/controller/control/exp-bar/calendar-exp-bar.controller.ts
|
|
51012
|
-
import { RuntimeModelError as
|
|
51088
|
+
import { RuntimeModelError as RuntimeModelError59 } from "@ibiz-template/core";
|
|
51013
51089
|
|
|
51014
51090
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
51015
51091
|
import {
|
|
51016
51092
|
IBizParams as IBizParams3,
|
|
51017
51093
|
IBizContext as IBizContext8,
|
|
51018
51094
|
RuntimeError as RuntimeError49,
|
|
51019
|
-
RuntimeModelError as
|
|
51095
|
+
RuntimeModelError as RuntimeModelError58
|
|
51020
51096
|
} from "@ibiz-template/core";
|
|
51021
51097
|
var ExpBarControlController = class extends ControlController {
|
|
51022
51098
|
constructor(model, context, params, ctx) {
|
|
@@ -51111,7 +51187,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
51111
51187
|
get xDataController() {
|
|
51112
51188
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
51113
51189
|
if (!controller) {
|
|
51114
|
-
throw new
|
|
51190
|
+
throw new RuntimeModelError58(
|
|
51115
51191
|
this.model,
|
|
51116
51192
|
ibiz.i18n.t("runtime.controller.control.expBar.unableMore", {
|
|
51117
51193
|
xdataControlName: this.model.xdataControlName
|
|
@@ -51503,7 +51579,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
51503
51579
|
get xDataController() {
|
|
51504
51580
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
51505
51581
|
if (!controller)
|
|
51506
|
-
throw new
|
|
51582
|
+
throw new RuntimeModelError59(
|
|
51507
51583
|
this.model,
|
|
51508
51584
|
ibiz.i18n.t("runtime.controller.control.expBar.unableMore", {
|
|
51509
51585
|
xdataControlName: this.model.xdataControlName
|
|
@@ -51588,7 +51664,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
51588
51664
|
};
|
|
51589
51665
|
|
|
51590
51666
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
51591
|
-
import { RuntimeError as RuntimeError50, RuntimeModelError as
|
|
51667
|
+
import { RuntimeError as RuntimeError50, RuntimeModelError as RuntimeModelError60 } from "@ibiz-template/core";
|
|
51592
51668
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
51593
51669
|
constructor() {
|
|
51594
51670
|
super(...arguments);
|
|
@@ -51611,7 +51687,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
51611
51687
|
get xDataController() {
|
|
51612
51688
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
51613
51689
|
if (!controller) {
|
|
51614
|
-
throw new
|
|
51690
|
+
throw new RuntimeModelError60(
|
|
51615
51691
|
this.model,
|
|
51616
51692
|
ibiz.i18n.t("runtime.controller.control.expBar.unableMore", {
|
|
51617
51693
|
xdataControlName: this.model.xdataControlName
|
|
@@ -51933,7 +52009,7 @@ import { RuntimeError as RuntimeError52 } from "@ibiz-template/core";
|
|
|
51933
52009
|
|
|
51934
52010
|
// src/controller/control/form/form/form.controller.ts
|
|
51935
52011
|
import {
|
|
51936
|
-
RuntimeModelError as
|
|
52012
|
+
RuntimeModelError as RuntimeModelError61,
|
|
51937
52013
|
debounceAndAsyncMerge,
|
|
51938
52014
|
recursiveIterate as recursiveIterate6,
|
|
51939
52015
|
EntityError,
|
|
@@ -52179,7 +52255,7 @@ var FormController = class extends ControlController {
|
|
|
52179
52255
|
return;
|
|
52180
52256
|
}
|
|
52181
52257
|
if (form.details[detail.id]) {
|
|
52182
|
-
throw new
|
|
52258
|
+
throw new RuntimeModelError61(
|
|
52183
52259
|
detail,
|
|
52184
52260
|
ibiz.i18n.t(
|
|
52185
52261
|
"runtime.controller.control.form.initializationException",
|
|
@@ -54863,7 +54939,7 @@ var FormMDCtrlController = class extends FormDetailController {
|
|
|
54863
54939
|
import {
|
|
54864
54940
|
ModelError as ModelError25,
|
|
54865
54941
|
mergeInLeft as mergeInLeft2,
|
|
54866
|
-
RuntimeModelError as
|
|
54942
|
+
RuntimeModelError as RuntimeModelError62
|
|
54867
54943
|
} from "@ibiz-template/core";
|
|
54868
54944
|
var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
54869
54945
|
constructor() {
|
|
@@ -54902,7 +54978,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
54902
54978
|
if (((_a3 = this.context) == null ? void 0 : _a3.srfrunmode) === "DESIGN") {
|
|
54903
54979
|
return;
|
|
54904
54980
|
}
|
|
54905
|
-
throw new
|
|
54981
|
+
throw new RuntimeModelError62(
|
|
54906
54982
|
this.model,
|
|
54907
54983
|
ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
|
|
54908
54984
|
);
|
|
@@ -55033,7 +55109,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
55033
55109
|
};
|
|
55034
55110
|
|
|
55035
55111
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
|
|
55036
|
-
import { RuntimeError as RuntimeError53, RuntimeModelError as
|
|
55112
|
+
import { RuntimeError as RuntimeError53, RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
|
|
55037
55113
|
import { createUUID as createUUID15 } from "qx-util";
|
|
55038
55114
|
|
|
55039
55115
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
|
|
@@ -55078,7 +55154,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
55078
55154
|
if (((_a3 = this.context) == null ? void 0 : _a3.srfrunmode) === "DESIGN") {
|
|
55079
55155
|
return;
|
|
55080
55156
|
}
|
|
55081
|
-
throw new
|
|
55157
|
+
throw new RuntimeModelError63(
|
|
55082
55158
|
this.model,
|
|
55083
55159
|
ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
|
|
55084
55160
|
);
|
|
@@ -56029,7 +56105,7 @@ import { clone as clone41, isNil as isNil33 } from "ramda";
|
|
|
56029
56105
|
// src/controller/control/form/edit-form/edit-form.service.ts
|
|
56030
56106
|
import {
|
|
56031
56107
|
recursiveIterate as recursiveIterate10,
|
|
56032
|
-
RuntimeModelError as
|
|
56108
|
+
RuntimeModelError as RuntimeModelError64
|
|
56033
56109
|
} from "@ibiz-template/core";
|
|
56034
56110
|
var EditFormService = class extends FormService {
|
|
56035
56111
|
/**
|
|
@@ -56153,7 +56229,7 @@ var EditFormService = class extends FormService {
|
|
|
56153
56229
|
const wizardForm = this.model;
|
|
56154
56230
|
const methodName = (_a3 = wizardForm.goBackControlAction) == null ? void 0 : _a3.appDEMethodId;
|
|
56155
56231
|
if (!methodName) {
|
|
56156
|
-
throw new
|
|
56232
|
+
throw new RuntimeModelError64(
|
|
56157
56233
|
this.model,
|
|
56158
56234
|
ibiz.i18n.t("runtime.controller.control.form.lackBehavior")
|
|
56159
56235
|
);
|
|
@@ -57399,7 +57475,7 @@ import {
|
|
|
57399
57475
|
awaitTimeout as awaitTimeout2,
|
|
57400
57476
|
RuntimeError as RuntimeError55,
|
|
57401
57477
|
recursiveIterate as recursiveIterate11,
|
|
57402
|
-
RuntimeModelError as
|
|
57478
|
+
RuntimeModelError as RuntimeModelError66,
|
|
57403
57479
|
mergeDefaultInLeft as mergeDefaultInLeft2,
|
|
57404
57480
|
debounceAndAsyncMerge as debounceAndAsyncMerge2
|
|
57405
57481
|
} from "@ibiz-template/core";
|
|
@@ -57407,7 +57483,7 @@ import { clone as clone43 } from "ramda";
|
|
|
57407
57483
|
import dayjs5 from "dayjs";
|
|
57408
57484
|
|
|
57409
57485
|
// src/controller/control/grid/grid/grid.service.ts
|
|
57410
|
-
import { RuntimeModelError as
|
|
57486
|
+
import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
|
|
57411
57487
|
var GridService = class extends MDControlService {
|
|
57412
57488
|
/**
|
|
57413
57489
|
* 初始化属性映射
|
|
@@ -57435,7 +57511,7 @@ var GridService = class extends MDControlService {
|
|
|
57435
57511
|
dataType: dataItem.dataType
|
|
57436
57512
|
});
|
|
57437
57513
|
} else {
|
|
57438
|
-
throw new
|
|
57514
|
+
throw new RuntimeModelError65(
|
|
57439
57515
|
column,
|
|
57440
57516
|
ibiz.i18n.t("runtime.controller.control.grid.corresponding", {
|
|
57441
57517
|
deField
|
|
@@ -58331,7 +58407,7 @@ var GridController = class extends MDControlController {
|
|
|
58331
58407
|
(item) => item.model.appDEFieldId === groupAppDEFieldId
|
|
58332
58408
|
);
|
|
58333
58409
|
if (!this.groupFieldColumn) {
|
|
58334
|
-
throw new
|
|
58410
|
+
throw new RuntimeModelError66(
|
|
58335
58411
|
this.model,
|
|
58336
58412
|
ibiz.i18n.t("runtime.controller.control.grid.attributeColumns")
|
|
58337
58413
|
);
|
|
@@ -58342,7 +58418,7 @@ var GridController = class extends MDControlController {
|
|
|
58342
58418
|
);
|
|
58343
58419
|
if (index !== -1 && index !== 0) {
|
|
58344
58420
|
if (this.isMultistageHeader) {
|
|
58345
|
-
throw new
|
|
58421
|
+
throw new RuntimeModelError66(
|
|
58346
58422
|
this.model,
|
|
58347
58423
|
ibiz.i18n.t("runtime.controller.control.grid.configureFirstColumn", {
|
|
58348
58424
|
groupFieldName
|
|
@@ -58354,13 +58430,13 @@ var GridController = class extends MDControlController {
|
|
|
58354
58430
|
}
|
|
58355
58431
|
if (groupMode === "CODELIST") {
|
|
58356
58432
|
if (!groupCodeListId) {
|
|
58357
|
-
throw new
|
|
58433
|
+
throw new RuntimeModelError66(
|
|
58358
58434
|
this.model,
|
|
58359
58435
|
ibiz.i18n.t("runtime.controller.control.grid.requiresCodeTable")
|
|
58360
58436
|
);
|
|
58361
58437
|
}
|
|
58362
58438
|
if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
|
|
58363
|
-
throw new
|
|
58439
|
+
throw new RuntimeModelError66(
|
|
58364
58440
|
this.model,
|
|
58365
58441
|
ibiz.i18n.t("runtime.controller.control.grid.noMatchCodeTable", {
|
|
58366
58442
|
groupFieldName
|
|
@@ -58519,7 +58595,7 @@ var GridController = class extends MDControlController {
|
|
|
58519
58595
|
return;
|
|
58520
58596
|
}
|
|
58521
58597
|
if (!aggAppDEDataSetId || !aggAppDataEntityId) {
|
|
58522
|
-
throw new
|
|
58598
|
+
throw new RuntimeModelError66(
|
|
58523
58599
|
this.model,
|
|
58524
58600
|
ibiz.i18n.t("runtime.controller.control.grid.missingConfiguration")
|
|
58525
58601
|
);
|
|
@@ -59566,7 +59642,7 @@ var GridController = class extends MDControlController {
|
|
|
59566
59642
|
var _a3;
|
|
59567
59643
|
const moveAction = (_a3 = this.model.moveControlAction) == null ? void 0 : _a3.appDEMethodId;
|
|
59568
59644
|
if (!moveAction) {
|
|
59569
|
-
throw new
|
|
59645
|
+
throw new RuntimeModelError66(
|
|
59570
59646
|
this.model,
|
|
59571
59647
|
ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
|
|
59572
59648
|
);
|
|
@@ -60091,7 +60167,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
60091
60167
|
};
|
|
60092
60168
|
|
|
60093
60169
|
// src/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.ts
|
|
60094
|
-
import { RuntimeModelError as
|
|
60170
|
+
import { RuntimeModelError as RuntimeModelError67 } from "@ibiz-template/core";
|
|
60095
60171
|
var GridUAColumnController = class extends GridColumnController {
|
|
60096
60172
|
/**
|
|
60097
60173
|
* 给rowController初始化操作列的状态
|
|
@@ -60104,7 +60180,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
60104
60180
|
var _a3;
|
|
60105
60181
|
const { deuiactionGroup } = this.model;
|
|
60106
60182
|
if (!deuiactionGroup) {
|
|
60107
|
-
throw new
|
|
60183
|
+
throw new RuntimeModelError67(
|
|
60108
60184
|
this.model,
|
|
60109
60185
|
ibiz.i18n.t("runtime.controller.control.grid.behaviorGroup")
|
|
60110
60186
|
);
|
|
@@ -60438,7 +60514,7 @@ import {
|
|
|
60438
60514
|
clone as clone46,
|
|
60439
60515
|
DataTypes as DataTypes7,
|
|
60440
60516
|
isElementSame as isElementSame4,
|
|
60441
|
-
RuntimeModelError as
|
|
60517
|
+
RuntimeModelError as RuntimeModelError68
|
|
60442
60518
|
} from "@ibiz-template/core";
|
|
60443
60519
|
import dayjs7 from "dayjs";
|
|
60444
60520
|
|
|
@@ -61125,13 +61201,13 @@ var ListController = class extends MDControlController {
|
|
|
61125
61201
|
await this.updateChangedItems([draggedItem]);
|
|
61126
61202
|
} else {
|
|
61127
61203
|
if (!minorSortAppDEFieldId)
|
|
61128
|
-
throw new
|
|
61204
|
+
throw new RuntimeModelError68(
|
|
61129
61205
|
this.model,
|
|
61130
61206
|
ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
|
|
61131
61207
|
);
|
|
61132
61208
|
const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
|
|
61133
61209
|
if (!moveAction)
|
|
61134
|
-
throw new
|
|
61210
|
+
throw new RuntimeModelError68(
|
|
61135
61211
|
this.model,
|
|
61136
61212
|
ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
|
|
61137
61213
|
);
|
|
@@ -62484,7 +62560,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
62484
62560
|
import {
|
|
62485
62561
|
RuntimeError as RuntimeError58,
|
|
62486
62562
|
recursiveIterate as recursiveIterate13,
|
|
62487
|
-
RuntimeModelError as
|
|
62563
|
+
RuntimeModelError as RuntimeModelError69
|
|
62488
62564
|
} from "@ibiz-template/core";
|
|
62489
62565
|
import { isNil as isNil36 } from "ramda";
|
|
62490
62566
|
import { isBoolean as isBoolean4 } from "qx-util";
|
|
@@ -64005,7 +64081,7 @@ var TreeController = class extends MDControlController {
|
|
|
64005
64081
|
const { moveAppDEActionId, appDataEntityId, allowOrder } = orderNodeModel;
|
|
64006
64082
|
if (allowOrder) {
|
|
64007
64083
|
if (!moveAppDEActionId) {
|
|
64008
|
-
throw new
|
|
64084
|
+
throw new RuntimeModelError69(
|
|
64009
64085
|
this.model,
|
|
64010
64086
|
ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
|
|
64011
64087
|
);
|
|
@@ -64087,7 +64163,7 @@ var TreeController = class extends MDControlController {
|
|
|
64087
64163
|
async modifyNodeText(nodeData, text) {
|
|
64088
64164
|
const model = this.getNodeModel(nodeData._nodeId);
|
|
64089
64165
|
if (!model.allowEditText) {
|
|
64090
|
-
throw new
|
|
64166
|
+
throw new RuntimeModelError69(
|
|
64091
64167
|
model,
|
|
64092
64168
|
ibiz.i18n.t("runtime.controller.control.tree.editMode")
|
|
64093
64169
|
);
|
|
@@ -64200,7 +64276,7 @@ var TreeController = class extends MDControlController {
|
|
|
64200
64276
|
const nodeModel = this.getNodeModel(nodeType);
|
|
64201
64277
|
const parentNodeData = this.getNodeData(parentKey);
|
|
64202
64278
|
if (!nodeModel) {
|
|
64203
|
-
throw new
|
|
64279
|
+
throw new RuntimeModelError69(
|
|
64204
64280
|
this.model,
|
|
64205
64281
|
ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
|
|
64206
64282
|
);
|
|
@@ -64332,7 +64408,7 @@ var TreeController = class extends MDControlController {
|
|
|
64332
64408
|
}
|
|
64333
64409
|
));
|
|
64334
64410
|
if (result === -1)
|
|
64335
|
-
throw new
|
|
64411
|
+
throw new RuntimeModelError69(
|
|
64336
64412
|
nodeModel,
|
|
64337
64413
|
ibiz.i18n.t("runtime.controller.common.md.logicOpendata", {
|
|
64338
64414
|
itemType: nodeModel.id.toLowerCase()
|
|
@@ -64371,7 +64447,7 @@ var TreeController = class extends MDControlController {
|
|
|
64371
64447
|
}
|
|
64372
64448
|
));
|
|
64373
64449
|
if (result === -1)
|
|
64374
|
-
throw new
|
|
64450
|
+
throw new RuntimeModelError69(
|
|
64375
64451
|
nodeModel,
|
|
64376
64452
|
ibiz.i18n.t("runtime.controller.common.md.logicNewdata", {
|
|
64377
64453
|
itemType: nodeModel.id.toLowerCase()
|
|
@@ -64906,8 +64982,9 @@ var WizardPanelController = class extends ControlController {
|
|
|
64906
64982
|
};
|
|
64907
64983
|
|
|
64908
64984
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
64909
|
-
import { RuntimeModelError as
|
|
64985
|
+
import { RuntimeModelError as RuntimeModelError70 } from "@ibiz-template/core";
|
|
64910
64986
|
import { isNil as isNil37 } from "ramda";
|
|
64987
|
+
import { createUUID as createUUID19 } from "qx-util";
|
|
64911
64988
|
|
|
64912
64989
|
// src/controller/control/md-ctrl/md-ctrl.service.ts
|
|
64913
64990
|
var MDCtrlService = class extends MDControlService {
|
|
@@ -64965,12 +65042,54 @@ var MobMDCtrlRowState = class {
|
|
|
64965
65042
|
|
|
64966
65043
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
64967
65044
|
var MDCtrlController = class extends MDControlController {
|
|
65045
|
+
/**
|
|
65046
|
+
* @description 启用分组
|
|
65047
|
+
* @readonly
|
|
65048
|
+
* @type {boolean}
|
|
65049
|
+
* @memberof MDCtrlController
|
|
65050
|
+
*/
|
|
65051
|
+
get enableGroup() {
|
|
65052
|
+
return this.model.groupMode !== "NONE";
|
|
65053
|
+
}
|
|
65054
|
+
/**
|
|
65055
|
+
* @description 分组时是否显示分组锚点导航
|
|
65056
|
+
* @readonly
|
|
65057
|
+
* @type {boolean}
|
|
65058
|
+
* @memberof MDCtrlController
|
|
65059
|
+
*/
|
|
65060
|
+
get showGroupAnchor() {
|
|
65061
|
+
return this.enableGroup && this.controlParams.showgroupanchor === "true";
|
|
65062
|
+
}
|
|
64968
65063
|
initState() {
|
|
64969
65064
|
super.initState();
|
|
64970
65065
|
this.state.rows = [];
|
|
64971
65066
|
this.state.noSort = this.model.noSort === true;
|
|
64972
65067
|
this.state.singleSelect = this.model.singleSelect === true;
|
|
64973
65068
|
this.state.mdctrlActiveMode = 1;
|
|
65069
|
+
this.state.size = this.model.pagingSize || 20;
|
|
65070
|
+
this.initSortDelistItems();
|
|
65071
|
+
}
|
|
65072
|
+
/**
|
|
65073
|
+
* @description 初始化排序配置项集合
|
|
65074
|
+
* @protected
|
|
65075
|
+
* @memberof MDCtrlController
|
|
65076
|
+
*/
|
|
65077
|
+
initSortDelistItems() {
|
|
65078
|
+
var _a3;
|
|
65079
|
+
const sortDelistItems = [];
|
|
65080
|
+
(_a3 = this.model.delistItems) == null ? void 0 : _a3.forEach((item) => {
|
|
65081
|
+
var _a4, _b2;
|
|
65082
|
+
if (item.enableSort) {
|
|
65083
|
+
sortDelistItems.push({
|
|
65084
|
+
value: item.id,
|
|
65085
|
+
label: ibiz.i18n.t(
|
|
65086
|
+
((_a4 = item == null ? void 0 : item.capLanguageRes) == null ? void 0 : _a4.lanResTag) || "",
|
|
65087
|
+
item.caption || ((_b2 = item == null ? void 0 : item.capLanguageRes) == null ? void 0 : _b2.defaultContent)
|
|
65088
|
+
)
|
|
65089
|
+
});
|
|
65090
|
+
}
|
|
65091
|
+
});
|
|
65092
|
+
this.state.sortDelistItems = sortDelistItems;
|
|
64974
65093
|
}
|
|
64975
65094
|
async onCreated() {
|
|
64976
65095
|
await super.onCreated();
|
|
@@ -65134,7 +65253,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
65134
65253
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
65135
65254
|
if (enableGroup && groupMode) {
|
|
65136
65255
|
if (!groupAppDEFieldId) {
|
|
65137
|
-
throw new
|
|
65256
|
+
throw new RuntimeModelError70(
|
|
65138
65257
|
this.model,
|
|
65139
65258
|
ibiz.i18n.t(
|
|
65140
65259
|
"runtime.controller.control.dataView.propertiesNoConfigured"
|
|
@@ -65167,9 +65286,17 @@ var MDCtrlController = class extends MDControlController {
|
|
|
65167
65286
|
if (groupAppDEFieldId) {
|
|
65168
65287
|
const { items } = this.state;
|
|
65169
65288
|
const groupMap = /* @__PURE__ */ new Map();
|
|
65289
|
+
const unclassified = {
|
|
65290
|
+
key: createUUID19(),
|
|
65291
|
+
caption: ibiz.i18n.t("runtime.controller.common.md.unclassified"),
|
|
65292
|
+
children: []
|
|
65293
|
+
};
|
|
65170
65294
|
items.forEach((item) => {
|
|
65171
65295
|
const groupVal = item[groupAppDEFieldId];
|
|
65172
65296
|
if (isNil37(groupVal)) {
|
|
65297
|
+
unclassified.children.push(
|
|
65298
|
+
new MobMDCtrlRowState(item, this)
|
|
65299
|
+
);
|
|
65173
65300
|
return;
|
|
65174
65301
|
}
|
|
65175
65302
|
if (!groupMap.has(groupVal)) {
|
|
@@ -65186,6 +65313,8 @@ var MDCtrlController = class extends MDControlController {
|
|
|
65186
65313
|
children: [...value]
|
|
65187
65314
|
});
|
|
65188
65315
|
});
|
|
65316
|
+
if (unclassified.children.length)
|
|
65317
|
+
groups.push(unclassified);
|
|
65189
65318
|
this.state.groups = groups;
|
|
65190
65319
|
}
|
|
65191
65320
|
}
|
|
@@ -65216,13 +65345,18 @@ var MDCtrlController = class extends MDControlController {
|
|
|
65216
65345
|
async handleCodeListGroup() {
|
|
65217
65346
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
65218
65347
|
if (!groupCodeListId) {
|
|
65219
|
-
throw new
|
|
65348
|
+
throw new RuntimeModelError70(
|
|
65220
65349
|
this.model,
|
|
65221
65350
|
ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
|
|
65222
65351
|
);
|
|
65223
65352
|
}
|
|
65224
65353
|
const { items } = this.state;
|
|
65225
65354
|
const groupMap = /* @__PURE__ */ new Map();
|
|
65355
|
+
const unclassified = {
|
|
65356
|
+
key: createUUID19(),
|
|
65357
|
+
caption: ibiz.i18n.t("runtime.controller.common.md.unclassified"),
|
|
65358
|
+
children: []
|
|
65359
|
+
};
|
|
65226
65360
|
this.groupCodeListItems.forEach((item) => {
|
|
65227
65361
|
groupMap.set(item.value, []);
|
|
65228
65362
|
});
|
|
@@ -65231,6 +65365,10 @@ var MDCtrlController = class extends MDControlController {
|
|
|
65231
65365
|
const groupArr = groupMap.get(groupVal);
|
|
65232
65366
|
if (groupArr) {
|
|
65233
65367
|
groupArr.push(new MobMDCtrlRowState(item, this));
|
|
65368
|
+
} else {
|
|
65369
|
+
unclassified.children.push(
|
|
65370
|
+
new MobMDCtrlRowState(item, this)
|
|
65371
|
+
);
|
|
65234
65372
|
}
|
|
65235
65373
|
});
|
|
65236
65374
|
const groups = [];
|
|
@@ -65244,6 +65382,8 @@ var MDCtrlController = class extends MDControlController {
|
|
|
65244
65382
|
children: arr
|
|
65245
65383
|
});
|
|
65246
65384
|
});
|
|
65385
|
+
if (unclassified.children.length)
|
|
65386
|
+
groups.push(unclassified);
|
|
65247
65387
|
this.state.groups = groups;
|
|
65248
65388
|
}
|
|
65249
65389
|
changeCollapse(params = {}) {
|
|
@@ -65270,6 +65410,20 @@ var MDCtrlController = class extends MDControlController {
|
|
|
65270
65410
|
scrollToTop() {
|
|
65271
65411
|
throw new Error("Method not implemented.");
|
|
65272
65412
|
}
|
|
65413
|
+
/**
|
|
65414
|
+
* @description 获取部件默认排序模型
|
|
65415
|
+
* @returns {*} {({
|
|
65416
|
+
* minorSortAppDEFieldId: string | undefined;
|
|
65417
|
+
* minorSortDir: string | undefined;
|
|
65418
|
+
* })}
|
|
65419
|
+
* @memberof MDCtrlController
|
|
65420
|
+
*/
|
|
65421
|
+
getSortModel() {
|
|
65422
|
+
return {
|
|
65423
|
+
minorSortAppDEFieldId: this.model.minorSortAppDEFieldId,
|
|
65424
|
+
minorSortDir: this.model.minorSortDir
|
|
65425
|
+
};
|
|
65426
|
+
}
|
|
65273
65427
|
};
|
|
65274
65428
|
|
|
65275
65429
|
// src/controller/control/kanban/kanban.controller.ts
|
|
@@ -65277,7 +65431,7 @@ import {
|
|
|
65277
65431
|
clone as clone47,
|
|
65278
65432
|
RuntimeError as RuntimeError60,
|
|
65279
65433
|
isElementSame as isElementSame5,
|
|
65280
|
-
RuntimeModelError as
|
|
65434
|
+
RuntimeModelError as RuntimeModelError71
|
|
65281
65435
|
} from "@ibiz-template/core";
|
|
65282
65436
|
|
|
65283
65437
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -65562,7 +65716,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
65562
65716
|
async handleCodeListGroup() {
|
|
65563
65717
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
65564
65718
|
if (!groupCodeListId) {
|
|
65565
|
-
throw new
|
|
65719
|
+
throw new RuntimeModelError71(
|
|
65566
65720
|
this.model,
|
|
65567
65721
|
ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
|
|
65568
65722
|
);
|
|
@@ -65626,13 +65780,13 @@ var KanbanController = class extends DataViewControlController {
|
|
|
65626
65780
|
await this.updateChangedItems([draggedItem]);
|
|
65627
65781
|
} else {
|
|
65628
65782
|
if (!minorSortAppDEFieldId)
|
|
65629
|
-
throw new
|
|
65783
|
+
throw new RuntimeModelError71(
|
|
65630
65784
|
this.model,
|
|
65631
65785
|
ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
|
|
65632
65786
|
);
|
|
65633
65787
|
const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
|
|
65634
65788
|
if (!moveAction)
|
|
65635
|
-
throw new
|
|
65789
|
+
throw new RuntimeModelError71(
|
|
65636
65790
|
this.model,
|
|
65637
65791
|
ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
|
|
65638
65792
|
);
|
|
@@ -65833,7 +65987,7 @@ import {
|
|
|
65833
65987
|
RuntimeError as RuntimeError61,
|
|
65834
65988
|
awaitTimeout as awaitTimeout3,
|
|
65835
65989
|
recursiveIterate as recursiveIterate14,
|
|
65836
|
-
RuntimeModelError as
|
|
65990
|
+
RuntimeModelError as RuntimeModelError72
|
|
65837
65991
|
} from "@ibiz-template/core";
|
|
65838
65992
|
import { clone as clone48 } from "ramda";
|
|
65839
65993
|
|
|
@@ -66218,7 +66372,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
66218
66372
|
);
|
|
66219
66373
|
}
|
|
66220
66374
|
if (!updateAppDEActionId) {
|
|
66221
|
-
throw new
|
|
66375
|
+
throw new RuntimeModelError72(
|
|
66222
66376
|
nodeModel,
|
|
66223
66377
|
ibiz.i18n.t("runtime.controller.control.treeGridEx.updateBehavior")
|
|
66224
66378
|
);
|
|
@@ -66544,7 +66698,7 @@ var TreeGridExColumnController = class {
|
|
|
66544
66698
|
import {
|
|
66545
66699
|
DataTypes as DataTypes8,
|
|
66546
66700
|
RuntimeError as RuntimeError62,
|
|
66547
|
-
RuntimeModelError as
|
|
66701
|
+
RuntimeModelError as RuntimeModelError73
|
|
66548
66702
|
} from "@ibiz-template/core";
|
|
66549
66703
|
import { clone as clone49 } from "ramda";
|
|
66550
66704
|
import dayjs8 from "dayjs";
|
|
@@ -66575,7 +66729,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
66575
66729
|
}
|
|
66576
66730
|
);
|
|
66577
66731
|
if (!nodeColumn || !nodeDataItem) {
|
|
66578
|
-
throw new
|
|
66732
|
+
throw new RuntimeModelError73(
|
|
66579
66733
|
nodeModel,
|
|
66580
66734
|
ibiz.i18n.t("runtime.controller.control.treeGridEx.noConfigured", {
|
|
66581
66735
|
name: this.fieldColumn.name
|
|
@@ -66591,7 +66745,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
66591
66745
|
}
|
|
66592
66746
|
);
|
|
66593
66747
|
if (!nodeEditItem) {
|
|
66594
|
-
throw new
|
|
66748
|
+
throw new RuntimeModelError73(
|
|
66595
66749
|
nodeModel,
|
|
66596
66750
|
ibiz.i18n.t("runtime.controller.control.treeGridEx.editItem", {
|
|
66597
66751
|
name: this.fieldColumn.name
|
|
@@ -67100,8 +67254,8 @@ var TreeGridExUAColumnController = class extends TreeGridExColumnController {
|
|
|
67100
67254
|
};
|
|
67101
67255
|
|
|
67102
67256
|
// src/controller/control/tree-grid/tree-grid.controller.ts
|
|
67103
|
-
import { RuntimeModelError as
|
|
67104
|
-
import { createUUID as
|
|
67257
|
+
import { RuntimeModelError as RuntimeModelError74 } from "@ibiz-template/core";
|
|
67258
|
+
import { createUUID as createUUID20 } from "qx-util";
|
|
67105
67259
|
var TreeGridController = class extends GridController {
|
|
67106
67260
|
constructor() {
|
|
67107
67261
|
super(...arguments);
|
|
@@ -67145,7 +67299,7 @@ var TreeGridController = class extends GridController {
|
|
|
67145
67299
|
return item.treeColumnMode === 4 || item.treeColumnMode === 12;
|
|
67146
67300
|
});
|
|
67147
67301
|
if (!treeGridParent)
|
|
67148
|
-
throw new
|
|
67302
|
+
throw new RuntimeModelError74(
|
|
67149
67303
|
this.model,
|
|
67150
67304
|
ibiz.i18n.t("runtime.controller.control.treeGrid.columnMode")
|
|
67151
67305
|
);
|
|
@@ -67153,7 +67307,7 @@ var TreeGridController = class extends GridController {
|
|
|
67153
67307
|
return item.treeColumnMode === 2 || item.treeColumnMode === 3;
|
|
67154
67308
|
});
|
|
67155
67309
|
if (!treeGridValue)
|
|
67156
|
-
throw new
|
|
67310
|
+
throw new RuntimeModelError74(
|
|
67157
67311
|
this.model,
|
|
67158
67312
|
ibiz.i18n.t("runtime.controller.control.treeGrid.columnsSchema")
|
|
67159
67313
|
);
|
|
@@ -67172,7 +67326,7 @@ var TreeGridController = class extends GridController {
|
|
|
67172
67326
|
this.state.expandRowKeys = this.state.expandRowKeys.filter(
|
|
67173
67327
|
(key) => this.state.items.some((item) => item.srfkey === key)
|
|
67174
67328
|
);
|
|
67175
|
-
this.state.tableKey =
|
|
67329
|
+
this.state.tableKey = createUUID20();
|
|
67176
67330
|
}
|
|
67177
67331
|
async afterLoad(args, items) {
|
|
67178
67332
|
this.calcTreeGridData(this.state.items);
|
|
@@ -67250,7 +67404,7 @@ var TreeGridService = class extends GridService {
|
|
|
67250
67404
|
|
|
67251
67405
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
67252
67406
|
import { RuntimeError as RuntimeError63 } from "@ibiz-template/core";
|
|
67253
|
-
import { createUUID as
|
|
67407
|
+
import { createUUID as createUUID21 } from "qx-util";
|
|
67254
67408
|
|
|
67255
67409
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
67256
67410
|
var MEditViewPanelService = class extends MDControlService {
|
|
@@ -67343,7 +67497,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
67343
67497
|
*/
|
|
67344
67498
|
handlePanelItemParams(arg) {
|
|
67345
67499
|
const [{ parameterName }] = this.parameters;
|
|
67346
|
-
const id = arg[parameterName] ? arg[parameterName] : "mockId:".concat(
|
|
67500
|
+
const id = arg[parameterName] ? arg[parameterName] : "mockId:".concat(createUUID21());
|
|
67347
67501
|
const item = {
|
|
67348
67502
|
id,
|
|
67349
67503
|
context: this.context.clone(),
|
|
@@ -68836,6 +68990,28 @@ var GridConverterBase = class extends ConverterBase {
|
|
|
68836
68990
|
}
|
|
68837
68991
|
return result;
|
|
68838
68992
|
}
|
|
68993
|
+
/**
|
|
68994
|
+
* @description 初始化
|
|
68995
|
+
* - 处理列顺序
|
|
68996
|
+
* @protected
|
|
68997
|
+
* @returns {*} {Promise<void>}
|
|
68998
|
+
* @memberof GridConverterBase
|
|
68999
|
+
*/
|
|
69000
|
+
async onInit() {
|
|
69001
|
+
const { appBIReportDimensions } = this.appBIReport;
|
|
69002
|
+
const { grid_col_sort } = this.reportUIModel;
|
|
69003
|
+
this.dimensions = [];
|
|
69004
|
+
grid_col_sort.forEach((col) => {
|
|
69005
|
+
const dimension = appBIReportDimensions == null ? void 0 : appBIReportDimensions.find(
|
|
69006
|
+
(d) => {
|
|
69007
|
+
var _a3;
|
|
69008
|
+
return ((_a3 = d.dimensionTag) == null ? void 0 : _a3.toLowerCase()) === col.codename.toLowerCase();
|
|
69009
|
+
}
|
|
69010
|
+
);
|
|
69011
|
+
if (dimension)
|
|
69012
|
+
this.dimensions.push(dimension);
|
|
69013
|
+
});
|
|
69014
|
+
}
|
|
68839
69015
|
};
|
|
68840
69016
|
|
|
68841
69017
|
// src/controller/control/report-panel/generator/bi-converter/stack-col-converter.ts
|
|
@@ -69081,13 +69257,6 @@ var GaugeConverter = class extends EchartConverterBase {
|
|
|
69081
69257
|
const seriesModels = [];
|
|
69082
69258
|
measures.forEach((item, index) => {
|
|
69083
69259
|
const seriesModel = clone52(this.mockSerieModel);
|
|
69084
|
-
const seriesInput = {
|
|
69085
|
-
caption: item.measureName,
|
|
69086
|
-
serieText: item.measureName,
|
|
69087
|
-
catalogName: item.measureName,
|
|
69088
|
-
value: item.measureTag.toLowerCase(),
|
|
69089
|
-
catalogField: item.measureTag.toLowerCase()
|
|
69090
|
-
};
|
|
69091
69260
|
Object.assign(seriesModel, {
|
|
69092
69261
|
id: "".concat(seriesModel.seriesType, "_").concat(index),
|
|
69093
69262
|
caption: item.measureName,
|
|
@@ -70249,6 +70418,7 @@ var CrossTableConverter = class extends GridConverterBase {
|
|
|
70249
70418
|
}
|
|
70250
70419
|
/**
|
|
70251
70420
|
* @description 初始化
|
|
70421
|
+
* - 处理列顺序
|
|
70252
70422
|
* @protected
|
|
70253
70423
|
* @returns {*} {Promise<void>}
|
|
70254
70424
|
* @memberof CrossTableConverter
|
|
@@ -70256,9 +70426,20 @@ var CrossTableConverter = class extends GridConverterBase {
|
|
|
70256
70426
|
async onInit() {
|
|
70257
70427
|
var _a3;
|
|
70258
70428
|
const { appBIReportDimensions } = this.appBIReport;
|
|
70259
|
-
|
|
70429
|
+
const { grid_col_sort } = this.reportUIModel;
|
|
70430
|
+
this.dimensions = [];
|
|
70431
|
+
grid_col_sort.forEach((col) => {
|
|
70432
|
+
const dimension = appBIReportDimensions == null ? void 0 : appBIReportDimensions.find(
|
|
70433
|
+
(d) => {
|
|
70434
|
+
var _a4;
|
|
70435
|
+
return ((_a4 = d.dimensionTag) == null ? void 0 : _a4.toLowerCase()) === col.codename.toLowerCase();
|
|
70436
|
+
}
|
|
70437
|
+
);
|
|
70438
|
+
if (dimension)
|
|
70439
|
+
this.dimensions.push(dimension);
|
|
70440
|
+
});
|
|
70260
70441
|
this.dimensionCol = appBIReportDimensions == null ? void 0 : appBIReportDimensions.find(
|
|
70261
|
-
(
|
|
70442
|
+
(d) => d.placement === "COLHEADER"
|
|
70262
70443
|
);
|
|
70263
70444
|
if ((_a3 = this.dimensionCol) == null ? void 0 : _a3.appCodeListId) {
|
|
70264
70445
|
const app = ibiz.hub.getApp(this.appBIReport.appId);
|
|
@@ -72129,6 +72310,12 @@ var ThemeUtil = class {
|
|
|
72129
72310
|
* @memberof ThemeUtil
|
|
72130
72311
|
*/
|
|
72131
72312
|
this.evt = new QXEventEx();
|
|
72313
|
+
/**
|
|
72314
|
+
* @description 插件主题
|
|
72315
|
+
* @type {IAppUITheme[]}
|
|
72316
|
+
* @memberof ThemeUtil
|
|
72317
|
+
*/
|
|
72318
|
+
this.pluginTheme = [];
|
|
72132
72319
|
}
|
|
72133
72320
|
/**
|
|
72134
72321
|
* @description 加载主题插件
|
|
@@ -72150,6 +72337,7 @@ var ThemeUtil = class {
|
|
|
72150
72337
|
if (type === "COLOR") {
|
|
72151
72338
|
this.setThemeParams(theme, data);
|
|
72152
72339
|
this.setTheme(theme.themeTag);
|
|
72340
|
+
this.pluginTheme.push(theme);
|
|
72153
72341
|
} else {
|
|
72154
72342
|
this.html.classList.add(theme.themeTag);
|
|
72155
72343
|
}
|
|
@@ -72324,7 +72512,7 @@ var ThemeUtil = class {
|
|
|
72324
72512
|
};
|
|
72325
72513
|
|
|
72326
72514
|
// src/utils/ui-domain/ui-domain.ts
|
|
72327
|
-
import { QXEvent as QXEvent9, createUUID as
|
|
72515
|
+
import { QXEvent as QXEvent9, createUUID as createUUID22 } from "qx-util";
|
|
72328
72516
|
|
|
72329
72517
|
// src/utils/ui-domain/transaction.ts
|
|
72330
72518
|
var Transaction = class {
|
|
@@ -72475,7 +72663,7 @@ var UIDomain = class {
|
|
|
72475
72663
|
if (id) {
|
|
72476
72664
|
this.id = id;
|
|
72477
72665
|
} else {
|
|
72478
|
-
this.id =
|
|
72666
|
+
this.id = createUUID22();
|
|
72479
72667
|
}
|
|
72480
72668
|
this.appDataEntityId = appDataEntityId;
|
|
72481
72669
|
}
|
|
@@ -75563,7 +75751,7 @@ var BIReportUtil = class {
|
|
|
75563
75751
|
|
|
75564
75752
|
// src/utils/record-nav-util/record-nav-util.ts
|
|
75565
75753
|
import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
|
|
75566
|
-
import { createUUID as
|
|
75754
|
+
import { createUUID as createUUID23 } from "qx-util";
|
|
75567
75755
|
var RecordNavUtil = class {
|
|
75568
75756
|
constructor() {
|
|
75569
75757
|
/**
|
|
@@ -75606,7 +75794,7 @@ var RecordNavUtil = class {
|
|
|
75606
75794
|
* @param {IData} tempContext
|
|
75607
75795
|
*/
|
|
75608
75796
|
addTriggerLogic(viewId, data, tempContext) {
|
|
75609
|
-
const triggerLogicId = "".concat(viewId, ":").concat(
|
|
75797
|
+
const triggerLogicId = "".concat(viewId, ":").concat(createUUID23());
|
|
75610
75798
|
this.triggerLogicMap.set(triggerLogicId, data);
|
|
75611
75799
|
tempContext.srfnavlogicid = triggerLogicId;
|
|
75612
75800
|
}
|
|
@@ -82548,6 +82736,14 @@ var AppHub = class {
|
|
|
82548
82736
|
* @type {Map<string, Map<string, IModel>>}
|
|
82549
82737
|
*/
|
|
82550
82738
|
this.plugins = /* @__PURE__ */ new Map();
|
|
82739
|
+
/**
|
|
82740
|
+
* 子应用代码表清单,key为应用标识,值为key为代码表标识,value为代码表模型对象MAP
|
|
82741
|
+
*
|
|
82742
|
+
* @author tony001
|
|
82743
|
+
* @protected
|
|
82744
|
+
* @type {Map<string, Map<string, IAppCodeList>>}
|
|
82745
|
+
*/
|
|
82746
|
+
this.codeLists = /* @__PURE__ */ new Map();
|
|
82551
82747
|
/**
|
|
82552
82748
|
* hub配置信息服务
|
|
82553
82749
|
* @author lxm
|
|
@@ -82780,6 +82976,20 @@ var AppHub = class {
|
|
|
82780
82976
|
}
|
|
82781
82977
|
return [];
|
|
82782
82978
|
}
|
|
82979
|
+
/**
|
|
82980
|
+
* 注册子应用代码表
|
|
82981
|
+
*
|
|
82982
|
+
* @author tony001
|
|
82983
|
+
* @param {string} appId
|
|
82984
|
+
* @param {IAppCodeList} model
|
|
82985
|
+
*/
|
|
82986
|
+
registerSubAppCodeList(appId2, model) {
|
|
82987
|
+
if (!this.codeLists.has(appId2)) {
|
|
82988
|
+
this.codeLists.set(appId2, /* @__PURE__ */ new Map());
|
|
82989
|
+
}
|
|
82990
|
+
const map = this.codeLists.get(appId2);
|
|
82991
|
+
map.set(model.codeListTag, model);
|
|
82992
|
+
}
|
|
82783
82993
|
/**
|
|
82784
82994
|
* 设置应用视图所属应用
|
|
82785
82995
|
*
|
|
@@ -83037,6 +83247,18 @@ var AppHub = class {
|
|
|
83037
83247
|
}
|
|
83038
83248
|
throw new RuntimeError72(ibiz.i18n.t("runtime.service.noFound", { id }));
|
|
83039
83249
|
}
|
|
83250
|
+
/**
|
|
83251
|
+
* 根据代码表标识获取子应用代码表
|
|
83252
|
+
*
|
|
83253
|
+
* @author tony001
|
|
83254
|
+
* @param {string} id
|
|
83255
|
+
* @param {string} [appId=ibiz.env.appId]
|
|
83256
|
+
* @return {*} {Promise<IAppCodeList>}
|
|
83257
|
+
*/
|
|
83258
|
+
getSubAppCodeList(id, appId2 = ibiz.env.appId) {
|
|
83259
|
+
const targetCodeListMap = this.codeLists.get(appId2);
|
|
83260
|
+
return targetCodeListMap == null ? void 0 : targetCodeListMap.get(id);
|
|
83261
|
+
}
|
|
83040
83262
|
/**
|
|
83041
83263
|
* 新建 hub 应用
|
|
83042
83264
|
*
|
|
@@ -83184,6 +83406,16 @@ var AppHub = class {
|
|
|
83184
83406
|
app.destroy();
|
|
83185
83407
|
});
|
|
83186
83408
|
}
|
|
83409
|
+
/**
|
|
83410
|
+
* 合并子应用代码表
|
|
83411
|
+
* @param codeList
|
|
83412
|
+
*/
|
|
83413
|
+
mergeSubAppCodeList(codeList) {
|
|
83414
|
+
if (!this.modelLoaderProvider) {
|
|
83415
|
+
throw new RuntimeError72(ibiz.i18n.t("runtime.utils.firstregister"));
|
|
83416
|
+
}
|
|
83417
|
+
this.modelLoaderProvider.mergeSubAppCodeList(codeList);
|
|
83418
|
+
}
|
|
83187
83419
|
};
|
|
83188
83420
|
|
|
83189
83421
|
// src/engine/engine-factory.ts
|
|
@@ -83831,7 +84063,7 @@ var ViewEngineBase = class {
|
|
|
83831
84063
|
};
|
|
83832
84064
|
|
|
83833
84065
|
// src/engine/md-view.engine.ts
|
|
83834
|
-
import { RuntimeModelError as
|
|
84066
|
+
import { RuntimeModelError as RuntimeModelError75 } from "@ibiz-template/core";
|
|
83835
84067
|
import { clone as clone60 } from "ramda";
|
|
83836
84068
|
var MDViewEngine = class extends ViewEngineBase {
|
|
83837
84069
|
/**
|
|
@@ -84083,7 +84315,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
84083
84315
|
view: this.view
|
|
84084
84316
|
}));
|
|
84085
84317
|
if (result === -1) {
|
|
84086
|
-
throw new
|
|
84318
|
+
throw new RuntimeModelError75(
|
|
84087
84319
|
this.view.model,
|
|
84088
84320
|
ibiz.i18n.t("runtime.engine.logicOpendata")
|
|
84089
84321
|
);
|
|
@@ -84115,7 +84347,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
84115
84347
|
(item) => item.id === "newdata"
|
|
84116
84348
|
);
|
|
84117
84349
|
if (!openAppViewLogic) {
|
|
84118
|
-
throw new
|
|
84350
|
+
throw new RuntimeModelError75(
|
|
84119
84351
|
this.view.model,
|
|
84120
84352
|
ibiz.i18n.t("runtime.engine.logicNewdata")
|
|
84121
84353
|
);
|
|
@@ -84135,7 +84367,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
84135
84367
|
view: this.view
|
|
84136
84368
|
}));
|
|
84137
84369
|
if (result === -1) {
|
|
84138
|
-
throw new
|
|
84370
|
+
throw new RuntimeModelError75(
|
|
84139
84371
|
this.view.model,
|
|
84140
84372
|
ibiz.i18n.t("runtime.engine.logicNewdata")
|
|
84141
84373
|
);
|
|
@@ -85150,13 +85382,13 @@ var ScriptExecutor = class extends LogicExecutor {
|
|
|
85150
85382
|
};
|
|
85151
85383
|
|
|
85152
85384
|
// src/logic-scheduler/executor/app-de-ui-logic-executor.ts
|
|
85153
|
-
import { RuntimeModelError as
|
|
85385
|
+
import { RuntimeModelError as RuntimeModelError76 } from "@ibiz-template/core";
|
|
85154
85386
|
var AppDEUILogicExecutor = class extends LogicExecutor {
|
|
85155
85387
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
85156
85388
|
execute(executeParams) {
|
|
85157
85389
|
const { appDEUILogicId, appDataEntityId } = this.logic;
|
|
85158
85390
|
if (!appDEUILogicId) {
|
|
85159
|
-
throw new
|
|
85391
|
+
throw new RuntimeModelError76(
|
|
85160
85392
|
this.logic,
|
|
85161
85393
|
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
85162
85394
|
);
|
|
@@ -85647,7 +85879,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
85647
85879
|
};
|
|
85648
85880
|
|
|
85649
85881
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
85650
|
-
import { RuntimeError as RuntimeError78, RuntimeModelError as
|
|
85882
|
+
import { RuntimeError as RuntimeError78, RuntimeModelError as RuntimeModelError77 } from "@ibiz-template/core";
|
|
85651
85883
|
var TimerTrigger = class extends LogicTrigger {
|
|
85652
85884
|
constructor() {
|
|
85653
85885
|
super(...arguments);
|
|
@@ -85655,7 +85887,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
85655
85887
|
}
|
|
85656
85888
|
start() {
|
|
85657
85889
|
if (!this.logic.timer) {
|
|
85658
|
-
throw new
|
|
85890
|
+
throw new RuntimeModelError77(
|
|
85659
85891
|
this.logic,
|
|
85660
85892
|
ibiz.i18n.t("runtime.logicScheduler.trigger.timerLacks")
|
|
85661
85893
|
);
|
|
@@ -85695,7 +85927,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
85695
85927
|
import {
|
|
85696
85928
|
ModelError as ModelError34,
|
|
85697
85929
|
RuntimeError as RuntimeError79,
|
|
85698
|
-
RuntimeModelError as
|
|
85930
|
+
RuntimeModelError as RuntimeModelError78
|
|
85699
85931
|
} from "@ibiz-template/core";
|
|
85700
85932
|
import { notNilEmpty as notNilEmpty11 } from "qx-util";
|
|
85701
85933
|
var AppUILogicExecutor = class extends LogicExecutor {
|
|
@@ -85743,7 +85975,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
85743
85975
|
} else {
|
|
85744
85976
|
openViewRef = appUILogic.openDataAppView;
|
|
85745
85977
|
if (!openViewRef) {
|
|
85746
|
-
throw new
|
|
85978
|
+
throw new RuntimeModelError78(
|
|
85747
85979
|
appUILogic,
|
|
85748
85980
|
ibiz.i18n.t(
|
|
85749
85981
|
"runtime.logicScheduler.executor.defaultOpendataViewLogic"
|
|
@@ -85753,7 +85985,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
85753
85985
|
}
|
|
85754
85986
|
const openView = openViewRef.refAppViewId;
|
|
85755
85987
|
if (!openView) {
|
|
85756
|
-
throw new
|
|
85988
|
+
throw new RuntimeModelError78(
|
|
85757
85989
|
appUILogic,
|
|
85758
85990
|
ibiz.i18n.t("runtime.logicScheduler.executor.noActuallyReference")
|
|
85759
85991
|
);
|
|
@@ -85791,7 +86023,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
85791
86023
|
);
|
|
85792
86024
|
const typeFileName = appDataEntity.formTypeAppDEFieldId || appDataEntity.dataTypeAppDEFieldId;
|
|
85793
86025
|
if (!typeFileName) {
|
|
85794
|
-
throw new
|
|
86026
|
+
throw new RuntimeModelError78(
|
|
85795
86027
|
appUILogic,
|
|
85796
86028
|
ibiz.i18n.t("runtime.logicScheduler.executor.attributeConfiguration", {
|
|
85797
86029
|
codeName: appDataEntity.codeName
|
|
@@ -85801,7 +86033,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
85801
86033
|
const { data } = parameters;
|
|
85802
86034
|
const formTypeValue = data[0][typeFileName];
|
|
85803
86035
|
if (!formTypeValue) {
|
|
85804
|
-
throw new
|
|
86036
|
+
throw new RuntimeModelError78(
|
|
85805
86037
|
appUILogic,
|
|
85806
86038
|
ibiz.i18n.t("runtime.logicScheduler.executor.entityAttributeValues")
|
|
85807
86039
|
);
|
|
@@ -85848,7 +86080,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
85848
86080
|
return viewRef.refMode.toLowerCase() !== parentDeName;
|
|
85849
86081
|
});
|
|
85850
86082
|
if (!newViewRef) {
|
|
85851
|
-
throw new
|
|
86083
|
+
throw new RuntimeModelError78(
|
|
85852
86084
|
appUILogic,
|
|
85853
86085
|
ibiz.i18n.t("runtime.logicScheduler.executor.selectionView")
|
|
85854
86086
|
);
|
|
@@ -85861,7 +86093,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
85861
86093
|
} else {
|
|
85862
86094
|
newViewRef = newDataAppView;
|
|
85863
86095
|
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
85864
|
-
throw new
|
|
86096
|
+
throw new RuntimeModelError78(
|
|
85865
86097
|
appUILogic,
|
|
85866
86098
|
ibiz.i18n.t("runtime.logicScheduler.executor.newdataViewLogic")
|
|
85867
86099
|
);
|
|
@@ -85934,7 +86166,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
85934
86166
|
const { context, params, ...rest } = parameters;
|
|
85935
86167
|
const { view } = parameters;
|
|
85936
86168
|
if (!wizardAppView || !wizardAppView.refAppViewId) {
|
|
85937
|
-
throw new
|
|
86169
|
+
throw new RuntimeModelError78(
|
|
85938
86170
|
appUILogic,
|
|
85939
86171
|
ibiz.i18n.t("runtime.logicScheduler.executor.indexEntity")
|
|
85940
86172
|
);
|
|
@@ -85992,7 +86224,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
85992
86224
|
const minorDERs = selfDe.minorAppDERSs;
|
|
85993
86225
|
const pickParentDeName = newViewRef.refMode.toLowerCase();
|
|
85994
86226
|
if (!minorDERs) {
|
|
85995
|
-
throw new
|
|
86227
|
+
throw new RuntimeModelError78(
|
|
85996
86228
|
selfDe,
|
|
85997
86229
|
ibiz.i18n.t("runtime.logicScheduler.executor.relationships")
|
|
85998
86230
|
);
|
|
@@ -86103,12 +86335,12 @@ var ControlEventTrigger = class extends LogicTrigger {
|
|
|
86103
86335
|
};
|
|
86104
86336
|
|
|
86105
86337
|
// src/logic-scheduler/executor/app-ui-action-executor.ts
|
|
86106
|
-
import { RuntimeModelError as
|
|
86338
|
+
import { RuntimeModelError as RuntimeModelError79 } from "@ibiz-template/core";
|
|
86107
86339
|
var AppDEUIActionExecutor = class extends LogicExecutor {
|
|
86108
86340
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
86109
86341
|
execute(executeParams) {
|
|
86110
86342
|
if (!this.logic.appDEUIActionId) {
|
|
86111
|
-
throw new
|
|
86343
|
+
throw new RuntimeModelError79(
|
|
86112
86344
|
this.logic,
|
|
86113
86345
|
ibiz.i18n.t("runtime.logicScheduler.executor.missingTrigger")
|
|
86114
86346
|
);
|
|
@@ -86610,7 +86842,8 @@ var en = {
|
|
|
86610
86842
|
noSetStartNode: "No start node set",
|
|
86611
86843
|
startExecuting: "Start executing entity logic, logic identifier: {id} - logic name: {name}",
|
|
86612
86844
|
endExecution: "End execution entity logic, logic identifier: {id} - logic name: {name}",
|
|
86613
|
-
noFoundEntityLogic: "{dataEntityId} entity logic not found {deDELogicId}"
|
|
86845
|
+
noFoundEntityLogic: "{dataEntityId} entity logic not found {deDELogicId}",
|
|
86846
|
+
logicalNodeOperation: "Logical node {name} operation parameter value:"
|
|
86614
86847
|
}
|
|
86615
86848
|
},
|
|
86616
86849
|
engine: {
|
|
@@ -87267,7 +87500,8 @@ var zhCn = {
|
|
|
87267
87500
|
noSetStartNode: "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9",
|
|
87268
87501
|
startExecuting: "\u5F00\u59CB\u6267\u884C\u5B9E\u4F53\u903B\u8F91\uFF0C\u903B\u8F91\u6807\u8BC6\uFF1A{id}-\u903B\u8F91\u540D\u79F0\uFF1A{name}",
|
|
87269
87502
|
endExecution: "\u7ED3\u675F\u6267\u884C\u5B9E\u4F53\u903B\u8F91\uFF0C\u903B\u8F91\u6807\u8BC6\uFF1A{id}-\u903B\u8F91\u540D\u79F0\uFF1A{name}",
|
|
87270
|
-
noFoundEntityLogic: "{dataEntityId}\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91{deDELogicId}"
|
|
87503
|
+
noFoundEntityLogic: "{dataEntityId}\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91{deDELogicId}",
|
|
87504
|
+
logicalNodeOperation: "\u903B\u8F91\u8282\u70B9{name}\u64CD\u4F5C\u53C2\u6570\u503C:"
|
|
87271
87505
|
}
|
|
87272
87506
|
},
|
|
87273
87507
|
engine: {
|
|
@@ -87943,6 +88177,7 @@ export {
|
|
|
87943
88177
|
convertNavDataByArray,
|
|
87944
88178
|
convertObjectToNavParams,
|
|
87945
88179
|
createImportSchema,
|
|
88180
|
+
deepFillSubAppId,
|
|
87946
88181
|
deleteImportSchema,
|
|
87947
88182
|
downloadImportTemplate,
|
|
87948
88183
|
en,
|