@ibiz-template/runtime 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +259 -96
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/config/global-config.js +1 -1
- package/out/interface/common/i-ui-action-result/i-ui-action-result.d.ts +7 -0
- package/out/interface/common/i-ui-action-result/i-ui-action-result.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-form.controller.d.ts +7 -0
- package/out/interface/controller/controller/control/i-form.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-grid.controller.d.ts +9 -1
- package/out/interface/controller/controller/control/i-grid.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree.controller.d.ts +6 -4
- package/out/interface/controller/controller/control/i-tree.controller.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-pickup-view-panel.event.d.ts +0 -15
- package/out/interface/controller/event/control/i-pickup-view-panel.event.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree-exp-bar.state.d.ts +8 -0
- package/out/interface/controller/state/control/i-tree-exp-bar.state.d.ts.map +1 -1
- package/out/register/helper/common-register.d.ts +11 -0
- package/out/register/helper/common-register.d.ts.map +1 -0
- package/out/register/helper/common-register.js +20 -0
- package/out/register/helper/control-register.d.ts.map +1 -1
- package/out/register/helper/control-register.js +22 -5
- package/out/register/helper/editor-register.d.ts.map +1 -1
- package/out/register/helper/editor-register.js +25 -5
- package/out/register/helper/form-detail-register.d.ts.map +1 -1
- package/out/register/helper/form-detail-register.js +19 -5
- package/out/register/helper/grid-column-register.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.js +19 -5
- package/out/register/helper/panel-item-register.d.ts.map +1 -1
- package/out/register/helper/panel-item-register.js +25 -5
- package/out/register/helper/portlet-register.d.ts.map +1 -1
- package/out/register/helper/portlet-register.js +19 -5
- package/out/register/helper/ui-action-register.d.ts.map +1 -1
- package/out/register/helper/ui-action-register.js +19 -5
- package/out/register/helper/view-register.d.ts.map +1 -1
- package/out/register/helper/view-register.js +18 -1
- package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.js +0 -1
- package/out/service/service/counter/counter.service.d.ts.map +1 -1
- package/out/service/service/counter/counter.service.js +4 -1
- package/out/ui-action/provider/sys-ui-action-provider.d.ts +1 -0
- package/out/ui-action/provider/sys-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/sys-ui-action-provider.js +42 -1
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +1 -0
- package/out/ui-action/uiaction-util.d.ts.map +1 -1
- package/out/ui-action/uiaction-util.js +13 -1
- package/package.json +4 -4
- package/src/config/global-config.ts +1 -1
- package/src/interface/common/i-ui-action-result/i-ui-action-result.ts +8 -0
- package/src/interface/controller/controller/control/i-form.controller.ts +8 -0
- package/src/interface/controller/controller/control/i-grid.controller.ts +10 -1
- package/src/interface/controller/controller/control/i-tree.controller.ts +9 -4
- package/src/interface/controller/event/control/i-pickup-view-panel.event.ts +0 -16
- package/src/interface/controller/state/control/i-tree-exp-bar.state.ts +10 -1
- package/src/register/helper/common-register.ts +28 -0
- package/src/register/helper/control-register.ts +21 -6
- package/src/register/helper/editor-register.ts +22 -7
- package/src/register/helper/form-detail-register.ts +18 -6
- package/src/register/helper/grid-column-register.ts +19 -6
- package/src/register/helper/panel-item-register.ts +22 -6
- package/src/register/helper/portlet-register.ts +19 -6
- package/src/register/helper/ui-action-register.ts +19 -6
- package/src/register/helper/view-register.ts +18 -1
- package/src/service/app-data-entity/app-data-entity.ts +0 -1
- package/src/service/service/counter/counter.service.ts +4 -1
- package/src/ui-action/provider/sys-ui-action-provider.ts +41 -1
- package/src/ui-action/provider/ui-action-provider-base.ts +1 -0
- package/src/ui-action/uiaction-util.ts +12 -1
package/dist/index.esm.js
CHANGED
|
@@ -461,7 +461,7 @@ var GlobalConfig = class {
|
|
|
461
461
|
};
|
|
462
462
|
// 全局表格配置
|
|
463
463
|
this.grid = {
|
|
464
|
-
editShowMode: "
|
|
464
|
+
editShowMode: "row",
|
|
465
465
|
editSaveMode: "cell-blur"
|
|
466
466
|
};
|
|
467
467
|
// 全局菜单配置
|
|
@@ -4130,7 +4130,7 @@ var CodeListService = class {
|
|
|
4130
4130
|
};
|
|
4131
4131
|
|
|
4132
4132
|
// src/service/service/counter/counter.service.ts
|
|
4133
|
-
import { RuntimeModelError as RuntimeModelError6 } from "@ibiz-template/core";
|
|
4133
|
+
import { ModelError as ModelError7, RuntimeModelError as RuntimeModelError6 } from "@ibiz-template/core";
|
|
4134
4134
|
var CounterService = class {
|
|
4135
4135
|
/**
|
|
4136
4136
|
* 获取计数器
|
|
@@ -4170,6 +4170,9 @@ var CounterService = class {
|
|
|
4170
4170
|
if (!appCounter) {
|
|
4171
4171
|
throw new RuntimeModelError6(model, "\u672A\u914D\u7F6E\u5E94\u7528\u8BA1\u6570\u5668!");
|
|
4172
4172
|
}
|
|
4173
|
+
if (appCounter.counterType === "CUSTOM") {
|
|
4174
|
+
throw new ModelError7(appCounter, "\u672A\u652F\u6301\u81EA\u5B9A\u4E49\u8BA1\u6570\u5668");
|
|
4175
|
+
}
|
|
4173
4176
|
return this.getCounter(appCounter, context, params);
|
|
4174
4177
|
}
|
|
4175
4178
|
};
|
|
@@ -4185,7 +4188,7 @@ var CounterService = class {
|
|
|
4185
4188
|
CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
4186
4189
|
|
|
4187
4190
|
// src/service/service/entity/de.service.ts
|
|
4188
|
-
import { ModelError as
|
|
4191
|
+
import { ModelError as ModelError16, RuntimeError as RuntimeError11 } from "@ibiz-template/core";
|
|
4189
4192
|
|
|
4190
4193
|
// src/service/service/work-flow/work-flow.service.ts
|
|
4191
4194
|
import { RuntimeError as RuntimeError9 } from "@ibiz-template/core";
|
|
@@ -4577,7 +4580,6 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
4577
4580
|
Object.defineProperty(this, "srfkey", {
|
|
4578
4581
|
set(val) {
|
|
4579
4582
|
_srfkey = val;
|
|
4580
|
-
this._data[key] = val;
|
|
4581
4583
|
},
|
|
4582
4584
|
get() {
|
|
4583
4585
|
return this._data[key] || _srfkey;
|
|
@@ -4678,7 +4680,7 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
4678
4680
|
};
|
|
4679
4681
|
|
|
4680
4682
|
// src/service/dto/method.dto.ts
|
|
4681
|
-
import { ModelError as
|
|
4683
|
+
import { ModelError as ModelError8 } from "@ibiz-template/core";
|
|
4682
4684
|
var MethodDto = class _MethodDto {
|
|
4683
4685
|
constructor(entity, dto) {
|
|
4684
4686
|
this.entity = entity;
|
|
@@ -4731,7 +4733,7 @@ var MethodDto = class _MethodDto {
|
|
|
4731
4733
|
break;
|
|
4732
4734
|
}
|
|
4733
4735
|
default:
|
|
4734
|
-
throw new
|
|
4736
|
+
throw new ModelError8(
|
|
4735
4737
|
field,
|
|
4736
4738
|
"\u672A\u652F\u6301\u7684\u5E94\u7528\u5B9E\u4F53\u65B9\u6CD5\u8F93\u5165\u5C5E\u6027\u7C7B\u578B: ".concat(field.type)
|
|
4737
4739
|
);
|
|
@@ -5007,7 +5009,7 @@ var Method = class {
|
|
|
5007
5009
|
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as RuntimeError10 } from "@ibiz-template/core";
|
|
5008
5010
|
|
|
5009
5011
|
// src/de-logic/de-logic.ts
|
|
5010
|
-
import { ModelError as
|
|
5012
|
+
import { ModelError as ModelError14, RuntimeModelError as RuntimeModelError17 } from "@ibiz-template/core";
|
|
5011
5013
|
|
|
5012
5014
|
// src/de-logic/de-logic-context.ts
|
|
5013
5015
|
var DELogicContext = class {
|
|
@@ -5093,7 +5095,7 @@ var DELogicLinkCond = class {
|
|
|
5093
5095
|
};
|
|
5094
5096
|
|
|
5095
5097
|
// src/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.ts
|
|
5096
|
-
import { ModelError as
|
|
5098
|
+
import { ModelError as ModelError9, RuntimeModelError as RuntimeModelError8 } from "@ibiz-template/core";
|
|
5097
5099
|
var DELogicLinkSingleCond = class extends DELogicLinkCond {
|
|
5098
5100
|
constructor(model) {
|
|
5099
5101
|
super();
|
|
@@ -5159,7 +5161,7 @@ var DELogicLinkSingleCond = class extends DELogicLinkCond {
|
|
|
5159
5161
|
return testCond(dst[this.dstField], this.op, src[this.value]);
|
|
5160
5162
|
}
|
|
5161
5163
|
case "CURTIME":
|
|
5162
|
-
throw new
|
|
5164
|
+
throw new ModelError9(this.model, "\u6682\u672A\u652F\u6301\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u5F53\u524D\u65F6\u95F4]");
|
|
5163
5165
|
default:
|
|
5164
5166
|
return testCond(dst[this.dstField], this.op, this.value);
|
|
5165
5167
|
}
|
|
@@ -5343,7 +5345,7 @@ var StartNode = class extends DELogicNode {
|
|
|
5343
5345
|
};
|
|
5344
5346
|
|
|
5345
5347
|
// src/de-logic/de-logic-node/end-node/end-node.ts
|
|
5346
|
-
import { ModelError as
|
|
5348
|
+
import { ModelError as ModelError10 } from "@ibiz-template/core";
|
|
5347
5349
|
var EndNode = class extends DELogicNode {
|
|
5348
5350
|
async exec(ctx) {
|
|
5349
5351
|
ctx.isEndNode = true;
|
|
@@ -5364,7 +5366,7 @@ var EndNode = class extends DELogicNode {
|
|
|
5364
5366
|
case "LOGICPARAMFIELD":
|
|
5365
5367
|
case "BREAK":
|
|
5366
5368
|
default:
|
|
5367
|
-
throw new
|
|
5369
|
+
throw new ModelError10(
|
|
5368
5370
|
this.model,
|
|
5369
5371
|
"\u6682\u672A\u652F\u6301\u7684\u7ED3\u675F\u8282\u70B9\u8FD4\u56DE\u503C\u7C7B\u578B: ".concat(returnType)
|
|
5370
5372
|
);
|
|
@@ -5373,11 +5375,11 @@ var EndNode = class extends DELogicNode {
|
|
|
5373
5375
|
};
|
|
5374
5376
|
|
|
5375
5377
|
// src/de-logic/de-logic-node/prepare-param-node/prepare-param-node.ts
|
|
5376
|
-
import { ModelError as
|
|
5378
|
+
import { ModelError as ModelError12 } from "@ibiz-template/core";
|
|
5377
5379
|
import { clone as clone6 } from "ramda";
|
|
5378
5380
|
|
|
5379
5381
|
// src/de-logic/utils/handle-src-val.ts
|
|
5380
|
-
import { ModelError as
|
|
5382
|
+
import { ModelError as ModelError11 } from "@ibiz-template/core";
|
|
5381
5383
|
import { clone as clone5 } from "ramda";
|
|
5382
5384
|
function handleSrcVal(ctx, srcValParams) {
|
|
5383
5385
|
const { srcDELogicParamId, srcValueType, srcFieldName, srcValue } = srcValParams;
|
|
@@ -5405,7 +5407,7 @@ function handleSrcVal(ctx, srcValParams) {
|
|
|
5405
5407
|
value = clone5(ibiz.env);
|
|
5406
5408
|
break;
|
|
5407
5409
|
default:
|
|
5408
|
-
throw new
|
|
5410
|
+
throw new ModelError11(srcValParams, "\u6682\u672A\u652F\u6301\u6E90\u503C\u7C7B\u578B".concat(srcValueType));
|
|
5409
5411
|
}
|
|
5410
5412
|
const srcField = srcFieldName == null ? void 0 : srcFieldName.toLowerCase();
|
|
5411
5413
|
if (value && srcField) {
|
|
@@ -5437,7 +5439,7 @@ var PrepareParamNode = class extends DELogicNode {
|
|
|
5437
5439
|
case "SORTPARAM":
|
|
5438
5440
|
return this.sortParam(nodeParam, ctx);
|
|
5439
5441
|
default:
|
|
5440
|
-
throw new
|
|
5442
|
+
throw new ModelError12(
|
|
5441
5443
|
nodeParam,
|
|
5442
5444
|
"\u6682\u672A\u652F\u6301\u903B\u8F91\u5904\u7406\u53C2\u6570\u64CD\u4F5C".concat(nodeParam.paramAction)
|
|
5443
5445
|
);
|
|
@@ -5694,7 +5696,7 @@ var ThrowExceptionNode = class extends DELogicNode {
|
|
|
5694
5696
|
};
|
|
5695
5697
|
|
|
5696
5698
|
// src/de-logic/de-logic-param/de-logic-param.ts
|
|
5697
|
-
import { ModelError as
|
|
5699
|
+
import { ModelError as ModelError13 } from "@ibiz-template/core";
|
|
5698
5700
|
import { clone as clone8 } from "ramda";
|
|
5699
5701
|
var DELogicParam = class {
|
|
5700
5702
|
/**
|
|
@@ -5727,11 +5729,11 @@ var DELogicParam = class {
|
|
|
5727
5729
|
} else if (m.entityListParam) {
|
|
5728
5730
|
ctx.params[tag] = [];
|
|
5729
5731
|
} else if (m.entityPageParam) {
|
|
5730
|
-
throw new
|
|
5732
|
+
throw new ModelError13(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5206\u9875\u67E5\u8BE2\u7ED3\u679C");
|
|
5731
5733
|
} else if (m.entityParam) {
|
|
5732
5734
|
ctx.params[tag] = {};
|
|
5733
5735
|
} else if (m.lastReturnParam) {
|
|
5734
|
-
throw new
|
|
5736
|
+
throw new ModelError13(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u4E0A\u6B21\u8C03\u7528\u8FD4\u56DE");
|
|
5735
5737
|
} else if (m.appContextParam) {
|
|
5736
5738
|
ctx.params[tag] = ctx.context;
|
|
5737
5739
|
} else if (m.simpleListParam) {
|
|
@@ -5741,19 +5743,19 @@ var DELogicParam = class {
|
|
|
5741
5743
|
} else if (m.cloneParam) {
|
|
5742
5744
|
ctx.params[tag] = clone8(ctx.data || {});
|
|
5743
5745
|
} else if (m.envParam) {
|
|
5744
|
-
throw new
|
|
5746
|
+
throw new ModelError13(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u7CFB\u7EDF\u73AF\u5883\u53D8\u91CF");
|
|
5745
5747
|
} else if (m.fileListParam) {
|
|
5746
|
-
throw new
|
|
5748
|
+
throw new ModelError13(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u6587\u4EF6\u5BF9\u8C61\u5217\u8868\u53D8\u91CF");
|
|
5747
5749
|
} else if (m.fileParam) {
|
|
5748
|
-
throw new
|
|
5750
|
+
throw new ModelError13(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u6587\u4EF6\u5BF9\u8C61\u53D8\u91CF");
|
|
5749
5751
|
} else if (m.filterParam) {
|
|
5750
|
-
throw new
|
|
5752
|
+
throw new ModelError13(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u8FC7\u6EE4\u5668\u5BF9\u8C61\u53D8\u91CF");
|
|
5751
5753
|
} else if (m.lastParam) {
|
|
5752
|
-
throw new
|
|
5754
|
+
throw new ModelError13(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u6700\u540E\u6570\u636E\u53D8\u91CF");
|
|
5753
5755
|
} else if (m.originEntity) {
|
|
5754
|
-
throw new
|
|
5756
|
+
throw new ModelError13(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u539F\u59CB\u6570\u636E\u5BF9\u8C61");
|
|
5755
5757
|
} else if (m.sessionParam) {
|
|
5756
|
-
throw new
|
|
5758
|
+
throw new ModelError13(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u64CD\u4F5C\u4F1A\u8BDD\u53D8\u91CF");
|
|
5757
5759
|
}
|
|
5758
5760
|
}
|
|
5759
5761
|
/**
|
|
@@ -5770,7 +5772,7 @@ var DELogicParam = class {
|
|
|
5770
5772
|
} else if (m.simpleParam || m.entityParam) {
|
|
5771
5773
|
ctx.params[tag] = {};
|
|
5772
5774
|
} else {
|
|
5773
|
-
throw new
|
|
5775
|
+
throw new ModelError13(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B\u91CD\u65B0\u5EFA\u7ACB\u53D8\u91CF");
|
|
5774
5776
|
}
|
|
5775
5777
|
}
|
|
5776
5778
|
};
|
|
@@ -5848,7 +5850,7 @@ var DELogic = class {
|
|
|
5848
5850
|
logicNode = new SortParamNode(node);
|
|
5849
5851
|
break;
|
|
5850
5852
|
default:
|
|
5851
|
-
throw new
|
|
5853
|
+
throw new ModelError14(node, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8282\u70B9\u7C7B\u578B: ".concat(logicNodeType));
|
|
5852
5854
|
}
|
|
5853
5855
|
this.nodes.set(node.id, logicNode);
|
|
5854
5856
|
});
|
|
@@ -6275,7 +6277,7 @@ var DEActionMethod = class extends Method {
|
|
|
6275
6277
|
// src/service/service/entity/method/fetch.ts
|
|
6276
6278
|
import {
|
|
6277
6279
|
HttpResponse as HttpResponse4,
|
|
6278
|
-
ModelError as
|
|
6280
|
+
ModelError as ModelError15,
|
|
6279
6281
|
RuntimeModelError as RuntimeModelError19
|
|
6280
6282
|
} from "@ibiz-template/core";
|
|
6281
6283
|
import { ascSort, descSort } from "qx-util";
|
|
@@ -6302,7 +6304,7 @@ var FetchMethod = class extends Method {
|
|
|
6302
6304
|
}
|
|
6303
6305
|
break;
|
|
6304
6306
|
default:
|
|
6305
|
-
throw new
|
|
6307
|
+
throw new ModelError15(
|
|
6306
6308
|
this.method,
|
|
6307
6309
|
"\u6570\u636E\u6765\u6E90\u7C7B\u578B".concat(this.method.dataSetType, "\u6682\u672A\u652F\u6301")
|
|
6308
6310
|
);
|
|
@@ -6500,7 +6502,7 @@ var DEService = class {
|
|
|
6500
6502
|
method = new FetchMethod(this.model, model);
|
|
6501
6503
|
break;
|
|
6502
6504
|
default:
|
|
6503
|
-
throw new
|
|
6505
|
+
throw new ModelError16(
|
|
6504
6506
|
model,
|
|
6505
6507
|
"\u672A\u652F\u6301\u7684\u670D\u52A1\u65B9\u6CD5\u7C7B\u578B: ".concat(model.methodType)
|
|
6506
6508
|
);
|
|
@@ -8623,6 +8625,21 @@ var BaseController = class {
|
|
|
8623
8625
|
}
|
|
8624
8626
|
};
|
|
8625
8627
|
|
|
8628
|
+
// src/register/helper/common-register.ts
|
|
8629
|
+
async function getPluginRegisterKey(pluginId, appId) {
|
|
8630
|
+
var _a;
|
|
8631
|
+
const app = ibiz.hub.getApp(appId);
|
|
8632
|
+
const plugin = (_a = app.model.appPFPluginRefs) == null ? void 0 : _a.find(
|
|
8633
|
+
(item) => item.pluginCode.toLowerCase() === pluginId
|
|
8634
|
+
);
|
|
8635
|
+
if (!plugin) {
|
|
8636
|
+
ibiz.log.error("\u627E\u4E0D\u5230".concat(pluginId, "\u7684\u63D2\u4EF6\u6A21\u578B"));
|
|
8637
|
+
return;
|
|
8638
|
+
}
|
|
8639
|
+
await ibiz.plugin.loadPlugin(plugin);
|
|
8640
|
+
return "".concat(plugin.pluginType, "_").concat(plugin.pluginCode);
|
|
8641
|
+
}
|
|
8642
|
+
|
|
8626
8643
|
// src/register/helper/control-register.ts
|
|
8627
8644
|
var CONTROL_PROVIDER_PREFIX = "CONTROL";
|
|
8628
8645
|
function registerControlProvider(key, callback) {
|
|
@@ -8635,7 +8652,18 @@ function getProvider(key) {
|
|
|
8635
8652
|
}
|
|
8636
8653
|
async function getControlProvider(model) {
|
|
8637
8654
|
let provider;
|
|
8638
|
-
const { controlType, controlStyle } = model;
|
|
8655
|
+
const { controlType, controlStyle, sysPFPluginId, appId } = model;
|
|
8656
|
+
if (sysPFPluginId) {
|
|
8657
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
8658
|
+
if (pluginKey) {
|
|
8659
|
+
provider = getProvider(pluginKey);
|
|
8660
|
+
}
|
|
8661
|
+
if (!provider) {
|
|
8662
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u90E8\u4EF6\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8663
|
+
} else {
|
|
8664
|
+
return provider;
|
|
8665
|
+
}
|
|
8666
|
+
}
|
|
8639
8667
|
if (controlStyle && controlStyle !== "DEFAULT") {
|
|
8640
8668
|
const key = "".concat(controlType, "_").concat(controlStyle);
|
|
8641
8669
|
provider = getProvider(key);
|
|
@@ -8644,15 +8672,16 @@ async function getControlProvider(model) {
|
|
|
8644
8672
|
"\u627E\u4E0D\u5230\u90E8\u4EF6\u7C7B\u578B\uFF1A[".concat(controlType, "]\u7684\u90E8\u4EF6\u6837\u5F0F\uFF1A[").concat(controlStyle, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"),
|
|
8645
8673
|
model
|
|
8646
8674
|
);
|
|
8675
|
+
} else {
|
|
8676
|
+
return provider;
|
|
8647
8677
|
}
|
|
8648
8678
|
}
|
|
8649
|
-
|
|
8650
|
-
provider = getProvider(controlType);
|
|
8651
|
-
}
|
|
8679
|
+
provider = getProvider(controlType);
|
|
8652
8680
|
if (!provider) {
|
|
8653
8681
|
ibiz.log.error("\u627E\u4E0D\u5230\u90E8\u4EF6\u7C7B\u578B".concat(controlType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8682
|
+
} else {
|
|
8683
|
+
return provider;
|
|
8654
8684
|
}
|
|
8655
|
-
return provider;
|
|
8656
8685
|
}
|
|
8657
8686
|
|
|
8658
8687
|
// src/register/helper/editor-register.ts
|
|
@@ -8667,7 +8696,18 @@ function getProvider2(key) {
|
|
|
8667
8696
|
}
|
|
8668
8697
|
async function getEditorProvider(model) {
|
|
8669
8698
|
let provider;
|
|
8670
|
-
const { editorType, editorStyle, predefinedType } = model;
|
|
8699
|
+
const { editorType, editorStyle, predefinedType, sysPFPluginId, appId } = model;
|
|
8700
|
+
if (sysPFPluginId) {
|
|
8701
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
8702
|
+
if (pluginKey) {
|
|
8703
|
+
provider = getProvider2(pluginKey);
|
|
8704
|
+
}
|
|
8705
|
+
if (!provider) {
|
|
8706
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u7F16\u8F91\u5668\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8707
|
+
} else {
|
|
8708
|
+
return provider;
|
|
8709
|
+
}
|
|
8710
|
+
}
|
|
8671
8711
|
if (editorStyle && editorStyle !== "DEFAULT") {
|
|
8672
8712
|
const key = "".concat(editorType, "_").concat(editorStyle);
|
|
8673
8713
|
provider = getProvider2(key);
|
|
@@ -8676,6 +8716,8 @@ async function getEditorProvider(model) {
|
|
|
8676
8716
|
"\u627E\u4E0D\u5230\u7F16\u8F91\u5668\u7C7B\u578B\uFF1A[".concat(editorType, "]\u7684\u7F16\u8F91\u5668\u6837\u5F0F\uFF1A[").concat(editorStyle, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"),
|
|
8677
8717
|
model
|
|
8678
8718
|
);
|
|
8719
|
+
} else {
|
|
8720
|
+
return provider;
|
|
8679
8721
|
}
|
|
8680
8722
|
}
|
|
8681
8723
|
if (predefinedType) {
|
|
@@ -8689,15 +8731,16 @@ async function getEditorProvider(model) {
|
|
|
8689
8731
|
"\u627E\u4E0D\u5230\u7F16\u8F91\u5668\u7C7B\u578B\uFF1A[".concat(editorType, "]\u7684\u9884\u7F6E\u7C7B\u578B\uFF1A[").concat(predefinedType, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"),
|
|
8690
8732
|
model
|
|
8691
8733
|
);
|
|
8734
|
+
} else {
|
|
8735
|
+
return provider;
|
|
8692
8736
|
}
|
|
8693
8737
|
}
|
|
8694
|
-
|
|
8695
|
-
provider = getProvider2(editorType);
|
|
8696
|
-
}
|
|
8738
|
+
provider = getProvider2(editorType);
|
|
8697
8739
|
if (!provider) {
|
|
8698
8740
|
ibiz.log.error("\u627E\u4E0D\u5230\u7F16\u8F91\u5668\u7C7B\u578B".concat(editorType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8741
|
+
} else {
|
|
8742
|
+
return provider;
|
|
8699
8743
|
}
|
|
8700
|
-
return provider;
|
|
8701
8744
|
}
|
|
8702
8745
|
|
|
8703
8746
|
// src/register/helper/form-detail-register.ts
|
|
@@ -8712,14 +8755,24 @@ function getProvider3(key) {
|
|
|
8712
8755
|
}
|
|
8713
8756
|
async function getFormDetailProvider(model) {
|
|
8714
8757
|
let provider;
|
|
8715
|
-
const { detailType } = model;
|
|
8716
|
-
if (
|
|
8717
|
-
|
|
8758
|
+
const { detailType, sysPFPluginId, appId } = model;
|
|
8759
|
+
if (sysPFPluginId) {
|
|
8760
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
8761
|
+
if (pluginKey) {
|
|
8762
|
+
provider = getProvider3(pluginKey);
|
|
8763
|
+
}
|
|
8764
|
+
if (!provider) {
|
|
8765
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u5355\u6210\u5458\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8766
|
+
} else {
|
|
8767
|
+
return provider;
|
|
8768
|
+
}
|
|
8718
8769
|
}
|
|
8770
|
+
provider = getProvider3(detailType);
|
|
8719
8771
|
if (!provider) {
|
|
8720
8772
|
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u5355\u6210\u5458\u7C7B\u578B".concat(detailType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8773
|
+
} else {
|
|
8774
|
+
return provider;
|
|
8721
8775
|
}
|
|
8722
|
-
return provider;
|
|
8723
8776
|
}
|
|
8724
8777
|
|
|
8725
8778
|
// src/register/helper/grid-column-register.ts
|
|
@@ -8734,15 +8787,25 @@ function getProvider4(key) {
|
|
|
8734
8787
|
}
|
|
8735
8788
|
async function getGridColumnProvider(model) {
|
|
8736
8789
|
let provider;
|
|
8737
|
-
const { columnType, enableRowEdit } = model;
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8790
|
+
const { columnType, enableRowEdit, sysPFPluginId, appId } = model;
|
|
8791
|
+
if (sysPFPluginId) {
|
|
8792
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
8793
|
+
if (pluginKey) {
|
|
8794
|
+
provider = getProvider4(pluginKey);
|
|
8795
|
+
}
|
|
8796
|
+
if (!provider) {
|
|
8797
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u683C\u5217\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8798
|
+
} else {
|
|
8799
|
+
return provider;
|
|
8800
|
+
}
|
|
8741
8801
|
}
|
|
8802
|
+
const key = enableRowEdit ? "".concat(columnType, "_EDIT") : columnType;
|
|
8803
|
+
provider = getProvider4(key);
|
|
8742
8804
|
if (!provider) {
|
|
8743
8805
|
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u683C\u5217\u7C7B\u578B".concat(key, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8806
|
+
} else {
|
|
8807
|
+
return provider;
|
|
8744
8808
|
}
|
|
8745
|
-
return provider;
|
|
8746
8809
|
}
|
|
8747
8810
|
|
|
8748
8811
|
// src/register/helper/panel-item-register.ts
|
|
@@ -8761,13 +8824,26 @@ function getProvider5(key) {
|
|
|
8761
8824
|
async function getPanelItemProvider(model) {
|
|
8762
8825
|
var _a;
|
|
8763
8826
|
let provider;
|
|
8764
|
-
const { itemType } = model;
|
|
8827
|
+
const { itemType, sysPFPluginId, appId } = model;
|
|
8828
|
+
if (sysPFPluginId) {
|
|
8829
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
8830
|
+
if (pluginKey) {
|
|
8831
|
+
provider = getProvider5(pluginKey);
|
|
8832
|
+
}
|
|
8833
|
+
if (!provider) {
|
|
8834
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8835
|
+
} else {
|
|
8836
|
+
return provider;
|
|
8837
|
+
}
|
|
8838
|
+
}
|
|
8765
8839
|
if (itemType === "CONTAINER") {
|
|
8766
8840
|
const predefinedType = model.predefinedType || "DEFAULT";
|
|
8767
8841
|
const key = "CONTAINER_".concat(predefinedType);
|
|
8768
8842
|
provider = getProvider5(key);
|
|
8769
8843
|
if (!provider) {
|
|
8770
8844
|
ibiz.log.error("\u627E\u4E0D\u5230\u9762\u677F\u5BB9\u5668\u9884\u7F6E\u7C7B\u578B\u4E3A".concat(predefinedType, "\u7684\u9002\u914D\u5668"));
|
|
8845
|
+
} else {
|
|
8846
|
+
return provider;
|
|
8771
8847
|
}
|
|
8772
8848
|
}
|
|
8773
8849
|
if (itemType === "RAWITEM") {
|
|
@@ -8778,15 +8854,16 @@ async function getPanelItemProvider(model) {
|
|
|
8778
8854
|
ibiz.log.error(
|
|
8779
8855
|
"\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u76F4\u63A5\u5185\u5BB9\u9884\u7F6E\u7C7B\u578B\u4E3A".concat(predefinedType, "\u7684\u9002\u914D\u5668")
|
|
8780
8856
|
);
|
|
8857
|
+
} else {
|
|
8858
|
+
return provider;
|
|
8781
8859
|
}
|
|
8782
8860
|
}
|
|
8783
|
-
|
|
8784
|
-
provider = getProvider5(itemType);
|
|
8785
|
-
}
|
|
8861
|
+
provider = getProvider5(itemType);
|
|
8786
8862
|
if (!provider) {
|
|
8787
8863
|
ibiz.log.error("\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u7C7B\u578B".concat(itemType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8864
|
+
} else {
|
|
8865
|
+
return provider;
|
|
8788
8866
|
}
|
|
8789
|
-
return provider;
|
|
8790
8867
|
}
|
|
8791
8868
|
|
|
8792
8869
|
// src/register/helper/ui-action-register.ts
|
|
@@ -8802,14 +8879,24 @@ function getProvider6(key) {
|
|
|
8802
8879
|
}
|
|
8803
8880
|
async function getUIActionProvider(model) {
|
|
8804
8881
|
let provider;
|
|
8805
|
-
const { uiactionMode } = model;
|
|
8806
|
-
if (
|
|
8807
|
-
|
|
8882
|
+
const { uiactionMode, sysPFPluginId, appId } = model;
|
|
8883
|
+
if (sysPFPluginId) {
|
|
8884
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
8885
|
+
if (pluginKey) {
|
|
8886
|
+
provider = getProvider6(pluginKey);
|
|
8887
|
+
}
|
|
8888
|
+
if (!provider) {
|
|
8889
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u754C\u9762\u884C\u4E3A\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8890
|
+
} else {
|
|
8891
|
+
return provider;
|
|
8892
|
+
}
|
|
8808
8893
|
}
|
|
8894
|
+
provider = getProvider6(uiactionMode);
|
|
8809
8895
|
if (!provider) {
|
|
8810
8896
|
throw new RuntimeError18("\u627E\u4E0D\u754C\u9762\u884C\u4E3A\u6A21\u5F0F".concat(uiactionMode, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8897
|
+
} else {
|
|
8898
|
+
return provider;
|
|
8811
8899
|
}
|
|
8812
|
-
return provider;
|
|
8813
8900
|
}
|
|
8814
8901
|
|
|
8815
8902
|
// src/register/helper/view-register.ts
|
|
@@ -8822,7 +8909,18 @@ function getProvider7(key) {
|
|
|
8822
8909
|
}
|
|
8823
8910
|
async function getViewProvider(model) {
|
|
8824
8911
|
let provider;
|
|
8825
|
-
const { viewType, viewStyle } = model;
|
|
8912
|
+
const { viewType, viewStyle, sysPFPluginId, appId } = model;
|
|
8913
|
+
if (sysPFPluginId) {
|
|
8914
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
8915
|
+
if (pluginKey) {
|
|
8916
|
+
provider = getProvider7(pluginKey);
|
|
8917
|
+
}
|
|
8918
|
+
if (!provider) {
|
|
8919
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u89C6\u56FE\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8920
|
+
} else {
|
|
8921
|
+
return provider;
|
|
8922
|
+
}
|
|
8923
|
+
}
|
|
8826
8924
|
if (viewStyle && viewStyle !== "DEFAULT") {
|
|
8827
8925
|
const key = "".concat(viewType, "_").concat(viewStyle);
|
|
8828
8926
|
provider = getProvider7(key);
|
|
@@ -8831,6 +8929,8 @@ async function getViewProvider(model) {
|
|
|
8831
8929
|
"\u627E\u4E0D\u5230\u89C6\u56FE\u7C7B\u578B\uFF1A[".concat(viewType, "]\u7684\u89C6\u56FE\u6837\u5F0F\uFF1A[").concat(viewStyle, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"),
|
|
8832
8930
|
model
|
|
8833
8931
|
);
|
|
8932
|
+
} else {
|
|
8933
|
+
return provider;
|
|
8834
8934
|
}
|
|
8835
8935
|
}
|
|
8836
8936
|
if (!provider) {
|
|
@@ -8854,14 +8954,24 @@ function getProvider8(key) {
|
|
|
8854
8954
|
}
|
|
8855
8955
|
async function getPortletProvider(model) {
|
|
8856
8956
|
let provider;
|
|
8857
|
-
const { portletType } = model;
|
|
8858
|
-
if (
|
|
8859
|
-
|
|
8957
|
+
const { portletType, sysPFPluginId, appId } = model;
|
|
8958
|
+
if (sysPFPluginId) {
|
|
8959
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
8960
|
+
if (pluginKey) {
|
|
8961
|
+
provider = getProvider8(pluginKey);
|
|
8962
|
+
}
|
|
8963
|
+
if (!provider) {
|
|
8964
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u95E8\u6237\u90E8\u4EF6\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8965
|
+
} else {
|
|
8966
|
+
return provider;
|
|
8967
|
+
}
|
|
8860
8968
|
}
|
|
8969
|
+
provider = getProvider8(portletType);
|
|
8861
8970
|
if (!provider) {
|
|
8862
8971
|
ibiz.log.error("\u627E\u4E0D\u5230\u95E8\u6237\u90E8\u4EF6\u6210\u5458\u7C7B\u578B".concat(portletType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8972
|
+
} else {
|
|
8973
|
+
return provider;
|
|
8863
8974
|
}
|
|
8864
|
-
return provider;
|
|
8865
8975
|
}
|
|
8866
8976
|
|
|
8867
8977
|
// src/controller/common/view/view.controller.ts
|
|
@@ -10598,7 +10708,7 @@ import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
|
|
|
10598
10708
|
import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
|
|
10599
10709
|
|
|
10600
10710
|
// src/ui-logic/ui-logic.ts
|
|
10601
|
-
import { ModelError as
|
|
10711
|
+
import { ModelError as ModelError23, RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
|
|
10602
10712
|
|
|
10603
10713
|
// src/ui-logic/ui-logic-context.ts
|
|
10604
10714
|
var UILogicContext = class {
|
|
@@ -10702,7 +10812,7 @@ var UILogicContext = class {
|
|
|
10702
10812
|
import { RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
|
|
10703
10813
|
|
|
10704
10814
|
// src/ui-logic/ui-logic-link/ui-logic-link.ts
|
|
10705
|
-
import { ModelError as
|
|
10815
|
+
import { ModelError as ModelError18 } from "@ibiz-template/core";
|
|
10706
10816
|
|
|
10707
10817
|
// src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
|
|
10708
10818
|
import { RuntimeModelError as RuntimeModelError23 } from "@ibiz-template/core";
|
|
@@ -10712,7 +10822,7 @@ var UILogicLinkCond = class {
|
|
|
10712
10822
|
};
|
|
10713
10823
|
|
|
10714
10824
|
// src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
|
|
10715
|
-
import { ModelError as
|
|
10825
|
+
import { ModelError as ModelError17, RuntimeModelError as RuntimeModelError22 } from "@ibiz-template/core";
|
|
10716
10826
|
var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
10717
10827
|
constructor(model) {
|
|
10718
10828
|
super();
|
|
@@ -10766,7 +10876,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
10766
10876
|
return testCond(dst[this.dstField], this.op, src[this.value]);
|
|
10767
10877
|
}
|
|
10768
10878
|
case "CURTIME":
|
|
10769
|
-
throw new
|
|
10879
|
+
throw new ModelError17(this.model, "\u6682\u672A\u652F\u6301\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u5F53\u524D\u65F6\u95F4]");
|
|
10770
10880
|
default:
|
|
10771
10881
|
return testCond(dst[this.dstField], this.op, this.value);
|
|
10772
10882
|
}
|
|
@@ -10908,13 +11018,13 @@ var UILogicLink = class {
|
|
|
10908
11018
|
case 1:
|
|
10909
11019
|
return true;
|
|
10910
11020
|
case 2:
|
|
10911
|
-
throw new
|
|
11021
|
+
throw new ModelError18(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u6B65\u7ED3\u675F");
|
|
10912
11022
|
case 3:
|
|
10913
|
-
throw new
|
|
11023
|
+
throw new ModelError18(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u6B65\u62D2\u7EDD");
|
|
10914
11024
|
case 9:
|
|
10915
|
-
throw new
|
|
11025
|
+
throw new ModelError18(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u5E38\u5904\u7406");
|
|
10916
11026
|
default:
|
|
10917
|
-
throw new
|
|
11027
|
+
throw new ModelError18(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B:".concat(linkMode));
|
|
10918
11028
|
}
|
|
10919
11029
|
}
|
|
10920
11030
|
};
|
|
@@ -10998,7 +11108,7 @@ var StartNode2 = class extends UILogicNode {
|
|
|
10998
11108
|
};
|
|
10999
11109
|
|
|
11000
11110
|
// src/ui-logic/ui-logic-node/end-node/end-node.ts
|
|
11001
|
-
import { ModelError as
|
|
11111
|
+
import { ModelError as ModelError19 } from "@ibiz-template/core";
|
|
11002
11112
|
var EndNode2 = class extends UILogicNode {
|
|
11003
11113
|
async exec(ctx) {
|
|
11004
11114
|
ctx.isEndNode = true;
|
|
@@ -11019,7 +11129,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
11019
11129
|
case "LOGICPARAMFIELD":
|
|
11020
11130
|
case "BREAK":
|
|
11021
11131
|
default:
|
|
11022
|
-
throw new
|
|
11132
|
+
throw new ModelError19(
|
|
11023
11133
|
this.model,
|
|
11024
11134
|
"\u6682\u672A\u652F\u6301\u7684\u7ED3\u675F\u8282\u70B9\u8FD4\u56DE\u503C\u7C7B\u578B: ".concat(returnType)
|
|
11025
11135
|
);
|
|
@@ -11028,10 +11138,10 @@ var EndNode2 = class extends UILogicNode {
|
|
|
11028
11138
|
};
|
|
11029
11139
|
|
|
11030
11140
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
11031
|
-
import { ModelError as
|
|
11141
|
+
import { ModelError as ModelError21 } from "@ibiz-template/core";
|
|
11032
11142
|
|
|
11033
11143
|
// src/ui-logic/utils/handle-src-val.ts
|
|
11034
|
-
import { ModelError as
|
|
11144
|
+
import { ModelError as ModelError20 } from "@ibiz-template/core";
|
|
11035
11145
|
import { clone as clone11 } from "ramda";
|
|
11036
11146
|
function handleSrcVal2(ctx, srcValParams) {
|
|
11037
11147
|
const { srcDEUILogicParamId, srcFieldName, srcValue } = srcValParams;
|
|
@@ -11057,7 +11167,7 @@ function handleSrcVal2(ctx, srcValParams) {
|
|
|
11057
11167
|
value = clone11(ibiz.env);
|
|
11058
11168
|
break;
|
|
11059
11169
|
default:
|
|
11060
|
-
throw new
|
|
11170
|
+
throw new ModelError20(srcValParams, "\u6682\u672A\u652F\u6301\u6E90\u503C\u7C7B\u578B".concat(srcValueType));
|
|
11061
11171
|
}
|
|
11062
11172
|
const srcField = srcFieldName == null ? void 0 : srcFieldName.toLowerCase();
|
|
11063
11173
|
if (value && srcField) {
|
|
@@ -11077,7 +11187,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
11077
11187
|
case "SETPARAMVALUE":
|
|
11078
11188
|
return this.setParamValue(nodeParam, ctx);
|
|
11079
11189
|
default:
|
|
11080
|
-
throw new
|
|
11190
|
+
throw new ModelError21(
|
|
11081
11191
|
nodeParam,
|
|
11082
11192
|
"\u6682\u672A\u652F\u6301\u903B\u8F91\u5904\u7406\u53C2\u6570\u64CD\u4F5C".concat(nodeParam.paramAction)
|
|
11083
11193
|
);
|
|
@@ -11154,7 +11264,7 @@ var BindParamNode2 = class extends UILogicNode {
|
|
|
11154
11264
|
};
|
|
11155
11265
|
|
|
11156
11266
|
// src/ui-logic/ui-logic-param/ui-logic-param.ts
|
|
11157
|
-
import { ModelError as
|
|
11267
|
+
import { ModelError as ModelError22, RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
|
|
11158
11268
|
var UILogicParam = class {
|
|
11159
11269
|
/**
|
|
11160
11270
|
* Creates an instance of UILogicParam.
|
|
@@ -11203,17 +11313,17 @@ var UILogicParam = class {
|
|
|
11203
11313
|
} else if (m.entityListParam) {
|
|
11204
11314
|
ctx.params[tag] = [];
|
|
11205
11315
|
} else if (m.entityPageParam) {
|
|
11206
|
-
throw new
|
|
11316
|
+
throw new ModelError22(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5206\u9875\u67E5\u8BE2\u7ED3\u679C");
|
|
11207
11317
|
} else if (m.entityParam) {
|
|
11208
11318
|
ctx.params[tag] = {};
|
|
11209
11319
|
} else if (m.lastReturnParam) {
|
|
11210
|
-
throw new
|
|
11320
|
+
throw new ModelError22(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u4E0A\u6B21\u8C03\u7528\u8FD4\u56DE");
|
|
11211
11321
|
} else if (m.navContextParam) {
|
|
11212
11322
|
ctx.params[tag] = context;
|
|
11213
11323
|
} else if (m.navViewParamParam) {
|
|
11214
|
-
throw new
|
|
11324
|
+
throw new ModelError22(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u89C6\u56FE\u8DEF\u7531\u53C2\u6570");
|
|
11215
11325
|
} else if (m.routeViewSessionParam) {
|
|
11216
|
-
throw new
|
|
11326
|
+
throw new ModelError22(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u8DEF\u7531\u89C6\u56FE\u4F1A\u8BDD");
|
|
11217
11327
|
} else if (m.simpleListParam) {
|
|
11218
11328
|
ctx.params[tag] = [];
|
|
11219
11329
|
} else if (m.simpleParam) {
|
|
@@ -11221,7 +11331,7 @@ var UILogicParam = class {
|
|
|
11221
11331
|
} else if (m.viewNavDataParam) {
|
|
11222
11332
|
ctx.params[tag] = viewParams;
|
|
11223
11333
|
} else if (m.viewSessionParam) {
|
|
11224
|
-
throw new
|
|
11334
|
+
throw new ModelError22(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5F53\u524D\u89C6\u56FE\u4F1A\u8BDD");
|
|
11225
11335
|
}
|
|
11226
11336
|
}
|
|
11227
11337
|
/**
|
|
@@ -11238,7 +11348,7 @@ var UILogicParam = class {
|
|
|
11238
11348
|
} else if (m.simpleParam || m.entityParam) {
|
|
11239
11349
|
ctx.params[tag] = {};
|
|
11240
11350
|
} else {
|
|
11241
|
-
throw new
|
|
11351
|
+
throw new ModelError22(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B\u91CD\u65B0\u5EFA\u7ACB\u53D8\u91CF");
|
|
11242
11352
|
}
|
|
11243
11353
|
}
|
|
11244
11354
|
};
|
|
@@ -11313,7 +11423,7 @@ var UILogic = class {
|
|
|
11313
11423
|
case "THROWEXCEPTION":
|
|
11314
11424
|
case "DEBUGPARAM":
|
|
11315
11425
|
default:
|
|
11316
|
-
throw new
|
|
11426
|
+
throw new ModelError23(node, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8282\u70B9\u7C7B\u578B: ".concat(logicNodeType));
|
|
11317
11427
|
}
|
|
11318
11428
|
this.nodes.set(node.id, logicNode);
|
|
11319
11429
|
});
|
|
@@ -11454,11 +11564,23 @@ var UIActionUtil = class {
|
|
|
11454
11564
|
* @param {IUILogicParams} params 界面行为参数
|
|
11455
11565
|
*/
|
|
11456
11566
|
static async execAndResolved(actionId, params) {
|
|
11567
|
+
var _a, _b;
|
|
11457
11568
|
const result = await this.exec(actionId, params);
|
|
11458
11569
|
if (result.closeView) {
|
|
11459
11570
|
params.view.closeView();
|
|
11460
11571
|
} else if (result.refresh) {
|
|
11461
|
-
|
|
11572
|
+
switch (result.refreshMode) {
|
|
11573
|
+
case 1:
|
|
11574
|
+
await params.view.callUIAction("Refresh" /* REFRESH */);
|
|
11575
|
+
break;
|
|
11576
|
+
case 2:
|
|
11577
|
+
await ((_a = params.view.parentView) == null ? void 0 : _a.callUIAction("Refresh" /* REFRESH */));
|
|
11578
|
+
break;
|
|
11579
|
+
case 3:
|
|
11580
|
+
await ((_b = params.view.getTopView()) == null ? void 0 : _b.callUIAction("Refresh" /* REFRESH */));
|
|
11581
|
+
break;
|
|
11582
|
+
default:
|
|
11583
|
+
}
|
|
11462
11584
|
}
|
|
11463
11585
|
}
|
|
11464
11586
|
};
|
|
@@ -11477,6 +11599,7 @@ var UIActionProviderBase = class {
|
|
|
11477
11599
|
const { context, params, data } = args;
|
|
11478
11600
|
const result = {
|
|
11479
11601
|
refresh: action.reloadData,
|
|
11602
|
+
refreshMode: action.refreshMode,
|
|
11480
11603
|
closeView: action.closeEditView
|
|
11481
11604
|
};
|
|
11482
11605
|
const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
|
|
@@ -11703,9 +11826,49 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
11703
11826
|
|
|
11704
11827
|
// src/ui-action/provider/sys-ui-action-provider.ts
|
|
11705
11828
|
var SysUIActionProvider = class extends UIActionProviderBase {
|
|
11829
|
+
constructor() {
|
|
11830
|
+
super(...arguments);
|
|
11831
|
+
this.predefinedActionMap = /* @__PURE__ */ new Map([
|
|
11832
|
+
["EDITVIEW_EXITACTION", "Exit"],
|
|
11833
|
+
["EDITVIEW_SAVEANDEXITACTION", "SaveAndExit"],
|
|
11834
|
+
["TREEVIEW_REFRESHPARENTACTION", "RefreshParent"],
|
|
11835
|
+
["GRIDVIEW_EXPORTXMLACTION", "ExportModel"],
|
|
11836
|
+
["GRIDVIEW_EXPORTACTION", "ExportExcel"],
|
|
11837
|
+
["EDITVIEW_REMOVEANDEXITACTION", "RemoveAndExit"],
|
|
11838
|
+
["GRIDVIEW_PRINTACTION", "Print"],
|
|
11839
|
+
["EDITVIEW_NEXTRECORDACTION", "NextRecord"],
|
|
11840
|
+
["GRIDVIEW_NEWROWACTION", "NewRow"],
|
|
11841
|
+
["EDITVIEW_LASTRECORDACTION", "LastRecord"],
|
|
11842
|
+
["EDITVIEW_PREVRECORDACTION", "PrevRecord"],
|
|
11843
|
+
["GRIDVIEW_SEARCHBAR", "ToggleFilter"],
|
|
11844
|
+
["EDITVIEW_SAVEANDSTARTWFACTION", "SaveAndStart"],
|
|
11845
|
+
["EDITVIEW_NEWACTION", "New"],
|
|
11846
|
+
["EDITVIEW_PRINTACTION", "Print"],
|
|
11847
|
+
["EDITVIEW_COPYACTION", "Copy"],
|
|
11848
|
+
["EDITVIEW_HELPACTION", "Help"],
|
|
11849
|
+
["EDITVIEW_FIRSTRECORDACTION", "FirstRecord"],
|
|
11850
|
+
["GRIDVIEW_REFRESHACTION", "Refresh"],
|
|
11851
|
+
["EDITVIEW_SAVEANDNEWACTION", "SaveAndNew"],
|
|
11852
|
+
["EDITVIEW_VIEWWFSTEPACTORACTION", "ViewWFStep"],
|
|
11853
|
+
["EDITVIEW_SAVEACTION", "Save"],
|
|
11854
|
+
["TREEVIEW_REFRESHALLACTION", "RefreshAll"],
|
|
11855
|
+
["GRIDVIEW_IMPORTBAR", "Import"],
|
|
11856
|
+
["GRIDVIEW_ROWEDITACTION", "ToggleRowEdit"],
|
|
11857
|
+
["GRIDVIEW_NEWACTION", "New"],
|
|
11858
|
+
["GRIDVIEW_EDITACTION", "Edit"],
|
|
11859
|
+
["GRIDVIEW_HELPACTION", "Help"],
|
|
11860
|
+
["EDITVIEW_REFRESHACTION", "Refresh"],
|
|
11861
|
+
["GRIDVIEW_REMOVEACTION", "Remove"],
|
|
11862
|
+
["GRIDVIEW_COPYACTION", "Copy"],
|
|
11863
|
+
["GRIDVIEW_VIEWACTION", "View"],
|
|
11864
|
+
["GRIDVIEW_SAVEROWACTION", "SaveRow"],
|
|
11865
|
+
["APP_LOGIN", "login"],
|
|
11866
|
+
["APP_LOGOUT", "logout"]
|
|
11867
|
+
]);
|
|
11868
|
+
}
|
|
11706
11869
|
async execAction(action, args) {
|
|
11707
11870
|
const { view } = args;
|
|
11708
|
-
const uIActionTag = action.uiactionTag;
|
|
11871
|
+
const uIActionTag = this.predefinedActionMap.get(action.predefinedType) || action.uiactionTag;
|
|
11709
11872
|
if (uIActionTag === "Exit" /* EXIT */) {
|
|
11710
11873
|
return { closeView: true };
|
|
11711
11874
|
}
|
|
@@ -11715,7 +11878,7 @@ var SysUIActionProvider = class extends UIActionProviderBase {
|
|
|
11715
11878
|
};
|
|
11716
11879
|
|
|
11717
11880
|
// src/ui-action/provider/front-ui-action-provider.ts
|
|
11718
|
-
import { StringUtil, RuntimeModelError as RuntimeModelError32, ModelError as
|
|
11881
|
+
import { StringUtil, RuntimeModelError as RuntimeModelError32, ModelError as ModelError24 } from "@ibiz-template/core";
|
|
11719
11882
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
11720
11883
|
async execAction(action, args) {
|
|
11721
11884
|
const { context, params, data, event, noWaitRoute } = args;
|
|
@@ -11759,7 +11922,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
11759
11922
|
actionResult = this.doOther(action, args);
|
|
11760
11923
|
break;
|
|
11761
11924
|
default:
|
|
11762
|
-
throw new
|
|
11925
|
+
throw new ModelError24(
|
|
11763
11926
|
action,
|
|
11764
11927
|
"\u672A\u652F\u6301\u7684\u524D\u53F0\u5904\u7406\u6A21\u5F0F[".concat(action.frontProcessType, "]")
|
|
11765
11928
|
);
|
|
@@ -11859,7 +12022,7 @@ var LogicExecutor = class {
|
|
|
11859
12022
|
};
|
|
11860
12023
|
|
|
11861
12024
|
// src/logic-scheduler/executor/logic-executor-factory.ts
|
|
11862
|
-
import { ModelError as
|
|
12025
|
+
import { ModelError as ModelError25 } from "@ibiz-template/core";
|
|
11863
12026
|
var LogicExecutorFactory = class {
|
|
11864
12027
|
constructor() {
|
|
11865
12028
|
/**
|
|
@@ -11889,7 +12052,7 @@ var LogicExecutorFactory = class {
|
|
|
11889
12052
|
createExecutor(logic, scheduler) {
|
|
11890
12053
|
const constructor = this.constructorMap.get(logic.logicType);
|
|
11891
12054
|
if (!constructor) {
|
|
11892
|
-
throw new
|
|
12055
|
+
throw new ModelError25(logic, "\u903B\u8F91\u7C7B\u578B ".concat(logic.logicType, " \u6682\u672A\u652F\u6301\uFF01"));
|
|
11893
12056
|
}
|
|
11894
12057
|
return constructor(logic, scheduler);
|
|
11895
12058
|
}
|
|
@@ -12202,7 +12365,7 @@ var ViewLogicScheduler = class extends LogicScheduler {
|
|
|
12202
12365
|
};
|
|
12203
12366
|
|
|
12204
12367
|
// src/logic-scheduler/trigger/logic-trigger-factory.ts
|
|
12205
|
-
import { ModelError as
|
|
12368
|
+
import { ModelError as ModelError26 } from "@ibiz-template/core";
|
|
12206
12369
|
var LogicTriggerFactory = class {
|
|
12207
12370
|
constructor() {
|
|
12208
12371
|
/**
|
|
@@ -12232,7 +12395,7 @@ var LogicTriggerFactory = class {
|
|
|
12232
12395
|
createTrigger(logic, scheduler) {
|
|
12233
12396
|
const constructor = this.constructorMap.get(logic.triggerType);
|
|
12234
12397
|
if (!constructor) {
|
|
12235
|
-
throw new
|
|
12398
|
+
throw new ModelError26(logic, "\u89E6\u53D1\u5668\u7C7B\u578B ".concat(logic.triggerType, " \u6682\u672A\u652F\u6301\uFF01"));
|
|
12236
12399
|
}
|
|
12237
12400
|
return constructor(logic, scheduler);
|
|
12238
12401
|
}
|
|
@@ -12423,7 +12586,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
12423
12586
|
|
|
12424
12587
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
12425
12588
|
import {
|
|
12426
|
-
ModelError as
|
|
12589
|
+
ModelError as ModelError27,
|
|
12427
12590
|
RuntimeError as RuntimeError30,
|
|
12428
12591
|
RuntimeModelError as RuntimeModelError34
|
|
12429
12592
|
} from "@ibiz-template/core";
|
|
@@ -12517,9 +12680,9 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
12517
12680
|
return;
|
|
12518
12681
|
}
|
|
12519
12682
|
} else if (enableBatchAdd) {
|
|
12520
|
-
throw new
|
|
12683
|
+
throw new ModelError27(appUILogic, "enableBatchAdd\u6682\u672A\u652F\u6301");
|
|
12521
12684
|
} else if (batchAddOnly) {
|
|
12522
|
-
throw new
|
|
12685
|
+
throw new ModelError27(appUILogic, "batchAddOnly\u6682\u672A\u652F\u6301");
|
|
12523
12686
|
} else {
|
|
12524
12687
|
newViewRef = newDataAppView;
|
|
12525
12688
|
if (!newViewRef || !newViewRef.refAppViewId) {
|