ato-water-lib 0.0.39 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
@@ -7561,7 +7561,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7561
7561
  [AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER]: {
7562
7562
  nodeDataArray: [
7563
7563
  {
7564
- key: 88,
7564
+ key: 86,
7565
7565
  type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
7566
7566
  group: 100,
7567
7567
  loc: '0 0',
@@ -7573,7 +7573,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7573
7573
  color: '#a8438d',
7574
7574
  },
7575
7575
  {
7576
- key: 89,
7576
+ key: 87,
7577
7577
  type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
7578
7578
  group: 100,
7579
7579
  data: {
@@ -7590,7 +7590,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7590
7590
  }
7591
7591
  },
7592
7592
  {
7593
- key: 90,
7593
+ key: 88,
7594
7594
  type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
7595
7595
  group: 100,
7596
7596
  loc: '320 60',
@@ -7614,7 +7614,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7614
7614
  }
7615
7615
  },
7616
7616
  {
7617
- key: 91,
7617
+ key: 89,
7618
7618
  type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
7619
7619
  group: 100,
7620
7620
  padding: new go.Margin(0, 0, 0, 0),
@@ -7637,7 +7637,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7637
7637
  }
7638
7638
  },
7639
7639
  {
7640
- key: 92,
7640
+ key: 90,
7641
7641
  type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
7642
7642
  group: 100,
7643
7643
  padding: new go.Margin(0, 0, 0, 0),
@@ -7660,7 +7660,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7660
7660
  }
7661
7661
  },
7662
7662
  {
7663
- key: 93,
7663
+ key: 91,
7664
7664
  type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
7665
7665
  group: 100,
7666
7666
  padding: new go.Margin(0, 0, 0, 0),
@@ -7683,7 +7683,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7683
7683
  }
7684
7684
  },
7685
7685
  {
7686
- key: 93,
7686
+ key: 92,
7687
7687
  type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
7688
7688
  group: 100,
7689
7689
  padding: new go.Margin(0, 0, 0, 0),
@@ -7706,7 +7706,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7706
7706
  }
7707
7707
  },
7708
7708
  {
7709
- key: 94,
7709
+ key: 93,
7710
7710
  type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
7711
7711
  group: 100,
7712
7712
  padding: new go.Margin(0, 0, 0, 0),
@@ -7729,7 +7729,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7729
7729
  }
7730
7730
  },
7731
7731
  {
7732
- key: 95,
7732
+ key: 94,
7733
7733
  type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
7734
7734
  group: 100,
7735
7735
  padding: new go.Margin(0, 0, 0, 0),
@@ -7752,7 +7752,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7752
7752
  }
7753
7753
  },
7754
7754
  {
7755
- key: 96,
7755
+ key: 95,
7756
7756
  type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
7757
7757
  group: 100,
7758
7758
  padding: new go.Margin(0, 0, 0, 0),
@@ -7775,7 +7775,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7775
7775
  }
7776
7776
  },
7777
7777
  {
7778
- key: 97,
7778
+ key: 96,
7779
7779
  type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
7780
7780
  source: AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH,
7781
7781
  group: 100,
@@ -7789,7 +7789,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7789
7789
  }
7790
7790
  },
7791
7791
  {
7792
- key: 98,
7792
+ key: 97,
7793
7793
  type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
7794
7794
  group: 100,
7795
7795
  loc: '250 25',
@@ -8199,8 +8199,7 @@ class AssetFlowComponent {
8199
8199
  }, 1000);
8200
8200
  }
8201
8201
  checkResponsiveView() {
8202
- if (this?.systemType ===
8203
- AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER) {
8202
+ if (this?.systemType === AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER) {
8204
8203
  this.isResponsiveView = window.innerWidth < 1024;
8205
8204
  }
8206
8205
  else {
@@ -8212,7 +8211,7 @@ class AssetFlowComponent {
8212
8211
  this.flowData = AssetFlowComponent.getDefaultFlowData({
8213
8212
  systemType: this.systemType,
8214
8213
  isUseBase64: this.isUseBase64,
8215
- assetLayer: this.assetLayer
8214
+ assetLayer: this.assetLayer,
8216
8215
  });
8217
8216
  }
8218
8217
  _.forEach(this.flowData?.nodeDataArray, (node) => {
@@ -8237,9 +8236,14 @@ class AssetFlowComponent {
8237
8236
  // Reponsive
8238
8237
  _.forEach(flowData?.nodeDataArray, (node) => {
8239
8238
  node = _.merge(node, node[`extendedData${window.innerWidth < 1024 ? 'Responsive' : ''}`]);
8239
+ if (node?.assetLayers) {
8240
+ node.visible =
8241
+ node?.assetLayers ===
8242
+ (defaultData?.assetLayer ?? ATO_ASSET_LAYERS.FLOW);
8243
+ }
8240
8244
  });
8241
8245
  // assetLayer
8242
- flowData.nodeDataArray = _.filter(flowData.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === (defaultData?.assetLayer ?? ATO_ASSET_LAYERS.FLOW)));
8246
+ // flowData.nodeDataArray = _.filter(flowData.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === (defaultData?.assetLayer ?? ATO_ASSET_LAYERS.FLOW)))
8243
8247
  if (defaultData?.isUseBase64) {
8244
8248
  const itemImageTemp = flowData?.nodeDataArray?.find((x) => x?.type === 'Image Template');
8245
8249
  if (itemImageTemp) {
@@ -8250,16 +8254,22 @@ class AssetFlowComponent {
8250
8254
  }
8251
8255
  setFlowData(data) {
8252
8256
  // const layer = data?.assetLayer ?? this?.assetLayer ?? ATO_ASSET_LAYERS.FLOW;
8257
+ _.forEach(data.nodeDataArray, (node) => {
8258
+ if (node?.assetLayers) {
8259
+ node.visible = node?.assetLayers === this.assetLayer;
8260
+ }
8261
+ });
8253
8262
  this.flowData = {
8254
8263
  ...data,
8255
- nodeDataArray: _.filter(data.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === data?.assetLayer))
8264
+ // nodeDataArray: _.filter(data.nodeDataArray, x => !x?.assetLayers || (x?.assetLayers && x?.assetLayers === data?.assetLayer))
8256
8265
  };
8257
8266
  this.updateDataTableAssetParams(data);
8258
8267
  }
8259
8268
  updateDataTableAssetParams(data) {
8260
- this.dataTableAssetParams = _.forEach(this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE && e?.assetLayers === data?.assetLayer), x => {
8269
+ this.dataTableAssetParams = _.forEach(this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE &&
8270
+ e?.assetLayers === data?.assetLayer), (x) => {
8261
8271
  if (!data?.isRefresh) {
8262
- x.isCollapsed = this.assetParamsViewTemp?.data?.find(y => y?.key === x?.key)?.isCollapsed;
8272
+ x.isCollapsed = this.assetParamsViewTemp?.data?.find((y) => y?.key === x?.key)?.isCollapsed;
8263
8273
  }
8264
8274
  });
8265
8275
  }
@@ -8373,5 +8383,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8373
8383
  * Generated bundle index. Do not edit.
8374
8384
  */
8375
8385
 
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 };
8386
+ 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
8387
  //# sourceMappingURL=ato-water-lib.mjs.map