ato-water-lib 0.0.103 → 0.0.104
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 +23 -8
- package/fesm2015/ato-water-lib.mjs +22 -22
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +24 -9
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/constants/components-group-const.d.ts +1 -1
- 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',
|
@@ -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
|
}))
|
@@ -9986,7 +9993,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9986
9993
|
extendedData: {
|
9987
9994
|
visible: false,
|
9988
9995
|
},
|
9989
|
-
[`
|
9996
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
|
9990
9997
|
visible: true,
|
9991
9998
|
},
|
9992
9999
|
extendedDataResponsive: {
|
@@ -10416,13 +10423,13 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
10416
10423
|
extendedData: {
|
10417
10424
|
visible: false,
|
10418
10425
|
},
|
10419
|
-
[`
|
10426
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
|
10420
10427
|
visible: true,
|
10421
10428
|
},
|
10422
10429
|
extendedDataResponsive: {
|
10423
10430
|
visible: false,
|
10424
10431
|
},
|
10425
|
-
[`
|
10432
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}Responsive`]: {
|
10426
10433
|
visible: false,
|
10427
10434
|
},
|
10428
10435
|
},
|
@@ -10951,6 +10958,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
10951
10958
|
...e,
|
10952
10959
|
value: '',
|
10953
10960
|
isEditable: true,
|
10961
|
+
waterSystem: WATER_SYSTEMS_NAME.EVAPORATION_LOSS,
|
10954
10962
|
maxSizeValue: new go.Size(140, 14),
|
10955
10963
|
})),
|
10956
10964
|
visible: true,
|
@@ -10974,6 +10982,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
10974
10982
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW].map((e) => ({
|
10975
10983
|
...e,
|
10976
10984
|
value: '',
|
10985
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW,
|
10977
10986
|
isEditable: true,
|
10978
10987
|
maxSizeValue: new go.Size(120, 14),
|
10979
10988
|
})),
|
@@ -10998,6 +11007,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
10998
11007
|
...e,
|
10999
11008
|
value: '',
|
11000
11009
|
isEditable: true,
|
11010
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY,
|
11001
11011
|
maxSizeValue: new go.Size(120, 14),
|
11002
11012
|
})),
|
11003
11013
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -11021,6 +11031,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
11021
11031
|
...e,
|
11022
11032
|
value: '',
|
11023
11033
|
isEditable: true,
|
11034
|
+
waterSystem: WATER_SYSTEMS_NAME.WARMER_WATER,
|
11024
11035
|
maxSizeValue: new go.Size(120, 14),
|
11025
11036
|
})),
|
11026
11037
|
assetLayers: ATO_ASSET_LAYERS.FLOW,
|
@@ -11044,6 +11055,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
11044
11055
|
...e,
|
11045
11056
|
value: '',
|
11046
11057
|
isEditable: true,
|
11058
|
+
waterSystem: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
|
11047
11059
|
maxSizeValue: new go.Size(120, 14),
|
11048
11060
|
})),
|
11049
11061
|
assetLayers: ATO_ASSET_LAYERS.FLOW,
|
@@ -11067,6 +11079,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
11067
11079
|
...e,
|
11068
11080
|
value: '',
|
11069
11081
|
isEditable: true,
|
11082
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
|
11070
11083
|
maxSizeValue: new go.Size(130, 14),
|
11071
11084
|
})),
|
11072
11085
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -11090,6 +11103,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
11090
11103
|
...e,
|
11091
11104
|
value: '',
|
11092
11105
|
isEditable: true,
|
11106
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
|
11093
11107
|
maxSizeValue: new go.Size(130, 14),
|
11094
11108
|
})),
|
11095
11109
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -11114,9 +11128,10 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
11114
11128
|
...e,
|
11115
11129
|
value: '',
|
11116
11130
|
isEditable: true,
|
11131
|
+
waterSystem: WATER_SYSTEMS_NAME.SYSTEM_KPIS,
|
11117
11132
|
maxSizeValue: new go.Size(130, 14),
|
11118
|
-
[`
|
11119
|
-
maxSizeValue: new go.Size(
|
11133
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
|
11134
|
+
maxSizeValue: new go.Size(250, 14),
|
11120
11135
|
},
|
11121
11136
|
}))
|
11122
11137
|
.concat(ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => ({
|
@@ -11290,7 +11305,7 @@ class AssetFlowComponent {
|
|
11290
11305
|
const isResponsiveView = window.innerWidth < 1024;
|
11291
11306
|
// Reponsive
|
11292
11307
|
_.forEach(flowData?.nodeDataArray, (node) => {
|
11293
|
-
const propertyNameExtend = `extendedData${defaultData.isFrom && node?.isFrom ? `
|
11308
|
+
const propertyNameExtend = `extendedData${defaultData.isFrom && node?.isFrom ? `IsFrom${defaultData.isFrom}` : ''}${isResponsiveView ? 'Responsive' : ''}`;
|
11294
11309
|
node = _.merge(node, node[propertyNameExtend], node[`${propertyNameExtend}${defaultData?.assetLayer}`] ?? {});
|
11295
11310
|
if (node?.assetLayers) {
|
11296
11311
|
node.visible =
|
@@ -11318,7 +11333,7 @@ class AssetFlowComponent {
|
|
11318
11333
|
}
|
11319
11334
|
setFlowData(data) {
|
11320
11335
|
_.forEach(data.nodeDataArray, (node) => {
|
11321
|
-
const propertyNameExtend = `extendedData${data.isFrom && node?.isFrom ? `
|
11336
|
+
const propertyNameExtend = `extendedData${data.isFrom && node?.isFrom ? `IsFrom${data.isFrom}` : ''}${this.isResponsiveView ? 'Responsive' : ''}`;
|
11322
11337
|
node = _.merge(node, node[propertyNameExtend], node[`${propertyNameExtend}${data?.assetLayer}`] ?? {});
|
11323
11338
|
if (node?.assetLayers) {
|
11324
11339
|
node.visible =
|