@ibiz-template/runtime 0.1.1 → 0.1.2
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 +79 -55
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/de-logic/index.d.ts +13 -0
- package/out/de-logic/index.d.ts.map +1 -1
- package/out/de-logic/index.js +34 -2
- package/out/engine/md-view.engine.d.ts +2 -2
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +6 -2
- package/out/index.d.ts +2 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +2 -0
- package/out/interface/controller/controller/control/i-pickup-view-panel.controller.d.ts +10 -0
- package/out/interface/controller/controller/control/i-pickup-view-panel.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts +11 -0
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-pickup-view-panel.event.d.ts +15 -0
- package/out/interface/controller/event/control/i-pickup-view-panel.event.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/de-logic/index.ts +50 -2
- package/src/engine/md-view.engine.ts +7 -2
- package/src/index.ts +2 -0
- package/src/interface/controller/controller/control/i-pickup-view-panel.controller.ts +10 -0
- package/src/interface/controller/controller/control/i-tree-exp-bar.controller.ts +13 -1
- package/src/interface/controller/event/control/i-pickup-view-panel.event.ts +16 -0
package/dist/index.esm.js
CHANGED
|
@@ -4083,7 +4083,7 @@ var CounterService = class {
|
|
|
4083
4083
|
CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
4084
4084
|
|
|
4085
4085
|
// src/service/service/entity/de.service.ts
|
|
4086
|
-
import { ModelError as ModelError15, RuntimeError as
|
|
4086
|
+
import { ModelError as ModelError15, RuntimeError as RuntimeError11 } from "@ibiz-template/core";
|
|
4087
4087
|
|
|
4088
4088
|
// src/service/service/work-flow/work-flow.service.ts
|
|
4089
4089
|
import { RuntimeError as RuntimeError9 } from "@ibiz-template/core";
|
|
@@ -4903,7 +4903,7 @@ var Method = class {
|
|
|
4903
4903
|
};
|
|
4904
4904
|
|
|
4905
4905
|
// src/de-logic/index.ts
|
|
4906
|
-
import { HttpError as HttpError2, HttpResponse as HttpResponse2 } from "@ibiz-template/core";
|
|
4906
|
+
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as RuntimeError10 } from "@ibiz-template/core";
|
|
4907
4907
|
|
|
4908
4908
|
// src/de-logic/de-logic.ts
|
|
4909
4909
|
import { ModelError as ModelError13, RuntimeModelError as RuntimeModelError17 } from "@ibiz-template/core";
|
|
@@ -5838,6 +5838,10 @@ var DELogic = class {
|
|
|
5838
5838
|
|
|
5839
5839
|
// src/de-logic/index.ts
|
|
5840
5840
|
var deLogicMap = /* @__PURE__ */ new Map();
|
|
5841
|
+
async function findDeLogic(deDELogicId, dataEntityId, appId) {
|
|
5842
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(dataEntityId, appId);
|
|
5843
|
+
return findDELogic(deDELogicId, appDataEntity);
|
|
5844
|
+
}
|
|
5841
5845
|
async function execDELogic(deDELogic, context, data, params) {
|
|
5842
5846
|
if (!deLogicMap.has(deDELogic)) {
|
|
5843
5847
|
deLogicMap.set(deDELogic, new DELogic(deDELogic));
|
|
@@ -5845,6 +5849,17 @@ async function execDELogic(deDELogic, context, data, params) {
|
|
|
5845
5849
|
const deLogic = deLogicMap.get(deDELogic);
|
|
5846
5850
|
return deLogic.exec(context, data, params);
|
|
5847
5851
|
}
|
|
5852
|
+
async function execDELogicById(deDELogicId, dataEntityId, context, data, params) {
|
|
5853
|
+
const deLogic = await findDeLogic(
|
|
5854
|
+
deDELogicId,
|
|
5855
|
+
dataEntityId,
|
|
5856
|
+
context.srfappid
|
|
5857
|
+
);
|
|
5858
|
+
if (!deLogic) {
|
|
5859
|
+
throw new RuntimeError10("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
|
|
5860
|
+
}
|
|
5861
|
+
return execDELogic(deLogic, context, data, params);
|
|
5862
|
+
}
|
|
5848
5863
|
async function execDELogicAction(deDELogic, context, data, params) {
|
|
5849
5864
|
try {
|
|
5850
5865
|
const result = await execDELogic(deDELogic, context, data, params);
|
|
@@ -6408,7 +6423,7 @@ var DEService = class {
|
|
|
6408
6423
|
if (method) {
|
|
6409
6424
|
return method.exec(context, params, params2);
|
|
6410
6425
|
}
|
|
6411
|
-
throw new
|
|
6426
|
+
throw new RuntimeError11("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
6412
6427
|
}
|
|
6413
6428
|
};
|
|
6414
6429
|
|
|
@@ -6657,7 +6672,7 @@ var ControlService = class {
|
|
|
6657
6672
|
};
|
|
6658
6673
|
|
|
6659
6674
|
// src/service/service/control/md-control.service.ts
|
|
6660
|
-
import { RuntimeError as
|
|
6675
|
+
import { RuntimeError as RuntimeError12 } from "@ibiz-template/core";
|
|
6661
6676
|
import { isArray } from "qx-util";
|
|
6662
6677
|
var MDControlService = class extends ControlService {
|
|
6663
6678
|
/**
|
|
@@ -6766,7 +6781,7 @@ var MDControlService = class extends ControlService {
|
|
|
6766
6781
|
* @returns {*} {Promise<IHttpResponse>}
|
|
6767
6782
|
*/
|
|
6768
6783
|
async exportData(_dataExport, _context, _params = {}) {
|
|
6769
|
-
throw new
|
|
6784
|
+
throw new RuntimeError12("\u672A\u5B9E\u73B0");
|
|
6770
6785
|
}
|
|
6771
6786
|
/**
|
|
6772
6787
|
* 处理响应
|
|
@@ -6801,7 +6816,7 @@ var MDControlService = class extends ControlService {
|
|
|
6801
6816
|
};
|
|
6802
6817
|
|
|
6803
6818
|
// src/service/service/authority/authority.service.ts
|
|
6804
|
-
import { RuntimeError as
|
|
6819
|
+
import { RuntimeError as RuntimeError13 } from "@ibiz-template/core";
|
|
6805
6820
|
|
|
6806
6821
|
// src/service/service/authority/de-authority.service.ts
|
|
6807
6822
|
var DeAuthorityService = class {
|
|
@@ -6937,7 +6952,7 @@ var AuthorityService = class {
|
|
|
6937
6952
|
this.appModel.appId
|
|
6938
6953
|
);
|
|
6939
6954
|
if (!entityModel) {
|
|
6940
|
-
throw new
|
|
6955
|
+
throw new RuntimeError13("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
6941
6956
|
}
|
|
6942
6957
|
const constructor = this.constructorCache.get(id);
|
|
6943
6958
|
let service;
|
|
@@ -6960,7 +6975,7 @@ var AuthorityService = class {
|
|
|
6960
6975
|
*/
|
|
6961
6976
|
async init(appData = ibiz.appData) {
|
|
6962
6977
|
if (!appData) {
|
|
6963
|
-
throw new
|
|
6978
|
+
throw new RuntimeError13("\u6CA1\u6709appData\u6570\u636E");
|
|
6964
6979
|
}
|
|
6965
6980
|
if (appData.unires) {
|
|
6966
6981
|
this.resCodes = appData.unires;
|
|
@@ -7155,7 +7170,7 @@ var UIMapField = class {
|
|
|
7155
7170
|
};
|
|
7156
7171
|
|
|
7157
7172
|
// src/service/de-service-util.ts
|
|
7158
|
-
import { RuntimeError as
|
|
7173
|
+
import { RuntimeError as RuntimeError14 } from "@ibiz-template/core";
|
|
7159
7174
|
var DEServiceUtil = class {
|
|
7160
7175
|
/**
|
|
7161
7176
|
* Creates an instance of DEServiceUtil.
|
|
@@ -7210,7 +7225,7 @@ var DEServiceUtil = class {
|
|
|
7210
7225
|
this.appModel.appId
|
|
7211
7226
|
);
|
|
7212
7227
|
if (!entityModel) {
|
|
7213
|
-
throw new
|
|
7228
|
+
throw new RuntimeError14("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
7214
7229
|
}
|
|
7215
7230
|
const constructor = this.constructorCache.get(id);
|
|
7216
7231
|
let service;
|
|
@@ -7254,7 +7269,7 @@ var DEServiceUtil = class {
|
|
|
7254
7269
|
};
|
|
7255
7270
|
|
|
7256
7271
|
// src/app-hub.ts
|
|
7257
|
-
import { RuntimeError as
|
|
7272
|
+
import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
|
|
7258
7273
|
|
|
7259
7274
|
// src/application.ts
|
|
7260
7275
|
import { Net } from "@ibiz-template/core";
|
|
@@ -7436,7 +7451,7 @@ var Convert = class {
|
|
|
7436
7451
|
};
|
|
7437
7452
|
|
|
7438
7453
|
// src/hub/config/app-view-config-service.ts
|
|
7439
|
-
import { RuntimeError as
|
|
7454
|
+
import { RuntimeError as RuntimeError15 } from "@ibiz-template/core";
|
|
7440
7455
|
var AppViewConfigService = class {
|
|
7441
7456
|
constructor() {
|
|
7442
7457
|
/**
|
|
@@ -7453,7 +7468,7 @@ var AppViewConfigService = class {
|
|
|
7453
7468
|
if (!this.viewConfigs.has(key)) {
|
|
7454
7469
|
const model = await ibiz.hub.getAppView(key);
|
|
7455
7470
|
if (!model) {
|
|
7456
|
-
throw new
|
|
7471
|
+
throw new RuntimeError15("\u89C6\u56FE[".concat(key, "]\u4E0D\u5B58\u5728"));
|
|
7457
7472
|
}
|
|
7458
7473
|
this.set(model.id, {
|
|
7459
7474
|
id: model.id,
|
|
@@ -7657,7 +7672,7 @@ var AppHub = class {
|
|
|
7657
7672
|
this.registerAppView(appView);
|
|
7658
7673
|
return appView;
|
|
7659
7674
|
}
|
|
7660
|
-
throw new
|
|
7675
|
+
throw new RuntimeError16("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
7661
7676
|
}
|
|
7662
7677
|
/**
|
|
7663
7678
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -7688,7 +7703,7 @@ var AppHub = class {
|
|
|
7688
7703
|
this.registerAppDataEntity(entity, appId);
|
|
7689
7704
|
return entity;
|
|
7690
7705
|
}
|
|
7691
|
-
throw new
|
|
7706
|
+
throw new RuntimeError16("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
7692
7707
|
}
|
|
7693
7708
|
/**
|
|
7694
7709
|
* 新建 hub 应用
|
|
@@ -7709,7 +7724,7 @@ var AppHub = class {
|
|
|
7709
7724
|
appModel = await this.modelLoaderProvider.getApp(id);
|
|
7710
7725
|
this.registerApp(appModel);
|
|
7711
7726
|
} else {
|
|
7712
|
-
throw new
|
|
7727
|
+
throw new RuntimeError16("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
|
|
7713
7728
|
}
|
|
7714
7729
|
const app = new Application(appModel);
|
|
7715
7730
|
this.appMap.set(id, app);
|
|
@@ -7800,7 +7815,7 @@ var EngineFactory = class {
|
|
|
7800
7815
|
};
|
|
7801
7816
|
|
|
7802
7817
|
// src/engine/view-base.engine.ts
|
|
7803
|
-
import { RuntimeError as
|
|
7818
|
+
import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
|
|
7804
7819
|
var ViewEngineBase = class {
|
|
7805
7820
|
/**
|
|
7806
7821
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -7988,7 +8003,7 @@ var ViewEngineBase = class {
|
|
|
7988
8003
|
const { appDataEntityId } = this.view.model;
|
|
7989
8004
|
const { evt, context, params } = this.view;
|
|
7990
8005
|
if (!appDataEntityId) {
|
|
7991
|
-
throw new
|
|
8006
|
+
throw new RuntimeError17("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
7992
8007
|
}
|
|
7993
8008
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
7994
8009
|
const res = await app.deService.exec(
|
|
@@ -8135,6 +8150,10 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
8135
8150
|
this.copy(args);
|
|
8136
8151
|
return null;
|
|
8137
8152
|
}
|
|
8153
|
+
if (key === "load") {
|
|
8154
|
+
this.load(args);
|
|
8155
|
+
return null;
|
|
8156
|
+
}
|
|
8138
8157
|
return super.call(key, args);
|
|
8139
8158
|
}
|
|
8140
8159
|
getData() {
|
|
@@ -8215,8 +8234,8 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
8215
8234
|
* @date 2023-05-22 03:17:33
|
|
8216
8235
|
* @return {*} {Promise<void>}
|
|
8217
8236
|
*/
|
|
8218
|
-
async load() {
|
|
8219
|
-
await this.xdataControl.load({ isInitialLoad: true });
|
|
8237
|
+
async load(args = {}) {
|
|
8238
|
+
await this.xdataControl.load({ isInitialLoad: true, ...args });
|
|
8220
8239
|
}
|
|
8221
8240
|
/**
|
|
8222
8241
|
* 视图刷新
|
|
@@ -8471,7 +8490,7 @@ async function getPanelItemProvider(model) {
|
|
|
8471
8490
|
}
|
|
8472
8491
|
|
|
8473
8492
|
// src/register/helper/ui-action-register.ts
|
|
8474
|
-
import { RuntimeError as
|
|
8493
|
+
import { RuntimeError as RuntimeError18 } from "@ibiz-template/core";
|
|
8475
8494
|
var UIACTION_PROVIDER_PREFIX = "UIACTION";
|
|
8476
8495
|
function registerUIActionProvider(key, callback) {
|
|
8477
8496
|
ibiz.register.register("".concat(UIACTION_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
@@ -8488,7 +8507,7 @@ async function getUIActionProvider(model) {
|
|
|
8488
8507
|
provider = getProvider6(uiactionMode);
|
|
8489
8508
|
}
|
|
8490
8509
|
if (!provider) {
|
|
8491
|
-
throw new
|
|
8510
|
+
throw new RuntimeError18("\u627E\u4E0D\u754C\u9762\u884C\u4E3A\u6A21\u5F0F".concat(uiactionMode, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8492
8511
|
}
|
|
8493
8512
|
return provider;
|
|
8494
8513
|
}
|
|
@@ -8553,7 +8572,7 @@ import { isArray as isArray2 } from "qx-util";
|
|
|
8553
8572
|
import { RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
|
|
8554
8573
|
|
|
8555
8574
|
// src/ui-logic/index.ts
|
|
8556
|
-
import { RuntimeError as
|
|
8575
|
+
import { RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
8557
8576
|
|
|
8558
8577
|
// src/ui-logic/ui-logic.ts
|
|
8559
8578
|
import { ModelError as ModelError22, RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
|
|
@@ -9067,7 +9086,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
9067
9086
|
};
|
|
9068
9087
|
|
|
9069
9088
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
9070
|
-
import { RuntimeError as
|
|
9089
|
+
import { RuntimeError as RuntimeError19, RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
|
|
9071
9090
|
import { isFunction } from "lodash-es";
|
|
9072
9091
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
9073
9092
|
async exec(ctx) {
|
|
@@ -9084,21 +9103,21 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
9084
9103
|
}
|
|
9085
9104
|
const invokeParam = ctx.params[invokeParamId];
|
|
9086
9105
|
if (!invokeParam) {
|
|
9087
|
-
throw new
|
|
9106
|
+
throw new RuntimeError19("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
9088
9107
|
}
|
|
9089
9108
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
9090
9109
|
if (!invokeCtrl) {
|
|
9091
|
-
throw new
|
|
9110
|
+
throw new RuntimeError19("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
9092
9111
|
}
|
|
9093
9112
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
9094
|
-
throw new
|
|
9113
|
+
throw new RuntimeError19("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
9095
9114
|
}
|
|
9096
9115
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
9097
9116
|
}
|
|
9098
9117
|
};
|
|
9099
9118
|
|
|
9100
9119
|
// src/ui-logic/ui-logic-param/ui-logic-param.ts
|
|
9101
|
-
import { ModelError as ModelError21, RuntimeError as
|
|
9120
|
+
import { ModelError as ModelError21, RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
9102
9121
|
var UILogicParam = class {
|
|
9103
9122
|
/**
|
|
9104
9123
|
* Creates an instance of UILogicParam.
|
|
@@ -9133,7 +9152,7 @@ var UILogicParam = class {
|
|
|
9133
9152
|
if (control) {
|
|
9134
9153
|
ctx.params[tag] = control;
|
|
9135
9154
|
} else {
|
|
9136
|
-
throw new
|
|
9155
|
+
throw new RuntimeError20("\u6CA1\u627E\u5230".concat(m.codeName, "\u6307\u5B9A\u90E8\u4EF6\u5BF9\u8C61"));
|
|
9137
9156
|
}
|
|
9138
9157
|
} else if (m.activeViewParam) {
|
|
9139
9158
|
ctx.params[tag] = parameters.view;
|
|
@@ -9351,7 +9370,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
9351
9370
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
9352
9371
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
9353
9372
|
if (!deUILogic) {
|
|
9354
|
-
throw new
|
|
9373
|
+
throw new RuntimeError21(
|
|
9355
9374
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
9356
9375
|
);
|
|
9357
9376
|
}
|
|
@@ -9364,7 +9383,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
9364
9383
|
}
|
|
9365
9384
|
|
|
9366
9385
|
// src/ui-action/uiaction-util.ts
|
|
9367
|
-
import { RuntimeError as
|
|
9386
|
+
import { RuntimeError as RuntimeError22 } from "@ibiz-template/core";
|
|
9368
9387
|
var UIActionUtil = class {
|
|
9369
9388
|
/**
|
|
9370
9389
|
* 执行界面行为
|
|
@@ -9379,7 +9398,7 @@ var UIActionUtil = class {
|
|
|
9379
9398
|
static async exec(actionId, params) {
|
|
9380
9399
|
const action = await getUIActionById(actionId);
|
|
9381
9400
|
if (!action) {
|
|
9382
|
-
throw new
|
|
9401
|
+
throw new RuntimeError22("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
9383
9402
|
}
|
|
9384
9403
|
const provider = await getUIActionProvider(action);
|
|
9385
9404
|
return provider.exec(action, params);
|
|
@@ -9765,7 +9784,7 @@ function presetUIActionProvider() {
|
|
|
9765
9784
|
}
|
|
9766
9785
|
|
|
9767
9786
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
9768
|
-
import { RuntimeError as
|
|
9787
|
+
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
9769
9788
|
var LogicExecutor = class {
|
|
9770
9789
|
/**
|
|
9771
9790
|
* @author lxm
|
|
@@ -9786,7 +9805,7 @@ var LogicExecutor = class {
|
|
|
9786
9805
|
*/
|
|
9787
9806
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9788
9807
|
execute(_executeParams) {
|
|
9789
|
-
throw new
|
|
9808
|
+
throw new RuntimeError23("Method not implemented.");
|
|
9790
9809
|
}
|
|
9791
9810
|
/**
|
|
9792
9811
|
* 销毁方法
|
|
@@ -9835,7 +9854,7 @@ var LogicExecutorFactory = class {
|
|
|
9835
9854
|
};
|
|
9836
9855
|
|
|
9837
9856
|
// src/logic-scheduler/executor/script-executor.ts
|
|
9838
|
-
import { RuntimeError as
|
|
9857
|
+
import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
|
|
9839
9858
|
var ScriptExecutor = class extends LogicExecutor {
|
|
9840
9859
|
constructor() {
|
|
9841
9860
|
super(...arguments);
|
|
@@ -9855,7 +9874,7 @@ var ScriptExecutor = class extends LogicExecutor {
|
|
|
9855
9874
|
* @return {*} {IData[]}
|
|
9856
9875
|
*/
|
|
9857
9876
|
convertScriptArgs(_executeParams) {
|
|
9858
|
-
throw new
|
|
9877
|
+
throw new RuntimeError24("\u672A\u8BBE\u7F6E\u811A\u672C\u6267\u884C\u53C2\u6570\u8F6C\u6362\u65B9\u6CD5");
|
|
9859
9878
|
}
|
|
9860
9879
|
/**
|
|
9861
9880
|
* 初始化脚本执行器
|
|
@@ -10184,7 +10203,7 @@ var LogicSchedulerCenter = class {
|
|
|
10184
10203
|
};
|
|
10185
10204
|
|
|
10186
10205
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
10187
|
-
import { RuntimeError as
|
|
10206
|
+
import { RuntimeError as RuntimeError25 } from "@ibiz-template/core";
|
|
10188
10207
|
var LogicTrigger = class {
|
|
10189
10208
|
/**
|
|
10190
10209
|
* @author lxm
|
|
@@ -10227,7 +10246,7 @@ var LogicTrigger = class {
|
|
|
10227
10246
|
if (this.executor) {
|
|
10228
10247
|
return this.executor.execute(executeParams);
|
|
10229
10248
|
}
|
|
10230
|
-
throw new
|
|
10249
|
+
throw new RuntimeError25("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
10231
10250
|
}
|
|
10232
10251
|
/**
|
|
10233
10252
|
* 销毁方法
|
|
@@ -10244,12 +10263,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
10244
10263
|
};
|
|
10245
10264
|
|
|
10246
10265
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
10247
|
-
import { RuntimeError as
|
|
10266
|
+
import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
|
|
10248
10267
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
10249
10268
|
bindExecutor(executor) {
|
|
10250
10269
|
super.bindExecutor(executor);
|
|
10251
10270
|
if (this.executor.type !== "SCRIPT") {
|
|
10252
|
-
throw new
|
|
10271
|
+
throw new RuntimeError26(
|
|
10253
10272
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
10254
10273
|
);
|
|
10255
10274
|
}
|
|
@@ -10276,12 +10295,12 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
10276
10295
|
if (typeof result === "boolean") {
|
|
10277
10296
|
return result;
|
|
10278
10297
|
}
|
|
10279
|
-
throw new
|
|
10298
|
+
throw new RuntimeError26("".concat(this.logic.id, "\u903B\u8F91\u8FD4\u56DE\u503C\u4E0D\u662F\u5E03\u5C14\u503C"));
|
|
10280
10299
|
}
|
|
10281
10300
|
};
|
|
10282
10301
|
|
|
10283
10302
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
10284
|
-
import { RuntimeError as
|
|
10303
|
+
import { RuntimeError as RuntimeError27 } from "@ibiz-template/core";
|
|
10285
10304
|
var TimerTrigger = class extends LogicTrigger {
|
|
10286
10305
|
constructor() {
|
|
10287
10306
|
super(...arguments);
|
|
@@ -10290,7 +10309,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
10290
10309
|
start() {
|
|
10291
10310
|
this.timer = setInterval(() => {
|
|
10292
10311
|
if (!this.scheduler.defaultParamsCb) {
|
|
10293
|
-
throw new
|
|
10312
|
+
throw new RuntimeError27("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
10294
10313
|
}
|
|
10295
10314
|
const params = this.scheduler.defaultParamsCb();
|
|
10296
10315
|
this.executor.execute(params);
|
|
@@ -10307,7 +10326,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
10307
10326
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
10308
10327
|
import {
|
|
10309
10328
|
ModelError as ModelError26,
|
|
10310
|
-
RuntimeError as
|
|
10329
|
+
RuntimeError as RuntimeError28,
|
|
10311
10330
|
RuntimeModelError as RuntimeModelError31
|
|
10312
10331
|
} from "@ibiz-template/core";
|
|
10313
10332
|
import { notNilEmpty as notNilEmpty5 } from "qx-util";
|
|
@@ -10343,7 +10362,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
10343
10362
|
const { context, params, ...rest } = parameters;
|
|
10344
10363
|
const { data } = parameters;
|
|
10345
10364
|
if (!(data == null ? void 0 : data[0])) {
|
|
10346
|
-
throw new
|
|
10365
|
+
throw new RuntimeError28("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
10347
10366
|
}
|
|
10348
10367
|
const openViewRef = appUILogic.openDataAppView;
|
|
10349
10368
|
if (!openViewRef) {
|
|
@@ -10466,12 +10485,12 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
10466
10485
|
}
|
|
10467
10486
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
10468
10487
|
if (!selectData) {
|
|
10469
|
-
throw new
|
|
10488
|
+
throw new RuntimeError28("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
10470
10489
|
}
|
|
10471
10490
|
const indexType = selectData.srfkey;
|
|
10472
10491
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find((item) => item.refMode === indexType);
|
|
10473
10492
|
if (!findView) {
|
|
10474
|
-
throw new
|
|
10493
|
+
throw new RuntimeError28(
|
|
10475
10494
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
10476
10495
|
);
|
|
10477
10496
|
}
|
|
@@ -10675,13 +10694,13 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
|
|
|
10675
10694
|
|
|
10676
10695
|
// src/controller/common/view/view.controller.ts
|
|
10677
10696
|
import { createUUID as createUUID2, notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
10678
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
10697
|
+
import { IBizContext as IBizContext2, RuntimeError as RuntimeError31 } from "@ibiz-template/core";
|
|
10679
10698
|
|
|
10680
10699
|
// src/controller/utils/loading/loading.state.ts
|
|
10681
10700
|
import { NOOP } from "@ibiz-template/core";
|
|
10682
10701
|
|
|
10683
10702
|
// src/controller/utils/counter/counter.ts
|
|
10684
|
-
import { RuntimeError as
|
|
10703
|
+
import { RuntimeError as RuntimeError29 } from "@ibiz-template/core";
|
|
10685
10704
|
var Counter = class {
|
|
10686
10705
|
/**
|
|
10687
10706
|
* Creates an instance of Counter.
|
|
@@ -10743,7 +10762,7 @@ var Counter = class {
|
|
|
10743
10762
|
return;
|
|
10744
10763
|
}
|
|
10745
10764
|
if (this.count === 0) {
|
|
10746
|
-
throw new
|
|
10765
|
+
throw new RuntimeError29("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
|
|
10747
10766
|
}
|
|
10748
10767
|
this.count -= 1;
|
|
10749
10768
|
if (this.count === 0) {
|
|
@@ -11257,7 +11276,7 @@ function getOriginData(data) {
|
|
|
11257
11276
|
}
|
|
11258
11277
|
|
|
11259
11278
|
// src/controller/utils/value-rule/value-rule.ts
|
|
11260
|
-
import { RuntimeError as
|
|
11279
|
+
import { RuntimeError as RuntimeError30 } from "@ibiz-template/core";
|
|
11261
11280
|
import { isNilOrEmpty as isNilOrEmpty6 } from "qx-util";
|
|
11262
11281
|
function generateRules(itemVRs, name, valueItemName) {
|
|
11263
11282
|
const rules = [];
|
|
@@ -11305,7 +11324,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
11305
11324
|
deRule.groupCond
|
|
11306
11325
|
);
|
|
11307
11326
|
if (!isPast) {
|
|
11308
|
-
callback(new
|
|
11327
|
+
callback(new RuntimeError30(infoMessage || deRule.ruleInfo));
|
|
11309
11328
|
}
|
|
11310
11329
|
return true;
|
|
11311
11330
|
},
|
|
@@ -11755,7 +11774,7 @@ var ViewController = class extends BaseController {
|
|
|
11755
11774
|
async callUIAction(key, args) {
|
|
11756
11775
|
const result = this.call(key, args);
|
|
11757
11776
|
if (result === void 0) {
|
|
11758
|
-
throw new
|
|
11777
|
+
throw new RuntimeError31("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
11759
11778
|
}
|
|
11760
11779
|
return result;
|
|
11761
11780
|
}
|
|
@@ -12085,7 +12104,7 @@ var ControlController = class extends BaseController {
|
|
|
12085
12104
|
};
|
|
12086
12105
|
|
|
12087
12106
|
// src/controller/common/control/md-control.controller.ts
|
|
12088
|
-
import { isElementSame, RuntimeError as
|
|
12107
|
+
import { isElementSame, RuntimeError as RuntimeError32 } from "@ibiz-template/core";
|
|
12089
12108
|
var MDControlController = class extends ControlController {
|
|
12090
12109
|
get _evt() {
|
|
12091
12110
|
return this.evt;
|
|
@@ -12211,7 +12230,7 @@ var MDControlController = class extends ControlController {
|
|
|
12211
12230
|
async remove(args) {
|
|
12212
12231
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
12213
12232
|
if (!(data == null ? void 0 : data.length)) {
|
|
12214
|
-
throw new
|
|
12233
|
+
throw new RuntimeError32("\u672A\u9009\u4E2D\u6570\u636E");
|
|
12215
12234
|
}
|
|
12216
12235
|
const del = await ibiz.modal.confirm({
|
|
12217
12236
|
title: "\u6570\u636E\u5220\u9664",
|
|
@@ -12426,6 +12445,11 @@ export {
|
|
|
12426
12445
|
convertNavDataByArray,
|
|
12427
12446
|
convertNavDataByObject,
|
|
12428
12447
|
convertObjectToNavParams,
|
|
12448
|
+
execDELogic,
|
|
12449
|
+
execDELogicAction,
|
|
12450
|
+
execDELogicById,
|
|
12451
|
+
execFieldLogics,
|
|
12452
|
+
execUILogic,
|
|
12429
12453
|
filterFieldLogics,
|
|
12430
12454
|
filterValueRules,
|
|
12431
12455
|
findChildFormDetails,
|