@ibiz-template/runtime 0.6.13 → 0.6.14

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.
Files changed (37) hide show
  1. package/dist/index.esm.js +121 -108
  2. package/dist/index.system.min.js +1 -1
  3. package/out/controller/control/form/form/form.controller.d.ts +1 -20
  4. package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
  5. package/out/controller/control/form/form/form.controller.js +17 -91
  6. package/out/controller/control/form/form-detail/form-detail/form-detail.controller.d.ts.map +1 -1
  7. package/out/controller/control/form/form-detail/form-detail/form-detail.controller.js +4 -0
  8. package/out/controller/control/form/form-detail/form-detail/form-detail.state.d.ts +8 -0
  9. package/out/controller/control/form/form-detail/form-detail/form-detail.state.d.ts.map +1 -1
  10. package/out/controller/control/form/form-detail/form-detail/form-detail.state.js +20 -0
  11. package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
  12. package/out/controller/control/form/form-detail/form-item/form-item.controller.js +9 -1
  13. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts.map +1 -1
  14. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.js +6 -3
  15. package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.d.ts.map +1 -1
  16. package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.js +3 -1
  17. package/out/controller/control/panel/panel/panel-item.controller.d.ts.map +1 -1
  18. package/out/controller/control/panel/panel/panel-item.controller.js +4 -0
  19. package/out/controller/control/panel/panel/panel-item.state.d.ts +8 -0
  20. package/out/controller/control/panel/panel/panel-item.state.d.ts.map +1 -1
  21. package/out/controller/control/panel/panel/panel-item.state.js +20 -0
  22. package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
  23. package/out/controller/control/tree/tree.controller.js +5 -1
  24. package/out/engine/view-base.engine.d.ts +1 -1
  25. package/out/engine/view-base.engine.d.ts.map +1 -1
  26. package/out/engine/view-base.engine.js +7 -2
  27. package/out/interface/controller/state/control/i-tree.state.d.ts +21 -0
  28. package/out/interface/controller/state/control/i-tree.state.d.ts.map +1 -1
  29. package/out/interface/controller/state/control/panel-item/i-panel-item.state.d.ts +8 -0
  30. package/out/interface/controller/state/control/panel-item/i-panel-item.state.d.ts.map +1 -1
  31. package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts +1 -0
  32. package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
  33. package/out/service/vo/tree-node-data/tree-data-set-node-data.js +1 -0
  34. package/out/service/vo/tree-node-data/tree-node-data.d.ts +10 -0
  35. package/out/service/vo/tree-node-data/tree-node-data.d.ts.map +1 -1
  36. package/out/service/vo/tree-node-data/tree-node-data.js +23 -0
  37. package/package.json +1 -1
@@ -16,6 +16,8 @@ export declare abstract class TreeNodeData implements ITreeNodeData {
16
16
  _text: string;
17
17
  _children?: ITreeNodeData[] | undefined;
18
18
  _deData?: IData | undefined;
19
+ _oldDeData?: IData | undefined;
20
+ _changedOnly: boolean;
19
21
  srfkey?: string | undefined;
20
22
  srfmajortext?: string | undefined;
21
23
  _nodeId: string;
@@ -40,5 +42,13 @@ export declare abstract class TreeNodeData implements ITreeNodeData {
40
42
  * @return {*} {(IIcon | undefined)}
41
43
  */
42
44
  protected calcIcon(model: IDETreeNode): IIcon | undefined;
45
+ /**
46
+ * 获取改变数据
47
+ * @author zzq
48
+ * @date 2024-03-25 14:24:55
49
+ * @return {*} {(IData | undefined)}
50
+ * @memberof TreeNodeData
51
+ */
52
+ getDiffData(): IData | undefined;
43
53
  }
44
54
  //# sourceMappingURL=tree-node-data.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tree-node-data.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/tree-node-data/tree-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,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ent = parentNodeData;
15
15
  this._nodeType = model.treeNodeType;
16
16
  this._disableSelect = model.disableSelect === true;
17
+ this._changedOnly = model.enableRowEditChangedOnly === true;
17
18
  // 所有节点都要继承父的上下文,如果父存在则复制父的资源上下文,否则返回空对象。
18
19
  if (this._parent) {
19
20
  this._context = Object.assign({}, this._parent._context);
@@ -58,4 +59,26 @@ export class TreeNodeData {
58
59
  }
59
60
  return Object.values(icon).length > 0 ? icon : undefined;
60
61
  }
62
+ /**
63
+ * 获取改变数据
64
+ * @author zzq
65
+ * @date 2024-03-25 14:24:55
66
+ * @return {*} {(IData | undefined)}
67
+ * @memberof TreeNodeData
68
+ */
69
+ getDiffData() {
70
+ if (this._deData && this._oldDeData) {
71
+ const diffData = {};
72
+ Object.keys(this._deData).forEach(key => {
73
+ // 值不一致 || 属性为主键
74
+ if (this._deData[key] !== this._oldDeData[key] ||
75
+ key === this._deData.srfkeyfield) {
76
+ diffData[key] = this._deData[key];
77
+ }
78
+ });
79
+ diffData.srfkey = this._deData.srfkey;
80
+ return diffData;
81
+ }
82
+ return this._deData;
83
+ }
61
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/runtime",
3
- "version": "0.6.13",
3
+ "version": "0.6.14",
4
4
  "description": "控制器包",
5
5
  "type": "module",
6
6
  "main": "out/index.js",