@ibiz-template/runtime 0.7.41-alpha.95 → 0.7.41-alpha.97
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 +146 -114
- package/dist/index.system.min.js +1 -1
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +2 -1
- package/out/controller/control/calendar/calendar.controller.d.ts +6 -0
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +13 -0
- package/out/controller/control/gantt/gantt.controller.d.ts +31 -39
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +31 -39
- 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/kanban/kanban.controller.d.ts +5 -0
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +6 -1
- package/out/controller/control/map/map.controller.d.ts.map +1 -1
- package/out/controller/control/map/map.controller.js +7 -2
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-column/tree-grid-ex-column.controller.d.ts +2 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-column/tree-grid-ex-column.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts +84 -63
- 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 +86 -80
- package/out/interface/api/controller/control/i-api-app-menu.controller.d.ts +10 -4
- package/out/interface/api/controller/control/i-api-app-menu.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-dashboard.controller.d.ts +18 -1
- package/out/interface/api/controller/control/i-api-dashboard.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-drbar.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-drtab.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-gantt.controller.d.ts +19 -5
- package/out/interface/api/controller/control/i-api-gantt.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts +0 -7
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-map.controller.d.ts +8 -2
- package/out/interface/api/controller/control/i-api-map.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts +58 -2
- package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-wizard-panel.controller.d.ts +39 -1
- package/out/interface/api/controller/control/i-api-wizard-panel.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.d.ts +1 -0
- package/out/interface/api/controller/control/index.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.js +1 -0
- package/out/interface/api/controller/control/portlet/i-api-portlet.controller.d.ts +4 -4
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.d.ts +47 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.d.ts.map +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.js +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.d.ts +2 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.d.ts.map +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.js +1 -0
- package/out/interface/api/state/control/i-api-app-menu.state.d.ts +2 -2
- package/out/interface/api/state/control/i-api-app-menu.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-drbar.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-drtab.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-gantt.state.d.ts +6 -0
- package/out/interface/api/state/control/i-api-gantt.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-kanban.state.d.ts +49 -0
- package/out/interface/api/state/control/i-api-kanban.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-map.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-tree-grid-ex.state.d.ts +8 -1
- package/out/interface/api/state/control/i-api-tree-grid-ex.state.d.ts.map +1 -1
- package/out/interface/api/state/control/index.d.ts +1 -1
- package/out/interface/api/state/control/index.d.ts.map +1 -1
- package/out/interface/api/state/control/search-bar/i-api-search-bar.state.d.ts +2 -2
- package/out/interface/controller/controller/common/i-drag-change-info.d.ts +1 -3
- package/out/interface/controller/controller/common/i-drag-change-info.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-dashboard.controller.d.ts +0 -20
- package/out/interface/controller/controller/control/i-dashboard.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-gantt.controller.d.ts +8 -0
- package/out/interface/controller/controller/control/i-gantt.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-kanban.controller.d.ts +7 -0
- package/out/interface/controller/controller/control/i-kanban.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree-grid-ex.controller.d.ts +0 -14
- package/out/interface/controller/controller/control/i-tree-grid-ex.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/tree-grid-ex-column/i-tree-grid-ex-column.controller.d.ts +2 -1
- package/out/interface/controller/controller/control/tree-grid-ex-column/i-tree-grid-ex-column.controller.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-gantt.state.d.ts +1 -1
- package/out/interface/controller/state/control/i-gantt.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-kanban.state.d.ts +2 -38
- package/out/interface/controller/state/control/i-kanban.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree-grid-ex.state.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -29993,7 +29993,7 @@ var MDControlController = class extends ControlController {
|
|
|
29993
29993
|
"".concat(this.view.model.id, ".").concat(this.model.name, ".sort")
|
|
29994
29994
|
);
|
|
29995
29995
|
} else if (minorSortAppDEFieldId && minorSortDir) {
|
|
29996
|
-
const fieldName = this.fieldIdNameMap.get(minorSortAppDEFieldId);
|
|
29996
|
+
const fieldName = this.fieldIdNameMap.get(minorSortAppDEFieldId) || minorSortAppDEFieldId;
|
|
29997
29997
|
this.state.sortQuery = "".concat(fieldName.toLowerCase(), ",").concat(minorSortDir.toLowerCase());
|
|
29998
29998
|
} else if (ibiz.config.mdctrldefaultsort) {
|
|
29999
29999
|
this.state.sortQuery = ibiz.config.mdctrldefaultsort;
|
|
@@ -36182,6 +36182,19 @@ var CalendarController = class extends MDControlController {
|
|
|
36182
36182
|
async goToLastPage() {
|
|
36183
36183
|
return [];
|
|
36184
36184
|
}
|
|
36185
|
+
/**
|
|
36186
|
+
* @description 转换各类多语言
|
|
36187
|
+
* @protected
|
|
36188
|
+
* @memberof CalendarController
|
|
36189
|
+
*/
|
|
36190
|
+
convertMultipleLanguages() {
|
|
36191
|
+
const { sysCalendarItems = [] } = this.model;
|
|
36192
|
+
sysCalendarItems.forEach((item) => {
|
|
36193
|
+
var _a3;
|
|
36194
|
+
if ((_a3 = item.nameLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
36195
|
+
item.name = ibiz.i18n.t(item.nameLanguageRes.lanResTag, item.name);
|
|
36196
|
+
});
|
|
36197
|
+
}
|
|
36185
36198
|
};
|
|
36186
36199
|
|
|
36187
36200
|
// src/controller/control/chart/chart.controller.ts
|
|
@@ -52164,9 +52177,10 @@ var GridController = class extends MDControlController {
|
|
|
52164
52177
|
* @param {string} order 排序顺序
|
|
52165
52178
|
*/
|
|
52166
52179
|
setSort(fieldId, order) {
|
|
52180
|
+
var _a3;
|
|
52167
52181
|
let fieldName;
|
|
52168
52182
|
if (fieldId) {
|
|
52169
|
-
fieldName = this.state.isAutoGrid ? fieldId.toLowerCase() : this.fieldIdNameMap.get(fieldId).toLowerCase();
|
|
52183
|
+
fieldName = this.state.isAutoGrid ? fieldId.toLowerCase() : ((_a3 = this.fieldIdNameMap.get(fieldId)) == null ? void 0 : _a3.toLowerCase()) || fieldId.toLowerCase();
|
|
52170
52184
|
}
|
|
52171
52185
|
super.setSort(fieldName, order);
|
|
52172
52186
|
}
|
|
@@ -60521,7 +60535,12 @@ var KanbanController = class extends DataViewControlController {
|
|
|
60521
60535
|
detail.appId
|
|
60522
60536
|
);
|
|
60523
60537
|
}
|
|
60524
|
-
|
|
60538
|
+
/**
|
|
60539
|
+
* @description 处理数据分组
|
|
60540
|
+
* @returns {*} {Promise<void>}
|
|
60541
|
+
* @memberof KanbanController
|
|
60542
|
+
*/
|
|
60543
|
+
async handleDataGroup() {
|
|
60525
60544
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
60526
60545
|
throw new RuntimeError46(
|
|
60527
60546
|
ibiz.i18n.t("runtime.controller.control.kanban.groupedOn")
|
|
@@ -61054,6 +61073,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61054
61073
|
get allowRowEdit() {
|
|
61055
61074
|
return this.state.rowEditOpen;
|
|
61056
61075
|
}
|
|
61076
|
+
/**
|
|
61077
|
+
* @description 初始化state
|
|
61078
|
+
* @protected
|
|
61079
|
+
* @memberof TreeGridExController
|
|
61080
|
+
*/
|
|
61057
61081
|
initState() {
|
|
61058
61082
|
super.initState();
|
|
61059
61083
|
this.state.columnStates = [];
|
|
@@ -61061,11 +61085,23 @@ var TreeGridExController = class extends TreeController {
|
|
|
61061
61085
|
this.state.rows = {};
|
|
61062
61086
|
this.state.rowEditOpen = true;
|
|
61063
61087
|
}
|
|
61088
|
+
/**
|
|
61089
|
+
* @description 生命周期-创建完成
|
|
61090
|
+
* @protected
|
|
61091
|
+
* @returns {*} {Promise<void>}
|
|
61092
|
+
* @memberof TreeGridExController
|
|
61093
|
+
*/
|
|
61064
61094
|
async onCreated() {
|
|
61065
61095
|
await super.onCreated();
|
|
61066
61096
|
await this.initGridColumns();
|
|
61067
61097
|
this.initColumnStates();
|
|
61068
61098
|
}
|
|
61099
|
+
/**
|
|
61100
|
+
* @description 初始化部件服务
|
|
61101
|
+
* @protected
|
|
61102
|
+
* @returns {*} {Promise<void>}
|
|
61103
|
+
* @memberof TreeGridExController
|
|
61104
|
+
*/
|
|
61069
61105
|
async initService() {
|
|
61070
61106
|
this.service = new TreeGridExService(this.model);
|
|
61071
61107
|
await this.service.init(this.context);
|
|
@@ -61100,12 +61136,9 @@ var TreeGridExController = class extends TreeController {
|
|
|
61100
61136
|
await Promise.all(asyncTasks);
|
|
61101
61137
|
}
|
|
61102
61138
|
/**
|
|
61103
|
-
* 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61104
|
-
*
|
|
61105
|
-
* @author zk
|
|
61106
|
-
* @date 2023-09-21 06:09:28
|
|
61139
|
+
* @description 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61107
61140
|
* @protected
|
|
61108
|
-
* @
|
|
61141
|
+
* @returns {*} {Promise<void>}
|
|
61109
61142
|
* @memberof TreeGridExController
|
|
61110
61143
|
*/
|
|
61111
61144
|
async initGridColumns() {
|
|
@@ -61118,13 +61151,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61118
61151
|
}
|
|
61119
61152
|
}
|
|
61120
61153
|
/**
|
|
61121
|
-
* 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61122
|
-
*
|
|
61123
|
-
* @author zk
|
|
61124
|
-
* @date 2023-09-21 06:09:37
|
|
61154
|
+
* @description 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61125
61155
|
* @protected
|
|
61126
61156
|
* @param {IDETreeColumn} column
|
|
61127
|
-
* @
|
|
61157
|
+
* @returns {*} {Promise<void>}
|
|
61128
61158
|
* @memberof TreeGridExController
|
|
61129
61159
|
*/
|
|
61130
61160
|
async initColumnsController(column) {
|
|
@@ -61142,11 +61172,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61142
61172
|
}
|
|
61143
61173
|
}
|
|
61144
61174
|
/**
|
|
61145
|
-
*
|
|
61146
|
-
*
|
|
61175
|
+
* @description 部件加载之后
|
|
61147
61176
|
* @param {MDCtrlLoadParams} args
|
|
61148
61177
|
* @param {IData[]} items
|
|
61149
|
-
* @
|
|
61178
|
+
* @returns {*} {Promise<IData[]>}
|
|
61150
61179
|
* @memberof TreeGridExController
|
|
61151
61180
|
*/
|
|
61152
61181
|
async afterLoad(args, items) {
|
|
@@ -61155,10 +61184,9 @@ var TreeGridExController = class extends TreeController {
|
|
|
61155
61184
|
return items;
|
|
61156
61185
|
}
|
|
61157
61186
|
/**
|
|
61158
|
-
* 更新列状态
|
|
61159
|
-
*
|
|
61187
|
+
* @description 更新列状态
|
|
61160
61188
|
* @param {IData} rows
|
|
61161
|
-
* @
|
|
61189
|
+
* @returns {*} {Promise<void>}
|
|
61162
61190
|
* @memberof TreeGridExController
|
|
61163
61191
|
*/
|
|
61164
61192
|
async updateRows(rows) {
|
|
@@ -61175,10 +61203,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
61175
61203
|
});
|
|
61176
61204
|
}
|
|
61177
61205
|
/**
|
|
61178
|
-
* 初始化树表格(增强)列状态
|
|
61179
|
-
*
|
|
61180
|
-
* @author zk
|
|
61181
|
-
* @date 2023-09-21 06:09:43
|
|
61206
|
+
* @description 初始化树表格(增强)列状态
|
|
61182
61207
|
* @protected
|
|
61183
61208
|
* @memberof TreeGridExController
|
|
61184
61209
|
*/
|
|
@@ -61199,10 +61224,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
61199
61224
|
this.calcColumnFixed();
|
|
61200
61225
|
}
|
|
61201
61226
|
/**
|
|
61202
|
-
* 计算列的固定状态
|
|
61203
|
-
*
|
|
61204
|
-
* @author zk
|
|
61205
|
-
* @date 2023-09-21 06:09:50
|
|
61227
|
+
* @description 计算列的固定状态
|
|
61206
61228
|
* @protected
|
|
61207
61229
|
* @memberof TreeGridExController
|
|
61208
61230
|
*/
|
|
@@ -61218,11 +61240,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61218
61240
|
});
|
|
61219
61241
|
}
|
|
61220
61242
|
/**
|
|
61221
|
-
*
|
|
61222
|
-
* @
|
|
61223
|
-
* @
|
|
61224
|
-
* @
|
|
61225
|
-
* @return {*} {(ITreeGridExRowState | undefined)}
|
|
61243
|
+
* @description 获取表格行状态
|
|
61244
|
+
* @param {string} key
|
|
61245
|
+
* @returns {*} {(ITreeGridExRowState | undefined)}
|
|
61246
|
+
* @memberof TreeGridExController
|
|
61226
61247
|
*/
|
|
61227
61248
|
getRowState(key) {
|
|
61228
61249
|
const nodeData = this.getNodeData(key);
|
|
@@ -61230,6 +61251,12 @@ var TreeGridExController = class extends TreeController {
|
|
|
61230
61251
|
return this.state.rows[nodeData._uuid];
|
|
61231
61252
|
}
|
|
61232
61253
|
}
|
|
61254
|
+
/**
|
|
61255
|
+
* @description 节点加载之后
|
|
61256
|
+
* @param {ITreeNodeData[]} nodes 树节点数据
|
|
61257
|
+
* @returns {*} {Promise<void>}
|
|
61258
|
+
* @memberof TreeGridExController
|
|
61259
|
+
*/
|
|
61233
61260
|
async afterLoadNodes(nodes) {
|
|
61234
61261
|
await super.afterLoadNodes(nodes);
|
|
61235
61262
|
recursiveIterate16(
|
|
@@ -61263,6 +61290,12 @@ var TreeGridExController = class extends TreeController {
|
|
|
61263
61290
|
);
|
|
61264
61291
|
});
|
|
61265
61292
|
}
|
|
61293
|
+
/**
|
|
61294
|
+
* @description 保存数据
|
|
61295
|
+
* @param {ITreeNodeData} nodeData 树节点数据
|
|
61296
|
+
* @returns {*} {Promise<void>}
|
|
61297
|
+
* @memberof TreeGridExController
|
|
61298
|
+
*/
|
|
61266
61299
|
async save(nodeData) {
|
|
61267
61300
|
if (this.state.isSimple) {
|
|
61268
61301
|
ibiz.log.debug(ibiz.i18n.t("runtime.controller.common.md.simpleMode"));
|
|
@@ -61327,6 +61360,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61327
61360
|
await this.updateRows(this.state.rows);
|
|
61328
61361
|
await this._evt.emit("onSaveSuccess", void 0);
|
|
61329
61362
|
}
|
|
61363
|
+
/**
|
|
61364
|
+
* @description 保存所有变更数据
|
|
61365
|
+
* @returns {*} {Promise<void>}
|
|
61366
|
+
* @memberof TreeGridExController
|
|
61367
|
+
*/
|
|
61330
61368
|
async saveAll() {
|
|
61331
61369
|
const needSaveData = Object.values(this.state.rows).filter((row) => row.modified).map((row) => row.data);
|
|
61332
61370
|
if (!needSaveData.length) {
|
|
@@ -61339,10 +61377,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61339
61377
|
);
|
|
61340
61378
|
}
|
|
61341
61379
|
/**
|
|
61342
|
-
* 树表格状态变更通知
|
|
61343
|
-
*
|
|
61344
|
-
* @
|
|
61345
|
-
* @
|
|
61380
|
+
* @description 树表格状态变更通知
|
|
61381
|
+
* @param {TreeGridExRowState} row
|
|
61382
|
+
* @param {TreeGridExNotifyState} state
|
|
61383
|
+
* @memberof TreeGridExController
|
|
61346
61384
|
*/
|
|
61347
61385
|
gridStateNotify(row, state) {
|
|
61348
61386
|
Object.values(this.columns).forEach((column) => {
|
|
@@ -61350,14 +61388,13 @@ var TreeGridExController = class extends TreeController {
|
|
|
61350
61388
|
});
|
|
61351
61389
|
}
|
|
61352
61390
|
/**
|
|
61353
|
-
* 设置行属性的值
|
|
61354
|
-
*
|
|
61355
|
-
* @
|
|
61356
|
-
* @
|
|
61357
|
-
* @param {
|
|
61358
|
-
* @
|
|
61359
|
-
* @
|
|
61360
|
-
* @param {boolean} ignore 忽略脏值检查
|
|
61391
|
+
* @description 设置行属性的值
|
|
61392
|
+
* @param {TreeGridExRowState} row 行状态
|
|
61393
|
+
* @param {string} name 属性名称
|
|
61394
|
+
* @param {unknown} value 值
|
|
61395
|
+
* @param {boolean} [ignore=false] 忽略脏值检查
|
|
61396
|
+
* @returns {*} {Promise<void>}
|
|
61397
|
+
* @memberof TreeGridExController
|
|
61361
61398
|
*/
|
|
61362
61399
|
async setRowValue(row, name2, value, ignore = false) {
|
|
61363
61400
|
if (Object.prototype.hasOwnProperty.call(row.data, name2) && !isValueChange(row.data[name2], value)) {
|
|
@@ -61375,12 +61412,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61375
61412
|
}
|
|
61376
61413
|
}
|
|
61377
61414
|
/**
|
|
61378
|
-
* 通知所有表格编辑项成员表格编辑项数据变更
|
|
61379
|
-
*
|
|
61380
|
-
* @
|
|
61381
|
-
* @
|
|
61382
|
-
* @
|
|
61383
|
-
* @param {string[]} names 更新的属性
|
|
61415
|
+
* @description 通知所有表格编辑项成员表格编辑项数据变更
|
|
61416
|
+
* @param {TreeGridExRowState} row
|
|
61417
|
+
* @param {string[]} names
|
|
61418
|
+
* @returns {*} {Promise<void>}
|
|
61419
|
+
* @memberof TreeGridExController
|
|
61384
61420
|
*/
|
|
61385
61421
|
async dataChangeNotify(row, names) {
|
|
61386
61422
|
await handleAllSettled(
|
|
@@ -61389,17 +61425,20 @@ var TreeGridExController = class extends TreeController {
|
|
|
61389
61425
|
})
|
|
61390
61426
|
);
|
|
61391
61427
|
}
|
|
61428
|
+
/**
|
|
61429
|
+
* @description 切换行编辑状态
|
|
61430
|
+
* @returns {*} {Promise<void>}
|
|
61431
|
+
* @memberof TreeGridExController
|
|
61432
|
+
*/
|
|
61392
61433
|
async toggleRowEdit() {
|
|
61393
61434
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
61394
61435
|
}
|
|
61395
61436
|
/**
|
|
61396
|
-
*
|
|
61397
|
-
*
|
|
61398
|
-
* @
|
|
61399
|
-
* @
|
|
61400
|
-
* @
|
|
61401
|
-
* @param {boolean} isCreate
|
|
61402
|
-
* @return {*} {IData}
|
|
61437
|
+
* @description 计算默认值
|
|
61438
|
+
* @param {ITreeNodeData} data 节点数据
|
|
61439
|
+
* @param {boolean} isCreate 是否为新建
|
|
61440
|
+
* @returns {*} {IData}
|
|
61441
|
+
* @memberof TreeGridExController
|
|
61403
61442
|
*/
|
|
61404
61443
|
calcDefaultValue(data, isCreate) {
|
|
61405
61444
|
const result = {};
|
|
@@ -61427,23 +61466,19 @@ var TreeGridExController = class extends TreeController {
|
|
|
61427
61466
|
return result;
|
|
61428
61467
|
}
|
|
61429
61468
|
/**
|
|
61430
|
-
* 切换单行的编辑状态
|
|
61431
|
-
* @
|
|
61432
|
-
* @
|
|
61433
|
-
* @param {
|
|
61434
|
-
* @
|
|
61469
|
+
* @description 切换单行的编辑状态
|
|
61470
|
+
* @param {TreeGridExRowState} row 行状态
|
|
61471
|
+
* @param {boolean} [editable] 是否为编辑状态
|
|
61472
|
+
* @param {boolean} [isSave=true] 是否保存数据
|
|
61473
|
+
* @returns {*} {Promise<void>}
|
|
61474
|
+
* @memberof TreeGridExController
|
|
61435
61475
|
*/
|
|
61436
61476
|
async switchRowEdit(row, editable, isSave = true) {
|
|
61437
|
-
if (!this.allowRowEdit)
|
|
61438
|
-
return;
|
|
61439
|
-
}
|
|
61440
|
-
if (row.data._nodeType !== "DE") {
|
|
61477
|
+
if (!this.allowRowEdit || row.data._nodeType !== "DE")
|
|
61441
61478
|
return;
|
|
61442
|
-
}
|
|
61443
61479
|
const toState = editable === void 0 ? !row.showRowEdit : editable;
|
|
61444
|
-
if (row.showRowEdit === toState)
|
|
61480
|
+
if (row.showRowEdit === toState)
|
|
61445
61481
|
return;
|
|
61446
|
-
}
|
|
61447
61482
|
if (toState === false) {
|
|
61448
61483
|
if (isSave) {
|
|
61449
61484
|
await this.save(row.data);
|
|
@@ -61477,11 +61512,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61477
61512
|
this._evt.emit("onRowEditChange", { row });
|
|
61478
61513
|
}
|
|
61479
61514
|
/**
|
|
61480
|
-
* 树节点点击事件
|
|
61481
|
-
*
|
|
61482
|
-
* @param {
|
|
61515
|
+
* @description 树节点点击事件
|
|
61516
|
+
* @param {ITreeNodeData} _nodeData
|
|
61517
|
+
* @param {MouseEvent} event
|
|
61483
61518
|
* @returns {*} {Promise<void>}
|
|
61484
|
-
* @memberof
|
|
61519
|
+
* @memberof TreeGridExController
|
|
61485
61520
|
*/
|
|
61486
61521
|
async onTreeNodeClick(_nodeData, event) {
|
|
61487
61522
|
var _a3, _b2;
|
|
@@ -62683,7 +62718,10 @@ var MapController = class extends MDControlController {
|
|
|
62683
62718
|
this.state.isLoaded = true;
|
|
62684
62719
|
return [];
|
|
62685
62720
|
}
|
|
62686
|
-
|
|
62721
|
+
const silent = this.getSilent(args) === true;
|
|
62722
|
+
if (!silent) {
|
|
62723
|
+
await this.startLoading();
|
|
62724
|
+
}
|
|
62687
62725
|
try {
|
|
62688
62726
|
const isInitialLoad = args.isInitialLoad === true;
|
|
62689
62727
|
const { context } = this.handlerAbilityParams(args);
|
|
@@ -62709,7 +62747,9 @@ var MapController = class extends MDControlController {
|
|
|
62709
62747
|
});
|
|
62710
62748
|
throw error;
|
|
62711
62749
|
} finally {
|
|
62712
|
-
|
|
62750
|
+
if (!silent) {
|
|
62751
|
+
await this.endLoading();
|
|
62752
|
+
}
|
|
62713
62753
|
}
|
|
62714
62754
|
this.actionNotification("FETCHSUCCESS");
|
|
62715
62755
|
return this.state.items;
|
|
@@ -66456,8 +66496,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
66456
66496
|
await this.service.init(this.context);
|
|
66457
66497
|
}
|
|
66458
66498
|
/**
|
|
66459
|
-
* 设置甘特图样式
|
|
66460
|
-
*
|
|
66499
|
+
* @description 设置甘特图样式
|
|
66461
66500
|
* @param {IGanttStyle} style
|
|
66462
66501
|
* @memberof GanttController
|
|
66463
66502
|
*/
|
|
@@ -66465,10 +66504,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66465
66504
|
this.state.ganttStyle = style;
|
|
66466
66505
|
}
|
|
66467
66506
|
/**
|
|
66468
|
-
* 设置激活数据
|
|
66469
|
-
*
|
|
66507
|
+
* @description 设置激活数据
|
|
66470
66508
|
* @param {IGanttNodeData} item
|
|
66471
|
-
* @
|
|
66509
|
+
* @returns {*} {Promise<void>}
|
|
66472
66510
|
* @memberof GanttController
|
|
66473
66511
|
*/
|
|
66474
66512
|
async setActive(item) {
|
|
@@ -66481,11 +66519,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66481
66519
|
return this.evt.emit("onActive", { ...nodeParams, nodeData: item });
|
|
66482
66520
|
}
|
|
66483
66521
|
/**
|
|
66484
|
-
* 部件刷新,走初始加载(规避预置后续刷新和通知刷新同时进行)
|
|
66485
|
-
*
|
|
66486
|
-
* @
|
|
66487
|
-
* @date 2024-05-06 20:28:59
|
|
66488
|
-
* @return {*} {Promise<void>}
|
|
66522
|
+
* @description 部件刷新,走初始加载(规避预置后续刷新和通知刷新同时进行)
|
|
66523
|
+
* @returns {*} {Promise<void>}
|
|
66524
|
+
* @memberof GanttController
|
|
66489
66525
|
*/
|
|
66490
66526
|
async refresh() {
|
|
66491
66527
|
this.doNextActive(
|
|
@@ -66504,11 +66540,11 @@ var GanttController = class extends TreeGridExController {
|
|
|
66504
66540
|
);
|
|
66505
66541
|
}
|
|
66506
66542
|
/**
|
|
66507
|
-
* 刷新指定树节点的子节点数据
|
|
66508
|
-
*
|
|
66509
|
-
* @param {(ITreeNodeData | IData)} nodeData 指定树节点数据,可以是节点数据,也可以是对应的实体数据
|
|
66543
|
+
* @description 刷新指定树节点的子节点数据
|
|
66544
|
+
* @param {{ _id?: string; srfkey?: string }} nodeData 指定树节点数据,可以是节点数据,也可以是对应的实体数据
|
|
66510
66545
|
* @param {boolean} [refreshParent=false] 是否是刷新给定节点数据的父节点的子节点数据
|
|
66511
|
-
* @
|
|
66546
|
+
* @returns {*} {Promise<void>}
|
|
66547
|
+
* @memberof GanttController
|
|
66512
66548
|
*/
|
|
66513
66549
|
async refreshNodeChildren(nodeData, refreshParent = false) {
|
|
66514
66550
|
const key = nodeData.srfkey ? "srfkey" : "_id";
|
|
@@ -66538,10 +66574,10 @@ var GanttController = class extends TreeGridExController {
|
|
|
66538
66574
|
});
|
|
66539
66575
|
}
|
|
66540
66576
|
/**
|
|
66541
|
-
* 处理默认展开
|
|
66542
|
-
*
|
|
66543
|
-
* @
|
|
66544
|
-
* @
|
|
66577
|
+
* @description 处理默认展开
|
|
66578
|
+
* @param {IGanttNodeData[]} data 节点数据
|
|
66579
|
+
* @returns {*} {Promise<void>}
|
|
66580
|
+
* @memberof GanttController
|
|
66545
66581
|
*/
|
|
66546
66582
|
async handleDefaultExpandNodes(data) {
|
|
66547
66583
|
for (let i = 0; i < data.length; i++) {
|
|
@@ -66557,11 +66593,10 @@ var GanttController = class extends TreeGridExController {
|
|
|
66557
66593
|
}
|
|
66558
66594
|
}
|
|
66559
66595
|
/**
|
|
66560
|
-
* 甘特图树节点点击事件
|
|
66561
|
-
*
|
|
66596
|
+
* @description 甘特图树节点点击事件
|
|
66562
66597
|
* @param {IGanttNodeData} _nodeData
|
|
66563
66598
|
* @param {MouseEvent} event
|
|
66564
|
-
* @
|
|
66599
|
+
* @returns {*} {Promise<void>}
|
|
66565
66600
|
* @memberof GanttController
|
|
66566
66601
|
*/
|
|
66567
66602
|
async onTreeNodeClick(_nodeData, event) {
|
|
@@ -66600,12 +66635,12 @@ var GanttController = class extends TreeGridExController {
|
|
|
66600
66635
|
}
|
|
66601
66636
|
}
|
|
66602
66637
|
/**
|
|
66603
|
-
* 设置行属性的值
|
|
66604
|
-
*
|
|
66638
|
+
* @description 设置行属性的值
|
|
66605
66639
|
* @param {TreeGridExRowState} row
|
|
66606
66640
|
* @param {string} name
|
|
66607
66641
|
* @param {unknown} value
|
|
66608
|
-
* @
|
|
66642
|
+
* @param {boolean} [ignore=false]
|
|
66643
|
+
* @returns {*} {Promise<void>}
|
|
66609
66644
|
* @memberof GanttController
|
|
66610
66645
|
*/
|
|
66611
66646
|
async setRowValue(row, name2, value, ignore = false) {
|
|
@@ -66630,9 +66665,10 @@ var GanttController = class extends TreeGridExController {
|
|
|
66630
66665
|
}
|
|
66631
66666
|
}
|
|
66632
66667
|
/**
|
|
66633
|
-
* 修改节点时间
|
|
66634
|
-
*
|
|
66635
|
-
* @param {
|
|
66668
|
+
* @description 修改节点时间
|
|
66669
|
+
* @param {IGanttNodeData} nodeData 节点数据
|
|
66670
|
+
* @param {{ begin?: string; end?: string }} { begin, end } 开始时间,结束时间
|
|
66671
|
+
* @returns {*} {Promise<void>}
|
|
66636
66672
|
* @memberof GanttController
|
|
66637
66673
|
*/
|
|
66638
66674
|
async modifyNodeTime(nodeData, { begin, end }) {
|
|
@@ -66653,10 +66689,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66653
66689
|
await this.save(rowState.data);
|
|
66654
66690
|
}
|
|
66655
66691
|
/**
|
|
66656
|
-
*
|
|
66657
|
-
*
|
|
66658
|
-
* @
|
|
66659
|
-
* @return {*} {Promise<void>}
|
|
66692
|
+
* @description 保存数据
|
|
66693
|
+
* @param {IGanttNodeData} nodeData 节点数据
|
|
66694
|
+
* @returns {*} {Promise<void>}
|
|
66660
66695
|
* @memberof GanttController
|
|
66661
66696
|
*/
|
|
66662
66697
|
async save(nodeData) {
|
|
@@ -66714,10 +66749,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66714
66749
|
await this.evt.emit("onSaveSuccess", void 0);
|
|
66715
66750
|
}
|
|
66716
66751
|
/**
|
|
66717
|
-
* 删除
|
|
66718
|
-
*
|
|
66752
|
+
* @description 删除
|
|
66719
66753
|
* @param {MDCtrlRemoveParams} [args]
|
|
66720
|
-
* @
|
|
66754
|
+
* @returns {*} {Promise<void>}
|
|
66721
66755
|
* @memberof GanttController
|
|
66722
66756
|
*/
|
|
66723
66757
|
async remove(args) {
|
|
@@ -66805,8 +66839,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
66805
66839
|
await this.evt.emit("onRemoveSuccess", void 0);
|
|
66806
66840
|
}
|
|
66807
66841
|
/**
|
|
66808
|
-
* 后台删除结束后界面删除逻辑
|
|
66809
|
-
*
|
|
66842
|
+
* @description 后台删除结束后界面删除逻辑
|
|
66810
66843
|
* @param {GanttDataSetNodeData} data
|
|
66811
66844
|
* @memberof GanttController
|
|
66812
66845
|
*/
|
|
@@ -66832,10 +66865,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66832
66865
|
}
|
|
66833
66866
|
}
|
|
66834
66867
|
/**
|
|
66835
|
-
* 新建行
|
|
66836
|
-
*
|
|
66868
|
+
* @description 新建行
|
|
66837
66869
|
* @param {MDCtrlLoadParams} [args={}]
|
|
66838
|
-
* @
|
|
66870
|
+
* @returns {*} {Promise<void>}
|
|
66839
66871
|
* @memberof GanttController
|
|
66840
66872
|
*/
|
|
66841
66873
|
async newRow(args = {}) {
|