ato-water-lib 0.0.37 → 0.0.39

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,8 +92,15 @@ export class AssetFlowComponent {
81
92
  return flowData;
82
93
  }
83
94
  setFlowData(data) {
84
- this.flowData = { ...data };
85
- this.dataTableAssetParams = _.forEach(this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE && e?.assetLayers?.includes(this?.assetLayer ?? ATO_ASSET_LAYERS.FLOW)), x => {
95
+ // const layer = data?.assetLayer ?? this?.assetLayer ?? ATO_ASSET_LAYERS.FLOW;
96
+ this.flowData = {
97
+ ...data,
98
+ nodeDataArray: _.filter(data.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === data?.assetLayer))
99
+ };
100
+ this.updateDataTableAssetParams(data);
101
+ }
102
+ updateDataTableAssetParams(data) {
103
+ this.dataTableAssetParams = _.forEach(this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE && e?.assetLayers === data?.assetLayer), x => {
86
104
  if (!data?.isRefresh) {
87
105
  x.isCollapsed = this.assetParamsViewTemp?.data?.find(y => y?.key === x?.key)?.isCollapsed;
88
106
  }
@@ -120,4 +138,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
120
138
  type: HostListener,
121
139
  args: ['window:resize', ['$event']]
122
140
  }] } });
123
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQtZmxvdy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvY29tcG9uZW50cy9hc3NldC1mbG93L2Fzc2V0LWZsb3cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYXNzZXQtZmxvdy9hc3NldC1mbG93LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsWUFBWSxFQUNaLFlBQVksRUFDWixLQUFLLEVBRUwsTUFBTSxFQUNOLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEtBQUssRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMzQixPQUFPLENBQUMsTUFBTSxRQUFRLENBQUM7QUFDdkIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUF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ImZsb3dEYXRhICE9PSBudWxsXCJcbiAgICAgICNnakZsb3dEaWFncmFtVGVtcFxuICAgICAgW2RhdGFdPVwiZmxvd0RhdGFcIlxuICAgICAgW2luaXRpYWxPcHRpb25zXT1cIm9wdGlvbnNcIlxuICAgICAgKG9uQ2xpa1BhcmFtT2ZUYWJsZSk9XCJvbkNsaWNrUGFyYW1PZlRhYmxlKCRldmVudClcIlxuICAgICAgW2NsYXNzXT1cIiEhaXNSZXNwb25zaXZlVmlldyA/ICdkaWFncmFtLXJlc3BvbnNpdmUtdmlldycgOiAnZmxleC1ncm93LTEnXCJcbiAgICA+PC9hdG8tZmxvdy1kaWFncmFtLWxpYj5cbiAgICA8ZGl2IGNsYXNzPVwibXQtMlwiICpuZ0lmPVwiaXNSZXNwb25zaXZlVmlld1wiPlxuICAgICAgPGF0by1hc3NldC1wYXJhbXMtdmlld1xuICAgICAgICAjYXNzZXRQYXJhbXNWaWV3VGVtcFxuICAgICAgICBbZGF0YV09XCJkYXRhVGFibGVBc3NldFBhcmFtc1wiXG4gICAgICAgIFtpc0VkaXRWaWV3XT1cInRydWVcIlxuICAgICAgICAoY2xpY2tQYXJhbVRhYmxlUm93KT1cIm9uQ2xpY2tQYXJhbU9mVGFibGUoJGV2ZW50KVwiXG4gICAgICA+PC9hdG8tYXNzZXQtcGFyYW1zLXZpZXc+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC9kaXY+XG5cbiJdfQ==
@@ -3,4 +3,4 @@ export class AtoGoJSData {
3
3
  this.isRefresh = false;
4
4
  }
5
5
  }
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ29qcy1kYXRhLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL21vZGVscy9nb2pzLWRhdGEubW9kZWwudHMiXSwibmFtZXMiOltdLCJt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ib29sZWFuID0gZmFsc2U7XG4gICAgYXNzZXRMYXllcj86IEFUT19BU1NFVF9MQVlFUlM7XG59Il19
@@ -11,5 +11,6 @@ export * from './lib/components/asset-params-view/asset-params-view.component';
11
11
  // Directive
12
12
  export * from './lib/directive/ato-loading.directive';
13
13
  export * from './lib/directive/ng-var.directive';
14
- // Css
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxZQUFZO0FBQ1osY0FBYyw4REFBOEQsQ0FBQztBQUM3RSxjQUFjLGtEQUFrRCxDQUFDO0FBQ2pFLGNBQWMsZ0VBQWdFLENBQUM7QUFDL0UsWUFBWTtBQUNaLGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxNQUFNIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBhdG8td2F0ZXItbGliXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvYXRvLXdhdGVyLWxpYi5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2F0by13YXRlci1saWIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2F0by13YXRlci1saWIubW9kdWxlJztcbi8vIENvbXBvbmVudFxuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy9mbG93LWRpYWdyYW0tbGliL2Zsb3ctZGlhZ3JhbS1saWIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvYXNzZXQtZmxvdy9hc3NldC1mbG93LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL2Fzc2V0LXBhcmFtcy12aWV3L2Fzc2V0LXBhcmFtcy12aWV3LmNvbXBvbmVudCc7XG4vLyBEaXJlY3RpdmVcbmV4cG9ydCAqIGZyb20gJy4vbGliL2RpcmVjdGl2ZS9hdG8tbG9hZGluZy5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZGlyZWN0aXZlL25nLXZhci5kaXJlY3RpdmUnO1xuLy8gQ3NzXG5cblxuXG4iXX0=
14
+ // Enum
15
+ export * from './lib/constants/components-group-const';
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxZQUFZO0FBQ1osY0FBYyw4REFBOEQsQ0FBQztBQUM3RSxjQUFjLGtEQUFrRCxDQUFDO0FBQ2pFLGNBQWMsZ0VBQWdFLENBQUM7QUFDL0UsWUFBWTtBQUNaLGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxPQUFPO0FBQ1AsY0FBYyx3Q0FBd0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgYXRvLXdhdGVyLWxpYlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2F0by13YXRlci1saWIuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9hdG8td2F0ZXItbGliLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9hdG8td2F0ZXItbGliLm1vZHVsZSc7XG4vLyBDb21wb25lbnRcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvZmxvdy1kaWFncmFtLWxpYi9mbG93LWRpYWdyYW0tbGliLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL2Fzc2V0LWZsb3cvYXNzZXQtZmxvdy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy9hc3NldC1wYXJhbXMtdmlldy9hc3NldC1wYXJhbXMtdmlldy5jb21wb25lbnQnO1xuLy8gRGlyZWN0aXZlXG5leHBvcnQgKiBmcm9tICcuL2xpYi9kaXJlY3RpdmUvYXRvLWxvYWRpbmcuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2RpcmVjdGl2ZS9uZy12YXIuZGlyZWN0aXZlJztcbi8vIEVudW1cbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbnN0YW50cy9jb21wb25lbnRzLWdyb3VwLWNvbnN0JztcblxuXG5cblxuIl19
@@ -8027,9 +8027,15 @@ class AssetFlowComponent {
8027
8027
  }),
8028
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,9 +8094,13 @@ class AssetFlowComponent {
8084
8094
  return flowData;
8085
8095
  }
8086
8096
  setFlowData(data) {
8097
+ // const layer = data?.assetLayer ?? this?.assetLayer ?? ATO_ASSET_LAYERS.FLOW;
8098
+ 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) === (data === null || data === void 0 ? void 0 : data.assetLayer))) });
8099
+ this.updateDataTableAssetParams(data);
8100
+ }
8101
+ updateDataTableAssetParams(data) {
8087
8102
  var _a, _b;
8088
- this.flowData = Object.assign({}, data);
8089
- this.dataTableAssetParams = _.forEach((_b = (_a = this.flowData) === null || _a === void 0 ? void 0 : _a.nodeDataArray) === null || _b === void 0 ? void 0 : _b.filter((e) => { var _a, _b; return (e === null || e === void 0 ? void 0 : e.type) === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE && ((_a = e === null || e === void 0 ? void 0 : e.assetLayers) === null || _a === void 0 ? void 0 : _a.includes((_b = this === null || this === void 0 ? void 0 : this.assetLayer) !== null && _b !== void 0 ? _b : ATO_ASSET_LAYERS.FLOW)); }), x => {
8103
+ 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 => {
8090
8104
  var _a, _b, _c;
8091
8105
  if (!(data === null || data === void 0 ? void 0 : data.isRefresh)) {
8092
8106
  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;
@@ -8198,11 +8212,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8198
8212
  /*
8199
8213
  * Public API Surface of ato-water-lib
8200
8214
  */
8201
- // Css
8202
8215
 
8203
8216
  /**
8204
8217
  * Generated bundle index. Do not edit.
8205
8218
  */
8206
8219
 
8207
- export { AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
8220
+ 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 };
8208
8221
  //# sourceMappingURL=ato-water-lib.mjs.map