@ibiz-template/runtime 0.7.41-alpha.101 → 0.7.41-alpha.102
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 +325 -288
- package/dist/index.system.min.js +1 -1
- package/out/controller/common/editor/code-list-editor.controller.d.ts.map +1 -1
- package/out/controller/common/editor/code-list-editor.controller.js +5 -4
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +4 -0
- package/out/controller/control/kanban/kanban.controller.js +1 -1
- package/out/interface/provider/i-app-func-block.provider.d.ts +69 -0
- package/out/interface/provider/i-app-func-block.provider.d.ts.map +1 -0
- package/out/interface/provider/i-app-func-block.provider.js +1 -0
- package/out/interface/provider/index.d.ts +1 -0
- package/out/interface/provider/index.d.ts.map +1 -1
- package/out/interface/service/service/i-auth.service.d.ts +5 -0
- package/out/interface/service/service/i-auth.service.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/logic-scheduler/executor/script-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/script-executor.js +9 -3
- package/out/register/helper/app-func-block-register.d.ts +20 -0
- package/out/register/helper/app-func-block-register.d.ts.map +1 -0
- package/out/register/helper/app-func-block-register.js +29 -0
- package/out/register/helper/index.d.ts +1 -0
- package/out/register/helper/index.d.ts.map +1 -1
- package/out/register/helper/index.js +1 -0
- package/out/service/service/auth/v7-auth.service.d.ts +1 -1
- package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
- package/out/service/service/auth/v7-auth.service.js +4 -7
- package/out/utils/script/script-function.d.ts.map +1 -1
- package/out/utils/script/script-function.js +0 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -19562,7 +19562,7 @@ var RegisterCenter = class {
|
|
|
19562
19562
|
};
|
|
19563
19563
|
|
|
19564
19564
|
// src/command/app/app-func/app-func.ts
|
|
19565
|
-
import { ModelError as ModelError31, RuntimeError as
|
|
19565
|
+
import { ModelError as ModelError31, RuntimeError as RuntimeError72 } from "@ibiz-template/core";
|
|
19566
19566
|
|
|
19567
19567
|
// src/utils/error-handler/default-error-handler.ts
|
|
19568
19568
|
import {
|
|
@@ -22017,7 +22017,6 @@ var ScriptFunction = class {
|
|
|
22017
22017
|
ibiz.i18n.t("runtime.utils.script.errorReportingScript"),
|
|
22018
22018
|
code
|
|
22019
22019
|
);
|
|
22020
|
-
throw error;
|
|
22021
22020
|
}
|
|
22022
22021
|
};
|
|
22023
22022
|
}
|
|
@@ -23062,7 +23061,7 @@ import { clone as clone56 } from "ramda";
|
|
|
23062
23061
|
// src/utils/theme-util/custom-theme-util.ts
|
|
23063
23062
|
import { notNilEmpty as notNilEmpty10 } from "qx-util";
|
|
23064
23063
|
import { clone as clone55 } from "ramda";
|
|
23065
|
-
import { RuntimeError as
|
|
23064
|
+
import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
|
|
23066
23065
|
|
|
23067
23066
|
// src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
|
|
23068
23067
|
import { isEmpty as isEmpty4, isNil as isNil5 } from "ramda";
|
|
@@ -29098,7 +29097,6 @@ var EditorController = class {
|
|
|
29098
29097
|
};
|
|
29099
29098
|
|
|
29100
29099
|
// src/controller/common/editor/code-list-editor.controller.ts
|
|
29101
|
-
import { RuntimeModelError as RuntimeModelError16 } from "@ibiz-template/core";
|
|
29102
29100
|
var CodeListEditorController = class extends EditorController {
|
|
29103
29101
|
constructor() {
|
|
29104
29102
|
super(...arguments);
|
|
@@ -29162,10 +29160,14 @@ var CodeListEditorController = class extends EditorController {
|
|
|
29162
29160
|
this.allItems = this.toBoolean(this.editorParams.allitems);
|
|
29163
29161
|
}
|
|
29164
29162
|
if (this.editorParams.itemsText) {
|
|
29165
|
-
this.itemsText =
|
|
29163
|
+
this.itemsText = ibiz.appUtil.resolveI18nText(
|
|
29164
|
+
this.editorParams.itemsText
|
|
29165
|
+
);
|
|
29166
29166
|
}
|
|
29167
29167
|
if (this.editorParams.itemstext) {
|
|
29168
|
-
this.itemsText =
|
|
29168
|
+
this.itemsText = ibiz.appUtil.resolveI18nText(
|
|
29169
|
+
this.editorParams.itemstext
|
|
29170
|
+
);
|
|
29169
29171
|
}
|
|
29170
29172
|
}
|
|
29171
29173
|
}
|
|
@@ -29214,12 +29216,12 @@ var CodeListEditorController = class extends EditorController {
|
|
|
29214
29216
|
}
|
|
29215
29217
|
if (this.editorParams.enumOptions)
|
|
29216
29218
|
return this.editorParams.enumOptions;
|
|
29217
|
-
|
|
29218
|
-
this.model,
|
|
29219
|
+
ibiz.log.error(
|
|
29219
29220
|
ibiz.i18n.t("runtime.controller.common.editor.editorNoConfigured", {
|
|
29220
29221
|
editorType: this.model.editorType
|
|
29221
29222
|
})
|
|
29222
29223
|
);
|
|
29224
|
+
return [];
|
|
29223
29225
|
}
|
|
29224
29226
|
};
|
|
29225
29227
|
|
|
@@ -29784,7 +29786,7 @@ var ControlController = class extends BaseController {
|
|
|
29784
29786
|
import {
|
|
29785
29787
|
RuntimeError as RuntimeError17,
|
|
29786
29788
|
isElementSame,
|
|
29787
|
-
RuntimeModelError as
|
|
29789
|
+
RuntimeModelError as RuntimeModelError16
|
|
29788
29790
|
} from "@ibiz-template/core";
|
|
29789
29791
|
import { isNil as isNil13 } from "ramda";
|
|
29790
29792
|
import { isArray as isArray6 } from "lodash-es";
|
|
@@ -30472,7 +30474,7 @@ var MDControlController = class extends ControlController {
|
|
|
30472
30474
|
async importData() {
|
|
30473
30475
|
const { appDataEntityId, dedataImportId } = this.model;
|
|
30474
30476
|
if (!appDataEntityId || !dedataImportId) {
|
|
30475
|
-
throw new
|
|
30477
|
+
throw new RuntimeModelError16(
|
|
30476
30478
|
this.model,
|
|
30477
30479
|
ibiz.i18n.t("runtime.controller.common.control.noImportModel")
|
|
30478
30480
|
);
|
|
@@ -30682,7 +30684,7 @@ var MDControlController = class extends ControlController {
|
|
|
30682
30684
|
import {
|
|
30683
30685
|
RuntimeError as RuntimeError18,
|
|
30684
30686
|
recursiveIterate as recursiveIterate2,
|
|
30685
|
-
RuntimeModelError as
|
|
30687
|
+
RuntimeModelError as RuntimeModelError17,
|
|
30686
30688
|
findRecursiveChild
|
|
30687
30689
|
} from "@ibiz-template/core";
|
|
30688
30690
|
|
|
@@ -31177,7 +31179,7 @@ var AppMenuController = class extends ControlController {
|
|
|
31177
31179
|
return provider.onClick(menuItem, event, this);
|
|
31178
31180
|
}
|
|
31179
31181
|
if (!menuItem.appFuncId) {
|
|
31180
|
-
throw new
|
|
31182
|
+
throw new RuntimeModelError17(
|
|
31181
31183
|
menuItem,
|
|
31182
31184
|
ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
|
|
31183
31185
|
);
|
|
@@ -31339,7 +31341,7 @@ var AppMenuController = class extends ControlController {
|
|
|
31339
31341
|
import {
|
|
31340
31342
|
findRecursiveChild as findRecursiveChild2,
|
|
31341
31343
|
RuntimeError as RuntimeError19,
|
|
31342
|
-
RuntimeModelError as
|
|
31344
|
+
RuntimeModelError as RuntimeModelError18
|
|
31343
31345
|
} from "@ibiz-template/core";
|
|
31344
31346
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
31345
31347
|
async onClickMenuItem(id, event) {
|
|
@@ -31357,7 +31359,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
31357
31359
|
event
|
|
31358
31360
|
});
|
|
31359
31361
|
if (!menuItem.appFuncId) {
|
|
31360
|
-
throw new
|
|
31362
|
+
throw new RuntimeModelError18(
|
|
31361
31363
|
menuItem,
|
|
31362
31364
|
ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
|
|
31363
31365
|
);
|
|
@@ -31379,7 +31381,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
31379
31381
|
|
|
31380
31382
|
// src/controller/control/calendar/calendar.controller.ts
|
|
31381
31383
|
import dayjs3 from "dayjs";
|
|
31382
|
-
import { RuntimeError as RuntimeError30, RuntimeModelError as
|
|
31384
|
+
import { RuntimeError as RuntimeError30, RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
|
|
31383
31385
|
|
|
31384
31386
|
// src/controller/control/calendar/calendar.service.ts
|
|
31385
31387
|
import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
@@ -32177,11 +32179,11 @@ var CalendarService = class extends MDControlService2 {
|
|
|
32177
32179
|
import { recursiveIterate as recursiveIterate3, RuntimeError as RuntimeError29 } from "@ibiz-template/core";
|
|
32178
32180
|
|
|
32179
32181
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
32180
|
-
import { RuntimeModelError as
|
|
32182
|
+
import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
|
|
32181
32183
|
import { isArray as isArray8 } from "qx-util";
|
|
32182
32184
|
|
|
32183
32185
|
// src/ui-action/provider/ui-action-provider-base.ts
|
|
32184
|
-
import { RuntimeModelError as
|
|
32186
|
+
import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
|
|
32185
32187
|
|
|
32186
32188
|
// src/ui-logic/index.ts
|
|
32187
32189
|
import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
|
|
@@ -32190,7 +32192,7 @@ import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
|
|
|
32190
32192
|
import {
|
|
32191
32193
|
IBizContext as IBizContext3,
|
|
32192
32194
|
ModelError as ModelError18,
|
|
32193
|
-
RuntimeModelError as
|
|
32195
|
+
RuntimeModelError as RuntimeModelError35
|
|
32194
32196
|
} from "@ibiz-template/core";
|
|
32195
32197
|
import { clone as clone14 } from "ramda";
|
|
32196
32198
|
|
|
@@ -32345,20 +32347,20 @@ var UILogicContext = class {
|
|
|
32345
32347
|
};
|
|
32346
32348
|
|
|
32347
32349
|
// src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts
|
|
32348
|
-
import { RuntimeModelError as
|
|
32350
|
+
import { RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
|
|
32349
32351
|
|
|
32350
32352
|
// src/ui-logic/ui-logic-link/ui-logic-link.ts
|
|
32351
32353
|
import { ModelError as ModelError13 } from "@ibiz-template/core";
|
|
32352
32354
|
|
|
32353
32355
|
// src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
|
|
32354
|
-
import { RuntimeModelError as
|
|
32356
|
+
import { RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
|
|
32355
32357
|
|
|
32356
32358
|
// src/ui-logic/ui-logic-link/ui-logic-link-cond/ui-logic-link-cond.ts
|
|
32357
32359
|
var UILogicLinkCond = class {
|
|
32358
32360
|
};
|
|
32359
32361
|
|
|
32360
32362
|
// src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
|
|
32361
|
-
import { ModelError as ModelError12, RuntimeModelError as
|
|
32363
|
+
import { ModelError as ModelError12, RuntimeModelError as RuntimeModelError19 } from "@ibiz-template/core";
|
|
32362
32364
|
|
|
32363
32365
|
// src/ui-logic/utils/handle-src-val.ts
|
|
32364
32366
|
import { ModelError as ModelError11 } from "@ibiz-template/core";
|
|
@@ -32497,7 +32499,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
32497
32499
|
switch (this.type) {
|
|
32498
32500
|
case "ENTITYFIELD": {
|
|
32499
32501
|
if (!this.value) {
|
|
32500
|
-
throw new
|
|
32502
|
+
throw new RuntimeModelError19(
|
|
32501
32503
|
this.model,
|
|
32502
32504
|
ibiz.i18n.t("runtime.uiLogic.currentConditionValue")
|
|
32503
32505
|
);
|
|
@@ -32509,7 +32511,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
32509
32511
|
}
|
|
32510
32512
|
case "SRCENTITYFIELD": {
|
|
32511
32513
|
if (!this.value) {
|
|
32512
|
-
throw new
|
|
32514
|
+
throw new RuntimeModelError19(
|
|
32513
32515
|
this.model,
|
|
32514
32516
|
ibiz.i18n.t("runtime.uiLogic.sourceDataObjectAttribute")
|
|
32515
32517
|
);
|
|
@@ -32600,7 +32602,7 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
|
|
|
32600
32602
|
test(ctx, context, data) {
|
|
32601
32603
|
let bol = this.op !== "OR";
|
|
32602
32604
|
if (this.conds.length === 0) {
|
|
32603
|
-
throw new
|
|
32605
|
+
throw new RuntimeModelError20(
|
|
32604
32606
|
this.model,
|
|
32605
32607
|
ibiz.i18n.t("runtime.uiLogic.interfaceConnectionConditional")
|
|
32606
32608
|
);
|
|
@@ -32749,13 +32751,13 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
32749
32751
|
retDEUILogicParamId
|
|
32750
32752
|
} = this.model;
|
|
32751
32753
|
if (!dstAppDataEntityId) {
|
|
32752
|
-
throw new
|
|
32754
|
+
throw new RuntimeModelError21(
|
|
32753
32755
|
this.model,
|
|
32754
32756
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedEntity")
|
|
32755
32757
|
);
|
|
32756
32758
|
}
|
|
32757
32759
|
if (!dstAppDEActionId) {
|
|
32758
|
-
throw new
|
|
32760
|
+
throw new RuntimeModelError21(
|
|
32759
32761
|
this.model,
|
|
32760
32762
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedBehavior")
|
|
32761
32763
|
);
|
|
@@ -32786,7 +32788,7 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
32786
32788
|
};
|
|
32787
32789
|
|
|
32788
32790
|
// src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts
|
|
32789
|
-
import { RuntimeModelError as
|
|
32791
|
+
import { RuntimeModelError as RuntimeModelError22 } from "@ibiz-template/core";
|
|
32790
32792
|
var DEUIActionNode = class extends UILogicNode {
|
|
32791
32793
|
async exec(ctx) {
|
|
32792
32794
|
const {
|
|
@@ -32797,7 +32799,7 @@ var DEUIActionNode = class extends UILogicNode {
|
|
|
32797
32799
|
} = this.model;
|
|
32798
32800
|
const { data, parameters } = ctx;
|
|
32799
32801
|
if (!dstAppDEUIActionId) {
|
|
32800
|
-
throw new
|
|
32802
|
+
throw new RuntimeModelError22(
|
|
32801
32803
|
this.model,
|
|
32802
32804
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredInterfaceBehavior")
|
|
32803
32805
|
);
|
|
@@ -33072,26 +33074,26 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
33072
33074
|
};
|
|
33073
33075
|
|
|
33074
33076
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
33075
|
-
import { RuntimeError as RuntimeError22, RuntimeModelError as
|
|
33077
|
+
import { RuntimeError as RuntimeError22, RuntimeModelError as RuntimeModelError23 } from "@ibiz-template/core";
|
|
33076
33078
|
import { isFunction } from "lodash-es";
|
|
33077
33079
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
33078
33080
|
async exec(ctx) {
|
|
33079
33081
|
ctx.isEndNode = true;
|
|
33080
33082
|
const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
|
|
33081
33083
|
if (!invokeCtrlId) {
|
|
33082
|
-
throw new
|
|
33084
|
+
throw new RuntimeModelError23(
|
|
33083
33085
|
this.model,
|
|
33084
33086
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredInterfaceObject")
|
|
33085
33087
|
);
|
|
33086
33088
|
}
|
|
33087
33089
|
if (!invokeParamId) {
|
|
33088
|
-
throw new
|
|
33090
|
+
throw new RuntimeModelError23(
|
|
33089
33091
|
this.model,
|
|
33090
33092
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredOperatingParameters")
|
|
33091
33093
|
);
|
|
33092
33094
|
}
|
|
33093
33095
|
if (!invokeMethod) {
|
|
33094
|
-
throw new
|
|
33096
|
+
throw new RuntimeModelError23(
|
|
33095
33097
|
this.model,
|
|
33096
33098
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredCallMethod")
|
|
33097
33099
|
);
|
|
@@ -33132,12 +33134,12 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
33132
33134
|
};
|
|
33133
33135
|
|
|
33134
33136
|
// src/ui-logic/ui-logic-node/bind-param-node/bind-param-node.ts
|
|
33135
|
-
import { RuntimeModelError as
|
|
33137
|
+
import { RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
|
|
33136
33138
|
var BindParamNode2 = class extends UILogicNode {
|
|
33137
33139
|
async exec(ctx) {
|
|
33138
33140
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
33139
33141
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
33140
|
-
throw new
|
|
33142
|
+
throw new RuntimeModelError24(
|
|
33141
33143
|
this.model,
|
|
33142
33144
|
ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
|
|
33143
33145
|
);
|
|
@@ -33156,7 +33158,7 @@ var BindParamNode2 = class extends UILogicNode {
|
|
|
33156
33158
|
};
|
|
33157
33159
|
|
|
33158
33160
|
// src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts
|
|
33159
|
-
import { ModelError as ModelError16, RuntimeModelError as
|
|
33161
|
+
import { ModelError as ModelError16, RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
|
|
33160
33162
|
var MsgBoxNode = class extends UILogicNode {
|
|
33161
33163
|
constructor() {
|
|
33162
33164
|
super(...arguments);
|
|
@@ -33170,13 +33172,13 @@ var MsgBoxNode = class extends UILogicNode {
|
|
|
33170
33172
|
async exec(ctx) {
|
|
33171
33173
|
const { msgBoxType, buttonsType, msgBoxParamId } = this.model;
|
|
33172
33174
|
if (!msgBoxType) {
|
|
33173
|
-
throw new
|
|
33175
|
+
throw new RuntimeModelError25(
|
|
33174
33176
|
this.model,
|
|
33175
33177
|
ibiz.i18n.t("runtime.uiLogic.missingMessageTypeConfiguration")
|
|
33176
33178
|
);
|
|
33177
33179
|
}
|
|
33178
33180
|
if (!buttonsType) {
|
|
33179
|
-
throw new
|
|
33181
|
+
throw new RuntimeModelError25(
|
|
33180
33182
|
this.model,
|
|
33181
33183
|
ibiz.i18n.t("runtime.uiLogic.missingButtonTypeConfiguration")
|
|
33182
33184
|
);
|
|
@@ -33280,12 +33282,12 @@ var PFPluginNode = class extends UILogicNode {
|
|
|
33280
33282
|
};
|
|
33281
33283
|
|
|
33282
33284
|
// src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts
|
|
33283
|
-
import { RuntimeModelError as
|
|
33285
|
+
import { RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
|
|
33284
33286
|
var DebugParamNode2 = class extends UILogicNode {
|
|
33285
33287
|
async exec(ctx) {
|
|
33286
33288
|
const { dstDEUILogicParamId, name: name2 } = this.model;
|
|
33287
33289
|
if (!dstDEUILogicParamId) {
|
|
33288
|
-
throw new
|
|
33290
|
+
throw new RuntimeModelError26(
|
|
33289
33291
|
this.model,
|
|
33290
33292
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
33291
33293
|
);
|
|
@@ -33299,12 +33301,12 @@ var DebugParamNode2 = class extends UILogicNode {
|
|
|
33299
33301
|
};
|
|
33300
33302
|
|
|
33301
33303
|
// src/ui-logic/ui-logic-node/reset-param-node/reset-param-node.ts
|
|
33302
|
-
import { RuntimeModelError as
|
|
33304
|
+
import { RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
|
|
33303
33305
|
var ResetParamNode2 = class extends UILogicNode {
|
|
33304
33306
|
async exec(ctx) {
|
|
33305
33307
|
const { dstDEUILogicParamId } = this.model;
|
|
33306
33308
|
if (!dstDEUILogicParamId) {
|
|
33307
|
-
throw new
|
|
33309
|
+
throw new RuntimeModelError27(
|
|
33308
33310
|
this.model,
|
|
33309
33311
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
33310
33312
|
);
|
|
@@ -33321,13 +33323,13 @@ var ResetParamNode2 = class extends UILogicNode {
|
|
|
33321
33323
|
};
|
|
33322
33324
|
|
|
33323
33325
|
// src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts
|
|
33324
|
-
import { RuntimeModelError as
|
|
33326
|
+
import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
|
|
33325
33327
|
import { clone as clone13 } from "ramda";
|
|
33326
33328
|
var CopyParamNode2 = class extends UILogicNode {
|
|
33327
33329
|
async exec(ctx) {
|
|
33328
33330
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
33329
33331
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
33330
|
-
throw new
|
|
33332
|
+
throw new RuntimeModelError28(
|
|
33331
33333
|
this.model,
|
|
33332
33334
|
ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
|
|
33333
33335
|
);
|
|
@@ -33346,7 +33348,7 @@ var CopyParamNode2 = class extends UILogicNode {
|
|
|
33346
33348
|
};
|
|
33347
33349
|
|
|
33348
33350
|
// src/ui-logic/ui-logic-node/append-param-node/append-param-node.ts
|
|
33349
|
-
import { RuntimeModelError as
|
|
33351
|
+
import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
|
|
33350
33352
|
var AppendParamNode2 = class extends UILogicNode {
|
|
33351
33353
|
async exec(ctx) {
|
|
33352
33354
|
const {
|
|
@@ -33357,7 +33359,7 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
33357
33359
|
srcSize
|
|
33358
33360
|
} = this.model;
|
|
33359
33361
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
33360
|
-
throw new
|
|
33362
|
+
throw new RuntimeModelError29(
|
|
33361
33363
|
this.model,
|
|
33362
33364
|
ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
|
|
33363
33365
|
);
|
|
@@ -33382,12 +33384,12 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
33382
33384
|
};
|
|
33383
33385
|
|
|
33384
33386
|
// src/ui-logic/ui-logic-node/sort-param-node/sort-param-node.ts
|
|
33385
|
-
import { RuntimeModelError as
|
|
33387
|
+
import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
|
|
33386
33388
|
var SortParamNode2 = class extends UILogicNode {
|
|
33387
33389
|
async exec(ctx) {
|
|
33388
33390
|
const { dstDEUILogicParamId, dstSortDir, dstFieldName } = this.model;
|
|
33389
33391
|
if (!dstDEUILogicParamId || !dstFieldName) {
|
|
33390
|
-
throw new
|
|
33392
|
+
throw new RuntimeModelError30(
|
|
33391
33393
|
this.model,
|
|
33392
33394
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingParameterProperty")
|
|
33393
33395
|
);
|
|
@@ -33411,12 +33413,12 @@ var SortParamNode2 = class extends UILogicNode {
|
|
|
33411
33413
|
};
|
|
33412
33414
|
|
|
33413
33415
|
// src/ui-logic/ui-logic-node/renew-param-node/renew-param-node.ts
|
|
33414
|
-
import { RuntimeModelError as
|
|
33416
|
+
import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
|
|
33415
33417
|
var RenewParamNode2 = class extends UILogicNode {
|
|
33416
33418
|
async exec(ctx) {
|
|
33417
33419
|
const { dstDEUILogicParamId } = this.model;
|
|
33418
33420
|
if (!dstDEUILogicParamId) {
|
|
33419
|
-
throw new
|
|
33421
|
+
throw new RuntimeModelError31(
|
|
33420
33422
|
this.model,
|
|
33421
33423
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
|
|
33422
33424
|
);
|
|
@@ -33433,7 +33435,7 @@ var RenewParamNode2 = class extends UILogicNode {
|
|
|
33433
33435
|
};
|
|
33434
33436
|
|
|
33435
33437
|
// src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts
|
|
33436
|
-
import { RuntimeModelError as
|
|
33438
|
+
import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
33437
33439
|
var DataSetNode2 = class extends UILogicNode {
|
|
33438
33440
|
async exec(ctx) {
|
|
33439
33441
|
const {
|
|
@@ -33443,7 +33445,7 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
33443
33445
|
retDEUILogicParamId
|
|
33444
33446
|
} = this.model;
|
|
33445
33447
|
if (!dstDEUILogicParamId) {
|
|
33446
|
-
throw new
|
|
33448
|
+
throw new RuntimeModelError32(
|
|
33447
33449
|
this.model,
|
|
33448
33450
|
ibiz.i18n.t("runtime.uiLogic.missingfilter")
|
|
33449
33451
|
);
|
|
@@ -33488,25 +33490,25 @@ var ThrowExceptionNode2 = class extends UILogicNode {
|
|
|
33488
33490
|
};
|
|
33489
33491
|
|
|
33490
33492
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
33491
|
-
import { RuntimeError as RuntimeError24, RuntimeModelError as
|
|
33493
|
+
import { RuntimeError as RuntimeError24, RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
|
|
33492
33494
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
33493
33495
|
async exec(ctx) {
|
|
33494
33496
|
ctx.isEndNode = true;
|
|
33495
33497
|
const { eventName, eventParamId, fireCtrlId } = this.model;
|
|
33496
33498
|
if (!fireCtrlId) {
|
|
33497
|
-
throw new
|
|
33499
|
+
throw new RuntimeModelError33(
|
|
33498
33500
|
this.model,
|
|
33499
33501
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredTriggerObject")
|
|
33500
33502
|
);
|
|
33501
33503
|
}
|
|
33502
33504
|
if (!eventName) {
|
|
33503
|
-
throw new
|
|
33505
|
+
throw new RuntimeModelError33(
|
|
33504
33506
|
this.model,
|
|
33505
33507
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredEvent")
|
|
33506
33508
|
);
|
|
33507
33509
|
}
|
|
33508
33510
|
if (!eventParamId) {
|
|
33509
|
-
throw new
|
|
33511
|
+
throw new RuntimeModelError33(
|
|
33510
33512
|
this.model,
|
|
33511
33513
|
ibiz.i18n.t("runtime.uiLogic.noConfiguredEventParameters")
|
|
33512
33514
|
);
|
|
@@ -33541,7 +33543,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
33541
33543
|
};
|
|
33542
33544
|
|
|
33543
33545
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
33544
|
-
import { RuntimeError as RuntimeError25, RuntimeModelError as
|
|
33546
|
+
import { RuntimeError as RuntimeError25, RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
|
|
33545
33547
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
33546
33548
|
async exec(ctx) {
|
|
33547
33549
|
const {
|
|
@@ -33551,19 +33553,19 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
33551
33553
|
retDEUILogicParamId
|
|
33552
33554
|
} = this.model;
|
|
33553
33555
|
if (!dstAppDataEntityId) {
|
|
33554
|
-
throw new
|
|
33556
|
+
throw new RuntimeModelError34(
|
|
33555
33557
|
this.model,
|
|
33556
33558
|
ibiz.i18n.t("runtime.uiLogic.noEntityConfigured")
|
|
33557
33559
|
);
|
|
33558
33560
|
}
|
|
33559
33561
|
if (!dstAppDELogicId) {
|
|
33560
|
-
throw new
|
|
33562
|
+
throw new RuntimeModelError34(
|
|
33561
33563
|
this.model,
|
|
33562
33564
|
ibiz.i18n.t("runtime.uiLogic.noEntityLogicConfigured")
|
|
33563
33565
|
);
|
|
33564
33566
|
}
|
|
33565
33567
|
if (!dstDEUILogicParamId) {
|
|
33566
|
-
throw new
|
|
33568
|
+
throw new RuntimeModelError34(
|
|
33567
33569
|
this.model,
|
|
33568
33570
|
ibiz.i18n.t("runtime.uiLogic.noIncomingLogic")
|
|
33569
33571
|
);
|
|
@@ -33792,7 +33794,7 @@ var UILogic = class {
|
|
|
33792
33794
|
this.params = /* @__PURE__ */ new Map();
|
|
33793
33795
|
var _a3;
|
|
33794
33796
|
if (!((_a3 = model.deuilogicNodes) == null ? void 0 : _a3.length)) {
|
|
33795
|
-
throw new
|
|
33797
|
+
throw new RuntimeModelError35(
|
|
33796
33798
|
model,
|
|
33797
33799
|
ibiz.i18n.t("runtime.uiLogic.noLogicalNodesConfigured")
|
|
33798
33800
|
);
|
|
@@ -33922,7 +33924,7 @@ var UILogic = class {
|
|
|
33922
33924
|
const start = this.nodes.get(startDEUILogicNodeId);
|
|
33923
33925
|
await this.deepExec(start, ctx);
|
|
33924
33926
|
} else {
|
|
33925
|
-
throw new
|
|
33927
|
+
throw new RuntimeModelError35(
|
|
33926
33928
|
this.model,
|
|
33927
33929
|
ibiz.i18n.t("runtime.deLogic.deLogicNode.noSetStartNode")
|
|
33928
33930
|
);
|
|
@@ -34127,7 +34129,7 @@ var UIActionProviderBase = class {
|
|
|
34127
34129
|
const { appDEUILogicId, appDataEntityId, uilogicAttachMode, appId: appId2 } = action;
|
|
34128
34130
|
if (uilogicAttachMode === "REPLACE") {
|
|
34129
34131
|
if (!appDEUILogicId) {
|
|
34130
|
-
throw new
|
|
34132
|
+
throw new RuntimeModelError36(
|
|
34131
34133
|
action,
|
|
34132
34134
|
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
34133
34135
|
);
|
|
@@ -34170,7 +34172,7 @@ var UIActionProviderBase = class {
|
|
|
34170
34172
|
}
|
|
34171
34173
|
if (action.uilogicAttachMode === "AFTER") {
|
|
34172
34174
|
if (!appDEUILogicId) {
|
|
34173
|
-
throw new
|
|
34175
|
+
throw new RuntimeModelError36(
|
|
34174
34176
|
action,
|
|
34175
34177
|
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
34176
34178
|
);
|
|
@@ -34454,7 +34456,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
34454
34456
|
const entityName = action.appDataEntityId;
|
|
34455
34457
|
const methodName = action.appDEMethodId;
|
|
34456
34458
|
if (!entityName || !methodName) {
|
|
34457
|
-
throw new
|
|
34459
|
+
throw new RuntimeModelError37(
|
|
34458
34460
|
action,
|
|
34459
34461
|
ibiz.i18n.t("runtime.uiAction.noEntityOrBehavior")
|
|
34460
34462
|
);
|
|
@@ -34591,7 +34593,7 @@ import {
|
|
|
34591
34593
|
StringUtil as StringUtil3,
|
|
34592
34594
|
ModelError as ModelError19,
|
|
34593
34595
|
RuntimeError as RuntimeError28,
|
|
34594
|
-
RuntimeModelError as
|
|
34596
|
+
RuntimeModelError as RuntimeModelError38
|
|
34595
34597
|
} from "@ibiz-template/core";
|
|
34596
34598
|
import { clone as clone15, mergeRight as mergeRight4 } from "ramda";
|
|
34597
34599
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
@@ -34613,7 +34615,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
34613
34615
|
case "WIZARD": {
|
|
34614
34616
|
const frontPSAppView = action.frontAppViewId;
|
|
34615
34617
|
if (!frontPSAppView) {
|
|
34616
|
-
throw new
|
|
34618
|
+
throw new RuntimeModelError38(
|
|
34617
34619
|
action,
|
|
34618
34620
|
ibiz.i18n.t("runtime.uiAction.noConfiguredopenView")
|
|
34619
34621
|
);
|
|
@@ -34718,7 +34720,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
34718
34720
|
);
|
|
34719
34721
|
return result || {};
|
|
34720
34722
|
}
|
|
34721
|
-
throw new
|
|
34723
|
+
throw new RuntimeModelError38(
|
|
34722
34724
|
action,
|
|
34723
34725
|
ibiz.i18n.t("runtime.uiAction.missingConfigurationScriptCode")
|
|
34724
34726
|
);
|
|
@@ -34802,7 +34804,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
34802
34804
|
const { resultContext, resultParams, presetParams } = await this.handleParams(action, args.context, args.data, args.params);
|
|
34803
34805
|
const { appDataEntityId, appDEDataImportId, frontAppViewId } = action;
|
|
34804
34806
|
if (!appDataEntityId || !appDEDataImportId) {
|
|
34805
|
-
throw new
|
|
34807
|
+
throw new RuntimeModelError38(
|
|
34806
34808
|
action,
|
|
34807
34809
|
ibiz.i18n.t("runtime.controller.common.control.noImportModel")
|
|
34808
34810
|
);
|
|
@@ -35095,7 +35097,7 @@ var LoginOutUIActionProvider = class extends UIActionProviderBase {
|
|
|
35095
35097
|
};
|
|
35096
35098
|
|
|
35097
35099
|
// src/ui-action/provider/custom-ui-action-provider.ts
|
|
35098
|
-
import { RuntimeModelError as
|
|
35100
|
+
import { RuntimeModelError as RuntimeModelError39 } from "@ibiz-template/core";
|
|
35099
35101
|
var CustomUIActionProvider = class extends UIActionProviderBase {
|
|
35100
35102
|
async execAction(action, args) {
|
|
35101
35103
|
const { scriptCode } = action;
|
|
@@ -35107,7 +35109,7 @@ var CustomUIActionProvider = class extends UIActionProviderBase {
|
|
|
35107
35109
|
);
|
|
35108
35110
|
return result || {};
|
|
35109
35111
|
}
|
|
35110
|
-
throw new
|
|
35112
|
+
throw new RuntimeModelError39(
|
|
35111
35113
|
action,
|
|
35112
35114
|
ibiz.i18n.t("runtime.uiAction.missingConfigurationScriptCode")
|
|
35113
35115
|
);
|
|
@@ -35667,6 +35669,11 @@ var CalendarController = class extends MDControlController {
|
|
|
35667
35669
|
if ((_b2 = (_a3 = this.model.controlParam) == null ? void 0 : _a3.ctrlParams) == null ? void 0 : _b2.TIMELINECAPTIONFORMAT) {
|
|
35668
35670
|
this.timelineCaptionFormat = this.model.controlParam.ctrlParams.TIMELINECAPTIONFORMAT;
|
|
35669
35671
|
}
|
|
35672
|
+
if (this.controlParams.calendartitle) {
|
|
35673
|
+
this.state.calendarTitle = ibiz.appUtil.resolveI18nText(
|
|
35674
|
+
this.controlParams.calendartitle
|
|
35675
|
+
);
|
|
35676
|
+
}
|
|
35670
35677
|
this.state.showDetail = ((_d = (_c = this.model.controlParam) == null ? void 0 : _c.ctrlParams) == null ? void 0 : _d.SHOWDETAIL) || this.controlParams.showdetail === "true" || false;
|
|
35671
35678
|
this.service = new CalendarService(this.model);
|
|
35672
35679
|
await this.service.init(this.context);
|
|
@@ -35816,7 +35823,7 @@ var CalendarController = class extends MDControlController {
|
|
|
35816
35823
|
}
|
|
35817
35824
|
));
|
|
35818
35825
|
if (result === -1)
|
|
35819
|
-
throw new
|
|
35826
|
+
throw new RuntimeModelError40(
|
|
35820
35827
|
calendarItem,
|
|
35821
35828
|
ibiz.i18n.t("runtime.controller.common.md.logicOpendata", {
|
|
35822
35829
|
itemType: calendarItem.itemType.toLowerCase()
|
|
@@ -35852,7 +35859,7 @@ var CalendarController = class extends MDControlController {
|
|
|
35852
35859
|
}
|
|
35853
35860
|
));
|
|
35854
35861
|
if (result === -1)
|
|
35855
|
-
throw new
|
|
35862
|
+
throw new RuntimeModelError40(
|
|
35856
35863
|
calendarItem,
|
|
35857
35864
|
ibiz.i18n.t("runtime.controller.common.md.logicNewdata", {
|
|
35858
35865
|
itemType: calendarItem.itemType.toLowerCase()
|
|
@@ -36262,10 +36269,10 @@ import { isObject as isObject2, isString as isString2 } from "qx-util";
|
|
|
36262
36269
|
import { RuntimeError as RuntimeError31 } from "@ibiz-template/core";
|
|
36263
36270
|
|
|
36264
36271
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
36265
|
-
import { RuntimeModelError as
|
|
36272
|
+
import { RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
36266
36273
|
|
|
36267
36274
|
// src/controller/control/chart/generator/base-series-generator.ts
|
|
36268
|
-
import { plus, RuntimeModelError as
|
|
36275
|
+
import { plus, RuntimeModelError as RuntimeModelError41, toNumberOrNil } from "@ibiz-template/core";
|
|
36269
36276
|
import dayjs4 from "dayjs";
|
|
36270
36277
|
import minMax from "dayjs/plugin/minMax";
|
|
36271
36278
|
import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
@@ -36347,13 +36354,13 @@ var BaseSeriesGenerator = class {
|
|
|
36347
36354
|
var _a3;
|
|
36348
36355
|
const { chartSeriesEncode, caption, id, userParam } = model;
|
|
36349
36356
|
if (!model.catalogField) {
|
|
36350
|
-
throw new
|
|
36357
|
+
throw new RuntimeModelError41(
|
|
36351
36358
|
model,
|
|
36352
36359
|
ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
|
|
36353
36360
|
);
|
|
36354
36361
|
}
|
|
36355
36362
|
if (!model.valueField) {
|
|
36356
|
-
throw new
|
|
36363
|
+
throw new RuntimeModelError41(
|
|
36357
36364
|
model,
|
|
36358
36365
|
ibiz.i18n.t("runtime.controller.control.chart.missingValue")
|
|
36359
36366
|
);
|
|
@@ -37100,13 +37107,13 @@ var BaseSeriesGenerator = class {
|
|
|
37100
37107
|
var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
37101
37108
|
calcStaticOptions() {
|
|
37102
37109
|
if (this.xAxisIndex === void 0) {
|
|
37103
|
-
throw new
|
|
37110
|
+
throw new RuntimeModelError42(
|
|
37104
37111
|
this.model,
|
|
37105
37112
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
37106
37113
|
);
|
|
37107
37114
|
}
|
|
37108
37115
|
if (this.yAxisIndex === void 0) {
|
|
37109
|
-
throw new
|
|
37116
|
+
throw new RuntimeModelError42(
|
|
37110
37117
|
this.model,
|
|
37111
37118
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
37112
37119
|
);
|
|
@@ -37125,17 +37132,17 @@ var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
37125
37132
|
};
|
|
37126
37133
|
|
|
37127
37134
|
// src/controller/control/chart/generator/bar-series-generator.ts
|
|
37128
|
-
import { RuntimeModelError as
|
|
37135
|
+
import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
37129
37136
|
var BarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
37130
37137
|
calcStaticOptions() {
|
|
37131
37138
|
if (this.xAxisIndex === void 0) {
|
|
37132
|
-
throw new
|
|
37139
|
+
throw new RuntimeModelError43(
|
|
37133
37140
|
this.model,
|
|
37134
37141
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
37135
37142
|
);
|
|
37136
37143
|
}
|
|
37137
37144
|
if (this.yAxisIndex === void 0) {
|
|
37138
|
-
throw new
|
|
37145
|
+
throw new RuntimeModelError43(
|
|
37139
37146
|
this.model,
|
|
37140
37147
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
37141
37148
|
);
|
|
@@ -37191,17 +37198,17 @@ var PieSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
37191
37198
|
};
|
|
37192
37199
|
|
|
37193
37200
|
// src/controller/control/chart/generator/scatter-series-generator.ts
|
|
37194
|
-
import { RuntimeModelError as
|
|
37201
|
+
import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
|
|
37195
37202
|
var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
|
|
37196
37203
|
calcStaticOptions() {
|
|
37197
37204
|
if (this.xAxisIndex === void 0) {
|
|
37198
|
-
throw new
|
|
37205
|
+
throw new RuntimeModelError44(
|
|
37199
37206
|
this.model,
|
|
37200
37207
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
37201
37208
|
);
|
|
37202
37209
|
}
|
|
37203
37210
|
if (this.yAxisIndex === void 0) {
|
|
37204
|
-
throw new
|
|
37211
|
+
throw new RuntimeModelError44(
|
|
37205
37212
|
this.model,
|
|
37206
37213
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
37207
37214
|
);
|
|
@@ -37331,7 +37338,7 @@ var RadarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
37331
37338
|
};
|
|
37332
37339
|
|
|
37333
37340
|
// src/controller/control/chart/generator/area-series-generator.ts
|
|
37334
|
-
import { RuntimeModelError as
|
|
37341
|
+
import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
37335
37342
|
var AreaSeriesGenerator = class extends BaseSeriesGenerator {
|
|
37336
37343
|
/**
|
|
37337
37344
|
* 计算静态序列的options
|
|
@@ -37340,13 +37347,13 @@ var AreaSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
37340
37347
|
*/
|
|
37341
37348
|
calcStaticOptions() {
|
|
37342
37349
|
if (this.xAxisIndex === void 0) {
|
|
37343
|
-
throw new
|
|
37350
|
+
throw new RuntimeModelError45(
|
|
37344
37351
|
this.model,
|
|
37345
37352
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
|
|
37346
37353
|
);
|
|
37347
37354
|
}
|
|
37348
37355
|
if (this.yAxisIndex === void 0) {
|
|
37349
|
-
throw new
|
|
37356
|
+
throw new RuntimeModelError45(
|
|
37350
37357
|
this.model,
|
|
37351
37358
|
ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
|
|
37352
37359
|
);
|
|
@@ -37396,7 +37403,7 @@ var GaugeSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
37396
37403
|
// src/controller/control/chart/generator/candlestick-series-generator.ts
|
|
37397
37404
|
import { isNil as isNil16 } from "ramda";
|
|
37398
37405
|
import { isArray as isArray9, isNumber as isNumber3 } from "qx-util";
|
|
37399
|
-
import { plus as plus2, RuntimeModelError as
|
|
37406
|
+
import { plus as plus2, RuntimeModelError as RuntimeModelError46, toNumberOrNil as toNumberOrNil2 } from "@ibiz-template/core";
|
|
37400
37407
|
var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
|
|
37401
37408
|
/**
|
|
37402
37409
|
* 初始化参数
|
|
@@ -37409,7 +37416,7 @@ var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
37409
37416
|
var _a3;
|
|
37410
37417
|
const { chartSeriesEncode, caption, id, userParam, navViewParamJO } = model;
|
|
37411
37418
|
if (!model.catalogField) {
|
|
37412
|
-
throw new
|
|
37419
|
+
throw new RuntimeModelError46(
|
|
37413
37420
|
model,
|
|
37414
37421
|
ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
|
|
37415
37422
|
);
|
|
@@ -40741,7 +40748,7 @@ import { clone as clone23 } from "ramda";
|
|
|
40741
40748
|
import { isString as isString3 } from "lodash-es";
|
|
40742
40749
|
|
|
40743
40750
|
// src/controller/control/search-bar/search-bar-filter.controller.ts
|
|
40744
|
-
import { RuntimeModelError as
|
|
40751
|
+
import { RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
|
|
40745
40752
|
|
|
40746
40753
|
// src/controller/control/search-bar/util.ts
|
|
40747
40754
|
var ItemsValueOPs = [
|
|
@@ -40822,7 +40829,7 @@ var SearchBarFilterController = class {
|
|
|
40822
40829
|
async init() {
|
|
40823
40830
|
if (!this.noEditor) {
|
|
40824
40831
|
if (!this.model.editor) {
|
|
40825
|
-
throw new
|
|
40832
|
+
throw new RuntimeModelError47(
|
|
40826
40833
|
this.model,
|
|
40827
40834
|
ibiz.i18n.t("runtime.controller.control.searchBar.missingModel")
|
|
40828
40835
|
);
|
|
@@ -42922,7 +42929,7 @@ import {
|
|
|
42922
42929
|
clone as clone25,
|
|
42923
42930
|
DataTypes as DataTypes2,
|
|
42924
42931
|
isElementSame as isElementSame2,
|
|
42925
|
-
RuntimeModelError as
|
|
42932
|
+
RuntimeModelError as RuntimeModelError48
|
|
42926
42933
|
} from "@ibiz-template/core";
|
|
42927
42934
|
import { isNil as isNil18, isNotNil as isNotNil4 } from "ramda";
|
|
42928
42935
|
import { createUUID as createUUID6, isBoolean } from "qx-util";
|
|
@@ -43385,7 +43392,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
43385
43392
|
const { enableGroup } = this.state;
|
|
43386
43393
|
if (enableGroup && groupMode) {
|
|
43387
43394
|
if (!groupAppDEFieldId) {
|
|
43388
|
-
throw new
|
|
43395
|
+
throw new RuntimeModelError48(
|
|
43389
43396
|
this.model,
|
|
43390
43397
|
ibiz.i18n.t(
|
|
43391
43398
|
"runtime.controller.control.dataView.propertiesNoConfigured"
|
|
@@ -43478,7 +43485,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
43478
43485
|
async handleCodeListGroup() {
|
|
43479
43486
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
43480
43487
|
if (!groupCodeListId) {
|
|
43481
|
-
throw new
|
|
43488
|
+
throw new RuntimeModelError48(
|
|
43482
43489
|
this.model,
|
|
43483
43490
|
ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
|
|
43484
43491
|
);
|
|
@@ -43592,7 +43599,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
43592
43599
|
caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
43593
43600
|
}
|
|
43594
43601
|
if (!item.appDEFieldId) {
|
|
43595
|
-
throw new
|
|
43602
|
+
throw new RuntimeModelError48(
|
|
43596
43603
|
item,
|
|
43597
43604
|
ibiz.i18n.t("runtime.controller.control.dataView.sortingItems")
|
|
43598
43605
|
);
|
|
@@ -43813,13 +43820,13 @@ var DataViewControlController = class extends MDControlController {
|
|
|
43813
43820
|
await this.updateChangedItems([draggedItem]);
|
|
43814
43821
|
} else {
|
|
43815
43822
|
if (!minorSortAppDEFieldId)
|
|
43816
|
-
throw new
|
|
43823
|
+
throw new RuntimeModelError48(
|
|
43817
43824
|
this.model,
|
|
43818
43825
|
ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
|
|
43819
43826
|
);
|
|
43820
43827
|
const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
|
|
43821
43828
|
if (!moveAction)
|
|
43822
|
-
throw new
|
|
43829
|
+
throw new RuntimeModelError48(
|
|
43823
43830
|
this.model,
|
|
43824
43831
|
ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
|
|
43825
43832
|
);
|
|
@@ -44815,7 +44822,7 @@ import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
|
44815
44822
|
|
|
44816
44823
|
// src/controller/control/form/form/form.controller.ts
|
|
44817
44824
|
import {
|
|
44818
|
-
RuntimeModelError as
|
|
44825
|
+
RuntimeModelError as RuntimeModelError49,
|
|
44819
44826
|
debounceAndAsyncMerge,
|
|
44820
44827
|
recursiveIterate as recursiveIterate8,
|
|
44821
44828
|
EntityError,
|
|
@@ -45085,7 +45092,7 @@ var FormController = class extends ControlController {
|
|
|
45085
45092
|
return;
|
|
45086
45093
|
}
|
|
45087
45094
|
if (form.details[detail.id]) {
|
|
45088
|
-
throw new
|
|
45095
|
+
throw new RuntimeModelError49(
|
|
45089
45096
|
detail,
|
|
45090
45097
|
ibiz.i18n.t(
|
|
45091
45098
|
"runtime.controller.control.form.initializationException",
|
|
@@ -47990,7 +47997,7 @@ var FormMDCtrlController = class extends FormDetailController {
|
|
|
47990
47997
|
import {
|
|
47991
47998
|
ModelError as ModelError20,
|
|
47992
47999
|
mergeInLeft as mergeInLeft2,
|
|
47993
|
-
RuntimeModelError as
|
|
48000
|
+
RuntimeModelError as RuntimeModelError50
|
|
47994
48001
|
} from "@ibiz-template/core";
|
|
47995
48002
|
var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
47996
48003
|
constructor() {
|
|
@@ -48029,7 +48036,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
48029
48036
|
if (((_a3 = this.context) == null ? void 0 : _a3.srfrunmode) === "DESIGN") {
|
|
48030
48037
|
return;
|
|
48031
48038
|
}
|
|
48032
|
-
throw new
|
|
48039
|
+
throw new RuntimeModelError50(
|
|
48033
48040
|
this.model,
|
|
48034
48041
|
ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
|
|
48035
48042
|
);
|
|
@@ -48160,7 +48167,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
48160
48167
|
};
|
|
48161
48168
|
|
|
48162
48169
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
|
|
48163
|
-
import { RuntimeError as RuntimeError38, RuntimeModelError as
|
|
48170
|
+
import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
48164
48171
|
import { createUUID as createUUID8 } from "qx-util";
|
|
48165
48172
|
|
|
48166
48173
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
|
|
@@ -48205,7 +48212,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
48205
48212
|
if (((_a3 = this.context) == null ? void 0 : _a3.srfrunmode) === "DESIGN") {
|
|
48206
48213
|
return;
|
|
48207
48214
|
}
|
|
48208
|
-
throw new
|
|
48215
|
+
throw new RuntimeModelError51(
|
|
48209
48216
|
this.model,
|
|
48210
48217
|
ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
|
|
48211
48218
|
);
|
|
@@ -49209,7 +49216,7 @@ import { clone as clone30, isNil as isNil21 } from "ramda";
|
|
|
49209
49216
|
// src/controller/control/form/edit-form/edit-form.service.ts
|
|
49210
49217
|
import {
|
|
49211
49218
|
recursiveIterate as recursiveIterate12,
|
|
49212
|
-
RuntimeModelError as
|
|
49219
|
+
RuntimeModelError as RuntimeModelError52
|
|
49213
49220
|
} from "@ibiz-template/core";
|
|
49214
49221
|
var EditFormService = class extends FormService {
|
|
49215
49222
|
/**
|
|
@@ -49336,7 +49343,7 @@ var EditFormService = class extends FormService {
|
|
|
49336
49343
|
const wizardForm = this.model;
|
|
49337
49344
|
const methodName = (_a3 = wizardForm.goBackControlAction) == null ? void 0 : _a3.appDEMethodId;
|
|
49338
49345
|
if (!methodName) {
|
|
49339
|
-
throw new
|
|
49346
|
+
throw new RuntimeModelError52(
|
|
49340
49347
|
this.model,
|
|
49341
49348
|
ibiz.i18n.t("runtime.controller.control.form.lackBehavior")
|
|
49342
49349
|
);
|
|
@@ -50589,7 +50596,7 @@ import {
|
|
|
50589
50596
|
awaitTimeout as awaitTimeout2,
|
|
50590
50597
|
RuntimeError as RuntimeError40,
|
|
50591
50598
|
recursiveIterate as recursiveIterate13,
|
|
50592
|
-
RuntimeModelError as
|
|
50599
|
+
RuntimeModelError as RuntimeModelError54,
|
|
50593
50600
|
mergeDefaultInLeft as mergeDefaultInLeft2,
|
|
50594
50601
|
debounceAndAsyncMerge as debounceAndAsyncMerge2
|
|
50595
50602
|
} from "@ibiz-template/core";
|
|
@@ -50597,7 +50604,7 @@ import { clone as clone32 } from "ramda";
|
|
|
50597
50604
|
import dayjs5 from "dayjs";
|
|
50598
50605
|
|
|
50599
50606
|
// src/controller/control/grid/grid/grid.service.ts
|
|
50600
|
-
import { RuntimeModelError as
|
|
50607
|
+
import { RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
|
|
50601
50608
|
var GridService = class extends MDControlService2 {
|
|
50602
50609
|
/**
|
|
50603
50610
|
* 初始化属性映射
|
|
@@ -50625,7 +50632,7 @@ var GridService = class extends MDControlService2 {
|
|
|
50625
50632
|
dataType: dataItem.dataType
|
|
50626
50633
|
});
|
|
50627
50634
|
} else {
|
|
50628
|
-
throw new
|
|
50635
|
+
throw new RuntimeModelError53(
|
|
50629
50636
|
column,
|
|
50630
50637
|
ibiz.i18n.t("runtime.controller.control.grid.corresponding", {
|
|
50631
50638
|
deField
|
|
@@ -51544,7 +51551,7 @@ var GridController = class extends MDControlController {
|
|
|
51544
51551
|
(item) => item.model.appDEFieldId === groupAppDEFieldId
|
|
51545
51552
|
);
|
|
51546
51553
|
if (!this.groupFieldColumn) {
|
|
51547
|
-
throw new
|
|
51554
|
+
throw new RuntimeModelError54(
|
|
51548
51555
|
this.model,
|
|
51549
51556
|
ibiz.i18n.t("runtime.controller.control.grid.attributeColumns")
|
|
51550
51557
|
);
|
|
@@ -51555,7 +51562,7 @@ var GridController = class extends MDControlController {
|
|
|
51555
51562
|
);
|
|
51556
51563
|
if (index !== -1 && index !== 0) {
|
|
51557
51564
|
if (this.isMultistageHeader) {
|
|
51558
|
-
throw new
|
|
51565
|
+
throw new RuntimeModelError54(
|
|
51559
51566
|
this.model,
|
|
51560
51567
|
ibiz.i18n.t("runtime.controller.control.grid.configureFirstColumn", {
|
|
51561
51568
|
groupFieldName
|
|
@@ -51567,13 +51574,13 @@ var GridController = class extends MDControlController {
|
|
|
51567
51574
|
}
|
|
51568
51575
|
if (groupMode === "CODELIST") {
|
|
51569
51576
|
if (!groupCodeListId) {
|
|
51570
|
-
throw new
|
|
51577
|
+
throw new RuntimeModelError54(
|
|
51571
51578
|
this.model,
|
|
51572
51579
|
ibiz.i18n.t("runtime.controller.control.grid.requiresCodeTable")
|
|
51573
51580
|
);
|
|
51574
51581
|
}
|
|
51575
51582
|
if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
|
|
51576
|
-
throw new
|
|
51583
|
+
throw new RuntimeModelError54(
|
|
51577
51584
|
this.model,
|
|
51578
51585
|
ibiz.i18n.t("runtime.controller.control.grid.noMatchCodeTable", {
|
|
51579
51586
|
groupFieldName
|
|
@@ -51732,7 +51739,7 @@ var GridController = class extends MDControlController {
|
|
|
51732
51739
|
return;
|
|
51733
51740
|
}
|
|
51734
51741
|
if (!aggAppDEDataSetId || !aggAppDataEntityId) {
|
|
51735
|
-
throw new
|
|
51742
|
+
throw new RuntimeModelError54(
|
|
51736
51743
|
this.model,
|
|
51737
51744
|
ibiz.i18n.t("runtime.controller.control.grid.missingConfiguration")
|
|
51738
51745
|
);
|
|
@@ -52777,7 +52784,7 @@ var GridController = class extends MDControlController {
|
|
|
52777
52784
|
var _a3;
|
|
52778
52785
|
const moveAction = (_a3 = this.model.moveControlAction) == null ? void 0 : _a3.appDEMethodId;
|
|
52779
52786
|
if (!moveAction) {
|
|
52780
|
-
throw new
|
|
52787
|
+
throw new RuntimeModelError54(
|
|
52781
52788
|
this.model,
|
|
52782
52789
|
ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
|
|
52783
52790
|
);
|
|
@@ -53308,7 +53315,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
53308
53315
|
};
|
|
53309
53316
|
|
|
53310
53317
|
// src/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.ts
|
|
53311
|
-
import { RuntimeModelError as
|
|
53318
|
+
import { RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
|
|
53312
53319
|
var GridUAColumnController = class extends GridColumnController {
|
|
53313
53320
|
/**
|
|
53314
53321
|
* 给rowController初始化操作列的状态
|
|
@@ -53321,7 +53328,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
53321
53328
|
var _a3;
|
|
53322
53329
|
const { deuiactionGroup } = this.model;
|
|
53323
53330
|
if (!deuiactionGroup) {
|
|
53324
|
-
throw new
|
|
53331
|
+
throw new RuntimeModelError55(
|
|
53325
53332
|
this.model,
|
|
53326
53333
|
ibiz.i18n.t("runtime.controller.control.grid.behaviorGroup")
|
|
53327
53334
|
);
|
|
@@ -53659,7 +53666,7 @@ import {
|
|
|
53659
53666
|
clone as clone35,
|
|
53660
53667
|
DataTypes as DataTypes5,
|
|
53661
53668
|
isElementSame as isElementSame4,
|
|
53662
|
-
RuntimeModelError as
|
|
53669
|
+
RuntimeModelError as RuntimeModelError56
|
|
53663
53670
|
} from "@ibiz-template/core";
|
|
53664
53671
|
import dayjs7 from "dayjs";
|
|
53665
53672
|
|
|
@@ -54374,13 +54381,13 @@ var ListController = class extends MDControlController {
|
|
|
54374
54381
|
await this.updateChangedItems([draggedItem]);
|
|
54375
54382
|
} else {
|
|
54376
54383
|
if (!minorSortAppDEFieldId)
|
|
54377
|
-
throw new
|
|
54384
|
+
throw new RuntimeModelError56(
|
|
54378
54385
|
this.model,
|
|
54379
54386
|
ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
|
|
54380
54387
|
);
|
|
54381
54388
|
const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
|
|
54382
54389
|
if (!moveAction)
|
|
54383
|
-
throw new
|
|
54390
|
+
throw new RuntimeModelError56(
|
|
54384
54391
|
this.model,
|
|
54385
54392
|
ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
|
|
54386
54393
|
);
|
|
@@ -57094,7 +57101,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
57094
57101
|
import {
|
|
57095
57102
|
RuntimeError as RuntimeError43,
|
|
57096
57103
|
recursiveIterate as recursiveIterate15,
|
|
57097
|
-
RuntimeModelError as
|
|
57104
|
+
RuntimeModelError as RuntimeModelError57
|
|
57098
57105
|
} from "@ibiz-template/core";
|
|
57099
57106
|
import { isNil as isNil27 } from "ramda";
|
|
57100
57107
|
import { isBoolean as isBoolean4 } from "qx-util";
|
|
@@ -58693,7 +58700,7 @@ var TreeController = class extends MDControlController {
|
|
|
58693
58700
|
const { moveAppDEActionId, appDataEntityId, allowOrder } = orderNodeModel;
|
|
58694
58701
|
if (allowOrder) {
|
|
58695
58702
|
if (!moveAppDEActionId) {
|
|
58696
|
-
throw new
|
|
58703
|
+
throw new RuntimeModelError57(
|
|
58697
58704
|
this.model,
|
|
58698
58705
|
ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
|
|
58699
58706
|
);
|
|
@@ -58775,7 +58782,7 @@ var TreeController = class extends MDControlController {
|
|
|
58775
58782
|
async modifyNodeText(nodeData, text) {
|
|
58776
58783
|
const model = this.getNodeModel(nodeData._nodeId);
|
|
58777
58784
|
if (!model.allowEditText) {
|
|
58778
|
-
throw new
|
|
58785
|
+
throw new RuntimeModelError57(
|
|
58779
58786
|
model,
|
|
58780
58787
|
ibiz.i18n.t("runtime.controller.control.tree.editMode")
|
|
58781
58788
|
);
|
|
@@ -58888,7 +58895,7 @@ var TreeController = class extends MDControlController {
|
|
|
58888
58895
|
const nodeModel = this.getNodeModel(nodeType);
|
|
58889
58896
|
const parentNodeData = this.getNodeData(parentKey);
|
|
58890
58897
|
if (!nodeModel) {
|
|
58891
|
-
throw new
|
|
58898
|
+
throw new RuntimeModelError57(
|
|
58892
58899
|
this.model,
|
|
58893
58900
|
ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
|
|
58894
58901
|
);
|
|
@@ -59022,7 +59029,7 @@ var TreeController = class extends MDControlController {
|
|
|
59022
59029
|
}
|
|
59023
59030
|
));
|
|
59024
59031
|
if (result === -1)
|
|
59025
|
-
throw new
|
|
59032
|
+
throw new RuntimeModelError57(
|
|
59026
59033
|
nodeModel,
|
|
59027
59034
|
ibiz.i18n.t("runtime.controller.common.md.logicOpendata", {
|
|
59028
59035
|
itemType: nodeModel.id.toLowerCase()
|
|
@@ -59061,7 +59068,7 @@ var TreeController = class extends MDControlController {
|
|
|
59061
59068
|
}
|
|
59062
59069
|
));
|
|
59063
59070
|
if (result === -1)
|
|
59064
|
-
throw new
|
|
59071
|
+
throw new RuntimeModelError57(
|
|
59065
59072
|
nodeModel,
|
|
59066
59073
|
ibiz.i18n.t("runtime.controller.common.md.logicNewdata", {
|
|
59067
59074
|
itemType: nodeModel.id.toLowerCase()
|
|
@@ -59657,7 +59664,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
59657
59664
|
};
|
|
59658
59665
|
|
|
59659
59666
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
59660
|
-
import { RuntimeError as RuntimeError45, RuntimeModelError as
|
|
59667
|
+
import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
|
|
59661
59668
|
import { clone as clone38, isNil as isNil28, isNotNil as isNotNil8 } from "ramda";
|
|
59662
59669
|
import { createUUID as createUUID15 } from "qx-util";
|
|
59663
59670
|
|
|
@@ -59976,7 +59983,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
59976
59983
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
59977
59984
|
if (enableGroup && groupMode) {
|
|
59978
59985
|
if (!groupAppDEFieldId) {
|
|
59979
|
-
throw new
|
|
59986
|
+
throw new RuntimeModelError58(
|
|
59980
59987
|
this.model,
|
|
59981
59988
|
ibiz.i18n.t(
|
|
59982
59989
|
"runtime.controller.control.dataView.propertiesNoConfigured"
|
|
@@ -60068,7 +60075,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
60068
60075
|
async handleCodeListGroup() {
|
|
60069
60076
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
60070
60077
|
if (!groupCodeListId) {
|
|
60071
|
-
throw new
|
|
60078
|
+
throw new RuntimeModelError58(
|
|
60072
60079
|
this.model,
|
|
60073
60080
|
ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
|
|
60074
60081
|
);
|
|
@@ -60406,7 +60413,7 @@ import {
|
|
|
60406
60413
|
clone as clone39,
|
|
60407
60414
|
RuntimeError as RuntimeError46,
|
|
60408
60415
|
isElementSame as isElementSame5,
|
|
60409
|
-
RuntimeModelError as
|
|
60416
|
+
RuntimeModelError as RuntimeModelError59
|
|
60410
60417
|
} from "@ibiz-template/core";
|
|
60411
60418
|
|
|
60412
60419
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -60460,7 +60467,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
60460
60467
|
get laneDescription() {
|
|
60461
60468
|
var _a3;
|
|
60462
60469
|
if (this.controlParams.lanedescription)
|
|
60463
|
-
return this.controlParams.lanedescription;
|
|
60470
|
+
return ibiz.appUtil.resolveI18nText(this.controlParams.lanedescription);
|
|
60464
60471
|
return (_a3 = this.dataEntity) == null ? void 0 : _a3.logicName;
|
|
60465
60472
|
}
|
|
60466
60473
|
async initControlService() {
|
|
@@ -60696,7 +60703,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
60696
60703
|
async handleCodeListGroup() {
|
|
60697
60704
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
60698
60705
|
if (!groupCodeListId) {
|
|
60699
|
-
throw new
|
|
60706
|
+
throw new RuntimeModelError59(
|
|
60700
60707
|
this.model,
|
|
60701
60708
|
ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
|
|
60702
60709
|
);
|
|
@@ -60760,13 +60767,13 @@ var KanbanController = class extends DataViewControlController {
|
|
|
60760
60767
|
await this.updateChangedItems([draggedItem]);
|
|
60761
60768
|
} else {
|
|
60762
60769
|
if (!minorSortAppDEFieldId)
|
|
60763
|
-
throw new
|
|
60770
|
+
throw new RuntimeModelError59(
|
|
60764
60771
|
this.model,
|
|
60765
60772
|
ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
|
|
60766
60773
|
);
|
|
60767
60774
|
const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
|
|
60768
60775
|
if (!moveAction)
|
|
60769
|
-
throw new
|
|
60776
|
+
throw new RuntimeModelError59(
|
|
60770
60777
|
this.model,
|
|
60771
60778
|
ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
|
|
60772
60779
|
);
|
|
@@ -60967,7 +60974,7 @@ import {
|
|
|
60967
60974
|
RuntimeError as RuntimeError47,
|
|
60968
60975
|
awaitTimeout as awaitTimeout3,
|
|
60969
60976
|
recursiveIterate as recursiveIterate16,
|
|
60970
|
-
RuntimeModelError as
|
|
60977
|
+
RuntimeModelError as RuntimeModelError60
|
|
60971
60978
|
} from "@ibiz-template/core";
|
|
60972
60979
|
import { clone as clone40 } from "ramda";
|
|
60973
60980
|
|
|
@@ -61396,7 +61403,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
61396
61403
|
);
|
|
61397
61404
|
}
|
|
61398
61405
|
if (!updateAppDEActionId) {
|
|
61399
|
-
throw new
|
|
61406
|
+
throw new RuntimeModelError60(
|
|
61400
61407
|
nodeModel,
|
|
61401
61408
|
ibiz.i18n.t("runtime.controller.control.treeGridEx.updateBehavior")
|
|
61402
61409
|
);
|
|
@@ -61724,7 +61731,7 @@ var TreeGridExColumnController = class {
|
|
|
61724
61731
|
import {
|
|
61725
61732
|
DataTypes as DataTypes7,
|
|
61726
61733
|
RuntimeError as RuntimeError48,
|
|
61727
|
-
RuntimeModelError as
|
|
61734
|
+
RuntimeModelError as RuntimeModelError61
|
|
61728
61735
|
} from "@ibiz-template/core";
|
|
61729
61736
|
import { clone as clone41 } from "ramda";
|
|
61730
61737
|
import dayjs8 from "dayjs";
|
|
@@ -61755,7 +61762,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
61755
61762
|
}
|
|
61756
61763
|
);
|
|
61757
61764
|
if (!nodeColumn || !nodeDataItem) {
|
|
61758
|
-
throw new
|
|
61765
|
+
throw new RuntimeModelError61(
|
|
61759
61766
|
nodeModel,
|
|
61760
61767
|
ibiz.i18n.t("runtime.controller.control.treeGridEx.noConfigured", {
|
|
61761
61768
|
name: this.fieldColumn.name
|
|
@@ -61771,7 +61778,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
61771
61778
|
}
|
|
61772
61779
|
);
|
|
61773
61780
|
if (!nodeEditItem) {
|
|
61774
|
-
throw new
|
|
61781
|
+
throw new RuntimeModelError61(
|
|
61775
61782
|
nodeModel,
|
|
61776
61783
|
ibiz.i18n.t("runtime.controller.control.treeGridEx.editItem", {
|
|
61777
61784
|
name: this.fieldColumn.name
|
|
@@ -62280,7 +62287,7 @@ var TreeGridExUAColumnController = class extends TreeGridExColumnController {
|
|
|
62280
62287
|
};
|
|
62281
62288
|
|
|
62282
62289
|
// src/controller/control/tree-grid/tree-grid.controller.ts
|
|
62283
|
-
import { RuntimeModelError as
|
|
62290
|
+
import { RuntimeModelError as RuntimeModelError62 } from "@ibiz-template/core";
|
|
62284
62291
|
import { createUUID as createUUID16 } from "qx-util";
|
|
62285
62292
|
var TreeGridController = class extends GridController {
|
|
62286
62293
|
constructor() {
|
|
@@ -62325,7 +62332,7 @@ var TreeGridController = class extends GridController {
|
|
|
62325
62332
|
return item.treeColumnMode === 4 || item.treeColumnMode === 12;
|
|
62326
62333
|
});
|
|
62327
62334
|
if (!treeGridParent)
|
|
62328
|
-
throw new
|
|
62335
|
+
throw new RuntimeModelError62(
|
|
62329
62336
|
this.model,
|
|
62330
62337
|
ibiz.i18n.t("runtime.controller.control.treeGrid.columnMode")
|
|
62331
62338
|
);
|
|
@@ -62333,7 +62340,7 @@ var TreeGridController = class extends GridController {
|
|
|
62333
62340
|
return item.treeColumnMode === 2 || item.treeColumnMode === 3;
|
|
62334
62341
|
});
|
|
62335
62342
|
if (!treeGridValue)
|
|
62336
|
-
throw new
|
|
62343
|
+
throw new RuntimeModelError62(
|
|
62337
62344
|
this.model,
|
|
62338
62345
|
ibiz.i18n.t("runtime.controller.control.treeGrid.columnsSchema")
|
|
62339
62346
|
);
|
|
@@ -67725,8 +67732,27 @@ async function getAcItemProvider(model) {
|
|
|
67725
67732
|
return provider;
|
|
67726
67733
|
}
|
|
67727
67734
|
|
|
67735
|
+
// src/register/helper/app-func-block-register.ts
|
|
67736
|
+
import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
|
|
67737
|
+
var APP_FUNC_BLOCK_PROVIDER_PREFIX = "APPFUNCBLOCK";
|
|
67738
|
+
function registerAppFuncBlockProvider(callback) {
|
|
67739
|
+
ibiz.register.register("".concat(APP_FUNC_BLOCK_PROVIDER_PREFIX, "_DEFAULT"), callback);
|
|
67740
|
+
}
|
|
67741
|
+
async function getAppFuncBlockProvider() {
|
|
67742
|
+
const provider = ibiz.register.get(
|
|
67743
|
+
"".concat(APP_FUNC_BLOCK_PROVIDER_PREFIX, "_DEFAULT")
|
|
67744
|
+
);
|
|
67745
|
+
if (!provider) {
|
|
67746
|
+
throw new RuntimeError54(
|
|
67747
|
+
ibiz.i18n.t("runtime.register.helper.noFoundAppFuncBlock")
|
|
67748
|
+
);
|
|
67749
|
+
} else {
|
|
67750
|
+
return provider;
|
|
67751
|
+
}
|
|
67752
|
+
}
|
|
67753
|
+
|
|
67728
67754
|
// src/service/utils/app-counter/app-counter.ts
|
|
67729
|
-
import { IBizContext as IBizContext7, RuntimeError as
|
|
67755
|
+
import { IBizContext as IBizContext7, RuntimeError as RuntimeError55 } from "@ibiz-template/core";
|
|
67730
67756
|
import { notNilEmpty as notNilEmpty8, QXEvent as QXEvent4 } from "qx-util";
|
|
67731
67757
|
import { clone as clone47 } from "ramda";
|
|
67732
67758
|
import { toNumber } from "lodash-es";
|
|
@@ -67855,7 +67881,7 @@ var AppCounter8 = class {
|
|
|
67855
67881
|
* @return {*} {Promise<IData>}
|
|
67856
67882
|
*/
|
|
67857
67883
|
async load() {
|
|
67858
|
-
throw new
|
|
67884
|
+
throw new RuntimeError55(ibiz.i18n.t("runtime.service.noImplementedCounter"));
|
|
67859
67885
|
}
|
|
67860
67886
|
/**
|
|
67861
67887
|
* 计数器刷新
|
|
@@ -67922,7 +67948,7 @@ var AppCounter8 = class {
|
|
|
67922
67948
|
};
|
|
67923
67949
|
|
|
67924
67950
|
// src/service/utils/app-counter/app-de-counter.ts
|
|
67925
|
-
import { RuntimeModelError as
|
|
67951
|
+
import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
|
|
67926
67952
|
var AppDECounter = class extends AppCounter8 {
|
|
67927
67953
|
/**
|
|
67928
67954
|
* 计数器初始化
|
|
@@ -67936,7 +67962,7 @@ var AppDECounter = class extends AppCounter8 {
|
|
|
67936
67962
|
this.appDataEntityId = this.model.appDataEntityId;
|
|
67937
67963
|
const action = this.model.getAppDEActionId;
|
|
67938
67964
|
if (!action) {
|
|
67939
|
-
throw new
|
|
67965
|
+
throw new RuntimeModelError63(
|
|
67940
67966
|
this.model,
|
|
67941
67967
|
ibiz.i18n.t("runtime.service.noFoundCounterBehavior")
|
|
67942
67968
|
);
|
|
@@ -68083,7 +68109,7 @@ DEDQCondUtil.map = /* @__PURE__ */ new WeakMap();
|
|
|
68083
68109
|
import {
|
|
68084
68110
|
IBizContext as IBizContext8,
|
|
68085
68111
|
ModelError as ModelError26,
|
|
68086
|
-
RuntimeModelError as
|
|
68112
|
+
RuntimeModelError as RuntimeModelError64,
|
|
68087
68113
|
StringUtil as StringUtil5
|
|
68088
68114
|
} from "@ibiz-template/core";
|
|
68089
68115
|
import { clone as clone48, isNil as isNil29 } from "ramda";
|
|
@@ -68478,13 +68504,13 @@ var DynamicCodeListCache = class {
|
|
|
68478
68504
|
return Object.freeze(presetresultItems);
|
|
68479
68505
|
}
|
|
68480
68506
|
if (!appDataEntityId) {
|
|
68481
|
-
throw new
|
|
68507
|
+
throw new RuntimeModelError64(
|
|
68482
68508
|
this.codeList,
|
|
68483
68509
|
ibiz.i18n.t("runtime.controller.utils.viewMsg.unconfiguredEntities")
|
|
68484
68510
|
);
|
|
68485
68511
|
}
|
|
68486
68512
|
if (!appDEDataSetId) {
|
|
68487
|
-
throw new
|
|
68513
|
+
throw new RuntimeModelError64(
|
|
68488
68514
|
this.codeList,
|
|
68489
68515
|
ibiz.i18n.t("runtime.service.unconfiguredDataset")
|
|
68490
68516
|
);
|
|
@@ -68678,10 +68704,10 @@ var DynamicCodeListCache = class {
|
|
|
68678
68704
|
// src/service/utils/de-cache/de-cache.ts
|
|
68679
68705
|
import { where, equals, clone as clone49, isNil as isNil31, isEmpty as isEmpty7 } from "ramda";
|
|
68680
68706
|
import { createUUID as createUUID18 } from "qx-util";
|
|
68681
|
-
import { RuntimeError as
|
|
68707
|
+
import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
|
|
68682
68708
|
|
|
68683
68709
|
// src/service/utils/service-exist-util/service-exist-util.ts
|
|
68684
|
-
import { RuntimeError as
|
|
68710
|
+
import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
|
|
68685
68711
|
import { isEmpty as isEmpty6, isNil as isNil30 } from "ramda";
|
|
68686
68712
|
function isExistSrfKey(funcName, entity) {
|
|
68687
68713
|
if (entity != null) {
|
|
@@ -68690,7 +68716,7 @@ function isExistSrfKey(funcName, entity) {
|
|
|
68690
68716
|
return true;
|
|
68691
68717
|
}
|
|
68692
68718
|
}
|
|
68693
|
-
throw new
|
|
68719
|
+
throw new RuntimeError56(
|
|
68694
68720
|
ibiz.i18n.t("runtime.service.processedWithout", { funcName })
|
|
68695
68721
|
);
|
|
68696
68722
|
}
|
|
@@ -68699,7 +68725,7 @@ function isExistSessionId(funcName, context) {
|
|
|
68699
68725
|
if (!isNil30(srfsessionid) && !isEmpty6(srfsessionid)) {
|
|
68700
68726
|
return true;
|
|
68701
68727
|
}
|
|
68702
|
-
throw new
|
|
68728
|
+
throw new RuntimeError56(
|
|
68703
68729
|
ibiz.i18n.t("runtime.service.noExistProcessed", { funcName })
|
|
68704
68730
|
);
|
|
68705
68731
|
}
|
|
@@ -68794,7 +68820,7 @@ var DECache = class {
|
|
|
68794
68820
|
this.calcUnionKey(entity);
|
|
68795
68821
|
if (this.checkData(context, entity.srfunionkey)) {
|
|
68796
68822
|
ibiz.log.error(
|
|
68797
|
-
new
|
|
68823
|
+
new RuntimeError57(
|
|
68798
68824
|
ibiz.i18n.t("runtime.service.createPrimaryKeyData", {
|
|
68799
68825
|
srfkey: entity.srfunionkey
|
|
68800
68826
|
})
|
|
@@ -68866,7 +68892,7 @@ var DECache = class {
|
|
|
68866
68892
|
this.calcUnionKey(entity);
|
|
68867
68893
|
if (oldUnionKey !== entity.srfunionkey && this.checkData(context, entity.srfunionkey)) {
|
|
68868
68894
|
ibiz.log.error(
|
|
68869
|
-
new
|
|
68895
|
+
new RuntimeError57(
|
|
68870
68896
|
ibiz.i18n.t("runtime.service.updatePrimaryKeyData", {
|
|
68871
68897
|
srfkey: entity.srfunionkey
|
|
68872
68898
|
})
|
|
@@ -69005,7 +69031,7 @@ var DECache = class {
|
|
|
69005
69031
|
this.calcUnionKey(entity);
|
|
69006
69032
|
if (oldUnionKey !== entity.srfunionkey && this.checkData(context, entity.srfunionkey)) {
|
|
69007
69033
|
ibiz.log.error(
|
|
69008
|
-
new
|
|
69034
|
+
new RuntimeError57(
|
|
69009
69035
|
ibiz.i18n.t("runtime.service.updatePrimaryKeyData", {
|
|
69010
69036
|
srfkey: entity.srfunionkey
|
|
69011
69037
|
})
|
|
@@ -69459,7 +69485,7 @@ var DeMethodProcesser = class {
|
|
|
69459
69485
|
};
|
|
69460
69486
|
|
|
69461
69487
|
// src/service/service/code-list/code-list.service.ts
|
|
69462
|
-
import { RuntimeError as
|
|
69488
|
+
import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
|
|
69463
69489
|
import { isNumber as isNumber4 } from "lodash-es";
|
|
69464
69490
|
var CodeListService = class {
|
|
69465
69491
|
constructor(appModel) {
|
|
@@ -69625,7 +69651,7 @@ var CodeListService = class {
|
|
|
69625
69651
|
var _a3;
|
|
69626
69652
|
const codeList = this.allCodeLists.get(tag);
|
|
69627
69653
|
if (!codeList) {
|
|
69628
|
-
throw new
|
|
69654
|
+
throw new RuntimeError58(
|
|
69629
69655
|
ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
|
|
69630
69656
|
);
|
|
69631
69657
|
}
|
|
@@ -69688,7 +69714,7 @@ var CodeListService = class {
|
|
|
69688
69714
|
async getItem(tag, value, context, params) {
|
|
69689
69715
|
const codeList = this.allCodeLists.get(tag);
|
|
69690
69716
|
if (!codeList) {
|
|
69691
|
-
throw new
|
|
69717
|
+
throw new RuntimeError58(
|
|
69692
69718
|
ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
|
|
69693
69719
|
);
|
|
69694
69720
|
}
|
|
@@ -69705,7 +69731,7 @@ var CodeListService = class {
|
|
|
69705
69731
|
let codeListInstance;
|
|
69706
69732
|
const codeList = this.allCodeLists.get(tag);
|
|
69707
69733
|
if (!codeList) {
|
|
69708
|
-
throw new
|
|
69734
|
+
throw new RuntimeError58(
|
|
69709
69735
|
ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
|
|
69710
69736
|
);
|
|
69711
69737
|
}
|
|
@@ -69806,7 +69832,7 @@ var ConfigService = class {
|
|
|
69806
69832
|
};
|
|
69807
69833
|
|
|
69808
69834
|
// src/service/service/counter/counter.service.ts
|
|
69809
|
-
import { RuntimeModelError as
|
|
69835
|
+
import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
|
|
69810
69836
|
var CounterService = class {
|
|
69811
69837
|
/**
|
|
69812
69838
|
* 获取计数器
|
|
@@ -69851,7 +69877,7 @@ var CounterService = class {
|
|
|
69851
69877
|
static async getCounterByRef(model, context, params) {
|
|
69852
69878
|
const { appCounter } = model;
|
|
69853
69879
|
if (!appCounter) {
|
|
69854
|
-
throw new
|
|
69880
|
+
throw new RuntimeModelError65(
|
|
69855
69881
|
model,
|
|
69856
69882
|
ibiz.i18n.t("runtime.service.noConfiguredCounters")
|
|
69857
69883
|
);
|
|
@@ -69875,14 +69901,14 @@ import {
|
|
|
69875
69901
|
HttpError as HttpError6,
|
|
69876
69902
|
IBizContext as IBizContext9,
|
|
69877
69903
|
ModelError as ModelError28,
|
|
69878
|
-
RuntimeError as
|
|
69879
|
-
RuntimeModelError as
|
|
69904
|
+
RuntimeError as RuntimeError60,
|
|
69905
|
+
RuntimeModelError as RuntimeModelError67
|
|
69880
69906
|
} from "@ibiz-template/core";
|
|
69881
69907
|
import { createUUID as createUUID20 } from "qx-util";
|
|
69882
69908
|
import { isNil as isNil34, isUndefined } from "lodash-es";
|
|
69883
69909
|
|
|
69884
69910
|
// src/service/service/work-flow/work-flow.service.ts
|
|
69885
|
-
import { RuntimeError as
|
|
69911
|
+
import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
|
|
69886
69912
|
var WorkFlowService = class {
|
|
69887
69913
|
/**
|
|
69888
69914
|
* Creates an instance of WorkFlowService.
|
|
@@ -70204,7 +70230,7 @@ var WorkFlowService = class {
|
|
|
70204
70230
|
case "sendcopy":
|
|
70205
70231
|
return this.wfSendCopy(context, params, data);
|
|
70206
70232
|
default: {
|
|
70207
|
-
throw new
|
|
70233
|
+
throw new RuntimeError59(
|
|
70208
70234
|
ibiz.i18n.t("runtime.service.noImplemented", { methodName })
|
|
70209
70235
|
);
|
|
70210
70236
|
}
|
|
@@ -70498,7 +70524,7 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
70498
70524
|
};
|
|
70499
70525
|
|
|
70500
70526
|
// src/service/dto/method.dto.ts
|
|
70501
|
-
import { ModelError as ModelError27, RuntimeModelError as
|
|
70527
|
+
import { ModelError as ModelError27, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
|
|
70502
70528
|
import { clone as clone51 } from "ramda";
|
|
70503
70529
|
var MethodDto = class {
|
|
70504
70530
|
/**
|
|
@@ -70604,7 +70630,7 @@ var MethodDto = class {
|
|
|
70604
70630
|
context
|
|
70605
70631
|
);
|
|
70606
70632
|
} else {
|
|
70607
|
-
throw new
|
|
70633
|
+
throw new RuntimeModelError66(
|
|
70608
70634
|
field,
|
|
70609
70635
|
ibiz.i18n.t("runtime.service.subRelationships")
|
|
70610
70636
|
);
|
|
@@ -70865,7 +70891,7 @@ var DEService = class {
|
|
|
70865
70891
|
}
|
|
70866
70892
|
const model = findAppDEMethod(this.model, id);
|
|
70867
70893
|
if (!model) {
|
|
70868
|
-
throw new
|
|
70894
|
+
throw new RuntimeModelError67(
|
|
70869
70895
|
this.model,
|
|
70870
70896
|
ibiz.i18n.t("runtime.service.noFoundServiceMethod", { id })
|
|
70871
70897
|
);
|
|
@@ -70924,7 +70950,7 @@ var DEService = class {
|
|
|
70924
70950
|
throw error;
|
|
70925
70951
|
}
|
|
70926
70952
|
}
|
|
70927
|
-
throw new
|
|
70953
|
+
throw new RuntimeError60(
|
|
70928
70954
|
ibiz.i18n.t("runtime.service.noSupportedMethod", {
|
|
70929
70955
|
codeName: this.model.codeName,
|
|
70930
70956
|
id
|
|
@@ -71002,7 +71028,7 @@ var DEService = class {
|
|
|
71002
71028
|
if (method) {
|
|
71003
71029
|
return method.exec(context, params, params2);
|
|
71004
71030
|
}
|
|
71005
|
-
throw new
|
|
71031
|
+
throw new RuntimeError60(
|
|
71006
71032
|
ibiz.i18n.t("runtime.service.noSupportedMethod", {
|
|
71007
71033
|
codeName: this.model.codeName,
|
|
71008
71034
|
id
|
|
@@ -71166,7 +71192,7 @@ var DEService = class {
|
|
|
71166
71192
|
};
|
|
71167
71193
|
|
|
71168
71194
|
// src/service/service/authority/authority.service.ts
|
|
71169
|
-
import { RuntimeError as
|
|
71195
|
+
import { RuntimeError as RuntimeError61 } from "@ibiz-template/core";
|
|
71170
71196
|
|
|
71171
71197
|
// src/service/service/authority/de-authority.service.ts
|
|
71172
71198
|
var DeAuthorityService = class {
|
|
@@ -71422,7 +71448,7 @@ var AuthorityService = class {
|
|
|
71422
71448
|
this.appModel.appId
|
|
71423
71449
|
);
|
|
71424
71450
|
if (!entityModel) {
|
|
71425
|
-
throw new
|
|
71451
|
+
throw new RuntimeError61(ibiz.i18n.t("runtime.service.noFound", { id }));
|
|
71426
71452
|
}
|
|
71427
71453
|
const constructor = this.constructorCache.get(id);
|
|
71428
71454
|
let service;
|
|
@@ -71805,15 +71831,12 @@ var V7AuthService = class {
|
|
|
71805
71831
|
* @memberof V7AuthService
|
|
71806
71832
|
*/
|
|
71807
71833
|
async loadAppData(context) {
|
|
71808
|
-
|
|
71809
|
-
|
|
71810
|
-
res = await ibiz.net.get("/appdata", context);
|
|
71811
|
-
} else {
|
|
71812
|
-
res = await ibiz.net.get("/appdata");
|
|
71813
|
-
}
|
|
71834
|
+
const appFuncBlockProvider = await getAppFuncBlockProvider();
|
|
71835
|
+
const res = await appFuncBlockProvider.loadAppData(context);
|
|
71814
71836
|
if (res.ok) {
|
|
71815
71837
|
ibiz.appData = res.data;
|
|
71816
71838
|
}
|
|
71839
|
+
return res.ok;
|
|
71817
71840
|
}
|
|
71818
71841
|
/**
|
|
71819
71842
|
* 清空权限数据
|
|
@@ -71866,15 +71889,15 @@ var AsyncActionService = class {
|
|
|
71866
71889
|
import {
|
|
71867
71890
|
HttpError as HttpError8,
|
|
71868
71891
|
HttpResponse as HttpResponse5,
|
|
71869
|
-
RuntimeError as
|
|
71870
|
-
RuntimeModelError as
|
|
71892
|
+
RuntimeError as RuntimeError62,
|
|
71893
|
+
RuntimeModelError as RuntimeModelError69
|
|
71871
71894
|
} from "@ibiz-template/core";
|
|
71872
71895
|
import { isArray as isArray10, isNil as isNil36, isUndefined as isUndefined2 } from "lodash-es";
|
|
71873
71896
|
import { ascSort } from "qx-util";
|
|
71874
71897
|
import { clone as clone52 } from "ramda";
|
|
71875
71898
|
|
|
71876
71899
|
// src/service/service/entity/method/method.ts
|
|
71877
|
-
import { HttpResponse as HttpResponse4, RuntimeModelError as
|
|
71900
|
+
import { HttpResponse as HttpResponse4, RuntimeModelError as RuntimeModelError68 } from "@ibiz-template/core";
|
|
71878
71901
|
|
|
71879
71902
|
// src/service/service/entity/method/method-input.ts
|
|
71880
71903
|
var MethodInput = class {
|
|
@@ -72093,12 +72116,12 @@ var Method = class {
|
|
|
72093
72116
|
break;
|
|
72094
72117
|
default:
|
|
72095
72118
|
if (requestMethod) {
|
|
72096
|
-
throw new
|
|
72119
|
+
throw new RuntimeModelError68(
|
|
72097
72120
|
this.method,
|
|
72098
72121
|
ibiz.i18n.t("runtime.service.requestMethods", { requestMethod })
|
|
72099
72122
|
);
|
|
72100
72123
|
} else {
|
|
72101
|
-
throw new
|
|
72124
|
+
throw new RuntimeModelError68(
|
|
72102
72125
|
this.method,
|
|
72103
72126
|
ibiz.i18n.t("runtime.service.noConfiguredRequestMethod")
|
|
72104
72127
|
);
|
|
@@ -72109,7 +72132,7 @@ var Method = class {
|
|
|
72109
72132
|
if (actionType === "SCRIPT") {
|
|
72110
72133
|
return new HttpResponse4(data);
|
|
72111
72134
|
}
|
|
72112
|
-
throw new
|
|
72135
|
+
throw new RuntimeModelError68(
|
|
72113
72136
|
this.method,
|
|
72114
72137
|
ibiz.i18n.t("runtime.service.unsupportedBehaviorTypes", { actionType })
|
|
72115
72138
|
);
|
|
@@ -72225,7 +72248,7 @@ var DEActionMethod = class extends Method {
|
|
|
72225
72248
|
if (this.method.actionType === "DELOGIC") {
|
|
72226
72249
|
const deLogic = findDELogic(this.method.appDELogicId, this.entity);
|
|
72227
72250
|
if (!deLogic) {
|
|
72228
|
-
throw new
|
|
72251
|
+
throw new RuntimeModelError69(
|
|
72229
72252
|
this.method,
|
|
72230
72253
|
ibiz.i18n.t("runtime.service.lackEntityLogic")
|
|
72231
72254
|
);
|
|
@@ -72365,7 +72388,7 @@ var DEActionMethod = class extends Method {
|
|
|
72365
72388
|
*/
|
|
72366
72389
|
async create(context, data, params, header) {
|
|
72367
72390
|
if (!data) {
|
|
72368
|
-
throw new
|
|
72391
|
+
throw new RuntimeError62(ibiz.i18n.t("runtime.service.createBehavior"));
|
|
72369
72392
|
}
|
|
72370
72393
|
if (this.isLocalMode) {
|
|
72371
72394
|
const res2 = await this.executeLocalMethod(
|
|
@@ -72418,7 +72441,7 @@ var DEActionMethod = class extends Method {
|
|
|
72418
72441
|
*/
|
|
72419
72442
|
async update(context, data, params, header) {
|
|
72420
72443
|
if (!data) {
|
|
72421
|
-
throw new
|
|
72444
|
+
throw new RuntimeError62(ibiz.i18n.t("runtime.service.updateBehavior"));
|
|
72422
72445
|
}
|
|
72423
72446
|
if (this.isLocalMode) {
|
|
72424
72447
|
const res2 = await this.executeLocalMethod(
|
|
@@ -72615,7 +72638,7 @@ var DEActionMethod = class extends Method {
|
|
|
72615
72638
|
configs = ascSort(configs, "removeOrder");
|
|
72616
72639
|
for (const config of configs) {
|
|
72617
72640
|
if (config.rstype !== "DER1N") {
|
|
72618
|
-
throw new
|
|
72641
|
+
throw new RuntimeModelError69(
|
|
72619
72642
|
config,
|
|
72620
72643
|
ibiz.i18n.t("runtime.service.deletionDeletion")
|
|
72621
72644
|
);
|
|
@@ -72893,7 +72916,7 @@ var DeActionDeMethodProvider = class {
|
|
|
72893
72916
|
import {
|
|
72894
72917
|
HttpResponse as HttpResponse6,
|
|
72895
72918
|
ModelError as ModelError29,
|
|
72896
|
-
RuntimeModelError as
|
|
72919
|
+
RuntimeModelError as RuntimeModelError70
|
|
72897
72920
|
} from "@ibiz-template/core";
|
|
72898
72921
|
import { isArray as isArray11 } from "lodash-es";
|
|
72899
72922
|
import { clone as clone53, isEmpty as isEmpty9, isNil as isNil37 } from "ramda";
|
|
@@ -73094,7 +73117,7 @@ var FetchMethod = class extends Method {
|
|
|
73094
73117
|
async fetchCodeListSet(context, params) {
|
|
73095
73118
|
const { appCodeListId } = this.method;
|
|
73096
73119
|
if (!appCodeListId) {
|
|
73097
|
-
throw new
|
|
73120
|
+
throw new RuntimeModelError70(
|
|
73098
73121
|
this.method,
|
|
73099
73122
|
ibiz.i18n.t("runtime.service.sourceCodeTable")
|
|
73100
73123
|
);
|
|
@@ -73121,7 +73144,7 @@ var FetchMethod = class extends Method {
|
|
|
73121
73144
|
async fetchCodeListSetWithMeta(context, params) {
|
|
73122
73145
|
const { appCodeListId } = this.method;
|
|
73123
73146
|
if (!appCodeListId) {
|
|
73124
|
-
throw new
|
|
73147
|
+
throw new RuntimeModelError70(
|
|
73125
73148
|
this.method,
|
|
73126
73149
|
ibiz.i18n.t("runtime.service.sourceCodeTable")
|
|
73127
73150
|
);
|
|
@@ -73690,7 +73713,7 @@ import qs3 from "qs";
|
|
|
73690
73713
|
import {
|
|
73691
73714
|
clearAppCookie as clearAppCookie2,
|
|
73692
73715
|
CoreConst as CoreConst2,
|
|
73693
|
-
RuntimeError as
|
|
73716
|
+
RuntimeError as RuntimeError63,
|
|
73694
73717
|
setAppCookie as setAppCookie2
|
|
73695
73718
|
} from "@ibiz-template/core";
|
|
73696
73719
|
var ThirdAuthService = class {
|
|
@@ -73713,7 +73736,7 @@ var ThirdAuthService = class {
|
|
|
73713
73736
|
case "OAUTH":
|
|
73714
73737
|
return this.oauthThirdAuth(params);
|
|
73715
73738
|
default:
|
|
73716
|
-
throw new
|
|
73739
|
+
throw new RuntimeError63(
|
|
73717
73740
|
ibiz.i18n.t("runtime.service.thirdAuth.noSupported", { type })
|
|
73718
73741
|
);
|
|
73719
73742
|
}
|
|
@@ -73765,7 +73788,7 @@ var ThirdAuthService = class {
|
|
|
73765
73788
|
const search = qs3.parse(window.location.search.replace("?", ""));
|
|
73766
73789
|
try {
|
|
73767
73790
|
if (!search.corpId) {
|
|
73768
|
-
throw new
|
|
73791
|
+
throw new RuntimeError63(
|
|
73769
73792
|
ibiz.i18n.t("runtime.service.thirdAuth.corpidError")
|
|
73770
73793
|
);
|
|
73771
73794
|
}
|
|
@@ -73774,7 +73797,7 @@ var ThirdAuthService = class {
|
|
|
73774
73797
|
corpId: search.corpId
|
|
73775
73798
|
});
|
|
73776
73799
|
if (!res || !res.code) {
|
|
73777
|
-
throw new
|
|
73800
|
+
throw new RuntimeError63(
|
|
73778
73801
|
ibiz.i18n.t("runtime.service.thirdAuth.dingTalkCodeErrir")
|
|
73779
73802
|
);
|
|
73780
73803
|
}
|
|
@@ -73795,7 +73818,7 @@ var ThirdAuthService = class {
|
|
|
73795
73818
|
window.location.href = "./?srfthird_auth_success=false";
|
|
73796
73819
|
return { ok: false, data: response.data };
|
|
73797
73820
|
}
|
|
73798
|
-
throw new
|
|
73821
|
+
throw new RuntimeError63(
|
|
73799
73822
|
ibiz.i18n.t("runtime.service.thirdAuth.dingTalkAuthError")
|
|
73800
73823
|
);
|
|
73801
73824
|
} catch (error) {
|
|
@@ -73832,7 +73855,7 @@ var ThirdAuthService = class {
|
|
|
73832
73855
|
return { ok: true, data };
|
|
73833
73856
|
}
|
|
73834
73857
|
}
|
|
73835
|
-
throw new
|
|
73858
|
+
throw new RuntimeError63(ibiz.i18n.t("runtime.service.thirdAuth.appIdError"));
|
|
73836
73859
|
}
|
|
73837
73860
|
/**
|
|
73838
73861
|
* 企业微信嵌入授权
|
|
@@ -73903,7 +73926,7 @@ var ThirdAuthService = class {
|
|
|
73903
73926
|
return { ok: true, data };
|
|
73904
73927
|
}
|
|
73905
73928
|
}
|
|
73906
|
-
throw new
|
|
73929
|
+
throw new RuntimeError63(ibiz.i18n.t("runtime.service.thirdAuth.appIdError"));
|
|
73907
73930
|
}
|
|
73908
73931
|
/**
|
|
73909
73932
|
* oauth 登录
|
|
@@ -73916,7 +73939,7 @@ var ThirdAuthService = class {
|
|
|
73916
73939
|
async oauthThirdAuth(params = {}) {
|
|
73917
73940
|
const oauthOpenAccessId = params.oauthopenaccessid || ibiz.env.oauthOpenAccessId;
|
|
73918
73941
|
if (!oauthOpenAccessId) {
|
|
73919
|
-
throw new
|
|
73942
|
+
throw new RuntimeError63(
|
|
73920
73943
|
ibiz.i18n.t("runtime.service.thirdAuth.oauthOpenAccessIdError")
|
|
73921
73944
|
);
|
|
73922
73945
|
}
|
|
@@ -73952,7 +73975,7 @@ var ThirdAuthService = class {
|
|
|
73952
73975
|
};
|
|
73953
73976
|
|
|
73954
73977
|
// src/service/service/util/ai-util.service.ts
|
|
73955
|
-
import { RuntimeError as
|
|
73978
|
+
import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
|
|
73956
73979
|
var AIUtilService = class {
|
|
73957
73980
|
/**
|
|
73958
73981
|
* 构造函数
|
|
@@ -74113,10 +74136,10 @@ var AIUtilService = class {
|
|
|
74113
74136
|
var _a3;
|
|
74114
74137
|
const getSessionAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.getSessionAppDEActionId;
|
|
74115
74138
|
if (!getSessionAppDEActionId)
|
|
74116
|
-
throw new
|
|
74139
|
+
throw new RuntimeError64("getSessionAppDEActionId is null");
|
|
74117
74140
|
const sessionService = await this.getSessionService(context);
|
|
74118
74141
|
if (!sessionService)
|
|
74119
|
-
throw new
|
|
74142
|
+
throw new RuntimeError64("sessionService is null");
|
|
74120
74143
|
const response = await sessionService.exec(
|
|
74121
74144
|
getSessionAppDEActionId,
|
|
74122
74145
|
context,
|
|
@@ -74141,12 +74164,12 @@ var AIUtilService = class {
|
|
|
74141
74164
|
var _a3;
|
|
74142
74165
|
const updateSessionAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.updateSessionAppDEActionId;
|
|
74143
74166
|
if (!updateSessionAppDEActionId)
|
|
74144
|
-
throw new
|
|
74167
|
+
throw new RuntimeError64("updateSessionAppDEActionId is null");
|
|
74145
74168
|
if (!data || Object.keys(data).length === 0)
|
|
74146
|
-
throw new
|
|
74169
|
+
throw new RuntimeError64("data is null");
|
|
74147
74170
|
const sessionService = await this.getSessionService(context);
|
|
74148
74171
|
if (!sessionService)
|
|
74149
|
-
throw new
|
|
74172
|
+
throw new RuntimeError64("sessionService is null");
|
|
74150
74173
|
const tempContext = context.clone();
|
|
74151
74174
|
tempContext[this.sessionAppEntityName.toLowerCase()] = realID;
|
|
74152
74175
|
const tempData = this.handleUserRequestData(data, "sessionmodelMapping");
|
|
@@ -74210,10 +74233,10 @@ var AIUtilService = class {
|
|
|
74210
74233
|
var _a3;
|
|
74211
74234
|
const getMessageAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.getMessageAppDEActionId;
|
|
74212
74235
|
if (!getMessageAppDEActionId)
|
|
74213
|
-
throw new
|
|
74236
|
+
throw new RuntimeError64("getMessageAppDEActionId is null");
|
|
74214
74237
|
const messageService = await this.getMessageService(context);
|
|
74215
74238
|
if (!messageService)
|
|
74216
|
-
throw new
|
|
74239
|
+
throw new RuntimeError64("messageService is null");
|
|
74217
74240
|
const response = await messageService.exec(
|
|
74218
74241
|
getMessageAppDEActionId,
|
|
74219
74242
|
context,
|
|
@@ -74268,10 +74291,10 @@ var AIUtilService = class {
|
|
|
74268
74291
|
return false;
|
|
74269
74292
|
const { likeMessageAppDEActionId } = this.utilParams;
|
|
74270
74293
|
if (!likeMessageAppDEActionId)
|
|
74271
|
-
throw new
|
|
74294
|
+
throw new RuntimeError64("likeMessageAppDEActionId is null");
|
|
74272
74295
|
const messageService = await this.getMessageService(context);
|
|
74273
74296
|
if (!messageService)
|
|
74274
|
-
throw new
|
|
74297
|
+
throw new RuntimeError64("messageService is null");
|
|
74275
74298
|
const tempContext = context.clone();
|
|
74276
74299
|
tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
|
|
74277
74300
|
await messageService.exec(
|
|
@@ -74296,10 +74319,10 @@ var AIUtilService = class {
|
|
|
74296
74319
|
return false;
|
|
74297
74320
|
const { dislikeMessageAppDEActionId } = this.utilParams;
|
|
74298
74321
|
if (!dislikeMessageAppDEActionId)
|
|
74299
|
-
throw new
|
|
74322
|
+
throw new RuntimeError64("dislikeMessageAppDEActionId is null");
|
|
74300
74323
|
const messageService = await this.getMessageService(context);
|
|
74301
74324
|
if (!messageService)
|
|
74302
|
-
throw new
|
|
74325
|
+
throw new RuntimeError64("messageService is null");
|
|
74303
74326
|
const tempContext = context.clone();
|
|
74304
74327
|
tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
|
|
74305
74328
|
await messageService.exec(
|
|
@@ -74324,10 +74347,10 @@ var AIUtilService = class {
|
|
|
74324
74347
|
return false;
|
|
74325
74348
|
const { cancelFeedbackMessageAppDEActionId } = this.utilParams;
|
|
74326
74349
|
if (!cancelFeedbackMessageAppDEActionId)
|
|
74327
|
-
throw new
|
|
74350
|
+
throw new RuntimeError64("cancelFeedbackAppDEActionId is null");
|
|
74328
74351
|
const messageService = await this.getMessageService(context);
|
|
74329
74352
|
if (!messageService)
|
|
74330
|
-
throw new
|
|
74353
|
+
throw new RuntimeError64("messageService is null");
|
|
74331
74354
|
const tempContext = context.clone();
|
|
74332
74355
|
tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
|
|
74333
74356
|
await messageService.exec(
|
|
@@ -74691,7 +74714,7 @@ var CollaborateService = class {
|
|
|
74691
74714
|
};
|
|
74692
74715
|
|
|
74693
74716
|
// src/service/de-service-util.ts
|
|
74694
|
-
import { RuntimeError as
|
|
74717
|
+
import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
|
|
74695
74718
|
var _DEServiceUtil = class _DEServiceUtil {
|
|
74696
74719
|
/**
|
|
74697
74720
|
* Creates an instance of DEServiceUtil.
|
|
@@ -74825,7 +74848,7 @@ var _DEServiceUtil = class _DEServiceUtil {
|
|
|
74825
74848
|
appid || this.appModel.appId
|
|
74826
74849
|
);
|
|
74827
74850
|
if (!entityModel) {
|
|
74828
|
-
throw new
|
|
74851
|
+
throw new RuntimeError65(ibiz.i18n.t("runtime.service.noFound", { id }));
|
|
74829
74852
|
}
|
|
74830
74853
|
const constructor = _DEServiceUtil.constructorCache.get(id.toUpperCase());
|
|
74831
74854
|
let service;
|
|
@@ -75181,7 +75204,7 @@ var CustomThemeUtil = class {
|
|
|
75181
75204
|
ibiz.i18n.t("runtime.controller.utils.customThemeUtil.saveSuccess")
|
|
75182
75205
|
);
|
|
75183
75206
|
} else {
|
|
75184
|
-
throw new
|
|
75207
|
+
throw new RuntimeError66(
|
|
75185
75208
|
ibiz.i18n.t("runtime.controller.utils.customThemeUtil.saveError")
|
|
75186
75209
|
);
|
|
75187
75210
|
}
|
|
@@ -75210,7 +75233,7 @@ var CustomThemeUtil = class {
|
|
|
75210
75233
|
ibiz.i18n.t("runtime.controller.utils.customThemeUtil.resetSuccess")
|
|
75211
75234
|
);
|
|
75212
75235
|
} else {
|
|
75213
|
-
throw new
|
|
75236
|
+
throw new RuntimeError66(
|
|
75214
75237
|
ibiz.i18n.t("runtime.controller.utils.customThemeUtil.resetError")
|
|
75215
75238
|
);
|
|
75216
75239
|
}
|
|
@@ -77574,7 +77597,7 @@ var AnimeUtil = class {
|
|
|
77574
77597
|
// src/utils/file-util/file-util.ts
|
|
77575
77598
|
import {
|
|
77576
77599
|
CoreConst as CoreConst3,
|
|
77577
|
-
RuntimeError as
|
|
77600
|
+
RuntimeError as RuntimeError67,
|
|
77578
77601
|
downloadFileFromBlob as downloadFileFromBlob2,
|
|
77579
77602
|
getAppCookie as getAppCookie2
|
|
77580
77603
|
} from "@ibiz-template/core";
|
|
@@ -77944,7 +77967,7 @@ var FileUtil = class {
|
|
|
77944
77967
|
downloadTicketParams
|
|
77945
77968
|
);
|
|
77946
77969
|
if (!downloadTicket) {
|
|
77947
|
-
throw new
|
|
77970
|
+
throw new RuntimeError67(
|
|
77948
77971
|
"runtime.utils.fileUtil.getDownloadTicketFailed"
|
|
77949
77972
|
);
|
|
77950
77973
|
}
|
|
@@ -77957,10 +77980,10 @@ var FileUtil = class {
|
|
|
77957
77980
|
// 已经有baseURL了,这里无需再写
|
|
77958
77981
|
});
|
|
77959
77982
|
if (response.status !== 200) {
|
|
77960
|
-
throw new
|
|
77983
|
+
throw new RuntimeError67(ibiz.i18n.t("runtime.platform.failedDownload"));
|
|
77961
77984
|
}
|
|
77962
77985
|
if (!response.data) {
|
|
77963
|
-
throw new
|
|
77986
|
+
throw new RuntimeError67(ibiz.i18n.t("runtime.platform.fileStreamData"));
|
|
77964
77987
|
} else {
|
|
77965
77988
|
let fileName = ibiz.util.file.getFileName(response);
|
|
77966
77989
|
if (name2)
|
|
@@ -77986,7 +78009,7 @@ var FileUtil = class {
|
|
|
77986
78009
|
data: formData
|
|
77987
78010
|
});
|
|
77988
78011
|
if (res.status !== 200) {
|
|
77989
|
-
throw new
|
|
78012
|
+
throw new RuntimeError67(
|
|
77990
78013
|
ibiz.i18n.t("runtime.utils.fileUtil.fileUploadFailed")
|
|
77991
78014
|
);
|
|
77992
78015
|
}
|
|
@@ -78136,7 +78159,7 @@ var FileUtil = class {
|
|
|
78136
78159
|
downloadTicketParams
|
|
78137
78160
|
);
|
|
78138
78161
|
if (!downloadTicket) {
|
|
78139
|
-
throw new
|
|
78162
|
+
throw new RuntimeError67(
|
|
78140
78163
|
"runtime.utils.fileUtil.getDownloadTicketFailed"
|
|
78141
78164
|
);
|
|
78142
78165
|
}
|
|
@@ -78149,10 +78172,10 @@ var FileUtil = class {
|
|
|
78149
78172
|
// 已经有 baseURL,不需要再写
|
|
78150
78173
|
});
|
|
78151
78174
|
if (response.status !== 200) {
|
|
78152
|
-
throw new
|
|
78175
|
+
throw new RuntimeError67(ibiz.i18n.t("runtime.platform.failedDownload"));
|
|
78153
78176
|
}
|
|
78154
78177
|
if (!response.data) {
|
|
78155
|
-
throw new
|
|
78178
|
+
throw new RuntimeError67(ibiz.i18n.t("runtime.platform.fileStreamData"));
|
|
78156
78179
|
}
|
|
78157
78180
|
return response.data;
|
|
78158
78181
|
}
|
|
@@ -78348,7 +78371,7 @@ var ShortCutUtil = class {
|
|
|
78348
78371
|
|
|
78349
78372
|
// src/utils/bi-report-util/bi-report-util.ts
|
|
78350
78373
|
import { clone as clone57 } from "ramda";
|
|
78351
|
-
import { RuntimeError as
|
|
78374
|
+
import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
|
|
78352
78375
|
var BIReportUtil = class {
|
|
78353
78376
|
/**
|
|
78354
78377
|
* 打开设计界面
|
|
@@ -78385,7 +78408,7 @@ var BIReportUtil = class {
|
|
|
78385
78408
|
}
|
|
78386
78409
|
}
|
|
78387
78410
|
} catch (error) {
|
|
78388
|
-
throw new
|
|
78411
|
+
throw new RuntimeError68(error.message);
|
|
78389
78412
|
}
|
|
78390
78413
|
} else if (data.mode === "UI") {
|
|
78391
78414
|
config = this.translateReportPanelToConfig(data.reportPanel.model);
|
|
@@ -78781,7 +78804,7 @@ var BIReportUtil = class {
|
|
|
78781
78804
|
};
|
|
78782
78805
|
|
|
78783
78806
|
// src/utils/record-nav-util/record-nav-util.ts
|
|
78784
|
-
import { RuntimeError as
|
|
78807
|
+
import { RuntimeError as RuntimeError69 } from "@ibiz-template/core";
|
|
78785
78808
|
import { createUUID as createUUID24 } from "qx-util";
|
|
78786
78809
|
var RecordNavUtil = class {
|
|
78787
78810
|
constructor() {
|
|
@@ -78888,7 +78911,7 @@ var RecordNavUtil = class {
|
|
|
78888
78911
|
async getFirstRecord(ctrlId, dataId) {
|
|
78889
78912
|
const targrtCtrl = this.getCtrl(ctrlId);
|
|
78890
78913
|
if (!targrtCtrl) {
|
|
78891
|
-
throw new
|
|
78914
|
+
throw new RuntimeError69(
|
|
78892
78915
|
ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
|
|
78893
78916
|
ctrlId
|
|
78894
78917
|
})
|
|
@@ -78919,7 +78942,7 @@ var RecordNavUtil = class {
|
|
|
78919
78942
|
async getPreviousRecord(ctrlId, dataId) {
|
|
78920
78943
|
const targrtCtrl = this.getCtrl(ctrlId);
|
|
78921
78944
|
if (!targrtCtrl) {
|
|
78922
|
-
throw new
|
|
78945
|
+
throw new RuntimeError69(
|
|
78923
78946
|
ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
|
|
78924
78947
|
ctrlId
|
|
78925
78948
|
})
|
|
@@ -78958,7 +78981,7 @@ var RecordNavUtil = class {
|
|
|
78958
78981
|
async getNextRecord(ctrlId, dataId) {
|
|
78959
78982
|
const targrtCtrl = this.getCtrl(ctrlId);
|
|
78960
78983
|
if (!targrtCtrl) {
|
|
78961
|
-
throw new
|
|
78984
|
+
throw new RuntimeError69(
|
|
78962
78985
|
ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
|
|
78963
78986
|
ctrlId
|
|
78964
78987
|
})
|
|
@@ -79010,7 +79033,7 @@ var RecordNavUtil = class {
|
|
|
79010
79033
|
async getLastRecord(ctrlId, dataId) {
|
|
79011
79034
|
const targrtCtrl = this.getCtrl(ctrlId);
|
|
79012
79035
|
if (!targrtCtrl) {
|
|
79013
|
-
throw new
|
|
79036
|
+
throw new RuntimeError69(
|
|
79014
79037
|
ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
|
|
79015
79038
|
ctrlId
|
|
79016
79039
|
})
|
|
@@ -79551,7 +79574,7 @@ var Html2Canvas = class {
|
|
|
79551
79574
|
};
|
|
79552
79575
|
|
|
79553
79576
|
// src/utils/voice-util/voice-util.ts
|
|
79554
|
-
import { RuntimeError as
|
|
79577
|
+
import { RuntimeError as RuntimeError70 } from "@ibiz-template/core";
|
|
79555
79578
|
var VoiceUtil = class {
|
|
79556
79579
|
/**
|
|
79557
79580
|
* 文字转语音
|
|
@@ -79587,7 +79610,7 @@ var VoiceUtil = class {
|
|
|
79587
79610
|
* @date 2024-12-20 15:07:31
|
|
79588
79611
|
*/
|
|
79589
79612
|
speechToText() {
|
|
79590
|
-
throw new
|
|
79613
|
+
throw new RuntimeError70(ibiz.i18n.t("runtime.common.unrealized"));
|
|
79591
79614
|
}
|
|
79592
79615
|
};
|
|
79593
79616
|
|
|
@@ -84900,7 +84923,7 @@ async function calcDynamicMenu(menu, context, params) {
|
|
|
84900
84923
|
}
|
|
84901
84924
|
|
|
84902
84925
|
// src/command/app/open-app-view/open-app-view.ts
|
|
84903
|
-
import { ModelError as ModelError30, RuntimeError as
|
|
84926
|
+
import { ModelError as ModelError30, RuntimeError as RuntimeError71 } from "@ibiz-template/core";
|
|
84904
84927
|
import { clone as clone59 } from "ramda";
|
|
84905
84928
|
var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
84906
84929
|
constructor() {
|
|
@@ -84924,7 +84947,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
84924
84947
|
}
|
|
84925
84948
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
84926
84949
|
if (!appView) {
|
|
84927
|
-
throw new
|
|
84950
|
+
throw new RuntimeError71(
|
|
84928
84951
|
ibiz.i18n.t("runtime.command.app.noFindApplicationView", {
|
|
84929
84952
|
appViewId
|
|
84930
84953
|
})
|
|
@@ -85054,7 +85077,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
85054
85077
|
async openPopover(appView, context, params = {}, opts = {}) {
|
|
85055
85078
|
const { event, modalOption } = opts;
|
|
85056
85079
|
if (!event) {
|
|
85057
|
-
throw new
|
|
85080
|
+
throw new RuntimeError71(ibiz.i18n.t("runtime.command.app.missingEvent"));
|
|
85058
85081
|
}
|
|
85059
85082
|
if (opts.parentData) {
|
|
85060
85083
|
params.parentData = stringifyObj(opts.parentData);
|
|
@@ -85138,7 +85161,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
85138
85161
|
const app = await ibiz.hub.getAppAsync(context.srfappid);
|
|
85139
85162
|
const appFunc = app.getAppFunc(appFuncId);
|
|
85140
85163
|
if (!appFunc) {
|
|
85141
|
-
throw new
|
|
85164
|
+
throw new RuntimeError72(
|
|
85142
85165
|
ibiz.i18n.t("runtime.command.app.noFindApplicationFunction", {
|
|
85143
85166
|
appFuncId
|
|
85144
85167
|
})
|
|
@@ -85184,7 +85207,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
85184
85207
|
*/
|
|
85185
85208
|
async openAppView(appFunc, context, params, opts) {
|
|
85186
85209
|
if (!appFunc.appViewId) {
|
|
85187
|
-
throw new
|
|
85210
|
+
throw new RuntimeError72(
|
|
85188
85211
|
ibiz.i18n.t("runtime.command.app.noFindApplicationView", {
|
|
85189
85212
|
appViewId: appFunc.appViewId
|
|
85190
85213
|
})
|
|
@@ -85222,7 +85245,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
85222
85245
|
*/
|
|
85223
85246
|
openPdAppFunc(appFunc, context, params) {
|
|
85224
85247
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
85225
|
-
throw new
|
|
85248
|
+
throw new RuntimeError72(ibiz.i18n.t("runtime.common.unrealized"));
|
|
85226
85249
|
}
|
|
85227
85250
|
/**
|
|
85228
85251
|
* 执行 JavaScript 脚本
|
|
@@ -85274,7 +85297,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
85274
85297
|
*/
|
|
85275
85298
|
custom(appFunc, context, params) {
|
|
85276
85299
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
85277
|
-
throw new
|
|
85300
|
+
throw new RuntimeError72(ibiz.i18n.t("runtime.common.unrealized"));
|
|
85278
85301
|
}
|
|
85279
85302
|
};
|
|
85280
85303
|
/**
|
|
@@ -85295,7 +85318,7 @@ function installCommand() {
|
|
|
85295
85318
|
}
|
|
85296
85319
|
|
|
85297
85320
|
// src/app-hub.ts
|
|
85298
|
-
import { getToken as getToken2, RuntimeError as
|
|
85321
|
+
import { getToken as getToken2, RuntimeError as RuntimeError74 } from "@ibiz-template/core";
|
|
85299
85322
|
|
|
85300
85323
|
// src/application.ts
|
|
85301
85324
|
import { Net } from "@ibiz-template/core";
|
|
@@ -85617,7 +85640,7 @@ var Convert = class {
|
|
|
85617
85640
|
};
|
|
85618
85641
|
|
|
85619
85642
|
// src/hub/config/app-view-config-service.ts
|
|
85620
|
-
import { RuntimeError as
|
|
85643
|
+
import { RuntimeError as RuntimeError73 } from "@ibiz-template/core";
|
|
85621
85644
|
var AppViewConfigService = class {
|
|
85622
85645
|
constructor() {
|
|
85623
85646
|
/**
|
|
@@ -85712,7 +85735,7 @@ var AppViewConfigService = class {
|
|
|
85712
85735
|
if (!this.viewConfigs.has(id)) {
|
|
85713
85736
|
const model = await ibiz.hub.getAppView(id);
|
|
85714
85737
|
if (!model) {
|
|
85715
|
-
throw new
|
|
85738
|
+
throw new RuntimeError73(ibiz.i18n.t("runtime.hub.noExist", { id }));
|
|
85716
85739
|
}
|
|
85717
85740
|
this.set(model.id, {
|
|
85718
85741
|
id: model.id,
|
|
@@ -86742,7 +86765,7 @@ var AppHub = class {
|
|
|
86742
86765
|
this.registerAppView(appView);
|
|
86743
86766
|
return appView;
|
|
86744
86767
|
}
|
|
86745
|
-
throw new
|
|
86768
|
+
throw new RuntimeError74(ibiz.i18n.t("runtime.hub.noExist", { id }));
|
|
86746
86769
|
}
|
|
86747
86770
|
/**
|
|
86748
86771
|
* 根据DrControl的名称和子应用标识获取模型
|
|
@@ -86850,7 +86873,7 @@ var AppHub = class {
|
|
|
86850
86873
|
);
|
|
86851
86874
|
return model;
|
|
86852
86875
|
}
|
|
86853
|
-
throw new
|
|
86876
|
+
throw new RuntimeError74(
|
|
86854
86877
|
ibiz.i18n.t("runtime.hub.noExist", { id: modelPath })
|
|
86855
86878
|
);
|
|
86856
86879
|
}
|
|
@@ -86893,7 +86916,7 @@ var AppHub = class {
|
|
|
86893
86916
|
this.registerAppDataEntity(entity, appId2);
|
|
86894
86917
|
return entity;
|
|
86895
86918
|
}
|
|
86896
|
-
throw new
|
|
86919
|
+
throw new RuntimeError74(ibiz.i18n.t("runtime.service.noFound", { id }));
|
|
86897
86920
|
}
|
|
86898
86921
|
/**
|
|
86899
86922
|
* 根据代码表标识获取子应用代码表
|
|
@@ -86920,7 +86943,7 @@ var AppHub = class {
|
|
|
86920
86943
|
return this.appMap.get(id);
|
|
86921
86944
|
}
|
|
86922
86945
|
if (!this.modelLoaderProvider) {
|
|
86923
|
-
throw new
|
|
86946
|
+
throw new RuntimeError74(ibiz.i18n.t("runtime.utils.firstregister"));
|
|
86924
86947
|
}
|
|
86925
86948
|
const appModel = await this.modelLoaderProvider.getApp(id);
|
|
86926
86949
|
const subAppRef = await this.modelLoaderProvider.getSubAppRef(id);
|
|
@@ -87060,7 +87083,7 @@ var AppHub = class {
|
|
|
87060
87083
|
*/
|
|
87061
87084
|
mergeSubAppCodeList(codeList) {
|
|
87062
87085
|
if (!this.modelLoaderProvider) {
|
|
87063
|
-
throw new
|
|
87086
|
+
throw new RuntimeError74(ibiz.i18n.t("runtime.utils.firstregister"));
|
|
87064
87087
|
}
|
|
87065
87088
|
this.modelLoaderProvider.mergeSubAppCodeList(codeList);
|
|
87066
87089
|
}
|
|
@@ -87162,7 +87185,7 @@ var EngineFactory = class {
|
|
|
87162
87185
|
|
|
87163
87186
|
// src/engine/view-base.engine.ts
|
|
87164
87187
|
import {
|
|
87165
|
-
RuntimeError as
|
|
87188
|
+
RuntimeError as RuntimeError75,
|
|
87166
87189
|
findRecursiveChild as findRecursiveChild3,
|
|
87167
87190
|
IBizContext as IBizContext10
|
|
87168
87191
|
} from "@ibiz-template/core";
|
|
@@ -87638,7 +87661,7 @@ var ViewEngineBase = class {
|
|
|
87638
87661
|
const { appDataEntityId } = this.view.model;
|
|
87639
87662
|
const { evt, context, params } = this.view;
|
|
87640
87663
|
if (!appDataEntityId) {
|
|
87641
|
-
throw new
|
|
87664
|
+
throw new RuntimeError75(ibiz.i18n.t("runtime.engine.loadEntityData"));
|
|
87642
87665
|
}
|
|
87643
87666
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
87644
87667
|
const res = await app.deService.exec(
|
|
@@ -87719,7 +87742,7 @@ var ViewEngineBase = class {
|
|
|
87719
87742
|
};
|
|
87720
87743
|
|
|
87721
87744
|
// src/engine/md-view.engine.ts
|
|
87722
|
-
import { RuntimeModelError as
|
|
87745
|
+
import { RuntimeModelError as RuntimeModelError71 } from "@ibiz-template/core";
|
|
87723
87746
|
import { clone as clone61 } from "ramda";
|
|
87724
87747
|
var MDViewEngine = class extends ViewEngineBase {
|
|
87725
87748
|
/**
|
|
@@ -87971,7 +87994,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
87971
87994
|
view: this.view
|
|
87972
87995
|
}));
|
|
87973
87996
|
if (result === -1) {
|
|
87974
|
-
throw new
|
|
87997
|
+
throw new RuntimeModelError71(
|
|
87975
87998
|
this.view.model,
|
|
87976
87999
|
ibiz.i18n.t("runtime.engine.logicOpendata")
|
|
87977
88000
|
);
|
|
@@ -88003,7 +88026,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
88003
88026
|
(item) => item.id === "newdata"
|
|
88004
88027
|
);
|
|
88005
88028
|
if (!openAppViewLogic) {
|
|
88006
|
-
throw new
|
|
88029
|
+
throw new RuntimeModelError71(
|
|
88007
88030
|
this.view.model,
|
|
88008
88031
|
ibiz.i18n.t("runtime.engine.logicNewdata")
|
|
88009
88032
|
);
|
|
@@ -88023,7 +88046,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
88023
88046
|
view: this.view
|
|
88024
88047
|
}));
|
|
88025
88048
|
if (result === -1) {
|
|
88026
|
-
throw new
|
|
88049
|
+
throw new RuntimeModelError71(
|
|
88027
88050
|
this.view.model,
|
|
88028
88051
|
ibiz.i18n.t("runtime.engine.logicNewdata")
|
|
88029
88052
|
);
|
|
@@ -88755,7 +88778,7 @@ var gBase64 = {
|
|
|
88755
88778
|
};
|
|
88756
88779
|
|
|
88757
88780
|
// src/global/global-util/global-util.ts
|
|
88758
|
-
import { RuntimeError as
|
|
88781
|
+
import { RuntimeError as RuntimeError76 } from "@ibiz-template/core";
|
|
88759
88782
|
var GlobalUtil = class {
|
|
88760
88783
|
constructor() {
|
|
88761
88784
|
/**
|
|
@@ -88901,7 +88924,7 @@ var GlobalUtil = class {
|
|
|
88901
88924
|
* @memberof GlobalUtil
|
|
88902
88925
|
*/
|
|
88903
88926
|
getGlobalParam() {
|
|
88904
|
-
throw new
|
|
88927
|
+
throw new RuntimeError76(ibiz.i18n.t("runtime.global.noImplemented"));
|
|
88905
88928
|
}
|
|
88906
88929
|
/**
|
|
88907
88930
|
* @description 获取视图路由参数变量,数组类型,基于路由解析出来的,每一个对象里面都有context和params
|
|
@@ -88909,7 +88932,7 @@ var GlobalUtil = class {
|
|
|
88909
88932
|
* @memberof GlobalUtil
|
|
88910
88933
|
*/
|
|
88911
88934
|
getRouterParams() {
|
|
88912
|
-
throw new
|
|
88935
|
+
throw new RuntimeError76(ibiz.i18n.t("runtime.global.noImplementedRouting"));
|
|
88913
88936
|
}
|
|
88914
88937
|
/**
|
|
88915
88938
|
* @description 注册全局功能类扩展,用于替换预置能力
|
|
@@ -88924,7 +88947,7 @@ var GlobalUtil = class {
|
|
|
88924
88947
|
};
|
|
88925
88948
|
|
|
88926
88949
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
88927
|
-
import { RuntimeError as
|
|
88950
|
+
import { RuntimeError as RuntimeError77 } from "@ibiz-template/core";
|
|
88928
88951
|
var LogicExecutor = class {
|
|
88929
88952
|
/**
|
|
88930
88953
|
* @author lxm
|
|
@@ -88945,7 +88968,7 @@ var LogicExecutor = class {
|
|
|
88945
88968
|
*/
|
|
88946
88969
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88947
88970
|
execute(_executeParams) {
|
|
88948
|
-
throw new
|
|
88971
|
+
throw new RuntimeError77(
|
|
88949
88972
|
ibiz.i18n.t("runtime.logicScheduler.executor.noImplementedMethod")
|
|
88950
88973
|
);
|
|
88951
88974
|
}
|
|
@@ -89032,24 +89055,33 @@ var ScriptExecutor = class extends LogicExecutor {
|
|
|
89032
89055
|
init(paramKeys, convertFun, options) {
|
|
89033
89056
|
this.convertScriptArgs = convertFun;
|
|
89034
89057
|
const code = this.logic.scriptCode;
|
|
89035
|
-
|
|
89058
|
+
try {
|
|
89059
|
+
this.scriptFn = ScriptFactory.createScriptFn(paramKeys, code, options);
|
|
89060
|
+
} catch (error) {
|
|
89061
|
+
ibiz.log.error(
|
|
89062
|
+
ibiz.i18n.t("runtime.utils.script.errorReportingScript"),
|
|
89063
|
+
code
|
|
89064
|
+
);
|
|
89065
|
+
}
|
|
89036
89066
|
this.initialized = true;
|
|
89037
89067
|
}
|
|
89038
89068
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
89039
89069
|
execute(executeParams) {
|
|
89040
89070
|
const scriptArgs = this.convertScriptArgs(executeParams);
|
|
89041
|
-
|
|
89071
|
+
if (this.scriptFn) {
|
|
89072
|
+
return this.scriptFn.exec(scriptArgs);
|
|
89073
|
+
}
|
|
89042
89074
|
}
|
|
89043
89075
|
};
|
|
89044
89076
|
|
|
89045
89077
|
// src/logic-scheduler/executor/app-de-ui-logic-executor.ts
|
|
89046
|
-
import { RuntimeModelError as
|
|
89078
|
+
import { RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
|
|
89047
89079
|
var AppDEUILogicExecutor = class extends LogicExecutor {
|
|
89048
89080
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
89049
89081
|
execute(executeParams) {
|
|
89050
89082
|
const { appDEUILogicId, appDataEntityId } = this.logic;
|
|
89051
89083
|
if (!appDEUILogicId) {
|
|
89052
|
-
throw new
|
|
89084
|
+
throw new RuntimeModelError72(
|
|
89053
89085
|
this.logic,
|
|
89054
89086
|
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
89055
89087
|
);
|
|
@@ -89415,7 +89447,7 @@ var LogicSchedulerCenter = class {
|
|
|
89415
89447
|
};
|
|
89416
89448
|
|
|
89417
89449
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
89418
|
-
import { RuntimeError as
|
|
89450
|
+
import { RuntimeError as RuntimeError78 } from "@ibiz-template/core";
|
|
89419
89451
|
var LogicTrigger = class {
|
|
89420
89452
|
/**
|
|
89421
89453
|
* @author lxm
|
|
@@ -89476,7 +89508,7 @@ var LogicTrigger = class {
|
|
|
89476
89508
|
if (this.executor) {
|
|
89477
89509
|
return this.executor.execute(executeParams);
|
|
89478
89510
|
}
|
|
89479
|
-
throw new
|
|
89511
|
+
throw new RuntimeError78(
|
|
89480
89512
|
ibiz.i18n.t("runtime.logicScheduler.trigger.noExecutorBound", {
|
|
89481
89513
|
id: this.logic.id
|
|
89482
89514
|
})
|
|
@@ -89497,12 +89529,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
89497
89529
|
};
|
|
89498
89530
|
|
|
89499
89531
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
89500
|
-
import { RuntimeError as
|
|
89532
|
+
import { RuntimeError as RuntimeError79 } from "@ibiz-template/core";
|
|
89501
89533
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
89502
89534
|
bindExecutor(executor) {
|
|
89503
89535
|
super.bindExecutor(executor);
|
|
89504
89536
|
if (this.executor.type !== "SCRIPT") {
|
|
89505
|
-
throw new
|
|
89537
|
+
throw new RuntimeError79(
|
|
89506
89538
|
ibiz.i18n.t("runtime.logicScheduler.trigger.triggerType")
|
|
89507
89539
|
);
|
|
89508
89540
|
}
|
|
@@ -89540,7 +89572,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
89540
89572
|
};
|
|
89541
89573
|
|
|
89542
89574
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
89543
|
-
import { RuntimeError as
|
|
89575
|
+
import { RuntimeError as RuntimeError80, RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
|
|
89544
89576
|
var TimerTrigger = class extends LogicTrigger {
|
|
89545
89577
|
constructor() {
|
|
89546
89578
|
super(...arguments);
|
|
@@ -89548,14 +89580,14 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
89548
89580
|
}
|
|
89549
89581
|
start() {
|
|
89550
89582
|
if (!this.logic.timer) {
|
|
89551
|
-
throw new
|
|
89583
|
+
throw new RuntimeModelError73(
|
|
89552
89584
|
this.logic,
|
|
89553
89585
|
ibiz.i18n.t("runtime.logicScheduler.trigger.timerLacks")
|
|
89554
89586
|
);
|
|
89555
89587
|
}
|
|
89556
89588
|
this.timer = setInterval(() => {
|
|
89557
89589
|
if (!this.scheduler.defaultParamsCb) {
|
|
89558
|
-
throw new
|
|
89590
|
+
throw new RuntimeError80(
|
|
89559
89591
|
ibiz.i18n.t("runtime.logicScheduler.trigger.parameterCallback")
|
|
89560
89592
|
);
|
|
89561
89593
|
}
|
|
@@ -89587,8 +89619,8 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
89587
89619
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
89588
89620
|
import {
|
|
89589
89621
|
ModelError as ModelError34,
|
|
89590
|
-
RuntimeError as
|
|
89591
|
-
RuntimeModelError as
|
|
89622
|
+
RuntimeError as RuntimeError81,
|
|
89623
|
+
RuntimeModelError as RuntimeModelError74
|
|
89592
89624
|
} from "@ibiz-template/core";
|
|
89593
89625
|
import { notNilEmpty as notNilEmpty11 } from "qx-util";
|
|
89594
89626
|
var AppUILogicExecutor = class extends LogicExecutor {
|
|
@@ -89625,7 +89657,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89625
89657
|
const { context, params, ...rest } = parameters;
|
|
89626
89658
|
const { data, view } = parameters;
|
|
89627
89659
|
if (!(data == null ? void 0 : data[0])) {
|
|
89628
|
-
throw new
|
|
89660
|
+
throw new RuntimeError81(
|
|
89629
89661
|
ibiz.i18n.t("runtime.logicScheduler.executor.noActionableData")
|
|
89630
89662
|
);
|
|
89631
89663
|
}
|
|
@@ -89636,7 +89668,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89636
89668
|
} else {
|
|
89637
89669
|
openViewRef = appUILogic.openDataAppView;
|
|
89638
89670
|
if (!openViewRef) {
|
|
89639
|
-
throw new
|
|
89671
|
+
throw new RuntimeModelError74(
|
|
89640
89672
|
appUILogic,
|
|
89641
89673
|
ibiz.i18n.t(
|
|
89642
89674
|
"runtime.logicScheduler.executor.defaultOpendataViewLogic"
|
|
@@ -89646,7 +89678,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89646
89678
|
}
|
|
89647
89679
|
const openView = openViewRef.refAppViewId;
|
|
89648
89680
|
if (!openView) {
|
|
89649
|
-
throw new
|
|
89681
|
+
throw new RuntimeModelError74(
|
|
89650
89682
|
appUILogic,
|
|
89651
89683
|
ibiz.i18n.t("runtime.logicScheduler.executor.noActuallyReference")
|
|
89652
89684
|
);
|
|
@@ -89684,7 +89716,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89684
89716
|
);
|
|
89685
89717
|
const typeFileName = appDataEntity.formTypeAppDEFieldId || appDataEntity.dataTypeAppDEFieldId;
|
|
89686
89718
|
if (!typeFileName) {
|
|
89687
|
-
throw new
|
|
89719
|
+
throw new RuntimeModelError74(
|
|
89688
89720
|
appUILogic,
|
|
89689
89721
|
ibiz.i18n.t("runtime.logicScheduler.executor.attributeConfiguration", {
|
|
89690
89722
|
codeName: appDataEntity.codeName
|
|
@@ -89694,7 +89726,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89694
89726
|
const { data } = parameters;
|
|
89695
89727
|
const formTypeValue = data[0][typeFileName];
|
|
89696
89728
|
if (!formTypeValue) {
|
|
89697
|
-
throw new
|
|
89729
|
+
throw new RuntimeModelError74(
|
|
89698
89730
|
appUILogic,
|
|
89699
89731
|
ibiz.i18n.t("runtime.logicScheduler.executor.entityAttributeValues")
|
|
89700
89732
|
);
|
|
@@ -89702,7 +89734,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89702
89734
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
89703
89735
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
89704
89736
|
if (!findView) {
|
|
89705
|
-
throw new
|
|
89737
|
+
throw new RuntimeError81(
|
|
89706
89738
|
ibiz.i18n.t("runtime.logicScheduler.executor.editViews", {
|
|
89707
89739
|
formTypeValue
|
|
89708
89740
|
})
|
|
@@ -89741,7 +89773,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89741
89773
|
return viewRef.refMode.toLowerCase() !== parentDeName;
|
|
89742
89774
|
});
|
|
89743
89775
|
if (!newViewRef) {
|
|
89744
|
-
throw new
|
|
89776
|
+
throw new RuntimeModelError74(
|
|
89745
89777
|
appUILogic,
|
|
89746
89778
|
ibiz.i18n.t("runtime.logicScheduler.executor.selectionView")
|
|
89747
89779
|
);
|
|
@@ -89754,7 +89786,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89754
89786
|
} else {
|
|
89755
89787
|
newViewRef = newDataAppView;
|
|
89756
89788
|
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
89757
|
-
throw new
|
|
89789
|
+
throw new RuntimeModelError74(
|
|
89758
89790
|
appUILogic,
|
|
89759
89791
|
ibiz.i18n.t("runtime.logicScheduler.executor.newdataViewLogic")
|
|
89760
89792
|
);
|
|
@@ -89827,7 +89859,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89827
89859
|
const { context, params, ...rest } = parameters;
|
|
89828
89860
|
const { view } = parameters;
|
|
89829
89861
|
if (!wizardAppView || !wizardAppView.refAppViewId) {
|
|
89830
|
-
throw new
|
|
89862
|
+
throw new RuntimeModelError74(
|
|
89831
89863
|
appUILogic,
|
|
89832
89864
|
ibiz.i18n.t("runtime.logicScheduler.executor.indexEntity")
|
|
89833
89865
|
);
|
|
@@ -89844,7 +89876,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89844
89876
|
}
|
|
89845
89877
|
const selectData = (_a3 = result.data) == null ? void 0 : _a3[0];
|
|
89846
89878
|
if (!selectData) {
|
|
89847
|
-
throw new
|
|
89879
|
+
throw new RuntimeError81(
|
|
89848
89880
|
ibiz.i18n.t("runtime.logicScheduler.executor.checkOne")
|
|
89849
89881
|
);
|
|
89850
89882
|
}
|
|
@@ -89856,7 +89888,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89856
89888
|
}
|
|
89857
89889
|
);
|
|
89858
89890
|
if (!findView) {
|
|
89859
|
-
throw new
|
|
89891
|
+
throw new RuntimeError81(
|
|
89860
89892
|
ibiz.i18n.t("runtime.logicScheduler.executor.entitiesAssociated", {
|
|
89861
89893
|
indexType
|
|
89862
89894
|
})
|
|
@@ -89885,7 +89917,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89885
89917
|
const minorDERs = selfDe.minorAppDERSs;
|
|
89886
89918
|
const pickParentDeName = newViewRef.refMode.toLowerCase();
|
|
89887
89919
|
if (!minorDERs) {
|
|
89888
|
-
throw new
|
|
89920
|
+
throw new RuntimeModelError74(
|
|
89889
89921
|
selfDe,
|
|
89890
89922
|
ibiz.i18n.t("runtime.logicScheduler.executor.relationships")
|
|
89891
89923
|
);
|
|
@@ -89898,7 +89930,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
89898
89930
|
}
|
|
89899
89931
|
});
|
|
89900
89932
|
if (pickParentFieldName === void 0) {
|
|
89901
|
-
throw new
|
|
89933
|
+
throw new RuntimeError81(
|
|
89902
89934
|
ibiz.i18n.t("runtime.logicScheduler.executor.foreignKey", {
|
|
89903
89935
|
pickParentDeName
|
|
89904
89936
|
})
|
|
@@ -89996,12 +90028,12 @@ var ControlEventTrigger = class extends LogicTrigger {
|
|
|
89996
90028
|
};
|
|
89997
90029
|
|
|
89998
90030
|
// src/logic-scheduler/executor/app-ui-action-executor.ts
|
|
89999
|
-
import { RuntimeModelError as
|
|
90031
|
+
import { RuntimeModelError as RuntimeModelError75 } from "@ibiz-template/core";
|
|
90000
90032
|
var AppDEUIActionExecutor = class extends LogicExecutor {
|
|
90001
90033
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
90002
90034
|
execute(executeParams) {
|
|
90003
90035
|
if (!this.logic.appDEUIActionId) {
|
|
90004
|
-
throw new
|
|
90036
|
+
throw new RuntimeModelError75(
|
|
90005
90037
|
this.logic,
|
|
90006
90038
|
ibiz.i18n.t("runtime.logicScheduler.executor.missingTrigger")
|
|
90007
90039
|
);
|
|
@@ -90595,6 +90627,7 @@ var en = {
|
|
|
90595
90627
|
adapter: "Cannot find the adapter corresponding to the system counter plugin {pluginKey}.",
|
|
90596
90628
|
customizedSystemAdapter: "Cannot find the adapter corresponding to the customized system counter {codeName}.",
|
|
90597
90629
|
noFoundSystemCounter: "Adapter for system counter type {counterType} is not found.",
|
|
90630
|
+
noFoundAppFuncBlock: "Cannot find the default adapter for the application function block.",
|
|
90598
90631
|
applicationMenu: "Cannot find the adapter corresponding to the application menu item plugin {pluginKey}.",
|
|
90599
90632
|
asynchronousAction: "Find the adapter that does not correspond to the asynchronous action type {actiontype}.",
|
|
90600
90633
|
matchedPlugin: "Not matched to plugin [{pluginId}] model",
|
|
@@ -91277,6 +91310,7 @@ var zhCn = {
|
|
|
91277
91310
|
adapter: "\u627E\u4E0D\u5230\u7CFB\u7EDF\u8BA1\u6570\u5668\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
91278
91311
|
customizedSystemAdapter: "\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u7CFB\u7EDF\u8BA1\u6570\u5668{codeName}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
91279
91312
|
noFoundSystemCounter: "\u627E\u4E0D\u7CFB\u7EDF\u8BA1\u6570\u5668\u7C7B\u578B{counterType}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
91313
|
+
noFoundAppFuncBlock: "\u627E\u4E0D\u5230\u5E94\u7528\u529F\u80FD\u5757\u9ED8\u8BA4\u9002\u914D\u5668",
|
|
91280
91314
|
applicationMenu: "\u627E\u4E0D\u5230\u5E94\u7528\u83DC\u5355\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
91281
91315
|
asynchronousAction: "\u627E\u4E0D\u5F02\u6B65\u64CD\u4F5C\u7C7B\u578B{actiontype}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
91282
91316
|
matchedPlugin: "\u672A\u5339\u914D\u5230\u63D2\u4EF6[{pluginId}]\u6A21\u578B",
|
|
@@ -91555,6 +91589,7 @@ export {
|
|
|
91555
91589
|
AIUtilService,
|
|
91556
91590
|
APPMENUITEM_PROVIDER_PREFIX,
|
|
91557
91591
|
APP_COUNTER_PROVIDER_PREFIX,
|
|
91592
|
+
APP_FUNC_BLOCK_PROVIDER_PREFIX,
|
|
91558
91593
|
ASYNC_ACTION_PROVIDER_PREFIX,
|
|
91559
91594
|
AcFetchMethod,
|
|
91560
91595
|
ActionBarPortletController,
|
|
@@ -91934,6 +91969,7 @@ export {
|
|
|
91934
91969
|
getAllPanelField,
|
|
91935
91970
|
getAllUIActionItems,
|
|
91936
91971
|
getAppCounterProvider,
|
|
91972
|
+
getAppFuncBlockProvider,
|
|
91937
91973
|
getAppMenuItemProvider,
|
|
91938
91974
|
getAppViewRef,
|
|
91939
91975
|
getAreaLevelByCode,
|
|
@@ -92018,6 +92054,7 @@ export {
|
|
|
92018
92054
|
presetUIActionProvider,
|
|
92019
92055
|
registerAcItemProvider,
|
|
92020
92056
|
registerAppCounterProvider,
|
|
92057
|
+
registerAppFuncBlockProvider,
|
|
92021
92058
|
registerAppMenuItemProvider,
|
|
92022
92059
|
registerAsyncActionProvider,
|
|
92023
92060
|
registerControlProvider,
|