@ibiz-template/runtime 0.7.41-alpha.112 → 0.7.41-alpha.114
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 +264 -44
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +1 -0
- package/out/constant/predefined-attributes.d.ts +5 -1
- package/out/constant/predefined-attributes.d.ts.map +1 -1
- package/out/constant/predefined-attributes.js +4 -0
- package/out/controller/common/control/md-control.controller.js +1 -1
- package/out/controller/control/form/form/form.controller.d.ts +9 -1
- package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form/form.controller.js +54 -5
- 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 +5 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts +4 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +45 -8
- package/out/controller/control/md-ctrl/md-ctrl.controller.d.ts +2 -1
- package/out/controller/control/md-ctrl/md-ctrl.controller.d.ts.map +1 -1
- package/out/controller/control/md-ctrl/md-ctrl.controller.js +37 -6
- package/out/controller/control/medit-view-panel/medit-view-panel.controller.d.ts +16 -1
- 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 +31 -0
- package/out/controller/utils/data-file-util/data-file-util.d.ts +2 -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 +11 -6
- package/out/interface/api/call/i-api-medit-view9.call.d.ts +20 -0
- package/out/interface/api/call/i-api-medit-view9.call.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +9 -0
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-medit-view-panel.controller.d.ts +9 -0
- package/out/interface/api/controller/control/i-api-medit-view-panel.controller.d.ts.map +1 -1
- package/out/interface/api/util/i-api-excel-util.d.ts +53 -1
- package/out/interface/api/util/i-api-excel-util.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree.state.d.ts +12 -0
- package/out/interface/controller/state/control/i-tree.state.d.ts.map +1 -1
- package/out/interface/provider/i-platform-provider.d.ts +54 -2
- package/out/interface/provider/i-platform-provider.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +3 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +3 -0
- package/out/locale/zh-CN/index.d.ts +3 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +3 -0
- package/out/platform/provider/platform-provider-base.d.ts.map +1 -1
- package/out/platform/provider/platform-provider-base.js +1 -2
- package/out/service/vo/tree-node-data/tree-code-list-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-code-list-node-data.js +2 -0
- package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts +14 -0
- package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-data-set-node-data.js +33 -0
- package/out/service/vo/tree-node-data/tree-node-data.d.ts +16 -0
- package/out/service/vo/tree-node-data/tree-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-node-data.js +25 -0
- package/out/service/vo/tree-node-data/tree-static-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-static-node-data.js +2 -0
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +3 -1
- package/package.json +3 -3
- package/src/config/global-config.ts +1 -0
- package/src/constant/predefined-attributes.ts +5 -0
- package/src/controller/common/control/md-control.controller.ts +1 -1
- package/src/controller/control/form/form/form.controller.ts +58 -11
- package/src/controller/control/form/form-detail/form-druipart/form-druipart.controller.ts +3 -0
- package/src/controller/control/grid/grid/grid.controller.ts +63 -11
- package/src/controller/control/md-ctrl/md-ctrl.controller.ts +52 -7
- package/src/controller/control/medit-view-panel/medit-view-panel.controller.ts +39 -1
- package/src/controller/utils/data-file-util/data-file-util.ts +21 -9
- package/src/interface/api/call/i-api-medit-view9.call.ts +21 -0
- package/src/interface/api/common/global-config/i-api-global-common-config.ts +10 -0
- package/src/interface/api/controller/control/i-api-medit-view-panel.controller.ts +10 -0
- package/src/interface/api/util/i-api-excel-util.ts +38 -1
- package/src/interface/controller/state/control/i-tree.state.ts +14 -0
- package/src/interface/provider/i-platform-provider.ts +43 -2
- package/src/locale/en/index.ts +4 -0
- package/src/locale/zh-CN/index.ts +3 -0
- package/src/platform/provider/platform-provider-base.ts +1 -2
- package/src/service/vo/tree-node-data/tree-code-list-node-data.ts +2 -0
- package/src/service/vo/tree-node-data/tree-data-set-node-data.ts +35 -0
- package/src/service/vo/tree-node-data/tree-node-data.ts +33 -0
- package/src/service/vo/tree-node-data/tree-static-node-data.ts +2 -0
- package/src/ui-action/provider/front-ui-action-provider.ts +3 -1
|
@@ -62,10 +62,51 @@ export interface IFrontExportParams {
|
|
|
62
62
|
header: string[];
|
|
63
63
|
/**
|
|
64
64
|
* @description 表格数据
|
|
65
|
-
* @type {
|
|
65
|
+
* @type {string[][]}
|
|
66
66
|
* @memberof IFrontExportParams
|
|
67
67
|
*/
|
|
68
|
-
data:
|
|
68
|
+
data: string[][];
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @description 行高集合
|
|
72
|
+
* @type hpt(磅)/ hpx(像素)
|
|
73
|
+
* @memberof IFrontExportParams
|
|
74
|
+
*/
|
|
75
|
+
rowHeights?: (rows: string[][]) => { hpx: number }[] | { hpt: number }[];
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @description 列宽集合
|
|
79
|
+
* @type wch(字符数)/ wpx(像素)
|
|
80
|
+
* @memberof IFrontExportParams
|
|
81
|
+
*/
|
|
82
|
+
colWidths?: (rows: string[][]) => { wch: number }[] | { wpx: number }[];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @description 多表头数据
|
|
86
|
+
* @type {string[][]}
|
|
87
|
+
* @memberof IFrontExportParams
|
|
88
|
+
*/
|
|
89
|
+
multiHeader?: string[][];
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @description 合并单元格
|
|
93
|
+
* @type {{ s: { r: number; c: number }; e: { r: number; c: number } }[]} s: 起始坐标, e: 结束坐标
|
|
94
|
+
* @memberof IFrontExportParams
|
|
95
|
+
*/
|
|
96
|
+
merges?: { s: { r: number; c: number }; e: { r: number; c: number } }[];
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @description 单元格样式,详情参考:https://gitbrent.github.io/xlsx-js-style/
|
|
100
|
+
* @type {(rows: string[][], value: unknown, rowIndex: number, colIndex: number, isHeaderCell: boolean) => { fill?: IData; font?: IData; alignment?: IData; border?: IData }}
|
|
101
|
+
* @memberof IFrontExportParams
|
|
102
|
+
*/
|
|
103
|
+
cellStyle?: (
|
|
104
|
+
rows: string[][],
|
|
105
|
+
value: unknown,
|
|
106
|
+
rowIndex: number,
|
|
107
|
+
colIndex: number,
|
|
108
|
+
isHeaderCell: boolean,
|
|
109
|
+
) => { fill?: IData; font?: IData; alignment?: IData; border?: IData };
|
|
69
110
|
}
|
|
70
111
|
|
|
71
112
|
/**
|
package/src/locale/en/index.ts
CHANGED
|
@@ -120,6 +120,9 @@ export const en = {
|
|
|
120
120
|
},
|
|
121
121
|
form: {
|
|
122
122
|
formCompletion: 'Please check the form completion!',
|
|
123
|
+
validateFail:
|
|
124
|
+
'Form validation failed, failed fields include: {names}',
|
|
125
|
+
validateFailSeparator: ', ',
|
|
123
126
|
savedSuccessfully: '{srfmajortext}Saved successfully!',
|
|
124
127
|
prompt: 'prompt',
|
|
125
128
|
deletion: 'Confirm deletion?',
|
|
@@ -197,6 +200,7 @@ export const en = {
|
|
|
197
200
|
meditViewPanel: {
|
|
198
201
|
DraftNew: 'Draft - New',
|
|
199
202
|
dataExist: 'Edit View Panel widget UI data does not exist',
|
|
203
|
+
ignoreDataChange: 'Ignore data changes in the multi-edit panel',
|
|
200
204
|
},
|
|
201
205
|
panel: {
|
|
202
206
|
panelData: 'Panel data not captured',
|
|
@@ -103,6 +103,8 @@ export const zhCn = {
|
|
|
103
103
|
},
|
|
104
104
|
form: {
|
|
105
105
|
formCompletion: '请检查表单填写!',
|
|
106
|
+
validateFail: '表单校验失败,失败表单成员包含: {names}',
|
|
107
|
+
validateFailSeparator: '、',
|
|
106
108
|
savedSuccessfully: '{srfmajortext}保存成功',
|
|
107
109
|
prompt: '提示',
|
|
108
110
|
deletion: '确认删除吗?',
|
|
@@ -163,6 +165,7 @@ export const zhCn = {
|
|
|
163
165
|
meditViewPanel: {
|
|
164
166
|
DraftNew: '草稿--新建',
|
|
165
167
|
dataExist: '编辑视图面板部件UI数据不存在',
|
|
168
|
+
ignoreDataChange: '多编辑面板忽略数据变更',
|
|
166
169
|
},
|
|
167
170
|
panel: {
|
|
168
171
|
panelData: '未获取到面板数据',
|
|
@@ -107,8 +107,7 @@ export abstract class PlatformProviderBase implements IPlatformProvider {
|
|
|
107
107
|
* @memberof PlatformProviderBase
|
|
108
108
|
*/
|
|
109
109
|
async frontExport(args: IFrontExportParams): Promise<boolean> {
|
|
110
|
-
|
|
111
|
-
await exportData(header, data, fileName);
|
|
110
|
+
await exportData(args);
|
|
112
111
|
return true;
|
|
113
112
|
}
|
|
114
113
|
|
|
@@ -66,6 +66,8 @@ export class TreeCodeListNodeData
|
|
|
66
66
|
this.srfkey = this._value;
|
|
67
67
|
this.srfmajortext = this._text;
|
|
68
68
|
this._icon = this.calcIcon(model, data.sysImage);
|
|
69
|
+
this.calcDynaClass(model);
|
|
70
|
+
this.calcShapeDynaClass(model);
|
|
69
71
|
|
|
70
72
|
const getDeKey = (key: string | symbol): string | symbol | undefined => {
|
|
71
73
|
// deData属性上可枚举的属性,返回该属性名称
|
|
@@ -124,6 +124,9 @@ export class TreeDataSetNodeData extends TreeNodeData implements ITreeNodeData {
|
|
|
124
124
|
} else if (model.childCntAppDEFieldId) {
|
|
125
125
|
this._leaf = !fieldValueToBoolean(data[model.childCntAppDEFieldId]);
|
|
126
126
|
}
|
|
127
|
+
// 计算动态样式表
|
|
128
|
+
this.calcDynaClass(model);
|
|
129
|
+
this.calcShapeDynaClass(model);
|
|
127
130
|
|
|
128
131
|
/** 数据项和实体属性映射 */
|
|
129
132
|
const dataItemKeyMap = new Map<string | symbol, string | symbol>();
|
|
@@ -324,6 +327,38 @@ export class TreeDataSetNodeData extends TreeNodeData implements ITreeNodeData {
|
|
|
324
327
|
return Object.values(icon).length > 0 ? icon : undefined;
|
|
325
328
|
}
|
|
326
329
|
|
|
330
|
+
/**
|
|
331
|
+
* @description 计算动态样式表(附加实体节点样式表属性)
|
|
332
|
+
* @protected
|
|
333
|
+
* @param {IDETreeDataSetNode} model
|
|
334
|
+
* @memberof TreeDataSetNodeData
|
|
335
|
+
*/
|
|
336
|
+
protected calcDynaClass(model: IDETreeDataSetNode): void {
|
|
337
|
+
super.calcDynaClass(model);
|
|
338
|
+
const { clsAppDEFieldId } = model;
|
|
339
|
+
if (clsAppDEFieldId && this._deData[clsAppDEFieldId]) {
|
|
340
|
+
const fieldValue = this._deData[clsAppDEFieldId];
|
|
341
|
+
this._dynaClass ||= [];
|
|
342
|
+
this._dynaClass.push(String(fieldValue));
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @description 计算图形动态样式表(附加实体节点图形样式表属性)
|
|
348
|
+
* @protected
|
|
349
|
+
* @param {IDETreeDataSetNode} model
|
|
350
|
+
* @memberof TreeDataSetNodeData
|
|
351
|
+
*/
|
|
352
|
+
protected calcShapeDynaClass(model: IDETreeDataSetNode): void {
|
|
353
|
+
super.calcShapeDynaClass(model);
|
|
354
|
+
const { shapeClsAppDEFieldId } = model;
|
|
355
|
+
if (shapeClsAppDEFieldId && this._deData[shapeClsAppDEFieldId]) {
|
|
356
|
+
const fieldValue = this._deData[shapeClsAppDEFieldId];
|
|
357
|
+
this._shapeDynaClass ||= [];
|
|
358
|
+
this._shapeDynaClass.push(String(fieldValue));
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
327
362
|
/**
|
|
328
363
|
* 计算节点数据项的自定义脚本内容
|
|
329
364
|
* @author lxm
|
|
@@ -2,6 +2,7 @@ import { IDETreeNode, ISysImage } from '@ibiz/model-core';
|
|
|
2
2
|
import { createUUID } from 'qx-util';
|
|
3
3
|
import { isBase64Image } from '@ibiz-template/core';
|
|
4
4
|
import { IIcon, ITreeNodeData } from '../../../interface';
|
|
5
|
+
import { calcDynaClass } from '../../../model';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* 树节点数据基类
|
|
@@ -63,6 +64,12 @@ export abstract class TreeNodeData implements ITreeNodeData {
|
|
|
63
64
|
|
|
64
65
|
_fullParams?: IParams;
|
|
65
66
|
|
|
67
|
+
// 动态样式表
|
|
68
|
+
_dynaClass?: string[];
|
|
69
|
+
|
|
70
|
+
// 图形动态样式表
|
|
71
|
+
_shapeDynaClass?: string[];
|
|
72
|
+
|
|
66
73
|
constructor(
|
|
67
74
|
model: IDETreeNode,
|
|
68
75
|
parentNodeData: ITreeNodeData | undefined,
|
|
@@ -199,4 +206,30 @@ export abstract class TreeNodeData implements ITreeNodeData {
|
|
|
199
206
|
}
|
|
200
207
|
return this._deData;
|
|
201
208
|
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @description 计算动态样式表
|
|
212
|
+
* @protected
|
|
213
|
+
* @param {IDETreeNode} model
|
|
214
|
+
* @memberof TreeNodeData
|
|
215
|
+
*/
|
|
216
|
+
protected calcDynaClass(model: IDETreeNode): void {
|
|
217
|
+
const data = this._deData || {};
|
|
218
|
+
if (model.dynaClass) {
|
|
219
|
+
this._dynaClass = calcDynaClass(model.dynaClass, data);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @description 计算图形动态样式表
|
|
225
|
+
* @protected
|
|
226
|
+
* @param {IDETreeNode} model
|
|
227
|
+
* @memberof TreeNodeData
|
|
228
|
+
*/
|
|
229
|
+
protected calcShapeDynaClass(model: IDETreeNode): void {
|
|
230
|
+
const data = this._deData || {};
|
|
231
|
+
if (model.shapeDynaClass) {
|
|
232
|
+
this._shapeDynaClass = calcDynaClass(model.shapeDynaClass, data);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
202
235
|
}
|
|
@@ -351,7 +351,9 @@ export class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
351
351
|
// 参数
|
|
352
352
|
const params: IData = {
|
|
353
353
|
page: 0,
|
|
354
|
-
size: appDEDataExport.maxRowCount
|
|
354
|
+
size: appDEDataExport.maxRowCount
|
|
355
|
+
? appDEDataExport.maxRowCount
|
|
356
|
+
: ibiz.config.common.maxExportRowsDefault,
|
|
355
357
|
...args.params,
|
|
356
358
|
...resultParams,
|
|
357
359
|
};
|