ato-water-lib 0.0.36 → 0.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) 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 +127 -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 +16 -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 +8363 -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/lib/models/gojs-data.model.d.ts +9 -0
  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} +1 -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-data.model.ts +0 -7
  79. package/src/lib/models/gojs-editor.model.ts +0 -1901
  80. package/src/lib/services/utils/utils.service.ts +0 -141
  81. package/tsconfig.lib.json +0 -14
  82. package/tsconfig.lib.prod.json +0 -10
  83. package/tsconfig.spec.json +0 -14
@@ -0,0 +1,436 @@
1
+ import { ATO_ECOMPONENT_PLANT_TYPE } from '../constants/value.const';
2
+ export declare class AtoGojsEditorModel {
3
+ initialOptions: any;
4
+ data: any;
5
+ constructor(data: any);
6
+ }
7
+ export declare namespace AtoGojsEditorModel {
8
+ const GRID_SIZE = 20;
9
+ const BASIC_GRID_INTERVAL_X = 24;
10
+ const BASIC_GRID_INTERVAL_Y = 10;
11
+ const BASIC_GRID_SIZE_WIDTH: number;
12
+ const BASIC_GRID_SIZE_HEIGHT: number;
13
+ const DISTANCE_LAST_TO_ADD = 50;
14
+ const PLANT_CELL_HEIGHT = 160;
15
+ enum ENUM_LAYOUT_EDITOR {
16
+ AUTO = "AUTO ALIGN",
17
+ GRID = "GRID SUPPORTED",
18
+ FREEFORM = "FREE FORM"
19
+ }
20
+ const LAYOUT_LIST: {
21
+ name: string;
22
+ key: ENUM_LAYOUT_EDITOR;
23
+ }[];
24
+ enum ENUM_COLORS {
25
+ RED = "#EC7C4E",
26
+ ORANGE = "#EBB868",
27
+ BLUE = "#81B8FF",
28
+ LIGHT_BLUE = "#F4F6FB",
29
+ LIGHT_SKY_BLUE = "#cfe7fd",
30
+ WHITE = "#FFFFFF",
31
+ GRAY = "#919CA5",
32
+ CERULEAN = "#0062A9",
33
+ VIVID_VIOLET = "#804180",
34
+ RESOLUTION_BLUE = "#2D3B77",
35
+ CASHMERE = "#D6AB95",
36
+ GALLIANO = "#E09F25",
37
+ FOUNTAIN_BLUE = "#54BBBA",
38
+ ELF_GREEN = "#199C69",
39
+ MEDIUM_RED_VIOLET = "#A8438D",
40
+ GRANDIS = "#FBC96C",
41
+ SALMON = "#F47769",
42
+ NIGHT_RIDER = "#2C2C2C",
43
+ ALIZARIN = "#EC1B24",
44
+ LINK_WATER = "#CAD3DB",
45
+ ZIRCON = "#E5EBEB",
46
+ CERULEAN_ALICE_BLUE = "#E6F0F7",
47
+ DANUBE = "#7197CA",
48
+ DANUBE_ALICE_BLUE = "#F1F5FA",
49
+ AZURE = "#EEF8F8",
50
+ OLD_LACE = "#FCF6EA",
51
+ CARROT_ORANGE = "#F69122",
52
+ FLAMINGO = "#E95F47",
53
+ SNOW = "#FEF7F6"
54
+ }
55
+ enum ENUM_LINK_TYPES {
56
+ SIMPLE = "simple",
57
+ PIPE_ANIMATION = "pipe animation",
58
+ PIPE = "pipe",
59
+ PIPE_HIDDEN = "pipe hidden"
60
+ }
61
+ enum ENUM_TEMPLATES {
62
+ STORAGE = "Storage",
63
+ COOLING_TOWER = "Cooling Tower",
64
+ WATER_TREATMENT = "Water Treatment",
65
+ DEMIN_WATER_TREATMENT = "Demin Water Treatment",
66
+ RO_WATER_TREATMENT = "RO Water Treatment",
67
+ DOMESTIC_USE = "Domestic Use",
68
+ PROCESS = "Process",
69
+ BOILER = "Boiler",
70
+ WASTEWATER_TREATMENT = "Wastewater Treatment",
71
+ DAF_WASTEWATER_TREATMENT = "DAF Wastewater Treatment",
72
+ ETP_WASTEWATER_TREATMENT = "ETP Wastewater Treatment",
73
+ MBR_WASTEWATER_TREATMENT = "MBR Wastewater Treatment",
74
+ ZLD_WASTEWATER_TREATMENT = "ZLD Wastewater Treatment",
75
+ OTHER = "Other",
76
+ LANDSCAPING_IRRIGATION = "Landscaping/Irrigation",
77
+ TEXT_NODE = "TextNode",
78
+ VALUE_NODE = "ValueNode",
79
+ DATA_BOX = "DataBox",
80
+ VALUE_LABEL = "ValueLabel",
81
+ EMPTY = "Empty",
82
+ SPECIAL_PROCESS = "SPECIAL_PROCESS",
83
+ SPECIAL_STORE = "SPECIAL_STORE",
84
+ SPECIAL_STORAGE = "STORAGE",
85
+ SPECIAL_DISCHARGE = "SPECIAL_DISCHARGE",
86
+ SPECIAL_OTHER = "SPECIAL_OTHER",
87
+ FRESH_SURFACE_WATER = "Fresh surface water",
88
+ THIRD_PARTY_SOURCES = "Third party sources",
89
+ THIRD_PARTY_DESTINATIONS = "Third party destinations",
90
+ GROUND_WATER_NON_RENEWABLE = "Groundwater - non-renewable",
91
+ PRODUCED_ENTRAINED = "Produced / entrained water",
92
+ BRACKISH_SURFACE_WATER = "Brackish surface water/ seawater",
93
+ UTILITY = "UTILITY",
94
+ GROUND_WATER_RENEWABLE = "Groundwater - Renewable",
95
+ ZONE = "EnergyZones",
96
+ ZONE_ENERGY_ITEM = "SubSystem",
97
+ GRID = "Grid",
98
+ DIESEL_GENERATORS = "Diesel Generators",
99
+ ELECTRIC_METERS = "Electric Meters",
100
+ BATTERY_ENERGY_STORAGE = "Battery energy storage",
101
+ TRANSFORMERS = "Transformers",
102
+ LIGHTING_SYSTEMS = "Lighting systems",
103
+ LIGHTINGS = "Lightings",
104
+ ELECTRIC_FLYWHEEL_ENERGY_STORAGE = "Flywheel energy storage",
105
+ PUMPED_HYDRO_STORAGE = "Pumped hydro storage",
106
+ THERMAL_ENERGY_STORAGE = "Thermal energy storage",
107
+ SUPER_CAPACITOR_ENERGY_STORAGE = "Supercapacitor energy storage",
108
+ SWITCH_GEARS = "Switchgears",
109
+ MOTOR_CONTROLS = "MotorControls",
110
+ VARIABLE_FREQUENCY_DRIVERS = "VariableFrequencyDrives",
111
+ ELECTRIC_HVAC = "Heating, ventilation, and air conditioning (HVAC) systems",
112
+ COMPRESSED_AIR_SYSTEMS = "Compressed air",
113
+ REFRIGERATION_COOLING_SYSTEMS = "Refrigeration and cooling",
114
+ PROCESS_CONTROL_AUTOMATION_SYSTEMS = "Process control and automation",
115
+ OFFICE_EQUIPMENT = "Office equipment",
116
+ PROCESS_EQUIPMENT_MACHINES = "Process equipment and machines",
117
+ MATERIAL_HANDLING_EQUIPMENT = "Material handling equipment",
118
+ POWER_DISTRIBUTION_CONTROL_SYSTEMS = "Power distribution and control",
119
+ POWER_DISTRIBUTION_SYSTEMS = "Power distribution systems",
120
+ WIND_POWER = "Wind Power",
121
+ NATURAL_GAS_GENERATORS = "Natural gas generators",
122
+ ELECTRIC_INDUSTRIAL_MOTORS = "Industrial motors",
123
+ GROUNDING = "Grounding",
124
+ FUELS = "Fuels",
125
+ DIESEL_FUELS = "DieselFuels",
126
+ GASON_LINES = "Gasonlines",
127
+ BIODIESELS = "Biodiesels",
128
+ KEROSENSE = "Kerosenes",
129
+ PROPANES = "Propanes",
130
+ TANKER_TRUCKS = "Tanker Trucks",
131
+ PIPELINE = "Pipeline",
132
+ INDUSTRIAL_BOILERS = "Industrial boilers",
133
+ GENERATORS = "Generators",
134
+ INDUSTRIAL_FURNACES = "Industrial furnaces",
135
+ INDUSTRIAL_OVENS = "Industrial ovens",
136
+ INDUSTRIAL_VEHICLES_AND_EQUIPMENT = "Industrial vehicles and equipment",
137
+ FUEL_METERS = "FuelMeters",
138
+ FUEL_DISPENSERS = "FuelDispensers",
139
+ FUEL_STRORAGE_TANKS = "FuelStorageTanks",
140
+ FUEL_FILTRATIONS = "FuelFiltrations",
141
+ FUEL_MANAGEMENTS = "FuelManagements",
142
+ NATURAL_GAS_PIPELINES = "Natural gas pipelines",
143
+ LIQUEFIED_NATURAL_GAS = "Liquefied natural gas",
144
+ COMPRESSED_NATURAL_GAS_PIPELINE = "Compressed natural gas pipeline",
145
+ ON_SITE_PRODUCTION = "On-site production",
146
+ COMPRESSED_NATURAL_GAS_PRODUCTION = "Compressed natural gas production",
147
+ BOILERS_AND_HEATERS = "Boilers and heaters",
148
+ FURNACES = "Furnaces",
149
+ POWER_GENERATION = "Power generation",
150
+ COGENERATION = "Cogeneration",
151
+ COMBINED_CYCLE_POWER_PLANTS = "Combined cycle power plants",
152
+ FUEL_FOR_VEHICLES_AND_EQUIPMENT = "Fuel for vehicles and equipment",
153
+ GAS_METERS = "Gas meters",
154
+ BURNERS = "Burners",
155
+ FLUE_GAS_ANALYZERS = "Flue gas analyzers",
156
+ COMBUSTION_CONTROL_SYSTEMS = "Combustion control systems",
157
+ GAS_STORAGE_TANKS = "Gas storage tanks",
158
+ GAS_PRESSURE_REGULATORS = "Gas pressure regulators",
159
+ NATURAL_GAS = "Natural Gas",
160
+ SOLAR_POWER = "Solar Power",
161
+ POWER_CONDITIONING_UNIT = "Power conditioning unit (PCU)",
162
+ INVERTERS = "Inverters",
163
+ BATTERIES = "Batteries",
164
+ UNCATEGORIZED = "Uncategorized",
165
+ PLANT_CELL = "Plant Cell",
166
+ INPUT_PLANT_CELL = "Input Plant Cell",
167
+ OUTPUT_PLANT_CELL = "Output Plant Cell",
168
+ PLANT_CELL_INPUT_GROUP = "PC Input Group",
169
+ PLANT_CELL_OUTPUT_GROUP = "PC Output Group",
170
+ IMAGE_TEMPLATE = "Image Template",
171
+ PARAM_TABLE = "Param Table",
172
+ MASS_BALANCE = "Mass Balance",
173
+ VALUES = "Valves",
174
+ STEAM_TRAPS = "Steam Traps",
175
+ PRESSURE_REGULATORS = "Pressure Regulator",
176
+ SAFETY_VALUES_AND_EQUIPMENT = "Safety Valves and Equipment",
177
+ CONDENSATE_RETURN_SYSTEM = "Condensate Return System",
178
+ DEAERATORS = "Deaerators",
179
+ FEEDWATER_PUMPS = "Feedwater Pumps",
180
+ BLOWDOWN_TANKS = "Blowdown Tanks",
181
+ EXPANSION_TANKS = "Expansion Tanks",
182
+ HEAT_EXCHANGERS = "Heat Exchangers",
183
+ TURBINES = "Turbines",
184
+ GROUP_BASIC_COMPONENT = "Group Basic Component",
185
+ TEXT_LABEL = "label"
186
+ }
187
+ enum ENUM_TYPES {
188
+ STORAGE = "WaterStorageTanks",
189
+ WATER_TREATMENT = "WaterTreatmentProcesses",
190
+ DEMIN_WATER_TREATMENT = "DeminWaterTreatments",
191
+ RO_WATER_TREATMENT = "ROWaterTreatments",
192
+ PROCESS = "GenericProcesses",
193
+ SPECIAL_STORAGE = "STORAGE",
194
+ WASTEWATER_TREATMENT = "WasteWaterTreatmentProcesses",
195
+ DAF_WASTEWATER_TREATMENT = "DAFWasteWaterTreatments",
196
+ ETP_WASTEWATER_TREATMENT = "ETPWasteWaterTreatments",
197
+ MBR_WASTEWATER_TREATMENT = "MBRWasteWaterTreatments",
198
+ ZLD_WASTEWATER_TREATMENT = "ZLDWasteWaterTreatments",
199
+ DOMESTIC_USE = "DomesticUse",
200
+ COOLING_TOWER = "CoolingTowers",
201
+ BOILER = "Boilers",
202
+ OTHER = "OtherWaterUse",
203
+ LANDSCAPING_IRRIGATION = "IrrigationUse",
204
+ FRESH_SURFACE_WATER = "Fresh surface water",
205
+ THIRD_PARTY_SOURCES = "Third party sources",
206
+ THIRD_PARTY_DESTINATIONS = "Third party destinations",
207
+ GROUND_WATER_NON_RENEWABLE = "Groundwater - non-renewable",
208
+ PRODUCED_ENTRAINED = "Produced / entrained water",
209
+ BRACKISH_SURFACE_WATER = "Brackish surface water/ seawater",
210
+ GROUND_WATER_RENEWABLE = "Groundwater - Renewable",
211
+ TANKER_WATER = "Tanker Water",
212
+ ZONE = "EnergyZones",
213
+ ELECTRIC_SOURCES = "ElectricSources",
214
+ GRID = "Grid Power",
215
+ DIESEL_GENERATORS = "Diesel Generators",
216
+ ELECTRIC_METERS = "ElectricMeters",
217
+ TRANSFORMERS = "Transformers",
218
+ BATTERY_ENERGY_STORAGE = "Battery energy storage",
219
+ ELECTRIC_PRODUCTIONS = "ElectricProductions",
220
+ ELECTRIC_COMSUMINGS = "ElectricConsumings",
221
+ ELECTRIC_STORAGES = "ElectricityStorages",
222
+ ELECTRIC_FLYWHEEL_ENERGY_STORAGE = "Flywheel energy storage",
223
+ PUMPED_HYDRO_STORAGE = "Pumped hydro storage",
224
+ THERMAL_ENERGY_STORAGE = "Thermal energy storage",
225
+ SUPER_CAPACITOR_ENERGY_STORAGE = "Supercapacitor energy storage",
226
+ SWITCH_GEARS = "Switchgears",
227
+ MOTOR_CONTROLS = "MotorControls",
228
+ VARIABLE_FREQUENCY_DRIVERS = "VariableFrequencyDrives",
229
+ LIGHTING_SYSTEMS = "Lighting systems",
230
+ LIGHTINGS = "Lightings",
231
+ ELECTRIC_HVAC = "Heating, ventilation, and air conditioning (HVAC) systems",
232
+ COMPRESSED_AIR_SYSTEMS = "Compressed air",
233
+ REFRIGERATION_COOLING_SYSTEMS = "Refrigeration and cooling",
234
+ PROCESS_CONTROL_AUTOMATION_SYSTEMS = "Process control and automation",
235
+ PROCESS_EQUIPMENT_MACHINES = "Process equipment and machines",
236
+ OFFICE_EQUIPMENT = "Office equipment",
237
+ MATERIAL_HANDLING_EQUIPMENT = "Material handling equipment",
238
+ POWER_DISTRIBUTION_CONTROL_SYSTEMS = "Power distribution and control",
239
+ POWER_DISTRIBUTION_SYSTEMS = "PowerDistributions",
240
+ WIND_POWER = "Wind Power",
241
+ NATURAL_GAS_GENERATORS = "Natural gas generators",
242
+ ELECTRIC_INDUSTRIAL_MOTORS = "Industrial motors",
243
+ GROUNDING = "Groundings",
244
+ Electricals = "Electricals",
245
+ NATURAL_GAS_PIPELINES = "Natural gas pipelines",
246
+ LIQUEFIED_NATURAL_GAS = "Liquefied natural gas (LNG) shipments",
247
+ COMPRESSED_NATURAL_GAS_PIPELINE = "Compressed natural gas pipeline (CNG)",
248
+ ON_SITE_PRODUCTION = "On-site production",
249
+ COMPRESSED_NATURAL_GAS_PRODUCTION = "Compressed natural gas production (CNG)",
250
+ BOILERS_AND_HEATERS = "Boilers and heaters",
251
+ FURNACES = "Furnaces",
252
+ POWER_GENERATION = "Power generation",
253
+ COGENERATION = "Cogeneration",
254
+ COMBINED_CYCLE_POWER_PLANTS = "Combined cycle power plants",
255
+ FUEL_FOR_VEHICLES_AND_EQUIPMENT = "Fuel for vehicles and equipment",
256
+ GAS_METERS = "GasMeters",
257
+ BURNERS = "Burners",
258
+ FLUE_GAS_ANALYZERS = "FlueGasAnalyzers",
259
+ COMBUSTION_CONTROL_SYSTEMS = "ConbustionControls",
260
+ GAS_STORAGE_TANKS = "GasStorageTanks",
261
+ GAS_PRESSURE_REGULATORS = "GasPressureRegulators",
262
+ NATURAL_GAS = "Natural Gas",
263
+ GAS_SOURCE = "GasSources",
264
+ GAS_PRODUCTION = "GasProductions",
265
+ GAS_CONSUMINGS = "GasConsumings",
266
+ NATURAL_GAS_SPECIAL = "NaturalGases",
267
+ FUELS = "Fuels",
268
+ DIESEL_FUELS = "DieselFuels",
269
+ GASON_LINES = "Gasonlines",
270
+ BIODIESELS = "Biodiesels",
271
+ KEROSENSE = "Kerosenes",
272
+ PROPANES = "Propanes",
273
+ FUEL_SOURCES = "FuelSources",
274
+ TANKER_TRUCKS = "Tanker Trucks",
275
+ PIPELINE = "Pipeline",
276
+ FUEL_CONSUMINGS = "FuelConsumings",
277
+ INDUSTRIAL_BOILERS = "Industrial boilers",
278
+ GENERATORS = "Generators",
279
+ INDUSTRIAL_FURNACES = "Industrial furnaces",
280
+ INDUSTRIAL_OVENS = "Industrial ovens",
281
+ INDUSTRIAL_VEHICLES_AND_EQUIPMENT = "Industrial vehicles and equipment",
282
+ FUEL_METERS = "FuelMeters",
283
+ FUEL_DISPENSERS = "FuelDispensers",
284
+ FUEL_STRORAGE_TANKS = "FuelStorageTanks",
285
+ FUEL_FILTRATIONS = "FuelFiltrations",
286
+ FUEL_MANAGEMENTS = "FuelManagements",
287
+ SOLAR_POWER = "Solar Power",
288
+ POWER_CONDITIONING_UNIT = "Power conditioning unit (PCU)",
289
+ INVERTERS = "Inverters",
290
+ BATTERIES = "Batteries",
291
+ PLANT_CELL = "PlantCells",
292
+ PLANT_CELL_INPUT_GROUP = "PC Input Group",
293
+ PLANT_CELL_OUTPUT_GROUP = "PC Output Group",
294
+ VALUES = "Valves",
295
+ STEAM_TRAPS = "Steam Traps",
296
+ PRESSURE_REGULATORS = "Pressure Regulator",
297
+ SAFETY_VALUES_AND_EQUIPMENT = "Safety Valves and Equipment",
298
+ CONDENSATE_RETURN_SYSTEM = "Condensate Return System",
299
+ DEAERATORS = "Deaerators",
300
+ FEEDWATER_PUMPS = "Feedwater Pumps",
301
+ BLOWDOWN_TANKS = "Blowdown Tanks",
302
+ EXPANSION_TANKS = "Expansion Tanks",
303
+ HEAT_EXCHANGERS = "SteamConsumings",
304
+ TURBINES = "EnergyConverters",
305
+ STEAM_COMPONENT = "SteamComponents",
306
+ STEAM_CONSUMING_SYSTEM = "SteamConsumings",
307
+ ENERGY_CONVERTER = "EnergyConverters"
308
+ }
309
+ enum ENUM_CATEGORY {
310
+ }
311
+ enum DATA_COLLECTION_METHOD {
312
+ MEASURED = "Measured",
313
+ MANUAL = "Manual",
314
+ COMPUTED = "Computed",
315
+ ESTIMATED = "Estimated",
316
+ WATER_CAPACITY = "Water Capacity",
317
+ KEY_MODEL_COMPUTED = "M"
318
+ }
319
+ const COLOR_COLLECTION_METHOD: {
320
+ [key in AtoGojsEditorModel.DATA_COLLECTION_METHOD]: any;
321
+ };
322
+ enum WITH_DRAW_SYSTEM_TYPES {
323
+ WATER_SOURCE = "WaterSource"
324
+ }
325
+ enum DISCHARGE_TYPES_SYSTEM_TYPES {
326
+ GROUND_WATER_RANEWABLE = "GroundWaterRenewable"
327
+ }
328
+ const WaterWithdrawSources = "WaterWithdrawSources";
329
+ const WaterWithdrawSourcesPath = "GetFlowTopology.Plant.WaterWithdrawSources.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams";
330
+ const WaterDischargeDestinations = "WaterDischargeDestinations";
331
+ const WaterDischargeDestinationsPath = "GetFlowTopology.Plant.WaterDischargeDestinations.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams";
332
+ const SOURCES_COMPONENTS: string[];
333
+ const SOURCES_WITHDRAW: string[];
334
+ const SOURCES_DISCHARGE: string[];
335
+ const COMPONENTS_HAVE_SPECIAL_CATEGORY: string[];
336
+ const WITH_DRAW_TYPE_LIST: string[];
337
+ const DISCHARGE_TYPE_LIST: string[];
338
+ const WITH_DRAW_SYSTEM_TYPE_LIST: WITH_DRAW_SYSTEM_TYPES[];
339
+ const DISCHARGE_SYSTEM_TYPE_LIST: DISCHARGE_TYPES_SYSTEM_TYPES[];
340
+ const TYPE_COMPONENT: string[];
341
+ const ICON_ASSET_PATH: string;
342
+ const ICON_ASSET_WITHDRAW_DISCHARGE_ICON: string;
343
+ const IMAGE_RO_WATER_TREATMENT_PATH = "/assets/images/ro-water-treatment/RO_WATER_TREATMENT_BG.png";
344
+ const IMAGE_BOILER_PATH = "assets/images/boiler/cms_boiler.png";
345
+ const IMAGE_COOLING_TOWER_PATH = "assets/images/process-water/cooling-tower-4.png";
346
+ const SPECIAL_ICON_ASSET_PATH: string;
347
+ const ENERGY_ICON_ASSET_PATH = "assets/images/editor/energy";
348
+ const GAS_ICON_ASSET_PATH = "assets/images/editor/gas";
349
+ const FUEL_ICON_ASSET_PATH = "assets/images/editor/fuel";
350
+ const STEAM_ICON_ASSET_PATH = "assets/images/editor/steam";
351
+ const PLANT_CELL_PATH = "assets/images/editor/plant-cell";
352
+ const DATA_BOX = "assets/images/editor/data-box";
353
+ const LINK_TEMPLATES: {
354
+ [key in AtoGojsEditorModel.ENUM_LINK_TYPES]: any;
355
+ };
356
+ interface I_TEMPLATE_ITEM {
357
+ name: AtoGojsEditorModel.ENUM_TEMPLATES;
358
+ icon?: string;
359
+ size?: {
360
+ w: number;
361
+ h: number;
362
+ };
363
+ systemType?: string;
364
+ }
365
+ const ATTRNAME_COMPONENT: any[];
366
+ const NODE_TEMPLATES: {
367
+ [key in AtoGojsEditorModel.ENUM_TEMPLATES]: I_TEMPLATE_ITEM;
368
+ };
369
+ const WITHDRAW_DISCHARGE_ICON: {
370
+ [key in string]: any;
371
+ };
372
+ const WITHDRAW_DISCHARGE_DIAGRAM_HOME: {
373
+ withdrawSourcesChildren: ENUM_TYPES[];
374
+ dischargeDestinationsChildren: ENUM_TYPES[];
375
+ };
376
+ enum ACTION_RIGHT_MENU_GROUP {
377
+ PLANT_TEMPLATES = "Plant Templates",
378
+ PLANT_CELLS = "Plant Cell",
379
+ DATA_BOX = "Measurement",
380
+ SYSTEM_TEMPLATES = "System Templates",
381
+ WATER_COMPONENT = "Water Components"
382
+ }
383
+ enum DATA_BOX_NAME_OF_COMPONENT {
384
+ INFLOW = "Inflow Of",
385
+ OUTFLOW = "Outflow From"
386
+ }
387
+ enum ACTION_RIGHT_MENU {
388
+ APPLY_TEMPLATE = "ApplyTemplate",
389
+ NEW_PLANT_CELL = "NewPlantCell",
390
+ NAME_PLANT_CELL = "NamePlantCell",
391
+ ADD_COMPONENT = "AddComponent"
392
+ }
393
+ const DATA_MENU: {
394
+ name: string;
395
+ componentType: ATO_ECOMPONENT_PLANT_TYPE;
396
+ isFilterType: boolean;
397
+ groupType: ACTION_RIGHT_MENU_GROUP;
398
+ children: {
399
+ name: string;
400
+ children: never[];
401
+ actionType: ACTION_RIGHT_MENU;
402
+ isDrag: boolean;
403
+ }[];
404
+ }[];
405
+ const WATER_USING_SYSTEM: ENUM_TYPES[];
406
+ const PARAM_TABLE_STYLE: {
407
+ "#0062A9": {
408
+ borderTable: ENUM_COLORS;
409
+ bgColor: ENUM_COLORS;
410
+ };
411
+ "#7197CA": {
412
+ borderTable: ENUM_COLORS;
413
+ bgColor: ENUM_COLORS;
414
+ };
415
+ "#54BBBA": {
416
+ borderTable: ENUM_COLORS;
417
+ bgColor: ENUM_COLORS;
418
+ };
419
+ "#E09F25": {
420
+ borderTable: ENUM_COLORS;
421
+ bgColor: ENUM_COLORS;
422
+ };
423
+ "#FFFFFF": {
424
+ borderTable: ENUM_COLORS;
425
+ bgColor: ENUM_COLORS;
426
+ };
427
+ };
428
+ const TYPE_COMPONENT_WATER: string[];
429
+ const TYPE_TEMPLATE_WATER_NORMAL: string[];
430
+ const TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE: string[];
431
+ const TYPE_TEMPLATE_ELECTRICITY: string[];
432
+ const TYPE_TEMPLATE_NATURAL_GAS: string[];
433
+ const TYPE_TEMPLATE_FUEL: string[];
434
+ const TYPE_TEMPLATE_STEAM: string[];
435
+ const TYPE_TEMPLATE_SPECIAL: string[];
436
+ }
@@ -0,0 +1,24 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class UtilsService {
3
+ static convertPrefixesData(data: {
4
+ value: number | string | any;
5
+ unit: string | any;
6
+ isChangeUnitKwh?: boolean;
7
+ }): {
8
+ shortenedNumber: number | string | null;
9
+ unitPrefixes: number | null | string;
10
+ };
11
+ static getDataFormatSpecialKwh(value: any, isChangeUnitKwh: any): {
12
+ shortenedNumber: string | null;
13
+ unitPrefixes: any;
14
+ };
15
+ static getDataFormatUnit(value: any, unit: string): {
16
+ shortenedNumber: string | null;
17
+ unitPrefixes: any;
18
+ };
19
+ static convertSpecialUnit(unit: string, unitPrefixes?: any): string;
20
+ static generateUUID(): string;
21
+ static replaceAll(text: any, find: any, replace: any): string;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ato-water-lib",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0 || ^16.2.0",
6
6
  "@angular/core": "^15.1.0 || ^16.2.0",
@@ -11,5 +11,24 @@
11
11
  "dependencies": {
12
12
  "tslib": "^2.3.0"
13
13
  },
14
- "sideEffects": false
15
- }
14
+ "sideEffects": false,
15
+ "module": "fesm2015/ato-water-lib.mjs",
16
+ "es2020": "fesm2020/ato-water-lib.mjs",
17
+ "esm2020": "esm2020/ato-water-lib.mjs",
18
+ "fesm2020": "fesm2020/ato-water-lib.mjs",
19
+ "fesm2015": "fesm2015/ato-water-lib.mjs",
20
+ "typings": "index.d.ts",
21
+ "exports": {
22
+ "./package.json": {
23
+ "default": "./package.json"
24
+ },
25
+ ".": {
26
+ "types": "./index.d.ts",
27
+ "esm2020": "./esm2020/ato-water-lib.mjs",
28
+ "es2020": "./fesm2020/ato-water-lib.mjs",
29
+ "es2015": "./fesm2015/ato-water-lib.mjs",
30
+ "node": "./fesm2015/ato-water-lib.mjs",
31
+ "default": "./fesm2020/ato-water-lib.mjs"
32
+ }
33
+ }
34
+ }
@@ -1,18 +1,9 @@
1
- /*
2
- * Public API Surface of ato-water-lib
3
- */
4
-
5
1
  export * from './lib/ato-water-lib.service';
6
2
  export * from './lib/ato-water-lib.component';
7
3
  export * from './lib/ato-water-lib.module';
8
- // Component
9
4
  export * from './lib/components/flow-diagram-lib/flow-diagram-lib.component';
10
5
  export * from './lib/components/asset-flow/asset-flow.component';
11
6
  export * from './lib/components/asset-params-view/asset-params-view.component';
12
- // Directive
13
7
  export * from './lib/directive/ato-loading.directive';
14
8
  export * from './lib/directive/ng-var.directive';
15
- // Css
16
-
17
-
18
-
9
+ export * from './lib/constants/components-group-const';
package/ng-package.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/ato-water-lib",
4
- "assets": [
5
- "./assets",
6
- "./scss"
7
- ],
8
- "lib": {
9
- "entryFile": "src/public-api.ts"
10
- }
11
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { AtoWaterLibComponent } from './ato-water-lib.component';
4
-
5
- describe('AtoWaterLibComponent', () => {
6
- let component: AtoWaterLibComponent;
7
- let fixture: ComponentFixture<AtoWaterLibComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ AtoWaterLibComponent ]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(AtoWaterLibComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,15 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'lib-ato-water-lib',
5
- template: `
6
- <p>
7
- ato-water-lib works!
8
- </p>
9
- `,
10
- styles: [
11
- ]
12
- })
13
- export class AtoWaterLibComponent {
14
-
15
- }
@@ -1,31 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { AtoWaterLibComponent } from './ato-water-lib.component';
3
- import { AtoFlowDiagramLibComponent } from './components/flow-diagram-lib/flow-diagram-lib.component';
4
- import { AssetFlowComponent } from './components/asset-flow/asset-flow.component';
5
- import { CommonModule } from '@angular/common';
6
- import { AtoLoadingDirective } from './directive/ato-loading.directive';
7
- import { AtoAssetParamsViewComponent } from './components/asset-params-view/asset-params-view.component';
8
- import { AtoNgVarDirective } from './directive/ng-var.directive';
9
-
10
- @NgModule({
11
- declarations: [
12
- AtoWaterLibComponent,
13
- AtoFlowDiagramLibComponent,
14
- AssetFlowComponent,
15
- AtoLoadingDirective,
16
- AtoAssetParamsViewComponent,
17
- AtoNgVarDirective,
18
- ],
19
- imports: [
20
- CommonModule,
21
- ],
22
- exports: [
23
- AtoWaterLibComponent,
24
- AtoFlowDiagramLibComponent,
25
- AssetFlowComponent,
26
- AtoLoadingDirective,
27
- AtoAssetParamsViewComponent,
28
- AtoNgVarDirective,
29
- ]
30
- })
31
- export class AtoWaterLibModule { }
@@ -1,16 +0,0 @@
1
- import { TestBed } from '@angular/core/testing';
2
-
3
- import { AtoWaterLibService } from './ato-water-lib.service';
4
-
5
- describe('AtoWaterLibService', () => {
6
- let service: AtoWaterLibService;
7
-
8
- beforeEach(() => {
9
- TestBed.configureTestingModule({});
10
- service = TestBed.inject(AtoWaterLibService);
11
- });
12
-
13
- it('should be created', () => {
14
- expect(service).toBeTruthy();
15
- });
16
- });
@@ -1,9 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
-
3
- @Injectable({
4
- providedIn: 'root'
5
- })
6
- export class AtoWaterLibService {
7
-
8
- constructor() { }
9
- }
@@ -1,21 +0,0 @@
1
- <div class="h-100 d-flex flex-column flex-gap-3 flex-grow-1 overflow-auto px-3 pb-3">
2
- <div class="h-100 d-flex flex-column" atoLoading [appLoading]="flowData === null">
3
- <ato-flow-diagram-lib
4
- *ngIf="flowData !== null"
5
- #gjFlowDiagramTemp
6
- [data]="flowData"
7
- [initialOptions]="options"
8
- (onClikParamOfTable)="onClickParamOfTable($event)"
9
- [class]="!!isResponsiveView ? 'diagram-responsive-view' : 'flex-grow-1'"
10
- ></ato-flow-diagram-lib>
11
- <div class="mt-2" *ngIf="isResponsiveView">
12
- <ato-asset-params-view
13
- #assetParamsViewTemp
14
- [data]="dataTableAssetParams"
15
- [isEditView]="true"
16
- (clickParamTableRow)="onClickParamOfTable($event)"
17
- ></ato-asset-params-view>
18
- </div>
19
- </div>
20
- </div>
21
-
@@ -1,4 +0,0 @@
1
- .diagram-responsive-view {
2
- height: 30vh;
3
- min-height: 30vh;
4
- }