@ibiz-template/runtime 0.7.28 → 0.7.29
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 +59 -8
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts +18 -2
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/custom-dashboard.controller.js +34 -4
- package/out/controller/control/dashboard/dashboard.controller.d.ts +8 -0
- package/out/controller/control/dashboard/dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/dashboard.controller.js +9 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +3 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.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 +3 -1
- package/out/interface/util/i-fullscreen-util/i-fullscreen-util.d.ts +15 -0
- package/out/interface/util/i-fullscreen-util/i-fullscreen-util.d.ts.map +1 -0
- package/out/interface/util/i-fullscreen-util/i-fullscreen-util.js +1 -0
- package/out/interface/util/index.d.ts +1 -0
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/types.d.ts +8 -1
- package/out/types.d.ts.map +1 -1
- package/out/utils/bi-report-util/bi-report-util.js +1 -1
- package/out/utils/nav-params/nav-params.d.ts.map +1 -1
- package/out/utils/nav-params/nav-params.js +7 -0
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -635,6 +635,12 @@ function convertNavData(navParams, ...origins) {
|
|
|
635
635
|
return convertNavDataByArray(navParamsArr, ...origins);
|
|
636
636
|
}
|
|
637
637
|
function getVal(origins, key) {
|
|
638
|
+
if (key === "srfcurtime") {
|
|
639
|
+
return {
|
|
640
|
+
find: true,
|
|
641
|
+
value: (/* @__PURE__ */ new Date()).getTime()
|
|
642
|
+
};
|
|
643
|
+
}
|
|
638
644
|
const keys = key.split(".");
|
|
639
645
|
let currentVal;
|
|
640
646
|
const findOrigin = origins.find((item) => {
|
|
@@ -15190,7 +15196,7 @@ var BIReportUtil = class {
|
|
|
15190
15196
|
biReportItems.dimension_col = [];
|
|
15191
15197
|
}
|
|
15192
15198
|
biReportItems.dimension_col.push(tempDimension);
|
|
15193
|
-
} else if (biReportUIModel && biReportUIModel.group && biReportUIModel.group.
|
|
15199
|
+
} else if (biReportUIModel && biReportUIModel.group && biReportUIModel.group.indexOf(item.pssysbicubedimensionid) !== -1) {
|
|
15194
15200
|
if (!biReportItems.group) {
|
|
15195
15201
|
biReportItems.group = [];
|
|
15196
15202
|
}
|
|
@@ -25732,6 +25738,14 @@ var DashboardController = class extends ControlController {
|
|
|
25732
25738
|
* @type {{ [key: string]: IPortletController }}
|
|
25733
25739
|
*/
|
|
25734
25740
|
this.portlets = {};
|
|
25741
|
+
/**
|
|
25742
|
+
* 动态门户部件Map
|
|
25743
|
+
*
|
|
25744
|
+
* @author tony001
|
|
25745
|
+
* @date 2024-07-09 17:07:57
|
|
25746
|
+
* @type {Map<string, IData>}
|
|
25747
|
+
*/
|
|
25748
|
+
this.dynaPortletMap = /* @__PURE__ */ new Map();
|
|
25735
25749
|
}
|
|
25736
25750
|
initState() {
|
|
25737
25751
|
super.initState();
|
|
@@ -25895,6 +25909,7 @@ var DashboardController = class extends ControlController {
|
|
|
25895
25909
|
tempContext,
|
|
25896
25910
|
this.params
|
|
25897
25911
|
);
|
|
25912
|
+
this.dynaPortletMap.set(id, res.data);
|
|
25898
25913
|
if (res && res.data && res.data.controlmodel) {
|
|
25899
25914
|
const controlModel = JSON.parse(res.data.controlmodel);
|
|
25900
25915
|
return await ibiz.hub.translationModelToDsl(
|
|
@@ -25959,7 +25974,7 @@ var CustomDashboardController = class {
|
|
|
25959
25974
|
*/
|
|
25960
25975
|
this.portletConfig = {};
|
|
25961
25976
|
/**
|
|
25962
|
-
* 自定义定制范围类型(public:公开,personal:个人,data
|
|
25977
|
+
* 自定义定制范围类型(public:公开,personal:个人,data:数据,默认是按照个人区分,配置了应用功能组件才生效)
|
|
25963
25978
|
*
|
|
25964
25979
|
* @author tony001
|
|
25965
25980
|
* @date 2024-04-24 19:04:47
|
|
@@ -25982,6 +25997,22 @@ var CustomDashboardController = class {
|
|
|
25982
25997
|
* @type {string}
|
|
25983
25998
|
*/
|
|
25984
25999
|
this.ownerId = "";
|
|
26000
|
+
/**
|
|
26001
|
+
* 多数据模式,启用时请求参数从上下文中获取srfdynadashboardid的值
|
|
26002
|
+
*
|
|
26003
|
+
* @author tony001
|
|
26004
|
+
* @date 2024-07-08 14:07:51
|
|
26005
|
+
* @type {boolean}
|
|
26006
|
+
*/
|
|
26007
|
+
this.multiMode = false;
|
|
26008
|
+
/**
|
|
26009
|
+
* 展示设计按钮,启用定制默认会展示
|
|
26010
|
+
*
|
|
26011
|
+
* @author tony001
|
|
26012
|
+
* @date 2024-07-08 14:07:15
|
|
26013
|
+
* @type {boolean}
|
|
26014
|
+
*/
|
|
26015
|
+
this.showDesignBtn = true;
|
|
25985
26016
|
this.context = dashboard.context;
|
|
25986
26017
|
this.params = dashboard.params;
|
|
25987
26018
|
this.init(dashboard.controlParams);
|
|
@@ -26007,7 +26038,10 @@ var CustomDashboardController = class {
|
|
|
26007
26038
|
this.ownerId = this.context[controlParams.owner_id];
|
|
26008
26039
|
}
|
|
26009
26040
|
if (controlParams.multimode === "true") {
|
|
26010
|
-
this.
|
|
26041
|
+
this.multiMode = true;
|
|
26042
|
+
}
|
|
26043
|
+
if (controlParams.showdesignbtn === "false") {
|
|
26044
|
+
this.showDesignBtn = false;
|
|
26011
26045
|
}
|
|
26012
26046
|
if (this.model.appDynaDashboardUtilId) {
|
|
26013
26047
|
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
@@ -26032,14 +26066,15 @@ var CustomDashboardController = class {
|
|
|
26032
26066
|
*/
|
|
26033
26067
|
getResourceTag() {
|
|
26034
26068
|
var _a, _b;
|
|
26069
|
+
if (this.multiMode) {
|
|
26070
|
+
return this.context.srfdynadashboardid;
|
|
26071
|
+
}
|
|
26035
26072
|
const base = "".concat(this.context.srfappid, "_dashboard_").concat(((_a = this.model.appDataEntityId) == null ? void 0 : _a.toLowerCase()) || "app", "_").concat((_b = this.model.codeName) == null ? void 0 : _b.toLowerCase());
|
|
26036
26073
|
switch (this.type) {
|
|
26037
26074
|
case "personal":
|
|
26038
26075
|
return "".concat(base, "_").concat(this.context.srfpersonid);
|
|
26039
26076
|
case "data":
|
|
26040
26077
|
return "".concat(base, "_").concat(this.ownerType, "_").concat(this.ownerId);
|
|
26041
|
-
case "dynamic":
|
|
26042
|
-
return "".concat(this.context.srfdynadashboardid);
|
|
26043
26078
|
default:
|
|
26044
26079
|
return base;
|
|
26045
26080
|
}
|
|
@@ -26051,6 +26086,9 @@ var CustomDashboardController = class {
|
|
|
26051
26086
|
* @Date: 2023-09-20 16:22:49
|
|
26052
26087
|
*/
|
|
26053
26088
|
async loadCustomModelData() {
|
|
26089
|
+
if (this.multiMode && !this.context.srfdynadashboardid) {
|
|
26090
|
+
return { model: this.customModelData, config: this.portletConfig };
|
|
26091
|
+
}
|
|
26054
26092
|
let res;
|
|
26055
26093
|
if (this.util) {
|
|
26056
26094
|
res = await this.util.load(
|
|
@@ -26062,6 +26100,15 @@ var CustomDashboardController = class {
|
|
|
26062
26100
|
res = await this.config.load();
|
|
26063
26101
|
}
|
|
26064
26102
|
if (res.model) {
|
|
26103
|
+
for (let i = 0; i < res.model.length; i++) {
|
|
26104
|
+
const item = res.model[i];
|
|
26105
|
+
if (item.orignModel) {
|
|
26106
|
+
item.portletModel = await ibiz.hub.translationModelToDsl(
|
|
26107
|
+
item.portletModel,
|
|
26108
|
+
"CTRL"
|
|
26109
|
+
);
|
|
26110
|
+
}
|
|
26111
|
+
}
|
|
26065
26112
|
this.customModelData = res.model;
|
|
26066
26113
|
}
|
|
26067
26114
|
if (res.colNum) {
|
|
@@ -32023,10 +32070,12 @@ var GridController = class extends MDControlController {
|
|
|
32023
32070
|
if (!this.addSchemaColumn) {
|
|
32024
32071
|
return;
|
|
32025
32072
|
}
|
|
32073
|
+
const tempParams = clone31(this.jsonSchemaParams);
|
|
32074
|
+
Object.assign(tempParams, this.params);
|
|
32026
32075
|
const json = await getEntitySchema(
|
|
32027
32076
|
this.model.appDataEntityId,
|
|
32028
32077
|
this.context,
|
|
32029
|
-
|
|
32078
|
+
tempParams
|
|
32030
32079
|
);
|
|
32031
32080
|
if (!json) {
|
|
32032
32081
|
return;
|
|
@@ -33297,7 +33346,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
33297
33346
|
leading: true,
|
|
33298
33347
|
trailing: false
|
|
33299
33348
|
});
|
|
33300
|
-
this.loadCodeList();
|
|
33349
|
+
await this.loadCodeList();
|
|
33301
33350
|
}
|
|
33302
33351
|
/**
|
|
33303
33352
|
* 初始化属性列界面行为组按钮状态
|
|
@@ -35944,10 +35993,12 @@ var SearchBarController = class extends ControlController {
|
|
|
35944
35993
|
if (!this.addSchemaFilters) {
|
|
35945
35994
|
return;
|
|
35946
35995
|
}
|
|
35996
|
+
const tempParams = clone34(this.jsonSchemaParams);
|
|
35997
|
+
Object.assign(tempParams, this.params);
|
|
35947
35998
|
const json = await getEntitySchema(
|
|
35948
35999
|
this.model.appDataEntityId,
|
|
35949
36000
|
this.context,
|
|
35950
|
-
|
|
36001
|
+
tempParams
|
|
35951
36002
|
);
|
|
35952
36003
|
if (!json) {
|
|
35953
36004
|
return;
|