ato-water-lib 0.0.39 → 0.0.40

Sign up to get free protection for your applications and to get access to all the features.
@@ -8250,9 +8250,14 @@ class AssetFlowComponent {
8250
8250
  }
8251
8251
  setFlowData(data) {
8252
8252
  // const layer = data?.assetLayer ?? this?.assetLayer ?? ATO_ASSET_LAYERS.FLOW;
8253
+ _.forEach(data.nodeDataArray, node => {
8254
+ if (node?.assetLayers) {
8255
+ node.visible = node?.assetLayers === this.assetLayer;
8256
+ }
8257
+ });
8253
8258
  this.flowData = {
8254
8259
  ...data,
8255
- nodeDataArray: _.filter(data.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === data?.assetLayer))
8260
+ // nodeDataArray: _.filter(data.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === data?.assetLayer))
8256
8261
  };
8257
8262
  this.updateDataTableAssetParams(data);
8258
8263
  }
@@ -8373,5 +8378,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8373
8378
  * Generated bundle index. Do not edit.
8374
8379
  */
8375
8380
 
8376
- 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 };
8381
+ 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 };
8377
8382
  //# sourceMappingURL=ato-water-lib.mjs.map