@ibiz-template/runtime 0.7.8 → 0.7.9
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 +655 -171
- package/dist/index.system.min.js +1 -1
- package/out/command/app/app-func/app-func.d.ts.map +1 -1
- package/out/command/app/app-func/app-func.js +12 -6
- package/out/controller/common/control/control.controller.d.ts.map +1 -1
- package/out/controller/common/control/control.controller.js +11 -3
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +4 -4
- package/out/controller/common/editor/code-list-editor.controller.d.ts.map +1 -1
- package/out/controller/common/editor/code-list-editor.controller.js +3 -1
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +16 -5
- package/out/controller/control/app-menu/app-menu.controller.d.ts.map +1 -1
- package/out/controller/control/app-menu/app-menu.controller.js +2 -2
- package/out/controller/control/app-menu-icon-view/app-menu-icon-view.controller.d.ts.map +1 -1
- package/out/controller/control/app-menu-icon-view/app-menu-icon-view.controller.js +2 -2
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +3 -1
- package/out/controller/control/calendar/calendar.service.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.service.js +2 -2
- package/out/controller/control/chart/chart.controller.d.ts.map +1 -1
- package/out/controller/control/chart/chart.controller.js +2 -2
- package/out/controller/control/chart/generator/bar-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/bar-series-generator.js +2 -2
- package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/base-series-generator.js +2 -2
- package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/chart-options-generator.js +6 -2
- package/out/controller/control/chart/generator/line-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/line-series-generator.js +2 -2
- package/out/controller/control/chart/generator/scatter-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/scatter-series-generator.js +2 -2
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts +6 -0
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/custom-dashboard.controller.js +9 -0
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.d.ts +12 -2
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.js +14 -0
- package/out/controller/control/data-view/data-view.controller.d.ts.map +1 -1
- package/out/controller/control/data-view/data-view.controller.js +5 -5
- package/out/controller/control/exp-bar/calendar-exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/calendar-exp-bar.controller.js +3 -1
- package/out/controller/control/exp-bar/exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/exp-bar.controller.js +4 -2
- package/out/controller/control/exp-bar/tree-exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/tree-exp-bar.controller.js +6 -2
- package/out/controller/control/form/edit-form/edit-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.controller.js +15 -9
- package/out/controller/control/form/edit-form/edit-form.service.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.service.js +1 -1
- package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form/form.controller.js +4 -1
- package/out/controller/control/form/form-detail/form-druipart/form-druipart.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-druipart/form-druipart.controller.js +1 -1
- 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 +3 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.js +4 -2
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.js +5 -3
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +3 -1
- package/out/controller/control/form/search-form/search-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/search-form/search-form.controller.js +2 -2
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +16 -14
- package/out/controller/control/gantt/gantt.service.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.service.js +3 -1
- package/out/controller/control/grid/grid/entity-schema.d.ts.map +1 -1
- package/out/controller/control/grid/grid/entity-schema.js +3 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +27 -17
- package/out/controller/control/grid/grid/grid.service.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.service.js +3 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +13 -5
- 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 +7 -2
- package/out/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.js +2 -2
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +9 -7
- package/out/controller/control/md-ctrl/md-ctrl.controller.d.ts.map +1 -1
- package/out/controller/control/md-ctrl/md-ctrl.controller.js +3 -3
- package/out/controller/control/medit-view-panel/medit-view-panel.controller.d.ts.map +1 -1
- package/out/controller/control/medit-view-panel/medit-view-panel.controller.js +4 -2
- 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/control/report-panel/generator/generator-factory.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/generator-factory.js +4 -2
- package/out/controller/control/search-bar/entity-schema.d.ts.map +1 -1
- package/out/controller/control/search-bar/entity-schema.js +6 -2
- package/out/controller/control/search-bar/search-bar-filter-items.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar-filter-items.controller.js +3 -1
- package/out/controller/control/search-bar/search-bar-filter.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar-filter.controller.js +1 -1
- package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.js +7 -3
- package/out/controller/control/toolbar/toolbar.controllerr.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controllerr.js +3 -1
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +5 -5
- package/out/controller/control/tree/tree.service.d.ts.map +1 -1
- package/out/controller/control/tree/tree.service.js +3 -1
- package/out/controller/control/tree-grid/tree-grid.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid/tree-grid.controller.js +2 -2
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.js +9 -3
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.controller.js +4 -2
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +7 -7
- package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts.map +1 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.js +11 -7
- package/out/controller/utils/button-state/ui-action-button.state.d.ts.map +1 -1
- package/out/controller/utils/button-state/ui-action-button.state.js +5 -1
- package/out/controller/utils/counter/counter.d.ts.map +1 -1
- package/out/controller/utils/counter/counter.js +1 -1
- 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 +3 -3
- package/out/controller/utils/value-default/value-default.d.ts.map +1 -1
- package/out/controller/utils/value-default/value-default.js +4 -2
- package/out/controller/utils/value-ex/value-ex.d.ts.map +1 -1
- package/out/controller/utils/value-ex/value-ex.js +1 -1
- package/out/controller/utils/value-rule/value-rule.d.ts.map +1 -1
- package/out/controller/utils/value-rule/value-rule.js +4 -1
- package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
- package/out/controller/utils/view-msg/view-msg-controller.js +6 -2
- package/out/interface/controller/event/control/i-dashboard.event.d.ts +9 -0
- package/out/interface/controller/event/control/i-dashboard.event.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -13864,7 +13864,11 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13864
13864
|
const app = await ibiz.hub.getAppAsync(context.srfappid);
|
|
13865
13865
|
const appFunc = app.getAppFunc(appFuncId);
|
|
13866
13866
|
if (!appFunc) {
|
|
13867
|
-
throw new RuntimeError26(
|
|
13867
|
+
throw new RuntimeError26(
|
|
13868
|
+
ibiz.i18n.t("runtime.command.app.notFindApplicationFunction", {
|
|
13869
|
+
appFuncId
|
|
13870
|
+
})
|
|
13871
|
+
);
|
|
13868
13872
|
}
|
|
13869
13873
|
const { navigateContexts, navigateParams, appFuncType } = appFunc;
|
|
13870
13874
|
const _context = context.clone();
|
|
@@ -13883,7 +13887,12 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13883
13887
|
case "CUSTOM":
|
|
13884
13888
|
return this.custom(appFunc, _context, _params);
|
|
13885
13889
|
default:
|
|
13886
|
-
throw new ModelError16(
|
|
13890
|
+
throw new ModelError16(
|
|
13891
|
+
appFunc,
|
|
13892
|
+
ibiz.i18n.t("runtime.command.app.notFindApplicationFunctionYype", {
|
|
13893
|
+
appFuncType
|
|
13894
|
+
})
|
|
13895
|
+
);
|
|
13887
13896
|
}
|
|
13888
13897
|
}
|
|
13889
13898
|
/**
|
|
@@ -13899,7 +13908,11 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13899
13908
|
*/
|
|
13900
13909
|
async openAppView(appFunc, context, params, opts) {
|
|
13901
13910
|
if (!appFunc.appViewId) {
|
|
13902
|
-
throw new RuntimeError26(
|
|
13911
|
+
throw new RuntimeError26(
|
|
13912
|
+
ibiz.i18n.t("runtime.command.app.notFindApplicationView", {
|
|
13913
|
+
appViewId: appFunc.appViewId
|
|
13914
|
+
})
|
|
13915
|
+
);
|
|
13903
13916
|
}
|
|
13904
13917
|
return ibiz.commands.execute(
|
|
13905
13918
|
OpenAppViewCommand.TAG,
|
|
@@ -13933,7 +13946,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13933
13946
|
*/
|
|
13934
13947
|
openPdAppFunc(appFunc, context, params) {
|
|
13935
13948
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
13936
|
-
throw new RuntimeError26("
|
|
13949
|
+
throw new RuntimeError26(ibiz.i18n.t("runtime.common.unrealized"));
|
|
13937
13950
|
}
|
|
13938
13951
|
/**
|
|
13939
13952
|
* 执行 JavaScript 脚本
|
|
@@ -13947,7 +13960,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13947
13960
|
*/
|
|
13948
13961
|
executeJavaScript(appFunc, context, params) {
|
|
13949
13962
|
ibiz.log.warn("executeJavaScript", appFunc, context, params);
|
|
13950
|
-
throw new RuntimeError26("
|
|
13963
|
+
throw new RuntimeError26(ibiz.i18n.t("runtime.common.unrealized"));
|
|
13951
13964
|
}
|
|
13952
13965
|
/**
|
|
13953
13966
|
* 自定义应用功能
|
|
@@ -13961,7 +13974,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
13961
13974
|
*/
|
|
13962
13975
|
custom(appFunc, context, params) {
|
|
13963
13976
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
13964
|
-
throw new RuntimeError26("
|
|
13977
|
+
throw new RuntimeError26(ibiz.i18n.t("runtime.common.unrealized"));
|
|
13965
13978
|
}
|
|
13966
13979
|
};
|
|
13967
13980
|
/**
|
|
@@ -14418,7 +14431,9 @@ var Counter = class {
|
|
|
14418
14431
|
return;
|
|
14419
14432
|
}
|
|
14420
14433
|
if (this.count === 0) {
|
|
14421
|
-
throw new RuntimeError28(
|
|
14434
|
+
throw new RuntimeError28(
|
|
14435
|
+
ibiz.i18n.t("runtime.controller.utils.counter.decrement")
|
|
14436
|
+
);
|
|
14422
14437
|
}
|
|
14423
14438
|
this.count -= 1;
|
|
14424
14439
|
if (this.count === 0) {
|
|
@@ -14774,7 +14789,14 @@ var UIActionButtonState = class {
|
|
|
14774
14789
|
const app = await ibiz.hub.getApp(this.appId);
|
|
14775
14790
|
if (this.appDeName && appDeId && !appDeId.includes(this.appDeName)) {
|
|
14776
14791
|
ibiz.log.warn(
|
|
14777
|
-
|
|
14792
|
+
ibiz.i18n.t(
|
|
14793
|
+
"runtime.controller.utils.buttonState.isFinitenconsistency",
|
|
14794
|
+
{
|
|
14795
|
+
uiActionId: this.uiActionId,
|
|
14796
|
+
appDeName: this.appDeName,
|
|
14797
|
+
appDeId
|
|
14798
|
+
}
|
|
14799
|
+
)
|
|
14778
14800
|
);
|
|
14779
14801
|
}
|
|
14780
14802
|
this.permitted = await app.authority.calcByDataAccessAction(
|
|
@@ -15079,7 +15101,10 @@ function generateEditorRules(editor) {
|
|
|
15079
15101
|
if (!isNil18(value) && value.length > maxLength) {
|
|
15080
15102
|
callback(
|
|
15081
15103
|
new Error(
|
|
15082
|
-
|
|
15104
|
+
ibiz.i18n.t("runtime.controller.utils.valueRule.length", {
|
|
15105
|
+
maxLength,
|
|
15106
|
+
length: value.length
|
|
15107
|
+
})
|
|
15083
15108
|
)
|
|
15084
15109
|
);
|
|
15085
15110
|
} else {
|
|
@@ -15161,7 +15186,9 @@ var ValueExUtil = class {
|
|
|
15161
15186
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
15162
15187
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
15163
15188
|
if (!objectNameField) {
|
|
15164
|
-
throw new RuntimeError30(
|
|
15189
|
+
throw new RuntimeError30(
|
|
15190
|
+
ibiz.i18n.t("runtime.controller.utils.valueEx.objectNameField")
|
|
15191
|
+
);
|
|
15165
15192
|
}
|
|
15166
15193
|
const textKey = objectNameField.toLowerCase();
|
|
15167
15194
|
if (valueType === "OBJECTS") {
|
|
@@ -15218,7 +15245,9 @@ function getDefaultValue(opts, origins) {
|
|
|
15218
15245
|
case "SESSION":
|
|
15219
15246
|
case "APPLICATION":
|
|
15220
15247
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
15221
|
-
throw new RuntimeError31(
|
|
15248
|
+
throw new RuntimeError31(
|
|
15249
|
+
ibiz.i18n.t("runtime.controller.utils.valueDefault.notExist")
|
|
15250
|
+
);
|
|
15222
15251
|
}
|
|
15223
15252
|
return ibiz.appData.context[defaultValue];
|
|
15224
15253
|
case "CONTEXT":
|
|
@@ -15226,7 +15255,12 @@ function getDefaultValue(opts, origins) {
|
|
|
15226
15255
|
case "UNIQUEID":
|
|
15227
15256
|
return createUUID8();
|
|
15228
15257
|
default:
|
|
15229
|
-
throw new ModelError17(
|
|
15258
|
+
throw new ModelError17(
|
|
15259
|
+
{},
|
|
15260
|
+
ibiz.i18n.t("runtime.controller.utils.valueDefault.notsupported", {
|
|
15261
|
+
valueType
|
|
15262
|
+
})
|
|
15263
|
+
);
|
|
15230
15264
|
}
|
|
15231
15265
|
}
|
|
15232
15266
|
|
|
@@ -15337,11 +15371,15 @@ async function importData2(opts) {
|
|
|
15337
15371
|
}
|
|
15338
15372
|
async function exportData(header, data, fileName) {
|
|
15339
15373
|
if (!ibiz.util.getExcelUtil) {
|
|
15340
|
-
throw new RuntimeError32(
|
|
15374
|
+
throw new RuntimeError32(
|
|
15375
|
+
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.notExist")
|
|
15376
|
+
);
|
|
15341
15377
|
}
|
|
15342
15378
|
const exportExcel = await ibiz.util.getExcelUtil();
|
|
15343
15379
|
if (!exportExcel) {
|
|
15344
|
-
throw new RuntimeError32(
|
|
15380
|
+
throw new RuntimeError32(
|
|
15381
|
+
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.loadError")
|
|
15382
|
+
);
|
|
15345
15383
|
}
|
|
15346
15384
|
try {
|
|
15347
15385
|
exportExcel.exportJsonToExcel({
|
|
@@ -15369,7 +15407,9 @@ async function getDataImportModels(opts) {
|
|
|
15369
15407
|
(item) => item.id === opts.deDataImportId
|
|
15370
15408
|
);
|
|
15371
15409
|
if (!deDataImport) {
|
|
15372
|
-
throw new RuntimeError32(
|
|
15410
|
+
throw new RuntimeError32(
|
|
15411
|
+
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.importData")
|
|
15412
|
+
);
|
|
15373
15413
|
}
|
|
15374
15414
|
return { deDataImport, appDataEntity };
|
|
15375
15415
|
}
|
|
@@ -15835,7 +15875,11 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
15835
15875
|
(item) => item.id === this.msgGroupId
|
|
15836
15876
|
);
|
|
15837
15877
|
if (!msgGroup) {
|
|
15838
|
-
throw new RuntimeError33(
|
|
15878
|
+
throw new RuntimeError33(
|
|
15879
|
+
ibiz.i18n.t("runtime.controller.utils.viewMsg.message", {
|
|
15880
|
+
msgGroupId: this.msgGroupId
|
|
15881
|
+
})
|
|
15882
|
+
);
|
|
15839
15883
|
}
|
|
15840
15884
|
this.msgGroup = msgGroup;
|
|
15841
15885
|
const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
|
|
@@ -15850,7 +15894,9 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
15850
15894
|
});
|
|
15851
15895
|
if (msgDetailsViewMsgIds.length) {
|
|
15852
15896
|
throw new RuntimeError33(
|
|
15853
|
-
|
|
15897
|
+
ibiz.i18n.t("runtime.controller.utils.viewMsg.noFound", {
|
|
15898
|
+
message: msgDetailsViewMsgIds.join(",")
|
|
15899
|
+
})
|
|
15854
15900
|
);
|
|
15855
15901
|
}
|
|
15856
15902
|
}
|
|
@@ -16100,7 +16146,12 @@ var ViewController = class extends BaseController {
|
|
|
16100
16146
|
*/
|
|
16101
16147
|
onActivated() {
|
|
16102
16148
|
this.state.activated = true;
|
|
16103
|
-
ibiz.log.debug(
|
|
16149
|
+
ibiz.log.debug(
|
|
16150
|
+
ibiz.i18n.t("runtime.controller.common.view.viewActivation", {
|
|
16151
|
+
name: this.model.name,
|
|
16152
|
+
id: this.model.id
|
|
16153
|
+
})
|
|
16154
|
+
);
|
|
16104
16155
|
}
|
|
16105
16156
|
/**
|
|
16106
16157
|
* 视图暂时停用
|
|
@@ -16110,7 +16161,12 @@ var ViewController = class extends BaseController {
|
|
|
16110
16161
|
*/
|
|
16111
16162
|
onDeactivated() {
|
|
16112
16163
|
this.state.activated = false;
|
|
16113
|
-
ibiz.log.debug(
|
|
16164
|
+
ibiz.log.debug(
|
|
16165
|
+
ibiz.i18n.t("runtime.controller.common.view.viewPause", {
|
|
16166
|
+
name: this.model.name,
|
|
16167
|
+
id: this.model.id
|
|
16168
|
+
})
|
|
16169
|
+
);
|
|
16114
16170
|
}
|
|
16115
16171
|
/**
|
|
16116
16172
|
* 初始化引擎
|
|
@@ -16126,7 +16182,10 @@ var ViewController = class extends BaseController {
|
|
|
16126
16182
|
if (ins) {
|
|
16127
16183
|
this.engines.push(ins);
|
|
16128
16184
|
} else {
|
|
16129
|
-
ibiz.log.warn(
|
|
16185
|
+
ibiz.log.warn(
|
|
16186
|
+
ibiz.i18n.t("runtime.controller.common.view.notFoundViewEngine"),
|
|
16187
|
+
engine2
|
|
16188
|
+
);
|
|
16130
16189
|
}
|
|
16131
16190
|
});
|
|
16132
16191
|
} else {
|
|
@@ -16248,7 +16307,12 @@ var ViewController = class extends BaseController {
|
|
|
16248
16307
|
ibiz.uiDomainManager.destroy(srfSessionId);
|
|
16249
16308
|
}
|
|
16250
16309
|
this.context.destroy();
|
|
16251
|
-
ibiz.log.debug(
|
|
16310
|
+
ibiz.log.debug(
|
|
16311
|
+
ibiz.i18n.t("runtime.controller.common.view.viewDestroy", {
|
|
16312
|
+
name: this.model.name,
|
|
16313
|
+
id: this.model.id
|
|
16314
|
+
})
|
|
16315
|
+
);
|
|
16252
16316
|
ibiz.mc.error.off(this.handleViewError);
|
|
16253
16317
|
}
|
|
16254
16318
|
/**
|
|
@@ -16300,7 +16364,11 @@ var ViewController = class extends BaseController {
|
|
|
16300
16364
|
async callUIAction(key, args) {
|
|
16301
16365
|
const result = this.call(key, args);
|
|
16302
16366
|
if (result === void 0) {
|
|
16303
|
-
throw new RuntimeError34(
|
|
16367
|
+
throw new RuntimeError34(
|
|
16368
|
+
ibiz.i18n.t("runtime.controller.common.view.noSupportBehavior", {
|
|
16369
|
+
key
|
|
16370
|
+
})
|
|
16371
|
+
);
|
|
16304
16372
|
}
|
|
16305
16373
|
return result;
|
|
16306
16374
|
}
|
|
@@ -16749,7 +16817,9 @@ var CodeListEditorController = class extends EditorController {
|
|
|
16749
16817
|
}
|
|
16750
16818
|
throw new RuntimeModelError25(
|
|
16751
16819
|
this.model,
|
|
16752
|
-
|
|
16820
|
+
ibiz.i18n.t("runtime.controller.common.editor.editorNotConfigured", {
|
|
16821
|
+
editorType: this.model.editorType
|
|
16822
|
+
})
|
|
16753
16823
|
);
|
|
16754
16824
|
}
|
|
16755
16825
|
};
|
|
@@ -16984,7 +17054,12 @@ var ControlController = class extends BaseController {
|
|
|
16984
17054
|
});
|
|
16985
17055
|
}
|
|
16986
17056
|
this.awaitActiveCbs.clear();
|
|
16987
|
-
ibiz.log.debug(
|
|
17057
|
+
ibiz.log.debug(
|
|
17058
|
+
ibiz.i18n.t("runtime.controller.common.control.componentActivation", {
|
|
17059
|
+
name: this.model.name,
|
|
17060
|
+
id: this.model.id
|
|
17061
|
+
})
|
|
17062
|
+
);
|
|
16988
17063
|
}
|
|
16989
17064
|
/**
|
|
16990
17065
|
* 部件暂时停用
|
|
@@ -16994,7 +17069,12 @@ var ControlController = class extends BaseController {
|
|
|
16994
17069
|
*/
|
|
16995
17070
|
onDeactivated() {
|
|
16996
17071
|
this.state.activated = false;
|
|
16997
|
-
ibiz.log.debug(
|
|
17072
|
+
ibiz.log.debug(
|
|
17073
|
+
ibiz.i18n.t("runtime.controller.common.control.componentPause", {
|
|
17074
|
+
name: this.model.name,
|
|
17075
|
+
id: this.model.id
|
|
17076
|
+
})
|
|
17077
|
+
);
|
|
16998
17078
|
}
|
|
16999
17079
|
/**
|
|
17000
17080
|
* 处理数据能力方法通用参数,返回能力执行最终使用的参数
|
|
@@ -17165,7 +17245,11 @@ var ControlController = class extends BaseController {
|
|
|
17165
17245
|
ibiz.mc.command.remove.send(msg, meta);
|
|
17166
17246
|
break;
|
|
17167
17247
|
default:
|
|
17168
|
-
throw new RuntimeError35(
|
|
17248
|
+
throw new RuntimeError35(
|
|
17249
|
+
ibiz.i18n.t("runtime.controller.common.control.unsupportedType", {
|
|
17250
|
+
type
|
|
17251
|
+
})
|
|
17252
|
+
);
|
|
17169
17253
|
}
|
|
17170
17254
|
}
|
|
17171
17255
|
/**
|
|
@@ -17462,12 +17546,16 @@ var MDControlController = class extends ControlController {
|
|
|
17462
17546
|
async remove(args) {
|
|
17463
17547
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
17464
17548
|
if (!(data == null ? void 0 : data.length)) {
|
|
17465
|
-
throw new RuntimeError36(
|
|
17549
|
+
throw new RuntimeError36(
|
|
17550
|
+
ibiz.i18n.t("runtime.controller.common.control.uncheckedData")
|
|
17551
|
+
);
|
|
17466
17552
|
}
|
|
17467
17553
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
17468
17554
|
const del = await ibiz.confirm.error({
|
|
17469
|
-
title: "
|
|
17470
|
-
desc:
|
|
17555
|
+
title: ibiz.i18n.t("runtime.controller.common.control.dataDeletion"),
|
|
17556
|
+
desc: ibiz.i18n.t(
|
|
17557
|
+
"runtime.controller.common.control.confirmDataDeletion"
|
|
17558
|
+
)
|
|
17471
17559
|
});
|
|
17472
17560
|
if (!del) {
|
|
17473
17561
|
return;
|
|
@@ -17617,7 +17705,10 @@ var MDControlController = class extends ControlController {
|
|
|
17617
17705
|
async importData() {
|
|
17618
17706
|
const { appDataEntityId, dedataImportId } = this.model;
|
|
17619
17707
|
if (!appDataEntityId || !dedataImportId) {
|
|
17620
|
-
throw new RuntimeModelError26(
|
|
17708
|
+
throw new RuntimeModelError26(
|
|
17709
|
+
this.model,
|
|
17710
|
+
ibiz.i18n.t("runtime.controller.common.control.noImportModel")
|
|
17711
|
+
);
|
|
17621
17712
|
}
|
|
17622
17713
|
await openDataImport({
|
|
17623
17714
|
appDataEntityId,
|
|
@@ -17750,7 +17841,9 @@ var AppMenuController = class extends ControlController {
|
|
|
17750
17841
|
childrenFields: ["appMenuItems"]
|
|
17751
17842
|
});
|
|
17752
17843
|
if (!menuItem) {
|
|
17753
|
-
throw new RuntimeError37(
|
|
17844
|
+
throw new RuntimeError37(
|
|
17845
|
+
ibiz.i18n.t("runtime.controller.control.menu.notFindMenu", { id })
|
|
17846
|
+
);
|
|
17754
17847
|
}
|
|
17755
17848
|
this.evt.emit("onClick", {
|
|
17756
17849
|
eventArg: id,
|
|
@@ -17761,7 +17854,10 @@ var AppMenuController = class extends ControlController {
|
|
|
17761
17854
|
return provider.onClick(menuItem, event, this);
|
|
17762
17855
|
}
|
|
17763
17856
|
if (!menuItem.appFuncId) {
|
|
17764
|
-
throw new RuntimeModelError27(
|
|
17857
|
+
throw new RuntimeModelError27(
|
|
17858
|
+
menuItem,
|
|
17859
|
+
ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
|
|
17860
|
+
);
|
|
17765
17861
|
}
|
|
17766
17862
|
const tempContext = this.context.clone();
|
|
17767
17863
|
tempContext.srfappid = menuItem.appId || ibiz.env.appId;
|
|
@@ -17890,14 +17986,19 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
17890
17986
|
childrenFields: ["appMenuItems"]
|
|
17891
17987
|
});
|
|
17892
17988
|
if (!menuItem) {
|
|
17893
|
-
throw new RuntimeError38(
|
|
17989
|
+
throw new RuntimeError38(
|
|
17990
|
+
ibiz.i18n.t("runtime.controller.control.menu.notFindMenu", { id })
|
|
17991
|
+
);
|
|
17894
17992
|
}
|
|
17895
17993
|
this.evt.emit("onClick", {
|
|
17896
17994
|
eventArg: id,
|
|
17897
17995
|
event
|
|
17898
17996
|
});
|
|
17899
17997
|
if (!menuItem.appFuncId) {
|
|
17900
|
-
throw new RuntimeModelError28(
|
|
17998
|
+
throw new RuntimeModelError28(
|
|
17999
|
+
menuItem,
|
|
18000
|
+
ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
|
|
18001
|
+
);
|
|
17901
18002
|
}
|
|
17902
18003
|
const tempContext = this.context.clone();
|
|
17903
18004
|
if (this.routeDepth === 1) {
|
|
@@ -17975,11 +18076,15 @@ var CalendarService = class extends MDControlService {
|
|
|
17975
18076
|
setCalendarConfigData(items, index) {
|
|
17976
18077
|
const { sysCalendarItems } = this.model;
|
|
17977
18078
|
if (!sysCalendarItems) {
|
|
17978
|
-
throw new RuntimeError39(
|
|
18079
|
+
throw new RuntimeError39(
|
|
18080
|
+
ibiz.i18n.t("runtime.controller.control.calendar.notFoundModel")
|
|
18081
|
+
);
|
|
17979
18082
|
}
|
|
17980
18083
|
const calendarItem = sysCalendarItems[index];
|
|
17981
18084
|
if (!calendarItem) {
|
|
17982
|
-
throw new RuntimeError39(
|
|
18085
|
+
throw new RuntimeError39(
|
|
18086
|
+
ibiz.i18n.t("runtime.controller.control.calendar.notFoundModel")
|
|
18087
|
+
);
|
|
17983
18088
|
}
|
|
17984
18089
|
return items.map((item) => {
|
|
17985
18090
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -18098,7 +18203,9 @@ var CalendarController = class extends MDControlController {
|
|
|
18098
18203
|
if (result === -1) {
|
|
18099
18204
|
throw new RuntimeModelError29(
|
|
18100
18205
|
this.model,
|
|
18101
|
-
|
|
18206
|
+
ibiz.i18n.t("runtime.controller.control.calendar.missingViewLogic", {
|
|
18207
|
+
itemType: item.itemType.toLowerCase()
|
|
18208
|
+
})
|
|
18102
18209
|
);
|
|
18103
18210
|
} else {
|
|
18104
18211
|
return {
|
|
@@ -18320,10 +18427,16 @@ var BaseSeriesGenerator = class {
|
|
|
18320
18427
|
this.chartGenerator = chartGenerator;
|
|
18321
18428
|
const { chartSeriesEncode, caption, id, userParam } = model;
|
|
18322
18429
|
if (!model.catalogField) {
|
|
18323
|
-
throw new RuntimeModelError30(
|
|
18430
|
+
throw new RuntimeModelError30(
|
|
18431
|
+
model,
|
|
18432
|
+
ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
|
|
18433
|
+
);
|
|
18324
18434
|
}
|
|
18325
18435
|
if (!model.valueField) {
|
|
18326
|
-
throw new RuntimeModelError30(
|
|
18436
|
+
throw new RuntimeModelError30(
|
|
18437
|
+
model,
|
|
18438
|
+
ibiz.i18n.t("runtime.controller.control.chart.missingValue")
|
|
18439
|
+
);
|
|
18327
18440
|
}
|
|
18328
18441
|
this.catalogField = chartGenerator.getFieldKey(model.catalogField);
|
|
18329
18442
|
this.valueField = chartGenerator.getFieldKey(model.valueField);
|
|
@@ -18747,10 +18860,16 @@ var BaseSeriesGenerator = class {
|
|
|
18747
18860
|
var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
18748
18861
|
calcStaticOptions() {
|
|
18749
18862
|
if (this.xAxisIndex === void 0) {
|
|
18750
|
-
throw new RuntimeModelError31(
|
|
18863
|
+
throw new RuntimeModelError31(
|
|
18864
|
+
this.model,
|
|
18865
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredX")
|
|
18866
|
+
);
|
|
18751
18867
|
}
|
|
18752
18868
|
if (this.yAxisIndex === void 0) {
|
|
18753
|
-
throw new RuntimeModelError31(
|
|
18869
|
+
throw new RuntimeModelError31(
|
|
18870
|
+
this.model,
|
|
18871
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredY")
|
|
18872
|
+
);
|
|
18754
18873
|
}
|
|
18755
18874
|
const options = super.calcStaticOptions();
|
|
18756
18875
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -18770,10 +18889,16 @@ import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
|
18770
18889
|
var BarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
18771
18890
|
calcStaticOptions() {
|
|
18772
18891
|
if (this.xAxisIndex === void 0) {
|
|
18773
|
-
throw new RuntimeModelError32(
|
|
18892
|
+
throw new RuntimeModelError32(
|
|
18893
|
+
this.model,
|
|
18894
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredX")
|
|
18895
|
+
);
|
|
18774
18896
|
}
|
|
18775
18897
|
if (this.yAxisIndex === void 0) {
|
|
18776
|
-
throw new RuntimeModelError32(
|
|
18898
|
+
throw new RuntimeModelError32(
|
|
18899
|
+
this.model,
|
|
18900
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredY")
|
|
18901
|
+
);
|
|
18777
18902
|
}
|
|
18778
18903
|
const options = super.calcStaticOptions();
|
|
18779
18904
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -18830,10 +18955,16 @@ import { RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
|
|
|
18830
18955
|
var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
|
|
18831
18956
|
calcStaticOptions() {
|
|
18832
18957
|
if (this.xAxisIndex === void 0) {
|
|
18833
|
-
throw new RuntimeModelError33(
|
|
18958
|
+
throw new RuntimeModelError33(
|
|
18959
|
+
this.model,
|
|
18960
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredX")
|
|
18961
|
+
);
|
|
18834
18962
|
}
|
|
18835
18963
|
if (this.yAxisIndex === void 0) {
|
|
18836
|
-
throw new RuntimeModelError33(
|
|
18964
|
+
throw new RuntimeModelError33(
|
|
18965
|
+
this.model,
|
|
18966
|
+
ibiz.i18n.t("runtime.controller.control.chart.notConfiguredY")
|
|
18967
|
+
);
|
|
18837
18968
|
}
|
|
18838
18969
|
const options = super.calcStaticOptions();
|
|
18839
18970
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -19076,7 +19207,11 @@ var ChartOptionsGenerator2 = class {
|
|
|
19076
19207
|
seriesGenerator = new RadarSeriesGenerator(series, this);
|
|
19077
19208
|
break;
|
|
19078
19209
|
default:
|
|
19079
|
-
ibiz.log.error(
|
|
19210
|
+
ibiz.log.error(
|
|
19211
|
+
ibiz.i18n.t("runtime.controller.control.chart.notSupportSequence", {
|
|
19212
|
+
seriesType: series.seriesType
|
|
19213
|
+
})
|
|
19214
|
+
);
|
|
19080
19215
|
break;
|
|
19081
19216
|
}
|
|
19082
19217
|
if (seriesGenerator) {
|
|
@@ -19274,7 +19409,11 @@ var ChartOptionsGenerator2 = class {
|
|
|
19274
19409
|
getChartDataByParams(params) {
|
|
19275
19410
|
const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
|
|
19276
19411
|
if (!generator) {
|
|
19277
|
-
throw new RuntimeError40(
|
|
19412
|
+
throw new RuntimeError40(
|
|
19413
|
+
ibiz.i18n.t("runtime.controller.control.chart.notFindSequence", {
|
|
19414
|
+
seriesIndex: params.seriesIndex
|
|
19415
|
+
})
|
|
19416
|
+
);
|
|
19278
19417
|
}
|
|
19279
19418
|
return generator.getChartDataByParams(params);
|
|
19280
19419
|
}
|
|
@@ -19554,10 +19693,14 @@ var ChartController = class extends MDControlController {
|
|
|
19554
19693
|
*/
|
|
19555
19694
|
updateChart() {
|
|
19556
19695
|
if (!this.chart) {
|
|
19557
|
-
throw new RuntimeError41(
|
|
19696
|
+
throw new RuntimeError41(
|
|
19697
|
+
ibiz.i18n.t("runtime.controller.control.chart.notInitialised")
|
|
19698
|
+
);
|
|
19558
19699
|
}
|
|
19559
19700
|
if (!this.options) {
|
|
19560
|
-
throw new RuntimeError41(
|
|
19701
|
+
throw new RuntimeError41(
|
|
19702
|
+
ibiz.i18n.t("runtime.controller.control.chart.notCalculated")
|
|
19703
|
+
);
|
|
19561
19704
|
}
|
|
19562
19705
|
this.chart.setOption(this.options, { notMerge: true });
|
|
19563
19706
|
this.resizeChart();
|
|
@@ -22003,7 +22146,11 @@ var ToolbarController = class extends ControlController {
|
|
|
22003
22146
|
const actionId = item.uiactionId;
|
|
22004
22147
|
const uiAction = await getUIActionById(actionId, item.appId);
|
|
22005
22148
|
if (!uiAction) {
|
|
22006
|
-
throw new RuntimeError50(
|
|
22149
|
+
throw new RuntimeError50(
|
|
22150
|
+
ibiz.i18n.t("runtime.controller.control.toolbar.notFound", {
|
|
22151
|
+
actionId
|
|
22152
|
+
})
|
|
22153
|
+
);
|
|
22007
22154
|
}
|
|
22008
22155
|
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
22009
22156
|
if (enableLoading) {
|
|
@@ -22460,6 +22607,15 @@ var CustomDashboardController = class {
|
|
|
22460
22607
|
}
|
|
22461
22608
|
return { model: this.customModelData, config: this.portletConfig };
|
|
22462
22609
|
}
|
|
22610
|
+
/**
|
|
22611
|
+
* 重置自定义布局模型
|
|
22612
|
+
*
|
|
22613
|
+
* @memberof CustomDashboardController
|
|
22614
|
+
*/
|
|
22615
|
+
async resetCustomModelData() {
|
|
22616
|
+
this.portletConfig = {};
|
|
22617
|
+
return this.saveCustomModelData([]);
|
|
22618
|
+
}
|
|
22463
22619
|
/**
|
|
22464
22620
|
* 保存自定义布局模型数据
|
|
22465
22621
|
*
|
|
@@ -22788,6 +22944,20 @@ var ContainerPortletController = class extends PortletPartController {
|
|
|
22788
22944
|
|
|
22789
22945
|
// src/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.ts
|
|
22790
22946
|
var ViewPortletController = class extends PortletPartController {
|
|
22947
|
+
/**
|
|
22948
|
+
* 内容控制器
|
|
22949
|
+
*
|
|
22950
|
+
* @author tony001
|
|
22951
|
+
* @date 2024-05-07 14:05:02
|
|
22952
|
+
* @readonly
|
|
22953
|
+
* @type {(IController | undefined)}
|
|
22954
|
+
*/
|
|
22955
|
+
get contentController() {
|
|
22956
|
+
const { portletAppView } = this.model;
|
|
22957
|
+
if (portletAppView && portletAppView.codeName) {
|
|
22958
|
+
return this.dashboard.getController(portletAppView.codeName);
|
|
22959
|
+
}
|
|
22960
|
+
}
|
|
22791
22961
|
/**
|
|
22792
22962
|
* 刷新门户部件
|
|
22793
22963
|
*
|
|
@@ -23068,10 +23238,17 @@ var DataViewControlController = class extends MDControlController {
|
|
|
23068
23238
|
const optItemModel = this.getOptItemModel();
|
|
23069
23239
|
if (optItemModel) {
|
|
23070
23240
|
if (!optItemModel.deuiactionGroup) {
|
|
23071
|
-
throw new RuntimeModelError54(
|
|
23241
|
+
throw new RuntimeModelError54(
|
|
23242
|
+
this.model,
|
|
23243
|
+
ibiz.i18n.t("runtime.controller.control.dataView.noBehaviourGroup")
|
|
23244
|
+
);
|
|
23072
23245
|
}
|
|
23073
23246
|
if (!((_a = optItemModel.deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
23074
|
-
ibiz.log.debug(
|
|
23247
|
+
ibiz.log.debug(
|
|
23248
|
+
ibiz.i18n.t(
|
|
23249
|
+
"runtime.controller.control.dataView.noBehaviourGroupAction"
|
|
23250
|
+
)
|
|
23251
|
+
);
|
|
23075
23252
|
return containerState;
|
|
23076
23253
|
}
|
|
23077
23254
|
optItemModel.deuiactionGroup.uiactionGroupDetails.forEach((detail) => {
|
|
@@ -23121,7 +23298,12 @@ var DataViewControlController = class extends MDControlController {
|
|
|
23121
23298
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
23122
23299
|
if (enableGroup && groupMode) {
|
|
23123
23300
|
if (!groupAppDEFieldId) {
|
|
23124
|
-
throw new RuntimeModelError54(
|
|
23301
|
+
throw new RuntimeModelError54(
|
|
23302
|
+
this.model,
|
|
23303
|
+
ibiz.i18n.t(
|
|
23304
|
+
"runtime.controller.control.dataView.propertiesNotConfigured"
|
|
23305
|
+
)
|
|
23306
|
+
);
|
|
23125
23307
|
}
|
|
23126
23308
|
if (groupMode === "AUTO") {
|
|
23127
23309
|
this.handleAutoGroup();
|
|
@@ -23188,7 +23370,10 @@ var DataViewControlController = class extends MDControlController {
|
|
|
23188
23370
|
async handleCodeListGroup() {
|
|
23189
23371
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
23190
23372
|
if (!groupCodeListId) {
|
|
23191
|
-
throw new RuntimeModelError54(
|
|
23373
|
+
throw new RuntimeModelError54(
|
|
23374
|
+
this.model,
|
|
23375
|
+
ibiz.i18n.t("runtime.controller.control.dataView.tableNotConfigured")
|
|
23376
|
+
);
|
|
23192
23377
|
}
|
|
23193
23378
|
const { items } = this.state;
|
|
23194
23379
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -23294,7 +23479,10 @@ var DataViewControlController = class extends MDControlController {
|
|
|
23294
23479
|
caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
23295
23480
|
}
|
|
23296
23481
|
if (!item.appDEFieldId) {
|
|
23297
|
-
throw new RuntimeModelError54(
|
|
23482
|
+
throw new RuntimeModelError54(
|
|
23483
|
+
item,
|
|
23484
|
+
ibiz.i18n.t("runtime.controller.control.dataView.sortingItems")
|
|
23485
|
+
);
|
|
23298
23486
|
}
|
|
23299
23487
|
const tempItem = {
|
|
23300
23488
|
caption,
|
|
@@ -23372,7 +23560,9 @@ var ExpBarControlController = class extends ControlController {
|
|
|
23372
23560
|
if (!controller) {
|
|
23373
23561
|
throw new RuntimeModelError55(
|
|
23374
23562
|
this.model,
|
|
23375
|
-
|
|
23563
|
+
ibiz.i18n.t("runtime.controller.control.expBar.unableMore", {
|
|
23564
|
+
xdataControlName: this.model.xdataControlName
|
|
23565
|
+
})
|
|
23376
23566
|
);
|
|
23377
23567
|
}
|
|
23378
23568
|
return controller;
|
|
@@ -23646,7 +23836,9 @@ var ExpBarControlController = class extends ControlController {
|
|
|
23646
23836
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
23647
23837
|
return this.XDataModel.navAppViewId;
|
|
23648
23838
|
}
|
|
23649
|
-
throw new RuntimeError51(
|
|
23839
|
+
throw new RuntimeError51(
|
|
23840
|
+
ibiz.i18n.t("runtime.controller.control.expBar.multiNode")
|
|
23841
|
+
);
|
|
23650
23842
|
}
|
|
23651
23843
|
/**
|
|
23652
23844
|
* 获取导航视图
|
|
@@ -23736,7 +23928,9 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
23736
23928
|
if (!controller) {
|
|
23737
23929
|
throw new RuntimeModelError56(
|
|
23738
23930
|
this.model,
|
|
23739
|
-
|
|
23931
|
+
ibiz.i18n.t("runtime.controller.control.expBar.unableMore", {
|
|
23932
|
+
xdataControlName: this.model.xdataControlName
|
|
23933
|
+
})
|
|
23740
23934
|
);
|
|
23741
23935
|
}
|
|
23742
23936
|
return controller;
|
|
@@ -23814,7 +24008,9 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
23814
24008
|
if (!controller) {
|
|
23815
24009
|
throw new RuntimeModelError57(
|
|
23816
24010
|
this.model,
|
|
23817
|
-
|
|
24011
|
+
ibiz.i18n.t("runtime.controller.control.expBar.unableMore", {
|
|
24012
|
+
xdataControlName: this.model.xdataControlName
|
|
24013
|
+
})
|
|
23818
24014
|
);
|
|
23819
24015
|
}
|
|
23820
24016
|
return controller;
|
|
@@ -23878,7 +24074,11 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
23878
24074
|
const deData = node._deData || node;
|
|
23879
24075
|
const nodeModel = this.getNodeModel(node._nodeId);
|
|
23880
24076
|
if (!nodeModel) {
|
|
23881
|
-
throw new RuntimeError52(
|
|
24077
|
+
throw new RuntimeError52(
|
|
24078
|
+
ibiz.i18n.t("runtime.controller.control.expBar.notFindNodeModel", {
|
|
24079
|
+
nodeId: node._nodeId
|
|
24080
|
+
})
|
|
24081
|
+
);
|
|
23882
24082
|
}
|
|
23883
24083
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
23884
24084
|
result.context.currentSrfNav = nodeId;
|
|
@@ -24212,7 +24412,13 @@ var FormController = class extends ControlController {
|
|
|
24212
24412
|
if (form.details[detail.id]) {
|
|
24213
24413
|
throw new RuntimeModelError58(
|
|
24214
24414
|
detail,
|
|
24215
|
-
|
|
24415
|
+
ibiz.i18n.t(
|
|
24416
|
+
"runtime.controller.control.form.initializationException",
|
|
24417
|
+
{
|
|
24418
|
+
id: detail.id,
|
|
24419
|
+
detailType: detail.detailType
|
|
24420
|
+
}
|
|
24421
|
+
)
|
|
24216
24422
|
);
|
|
24217
24423
|
}
|
|
24218
24424
|
form.providers[detail.id] = detailProvider;
|
|
@@ -24709,7 +24915,9 @@ var SearchFormController = class extends FormController {
|
|
|
24709
24915
|
applyStoredFilter(index) {
|
|
24710
24916
|
const filter = this.state.storedFilters[index];
|
|
24711
24917
|
if (!filter) {
|
|
24712
|
-
throw new RuntimeError53(
|
|
24918
|
+
throw new RuntimeError53(
|
|
24919
|
+
ibiz.i18n.t("runtime.controller.control.form.searchTerms")
|
|
24920
|
+
);
|
|
24713
24921
|
}
|
|
24714
24922
|
if (filter.data) {
|
|
24715
24923
|
Object.assign(this.data, filter.data);
|
|
@@ -24725,7 +24933,9 @@ var SearchFormController = class extends FormController {
|
|
|
24725
24933
|
async removeStoredFilter(index) {
|
|
24726
24934
|
const filter = this.state.storedFilters[index];
|
|
24727
24935
|
if (!filter) {
|
|
24728
|
-
throw new RuntimeError53(
|
|
24936
|
+
throw new RuntimeError53(
|
|
24937
|
+
ibiz.i18n.t("runtime.controller.control.form.saveSearch")
|
|
24938
|
+
);
|
|
24729
24939
|
}
|
|
24730
24940
|
this.state.storedFilters.splice(index, 1);
|
|
24731
24941
|
await this.saveConfig();
|
|
@@ -25436,7 +25646,10 @@ var FormDRUIPartController = class extends FormDetailController {
|
|
|
25436
25646
|
if (["LOAD", "LOADDRAFT"].includes(event.actionType)) {
|
|
25437
25647
|
return;
|
|
25438
25648
|
}
|
|
25439
|
-
ibiz.log.debug(
|
|
25649
|
+
ibiz.log.debug(
|
|
25650
|
+
ibiz.i18n.t("runtime.controller.control.form.relationshipInterface"),
|
|
25651
|
+
event
|
|
25652
|
+
);
|
|
25440
25653
|
if (this.model.deformItemUpdateId) {
|
|
25441
25654
|
this.form.updateFormItem(
|
|
25442
25655
|
this.model.deformItemUpdateId
|
|
@@ -25821,7 +26034,9 @@ var FormItemController = class extends FormDetailController {
|
|
|
25821
26034
|
return true;
|
|
25822
26035
|
}
|
|
25823
26036
|
if (this.state.required && (typeof this.data[this.name] === "string" ? isNilOrEmpty7(this.data[this.name].trimEnd()) : isNilOrEmpty7(this.data[this.name]))) {
|
|
25824
|
-
this.state.error =
|
|
26037
|
+
this.state.error = ibiz.i18n.t("runtime.controller.control.form.fillIn", {
|
|
26038
|
+
caption: this.model.caption || ""
|
|
26039
|
+
});
|
|
25825
26040
|
return false;
|
|
25826
26041
|
}
|
|
25827
26042
|
if (this.validator) {
|
|
@@ -26095,7 +26310,10 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
26095
26310
|
await super.onInit();
|
|
26096
26311
|
const { contentControl } = this.model;
|
|
26097
26312
|
if (!contentControl) {
|
|
26098
|
-
throw new RuntimeModelError59(
|
|
26313
|
+
throw new RuntimeModelError59(
|
|
26314
|
+
this.model,
|
|
26315
|
+
ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
|
|
26316
|
+
);
|
|
26099
26317
|
}
|
|
26100
26318
|
if (contentControl.controlType === "GRID") {
|
|
26101
26319
|
mergeInLeft(contentControl, {
|
|
@@ -26147,7 +26365,9 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
26147
26365
|
} else {
|
|
26148
26366
|
throw new ModelError27(
|
|
26149
26367
|
this.model,
|
|
26150
|
-
|
|
26368
|
+
ibiz.i18n.t("runtime.controller.control.form.multiDataAddData", {
|
|
26369
|
+
contentType: this.model.contentType
|
|
26370
|
+
})
|
|
26151
26371
|
);
|
|
26152
26372
|
}
|
|
26153
26373
|
}
|
|
@@ -26155,7 +26375,9 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
26155
26375
|
if (this.mdController) {
|
|
26156
26376
|
this.mdController.refresh();
|
|
26157
26377
|
} else {
|
|
26158
|
-
ibiz.log.debug(
|
|
26378
|
+
ibiz.log.debug(
|
|
26379
|
+
ibiz.i18n.t("runtime.controller.control.form.mdControllerNotExist")
|
|
26380
|
+
);
|
|
26159
26381
|
}
|
|
26160
26382
|
}
|
|
26161
26383
|
/**
|
|
@@ -26233,7 +26455,10 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
26233
26455
|
super.onInit();
|
|
26234
26456
|
const { contentControl } = this.model;
|
|
26235
26457
|
if (!contentControl) {
|
|
26236
|
-
throw new RuntimeModelError60(
|
|
26458
|
+
throw new RuntimeModelError60(
|
|
26459
|
+
this.model,
|
|
26460
|
+
ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
|
|
26461
|
+
);
|
|
26237
26462
|
}
|
|
26238
26463
|
contentControl.enableAutoSave = this.enableCreate || this.enableUpdate;
|
|
26239
26464
|
const controlProvider = await getControlProvider(contentControl);
|
|
@@ -26309,7 +26534,11 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
26309
26534
|
async remove(id) {
|
|
26310
26535
|
const controller = this.formMap.get(id);
|
|
26311
26536
|
if (!controller) {
|
|
26312
|
-
throw new RuntimeError54(
|
|
26537
|
+
throw new RuntimeError54(
|
|
26538
|
+
ibiz.i18n.t("runtime.controller.control.form.noFoundFormController", {
|
|
26539
|
+
id
|
|
26540
|
+
})
|
|
26541
|
+
);
|
|
26313
26542
|
}
|
|
26314
26543
|
await controller.remove();
|
|
26315
26544
|
const index = this.state.items.findIndex((item) => item.id === id);
|
|
@@ -26415,7 +26644,9 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
26415
26644
|
default:
|
|
26416
26645
|
throw new ModelError28(
|
|
26417
26646
|
this.model,
|
|
26418
|
-
|
|
26647
|
+
ibiz.i18n.t("runtime.controller.control.form.repeaterNotSupported", {
|
|
26648
|
+
detailStyle: this.model.detailStyle
|
|
26649
|
+
})
|
|
26419
26650
|
);
|
|
26420
26651
|
}
|
|
26421
26652
|
this.prepareRepeatedForm();
|
|
@@ -26759,7 +26990,10 @@ var EditFormService = class extends FormService {
|
|
|
26759
26990
|
const wizardForm = this.model;
|
|
26760
26991
|
const methodName = (_a = wizardForm.goBackControlAction) == null ? void 0 : _a.appDEMethodId;
|
|
26761
26992
|
if (!methodName) {
|
|
26762
|
-
throw new RuntimeModelError61(
|
|
26993
|
+
throw new RuntimeModelError61(
|
|
26994
|
+
this.model,
|
|
26995
|
+
ibiz.i18n.t("runtime.controller.control.form.lackBehavior")
|
|
26996
|
+
);
|
|
26763
26997
|
}
|
|
26764
26998
|
let res = await this.exec(
|
|
26765
26999
|
methodName,
|
|
@@ -27091,7 +27325,9 @@ var EditFormController = class extends FormController {
|
|
|
27091
27325
|
}
|
|
27092
27326
|
const isValid = await this.validate();
|
|
27093
27327
|
if (!isValid) {
|
|
27094
|
-
throw new RuntimeError55(
|
|
27328
|
+
throw new RuntimeError55(
|
|
27329
|
+
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
27330
|
+
);
|
|
27095
27331
|
}
|
|
27096
27332
|
if (!silent) {
|
|
27097
27333
|
await this.startLoading();
|
|
@@ -27132,7 +27368,10 @@ var EditFormController = class extends FormController {
|
|
|
27132
27368
|
}
|
|
27133
27369
|
if (!silent) {
|
|
27134
27370
|
this.actionNotification("".concat(isCreate ? "CREATE" : "UPDATE", "SUCCESS"), {
|
|
27135
|
-
default:
|
|
27371
|
+
default: ibiz.i18n.t(
|
|
27372
|
+
"runtime.controller.control.form.savedSuccessfully",
|
|
27373
|
+
{ srfmajortext: this.data.srfmajortext || "" }
|
|
27374
|
+
)
|
|
27136
27375
|
});
|
|
27137
27376
|
}
|
|
27138
27377
|
this.emitDEDataChange(isCreate ? "create" : "update", res.data);
|
|
@@ -27152,8 +27391,8 @@ var EditFormController = class extends FormController {
|
|
|
27152
27391
|
await this.evt.emit("onBeforeRemove", { args: this.data });
|
|
27153
27392
|
if (this.data.srfuf === 1 /* UPDATE */) {
|
|
27154
27393
|
ok = await ibiz.modal.confirm({
|
|
27155
|
-
title: "
|
|
27156
|
-
desc: "
|
|
27394
|
+
title: ibiz.i18n.t("runtime.controller.control.form.prompt"),
|
|
27395
|
+
desc: ibiz.i18n.t("runtime.controller.control.form.deletion")
|
|
27157
27396
|
});
|
|
27158
27397
|
if (!ok) {
|
|
27159
27398
|
return false;
|
|
@@ -27213,7 +27452,11 @@ var EditFormController = class extends FormController {
|
|
|
27213
27452
|
(item) => item.id === formItemUpdateId
|
|
27214
27453
|
);
|
|
27215
27454
|
if (!formItemUpdate) {
|
|
27216
|
-
throw new RuntimeError55(
|
|
27455
|
+
throw new RuntimeError55(
|
|
27456
|
+
ibiz.i18n.t("runtime.controller.control.form.itemUpdate", {
|
|
27457
|
+
formItemUpdateId
|
|
27458
|
+
})
|
|
27459
|
+
);
|
|
27217
27460
|
}
|
|
27218
27461
|
const {
|
|
27219
27462
|
appDEMethodId,
|
|
@@ -27272,7 +27515,9 @@ var EditFormController = class extends FormController {
|
|
|
27272
27515
|
async wfStart(args) {
|
|
27273
27516
|
const isValid = await this.validate();
|
|
27274
27517
|
if (!isValid) {
|
|
27275
|
-
throw new RuntimeError55(
|
|
27518
|
+
throw new RuntimeError55(
|
|
27519
|
+
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
27520
|
+
);
|
|
27276
27521
|
}
|
|
27277
27522
|
await this.startLoading();
|
|
27278
27523
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -27288,7 +27533,9 @@ var EditFormController = class extends FormController {
|
|
|
27288
27533
|
} finally {
|
|
27289
27534
|
await this.endLoading();
|
|
27290
27535
|
}
|
|
27291
|
-
this.actionNotification("WFSTARTSUCCESS", {
|
|
27536
|
+
this.actionNotification("WFSTARTSUCCESS", {
|
|
27537
|
+
default: ibiz.i18n.t("runtime.controller.control.form.processStarted")
|
|
27538
|
+
});
|
|
27292
27539
|
}
|
|
27293
27540
|
/**
|
|
27294
27541
|
* 工作流提交(调用前先确保调用保存)
|
|
@@ -27301,7 +27548,9 @@ var EditFormController = class extends FormController {
|
|
|
27301
27548
|
async wfSubmit(args) {
|
|
27302
27549
|
const isValid = await this.validate();
|
|
27303
27550
|
if (!isValid) {
|
|
27304
|
-
throw new RuntimeError55(
|
|
27551
|
+
throw new RuntimeError55(
|
|
27552
|
+
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
27553
|
+
);
|
|
27305
27554
|
}
|
|
27306
27555
|
await this.startLoading();
|
|
27307
27556
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -27317,7 +27566,9 @@ var EditFormController = class extends FormController {
|
|
|
27317
27566
|
} finally {
|
|
27318
27567
|
await this.endLoading();
|
|
27319
27568
|
}
|
|
27320
|
-
this.actionNotification("WFSUBMITSUCCESS", {
|
|
27569
|
+
this.actionNotification("WFSUBMITSUCCESS", {
|
|
27570
|
+
default: ibiz.i18n.t("runtime.controller.control.form.processSubmitted")
|
|
27571
|
+
});
|
|
27321
27572
|
}
|
|
27322
27573
|
async dataChangeNotify(names) {
|
|
27323
27574
|
await super.dataChangeNotify(names);
|
|
@@ -27722,7 +27973,9 @@ var GridService = class extends MDControlService {
|
|
|
27722
27973
|
} else {
|
|
27723
27974
|
throw new RuntimeModelError62(
|
|
27724
27975
|
column,
|
|
27725
|
-
"
|
|
27976
|
+
ibiz.i18n.t("runtime.controller.control.grid.corresponding", {
|
|
27977
|
+
deField
|
|
27978
|
+
})
|
|
27726
27979
|
);
|
|
27727
27980
|
}
|
|
27728
27981
|
} else {
|
|
@@ -27786,7 +28039,11 @@ async function calcColumnModelBySchema(json, c) {
|
|
|
27786
28039
|
type = "number";
|
|
27787
28040
|
break;
|
|
27788
28041
|
default:
|
|
27789
|
-
ibiz.log.error(
|
|
28042
|
+
ibiz.log.error(
|
|
28043
|
+
ibiz.i18n.t("runtime.controller.control.grid.unsupported", {
|
|
28044
|
+
type: properties[key].type
|
|
28045
|
+
})
|
|
28046
|
+
);
|
|
27790
28047
|
return;
|
|
27791
28048
|
}
|
|
27792
28049
|
addFields.push({
|
|
@@ -28155,13 +28412,18 @@ var GridController = class extends MDControlController {
|
|
|
28155
28412
|
(item) => item.model.appDEFieldId === groupAppDEFieldId
|
|
28156
28413
|
);
|
|
28157
28414
|
if (!this.groupFieldColumn) {
|
|
28158
|
-
throw new RuntimeModelError63(
|
|
28415
|
+
throw new RuntimeModelError63(
|
|
28416
|
+
this.model,
|
|
28417
|
+
ibiz.i18n.t("runtime.controller.control.grid.attributeColumns")
|
|
28418
|
+
);
|
|
28159
28419
|
}
|
|
28160
28420
|
const groupFieldName = this.groupFieldColumn.model.id;
|
|
28161
28421
|
if (!this.groupFieldColumn.model.appCodeListId) {
|
|
28162
28422
|
throw new RuntimeModelError63(
|
|
28163
28423
|
this.groupFieldColumn.model,
|
|
28164
|
-
"
|
|
28424
|
+
ibiz.i18n.t("runtime.controller.control.grid.notCodeTable", {
|
|
28425
|
+
groupFieldName
|
|
28426
|
+
})
|
|
28165
28427
|
);
|
|
28166
28428
|
}
|
|
28167
28429
|
const index = this.state.columnStates.findIndex(
|
|
@@ -28171,7 +28433,9 @@ var GridController = class extends MDControlController {
|
|
|
28171
28433
|
if (this.isMultistageHeader) {
|
|
28172
28434
|
throw new RuntimeModelError63(
|
|
28173
28435
|
this.model,
|
|
28174
|
-
"
|
|
28436
|
+
ibiz.i18n.t("runtime.controller.control.grid.configureFirstColumn", {
|
|
28437
|
+
groupFieldName
|
|
28438
|
+
})
|
|
28175
28439
|
);
|
|
28176
28440
|
}
|
|
28177
28441
|
const removeEls = this.state.columnStates.splice(index, 1);
|
|
@@ -28179,12 +28443,17 @@ var GridController = class extends MDControlController {
|
|
|
28179
28443
|
}
|
|
28180
28444
|
if (groupMode === "CODELIST") {
|
|
28181
28445
|
if (!groupCodeListId) {
|
|
28182
|
-
throw new RuntimeModelError63(
|
|
28446
|
+
throw new RuntimeModelError63(
|
|
28447
|
+
this.model,
|
|
28448
|
+
ibiz.i18n.t("runtime.controller.control.grid.requiresCodeTable")
|
|
28449
|
+
);
|
|
28183
28450
|
}
|
|
28184
28451
|
if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
|
|
28185
28452
|
throw new RuntimeModelError63(
|
|
28186
28453
|
this.model,
|
|
28187
|
-
"
|
|
28454
|
+
ibiz.i18n.t("runtime.controller.control.grid.notMatchCodeTable", {
|
|
28455
|
+
groupFieldName
|
|
28456
|
+
})
|
|
28188
28457
|
);
|
|
28189
28458
|
}
|
|
28190
28459
|
}
|
|
@@ -28209,7 +28478,9 @@ var GridController = class extends MDControlController {
|
|
|
28209
28478
|
const toNum = Number(sortValue);
|
|
28210
28479
|
if (Number.isNaN(toNum)) {
|
|
28211
28480
|
throw new RuntimeError56(
|
|
28212
|
-
|
|
28481
|
+
ibiz.i18n.t("runtime.controller.control.grid.convertedValue", {
|
|
28482
|
+
srfmajortext: item.srfmajortext
|
|
28483
|
+
})
|
|
28213
28484
|
);
|
|
28214
28485
|
}
|
|
28215
28486
|
}
|
|
@@ -28312,7 +28583,10 @@ var GridController = class extends MDControlController {
|
|
|
28312
28583
|
return;
|
|
28313
28584
|
}
|
|
28314
28585
|
if (!aggAppDEDataSetId || !aggAppDataEntityId) {
|
|
28315
|
-
throw new RuntimeModelError63(
|
|
28586
|
+
throw new RuntimeModelError63(
|
|
28587
|
+
this.model,
|
|
28588
|
+
ibiz.i18n.t("runtime.controller.control.grid.missingConfiguration")
|
|
28589
|
+
);
|
|
28316
28590
|
}
|
|
28317
28591
|
const params = await this.getFetchParams();
|
|
28318
28592
|
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
@@ -28380,13 +28654,15 @@ var GridController = class extends MDControlController {
|
|
|
28380
28654
|
const { enableRowEdit, enableRowNew } = this.model;
|
|
28381
28655
|
const { editShowMode } = ibiz.config.grid;
|
|
28382
28656
|
if (!enableRowEdit || !enableRowNew || !["row", "all"].includes(editShowMode)) {
|
|
28383
|
-
ibiz.log.error("
|
|
28657
|
+
ibiz.log.error(ibiz.i18n.t("runtime.controller.control.grid.newRows"));
|
|
28384
28658
|
return;
|
|
28385
28659
|
}
|
|
28386
28660
|
if (editShowMode === "row") {
|
|
28387
28661
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
28388
28662
|
if (editingRow) {
|
|
28389
|
-
throw new RuntimeError56(
|
|
28663
|
+
throw new RuntimeError56(
|
|
28664
|
+
ibiz.i18n.t("runtime.controller.control.gantt.firstComplete")
|
|
28665
|
+
);
|
|
28390
28666
|
}
|
|
28391
28667
|
}
|
|
28392
28668
|
const queryParams = { ...this.params };
|
|
@@ -28427,10 +28703,12 @@ var GridController = class extends MDControlController {
|
|
|
28427
28703
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
28428
28704
|
const rowState = this.findRowState(data);
|
|
28429
28705
|
if (!rowState) {
|
|
28430
|
-
throw new RuntimeError56(
|
|
28706
|
+
throw new RuntimeError56(
|
|
28707
|
+
ibiz.i18n.t("runtime.controller.control.gantt.rowData")
|
|
28708
|
+
);
|
|
28431
28709
|
}
|
|
28432
28710
|
if (!rowState.modified) {
|
|
28433
|
-
ibiz.log.debug("
|
|
28711
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.notChange"));
|
|
28434
28712
|
return;
|
|
28435
28713
|
}
|
|
28436
28714
|
if (rowState.processing) {
|
|
@@ -28439,7 +28717,9 @@ var GridController = class extends MDControlController {
|
|
|
28439
28717
|
}
|
|
28440
28718
|
const isValid = await this.validate(rowState);
|
|
28441
28719
|
if (!isValid) {
|
|
28442
|
-
throw new RuntimeError56(
|
|
28720
|
+
throw new RuntimeError56(
|
|
28721
|
+
ibiz.i18n.t("runtime.controller.control.grid.saveCancel")
|
|
28722
|
+
);
|
|
28443
28723
|
}
|
|
28444
28724
|
if (this.model.enableRowEditChangedOnly) {
|
|
28445
28725
|
data = rowState.getDiffData();
|
|
@@ -28663,7 +28943,9 @@ var GridController = class extends MDControlController {
|
|
|
28663
28943
|
}
|
|
28664
28944
|
async toggleRowEdit() {
|
|
28665
28945
|
if (!this.model.enableRowNew) {
|
|
28666
|
-
throw new RuntimeError56(
|
|
28946
|
+
throw new RuntimeError56(
|
|
28947
|
+
ibiz.i18n.t("runtime.controller.control.grid.notSupportRowEditing")
|
|
28948
|
+
);
|
|
28667
28949
|
}
|
|
28668
28950
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
28669
28951
|
}
|
|
@@ -28696,7 +28978,9 @@ var GridController = class extends MDControlController {
|
|
|
28696
28978
|
} else {
|
|
28697
28979
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
28698
28980
|
if (editingRow) {
|
|
28699
|
-
throw new RuntimeError56(
|
|
28981
|
+
throw new RuntimeError56(
|
|
28982
|
+
ibiz.i18n.t("runtime.controller.control.grid.lineEditing")
|
|
28983
|
+
);
|
|
28700
28984
|
}
|
|
28701
28985
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
28702
28986
|
row.cacheData = clone27(row.data);
|
|
@@ -28751,7 +29035,11 @@ var GridController = class extends MDControlController {
|
|
|
28751
29035
|
(item) => item.id === updateId
|
|
28752
29036
|
);
|
|
28753
29037
|
if (!findUpdate) {
|
|
28754
|
-
throw new RuntimeError56(
|
|
29038
|
+
throw new RuntimeError56(
|
|
29039
|
+
ibiz.i18n.t("runtime.controller.control.grid.updateColumns", {
|
|
29040
|
+
updateId
|
|
29041
|
+
})
|
|
29042
|
+
);
|
|
28755
29043
|
}
|
|
28756
29044
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
28757
29045
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -28891,7 +29179,9 @@ var GridController = class extends MDControlController {
|
|
|
28891
29179
|
data = this.getData();
|
|
28892
29180
|
}
|
|
28893
29181
|
if (data.length === 0) {
|
|
28894
|
-
throw new RuntimeError56(
|
|
29182
|
+
throw new RuntimeError56(
|
|
29183
|
+
ibiz.i18n.t("runtime.controller.control.grid.exported")
|
|
29184
|
+
);
|
|
28895
29185
|
}
|
|
28896
29186
|
return data;
|
|
28897
29187
|
}
|
|
@@ -28905,7 +29195,9 @@ var GridController = class extends MDControlController {
|
|
|
28905
29195
|
async exportData(args) {
|
|
28906
29196
|
const { header } = this.dataExportParam;
|
|
28907
29197
|
if (!header) {
|
|
28908
|
-
throw new RuntimeError56(
|
|
29198
|
+
throw new RuntimeError56(
|
|
29199
|
+
ibiz.i18n.t("runtime.controller.control.grid.tabularColumns")
|
|
29200
|
+
);
|
|
28909
29201
|
}
|
|
28910
29202
|
await this.fillExportCodelistMap();
|
|
28911
29203
|
const data = await this.getExportData(args.params);
|
|
@@ -29287,7 +29579,12 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
29287
29579
|
const valueItem = this.model.linkValueItem || "srfkey";
|
|
29288
29580
|
const value = row.data[valueItem];
|
|
29289
29581
|
if (value == null) {
|
|
29290
|
-
throw new ModelError29(
|
|
29582
|
+
throw new ModelError29(
|
|
29583
|
+
this.model,
|
|
29584
|
+
ibiz.i18n.t("runtime.controller.control.grid.pickedUpData", {
|
|
29585
|
+
valueItem
|
|
29586
|
+
})
|
|
29587
|
+
);
|
|
29291
29588
|
}
|
|
29292
29589
|
const { linkAppViewId } = this.model;
|
|
29293
29590
|
if (!linkAppViewId) {
|
|
@@ -29393,14 +29690,24 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
29393
29690
|
aggValue = Math.min(...items.map((item) => item[fieldName]));
|
|
29394
29691
|
break;
|
|
29395
29692
|
default:
|
|
29396
|
-
throw new ModelError29(
|
|
29693
|
+
throw new ModelError29(
|
|
29694
|
+
this.model,
|
|
29695
|
+
ibiz.i18n.t("runtime.controller.control.grid.notSupportedMode", {
|
|
29696
|
+
aggMode
|
|
29697
|
+
})
|
|
29698
|
+
);
|
|
29397
29699
|
}
|
|
29398
29700
|
} else if (this.grid.model.aggMode === "ALL") {
|
|
29399
|
-
throw new ModelError29(
|
|
29701
|
+
throw new ModelError29(
|
|
29702
|
+
this.model,
|
|
29703
|
+
ibiz.i18n.t("runtime.controller.control.grid.remoteAggregation")
|
|
29704
|
+
);
|
|
29400
29705
|
} else {
|
|
29401
29706
|
throw new ModelError29(
|
|
29402
29707
|
this.grid.model,
|
|
29403
|
-
|
|
29708
|
+
ibiz.i18n.t("runtime.controller.control.grid.aggregateMode", {
|
|
29709
|
+
aggMode: this.grid.model.aggMode
|
|
29710
|
+
})
|
|
29404
29711
|
);
|
|
29405
29712
|
}
|
|
29406
29713
|
let value = "".concat(aggValue);
|
|
@@ -29408,7 +29715,11 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
29408
29715
|
try {
|
|
29409
29716
|
value = ibiz.util.text.format("".concat(aggValue), aggValueFormat);
|
|
29410
29717
|
} catch (error) {
|
|
29411
|
-
ibiz.log.error(
|
|
29718
|
+
ibiz.log.error(
|
|
29719
|
+
ibiz.i18n.t("runtime.controller.control.grid.formattingError", {
|
|
29720
|
+
aggValue
|
|
29721
|
+
})
|
|
29722
|
+
);
|
|
29412
29723
|
}
|
|
29413
29724
|
}
|
|
29414
29725
|
if (value && unitName) {
|
|
@@ -29482,10 +29793,15 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
29482
29793
|
var _a;
|
|
29483
29794
|
const { deuiactionGroup } = this.model;
|
|
29484
29795
|
if (!deuiactionGroup) {
|
|
29485
|
-
throw new RuntimeModelError64(
|
|
29796
|
+
throw new RuntimeModelError64(
|
|
29797
|
+
this.model,
|
|
29798
|
+
ibiz.i18n.t("runtime.controller.control.grid.behaviorGroup")
|
|
29799
|
+
);
|
|
29486
29800
|
}
|
|
29487
29801
|
if (!((_a = deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
29488
|
-
ibiz.log.debug(
|
|
29802
|
+
ibiz.log.debug(
|
|
29803
|
+
ibiz.i18n.t("runtime.controller.control.grid.interfaceBehavior")
|
|
29804
|
+
);
|
|
29489
29805
|
return;
|
|
29490
29806
|
}
|
|
29491
29807
|
const containerState = new ButtonContainerState();
|
|
@@ -29668,7 +29984,10 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
29668
29984
|
const result = await this.validate(row);
|
|
29669
29985
|
if (!result) {
|
|
29670
29986
|
throw new RuntimeError57(
|
|
29671
|
-
|
|
29987
|
+
ibiz.i18n.t("runtime.controller.control.grid.checksumErrors", {
|
|
29988
|
+
codeName: this.editItem.codeName,
|
|
29989
|
+
fieldName: row.errors[this.fieldName]
|
|
29990
|
+
})
|
|
29672
29991
|
);
|
|
29673
29992
|
}
|
|
29674
29993
|
}
|
|
@@ -29771,7 +30090,12 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
29771
30090
|
async validate(row) {
|
|
29772
30091
|
const editName = this.fieldName;
|
|
29773
30092
|
if (ibiz.config.grid.editShowMode !== "cell" && row.editColStates[editName].required === true && (typeof row.data[editName] === "string" ? isNilOrEmpty8(row.data[editName].trimEnd()) : isNilOrEmpty8(row.data[editName]))) {
|
|
29774
|
-
row.errors[editName] =
|
|
30093
|
+
row.errors[editName] = ibiz.i18n.t(
|
|
30094
|
+
"runtime.controller.control.form.fillIn",
|
|
30095
|
+
{
|
|
30096
|
+
caption: this.model.caption || ""
|
|
30097
|
+
}
|
|
30098
|
+
);
|
|
29775
30099
|
return false;
|
|
29776
30100
|
}
|
|
29777
30101
|
if (this.rules.length && this.validator) {
|
|
@@ -30095,7 +30419,9 @@ var PanelController = class extends ControlController {
|
|
|
30095
30419
|
var _a, _b;
|
|
30096
30420
|
const data = await this.prepareData();
|
|
30097
30421
|
if (!data) {
|
|
30098
|
-
throw new RuntimeError58(
|
|
30422
|
+
throw new RuntimeError58(
|
|
30423
|
+
ibiz.i18n.t("runtime.controller.control.panel.panelData")
|
|
30424
|
+
);
|
|
30099
30425
|
}
|
|
30100
30426
|
const panelData = this.convertData(data);
|
|
30101
30427
|
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
@@ -30810,7 +31136,10 @@ var SearchBarFilterController = class {
|
|
|
30810
31136
|
async init() {
|
|
30811
31137
|
if (!this.noEditor) {
|
|
30812
31138
|
if (!this.model.editor) {
|
|
30813
|
-
throw new RuntimeModelError65(
|
|
31139
|
+
throw new RuntimeModelError65(
|
|
31140
|
+
this.model,
|
|
31141
|
+
ibiz.i18n.t("runtime.controller.control.searchBar.missingModel")
|
|
31142
|
+
);
|
|
30814
31143
|
}
|
|
30815
31144
|
this.editorProvider = await getEditorProvider(this.model.editor);
|
|
30816
31145
|
if (this.editorProvider) {
|
|
@@ -31155,7 +31484,11 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
|
|
|
31155
31484
|
type = "number";
|
|
31156
31485
|
break;
|
|
31157
31486
|
default:
|
|
31158
|
-
ibiz.log.error(
|
|
31487
|
+
ibiz.log.error(
|
|
31488
|
+
ibiz.i18n.t("runtime.controller.control.grid.unsupported", {
|
|
31489
|
+
type: properties[key].type
|
|
31490
|
+
})
|
|
31491
|
+
);
|
|
31159
31492
|
return;
|
|
31160
31493
|
}
|
|
31161
31494
|
addFields.push({
|
|
@@ -31177,7 +31510,12 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
|
|
|
31177
31510
|
addFields.forEach((item) => {
|
|
31178
31511
|
const ops = typeToOPs[item.type];
|
|
31179
31512
|
if (!ops) {
|
|
31180
|
-
ibiz.log.error(
|
|
31513
|
+
ibiz.log.error(
|
|
31514
|
+
ibiz.i18n.t("runtime.controller.control.grid.unsupported", {
|
|
31515
|
+
type: ""
|
|
31516
|
+
}),
|
|
31517
|
+
item.type
|
|
31518
|
+
);
|
|
31181
31519
|
return;
|
|
31182
31520
|
}
|
|
31183
31521
|
ops.forEach((op) => {
|
|
@@ -31258,7 +31596,11 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
|
31258
31596
|
return false;
|
|
31259
31597
|
});
|
|
31260
31598
|
if (!minorDEId) {
|
|
31261
|
-
throw new RuntimeError59(
|
|
31599
|
+
throw new RuntimeError59(
|
|
31600
|
+
ibiz.i18n.t("runtime.controller.control.searchBar.notFoundEntity", {
|
|
31601
|
+
targetField
|
|
31602
|
+
})
|
|
31603
|
+
);
|
|
31262
31604
|
}
|
|
31263
31605
|
this.minorAppDE = await ibiz.hub.getAppDataEntity(
|
|
31264
31606
|
minorDEId,
|
|
@@ -31948,7 +32290,13 @@ var SearchBarController = class extends ControlController {
|
|
|
31948
32290
|
tempGroup.show = tempData.valid_flag === "1";
|
|
31949
32291
|
}
|
|
31950
32292
|
} catch (error) {
|
|
31951
|
-
ibiz.log.error(
|
|
32293
|
+
ibiz.log.error(
|
|
32294
|
+
ibiz.i18n.t(
|
|
32295
|
+
"runtime.controller.control.searchBar.JSONFormat",
|
|
32296
|
+
{ data: item.data }
|
|
32297
|
+
),
|
|
32298
|
+
error
|
|
32299
|
+
);
|
|
31952
32300
|
}
|
|
31953
32301
|
}
|
|
31954
32302
|
if (item.defaultGroup) {
|
|
@@ -32033,7 +32381,11 @@ var SearchBarController = class extends ControlController {
|
|
|
32033
32381
|
show: this.state.selectedSearchGroupItem.show,
|
|
32034
32382
|
order: this.state.selectedSearchGroupItem.order
|
|
32035
32383
|
});
|
|
32036
|
-
ibiz.message.success(
|
|
32384
|
+
ibiz.message.success(
|
|
32385
|
+
ibiz.i18n.t("runtime.controller.control.form.savedSuccessfully", {
|
|
32386
|
+
srfmajortext: ""
|
|
32387
|
+
})
|
|
32388
|
+
);
|
|
32037
32389
|
} else {
|
|
32038
32390
|
const res = await this.service.createWithParams(
|
|
32039
32391
|
this.state.selectedSearchGroupItem,
|
|
@@ -32047,7 +32399,11 @@ var SearchBarController = class extends ControlController {
|
|
|
32047
32399
|
mergeInLeft3(savedGroup, res.data);
|
|
32048
32400
|
savedGroup.saved = true;
|
|
32049
32401
|
}
|
|
32050
|
-
ibiz.message.success(
|
|
32402
|
+
ibiz.message.success(
|
|
32403
|
+
ibiz.i18n.t("runtime.controller.control.form.savedSuccessfully", {
|
|
32404
|
+
srfmajortext: ""
|
|
32405
|
+
})
|
|
32406
|
+
);
|
|
32051
32407
|
}
|
|
32052
32408
|
}
|
|
32053
32409
|
}
|
|
@@ -32494,7 +32850,9 @@ var TreeService = class extends MDControlService {
|
|
|
32494
32850
|
default:
|
|
32495
32851
|
throw new ModelError30(
|
|
32496
32852
|
nodeModel,
|
|
32497
|
-
|
|
32853
|
+
ibiz.i18n.t("runtime.controller.control.gantt.notSupport", {
|
|
32854
|
+
treeNodeType: nodeModel.treeNodeType
|
|
32855
|
+
})
|
|
32498
32856
|
);
|
|
32499
32857
|
}
|
|
32500
32858
|
const { expandFirstOnly, expanded, rootNode } = nodeModel;
|
|
@@ -33189,7 +33547,10 @@ var TreeController = class extends MDControlController {
|
|
|
33189
33547
|
(item) => item[key] === nodeData[key]
|
|
33190
33548
|
);
|
|
33191
33549
|
if (!currentNode) {
|
|
33192
|
-
ibiz.log.error(
|
|
33550
|
+
ibiz.log.error(
|
|
33551
|
+
ibiz.i18n.t("runtime.controller.control.tree.notFoundTreeData"),
|
|
33552
|
+
nodeData
|
|
33553
|
+
);
|
|
33193
33554
|
return;
|
|
33194
33555
|
}
|
|
33195
33556
|
if (refreshParent) {
|
|
@@ -33335,7 +33696,10 @@ var TreeController = class extends MDControlController {
|
|
|
33335
33696
|
const { sortAppDEFieldId, sortDir, allowOrder } = orderNodeModel;
|
|
33336
33697
|
if (allowOrder === true) {
|
|
33337
33698
|
if (!sortAppDEFieldId) {
|
|
33338
|
-
throw new RuntimeModelError66(
|
|
33699
|
+
throw new RuntimeModelError66(
|
|
33700
|
+
orderNodeModel,
|
|
33701
|
+
ibiz.i18n.t("runtime.controller.control.tree.sortAttribute")
|
|
33702
|
+
);
|
|
33339
33703
|
}
|
|
33340
33704
|
const sortField = sortAppDEFieldId.toLowerCase();
|
|
33341
33705
|
const isAsc = sortDir === "ASC";
|
|
@@ -33420,10 +33784,15 @@ var TreeController = class extends MDControlController {
|
|
|
33420
33784
|
async modifyNodeText(nodeData, text) {
|
|
33421
33785
|
const model = this.getNodeModel(nodeData._nodeId);
|
|
33422
33786
|
if (!model.allowEditText) {
|
|
33423
|
-
throw new RuntimeModelError66(
|
|
33787
|
+
throw new RuntimeModelError66(
|
|
33788
|
+
model,
|
|
33789
|
+
ibiz.i18n.t("runtime.controller.control.tree.editMode")
|
|
33790
|
+
);
|
|
33424
33791
|
}
|
|
33425
33792
|
if (nodeData._nodeType !== "DE") {
|
|
33426
|
-
throw new RuntimeError60(
|
|
33793
|
+
throw new RuntimeError60(
|
|
33794
|
+
ibiz.i18n.t("runtime.controller.control.tree.nodeData")
|
|
33795
|
+
);
|
|
33427
33796
|
}
|
|
33428
33797
|
nodeData._text = text;
|
|
33429
33798
|
await this.updateDeNodeData([nodeData]);
|
|
@@ -33439,7 +33808,9 @@ var TreeController = class extends MDControlController {
|
|
|
33439
33808
|
let needRefresh = false;
|
|
33440
33809
|
const treeNode = this.getNodeModel(item._nodeId);
|
|
33441
33810
|
if (!treeNode) {
|
|
33442
|
-
throw new RuntimeError60(
|
|
33811
|
+
throw new RuntimeError60(
|
|
33812
|
+
ibiz.i18n.t("runtime.controller.control.tree.notFoundTreeNode")
|
|
33813
|
+
);
|
|
33443
33814
|
}
|
|
33444
33815
|
const nodeAppDataEntityId = treeNode.appDataEntityId;
|
|
33445
33816
|
if (nodeAppDataEntityId) {
|
|
@@ -33651,7 +34022,11 @@ var WizardPanelController = class extends ControlController {
|
|
|
33651
34022
|
}
|
|
33652
34023
|
);
|
|
33653
34024
|
if (!form) {
|
|
33654
|
-
ibiz.log.debug(
|
|
34025
|
+
ibiz.log.debug(
|
|
34026
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.wizardForm", {
|
|
34027
|
+
activeFormTag
|
|
34028
|
+
})
|
|
34029
|
+
);
|
|
33655
34030
|
}
|
|
33656
34031
|
return form;
|
|
33657
34032
|
}
|
|
@@ -33667,7 +34042,11 @@ var WizardPanelController = class extends ControlController {
|
|
|
33667
34042
|
const { activeFormTag } = this.state;
|
|
33668
34043
|
const controller = this.formControllers.get(activeFormTag);
|
|
33669
34044
|
if (!controller) {
|
|
33670
|
-
throw new RuntimeError61(
|
|
34045
|
+
throw new RuntimeError61(
|
|
34046
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.formController", {
|
|
34047
|
+
activeFormTag
|
|
34048
|
+
})
|
|
34049
|
+
);
|
|
33671
34050
|
}
|
|
33672
34051
|
return controller;
|
|
33673
34052
|
}
|
|
@@ -33713,7 +34092,9 @@ var WizardPanelController = class extends ControlController {
|
|
|
33713
34092
|
getWizardFormByTag(tag) {
|
|
33714
34093
|
var _a;
|
|
33715
34094
|
if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
|
|
33716
|
-
throw new RuntimeError61(
|
|
34095
|
+
throw new RuntimeError61(
|
|
34096
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.noConfiguration")
|
|
34097
|
+
);
|
|
33717
34098
|
return;
|
|
33718
34099
|
}
|
|
33719
34100
|
const wizardForm = this.model.dewizard.dewizardForms.find(
|
|
@@ -33722,7 +34103,12 @@ var WizardPanelController = class extends ControlController {
|
|
|
33722
34103
|
}
|
|
33723
34104
|
);
|
|
33724
34105
|
if (!wizardForm) {
|
|
33725
|
-
throw new RuntimeError61(
|
|
34106
|
+
throw new RuntimeError61(
|
|
34107
|
+
ibiz.i18n.t(
|
|
34108
|
+
"runtime.controller.control.wizardPanel.wizardFormIdentifier",
|
|
34109
|
+
{ tag }
|
|
34110
|
+
)
|
|
34111
|
+
);
|
|
33726
34112
|
}
|
|
33727
34113
|
return wizardForm;
|
|
33728
34114
|
}
|
|
@@ -33793,7 +34179,9 @@ var WizardPanelController = class extends ControlController {
|
|
|
33793
34179
|
prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
33794
34180
|
}
|
|
33795
34181
|
if (!prevTag) {
|
|
33796
|
-
throw new RuntimeError61(
|
|
34182
|
+
throw new RuntimeError61(
|
|
34183
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.noPreviousForm")
|
|
34184
|
+
);
|
|
33797
34185
|
}
|
|
33798
34186
|
this.state.activeFormTag = prevTag;
|
|
33799
34187
|
}
|
|
@@ -33829,7 +34217,9 @@ var WizardPanelController = class extends ControlController {
|
|
|
33829
34217
|
});
|
|
33830
34218
|
const nextWizardStep = wizardSteps[index + 1];
|
|
33831
34219
|
if (!nextWizardStep) {
|
|
33832
|
-
throw new RuntimeError61(
|
|
34220
|
+
throw new RuntimeError61(
|
|
34221
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.nextStep")
|
|
34222
|
+
);
|
|
33833
34223
|
}
|
|
33834
34224
|
const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
|
|
33835
34225
|
if (nextWizardForm && nextWizardForm.formTag) {
|
|
@@ -33838,7 +34228,9 @@ var WizardPanelController = class extends ControlController {
|
|
|
33838
34228
|
}
|
|
33839
34229
|
}
|
|
33840
34230
|
if (!nextTag) {
|
|
33841
|
-
throw new RuntimeError61(
|
|
34231
|
+
throw new RuntimeError61(
|
|
34232
|
+
ibiz.i18n.t("runtime.controller.control.wizardPanel.nextForm")
|
|
34233
|
+
);
|
|
33842
34234
|
}
|
|
33843
34235
|
this.state.activeFormTag = nextTag;
|
|
33844
34236
|
this.tagHistory.push(nextTag);
|
|
@@ -34088,7 +34480,9 @@ var MDCtrlController = class extends MDControlController {
|
|
|
34088
34480
|
initUIActionGroup(row, group) {
|
|
34089
34481
|
var _a;
|
|
34090
34482
|
if (!((_a = group.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
34091
|
-
ibiz.log.debug(
|
|
34483
|
+
ibiz.log.debug(
|
|
34484
|
+
ibiz.i18n.t("runtime.controller.control.grid.interfaceBehavior")
|
|
34485
|
+
);
|
|
34092
34486
|
}
|
|
34093
34487
|
const containerState = new ButtonContainerState();
|
|
34094
34488
|
const details = group.uiactionGroupDetails || [];
|
|
@@ -34115,7 +34509,12 @@ var MDCtrlController = class extends MDControlController {
|
|
|
34115
34509
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
34116
34510
|
if (enableGroup && groupMode) {
|
|
34117
34511
|
if (!groupAppDEFieldId) {
|
|
34118
|
-
throw new RuntimeModelError67(
|
|
34512
|
+
throw new RuntimeModelError67(
|
|
34513
|
+
this.model,
|
|
34514
|
+
ibiz.i18n.t(
|
|
34515
|
+
"runtime.controller.control.dataView.propertiesNotConfigured"
|
|
34516
|
+
)
|
|
34517
|
+
);
|
|
34119
34518
|
}
|
|
34120
34519
|
if (groupMode === "AUTO") {
|
|
34121
34520
|
this.handleAutoGroup();
|
|
@@ -34182,7 +34581,10 @@ var MDCtrlController = class extends MDControlController {
|
|
|
34182
34581
|
async handleCodeListGroup() {
|
|
34183
34582
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
34184
34583
|
if (!groupCodeListId) {
|
|
34185
|
-
throw new RuntimeModelError67(
|
|
34584
|
+
throw new RuntimeModelError67(
|
|
34585
|
+
this.model,
|
|
34586
|
+
ibiz.i18n.t("runtime.controller.control.dataView.tableNotConfigured")
|
|
34587
|
+
);
|
|
34186
34588
|
}
|
|
34187
34589
|
const { items } = this.state;
|
|
34188
34590
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -34291,10 +34693,16 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34291
34693
|
const sortField = this.model.minorSortAppDEFieldId;
|
|
34292
34694
|
const { minorSortDir } = this.model;
|
|
34293
34695
|
if (!sortField) {
|
|
34294
|
-
throw new RuntimeModelError68(
|
|
34696
|
+
throw new RuntimeModelError68(
|
|
34697
|
+
this.model,
|
|
34698
|
+
ibiz.i18n.t("runtime.controller.control.kanban.sortingProperties")
|
|
34699
|
+
);
|
|
34295
34700
|
}
|
|
34296
34701
|
if (!minorSortDir) {
|
|
34297
|
-
throw new RuntimeModelError68(
|
|
34702
|
+
throw new RuntimeModelError68(
|
|
34703
|
+
this.model,
|
|
34704
|
+
ibiz.i18n.t("runtime.controller.control.kanban.sortDirection")
|
|
34705
|
+
);
|
|
34298
34706
|
}
|
|
34299
34707
|
const isAsc = minorSortDir === "ASC";
|
|
34300
34708
|
items.forEach((item) => {
|
|
@@ -34305,7 +34713,9 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34305
34713
|
const toNum = Number(sortValue);
|
|
34306
34714
|
if (Number.isNaN(toNum)) {
|
|
34307
34715
|
throw new RuntimeError62(
|
|
34308
|
-
|
|
34716
|
+
ibiz.i18n.t("runtime.controller.control.grid.convertedValue", {
|
|
34717
|
+
srfmajortext: item.srfmajortext
|
|
34718
|
+
})
|
|
34309
34719
|
);
|
|
34310
34720
|
}
|
|
34311
34721
|
}
|
|
@@ -34426,7 +34836,9 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34426
34836
|
}
|
|
34427
34837
|
handleDataGroup() {
|
|
34428
34838
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
34429
|
-
throw new RuntimeError62(
|
|
34839
|
+
throw new RuntimeError62(
|
|
34840
|
+
ibiz.i18n.t("runtime.controller.control.kanban.groupedOn")
|
|
34841
|
+
);
|
|
34430
34842
|
}
|
|
34431
34843
|
return super.handleDataGroup();
|
|
34432
34844
|
}
|
|
@@ -34474,7 +34886,10 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34474
34886
|
async handleCodeListGroup() {
|
|
34475
34887
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
34476
34888
|
if (!groupCodeListId) {
|
|
34477
|
-
throw new RuntimeModelError68(
|
|
34889
|
+
throw new RuntimeModelError68(
|
|
34890
|
+
this.model,
|
|
34891
|
+
ibiz.i18n.t("runtime.controller.control.dataView.tableNotConfigured")
|
|
34892
|
+
);
|
|
34478
34893
|
}
|
|
34479
34894
|
const { items } = this.state;
|
|
34480
34895
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -34512,7 +34927,9 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34512
34927
|
async onDragChange(info) {
|
|
34513
34928
|
if (!this.enableEditGroup) {
|
|
34514
34929
|
if (info.from !== info.to) {
|
|
34515
|
-
ibiz.message.warning(
|
|
34930
|
+
ibiz.message.warning(
|
|
34931
|
+
ibiz.i18n.t("runtime.controller.control.kanban.adjustmentsGroup")
|
|
34932
|
+
);
|
|
34516
34933
|
return;
|
|
34517
34934
|
}
|
|
34518
34935
|
}
|
|
@@ -34525,7 +34942,9 @@ var KanbanController = class extends DataViewControlController {
|
|
|
34525
34942
|
const toGroup = this.state.groups.find((x) => x.key === to);
|
|
34526
34943
|
if (!this.enableEditOrder) {
|
|
34527
34944
|
if (info.from === info.to) {
|
|
34528
|
-
ibiz.message.warning(
|
|
34945
|
+
ibiz.message.warning(
|
|
34946
|
+
ibiz.i18n.t("runtime.controller.control.kanban.notAllowReorder")
|
|
34947
|
+
);
|
|
34529
34948
|
return;
|
|
34530
34949
|
}
|
|
34531
34950
|
const draggedItem2 = fromGroup.children[fromIndex];
|
|
@@ -35025,18 +35444,24 @@ var TreeGridExController = class extends TreeController {
|
|
|
35025
35444
|
}
|
|
35026
35445
|
async save(nodeData) {
|
|
35027
35446
|
if (this.state.isSimple) {
|
|
35028
|
-
ibiz.log.debug(
|
|
35447
|
+
ibiz.log.debug(
|
|
35448
|
+
ibiz.i18n.t("runtime.controller.control.gantt.simpleMode")
|
|
35449
|
+
);
|
|
35029
35450
|
return;
|
|
35030
35451
|
}
|
|
35031
35452
|
if (nodeData._nodeType !== "DE") {
|
|
35032
|
-
throw new RuntimeError63(
|
|
35453
|
+
throw new RuntimeError63(
|
|
35454
|
+
ibiz.i18n.t("runtime.controller.control.gantt.nonentity")
|
|
35455
|
+
);
|
|
35033
35456
|
}
|
|
35034
35457
|
const rowState = this.state.rows[nodeData._uuid];
|
|
35035
35458
|
if (!rowState) {
|
|
35036
|
-
throw new RuntimeError63(
|
|
35459
|
+
throw new RuntimeError63(
|
|
35460
|
+
ibiz.i18n.t("runtime.controller.control.gantt.rowData")
|
|
35461
|
+
);
|
|
35037
35462
|
}
|
|
35038
35463
|
if (!rowState.modified) {
|
|
35039
|
-
ibiz.log.debug("
|
|
35464
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.notChange"));
|
|
35040
35465
|
return;
|
|
35041
35466
|
}
|
|
35042
35467
|
if (rowState.processing) {
|
|
@@ -35047,10 +35472,15 @@ var TreeGridExController = class extends TreeController {
|
|
|
35047
35472
|
const { appDataEntityId, updateAppDEActionId } = nodeModel;
|
|
35048
35473
|
const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
|
|
35049
35474
|
if (isCreate) {
|
|
35050
|
-
throw new RuntimeError63(
|
|
35475
|
+
throw new RuntimeError63(
|
|
35476
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.notSupportCreation")
|
|
35477
|
+
);
|
|
35051
35478
|
}
|
|
35052
35479
|
if (!updateAppDEActionId) {
|
|
35053
|
-
throw new RuntimeModelError69(
|
|
35480
|
+
throw new RuntimeModelError69(
|
|
35481
|
+
nodeModel,
|
|
35482
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.updateBehavior")
|
|
35483
|
+
);
|
|
35054
35484
|
}
|
|
35055
35485
|
const deName = calcDeCodeNameById(appDataEntityId);
|
|
35056
35486
|
const tempContext = this.context.clone();
|
|
@@ -35207,7 +35637,9 @@ var TreeGridExController = class extends TreeController {
|
|
|
35207
35637
|
(item) => item.showRowEdit
|
|
35208
35638
|
);
|
|
35209
35639
|
if (editingRow) {
|
|
35210
|
-
throw new RuntimeError63(
|
|
35640
|
+
throw new RuntimeError63(
|
|
35641
|
+
ibiz.i18n.t("runtime.controller.control.grid.lineEditing")
|
|
35642
|
+
);
|
|
35211
35643
|
}
|
|
35212
35644
|
if (row.data._deData.srfuf === 1 /* UPDATE */) {
|
|
35213
35645
|
row.cacheData = clone31(row.data);
|
|
@@ -35354,7 +35786,9 @@ var TreeGridExNodeColumnController = class {
|
|
|
35354
35786
|
if (!nodeColumn || !nodeDataItem) {
|
|
35355
35787
|
throw new RuntimeModelError70(
|
|
35356
35788
|
nodeModel,
|
|
35357
|
-
|
|
35789
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.notConfigured", {
|
|
35790
|
+
name: this.fieldColumn.name
|
|
35791
|
+
})
|
|
35358
35792
|
);
|
|
35359
35793
|
}
|
|
35360
35794
|
this.nodeColumn = nodeColumn;
|
|
@@ -35368,7 +35802,9 @@ var TreeGridExNodeColumnController = class {
|
|
|
35368
35802
|
if (!nodeEditItem) {
|
|
35369
35803
|
throw new RuntimeModelError70(
|
|
35370
35804
|
nodeModel,
|
|
35371
|
-
|
|
35805
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.editItem", {
|
|
35806
|
+
name: this.fieldColumn.name
|
|
35807
|
+
})
|
|
35372
35808
|
);
|
|
35373
35809
|
}
|
|
35374
35810
|
this.nodeEditItem = nodeEditItem;
|
|
@@ -35521,7 +35957,11 @@ var TreeGridExNodeColumnController = class {
|
|
|
35521
35957
|
const valueItem = this.nodeColumn.linkValueItem || "srfkey";
|
|
35522
35958
|
const value = row.data[valueItem];
|
|
35523
35959
|
if (value == null) {
|
|
35524
|
-
throw new RuntimeError64(
|
|
35960
|
+
throw new RuntimeError64(
|
|
35961
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.notPickedUp", {
|
|
35962
|
+
valueItem
|
|
35963
|
+
})
|
|
35964
|
+
);
|
|
35525
35965
|
}
|
|
35526
35966
|
const { linkAppViewId } = this.nodeColumn;
|
|
35527
35967
|
if (!linkAppViewId) {
|
|
@@ -35821,11 +36261,17 @@ var TreeGridExUAColumnController = class extends TreeGridExColumnController {
|
|
|
35821
36261
|
var _a;
|
|
35822
36262
|
const deuiactionGroup = this.getUIActionGroup(row);
|
|
35823
36263
|
if (!deuiactionGroup) {
|
|
35824
|
-
ibiz.log.warn(
|
|
36264
|
+
ibiz.log.warn(
|
|
36265
|
+
ibiz.i18n.t("runtime.controller.control.treeGridEx.behaviorGroup", {
|
|
36266
|
+
id: this.model.id
|
|
36267
|
+
})
|
|
36268
|
+
);
|
|
35825
36269
|
return;
|
|
35826
36270
|
}
|
|
35827
36271
|
if (!((_a = deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
35828
|
-
ibiz.log.debug(
|
|
36272
|
+
ibiz.log.debug(
|
|
36273
|
+
ibiz.i18n.t("runtime.controller.control.grid.interfaceBehavior")
|
|
36274
|
+
);
|
|
35829
36275
|
return;
|
|
35830
36276
|
}
|
|
35831
36277
|
const containerState = new ButtonContainerState();
|
|
@@ -35911,10 +36357,16 @@ var TreeGridController = class extends GridController {
|
|
|
35911
36357
|
return item.treeColumnMode === 2 || item.treeColumnMode === 3;
|
|
35912
36358
|
});
|
|
35913
36359
|
if (!treeGridParent) {
|
|
35914
|
-
throw new RuntimeModelError71(
|
|
36360
|
+
throw new RuntimeModelError71(
|
|
36361
|
+
this.model,
|
|
36362
|
+
ibiz.i18n.t("runtime.controller.control.treeGrid.columnsSchema")
|
|
36363
|
+
);
|
|
35915
36364
|
}
|
|
35916
36365
|
if (!treeGridValue) {
|
|
35917
|
-
throw new RuntimeModelError71(
|
|
36366
|
+
throw new RuntimeModelError71(
|
|
36367
|
+
this.model,
|
|
36368
|
+
ibiz.i18n.t("runtime.controller.control.treeGrid.columnMode")
|
|
36369
|
+
);
|
|
35918
36370
|
}
|
|
35919
36371
|
this.treeGridValueField = treeGridValue.appDEFieldId.toLowerCase();
|
|
35920
36372
|
this.treeGridParentField = treeGridParent.appDEFieldId.toLowerCase();
|
|
@@ -36040,7 +36492,11 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
36040
36492
|
if (arg.srfmajortext && !Object.is(arg.srfmajortext, "")) {
|
|
36041
36493
|
Object.assign(item, { srfmajortext: arg.srfmajortext });
|
|
36042
36494
|
} else if (arg.srfuf === 0) {
|
|
36043
|
-
Object.assign(item, {
|
|
36495
|
+
Object.assign(item, {
|
|
36496
|
+
srfmajortext: ibiz.i18n.t(
|
|
36497
|
+
"runtime.controller.control.meditViewPanel.DraftNew"
|
|
36498
|
+
)
|
|
36499
|
+
});
|
|
36044
36500
|
}
|
|
36045
36501
|
});
|
|
36046
36502
|
return item;
|
|
@@ -36150,7 +36606,9 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
36150
36606
|
(item) => item.id === id
|
|
36151
36607
|
);
|
|
36152
36608
|
if (panelUiItemIndex < 0) {
|
|
36153
|
-
throw new RuntimeError65(
|
|
36609
|
+
throw new RuntimeError65(
|
|
36610
|
+
ibiz.i18n.t("runtime.controller.control.meditViewPanel.dataExist")
|
|
36611
|
+
);
|
|
36154
36612
|
}
|
|
36155
36613
|
const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
|
|
36156
36614
|
if (tempUiItem.id.startsWith("mockId:")) {
|
|
@@ -36498,7 +36956,9 @@ var ReportPanelGeneratorFactory = class {
|
|
|
36498
36956
|
*/
|
|
36499
36957
|
static getInstance(model) {
|
|
36500
36958
|
if (!model || !model.appDEReport || !model.appDEReport.reportType) {
|
|
36501
|
-
throw new Error(
|
|
36959
|
+
throw new Error(
|
|
36960
|
+
ibiz.i18n.t("runtime.controller.control.reportPanel.reportType")
|
|
36961
|
+
);
|
|
36502
36962
|
}
|
|
36503
36963
|
switch (model.appDEReport.reportType) {
|
|
36504
36964
|
case "USER":
|
|
@@ -36507,7 +36967,9 @@ var ReportPanelGeneratorFactory = class {
|
|
|
36507
36967
|
return new User2ReportPanelGenerator(model);
|
|
36508
36968
|
default:
|
|
36509
36969
|
throw new Error(
|
|
36510
|
-
|
|
36970
|
+
ibiz.i18n.t("runtime.controller.control.reportPanel.notImplemented", {
|
|
36971
|
+
reportType: model.appDEReport.reportType
|
|
36972
|
+
})
|
|
36511
36973
|
);
|
|
36512
36974
|
}
|
|
36513
36975
|
}
|
|
@@ -36802,7 +37264,9 @@ var GanttService = class extends TreeService {
|
|
|
36802
37264
|
default:
|
|
36803
37265
|
throw new ModelError31(
|
|
36804
37266
|
nodeModel,
|
|
36805
|
-
|
|
37267
|
+
ibiz.i18n.t("runtime.controller.control.gantt.notSupport", {
|
|
37268
|
+
treeNodeType: nodeModel.treeNodeType
|
|
37269
|
+
})
|
|
36806
37270
|
);
|
|
36807
37271
|
}
|
|
36808
37272
|
const { expandFirstOnly, expanded, rootNode } = nodeModel;
|
|
@@ -37060,7 +37524,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
37060
37524
|
if (result === -1) {
|
|
37061
37525
|
throw new RuntimeModelError72(
|
|
37062
37526
|
nodeModel,
|
|
37063
|
-
|
|
37527
|
+
ibiz.i18n.t("runtime.controller.control.calendar.missingViewLogic", {
|
|
37528
|
+
itemType: nodeModel.id.toLowerCase()
|
|
37529
|
+
})
|
|
37064
37530
|
);
|
|
37065
37531
|
} else {
|
|
37066
37532
|
return {
|
|
@@ -37104,11 +37570,15 @@ var GanttController = class extends TreeGridExController {
|
|
|
37104
37570
|
*/
|
|
37105
37571
|
async modifyNodeTime(nodeData, { begin, end }) {
|
|
37106
37572
|
if (nodeData._nodeType !== "DE") {
|
|
37107
|
-
throw new RuntimeError66(
|
|
37573
|
+
throw new RuntimeError66(
|
|
37574
|
+
ibiz.i18n.t("runtime.controller.control.gantt.notNode")
|
|
37575
|
+
);
|
|
37108
37576
|
}
|
|
37109
37577
|
const rowState = this.getRowState(nodeData._id);
|
|
37110
37578
|
if (!rowState) {
|
|
37111
|
-
throw new RuntimeError66(
|
|
37579
|
+
throw new RuntimeError66(
|
|
37580
|
+
ibiz.i18n.t("runtime.controller.control.gantt.rowData")
|
|
37581
|
+
);
|
|
37112
37582
|
}
|
|
37113
37583
|
const { beginDataItemName, endDataItemName } = this.model;
|
|
37114
37584
|
this.setRowValue(rowState, beginDataItemName, begin);
|
|
@@ -37124,18 +37594,24 @@ var GanttController = class extends TreeGridExController {
|
|
|
37124
37594
|
*/
|
|
37125
37595
|
async save(nodeData) {
|
|
37126
37596
|
if (this.state.isSimple) {
|
|
37127
|
-
ibiz.log.debug(
|
|
37597
|
+
ibiz.log.debug(
|
|
37598
|
+
ibiz.i18n.t("runtime.controller.control.gantt.simpleMode")
|
|
37599
|
+
);
|
|
37128
37600
|
return;
|
|
37129
37601
|
}
|
|
37130
37602
|
if (nodeData._nodeType !== "DE") {
|
|
37131
|
-
throw new RuntimeError66(
|
|
37603
|
+
throw new RuntimeError66(
|
|
37604
|
+
ibiz.i18n.t("runtime.controller.control.gantt.nonentity")
|
|
37605
|
+
);
|
|
37132
37606
|
}
|
|
37133
37607
|
const rowState = this.state.rows[nodeData._uuid];
|
|
37134
37608
|
if (!rowState) {
|
|
37135
|
-
throw new RuntimeError66(
|
|
37609
|
+
throw new RuntimeError66(
|
|
37610
|
+
ibiz.i18n.t("runtime.controller.control.gantt.rowData")
|
|
37611
|
+
);
|
|
37136
37612
|
}
|
|
37137
37613
|
if (!rowState.modified) {
|
|
37138
|
-
ibiz.log.debug("
|
|
37614
|
+
ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.gantt.notChange"));
|
|
37139
37615
|
return;
|
|
37140
37616
|
}
|
|
37141
37617
|
if (rowState.processing) {
|
|
@@ -37180,12 +37656,16 @@ var GanttController = class extends TreeGridExController {
|
|
|
37180
37656
|
async remove(args) {
|
|
37181
37657
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
37182
37658
|
if (!(data == null ? void 0 : data.length)) {
|
|
37183
|
-
throw new RuntimeError66(
|
|
37659
|
+
throw new RuntimeError66(
|
|
37660
|
+
ibiz.i18n.t("runtime.controller.common.control.uncheckedData")
|
|
37661
|
+
);
|
|
37184
37662
|
}
|
|
37185
37663
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
37186
37664
|
const del = await ibiz.confirm.error({
|
|
37187
|
-
title: "
|
|
37188
|
-
desc:
|
|
37665
|
+
title: ibiz.i18n.t("runtime.controller.common.control.dataDeletion"),
|
|
37666
|
+
desc: ibiz.i18n.t(
|
|
37667
|
+
"runtime.controller.common.control.confirmDataDeletion"
|
|
37668
|
+
)
|
|
37189
37669
|
});
|
|
37190
37670
|
if (!del) {
|
|
37191
37671
|
return;
|
|
@@ -37227,7 +37707,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
37227
37707
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
37228
37708
|
this.actionNotification("REMOVESUCCESS", {
|
|
37229
37709
|
data,
|
|
37230
|
-
default:
|
|
37710
|
+
default: ibiz.i18n.t("runtime.controller.control.gantt.dataDeleted", {
|
|
37711
|
+
str: data.map((item) => item.srfmajortext).join("\u3001")
|
|
37712
|
+
})
|
|
37231
37713
|
});
|
|
37232
37714
|
}
|
|
37233
37715
|
if (needRefresh && refreshNode && !(args == null ? void 0 : args.notRefresh)) {
|
|
@@ -37289,7 +37771,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
37289
37771
|
(item) => item.showRowEdit
|
|
37290
37772
|
);
|
|
37291
37773
|
if (editingRow) {
|
|
37292
|
-
throw new RuntimeError66(
|
|
37774
|
+
throw new RuntimeError66(
|
|
37775
|
+
ibiz.i18n.t("runtime.controller.control.gantt.firstComplete")
|
|
37776
|
+
);
|
|
37293
37777
|
}
|
|
37294
37778
|
}
|
|
37295
37779
|
let parentModel;
|