ato-water-lib 0.0.102 → 0.0.104

Sign up to get free protection for your applications and to get access to all the features.
@@ -6980,8 +6980,10 @@ const AtoGoJSBase64 = {
6980
6980
 
6981
6981
  var ATO_MAPPER_FROM;
6982
6982
  (function (ATO_MAPPER_FROM) {
6983
- ATO_MAPPER_FROM["HFW"] = "HFW";
6984
- ATO_MAPPER_FROM["PLUGIN"] = "Plugin";
6983
+ // HFW = 'HFW',
6984
+ ATO_MAPPER_FROM["INDICATOR"] = "Indicator";
6985
+ ATO_MAPPER_FROM["NORMAL"] = "Nomarl";
6986
+ // PLUGIN = 'Plugin',
6985
6987
  })(ATO_MAPPER_FROM || (ATO_MAPPER_FROM = {}));
6986
6988
  var ENUM_ASSET_PARAMETERS;
6987
6989
  (function (ENUM_ASSET_PARAMETERS) {
@@ -7082,7 +7084,7 @@ var ENUM_ASSET_PARAMETERS;
7082
7084
  // !!!WARNING: Common. This is only use for name
7083
7085
  ENUM_ASSET_PARAMETERS["COMMON_RANGE"] = "Range";
7084
7086
  ENUM_ASSET_PARAMETERS["COMMON_APPROACH"] = "Approach";
7085
- ENUM_ASSET_PARAMETERS["COMMON_WET_BULB_TEMPERATURE"] = "Web Bulb Temperature";
7087
+ ENUM_ASSET_PARAMETERS["COMMON_WET_BULB_TEMPERATURE"] = "Wet Bulb Temperature";
7086
7088
  ENUM_ASSET_PARAMETERS["COMMON_FAN_SPEED"] = "Fan Speed";
7087
7089
  ENUM_ASSET_PARAMETERS["COMMON_RETURN_TEMPERATURE"] = "Return Temperature";
7088
7090
  ENUM_ASSET_PARAMETERS["COMMON_SUPPLY_TEMPERATURE"] = "Supply Temperature";
@@ -7583,7 +7585,7 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7583
7585
  isEditable: false,
7584
7586
  isReadOnly: true,
7585
7587
  visible: false,
7586
- isFrom: ATO_MAPPER_FROM.PLUGIN,
7588
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
7587
7589
  },
7588
7590
  [ENUM_ASSET_PARAMETERS.DATA_ANALYSIS_WET_BULB_TEMPERATURE]: {
7589
7591
  name: ENUM_ASSET_PARAMETERS.COMMON_WET_BULB_TEMPERATURE,
@@ -7596,7 +7598,7 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7596
7598
  isEditable: false,
7597
7599
  isReadOnly: true,
7598
7600
  visible: false,
7599
- isFrom: ATO_MAPPER_FROM.PLUGIN,
7601
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
7600
7602
  },
7601
7603
  [ENUM_ASSET_PARAMETERS.DATA_ANALYSIS_APPROACH]: {
7602
7604
  name: ENUM_ASSET_PARAMETERS.COMMON_APPROACH,
@@ -7605,7 +7607,7 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7605
7607
  isEditable: false,
7606
7608
  isReadOnly: true,
7607
7609
  visible: false,
7608
- isFrom: ATO_MAPPER_FROM.PLUGIN,
7610
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
7609
7611
  },
7610
7612
  // Cooling Tower -- Performance -- Efficiency and Performance
7611
7613
  [ENUM_ASSET_PARAMETERS.EFFICIENCY_DAILY_AVERAGE]: {
@@ -7664,11 +7666,11 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7664
7666
  key: ENUM_ASSET_PARAMETERS.DESIGN_RETURN_TEMPERATURE,
7665
7667
  },
7666
7668
  [ENUM_ASSET_PARAMETERS.DESIGN_RANGE]: {
7667
- name: ENUM_ASSET_PARAMETERS.DESIGN_RANGE,
7669
+ name: ENUM_ASSET_PARAMETERS.COMMON_RANGE,
7668
7670
  key: ENUM_ASSET_PARAMETERS.DESIGN_RANGE,
7669
7671
  },
7670
7672
  [ENUM_ASSET_PARAMETERS.DESIGN_APPROACH]: {
7671
- name: ENUM_ASSET_PARAMETERS.DESIGN_APPROACH,
7673
+ name: ENUM_ASSET_PARAMETERS.COMMON_APPROACH,
7672
7674
  key: ENUM_ASSET_PARAMETERS.DESIGN_APPROACH,
7673
7675
  },
7674
7676
  // Cooling Tower -- Performance -- Systems KPIs
@@ -7679,7 +7681,7 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7679
7681
  isEditable: false,
7680
7682
  isReadOnly: true,
7681
7683
  visible: false,
7682
- isFrom: ATO_MAPPER_FROM.PLUGIN,
7684
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
7683
7685
  },
7684
7686
  [ENUM_ASSET_PARAMETERS.KPIS_SUPPLY_TEMPERATURE]: {
7685
7687
  name: ENUM_ASSET_PARAMETERS.COMMON_SUPPLY_TEMPERATURE,
@@ -7688,7 +7690,7 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7688
7690
  isEditable: false,
7689
7691
  isReadOnly: true,
7690
7692
  visible: false,
7691
- isFrom: ATO_MAPPER_FROM.PLUGIN,
7693
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
7692
7694
  },
7693
7695
  [ENUM_ASSET_PARAMETERS.KPIS_RANGE]: {
7694
7696
  name: ENUM_ASSET_PARAMETERS.COMMON_RANGE,
@@ -7697,7 +7699,7 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7697
7699
  isEditable: false,
7698
7700
  isReadOnly: true,
7699
7701
  visible: false,
7700
- isFrom: ATO_MAPPER_FROM.PLUGIN,
7702
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
7701
7703
  },
7702
7704
  [ENUM_ASSET_PARAMETERS.KPIS_APPROACH]: {
7703
7705
  name: ENUM_ASSET_PARAMETERS.COMMON_APPROACH,
@@ -7706,7 +7708,7 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7706
7708
  isEditable: false,
7707
7709
  isReadOnly: true,
7708
7710
  visible: false,
7709
- isFrom: ATO_MAPPER_FROM.PLUGIN,
7711
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
7710
7712
  },
7711
7713
  [ENUM_ASSET_PARAMETERS.KPIS_EFFICIENCY_ADJUSTED_DAILY_AVERAGE]: {
7712
7714
  name: 'Efficiency Adjusted Daily Average',
@@ -7715,7 +7717,7 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7715
7717
  isEditable: false,
7716
7718
  isReadOnly: true,
7717
7719
  visible: false,
7718
- isFrom: ATO_MAPPER_FROM.PLUGIN,
7720
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
7719
7721
  },
7720
7722
  [ENUM_ASSET_PARAMETERS.KPIS_LG_RATIO]: {
7721
7723
  name: ENUM_ASSET_PARAMETERS.COMMON_LG_RATIO,
@@ -7724,7 +7726,7 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7724
7726
  isEditable: false,
7725
7727
  isReadOnly: true,
7726
7728
  visible: false,
7727
- isFrom: ATO_MAPPER_FROM.PLUGIN,
7729
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
7728
7730
  },
7729
7731
  };
7730
7732
  const STYLE_TABLE_PARAM = {
@@ -9594,6 +9596,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
9594
9596
  ...e,
9595
9597
  value: '',
9596
9598
  isEditable: true,
9599
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW,
9597
9600
  maxSizeValue: new go.Size(120, 14),
9598
9601
  })),
9599
9602
  assetLayers: ATO_ASSET_LAYERS.FLOW,
@@ -9617,6 +9620,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
9617
9620
  ...e,
9618
9621
  value: '',
9619
9622
  isEditable: true,
9623
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY,
9620
9624
  maxSizeValue: new go.Size(120, 14),
9621
9625
  })),
9622
9626
  assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
@@ -9640,6 +9644,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
9640
9644
  ...e,
9641
9645
  value: '',
9642
9646
  isEditable: true,
9647
+ waterSystem: WATER_SYSTEMS_NAME.WARMER_WATER,
9643
9648
  maxSizeValue: new go.Size(120, 14),
9644
9649
  })),
9645
9650
  assetLayers: ATO_ASSET_LAYERS.FLOW,
@@ -9663,6 +9668,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
9663
9668
  ...e,
9664
9669
  value: '',
9665
9670
  isEditable: true,
9671
+ waterSystem: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
9666
9672
  maxSizeValue: new go.Size(120, 14),
9667
9673
  })),
9668
9674
  assetLayers: ATO_ASSET_LAYERS.FLOW,
@@ -9686,6 +9692,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
9686
9692
  ...e,
9687
9693
  value: '',
9688
9694
  isEditable: true,
9695
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
9689
9696
  maxSizeValue: new go.Size(130, 14),
9690
9697
  })),
9691
9698
  assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
@@ -9709,6 +9716,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
9709
9716
  ...e,
9710
9717
  value: '',
9711
9718
  isEditable: true,
9719
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
9712
9720
  maxSizeValue: new go.Size(130, 14),
9713
9721
  })),
9714
9722
  assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
@@ -9734,8 +9742,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
9734
9742
  value: '',
9735
9743
  isEditable: true,
9736
9744
  maxSizeValue: new go.Size(130, 14),
9737
- extendedDataIsFromPlugin: {
9738
- maxSizeValue: new go.Size(230, 14),
9745
+ waterSystem: WATER_SYSTEMS_NAME.SYSTEM_KPIS,
9746
+ [`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
9747
+ maxSizeValue: new go.Size(250, 14),
9739
9748
  },
9740
9749
  }))
9741
9750
  .concat(ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => ({
@@ -9744,7 +9753,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
9744
9753
  isEditable: false,
9745
9754
  maxSizeValue: new go.Size(250, 14),
9746
9755
  isReadOnly: true,
9747
- isFrom: ATO_MAPPER_FROM.PLUGIN,
9756
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
9748
9757
  // font: '10px sans-serif',
9749
9758
  visible: false,
9750
9759
  }))),
@@ -9855,7 +9864,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
9855
9864
  ...e,
9856
9865
  value: e?.value || '',
9857
9866
  isEditable: !!e?.isEditable,
9858
- isFrom: ATO_MAPPER_FROM.PLUGIN,
9867
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
9859
9868
  maxSizeValue: new go.Size(130, 14),
9860
9869
  maxSizeNameParam: new go.Size(160, 14),
9861
9870
  waterSystem: WATER_SYSTEMS_NAME.DATA_ANALYSIS,
@@ -9980,7 +9989,11 @@ const ATO_COMPONENTS_GROUP_DATA = {
9980
9989
  waterSystem: WATER_SYSTEMS_NAME.SYSTEM_KPIS__COOLING_TOWER__PERFORMANCE,
9981
9990
  })),
9982
9991
  assetLayers: ATO_ASSET_LAYERS.PERFORMANCE,
9992
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
9983
9993
  extendedData: {
9994
+ visible: false,
9995
+ },
9996
+ [`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
9984
9997
  visible: true,
9985
9998
  },
9986
9999
  extendedDataResponsive: {
@@ -10390,7 +10403,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
10390
10403
  maxSizeValue: new go.Size(220, 14),
10391
10404
  waterSystem: WATER_SYSTEMS_NAME.SYSTEM_KPIS,
10392
10405
  isReadOnly: true,
10393
- isFrom: ATO_MAPPER_FROM.PLUGIN,
10406
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
10394
10407
  // font: '10px sans-serif',
10395
10408
  maxSizeNameParam: new go.Size(125, 15),
10396
10409
  }))
@@ -10401,22 +10414,22 @@ const ATO_COMPONENTS_GROUP_DATA = {
10401
10414
  maxSizeValue: new go.Size(220, 14),
10402
10415
  waterSystem: WATER_SYSTEMS_NAME.SYSTEM_KPIS,
10403
10416
  isReadOnly: true,
10404
- isFrom: ATO_MAPPER_FROM.PLUGIN,
10417
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
10405
10418
  // font: '10px sans-serif',
10406
10419
  maxSizeNameParam: new go.Size(125, 15),
10407
10420
  }))),
10408
10421
  assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
10409
- isFrom: ATO_MAPPER_FROM.PLUGIN,
10422
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
10410
10423
  extendedData: {
10411
10424
  visible: false,
10412
10425
  },
10413
- extendedDataisFromPlugin: {
10426
+ [`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
10414
10427
  visible: true,
10415
10428
  },
10416
10429
  extendedDataResponsive: {
10417
10430
  visible: false,
10418
10431
  },
10419
- extendedDataisFromPluginResponsive: {
10432
+ [`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}Responsive`]: {
10420
10433
  visible: false,
10421
10434
  },
10422
10435
  },
@@ -10945,6 +10958,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
10945
10958
  ...e,
10946
10959
  value: '',
10947
10960
  isEditable: true,
10961
+ waterSystem: WATER_SYSTEMS_NAME.EVAPORATION_LOSS,
10948
10962
  maxSizeValue: new go.Size(140, 14),
10949
10963
  })),
10950
10964
  visible: true,
@@ -10968,6 +10982,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
10968
10982
  dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW].map((e) => ({
10969
10983
  ...e,
10970
10984
  value: '',
10985
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW,
10971
10986
  isEditable: true,
10972
10987
  maxSizeValue: new go.Size(120, 14),
10973
10988
  })),
@@ -10992,6 +11007,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
10992
11007
  ...e,
10993
11008
  value: '',
10994
11009
  isEditable: true,
11010
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY,
10995
11011
  maxSizeValue: new go.Size(120, 14),
10996
11012
  })),
10997
11013
  assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
@@ -11015,6 +11031,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
11015
11031
  ...e,
11016
11032
  value: '',
11017
11033
  isEditable: true,
11034
+ waterSystem: WATER_SYSTEMS_NAME.WARMER_WATER,
11018
11035
  maxSizeValue: new go.Size(120, 14),
11019
11036
  })),
11020
11037
  assetLayers: ATO_ASSET_LAYERS.FLOW,
@@ -11038,6 +11055,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
11038
11055
  ...e,
11039
11056
  value: '',
11040
11057
  isEditable: true,
11058
+ waterSystem: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
11041
11059
  maxSizeValue: new go.Size(120, 14),
11042
11060
  })),
11043
11061
  assetLayers: ATO_ASSET_LAYERS.FLOW,
@@ -11061,6 +11079,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
11061
11079
  ...e,
11062
11080
  value: '',
11063
11081
  isEditable: true,
11082
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
11064
11083
  maxSizeValue: new go.Size(130, 14),
11065
11084
  })),
11066
11085
  assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
@@ -11084,6 +11103,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
11084
11103
  ...e,
11085
11104
  value: '',
11086
11105
  isEditable: true,
11106
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
11087
11107
  maxSizeValue: new go.Size(130, 14),
11088
11108
  })),
11089
11109
  assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
@@ -11108,9 +11128,10 @@ const ATO_COMPONENTS_GROUP_DATA = {
11108
11128
  ...e,
11109
11129
  value: '',
11110
11130
  isEditable: true,
11131
+ waterSystem: WATER_SYSTEMS_NAME.SYSTEM_KPIS,
11111
11132
  maxSizeValue: new go.Size(130, 14),
11112
- extendedDataIsFromPlugin: {
11113
- maxSizeValue: new go.Size(230, 14),
11133
+ [`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
11134
+ maxSizeValue: new go.Size(250, 14),
11114
11135
  },
11115
11136
  }))
11116
11137
  .concat(ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => ({
@@ -11119,7 +11140,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
11119
11140
  isEditable: false,
11120
11141
  maxSizeValue: new go.Size(250, 14),
11121
11142
  isReadOnly: true,
11122
- isFrom: ATO_MAPPER_FROM.PLUGIN,
11143
+ isFrom: ATO_MAPPER_FROM.INDICATOR,
11123
11144
  // font: '10px sans-serif',
11124
11145
  visible: false,
11125
11146
  }))),
@@ -11284,7 +11305,7 @@ class AssetFlowComponent {
11284
11305
  const isResponsiveView = window.innerWidth < 1024;
11285
11306
  // Reponsive
11286
11307
  _.forEach(flowData?.nodeDataArray, (node) => {
11287
- const propertyNameExtend = `extendedData${defaultData.isFrom && node?.isFrom ? `isFrom${defaultData.isFrom}` : ''}${isResponsiveView ? 'Responsive' : ''}`;
11308
+ const propertyNameExtend = `extendedData${defaultData.isFrom && node?.isFrom ? `IsFrom${defaultData.isFrom}` : ''}${isResponsiveView ? 'Responsive' : ''}`;
11288
11309
  node = _.merge(node, node[propertyNameExtend], node[`${propertyNameExtend}${defaultData?.assetLayer}`] ?? {});
11289
11310
  if (node?.assetLayers) {
11290
11311
  node.visible =
@@ -11312,7 +11333,7 @@ class AssetFlowComponent {
11312
11333
  }
11313
11334
  setFlowData(data) {
11314
11335
  _.forEach(data.nodeDataArray, (node) => {
11315
- const propertyNameExtend = `extendedData${data.isFrom && node?.isFrom ? `isFrom${data.isFrom}` : ''}${this.isResponsiveView ? 'Responsive' : ''}`;
11336
+ const propertyNameExtend = `extendedData${data.isFrom && node?.isFrom ? `IsFrom${data.isFrom}` : ''}${this.isResponsiveView ? 'Responsive' : ''}`;
11316
11337
  node = _.merge(node, node[propertyNameExtend], node[`${propertyNameExtend}${data?.assetLayer}`] ?? {});
11317
11338
  if (node?.assetLayers) {
11318
11339
  node.visible =