@ibiz-template/runtime 0.7.1 → 0.7.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 +599 -254
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts +2 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +4 -0
- package/out/controller/common/base.controller.d.ts +9 -1
- package/out/controller/common/base.controller.d.ts.map +1 -1
- package/out/controller/common/base.controller.js +12 -1
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +7 -19
- package/out/controller/common/index.d.ts +1 -0
- package/out/controller/common/index.d.ts.map +1 -1
- package/out/controller/common/index.js +1 -0
- package/out/controller/common/view/app-data-upload-view.controller.d.ts +22 -0
- package/out/controller/common/view/app-data-upload-view.controller.d.ts.map +1 -0
- package/out/controller/common/view/app-data-upload-view.controller.js +46 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +4 -0
- package/out/controller/control/form/edit-form/edit-form.controller.js +12 -12
- package/out/controller/control/form/form/form.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-detail/form-detail.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-detail/form-detail.controller.js +1 -4
- package/out/controller/control/form/form-detail/form-detail/form-detail.state.d.ts +8 -0
- package/out/controller/control/form/form-detail/form-detail/form-detail.state.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-detail/form-detail.state.js +12 -2
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.js +4 -3
- package/out/controller/control/grid/grid/grid-row.state.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid-row.state.js +22 -1
- package/out/controller/control/grid/grid/grid.controller.js +1 -1
- package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.js +3 -1
- package/out/controller/control/panel/panel/panel-item.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel-item.controller.js +1 -4
- package/out/controller/control/panel/panel/panel-item.state.d.ts +10 -2
- package/out/controller/control/panel/panel/panel-item.state.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel-item.state.js +14 -4
- package/out/controller/control/panel/panel/panel.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel.controller.js +1 -1
- package/out/controller/utils/data-file-util/data-file-util.d.ts +95 -2
- package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -1
- package/out/controller/utils/data-file-util/data-file-util.js +194 -8
- package/out/controller/utils/value-rule/value-rule.js +1 -1
- package/out/hub/config/app-view-config-service.d.ts.map +1 -1
- package/out/hub/config/app-view-config-service.js +7 -2
- package/out/interface/common/i-global-config/i-global-config.d.ts +9 -0
- package/out/interface/common/i-global-config/i-global-config.d.ts.map +1 -1
- package/out/interface/common/i-global-config/i-global-picker-editor-config.d.ts +13 -0
- package/out/interface/common/i-global-config/i-global-picker-editor-config.d.ts.map +1 -0
- package/out/interface/common/i-global-config/i-global-picker-editor-config.js +1 -0
- package/out/interface/common/i-global-config/index.d.ts +1 -0
- package/out/interface/common/i-global-config/index.d.ts.map +1 -1
- package/out/interface/common/i-global-config/index.js +1 -0
- package/out/interface/common/index.d.ts +1 -1
- package/out/interface/common/index.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-edit-form.event.d.ts +16 -9
- package/out/interface/controller/event/control/i-edit-form.event.d.ts.map +1 -1
- package/out/interface/controller/state/common/i-controller.state.d.ts +8 -0
- package/out/interface/controller/state/common/i-controller.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/panel-item/i-panel-item.state.d.ts +8 -0
- package/out/interface/controller/state/control/panel-item/i-panel-item.state.d.ts.map +1 -1
- package/out/interface/controller/state/view/i-app-data-upload-view.state.d.ts +26 -0
- package/out/interface/controller/state/view/i-app-data-upload-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-app-data-upload-view.state.js +1 -0
- package/out/interface/controller/state/view/index.d.ts +1 -0
- package/out/interface/controller/state/view/index.d.ts.map +1 -1
- package/out/interface/controller/state/view/index.js +1 -0
- package/out/interface/register/i-register-params.d.ts +31 -0
- package/out/interface/register/i-register-params.d.ts.map +1 -0
- package/out/interface/register/i-register-params.js +1 -0
- package/out/interface/register/index.d.ts +1 -0
- package/out/interface/register/index.d.ts.map +1 -1
- package/out/interface/register/index.js +1 -0
- package/out/register/custom-register.d.ts +34 -0
- package/out/register/custom-register.d.ts.map +1 -0
- package/out/register/custom-register.js +80 -0
- package/out/register/helper/control-register.d.ts.map +1 -1
- package/out/register/helper/control-register.js +12 -0
- package/out/register/helper/form-detail-register.d.ts +2 -2
- package/out/register/helper/form-detail-register.d.ts.map +1 -1
- package/out/register/helper/form-detail-register.js +14 -1
- package/out/register/helper/grid-column-register.d.ts +2 -2
- package/out/register/helper/grid-column-register.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.js +14 -1
- package/out/register/helper/panel-item-register.d.ts +2 -2
- package/out/register/helper/panel-item-register.d.ts.map +1 -1
- package/out/register/helper/panel-item-register.js +15 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts +8 -0
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.js +14 -3
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +17 -26
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -25,6 +25,10 @@ var GlobalConfig = class {
|
|
|
25
25
|
this.form = {
|
|
26
26
|
mdCtrlConfirmBeforeRemove: true
|
|
27
27
|
};
|
|
28
|
+
// 全局下拉选择类编辑器配置
|
|
29
|
+
this.pickerEditor = {
|
|
30
|
+
overflowMode: "auto"
|
|
31
|
+
};
|
|
28
32
|
}
|
|
29
33
|
};
|
|
30
34
|
|
|
@@ -5503,6 +5507,82 @@ async function getAppCounterProvider(model) {
|
|
|
5503
5507
|
}
|
|
5504
5508
|
}
|
|
5505
5509
|
|
|
5510
|
+
// src/register/custom-register.ts
|
|
5511
|
+
var CustomRegister = class {
|
|
5512
|
+
/**
|
|
5513
|
+
* 获取适配器注册key
|
|
5514
|
+
*
|
|
5515
|
+
* @author ljx
|
|
5516
|
+
* @date 2024-04-16 23:08:08
|
|
5517
|
+
* @param {string} registerType
|
|
5518
|
+
* @param {IRegisterParams} opts
|
|
5519
|
+
* @return {string}
|
|
5520
|
+
*/
|
|
5521
|
+
static getRegisterKey(registerType, opts) {
|
|
5522
|
+
switch (registerType) {
|
|
5523
|
+
case PANELITEM_PROVIDER_PREFIX:
|
|
5524
|
+
return this.calcKeyByView(opts);
|
|
5525
|
+
case FORMDETAIL_PROVIDER_PREFIX:
|
|
5526
|
+
case GRIDCOLUMN_PROVIDER_PREFIX:
|
|
5527
|
+
case CONTROL_PROVIDER_PREFIX:
|
|
5528
|
+
return this.calcKeyByCtrl(opts);
|
|
5529
|
+
default:
|
|
5530
|
+
return "";
|
|
5531
|
+
}
|
|
5532
|
+
}
|
|
5533
|
+
/**
|
|
5534
|
+
* 通过视图计算key
|
|
5535
|
+
* 目前适用于计算面板项的key
|
|
5536
|
+
* @author ljx
|
|
5537
|
+
* @date 2024-04-16 23:08:08
|
|
5538
|
+
* @param {IRegisterParams} opts
|
|
5539
|
+
* @return {string}
|
|
5540
|
+
*/
|
|
5541
|
+
static calcKeyByView(opts) {
|
|
5542
|
+
const { controlItemModel, controlModel, viewModel } = opts;
|
|
5543
|
+
let key = "";
|
|
5544
|
+
if (viewModel == null ? void 0 : viewModel.codeName) {
|
|
5545
|
+
key += "".concat(viewModel.codeName.toUpperCase());
|
|
5546
|
+
}
|
|
5547
|
+
if (controlModel == null ? void 0 : controlModel.codeName) {
|
|
5548
|
+
key += "@".concat(controlModel.codeName.toUpperCase());
|
|
5549
|
+
}
|
|
5550
|
+
if (controlItemModel == null ? void 0 : controlItemModel.id) {
|
|
5551
|
+
key += "@".concat(controlItemModel.id.toUpperCase());
|
|
5552
|
+
}
|
|
5553
|
+
return key;
|
|
5554
|
+
}
|
|
5555
|
+
/**
|
|
5556
|
+
* 通过部件计算key
|
|
5557
|
+
* 没有实体的部件默认为APP
|
|
5558
|
+
* @date 2024-04-16 23:08:08
|
|
5559
|
+
* @param {IRegisterParams} opts
|
|
5560
|
+
* @return {string}
|
|
5561
|
+
*/
|
|
5562
|
+
static calcKeyByCtrl(opts) {
|
|
5563
|
+
const { controlModel, controlItemModel } = opts;
|
|
5564
|
+
let key = "";
|
|
5565
|
+
let prefix = "APP";
|
|
5566
|
+
if (controlModel) {
|
|
5567
|
+
const { appDataEntityId, controlType, codeName } = controlModel;
|
|
5568
|
+
if (appDataEntityId) {
|
|
5569
|
+
prefix = calcDeCodeNameById(appDataEntityId).toUpperCase();
|
|
5570
|
+
}
|
|
5571
|
+
if (controlType) {
|
|
5572
|
+
key += "@".concat(controlType.toUpperCase());
|
|
5573
|
+
}
|
|
5574
|
+
if (codeName) {
|
|
5575
|
+
key += "@".concat(codeName.toUpperCase());
|
|
5576
|
+
}
|
|
5577
|
+
}
|
|
5578
|
+
if (controlItemModel == null ? void 0 : controlItemModel.codeName) {
|
|
5579
|
+
key += "@".concat(controlItemModel.codeName.toUpperCase());
|
|
5580
|
+
}
|
|
5581
|
+
key = prefix + key;
|
|
5582
|
+
return key;
|
|
5583
|
+
}
|
|
5584
|
+
};
|
|
5585
|
+
|
|
5506
5586
|
// src/register/helper/control-register.ts
|
|
5507
5587
|
var CONTROL_PROVIDER_PREFIX = "CONTROL";
|
|
5508
5588
|
function registerControlProvider(key, callback) {
|
|
@@ -5516,6 +5596,15 @@ function getProvider2(key) {
|
|
|
5516
5596
|
async function getControlProvider(model) {
|
|
5517
5597
|
let provider;
|
|
5518
5598
|
const { controlType, controlStyle, sysPFPluginId, appId: appId2 } = model;
|
|
5599
|
+
const registerKey = CustomRegister.getRegisterKey(CONTROL_PROVIDER_PREFIX, {
|
|
5600
|
+
controlModel: model
|
|
5601
|
+
});
|
|
5602
|
+
provider = getProvider2(registerKey);
|
|
5603
|
+
if (!provider) {
|
|
5604
|
+
ibiz.log.debug("\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[".concat(registerKey, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
5605
|
+
} else {
|
|
5606
|
+
return provider;
|
|
5607
|
+
}
|
|
5519
5608
|
if (sysPFPluginId) {
|
|
5520
5609
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId2);
|
|
5521
5610
|
if (pluginKey) {
|
|
@@ -5621,9 +5710,22 @@ function getProvider4(key) {
|
|
|
5621
5710
|
"".concat(FORMDETAIL_PROVIDER_PREFIX, "_").concat(key)
|
|
5622
5711
|
);
|
|
5623
5712
|
}
|
|
5624
|
-
async function getFormDetailProvider(model) {
|
|
5713
|
+
async function getFormDetailProvider(model, formModel) {
|
|
5625
5714
|
let provider;
|
|
5626
5715
|
const { detailType, sysPFPluginId, appId: appId2 } = model;
|
|
5716
|
+
const registerKey = CustomRegister.getRegisterKey(
|
|
5717
|
+
FORMDETAIL_PROVIDER_PREFIX,
|
|
5718
|
+
{
|
|
5719
|
+
controlItemModel: model,
|
|
5720
|
+
controlModel: formModel
|
|
5721
|
+
}
|
|
5722
|
+
);
|
|
5723
|
+
provider = getProvider4(registerKey);
|
|
5724
|
+
if (!provider) {
|
|
5725
|
+
ibiz.log.debug("\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[".concat(registerKey, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
5726
|
+
} else {
|
|
5727
|
+
return provider;
|
|
5728
|
+
}
|
|
5627
5729
|
if (sysPFPluginId) {
|
|
5628
5730
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId2);
|
|
5629
5731
|
if (pluginKey) {
|
|
@@ -5653,9 +5755,22 @@ function getProvider5(key) {
|
|
|
5653
5755
|
"".concat(GRIDCOLUMN_PROVIDER_PREFIX, "_").concat(key)
|
|
5654
5756
|
);
|
|
5655
5757
|
}
|
|
5656
|
-
async function getGridColumnProvider(model) {
|
|
5758
|
+
async function getGridColumnProvider(model, gridModel) {
|
|
5657
5759
|
let provider;
|
|
5658
5760
|
const { columnType, enableRowEdit, sysPFPluginId, appId: appId2 } = model;
|
|
5761
|
+
const registerKey = CustomRegister.getRegisterKey(
|
|
5762
|
+
GRIDCOLUMN_PROVIDER_PREFIX,
|
|
5763
|
+
{
|
|
5764
|
+
controlItemModel: model,
|
|
5765
|
+
controlModel: gridModel
|
|
5766
|
+
}
|
|
5767
|
+
);
|
|
5768
|
+
provider = getProvider5(registerKey);
|
|
5769
|
+
if (!provider) {
|
|
5770
|
+
ibiz.log.debug("\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[".concat(registerKey, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
5771
|
+
} else {
|
|
5772
|
+
return provider;
|
|
5773
|
+
}
|
|
5659
5774
|
if (sysPFPluginId) {
|
|
5660
5775
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId2);
|
|
5661
5776
|
if (pluginKey) {
|
|
@@ -5689,10 +5804,21 @@ function getProvider6(key) {
|
|
|
5689
5804
|
"".concat(PANELITEM_PROVIDER_PREFIX, "_").concat(key.toUpperCase())
|
|
5690
5805
|
);
|
|
5691
5806
|
}
|
|
5692
|
-
async function getPanelItemProvider(model) {
|
|
5807
|
+
async function getPanelItemProvider(model, panelModel, viewModel) {
|
|
5693
5808
|
var _a;
|
|
5694
5809
|
let provider;
|
|
5695
5810
|
const { itemType, sysPFPluginId, appId: appId2, controlRenders } = model;
|
|
5811
|
+
const registerKey = CustomRegister.getRegisterKey(PANELITEM_PROVIDER_PREFIX, {
|
|
5812
|
+
controlItemModel: model,
|
|
5813
|
+
controlModel: panelModel,
|
|
5814
|
+
viewModel
|
|
5815
|
+
});
|
|
5816
|
+
provider = getProvider6(registerKey);
|
|
5817
|
+
if (!provider) {
|
|
5818
|
+
ibiz.log.debug("\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[".concat(registerKey, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
5819
|
+
} else {
|
|
5820
|
+
return provider;
|
|
5821
|
+
}
|
|
5696
5822
|
if (sysPFPluginId) {
|
|
5697
5823
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId2);
|
|
5698
5824
|
if (pluginKey) {
|
|
@@ -6532,6 +6658,14 @@ var DynamicCodeListCache = class {
|
|
|
6532
6658
|
* @protected
|
|
6533
6659
|
*/
|
|
6534
6660
|
this.evt = new QXEvent3();
|
|
6661
|
+
/**
|
|
6662
|
+
* 常见关键字
|
|
6663
|
+
*
|
|
6664
|
+
* @author zzq
|
|
6665
|
+
* @date 2024-04-15 17:08:06
|
|
6666
|
+
* @type {Promise<void>}
|
|
6667
|
+
*/
|
|
6668
|
+
this.commonKeys = ["query", "queryconds"];
|
|
6535
6669
|
this.codeList = codeList;
|
|
6536
6670
|
this.codelistChange = this.codelistChange.bind(this);
|
|
6537
6671
|
const { appDataEntityId, appDEDataSetId } = this.codeList;
|
|
@@ -6676,7 +6810,11 @@ var DynamicCodeListCache = class {
|
|
|
6676
6810
|
* @returns {*} {Promise<CodeListItem[]>}
|
|
6677
6811
|
*/
|
|
6678
6812
|
async load(context, params = {}) {
|
|
6679
|
-
|
|
6813
|
+
const tempParams = { ...params };
|
|
6814
|
+
this.commonKeys.forEach((key) => {
|
|
6815
|
+
delete tempParams[key];
|
|
6816
|
+
});
|
|
6817
|
+
this.setParams(context, tempParams);
|
|
6680
6818
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
6681
6819
|
const {
|
|
6682
6820
|
appDataEntityId,
|
|
@@ -6686,7 +6824,6 @@ var DynamicCodeListCache = class {
|
|
|
6686
6824
|
pvalueAppDEFieldId,
|
|
6687
6825
|
customCond
|
|
6688
6826
|
} = this.codeList;
|
|
6689
|
-
const tempParams = { ...params };
|
|
6690
6827
|
if (minorSortAppDEFieldId && minorSortDir) {
|
|
6691
6828
|
Object.assign(tempParams, {
|
|
6692
6829
|
sort: "".concat(minorSortAppDEFieldId.toLowerCase(), ",").concat(minorSortDir.toLowerCase())
|
|
@@ -13885,10 +14022,13 @@ var AppViewConfigService = class {
|
|
|
13885
14022
|
*/
|
|
13886
14023
|
getCustomOption(model) {
|
|
13887
14024
|
var _a;
|
|
13888
|
-
const { appViewParams } = model;
|
|
13889
|
-
|
|
14025
|
+
const { appViewParams, userParam } = model;
|
|
14026
|
+
let optionProperty = (_a = appViewParams == null ? void 0 : appViewParams.find(
|
|
13890
14027
|
(item) => item.id === "modaloption"
|
|
13891
14028
|
)) == null ? void 0 : _a.value;
|
|
14029
|
+
if (!optionProperty && userParam) {
|
|
14030
|
+
optionProperty = userParam.modalOption;
|
|
14031
|
+
}
|
|
13892
14032
|
let modalOption = {};
|
|
13893
14033
|
if (optionProperty) {
|
|
13894
14034
|
try {
|
|
@@ -14648,7 +14788,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
14648
14788
|
const sysRule = item.sysValueRule;
|
|
14649
14789
|
const deRule = item.defvalueRule;
|
|
14650
14790
|
if (valueRuleType === "SYSVALUERULE" && sysRule) {
|
|
14651
|
-
if (sysRule.ruleType === "REG") {
|
|
14791
|
+
if (sysRule.ruleType === "REG" || sysRule.ruleType === "REGEX") {
|
|
14652
14792
|
rules.push({
|
|
14653
14793
|
pattern: new RegExp(sysRule.regExCode),
|
|
14654
14794
|
message: sysRule.ruleInfo,
|
|
@@ -14861,7 +15001,8 @@ function getDefaultValue(opts, origins) {
|
|
|
14861
15001
|
|
|
14862
15002
|
// src/controller/utils/data-file-util/data-file-util.ts
|
|
14863
15003
|
import {
|
|
14864
|
-
RuntimeError as RuntimeError32
|
|
15004
|
+
RuntimeError as RuntimeError32,
|
|
15005
|
+
selectFile
|
|
14865
15006
|
} from "@ibiz-template/core";
|
|
14866
15007
|
var asyncImportUrl = "asyncimportdata2";
|
|
14867
15008
|
var importUrl = "importdata2";
|
|
@@ -14882,6 +15023,9 @@ function listenAsyncAction(id) {
|
|
|
14882
15023
|
});
|
|
14883
15024
|
}
|
|
14884
15025
|
async function asyncImportData(file, appDataEntity, dataImport, context) {
|
|
15026
|
+
ibiz.notification.info({
|
|
15027
|
+
desc: ibiz.i18n.t("component.dataImport.startImport")
|
|
15028
|
+
});
|
|
14885
15029
|
const data = new FormData();
|
|
14886
15030
|
data.append("file", file);
|
|
14887
15031
|
let url = "/".concat(appDataEntity.deapicodeName2, "/").concat(asyncImportUrl);
|
|
@@ -14915,12 +15059,49 @@ async function importData(file, appDataEntity, dataImport, context) {
|
|
|
14915
15059
|
const resPath = calcResPath(context, appDataEntity);
|
|
14916
15060
|
url = resPath + url;
|
|
14917
15061
|
}
|
|
14918
|
-
const
|
|
14919
|
-
|
|
14920
|
-
|
|
14921
|
-
|
|
14922
|
-
|
|
14923
|
-
|
|
15062
|
+
const result = {
|
|
15063
|
+
isAsync: false
|
|
15064
|
+
};
|
|
15065
|
+
try {
|
|
15066
|
+
const res = await ibiz.net.request(url, {
|
|
15067
|
+
method: "post",
|
|
15068
|
+
data,
|
|
15069
|
+
headers: { "Content-Type": "multipart/form-data" }
|
|
15070
|
+
});
|
|
15071
|
+
ibiz.mc.command.send(
|
|
15072
|
+
{ srfdecodename: appDataEntity.codeName },
|
|
15073
|
+
"OBJECTCREATED",
|
|
15074
|
+
"DATAIMPORT"
|
|
15075
|
+
);
|
|
15076
|
+
Object.assign(result, res.data);
|
|
15077
|
+
} catch (error) {
|
|
15078
|
+
if (error instanceof Error) {
|
|
15079
|
+
result.errorMessage = error.message;
|
|
15080
|
+
}
|
|
15081
|
+
}
|
|
15082
|
+
return result;
|
|
15083
|
+
}
|
|
15084
|
+
async function importData2(opts) {
|
|
15085
|
+
const result = {
|
|
15086
|
+
isAsync: ibiz.env.enableMqtt
|
|
15087
|
+
};
|
|
15088
|
+
if (ibiz.env.enableMqtt) {
|
|
15089
|
+
asyncImportData(
|
|
15090
|
+
opts.selectedFile,
|
|
15091
|
+
opts.appDataEntity,
|
|
15092
|
+
opts.dataImport,
|
|
15093
|
+
opts.context
|
|
15094
|
+
);
|
|
15095
|
+
} else {
|
|
15096
|
+
const temp = await importData(
|
|
15097
|
+
opts.selectedFile,
|
|
15098
|
+
opts.appDataEntity,
|
|
15099
|
+
opts.dataImport,
|
|
15100
|
+
opts.context
|
|
15101
|
+
);
|
|
15102
|
+
Object.assign(result, temp);
|
|
15103
|
+
}
|
|
15104
|
+
return result;
|
|
14924
15105
|
}
|
|
14925
15106
|
async function exportData(header, data, fileName) {
|
|
14926
15107
|
if (!ibiz.util.getExcelUtil) {
|
|
@@ -14946,6 +15127,110 @@ async function exportData(header, data, fileName) {
|
|
|
14946
15127
|
return { ok: false };
|
|
14947
15128
|
}
|
|
14948
15129
|
}
|
|
15130
|
+
async function getDataImportModels(opts) {
|
|
15131
|
+
var _a;
|
|
15132
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(
|
|
15133
|
+
opts.appDataEntityId,
|
|
15134
|
+
opts.appId
|
|
15135
|
+
);
|
|
15136
|
+
const deDataImport = (_a = appDataEntity.appDEDataImports) == null ? void 0 : _a.find(
|
|
15137
|
+
(item) => item.id === opts.deDataImportId
|
|
15138
|
+
);
|
|
15139
|
+
if (!deDataImport) {
|
|
15140
|
+
throw new RuntimeError32("\u6CA1\u6709\u627E\u5230\u5BF9\u5E94\u7684\u5BFC\u5165\u6570\u636E\u6A21\u578B");
|
|
15141
|
+
}
|
|
15142
|
+
return { deDataImport, appDataEntity };
|
|
15143
|
+
}
|
|
15144
|
+
async function openDataImport(opts) {
|
|
15145
|
+
const { deDataImportId, appDataEntityId, context, params } = opts;
|
|
15146
|
+
const viewId = opts.dataImportViewId || "AppDataUploadView";
|
|
15147
|
+
let view = null;
|
|
15148
|
+
try {
|
|
15149
|
+
view = await ibiz.hub.config.view.get(viewId);
|
|
15150
|
+
} catch (error) {
|
|
15151
|
+
if (opts.dataImportViewId) {
|
|
15152
|
+
throw error;
|
|
15153
|
+
}
|
|
15154
|
+
}
|
|
15155
|
+
if (view) {
|
|
15156
|
+
context.srfappdataentityid = appDataEntityId;
|
|
15157
|
+
context.srfdedataimportid = deDataImportId;
|
|
15158
|
+
return ibiz.commands.execute(
|
|
15159
|
+
OpenAppViewCommand.TAG,
|
|
15160
|
+
view.id,
|
|
15161
|
+
context,
|
|
15162
|
+
params,
|
|
15163
|
+
{ openMode: "POPUPMODAL" }
|
|
15164
|
+
);
|
|
15165
|
+
}
|
|
15166
|
+
const { deDataImport, appDataEntity } = await getDataImportModels({
|
|
15167
|
+
deDataImportId,
|
|
15168
|
+
appDataEntityId,
|
|
15169
|
+
appId: context.srfappid
|
|
15170
|
+
});
|
|
15171
|
+
const importComponentName = deDataImport.enableCustomized ? "DataImport2" : "DataImport";
|
|
15172
|
+
const modal = ibiz.overlay.createModal(
|
|
15173
|
+
importComponentName,
|
|
15174
|
+
{
|
|
15175
|
+
dismiss: () => modal.dismiss(),
|
|
15176
|
+
dataImport: deDataImport,
|
|
15177
|
+
appDataEntity,
|
|
15178
|
+
context,
|
|
15179
|
+
params
|
|
15180
|
+
},
|
|
15181
|
+
{
|
|
15182
|
+
width: "auto",
|
|
15183
|
+
placement: "center"
|
|
15184
|
+
}
|
|
15185
|
+
);
|
|
15186
|
+
modal.present();
|
|
15187
|
+
await modal.onWillDismiss();
|
|
15188
|
+
}
|
|
15189
|
+
async function downloadImportTemplate(appDataEntity, dataImport) {
|
|
15190
|
+
var _a;
|
|
15191
|
+
let templateUrl = "".concat(appDataEntity.codeName2.toLowerCase(), "/importtemplate");
|
|
15192
|
+
if (dataImport == null ? void 0 : dataImport.codeName) {
|
|
15193
|
+
templateUrl += "?srfimporttag=".concat(dataImport.codeName);
|
|
15194
|
+
}
|
|
15195
|
+
const res = await ibiz.net.request(templateUrl, {
|
|
15196
|
+
responseType: "blob"
|
|
15197
|
+
});
|
|
15198
|
+
if (res.status === 200) {
|
|
15199
|
+
let fileName = ((_a = res.headers["content-disposition"].split(";").find((str) => str.indexOf("filename=") !== -1)) == null ? void 0 : _a.slice(9)) || "";
|
|
15200
|
+
fileName = decodeURIComponent(fileName);
|
|
15201
|
+
const blob = new Blob([res.data], {
|
|
15202
|
+
type: "application/vnd.ms-excel"
|
|
15203
|
+
});
|
|
15204
|
+
const elink = document.createElement("a");
|
|
15205
|
+
elink.download = fileName;
|
|
15206
|
+
elink.style.display = "none";
|
|
15207
|
+
elink.href = URL.createObjectURL(blob);
|
|
15208
|
+
document.body.appendChild(elink);
|
|
15209
|
+
elink.click();
|
|
15210
|
+
URL.revokeObjectURL(elink.href);
|
|
15211
|
+
document.body.removeChild(elink);
|
|
15212
|
+
}
|
|
15213
|
+
}
|
|
15214
|
+
async function selectAndImport(opts) {
|
|
15215
|
+
return new Promise((resolve) => {
|
|
15216
|
+
selectFile({
|
|
15217
|
+
accept: ".xlsx, .xls",
|
|
15218
|
+
multiple: false,
|
|
15219
|
+
onSelected: async (files) => {
|
|
15220
|
+
const result = await importData2({
|
|
15221
|
+
selectedFile: files[0],
|
|
15222
|
+
appDataEntity: opts.appDataEntity,
|
|
15223
|
+
dataImport: opts.dataImport,
|
|
15224
|
+
context: opts.context
|
|
15225
|
+
});
|
|
15226
|
+
resolve(result);
|
|
15227
|
+
},
|
|
15228
|
+
onCancel: () => {
|
|
15229
|
+
resolve({ cancel: true });
|
|
15230
|
+
}
|
|
15231
|
+
});
|
|
15232
|
+
});
|
|
15233
|
+
}
|
|
14949
15234
|
|
|
14950
15235
|
// src/controller/utils/jsonschema/entity.ts
|
|
14951
15236
|
async function getEntitySchema(entityId, context) {
|
|
@@ -14970,7 +15255,6 @@ var BaseController = class {
|
|
|
14970
15255
|
*/
|
|
14971
15256
|
constructor(model, context, params, ctx) {
|
|
14972
15257
|
this.model = model;
|
|
14973
|
-
this.context = context;
|
|
14974
15258
|
this.params = params;
|
|
14975
15259
|
this.ctx = ctx;
|
|
14976
15260
|
this.id = createUUID9();
|
|
@@ -15006,6 +15290,7 @@ var BaseController = class {
|
|
|
15006
15290
|
*/
|
|
15007
15291
|
this.childNames = [];
|
|
15008
15292
|
this.name = model.name || model.id;
|
|
15293
|
+
this.state.context = context;
|
|
15009
15294
|
this.preprocessModel(model);
|
|
15010
15295
|
this.initState();
|
|
15011
15296
|
this.convertMultipleLanguages();
|
|
@@ -15020,6 +15305,17 @@ var BaseController = class {
|
|
|
15020
15305
|
get _evt() {
|
|
15021
15306
|
return this.evt;
|
|
15022
15307
|
}
|
|
15308
|
+
/**
|
|
15309
|
+
* 上下文对象
|
|
15310
|
+
*
|
|
15311
|
+
* @author tony001
|
|
15312
|
+
* @date 2024-04-16 16:04:30
|
|
15313
|
+
* @readonly
|
|
15314
|
+
* @type {IContext}
|
|
15315
|
+
*/
|
|
15316
|
+
get context() {
|
|
15317
|
+
return this.state.context;
|
|
15318
|
+
}
|
|
15023
15319
|
/**
|
|
15024
15320
|
* 根据需求对model进行预处理
|
|
15025
15321
|
*
|
|
@@ -15635,6 +15931,9 @@ var ViewController = class extends BaseController {
|
|
|
15635
15931
|
context = convertNavData(navContexts, this.params, this.context);
|
|
15636
15932
|
}
|
|
15637
15933
|
Object.assign(this.context, context);
|
|
15934
|
+
if (!Object.prototype.hasOwnProperty.call(this.context, "srfreadonly")) {
|
|
15935
|
+
Object.assign(this.context, { srfreadonly: false });
|
|
15936
|
+
}
|
|
15638
15937
|
const navParams = this.model.appViewNavParams;
|
|
15639
15938
|
let params = {};
|
|
15640
15939
|
if (notNilEmpty7(navParams)) {
|
|
@@ -15772,6 +16071,50 @@ var ViewController = class extends BaseController {
|
|
|
15772
16071
|
}
|
|
15773
16072
|
};
|
|
15774
16073
|
|
|
16074
|
+
// src/controller/common/view/app-data-upload-view.controller.ts
|
|
16075
|
+
var AppDataUploadViewController = class extends ViewController {
|
|
16076
|
+
initState() {
|
|
16077
|
+
super.initState();
|
|
16078
|
+
}
|
|
16079
|
+
async onCreated() {
|
|
16080
|
+
await super.onCreated();
|
|
16081
|
+
const { srfappdataentityid, srfdedataimportid, srfappid } = this.context;
|
|
16082
|
+
const { appDataEntity, deDataImport } = await getDataImportModels({
|
|
16083
|
+
appDataEntityId: srfappdataentityid,
|
|
16084
|
+
deDataImportId: srfdedataimportid,
|
|
16085
|
+
appId: srfappid
|
|
16086
|
+
});
|
|
16087
|
+
this.state.appDataEntity = appDataEntity;
|
|
16088
|
+
this.state.deDataImport = deDataImport;
|
|
16089
|
+
}
|
|
16090
|
+
/**
|
|
16091
|
+
* 下载模版文件
|
|
16092
|
+
* @author lxm
|
|
16093
|
+
* @date 2024-04-16 02:15:29
|
|
16094
|
+
*/
|
|
16095
|
+
downloadTemplate() {
|
|
16096
|
+
const { appDataEntity, deDataImport } = this.state;
|
|
16097
|
+
downloadImportTemplate(appDataEntity, deDataImport);
|
|
16098
|
+
}
|
|
16099
|
+
/**
|
|
16100
|
+
* 选中导入文件并导入
|
|
16101
|
+
* @author lxm
|
|
16102
|
+
* @date 2024-04-16 03:54:19
|
|
16103
|
+
* @return {*}
|
|
16104
|
+
*/
|
|
16105
|
+
async selectAndImport() {
|
|
16106
|
+
const result = await selectAndImport({
|
|
16107
|
+
appDataEntity: this.state.appDataEntity,
|
|
16108
|
+
dataImport: this.state.deDataImport,
|
|
16109
|
+
context: this.context
|
|
16110
|
+
});
|
|
16111
|
+
if (result.isAsync === true) {
|
|
16112
|
+
this.closeView();
|
|
16113
|
+
}
|
|
16114
|
+
return result;
|
|
16115
|
+
}
|
|
16116
|
+
};
|
|
16117
|
+
|
|
15775
16118
|
// src/controller/common/view/mob-view.controller.ts
|
|
15776
16119
|
var MobViewController = class extends ViewController {
|
|
15777
16120
|
};
|
|
@@ -16474,7 +16817,8 @@ var ControlController = class extends BaseController {
|
|
|
16474
16817
|
// src/controller/common/control/md-control.controller.ts
|
|
16475
16818
|
import {
|
|
16476
16819
|
isElementSame,
|
|
16477
|
-
RuntimeError as RuntimeError36
|
|
16820
|
+
RuntimeError as RuntimeError36,
|
|
16821
|
+
RuntimeModelError as RuntimeModelError26
|
|
16478
16822
|
} from "@ibiz-template/core";
|
|
16479
16823
|
import { isNil as isNil24 } from "ramda";
|
|
16480
16824
|
var MDControlController = class extends ControlController {
|
|
@@ -16886,38 +17230,16 @@ var MDControlController = class extends ControlController {
|
|
|
16886
17230
|
* @returns {*} {Promise<void>}
|
|
16887
17231
|
*/
|
|
16888
17232
|
async importData() {
|
|
16889
|
-
var _a;
|
|
16890
17233
|
const { appDataEntityId, dedataImportId } = this.model;
|
|
16891
|
-
|
|
16892
|
-
|
|
16893
|
-
this.model.appId
|
|
16894
|
-
);
|
|
16895
|
-
const dataImport = (_a = appDataEntity.appDEDataImports) == null ? void 0 : _a.find(
|
|
16896
|
-
(importItem) => importItem.id === dedataImportId
|
|
16897
|
-
);
|
|
16898
|
-
if (!dataImport) {
|
|
16899
|
-
throw new RuntimeError36("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
17234
|
+
if (!appDataEntityId || !dedataImportId) {
|
|
17235
|
+
throw new RuntimeModelError26(this.model, "\u6CA1\u6709\u914D\u7F6E\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
16900
17236
|
}
|
|
16901
|
-
|
|
16902
|
-
|
|
16903
|
-
|
|
16904
|
-
|
|
16905
|
-
|
|
16906
|
-
|
|
16907
|
-
{
|
|
16908
|
-
dismiss: () => modal.dismiss(),
|
|
16909
|
-
dataImport,
|
|
16910
|
-
appDataEntity,
|
|
16911
|
-
context: this.context,
|
|
16912
|
-
params: this.params
|
|
16913
|
-
},
|
|
16914
|
-
{
|
|
16915
|
-
width: "auto",
|
|
16916
|
-
placement: "center"
|
|
16917
|
-
}
|
|
16918
|
-
);
|
|
16919
|
-
modal.present();
|
|
16920
|
-
await modal.onWillDismiss();
|
|
17237
|
+
await openDataImport({
|
|
17238
|
+
appDataEntityId,
|
|
17239
|
+
deDataImportId: dedataImportId,
|
|
17240
|
+
context: this.context,
|
|
17241
|
+
params: this.params
|
|
17242
|
+
});
|
|
16921
17243
|
}
|
|
16922
17244
|
/**
|
|
16923
17245
|
* 数据导出
|
|
@@ -16975,7 +17297,7 @@ var MDControlController = class extends ControlController {
|
|
|
16975
17297
|
import {
|
|
16976
17298
|
findRecursiveChild,
|
|
16977
17299
|
RuntimeError as RuntimeError37,
|
|
16978
|
-
RuntimeModelError as
|
|
17300
|
+
RuntimeModelError as RuntimeModelError27
|
|
16979
17301
|
} from "@ibiz-template/core";
|
|
16980
17302
|
var AppMenuController = class extends ControlController {
|
|
16981
17303
|
constructor(model, context, params, ctx) {
|
|
@@ -17054,7 +17376,7 @@ var AppMenuController = class extends ControlController {
|
|
|
17054
17376
|
return provider.onClick(menuItem, event, this);
|
|
17055
17377
|
}
|
|
17056
17378
|
if (!menuItem.appFuncId) {
|
|
17057
|
-
throw new
|
|
17379
|
+
throw new RuntimeModelError27(menuItem, "\u6CA1\u6709\u914D\u7F6E\u5E94\u7528\u529F\u80FD");
|
|
17058
17380
|
}
|
|
17059
17381
|
const tempContext = this.context.clone();
|
|
17060
17382
|
tempContext.srfappid = menuItem.appId || ibiz.env.appId;
|
|
@@ -17174,7 +17496,7 @@ var AppMenuController = class extends ControlController {
|
|
|
17174
17496
|
import {
|
|
17175
17497
|
findRecursiveChild as findRecursiveChild2,
|
|
17176
17498
|
RuntimeError as RuntimeError38,
|
|
17177
|
-
RuntimeModelError as
|
|
17499
|
+
RuntimeModelError as RuntimeModelError28
|
|
17178
17500
|
} from "@ibiz-template/core";
|
|
17179
17501
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
17180
17502
|
async onClickMenuItem(id, event) {
|
|
@@ -17190,7 +17512,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
17190
17512
|
event
|
|
17191
17513
|
});
|
|
17192
17514
|
if (!menuItem.appFuncId) {
|
|
17193
|
-
throw new
|
|
17515
|
+
throw new RuntimeModelError28(menuItem, "\u6CA1\u6709\u914D\u7F6E\u5E94\u7528\u529F\u80FD");
|
|
17194
17516
|
}
|
|
17195
17517
|
const tempContext = this.context.clone();
|
|
17196
17518
|
if (this.routeDepth === 1) {
|
|
@@ -17209,7 +17531,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
17209
17531
|
|
|
17210
17532
|
// src/controller/control/calendar/calendar.controller.ts
|
|
17211
17533
|
import dayjs3 from "dayjs";
|
|
17212
|
-
import { RuntimeModelError as
|
|
17534
|
+
import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
|
|
17213
17535
|
|
|
17214
17536
|
// src/controller/control/calendar/calendar.service.ts
|
|
17215
17537
|
import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
|
|
@@ -17389,7 +17711,7 @@ var CalendarController = class extends MDControlController {
|
|
|
17389
17711
|
}
|
|
17390
17712
|
));
|
|
17391
17713
|
if (result === -1) {
|
|
17392
|
-
throw new
|
|
17714
|
+
throw new RuntimeModelError29(
|
|
17393
17715
|
this.model,
|
|
17394
17716
|
"\u7F3A\u5C11".concat(item.itemType.toLowerCase(), "_opendata\u7684\u89C6\u56FE\u903B\u8F91")
|
|
17395
17717
|
);
|
|
@@ -17560,10 +17882,10 @@ import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
|
17560
17882
|
import { RuntimeError as RuntimeError40 } from "@ibiz-template/core";
|
|
17561
17883
|
|
|
17562
17884
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
17563
|
-
import { RuntimeModelError as
|
|
17885
|
+
import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
|
|
17564
17886
|
|
|
17565
17887
|
// src/controller/control/chart/generator/base-series-generator.ts
|
|
17566
|
-
import { plus, RuntimeModelError as
|
|
17888
|
+
import { plus, RuntimeModelError as RuntimeModelError30, toNumberOrNil } from "@ibiz-template/core";
|
|
17567
17889
|
import dayjs4 from "dayjs";
|
|
17568
17890
|
import minMax2 from "dayjs/plugin/minMax";
|
|
17569
17891
|
import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
@@ -17613,10 +17935,10 @@ var BaseSeriesGenerator = class {
|
|
|
17613
17935
|
this.chartGenerator = chartGenerator;
|
|
17614
17936
|
const { chartSeriesEncode, caption, id, userParam } = model;
|
|
17615
17937
|
if (!model.catalogField) {
|
|
17616
|
-
throw new
|
|
17938
|
+
throw new RuntimeModelError30(model, "\u7F3A\u5C11\u5206\u7C7B\u5C5E\u6027\u914D\u7F6E");
|
|
17617
17939
|
}
|
|
17618
17940
|
if (!model.valueField) {
|
|
17619
|
-
throw new
|
|
17941
|
+
throw new RuntimeModelError30(model, "\u7F3A\u5C11\u503C\u5C5E\u6027\u914D\u7F6E");
|
|
17620
17942
|
}
|
|
17621
17943
|
this.catalogField = chartGenerator.getFieldKey(model.catalogField);
|
|
17622
17944
|
this.valueField = chartGenerator.getFieldKey(model.valueField);
|
|
@@ -18040,10 +18362,10 @@ var BaseSeriesGenerator = class {
|
|
|
18040
18362
|
var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
18041
18363
|
calcStaticOptions() {
|
|
18042
18364
|
if (this.xAxisIndex === void 0) {
|
|
18043
|
-
throw new
|
|
18365
|
+
throw new RuntimeModelError31(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
|
|
18044
18366
|
}
|
|
18045
18367
|
if (this.yAxisIndex === void 0) {
|
|
18046
|
-
throw new
|
|
18368
|
+
throw new RuntimeModelError31(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
|
|
18047
18369
|
}
|
|
18048
18370
|
const options = super.calcStaticOptions();
|
|
18049
18371
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -18059,14 +18381,14 @@ var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
18059
18381
|
};
|
|
18060
18382
|
|
|
18061
18383
|
// src/controller/control/chart/generator/bar-series-generator.ts
|
|
18062
|
-
import { RuntimeModelError as
|
|
18384
|
+
import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
18063
18385
|
var BarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
18064
18386
|
calcStaticOptions() {
|
|
18065
18387
|
if (this.xAxisIndex === void 0) {
|
|
18066
|
-
throw new
|
|
18388
|
+
throw new RuntimeModelError32(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
|
|
18067
18389
|
}
|
|
18068
18390
|
if (this.yAxisIndex === void 0) {
|
|
18069
|
-
throw new
|
|
18391
|
+
throw new RuntimeModelError32(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
|
|
18070
18392
|
}
|
|
18071
18393
|
const options = super.calcStaticOptions();
|
|
18072
18394
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -18119,14 +18441,14 @@ var PieSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
18119
18441
|
};
|
|
18120
18442
|
|
|
18121
18443
|
// src/controller/control/chart/generator/scatter-series-generator.ts
|
|
18122
|
-
import { RuntimeModelError as
|
|
18444
|
+
import { RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
|
|
18123
18445
|
var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
|
|
18124
18446
|
calcStaticOptions() {
|
|
18125
18447
|
if (this.xAxisIndex === void 0) {
|
|
18126
|
-
throw new
|
|
18448
|
+
throw new RuntimeModelError33(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
|
|
18127
18449
|
}
|
|
18128
18450
|
if (this.yAxisIndex === void 0) {
|
|
18129
|
-
throw new
|
|
18451
|
+
throw new RuntimeModelError33(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
|
|
18130
18452
|
}
|
|
18131
18453
|
const options = super.calcStaticOptions();
|
|
18132
18454
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -18903,17 +19225,17 @@ var CaptionBarController = class extends ControlController {
|
|
|
18903
19225
|
import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError50 } from "@ibiz-template/core";
|
|
18904
19226
|
|
|
18905
19227
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
18906
|
-
import { RuntimeModelError as
|
|
19228
|
+
import { RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
|
|
18907
19229
|
import { isArray as isArray8 } from "qx-util";
|
|
18908
19230
|
|
|
18909
19231
|
// src/ui-action/provider/ui-action-provider-base.ts
|
|
18910
|
-
import { RuntimeModelError as
|
|
19232
|
+
import { RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
18911
19233
|
|
|
18912
19234
|
// src/ui-logic/index.ts
|
|
18913
19235
|
import { RuntimeError as RuntimeError47 } from "@ibiz-template/core";
|
|
18914
19236
|
|
|
18915
19237
|
// src/ui-logic/ui-logic.ts
|
|
18916
|
-
import { ModelError as ModelError25, RuntimeModelError as
|
|
19238
|
+
import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
18917
19239
|
|
|
18918
19240
|
// src/ui-logic/ui-logic-context.ts
|
|
18919
19241
|
var UILogicContext = class {
|
|
@@ -19066,20 +19388,20 @@ var UILogicContext = class {
|
|
|
19066
19388
|
};
|
|
19067
19389
|
|
|
19068
19390
|
// src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts
|
|
19069
|
-
import { RuntimeModelError as
|
|
19391
|
+
import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
|
|
19070
19392
|
|
|
19071
19393
|
// src/ui-logic/ui-logic-link/ui-logic-link.ts
|
|
19072
19394
|
import { ModelError as ModelError20 } from "@ibiz-template/core";
|
|
19073
19395
|
|
|
19074
19396
|
// src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
|
|
19075
|
-
import { RuntimeModelError as
|
|
19397
|
+
import { RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
|
|
19076
19398
|
|
|
19077
19399
|
// src/ui-logic/ui-logic-link/ui-logic-link-cond/ui-logic-link-cond.ts
|
|
19078
19400
|
var UILogicLinkCond = class {
|
|
19079
19401
|
};
|
|
19080
19402
|
|
|
19081
19403
|
// src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
|
|
19082
|
-
import { ModelError as ModelError19, RuntimeModelError as
|
|
19404
|
+
import { ModelError as ModelError19, RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
|
|
19083
19405
|
|
|
19084
19406
|
// src/ui-logic/utils/handle-src-val.ts
|
|
19085
19407
|
import { ModelError as ModelError18 } from "@ibiz-template/core";
|
|
@@ -19177,7 +19499,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
19177
19499
|
switch (this.type) {
|
|
19178
19500
|
case "ENTITYFIELD": {
|
|
19179
19501
|
if (!this.value) {
|
|
19180
|
-
throw new
|
|
19502
|
+
throw new RuntimeModelError34(
|
|
19181
19503
|
this.model,
|
|
19182
19504
|
"\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
|
|
19183
19505
|
);
|
|
@@ -19189,7 +19511,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
19189
19511
|
}
|
|
19190
19512
|
case "SRCENTITYFIELD": {
|
|
19191
19513
|
if (!this.value) {
|
|
19192
|
-
throw new
|
|
19514
|
+
throw new RuntimeModelError34(
|
|
19193
19515
|
this.model,
|
|
19194
19516
|
"\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6E90\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
|
|
19195
19517
|
);
|
|
@@ -19268,7 +19590,7 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
|
|
|
19268
19590
|
test(ctx, context, data) {
|
|
19269
19591
|
let bol = true;
|
|
19270
19592
|
if (this.conds.length === 0) {
|
|
19271
|
-
throw new
|
|
19593
|
+
throw new RuntimeModelError35(this.model, "\u754C\u9762\u8FDE\u63A5\u6761\u4EF6\u903B\u8F91\u7EC4\u672A\u914D\u7F6E\u903B\u8F91\u9879");
|
|
19272
19594
|
}
|
|
19273
19595
|
for (let i = 0; i < this.conds.length; i++) {
|
|
19274
19596
|
const cond = this.conds[i];
|
|
@@ -19399,10 +19721,10 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
19399
19721
|
retDEUILogicParamId
|
|
19400
19722
|
} = this.model;
|
|
19401
19723
|
if (!dstAppDataEntityId) {
|
|
19402
|
-
throw new
|
|
19724
|
+
throw new RuntimeModelError36(this.model, "\u672A\u6307\u5B9A\u5E94\u7528\u5B9E\u4F53");
|
|
19403
19725
|
}
|
|
19404
19726
|
if (!dstAppDEActionId) {
|
|
19405
|
-
throw new
|
|
19727
|
+
throw new RuntimeModelError36(this.model, "\u672A\u6307\u5B9A\u5B9E\u4F53\u884C\u4E3A");
|
|
19406
19728
|
}
|
|
19407
19729
|
const requestData = ctx.params[dstDEUILogicParamId];
|
|
19408
19730
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -19425,13 +19747,13 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
19425
19747
|
};
|
|
19426
19748
|
|
|
19427
19749
|
// src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts
|
|
19428
|
-
import { RuntimeModelError as
|
|
19750
|
+
import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
|
|
19429
19751
|
var DEUIActionNode = class extends UILogicNode {
|
|
19430
19752
|
async exec(ctx) {
|
|
19431
19753
|
const { dstAppDEUIActionId, dstDEUILogicParamId, dstAppDataEntityId } = this.model;
|
|
19432
19754
|
const { data, parameters } = ctx;
|
|
19433
19755
|
if (!dstAppDEUIActionId) {
|
|
19434
|
-
throw new
|
|
19756
|
+
throw new RuntimeModelError37(this.model, "\u672A\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
|
|
19435
19757
|
}
|
|
19436
19758
|
let actionData = [data];
|
|
19437
19759
|
if (dstDEUILogicParamId) {
|
|
@@ -19680,20 +20002,20 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
19680
20002
|
};
|
|
19681
20003
|
|
|
19682
20004
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
19683
|
-
import { RuntimeError as RuntimeError43, RuntimeModelError as
|
|
20005
|
+
import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
|
|
19684
20006
|
import { isFunction } from "lodash-es";
|
|
19685
20007
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
19686
20008
|
async exec(ctx) {
|
|
19687
20009
|
ctx.isEndNode = true;
|
|
19688
20010
|
const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
|
|
19689
20011
|
if (!invokeCtrlId) {
|
|
19690
|
-
throw new
|
|
20012
|
+
throw new RuntimeModelError38(this.model, "\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u5BF9\u8C61");
|
|
19691
20013
|
}
|
|
19692
20014
|
if (!invokeParamId) {
|
|
19693
|
-
throw new
|
|
20015
|
+
throw new RuntimeModelError38(this.model, "\u6CA1\u6709\u914D\u7F6E\u64CD\u4F5C\u53C2\u6570");
|
|
19694
20016
|
}
|
|
19695
20017
|
if (!invokeMethod) {
|
|
19696
|
-
throw new
|
|
20018
|
+
throw new RuntimeModelError38(this.model, "\u6CA1\u6709\u914D\u7F6E\u8C03\u7528\u65B9\u6CD5");
|
|
19697
20019
|
}
|
|
19698
20020
|
const invokeParam = ctx.params[invokeParamId];
|
|
19699
20021
|
if (!invokeParam) {
|
|
@@ -19715,12 +20037,12 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
19715
20037
|
};
|
|
19716
20038
|
|
|
19717
20039
|
// src/ui-logic/ui-logic-node/bind-param-node/bind-param-node.ts
|
|
19718
|
-
import { RuntimeModelError as
|
|
20040
|
+
import { RuntimeModelError as RuntimeModelError39 } from "@ibiz-template/core";
|
|
19719
20041
|
var BindParamNode2 = class extends UILogicNode {
|
|
19720
20042
|
async exec(ctx) {
|
|
19721
20043
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
19722
20044
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
19723
|
-
throw new
|
|
20045
|
+
throw new RuntimeModelError39(
|
|
19724
20046
|
this.model,
|
|
19725
20047
|
"\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
|
|
19726
20048
|
);
|
|
@@ -19736,7 +20058,7 @@ var BindParamNode2 = class extends UILogicNode {
|
|
|
19736
20058
|
};
|
|
19737
20059
|
|
|
19738
20060
|
// src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts
|
|
19739
|
-
import { ModelError as ModelError23, RuntimeModelError as
|
|
20061
|
+
import { ModelError as ModelError23, RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
|
|
19740
20062
|
var MsgBoxNode = class extends UILogicNode {
|
|
19741
20063
|
constructor() {
|
|
19742
20064
|
super(...arguments);
|
|
@@ -19750,10 +20072,10 @@ var MsgBoxNode = class extends UILogicNode {
|
|
|
19750
20072
|
async exec(ctx) {
|
|
19751
20073
|
const { msgBoxType, buttonsType, msgBoxParamId } = this.model;
|
|
19752
20074
|
if (!msgBoxType) {
|
|
19753
|
-
throw new
|
|
20075
|
+
throw new RuntimeModelError40(this.model, "\u7F3A\u5C11\u6D88\u606F\u7C7B\u578B\u7684\u914D\u7F6E");
|
|
19754
20076
|
}
|
|
19755
20077
|
if (!buttonsType) {
|
|
19756
|
-
throw new
|
|
20078
|
+
throw new RuntimeModelError40(this.model, "\u7F3A\u5C11\u6309\u94AE\u7C7B\u578B\u7684\u914D\u7F6E");
|
|
19757
20079
|
}
|
|
19758
20080
|
let { title, message } = this.model;
|
|
19759
20081
|
if (msgBoxParamId) {
|
|
@@ -19818,12 +20140,12 @@ var PFPluginNode = class extends UILogicNode {
|
|
|
19818
20140
|
};
|
|
19819
20141
|
|
|
19820
20142
|
// src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts
|
|
19821
|
-
import { RuntimeModelError as
|
|
20143
|
+
import { RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
|
|
19822
20144
|
var DebugParamNode = class extends UILogicNode {
|
|
19823
20145
|
async exec(ctx) {
|
|
19824
20146
|
const { dstDEUILogicParamId, name } = this.model;
|
|
19825
20147
|
if (!dstDEUILogicParamId) {
|
|
19826
|
-
throw new
|
|
20148
|
+
throw new RuntimeModelError41(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
|
|
19827
20149
|
}
|
|
19828
20150
|
const param = ctx.params[dstDEUILogicParamId];
|
|
19829
20151
|
ibiz.log.info("\u903B\u8F91\u8282\u70B9".concat(name, "\u64CD\u4F5C\u53C2\u6570\u503C:"), param);
|
|
@@ -19831,12 +20153,12 @@ var DebugParamNode = class extends UILogicNode {
|
|
|
19831
20153
|
};
|
|
19832
20154
|
|
|
19833
20155
|
// src/ui-logic/ui-logic-node/reset-param-node/reset-param-node.ts
|
|
19834
|
-
import { RuntimeModelError as
|
|
20156
|
+
import { RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
19835
20157
|
var ResetParamNode2 = class extends UILogicNode {
|
|
19836
20158
|
async exec(ctx) {
|
|
19837
20159
|
const { dstDEUILogicParamId } = this.model;
|
|
19838
20160
|
if (!dstDEUILogicParamId) {
|
|
19839
|
-
throw new
|
|
20161
|
+
throw new RuntimeModelError42(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
|
|
19840
20162
|
}
|
|
19841
20163
|
ctx.resetParam(dstDEUILogicParamId);
|
|
19842
20164
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
@@ -19847,13 +20169,13 @@ var ResetParamNode2 = class extends UILogicNode {
|
|
|
19847
20169
|
};
|
|
19848
20170
|
|
|
19849
20171
|
// src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts
|
|
19850
|
-
import { RuntimeModelError as
|
|
20172
|
+
import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
19851
20173
|
import { clone as clone24 } from "ramda";
|
|
19852
20174
|
var CopyParamNode2 = class extends UILogicNode {
|
|
19853
20175
|
async exec(ctx) {
|
|
19854
20176
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
19855
20177
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
19856
|
-
throw new
|
|
20178
|
+
throw new RuntimeModelError43(
|
|
19857
20179
|
this.model,
|
|
19858
20180
|
"\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
|
|
19859
20181
|
);
|
|
@@ -19869,7 +20191,7 @@ var CopyParamNode2 = class extends UILogicNode {
|
|
|
19869
20191
|
};
|
|
19870
20192
|
|
|
19871
20193
|
// src/ui-logic/ui-logic-node/append-param-node/append-param-node.ts
|
|
19872
|
-
import { RuntimeModelError as
|
|
20194
|
+
import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
|
|
19873
20195
|
var AppendParamNode2 = class extends UILogicNode {
|
|
19874
20196
|
async exec(ctx) {
|
|
19875
20197
|
const {
|
|
@@ -19880,7 +20202,7 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
19880
20202
|
srcSize
|
|
19881
20203
|
} = this.model;
|
|
19882
20204
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
19883
|
-
throw new
|
|
20205
|
+
throw new RuntimeModelError44(
|
|
19884
20206
|
this.model,
|
|
19885
20207
|
"\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
|
|
19886
20208
|
);
|
|
@@ -19905,12 +20227,12 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
19905
20227
|
};
|
|
19906
20228
|
|
|
19907
20229
|
// src/ui-logic/ui-logic-node/sort-param-node/sort-param-node.ts
|
|
19908
|
-
import { RuntimeModelError as
|
|
20230
|
+
import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
19909
20231
|
var SortParamNode2 = class extends UILogicNode {
|
|
19910
20232
|
async exec(ctx) {
|
|
19911
20233
|
const { dstDEUILogicParamId, dstSortDir, dstFieldName } = this.model;
|
|
19912
20234
|
if (!dstDEUILogicParamId || !dstFieldName) {
|
|
19913
|
-
throw new
|
|
20235
|
+
throw new RuntimeModelError45(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u76EE\u6807\u5C5E\u6027\u914D\u7F6E");
|
|
19914
20236
|
}
|
|
19915
20237
|
const key = dstFieldName;
|
|
19916
20238
|
const arr = ctx.params[dstDEUILogicParamId];
|
|
@@ -19926,12 +20248,12 @@ var SortParamNode2 = class extends UILogicNode {
|
|
|
19926
20248
|
};
|
|
19927
20249
|
|
|
19928
20250
|
// src/ui-logic/ui-logic-node/renew-param-node/renew-param-node.ts
|
|
19929
|
-
import { RuntimeModelError as
|
|
20251
|
+
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
19930
20252
|
var RenewParamNode2 = class extends UILogicNode {
|
|
19931
20253
|
async exec(ctx) {
|
|
19932
20254
|
const { dstDEUILogicParamId } = this.model;
|
|
19933
20255
|
if (!dstDEUILogicParamId) {
|
|
19934
|
-
throw new
|
|
20256
|
+
throw new RuntimeModelError46(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
|
|
19935
20257
|
}
|
|
19936
20258
|
ctx.renewParam(dstDEUILogicParamId);
|
|
19937
20259
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
@@ -19942,7 +20264,7 @@ var RenewParamNode2 = class extends UILogicNode {
|
|
|
19942
20264
|
};
|
|
19943
20265
|
|
|
19944
20266
|
// src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts
|
|
19945
|
-
import { RuntimeModelError as
|
|
20267
|
+
import { RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
|
|
19946
20268
|
var DataSetNode2 = class extends UILogicNode {
|
|
19947
20269
|
async exec(ctx) {
|
|
19948
20270
|
const {
|
|
@@ -19952,7 +20274,7 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
19952
20274
|
retDEUILogicParamId
|
|
19953
20275
|
} = this.model;
|
|
19954
20276
|
if (!dstDEUILogicParamId) {
|
|
19955
|
-
throw new
|
|
20277
|
+
throw new RuntimeModelError47(this.model, "\u7F3A\u5C11\u914D\u7F6E\u8FC7\u6EE4\u53C2\u6570");
|
|
19956
20278
|
}
|
|
19957
20279
|
const queryParams = ctx.params[dstDEUILogicParamId];
|
|
19958
20280
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -19986,19 +20308,19 @@ var ThrowExceptionNode2 = class extends UILogicNode {
|
|
|
19986
20308
|
};
|
|
19987
20309
|
|
|
19988
20310
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
19989
|
-
import { RuntimeError as RuntimeError45, RuntimeModelError as
|
|
20311
|
+
import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
|
|
19990
20312
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
19991
20313
|
async exec(ctx) {
|
|
19992
20314
|
ctx.isEndNode = true;
|
|
19993
20315
|
const { eventName, eventParamId, fireCtrlId } = this.model;
|
|
19994
20316
|
if (!fireCtrlId) {
|
|
19995
|
-
throw new
|
|
20317
|
+
throw new RuntimeModelError48(this.model, "\u6CA1\u6709\u914D\u7F6E\u89E6\u53D1\u5BF9\u8C61");
|
|
19996
20318
|
}
|
|
19997
20319
|
if (!eventName) {
|
|
19998
|
-
throw new
|
|
20320
|
+
throw new RuntimeModelError48(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u540D\u79F0\u53C2\u6570");
|
|
19999
20321
|
}
|
|
20000
20322
|
if (!eventParamId) {
|
|
20001
|
-
throw new
|
|
20323
|
+
throw new RuntimeModelError48(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u53C2\u6570");
|
|
20002
20324
|
}
|
|
20003
20325
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
20004
20326
|
if (!invokeCtrl) {
|
|
@@ -20017,7 +20339,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
20017
20339
|
};
|
|
20018
20340
|
|
|
20019
20341
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
20020
|
-
import { RuntimeError as RuntimeError46, RuntimeModelError as
|
|
20342
|
+
import { RuntimeError as RuntimeError46, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
20021
20343
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
20022
20344
|
async exec(ctx) {
|
|
20023
20345
|
const {
|
|
@@ -20027,13 +20349,13 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
20027
20349
|
retDEUILogicParamId
|
|
20028
20350
|
} = this.model;
|
|
20029
20351
|
if (!dstAppDataEntityId) {
|
|
20030
|
-
throw new
|
|
20352
|
+
throw new RuntimeModelError49(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
|
|
20031
20353
|
}
|
|
20032
20354
|
if (!dstAppDELogicId) {
|
|
20033
|
-
throw new
|
|
20355
|
+
throw new RuntimeModelError49(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u903B\u8F91");
|
|
20034
20356
|
}
|
|
20035
20357
|
if (!dstDEUILogicParamId) {
|
|
20036
|
-
throw new
|
|
20358
|
+
throw new RuntimeModelError49(this.model, "\u6CA1\u6709\u914D\u7F6E\u4F20\u5165\u903B\u8F91\u53C2\u6570");
|
|
20037
20359
|
}
|
|
20038
20360
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
20039
20361
|
if (!dstParam) {
|
|
@@ -20227,7 +20549,7 @@ var UILogic = class {
|
|
|
20227
20549
|
this.params = /* @__PURE__ */ new Map();
|
|
20228
20550
|
var _a;
|
|
20229
20551
|
if (!((_a = model.deuilogicNodes) == null ? void 0 : _a.length)) {
|
|
20230
|
-
throw new
|
|
20552
|
+
throw new RuntimeModelError50(model, "\u754C\u9762\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
|
|
20231
20553
|
}
|
|
20232
20554
|
model.deuilogicNodes.forEach((node) => {
|
|
20233
20555
|
const { logicNodeType } = node;
|
|
@@ -20347,7 +20669,7 @@ var UILogic = class {
|
|
|
20347
20669
|
const start = this.nodes.get(startDEUILogicNodeId);
|
|
20348
20670
|
await this.deepExec(start, ctx);
|
|
20349
20671
|
} else {
|
|
20350
|
-
throw new
|
|
20672
|
+
throw new RuntimeModelError50(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
|
|
20351
20673
|
}
|
|
20352
20674
|
if (ctx.isEndNode) {
|
|
20353
20675
|
return ctx.result;
|
|
@@ -20529,7 +20851,7 @@ var UIActionProviderBase = class {
|
|
|
20529
20851
|
const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
|
|
20530
20852
|
if (uilogicAttachMode === "REPLACE") {
|
|
20531
20853
|
if (!appDEUILogicId) {
|
|
20532
|
-
throw new
|
|
20854
|
+
throw new RuntimeModelError51(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
20533
20855
|
}
|
|
20534
20856
|
await execUILogic(appDEUILogicId, appDataEntityId, args);
|
|
20535
20857
|
return result;
|
|
@@ -20544,7 +20866,7 @@ var UIActionProviderBase = class {
|
|
|
20544
20866
|
}
|
|
20545
20867
|
if (action.uilogicAttachMode === "AFTER") {
|
|
20546
20868
|
if (!appDEUILogicId) {
|
|
20547
|
-
throw new
|
|
20869
|
+
throw new RuntimeModelError51(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
20548
20870
|
}
|
|
20549
20871
|
await execUILogic(
|
|
20550
20872
|
appDEUILogicId,
|
|
@@ -20791,7 +21113,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
20791
21113
|
const entityName = action.appDataEntityId;
|
|
20792
21114
|
const methodName = action.appDEMethodId;
|
|
20793
21115
|
if (!entityName || !methodName) {
|
|
20794
|
-
throw new
|
|
21116
|
+
throw new RuntimeModelError52(action, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6216\u5B9E\u4F53\u884C\u4E3A");
|
|
20795
21117
|
}
|
|
20796
21118
|
const { resultContext, resultParams, resultData } = await this.handleParams(
|
|
20797
21119
|
action,
|
|
@@ -20917,7 +21239,7 @@ var SysUIActionProvider = class extends UIActionProviderBase {
|
|
|
20917
21239
|
// src/ui-action/provider/front-ui-action-provider.ts
|
|
20918
21240
|
import {
|
|
20919
21241
|
StringUtil,
|
|
20920
|
-
RuntimeModelError as
|
|
21242
|
+
RuntimeModelError as RuntimeModelError53,
|
|
20921
21243
|
ModelError as ModelError26,
|
|
20922
21244
|
RuntimeError as RuntimeError49
|
|
20923
21245
|
} from "@ibiz-template/core";
|
|
@@ -20936,7 +21258,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
20936
21258
|
case "WIZARD": {
|
|
20937
21259
|
const frontPSAppView = action.frontAppViewId;
|
|
20938
21260
|
if (!frontPSAppView) {
|
|
20939
|
-
throw new
|
|
21261
|
+
throw new RuntimeModelError53(action, "\u672A\u914D\u7F6E\u6253\u5F00\u89C6\u56FE");
|
|
20940
21262
|
}
|
|
20941
21263
|
const { resultContext, resultParams } = await this.handleParams(
|
|
20942
21264
|
action,
|
|
@@ -21004,7 +21326,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
21004
21326
|
);
|
|
21005
21327
|
return result || {};
|
|
21006
21328
|
}
|
|
21007
|
-
throw new
|
|
21329
|
+
throw new RuntimeModelError53(action, "\u81EA\u5B9A\u4E49\u7C7B\u578B\u7F3A\u5C11\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
|
|
21008
21330
|
}
|
|
21009
21331
|
/**
|
|
21010
21332
|
* 执行打印行为
|
|
@@ -21074,47 +21396,27 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
21074
21396
|
* @return {*}
|
|
21075
21397
|
*/
|
|
21076
21398
|
async executeDataImport(action, args) {
|
|
21077
|
-
var _a;
|
|
21078
21399
|
const { resultContext, resultParams } = await this.handleParams(
|
|
21079
21400
|
action,
|
|
21080
21401
|
args.context,
|
|
21081
21402
|
args.data,
|
|
21082
21403
|
args.params
|
|
21083
21404
|
);
|
|
21084
|
-
const
|
|
21085
|
-
|
|
21086
|
-
action
|
|
21087
|
-
);
|
|
21088
|
-
const appDEDataImport = (_a = appDataEntity.appDEDataImports) == null ? void 0 : _a.find(
|
|
21089
|
-
(dataImport) => dataImport.id === action.appDEDataImportId
|
|
21090
|
-
);
|
|
21091
|
-
let importName = "DataImport";
|
|
21092
|
-
if (appDEDataImport && appDEDataImport.enableCustomized) {
|
|
21093
|
-
importName = "DataImport2";
|
|
21094
|
-
}
|
|
21095
|
-
if (appDEDataImport) {
|
|
21096
|
-
const modal = ibiz.overlay.createModal(
|
|
21097
|
-
importName,
|
|
21098
|
-
{
|
|
21099
|
-
dismiss: () => modal.dismiss(),
|
|
21100
|
-
appDataEntity,
|
|
21101
|
-
dataImport: appDEDataImport,
|
|
21102
|
-
context: resultContext,
|
|
21103
|
-
params: resultParams
|
|
21104
|
-
},
|
|
21105
|
-
{
|
|
21106
|
-
width: "auto",
|
|
21107
|
-
placement: "center"
|
|
21108
|
-
}
|
|
21109
|
-
);
|
|
21110
|
-
modal.present();
|
|
21111
|
-
await modal.onWillDismiss();
|
|
21112
|
-
return {
|
|
21113
|
-
refresh: true,
|
|
21114
|
-
refreshMode: 1
|
|
21115
|
-
};
|
|
21405
|
+
const { appDataEntityId, appDEDataImportId, frontAppViewId } = action;
|
|
21406
|
+
if (!appDataEntityId || !appDEDataImportId) {
|
|
21407
|
+
throw new RuntimeModelError53(action, "\u6CA1\u6709\u914D\u7F6E\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
21116
21408
|
}
|
|
21117
|
-
|
|
21409
|
+
await openDataImport({
|
|
21410
|
+
appDataEntityId,
|
|
21411
|
+
deDataImportId: appDEDataImportId,
|
|
21412
|
+
dataImportViewId: frontAppViewId,
|
|
21413
|
+
context: resultContext,
|
|
21414
|
+
params: resultParams
|
|
21415
|
+
});
|
|
21416
|
+
return {
|
|
21417
|
+
refresh: true,
|
|
21418
|
+
refreshMode: 1
|
|
21419
|
+
};
|
|
21118
21420
|
}
|
|
21119
21421
|
/**
|
|
21120
21422
|
* 执行导出行为
|
|
@@ -21206,7 +21508,8 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
21206
21508
|
context: resultContext,
|
|
21207
21509
|
params: resultParams,
|
|
21208
21510
|
modelData: action.deeditForm,
|
|
21209
|
-
onSaveSuccess: () => {
|
|
21511
|
+
onSaveSuccess: (eventArgs) => {
|
|
21512
|
+
actionResult.data = [eventArgs.args];
|
|
21210
21513
|
if (overlay) {
|
|
21211
21514
|
overlay.dismiss();
|
|
21212
21515
|
}
|
|
@@ -21919,7 +22222,7 @@ var RawItemPortletController = class extends PortletPartController {
|
|
|
21919
22222
|
};
|
|
21920
22223
|
|
|
21921
22224
|
// src/controller/control/data-view/data-view.controller.ts
|
|
21922
|
-
import { RuntimeModelError as
|
|
22225
|
+
import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
|
|
21923
22226
|
import { isNil as isNil26 } from "ramda";
|
|
21924
22227
|
|
|
21925
22228
|
// src/controller/control/data-view/data-view.service.ts
|
|
@@ -22137,7 +22440,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
22137
22440
|
const optItemModel = this.getOptItemModel();
|
|
22138
22441
|
if (optItemModel) {
|
|
22139
22442
|
if (!optItemModel.deuiactionGroup) {
|
|
22140
|
-
throw new
|
|
22443
|
+
throw new RuntimeModelError54(this.model, "\u64CD\u4F5C\u9879\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
|
|
22141
22444
|
}
|
|
22142
22445
|
if (!((_a = optItemModel.deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
22143
22446
|
ibiz.log.debug("\u64CD\u4F5C\u9879\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
|
|
@@ -22190,7 +22493,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
22190
22493
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
22191
22494
|
if (enableGroup && groupMode) {
|
|
22192
22495
|
if (!groupAppDEFieldId) {
|
|
22193
|
-
throw new
|
|
22496
|
+
throw new RuntimeModelError54(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
|
|
22194
22497
|
}
|
|
22195
22498
|
if (groupMode === "AUTO") {
|
|
22196
22499
|
this.handleAutoGroup();
|
|
@@ -22257,7 +22560,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
22257
22560
|
async handleCodeListGroup() {
|
|
22258
22561
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
22259
22562
|
if (!groupCodeListId) {
|
|
22260
|
-
throw new
|
|
22563
|
+
throw new RuntimeModelError54(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
|
|
22261
22564
|
}
|
|
22262
22565
|
const { items } = this.state;
|
|
22263
22566
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -22363,7 +22666,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
22363
22666
|
caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
22364
22667
|
}
|
|
22365
22668
|
if (!item.appDEFieldId) {
|
|
22366
|
-
throw new
|
|
22669
|
+
throw new RuntimeModelError54(item, "\u542F\u7528\u6392\u5E8F\u7684\u9879\u5FC5\u987B\u5173\u8054\u5B9E\u4F53\u5C5E\u6027");
|
|
22367
22670
|
}
|
|
22368
22671
|
const tempItem = {
|
|
22369
22672
|
caption,
|
|
@@ -22381,10 +22684,10 @@ var DataViewControlController = class extends MDControlController {
|
|
|
22381
22684
|
};
|
|
22382
22685
|
|
|
22383
22686
|
// src/controller/control/exp-bar/calendar-exp-bar.controller.ts
|
|
22384
|
-
import { RuntimeModelError as
|
|
22687
|
+
import { RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
|
|
22385
22688
|
|
|
22386
22689
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
22387
|
-
import { RuntimeError as RuntimeError51, RuntimeModelError as
|
|
22690
|
+
import { RuntimeError as RuntimeError51, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
|
|
22388
22691
|
var ExpBarControlController = class extends ControlController {
|
|
22389
22692
|
constructor() {
|
|
22390
22693
|
super(...arguments);
|
|
@@ -22439,7 +22742,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
22439
22742
|
get xDataController() {
|
|
22440
22743
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
22441
22744
|
if (!controller) {
|
|
22442
|
-
throw new
|
|
22745
|
+
throw new RuntimeModelError55(
|
|
22443
22746
|
this.model,
|
|
22444
22747
|
"\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
|
|
22445
22748
|
);
|
|
@@ -22803,7 +23106,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
22803
23106
|
get xDataController() {
|
|
22804
23107
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
22805
23108
|
if (!controller) {
|
|
22806
|
-
throw new
|
|
23109
|
+
throw new RuntimeModelError56(
|
|
22807
23110
|
this.model,
|
|
22808
23111
|
"\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
|
|
22809
23112
|
);
|
|
@@ -22858,7 +23161,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
22858
23161
|
};
|
|
22859
23162
|
|
|
22860
23163
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
22861
|
-
import { RuntimeError as RuntimeError52, RuntimeModelError as
|
|
23164
|
+
import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
|
|
22862
23165
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
22863
23166
|
constructor() {
|
|
22864
23167
|
super(...arguments);
|
|
@@ -22881,7 +23184,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
22881
23184
|
get xDataController() {
|
|
22882
23185
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
22883
23186
|
if (!controller) {
|
|
22884
|
-
throw new
|
|
23187
|
+
throw new RuntimeModelError57(
|
|
22885
23188
|
this.model,
|
|
22886
23189
|
"\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
|
|
22887
23190
|
);
|
|
@@ -23142,7 +23445,7 @@ import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
|
|
|
23142
23445
|
|
|
23143
23446
|
// src/controller/control/form/form/form.controller.ts
|
|
23144
23447
|
import {
|
|
23145
|
-
RuntimeModelError as
|
|
23448
|
+
RuntimeModelError as RuntimeModelError58,
|
|
23146
23449
|
debounceAndAsyncMerge,
|
|
23147
23450
|
recursiveIterate as recursiveIterate3,
|
|
23148
23451
|
EntityError
|
|
@@ -23274,12 +23577,12 @@ var FormController = class extends ControlController {
|
|
|
23274
23577
|
async initDetailControllers(details = this.model.deformPages, form = this, parent = void 0) {
|
|
23275
23578
|
await Promise.all(
|
|
23276
23579
|
details.map(async (detail) => {
|
|
23277
|
-
const detailProvider = await getFormDetailProvider(detail);
|
|
23580
|
+
const detailProvider = await getFormDetailProvider(detail, this.model);
|
|
23278
23581
|
if (!detailProvider) {
|
|
23279
23582
|
return;
|
|
23280
23583
|
}
|
|
23281
23584
|
if (form.details[detail.id]) {
|
|
23282
|
-
throw new
|
|
23585
|
+
throw new RuntimeModelError58(
|
|
23283
23586
|
detail,
|
|
23284
23587
|
"\u521D\u59CB\u5316\u5F02\u5E38: \u8868\u5355\u6210\u5458[".concat(detail.id, "](").concat(detail.detailType, ")\u5DF2\u5B58\u5728\uFF0C\u8868\u5355\u9879\u6807\u8BC6\u91CD\u590D\u8BF7\u68C0\u67E5\u914D\u7F6E")
|
|
23285
23588
|
);
|
|
@@ -23880,12 +24183,18 @@ var FormDetailState = class {
|
|
|
23880
24183
|
return true;
|
|
23881
24184
|
}
|
|
23882
24185
|
});
|
|
23883
|
-
let $readonly
|
|
24186
|
+
let $readonly;
|
|
23884
24187
|
Object.defineProperty(this, "readonly", {
|
|
23885
24188
|
enumerable: true,
|
|
23886
24189
|
configurable: true,
|
|
23887
24190
|
get() {
|
|
23888
|
-
|
|
24191
|
+
if ($readonly !== void 0) {
|
|
24192
|
+
return $readonly;
|
|
24193
|
+
}
|
|
24194
|
+
if (this.context) {
|
|
24195
|
+
return !!(this.context.srfreadonly === true || this.context.srfreadonly === "true");
|
|
24196
|
+
}
|
|
24197
|
+
return false;
|
|
23889
24198
|
},
|
|
23890
24199
|
set(val) {
|
|
23891
24200
|
$readonly = val;
|
|
@@ -23942,6 +24251,7 @@ var FormDetailController = class {
|
|
|
23942
24251
|
this.form = form;
|
|
23943
24252
|
this.parent = parent;
|
|
23944
24253
|
this.state = this.createState();
|
|
24254
|
+
this.state.context = this.context;
|
|
23945
24255
|
}
|
|
23946
24256
|
/**
|
|
23947
24257
|
* 表单数据
|
|
@@ -24024,9 +24334,6 @@ var FormDetailController = class {
|
|
|
24024
24334
|
this.model.caption
|
|
24025
24335
|
);
|
|
24026
24336
|
}
|
|
24027
|
-
if (this.context.srfreadonly === true || this.context.srfreadonly === "true") {
|
|
24028
|
-
this.state.readonly = true;
|
|
24029
|
-
}
|
|
24030
24337
|
}
|
|
24031
24338
|
/**
|
|
24032
24339
|
* 创建表单状态对象
|
|
@@ -24779,15 +25086,15 @@ var FormItemController = class extends FormDetailController {
|
|
|
24779
25086
|
* @returns {*} {Promise<void>}
|
|
24780
25087
|
*/
|
|
24781
25088
|
async onInit() {
|
|
24782
|
-
var _a;
|
|
25089
|
+
var _a, _b;
|
|
24783
25090
|
await super.onInit();
|
|
24784
25091
|
this.state.required = !this.model.allowEmpty;
|
|
24785
25092
|
const { enableCond } = this.model;
|
|
24786
25093
|
if (!enableCond) {
|
|
24787
25094
|
this.state.enableCondDisabled = true;
|
|
24788
25095
|
}
|
|
24789
|
-
if (this.context.srfreadonly !== true && this.context.srfreadonly !== "true") {
|
|
24790
|
-
this.state.readonly = ((
|
|
25096
|
+
if (this.context.srfreadonly !== true && this.context.srfreadonly !== "true" && ((_a = this.model.editor) == null ? void 0 : _a.readOnly)) {
|
|
25097
|
+
this.state.readonly = ((_b = this.model.editor) == null ? void 0 : _b.readOnly) || false;
|
|
24791
25098
|
}
|
|
24792
25099
|
if (this.model.editor && this.model.editor.editorType !== "HIDDEN") {
|
|
24793
25100
|
this.editorProvider = await getEditorProvider(this.model.editor);
|
|
@@ -25134,7 +25441,7 @@ var FormMDCtrlController = class extends FormDetailController {
|
|
|
25134
25441
|
import {
|
|
25135
25442
|
mergeInLeft,
|
|
25136
25443
|
ModelError as ModelError27,
|
|
25137
|
-
RuntimeModelError as
|
|
25444
|
+
RuntimeModelError as RuntimeModelError59
|
|
25138
25445
|
} from "@ibiz-template/core";
|
|
25139
25446
|
var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
25140
25447
|
constructor() {
|
|
@@ -25160,7 +25467,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
25160
25467
|
await super.onInit();
|
|
25161
25468
|
const { contentControl } = this.model;
|
|
25162
25469
|
if (!contentControl) {
|
|
25163
|
-
throw new
|
|
25470
|
+
throw new RuntimeModelError59(this.model, "\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5185\u5BB9\u90E8\u4EF6");
|
|
25164
25471
|
}
|
|
25165
25472
|
if (contentControl.controlType === "GRID") {
|
|
25166
25473
|
mergeInLeft(contentControl, {
|
|
@@ -25257,7 +25564,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
25257
25564
|
};
|
|
25258
25565
|
|
|
25259
25566
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
|
|
25260
|
-
import { RuntimeError as RuntimeError54, RuntimeModelError as
|
|
25567
|
+
import { RuntimeError as RuntimeError54, RuntimeModelError as RuntimeModelError60 } from "@ibiz-template/core";
|
|
25261
25568
|
import { createUUID as createUUID11 } from "qx-util";
|
|
25262
25569
|
|
|
25263
25570
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
|
|
@@ -25298,7 +25605,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
25298
25605
|
super.onInit();
|
|
25299
25606
|
const { contentControl } = this.model;
|
|
25300
25607
|
if (!contentControl) {
|
|
25301
|
-
throw new
|
|
25608
|
+
throw new RuntimeModelError60(this.model, "\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5185\u5BB9\u90E8\u4EF6");
|
|
25302
25609
|
}
|
|
25303
25610
|
contentControl.enableAutoSave = this.enableCreate || this.enableUpdate;
|
|
25304
25611
|
const controlProvider = await getControlProvider(contentControl);
|
|
@@ -25700,7 +26007,7 @@ import { clone as clone26, isNil as isNil27 } from "ramda";
|
|
|
25700
26007
|
// src/controller/control/form/edit-form/edit-form.service.ts
|
|
25701
26008
|
import {
|
|
25702
26009
|
recursiveIterate as recursiveIterate6,
|
|
25703
|
-
RuntimeModelError as
|
|
26010
|
+
RuntimeModelError as RuntimeModelError61
|
|
25704
26011
|
} from "@ibiz-template/core";
|
|
25705
26012
|
var EditFormService = class extends FormService {
|
|
25706
26013
|
/**
|
|
@@ -25824,7 +26131,7 @@ var EditFormService = class extends FormService {
|
|
|
25824
26131
|
const wizardForm = this.model;
|
|
25825
26132
|
const methodName = (_a = wizardForm.goBackControlAction) == null ? void 0 : _a.appDEMethodId;
|
|
25826
26133
|
if (!methodName) {
|
|
25827
|
-
throw new
|
|
26134
|
+
throw new RuntimeModelError61(this.model, "\u7F3A\u5C11\u8FD4\u56DE\u64CD\u4F5C\u5B9E\u4F53\u884C\u4E3A");
|
|
25828
26135
|
}
|
|
25829
26136
|
let res = await this.exec(
|
|
25830
26137
|
methodName,
|
|
@@ -26078,10 +26385,10 @@ var EditFormController = class extends FormController {
|
|
|
26078
26385
|
let res;
|
|
26079
26386
|
try {
|
|
26080
26387
|
await this.startLoading();
|
|
26081
|
-
await this.evt.emit("onBeforeLoad",
|
|
26388
|
+
await this.evt.emit("onBeforeLoad", { args: queryParams });
|
|
26082
26389
|
res = await this.service.get(context, queryParams);
|
|
26083
26390
|
} catch (error) {
|
|
26084
|
-
await this.evt.emit("onLoadError",
|
|
26391
|
+
await this.evt.emit("onLoadError", { args: error });
|
|
26085
26392
|
this.actionNotification("GETERROR", {
|
|
26086
26393
|
error
|
|
26087
26394
|
});
|
|
@@ -26094,7 +26401,7 @@ var EditFormController = class extends FormController {
|
|
|
26094
26401
|
this.state.modified = false;
|
|
26095
26402
|
this.state.data = res.data;
|
|
26096
26403
|
this.formStateNotify("LOAD" /* LOAD */);
|
|
26097
|
-
await this.evt.emit("onLoadSuccess",
|
|
26404
|
+
await this.evt.emit("onLoadSuccess", { args: res.data });
|
|
26098
26405
|
this.actionNotification("GETSUCCESS");
|
|
26099
26406
|
this.state.isLoaded = true;
|
|
26100
26407
|
return this.data;
|
|
@@ -26122,10 +26429,10 @@ var EditFormController = class extends FormController {
|
|
|
26122
26429
|
let res;
|
|
26123
26430
|
try {
|
|
26124
26431
|
await this.startLoading();
|
|
26125
|
-
await this.evt.emit("onBeforeLoad",
|
|
26432
|
+
await this.evt.emit("onBeforeLoad", { args: queryParams });
|
|
26126
26433
|
res = await this.service.get(context, queryParams);
|
|
26127
26434
|
} catch (error) {
|
|
26128
|
-
await this.evt.emit("onLoadError",
|
|
26435
|
+
await this.evt.emit("onLoadError", { args: error });
|
|
26129
26436
|
this.actionNotification("GETERROR", {
|
|
26130
26437
|
error
|
|
26131
26438
|
});
|
|
@@ -26137,7 +26444,7 @@ var EditFormController = class extends FormController {
|
|
|
26137
26444
|
this.state.data = res.data;
|
|
26138
26445
|
this.oldData = this.data.clone();
|
|
26139
26446
|
this.formStateNotify("LOAD" /* LOAD */);
|
|
26140
|
-
await this.evt.emit("onLoadSuccess",
|
|
26447
|
+
await this.evt.emit("onLoadSuccess", { args: res.data });
|
|
26141
26448
|
this.actionNotification("GETSUCCESS");
|
|
26142
26449
|
this.state.isLoaded = true;
|
|
26143
26450
|
return this.data;
|
|
@@ -26161,15 +26468,15 @@ var EditFormController = class extends FormController {
|
|
|
26161
26468
|
if (!silent) {
|
|
26162
26469
|
await this.startLoading();
|
|
26163
26470
|
}
|
|
26164
|
-
await this.evt.emit("onBeforeSave", void 0);
|
|
26165
26471
|
const { context, data } = this.handlerAbilityParams(args);
|
|
26166
26472
|
const saveData = data[0];
|
|
26167
26473
|
const isCreate = saveData.srfuf === 0 /* CREATE */;
|
|
26168
26474
|
let res;
|
|
26169
26475
|
try {
|
|
26476
|
+
await this.evt.emit("onBeforeSave", { args: saveData });
|
|
26170
26477
|
res = isCreate ? await this.service.create(context, saveData) : await this.service.update(context, saveData);
|
|
26171
26478
|
} catch (error) {
|
|
26172
|
-
await this.evt.emit("onSaveError",
|
|
26479
|
+
await this.evt.emit("onSaveError", { args: error });
|
|
26173
26480
|
this.actionNotification("".concat(isCreate ? "CREATE" : "UPDATE", "ERROR"), {
|
|
26174
26481
|
error
|
|
26175
26482
|
});
|
|
@@ -26191,7 +26498,7 @@ var EditFormController = class extends FormController {
|
|
|
26191
26498
|
this.data.tempsrfkey = this.data.srfkey;
|
|
26192
26499
|
}
|
|
26193
26500
|
this.state.modified = false;
|
|
26194
|
-
await this.evt.emit("onSaveSuccess",
|
|
26501
|
+
await this.evt.emit("onSaveSuccess", { args: res.data });
|
|
26195
26502
|
if (!this.view.state.isClosing) {
|
|
26196
26503
|
this.formStateNotify("SAVE" /* SAVE */);
|
|
26197
26504
|
}
|
|
@@ -26214,7 +26521,7 @@ var EditFormController = class extends FormController {
|
|
|
26214
26521
|
const { context, params } = this.handlerAbilityParams(args);
|
|
26215
26522
|
let res;
|
|
26216
26523
|
let ok = false;
|
|
26217
|
-
await this.evt.emit("onBeforeRemove",
|
|
26524
|
+
await this.evt.emit("onBeforeRemove", { args: this.data });
|
|
26218
26525
|
if (this.data.srfuf === 1 /* UPDATE */) {
|
|
26219
26526
|
ok = await ibiz.modal.confirm({
|
|
26220
26527
|
title: "\u63D0\u793A",
|
|
@@ -26227,7 +26534,7 @@ var EditFormController = class extends FormController {
|
|
|
26227
26534
|
try {
|
|
26228
26535
|
res = await this.service.remove(context, params);
|
|
26229
26536
|
} catch (error) {
|
|
26230
|
-
await this.evt.emit("onRemoveError",
|
|
26537
|
+
await this.evt.emit("onRemoveError", { args: error });
|
|
26231
26538
|
this.actionNotification("REMOVEERROR", {
|
|
26232
26539
|
error
|
|
26233
26540
|
});
|
|
@@ -26240,7 +26547,7 @@ var EditFormController = class extends FormController {
|
|
|
26240
26547
|
this.emitDEDataChange("remove", this.data);
|
|
26241
26548
|
this.state.data = new ControlVO();
|
|
26242
26549
|
this.state.modified = false;
|
|
26243
|
-
await this.evt.emit("onRemoveSuccess",
|
|
26550
|
+
await this.evt.emit("onRemoveSuccess", { args: this.data });
|
|
26244
26551
|
this.actionNotification("REMOVESUCCESS");
|
|
26245
26552
|
return ok;
|
|
26246
26553
|
}
|
|
@@ -26706,6 +27013,28 @@ var GridRowState = class {
|
|
|
26706
27013
|
editable: ibiz.config.grid.editShowMode === "all",
|
|
26707
27014
|
required: false
|
|
26708
27015
|
};
|
|
27016
|
+
let $readonly;
|
|
27017
|
+
Object.defineProperty(
|
|
27018
|
+
this.editColStates[editColumn.fieldName],
|
|
27019
|
+
"readonly",
|
|
27020
|
+
{
|
|
27021
|
+
enumerable: true,
|
|
27022
|
+
configurable: true,
|
|
27023
|
+
get() {
|
|
27024
|
+
if ($readonly !== void 0) {
|
|
27025
|
+
return $readonly;
|
|
27026
|
+
}
|
|
27027
|
+
if (grid.context) {
|
|
27028
|
+
return !!(grid.context.srfreadonly === true || grid.context.srfreadonly === "true");
|
|
27029
|
+
}
|
|
27030
|
+
return false;
|
|
27031
|
+
},
|
|
27032
|
+
set(val) {
|
|
27033
|
+
$readonly = val;
|
|
27034
|
+
return true;
|
|
27035
|
+
}
|
|
27036
|
+
}
|
|
27037
|
+
);
|
|
26709
27038
|
});
|
|
26710
27039
|
}
|
|
26711
27040
|
getDiffData() {
|
|
@@ -26729,13 +27058,13 @@ import {
|
|
|
26729
27058
|
mergeDefaultInLeft,
|
|
26730
27059
|
recursiveIterate as recursiveIterate7,
|
|
26731
27060
|
RuntimeError as RuntimeError56,
|
|
26732
|
-
RuntimeModelError as
|
|
27061
|
+
RuntimeModelError as RuntimeModelError63
|
|
26733
27062
|
} from "@ibiz-template/core";
|
|
26734
27063
|
import { clone as clone27 } from "ramda";
|
|
26735
27064
|
import dayjs5 from "dayjs";
|
|
26736
27065
|
|
|
26737
27066
|
// src/controller/control/grid/grid/grid.service.ts
|
|
26738
|
-
import { RuntimeModelError as
|
|
27067
|
+
import { RuntimeModelError as RuntimeModelError62 } from "@ibiz-template/core";
|
|
26739
27068
|
var GridService = class extends MDControlService {
|
|
26740
27069
|
/**
|
|
26741
27070
|
* 初始化属性映射
|
|
@@ -26763,7 +27092,7 @@ var GridService = class extends MDControlService {
|
|
|
26763
27092
|
dataType: dataItem.dataType
|
|
26764
27093
|
});
|
|
26765
27094
|
} else {
|
|
26766
|
-
throw new
|
|
27095
|
+
throw new RuntimeModelError62(
|
|
26767
27096
|
column,
|
|
26768
27097
|
"\u672A\u627E\u5230\u5BF9\u5E94\u7684\u8868\u683C\u6570\u636E\u9879[".concat(deField, "]")
|
|
26769
27098
|
);
|
|
@@ -27158,11 +27487,11 @@ var GridController = class extends MDControlController {
|
|
|
27158
27487
|
(item) => item.model.appDEFieldId === groupAppDEFieldId
|
|
27159
27488
|
);
|
|
27160
27489
|
if (!this.groupFieldColumn) {
|
|
27161
|
-
throw new
|
|
27490
|
+
throw new RuntimeModelError63(this.model, "\u6CA1\u6709\u914D\u7F6E\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217");
|
|
27162
27491
|
}
|
|
27163
27492
|
const groupFieldName = this.groupFieldColumn.model.id;
|
|
27164
27493
|
if (!this.groupFieldColumn.model.appCodeListId) {
|
|
27165
|
-
throw new
|
|
27494
|
+
throw new RuntimeModelError63(
|
|
27166
27495
|
this.groupFieldColumn.model,
|
|
27167
27496
|
"\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217".concat(groupFieldName, "\u6CA1\u6709\u914D\u7F6E\u4EE3\u7801\u8868")
|
|
27168
27497
|
);
|
|
@@ -27172,7 +27501,7 @@ var GridController = class extends MDControlController {
|
|
|
27172
27501
|
);
|
|
27173
27502
|
if (index !== -1 && index !== 0) {
|
|
27174
27503
|
if (this.isMultistageHeader) {
|
|
27175
|
-
throw new
|
|
27504
|
+
throw new RuntimeModelError63(
|
|
27176
27505
|
this.model,
|
|
27177
27506
|
"\u8BF7\u5C06\u5206\u7EC4\u5C5E\u6027\u5217".concat(groupFieldName, "\u914D\u7F6E\u4E3A\u7B2C\u4E00\u5217")
|
|
27178
27507
|
);
|
|
@@ -27182,10 +27511,10 @@ var GridController = class extends MDControlController {
|
|
|
27182
27511
|
}
|
|
27183
27512
|
if (groupMode === "CODELIST") {
|
|
27184
27513
|
if (!groupCodeListId) {
|
|
27185
|
-
throw new
|
|
27514
|
+
throw new RuntimeModelError63(this.model, "\u4EE3\u7801\u8868\u5206\u7EC4\u6A21\u5F0F\u9700\u8981\u914D\u7F6E\u4EE3\u7801\u8868");
|
|
27186
27515
|
}
|
|
27187
27516
|
if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
|
|
27188
|
-
throw new
|
|
27517
|
+
throw new RuntimeModelError63(
|
|
27189
27518
|
this.model,
|
|
27190
27519
|
"\u5206\u7EC4\u4EE3\u7801\u8868\u4E0E\u5C5E\u6027\u5217".concat(groupFieldName, "\u7684\u4EE3\u7801\u8868\u4E0D\u4E00\u81F4")
|
|
27191
27520
|
);
|
|
@@ -27288,7 +27617,7 @@ var GridController = class extends MDControlController {
|
|
|
27288
27617
|
return;
|
|
27289
27618
|
}
|
|
27290
27619
|
if (!aggAppDEDataSetId || !aggAppDataEntityId) {
|
|
27291
|
-
throw new
|
|
27620
|
+
throw new RuntimeModelError63(this.model, "\u7F3A\u5C11\u914D\u7F6E\u805A\u5408\u5B9E\u4F53\u6216\u805A\u5408\u6570\u636E\u96C6");
|
|
27292
27621
|
}
|
|
27293
27622
|
const params = await this.getFetchParams();
|
|
27294
27623
|
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
@@ -27464,7 +27793,7 @@ var GridController = class extends MDControlController {
|
|
|
27464
27793
|
*/
|
|
27465
27794
|
async initColumnsController(column) {
|
|
27466
27795
|
var _a;
|
|
27467
|
-
const provider = await getGridColumnProvider(column);
|
|
27796
|
+
const provider = await getGridColumnProvider(column, this.model);
|
|
27468
27797
|
if (!provider) {
|
|
27469
27798
|
return;
|
|
27470
27799
|
}
|
|
@@ -28387,7 +28716,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
28387
28716
|
};
|
|
28388
28717
|
|
|
28389
28718
|
// src/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.ts
|
|
28390
|
-
import { RuntimeModelError as
|
|
28719
|
+
import { RuntimeModelError as RuntimeModelError64 } from "@ibiz-template/core";
|
|
28391
28720
|
var GridUAColumnController = class extends GridColumnController {
|
|
28392
28721
|
/**
|
|
28393
28722
|
* 给rowController初始化操作列的状态
|
|
@@ -28400,7 +28729,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
28400
28729
|
var _a;
|
|
28401
28730
|
const { deuiactionGroup } = this.model;
|
|
28402
28731
|
if (!deuiactionGroup) {
|
|
28403
|
-
throw new
|
|
28732
|
+
throw new RuntimeModelError64(this.model, "\u64CD\u4F5C\u5217\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
|
|
28404
28733
|
}
|
|
28405
28734
|
if (!((_a = deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
28406
28735
|
ibiz.log.debug("\u64CD\u4F5C\u5217\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
|
|
@@ -28653,7 +28982,9 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
28653
28982
|
calcColumnReadonly(row) {
|
|
28654
28983
|
var _a;
|
|
28655
28984
|
const isReadOnly = !!((_a = this.editItem.editor) == null ? void 0 : _a.readOnly);
|
|
28656
|
-
|
|
28985
|
+
if (isReadOnly) {
|
|
28986
|
+
row.editColStates[this.fieldName].readonly = isReadOnly;
|
|
28987
|
+
}
|
|
28657
28988
|
}
|
|
28658
28989
|
/**
|
|
28659
28990
|
* 计算启用项的禁用
|
|
@@ -28968,7 +29299,11 @@ var PanelController = class extends ControlController {
|
|
|
28968
29299
|
await Promise.all(
|
|
28969
29300
|
panelItems.map(async (panelItem) => {
|
|
28970
29301
|
var _a, _b;
|
|
28971
|
-
const panelItemProvider = await getPanelItemProvider(
|
|
29302
|
+
const panelItemProvider = await getPanelItemProvider(
|
|
29303
|
+
panelItem,
|
|
29304
|
+
panel.model,
|
|
29305
|
+
panel.view.model
|
|
29306
|
+
);
|
|
28972
29307
|
if (!panelItemProvider) {
|
|
28973
29308
|
return;
|
|
28974
29309
|
}
|
|
@@ -29189,8 +29524,8 @@ var PanelItemState = class {
|
|
|
29189
29524
|
/**
|
|
29190
29525
|
* 是否只读
|
|
29191
29526
|
*
|
|
29192
|
-
* @author
|
|
29193
|
-
* @date 2024-
|
|
29527
|
+
* @author tony001
|
|
29528
|
+
* @date 2024-04-16 16:04:49
|
|
29194
29529
|
* @type {boolean}
|
|
29195
29530
|
*/
|
|
29196
29531
|
this.readonly = false;
|
|
@@ -29225,12 +29560,18 @@ var PanelItemState = class {
|
|
|
29225
29560
|
return true;
|
|
29226
29561
|
}
|
|
29227
29562
|
});
|
|
29228
|
-
let $readonly
|
|
29563
|
+
let $readonly;
|
|
29229
29564
|
Object.defineProperty(this, "readonly", {
|
|
29230
29565
|
enumerable: true,
|
|
29231
29566
|
configurable: true,
|
|
29232
29567
|
get() {
|
|
29233
|
-
|
|
29568
|
+
if ($readonly !== void 0) {
|
|
29569
|
+
return $readonly;
|
|
29570
|
+
}
|
|
29571
|
+
if (this.context) {
|
|
29572
|
+
return !!(this.context.srfreadonly === true || this.context.srfreadonly === "true");
|
|
29573
|
+
}
|
|
29574
|
+
return false;
|
|
29234
29575
|
},
|
|
29235
29576
|
set(val) {
|
|
29236
29577
|
$readonly = val;
|
|
@@ -29266,6 +29607,7 @@ var PanelItemController = class {
|
|
|
29266
29607
|
required: void 0
|
|
29267
29608
|
};
|
|
29268
29609
|
this.state = this.createState();
|
|
29610
|
+
this.state.context = this.panel.context;
|
|
29269
29611
|
}
|
|
29270
29612
|
/**
|
|
29271
29613
|
* 数据父容器
|
|
@@ -29337,9 +29679,6 @@ var PanelItemController = class {
|
|
|
29337
29679
|
if (labelSysCss == null ? void 0 : labelSysCss.cssName) {
|
|
29338
29680
|
this.state.class.label.push(labelSysCss.cssName);
|
|
29339
29681
|
}
|
|
29340
|
-
if (this.panel.context.srfreadonly === true || this.panel.context.srfreadonly === "true") {
|
|
29341
|
-
this.state.readonly = true;
|
|
29342
|
-
}
|
|
29343
29682
|
}
|
|
29344
29683
|
destroy() {
|
|
29345
29684
|
}
|
|
@@ -29637,7 +29976,7 @@ import { clone as clone30 } from "ramda";
|
|
|
29637
29976
|
import { isString as isString2 } from "lodash-es";
|
|
29638
29977
|
|
|
29639
29978
|
// src/controller/control/search-bar/search-bar-filter.controller.ts
|
|
29640
|
-
import { RuntimeModelError as
|
|
29979
|
+
import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
|
|
29641
29980
|
|
|
29642
29981
|
// src/controller/control/search-bar/util.ts
|
|
29643
29982
|
var ItemsValueOPs = [
|
|
@@ -29718,7 +30057,7 @@ var SearchBarFilterController = class {
|
|
|
29718
30057
|
async init() {
|
|
29719
30058
|
if (!this.noEditor) {
|
|
29720
30059
|
if (!this.model.editor) {
|
|
29721
|
-
throw new
|
|
30060
|
+
throw new RuntimeModelError65(this.model, "\u7F3A\u5C11\u7F16\u8F91\u5668\u6A21\u578B");
|
|
29722
30061
|
}
|
|
29723
30062
|
this.editorProvider = await getEditorProvider(this.model.editor);
|
|
29724
30063
|
if (this.editorProvider) {
|
|
@@ -31289,7 +31628,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
31289
31628
|
// src/controller/control/tree/tree.controller.ts
|
|
31290
31629
|
import {
|
|
31291
31630
|
RuntimeError as RuntimeError60,
|
|
31292
|
-
RuntimeModelError as
|
|
31631
|
+
RuntimeModelError as RuntimeModelError66,
|
|
31293
31632
|
recursiveIterate as recursiveIterate11
|
|
31294
31633
|
} from "@ibiz-template/core";
|
|
31295
31634
|
import { isNil as isNil30 } from "ramda";
|
|
@@ -32242,7 +32581,7 @@ var TreeController = class extends MDControlController {
|
|
|
32242
32581
|
const { sortAppDEFieldId, sortDir, allowOrder } = orderNodeModel;
|
|
32243
32582
|
if (allowOrder === true) {
|
|
32244
32583
|
if (!sortAppDEFieldId) {
|
|
32245
|
-
throw new
|
|
32584
|
+
throw new RuntimeModelError66(orderNodeModel, "\u7F3A\u5C11\u914D\u7F6E\u6392\u5E8F\u5C5E\u6027");
|
|
32246
32585
|
}
|
|
32247
32586
|
const sortField = sortAppDEFieldId.toLowerCase();
|
|
32248
32587
|
const isAsc = sortDir === "ASC";
|
|
@@ -32327,7 +32666,7 @@ var TreeController = class extends MDControlController {
|
|
|
32327
32666
|
async modifyNodeText(nodeData, text) {
|
|
32328
32667
|
const model = this.getNodeModel(nodeData._nodeId);
|
|
32329
32668
|
if (!model.allowEditText) {
|
|
32330
|
-
throw new
|
|
32669
|
+
throw new RuntimeModelError66(model, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u7F16\u8F91\u6A21\u5F0F\uFF1A\u540D\u79F0");
|
|
32331
32670
|
}
|
|
32332
32671
|
if (nodeData._nodeType !== "DE") {
|
|
32333
32672
|
throw new RuntimeError60("\u4E0D\u662F\u5B9E\u4F53\u6811\u8282\u70B9\u6570\u636E");
|
|
@@ -32742,7 +33081,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
32742
33081
|
};
|
|
32743
33082
|
|
|
32744
33083
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
32745
|
-
import { RuntimeModelError as
|
|
33084
|
+
import { RuntimeModelError as RuntimeModelError67 } from "@ibiz-template/core";
|
|
32746
33085
|
import { isNil as isNil31 } from "ramda";
|
|
32747
33086
|
|
|
32748
33087
|
// src/controller/control/md-ctrl/md-ctrl.service.ts
|
|
@@ -32951,7 +33290,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
32951
33290
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
32952
33291
|
if (enableGroup && groupMode) {
|
|
32953
33292
|
if (!groupAppDEFieldId) {
|
|
32954
|
-
throw new
|
|
33293
|
+
throw new RuntimeModelError67(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
|
|
32955
33294
|
}
|
|
32956
33295
|
if (groupMode === "AUTO") {
|
|
32957
33296
|
this.handleAutoGroup();
|
|
@@ -33018,7 +33357,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
33018
33357
|
async handleCodeListGroup() {
|
|
33019
33358
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
33020
33359
|
if (!groupCodeListId) {
|
|
33021
|
-
throw new
|
|
33360
|
+
throw new RuntimeModelError67(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
|
|
33022
33361
|
}
|
|
33023
33362
|
const { items } = this.state;
|
|
33024
33363
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -33048,7 +33387,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
33048
33387
|
};
|
|
33049
33388
|
|
|
33050
33389
|
// src/controller/control/kanban/kanban.controller.ts
|
|
33051
|
-
import { RuntimeError as RuntimeError62, RuntimeModelError as
|
|
33390
|
+
import { RuntimeError as RuntimeError62, RuntimeModelError as RuntimeModelError68 } from "@ibiz-template/core";
|
|
33052
33391
|
import { isNil as isNil32 } from "ramda";
|
|
33053
33392
|
|
|
33054
33393
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -33127,10 +33466,10 @@ var KanbanController = class extends DataViewControlController {
|
|
|
33127
33466
|
const sortField = this.model.minorSortAppDEFieldId;
|
|
33128
33467
|
const { minorSortDir } = this.model;
|
|
33129
33468
|
if (!sortField) {
|
|
33130
|
-
throw new
|
|
33469
|
+
throw new RuntimeModelError68(this.model, "\u6392\u5E8F\u5C5E\u6027\u6CA1\u914D\u7F6E");
|
|
33131
33470
|
}
|
|
33132
33471
|
if (!minorSortDir) {
|
|
33133
|
-
throw new
|
|
33472
|
+
throw new RuntimeModelError68(this.model, "\u6392\u5E8F\u65B9\u5411\u6CA1\u914D\u7F6E");
|
|
33134
33473
|
}
|
|
33135
33474
|
const isAsc = minorSortDir === "ASC";
|
|
33136
33475
|
items.forEach((item) => {
|
|
@@ -33310,7 +33649,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
33310
33649
|
async handleCodeListGroup() {
|
|
33311
33650
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
33312
33651
|
if (!groupCodeListId) {
|
|
33313
|
-
throw new
|
|
33652
|
+
throw new RuntimeModelError68(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
|
|
33314
33653
|
}
|
|
33315
33654
|
const { items } = this.state;
|
|
33316
33655
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -33606,7 +33945,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
33606
33945
|
// src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
|
|
33607
33946
|
import {
|
|
33608
33947
|
RuntimeError as RuntimeError63,
|
|
33609
|
-
RuntimeModelError as
|
|
33948
|
+
RuntimeModelError as RuntimeModelError69,
|
|
33610
33949
|
awaitTimeout as awaitTimeout3,
|
|
33611
33950
|
recursiveIterate as recursiveIterate12
|
|
33612
33951
|
} from "@ibiz-template/core";
|
|
@@ -33886,7 +34225,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
33886
34225
|
throw new RuntimeError63("\u6682\u4E0D\u652F\u6301\u65B0\u5EFA");
|
|
33887
34226
|
}
|
|
33888
34227
|
if (!updateAppDEActionId) {
|
|
33889
|
-
throw new
|
|
34228
|
+
throw new RuntimeModelError69(nodeModel, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u66F4\u65B0\u5B9E\u4F53\u884C\u4E3A");
|
|
33890
34229
|
}
|
|
33891
34230
|
const deName = calcDeCodeNameById(appDataEntityId);
|
|
33892
34231
|
const tempContext = this.context.clone();
|
|
@@ -34157,7 +34496,7 @@ var TreeGridExColumnController = class {
|
|
|
34157
34496
|
import {
|
|
34158
34497
|
DataTypes as DataTypes5,
|
|
34159
34498
|
RuntimeError as RuntimeError64,
|
|
34160
|
-
RuntimeModelError as
|
|
34499
|
+
RuntimeModelError as RuntimeModelError70
|
|
34161
34500
|
} from "@ibiz-template/core";
|
|
34162
34501
|
import { clone as clone32 } from "ramda";
|
|
34163
34502
|
import dayjs7 from "dayjs";
|
|
@@ -34188,7 +34527,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
34188
34527
|
}
|
|
34189
34528
|
);
|
|
34190
34529
|
if (!nodeColumn || !nodeDataItem) {
|
|
34191
|
-
throw new
|
|
34530
|
+
throw new RuntimeModelError70(
|
|
34192
34531
|
nodeModel,
|
|
34193
34532
|
"\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u5BF9\u5E94\u8868\u683C\u5217".concat(this.fieldColumn.name, "\u7684\u6570\u636E\u9879")
|
|
34194
34533
|
);
|
|
@@ -34202,7 +34541,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
34202
34541
|
}
|
|
34203
34542
|
);
|
|
34204
34543
|
if (!nodeEditItem) {
|
|
34205
|
-
throw new
|
|
34544
|
+
throw new RuntimeModelError70(
|
|
34206
34545
|
nodeModel,
|
|
34207
34546
|
"\u6CA1\u6709\u627E\u5230\u5BF9\u5E94\u8868\u683C\u5217".concat(this.fieldColumn.name, "\u7684\u7F16\u8F91\u9879\u6A21\u578B")
|
|
34208
34547
|
);
|
|
@@ -34702,7 +35041,7 @@ var TreeGridExUAColumnController = class extends TreeGridExColumnController {
|
|
|
34702
35041
|
};
|
|
34703
35042
|
|
|
34704
35043
|
// src/controller/control/tree-grid/tree-grid.controller.ts
|
|
34705
|
-
import { RuntimeModelError as
|
|
35044
|
+
import { RuntimeModelError as RuntimeModelError71 } from "@ibiz-template/core";
|
|
34706
35045
|
var TreeGridController = class extends GridController {
|
|
34707
35046
|
constructor() {
|
|
34708
35047
|
super(...arguments);
|
|
@@ -34747,10 +35086,10 @@ var TreeGridController = class extends GridController {
|
|
|
34747
35086
|
return item.treeColumnMode === 2 || item.treeColumnMode === 3;
|
|
34748
35087
|
});
|
|
34749
35088
|
if (!treeGridParent) {
|
|
34750
|
-
throw new
|
|
35089
|
+
throw new RuntimeModelError71(this.model, "\u6811\u8868\u683C\u65E0\u503C\u5217\u6A21\u5F0F");
|
|
34751
35090
|
}
|
|
34752
35091
|
if (!treeGridValue) {
|
|
34753
|
-
throw new
|
|
35092
|
+
throw new RuntimeModelError71(this.model, "\u6811\u8868\u683C\u65E0\u7236\u503C\u5217\u6A21\u5F0F");
|
|
34754
35093
|
}
|
|
34755
35094
|
this.treeGridValueField = treeGridValue.appDEFieldId.toLowerCase();
|
|
34756
35095
|
this.treeGridParentField = treeGridParent.appDEFieldId.toLowerCase();
|
|
@@ -35497,7 +35836,7 @@ var ReportPanelController = class extends ControlController {
|
|
|
35497
35836
|
import {
|
|
35498
35837
|
awaitTimeout as awaitTimeout4,
|
|
35499
35838
|
RuntimeError as RuntimeError66,
|
|
35500
|
-
RuntimeModelError as
|
|
35839
|
+
RuntimeModelError as RuntimeModelError72
|
|
35501
35840
|
} from "@ibiz-template/core";
|
|
35502
35841
|
|
|
35503
35842
|
// src/controller/control/gantt/gantt.service.ts
|
|
@@ -35894,7 +36233,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
35894
36233
|
}
|
|
35895
36234
|
));
|
|
35896
36235
|
if (result === -1) {
|
|
35897
|
-
throw new
|
|
36236
|
+
throw new RuntimeModelError72(
|
|
35898
36237
|
nodeModel,
|
|
35899
36238
|
"\u7F3A\u5C11".concat(nodeModel.id.toLowerCase(), "_opendata\u7684\u89C6\u56FE\u903B\u8F91")
|
|
35900
36239
|
);
|
|
@@ -37248,7 +37587,7 @@ var ViewEngineBase = class {
|
|
|
37248
37587
|
};
|
|
37249
37588
|
|
|
37250
37589
|
// src/engine/md-view.engine.ts
|
|
37251
|
-
import { RuntimeModelError as
|
|
37590
|
+
import { RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
|
|
37252
37591
|
import { clone as clone34 } from "ramda";
|
|
37253
37592
|
var MDViewEngine = class extends ViewEngineBase {
|
|
37254
37593
|
/**
|
|
@@ -37505,7 +37844,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
37505
37844
|
view: this.view
|
|
37506
37845
|
}));
|
|
37507
37846
|
if (result === -1) {
|
|
37508
|
-
throw new
|
|
37847
|
+
throw new RuntimeModelError73(this.view.model, "\u7F3A\u5C11opendata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
37509
37848
|
} else {
|
|
37510
37849
|
return {
|
|
37511
37850
|
cancel: !result.ok
|
|
@@ -37528,7 +37867,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
37528
37867
|
(item) => item.id === "newdata"
|
|
37529
37868
|
);
|
|
37530
37869
|
if (!openAppViewLogic) {
|
|
37531
|
-
throw new
|
|
37870
|
+
throw new RuntimeModelError73(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
37532
37871
|
}
|
|
37533
37872
|
const params = clone34(this.view.params);
|
|
37534
37873
|
if (copyMode) {
|
|
@@ -37542,7 +37881,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
37542
37881
|
view: this.view
|
|
37543
37882
|
}));
|
|
37544
37883
|
if (result === -1) {
|
|
37545
|
-
throw new
|
|
37884
|
+
throw new RuntimeModelError73(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
37546
37885
|
} else {
|
|
37547
37886
|
return {
|
|
37548
37887
|
cancel: !result.ok
|
|
@@ -37965,13 +38304,13 @@ var ScriptExecutor = class extends LogicExecutor {
|
|
|
37965
38304
|
};
|
|
37966
38305
|
|
|
37967
38306
|
// src/logic-scheduler/executor/app-de-ui-logic-executor.ts
|
|
37968
|
-
import { RuntimeModelError as
|
|
38307
|
+
import { RuntimeModelError as RuntimeModelError74 } from "@ibiz-template/core";
|
|
37969
38308
|
var AppDEUILogicExecutor = class extends LogicExecutor {
|
|
37970
38309
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37971
38310
|
execute(executeParams) {
|
|
37972
38311
|
const { appDEUILogicId, appDataEntityId } = this.logic;
|
|
37973
38312
|
if (!appDEUILogicId) {
|
|
37974
|
-
throw new
|
|
38313
|
+
throw new RuntimeModelError74(this.logic, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
37975
38314
|
}
|
|
37976
38315
|
return execUILogic(appDEUILogicId, appDataEntityId, executeParams);
|
|
37977
38316
|
}
|
|
@@ -38430,7 +38769,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
38430
38769
|
};
|
|
38431
38770
|
|
|
38432
38771
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
38433
|
-
import { RuntimeError as RuntimeError73, RuntimeModelError as
|
|
38772
|
+
import { RuntimeError as RuntimeError73, RuntimeModelError as RuntimeModelError75 } from "@ibiz-template/core";
|
|
38434
38773
|
var TimerTrigger = class extends LogicTrigger {
|
|
38435
38774
|
constructor() {
|
|
38436
38775
|
super(...arguments);
|
|
@@ -38438,7 +38777,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
38438
38777
|
}
|
|
38439
38778
|
start() {
|
|
38440
38779
|
if (!this.logic.timer) {
|
|
38441
|
-
throw new
|
|
38780
|
+
throw new RuntimeModelError75(this.logic, "\u5B9A\u65F6\u5668\u7F3A\u5C11\u5B9A\u65F6\u95F4\u9694");
|
|
38442
38781
|
}
|
|
38443
38782
|
this.timer = setInterval(() => {
|
|
38444
38783
|
if (!this.scheduler.defaultParamsCb) {
|
|
@@ -38460,7 +38799,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
38460
38799
|
import {
|
|
38461
38800
|
ModelError as ModelError34,
|
|
38462
38801
|
RuntimeError as RuntimeError74,
|
|
38463
|
-
RuntimeModelError as
|
|
38802
|
+
RuntimeModelError as RuntimeModelError76
|
|
38464
38803
|
} from "@ibiz-template/core";
|
|
38465
38804
|
import { notNilEmpty as notNilEmpty10 } from "qx-util";
|
|
38466
38805
|
var AppUILogicExecutor = class extends LogicExecutor {
|
|
@@ -38506,7 +38845,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
38506
38845
|
} else {
|
|
38507
38846
|
openViewRef = appUILogic.openDataAppView;
|
|
38508
38847
|
if (!openViewRef) {
|
|
38509
|
-
throw new
|
|
38848
|
+
throw new RuntimeModelError76(
|
|
38510
38849
|
appUILogic,
|
|
38511
38850
|
"opendata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE"
|
|
38512
38851
|
);
|
|
@@ -38514,7 +38853,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
38514
38853
|
}
|
|
38515
38854
|
const openView = openViewRef.refAppViewId;
|
|
38516
38855
|
if (!openView) {
|
|
38517
|
-
throw new
|
|
38856
|
+
throw new RuntimeModelError76(
|
|
38518
38857
|
appUILogic,
|
|
38519
38858
|
"opendata\u89C6\u56FE\u903B\u8F91\u7684\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE\u6CA1\u6709\u5B9E\u9645\u5F15\u7528\u89C6\u56FE"
|
|
38520
38859
|
);
|
|
@@ -38544,7 +38883,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
38544
38883
|
);
|
|
38545
38884
|
const typeFileName = appDataEntity.formTypeAppDEFieldId || appDataEntity.dataTypeAppDEFieldId;
|
|
38546
38885
|
if (!typeFileName) {
|
|
38547
|
-
throw new
|
|
38886
|
+
throw new RuntimeModelError76(
|
|
38548
38887
|
appUILogic,
|
|
38549
38888
|
"".concat(appDataEntity.codeName, "[\u591A\u8868\u5355\u5B9E\u4F53] or [\u7D22\u5F15\u5B9E\u4F53]\u7F3A\u5C11\u7C7B\u578B\u5C5E\u6027\u914D\u7F6E")
|
|
38550
38889
|
);
|
|
@@ -38552,7 +38891,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
38552
38891
|
const { data } = parameters;
|
|
38553
38892
|
const formTypeValue = data[0][typeFileName];
|
|
38554
38893
|
if (!formTypeValue) {
|
|
38555
|
-
throw new
|
|
38894
|
+
throw new RuntimeModelError76(appUILogic, "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C");
|
|
38556
38895
|
}
|
|
38557
38896
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
38558
38897
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
@@ -38594,7 +38933,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
38594
38933
|
return viewRef.refMode.toLowerCase() !== parentDeName;
|
|
38595
38934
|
});
|
|
38596
38935
|
if (!newViewRef) {
|
|
38597
|
-
throw new
|
|
38936
|
+
throw new RuntimeModelError76(
|
|
38598
38937
|
appUILogic,
|
|
38599
38938
|
"\u6CA1\u6709\u627E\u5230\u6279\u6DFB\u52A0\u9700\u8981\u6253\u5F00\u7684\u9009\u62E9\u89C6\u56FE"
|
|
38600
38939
|
);
|
|
@@ -38604,7 +38943,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
38604
38943
|
} else {
|
|
38605
38944
|
newViewRef = newDataAppView;
|
|
38606
38945
|
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
38607
|
-
throw new
|
|
38946
|
+
throw new RuntimeModelError76(
|
|
38608
38947
|
appUILogic,
|
|
38609
38948
|
"newdata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u65B0\u5EFA\u6570\u636E\u89C6\u56FE"
|
|
38610
38949
|
);
|
|
@@ -38668,7 +39007,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
38668
39007
|
const { wizardAppView, newDataAppViews } = appUILogic;
|
|
38669
39008
|
const { context, params, ...rest } = parameters;
|
|
38670
39009
|
if (!wizardAppView || !wizardAppView.refAppViewId) {
|
|
38671
|
-
throw new
|
|
39010
|
+
throw new RuntimeModelError76(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
|
|
38672
39011
|
}
|
|
38673
39012
|
const result = await ibiz.commands.execute(
|
|
38674
39013
|
OpenAppViewCommand.TAG,
|
|
@@ -38719,7 +39058,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
38719
39058
|
const minorDERs = selfDe.minorAppDERSs;
|
|
38720
39059
|
const pickParentDeName = newViewRef.refMode.toLowerCase();
|
|
38721
39060
|
if (!minorDERs) {
|
|
38722
|
-
throw new
|
|
39061
|
+
throw new RuntimeModelError76(selfDe, "\u5B9E\u4F53\u6CA1\u6709\u4ECE\u5173\u7CFB\u96C6\u5408\uFF01");
|
|
38723
39062
|
}
|
|
38724
39063
|
let pickParentFieldName = "";
|
|
38725
39064
|
minorDERs == null ? void 0 : minorDERs.forEach((item) => {
|
|
@@ -38816,12 +39155,12 @@ var ControlEventTrigger = class extends LogicTrigger {
|
|
|
38816
39155
|
};
|
|
38817
39156
|
|
|
38818
39157
|
// src/logic-scheduler/executor/app-ui-action-executor.ts
|
|
38819
|
-
import { RuntimeModelError as
|
|
39158
|
+
import { RuntimeModelError as RuntimeModelError77 } from "@ibiz-template/core";
|
|
38820
39159
|
var AppDEUIActionExecutor = class extends LogicExecutor {
|
|
38821
39160
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
38822
39161
|
execute(executeParams) {
|
|
38823
39162
|
if (!this.logic.appDEUIActionId) {
|
|
38824
|
-
throw new
|
|
39163
|
+
throw new RuntimeModelError77(
|
|
38825
39164
|
this.logic,
|
|
38826
39165
|
"\u903B\u8F91\u4E2D\u7F3A\u5C11\u89E6\u53D1\u5E94\u7528\u5B9E\u4F53\u754C\u9762\u884C\u4E3Aid"
|
|
38827
39166
|
);
|
|
@@ -39014,6 +39353,7 @@ export {
|
|
|
39014
39353
|
AppDECounter,
|
|
39015
39354
|
AppDECounterProvider,
|
|
39016
39355
|
AppDataEntity,
|
|
39356
|
+
AppDataUploadViewController,
|
|
39017
39357
|
AppFuncCommand,
|
|
39018
39358
|
AppMenuController,
|
|
39019
39359
|
AppMenuIconViewController,
|
|
@@ -39255,6 +39595,7 @@ export {
|
|
|
39255
39595
|
convertNavData,
|
|
39256
39596
|
convertNavDataByArray,
|
|
39257
39597
|
convertObjectToNavParams,
|
|
39598
|
+
downloadImportTemplate,
|
|
39258
39599
|
execDELogic,
|
|
39259
39600
|
execDELogicAction,
|
|
39260
39601
|
execDELogicById,
|
|
@@ -39288,6 +39629,7 @@ export {
|
|
|
39288
39629
|
getCtrlTeleportParams,
|
|
39289
39630
|
getDEMethodProvider,
|
|
39290
39631
|
getDERedirectToView,
|
|
39632
|
+
getDataImportModels,
|
|
39291
39633
|
getDeACMode,
|
|
39292
39634
|
getDefaultValue,
|
|
39293
39635
|
getEditorProvider,
|
|
@@ -39320,6 +39662,7 @@ export {
|
|
|
39320
39662
|
hasDeCodeName,
|
|
39321
39663
|
hasSubRoute,
|
|
39322
39664
|
importData,
|
|
39665
|
+
importData2,
|
|
39323
39666
|
install2 as install,
|
|
39324
39667
|
installCommand,
|
|
39325
39668
|
isDataContainer,
|
|
@@ -39328,6 +39671,7 @@ export {
|
|
|
39328
39671
|
isSimpleItems,
|
|
39329
39672
|
isValueChange,
|
|
39330
39673
|
matchMainState,
|
|
39674
|
+
openDataImport,
|
|
39331
39675
|
openRedirectView,
|
|
39332
39676
|
parseSubFieldInfo,
|
|
39333
39677
|
parseUserParams,
|
|
@@ -39352,6 +39696,7 @@ export {
|
|
|
39352
39696
|
registerUIActionProvider,
|
|
39353
39697
|
registerUILogicNodeProvider,
|
|
39354
39698
|
registerViewProvider,
|
|
39699
|
+
selectAndImport,
|
|
39355
39700
|
strContain,
|
|
39356
39701
|
testCond,
|
|
39357
39702
|
toLocalOpenWFRedirectView,
|