ato-water-lib 0.0.37 → 0.0.38

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,8 +81,12 @@ export class AssetFlowComponent {
81
81
  return flowData;
82
82
  }
83
83
  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 => {
84
+ const layer = data?.assetLayer ?? this?.assetLayer ?? ATO_ASSET_LAYERS.FLOW;
85
+ this.flowData = {
86
+ ...data,
87
+ nodeDataArray: _.filter(data.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === layer))
88
+ };
89
+ this.dataTableAssetParams = _.forEach(this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE && e?.assetLayers === layer), x => {
86
90
  if (!data?.isRefresh) {
87
91
  x.isCollapsed = this.assetParamsViewTemp?.data?.find(y => y?.key === x?.key)?.isCollapsed;
88
92
  }
@@ -120,4 +124,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
120
124
  type: HostListener,
121
125
  args: ['window:resize', ['$event']]
122
126
  }] } });
123
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQtZmxvdy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvY29tcG9uZW50cy9hc3NldC1mbG93L2Fzc2V0LWZsb3cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYXNzZXQtZmxvdy9hc3NldC1mbG93Lm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wTG9hZGluZ109XCJmbG93RGF0YSA9PT0gbnVsbFwiPlxuICAgIDxhdG8tZmxvdy1kaWFncmFtLWxpYlxuICAgICAgKm5nSWY9XCJmbG93RGF0YSAhPT0gbnVsbFwiXG4gICAgICAjZ2pGbG93RGlhZ3JhbVRlbXBcbiAgICAgIFtkYXRhXT1cImZsb3dEYXRhXCJcbiAgICAgIFtpbml0aWFsT3B0aW9uc109XCJvcHRpb25zXCJcbiAgICAgIChvbkNsaWtQYXJhbU9mVGFibGUpPVwib25DbGlja1BhcmFtT2ZUYWJsZSgkZXZlbnQpXCJcbiAgICAgIFtjbGFzc109XCIhIWlzUmVzcG9uc2l2ZVZpZXcgPyAnZGlhZ3JhbS1yZXNwb25zaXZlLXZpZXcnIDogJ2ZsZXgtZ3Jvdy0xJ1wiXG4gICAgPjwvYXRvLWZsb3ctZGlhZ3JhbS1saWI+XG4gICAgPGRpdiBjbGFzcz1cIm10LTJcIiAqbmdJZj1cImlzUmVzcG9uc2l2ZVZpZXdcIj5cbiAgICAgIDxhdG8tYXNzZXQtcGFyYW1zLXZpZXdcbiAgICAgICAgI2Fzc2V0UGFyYW1zVmlld1RlbXBcbiAgICAgICAgW2RhdGFdPVwiZGF0YVRhYmxlQXNzZXRQYXJhbXNcIlxuICAgICAgICBbaXNFZGl0Vmlld109XCJ0cnVlXCJcbiAgICAgICAgKGNsaWNrUGFyYW1UYWJsZVJvdyk9XCJvbkNsaWNrUGFyYW1PZlRhYmxlKCRldmVudClcIlxuICAgICAgPjwvYXRvLWFzc2V0LXBhcmFtcy12aWV3PlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvZGl2PlxuXG4iXX0=
@@ -3,4 +3,4 @@ export class AtoGoJSData {
3
3
  this.isRefresh = false;
4
4
  }
5
5
  }
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ29qcy1kYXRhLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMi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ElkUHJvcGVydHk6IHN0cmluZztcbiAgICBsaW5rRGF0YUFycmF5OiBhbnlbXTtcbiAgICBub2RlRGF0YUFycmF5OiBhbnlbXTtcbiAgICBpc1JlZnJlc2g/OiBib29sZWFuID0gZmFsc2U7XG4gICAgYXNzZXRMYXllcjogQVRPX0FTU0VUX0xBWUVSUztcbn0iXX0=
@@ -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
@@ -8084,9 +8084,10 @@ class AssetFlowComponent {
8084
8084
  return flowData;
8085
8085
  }
8086
8086
  setFlowData(data) {
8087
- 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 => {
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 => {
8090
8091
  var _a, _b, _c;
8091
8092
  if (!(data === null || data === void 0 ? void 0 : data.isRefresh)) {
8092
8093
  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 +8199,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8198
8199
  /*
8199
8200
  * Public API Surface of ato-water-lib
8200
8201
  */
8201
- // Css
8202
8202
 
8203
8203
  /**
8204
8204
  * Generated bundle index. Do not edit.
8205
8205
  */
8206
8206
 
8207
- export { AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
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 };
8208
8208
  //# sourceMappingURL=ato-water-lib.mjs.map