@ibiz-template/runtime 0.7.41-alpha.90 → 0.7.41-alpha.92
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 +173 -12
- package/dist/index.system.min.js +1 -1
- package/out/app-hub.d.ts +9 -1
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +13 -0
- package/out/application.d.ts +5 -0
- package/out/application.d.ts.map +1 -1
- package/out/application.js +19 -0
- package/out/controller/control/chart/chart.controller.d.ts +21 -13
- package/out/controller/control/chart/chart.controller.d.ts.map +1 -1
- package/out/controller/control/chart/chart.controller.js +42 -3
- package/out/controller/control/data-view/data-view.controller.d.ts +6 -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 +11 -0
- package/out/controller/control/exp-bar/chart-exp-bar.controller.js +2 -3
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +5 -1
- package/out/controller/control/list/list.controller.d.ts +6 -0
- package/out/controller/control/list/list.controller.d.ts.map +1 -1
- package/out/controller/control/list/list.controller.js +11 -0
- package/out/controller/control/panel/panel/panel-item.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel-item.controller.js +3 -1
- package/out/controller/control/search-bar/search-bar.controller.d.ts +6 -0
- package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.js +14 -0
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +4 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts +2 -3
- 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 +6 -4
- package/out/interface/api/controller/control/i-api-chart.controller.d.ts +17 -4
- package/out/interface/api/controller/control/i-api-chart.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-search-form.controller.d.ts +3 -3
- package/out/interface/api/controller/control/i-api-tree.controller.d.ts +1 -2
- package/out/interface/api/controller/control/i-api-tree.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/panel-item/i-api-panel-item.controller.d.ts +3 -3
- package/out/interface/api/state/common/i-api-col-state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-chart.state.d.ts +13 -0
- package/out/interface/api/state/control/i-api-chart.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-list.state.d.ts +2 -2
- package/out/interface/api/state/control/i-api-tree.state.d.ts +4 -4
- package/out/interface/api/state/control/panel-item/i-api-panel-item.state.d.ts +2 -2
- package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts +9 -1
- package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-chart.state.d.ts +0 -12
- package/out/interface/controller/state/control/i-chart.state.d.ts.map +1 -1
- package/out/interface/provider/model-loader.provider.d.ts +9 -1
- package/out/interface/provider/model-loader.provider.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +1 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +1 -0
- package/out/locale/zh-CN/index.d.ts +1 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +1 -0
- package/out/service/service/entity/method/method.d.ts.map +1 -1
- package/out/service/service/entity/method/method.js +5 -1
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +5 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -21608,6 +21608,10 @@ async function getDERedirectToView(appView, context, params = {}, opts = {}) {
|
|
|
21608
21608
|
try {
|
|
21609
21609
|
const res = await service.exec(actionId || "get", context, params);
|
|
21610
21610
|
if (res.ok) {
|
|
21611
|
+
const uiDomain = ibiz.uiDomainManager.get(context.srfsessionid);
|
|
21612
|
+
if (uiDomain) {
|
|
21613
|
+
uiDomain.state.rsInit = false;
|
|
21614
|
+
}
|
|
21611
21615
|
curData = res.data;
|
|
21612
21616
|
let linkUrl = curData.linkurl;
|
|
21613
21617
|
if (linkUrl) {
|
|
@@ -38546,12 +38550,12 @@ var ChartController = class extends MDControlController {
|
|
|
38546
38550
|
/**
|
|
38547
38551
|
* 改变tooltip的显示状态
|
|
38548
38552
|
*
|
|
38549
|
-
* @param {boolean} [
|
|
38553
|
+
* @param {boolean} [state=true]
|
|
38550
38554
|
* @memberof ChartController
|
|
38551
38555
|
*/
|
|
38552
|
-
changeTooltipState(
|
|
38556
|
+
changeTooltipState(state = true) {
|
|
38553
38557
|
if (this.chart && this.options && this.options.tooltip) {
|
|
38554
|
-
if (
|
|
38558
|
+
if (state) {
|
|
38555
38559
|
this.chart.setOption(
|
|
38556
38560
|
{
|
|
38557
38561
|
tooltip: {
|
|
@@ -38978,6 +38982,61 @@ var ChartController = class extends MDControlController {
|
|
|
38978
38982
|
async goToLastPage() {
|
|
38979
38983
|
return [];
|
|
38980
38984
|
}
|
|
38985
|
+
/**
|
|
38986
|
+
* @description 转换各类多语言
|
|
38987
|
+
* @protected
|
|
38988
|
+
* @memberof ChartController
|
|
38989
|
+
*/
|
|
38990
|
+
convertMultipleLanguages() {
|
|
38991
|
+
var _a3, _b2;
|
|
38992
|
+
const {
|
|
38993
|
+
emptyText,
|
|
38994
|
+
dechartTitle,
|
|
38995
|
+
chartXAxises,
|
|
38996
|
+
chartYAxises,
|
|
38997
|
+
dechartSerieses,
|
|
38998
|
+
emptyTextLanguageRes
|
|
38999
|
+
} = this.model;
|
|
39000
|
+
if (emptyTextLanguageRes == null ? void 0 : emptyTextLanguageRes.lanResTag)
|
|
39001
|
+
this.model.emptyText = ibiz.i18n.t(
|
|
39002
|
+
emptyTextLanguageRes.lanResTag,
|
|
39003
|
+
emptyText
|
|
39004
|
+
);
|
|
39005
|
+
if ((_a3 = dechartTitle == null ? void 0 : dechartTitle.titleLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
39006
|
+
dechartTitle.title = ibiz.i18n.t(
|
|
39007
|
+
dechartTitle.titleLanguageRes.lanResTag,
|
|
39008
|
+
dechartTitle.title
|
|
39009
|
+
);
|
|
39010
|
+
if ((_b2 = dechartTitle == null ? void 0 : dechartTitle.subTitleLanguageRes) == null ? void 0 : _b2.lanResTag)
|
|
39011
|
+
dechartTitle.subTitle = ibiz.i18n.t(
|
|
39012
|
+
dechartTitle.subTitleLanguageRes.lanResTag,
|
|
39013
|
+
dechartTitle.subTitle
|
|
39014
|
+
);
|
|
39015
|
+
dechartSerieses == null ? void 0 : dechartSerieses.forEach((series) => {
|
|
39016
|
+
var _a4;
|
|
39017
|
+
if ((_a4 = series.capLanguageRes) == null ? void 0 : _a4.lanResTag)
|
|
39018
|
+
series.caption = ibiz.i18n.t(
|
|
39019
|
+
series.capLanguageRes.lanResTag,
|
|
39020
|
+
series.caption
|
|
39021
|
+
);
|
|
39022
|
+
});
|
|
39023
|
+
chartXAxises == null ? void 0 : chartXAxises.forEach((axis) => {
|
|
39024
|
+
var _a4;
|
|
39025
|
+
if ((_a4 = axis.capLanguageRes) == null ? void 0 : _a4.lanResTag)
|
|
39026
|
+
axis.caption = ibiz.i18n.t(axis.capLanguageRes.lanResTag, axis.caption);
|
|
39027
|
+
});
|
|
39028
|
+
chartYAxises == null ? void 0 : chartYAxises.forEach((axis) => {
|
|
39029
|
+
var _a4;
|
|
39030
|
+
if ((_a4 = axis.capLanguageRes) == null ? void 0 : _a4.lanResTag)
|
|
39031
|
+
axis.caption = ibiz.i18n.t(axis.capLanguageRes.lanResTag, axis.caption);
|
|
39032
|
+
});
|
|
39033
|
+
}
|
|
39034
|
+
/**
|
|
39035
|
+
* @description 生命周期-销毁完成
|
|
39036
|
+
* @protected
|
|
39037
|
+
* @returns {*} {Promise<void>}
|
|
39038
|
+
* @memberof ChartController
|
|
39039
|
+
*/
|
|
38981
39040
|
async onDestroyed() {
|
|
38982
39041
|
var _a3;
|
|
38983
39042
|
window.removeEventListener("resize", this.resizeChart);
|
|
@@ -42380,6 +42439,20 @@ var SearchBarController = class extends ControlController {
|
|
|
42380
42439
|
this.counter.destroy();
|
|
42381
42440
|
}
|
|
42382
42441
|
}
|
|
42442
|
+
/**
|
|
42443
|
+
* @description 转换各类多语言
|
|
42444
|
+
* @protected
|
|
42445
|
+
* @memberof SearchBarController
|
|
42446
|
+
*/
|
|
42447
|
+
convertMultipleLanguages() {
|
|
42448
|
+
const { searchBarGroups = [] } = this.model;
|
|
42449
|
+
searchBarGroups.forEach((item) => {
|
|
42450
|
+
var _a3;
|
|
42451
|
+
if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag) {
|
|
42452
|
+
item.caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
42453
|
+
}
|
|
42454
|
+
});
|
|
42455
|
+
}
|
|
42383
42456
|
};
|
|
42384
42457
|
|
|
42385
42458
|
// src/controller/control/dashboard/portlet/filter-portlet/filter-portlet.controller.ts
|
|
@@ -43688,6 +43761,20 @@ var DataViewControlController = class extends MDControlController {
|
|
|
43688
43761
|
throw error;
|
|
43689
43762
|
}
|
|
43690
43763
|
}
|
|
43764
|
+
/**
|
|
43765
|
+
* @description 转换各类多语言
|
|
43766
|
+
* @protected
|
|
43767
|
+
* @memberof DataViewControlController
|
|
43768
|
+
*/
|
|
43769
|
+
convertMultipleLanguages() {
|
|
43770
|
+
const { emptyTextLanguageRes, emptyText } = this.model;
|
|
43771
|
+
if (emptyTextLanguageRes == null ? void 0 : emptyTextLanguageRes.lanResTag) {
|
|
43772
|
+
this.model.emptyText = ibiz.i18n.t(
|
|
43773
|
+
emptyTextLanguageRes.lanResTag,
|
|
43774
|
+
emptyText
|
|
43775
|
+
);
|
|
43776
|
+
}
|
|
43777
|
+
}
|
|
43691
43778
|
};
|
|
43692
43779
|
|
|
43693
43780
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
@@ -44505,7 +44592,7 @@ var ChartExpBarController = class extends ExpBarControlController {
|
|
|
44505
44592
|
});
|
|
44506
44593
|
if (activeSeriesGenerator && activeSeriesGenerator.groupData) {
|
|
44507
44594
|
const firstGroupName = Object.keys(activeSeriesGenerator.groupData)[0];
|
|
44508
|
-
const { chartData } = activeSeriesGenerator.groupData[firstGroupName].values().next().value;
|
|
44595
|
+
const { chartData } = activeSeriesGenerator.groupData[firstGroupName].values().next().value || {};
|
|
44509
44596
|
return chartData;
|
|
44510
44597
|
}
|
|
44511
44598
|
}
|
|
@@ -50954,7 +51041,7 @@ var GridController = class extends MDControlController {
|
|
|
50954
51041
|
* @date 2023-08-07 04:11:00
|
|
50955
51042
|
* @type {string}
|
|
50956
51043
|
*/
|
|
50957
|
-
this.aggTitle = "
|
|
51044
|
+
this.aggTitle = ibiz.i18n.t("runtime.controller.control.grid.total");
|
|
50958
51045
|
/**
|
|
50959
51046
|
* 数据导出列
|
|
50960
51047
|
* @author lxm
|
|
@@ -52424,6 +52511,13 @@ var GridController = class extends MDControlController {
|
|
|
52424
52511
|
* @protected
|
|
52425
52512
|
*/
|
|
52426
52513
|
convertMultipleLanguages() {
|
|
52514
|
+
const { emptyTextLanguageRes, emptyText } = this.model;
|
|
52515
|
+
if (emptyTextLanguageRes == null ? void 0 : emptyTextLanguageRes.lanResTag) {
|
|
52516
|
+
this.model.emptyText = ibiz.i18n.t(
|
|
52517
|
+
emptyTextLanguageRes.lanResTag,
|
|
52518
|
+
emptyText
|
|
52519
|
+
);
|
|
52520
|
+
}
|
|
52427
52521
|
recursiveIterate12(
|
|
52428
52522
|
this.model,
|
|
52429
52523
|
(item) => {
|
|
@@ -54284,6 +54378,20 @@ var ListController = class extends MDControlController {
|
|
|
54284
54378
|
}
|
|
54285
54379
|
}
|
|
54286
54380
|
}
|
|
54381
|
+
/**
|
|
54382
|
+
* @description 转换各类多语言
|
|
54383
|
+
* @protected
|
|
54384
|
+
* @memberof ListController
|
|
54385
|
+
*/
|
|
54386
|
+
convertMultipleLanguages() {
|
|
54387
|
+
const { emptyTextLanguageRes, emptyText } = this.model;
|
|
54388
|
+
if (emptyTextLanguageRes == null ? void 0 : emptyTextLanguageRes.lanResTag) {
|
|
54389
|
+
this.model.emptyText = ibiz.i18n.t(
|
|
54390
|
+
emptyTextLanguageRes.lanResTag,
|
|
54391
|
+
emptyText
|
|
54392
|
+
);
|
|
54393
|
+
}
|
|
54394
|
+
}
|
|
54287
54395
|
};
|
|
54288
54396
|
|
|
54289
54397
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
@@ -56145,7 +56253,7 @@ var PanelItemController = class {
|
|
|
56145
56253
|
await this.onInit();
|
|
56146
56254
|
}
|
|
56147
56255
|
async onInit() {
|
|
56148
|
-
const { layoutPos, sysCss, labelSysCss } = this.model;
|
|
56256
|
+
const { layoutPos, sysCss, labelSysCss, caption, capLanguageRes } = this.model;
|
|
56149
56257
|
if (layoutPos) {
|
|
56150
56258
|
const { width, height } = calcLayoutHeightWidth(layoutPos);
|
|
56151
56259
|
this.state.layout.width = "".concat(width);
|
|
@@ -56159,6 +56267,8 @@ var PanelItemController = class {
|
|
|
56159
56267
|
}
|
|
56160
56268
|
this.handleCounterChange = this.handleCounterChange.bind(this);
|
|
56161
56269
|
this.initCounter();
|
|
56270
|
+
if (capLanguageRes == null ? void 0 : capLanguageRes.lanResTag)
|
|
56271
|
+
this.model.caption = ibiz.i18n.t(capLanguageRes.lanResTag, caption);
|
|
56162
56272
|
}
|
|
56163
56273
|
/**
|
|
56164
56274
|
* @description 初始化计数器
|
|
@@ -58898,7 +59008,13 @@ var TreeController = class extends MDControlController {
|
|
|
58898
59008
|
* @memberof TreeController
|
|
58899
59009
|
*/
|
|
58900
59010
|
convertMultipleLanguages() {
|
|
58901
|
-
const { detreeNodes = [] } = this.model;
|
|
59011
|
+
const { detreeNodes = [], emptyTextLanguageRes, emptyText } = this.model;
|
|
59012
|
+
if (emptyTextLanguageRes == null ? void 0 : emptyTextLanguageRes.lanResTag) {
|
|
59013
|
+
this.model.emptyText = ibiz.i18n.t(
|
|
59014
|
+
emptyTextLanguageRes.lanResTag,
|
|
59015
|
+
emptyText
|
|
59016
|
+
);
|
|
59017
|
+
}
|
|
58902
59018
|
detreeNodes.forEach((item) => {
|
|
58903
59019
|
var _a3;
|
|
58904
59020
|
if (item.treeNodeType === "STATIC" && ((_a3 = item.nameLanguageRes) == null ? void 0 : _a3.lanResTag)) {
|
|
@@ -61099,13 +61215,18 @@ var TreeGridExController = class extends TreeController {
|
|
|
61099
61215
|
await this.updateRows(this.state.rows);
|
|
61100
61216
|
}
|
|
61101
61217
|
/**
|
|
61102
|
-
* 转换各类多语言
|
|
61103
|
-
*
|
|
61104
|
-
* @date 2023-05-18 02:57:00
|
|
61218
|
+
* @description 转换各类多语言
|
|
61105
61219
|
* @protected
|
|
61220
|
+
* @memberof TreeGridExController
|
|
61106
61221
|
*/
|
|
61107
61222
|
convertMultipleLanguages() {
|
|
61108
|
-
const { detreeColumns } = this.model;
|
|
61223
|
+
const { detreeColumns, emptyTextLanguageRes, emptyText } = this.model;
|
|
61224
|
+
if (emptyTextLanguageRes == null ? void 0 : emptyTextLanguageRes.lanResTag) {
|
|
61225
|
+
this.model.emptyText = ibiz.i18n.t(
|
|
61226
|
+
emptyTextLanguageRes.lanResTag,
|
|
61227
|
+
emptyText
|
|
61228
|
+
);
|
|
61229
|
+
}
|
|
61109
61230
|
detreeColumns == null ? void 0 : detreeColumns.forEach((column) => {
|
|
61110
61231
|
var _a3;
|
|
61111
61232
|
if ((_a3 = column.capLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
@@ -71620,7 +71741,7 @@ import { ascSort } from "qx-util";
|
|
|
71620
71741
|
import { clone as clone52 } from "ramda";
|
|
71621
71742
|
|
|
71622
71743
|
// src/service/service/entity/method/method.ts
|
|
71623
|
-
import { RuntimeModelError as RuntimeModelError69 } from "@ibiz-template/core";
|
|
71744
|
+
import { HttpResponse as HttpResponse4, RuntimeModelError as RuntimeModelError69 } from "@ibiz-template/core";
|
|
71624
71745
|
|
|
71625
71746
|
// src/service/service/entity/method/method-input.ts
|
|
71626
71747
|
var MethodInput = class {
|
|
@@ -71852,6 +71973,9 @@ var Method = class {
|
|
|
71852
71973
|
}
|
|
71853
71974
|
return res;
|
|
71854
71975
|
}
|
|
71976
|
+
if (actionType === "SCRIPT") {
|
|
71977
|
+
return new HttpResponse4(data);
|
|
71978
|
+
}
|
|
71855
71979
|
throw new RuntimeModelError69(
|
|
71856
71980
|
this.method,
|
|
71857
71981
|
ibiz.i18n.t("runtime.service.unsupportedBehaviorTypes", { actionType })
|
|
@@ -84901,9 +85025,31 @@ var Application = class {
|
|
|
84901
85025
|
async init() {
|
|
84902
85026
|
await this.authority.init();
|
|
84903
85027
|
await this.loadAppModelStyle();
|
|
85028
|
+
await this.loadAppLang();
|
|
84904
85029
|
await this.loadGlobalAppUtil();
|
|
84905
85030
|
await this.loadReplaceDefaultPlugin();
|
|
84906
85031
|
}
|
|
85032
|
+
/**
|
|
85033
|
+
* 加载应用多语言
|
|
85034
|
+
*
|
|
85035
|
+
*/
|
|
85036
|
+
async loadAppLang() {
|
|
85037
|
+
if (ibiz.env.isEnableMultiLan) {
|
|
85038
|
+
const lang = ibiz.i18n.getLang();
|
|
85039
|
+
const m = await ibiz.hub.getPSAppLang(
|
|
85040
|
+
lang.replace("-", "_").toUpperCase(),
|
|
85041
|
+
this.appId
|
|
85042
|
+
);
|
|
85043
|
+
if (m && m.languageItems) {
|
|
85044
|
+
const items = m.languageItems || [];
|
|
85045
|
+
const data = {};
|
|
85046
|
+
items.forEach((item) => {
|
|
85047
|
+
data[item.lanResTag] = item.content;
|
|
85048
|
+
});
|
|
85049
|
+
ibiz.i18n.mergeLocaleMessage(lang, data);
|
|
85050
|
+
}
|
|
85051
|
+
}
|
|
85052
|
+
}
|
|
84907
85053
|
/**
|
|
84908
85054
|
* 加载应用模型全局样式
|
|
84909
85055
|
*
|
|
@@ -86141,6 +86287,19 @@ var AppHub = class {
|
|
|
86141
86287
|
const id = this.calcAppViewId(tag);
|
|
86142
86288
|
return this.view2appMap.has(id);
|
|
86143
86289
|
}
|
|
86290
|
+
/**
|
|
86291
|
+
* 获取多语言资源
|
|
86292
|
+
*
|
|
86293
|
+
* @param language
|
|
86294
|
+
* @param appId
|
|
86295
|
+
* @returns
|
|
86296
|
+
*/
|
|
86297
|
+
async getPSAppLang(language, appId2) {
|
|
86298
|
+
if (this.modelLoaderProvider) {
|
|
86299
|
+
return this.modelLoaderProvider.getPSAppLang(language, appId2);
|
|
86300
|
+
}
|
|
86301
|
+
return null;
|
|
86302
|
+
}
|
|
86144
86303
|
/**
|
|
86145
86304
|
* 获取应用样式
|
|
86146
86305
|
*
|
|
@@ -89797,6 +89956,7 @@ var en = {
|
|
|
89797
89956
|
noSupport: "{treeNodeType} node type not supported"
|
|
89798
89957
|
},
|
|
89799
89958
|
grid: {
|
|
89959
|
+
total: "Total",
|
|
89800
89960
|
unsupported: "Unsupported types {type}",
|
|
89801
89961
|
attributeColumns: "Attribute columns with no grouping attributes configured",
|
|
89802
89962
|
configureFirstColumn: "Please configure the grouping attribute column {groupFieldName} as the first column",
|
|
@@ -90462,6 +90622,7 @@ var zhCn = {
|
|
|
90462
90622
|
noSupport: "{treeNodeType}\u8282\u70B9\u7C7B\u578B\u672A\u652F\u6301"
|
|
90463
90623
|
},
|
|
90464
90624
|
grid: {
|
|
90625
|
+
total: "\u5408\u8BA1",
|
|
90465
90626
|
unsupported: "\u672A\u652F\u6301\u7684\u7C7B\u578B{type}",
|
|
90466
90627
|
attributeColumns: "\u6CA1\u6709\u914D\u7F6E\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217",
|
|
90467
90628
|
configureFirstColumn: "\u8BF7\u5C06\u5206\u7EC4\u5C5E\u6027\u5217{groupFieldName}\u914D\u7F6E\u4E3A\u7B2C\u4E00\u5217",
|