ato-water-lib 0.0.7 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/esm2020/lib/ato-water-lib.module.mjs +16 -8
  2. package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +56 -0
  3. package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +71 -0
  4. package/esm2020/lib/constants/applicable-prefixes-const.mjs +441 -0
  5. package/esm2020/lib/constants/components-group-const.mjs +1289 -0
  6. package/esm2020/lib/constants/key.const.mjs +4 -0
  7. package/esm2020/lib/constants/plant.constant.mjs +51 -0
  8. package/esm2020/lib/constants/value.const.mjs +782 -0
  9. package/esm2020/lib/models/default-gojs-editor.model.mjs +3184 -0
  10. package/esm2020/lib/models/gojs-editor.model.mjs +1750 -0
  11. package/esm2020/lib/services/utils/utils.service.mjs +133 -0
  12. package/esm2020/public-api.mjs +3 -2
  13. package/fesm2015/ato-water-lib.mjs +7645 -14
  14. package/fesm2015/ato-water-lib.mjs.map +1 -1
  15. package/fesm2020/ato-water-lib.mjs +7747 -14
  16. package/fesm2020/ato-water-lib.mjs.map +1 -1
  17. package/lib/ato-water-lib.module.d.ts +4 -2
  18. package/lib/components/asset-flow/asset-flow.component.d.ts +21 -0
  19. package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +17 -0
  20. package/lib/constants/applicable-prefixes-const.d.ts +162 -0
  21. package/lib/constants/components-group-const.d.ts +1132 -0
  22. package/lib/constants/key.const.d.ts +1 -0
  23. package/lib/constants/plant.constant.d.ts +7 -0
  24. package/lib/constants/value.const.d.ts +71 -0
  25. package/lib/models/default-gojs-editor.model.d.ts +184 -0
  26. package/lib/models/gojs-editor.model.d.ts +435 -0
  27. package/lib/services/utils/utils.service.d.ts +24 -0
  28. package/package.json +1 -1
  29. package/public-api.d.ts +2 -1
  30. package/esm2020/lib/test-button/test-button.component.mjs +0 -11
  31. package/lib/test-button/test-button.component.d.ts +0 -5
@@ -0,0 +1,435 @@
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
+ }
186
+ enum ENUM_TYPES {
187
+ STORAGE = "WaterStorageTanks",
188
+ WATER_TREATMENT = "WaterTreatmentProcesses",
189
+ DEMIN_WATER_TREATMENT = "DeminWaterTreatments",
190
+ RO_WATER_TREATMENT = "ROWaterTreatments",
191
+ PROCESS = "GenericProcesses",
192
+ SPECIAL_STORAGE = "STORAGE",
193
+ WASTEWATER_TREATMENT = "WasteWaterTreatmentProcesses",
194
+ DAF_WASTEWATER_TREATMENT = "DAFWasteWaterTreatments",
195
+ ETP_WASTEWATER_TREATMENT = "ETPWasteWaterTreatments",
196
+ MBR_WASTEWATER_TREATMENT = "MBRWasteWaterTreatments",
197
+ ZLD_WASTEWATER_TREATMENT = "ZLDWasteWaterTreatments",
198
+ DOMESTIC_USE = "DomesticUse",
199
+ COOLING_TOWER = "CoolingTowers",
200
+ BOILER = "Boilers",
201
+ OTHER = "OtherWaterUse",
202
+ LANDSCAPING_IRRIGATION = "IrrigationUse",
203
+ FRESH_SURFACE_WATER = "Fresh surface water",
204
+ THIRD_PARTY_SOURCES = "Third party sources",
205
+ THIRD_PARTY_DESTINATIONS = "Third party destinations",
206
+ GROUND_WATER_NON_RENEWABLE = "Groundwater - non-renewable",
207
+ PRODUCED_ENTRAINED = "Produced / entrained water",
208
+ BRACKISH_SURFACE_WATER = "Brackish surface water/ seawater",
209
+ GROUND_WATER_RENEWABLE = "Groundwater - Renewable",
210
+ TANKER_WATER = "Tanker Water",
211
+ ZONE = "EnergyZones",
212
+ ELECTRIC_SOURCES = "ElectricSources",
213
+ GRID = "Grid Power",
214
+ DIESEL_GENERATORS = "Diesel Generators",
215
+ ELECTRIC_METERS = "ElectricMeters",
216
+ TRANSFORMERS = "Transformers",
217
+ BATTERY_ENERGY_STORAGE = "Battery energy storage",
218
+ ELECTRIC_PRODUCTIONS = "ElectricProductions",
219
+ ELECTRIC_COMSUMINGS = "ElectricConsumings",
220
+ ELECTRIC_STORAGES = "ElectricityStorages",
221
+ ELECTRIC_FLYWHEEL_ENERGY_STORAGE = "Flywheel energy storage",
222
+ PUMPED_HYDRO_STORAGE = "Pumped hydro storage",
223
+ THERMAL_ENERGY_STORAGE = "Thermal energy storage",
224
+ SUPER_CAPACITOR_ENERGY_STORAGE = "Supercapacitor energy storage",
225
+ SWITCH_GEARS = "Switchgears",
226
+ MOTOR_CONTROLS = "MotorControls",
227
+ VARIABLE_FREQUENCY_DRIVERS = "VariableFrequencyDrives",
228
+ LIGHTING_SYSTEMS = "Lighting systems",
229
+ LIGHTINGS = "Lightings",
230
+ ELECTRIC_HVAC = "Heating, ventilation, and air conditioning (HVAC) systems",
231
+ COMPRESSED_AIR_SYSTEMS = "Compressed air",
232
+ REFRIGERATION_COOLING_SYSTEMS = "Refrigeration and cooling",
233
+ PROCESS_CONTROL_AUTOMATION_SYSTEMS = "Process control and automation",
234
+ PROCESS_EQUIPMENT_MACHINES = "Process equipment and machines",
235
+ OFFICE_EQUIPMENT = "Office equipment",
236
+ MATERIAL_HANDLING_EQUIPMENT = "Material handling equipment",
237
+ POWER_DISTRIBUTION_CONTROL_SYSTEMS = "Power distribution and control",
238
+ POWER_DISTRIBUTION_SYSTEMS = "PowerDistributions",
239
+ WIND_POWER = "Wind Power",
240
+ NATURAL_GAS_GENERATORS = "Natural gas generators",
241
+ ELECTRIC_INDUSTRIAL_MOTORS = "Industrial motors",
242
+ GROUNDING = "Groundings",
243
+ Electricals = "Electricals",
244
+ NATURAL_GAS_PIPELINES = "Natural gas pipelines",
245
+ LIQUEFIED_NATURAL_GAS = "Liquefied natural gas (LNG) shipments",
246
+ COMPRESSED_NATURAL_GAS_PIPELINE = "Compressed natural gas pipeline (CNG)",
247
+ ON_SITE_PRODUCTION = "On-site production",
248
+ COMPRESSED_NATURAL_GAS_PRODUCTION = "Compressed natural gas production (CNG)",
249
+ BOILERS_AND_HEATERS = "Boilers and heaters",
250
+ FURNACES = "Furnaces",
251
+ POWER_GENERATION = "Power generation",
252
+ COGENERATION = "Cogeneration",
253
+ COMBINED_CYCLE_POWER_PLANTS = "Combined cycle power plants",
254
+ FUEL_FOR_VEHICLES_AND_EQUIPMENT = "Fuel for vehicles and equipment",
255
+ GAS_METERS = "GasMeters",
256
+ BURNERS = "Burners",
257
+ FLUE_GAS_ANALYZERS = "FlueGasAnalyzers",
258
+ COMBUSTION_CONTROL_SYSTEMS = "ConbustionControls",
259
+ GAS_STORAGE_TANKS = "GasStorageTanks",
260
+ GAS_PRESSURE_REGULATORS = "GasPressureRegulators",
261
+ NATURAL_GAS = "Natural Gas",
262
+ GAS_SOURCE = "GasSources",
263
+ GAS_PRODUCTION = "GasProductions",
264
+ GAS_CONSUMINGS = "GasConsumings",
265
+ NATURAL_GAS_SPECIAL = "NaturalGases",
266
+ FUELS = "Fuels",
267
+ DIESEL_FUELS = "DieselFuels",
268
+ GASON_LINES = "Gasonlines",
269
+ BIODIESELS = "Biodiesels",
270
+ KEROSENSE = "Kerosenes",
271
+ PROPANES = "Propanes",
272
+ FUEL_SOURCES = "FuelSources",
273
+ TANKER_TRUCKS = "Tanker Trucks",
274
+ PIPELINE = "Pipeline",
275
+ FUEL_CONSUMINGS = "FuelConsumings",
276
+ INDUSTRIAL_BOILERS = "Industrial boilers",
277
+ GENERATORS = "Generators",
278
+ INDUSTRIAL_FURNACES = "Industrial furnaces",
279
+ INDUSTRIAL_OVENS = "Industrial ovens",
280
+ INDUSTRIAL_VEHICLES_AND_EQUIPMENT = "Industrial vehicles and equipment",
281
+ FUEL_METERS = "FuelMeters",
282
+ FUEL_DISPENSERS = "FuelDispensers",
283
+ FUEL_STRORAGE_TANKS = "FuelStorageTanks",
284
+ FUEL_FILTRATIONS = "FuelFiltrations",
285
+ FUEL_MANAGEMENTS = "FuelManagements",
286
+ SOLAR_POWER = "Solar Power",
287
+ POWER_CONDITIONING_UNIT = "Power conditioning unit (PCU)",
288
+ INVERTERS = "Inverters",
289
+ BATTERIES = "Batteries",
290
+ PLANT_CELL = "PlantCells",
291
+ PLANT_CELL_INPUT_GROUP = "PC Input Group",
292
+ PLANT_CELL_OUTPUT_GROUP = "PC Output Group",
293
+ VALUES = "Valves",
294
+ STEAM_TRAPS = "Steam Traps",
295
+ PRESSURE_REGULATORS = "Pressure Regulator",
296
+ SAFETY_VALUES_AND_EQUIPMENT = "Safety Valves and Equipment",
297
+ CONDENSATE_RETURN_SYSTEM = "Condensate Return System",
298
+ DEAERATORS = "Deaerators",
299
+ FEEDWATER_PUMPS = "Feedwater Pumps",
300
+ BLOWDOWN_TANKS = "Blowdown Tanks",
301
+ EXPANSION_TANKS = "Expansion Tanks",
302
+ HEAT_EXCHANGERS = "SteamConsumings",
303
+ TURBINES = "EnergyConverters",
304
+ STEAM_COMPONENT = "SteamComponents",
305
+ STEAM_CONSUMING_SYSTEM = "SteamConsumings",
306
+ ENERGY_CONVERTER = "EnergyConverters"
307
+ }
308
+ enum ENUM_CATEGORY {
309
+ }
310
+ enum DATA_COLLECTION_METHOD {
311
+ MEASURED = "Measured",
312
+ MANUAL = "Manual",
313
+ COMPUTED = "Computed",
314
+ ESTIMATED = "Estimated",
315
+ WATER_CAPACITY = "Water Capacity",
316
+ KEY_MODEL_COMPUTED = "M"
317
+ }
318
+ const COLOR_COLLECTION_METHOD: {
319
+ [key in AtoGojsEditorModel.DATA_COLLECTION_METHOD]: any;
320
+ };
321
+ enum WITH_DRAW_SYSTEM_TYPES {
322
+ WATER_SOURCE = "WaterSource"
323
+ }
324
+ enum DISCHARGE_TYPES_SYSTEM_TYPES {
325
+ GROUND_WATER_RANEWABLE = "GroundWaterRenewable"
326
+ }
327
+ const WaterWithdrawSources = "WaterWithdrawSources";
328
+ const WaterWithdrawSourcesPath = "GetFlowTopology.Plant.WaterWithdrawSources.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams";
329
+ const WaterDischargeDestinations = "WaterDischargeDestinations";
330
+ const WaterDischargeDestinationsPath = "GetFlowTopology.Plant.WaterDischargeDestinations.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams";
331
+ const SOURCES_COMPONENTS: string[];
332
+ const SOURCES_WITHDRAW: string[];
333
+ const SOURCES_DISCHARGE: string[];
334
+ const COMPONENTS_HAVE_SPECIAL_CATEGORY: string[];
335
+ const WITH_DRAW_TYPE_LIST: string[];
336
+ const DISCHARGE_TYPE_LIST: string[];
337
+ const WITH_DRAW_SYSTEM_TYPE_LIST: WITH_DRAW_SYSTEM_TYPES[];
338
+ const DISCHARGE_SYSTEM_TYPE_LIST: DISCHARGE_TYPES_SYSTEM_TYPES[];
339
+ const TYPE_COMPONENT: string[];
340
+ const ICON_ASSET_PATH: string;
341
+ const ICON_ASSET_WITHDRAW_DISCHARGE_ICON: string;
342
+ const IMAGE_RO_WATER_TREATMENT_PATH = "/assets/images/ro-water-treatment/RO_WATER_TREATMENT_BG.png";
343
+ const IMAGE_BOILER_PATH = "assets/images/boiler/cms_boiler.png";
344
+ const IMAGE_COOLING_TOWER_PATH = "assets/images/process-water/cooling_tower.png";
345
+ const SPECIAL_ICON_ASSET_PATH: string;
346
+ const ENERGY_ICON_ASSET_PATH = "assets/images/editor/energy";
347
+ const GAS_ICON_ASSET_PATH = "assets/images/editor/gas";
348
+ const FUEL_ICON_ASSET_PATH = "assets/images/editor/fuel";
349
+ const STEAM_ICON_ASSET_PATH = "assets/images/editor/steam";
350
+ const PLANT_CELL_PATH = "assets/images/editor/plant-cell";
351
+ const DATA_BOX = "assets/images/editor/data-box";
352
+ const LINK_TEMPLATES: {
353
+ [key in AtoGojsEditorModel.ENUM_LINK_TYPES]: any;
354
+ };
355
+ interface I_TEMPLATE_ITEM {
356
+ name: AtoGojsEditorModel.ENUM_TEMPLATES;
357
+ icon?: string;
358
+ size?: {
359
+ w: number;
360
+ h: number;
361
+ };
362
+ systemType?: string;
363
+ }
364
+ const ATTRNAME_COMPONENT: any[];
365
+ const NODE_TEMPLATES: {
366
+ [key in AtoGojsEditorModel.ENUM_TEMPLATES]: I_TEMPLATE_ITEM;
367
+ };
368
+ const WITHDRAW_DISCHARGE_ICON: {
369
+ [key in string]: any;
370
+ };
371
+ const WITHDRAW_DISCHARGE_DIAGRAM_HOME: {
372
+ withdrawSourcesChildren: ENUM_TYPES[];
373
+ dischargeDestinationsChildren: ENUM_TYPES[];
374
+ };
375
+ enum ACTION_RIGHT_MENU_GROUP {
376
+ PLANT_TEMPLATES = "Plant Templates",
377
+ PLANT_CELLS = "Plant Cell",
378
+ DATA_BOX = "Measurement",
379
+ SYSTEM_TEMPLATES = "System Templates",
380
+ WATER_COMPONENT = "Water Components"
381
+ }
382
+ enum DATA_BOX_NAME_OF_COMPONENT {
383
+ INFLOW = "Inflow Of",
384
+ OUTFLOW = "Outflow From"
385
+ }
386
+ enum ACTION_RIGHT_MENU {
387
+ APPLY_TEMPLATE = "ApplyTemplate",
388
+ NEW_PLANT_CELL = "NewPlantCell",
389
+ NAME_PLANT_CELL = "NamePlantCell",
390
+ ADD_COMPONENT = "AddComponent"
391
+ }
392
+ const DATA_MENU: {
393
+ name: string;
394
+ componentType: ATO_ECOMPONENT_PLANT_TYPE;
395
+ isFilterType: boolean;
396
+ groupType: ACTION_RIGHT_MENU_GROUP;
397
+ children: {
398
+ name: string;
399
+ children: never[];
400
+ actionType: ACTION_RIGHT_MENU;
401
+ isDrag: boolean;
402
+ }[];
403
+ }[];
404
+ const WATER_USING_SYSTEM: ENUM_TYPES[];
405
+ const PARAM_TABLE_STYLE: {
406
+ "#0062A9": {
407
+ borderTable: ENUM_COLORS;
408
+ bgColor: ENUM_COLORS;
409
+ };
410
+ "#7197CA": {
411
+ borderTable: ENUM_COLORS;
412
+ bgColor: ENUM_COLORS;
413
+ };
414
+ "#54BBBA": {
415
+ borderTable: ENUM_COLORS;
416
+ bgColor: ENUM_COLORS;
417
+ };
418
+ "#E09F25": {
419
+ borderTable: ENUM_COLORS;
420
+ bgColor: ENUM_COLORS;
421
+ };
422
+ "#FFFFFF": {
423
+ borderTable: ENUM_COLORS;
424
+ bgColor: ENUM_COLORS;
425
+ };
426
+ };
427
+ const TYPE_COMPONENT_WATER: string[];
428
+ const TYPE_TEMPLATE_WATER_NORMAL: string[];
429
+ const TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE: string[];
430
+ const TYPE_TEMPLATE_ELECTRICITY: string[];
431
+ const TYPE_TEMPLATE_NATURAL_GAS: string[];
432
+ const TYPE_TEMPLATE_FUEL: string[];
433
+ const TYPE_TEMPLATE_STEAM: string[];
434
+ const TYPE_TEMPLATE_SPECIAL: string[];
435
+ }
@@ -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.7",
3
+ "version": "0.0.10",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"
package/public-api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './lib/ato-water-lib.service';
2
2
  export * from './lib/ato-water-lib.component';
3
3
  export * from './lib/ato-water-lib.module';
4
- export * from './lib/test-button/test-button.component';
4
+ export * from './lib/components/flow-diagram-lib/flow-diagram-lib.component';
5
+ export * from './lib/components/asset-flow/asset-flow.component';
@@ -1,11 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class TestButtonComponent {
4
- }
5
- TestButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TestButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- TestButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TestButtonComponent, selector: "ato-test-button", ngImport: i0, template: "<p>test-button works!</p>\n", styles: [""] });
7
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TestButtonComponent, decorators: [{
8
- type: Component,
9
- args: [{ selector: 'ato-test-button', template: "<p>test-button works!</p>\n" }]
10
- }] });
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL3Rlc3QtYnV0dG9uL3Rlc3QtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL2xpYi90ZXN0LWJ1dHRvbi90ZXN0LWJ1dHRvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU8xQyxNQUFNLE9BQU8sbUJBQW1COztpSEFBbkIsbUJBQW1CO3FHQUFuQixtQkFBbUIsdURDUGhDLDZCQUNBOzRGRE1hLG1CQUFtQjtrQkFML0IsU0FBUzsrQkFDRSxpQkFBaUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnYXRvLXRlc3QtYnV0dG9uJyxcbiAgdGVtcGxhdGVVcmw6ICcuL3Rlc3QtYnV0dG9uLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vdGVzdC1idXR0b24uY29tcG9uZW50LmNzcyddXG59KVxuZXhwb3J0IGNsYXNzIFRlc3RCdXR0b25Db21wb25lbnQge1xuXG59XG4iLCI8cD50ZXN0LWJ1dHRvbiB3b3JrcyE8L3A+XG4iXX0=
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TestButtonComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<TestButtonComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<TestButtonComponent, "ato-test-button", never, {}, {}, never, never, false, never>;
5
- }