ato-water-lib 0.0.38 → 0.0.40

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,9 +22,15 @@ export class AssetFlowComponent {
22
22
  }),
23
23
  // isReadOnly: true,
24
24
  };
25
- this.flowData = {};
26
25
  this.isResponsiveView = false;
27
26
  }
27
+ set flowData(v) {
28
+ this._flowData = v;
29
+ this.updateDataTableAssetParams({ ...v, assetLayer: this.assetLayer });
30
+ }
31
+ get flowData() {
32
+ return this._flowData;
33
+ }
28
34
  onResize(event) {
29
35
  // Now only Support Cooling Tower Responsive
30
36
  if (this.timeoutResizeWindow) {
@@ -66,10 +72,15 @@ export class AssetFlowComponent {
66
72
  }
67
73
  static getDefaultFlowData(defaultData) {
68
74
  const flowData = {
75
+ ...defaultData,
69
76
  ..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[defaultData?.systemType],
70
77
  linkFromPortIdProperty: 'fromPort',
71
78
  linkToPortIdProperty: 'toPort',
72
79
  };
80
+ // Reponsive
81
+ _.forEach(flowData?.nodeDataArray, (node) => {
82
+ node = _.merge(node, node[`extendedData${window.innerWidth < 1024 ? 'Responsive' : ''}`]);
83
+ });
73
84
  // assetLayer
74
85
  flowData.nodeDataArray = _.filter(flowData.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === (defaultData?.assetLayer ?? ATO_ASSET_LAYERS.FLOW)));
75
86
  if (defaultData?.isUseBase64) {
@@ -81,12 +92,20 @@ export class AssetFlowComponent {
81
92
  return flowData;
82
93
  }
83
94
  setFlowData(data) {
84
- const layer = data?.assetLayer ?? this?.assetLayer ?? ATO_ASSET_LAYERS.FLOW;
95
+ // const layer = data?.assetLayer ?? this?.assetLayer ?? ATO_ASSET_LAYERS.FLOW;
96
+ _.forEach(data.nodeDataArray, node => {
97
+ if (node?.assetLayers) {
98
+ node.visible = node?.assetLayers === this.assetLayer;
99
+ }
100
+ });
85
101
  this.flowData = {
86
102
  ...data,
87
- nodeDataArray: _.filter(data.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === layer))
103
+ // nodeDataArray: _.filter(data.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === data?.assetLayer))
88
104
  };
89
- this.dataTableAssetParams = _.forEach(this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE && e?.assetLayers === layer), x => {
105
+ this.updateDataTableAssetParams(data);
106
+ }
107
+ updateDataTableAssetParams(data) {
108
+ this.dataTableAssetParams = _.forEach(this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE && e?.assetLayers === data?.assetLayer), x => {
90
109
  if (!data?.isRefresh) {
91
110
  x.isCollapsed = this.assetParamsViewTemp?.data?.find(y => y?.key === x?.key)?.isCollapsed;
92
111
  }
@@ -124,4 +143,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
124
143
  type: HostListener,
125
144
  args: ['window:resize', ['$event']]
126
145
  }] } });
127
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQtZmxvdy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvY29tcG9uZW50cy9hc3NldC1mbG93L2Fzc2V0LWZsb3cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYXNzZXQtZmxvdy9hc3NldC1mbG93LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsWUFBWSxFQUNaLFlBQVksRUFDWixLQUFLLEVBRUwsTUFBTSxFQUNOLFNBQVMsR0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gICAgICBbaW5pdGlhbE9wdGlvbnNdPVwib3B0aW9uc1wiXG4gICAgICAob25DbGlrUGFyYW1PZlRhYmxlKT1cIm9uQ2xpY2tQYXJhbU9mVGFibGUoJGV2ZW50KVwiXG4gICAgICBbY2xhc3NdPVwiISFpc1Jlc3BvbnNpdmVWaWV3ID8gJ2RpYWdyYW0tcmVzcG9uc2l2ZS12aWV3JyA6ICdmbGV4LWdyb3ctMSdcIlxuICAgID48L2F0by1mbG93LWRpYWdyYW0tbGliPlxuICAgIDxkaXYgY2xhc3M9XCJtdC0yXCIgKm5nSWY9XCJpc1Jlc3BvbnNpdmVWaWV3XCI+XG4gICAgICA8YXRvLWFzc2V0LXBhcmFtcy12aWV3XG4gICAgICAgICNhc3NldFBhcmFtc1ZpZXdUZW1wXG4gICAgICAgIFtkYXRhXT1cImRhdGFUYWJsZUFzc2V0UGFyYW1zXCJcbiAgICAgICAgW2lzRWRpdFZpZXddPVwidHJ1ZVwiXG4gICAgICAgIChjbGlja1BhcmFtVGFibGVSb3cpPVwib25DbGlja1BhcmFtT2ZUYWJsZSgkZXZlbnQpXCJcbiAgICAgID48L2F0by1hc3NldC1wYXJhbXMtdmlldz5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cblxuIl19
@@ -3,4 +3,4 @@ export class AtoGoJSData {
3
3
  this.isRefresh = false;
4
4
  }
5
5
  }
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ29qcy1kYXRhLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL21vZGVscy9nb2pzLWRhdGEubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLFdBQVc7SUFBeEI7UUFLSSxjQUFTLEdBQWEsS0FBSyxDQUFDO0lBRWhD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gICBub2RlRGF0YUFycmF5OiBhbnlbXTtcbiAgICBpc1JlZnJlc2g/OiBib29sZWFuID0gZmFsc2U7XG4gICAgYXNzZXRMYXllcj86IEFUT19BU1NFVF9MQVlFUlM7XG59Il19
@@ -13,4 +13,6 @@ export * from './lib/directive/ato-loading.directive';
13
13
  export * from './lib/directive/ng-var.directive';
14
14
  // Enum
15
15
  export * from './lib/constants/components-group-const';
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxZQUFZO0FBQ1osY0FBYyw4REFBOEQsQ0FBQztBQUM3RSxjQUFjLGtEQUFrRCxDQUFDO0FBQ2pFLGNBQWMsZ0VBQWdFLENBQUM7QUFDL0UsWUFBWTtBQUNaLGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxPQUFPO0FBQ1AsY0FBYyx3Q0FBd0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgYXRvLXdhdGVyLWxpYlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2F0by13YXRlci1saWIuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9hdG8td2F0ZXItbGliLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9hdG8td2F0ZXItbGliLm1vZHVsZSc7XG4vLyBDb21wb25lbnRcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvZmxvdy1kaWFncmFtLWxpYi9mbG93LWRpYWdyYW0tbGliLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL2Fzc2V0LWZsb3cvYXNzZXQtZmxvdy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy9hc3NldC1wYXJhbXMtdmlldy9hc3NldC1wYXJhbXMtdmlldy5jb21wb25lbnQnO1xuLy8gRGlyZWN0aXZlXG5leHBvcnQgKiBmcm9tICcuL2xpYi9kaXJlY3RpdmUvYXRvLWxvYWRpbmcuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2RpcmVjdGl2ZS9uZy12YXIuZGlyZWN0aXZlJztcbi8vIEVudW1cbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbnN0YW50cy9jb21wb25lbnRzLWdyb3VwLWNvbnN0JztcblxuXG5cblxuIl19
16
+ // Model
17
+ export * from './lib/models/gojs-editor.model';
18
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxZQUFZO0FBQ1osY0FBYyw4REFBOEQsQ0FBQztBQUM3RSxjQUFjLGtEQUFrRCxDQUFDO0FBQ2pFLGNBQWMsZ0VBQWdFLENBQUM7QUFDL0UsWUFBWTtBQUNaLGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYyxrQ0FBa0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028
8028
  // isReadOnly: true,
8029
8029
  };
8030
- this.flowData = {};
8031
8030
  this.isResponsiveView = false;
8032
8031
  }
8032
+ set flowData(v) {
8033
+ this._flowData = v;
8034
+ this.updateDataTableAssetParams(Object.assign(Object.assign({}, v), { assetLayer: this.assetLayer }));
8035
+ }
8036
+ get flowData() {
8037
+ return this._flowData;
8038
+ }
8033
8039
  onResize(event) {
8034
8040
  // Now only Support Cooling Tower Responsive
8035
8041
  if (this.timeoutResizeWindow) {
@@ -8072,7 +8078,11 @@ class AssetFlowComponent {
8072
8078
  }
8073
8079
  static getDefaultFlowData(defaultData) {
8074
8080
  var _a;
8075
- const flowData = Object.assign(Object.assign({}, _.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[defaultData === null || defaultData === void 0 ? void 0 : defaultData.systemType]), { linkFromPortIdProperty: 'fromPort', linkToPortIdProperty: 'toPort' });
8081
+ const flowData = Object.assign(Object.assign(Object.assign({}, defaultData), _.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[defaultData === null || defaultData === void 0 ? void 0 : defaultData.systemType]), { linkFromPortIdProperty: 'fromPort', linkToPortIdProperty: 'toPort' });
8082
+ // Reponsive
8083
+ _.forEach(flowData === null || flowData === void 0 ? void 0 : flowData.nodeDataArray, (node) => {
8084
+ node = _.merge(node, node[`extendedData${window.innerWidth < 1024 ? 'Responsive' : ''}`]);
8085
+ });
8076
8086
  // assetLayer
8077
8087
  flowData.nodeDataArray = _.filter(flowData.nodeDataArray, x => { var _a; return !(x === null || x === void 0 ? void 0 : x.assetLayers) || ((x === null || x === void 0 ? void 0 : x.assetLayers) && (x === null || x === void 0 ? void 0 : x.assetLayers) === ((_a = defaultData === null || defaultData === void 0 ? void 0 : defaultData.assetLayer) !== null && _a !== void 0 ? _a : ATO_ASSET_LAYERS.FLOW)); });
8078
8088
  if (defaultData === null || defaultData === void 0 ? void 0 : defaultData.isUseBase64) {
@@ -8084,10 +8094,18 @@ class AssetFlowComponent {
8084
8094
  return flowData;
8085
8095
  }
8086
8096
  setFlowData(data) {
8087
- var _a, _b, _c, _d;
8088
- const layer = (_b = (_a = data === null || data === void 0 ? void 0 : data.assetLayer) !== null && _a !== void 0 ? _a : this === null || this === void 0 ? void 0 : this.assetLayer) !== null && _b !== void 0 ? _b : ATO_ASSET_LAYERS.FLOW;
8089
- this.flowData = Object.assign(Object.assign({}, data), { nodeDataArray: _.filter(data.nodeDataArray, x => !(x === null || x === void 0 ? void 0 : x.assetLayers) || ((x === null || x === void 0 ? void 0 : x.assetLayers) && (x === null || x === void 0 ? void 0 : x.assetLayers) === layer)) });
8090
- this.dataTableAssetParams = _.forEach((_d = (_c = this.flowData) === null || _c === void 0 ? void 0 : _c.nodeDataArray) === null || _d === void 0 ? void 0 : _d.filter((e) => (e === null || e === void 0 ? void 0 : e.type) === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE && (e === null || e === void 0 ? void 0 : e.assetLayers) === layer), x => {
8097
+ // const layer = data?.assetLayer ?? this?.assetLayer ?? ATO_ASSET_LAYERS.FLOW;
8098
+ _.forEach(data.nodeDataArray, node => {
8099
+ if (node === null || node === void 0 ? void 0 : node.assetLayers) {
8100
+ node.visible = (node === null || node === void 0 ? void 0 : node.assetLayers) === this.assetLayer;
8101
+ }
8102
+ });
8103
+ this.flowData = Object.assign({}, data);
8104
+ this.updateDataTableAssetParams(data);
8105
+ }
8106
+ updateDataTableAssetParams(data) {
8107
+ var _a, _b;
8108
+ this.dataTableAssetParams = _.forEach((_b = (_a = this.flowData) === null || _a === void 0 ? void 0 : _a.nodeDataArray) === null || _b === void 0 ? void 0 : _b.filter((e) => (e === null || e === void 0 ? void 0 : e.type) === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE && (e === null || e === void 0 ? void 0 : e.assetLayers) === (data === null || data === void 0 ? void 0 : data.assetLayer)), x => {
8091
8109
  var _a, _b, _c;
8092
8110
  if (!(data === null || data === void 0 ? void 0 : data.isRefresh)) {
8093
8111
  x.isCollapsed = (_c = (_b = (_a = this.assetParamsViewTemp) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find(y => (y === null || y === void 0 ? void 0 : y.key) === (x === null || x === void 0 ? void 0 : x.key))) === null || _c === void 0 ? void 0 : _c.isCollapsed;
@@ -8204,5 +8222,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8204
8222
  * Generated bundle index. Do not edit.
8205
8223
  */
8206
8224
 
8207
- export { ASSET_CATEGORY_PARAMS, ATO_ASSET_LAYERS, ATO_COMPONENTS_GROUP_DATA, AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService, COMPONENTS_GROUP_TYPE, DATA_ASSET_PARAMETER_FIELDS, DATA_WATER_SYSTEMS, ENUM_ASSET_PARAMETERS, WATER_SYSTEMS_NAME };
8225
+ export { ASSET_CATEGORY_PARAMS, ATO_ASSET_LAYERS, ATO_COMPONENTS_GROUP_DATA, AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoGojsEditorModel, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService, COMPONENTS_GROUP_TYPE, DATA_ASSET_PARAMETER_FIELDS, DATA_WATER_SYSTEMS, ENUM_ASSET_PARAMETERS, WATER_SYSTEMS_NAME };
8208
8226
  //# sourceMappingURL=ato-water-lib.mjs.map