ato-water-lib 0.0.103 → 0.0.105
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +3 -3
- package/esm2020/lib/constants/components-group-const.mjs +29 -11
- package/fesm2015/ato-water-lib.mjs +27 -25
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +30 -12
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/constants/components-group-const.d.ts +4 -4
- package/package.json +1 -1
@@ -6980,7 +6980,7 @@ const AtoGoJSBase64 = {
|
|
6980
6980
|
|
6981
6981
|
var ATO_MAPPER_FROM;
|
6982
6982
|
(function (ATO_MAPPER_FROM) {
|
6983
|
-
// HFW = 'HFW',
|
6983
|
+
// HFW = 'HFW',
|
6984
6984
|
ATO_MAPPER_FROM["INDICATOR"] = "Indicator";
|
6985
6985
|
ATO_MAPPER_FROM["NORMAL"] = "Nomarl";
|
6986
6986
|
// PLUGIN = 'Plugin',
|
@@ -7197,7 +7197,7 @@ var WATER_SYSTEMS_NAME;
|
|
7197
7197
|
WATER_SYSTEMS_NAME["DATA_ANALYSIS"] = "Data Analysis";
|
7198
7198
|
WATER_SYSTEMS_NAME["EFFICIENCY_AND_PERFORMANCE"] = "Efficiency and Performance";
|
7199
7199
|
WATER_SYSTEMS_NAME["WATER_AND_ENERGY_CONSUMPTION"] = "Water & Energy Consumption";
|
7200
|
-
WATER_SYSTEMS_NAME["CHEMICALS_CONSUMPTION"] = "Chemicals
|
7200
|
+
WATER_SYSTEMS_NAME["CHEMICALS_CONSUMPTION"] = "Chemicals Consumption";
|
7201
7201
|
WATER_SYSTEMS_NAME["DESIGN_PARAMETERS"] = "Design Parameters";
|
7202
7202
|
WATER_SYSTEMS_NAME["SYSTEM_KPIS__COOLING_TOWER__PERFORMANCE"] = "System KPIs";
|
7203
7203
|
})(WATER_SYSTEMS_NAME || (WATER_SYSTEMS_NAME = {}));
|
@@ -9596,6 +9596,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9596
9596
|
...e,
|
9597
9597
|
value: '',
|
9598
9598
|
isEditable: true,
|
9599
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW,
|
9599
9600
|
maxSizeValue: new go.Size(120, 14),
|
9600
9601
|
})),
|
9601
9602
|
assetLayers: ATO_ASSET_LAYERS.FLOW,
|
@@ -9619,6 +9620,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9619
9620
|
...e,
|
9620
9621
|
value: '',
|
9621
9622
|
isEditable: true,
|
9623
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY,
|
9622
9624
|
maxSizeValue: new go.Size(120, 14),
|
9623
9625
|
})),
|
9624
9626
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -9642,6 +9644,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9642
9644
|
...e,
|
9643
9645
|
value: '',
|
9644
9646
|
isEditable: true,
|
9647
|
+
waterSystem: WATER_SYSTEMS_NAME.WARMER_WATER,
|
9645
9648
|
maxSizeValue: new go.Size(120, 14),
|
9646
9649
|
})),
|
9647
9650
|
assetLayers: ATO_ASSET_LAYERS.FLOW,
|
@@ -9665,6 +9668,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9665
9668
|
...e,
|
9666
9669
|
value: '',
|
9667
9670
|
isEditable: true,
|
9671
|
+
waterSystem: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
|
9668
9672
|
maxSizeValue: new go.Size(120, 14),
|
9669
9673
|
})),
|
9670
9674
|
assetLayers: ATO_ASSET_LAYERS.FLOW,
|
@@ -9688,6 +9692,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9688
9692
|
...e,
|
9689
9693
|
value: '',
|
9690
9694
|
isEditable: true,
|
9695
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
|
9691
9696
|
maxSizeValue: new go.Size(130, 14),
|
9692
9697
|
})),
|
9693
9698
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -9711,6 +9716,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9711
9716
|
...e,
|
9712
9717
|
value: '',
|
9713
9718
|
isEditable: true,
|
9719
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
|
9714
9720
|
maxSizeValue: new go.Size(130, 14),
|
9715
9721
|
})),
|
9716
9722
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -9736,7 +9742,8 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9736
9742
|
value: '',
|
9737
9743
|
isEditable: true,
|
9738
9744
|
maxSizeValue: new go.Size(130, 14),
|
9739
|
-
|
9745
|
+
waterSystem: WATER_SYSTEMS_NAME.SYSTEM_KPIS,
|
9746
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
|
9740
9747
|
maxSizeValue: new go.Size(250, 14),
|
9741
9748
|
},
|
9742
9749
|
}))
|
@@ -9856,7 +9863,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9856
9863
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.DATA_ANALYSIS].map((e) => ({
|
9857
9864
|
...e,
|
9858
9865
|
value: e?.value || '',
|
9859
|
-
isEditable:
|
9866
|
+
isEditable: e?.isEditable === false ? false : true,
|
9860
9867
|
isFrom: ATO_MAPPER_FROM.INDICATOR,
|
9861
9868
|
maxSizeValue: new go.Size(130, 14),
|
9862
9869
|
maxSizeNameParam: new go.Size(160, 14),
|
@@ -9986,10 +9993,13 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9986
9993
|
extendedData: {
|
9987
9994
|
visible: false,
|
9988
9995
|
},
|
9989
|
-
|
9996
|
+
extendedDataResponsive: {
|
9997
|
+
visible: false,
|
9998
|
+
},
|
9999
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
|
9990
10000
|
visible: true,
|
9991
10001
|
},
|
9992
|
-
|
10002
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}Responsive`]: {
|
9993
10003
|
visible: false,
|
9994
10004
|
},
|
9995
10005
|
},
|
@@ -10416,13 +10426,13 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
10416
10426
|
extendedData: {
|
10417
10427
|
visible: false,
|
10418
10428
|
},
|
10419
|
-
[`
|
10429
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
|
10420
10430
|
visible: true,
|
10421
10431
|
},
|
10422
10432
|
extendedDataResponsive: {
|
10423
10433
|
visible: false,
|
10424
10434
|
},
|
10425
|
-
[`
|
10435
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}Responsive`]: {
|
10426
10436
|
visible: false,
|
10427
10437
|
},
|
10428
10438
|
},
|
@@ -10951,6 +10961,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
10951
10961
|
...e,
|
10952
10962
|
value: '',
|
10953
10963
|
isEditable: true,
|
10964
|
+
waterSystem: WATER_SYSTEMS_NAME.EVAPORATION_LOSS,
|
10954
10965
|
maxSizeValue: new go.Size(140, 14),
|
10955
10966
|
})),
|
10956
10967
|
visible: true,
|
@@ -10974,6 +10985,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
10974
10985
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW].map((e) => ({
|
10975
10986
|
...e,
|
10976
10987
|
value: '',
|
10988
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW,
|
10977
10989
|
isEditable: true,
|
10978
10990
|
maxSizeValue: new go.Size(120, 14),
|
10979
10991
|
})),
|
@@ -10998,6 +11010,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
10998
11010
|
...e,
|
10999
11011
|
value: '',
|
11000
11012
|
isEditable: true,
|
11013
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY,
|
11001
11014
|
maxSizeValue: new go.Size(120, 14),
|
11002
11015
|
})),
|
11003
11016
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -11021,6 +11034,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
11021
11034
|
...e,
|
11022
11035
|
value: '',
|
11023
11036
|
isEditable: true,
|
11037
|
+
waterSystem: WATER_SYSTEMS_NAME.WARMER_WATER,
|
11024
11038
|
maxSizeValue: new go.Size(120, 14),
|
11025
11039
|
})),
|
11026
11040
|
assetLayers: ATO_ASSET_LAYERS.FLOW,
|
@@ -11044,6 +11058,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
11044
11058
|
...e,
|
11045
11059
|
value: '',
|
11046
11060
|
isEditable: true,
|
11061
|
+
waterSystem: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
|
11047
11062
|
maxSizeValue: new go.Size(120, 14),
|
11048
11063
|
})),
|
11049
11064
|
assetLayers: ATO_ASSET_LAYERS.FLOW,
|
@@ -11067,6 +11082,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
11067
11082
|
...e,
|
11068
11083
|
value: '',
|
11069
11084
|
isEditable: true,
|
11085
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
|
11070
11086
|
maxSizeValue: new go.Size(130, 14),
|
11071
11087
|
})),
|
11072
11088
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -11090,6 +11106,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
11090
11106
|
...e,
|
11091
11107
|
value: '',
|
11092
11108
|
isEditable: true,
|
11109
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
|
11093
11110
|
maxSizeValue: new go.Size(130, 14),
|
11094
11111
|
})),
|
11095
11112
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -11114,9 +11131,10 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
11114
11131
|
...e,
|
11115
11132
|
value: '',
|
11116
11133
|
isEditable: true,
|
11134
|
+
waterSystem: WATER_SYSTEMS_NAME.SYSTEM_KPIS,
|
11117
11135
|
maxSizeValue: new go.Size(130, 14),
|
11118
|
-
[`
|
11119
|
-
maxSizeValue: new go.Size(
|
11136
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
|
11137
|
+
maxSizeValue: new go.Size(250, 14),
|
11120
11138
|
},
|
11121
11139
|
}))
|
11122
11140
|
.concat(ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => ({
|
@@ -11290,7 +11308,7 @@ class AssetFlowComponent {
|
|
11290
11308
|
const isResponsiveView = window.innerWidth < 1024;
|
11291
11309
|
// Reponsive
|
11292
11310
|
_.forEach(flowData?.nodeDataArray, (node) => {
|
11293
|
-
const propertyNameExtend = `extendedData${defaultData.isFrom && node?.isFrom ? `
|
11311
|
+
const propertyNameExtend = `extendedData${defaultData.isFrom && node?.isFrom ? `IsFrom${defaultData.isFrom}` : ''}${isResponsiveView ? 'Responsive' : ''}`;
|
11294
11312
|
node = _.merge(node, node[propertyNameExtend], node[`${propertyNameExtend}${defaultData?.assetLayer}`] ?? {});
|
11295
11313
|
if (node?.assetLayers) {
|
11296
11314
|
node.visible =
|
@@ -11318,7 +11336,7 @@ class AssetFlowComponent {
|
|
11318
11336
|
}
|
11319
11337
|
setFlowData(data) {
|
11320
11338
|
_.forEach(data.nodeDataArray, (node) => {
|
11321
|
-
const propertyNameExtend = `extendedData${data.isFrom && node?.isFrom ? `
|
11339
|
+
const propertyNameExtend = `extendedData${data.isFrom && node?.isFrom ? `IsFrom${data.isFrom}` : ''}${this.isResponsiveView ? 'Responsive' : ''}`;
|
11322
11340
|
node = _.merge(node, node[propertyNameExtend], node[`${propertyNameExtend}${data?.assetLayer}`] ?? {});
|
11323
11341
|
if (node?.assetLayers) {
|
11324
11342
|
node.visible =
|