ato-water-lib 0.0.34 → 0.0.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/esm2020/ato-water-lib.mjs +5 -0
  2. package/esm2020/lib/ato-water-lib.component.mjs +19 -0
  3. package/esm2020/lib/ato-water-lib.module.mjs +49 -0
  4. package/esm2020/lib/ato-water-lib.service.mjs +14 -0
  5. package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +123 -0
  6. package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +26 -0
  7. package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +54 -0
  8. package/esm2020/lib/constants/applicable-prefixes-const.mjs +441 -0
  9. package/esm2020/lib/constants/base64.const.mjs +5 -0
  10. package/esm2020/lib/constants/components-group-const.mjs +1629 -0
  11. package/esm2020/lib/constants/icon-base64.const.mjs +4 -0
  12. package/esm2020/lib/constants/key.const.mjs +4 -0
  13. package/esm2020/lib/constants/plant.constant.mjs +51 -0
  14. package/esm2020/lib/constants/value.const.mjs +782 -0
  15. package/esm2020/lib/directive/ato-loading.directive.mjs +55 -0
  16. package/esm2020/lib/directive/ng-var.directive.mjs +31 -0
  17. package/esm2020/lib/models/ato-asset-flow.model.mjs +2 -0
  18. package/esm2020/lib/models/default-gojs-editor.model.mjs +3227 -0
  19. package/esm2020/lib/models/gojs-data.model.mjs +6 -0
  20. package/esm2020/lib/models/gojs-editor.model.mjs +1754 -0
  21. package/esm2020/lib/services/utils/utils.service.mjs +133 -0
  22. package/esm2020/public-api.mjs +15 -0
  23. package/fesm2015/ato-water-lib.mjs +8208 -0
  24. package/fesm2015/ato-water-lib.mjs.map +1 -0
  25. package/fesm2020/ato-water-lib.mjs +8360 -0
  26. package/fesm2020/ato-water-lib.mjs.map +1 -0
  27. package/index.d.ts +5 -0
  28. package/lib/ato-water-lib.component.d.ts +5 -0
  29. package/lib/ato-water-lib.module.d.ts +13 -0
  30. package/lib/ato-water-lib.service.d.ts +6 -0
  31. package/lib/components/asset-flow/asset-flow.component.d.ts +35 -0
  32. package/lib/components/asset-params-view/asset-params-view.component.d.ts +10 -0
  33. package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +16 -0
  34. package/lib/constants/applicable-prefixes-const.d.ts +162 -0
  35. package/lib/constants/base64.const.d.ts +3 -0
  36. package/lib/constants/components-group-const.d.ts +1264 -0
  37. package/lib/constants/icon-base64.const.d.ts +3 -0
  38. package/lib/constants/key.const.d.ts +1 -0
  39. package/lib/constants/plant.constant.d.ts +7 -0
  40. package/lib/constants/value.const.d.ts +71 -0
  41. package/lib/directive/ato-loading.directive.d.ts +14 -0
  42. package/lib/directive/ng-var.directive.d.ts +12 -0
  43. package/lib/models/ato-asset-flow.model.d.ts +5 -0
  44. package/lib/models/default-gojs-editor.model.d.ts +197 -0
  45. package/{src/lib/models/gojs-data.model.ts → lib/models/gojs-data.model.d.ts} +3 -3
  46. package/lib/models/gojs-editor.model.d.ts +436 -0
  47. package/lib/services/utils/utils.service.d.ts +24 -0
  48. package/package.json +22 -3
  49. package/{src/public-api.ts → public-api.d.ts} +0 -10
  50. package/ng-package.json +0 -11
  51. package/src/lib/ato-water-lib.component.spec.ts +0 -23
  52. package/src/lib/ato-water-lib.component.ts +0 -15
  53. package/src/lib/ato-water-lib.module.ts +0 -31
  54. package/src/lib/ato-water-lib.service.spec.ts +0 -16
  55. package/src/lib/ato-water-lib.service.ts +0 -9
  56. package/src/lib/components/asset-flow/asset-flow.component.html +0 -21
  57. package/src/lib/components/asset-flow/asset-flow.component.scss +0 -4
  58. package/src/lib/components/asset-flow/asset-flow.component.spec.ts +0 -23
  59. package/src/lib/components/asset-flow/asset-flow.component.ts +0 -137
  60. package/src/lib/components/asset-params-view/asset-params-view.component.html +0 -85
  61. package/src/lib/components/asset-params-view/asset-params-view.component.scss +0 -37
  62. package/src/lib/components/asset-params-view/asset-params-view.component.spec.ts +0 -23
  63. package/src/lib/components/asset-params-view/asset-params-view.component.ts +0 -16
  64. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.css +0 -0
  65. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.html +0 -25
  66. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.ts +0 -69
  67. package/src/lib/constants/applicable-prefixes-const.ts +0 -452
  68. package/src/lib/constants/base64.const.ts +0 -5
  69. package/src/lib/constants/components-group-const.ts +0 -1637
  70. package/src/lib/constants/icon-base64.const.ts +0 -3
  71. package/src/lib/constants/icon-svg.const.ts +0 -8
  72. package/src/lib/constants/key.const.ts +0 -5
  73. package/src/lib/constants/plant.constant.ts +0 -52
  74. package/src/lib/constants/value.const.ts +0 -822
  75. package/src/lib/directive/ato-loading.directive.ts +0 -55
  76. package/src/lib/directive/ng-var.directive.ts +0 -28
  77. package/src/lib/models/default-gojs-editor.model.ts +0 -4906
  78. package/src/lib/models/gojs-editor.model.ts +0 -1901
  79. package/src/lib/services/utils/utils.service.ts +0 -141
  80. package/tsconfig.lib.json +0 -14
  81. package/tsconfig.lib.prod.json +0 -10
  82. package/tsconfig.spec.json +0 -14
@@ -1,822 +0,0 @@
1
- // import { AnalyticsService } from '@dashboards-shared/services/analytics.service';
2
- // import { E_Frequency } from './frequency.enum';
3
- // import { ENUM_RISK_COLOR } from './information.const';
4
- // import { ABBREVIATION } from './applicable-prefixes-const';
5
-
6
- // export const DEFAULT_NAMES_MAPPING: any = {
7
- // CMS: 'CMS',
8
- // ETP: 'ETP',
9
- // ZLD: 'ZLD',
10
- // RO: 'RO',
11
- // CMSLabWashing: 'CMS Lab Washing',
12
- // };
13
-
14
- export const VALUE_NA = 'NA';
15
- export const NO_DATA = 'No Data';
16
- export const VALUE_NA_SPECIAL = 'N/A';
17
- export const TEXT_UNKNOWN = '?';
18
- export const TEXT_ERR = '!Err';
19
- export const NO_ENOUGH_DATA = 'Not enough data';
20
-
21
- // For Element DOM
22
- export const KEY_CREATE_DOM_TO_DOWNLOAD = 'newCreateToDownload';
23
- export const NO_HIDDEN = 'noHidden';
24
-
25
- export const GROUP_PLANT_CELL_KEY = 3000;
26
- export const GROUP_PC_INPUTS_KEY = 1000;
27
- export const GROUP_PC_OUTPUTS_KEY = 2000;
28
- export const ENUM_ROLES = 'ROLES';
29
-
30
- export enum E_FILTER_KEY {
31
- VIEW_MODE = 'viewMode',
32
- WATER_UNIT = 'waterUnit',
33
- ENERGY_UNIT = 'energyUnit',
34
- ELECTRICITY_UNIT = 'electricityUnit',
35
- NATURAL_GAS_UNIT = 'naturalGasUnit',
36
- FUEL_UNIT = 'fuelUnit',
37
- CURRENCY_UNIT = 'currencyUnit',
38
- }
39
-
40
- export enum ATO_ECOMPONENT_PLANT_TYPE {
41
- WATER = 'water',
42
- ENERGY = 'energy',
43
- ELECTRICITY = 'electricity',
44
- NATURAL_GAS = 'gas',
45
- FUEL = 'fuel',
46
- STEAM = 'steam',
47
- EMISSION = 'emission',
48
- COST = 'cost',
49
-
50
- WATER_PLANT_CELL = 'water-plant-cell',
51
- ENERGY_PLANT_CELL = 'energy-plant-cell',
52
- ELECTRICITY_PLANT_CELL = 'electricity-plant-cell',
53
- NATURAL_GAS_PLANT_CELL = 'gas-plant-cell',
54
- FUEL_PLANT_CELL = 'fuel-plant-cell',
55
- STEAM_PLANT_CELL = 'steam-plant-cell',
56
- EMISSION_PLANT_CELL = 'emission-plant-cell',
57
- COST_PLANT_CELL = 'cost-plant-cell',
58
- }
59
-
60
- export const COMPOTYPE_CALL_PLANT_TOPOLOGY_DETAILS: string[] = [
61
- ATO_ECOMPONENT_PLANT_TYPE.WATER,
62
- ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL,
63
- ATO_ECOMPONENT_PLANT_TYPE.ENERGY_PLANT_CELL,
64
- ATO_ECOMPONENT_PLANT_TYPE.ELECTRICITY_PLANT_CELL,
65
- ATO_ECOMPONENT_PLANT_TYPE.NATURAL_GAS_PLANT_CELL,
66
- ATO_ECOMPONENT_PLANT_TYPE.FUEL_PLANT_CELL,
67
- ATO_ECOMPONENT_PLANT_TYPE.STEAM_PLANT_CELL,
68
- ATO_ECOMPONENT_PLANT_TYPE.EMISSION_PLANT_CELL,
69
- ATO_ECOMPONENT_PLANT_TYPE.COST_PLANT_CELL,
70
- ];
71
-
72
- export const COMPONENT_TYPE_OF_PLANT_CELL: string[] = [
73
- ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL,
74
- ATO_ECOMPONENT_PLANT_TYPE.ENERGY_PLANT_CELL,
75
- ATO_ECOMPONENT_PLANT_TYPE.ELECTRICITY_PLANT_CELL,
76
- ATO_ECOMPONENT_PLANT_TYPE.NATURAL_GAS_PLANT_CELL,
77
- ATO_ECOMPONENT_PLANT_TYPE.FUEL_PLANT_CELL,
78
- ATO_ECOMPONENT_PLANT_TYPE.STEAM_PLANT_CELL,
79
- ATO_ECOMPONENT_PLANT_TYPE.EMISSION_PLANT_CELL,
80
- ATO_ECOMPONENT_PLANT_TYPE.COST_PLANT_CELL,
81
- ];
82
-
83
- export const COMPONENT_TYPE_OF_PLANT_CELL_ENERGY: string[] = [
84
- ATO_ECOMPONENT_PLANT_TYPE.ENERGY_PLANT_CELL,
85
- ATO_ECOMPONENT_PLANT_TYPE.ELECTRICITY_PLANT_CELL,
86
- ATO_ECOMPONENT_PLANT_TYPE.NATURAL_GAS_PLANT_CELL,
87
- ATO_ECOMPONENT_PLANT_TYPE.FUEL_PLANT_CELL,
88
- ATO_ECOMPONENT_PLANT_TYPE.STEAM_PLANT_CELL,
89
- ATO_ECOMPONENT_PLANT_TYPE.EMISSION_PLANT_CELL,
90
- ATO_ECOMPONENT_PLANT_TYPE.COST_PLANT_CELL,
91
- ];
92
-
93
- // export enum E_TOPOLOGY_TYPE {
94
- // OVER_VIEW = 'over-view',
95
- // PLANT_CELL = 'plant-cell',
96
- // }
97
-
98
- export enum E_COMPONENT_DATA_TYPE {
99
- COMPONENT_WATER_FLOW = 'ComponentWaterFlow',
100
- COMPONENT_ENERGY_FLOW = 'ComponentEnergyFlow',
101
- }
102
-
103
- export enum E_FLOW_RECORD {
104
- INFLOW_WATER_RECORD = 'InflowWaterRecord',
105
- OUTFLOW_WATER_RECORD = 'OutflowWaterRecord',
106
- INFLOW_ENERGY_RECORD = 'InflowEnergyRecord',
107
- OUTFLOW_ENERGY_RECORD = 'OutflowEnergyRecord',
108
- }
109
-
110
- // export enum TAB_DASHBOARD {
111
- // WATER = 'water',
112
- // WATER_LABEL = 'Water',
113
- // ENERGY_EMISSION = 'energy & emissions',
114
- // ENERGY_EMISSION_LABEL = 'Energy & Emissions',
115
- // }
116
-
117
- // export enum TAB_SETUP_COMPLIANCE {
118
- // PLANT_LEVEL = 'Plant level',
119
- // PROCESS_LEVEL = 'Process Level',
120
- // }
121
-
122
- // export enum PLANT_ENERGY_DIAGRAM_TABS_INDEX {
123
- // ENERGY = 0,
124
- // ELECTRICITY = 1,
125
- // NATURAL_GAS = 2,
126
- // FUEL = 3,
127
- // EMISSIONS = 4
128
- // }
129
-
130
- export enum TAG_TYPE {
131
- WATER = 'Water',
132
- ELECTRICITY = 'Electricity',
133
- NATURAL_GAS = 'Natural Gas',
134
- FUEL = 'Fuel',
135
- STEAM = 'Steam',
136
- ENERGY = 'Energy',
137
- EMISSION = 'Emission',
138
- COST = 'Cost',
139
- WATER_ANALYTIC = 'Water Analytic',
140
- }
141
-
142
- // export enum TAB_WS_ENERGY_EMISSION {
143
- // TABLE = 'table',
144
- // DIAGRAM = 'diagram',
145
- // }
146
-
147
- export const PLANT_ENERGY_DIAGRAM_TABS: {
148
- [key in ATO_ECOMPONENT_PLANT_TYPE]: any;
149
- } = {
150
- [ATO_ECOMPONENT_PLANT_TYPE.WATER]: {
151
- keyUnitFromList: 'Water',
152
- keyUnit: 'waterUnit',
153
- keyFlowTopology: 'Water',
154
- keyTab: 'Water',
155
- indexTab: -1,
156
- keyComponent: 'waterComponents',
157
- keyRoute: 'Water',
158
- subSystemId: 'subWaterSystemId',
159
- nameTab: 'Water',
160
- loc: 'locWater',
161
- keyToUpdateModel: 'waterData',
162
- topologyType: 'PlantTopology',
163
- type: 'water',
164
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_WATER_FLOW,
165
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.WATER,
166
- iconClassName: 'fa-regular fa-tank-water font-size-16px',
167
- tagType: TAG_TYPE.WATER,
168
- inflowRecord: E_FLOW_RECORD.INFLOW_WATER_RECORD,
169
- outflowRecord: E_FLOW_RECORD.OUTFLOW_WATER_RECORD,
170
- keyGroupMenu: 'Water',
171
- },
172
- [ATO_ECOMPONENT_PLANT_TYPE.ENERGY]: {
173
- keyUnitFromList: 'Energy',
174
- keyUnit: 'energyUnit',
175
- keyFlowTopology: 'Energy',
176
- keyTab: 'Energy',
177
- indexTab: 4,
178
- keyComponent: '',
179
- keyRoute: 'energy',
180
- nameTab: 'Energy',
181
- loc: 'locEnergy',
182
- keyToUpdateModel: '',
183
- type: 'water',
184
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_ENERGY_FLOW,
185
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.ENERGY,
186
- tagType: TAG_TYPE.ENERGY,
187
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
188
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
189
- },
190
- [ATO_ECOMPONENT_PLANT_TYPE.ELECTRICITY]: {
191
- keyUnitFromList: 'Electricity',
192
- keyUnit: 'electricityUnit',
193
- keyFlowTopology: 'Electricity',
194
- keyTab: 'Electricals',
195
- indexTab: 0,
196
- keyComponent: 'electricComponents',
197
- keyRoute: 'electricity',
198
- subSystemId: 'subElectricSystemId',
199
- nameTab: 'Electricity',
200
- loc: 'locElectricity',
201
- keyToUpdateModel: 'electricData',
202
- topologyType: 'Electricity',
203
- type: 'electricity',
204
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_ENERGY_FLOW,
205
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.ELECTRICITY,
206
- iconClassName: 'fa-regular fa-bolt font-size-16px',
207
- tagType: TAG_TYPE.ELECTRICITY,
208
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
209
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
210
- keyGroupMenu: 'Electricity',
211
- },
212
- [ATO_ECOMPONENT_PLANT_TYPE.NATURAL_GAS]: {
213
- keyUnitFromList: 'Gas',
214
- keyUnit: 'naturalGasUnit',
215
- keyFlowTopology: 'NaturalGas',
216
- keyTab: 'NaturalGases',
217
- indexTab: 1,
218
- keyComponent: 'gasComponents',
219
- keyRoute: 'gas',
220
- subSystemId: 'subGasSystemId',
221
- nameTab: 'Natural Gas',
222
- loc: 'locGas',
223
- keyToUpdateModel: 'gasData',
224
- topologyType: 'NaturalGas',
225
- type: 'naturalgas',
226
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_ENERGY_FLOW,
227
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.NATURAL_GAS,
228
- iconClassName: 'fa-regular fa-fire-flame-curved font-size-16px',
229
- tagType: TAG_TYPE.NATURAL_GAS,
230
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
231
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
232
- keyGroupMenu: 'NaturalGases',
233
- },
234
- [ATO_ECOMPONENT_PLANT_TYPE.FUEL]: {
235
- keyUnitFromList: 'Fuel',
236
- keyUnit: 'fuelUnit',
237
- keyFlowTopology: 'Fuel',
238
- keyTab: 'Fuels',
239
- indexTab: 2,
240
- keyComponent: 'fuelComponents',
241
- keyRoute: 'fuel',
242
- subSystemId: 'subFuelSystemId',
243
- nameTab: 'Fuel',
244
- loc: 'locFuel',
245
- keyToUpdateModel: 'fuelData',
246
- topologyType: 'Fuel',
247
- type: 'fuel',
248
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_ENERGY_FLOW,
249
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.FUEL,
250
- iconClassName: 'fa-regular fa-gas-pump font-size-16px',
251
- tagType: TAG_TYPE.FUEL,
252
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
253
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
254
- keyGroupMenu: 'Fuels',
255
- },
256
- [ATO_ECOMPONENT_PLANT_TYPE.STEAM]: {
257
- keyUnitFromList: 'Steam',
258
- keyUnit: 'steamUnit',
259
- keyFlowTopology: 'Steam',
260
- keyTab: 'Steams',
261
- indexTab: 3,
262
- keyComponent: 'steamComponents',
263
- keyRoute: 'steam',
264
- subSystemId: 'subSteamSystemId',
265
- nameTab: 'Steam',
266
- loc: 'locSteam',
267
- keyToUpdateModel: 'steamData',
268
- topologyType: 'Steam',
269
- type: 'steam',
270
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_ENERGY_FLOW,
271
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.STEAM,
272
- iconClassName: 'fa-regular fa-heat font-size-16px',
273
- tagType: TAG_TYPE.STEAM,
274
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
275
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
276
- keyGroupMenu: 'Steams',
277
- },
278
- [ATO_ECOMPONENT_PLANT_TYPE.EMISSION]: {
279
- keyUnitFromList: 'Emissions',
280
- keyUnit: 'Emissions',
281
- keyFlowTopology: 'Emissions',
282
- keyTab: 'Emissions',
283
- indexTab: 5,
284
- keyComponent: 'emissionComponents',
285
- keyRoute: 'emission',
286
- loc: 'locEmission',
287
- keyToUpdateModel: 'emissionData',
288
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.EMISSION,
289
- tagType: TAG_TYPE.EMISSION,
290
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
291
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
292
- },
293
- [ATO_ECOMPONENT_PLANT_TYPE.COST]: {
294
- keyUnitFromList: 'Cost',
295
- keyUnit: 'Cost',
296
- keyFlowTopology: 'Cost',
297
- keyTab: 'Cost',
298
- indexTab: 4,
299
- keyComponent: 'costComponents',
300
- keyRoute: 'cost',
301
- loc: 'locCost',
302
- keyToUpdateModel: 'costData',
303
- type: 'cost',
304
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.COST,
305
- tagType: TAG_TYPE.COST,
306
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
307
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
308
- },
309
- [ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL]: {
310
- keyUnitFromList: 'Water',
311
- keyUnit: 'waterUnit',
312
- keyFlowTopology: 'Water',
313
- keyTab: 'Water',
314
- indexTab: -1,
315
- keyComponent: 'waterComponents_PlantCell',
316
- keyRoute: 'Water',
317
- subSystemId: 'subWaterSystemId',
318
- loc: 'locWater',
319
- keyToUpdateModel: 'waterDataPlantCell',
320
- topologyType: 'PlantTopology',
321
- type: 'water',
322
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_WATER_FLOW,
323
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.WATER,
324
- tagType: TAG_TYPE.WATER,
325
- inflowRecord: E_FLOW_RECORD.INFLOW_WATER_RECORD,
326
- outflowRecord: E_FLOW_RECORD.OUTFLOW_WATER_RECORD,
327
- },
328
- [ATO_ECOMPONENT_PLANT_TYPE.ENERGY_PLANT_CELL]: {
329
- keyUnitFromList: 'Energy',
330
- keyUnit: 'energyUnit',
331
- keyFlowTopology: 'Energy',
332
- keyTab: 'Energy',
333
- indexTab: 3,
334
- keyComponent: '',
335
- keyRoute: 'energy',
336
- loc: 'locEnergy',
337
- keyToUpdateModel: '',
338
- type: 'water',
339
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_WATER_FLOW,
340
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.ENERGY,
341
- tagType: TAG_TYPE.ENERGY,
342
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
343
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
344
- },
345
- [ATO_ECOMPONENT_PLANT_TYPE.ELECTRICITY_PLANT_CELL]: {
346
- keyUnitFromList: 'Electricity',
347
- keyUnit: 'electricityUnit',
348
- keyFlowTopology: 'Electricity',
349
- keyTab: 'Electricals',
350
- indexTab: 0,
351
- keyComponent: 'electricComponents_PlantCell',
352
- keyRoute: 'electricity',
353
- subSystemId: 'subElectricSystemId',
354
- nameTab: 'Electricity',
355
- loc: 'locElectricity',
356
- keyToUpdateModel: 'electricDataPlantCell',
357
- topologyType: 'Electricity',
358
- type: 'electricity',
359
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_ENERGY_FLOW,
360
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.ELECTRICITY,
361
- tagType: TAG_TYPE.ELECTRICITY,
362
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
363
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
364
- },
365
- [ATO_ECOMPONENT_PLANT_TYPE.NATURAL_GAS_PLANT_CELL]: {
366
- keyUnitFromList: 'Gas',
367
- keyUnit: 'naturalGasUnit',
368
- keyFlowTopology: 'NaturalGas',
369
- keyTab: 'NaturalGases',
370
- indexTab: 1,
371
- keyComponent: 'gasComponents_PlantCell',
372
- keyRoute: 'gas',
373
- subSystemId: 'subGasSystemId',
374
- nameTab: 'Natural Gas',
375
- loc: 'locGas',
376
- keyToUpdateModel: 'gasDataPlantCell',
377
- topologyType: 'NaturalGas',
378
- type: 'naturalgas',
379
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_ENERGY_FLOW,
380
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.NATURAL_GAS,
381
- tagType: TAG_TYPE.NATURAL_GAS,
382
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
383
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
384
- },
385
- [ATO_ECOMPONENT_PLANT_TYPE.FUEL_PLANT_CELL]: {
386
- keyUnitFromList: 'Fuel',
387
- keyUnit: 'fuelUnit',
388
- keyFlowTopology: 'Fuel',
389
- keyTab: 'Fuels',
390
- indexTab: 2,
391
- keyComponent: 'fuelComponents_PlantCell',
392
- keyRoute: 'fuel',
393
- subSystemId: 'subFuelSystemId',
394
- nameTab: 'Fuel',
395
- loc: 'locFuel',
396
- keyToUpdateModel: 'fuelDataPlantCell',
397
- topologyType: 'Fuel',
398
- type: 'fuel',
399
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_ENERGY_FLOW,
400
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.FUEL,
401
- tagType: TAG_TYPE.FUEL,
402
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
403
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
404
- },
405
-
406
- [ATO_ECOMPONENT_PLANT_TYPE.STEAM_PLANT_CELL]: {
407
- keyUnitFromList: 'Steam',
408
- keyUnit: 'steamUnit',
409
- keyFlowTopology: 'Steam',
410
- keyTab: 'Steams',
411
- indexTab: 2,
412
- keyComponent: 'steamComponents_PlantCell',
413
- keyRoute: 'steam',
414
- subSystemId: 'subSteamSystemId',
415
- nameTab: 'Steam',
416
- loc: 'locSteam',
417
- keyToUpdateModel: 'steamDataPlantCell',
418
- topologyType: 'Steam',
419
- type: 'steam',
420
- componentFlow: E_COMPONENT_DATA_TYPE.COMPONENT_ENERGY_FLOW,
421
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.STEAM,
422
- tagType: TAG_TYPE.STEAM,
423
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
424
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
425
- },
426
-
427
- [ATO_ECOMPONENT_PLANT_TYPE.EMISSION_PLANT_CELL]: {
428
- keyUnitFromList: 'Emissions',
429
- keyUnit: 'Emissions',
430
- keyFlowTopology: 'Emissions',
431
- keyTab: 'Emissions',
432
- indexTab: 5,
433
- keyComponent: '',
434
- keyRoute: 'emission',
435
- loc: 'locEmission',
436
- keyToUpdateModel: '',
437
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.EMISSION,
438
- tagType: TAG_TYPE.EMISSION,
439
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
440
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
441
- },
442
- [ATO_ECOMPONENT_PLANT_TYPE.COST_PLANT_CELL]: {
443
- keyUnitFromList: 'Cost',
444
- keyUnit: 'Cost',
445
- keyFlowTopology: 'Cost',
446
- keyTab: 'Cost',
447
- indexTab: 4,
448
- keyComponent: 'costComponents_PlantCell',
449
- keyRoute: 'cost',
450
- loc: 'locCost',
451
- keyToUpdateModel: 'costDataPlantCell',
452
- type: 'cost',
453
- topologyViewType: ATO_ECOMPONENT_PLANT_TYPE.COST,
454
- tagType: TAG_TYPE.COST,
455
- inflowRecord: E_FLOW_RECORD.INFLOW_ENERGY_RECORD,
456
- outflowRecord: E_FLOW_RECORD.OUTFLOW_ENERGY_RECORD,
457
- },
458
-
459
- // // Add water to plant type
460
- // [ATO_ECOMPONENT_PLANT_TYPE.WATER]: {
461
- // keyUnitFromList: 'Water',
462
- // keyUnit: 'Water',
463
- // keyFlowTopology: 'Water',
464
- // keyTab: 'Water',
465
- // indexTab: 5,
466
- // keyComponent: 'waterComponents',
467
- // keyRoute: 'water'
468
- // },
469
- };
470
-
471
- // export enum TARGET_E_TYPE {
472
- // TARGET = 'Target',
473
- // GOAL = 'Goal',
474
- // PROJECT = 'Project',
475
- // MILESTONE = 'Milestone',
476
- // }
477
-
478
- // const COLOR_STATUS = {
479
- // RED: {
480
- // hexColor: '#EC1B24',
481
- // classColor: 'color-alizarin',
482
- // },
483
- // YELLOW: {
484
- // hexColor: '#E09F25',
485
- // classColor: 'color-galliano-2',
486
- // },
487
- // GREEN: {
488
- // hexColor: '#199C69',
489
- // classColor: 'color-elf-green',
490
- // },
491
- // };
492
-
493
- // export const TARGET_STATUS_COLOR = {
494
- // [TARGET_E_TYPE.TARGET]: {
495
- // 0: COLOR_STATUS.YELLOW,
496
- // 1: COLOR_STATUS.YELLOW,
497
- // 2: COLOR_STATUS.YELLOW,
498
- // 3: COLOR_STATUS.GREEN,
499
- // 4: COLOR_STATUS.RED,
500
- // 5: COLOR_STATUS.RED,
501
- // 6: COLOR_STATUS.RED,
502
- // },
503
- // [TARGET_E_TYPE.GOAL]: {
504
- // 0: COLOR_STATUS.YELLOW,
505
- // 1: COLOR_STATUS.YELLOW,
506
- // 2: COLOR_STATUS.YELLOW,
507
- // 3: COLOR_STATUS.YELLOW,
508
- // 4: COLOR_STATUS.YELLOW,
509
- // 5: COLOR_STATUS.RED,
510
- // 6: COLOR_STATUS.RED,
511
- // 7: COLOR_STATUS.GREEN,
512
- // 10: COLOR_STATUS.RED,
513
- // },
514
-
515
- // [TARGET_E_TYPE.PROJECT]: {
516
- // 0: COLOR_STATUS.YELLOW,
517
- // 1: COLOR_STATUS.YELLOW,
518
- // 2: COLOR_STATUS.RED,
519
- // 3: COLOR_STATUS.GREEN,
520
- // 4: COLOR_STATUS.RED,
521
- // 5: COLOR_STATUS.RED,
522
- // 6: COLOR_STATUS.RED,
523
- // 10: COLOR_STATUS.RED,
524
- // },
525
- // [TARGET_E_TYPE.MILESTONE]: {
526
- // 0: COLOR_STATUS.YELLOW,
527
- // 1: COLOR_STATUS.YELLOW,
528
- // 2: COLOR_STATUS.YELLOW,
529
- // 3: COLOR_STATUS.RED,
530
- // 4: COLOR_STATUS.GREEN,
531
- // 5: COLOR_STATUS.RED,
532
- // 6: COLOR_STATUS.RED,
533
- // 10: COLOR_STATUS.RED,
534
- // },
535
- // };
536
-
537
- // export enum DATA_TYPES {
538
- // STRING = 'string',
539
- // NUMBER = 'number',
540
- // BOOLEAN = 'boolean',
541
- // DATE = 'Date',
542
- // VALUE_UNIT = 'valueUnit',
543
- // VALUE_CURRENCY = 'valueCost',
544
- // VALUE_CURRENCY_PER_UNIT = 'valueCurrencyPerUnit',
545
- // // VALUE_WATER = 'valueWater',
546
- // // VALUE_ELECTRICITY = 'valueElectricity',
547
- // // VALUE_NATURAL_GAS = 'valueNaturalGas',
548
- // // VALUE_FUEL = 'valueFuel',
549
- // // VALUE_CO2e_EMISSION = 'valueCO2eEmission',
550
- // // VALUE_ENERY = 'valueEnergy',
551
- // SPECIAL = 'special',
552
- // }
553
-
554
- // export enum E_DATE_PICKER_MODE {
555
- // DATE = 'date',
556
- // WEEK = 'week',
557
- // MONTH = 'month',
558
- // YEAR = 'year',
559
- // RAW = 'raw',
560
- // }
561
-
562
- // export const DATE_PICKER_MODE: {
563
- // [key in string]: any;
564
- // } = {
565
- // [E_Frequency.current]: {
566
- // value: E_DATE_PICKER_MODE.DATE,
567
- // format: 'MM/DD/YYYY',
568
- // formatPicker: 'MM/dd/yyyy',
569
- // index: 0,
570
- // valueAnalytics: AnalyticsService.ENUM_DATE_TYPE.DAY,
571
- // },
572
- // [E_Frequency.daily]: {
573
- // value: E_DATE_PICKER_MODE.DATE,
574
- // format: 'MM/DD/YYYY',
575
- // formatPicker: 'MM/dd/yyyy',
576
- // index: 0,
577
- // valueAnalytics: AnalyticsService.ENUM_DATE_TYPE.DAY,
578
- // },
579
- // [E_Frequency.weekly]: {
580
- // value: E_DATE_PICKER_MODE.WEEK,
581
- // index: 1,
582
- // // format: 'MM/DD/YYYY'
583
- // },
584
- // [E_Frequency.monthly]: {
585
- // value: E_DATE_PICKER_MODE.MONTH,
586
- // format: 'MM/YYYY',
587
- // formatPicker: 'MM/yyyy',
588
- // index: 2,
589
- // valueAnalytics: AnalyticsService.ENUM_DATE_TYPE.MONTH,
590
- // },
591
- // [E_Frequency.yearly]: {
592
- // value: E_DATE_PICKER_MODE.YEAR,
593
- // format: 'YYYY',
594
- // formatPicker: 'yyyy',
595
- // index: 3,
596
- // valueAnalytics: AnalyticsService.ENUM_DATE_TYPE.YEAR,
597
- // },
598
- // [E_Frequency.annual]: {
599
- // value: E_DATE_PICKER_MODE.YEAR,
600
- // format: 'YYYY',
601
- // formatPicker: 'yyyy',
602
- // index: 3,
603
- // valueAnalytics: AnalyticsService.ENUM_DATE_TYPE.YEAR,
604
- // },
605
- // [E_Frequency.raw]: {
606
- // value: E_DATE_PICKER_MODE.RAW,
607
- // format: 'MM/DD/YYYY',
608
- // formatPicker: 'MM/dd/yyyy',
609
- // index: 0,
610
- // valueAnalytics: AnalyticsService.ENUM_DATE_TYPE.DAY,
611
- // },
612
- // };
613
-
614
- // export enum E_PRODUCTION_TYPE {
615
- // PRODUCT = 'product',
616
- // PRODUCT_LINE = 'product-line',
617
- // }
618
-
619
- // export enum E_PRODUCTION_MEASUREMENT_TYPE {
620
- // PRODUCT_WATER_IN_SOURCE = 'ProductWaterInSource',
621
- // PRODUCT_WATER_OUT_SOURCE = 'ProductWaterOutSource',
622
- // PRODUCT_ENERGY_IN_SOURCE = 'ProductEnergyInSource',
623
- // PRODUCT_ENERGY_OUT_SOURCE = 'ProductEnergyOutSource',
624
- // }
625
-
626
- // export const E_PRODUCTION_MEASUREMENT_PAYLOAD = {
627
- // [E_PRODUCTION_MEASUREMENT_TYPE.PRODUCT_WATER_IN_SOURCE]: {
628
- // createParentPayload: 'CreateProductWaterInSource',
629
- // updateParentPayload: 'UpdateProductWaterInSource',
630
- // payload: 'ProductWaterInSource',
631
- // keyResponse: 'waterInflows',
632
- // keyForm: 'waterIntakeMeasurement',
633
- // keyComponent: ['waterComponents'],
634
- // textAdd: 'intake measurement',
635
- // componentType: 'Water',
636
- // },
637
- // [E_PRODUCTION_MEASUREMENT_TYPE.PRODUCT_WATER_OUT_SOURCE]: {
638
- // createParentPayload: 'CreateProductWaterOutSource',
639
- // updateParentPayload: 'UpdateProductWaterOutSource',
640
- // payload: 'ProductWaterOutSource',
641
- // keyResponse: 'waterOutflows',
642
- // keyForm: 'waterOutputMeasurement',
643
- // keyComponent: ['waterComponents'],
644
- // textAdd: 'output measurement',
645
- // componentType: 'Water',
646
- // },
647
- // [E_PRODUCTION_MEASUREMENT_TYPE.PRODUCT_ENERGY_IN_SOURCE]: {
648
- // createParentPayload: 'CreateProductEnergyInSource',
649
- // updateParentPayload: 'UpdateProductEnergyInSource',
650
- // payload: 'ProductEnergyInSource',
651
- // keyResponse: 'energyInflows',
652
- // keyForm: 'energyIntakeMeasurement',
653
- // keyComponent: ['electricComponents', 'fuelComponents', 'gasComponents'],
654
- // textAdd: 'intake measurement',
655
- // componentType: 'Energy',
656
- // },
657
- // [E_PRODUCTION_MEASUREMENT_TYPE.PRODUCT_ENERGY_OUT_SOURCE]: {
658
- // createParentPayload: 'CreateProductEnergyOutSource',
659
- // updateParentPayload: 'UpdateProductEnergyOutSource',
660
- // payload: 'ProductEnergyOutSource',
661
- // keyResponse: 'energyOutflows',
662
- // keyForm: 'energyExportMeasurement',
663
- // keyComponent: ['electricComponents', 'fuelComponents', 'gasComponents'],
664
- // textAdd: 'export measurement',
665
- // componentType: 'Energy',
666
- // },
667
- // };
668
-
669
- // export enum SORT_DIRECTION {
670
- // ASCEND = 'ascend',
671
- // DESCEND = 'descend',
672
- // }
673
-
674
- // export enum ROUTE_COMPONENT_TYPE {
675
- // COMPONENT = 'component',
676
- // PLANT_CELL = 'plant-cell',
677
- // }
678
-
679
- // export enum PLACEHOLDER_INPUT {
680
- // FIELD_FILE = 'Enter the file URL',
681
- // }
682
-
683
- // export enum TYPE_SIZE_CONTROL {
684
- // NORMAL = 'normal',
685
- // SMALL = 'small',
686
- // }
687
-
688
- // export enum RATE_WATER_QUALITY_INDEX_INFO {
689
- // EXCELLENT = 'excellent',
690
- // GOOD = 'good',
691
- // AVERAGE = 'average',
692
- // FAIR = 'fair',
693
- // POOR = 'poor',
694
- // }
695
-
696
- // // export const COLOR_WATER_QUALITY_INDEX_INFO = {
697
- // // [RATE_WATER_QUALITY_INDEX_INFO.EXCELLENT]: {
698
- // // color: ENUM_RISK_COLOR.GREEN,
699
- // // colorClass: 'color-elf-green',
700
- // // },
701
- // // [RATE_WATER_QUALITY_INDEX_INFO.GOOD]: {
702
- // // color: ENUM_RISK_COLOR.LIGHT_GREEN,
703
- // // colorClass: 'color-yellow-green',
704
- // // },
705
- // // [RATE_WATER_QUALITY_INDEX_INFO.AVERAGE]: {
706
- // // color: ENUM_RISK_COLOR.YELLOW,
707
- // // colorClass: 'color-grandis',
708
- // // },
709
- // // [RATE_WATER_QUALITY_INDEX_INFO.FAIR]: {
710
- // // color: ENUM_RISK_COLOR.ORANGE,
711
- // // colorClass: 'color-carrot-orange',
712
- // // },
713
- // // [RATE_WATER_QUALITY_INDEX_INFO.POOR]: {
714
- // // color: ENUM_RISK_COLOR.RED,
715
- // // colorClass: 'color-sunset-orange',
716
- // // },
717
- // // };
718
-
719
- // // export const RANGE_COLOR_WATER_QUALITY_INDEX = [
720
- // // {
721
- // // from: 0,
722
- // // to: 25,
723
- // // colorInfo: COLOR_WATER_QUALITY_INDEX_INFO[RATE_WATER_QUALITY_INDEX_INFO.POOR],
724
- // // },
725
- // // {
726
- // // from: 25,
727
- // // to: 50,
728
- // // colorInfo: COLOR_WATER_QUALITY_INDEX_INFO[RATE_WATER_QUALITY_INDEX_INFO.FAIR],
729
- // // },
730
- // // {
731
- // // from: 50,
732
- // // to: 70,
733
- // // colorInfo: COLOR_WATER_QUALITY_INDEX_INFO[RATE_WATER_QUALITY_INDEX_INFO.AVERAGE],
734
- // // },
735
- // // {
736
- // // from: 70,
737
- // // to: 90,
738
- // // colorInfo: COLOR_WATER_QUALITY_INDEX_INFO[RATE_WATER_QUALITY_INDEX_INFO.GOOD],
739
- // // },
740
- // // {
741
- // // from: 90,
742
- // // to: 100,
743
- // // colorInfo: COLOR_WATER_QUALITY_INDEX_INFO[RATE_WATER_QUALITY_INDEX_INFO.EXCELLENT],
744
- // // },
745
- // // ];
746
-
747
- // export enum ENUM_INSIGHT_TABS {
748
- // VOLUME = 'Volume',
749
- // QUALITY = 'Quality',
750
- // ASSET_PARAMETERS = 'Asset Parameters',
751
- // }
752
-
753
- // export enum ENUM_INSIGHT_MAPPING_STEP {
754
- // ASSETS = 'assets',
755
- // TAGS = 'tags',
756
- // CONFIGURATION = 'configuration',
757
- // }
758
-
759
- // export enum STEAM_OPTION_KEY {
760
- // MASS_FLOW = 'massflow',
761
- // MASS_FLOW_RATE = 'massflowrate',
762
- // PRESSURE = 'pressure',
763
- // TEMPERATURE = 'temperature',
764
- // ENERGY = 'energy',
765
- // }
766
-
767
- // export const STEAM_OPTIONS_FILTER = {
768
- // [STEAM_OPTION_KEY.MASS_FLOW]: {
769
- // name: 'Mass Flow',
770
- // key: STEAM_OPTION_KEY.MASS_FLOW,
771
- // icon: '',
772
- // urlIcon: 'assets/images/icons/steam/Mass flow.svg',
773
- // isDisabled: false,
774
- // keyUnit: 'SteamMassFlow',
775
- // keyUnitSetting: 'steamMassFlow',
776
- // listUnits: [ABBREVIATION.g, ABBREVIATION.lbs],
777
- // },
778
-
779
- // [STEAM_OPTION_KEY.MASS_FLOW_RATE]: {
780
- // name: 'Mass Flow Rate',
781
- // key: STEAM_OPTION_KEY.MASS_FLOW_RATE,
782
- // icon: '',
783
- // urlIcon: 'assets/images/icons/steam/Mass flow rate.svg',
784
- // isDisabled: false,
785
- // keyUnit: 'MassFlowRate',
786
- // keyUnitSetting: 'steamFlowRate',
787
- // listUnits: [ABBREVIATION.g_hr, ABBREVIATION.lbs_hr],
788
- // },
789
- // [STEAM_OPTION_KEY.PRESSURE]: {
790
- // name: 'Pressure',
791
- // key: STEAM_OPTION_KEY.PRESSURE,
792
- // icon: 'fal fa-gauge-high',
793
- // isDisabled: false,
794
- // keyUnit: 'SteamPressure',
795
- // keyUnitSetting: 'steamPressure',
796
- // listUnits: [ABBREVIATION.MPa, ABBREVIATION.psi],
797
- // },
798
- // [STEAM_OPTION_KEY.TEMPERATURE]: {
799
- // name: 'Temperature',
800
- // key: STEAM_OPTION_KEY.TEMPERATURE,
801
- // icon: 'fal fa-temperature-high',
802
- // isDisabled: false,
803
- // keyUnit: 'SteamTemperature',
804
- // keyUnitSetting: 'steamTemperature',
805
- // listUnits: [ABBREVIATION.degC, ABBREVIATION.degF],
806
- // },
807
- // [STEAM_OPTION_KEY.ENERGY]: {
808
- // name: '​Energy',
809
- // key: STEAM_OPTION_KEY.ENERGY,
810
- // icon: 'fa-regular fa-transformer-bolt',
811
- // keyUnit: 'Energy',
812
- // keyUnitSetting: 'energyUnit',
813
- // isDisabled: false,
814
- // listUnits: [ABBREVIATION.BTU, ABBREVIATION.J],
815
- // },
816
- // };
817
-
818
- export enum ATO_ENUM_FLOW_DIRECTION {
819
- INFLOW = 'Inflow',
820
- OUTFLOW = 'Outflow',
821
- NONE = '',
822
- }