ato-water-lib 0.0.6 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,432 @@
1
+ import { ATO_ECOMPONENT_PLANT_TYPE } from '../constants/value.const';
2
+ export declare class GojsEditorModel {
3
+ initialOptions: any;
4
+ data: any;
5
+ constructor(data: any);
6
+ }
7
+ export declare namespace GojsEditorModel {
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
+ }
52
+ enum ENUM_LINK_TYPES {
53
+ SIMPLE = "simple",
54
+ PIPE_ANIMATION = "pipe animation",
55
+ PIPE = "pipe",
56
+ PIPE_HIDDEN = "pipe hidden"
57
+ }
58
+ enum ENUM_TEMPLATES {
59
+ STORAGE = "Storage",
60
+ COOLING_TOWER = "Cooling Tower",
61
+ WATER_TREATMENT = "Water Treatment",
62
+ DEMIN_WATER_TREATMENT = "Demin Water Treatment",
63
+ RO_WATER_TREATMENT = "RO Water Treatment",
64
+ DOMESTIC_USE = "Domestic Use",
65
+ PROCESS = "Process",
66
+ BOILER = "Boiler",
67
+ WASTEWATER_TREATMENT = "Wastewater Treatment",
68
+ DAF_WASTEWATER_TREATMENT = "DAF Wastewater Treatment",
69
+ ETP_WASTEWATER_TREATMENT = "ETP Wastewater Treatment",
70
+ MBR_WASTEWATER_TREATMENT = "MBR Wastewater Treatment",
71
+ ZLD_WASTEWATER_TREATMENT = "ZLD Wastewater Treatment",
72
+ OTHER = "Other",
73
+ LANDSCAPING_IRRIGATION = "Landscaping/Irrigation",
74
+ TEXT_NODE = "TextNode",
75
+ VALUE_NODE = "ValueNode",
76
+ DATA_BOX = "DataBox",
77
+ VALUE_LABEL = "ValueLabel",
78
+ EMPTY = "Empty",
79
+ SPECIAL_PROCESS = "SPECIAL_PROCESS",
80
+ SPECIAL_STORE = "SPECIAL_STORE",
81
+ SPECIAL_STORAGE = "STORAGE",
82
+ SPECIAL_DISCHARGE = "SPECIAL_DISCHARGE",
83
+ SPECIAL_OTHER = "SPECIAL_OTHER",
84
+ FRESH_SURFACE_WATER = "Fresh surface water",
85
+ THIRD_PARTY_SOURCES = "Third party sources",
86
+ THIRD_PARTY_DESTINATIONS = "Third party destinations",
87
+ GROUND_WATER_NON_RENEWABLE = "Groundwater - non-renewable",
88
+ PRODUCED_ENTRAINED = "Produced / entrained water",
89
+ BRACKISH_SURFACE_WATER = "Brackish surface water/ seawater",
90
+ UTILITY = "UTILITY",
91
+ GROUND_WATER_RENEWABLE = "Groundwater - Renewable",
92
+ ZONE = "EnergyZones",
93
+ ZONE_ENERGY_ITEM = "SubSystem",
94
+ GRID = "Grid",
95
+ DIESEL_GENERATORS = "Diesel Generators",
96
+ ELECTRIC_METERS = "Electric Meters",
97
+ BATTERY_ENERGY_STORAGE = "Battery energy storage",
98
+ TRANSFORMERS = "Transformers",
99
+ LIGHTING_SYSTEMS = "Lighting systems",
100
+ LIGHTINGS = "Lightings",
101
+ ELECTRIC_FLYWHEEL_ENERGY_STORAGE = "Flywheel energy storage",
102
+ PUMPED_HYDRO_STORAGE = "Pumped hydro storage",
103
+ THERMAL_ENERGY_STORAGE = "Thermal energy storage",
104
+ SUPER_CAPACITOR_ENERGY_STORAGE = "Supercapacitor energy storage",
105
+ SWITCH_GEARS = "Switchgears",
106
+ MOTOR_CONTROLS = "MotorControls",
107
+ VARIABLE_FREQUENCY_DRIVERS = "VariableFrequencyDrives",
108
+ ELECTRIC_HVAC = "Heating, ventilation, and air conditioning (HVAC) systems",
109
+ COMPRESSED_AIR_SYSTEMS = "Compressed air",
110
+ REFRIGERATION_COOLING_SYSTEMS = "Refrigeration and cooling",
111
+ PROCESS_CONTROL_AUTOMATION_SYSTEMS = "Process control and automation",
112
+ OFFICE_EQUIPMENT = "Office equipment",
113
+ PROCESS_EQUIPMENT_MACHINES = "Process equipment and machines",
114
+ MATERIAL_HANDLING_EQUIPMENT = "Material handling equipment",
115
+ POWER_DISTRIBUTION_CONTROL_SYSTEMS = "Power distribution and control",
116
+ POWER_DISTRIBUTION_SYSTEMS = "Power distribution systems",
117
+ WIND_POWER = "Wind Power",
118
+ NATURAL_GAS_GENERATORS = "Natural gas generators",
119
+ ELECTRIC_INDUSTRIAL_MOTORS = "Industrial motors",
120
+ GROUNDING = "Grounding",
121
+ FUELS = "Fuels",
122
+ DIESEL_FUELS = "DieselFuels",
123
+ GASON_LINES = "Gasonlines",
124
+ BIODIESELS = "Biodiesels",
125
+ KEROSENSE = "Kerosenes",
126
+ PROPANES = "Propanes",
127
+ TANKER_TRUCKS = "Tanker Trucks",
128
+ PIPELINE = "Pipeline",
129
+ INDUSTRIAL_BOILERS = "Industrial boilers",
130
+ GENERATORS = "Generators",
131
+ INDUSTRIAL_FURNACES = "Industrial furnaces",
132
+ INDUSTRIAL_OVENS = "Industrial ovens",
133
+ INDUSTRIAL_VEHICLES_AND_EQUIPMENT = "Industrial vehicles and equipment",
134
+ FUEL_METERS = "FuelMeters",
135
+ FUEL_DISPENSERS = "FuelDispensers",
136
+ FUEL_STRORAGE_TANKS = "FuelStorageTanks",
137
+ FUEL_FILTRATIONS = "FuelFiltrations",
138
+ FUEL_MANAGEMENTS = "FuelManagements",
139
+ NATURAL_GAS_PIPELINES = "Natural gas pipelines",
140
+ LIQUEFIED_NATURAL_GAS = "Liquefied natural gas",
141
+ COMPRESSED_NATURAL_GAS_PIPELINE = "Compressed natural gas pipeline",
142
+ ON_SITE_PRODUCTION = "On-site production",
143
+ COMPRESSED_NATURAL_GAS_PRODUCTION = "Compressed natural gas production",
144
+ BOILERS_AND_HEATERS = "Boilers and heaters",
145
+ FURNACES = "Furnaces",
146
+ POWER_GENERATION = "Power generation",
147
+ COGENERATION = "Cogeneration",
148
+ COMBINED_CYCLE_POWER_PLANTS = "Combined cycle power plants",
149
+ FUEL_FOR_VEHICLES_AND_EQUIPMENT = "Fuel for vehicles and equipment",
150
+ GAS_METERS = "Gas meters",
151
+ BURNERS = "Burners",
152
+ FLUE_GAS_ANALYZERS = "Flue gas analyzers",
153
+ COMBUSTION_CONTROL_SYSTEMS = "Combustion control systems",
154
+ GAS_STORAGE_TANKS = "Gas storage tanks",
155
+ GAS_PRESSURE_REGULATORS = "Gas pressure regulators",
156
+ NATURAL_GAS = "Natural Gas",
157
+ SOLAR_POWER = "Solar Power",
158
+ POWER_CONDITIONING_UNIT = "Power conditioning unit (PCU)",
159
+ INVERTERS = "Inverters",
160
+ BATTERIES = "Batteries",
161
+ UNCATEGORIZED = "Uncategorized",
162
+ PLANT_CELL = "Plant Cell",
163
+ INPUT_PLANT_CELL = "Input Plant Cell",
164
+ OUTPUT_PLANT_CELL = "Output Plant Cell",
165
+ PLANT_CELL_INPUT_GROUP = "PC Input Group",
166
+ PLANT_CELL_OUTPUT_GROUP = "PC Output Group",
167
+ IMAGE_TEMPLATE = "Image Template",
168
+ PARAM_TABLE = "Param Table",
169
+ MASS_BALANCE = "Mass Balance",
170
+ VALUES = "Valves",
171
+ STEAM_TRAPS = "Steam Traps",
172
+ PRESSURE_REGULATORS = "Pressure Regulator",
173
+ SAFETY_VALUES_AND_EQUIPMENT = "Safety Valves and Equipment",
174
+ CONDENSATE_RETURN_SYSTEM = "Condensate Return System",
175
+ DEAERATORS = "Deaerators",
176
+ FEEDWATER_PUMPS = "Feedwater Pumps",
177
+ BLOWDOWN_TANKS = "Blowdown Tanks",
178
+ EXPANSION_TANKS = "Expansion Tanks",
179
+ HEAT_EXCHANGERS = "Heat Exchangers",
180
+ TURBINES = "Turbines",
181
+ GROUP_BASIC_COMPONENT = "Group Basic Component"
182
+ }
183
+ enum ENUM_TYPES {
184
+ STORAGE = "WaterStorageTanks",
185
+ WATER_TREATMENT = "WaterTreatmentProcesses",
186
+ DEMIN_WATER_TREATMENT = "DeminWaterTreatments",
187
+ RO_WATER_TREATMENT = "ROWaterTreatments",
188
+ PROCESS = "GenericProcesses",
189
+ SPECIAL_STORAGE = "STORAGE",
190
+ WASTEWATER_TREATMENT = "WasteWaterTreatmentProcesses",
191
+ DAF_WASTEWATER_TREATMENT = "DAFWasteWaterTreatments",
192
+ ETP_WASTEWATER_TREATMENT = "ETPWasteWaterTreatments",
193
+ MBR_WASTEWATER_TREATMENT = "MBRWasteWaterTreatments",
194
+ ZLD_WASTEWATER_TREATMENT = "ZLDWasteWaterTreatments",
195
+ DOMESTIC_USE = "DomesticUse",
196
+ COOLING_TOWER = "CoolingTowers",
197
+ BOILER = "Boilers",
198
+ OTHER = "OtherWaterUse",
199
+ LANDSCAPING_IRRIGATION = "IrrigationUse",
200
+ FRESH_SURFACE_WATER = "Fresh surface water",
201
+ THIRD_PARTY_SOURCES = "Third party sources",
202
+ THIRD_PARTY_DESTINATIONS = "Third party destinations",
203
+ GROUND_WATER_NON_RENEWABLE = "Groundwater - non-renewable",
204
+ PRODUCED_ENTRAINED = "Produced / entrained water",
205
+ BRACKISH_SURFACE_WATER = "Brackish surface water/ seawater",
206
+ GROUND_WATER_RENEWABLE = "Groundwater - Renewable",
207
+ TANKER_WATER = "Tanker Water",
208
+ ZONE = "EnergyZones",
209
+ ELECTRIC_SOURCES = "ElectricSources",
210
+ GRID = "Grid Power",
211
+ DIESEL_GENERATORS = "Diesel Generators",
212
+ ELECTRIC_METERS = "ElectricMeters",
213
+ TRANSFORMERS = "Transformers",
214
+ BATTERY_ENERGY_STORAGE = "Battery energy storage",
215
+ ELECTRIC_PRODUCTIONS = "ElectricProductions",
216
+ ELECTRIC_COMSUMINGS = "ElectricConsumings",
217
+ ELECTRIC_STORAGES = "ElectricityStorages",
218
+ ELECTRIC_FLYWHEEL_ENERGY_STORAGE = "Flywheel energy storage",
219
+ PUMPED_HYDRO_STORAGE = "Pumped hydro storage",
220
+ THERMAL_ENERGY_STORAGE = "Thermal energy storage",
221
+ SUPER_CAPACITOR_ENERGY_STORAGE = "Supercapacitor energy storage",
222
+ SWITCH_GEARS = "Switchgears",
223
+ MOTOR_CONTROLS = "MotorControls",
224
+ VARIABLE_FREQUENCY_DRIVERS = "VariableFrequencyDrives",
225
+ LIGHTING_SYSTEMS = "Lighting systems",
226
+ LIGHTINGS = "Lightings",
227
+ ELECTRIC_HVAC = "Heating, ventilation, and air conditioning (HVAC) systems",
228
+ COMPRESSED_AIR_SYSTEMS = "Compressed air",
229
+ REFRIGERATION_COOLING_SYSTEMS = "Refrigeration and cooling",
230
+ PROCESS_CONTROL_AUTOMATION_SYSTEMS = "Process control and automation",
231
+ PROCESS_EQUIPMENT_MACHINES = "Process equipment and machines",
232
+ OFFICE_EQUIPMENT = "Office equipment",
233
+ MATERIAL_HANDLING_EQUIPMENT = "Material handling equipment",
234
+ POWER_DISTRIBUTION_CONTROL_SYSTEMS = "Power distribution and control",
235
+ POWER_DISTRIBUTION_SYSTEMS = "PowerDistributions",
236
+ WIND_POWER = "Wind Power",
237
+ NATURAL_GAS_GENERATORS = "Natural gas generators",
238
+ ELECTRIC_INDUSTRIAL_MOTORS = "Industrial motors",
239
+ GROUNDING = "Groundings",
240
+ Electricals = "Electricals",
241
+ NATURAL_GAS_PIPELINES = "Natural gas pipelines",
242
+ LIQUEFIED_NATURAL_GAS = "Liquefied natural gas (LNG) shipments",
243
+ COMPRESSED_NATURAL_GAS_PIPELINE = "Compressed natural gas pipeline (CNG)",
244
+ ON_SITE_PRODUCTION = "On-site production",
245
+ COMPRESSED_NATURAL_GAS_PRODUCTION = "Compressed natural gas production (CNG)",
246
+ BOILERS_AND_HEATERS = "Boilers and heaters",
247
+ FURNACES = "Furnaces",
248
+ POWER_GENERATION = "Power generation",
249
+ COGENERATION = "Cogeneration",
250
+ COMBINED_CYCLE_POWER_PLANTS = "Combined cycle power plants",
251
+ FUEL_FOR_VEHICLES_AND_EQUIPMENT = "Fuel for vehicles and equipment",
252
+ GAS_METERS = "GasMeters",
253
+ BURNERS = "Burners",
254
+ FLUE_GAS_ANALYZERS = "FlueGasAnalyzers",
255
+ COMBUSTION_CONTROL_SYSTEMS = "ConbustionControls",
256
+ GAS_STORAGE_TANKS = "GasStorageTanks",
257
+ GAS_PRESSURE_REGULATORS = "GasPressureRegulators",
258
+ NATURAL_GAS = "Natural Gas",
259
+ GAS_SOURCE = "GasSources",
260
+ GAS_PRODUCTION = "GasProductions",
261
+ GAS_CONSUMINGS = "GasConsumings",
262
+ NATURAL_GAS_SPECIAL = "NaturalGases",
263
+ FUELS = "Fuels",
264
+ DIESEL_FUELS = "DieselFuels",
265
+ GASON_LINES = "Gasonlines",
266
+ BIODIESELS = "Biodiesels",
267
+ KEROSENSE = "Kerosenes",
268
+ PROPANES = "Propanes",
269
+ FUEL_SOURCES = "FuelSources",
270
+ TANKER_TRUCKS = "Tanker Trucks",
271
+ PIPELINE = "Pipeline",
272
+ FUEL_CONSUMINGS = "FuelConsumings",
273
+ INDUSTRIAL_BOILERS = "Industrial boilers",
274
+ GENERATORS = "Generators",
275
+ INDUSTRIAL_FURNACES = "Industrial furnaces",
276
+ INDUSTRIAL_OVENS = "Industrial ovens",
277
+ INDUSTRIAL_VEHICLES_AND_EQUIPMENT = "Industrial vehicles and equipment",
278
+ FUEL_METERS = "FuelMeters",
279
+ FUEL_DISPENSERS = "FuelDispensers",
280
+ FUEL_STRORAGE_TANKS = "FuelStorageTanks",
281
+ FUEL_FILTRATIONS = "FuelFiltrations",
282
+ FUEL_MANAGEMENTS = "FuelManagements",
283
+ SOLAR_POWER = "Solar Power",
284
+ POWER_CONDITIONING_UNIT = "Power conditioning unit (PCU)",
285
+ INVERTERS = "Inverters",
286
+ BATTERIES = "Batteries",
287
+ PLANT_CELL = "PlantCells",
288
+ PLANT_CELL_INPUT_GROUP = "PC Input Group",
289
+ PLANT_CELL_OUTPUT_GROUP = "PC Output Group",
290
+ VALUES = "Valves",
291
+ STEAM_TRAPS = "Steam Traps",
292
+ PRESSURE_REGULATORS = "Pressure Regulator",
293
+ SAFETY_VALUES_AND_EQUIPMENT = "Safety Valves and Equipment",
294
+ CONDENSATE_RETURN_SYSTEM = "Condensate Return System",
295
+ DEAERATORS = "Deaerators",
296
+ FEEDWATER_PUMPS = "Feedwater Pumps",
297
+ BLOWDOWN_TANKS = "Blowdown Tanks",
298
+ EXPANSION_TANKS = "Expansion Tanks",
299
+ HEAT_EXCHANGERS = "SteamConsumings",
300
+ TURBINES = "EnergyConverters",
301
+ STEAM_COMPONENT = "SteamComponents",
302
+ STEAM_CONSUMING_SYSTEM = "SteamConsumings",
303
+ ENERGY_CONVERTER = "EnergyConverters"
304
+ }
305
+ enum ENUM_CATEGORY {
306
+ }
307
+ enum DATA_COLLECTION_METHOD {
308
+ MEASURED = "Measured",
309
+ MANUAL = "Manual",
310
+ COMPUTED = "Computed",
311
+ ESTIMATED = "Estimated",
312
+ WATER_CAPACITY = "Water Capacity",
313
+ KEY_MODEL_COMPUTED = "M"
314
+ }
315
+ const COLOR_COLLECTION_METHOD: {
316
+ [key in GojsEditorModel.DATA_COLLECTION_METHOD]: any;
317
+ };
318
+ enum WITH_DRAW_SYSTEM_TYPES {
319
+ WATER_SOURCE = "WaterSource"
320
+ }
321
+ enum DISCHARGE_TYPES_SYSTEM_TYPES {
322
+ GROUND_WATER_RANEWABLE = "GroundWaterRenewable"
323
+ }
324
+ const WaterWithdrawSources = "WaterWithdrawSources";
325
+ const WaterWithdrawSourcesPath = "GetFlowTopology.Plant.WaterWithdrawSources.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams";
326
+ const WaterDischargeDestinations = "WaterDischargeDestinations";
327
+ const WaterDischargeDestinationsPath = "GetFlowTopology.Plant.WaterDischargeDestinations.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams";
328
+ const SOURCES_COMPONENTS: string[];
329
+ const SOURCES_WITHDRAW: string[];
330
+ const SOURCES_DISCHARGE: string[];
331
+ const COMPONENTS_HAVE_SPECIAL_CATEGORY: string[];
332
+ const WITH_DRAW_TYPE_LIST: string[];
333
+ const DISCHARGE_TYPE_LIST: string[];
334
+ const WITH_DRAW_SYSTEM_TYPE_LIST: WITH_DRAW_SYSTEM_TYPES[];
335
+ const DISCHARGE_SYSTEM_TYPE_LIST: DISCHARGE_TYPES_SYSTEM_TYPES[];
336
+ const TYPE_COMPONENT: string[];
337
+ const ICON_ASSET_PATH: string;
338
+ const ICON_ASSET_WITHDRAW_DISCHARGE_ICON: string;
339
+ const IMAGE_RO_WATER_TREATMENT_PATH = "/assets/images/ro-water-treatment/RO_WATER_TREATMENT_BG.png";
340
+ const IMAGE_BOILER_PATH = "assets/images/boiler/cms_boiler.png";
341
+ const IMAGE_COOLING_TOWER_PATH = "assets/images/process-water/cooling_tower.png";
342
+ const SPECIAL_ICON_ASSET_PATH: string;
343
+ const ENERGY_ICON_ASSET_PATH = "assets/images/editor/energy";
344
+ const GAS_ICON_ASSET_PATH = "assets/images/editor/gas";
345
+ const FUEL_ICON_ASSET_PATH = "assets/images/editor/fuel";
346
+ const STEAM_ICON_ASSET_PATH = "assets/images/editor/steam";
347
+ const PLANT_CELL_PATH = "assets/images/editor/plant-cell";
348
+ const DATA_BOX = "assets/images/editor/data-box";
349
+ const LINK_TEMPLATES: {
350
+ [key in GojsEditorModel.ENUM_LINK_TYPES]: any;
351
+ };
352
+ interface I_TEMPLATE_ITEM {
353
+ name: GojsEditorModel.ENUM_TEMPLATES;
354
+ icon?: string;
355
+ size?: {
356
+ w: number;
357
+ h: number;
358
+ };
359
+ systemType?: string;
360
+ }
361
+ const ATTRNAME_COMPONENT: any[];
362
+ const NODE_TEMPLATES: {
363
+ [key in GojsEditorModel.ENUM_TEMPLATES]: I_TEMPLATE_ITEM;
364
+ };
365
+ const WITHDRAW_DISCHARGE_ICON: {
366
+ [key in string]: any;
367
+ };
368
+ const WITHDRAW_DISCHARGE_DIAGRAM_HOME: {
369
+ withdrawSourcesChildren: ENUM_TYPES[];
370
+ dischargeDestinationsChildren: ENUM_TYPES[];
371
+ };
372
+ enum ACTION_RIGHT_MENU_GROUP {
373
+ PLANT_TEMPLATES = "Plant Templates",
374
+ PLANT_CELLS = "Plant Cell",
375
+ DATA_BOX = "Measurement",
376
+ SYSTEM_TEMPLATES = "System Templates",
377
+ WATER_COMPONENT = "Water Components"
378
+ }
379
+ enum DATA_BOX_NAME_OF_COMPONENT {
380
+ INFLOW = "Inflow Of",
381
+ OUTFLOW = "Outflow From"
382
+ }
383
+ enum ACTION_RIGHT_MENU {
384
+ APPLY_TEMPLATE = "ApplyTemplate",
385
+ NEW_PLANT_CELL = "NewPlantCell",
386
+ NAME_PLANT_CELL = "NamePlantCell",
387
+ ADD_COMPONENT = "AddComponent"
388
+ }
389
+ const DATA_MENU: {
390
+ name: string;
391
+ componentType: ATO_ECOMPONENT_PLANT_TYPE;
392
+ isFilterType: boolean;
393
+ groupType: ACTION_RIGHT_MENU_GROUP;
394
+ children: {
395
+ name: string;
396
+ children: never[];
397
+ actionType: ACTION_RIGHT_MENU;
398
+ isDrag: boolean;
399
+ }[];
400
+ }[];
401
+ const WATER_USING_SYSTEM: ENUM_TYPES[];
402
+ const PARAM_TABLE_STYLE: {
403
+ "#0062A9": {
404
+ borderTable: ENUM_COLORS;
405
+ bgColor: ENUM_COLORS;
406
+ };
407
+ "#7197CA": {
408
+ borderTable: ENUM_COLORS;
409
+ bgColor: ENUM_COLORS;
410
+ };
411
+ "#54BBBA": {
412
+ borderTable: ENUM_COLORS;
413
+ bgColor: ENUM_COLORS;
414
+ };
415
+ "#E09F25": {
416
+ borderTable: ENUM_COLORS;
417
+ bgColor: ENUM_COLORS;
418
+ };
419
+ "#FFFFFF": {
420
+ borderTable: ENUM_COLORS;
421
+ bgColor: ENUM_COLORS;
422
+ };
423
+ };
424
+ const TYPE_COMPONENT_WATER: string[];
425
+ const TYPE_TEMPLATE_WATER_NORMAL: string[];
426
+ const TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE: string[];
427
+ const TYPE_TEMPLATE_ELECTRICITY: string[];
428
+ const TYPE_TEMPLATE_NATURAL_GAS: string[];
429
+ const TYPE_TEMPLATE_FUEL: string[];
430
+ const TYPE_TEMPLATE_STEAM: string[];
431
+ const TYPE_TEMPLATE_SPECIAL: string[];
432
+ }
@@ -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,9 +1,9 @@
1
1
  {
2
2
  "name": "ato-water-lib",
3
- "version": "0.0.6",
3
+ "version": "0.0.9",
4
4
  "peerDependencies": {
5
- "@angular/common": "^15.2.0",
6
- "@angular/core": "^15.2.0"
5
+ "@angular/common": "^15.1.0",
6
+ "@angular/core": "^15.1.0"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.3.0"
package/public-api.d.ts CHANGED
@@ -1,4 +1,4 @@
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';
@@ -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
- }