ato-water-lib 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,9 +3,11 @@ import { Injectable, Component, EventEmitter, Directive, ViewChild, Input, Outpu
3
3
  import _ from 'lodash';
4
4
  import { __awaiter } from 'tslib';
5
5
  import * as go from 'gojs';
6
+ import go__default from 'gojs';
6
7
  import moment from 'moment';
7
8
  import { Subject, Subscription } from 'rxjs';
8
- import { DecimalPipe } from '@angular/common';
9
+ import * as i1 from '@angular/common';
10
+ import { DecimalPipe, CommonModule } from '@angular/common';
9
11
  import { v4 } from 'uuid';
10
12
 
11
13
  class AtoWaterLibService {
@@ -819,26 +821,26 @@ var ATO_ENUM_FLOW_DIRECTION;
819
821
  ATO_ENUM_FLOW_DIRECTION["NONE"] = "";
820
822
  })(ATO_ENUM_FLOW_DIRECTION || (ATO_ENUM_FLOW_DIRECTION = {}));
821
823
 
822
- class GojsEditorModel {
824
+ class AtoGojsEditorModel {
823
825
  constructor(data) {
824
826
  this.data = data;
825
827
  }
826
828
  }
827
- (function (GojsEditorModel) {
828
- GojsEditorModel.GRID_SIZE = 20;
829
- GojsEditorModel.BASIC_GRID_INTERVAL_X = 24;
830
- GojsEditorModel.BASIC_GRID_INTERVAL_Y = 10;
831
- GojsEditorModel.BASIC_GRID_SIZE_WIDTH = GojsEditorModel.GRID_SIZE * GojsEditorModel.BASIC_GRID_INTERVAL_X;
832
- GojsEditorModel.BASIC_GRID_SIZE_HEIGHT = GojsEditorModel.GRID_SIZE * GojsEditorModel.BASIC_GRID_INTERVAL_Y;
833
- GojsEditorModel.DISTANCE_LAST_TO_ADD = 50;
834
- GojsEditorModel.PLANT_CELL_HEIGHT = 160;
829
+ (function (AtoGojsEditorModel) {
830
+ AtoGojsEditorModel.GRID_SIZE = 20;
831
+ AtoGojsEditorModel.BASIC_GRID_INTERVAL_X = 24;
832
+ AtoGojsEditorModel.BASIC_GRID_INTERVAL_Y = 10;
833
+ AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH = AtoGojsEditorModel.GRID_SIZE * AtoGojsEditorModel.BASIC_GRID_INTERVAL_X;
834
+ AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT = AtoGojsEditorModel.GRID_SIZE * AtoGojsEditorModel.BASIC_GRID_INTERVAL_Y;
835
+ AtoGojsEditorModel.DISTANCE_LAST_TO_ADD = 50;
836
+ AtoGojsEditorModel.PLANT_CELL_HEIGHT = 160;
835
837
  let ENUM_LAYOUT_EDITOR;
836
838
  (function (ENUM_LAYOUT_EDITOR) {
837
839
  ENUM_LAYOUT_EDITOR["AUTO"] = "AUTO ALIGN";
838
840
  ENUM_LAYOUT_EDITOR["GRID"] = "GRID SUPPORTED";
839
841
  ENUM_LAYOUT_EDITOR["FREEFORM"] = "FREE FORM";
840
- })(ENUM_LAYOUT_EDITOR = GojsEditorModel.ENUM_LAYOUT_EDITOR || (GojsEditorModel.ENUM_LAYOUT_EDITOR = {}));
841
- GojsEditorModel.LAYOUT_LIST = [
842
+ })(ENUM_LAYOUT_EDITOR = AtoGojsEditorModel.ENUM_LAYOUT_EDITOR || (AtoGojsEditorModel.ENUM_LAYOUT_EDITOR = {}));
843
+ AtoGojsEditorModel.LAYOUT_LIST = [
842
844
  {
843
845
  name: 'Auto-align',
844
846
  key: ENUM_LAYOUT_EDITOR.AUTO,
@@ -880,14 +882,17 @@ class GojsEditorModel {
880
882
  ENUM_COLORS["DANUBE_ALICE_BLUE"] = "#F1F5FA";
881
883
  ENUM_COLORS["AZURE"] = "#EEF8F8";
882
884
  ENUM_COLORS["OLD_LACE"] = "#FCF6EA";
883
- })(ENUM_COLORS = GojsEditorModel.ENUM_COLORS || (GojsEditorModel.ENUM_COLORS = {}));
885
+ ENUM_COLORS["CARROT_ORANGE"] = "#F69122";
886
+ ENUM_COLORS["FLAMINGO"] = "#E95F47";
887
+ ENUM_COLORS["SNOW"] = "#FEF7F6";
888
+ })(ENUM_COLORS = AtoGojsEditorModel.ENUM_COLORS || (AtoGojsEditorModel.ENUM_COLORS = {}));
884
889
  let ENUM_LINK_TYPES;
885
890
  (function (ENUM_LINK_TYPES) {
886
891
  ENUM_LINK_TYPES["SIMPLE"] = "simple";
887
892
  ENUM_LINK_TYPES["PIPE_ANIMATION"] = "pipe animation";
888
893
  ENUM_LINK_TYPES["PIPE"] = "pipe";
889
894
  ENUM_LINK_TYPES["PIPE_HIDDEN"] = "pipe hidden";
890
- })(ENUM_LINK_TYPES = GojsEditorModel.ENUM_LINK_TYPES || (GojsEditorModel.ENUM_LINK_TYPES = {}));
895
+ })(ENUM_LINK_TYPES = AtoGojsEditorModel.ENUM_LINK_TYPES || (AtoGojsEditorModel.ENUM_LINK_TYPES = {}));
891
896
  // Components types
892
897
  let ENUM_TEMPLATES;
893
898
  (function (ENUM_TEMPLATES) {
@@ -1026,7 +1031,7 @@ class GojsEditorModel {
1026
1031
  ENUM_TEMPLATES["TURBINES"] = "Turbines";
1027
1032
  // Plant Basic
1028
1033
  ENUM_TEMPLATES["GROUP_BASIC_COMPONENT"] = "Group Basic Component";
1029
- })(ENUM_TEMPLATES = GojsEditorModel.ENUM_TEMPLATES || (GojsEditorModel.ENUM_TEMPLATES = {}));
1034
+ })(ENUM_TEMPLATES = AtoGojsEditorModel.ENUM_TEMPLATES || (AtoGojsEditorModel.ENUM_TEMPLATES = {}));
1030
1035
  // System Types
1031
1036
  let ENUM_TYPES;
1032
1037
  (function (ENUM_TYPES) {
@@ -1160,10 +1165,10 @@ class GojsEditorModel {
1160
1165
  ENUM_TYPES["STEAM_COMPONENT"] = "SteamComponents";
1161
1166
  ENUM_TYPES["STEAM_CONSUMING_SYSTEM"] = "SteamConsumings";
1162
1167
  ENUM_TYPES["ENERGY_CONVERTER"] = "EnergyConverters";
1163
- })(ENUM_TYPES = GojsEditorModel.ENUM_TYPES || (GojsEditorModel.ENUM_TYPES = {}));
1168
+ })(ENUM_TYPES = AtoGojsEditorModel.ENUM_TYPES || (AtoGojsEditorModel.ENUM_TYPES = {}));
1164
1169
  let ENUM_CATEGORY;
1165
1170
  (function (ENUM_CATEGORY) {
1166
- })(ENUM_CATEGORY = GojsEditorModel.ENUM_CATEGORY || (GojsEditorModel.ENUM_CATEGORY = {}));
1171
+ })(ENUM_CATEGORY = AtoGojsEditorModel.ENUM_CATEGORY || (AtoGojsEditorModel.ENUM_CATEGORY = {}));
1167
1172
  let DATA_COLLECTION_METHOD;
1168
1173
  (function (DATA_COLLECTION_METHOD) {
1169
1174
  DATA_COLLECTION_METHOD["MEASURED"] = "Measured";
@@ -1172,8 +1177,8 @@ class GojsEditorModel {
1172
1177
  DATA_COLLECTION_METHOD["ESTIMATED"] = "Estimated";
1173
1178
  DATA_COLLECTION_METHOD["WATER_CAPACITY"] = "Water Capacity";
1174
1179
  DATA_COLLECTION_METHOD["KEY_MODEL_COMPUTED"] = "M";
1175
- })(DATA_COLLECTION_METHOD = GojsEditorModel.DATA_COLLECTION_METHOD || (GojsEditorModel.DATA_COLLECTION_METHOD = {}));
1176
- GojsEditorModel.COLOR_COLLECTION_METHOD = {
1180
+ })(DATA_COLLECTION_METHOD = AtoGojsEditorModel.DATA_COLLECTION_METHOD || (AtoGojsEditorModel.DATA_COLLECTION_METHOD = {}));
1181
+ AtoGojsEditorModel.COLOR_COLLECTION_METHOD = {
1177
1182
  [DATA_COLLECTION_METHOD.MEASURED]: {
1178
1183
  name: DATA_COLLECTION_METHOD.MEASURED,
1179
1184
  color: ENUM_COLORS.RED,
@@ -1212,21 +1217,21 @@ class GojsEditorModel {
1212
1217
  let WITH_DRAW_SYSTEM_TYPES;
1213
1218
  (function (WITH_DRAW_SYSTEM_TYPES) {
1214
1219
  WITH_DRAW_SYSTEM_TYPES["WATER_SOURCE"] = "WaterSource";
1215
- })(WITH_DRAW_SYSTEM_TYPES = GojsEditorModel.WITH_DRAW_SYSTEM_TYPES || (GojsEditorModel.WITH_DRAW_SYSTEM_TYPES = {}));
1220
+ })(WITH_DRAW_SYSTEM_TYPES = AtoGojsEditorModel.WITH_DRAW_SYSTEM_TYPES || (AtoGojsEditorModel.WITH_DRAW_SYSTEM_TYPES = {}));
1216
1221
  // export enum DISCHARGE_TYPES {
1217
1222
  // GROUND_WATER_RENEWABLE = 'Ground Water Renewable',
1218
1223
  // }
1219
1224
  let DISCHARGE_TYPES_SYSTEM_TYPES;
1220
1225
  (function (DISCHARGE_TYPES_SYSTEM_TYPES) {
1221
1226
  DISCHARGE_TYPES_SYSTEM_TYPES["GROUND_WATER_RANEWABLE"] = "GroundWaterRenewable";
1222
- })(DISCHARGE_TYPES_SYSTEM_TYPES = GojsEditorModel.DISCHARGE_TYPES_SYSTEM_TYPES || (GojsEditorModel.DISCHARGE_TYPES_SYSTEM_TYPES = {}));
1223
- GojsEditorModel.WaterWithdrawSources = 'WaterWithdrawSources';
1224
- GojsEditorModel.WaterWithdrawSourcesPath = 'GetFlowTopology.Plant.WaterWithdrawSources.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams';
1225
- GojsEditorModel.WaterDischargeDestinations = 'WaterDischargeDestinations';
1226
- GojsEditorModel.WaterDischargeDestinationsPath = 'GetFlowTopology.Plant.WaterDischargeDestinations.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams';
1227
- GojsEditorModel.SOURCES_COMPONENTS = [
1228
- GojsEditorModel.WaterWithdrawSources,
1229
- GojsEditorModel.WaterDischargeDestinations,
1227
+ })(DISCHARGE_TYPES_SYSTEM_TYPES = AtoGojsEditorModel.DISCHARGE_TYPES_SYSTEM_TYPES || (AtoGojsEditorModel.DISCHARGE_TYPES_SYSTEM_TYPES = {}));
1228
+ AtoGojsEditorModel.WaterWithdrawSources = 'WaterWithdrawSources';
1229
+ AtoGojsEditorModel.WaterWithdrawSourcesPath = 'GetFlowTopology.Plant.WaterWithdrawSources.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams';
1230
+ AtoGojsEditorModel.WaterDischargeDestinations = 'WaterDischargeDestinations';
1231
+ AtoGojsEditorModel.WaterDischargeDestinationsPath = 'GetFlowTopology.Plant.WaterDischargeDestinations.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams';
1232
+ AtoGojsEditorModel.SOURCES_COMPONENTS = [
1233
+ AtoGojsEditorModel.WaterWithdrawSources,
1234
+ AtoGojsEditorModel.WaterDischargeDestinations,
1230
1235
  ENUM_TYPES.ELECTRIC_SOURCES,
1231
1236
  ENUM_TYPES.ELECTRIC_PRODUCTIONS,
1232
1237
  ENUM_TYPES.GAS_SOURCE,
@@ -1234,8 +1239,8 @@ class GojsEditorModel {
1234
1239
  ENUM_TYPES.FUEL_SOURCES,
1235
1240
  // ENUM_TYPES.FUEL_STORAGE_TANKS,
1236
1241
  ];
1237
- GojsEditorModel.SOURCES_WITHDRAW = [
1238
- GojsEditorModel.WaterWithdrawSources,
1242
+ AtoGojsEditorModel.SOURCES_WITHDRAW = [
1243
+ AtoGojsEditorModel.WaterWithdrawSources,
1239
1244
  ENUM_TYPES.ELECTRIC_SOURCES,
1240
1245
  ENUM_TYPES.ELECTRIC_PRODUCTIONS,
1241
1246
  ENUM_TYPES.GAS_SOURCE,
@@ -1243,18 +1248,18 @@ class GojsEditorModel {
1243
1248
  ENUM_TYPES.FUEL_SOURCES,
1244
1249
  // ENUM_TYPES.FUEL_STORAGE_TANKS,
1245
1250
  ];
1246
- GojsEditorModel.SOURCES_DISCHARGE = [
1247
- GojsEditorModel.WaterDischargeDestinations,
1251
+ AtoGojsEditorModel.SOURCES_DISCHARGE = [
1252
+ AtoGojsEditorModel.WaterDischargeDestinations,
1248
1253
  // ENUM_TYPES.ELECTRIC_SOURCES,
1249
1254
  // ENUM_TYPES.ELECTRIC_PRODUCTIONS,
1250
1255
  // ENUM_TYPES.GAS_SOURCE,
1251
1256
  // ENUM_TYPES.GAS_PRODUCTION,
1252
1257
  // ENUM_TYPES.FUEL_SOURCES,
1253
1258
  ];
1254
- GojsEditorModel.COMPONENTS_HAVE_SPECIAL_CATEGORY = [
1259
+ AtoGojsEditorModel.COMPONENTS_HAVE_SPECIAL_CATEGORY = [
1255
1260
  // Water
1256
- GojsEditorModel.WaterWithdrawSources,
1257
- GojsEditorModel.WaterDischargeDestinations,
1261
+ AtoGojsEditorModel.WaterWithdrawSources,
1262
+ AtoGojsEditorModel.WaterDischargeDestinations,
1258
1263
  // ENUM_TYPES.FRESH_SURFACE_WAER,
1259
1264
  // ENUM_TYPES.THIRD_PARTY_SOURCES,
1260
1265
  // ENUM_TYPES.GROUND_WATER_NON_RENEWABLE,
@@ -1298,7 +1303,7 @@ class GojsEditorModel {
1298
1303
  ENUM_TYPES.PIPELINE,
1299
1304
  ENUM_TYPES.FUELS,
1300
1305
  ];
1301
- GojsEditorModel.WITH_DRAW_TYPE_LIST = [
1306
+ AtoGojsEditorModel.WITH_DRAW_TYPE_LIST = [
1302
1307
  ENUM_TYPES.THIRD_PARTY_SOURCES,
1303
1308
  ENUM_TYPES.FRESH_SURFACE_WATER,
1304
1309
  ENUM_TYPES.BRACKISH_SURFACE_WATER,
@@ -1306,16 +1311,20 @@ class GojsEditorModel {
1306
1311
  ENUM_TYPES.GROUND_WATER_NON_RENEWABLE,
1307
1312
  ENUM_TYPES.PRODUCED_ENTRAINED,
1308
1313
  ];
1309
- GojsEditorModel.DISCHARGE_TYPE_LIST = [
1314
+ AtoGojsEditorModel.DISCHARGE_TYPE_LIST = [
1310
1315
  ENUM_TYPES.FRESH_SURFACE_WATER,
1311
1316
  ENUM_TYPES.BRACKISH_SURFACE_WATER,
1312
1317
  ENUM_TYPES.GROUND_WATER_RENEWABLE,
1313
1318
  ENUM_TYPES.THIRD_PARTY_DESTINATIONS,
1314
1319
  ];
1315
- GojsEditorModel.WITH_DRAW_SYSTEM_TYPE_LIST = [WITH_DRAW_SYSTEM_TYPES.WATER_SOURCE];
1316
- GojsEditorModel.DISCHARGE_SYSTEM_TYPE_LIST = [DISCHARGE_TYPES_SYSTEM_TYPES.GROUND_WATER_RANEWABLE];
1320
+ AtoGojsEditorModel.WITH_DRAW_SYSTEM_TYPE_LIST = [
1321
+ WITH_DRAW_SYSTEM_TYPES.WATER_SOURCE,
1322
+ ];
1323
+ AtoGojsEditorModel.DISCHARGE_SYSTEM_TYPE_LIST = [
1324
+ DISCHARGE_TYPES_SYSTEM_TYPES.GROUND_WATER_RANEWABLE,
1325
+ ];
1317
1326
  // system type
1318
- GojsEditorModel.TYPE_COMPONENT = [
1327
+ AtoGojsEditorModel.TYPE_COMPONENT = [
1319
1328
  ENUM_TYPES.STORAGE,
1320
1329
  ENUM_TYPES.WATER_TREATMENT,
1321
1330
  ENUM_TYPES.DEMIN_WATER_TREATMENT,
@@ -1331,8 +1340,8 @@ class GojsEditorModel {
1331
1340
  ENUM_TYPES.BOILER,
1332
1341
  ENUM_TYPES.OTHER,
1333
1342
  ENUM_TYPES.LANDSCAPING_IRRIGATION,
1334
- GojsEditorModel.WaterWithdrawSources,
1335
- GojsEditorModel.WaterDischargeDestinations,
1343
+ AtoGojsEditorModel.WaterWithdrawSources,
1344
+ AtoGojsEditorModel.WaterDischargeDestinations,
1336
1345
  // Energy
1337
1346
  ENUM_TYPES.ZONE,
1338
1347
  // Electricity==========================
@@ -1546,27 +1555,27 @@ class GojsEditorModel {
1546
1555
  ENUM_TYPES.STEAM_CONSUMING_SYSTEM,
1547
1556
  ENUM_TYPES.ENERGY_CONVERTER,
1548
1557
  ];
1549
- GojsEditorModel.ICON_ASSET_PATH = 'assets/images/editor/icons';
1550
- GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON = '/assets/images/icons/hoskote_plant';
1551
- GojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH = '/assets/images/ro-water-treatment/RO_WATER_TREATMENT_BG.png';
1552
- GojsEditorModel.IMAGE_BOILER_PATH = 'assets/images/boiler/cms_boiler.png';
1553
- GojsEditorModel.IMAGE_COOLING_TOWER_PATH = 'assets/images/process-water/cooling_tower.png';
1554
- GojsEditorModel.SPECIAL_ICON_ASSET_PATH = 'assets/images/editor/special';
1555
- GojsEditorModel.ENERGY_ICON_ASSET_PATH = 'assets/images/editor/energy';
1556
- GojsEditorModel.GAS_ICON_ASSET_PATH = 'assets/images/editor/gas';
1557
- GojsEditorModel.FUEL_ICON_ASSET_PATH = 'assets/images/editor/fuel';
1558
- GojsEditorModel.STEAM_ICON_ASSET_PATH = 'assets/images/editor/steam';
1559
- GojsEditorModel.PLANT_CELL_PATH = 'assets/images/editor/plant-cell';
1560
- GojsEditorModel.DATA_BOX = 'assets/images/editor/data-box';
1561
- GojsEditorModel.LINK_TEMPLATES = {
1558
+ AtoGojsEditorModel.ICON_ASSET_PATH = 'assets/images/editor/icons';
1559
+ AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON = '/assets/images/icons/hoskote_plant';
1560
+ AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH = '/assets/images/ro-water-treatment/RO_WATER_TREATMENT_BG.png';
1561
+ AtoGojsEditorModel.IMAGE_BOILER_PATH = 'assets/images/boiler/cms_boiler.png';
1562
+ AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH = 'assets/images/process-water/cooling_tower.png';
1563
+ AtoGojsEditorModel.SPECIAL_ICON_ASSET_PATH = 'assets/images/editor/special';
1564
+ AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH = 'assets/images/editor/energy';
1565
+ AtoGojsEditorModel.GAS_ICON_ASSET_PATH = 'assets/images/editor/gas';
1566
+ AtoGojsEditorModel.FUEL_ICON_ASSET_PATH = 'assets/images/editor/fuel';
1567
+ AtoGojsEditorModel.STEAM_ICON_ASSET_PATH = 'assets/images/editor/steam';
1568
+ AtoGojsEditorModel.PLANT_CELL_PATH = 'assets/images/editor/plant-cell';
1569
+ AtoGojsEditorModel.DATA_BOX = 'assets/images/editor/data-box';
1570
+ AtoGojsEditorModel.LINK_TEMPLATES = {
1562
1571
  [ENUM_LINK_TYPES.SIMPLE]: {
1563
1572
  toShortLength: 8,
1564
1573
  strokeWidth: 8,
1565
1574
  arrow: {
1566
1575
  toArrow: 'Triangle',
1567
1576
  visible: true,
1568
- stroke: GojsEditorModel.ENUM_COLORS.GRAY,
1569
- fill: GojsEditorModel.ENUM_COLORS.GRAY,
1577
+ stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
1578
+ fill: AtoGojsEditorModel.ENUM_COLORS.GRAY,
1570
1579
  scale: 1.7,
1571
1580
  },
1572
1581
  },
@@ -1592,7 +1601,7 @@ class GojsEditorModel {
1592
1601
  },
1593
1602
  },
1594
1603
  };
1595
- GojsEditorModel.ATTRNAME_COMPONENT = [
1604
+ AtoGojsEditorModel.ATTRNAME_COMPONENT = [
1596
1605
  'waterWithdrawName',
1597
1606
  'waterDischargeName',
1598
1607
  'wasteWaterProcessName',
@@ -1615,58 +1624,58 @@ class GojsEditorModel {
1615
1624
  // FACILITY_FUNCTIONS = 'Facility functions',
1616
1625
  // OTHER = 'Other',
1617
1626
  // }
1618
- GojsEditorModel.NODE_TEMPLATES = {
1627
+ AtoGojsEditorModel.NODE_TEMPLATES = {
1619
1628
  [ENUM_TEMPLATES.STORAGE]: {
1620
1629
  name: ENUM_TEMPLATES.STORAGE,
1621
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Raw Water Tank.svg`,
1630
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Raw Water Tank.svg`,
1622
1631
  systemType: ENUM_TYPES.STORAGE,
1623
1632
  },
1624
1633
  [ENUM_TEMPLATES.COOLING_TOWER]: {
1625
1634
  name: ENUM_TEMPLATES.COOLING_TOWER,
1626
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/cooling_tower.svg`,
1635
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/cooling_tower.svg`,
1627
1636
  systemType: ENUM_TYPES.COOLING_TOWER,
1628
1637
  },
1629
1638
  // WATER_TREATMENT
1630
1639
  [ENUM_TEMPLATES.WATER_TREATMENT]: {
1631
1640
  name: ENUM_TEMPLATES.WATER_TREATMENT,
1632
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/water_treatment.svg`,
1641
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/water_treatment.svg`,
1633
1642
  systemType: ENUM_TYPES.WATER_TREATMENT,
1634
1643
  },
1635
1644
  [ENUM_TEMPLATES.DEMIN_WATER_TREATMENT]: {
1636
1645
  name: ENUM_TEMPLATES.DEMIN_WATER_TREATMENT,
1637
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Demin.svg`,
1646
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Demin.svg`,
1638
1647
  systemType: ENUM_TYPES.DEMIN_WATER_TREATMENT,
1639
1648
  },
1640
1649
  [ENUM_TEMPLATES.RO_WATER_TREATMENT]: {
1641
1650
  name: ENUM_TEMPLATES.RO_WATER_TREATMENT,
1642
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/RO.svg`,
1651
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/RO.svg`,
1643
1652
  systemType: ENUM_TYPES.RO_WATER_TREATMENT,
1644
1653
  },
1645
1654
  [ENUM_TEMPLATES.DOMESTIC_USE]: {
1646
1655
  name: ENUM_TEMPLATES.DOMESTIC_USE,
1647
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Domestic_new.svg`,
1656
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Domestic_new.svg`,
1648
1657
  systemType: ENUM_TYPES.DOMESTIC_USE,
1649
1658
  },
1650
1659
  [ENUM_TEMPLATES.PROCESS]: {
1651
1660
  name: ENUM_TEMPLATES.PROCESS,
1652
1661
  // icon: `${ICON_ASSET_PATH}/process.svg`,
1653
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Generic Process.svg`,
1662
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Generic Process.svg`,
1654
1663
  systemType: ENUM_TYPES.PROCESS,
1655
1664
  },
1656
1665
  [ENUM_TEMPLATES.SPECIAL_STORAGE]: {
1657
1666
  name: ENUM_TEMPLATES.SPECIAL_STORAGE,
1658
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/process.svg`,
1667
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/process.svg`,
1659
1668
  systemType: ENUM_TYPES.SPECIAL_STORAGE,
1660
1669
  },
1661
1670
  [ENUM_TEMPLATES.BOILER]: {
1662
1671
  name: ENUM_TEMPLATES.BOILER,
1663
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Boiler.svg`,
1672
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Boiler.svg`,
1664
1673
  systemType: ENUM_TYPES.BOILER,
1665
1674
  },
1666
1675
  // WASTEWATER_TREATMENT
1667
1676
  [ENUM_TEMPLATES.WASTEWATER_TREATMENT]: {
1668
1677
  name: ENUM_TEMPLATES.WASTEWATER_TREATMENT,
1669
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/wastewater_treatment.svg`,
1678
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/wastewater_treatment.svg`,
1670
1679
  // size: {
1671
1680
  // w: GRID_SIZE * 8,
1672
1681
  // h: GRID_SIZE * 6,
@@ -1675,7 +1684,7 @@ class GojsEditorModel {
1675
1684
  },
1676
1685
  [ENUM_TEMPLATES.DAF_WASTEWATER_TREATMENT]: {
1677
1686
  name: ENUM_TEMPLATES.DAF_WASTEWATER_TREATMENT,
1678
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/DAF.svg`,
1687
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/DAF.svg`,
1679
1688
  // size: {
1680
1689
  // w: GRID_SIZE * 8,
1681
1690
  // h: GRID_SIZE * 6,
@@ -1684,12 +1693,12 @@ class GojsEditorModel {
1684
1693
  },
1685
1694
  [ENUM_TEMPLATES.ETP_WASTEWATER_TREATMENT]: {
1686
1695
  name: ENUM_TEMPLATES.ETP_WASTEWATER_TREATMENT,
1687
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/water_treatment.svg`,
1696
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/water_treatment.svg`,
1688
1697
  systemType: ENUM_TYPES.ETP_WASTEWATER_TREATMENT,
1689
1698
  },
1690
1699
  [ENUM_TEMPLATES.MBR_WASTEWATER_TREATMENT]: {
1691
1700
  name: ENUM_TEMPLATES.MBR_WASTEWATER_TREATMENT,
1692
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/MBR.svg`,
1701
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/MBR.svg`,
1693
1702
  // size: {
1694
1703
  // w: GRID_SIZE * 8,
1695
1704
  // h: GRID_SIZE * 6,
@@ -1698,7 +1707,7 @@ class GojsEditorModel {
1698
1707
  },
1699
1708
  [ENUM_TEMPLATES.ZLD_WASTEWATER_TREATMENT]: {
1700
1709
  name: ENUM_TEMPLATES.ZLD_WASTEWATER_TREATMENT,
1701
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/ZLD.svg`,
1710
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/ZLD.svg`,
1702
1711
  // size: {
1703
1712
  // w: GRID_SIZE * 8,
1704
1713
  // h: GRID_SIZE * 6,
@@ -1707,7 +1716,7 @@ class GojsEditorModel {
1707
1716
  },
1708
1717
  [ENUM_TEMPLATES.LANDSCAPING_IRRIGATION]: {
1709
1718
  name: ENUM_TEMPLATES.LANDSCAPING_IRRIGATION,
1710
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Irrigation.svg`,
1719
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Irrigation.svg`,
1711
1720
  // size: {
1712
1721
  // w: GRID_SIZE * 8,
1713
1722
  // h: GRID_SIZE * 6,
@@ -1716,7 +1725,7 @@ class GojsEditorModel {
1716
1725
  },
1717
1726
  [ENUM_TEMPLATES.OTHER]: {
1718
1727
  name: ENUM_TEMPLATES.OTHER,
1719
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/other.svg`,
1728
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/other.svg`,
1720
1729
  systemType: ENUM_TYPES.OTHER,
1721
1730
  },
1722
1731
  [ENUM_TEMPLATES.TEXT_NODE]: {
@@ -1736,46 +1745,46 @@ class GojsEditorModel {
1736
1745
  },
1737
1746
  [ENUM_TEMPLATES.SPECIAL_PROCESS]: {
1738
1747
  name: ENUM_TEMPLATES.SPECIAL_PROCESS,
1739
- icon: `${GojsEditorModel.SPECIAL_ICON_ASSET_PATH}/process.svg`,
1748
+ icon: `${AtoGojsEditorModel.SPECIAL_ICON_ASSET_PATH}/process.svg`,
1740
1749
  },
1741
1750
  [ENUM_TEMPLATES.SPECIAL_STORE]: {
1742
1751
  name: ENUM_TEMPLATES.SPECIAL_STORE,
1743
- icon: `${GojsEditorModel.SPECIAL_ICON_ASSET_PATH}/Discharge.svg`,
1752
+ icon: `${AtoGojsEditorModel.SPECIAL_ICON_ASSET_PATH}/Discharge.svg`,
1744
1753
  },
1745
1754
  [ENUM_TEMPLATES.SPECIAL_DISCHARGE]: {
1746
1755
  name: ENUM_TEMPLATES.SPECIAL_DISCHARGE,
1747
- icon: `${GojsEditorModel.SPECIAL_ICON_ASSET_PATH}/Discharge.svg`,
1756
+ icon: `${AtoGojsEditorModel.SPECIAL_ICON_ASSET_PATH}/Discharge.svg`,
1748
1757
  },
1749
1758
  [ENUM_TEMPLATES.THIRD_PARTY_SOURCES]: {
1750
1759
  name: ENUM_TEMPLATES.THIRD_PARTY_SOURCES,
1751
1760
  // icon: `${ICON_ASSET_PATH}/Intake.svg`,
1752
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Third Party Sources.svg`,
1761
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Third Party Sources.svg`,
1753
1762
  systemType: ENUM_TYPES.THIRD_PARTY_SOURCES,
1754
1763
  },
1755
1764
  [ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS]: {
1756
1765
  name: ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
1757
1766
  // icon: `${ICON_ASSET_PATH}/Intake.svg`,
1758
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Third party destinations.svg`,
1767
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Third party destinations.svg`,
1759
1768
  systemType: ENUM_TYPES.THIRD_PARTY_DESTINATIONS,
1760
1769
  },
1761
1770
  [ENUM_TEMPLATES.GROUND_WATER_NON_RENEWABLE]: {
1762
1771
  name: ENUM_TEMPLATES.GROUND_WATER_NON_RENEWABLE,
1763
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Groundwater - Non-Renewable.svg`,
1772
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Groundwater - Non-Renewable.svg`,
1764
1773
  systemType: ENUM_TYPES.GROUND_WATER_NON_RENEWABLE,
1765
1774
  },
1766
1775
  [ENUM_TEMPLATES.PRODUCED_ENTRAINED]: {
1767
1776
  name: ENUM_TEMPLATES.PRODUCED_ENTRAINED,
1768
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Produced Entrained Water.svg`,
1777
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Produced Entrained Water.svg`,
1769
1778
  systemType: ENUM_TYPES.PRODUCED_ENTRAINED,
1770
1779
  },
1771
1780
  [ENUM_TEMPLATES.BRACKISH_SURFACE_WATER]: {
1772
1781
  name: ENUM_TEMPLATES.BRACKISH_SURFACE_WATER,
1773
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Brackisk Surface Water Seawater.svg`,
1782
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Brackisk Surface Water Seawater.svg`,
1774
1783
  systemType: ENUM_TYPES.BRACKISH_SURFACE_WATER,
1775
1784
  },
1776
1785
  [ENUM_TEMPLATES.FRESH_SURFACE_WATER]: {
1777
1786
  name: ENUM_TEMPLATES.FRESH_SURFACE_WATER,
1778
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Fresh Surface Water.svg`,
1787
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Fresh Surface Water.svg`,
1779
1788
  systemType: ENUM_TYPES.FRESH_SURFACE_WATER,
1780
1789
  },
1781
1790
  [ENUM_TEMPLATES.UTILITY]: {
@@ -1785,18 +1794,18 @@ class GojsEditorModel {
1785
1794
  },
1786
1795
  [ENUM_TEMPLATES.GROUND_WATER_RENEWABLE]: {
1787
1796
  name: ENUM_TEMPLATES.GROUND_WATER_RENEWABLE,
1788
- icon: `${GojsEditorModel.ICON_ASSET_PATH}/Groundwater - Renewable.svg`,
1797
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Groundwater - Renewable.svg`,
1789
1798
  systemType: ENUM_TYPES.GROUND_WATER_RENEWABLE,
1790
1799
  },
1791
1800
  [ENUM_TEMPLATES.SPECIAL_OTHER]: {
1792
1801
  name: ENUM_TEMPLATES.SPECIAL_OTHER,
1793
- icon: `${GojsEditorModel.SPECIAL_ICON_ASSET_PATH}/Discharge.svg`,
1802
+ icon: `${AtoGojsEditorModel.SPECIAL_ICON_ASSET_PATH}/Discharge.svg`,
1794
1803
  },
1795
1804
  // Energy
1796
1805
  // Electric Node Template ====================================================================
1797
1806
  [ENUM_TEMPLATES.GRID]: {
1798
1807
  name: ENUM_TEMPLATES.GRID,
1799
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Grid.svg`,
1808
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Grid.svg`,
1800
1809
  systemType: ENUM_TYPES.GRID,
1801
1810
  // size: {
1802
1811
  // h: GRID_SIZE * 8,
@@ -1805,7 +1814,7 @@ class GojsEditorModel {
1805
1814
  },
1806
1815
  [ENUM_TEMPLATES.DIESEL_GENERATORS]: {
1807
1816
  name: ENUM_TEMPLATES.DIESEL_GENERATORS,
1808
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Diesel Generators.svg`,
1817
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Diesel Generators.svg`,
1809
1818
  systemType: ENUM_TYPES.DIESEL_GENERATORS,
1810
1819
  // size: {
1811
1820
  // h: GRID_SIZE * 8,
@@ -1814,133 +1823,133 @@ class GojsEditorModel {
1814
1823
  },
1815
1824
  [ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE]: {
1816
1825
  name: ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE,
1817
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Battery.svg`,
1826
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Battery.svg`,
1818
1827
  systemType: ENUM_TYPES.BATTERY_ENERGY_STORAGE,
1819
1828
  },
1820
1829
  [ENUM_TEMPLATES.LIGHTING_SYSTEMS]: {
1821
1830
  name: ENUM_TEMPLATES.LIGHTING_SYSTEMS,
1822
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Lighting systems.svg`,
1831
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Lighting systems.svg`,
1823
1832
  systemType: ENUM_TYPES.LIGHTING_SYSTEMS,
1824
1833
  },
1825
1834
  [ENUM_TEMPLATES.LIGHTINGS]: {
1826
1835
  name: ENUM_TEMPLATES.LIGHTINGS,
1827
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Lights.svg`,
1836
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Lights.svg`,
1828
1837
  systemType: ENUM_TYPES.LIGHTINGS,
1829
1838
  },
1830
1839
  [ENUM_TEMPLATES.ELECTRIC_METERS]: {
1831
1840
  name: ENUM_TEMPLATES.ELECTRIC_METERS,
1832
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Meter.svg`,
1841
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Meter.svg`,
1833
1842
  systemType: ENUM_TYPES.ELECTRIC_METERS,
1834
1843
  },
1835
1844
  [ENUM_TEMPLATES.TRANSFORMERS]: {
1836
1845
  name: ENUM_TEMPLATES.TRANSFORMERS,
1837
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Transformer.svg`,
1846
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Transformer.svg`,
1838
1847
  systemType: ENUM_TYPES.TRANSFORMERS,
1839
1848
  },
1840
1849
  [ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE]: {
1841
1850
  name: ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
1842
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Pumped hydro storage systems.svg`,
1851
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Pumped hydro storage systems.svg`,
1843
1852
  systemType: ENUM_TYPES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
1844
1853
  },
1845
1854
  [ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE]: {
1846
1855
  name: ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE,
1847
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Pumped hydro storage systems.svg`,
1856
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Pumped hydro storage systems.svg`,
1848
1857
  systemType: ENUM_TYPES.PUMPED_HYDRO_STORAGE,
1849
1858
  },
1850
1859
  [ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE]: {
1851
1860
  name: ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE,
1852
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Thermal energy storage systems.svg`,
1861
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Thermal energy storage systems.svg`,
1853
1862
  systemType: ENUM_TYPES.THERMAL_ENERGY_STORAGE,
1854
1863
  },
1855
1864
  [ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE]: {
1856
1865
  name: ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE,
1857
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Supercapacitor energy storage systems.svg`,
1866
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Supercapacitor energy storage systems.svg`,
1858
1867
  systemType: ENUM_TYPES.SUPER_CAPACITOR_ENERGY_STORAGE,
1859
1868
  },
1860
1869
  [ENUM_TEMPLATES.SWITCH_GEARS]: {
1861
1870
  name: ENUM_TEMPLATES.SWITCH_GEARS,
1862
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Switchgear.svg`,
1871
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Switchgear.svg`,
1863
1872
  systemType: ENUM_TYPES.SWITCH_GEARS,
1864
1873
  },
1865
1874
  [ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS]: {
1866
1875
  name: ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS,
1867
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Process control and automation systems.svg`,
1876
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Process control and automation systems.svg`,
1868
1877
  systemType: ENUM_TYPES.PROCESS_CONTROL_AUTOMATION_SYSTEMS,
1869
1878
  },
1870
1879
  [ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES]: {
1871
1880
  name: ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES,
1872
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Process equipment and machines.svg`,
1881
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Process equipment and machines.svg`,
1873
1882
  systemType: ENUM_TYPES.PROCESS_EQUIPMENT_MACHINES,
1874
1883
  },
1875
1884
  [ENUM_TEMPLATES.OFFICE_EQUIPMENT]: {
1876
1885
  name: ENUM_TEMPLATES.OFFICE_EQUIPMENT,
1877
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Office equipment.svg`,
1886
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Office equipment.svg`,
1878
1887
  systemType: ENUM_TYPES.OFFICE_EQUIPMENT,
1879
1888
  },
1880
1889
  [ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS]: {
1881
1890
  name: ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
1882
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution and control systems.svg`,
1891
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution and control systems.svg`,
1883
1892
  systemType: ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
1884
1893
  },
1885
1894
  [ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS]: {
1886
1895
  name: ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS,
1887
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution systems.svg`,
1896
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution systems.svg`,
1888
1897
  systemType: ENUM_TYPES.POWER_DISTRIBUTION_SYSTEMS,
1889
1898
  },
1890
1899
  [ENUM_TEMPLATES.NATURAL_GAS_GENERATORS]: {
1891
1900
  name: ENUM_TEMPLATES.NATURAL_GAS_GENERATORS,
1892
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Natural gas generators.svg`,
1901
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Natural gas generators.svg`,
1893
1902
  systemType: ENUM_TYPES.NATURAL_GAS_GENERATORS,
1894
1903
  },
1895
1904
  [ENUM_TEMPLATES.MOTOR_CONTROLS]: {
1896
1905
  name: ENUM_TEMPLATES.MOTOR_CONTROLS,
1897
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Motor control centers (MCCs).svg`,
1906
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Motor control centers (MCCs).svg`,
1898
1907
  systemType: ENUM_TYPES.MOTOR_CONTROLS,
1899
1908
  },
1900
1909
  [ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS]: {
1901
1910
  name: ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS,
1902
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Variable frequency drives (VFDs).svg`,
1911
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Variable frequency drives (VFDs).svg`,
1903
1912
  systemType: ENUM_TYPES.VARIABLE_FREQUENCY_DRIVERS,
1904
1913
  },
1905
1914
  [ENUM_TEMPLATES.ELECTRIC_HVAC]: {
1906
1915
  name: ENUM_TEMPLATES.ELECTRIC_HVAC,
1907
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Gas HVAC.svg`,
1916
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Gas HVAC.svg`,
1908
1917
  systemType: ENUM_TYPES.ELECTRIC_HVAC,
1909
1918
  },
1910
1919
  [ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS]: {
1911
1920
  name: ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS,
1912
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Compressed air.svg`,
1921
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Compressed air.svg`,
1913
1922
  systemType: ENUM_TYPES.COMPRESSED_AIR_SYSTEMS,
1914
1923
  },
1915
1924
  [ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS]: {
1916
1925
  name: ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS,
1917
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Refrigeration and cooling systems.svg`,
1926
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Refrigeration and cooling systems.svg`,
1918
1927
  systemType: ENUM_TYPES.REFRIGERATION_COOLING_SYSTEMS,
1919
1928
  },
1920
1929
  [ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT]: {
1921
1930
  name: ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT,
1922
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Material handling equipment.svg`,
1931
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Material handling equipment.svg`,
1923
1932
  systemType: ENUM_TYPES.MATERIAL_HANDLING_EQUIPMENT,
1924
1933
  },
1925
1934
  [ENUM_TEMPLATES.WIND_POWER]: {
1926
1935
  name: ENUM_TEMPLATES.WIND_POWER,
1927
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Wind Power.svg`,
1936
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Wind Power.svg`,
1928
1937
  systemType: ENUM_TYPES.WIND_POWER,
1929
1938
  },
1930
1939
  [ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS]: {
1931
1940
  name: ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS,
1932
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Industrial motors.svg`,
1941
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Industrial motors.svg`,
1933
1942
  systemType: ENUM_TYPES.ELECTRIC_INDUSTRIAL_MOTORS,
1934
1943
  },
1935
1944
  [ENUM_TEMPLATES.GROUNDING]: {
1936
1945
  name: ENUM_TEMPLATES.GROUNDING,
1937
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Grounding systems.svg`,
1946
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Grounding systems.svg`,
1938
1947
  systemType: ENUM_TYPES.GROUNDING,
1939
1948
  },
1940
1949
  // Gas ================================================================================
1941
1950
  [ENUM_TEMPLATES.NATURAL_GAS_PIPELINES]: {
1942
1951
  name: ENUM_TEMPLATES.NATURAL_GAS_PIPELINES,
1943
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Natural gas pipelines.svg`,
1952
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Natural gas pipelines.svg`,
1944
1953
  systemType: ENUM_TYPES.NATURAL_GAS_PIPELINES,
1945
1954
  },
1946
1955
  // [ENUM_TEMPLATES.LIQUEFIED_NATURAL_GAS]: {
@@ -1950,7 +1959,7 @@ class GojsEditorModel {
1950
1959
  // },
1951
1960
  [ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE]: {
1952
1961
  name: ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE,
1953
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Compressed natural gas pipeline (CNG).svg`,
1962
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Compressed natural gas pipeline (CNG).svg`,
1954
1963
  systemType: ENUM_TYPES.COMPRESSED_NATURAL_GAS_PIPELINE,
1955
1964
  },
1956
1965
  // [ENUM_TEMPLATES.ON_SITE_PRODUCTION]: {
@@ -1960,42 +1969,42 @@ class GojsEditorModel {
1960
1969
  // },
1961
1970
  [ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PRODUCTION]: {
1962
1971
  name: ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PRODUCTION,
1963
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Compressed natural gas pipeline (CNG).svg`,
1972
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Compressed natural gas pipeline (CNG).svg`,
1964
1973
  systemType: ENUM_TYPES.COMPRESSED_NATURAL_GAS_PRODUCTION,
1965
1974
  },
1966
1975
  [ENUM_TEMPLATES.BOILERS_AND_HEATERS]: {
1967
1976
  name: ENUM_TEMPLATES.BOILERS_AND_HEATERS,
1968
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Boilers and heaters.svg`,
1977
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Boilers and heaters.svg`,
1969
1978
  systemType: ENUM_TYPES.BOILERS_AND_HEATERS,
1970
1979
  },
1971
1980
  [ENUM_TEMPLATES.FURNACES]: {
1972
1981
  name: ENUM_TEMPLATES.FURNACES,
1973
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Furnaces.svg`,
1982
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Furnaces.svg`,
1974
1983
  systemType: ENUM_TYPES.FURNACES,
1975
1984
  },
1976
1985
  [ENUM_TEMPLATES.POWER_GENERATION]: {
1977
1986
  name: ENUM_TEMPLATES.POWER_GENERATION,
1978
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Power generation.svg`,
1987
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Power generation.svg`,
1979
1988
  systemType: ENUM_TYPES.POWER_GENERATION,
1980
1989
  },
1981
1990
  [ENUM_TEMPLATES.COGENERATION]: {
1982
1991
  name: ENUM_TEMPLATES.COGENERATION,
1983
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Cogeneration.svg`,
1992
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Cogeneration.svg`,
1984
1993
  systemType: ENUM_TYPES.COGENERATION,
1985
1994
  },
1986
1995
  [ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS]: {
1987
1996
  name: ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS,
1988
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Combined cycle power plants.svg`,
1997
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Combined cycle power plants.svg`,
1989
1998
  systemType: ENUM_TYPES.COMBINED_CYCLE_POWER_PLANTS,
1990
1999
  },
1991
2000
  [ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT]: {
1992
2001
  name: ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT,
1993
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Fuel for vehicles and equipment.svg`,
2002
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Fuel for vehicles and equipment.svg`,
1994
2003
  systemType: ENUM_TYPES.FUEL_FOR_VEHICLES_AND_EQUIPMENT,
1995
2004
  },
1996
2005
  [ENUM_TEMPLATES.GAS_METERS]: {
1997
2006
  name: ENUM_TEMPLATES.GAS_METERS,
1998
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Gas meters.svg`,
2007
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Gas meters.svg`,
1999
2008
  systemType: ENUM_TYPES.GAS_METERS,
2000
2009
  },
2001
2010
  // [ENUM_TEMPLATES.BURNERS]: {
@@ -2010,155 +2019,155 @@ class GojsEditorModel {
2010
2019
  // },
2011
2020
  [ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS]: {
2012
2021
  name: ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS,
2013
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Combustion control systems.svg`,
2022
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Combustion control systems.svg`,
2014
2023
  systemType: ENUM_TYPES.COMBUSTION_CONTROL_SYSTEMS,
2015
2024
  },
2016
2025
  [ENUM_TEMPLATES.GAS_STORAGE_TANKS]: {
2017
2026
  name: ENUM_TEMPLATES.GAS_STORAGE_TANKS,
2018
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Gas storage tanks.svg`,
2027
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Gas storage tanks.svg`,
2019
2028
  systemType: ENUM_TYPES.GAS_STORAGE_TANKS,
2020
2029
  },
2021
2030
  [ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS]: {
2022
2031
  name: ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS,
2023
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Gas pressure regulators.svg`,
2032
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Gas pressure regulators.svg`,
2024
2033
  systemType: ENUM_TYPES.GAS_PRESSURE_REGULATORS,
2025
2034
  },
2026
2035
  [ENUM_TEMPLATES.NATURAL_GAS]: {
2027
2036
  name: ENUM_TEMPLATES.NATURAL_GAS,
2028
- icon: `${GojsEditorModel.GAS_ICON_ASSET_PATH}/Natural Gas.svg`,
2037
+ icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Natural Gas.svg`,
2029
2038
  systemType: ENUM_TYPES.NATURAL_GAS,
2030
2039
  },
2031
2040
  // Fuel==========================================================
2032
2041
  [ENUM_TEMPLATES.DIESEL_FUELS]: {
2033
2042
  name: ENUM_TEMPLATES.DIESEL_FUELS,
2034
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Diesel fuel.svg`,
2043
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Diesel fuel.svg`,
2035
2044
  systemType: ENUM_TYPES.DIESEL_FUELS,
2036
2045
  },
2037
2046
  [ENUM_TEMPLATES.GASON_LINES]: {
2038
2047
  name: ENUM_TEMPLATES.GASON_LINES,
2039
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Gasoline.svg`,
2048
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Gasoline.svg`,
2040
2049
  systemType: ENUM_TYPES.GASON_LINES,
2041
2050
  },
2042
2051
  [ENUM_TEMPLATES.BIODIESELS]: {
2043
2052
  name: ENUM_TEMPLATES.BIODIESELS,
2044
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Biodiesel.svg`,
2053
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Biodiesel.svg`,
2045
2054
  systemType: ENUM_TYPES.BIODIESELS,
2046
2055
  },
2047
2056
  [ENUM_TEMPLATES.KEROSENSE]: {
2048
2057
  name: ENUM_TEMPLATES.KEROSENSE,
2049
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Kerosene.svg`,
2058
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Kerosene.svg`,
2050
2059
  systemType: ENUM_TYPES.KEROSENSE,
2051
2060
  },
2052
2061
  [ENUM_TEMPLATES.PROPANES]: {
2053
2062
  name: ENUM_TEMPLATES.PROPANES,
2054
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Propane.svg`,
2063
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Propane.svg`,
2055
2064
  systemType: ENUM_TYPES.PROPANES,
2056
2065
  },
2057
2066
  [ENUM_TEMPLATES.TANKER_TRUCKS]: {
2058
2067
  name: ENUM_TEMPLATES.TANKER_TRUCKS,
2059
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Tanker Trucks.svg`,
2068
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Tanker Trucks.svg`,
2060
2069
  systemType: ENUM_TYPES.TANKER_TRUCKS,
2061
2070
  },
2062
2071
  [ENUM_TEMPLATES.PIPELINE]: {
2063
2072
  name: ENUM_TEMPLATES.PIPELINE,
2064
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Pipeline.svg`,
2073
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Pipeline.svg`,
2065
2074
  systemType: ENUM_TYPES.PIPELINE,
2066
2075
  },
2067
2076
  [ENUM_TEMPLATES.INDUSTRIAL_BOILERS]: {
2068
2077
  name: ENUM_TEMPLATES.INDUSTRIAL_BOILERS,
2069
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial boilers.svg`,
2078
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial boilers.svg`,
2070
2079
  systemType: ENUM_TYPES.INDUSTRIAL_BOILERS,
2071
2080
  },
2072
2081
  [ENUM_TEMPLATES.GENERATORS]: {
2073
2082
  name: ENUM_TEMPLATES.GENERATORS,
2074
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Generators.svg`,
2083
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Generators.svg`,
2075
2084
  systemType: ENUM_TYPES.GENERATORS,
2076
2085
  },
2077
2086
  [ENUM_TEMPLATES.INDUSTRIAL_FURNACES]: {
2078
2087
  name: ENUM_TEMPLATES.INDUSTRIAL_FURNACES,
2079
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial furnaces.svg`,
2088
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial furnaces.svg`,
2080
2089
  systemType: ENUM_TYPES.INDUSTRIAL_FURNACES,
2081
2090
  },
2082
2091
  [ENUM_TEMPLATES.INDUSTRIAL_OVENS]: {
2083
2092
  name: ENUM_TEMPLATES.INDUSTRIAL_OVENS,
2084
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial ovens.svg`,
2093
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial ovens.svg`,
2085
2094
  systemType: ENUM_TYPES.INDUSTRIAL_OVENS,
2086
2095
  },
2087
2096
  [ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT]: {
2088
2097
  name: ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT,
2089
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial vehicles and equipment.svg`,
2098
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial vehicles and equipment.svg`,
2090
2099
  systemType: ENUM_TYPES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT,
2091
2100
  },
2092
2101
  [ENUM_TEMPLATES.FUEL_METERS]: {
2093
2102
  name: ENUM_TEMPLATES.FUEL_METERS,
2094
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel meters.svg`,
2103
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel meters.svg`,
2095
2104
  systemType: ENUM_TYPES.FUEL_METERS,
2096
2105
  },
2097
2106
  [ENUM_TEMPLATES.FUEL_DISPENSERS]: {
2098
2107
  name: ENUM_TEMPLATES.FUEL_DISPENSERS,
2099
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel dispensers.svg`,
2108
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel dispensers.svg`,
2100
2109
  systemType: ENUM_TYPES.FUEL_DISPENSERS,
2101
2110
  },
2102
2111
  [ENUM_TEMPLATES.FUEL_STRORAGE_TANKS]: {
2103
2112
  name: ENUM_TEMPLATES.FUEL_STRORAGE_TANKS,
2104
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel storage tanks.svg`,
2113
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel storage tanks.svg`,
2105
2114
  systemType: ENUM_TYPES.FUEL_STRORAGE_TANKS,
2106
2115
  },
2107
2116
  [ENUM_TEMPLATES.FUEL_FILTRATIONS]: {
2108
2117
  name: ENUM_TEMPLATES.FUEL_FILTRATIONS,
2109
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel filtration systems.svg`,
2118
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel filtration systems.svg`,
2110
2119
  systemType: ENUM_TYPES.FUEL_FILTRATIONS,
2111
2120
  },
2112
2121
  [ENUM_TEMPLATES.FUEL_MANAGEMENTS]: {
2113
2122
  name: ENUM_TEMPLATES.FUEL_MANAGEMENTS,
2114
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel management systems.svg`,
2123
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel management systems.svg`,
2115
2124
  systemType: ENUM_TYPES.FUEL_MANAGEMENTS,
2116
2125
  },
2117
2126
  [ENUM_TEMPLATES.FUELS]: {
2118
2127
  name: ENUM_TEMPLATES.FUELS,
2119
- icon: `${GojsEditorModel.FUEL_ICON_ASSET_PATH}/Diesel fuel.svg`,
2128
+ icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Diesel fuel.svg`,
2120
2129
  systemType: ENUM_TYPES.FUELS,
2121
2130
  },
2122
2131
  // Gas new
2123
2132
  [ENUM_TEMPLATES.LIQUEFIED_NATURAL_GAS]: {
2124
2133
  name: ENUM_TEMPLATES.LIQUEFIED_NATURAL_GAS,
2125
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Natural gas generators.svg`,
2134
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Natural gas generators.svg`,
2126
2135
  systemType: ENUM_TYPES.LIQUEFIED_NATURAL_GAS,
2127
2136
  },
2128
2137
  [ENUM_TEMPLATES.ON_SITE_PRODUCTION]: {
2129
2138
  name: ENUM_TEMPLATES.ON_SITE_PRODUCTION,
2130
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Natural gas generators.svg`,
2139
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Natural gas generators.svg`,
2131
2140
  systemType: ENUM_TYPES.ON_SITE_PRODUCTION,
2132
2141
  },
2133
2142
  [ENUM_TEMPLATES.BURNERS]: {
2134
2143
  name: ENUM_TEMPLATES.BURNERS,
2135
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power conditioning unit (PCU).svg`,
2144
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power conditioning unit (PCU).svg`,
2136
2145
  systemType: ENUM_TYPES.BURNERS,
2137
2146
  },
2138
2147
  [ENUM_TEMPLATES.FLUE_GAS_ANALYZERS]: {
2139
2148
  name: ENUM_TEMPLATES.FLUE_GAS_ANALYZERS,
2140
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power conditioning unit (PCU).svg`,
2149
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power conditioning unit (PCU).svg`,
2141
2150
  systemType: ENUM_TYPES.FLUE_GAS_ANALYZERS,
2142
2151
  },
2143
2152
  // Solar ==========================================================
2144
2153
  [ENUM_TEMPLATES.SOLAR_POWER]: {
2145
2154
  name: ENUM_TEMPLATES.SOLAR_POWER,
2146
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Solar.svg`,
2155
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Solar.svg`,
2147
2156
  systemType: ENUM_TYPES.SOLAR_POWER,
2148
2157
  },
2149
2158
  [ENUM_TEMPLATES.POWER_CONDITIONING_UNIT]: {
2150
2159
  name: ENUM_TEMPLATES.POWER_CONDITIONING_UNIT,
2151
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power conditioning unit (PCU).svg`,
2160
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power conditioning unit (PCU).svg`,
2152
2161
  systemType: ENUM_TYPES.POWER_CONDITIONING_UNIT,
2153
2162
  },
2154
2163
  [ENUM_TEMPLATES.INVERTERS]: {
2155
2164
  name: ENUM_TEMPLATES.INVERTERS,
2156
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Inverter.svg`,
2165
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Inverter.svg`,
2157
2166
  systemType: ENUM_TYPES.INVERTERS,
2158
2167
  },
2159
2168
  [ENUM_TEMPLATES.BATTERIES]: {
2160
2169
  name: ENUM_TEMPLATES.BATTERIES,
2161
- icon: `${GojsEditorModel.ENERGY_ICON_ASSET_PATH}/Battery.svg`,
2170
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Battery.svg`,
2162
2171
  systemType: ENUM_TYPES.BATTERIES,
2163
2172
  },
2164
2173
  [ENUM_TEMPLATES.ZONE]: {
@@ -2177,7 +2186,7 @@ class GojsEditorModel {
2177
2186
  // Plant Cell
2178
2187
  [ENUM_TEMPLATES.PLANT_CELL]: {
2179
2188
  name: ENUM_TEMPLATES.PLANT_CELL,
2180
- icon: `${GojsEditorModel.PLANT_CELL_PATH}/Cell.svg`,
2189
+ icon: `${AtoGojsEditorModel.PLANT_CELL_PATH}/Cell.svg`,
2181
2190
  systemType: ENUM_TYPES.PLANT_CELL,
2182
2191
  },
2183
2192
  [ENUM_TEMPLATES.INPUT_PLANT_CELL]: {
@@ -2211,47 +2220,47 @@ class GojsEditorModel {
2211
2220
  // STEAM
2212
2221
  [ENUM_TEMPLATES.VALUES]: {
2213
2222
  name: ENUM_TEMPLATES.VALUES,
2214
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/Steam_Valve.png`,
2223
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Steam_Valve.png`,
2215
2224
  },
2216
2225
  [ENUM_TEMPLATES.STEAM_TRAPS]: {
2217
2226
  name: ENUM_TEMPLATES.STEAM_TRAPS,
2218
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/Trap.png`,
2227
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Trap.png`,
2219
2228
  },
2220
2229
  [ENUM_TEMPLATES.PRESSURE_REGULATORS]: {
2221
2230
  name: ENUM_TEMPLATES.PRESSURE_REGULATORS,
2222
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/Pressure_Regulator.png`,
2231
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Pressure_Regulator.png`,
2223
2232
  },
2224
2233
  [ENUM_TEMPLATES.SAFETY_VALUES_AND_EQUIPMENT]: {
2225
2234
  name: ENUM_TEMPLATES.SAFETY_VALUES_AND_EQUIPMENT,
2226
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/safety valve.png`,
2235
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/safety valve.png`,
2227
2236
  },
2228
2237
  [ENUM_TEMPLATES.CONDENSATE_RETURN_SYSTEM]: {
2229
2238
  name: ENUM_TEMPLATES.CONDENSATE_RETURN_SYSTEM,
2230
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/Condensate Return System.png`,
2239
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Condensate Return System.png`,
2231
2240
  },
2232
2241
  [ENUM_TEMPLATES.DEAERATORS]: {
2233
2242
  name: ENUM_TEMPLATES.DEAERATORS,
2234
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/Deaerators.png`,
2243
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Deaerators.png`,
2235
2244
  },
2236
2245
  [ENUM_TEMPLATES.FEEDWATER_PUMPS]: {
2237
2246
  name: ENUM_TEMPLATES.FEEDWATER_PUMPS,
2238
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/Feed Water Pump.png`,
2247
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Feed Water Pump.png`,
2239
2248
  },
2240
2249
  [ENUM_TEMPLATES.BLOWDOWN_TANKS]: {
2241
2250
  name: ENUM_TEMPLATES.BLOWDOWN_TANKS,
2242
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/Blowdown tank.png`,
2251
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Blowdown tank.png`,
2243
2252
  },
2244
2253
  [ENUM_TEMPLATES.EXPANSION_TANKS]: {
2245
2254
  name: ENUM_TEMPLATES.EXPANSION_TANKS,
2246
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/Expansion Tanks.png`,
2255
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Expansion Tanks.png`,
2247
2256
  },
2248
2257
  [ENUM_TEMPLATES.HEAT_EXCHANGERS]: {
2249
2258
  name: ENUM_TEMPLATES.HEAT_EXCHANGERS,
2250
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/heat exchangers.png`,
2259
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/heat exchangers.png`,
2251
2260
  },
2252
2261
  [ENUM_TEMPLATES.TURBINES]: {
2253
2262
  name: ENUM_TEMPLATES.TURBINES,
2254
- icon: `${GojsEditorModel.STEAM_ICON_ASSET_PATH}/steam turbine.png`,
2263
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/steam turbine.png`,
2255
2264
  },
2256
2265
  // Plant Basic
2257
2266
  [ENUM_TEMPLATES.GROUP_BASIC_COMPONENT]: {
@@ -2259,46 +2268,46 @@ class GojsEditorModel {
2259
2268
  icon: ``,
2260
2269
  },
2261
2270
  };
2262
- GojsEditorModel.WITHDRAW_DISCHARGE_ICON = {
2271
+ AtoGojsEditorModel.WITHDRAW_DISCHARGE_ICON = {
2263
2272
  [ENUM_TYPES.FRESH_SURFACE_WATER]: {
2264
2273
  name: ENUM_TEMPLATES.FRESH_SURFACE_WATER,
2265
- iconActive: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Fresh surface water - Duo.svg`,
2266
- iconDisabled: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Fresh surface water.svg`,
2274
+ iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Fresh surface water - Duo.svg`,
2275
+ iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Fresh surface water.svg`,
2267
2276
  },
2268
2277
  [ENUM_TYPES.THIRD_PARTY_SOURCES]: {
2269
2278
  name: ENUM_TEMPLATES.THIRD_PARTY_SOURCES,
2270
- iconActive: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources - Duo.svg`,
2271
- iconDisabled: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources.svg`,
2279
+ iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources - Duo.svg`,
2280
+ iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources.svg`,
2272
2281
  isHasWaterCapcity: true,
2273
2282
  },
2274
2283
  [ENUM_TYPES.THIRD_PARTY_DESTINATIONS]: {
2275
2284
  name: ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
2276
- iconActive: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources - Duo.svg`,
2277
- iconDisabled: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources.svg`,
2285
+ iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources - Duo.svg`,
2286
+ iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources.svg`,
2278
2287
  isHasWaterCapcity: true,
2279
2288
  },
2280
2289
  [ENUM_TYPES.GROUND_WATER_NON_RENEWABLE]: {
2281
2290
  name: ENUM_TEMPLATES.GROUND_WATER_NON_RENEWABLE,
2282
- iconActive: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - non-renewable - Duo.svg`,
2283
- iconDisabled: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - non-renewable.svg`,
2291
+ iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - non-renewable - Duo.svg`,
2292
+ iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - non-renewable.svg`,
2284
2293
  },
2285
2294
  [ENUM_TYPES.PRODUCED_ENTRAINED]: {
2286
2295
  name: ENUM_TEMPLATES.PRODUCED_ENTRAINED,
2287
- iconActive: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable - Duo.svg`,
2288
- iconDisabled: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable.svg`,
2296
+ iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable - Duo.svg`,
2297
+ iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable.svg`,
2289
2298
  },
2290
2299
  [ENUM_TYPES.BRACKISH_SURFACE_WATER]: {
2291
2300
  name: ENUM_TEMPLATES.BRACKISH_SURFACE_WATER,
2292
- iconiconActive: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Brackish surface - Duo.svg`,
2293
- iconDisabled: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Brackish surface.svg`,
2301
+ iconiconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Brackish surface - Duo.svg`,
2302
+ iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Brackish surface.svg`,
2294
2303
  },
2295
2304
  [ENUM_TYPES.GROUND_WATER_RENEWABLE]: {
2296
2305
  name: ENUM_TEMPLATES.GROUND_WATER_RENEWABLE,
2297
- iconActive: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable - Duo.svg`,
2298
- iconDisabled: `${GojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable.svg`,
2306
+ iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable - Duo.svg`,
2307
+ iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable.svg`,
2299
2308
  },
2300
2309
  };
2301
- GojsEditorModel.WITHDRAW_DISCHARGE_DIAGRAM_HOME = {
2310
+ AtoGojsEditorModel.WITHDRAW_DISCHARGE_DIAGRAM_HOME = {
2302
2311
  withdrawSourcesChildren: [
2303
2312
  ENUM_TYPES.WATER_TREATMENT,
2304
2313
  ENUM_TYPES.DEMIN_WATER_TREATMENT,
@@ -2319,20 +2328,20 @@ class GojsEditorModel {
2319
2328
  ACTION_RIGHT_MENU_GROUP["DATA_BOX"] = "Measurement";
2320
2329
  ACTION_RIGHT_MENU_GROUP["SYSTEM_TEMPLATES"] = "System Templates";
2321
2330
  ACTION_RIGHT_MENU_GROUP["WATER_COMPONENT"] = "Water Components";
2322
- })(ACTION_RIGHT_MENU_GROUP = GojsEditorModel.ACTION_RIGHT_MENU_GROUP || (GojsEditorModel.ACTION_RIGHT_MENU_GROUP = {}));
2331
+ })(ACTION_RIGHT_MENU_GROUP = AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP || (AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP = {}));
2323
2332
  let DATA_BOX_NAME_OF_COMPONENT;
2324
2333
  (function (DATA_BOX_NAME_OF_COMPONENT) {
2325
2334
  DATA_BOX_NAME_OF_COMPONENT["INFLOW"] = "Inflow Of";
2326
2335
  DATA_BOX_NAME_OF_COMPONENT["OUTFLOW"] = "Outflow From";
2327
- })(DATA_BOX_NAME_OF_COMPONENT = GojsEditorModel.DATA_BOX_NAME_OF_COMPONENT || (GojsEditorModel.DATA_BOX_NAME_OF_COMPONENT = {}));
2336
+ })(DATA_BOX_NAME_OF_COMPONENT = AtoGojsEditorModel.DATA_BOX_NAME_OF_COMPONENT || (AtoGojsEditorModel.DATA_BOX_NAME_OF_COMPONENT = {}));
2328
2337
  let ACTION_RIGHT_MENU;
2329
2338
  (function (ACTION_RIGHT_MENU) {
2330
2339
  ACTION_RIGHT_MENU["APPLY_TEMPLATE"] = "ApplyTemplate";
2331
2340
  ACTION_RIGHT_MENU["NEW_PLANT_CELL"] = "NewPlantCell";
2332
2341
  ACTION_RIGHT_MENU["NAME_PLANT_CELL"] = "NamePlantCell";
2333
2342
  ACTION_RIGHT_MENU["ADD_COMPONENT"] = "AddComponent";
2334
- })(ACTION_RIGHT_MENU = GojsEditorModel.ACTION_RIGHT_MENU || (GojsEditorModel.ACTION_RIGHT_MENU = {}));
2335
- GojsEditorModel.DATA_MENU = [
2343
+ })(ACTION_RIGHT_MENU = AtoGojsEditorModel.ACTION_RIGHT_MENU || (AtoGojsEditorModel.ACTION_RIGHT_MENU = {}));
2344
+ AtoGojsEditorModel.DATA_MENU = [
2336
2345
  {
2337
2346
  name: 'Plant Templates',
2338
2347
  componentType: ATO_ECOMPONENT_PLANT_TYPE.WATER,
@@ -2380,7 +2389,7 @@ class GojsEditorModel {
2380
2389
  // ],
2381
2390
  // },
2382
2391
  ];
2383
- GojsEditorModel.WATER_USING_SYSTEM = [
2392
+ AtoGojsEditorModel.WATER_USING_SYSTEM = [
2384
2393
  ENUM_TYPES.COOLING_TOWER,
2385
2394
  ENUM_TYPES.BOILER,
2386
2395
  ENUM_TYPES.OTHER,
@@ -2388,7 +2397,7 @@ class GojsEditorModel {
2388
2397
  ENUM_TYPES.DOMESTIC_USE,
2389
2398
  ENUM_TYPES.LANDSCAPING_IRRIGATION,
2390
2399
  ];
2391
- GojsEditorModel.PARAM_TABLE_STYLE = {
2400
+ AtoGojsEditorModel.PARAM_TABLE_STYLE = {
2392
2401
  [ENUM_COLORS.CERULEAN]: {
2393
2402
  borderTable: ENUM_COLORS.CERULEAN,
2394
2403
  bgColor: ENUM_COLORS.CERULEAN_ALICE_BLUE,
@@ -2411,7 +2420,7 @@ class GojsEditorModel {
2411
2420
  },
2412
2421
  };
2413
2422
  // System type include Water
2414
- GojsEditorModel.TYPE_COMPONENT_WATER = [
2423
+ AtoGojsEditorModel.TYPE_COMPONENT_WATER = [
2415
2424
  ENUM_TYPES.STORAGE,
2416
2425
  ENUM_TYPES.WATER_TREATMENT,
2417
2426
  ENUM_TYPES.DEMIN_WATER_TREATMENT,
@@ -2427,139 +2436,139 @@ class GojsEditorModel {
2427
2436
  ENUM_TYPES.BOILER,
2428
2437
  ENUM_TYPES.OTHER,
2429
2438
  ENUM_TYPES.LANDSCAPING_IRRIGATION,
2430
- GojsEditorModel.WaterWithdrawSources,
2431
- GojsEditorModel.WaterDischargeDestinations,
2439
+ AtoGojsEditorModel.WaterWithdrawSources,
2440
+ AtoGojsEditorModel.WaterDischargeDestinations,
2432
2441
  ];
2433
2442
  // Template type includes Water
2434
- GojsEditorModel.TYPE_TEMPLATE_WATER_NORMAL = [
2435
- GojsEditorModel.ENUM_TEMPLATES.PROCESS,
2436
- GojsEditorModel.ENUM_TEMPLATES.BOILER,
2437
- GojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER,
2438
- GojsEditorModel.ENUM_TEMPLATES.ETP_WASTEWATER_TREATMENT,
2439
- GojsEditorModel.ENUM_TEMPLATES.ZLD_WASTEWATER_TREATMENT,
2440
- GojsEditorModel.ENUM_TEMPLATES.MBR_WASTEWATER_TREATMENT,
2441
- GojsEditorModel.ENUM_TEMPLATES.DAF_WASTEWATER_TREATMENT,
2442
- GojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT,
2443
- GojsEditorModel.ENUM_TEMPLATES.DEMIN_WATER_TREATMENT,
2444
- GojsEditorModel.ENUM_TEMPLATES.STORAGE,
2445
- GojsEditorModel.ENUM_TEMPLATES.DOMESTIC_USE,
2446
- GojsEditorModel.ENUM_TEMPLATES.LANDSCAPING_IRRIGATION,
2447
- GojsEditorModel.ENUM_TEMPLATES.OTHER,
2443
+ AtoGojsEditorModel.TYPE_TEMPLATE_WATER_NORMAL = [
2444
+ AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS,
2445
+ AtoGojsEditorModel.ENUM_TEMPLATES.BOILER,
2446
+ AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER,
2447
+ AtoGojsEditorModel.ENUM_TEMPLATES.ETP_WASTEWATER_TREATMENT,
2448
+ AtoGojsEditorModel.ENUM_TEMPLATES.ZLD_WASTEWATER_TREATMENT,
2449
+ AtoGojsEditorModel.ENUM_TEMPLATES.MBR_WASTEWATER_TREATMENT,
2450
+ AtoGojsEditorModel.ENUM_TEMPLATES.DAF_WASTEWATER_TREATMENT,
2451
+ AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT,
2452
+ AtoGojsEditorModel.ENUM_TEMPLATES.DEMIN_WATER_TREATMENT,
2453
+ AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE,
2454
+ AtoGojsEditorModel.ENUM_TEMPLATES.DOMESTIC_USE,
2455
+ AtoGojsEditorModel.ENUM_TEMPLATES.LANDSCAPING_IRRIGATION,
2456
+ AtoGojsEditorModel.ENUM_TEMPLATES.OTHER,
2448
2457
  ];
2449
2458
  // ['Process', 'Boiler', 'Cooling Tower', 'ETP Wastewater Treatment', 'ZLD Wastewater Treatment', 'MBR Wastewater Treatment', 'DAF Wastewater Treatment',
2450
2459
  // 'RO Water Treatment', 'Demin Water Treatment', 'Storage', 'Domestic Use', 'Landscaping/Irrigation', 'Other'];
2451
- GojsEditorModel.TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE = [
2452
- GojsEditorModel.ENUM_TEMPLATES.FRESH_SURFACE_WATER,
2453
- GojsEditorModel.ENUM_TEMPLATES.BRACKISH_SURFACE_WATER,
2454
- GojsEditorModel.ENUM_TEMPLATES.GROUND_WATER_RENEWABLE,
2455
- GojsEditorModel.ENUM_TEMPLATES.GROUND_WATER_NON_RENEWABLE,
2456
- GojsEditorModel.ENUM_TEMPLATES.PRODUCED_ENTRAINED,
2457
- GojsEditorModel.ENUM_TEMPLATES.THIRD_PARTY_SOURCES,
2458
- GojsEditorModel.ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
2460
+ AtoGojsEditorModel.TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE = [
2461
+ AtoGojsEditorModel.ENUM_TEMPLATES.FRESH_SURFACE_WATER,
2462
+ AtoGojsEditorModel.ENUM_TEMPLATES.BRACKISH_SURFACE_WATER,
2463
+ AtoGojsEditorModel.ENUM_TEMPLATES.GROUND_WATER_RENEWABLE,
2464
+ AtoGojsEditorModel.ENUM_TEMPLATES.GROUND_WATER_NON_RENEWABLE,
2465
+ AtoGojsEditorModel.ENUM_TEMPLATES.PRODUCED_ENTRAINED,
2466
+ AtoGojsEditorModel.ENUM_TEMPLATES.THIRD_PARTY_SOURCES,
2467
+ AtoGojsEditorModel.ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
2459
2468
  ];
2460
2469
  // ['Fresh surface water', 'Brackish surface water/ seawater', 'Groundwater - Renewable', 'Groundwater - non-renewable', 'Produced / entrained water', 'Third party sources', 'Third party destinations'];
2461
- GojsEditorModel.TYPE_TEMPLATE_ELECTRICITY = [
2462
- GojsEditorModel.ENUM_TEMPLATES.GRID,
2463
- GojsEditorModel.ENUM_TEMPLATES.DIESEL_GENERATORS,
2464
- GojsEditorModel.ENUM_TEMPLATES.NATURAL_GAS_GENERATORS,
2465
- GojsEditorModel.ENUM_TEMPLATES.SOLAR_POWER,
2466
- GojsEditorModel.ENUM_TEMPLATES.TRANSFORMERS,
2467
- GojsEditorModel.ENUM_TEMPLATES.SWITCH_GEARS,
2468
- GojsEditorModel.ENUM_TEMPLATES.MOTOR_CONTROLS,
2469
- GojsEditorModel.ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS,
2470
- GojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS,
2471
- GojsEditorModel.ENUM_TEMPLATES.LIGHTINGS,
2472
- GojsEditorModel.ENUM_TEMPLATES.GROUNDING,
2473
- GojsEditorModel.ENUM_TEMPLATES.ELECTRIC_METERS,
2474
- GojsEditorModel.ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS,
2475
- GojsEditorModel.ENUM_TEMPLATES.LIGHTING_SYSTEMS,
2476
- GojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC,
2477
- GojsEditorModel.ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS,
2478
- GojsEditorModel.ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS,
2479
- GojsEditorModel.ENUM_TEMPLATES.OFFICE_EQUIPMENT,
2480
- GojsEditorModel.ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS,
2481
- GojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES,
2482
- GojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT,
2483
- GojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
2484
- GojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE,
2485
- GojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
2486
- GojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE,
2487
- GojsEditorModel.ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE,
2488
- GojsEditorModel.ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE,
2470
+ AtoGojsEditorModel.TYPE_TEMPLATE_ELECTRICITY = [
2471
+ AtoGojsEditorModel.ENUM_TEMPLATES.GRID,
2472
+ AtoGojsEditorModel.ENUM_TEMPLATES.DIESEL_GENERATORS,
2473
+ AtoGojsEditorModel.ENUM_TEMPLATES.NATURAL_GAS_GENERATORS,
2474
+ AtoGojsEditorModel.ENUM_TEMPLATES.SOLAR_POWER,
2475
+ AtoGojsEditorModel.ENUM_TEMPLATES.TRANSFORMERS,
2476
+ AtoGojsEditorModel.ENUM_TEMPLATES.SWITCH_GEARS,
2477
+ AtoGojsEditorModel.ENUM_TEMPLATES.MOTOR_CONTROLS,
2478
+ AtoGojsEditorModel.ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS,
2479
+ AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS,
2480
+ AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTINGS,
2481
+ AtoGojsEditorModel.ENUM_TEMPLATES.GROUNDING,
2482
+ AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_METERS,
2483
+ AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS,
2484
+ AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTING_SYSTEMS,
2485
+ AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC,
2486
+ AtoGojsEditorModel.ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS,
2487
+ AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS,
2488
+ AtoGojsEditorModel.ENUM_TEMPLATES.OFFICE_EQUIPMENT,
2489
+ AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS,
2490
+ AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES,
2491
+ AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT,
2492
+ AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
2493
+ AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE,
2494
+ AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
2495
+ AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE,
2496
+ AtoGojsEditorModel.ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE,
2497
+ AtoGojsEditorModel.ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE,
2489
2498
  ];
2490
2499
  // ['Grid', 'Diesel Generators', 'Natural gas generators', 'Solar Power', 'Transformers', 'Switchgears', 'MotorControls', 'VariableFrequencyDrives',
2491
2500
  // 'Power distribution systems', 'Lightings', 'Grounding', 'Electric Meters', 'Industrial motors',
2492
2501
  // 'Lighting systems', 'Heating, ventilation, and air conditioning (HVAC) systems', 'Refrigeration and cooling', 'Process control and automation', 'Office equipment', 'Compressed air',
2493
2502
  // 'Process equipment and machines', 'Material handling equipment', 'Power distribution and control', 'Battery energy storage', 'Flywheel energy storage',
2494
2503
  // 'Pumped hydro storage', 'Thermal energy storage', 'Supercapacitor energy storage'];
2495
- GojsEditorModel.TYPE_TEMPLATE_NATURAL_GAS = [
2496
- GojsEditorModel.ENUM_TEMPLATES.NATURAL_GAS_PIPELINES,
2497
- GojsEditorModel.ENUM_TEMPLATES.LIQUEFIED_NATURAL_GAS,
2498
- GojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE,
2499
- GojsEditorModel.ENUM_TEMPLATES.ON_SITE_PRODUCTION,
2500
- GojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PRODUCTION,
2501
- GojsEditorModel.ENUM_TEMPLATES.BOILERS_AND_HEATERS,
2502
- GojsEditorModel.ENUM_TEMPLATES.FURNACES,
2503
- GojsEditorModel.ENUM_TEMPLATES.POWER_GENERATION,
2504
- GojsEditorModel.ENUM_TEMPLATES.COGENERATION,
2505
- GojsEditorModel.ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS,
2506
- GojsEditorModel.ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT,
2507
- GojsEditorModel.ENUM_TEMPLATES.GAS_METERS,
2508
- GojsEditorModel.ENUM_TEMPLATES.BURNERS,
2509
- GojsEditorModel.ENUM_TEMPLATES.FLUE_GAS_ANALYZERS,
2510
- GojsEditorModel.ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS,
2511
- GojsEditorModel.ENUM_TEMPLATES.GAS_STORAGE_TANKS,
2512
- GojsEditorModel.ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS,
2504
+ AtoGojsEditorModel.TYPE_TEMPLATE_NATURAL_GAS = [
2505
+ AtoGojsEditorModel.ENUM_TEMPLATES.NATURAL_GAS_PIPELINES,
2506
+ AtoGojsEditorModel.ENUM_TEMPLATES.LIQUEFIED_NATURAL_GAS,
2507
+ AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE,
2508
+ AtoGojsEditorModel.ENUM_TEMPLATES.ON_SITE_PRODUCTION,
2509
+ AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PRODUCTION,
2510
+ AtoGojsEditorModel.ENUM_TEMPLATES.BOILERS_AND_HEATERS,
2511
+ AtoGojsEditorModel.ENUM_TEMPLATES.FURNACES,
2512
+ AtoGojsEditorModel.ENUM_TEMPLATES.POWER_GENERATION,
2513
+ AtoGojsEditorModel.ENUM_TEMPLATES.COGENERATION,
2514
+ AtoGojsEditorModel.ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS,
2515
+ AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT,
2516
+ AtoGojsEditorModel.ENUM_TEMPLATES.GAS_METERS,
2517
+ AtoGojsEditorModel.ENUM_TEMPLATES.BURNERS,
2518
+ AtoGojsEditorModel.ENUM_TEMPLATES.FLUE_GAS_ANALYZERS,
2519
+ AtoGojsEditorModel.ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS,
2520
+ AtoGojsEditorModel.ENUM_TEMPLATES.GAS_STORAGE_TANKS,
2521
+ AtoGojsEditorModel.ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS,
2513
2522
  ];
2514
2523
  // ['Natural gas pipelines', 'Liquefied natural gas', 'Compressed natural gas pipeline', 'On-site production',
2515
2524
  // 'Compressed natural gas production', 'Boilers and heaters', 'Furnaces', 'Power generation', 'Cogeneration', 'Combined cycle power plants',
2516
2525
  // 'Fuel for vehicles and equipment', 'Gas meters', 'Burners', 'Flue gas analyzers', 'Combustion control systems', 'Gas storage tanks',
2517
2526
  // 'Gas pressure regulators'];
2518
- GojsEditorModel.TYPE_TEMPLATE_FUEL = [
2519
- GojsEditorModel.ENUM_TEMPLATES.DIESEL_FUELS,
2520
- GojsEditorModel.ENUM_TEMPLATES.GASON_LINES,
2521
- GojsEditorModel.ENUM_TEMPLATES.BIODIESELS,
2522
- GojsEditorModel.ENUM_TEMPLATES.KEROSENSE,
2523
- GojsEditorModel.ENUM_TEMPLATES.PROPANES,
2524
- GojsEditorModel.ENUM_TEMPLATES.TANKER_TRUCKS,
2525
- GojsEditorModel.ENUM_TEMPLATES.PIPELINE,
2526
- GojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_BOILERS,
2527
- GojsEditorModel.ENUM_TEMPLATES.GENERATORS,
2528
- GojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_FURNACES,
2529
- GojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_OVENS,
2530
- GojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT,
2531
- GojsEditorModel.ENUM_TEMPLATES.FUEL_METERS,
2532
- GojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS,
2533
- GojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS,
2534
- GojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS,
2535
- GojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS,
2527
+ AtoGojsEditorModel.TYPE_TEMPLATE_FUEL = [
2528
+ AtoGojsEditorModel.ENUM_TEMPLATES.DIESEL_FUELS,
2529
+ AtoGojsEditorModel.ENUM_TEMPLATES.GASON_LINES,
2530
+ AtoGojsEditorModel.ENUM_TEMPLATES.BIODIESELS,
2531
+ AtoGojsEditorModel.ENUM_TEMPLATES.KEROSENSE,
2532
+ AtoGojsEditorModel.ENUM_TEMPLATES.PROPANES,
2533
+ AtoGojsEditorModel.ENUM_TEMPLATES.TANKER_TRUCKS,
2534
+ AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE,
2535
+ AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_BOILERS,
2536
+ AtoGojsEditorModel.ENUM_TEMPLATES.GENERATORS,
2537
+ AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_FURNACES,
2538
+ AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_OVENS,
2539
+ AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT,
2540
+ AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_METERS,
2541
+ AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS,
2542
+ AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS,
2543
+ AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS,
2544
+ AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS,
2536
2545
  ];
2537
2546
  // ['DieselFuels', 'Gasonlines', 'Biodiesels', 'Kerosenes', 'Propanes', 'Tanker Trucks',
2538
2547
  // 'Pipeline', 'Industrial boilers', 'Generators', 'Industrial furnaces', 'Industrial ovens', 'Industrial vehicles and equipment',
2539
2548
  // 'FuelMeters', 'FuelDispensers', 'FuelStorageTanks', 'FuelFiltrations', 'FuelManagements'];
2540
- GojsEditorModel.TYPE_TEMPLATE_STEAM = [
2541
- GojsEditorModel.ENUM_TEMPLATES.VALUES,
2542
- GojsEditorModel.ENUM_TEMPLATES.STEAM_TRAPS,
2543
- GojsEditorModel.ENUM_TEMPLATES.PRESSURE_REGULATORS,
2544
- GojsEditorModel.ENUM_TEMPLATES.SAFETY_VALUES_AND_EQUIPMENT,
2545
- GojsEditorModel.ENUM_TEMPLATES.CONDENSATE_RETURN_SYSTEM,
2546
- GojsEditorModel.ENUM_TEMPLATES.DEAERATORS,
2547
- GojsEditorModel.ENUM_TEMPLATES.FEEDWATER_PUMPS,
2548
- GojsEditorModel.ENUM_TEMPLATES.BLOWDOWN_TANKS,
2549
- GojsEditorModel.ENUM_TEMPLATES.EXPANSION_TANKS,
2550
- GojsEditorModel.ENUM_TEMPLATES.HEAT_EXCHANGERS,
2551
- GojsEditorModel.ENUM_TEMPLATES.TURBINES,
2549
+ AtoGojsEditorModel.TYPE_TEMPLATE_STEAM = [
2550
+ AtoGojsEditorModel.ENUM_TEMPLATES.VALUES,
2551
+ AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_TRAPS,
2552
+ AtoGojsEditorModel.ENUM_TEMPLATES.PRESSURE_REGULATORS,
2553
+ AtoGojsEditorModel.ENUM_TEMPLATES.SAFETY_VALUES_AND_EQUIPMENT,
2554
+ AtoGojsEditorModel.ENUM_TEMPLATES.CONDENSATE_RETURN_SYSTEM,
2555
+ AtoGojsEditorModel.ENUM_TEMPLATES.DEAERATORS,
2556
+ AtoGojsEditorModel.ENUM_TEMPLATES.FEEDWATER_PUMPS,
2557
+ AtoGojsEditorModel.ENUM_TEMPLATES.BLOWDOWN_TANKS,
2558
+ AtoGojsEditorModel.ENUM_TEMPLATES.EXPANSION_TANKS,
2559
+ AtoGojsEditorModel.ENUM_TEMPLATES.HEAT_EXCHANGERS,
2560
+ AtoGojsEditorModel.ENUM_TEMPLATES.TURBINES,
2552
2561
  ];
2553
2562
  // ['Valves', 'Steam Traps', 'Pressure Regulator', 'Safety Valves and Equipment', 'Condensate Return System', 'Deaerators',
2554
2563
  // 'Feedwater Pumps', 'Blowdown Tanks', 'Expansion Tanks', 'Heat Exchangers', 'Turbines'];
2555
- GojsEditorModel.TYPE_TEMPLATE_SPECIAL = [
2556
- GojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
2557
- GojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORAGE,
2558
- GojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE,
2559
- GojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE,
2560
- GojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
2564
+ AtoGojsEditorModel.TYPE_TEMPLATE_SPECIAL = [
2565
+ AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
2566
+ AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORAGE,
2567
+ AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE,
2568
+ AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE,
2569
+ AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
2561
2570
  ];
2562
- })(GojsEditorModel || (GojsEditorModel = {}));
2571
+ })(AtoGojsEditorModel || (AtoGojsEditorModel = {}));
2563
2572
 
2564
2573
  // export const GO_LICENSE_KEY =
2565
2574
  // '73f946e5b26328a800ca0d2b113f69ed1bb37f3b9e8c1bf15e5041f0ea08681c3089ee7d02da8b9481fb1aa91a7ac089d5c46c7b9e4b013ce037d38f44e480fbe13f77b4435f559ea25676c599a87aa0ee6872f3c1b568a0c5788d';
@@ -3226,7 +3235,7 @@ class AtoDefaultGojsEditor {
3226
3235
  'toolManager.hoverDelay': 200,
3227
3236
  // 'draggingTool.isEnabled': false,
3228
3237
  // initialAutoScale: go.Diagram.UniformToFill,
3229
- // autoScrollRegion: GojsEditorModel.GRID_SIZE * 5,
3238
+ // autoScrollRegion: AtoGojsEditorModel.GRID_SIZE * 5,
3230
3239
  layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
3231
3240
  initialContentAlignment: go.Spot.Center,
3232
3241
  initialAutoScale: go.Diagram.Uniform,
@@ -3271,7 +3280,7 @@ class AtoDefaultGojsEditor {
3271
3280
  // this.myDiagram.zoomToFit();
3272
3281
  // this.defaultScaleZoomToFit = this.myDiagram.scale;
3273
3282
  // if (!this.initialOptions.isReadOnly) {
3274
- // const sizeMargin = GojsEditorModel.GRID_SIZE * 15;
3283
+ // const sizeMargin = AtoGojsEditorModel.GRID_SIZE * 15;
3275
3284
  // this.myDiagram.padding = new go.Margin(sizeMargin);
3276
3285
  // }
3277
3286
  // },
@@ -3304,6 +3313,7 @@ class AtoDefaultGojsEditor {
3304
3313
  }
3305
3314
  ngOnDestroy() {
3306
3315
  var _a;
3316
+ this.unsubscribeAll();
3307
3317
  this.stopAnimation();
3308
3318
  // this.myDiagram?.clear();
3309
3319
  if (!!((_a = this.myDiagram) === null || _a === void 0 ? void 0 : _a.div)) {
@@ -3355,39 +3365,39 @@ class AtoDefaultGojsEditor {
3355
3365
  return;
3356
3366
  }
3357
3367
  // Group
3358
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT) {
3359
- this.makeGroupROPlantTemplate(GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3368
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT) {
3369
+ this.makeGroupROPlantTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3360
3370
  return;
3361
3371
  }
3362
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.BOILER) {
3363
- this.makeGroupBoilerTemplate(GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3372
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.BOILER) {
3373
+ this.makeGroupBoilerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3364
3374
  return;
3365
3375
  }
3366
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER) {
3367
- this.makeGroupCoolingTowerTemplate(GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3376
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER) {
3377
+ this.makeGroupCoolingTowerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3368
3378
  return;
3369
3379
  }
3370
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.ZONE) {
3380
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE) {
3371
3381
  this.makeGroupZoneTemplate();
3372
3382
  return;
3373
3383
  }
3374
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.PLANT_CELL && (node === null || node === void 0 ? void 0 : node.isGroup)) {
3375
- this.groupPlantCellTemplate(GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3384
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL && (node === null || node === void 0 ? void 0 : node.isGroup)) {
3385
+ this.groupPlantCellTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3376
3386
  return;
3377
3387
  }
3378
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_INPUT_GROUP) {
3379
- this.groupPCInputOrOutTemplate(GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name, new go.Margin(0, 50, 0, 0));
3388
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_INPUT_GROUP) {
3389
+ this.groupPCInputOrOutTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name, new go.Margin(0, 50, 0, 0));
3380
3390
  return;
3381
3391
  }
3382
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_OUTPUT_GROUP) {
3383
- this.groupPCInputOrOutTemplate(GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name, new go.Margin(0, 0, 0, 50));
3392
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_OUTPUT_GROUP) {
3393
+ this.groupPCInputOrOutTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name, new go.Margin(0, 0, 0, 50));
3384
3394
  return;
3385
3395
  }
3386
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.GROUP_BASIC_COMPONENT) {
3387
- this.makeGroupBasicComponent(GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3396
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.GROUP_BASIC_COMPONENT) {
3397
+ this.makeGroupBasicComponent(AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3388
3398
  return;
3389
3399
  }
3390
- this.makeGroupTemplate(GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3400
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3391
3401
  }
3392
3402
  addNodeTemplate(node) {
3393
3403
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
@@ -3396,61 +3406,61 @@ class AtoDefaultGojsEditor {
3396
3406
  }
3397
3407
  // Not Group
3398
3408
  // Component Water Normal
3399
- if (((_b = GojsEditorModel.TYPE_TEMPLATE_WATER_NORMAL) === null || _b === void 0 ? void 0 : _b.includes(node === null || node === void 0 ? void 0 : node.type)) && !(node === null || node === void 0 ? void 0 : node.isGroup)) {
3400
- this.makeEntityTemplate((_c = GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon) !== null && _c !== void 0 ? _c : '', (_d = GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name) !== null && _d !== void 0 ? _d : '');
3409
+ if (((_b = AtoGojsEditorModel.TYPE_TEMPLATE_WATER_NORMAL) === null || _b === void 0 ? void 0 : _b.includes(node === null || node === void 0 ? void 0 : node.type)) && !(node === null || node === void 0 ? void 0 : node.isGroup)) {
3410
+ this.makeEntityTemplate((_c = AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon) !== null && _c !== void 0 ? _c : '', (_d = AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name) !== null && _d !== void 0 ? _d : '');
3401
3411
  }
3402
3412
  // Component Water Withdraw Or Discharge
3403
- if (((_e = GojsEditorModel.TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE) === null || _e === void 0 ? void 0 : _e.includes(node === null || node === void 0 ? void 0 : node.type)) && !(node === null || node === void 0 ? void 0 : node.isGroup)) {
3404
- this.makeEntityWithdrawOrDischarge((_f = GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon) !== null && _f !== void 0 ? _f : '', (_g = GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name) !== null && _g !== void 0 ? _g : '');
3413
+ if (((_e = AtoGojsEditorModel.TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE) === null || _e === void 0 ? void 0 : _e.includes(node === null || node === void 0 ? void 0 : node.type)) && !(node === null || node === void 0 ? void 0 : node.isGroup)) {
3414
+ this.makeEntityWithdrawOrDischarge((_f = AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon) !== null && _f !== void 0 ? _f : '', (_g = AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name) !== null && _g !== void 0 ? _g : '');
3405
3415
  }
3406
3416
  // Component Energy Normal
3407
- if ((((_h = GojsEditorModel.TYPE_TEMPLATE_ELECTRICITY) === null || _h === void 0 ? void 0 : _h.includes(node === null || node === void 0 ? void 0 : node.type)) ||
3408
- ((_j = GojsEditorModel.TYPE_TEMPLATE_NATURAL_GAS) === null || _j === void 0 ? void 0 : _j.includes(node === null || node === void 0 ? void 0 : node.type)) ||
3409
- ((_k = GojsEditorModel.TYPE_TEMPLATE_FUEL) === null || _k === void 0 ? void 0 : _k.includes(node === null || node === void 0 ? void 0 : node.type)) ||
3410
- ((_l = GojsEditorModel.TYPE_TEMPLATE_STEAM) === null || _l === void 0 ? void 0 : _l.includes(node === null || node === void 0 ? void 0 : node.type))) &&
3417
+ if ((((_h = AtoGojsEditorModel.TYPE_TEMPLATE_ELECTRICITY) === null || _h === void 0 ? void 0 : _h.includes(node === null || node === void 0 ? void 0 : node.type)) ||
3418
+ ((_j = AtoGojsEditorModel.TYPE_TEMPLATE_NATURAL_GAS) === null || _j === void 0 ? void 0 : _j.includes(node === null || node === void 0 ? void 0 : node.type)) ||
3419
+ ((_k = AtoGojsEditorModel.TYPE_TEMPLATE_FUEL) === null || _k === void 0 ? void 0 : _k.includes(node === null || node === void 0 ? void 0 : node.type)) ||
3420
+ ((_l = AtoGojsEditorModel.TYPE_TEMPLATE_STEAM) === null || _l === void 0 ? void 0 : _l.includes(node === null || node === void 0 ? void 0 : node.type))) &&
3411
3421
  !(node === null || node === void 0 ? void 0 : node.isGroup)) {
3412
- this.makeEntityTemplateEnergy((_m = GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon) !== null && _m !== void 0 ? _m : '', (_o = GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name) !== null && _o !== void 0 ? _o : '');
3422
+ this.makeEntityTemplateEnergy((_m = AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon) !== null && _m !== void 0 ? _m : '', (_o = AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name) !== null && _o !== void 0 ? _o : '');
3413
3423
  }
3414
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE) {
3424
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE) {
3415
3425
  this.makeImageTemplate();
3416
3426
  }
3417
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE) {
3427
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE) {
3418
3428
  this.makeParamTable();
3419
3429
  }
3420
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE) {
3430
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE) {
3421
3431
  this.makeMassBalance();
3422
3432
  }
3423
3433
  // Text Node
3424
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
3434
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
3425
3435
  this.makeTextTemplate();
3426
3436
  }
3427
3437
  // Value Node
3428
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.VALUE_NODE) {
3438
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_NODE) {
3429
3439
  this.makeValueNodeTemplate();
3430
3440
  }
3431
3441
  // Value Node
3432
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.EMPTY) {
3442
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY) {
3433
3443
  this.makeEmptyNodeTemplate();
3434
3444
  }
3435
3445
  // Value Label
3436
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL) {
3446
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL) {
3437
3447
  this.makeValueLabelTemplate();
3438
3448
  }
3439
3449
  // Zone item
3440
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM) {
3450
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM) {
3441
3451
  this.makeZoneItemTemplate();
3442
3452
  }
3443
3453
  // data box
3444
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.DATA_BOX) {
3454
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX) {
3445
3455
  this.makeDataBoxTemplate();
3446
3456
  }
3447
3457
  // Special template
3448
- if ((_p = GojsEditorModel.TYPE_TEMPLATE_SPECIAL) === null || _p === void 0 ? void 0 : _p.includes(node === null || node === void 0 ? void 0 : node.type)) {
3449
- this.makeSpecialTemplate(GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3458
+ if ((_p = AtoGojsEditorModel.TYPE_TEMPLATE_SPECIAL) === null || _p === void 0 ? void 0 : _p.includes(node === null || node === void 0 ? void 0 : node.type)) {
3459
+ this.makeSpecialTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3450
3460
  }
3451
3461
  // Plant Cell
3452
- if ((node === null || node === void 0 ? void 0 : node.type) === GojsEditorModel.ENUM_TEMPLATES.PLANT_CELL && !(node === null || node === void 0 ? void 0 : node.isGroup)) {
3453
- this.plantCellTemplate(GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, GojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3462
+ if ((node === null || node === void 0 ? void 0 : node.type) === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL && !(node === null || node === void 0 ? void 0 : node.isGroup)) {
3463
+ this.plantCellTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node === null || node === void 0 ? void 0 : node.type].name);
3454
3464
  }
3455
3465
  }
3456
3466
  initDiagram() {
@@ -3540,7 +3550,7 @@ class AtoDefaultGojsEditor {
3540
3550
  // for water
3541
3551
  const { STORAGE, WATER_TREATMENT, DEMIN_WATER_TREATMENT,
3542
3552
  // RO_WATER_TREATMENT,
3543
- PROCESS, WASTEWATER_TREATMENT, DAF_WASTEWATER_TREATMENT, ETP_WASTEWATER_TREATMENT, MBR_WASTEWATER_TREATMENT, ZLD_WASTEWATER_TREATMENT, COOLING_TOWER, BOILER, OTHER, LANDSCAPING_IRRIGATION, } = GojsEditorModel.ENUM_TEMPLATES;
3553
+ PROCESS, WASTEWATER_TREATMENT, DAF_WASTEWATER_TREATMENT, ETP_WASTEWATER_TREATMENT, MBR_WASTEWATER_TREATMENT, ZLD_WASTEWATER_TREATMENT, COOLING_TOWER, BOILER, OTHER, LANDSCAPING_IRRIGATION, } = AtoGojsEditorModel.ENUM_TEMPLATES;
3544
3554
  const waterGroups = [
3545
3555
  STORAGE,
3546
3556
  WATER_TREATMENT,
@@ -3558,8 +3568,8 @@ class AtoDefaultGojsEditor {
3558
3568
  LANDSCAPING_IRRIGATION,
3559
3569
  ];
3560
3570
  waterGroups.map((e) => {
3561
- if (!!GojsEditorModel.NODE_TEMPLATES[e]) {
3562
- this.makeGroupTemplate(GojsEditorModel.NODE_TEMPLATES[e].icon, GojsEditorModel.NODE_TEMPLATES[e].name);
3571
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
3572
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
3563
3573
  }
3564
3574
  });
3565
3575
  // electrical
@@ -3570,7 +3580,7 @@ class AtoDefaultGojsEditor {
3570
3580
  this.initGasGroupTemplate();
3571
3581
  }
3572
3582
  initElectricDiagram() {
3573
- const { GRID, DIESEL_GENERATORS, BATTERY_ENERGY_STORAGE, LIGHTING_SYSTEMS, LIGHTINGS, ELECTRIC_METERS, TRANSFORMERS, ELECTRIC_FLYWHEEL_ENERGY_STORAGE, PUMPED_HYDRO_STORAGE, THERMAL_ENERGY_STORAGE, SUPER_CAPACITOR_ENERGY_STORAGE, SWITCH_GEARS, PROCESS_CONTROL_AUTOMATION_SYSTEMS, PROCESS_EQUIPMENT_MACHINES, OFFICE_EQUIPMENT, POWER_DISTRIBUTION_CONTROL_SYSTEMS, POWER_DISTRIBUTION_SYSTEMS, NATURAL_GAS_GENERATORS, MOTOR_CONTROLS, VARIABLE_FREQUENCY_DRIVERS, ELECTRIC_HVAC, COMPRESSED_AIR_SYSTEMS, REFRIGERATION_COOLING_SYSTEMS, MATERIAL_HANDLING_EQUIPMENT, WIND_POWER, ELECTRIC_INDUSTRIAL_MOTORS, GROUNDING, } = GojsEditorModel.ENUM_TEMPLATES;
3583
+ const { GRID, DIESEL_GENERATORS, BATTERY_ENERGY_STORAGE, LIGHTING_SYSTEMS, LIGHTINGS, ELECTRIC_METERS, TRANSFORMERS, ELECTRIC_FLYWHEEL_ENERGY_STORAGE, PUMPED_HYDRO_STORAGE, THERMAL_ENERGY_STORAGE, SUPER_CAPACITOR_ENERGY_STORAGE, SWITCH_GEARS, PROCESS_CONTROL_AUTOMATION_SYSTEMS, PROCESS_EQUIPMENT_MACHINES, OFFICE_EQUIPMENT, POWER_DISTRIBUTION_CONTROL_SYSTEMS, POWER_DISTRIBUTION_SYSTEMS, NATURAL_GAS_GENERATORS, MOTOR_CONTROLS, VARIABLE_FREQUENCY_DRIVERS, ELECTRIC_HVAC, COMPRESSED_AIR_SYSTEMS, REFRIGERATION_COOLING_SYSTEMS, MATERIAL_HANDLING_EQUIPMENT, WIND_POWER, ELECTRIC_INDUSTRIAL_MOTORS, GROUNDING, } = AtoGojsEditorModel.ENUM_TEMPLATES;
3574
3584
  const ListItemsCreateEntityTemplate = [
3575
3585
  GRID,
3576
3586
  DIESEL_GENERATORS,
@@ -3601,37 +3611,37 @@ class AtoDefaultGojsEditor {
3601
3611
  GROUNDING,
3602
3612
  ];
3603
3613
  ListItemsCreateEntityTemplate.map((e) => {
3604
- if (!!GojsEditorModel.NODE_TEMPLATES[e]) {
3605
- this.makeEntityTemplateEnergy(GojsEditorModel.NODE_TEMPLATES[e].icon, GojsEditorModel.NODE_TEMPLATES[e].name);
3614
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
3615
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
3606
3616
  }
3607
3617
  });
3608
3618
  }
3609
3619
  initElectricGroupTemplate() {
3610
3620
  const listItems = [
3611
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE],
3612
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.TRANSFORMERS],
3613
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.ELECTRIC_METERS],
3614
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.LIGHTINGS],
3615
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS],
3616
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.SWITCH_GEARS],
3617
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS],
3618
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.GROUNDING],
3619
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.MOTOR_CONTROLS],
3620
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.LIGHTING_SYSTEMS],
3621
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
3622
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS],
3623
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS],
3624
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.OFFICE_EQUIPMENT],
3625
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS],
3626
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES],
3627
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT],
3628
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS],
3629
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.BATTERIES],
3630
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS],
3631
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE],
3632
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE],
3633
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE],
3634
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE],
3621
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE],
3622
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.TRANSFORMERS],
3623
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_METERS],
3624
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTINGS],
3625
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS],
3626
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.SWITCH_GEARS],
3627
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS],
3628
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GROUNDING],
3629
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.MOTOR_CONTROLS],
3630
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTING_SYSTEMS],
3631
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
3632
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS],
3633
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS],
3634
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.OFFICE_EQUIPMENT],
3635
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS],
3636
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES],
3637
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT],
3638
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS],
3639
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BATTERIES],
3640
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS],
3641
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE],
3642
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE],
3643
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE],
3644
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE],
3635
3645
  ];
3636
3646
  listItems.forEach((e) => {
3637
3647
  this.makeGroupTemplate(e === null || e === void 0 ? void 0 : e.icon, e.name);
@@ -3639,59 +3649,59 @@ class AtoDefaultGojsEditor {
3639
3649
  }
3640
3650
  initFuelGroupTemplate() {
3641
3651
  const listItems = [
3642
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.DIESEL_FUELS],
3643
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.GASON_LINES],
3644
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.BIODIESELS],
3645
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.KEROSENSE],
3646
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.PROPANES],
3647
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.TANKER_TRUCKS],
3648
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.PIPELINE],
3649
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_BOILERS],
3650
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.GENERATORS],
3651
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_FURNACES],
3652
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_OVENS],
3653
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT],
3654
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_METERS],
3655
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS],
3656
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS],
3657
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
3658
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS],
3659
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS],
3652
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.DIESEL_FUELS],
3653
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GASON_LINES],
3654
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BIODIESELS],
3655
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.KEROSENSE],
3656
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROPANES],
3657
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.TANKER_TRUCKS],
3658
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE],
3659
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_BOILERS],
3660
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GENERATORS],
3661
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_FURNACES],
3662
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_OVENS],
3663
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT],
3664
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_METERS],
3665
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS],
3666
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS],
3667
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
3668
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS],
3669
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS],
3660
3670
  ];
3661
- this.makeGroupTemplate(GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
3662
- this.makeGroupTemplate(GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
3663
- this.makeGroupTemplate(GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
3664
- this.makeGroupTemplate(GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
3671
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
3672
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
3673
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
3674
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
3665
3675
  listItems.forEach((e) => {
3666
3676
  this.makeGroupTemplate(e === null || e === void 0 ? void 0 : e.icon, e.name);
3667
3677
  });
3668
3678
  }
3669
3679
  initGasGroupTemplate() {
3670
3680
  const listItems = [
3671
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE],
3672
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.BOILERS_AND_HEATERS],
3673
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FURNACES],
3674
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.POWER_GENERATION],
3675
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.COGENERATION],
3676
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS],
3677
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT],
3678
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.GAS_METERS],
3679
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.BURNERS],
3680
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FLUE_GAS_ANALYZERS],
3681
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS],
3682
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.GAS_STORAGE_TANKS],
3683
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS],
3681
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE],
3682
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BOILERS_AND_HEATERS],
3683
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FURNACES],
3684
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_GENERATION],
3685
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COGENERATION],
3686
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS],
3687
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT],
3688
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_METERS],
3689
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BURNERS],
3690
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FLUE_GAS_ANALYZERS],
3691
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS],
3692
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_STORAGE_TANKS],
3693
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS],
3684
3694
  ];
3685
- this.makeGroupTemplate(GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
3686
- this.makeGroupTemplate(GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
3687
- this.makeGroupTemplate(GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
3688
- this.makeGroupTemplate(GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
3695
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
3696
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
3697
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
3698
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
3689
3699
  listItems.forEach((e) => {
3690
3700
  this.makeGroupTemplate(e === null || e === void 0 ? void 0 : e.icon, e.name);
3691
3701
  });
3692
3702
  }
3693
3703
  initGasDiagram() {
3694
- const { NATURAL_GAS_PIPELINES, LIQUEFIED_NATURAL_GAS, COMPRESSED_NATURAL_GAS_PIPELINE, COMPRESSED_NATURAL_GAS_PRODUCTION, BOILERS_AND_HEATERS, FURNACES, POWER_GENERATION, COGENERATION, COMBINED_CYCLE_POWER_PLANTS, FUEL_FOR_VEHICLES_AND_EQUIPMENT, GAS_METERS, BURNERS, FLUE_GAS_ANALYZERS, COMBUSTION_CONTROL_SYSTEMS, GAS_STORAGE_TANKS, GAS_PRESSURE_REGULATORS, NATURAL_GAS, } = GojsEditorModel.ENUM_TEMPLATES;
3704
+ const { NATURAL_GAS_PIPELINES, LIQUEFIED_NATURAL_GAS, COMPRESSED_NATURAL_GAS_PIPELINE, COMPRESSED_NATURAL_GAS_PRODUCTION, BOILERS_AND_HEATERS, FURNACES, POWER_GENERATION, COGENERATION, COMBINED_CYCLE_POWER_PLANTS, FUEL_FOR_VEHICLES_AND_EQUIPMENT, GAS_METERS, BURNERS, FLUE_GAS_ANALYZERS, COMBUSTION_CONTROL_SYSTEMS, GAS_STORAGE_TANKS, GAS_PRESSURE_REGULATORS, NATURAL_GAS, } = AtoGojsEditorModel.ENUM_TEMPLATES;
3695
3705
  const ListItemsCreateEntityTemplate = [
3696
3706
  NATURAL_GAS_PIPELINES,
3697
3707
  LIQUEFIED_NATURAL_GAS,
@@ -3712,13 +3722,13 @@ class AtoDefaultGojsEditor {
3712
3722
  NATURAL_GAS,
3713
3723
  ];
3714
3724
  ListItemsCreateEntityTemplate.map((e) => {
3715
- if (!!GojsEditorModel.NODE_TEMPLATES[e]) {
3716
- this.makeEntityTemplateEnergy(GojsEditorModel.NODE_TEMPLATES[e].icon, GojsEditorModel.NODE_TEMPLATES[e].name);
3725
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
3726
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
3717
3727
  }
3718
3728
  });
3719
3729
  }
3720
3730
  initFuelDiagram() {
3721
- const { DIESEL_FUELS, GASON_LINES, BIODIESELS, KEROSENSE, PROPANES, TANKER_TRUCKS, PIPELINE, INDUSTRIAL_BOILERS, GENERATORS, INDUSTRIAL_FURNACES, INDUSTRIAL_OVENS, INDUSTRIAL_VEHICLES_AND_EQUIPMENT, FUEL_METERS, FUEL_DISPENSERS, FUEL_STRORAGE_TANKS, FUEL_FILTRATIONS, FUEL_MANAGEMENTS, FUELS, } = GojsEditorModel.ENUM_TEMPLATES;
3731
+ const { DIESEL_FUELS, GASON_LINES, BIODIESELS, KEROSENSE, PROPANES, TANKER_TRUCKS, PIPELINE, INDUSTRIAL_BOILERS, GENERATORS, INDUSTRIAL_FURNACES, INDUSTRIAL_OVENS, INDUSTRIAL_VEHICLES_AND_EQUIPMENT, FUEL_METERS, FUEL_DISPENSERS, FUEL_STRORAGE_TANKS, FUEL_FILTRATIONS, FUEL_MANAGEMENTS, FUELS, } = AtoGojsEditorModel.ENUM_TEMPLATES;
3722
3732
  const ListItemsCreateEntityTemplate = [
3723
3733
  DIESEL_FUELS,
3724
3734
  GASON_LINES,
@@ -3740,22 +3750,22 @@ class AtoDefaultGojsEditor {
3740
3750
  FUELS,
3741
3751
  ];
3742
3752
  ListItemsCreateEntityTemplate.map((e) => {
3743
- if (!!GojsEditorModel.NODE_TEMPLATES[e]) {
3744
- this.makeEntityTemplateEnergy(GojsEditorModel.NODE_TEMPLATES[e].icon, GojsEditorModel.NODE_TEMPLATES[e].name);
3753
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
3754
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
3745
3755
  }
3746
3756
  });
3747
3757
  }
3748
3758
  initSolarDiagram() {
3749
- const { SOLAR_POWER, POWER_CONDITIONING_UNIT, BATTERIES: BATTERY, INVERTERS: INVERTER, } = GojsEditorModel.ENUM_TEMPLATES;
3759
+ const { SOLAR_POWER, POWER_CONDITIONING_UNIT, BATTERIES: BATTERY, INVERTERS: INVERTER, } = AtoGojsEditorModel.ENUM_TEMPLATES;
3750
3760
  const ListItemsCreateEntityTemplate = [SOLAR_POWER, POWER_CONDITIONING_UNIT, BATTERY, INVERTER];
3751
3761
  ListItemsCreateEntityTemplate.map((e) => {
3752
- if (!!GojsEditorModel.NODE_TEMPLATES[e]) {
3753
- this.makeEntityTemplateEnergy(GojsEditorModel.NODE_TEMPLATES[e].icon, GojsEditorModel.NODE_TEMPLATES[e].name);
3762
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
3763
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
3754
3764
  }
3755
3765
  });
3756
3766
  }
3757
3767
  initSteamDiagram() {
3758
- const { VALUES, STEAM_TRAPS, PRESSURE_REGULATORS, SAFETY_VALUES_AND_EQUIPMENT, CONDENSATE_RETURN_SYSTEM, DEAERATORS, FEEDWATER_PUMPS, BLOWDOWN_TANKS, EXPANSION_TANKS, HEAT_EXCHANGERS, TURBINES, } = GojsEditorModel.ENUM_TEMPLATES;
3768
+ const { VALUES, STEAM_TRAPS, PRESSURE_REGULATORS, SAFETY_VALUES_AND_EQUIPMENT, CONDENSATE_RETURN_SYSTEM, DEAERATORS, FEEDWATER_PUMPS, BLOWDOWN_TANKS, EXPANSION_TANKS, HEAT_EXCHANGERS, TURBINES, } = AtoGojsEditorModel.ENUM_TEMPLATES;
3759
3769
  const ListItemsCreateEntityTemplate = [
3760
3770
  VALUES,
3761
3771
  STEAM_TRAPS,
@@ -3770,8 +3780,8 @@ class AtoDefaultGojsEditor {
3770
3780
  TURBINES,
3771
3781
  ];
3772
3782
  ListItemsCreateEntityTemplate.map((e) => {
3773
- if (!!GojsEditorModel.NODE_TEMPLATES[e]) {
3774
- this.makeEntityTemplateEnergy(GojsEditorModel.NODE_TEMPLATES[e].icon, GojsEditorModel.NODE_TEMPLATES[e].name);
3783
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
3784
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
3775
3785
  }
3776
3786
  });
3777
3787
  }
@@ -3784,12 +3794,12 @@ class AtoDefaultGojsEditor {
3784
3794
  // line
3785
3795
  elements.push(this.$(go.Shape, {
3786
3796
  isPanelMain: true,
3787
- stroke: GojsEditorModel.ENUM_COLORS.GRAY,
3788
- strokeWidth: (_a = GojsEditorModel.LINK_TEMPLATES[GojsEditorModel.ENUM_LINK_TYPES.SIMPLE]) === null || _a === void 0 ? void 0 : _a.strokeWidth,
3797
+ stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
3798
+ strokeWidth: (_a = AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE]) === null || _a === void 0 ? void 0 : _a.strokeWidth,
3789
3799
  // strokeWidth: 0,
3790
- }, new go.Binding('stroke', 'color'), new go.Binding('selectable', 'selectable'), new go.Binding('strokeWidth', 'type', (x) => { var _a; return (_a = GojsEditorModel.LINK_TEMPLATES[x]) === null || _a === void 0 ? void 0 : _a.strokeWidth; })));
3800
+ }, new go.Binding('stroke', 'color'), new go.Binding('selectable', 'selectable'), new go.Binding('strokeWidth', 'type', (x) => { var _a; return (_a = AtoGojsEditorModel.LINK_TEMPLATES[x]) === null || _a === void 0 ? void 0 : _a.strokeWidth; })));
3791
3801
  // animation
3792
- elements.push(this.$(go.Shape, Object.assign(Object.assign({}, (_b = GojsEditorModel.LINK_TEMPLATES[GojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION]) === null || _b === void 0 ? void 0 : _b.animation), { visible: true, fill: 'transparent' })));
3802
+ elements.push(this.$(go.Shape, Object.assign(Object.assign({}, (_b = AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION]) === null || _b === void 0 ? void 0 : _b.animation), { visible: true, fill: 'transparent' })));
3793
3803
  elements.push(this.$(go.Panel, 'Top', {
3794
3804
  height: 38,
3795
3805
  // maxSize: new go.Size(NaN, 36),
@@ -3827,10 +3837,10 @@ class AtoDefaultGojsEditor {
3827
3837
  }, new go.Binding('text', 'textComponent'))),
3828
3838
  }, new go.Binding('text', 'textComponent'), new go.Binding('background', 'textComponent', (x) => (x ? 'white' : 'transparent')))));
3829
3839
  // arrow
3830
- elements.push(this.$(go.Shape, Object.assign({}, (_c = GojsEditorModel.LINK_TEMPLATES[GojsEditorModel.ENUM_LINK_TYPES.SIMPLE]) === null || _c === void 0 ? void 0 : _c.arrow), new go.Binding('visible', 'type', (x) => ![
3831
- GojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION,
3832
- GojsEditorModel.ENUM_LINK_TYPES.PIPE,
3833
- GojsEditorModel.ENUM_LINK_TYPES.PIPE_HIDDEN,
3840
+ elements.push(this.$(go.Shape, Object.assign({}, (_c = AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE]) === null || _c === void 0 ? void 0 : _c.arrow), new go.Binding('visible', 'type', (x) => ![
3841
+ AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION,
3842
+ AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE,
3843
+ AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_HIDDEN,
3834
3844
  ].includes(x)), new go.Binding('fill', 'color'), new go.Binding('stroke', 'color')));
3835
3845
  // TODO fix link cannot selected inside group template
3836
3846
  this.myDiagram.linkTemplate = this.$(go.Link, go.Link.Orthogonal, {
@@ -3843,23 +3853,23 @@ class AtoDefaultGojsEditor {
3843
3853
  relinkableFrom: true,
3844
3854
  relinkableTo: true,
3845
3855
  selectable: true,
3846
- toShortLength: GojsEditorModel.LINK_TEMPLATES[GojsEditorModel.ENUM_LINK_TYPES.SIMPLE].toShortLength, // assume arrowhead at "to" end, need to avoid bad appearance when path is thick
3856
+ toShortLength: AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE].toShortLength, // assume arrowhead at "to" end, need to avoid bad appearance when path is thick
3847
3857
  }, new go.Binding('layerName', '', (data) => {
3848
3858
  return (data === null || data === void 0 ? void 0 : data.textComponent) ? 'Background' : '';
3849
- }), new go.Binding('zOrder', 'type', (x) => (x === GojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION ? 11 : 10)), new go.Binding('toShortLength', 'type', (x) => GojsEditorModel.LINK_TEMPLATES[x].toShortLength || 0), new go.Binding('selectable', 'selectable'), new go.Binding('visible', 'visible'),
3859
+ }), new go.Binding('zOrder', 'type', (x) => (x === AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION ? 11 : 10)), new go.Binding('toShortLength', 'type', (x) => AtoGojsEditorModel.LINK_TEMPLATES[x].toShortLength || 0), new go.Binding('selectable', 'selectable'), new go.Binding('visible', 'visible'),
3850
3860
  // make sure links come in from the proper direction and go out appropriately
3851
3861
  ...elements);
3852
3862
  }
3853
3863
  makeValueNodeTemplate(size = { w: 82, h: 36 }) {
3854
3864
  const self = this;
3855
3865
  const node = this.$(go.Node, 'Spot', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { minSize: new go.Size(size.w, size.h) }, this.$(go.Shape, 'Rectangle', {
3856
- fill: GojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
3866
+ fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
3857
3867
  stroke: 'transparent',
3858
3868
  }), this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
3859
3869
  row: 2,
3860
3870
  font: 'bold 14px Arial',
3861
3871
  textAlign: 'center',
3862
- stroke: GojsEditorModel.ENUM_COLORS.CERULEAN,
3872
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
3863
3873
  }, new go.Binding('editable', 'isEditable'), new go.Binding('text', 'shortenedNumber').makeTwoWay(), new go.Binding('stroke', 'color'), new go.Binding('margin', 'isFormat', (x) => x ? new go.Margin(5, 0, 5, 5) : new go.Margin(5, 5, 5, 5)), new go.Binding('visible', '', function (data) {
3864
3874
  return data.value !== VALUE_NA;
3865
3875
  })),
@@ -3869,18 +3879,18 @@ class AtoDefaultGojsEditor {
3869
3879
  text: VALUE_NA,
3870
3880
  textAlign: 'center',
3871
3881
  font: 'bold 10pt sans-serif',
3872
- stroke: GojsEditorModel.ENUM_COLORS.SALMON,
3882
+ stroke: AtoGojsEditorModel.ENUM_COLORS.SALMON,
3873
3883
  wrap: go.TextBlock.WrapFit,
3874
3884
  editable: false,
3875
3885
  isMultiline: false,
3876
3886
  }, new go.Binding('visible', '', function (data) {
3877
3887
  return data.value === VALUE_NA;
3878
3888
  })))));
3879
- this.myDiagram.nodeTemplateMap.set(GojsEditorModel.ENUM_TEMPLATES.VALUE_NODE, node);
3889
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_NODE, node);
3880
3890
  }
3881
3891
  makeEmptyNodeTemplate(size = { w: 0, h: 0 }) {
3882
3892
  const node = this.$(go.Node, 'Spot', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify));
3883
- this.myDiagram.nodeTemplateMap.set(GojsEditorModel.ENUM_TEMPLATES.EMPTY, node);
3893
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY, node);
3884
3894
  }
3885
3895
  makeValueLabelTemplate(size = { w: 82, h: 36 }) {
3886
3896
  const node = this.$(go.Node, 'Auto', {
@@ -3892,7 +3902,7 @@ class AtoDefaultGojsEditor {
3892
3902
  textAlign: 'center',
3893
3903
  font: 'bold 15px sans-serif',
3894
3904
  wrap: go.TextBlock.WrapFit,
3895
- stroke: GojsEditorModel.ENUM_COLORS.CERULEAN,
3905
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
3896
3906
  minSize: new go.Size(150, 30), // Set the width of the text block
3897
3907
  }, new go.Binding('stroke', 'color'), new go.Binding('text', 'data', (x) => {
3898
3908
  var _a;
@@ -3912,9 +3922,9 @@ class AtoDefaultGojsEditor {
3912
3922
  }
3913
3923
  return retValue;
3914
3924
  }), new go.Binding('visible', 'data', (x) => typeof (x === null || x === void 0 ? void 0 : x.quantity) === 'number')))));
3915
- this.myDiagram.nodeTemplateMap.set(GojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL, node);
3925
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL, node);
3916
3926
  }
3917
- makeTextTemplate(size = { w: GojsEditorModel.GRID_SIZE * 5, h: GojsEditorModel.GRID_SIZE * 2 }) {
3927
+ makeTextTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 2 }) {
3918
3928
  const self = this;
3919
3929
  const contextMenu = this.$(go.Adornment, 'Vertical', this.$('ContextMenuButton', this.$(go.TextBlock, 'Option 1'), {
3920
3930
  click: function (e, obj) {
@@ -4053,8 +4063,8 @@ class AtoDefaultGojsEditor {
4053
4063
  column: 1,
4054
4064
  row: 2,
4055
4065
  }, new go.Binding('width', 'width'), new go.Binding('height', 'height'), this.$(go.Shape, 'RoundedRectangle', {
4056
- fill: GojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
4057
- stroke: GojsEditorModel.ENUM_COLORS.LINK_WATER,
4066
+ fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
4067
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
4058
4068
  name: 'textNodeShape',
4059
4069
  }, new go.Binding('fill', 'fill'), new go.Binding('stroke', 'stroke')), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', { alignment: go.Spot.Center },
4060
4070
  // Alert
@@ -4101,7 +4111,7 @@ class AtoDefaultGojsEditor {
4101
4111
  desiredSize: new go.Size(size.w - 8, 18),
4102
4112
  font: 'bold 22px Arial',
4103
4113
  textAlign: 'center',
4104
- stroke: GojsEditorModel.ENUM_COLORS.GRAY,
4114
+ stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
4105
4115
  overflow: go.TextBlock.OverflowEllipsis,
4106
4116
  },
4107
4117
  // new go.Binding('editable', 'isEditable'),
@@ -4113,7 +4123,7 @@ class AtoDefaultGojsEditor {
4113
4123
  }), new go.Binding('stroke', 'color'), new go.Binding('text', '', function (data) {
4114
4124
  return self.getTextDataBox(data);
4115
4125
  }).makeTwoWay(), new go.Binding('visible', '', (data) => !(data === null || data === void 0 ? void 0 : data.isHiddenValue))))), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false)), this.arrowForPlantCell(size, ATO_ENUM_FLOW_DIRECTION.INFLOW))));
4116
- this.myDiagram.nodeTemplateMap.set(GojsEditorModel.ENUM_TEMPLATES.TEXT_NODE, node);
4126
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE, node);
4117
4127
  }
4118
4128
  arrowForPlantCell(size, flowDirection) {
4119
4129
  return this.$(go.Panel, 'Table', {
@@ -4140,7 +4150,7 @@ class AtoDefaultGojsEditor {
4140
4150
  }
4141
4151
  return `${data === null || data === void 0 ? void 0 : data.shortenedNumber}${(data === null || data === void 0 ? void 0 : data.unitPrefixes) ? ' ' + (data === null || data === void 0 ? void 0 : data.unitPrefixes) : ''}`;
4142
4152
  }
4143
- makeDataBoxTemplate(size = { w: GojsEditorModel.GRID_SIZE * 5, h: GojsEditorModel.GRID_SIZE * 5 }) {
4153
+ makeDataBoxTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
4144
4154
  const self = this;
4145
4155
  let node = this.$(go.Node, 'Spot', {
4146
4156
  locationSpot: go.Spot.Center,
@@ -4175,8 +4185,8 @@ class AtoDefaultGojsEditor {
4175
4185
  }
4176
4186
  },
4177
4187
  }, this.$(go.Panel, 'Auto', { row: 0, stretch: go.GraphObject.Horizontal }, this.$(go.Shape, 'Rectangle', {
4178
- fill: GojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
4179
- stroke: GojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
4188
+ fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
4189
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
4180
4190
  }, new go.Binding('fill', 'color')), this.$(go.TextBlock, {
4181
4191
  row: 0,
4182
4192
  margin: new go.Margin(10, 10, 5, 10),
@@ -4186,8 +4196,8 @@ class AtoDefaultGojsEditor {
4186
4196
  textAlign: 'center',
4187
4197
  spacingBelow: 5,
4188
4198
  }, new go.Binding('text', 'name').makeTwoWay())), this.$(go.Panel, 'Auto', { row: 1, stretch: go.GraphObject.Horizontal }, this.$(go.Shape, 'Rectangle', {
4189
- fill: GojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
4190
- stroke: GojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
4199
+ fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
4200
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
4191
4201
  }), this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
4192
4202
  row: 2,
4193
4203
  // editable: true,
@@ -4196,7 +4206,7 @@ class AtoDefaultGojsEditor {
4196
4206
  margin: new go.Margin(5, 0, 5, 5),
4197
4207
  font: 'bold 12pt Arial',
4198
4208
  textAlign: 'center',
4199
- stroke: GojsEditorModel.ENUM_COLORS.GRAY,
4209
+ stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
4200
4210
  }, new go.Binding('editable', 'isEditable'), new go.Binding('text', 'shortenedNumber').makeTwoWay(), new go.Binding('stroke', 'color'), new go.Binding('visible', '', function (data) {
4201
4211
  return data.value !== VALUE_NA;
4202
4212
  })), this.$(go.TextBlock, {
@@ -4207,7 +4217,7 @@ class AtoDefaultGojsEditor {
4207
4217
  margin: new go.Margin(5, 5, 5, 0),
4208
4218
  font: 'bold 12pt Arial',
4209
4219
  textAlign: 'center',
4210
- stroke: GojsEditorModel.ENUM_COLORS.GRAY,
4220
+ stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
4211
4221
  }, new go.Binding('visible', '', function (data) {
4212
4222
  return data.value !== VALUE_NA;
4213
4223
  }), new go.Binding('text', 'unitPrefixes'), new go.Binding('stroke', 'color')),
@@ -4217,7 +4227,7 @@ class AtoDefaultGojsEditor {
4217
4227
  text: VALUE_NA,
4218
4228
  textAlign: 'center',
4219
4229
  font: 'bold 10pt sans-serif',
4220
- stroke: GojsEditorModel.ENUM_COLORS.SALMON,
4230
+ stroke: AtoGojsEditorModel.ENUM_COLORS.SALMON,
4221
4231
  wrap: go.TextBlock.WrapFit,
4222
4232
  editable: false,
4223
4233
  isMultiline: false,
@@ -4232,12 +4242,12 @@ class AtoDefaultGojsEditor {
4232
4242
  }),
4233
4243
  // four named ports, one on each side:
4234
4244
  this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
4235
- this.myDiagram.nodeTemplateMap.set(GojsEditorModel.ENUM_TEMPLATES.DATA_BOX, node);
4245
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX, node);
4236
4246
  }
4237
4247
  showPoint(loc) {
4238
4248
  const docLoc = this.myDiagram.transformDocToView(loc);
4239
4249
  }
4240
- makeEntityTemplate(icon, title, size = { w: GojsEditorModel.GRID_SIZE * 5, h: GojsEditorModel.GRID_SIZE * 5 }) {
4250
+ makeEntityTemplate(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
4241
4251
  const self = this;
4242
4252
  let node = this.$(go.Node, 'Spot', {
4243
4253
  locationSpot: go.Spot.Center,
@@ -4277,8 +4287,8 @@ class AtoDefaultGojsEditor {
4277
4287
  // more
4278
4288
  !this._initialOptions.isReadOnly
4279
4289
  ? this.generateActionGroup([
4280
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT].name,
4281
- GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER]
4290
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT].name,
4291
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER]
4282
4292
  .name,
4283
4293
  ].includes(title)
4284
4294
  ? [
@@ -4299,7 +4309,7 @@ class AtoDefaultGojsEditor {
4299
4309
  // new go.Binding('location', 'loc', go.Point.parse),
4300
4310
  new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
4301
4311
  fill: 'white',
4302
- stroke: GojsEditorModel.ENUM_COLORS.LINK_WATER,
4312
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
4303
4313
  strokeWidth: 1,
4304
4314
  // strokeDashArray: [5, 5],
4305
4315
  }), this.$(go.Panel, 'Table', this.$(go.Picture, icon, {
@@ -4325,7 +4335,7 @@ class AtoDefaultGojsEditor {
4325
4335
  toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))),
4326
4336
  }, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('editable', '', (data) => {
4327
4337
  var _a;
4328
- return !(((_a = GojsEditorModel.TYPE_COMPONENT_WATER) === null || _a === void 0 ? void 0 : _a.includes(data === null || data === void 0 ? void 0 : data.systemType)) &&
4338
+ return !(((_a = AtoGojsEditorModel.TYPE_COMPONENT_WATER) === null || _a === void 0 ? void 0 : _a.includes(data === null || data === void 0 ? void 0 : data.systemType)) &&
4329
4339
  (data === null || data === void 0 ? void 0 : data.topologyType) !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
4330
4340
  (data === null || data === void 0 ? void 0 : data.topologyType) !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL);
4331
4341
  })))), this.$(go.Panel, 'Vertical', {
@@ -4337,7 +4347,7 @@ class AtoDefaultGojsEditor {
4337
4347
  }), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
4338
4348
  this.myDiagram.nodeTemplateMap.set(title, node);
4339
4349
  }
4340
- makeEntityTemplateEnergy(icon, title, size = { w: GojsEditorModel.GRID_SIZE * 5, h: GojsEditorModel.GRID_SIZE * 5 }) {
4350
+ makeEntityTemplateEnergy(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
4341
4351
  const self = this;
4342
4352
  let node = this.$(go.Node, 'Spot', {
4343
4353
  locationSpot: go.Spot.Center,
@@ -4377,7 +4387,7 @@ class AtoDefaultGojsEditor {
4377
4387
  ]))),
4378
4388
  }, new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
4379
4389
  fill: 'white',
4380
- stroke: GojsEditorModel.ENUM_COLORS.LINK_WATER,
4390
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
4381
4391
  // strokeDashArray: [5, 5],
4382
4392
  }), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
4383
4393
  row: 0,
@@ -4420,7 +4430,7 @@ class AtoDefaultGojsEditor {
4420
4430
  this.myDiagram.nodeTemplateMap.set(title, node);
4421
4431
  }
4422
4432
  // Plant Cell
4423
- plantCellTemplate(icon, title, size = { w: 260, h: GojsEditorModel.PLANT_CELL_HEIGHT }) {
4433
+ plantCellTemplate(icon, title, size = { w: 260, h: AtoGojsEditorModel.PLANT_CELL_HEIGHT }) {
4424
4434
  const self = this;
4425
4435
  let node = this.$(go.Group, 'Spot', {
4426
4436
  locationSpot: go.Spot.Center,
@@ -4501,7 +4511,7 @@ class AtoDefaultGojsEditor {
4501
4511
  }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h },
4502
4512
  // this.$(go.Shape, 'RoundedRectangle', {
4503
4513
  // fill: 'white',
4504
- // stroke: GojsEditorModel.ENUM_COLORS.LINK_WATER,
4514
+ // stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
4505
4515
  // // strokeDashArray: [5, 5],
4506
4516
  // }),
4507
4517
  // this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0), visible: false }),
@@ -4510,7 +4520,7 @@ class AtoDefaultGojsEditor {
4510
4520
  margin: new go.Margin(0, 50, 0, 50),
4511
4521
  }, this.$(go.Shape, 'RoundedRectangle', {
4512
4522
  fill: 'white',
4513
- stroke: GojsEditorModel.ENUM_COLORS.LINK_WATER,
4523
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
4514
4524
  strokeDashArray: [5, 5],
4515
4525
  }), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
4516
4526
  row: 0,
@@ -4528,7 +4538,7 @@ class AtoDefaultGojsEditor {
4528
4538
  alignment: go.Spot.Center,
4529
4539
  desiredSize: new go.Size(size.w - 20, size.h - 65),
4530
4540
  imageStretch: go.GraphObject.Uniform,
4531
- }, new go.Binding('source', 'pathImage', (x) => x !== null && x !== void 0 ? x : GojsEditorModel.NODE_TEMPLATES[GojsEditorModel.ENUM_TEMPLATES.PLANT_CELL].icon)), this.$(go.TextBlock, {
4541
+ }, new go.Binding('source', 'pathImage', (x) => x !== null && x !== void 0 ? x : AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL].icon)), this.$(go.TextBlock, {
4532
4542
  row: 2,
4533
4543
  margin: new go.Margin(10, 0, 3, 0),
4534
4544
  editable: true,
@@ -4550,7 +4560,7 @@ class AtoDefaultGojsEditor {
4550
4560
  }));
4551
4561
  this.myDiagram.nodeTemplateMap.set(title, node);
4552
4562
  }
4553
- makeEntityWithdrawOrDischarge(icon, title, size = { w: GojsEditorModel.GRID_SIZE * 5, h: GojsEditorModel.GRID_SIZE * 5 }) {
4563
+ makeEntityWithdrawOrDischarge(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
4554
4564
  const self = this;
4555
4565
  let node = this.$(go.Node, 'Spot', {
4556
4566
  locationSpot: go.Spot.Center,
@@ -4581,7 +4591,7 @@ class AtoDefaultGojsEditor {
4581
4591
  // new go.Binding('location', 'loc', go.Point.parse),
4582
4592
  new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
4583
4593
  fill: 'white',
4584
- stroke: GojsEditorModel.ENUM_COLORS.LINK_WATER,
4594
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
4585
4595
  // strokeDashArray: [5, 5],
4586
4596
  }), this.$(go.Panel, 'Table',
4587
4597
  // this.$(go.TextBlock, title, {
@@ -4694,8 +4704,8 @@ class AtoDefaultGojsEditor {
4694
4704
  return !!((_b = (_a = obj.part) === null || _a === void 0 ? void 0 : _a['ob']) === null || _b === void 0 ? void 0 : _b.id);
4695
4705
  }
4696
4706
  if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME &&
4697
- ((_d = (_c = obj.part) === null || _c === void 0 ? void 0 : _c['ob']) === null || _d === void 0 ? void 0 : _d.type) !== GojsEditorModel.ENUM_TEMPLATES.TEXT_NODE &&
4698
- ((_e = GojsEditorModel.TYPE_COMPONENT_WATER) === null || _e === void 0 ? void 0 : _e.includes((_g = (_f = obj.part) === null || _f === void 0 ? void 0 : _f['ob']) === null || _g === void 0 ? void 0 : _g.systemType)) &&
4707
+ ((_d = (_c = obj.part) === null || _c === void 0 ? void 0 : _c['ob']) === null || _d === void 0 ? void 0 : _d.type) !== AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE &&
4708
+ ((_e = AtoGojsEditorModel.TYPE_COMPONENT_WATER) === null || _e === void 0 ? void 0 : _e.includes((_g = (_f = obj.part) === null || _f === void 0 ? void 0 : _f['ob']) === null || _g === void 0 ? void 0 : _g.systemType)) &&
4699
4709
  ((_j = (_h = obj.part) === null || _h === void 0 ? void 0 : _h['ob']) === null || _j === void 0 ? void 0 : _j.topologyType) !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
4700
4710
  ((_l = (_k = obj.part) === null || _k === void 0 ? void 0 : _k['ob']) === null || _l === void 0 ? void 0 : _l.topologyType) !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL) {
4701
4711
  return false;
@@ -4745,7 +4755,7 @@ class AtoDefaultGojsEditor {
4745
4755
  case AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME:
4746
4756
  onClickFn = () => {
4747
4757
  var _a, _b, _c, _d, _e;
4748
- if (((_b = (_a = obj.part) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.type) === GojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
4758
+ if (((_b = (_a = obj.part) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.type) === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
4749
4759
  self.onRename.emit(Object.assign({ left: ((_c = e === null || e === void 0 ? void 0 : e['Wr']) === null || _c === void 0 ? void 0 : _c.x) - 50, top: (_d = e === null || e === void 0 ? void 0 : e['Wr']) === null || _d === void 0 ? void 0 : _d.y }, (_e = obj.part) === null || _e === void 0 ? void 0 : _e.data));
4750
4760
  // LayoutService.setToolTipComponentDataStatic({
4751
4761
  // component: RenameBoxComponent,
@@ -4766,9 +4776,9 @@ class AtoDefaultGojsEditor {
4766
4776
  self.clickNewNode(e, _.merge(obj, {
4767
4777
  actionMove: self.dragNewNode,
4768
4778
  _dragData: {
4769
- type: GojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
4770
- name: `${GojsEditorModel.ACTION_RIGHT_MENU_GROUP.DATA_BOX}_${moment().valueOf()}`,
4771
- color: GojsEditorModel.ENUM_COLORS.BLUE,
4779
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
4780
+ name: `${AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP.DATA_BOX}_${moment().valueOf()}`,
4781
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
4772
4782
  movable: self.plantSatus === ATO_EPlantType.BASIC_PLANT ? false : null,
4773
4783
  isNotAllowConnect: self.plantSatus === ATO_EPlantType.BASIC_PLANT ? true : null,
4774
4784
  },
@@ -4818,7 +4828,7 @@ class AtoDefaultGojsEditor {
4818
4828
  const diagram = fromnode.diagram;
4819
4829
  const model = diagram.model;
4820
4830
  const nodedata = Object.assign(Object.assign({}, model.copyNodeData(dragData)), { key: UtilsService.generateUUID() });
4821
- model.addNodeData(Object.assign(Object.assign({}, nodedata), { isEditable: true, shortenedNumber: 0, isFormat: false, dataCollectionMethod: GojsEditorModel.DATA_COLLECTION_METHOD.MANUAL, color: GojsEditorModel.COLOR_COLLECTION_METHOD[GojsEditorModel.DATA_COLLECTION_METHOD.MANUAL].color, group: (_a = fromnode === null || fromnode === void 0 ? void 0 : fromnode.ob) === null || _a === void 0 ? void 0 : _a.group, value: 0 }));
4831
+ model.addNodeData(Object.assign(Object.assign({}, nodedata), { isEditable: true, shortenedNumber: 0, isFormat: false, dataCollectionMethod: AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL, color: AtoGojsEditorModel.COLOR_COLLECTION_METHOD[AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL].color, group: (_a = fromnode === null || fromnode === void 0 ? void 0 : fromnode.ob) === null || _a === void 0 ? void 0 : _a.group, value: 0 }));
4822
4832
  const newnode = diagram.findNodeForData(nodedata);
4823
4833
  const linkdata = model.copyLinkData({});
4824
4834
  model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
@@ -5082,22 +5092,22 @@ class AtoDefaultGojsEditor {
5082
5092
  // selectable: true,
5083
5093
  dragComputation: (node, pt, gridpt) => {
5084
5094
  pt.x =
5085
- Math.round(pt.x / GojsEditorModel.BASIC_GRID_SIZE_WIDTH) *
5086
- GojsEditorModel.BASIC_GRID_SIZE_WIDTH;
5095
+ Math.round(pt.x / AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH) *
5096
+ AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH;
5087
5097
  pt.y =
5088
- Math.round(pt.y / GojsEditorModel.BASIC_GRID_SIZE_HEIGHT) *
5089
- GojsEditorModel.BASIC_GRID_SIZE_HEIGHT;
5098
+ Math.round(pt.y / AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT) *
5099
+ AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT;
5090
5100
  return pt;
5091
5101
  },
5092
5102
  }, {
5093
- // minSize: new go.Size(GojsEditorModel.BASIC_GRID_SIZE_WIDTH, GojsEditorModel.BASIC_GRID_SIZE_HEIGHT),
5103
+ // minSize: new go.Size(AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH, AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT),
5094
5104
  minSize: new go.Size(1, 1),
5095
5105
  maxSize: new go.Size(1, 1),
5096
5106
  // minSize: new go.Size(100, 100),
5097
5107
  }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
5098
5108
  fill: 'transparent',
5099
5109
  stroke: 'transparent',
5100
- // stroke: GojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5110
+ // stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5101
5111
  strokeWidth: 2,
5102
5112
  // strokeDashArray: [5, 5],
5103
5113
  })));
@@ -5136,7 +5146,7 @@ class AtoDefaultGojsEditor {
5136
5146
  // new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
5137
5147
  this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
5138
5148
  fill: 'transparent',
5139
- stroke: GojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5149
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5140
5150
  strokeWidth: 2,
5141
5151
  // strokeDashArray: [5, 5],
5142
5152
  }), this.$(go.Placeholder, { padding: new go.Margin(60, 20, 20, 20) })),
@@ -5229,15 +5239,15 @@ class AtoDefaultGojsEditor {
5229
5239
  }, new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Horizontal', {
5230
5240
  row: 0,
5231
5241
  alignment: go.Spot.Left,
5232
- }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Picture, GojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH, {
5242
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Picture, AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH, {
5233
5243
  alignment: go.Spot.Center,
5234
5244
  // maxSize: new go.Size(500, 500),
5235
5245
  // imageStretch: go.GraphObject.Uniform,
5236
5246
  // margin: new go.Margin(130, 0, 0, 0),
5237
5247
  }, new go.Binding('margin', 'margin'), new go.Binding('width', 'width'), new go.Binding('height', 'height'), new go.Binding('source', '', (data) => {
5238
- return (data === null || data === void 0 ? void 0 : data.source) ? data === null || data === void 0 ? void 0 : data.source : GojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH;
5248
+ return (data === null || data === void 0 ? void 0 : data.source) ? data === null || data === void 0 ? void 0 : data.source : AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH;
5239
5249
  }))));
5240
- this.myDiagram.nodeTemplateMap.set(GojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE, node);
5250
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE, node);
5241
5251
  }
5242
5252
  makeParamTable() {
5243
5253
  const self = this;
@@ -5323,8 +5333,9 @@ class AtoDefaultGojsEditor {
5323
5333
  defaultSeparatorPadding: new go.Margin(0, 0, 0, 0),
5324
5334
  stretch: go.GraphObject.Fill,
5325
5335
  }, new go.Binding('minSize', '', (data, panel) => {
5326
- var _a, _b;
5327
- return (_b = (_a = panel.part) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.minSizeValue;
5336
+ var _a, _b, _c;
5337
+ // return panel.part?.data?.minSizeValue;
5338
+ return new go.Size((_c = (_b = (_a = panel.part) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.minSizeValue) === null || _c === void 0 ? void 0 : _c.width, NaN);
5328
5339
  }), this.$(go.TextBlock, '', {
5329
5340
  column: 0,
5330
5341
  margin: 0,
@@ -5384,7 +5395,7 @@ class AtoDefaultGojsEditor {
5384
5395
  return (data === null || data === void 0 ? void 0 : data.isEditable) === false ? 0.6 : 1;
5385
5396
  })))),
5386
5397
  })));
5387
- this.myDiagram.nodeTemplateMap.set(GojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, node);
5398
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, node);
5388
5399
  }
5389
5400
  makeMassBalance() {
5390
5401
  const self = this;
@@ -5401,11 +5412,11 @@ class AtoDefaultGojsEditor {
5401
5412
  margin: new go.Margin(0, 5, 0, 0),
5402
5413
  text: 'Mass Balance:',
5403
5414
  }, new go.Binding('font', 'font')), this.$(go.TextBlock, '', {
5404
- stroke: GojsEditorModel.ENUM_COLORS.ALIZARIN,
5415
+ stroke: AtoGojsEditorModel.ENUM_COLORS.ALIZARIN,
5405
5416
  }, new go.Binding('font', 'font'), new go.Binding('stroke', 'colorValue'), new go.Binding('text', '', (data, panel) => {
5406
5417
  return data === null || data === void 0 ? void 0 : data.value;
5407
5418
  }))));
5408
- this.myDiagram.nodeTemplateMap.set(GojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE, node);
5419
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE, node);
5409
5420
  }
5410
5421
  makeGroupROPlantTemplate(icon, title, size = { w: 80, h: 80 }) {
5411
5422
  let node = this.$(go.Group, 'Spot', {
@@ -5418,7 +5429,7 @@ class AtoDefaultGojsEditor {
5418
5429
  }, this.$(go.Shape, 'RoundedRectangle', {
5419
5430
  name: 'SHAPE_KEY',
5420
5431
  fill: '#FCFCFD',
5421
- stroke: GojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5432
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5422
5433
  strokeWidth: 2,
5423
5434
  // strokeDashArray: [5, 5],
5424
5435
  }), this.$(go.Placeholder, { padding: new go.Margin(15, 0, 0, 0) })), this.$(go.Picture, RO_LINE_DIRTY, {
@@ -5478,7 +5489,7 @@ class AtoDefaultGojsEditor {
5478
5489
  }, this.$(go.Shape, 'RoundedRectangle', {
5479
5490
  name: 'SHAPE_KEY',
5480
5491
  fill: '#FCFCFD',
5481
- stroke: GojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5492
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5482
5493
  strokeWidth: 2,
5483
5494
  }), this.$(go.Placeholder, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), { padding: new go.Margin(0, 0, 0, 0) })), this.$(go.Panel, 'Spot', {
5484
5495
  width: 0,
@@ -5521,7 +5532,7 @@ class AtoDefaultGojsEditor {
5521
5532
  }, this.$(go.Shape, 'RoundedRectangle', {
5522
5533
  name: 'SHAPE_KEY',
5523
5534
  fill: '#FCFCFD',
5524
- stroke: GojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5535
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5525
5536
  strokeWidth: 2,
5526
5537
  strokeDashArray: [5, 5],
5527
5538
  }), this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })), this.$(go.Panel, 'Table', {
@@ -5639,16 +5650,16 @@ class AtoDefaultGojsEditor {
5639
5650
  // self.onHoverInfoButton.emit(null);
5640
5651
  // // let shape = (node as any)?.findObject('SHAPE_KEY');
5641
5652
  // // if (shape) {
5642
- // // shape.stroke = GojsEditorModel.ENUM_COLORS.WHITE;
5653
+ // // shape.stroke = AtoGojsEditorModel.ENUM_COLORS.WHITE;
5643
5654
  // // }
5644
5655
  // },
5645
5656
  }, new go.Binding('layout', '', function (data, node) {
5646
- // return data?.layoutValue === GojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
5657
+ // return data?.layoutValue === AtoGojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
5647
5658
  // ? self.$(go.LayeredDigraphLayout, { direction: 0 })
5648
5659
  // : node?.layout;
5649
5660
  if ((data === null || data === void 0 ? void 0 : data.layoutValue) !== (data === null || data === void 0 ? void 0 : data.layoutValueClone)) {
5650
5661
  data.layoutValueClone = data === null || data === void 0 ? void 0 : data.layoutValue;
5651
- return (data === null || data === void 0 ? void 0 : data.layoutValue) === GojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
5662
+ return (data === null || data === void 0 ? void 0 : data.layoutValue) === AtoGojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
5652
5663
  ? self.$(go.LayeredDigraphLayout, { direction: 0 })
5653
5664
  : self.$(go.Layout);
5654
5665
  }
@@ -5683,7 +5694,7 @@ class AtoDefaultGojsEditor {
5683
5694
  }, this.$(go.Shape, 'RoundedRectangle', {
5684
5695
  name: 'SHAPE_KEY',
5685
5696
  fill: 'transparent',
5686
- stroke: GojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5697
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5687
5698
  strokeWidth: 2,
5688
5699
  strokeDashArray: [5, 5],
5689
5700
  }), this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })));
@@ -5717,8 +5728,8 @@ class AtoDefaultGojsEditor {
5717
5728
  // },
5718
5729
  // this.$(go.Shape, 'RoundedRectangle', {
5719
5730
  // fill: 'transparent',
5720
- // // stroke: GojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5721
- // stroke: GojsEditorModel.ENUM_COLORS.WHITE,
5731
+ // // stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5732
+ // stroke: AtoGojsEditorModel.ENUM_COLORS.WHITE,
5722
5733
  // strokeWidth: 2,
5723
5734
  // strokeDashArray: [5, 5],
5724
5735
  // }),
@@ -5739,8 +5750,8 @@ class AtoDefaultGojsEditor {
5739
5750
  padding: padding !== null && padding !== void 0 ? padding : new go.Margin(0, 0, 0, 0),
5740
5751
  }, this.$(go.Shape, 'RoundedRectangle', {
5741
5752
  fill: 'transparent',
5742
- stroke: GojsEditorModel.ENUM_COLORS.WHITE,
5743
- // stroke: GojsEditorModel.ENUM_COLORS.ALIZARIN,
5753
+ stroke: AtoGojsEditorModel.ENUM_COLORS.WHITE,
5754
+ // stroke: AtoGojsEditorModel.ENUM_COLORS.ALIZARIN,
5744
5755
  strokeWidth: 2,
5745
5756
  // strokeDashArray: [5, 5],
5746
5757
  }), this.$(go.Placeholder, {
@@ -5748,7 +5759,7 @@ class AtoDefaultGojsEditor {
5748
5759
  })));
5749
5760
  this.myDiagram.groupTemplateMap.set(title, node);
5750
5761
  }
5751
- makeGroupZoneTemplate(size = { w: GojsEditorModel.GRID_SIZE * 14, h: GojsEditorModel.GRID_SIZE * 5 }) {
5762
+ makeGroupZoneTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 14, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
5752
5763
  const self = this;
5753
5764
  let node = this.$(go.Group, 'Vertical', {
5754
5765
  layout: this.$(go.GridLayout, { wrappingColumn: 1, spacing: new go.Size(0, 0) }),
@@ -5782,9 +5793,9 @@ class AtoDefaultGojsEditor {
5782
5793
  background: 'white',
5783
5794
  }, this.$('Button', {
5784
5795
  _dragData: {
5785
- type: GojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
5796
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
5786
5797
  name: 0,
5787
- color: GojsEditorModel.ENUM_COLORS.BLUE,
5798
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
5788
5799
  },
5789
5800
  click: self.addItemOnGroupZone,
5790
5801
  'ButtonBorder.strokeWidth': 0,
@@ -5805,7 +5816,7 @@ class AtoDefaultGojsEditor {
5805
5816
  ]))),
5806
5817
  }, this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
5807
5818
  fill: 'transparent',
5808
- stroke: GojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5819
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
5809
5820
  strokeWidth: 2,
5810
5821
  strokeDashArray: [5, 5],
5811
5822
  maxSize: new go.Size(size.w, NaN),
@@ -5817,7 +5828,7 @@ class AtoDefaultGojsEditor {
5817
5828
  margin: new go.Margin(5, 0, 10, 0),
5818
5829
  editable: true,
5819
5830
  desiredSize: new go.Size(size.w - 20, 25),
5820
- stroke: GojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
5831
+ stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
5821
5832
  font: 'bold 16px Arial',
5822
5833
  textAlign: 'center',
5823
5834
  wrap: go.TextBlock.None,
@@ -5828,9 +5839,9 @@ class AtoDefaultGojsEditor {
5828
5839
  }, new go.Binding('text', 'name').makeTwoWay()), this.$(go.Placeholder, 'Vertical', {
5829
5840
  row: 1,
5830
5841
  })), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false)), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify));
5831
- this.myDiagram.groupTemplateMap.set(GojsEditorModel.ENUM_TEMPLATES.ZONE, node);
5842
+ this.myDiagram.groupTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.ZONE, node);
5832
5843
  }
5833
- makeZoneItemTemplate(size = { w: GojsEditorModel.GRID_SIZE * 12, h: GojsEditorModel.GRID_SIZE * 2 }) {
5844
+ makeZoneItemTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 12, h: AtoGojsEditorModel.GRID_SIZE * 2 }) {
5834
5845
  const self = this;
5835
5846
  const node = this.$(go.Node, 'Auto',
5836
5847
  // {
@@ -5865,15 +5876,15 @@ class AtoDefaultGojsEditor {
5865
5876
  width: size.w,
5866
5877
  height: size.h,
5867
5878
  }, this.$(go.Shape, 'Rectangle', {
5868
- fill: GojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
5869
- stroke: GojsEditorModel.ENUM_COLORS.LINK_WATER,
5879
+ fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
5880
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
5870
5881
  }), this.$(go.Panel, 'Vertical', this.$(go.TextBlock, {
5871
5882
  editable: true,
5872
5883
  row: 2,
5873
5884
  margin: new go.Margin(10, 0, 5, 0),
5874
5885
  font: 'bold 12px Arial',
5875
5886
  textAlign: 'center',
5876
- stroke: GojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
5887
+ stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
5877
5888
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
5878
5889
  margin: 4,
5879
5890
  }, new go.Binding('text', 'name').makeTwoWay())),
@@ -5883,7 +5894,7 @@ class AtoDefaultGojsEditor {
5883
5894
  margin: new go.Margin(0, 5, 10, 0),
5884
5895
  textAlign: 'center',
5885
5896
  font: '12px sans-serif',
5886
- stroke: GojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
5897
+ stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
5887
5898
  wrap: go.TextBlock.WrapFit,
5888
5899
  editable: true,
5889
5900
  isMultiline: false,
@@ -5896,14 +5907,14 @@ class AtoDefaultGojsEditor {
5896
5907
  margin: new go.Margin(0, 5, 10, 0),
5897
5908
  textAlign: 'center',
5898
5909
  font: '12px sans-serif',
5899
- stroke: GojsEditorModel.ENUM_COLORS.CERULEAN,
5910
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
5900
5911
  wrap: go.TextBlock.WrapFit,
5901
5912
  text: '< ',
5902
5913
  }, new go.Binding('visible', 'data', (x) => typeof (x === null || x === void 0 ? void 0 : x.quantity) === 'number')), this.$(go.TextBlock, {
5903
5914
  margin: new go.Margin(0, 5, 10, 0),
5904
5915
  textAlign: 'center',
5905
5916
  font: '12px sans-serif',
5906
- stroke: GojsEditorModel.ENUM_COLORS.CERULEAN,
5917
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
5907
5918
  wrap: go.TextBlock.WrapFit,
5908
5919
  }, new go.Binding('text', 'data', (x) => {
5909
5920
  var _a;
@@ -5919,16 +5930,16 @@ class AtoDefaultGojsEditor {
5919
5930
  margin: new go.Margin(0, 5, 10, 0),
5920
5931
  textAlign: 'center',
5921
5932
  font: '12px sans-serif',
5922
- stroke: GojsEditorModel.ENUM_COLORS.CERULEAN,
5933
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
5923
5934
  wrap: go.TextBlock.WrapFit,
5924
5935
  text: ' >',
5925
5936
  }, new go.Binding('visible', 'data', (x) => typeof (x === null || x === void 0 ? void 0 : x.quantity) === 'number'))))));
5926
- this.myDiagram.nodeTemplateMap.set(GojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM, node);
5937
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM, node);
5927
5938
  }
5928
- makeSpecialTemplate(icon, title, size = { w: GojsEditorModel.GRID_SIZE * 5, h: GojsEditorModel.GRID_SIZE * 5 }) {
5939
+ makeSpecialTemplate(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
5929
5940
  let node = null;
5930
5941
  switch (title) {
5931
- case GojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS:
5942
+ case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS:
5932
5943
  node = this.$(go.Node, 'Spot',
5933
5944
  // {
5934
5945
  // fromSpot: go.Spot.Right, // coming out from middle-right
@@ -5952,7 +5963,7 @@ class AtoDefaultGojsEditor {
5952
5963
  stroke: '#2D3B77',
5953
5964
  strokeWidth: 2,
5954
5965
  // strokeDashArray: [5, 5],
5955
- }), this.$(go.Panel, 'Table', this.$(go.TextBlock, GojsEditorModel.ENUM_TEMPLATES.PROCESS, {
5966
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS, {
5956
5967
  row: 0,
5957
5968
  margin: new go.Margin(3, 3, 10, 3),
5958
5969
  maxSize: new go.Size(size.w - 20, NaN),
@@ -5975,7 +5986,7 @@ class AtoDefaultGojsEditor {
5975
5986
  // four named ports, one on each side:
5976
5987
  this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
5977
5988
  break;
5978
- case GojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORAGE:
5989
+ case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORAGE:
5979
5990
  node = this.$(go.Node, 'Spot', {
5980
5991
  click: (e, obj) => {
5981
5992
  var _a, _b;
@@ -5994,7 +6005,7 @@ class AtoDefaultGojsEditor {
5994
6005
  stroke: '#2D3B77',
5995
6006
  strokeWidth: 2,
5996
6007
  // strokeDashArray: [5, 5],
5997
- }), this.$(go.Panel, 'Table', this.$(go.TextBlock, GojsEditorModel.ENUM_TEMPLATES.STORAGE, {
6008
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE, {
5998
6009
  row: 0,
5999
6010
  margin: new go.Margin(3, 3, 10, 3),
6000
6011
  maxSize: new go.Size(size.w - 20, NaN),
@@ -6018,7 +6029,7 @@ class AtoDefaultGojsEditor {
6018
6029
  // four named ports, one on each side:
6019
6030
  this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
6020
6031
  break;
6021
- case GojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE:
6032
+ case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE:
6022
6033
  node = this.$(go.Node, 'Spot', {
6023
6034
  click: (e, obj) => {
6024
6035
  var _a, _b;
@@ -6052,7 +6063,7 @@ class AtoDefaultGojsEditor {
6052
6063
  imageStretch: go.GraphObject.Uniform,
6053
6064
  }))));
6054
6065
  break;
6055
- case GojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE:
6066
+ case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE:
6056
6067
  node = this.$(go.Node, 'Spot', {
6057
6068
  click: (e, obj) => {
6058
6069
  var _a, _b;
@@ -6086,7 +6097,7 @@ class AtoDefaultGojsEditor {
6086
6097
  imageStretch: go.GraphObject.Uniform,
6087
6098
  }))));
6088
6099
  break;
6089
- case GojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER:
6100
+ case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER:
6090
6101
  node = this.$(go.Node, 'Spot', {
6091
6102
  click: (e, obj) => {
6092
6103
  var _a, _b;
@@ -6426,17 +6437,17 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
6426
6437
  });
6427
6438
  }
6428
6439
  // setTimeout(() => {
6429
- this.editor = new GojsEditorModel(Object.assign({ class: 'go.GraphLinksModel', nodeCategoryProperty: 'type' }, this.data));
6440
+ this.editor = new AtoGojsEditorModel(Object.assign({ class: 'go.GraphLinksModel', nodeCategoryProperty: 'type' }, this.data));
6430
6441
  }
6431
6442
  findNodeForKey(key) {
6432
6443
  this.myDiagram.select(this.myDiagram.findNodeForKey(key));
6433
6444
  }
6434
6445
  }
6435
6446
  AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6436
- AtoFlowDiagramLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: { showNotificationIcon: "showNotificationIcon", data: "data", isLoading: "isLoading" }, viewQueries: [{ propertyName: "myDiagramDivTemp", first: true, predicate: ["myDiagramDivTemp"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- <div tqlSpin [spinning]=\"data === null || !!isLoading\" class=\"w-100 h-100 gj-flow-diagram-wrapper\">\n <div class=\"w-100 h-100 d-flex\">\n <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu>\n\n <div #myDiagramDivTemp [id]=\"myDiagramDiv\" class=\"flex-grow-1\"></div>\n <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <nz-empty nzNotFoundImage=\"simple\"></nz-empty>\n </div>\n </div>\n</div> -->\n<div style=\"height: 100%\" #myDiagramDivTemp [id]=\"myDiagramDiv\" class=\"flex-grow-1\"></div>\n", styles: [""] });
6447
+ AtoFlowDiagramLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: { showNotificationIcon: "showNotificationIcon", data: "data", isLoading: "isLoading" }, viewQueries: [{ propertyName: "myDiagramDivTemp", first: true, predicate: ["myDiagramDivTemp"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" style=\"height: 100%\">\n <!-- tqlSpin [spinning]=\"data === null || !!isLoading\" -->\n <div class=\"w-100 h-100 d-flex\" style=\"height: 100%\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp [id]=\"myDiagramDiv\" class=\"flex-grow-1\" style=\"height: 100%\"></div>\n <!-- <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <nz-empty nzNotFoundImage=\"simple\"></nz-empty>\n </div> -->\n </div>\n</div>\n", styles: [""] });
6437
6448
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
6438
6449
  type: Component,
6439
- args: [{ selector: 'ato-flow-diagram-lib', template: "<!-- <div tqlSpin [spinning]=\"data === null || !!isLoading\" class=\"w-100 h-100 gj-flow-diagram-wrapper\">\n <div class=\"w-100 h-100 d-flex\">\n <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu>\n\n <div #myDiagramDivTemp [id]=\"myDiagramDiv\" class=\"flex-grow-1\"></div>\n <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <nz-empty nzNotFoundImage=\"simple\"></nz-empty>\n </div>\n </div>\n</div> -->\n<div style=\"height: 100%\" #myDiagramDivTemp [id]=\"myDiagramDiv\" class=\"flex-grow-1\"></div>\n" }]
6450
+ args: [{ selector: 'ato-flow-diagram-lib', template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" style=\"height: 100%\">\n <!-- tqlSpin [spinning]=\"data === null || !!isLoading\" -->\n <div class=\"w-100 h-100 d-flex\" style=\"height: 100%\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp [id]=\"myDiagramDiv\" class=\"flex-grow-1\" style=\"height: 100%\"></div>\n <!-- <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <nz-empty nzNotFoundImage=\"simple\"></nz-empty>\n </div> -->\n </div>\n</div>\n" }]
6440
6451
  }], ctorParameters: function () { return []; }, propDecorators: { myDiagramDivTemp: [{
6441
6452
  type: ViewChild,
6442
6453
  args: ['myDiagramDivTemp']
@@ -6448,24 +6459,1235 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6448
6459
  type: Input
6449
6460
  }] } });
6450
6461
 
6462
+ var ENUM_ASSET_PARAMETERS;
6463
+ (function (ENUM_ASSET_PARAMETERS) {
6464
+ ENUM_ASSET_PARAMETERS["FEED_FLOW_RATE"] = "Feed Flow Rate";
6465
+ ENUM_ASSET_PARAMETERS["FEED_CONDUCTIVITY"] = "Feed Conductivity";
6466
+ ENUM_ASSET_PARAMETERS["FEED_TEMPERATURE"] = "Feed Temperature";
6467
+ ENUM_ASSET_PARAMETERS["PRIMARY_PRESSURE"] = "Primary Pressure";
6468
+ ENUM_ASSET_PARAMETERS["REJECTION_RATE_SALT_PASSAGE"] = "Rejection Rate/Salt Passage";
6469
+ ENUM_ASSET_PARAMETERS["PRESSURE_DROP"] = "Pressure Drop";
6470
+ ENUM_ASSET_PARAMETERS["SYSTEM_RECOVERY_RATE"] = "System Recovery Rate";
6471
+ ENUM_ASSET_PARAMETERS["PERMEATE_FLOW_RATE"] = "Permeate Flow Rate";
6472
+ ENUM_ASSET_PARAMETERS["PERMEATE_CONDUCTIVITY"] = "Permeate Conductivity";
6473
+ ENUM_ASSET_PARAMETERS["PERMEATE_PRESSURE"] = "Permeate Pressure";
6474
+ ENUM_ASSET_PARAMETERS["CONCENTRATE_FLOW_RATE"] = "Concentrate Flow Rate";
6475
+ ENUM_ASSET_PARAMETERS["CONCENTRATE_PRESSURE"] = "Stage2 Concentrate Pressure";
6476
+ ENUM_ASSET_PARAMETERS["CONCENTRATE_CONDUCTIVITY"] = "Concentrate Conductivity";
6477
+ // Makeup Water
6478
+ ENUM_ASSET_PARAMETERS["MAKEUP_WATER_FLOW_RATE"] = "MakeupWaterFlowRate";
6479
+ ENUM_ASSET_PARAMETERS["MAKEUP_WATER_FLOW"] = "MakeupWaterFlow";
6480
+ ENUM_ASSET_PARAMETERS["MAKEUP_WATER_CONDUCTIVITY"] = "MakeupWaterConductivity";
6481
+ ENUM_ASSET_PARAMETERS["MAKEUP_WATER_PH"] = "MakeupWaterpH";
6482
+ ENUM_ASSET_PARAMETERS["MAKEUP_WATER_CALCIUM"] = "MakeupWaterCalcium";
6483
+ ENUM_ASSET_PARAMETERS["MAKEUP_WATER_TOTAL_IRON"] = "MakeupWaterTotalIron";
6484
+ // Evaporation Loss
6485
+ ENUM_ASSET_PARAMETERS["EVAPORATION_LOSS_FLOW_RATE"] = "EvaporationLossFlowRate";
6486
+ ENUM_ASSET_PARAMETERS["EVAPORATION_LOSS_FLOW"] = "EvaporationLossFlow";
6487
+ // Blowndown Water
6488
+ ENUM_ASSET_PARAMETERS["BLOWDOWN_WATER_FLOW_RATE"] = "BlowdownWaterFlowRate";
6489
+ ENUM_ASSET_PARAMETERS["BLOWDOWN_WATER_FLOW"] = "BlowdownWaterFlow";
6490
+ // Warmer Water
6491
+ ENUM_ASSET_PARAMETERS["WARMER_WATER_FLOW_RATE"] = "WarmerWaterFlowRate";
6492
+ ENUM_ASSET_PARAMETERS["WARMER_WATER_FLOW"] = "WarmerWaterFlow";
6493
+ // Cooling Tower Analysis
6494
+ ENUM_ASSET_PARAMETERS["ANALYSIS_CONDUCTIVITY"] = "AnalysisConductivity";
6495
+ ENUM_ASSET_PARAMETERS["ANALYSIS_PH"] = "AnalysispH";
6496
+ ENUM_ASSET_PARAMETERS["ANALYSIS_CALCIUM"] = "AnalysisCalcium";
6497
+ ENUM_ASSET_PARAMETERS["ANALYSIS_TOTAL_IRON"] = "AnalysisTotalIron";
6498
+ // Cooling Tower Chemistry
6499
+ ENUM_ASSET_PARAMETERS["CHEMISTRY_PHOSPHATE"] = "ChemistryPhosphate";
6500
+ ENUM_ASSET_PARAMETERS["CHEMISTRY_CHLORINE"] = "ChemistryChlorine";
6501
+ ENUM_ASSET_PARAMETERS["CHEMISTRY_STP_RESIDUAL"] = "ChemistrySTPResidual";
6502
+ ENUM_ASSET_PARAMETERS["CHEMISTRY_CS_CORROSION"] = "ChemistryCSCorrosion";
6503
+ })(ENUM_ASSET_PARAMETERS || (ENUM_ASSET_PARAMETERS = {}));
6504
+ var WATER_SYSTEMS_NAME;
6505
+ (function (WATER_SYSTEMS_NAME) {
6506
+ WATER_SYSTEMS_NAME["EVAPORATION_LOSS"] = "Evaporation Loss";
6507
+ WATER_SYSTEMS_NAME["MAKEUP_WATER"] = "Makeup Water";
6508
+ WATER_SYSTEMS_NAME["WARMER_WATER"] = "Warmer Water (Recirculation)";
6509
+ WATER_SYSTEMS_NAME["BLOWDOWN_WATER"] = "Blowdown Water";
6510
+ WATER_SYSTEMS_NAME["COOLING_TOWER_ANALYSIS"] = "Cooling Water Analysis";
6511
+ WATER_SYSTEMS_NAME["COOLING_WATER_CHEMISTRY"] = "Cooling Water Chemistry";
6512
+ })(WATER_SYSTEMS_NAME || (WATER_SYSTEMS_NAME = {}));
6513
+ const DATA_ASSET_PARAMETER_FIELDS = {
6514
+ [ENUM_ASSET_PARAMETERS.FEED_FLOW_RATE]: {
6515
+ name: ENUM_ASSET_PARAMETERS.FEED_FLOW_RATE,
6516
+ key: ENUM_ASSET_PARAMETERS.FEED_FLOW_RATE,
6517
+ },
6518
+ [ENUM_ASSET_PARAMETERS.FEED_CONDUCTIVITY]: {
6519
+ name: ENUM_ASSET_PARAMETERS.FEED_CONDUCTIVITY,
6520
+ key: ENUM_ASSET_PARAMETERS.FEED_CONDUCTIVITY,
6521
+ },
6522
+ [ENUM_ASSET_PARAMETERS.FEED_TEMPERATURE]: {
6523
+ name: ENUM_ASSET_PARAMETERS.FEED_TEMPERATURE,
6524
+ key: ENUM_ASSET_PARAMETERS.FEED_TEMPERATURE,
6525
+ },
6526
+ [ENUM_ASSET_PARAMETERS.PRIMARY_PRESSURE]: {
6527
+ name: ENUM_ASSET_PARAMETERS.PRIMARY_PRESSURE,
6528
+ key: ENUM_ASSET_PARAMETERS.PRIMARY_PRESSURE,
6529
+ },
6530
+ [ENUM_ASSET_PARAMETERS.REJECTION_RATE_SALT_PASSAGE]: {
6531
+ name: ENUM_ASSET_PARAMETERS.REJECTION_RATE_SALT_PASSAGE,
6532
+ key: ENUM_ASSET_PARAMETERS.REJECTION_RATE_SALT_PASSAGE,
6533
+ },
6534
+ [ENUM_ASSET_PARAMETERS.PRESSURE_DROP]: {
6535
+ name: ENUM_ASSET_PARAMETERS.PRESSURE_DROP,
6536
+ key: ENUM_ASSET_PARAMETERS.PRESSURE_DROP,
6537
+ },
6538
+ [ENUM_ASSET_PARAMETERS.SYSTEM_RECOVERY_RATE]: {
6539
+ name: ENUM_ASSET_PARAMETERS.SYSTEM_RECOVERY_RATE,
6540
+ key: ENUM_ASSET_PARAMETERS.SYSTEM_RECOVERY_RATE,
6541
+ },
6542
+ [ENUM_ASSET_PARAMETERS.PERMEATE_FLOW_RATE]: {
6543
+ name: ENUM_ASSET_PARAMETERS.PERMEATE_FLOW_RATE,
6544
+ key: ENUM_ASSET_PARAMETERS.PERMEATE_FLOW_RATE,
6545
+ },
6546
+ [ENUM_ASSET_PARAMETERS.PERMEATE_CONDUCTIVITY]: {
6547
+ name: ENUM_ASSET_PARAMETERS.PERMEATE_CONDUCTIVITY,
6548
+ key: ENUM_ASSET_PARAMETERS.PERMEATE_CONDUCTIVITY,
6549
+ },
6550
+ [ENUM_ASSET_PARAMETERS.PERMEATE_PRESSURE]: {
6551
+ name: ENUM_ASSET_PARAMETERS.PERMEATE_PRESSURE,
6552
+ key: ENUM_ASSET_PARAMETERS.PERMEATE_PRESSURE,
6553
+ },
6554
+ [ENUM_ASSET_PARAMETERS.CONCENTRATE_FLOW_RATE]: {
6555
+ name: ENUM_ASSET_PARAMETERS.CONCENTRATE_FLOW_RATE,
6556
+ key: ENUM_ASSET_PARAMETERS.CONCENTRATE_FLOW_RATE,
6557
+ },
6558
+ [ENUM_ASSET_PARAMETERS.CONCENTRATE_PRESSURE]: {
6559
+ name: ENUM_ASSET_PARAMETERS.CONCENTRATE_PRESSURE,
6560
+ key: ENUM_ASSET_PARAMETERS.CONCENTRATE_PRESSURE,
6561
+ },
6562
+ [ENUM_ASSET_PARAMETERS.CONCENTRATE_CONDUCTIVITY]: {
6563
+ name: ENUM_ASSET_PARAMETERS.CONCENTRATE_CONDUCTIVITY,
6564
+ key: ENUM_ASSET_PARAMETERS.CONCENTRATE_CONDUCTIVITY,
6565
+ },
6566
+ // Makeup Water
6567
+ [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW_RATE]: {
6568
+ name: 'Flow Rate',
6569
+ key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW_RATE,
6570
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6571
+ },
6572
+ [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW]: {
6573
+ name: 'Flow',
6574
+ key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW,
6575
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6576
+ },
6577
+ [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CONDUCTIVITY]: {
6578
+ name: 'Conductivity',
6579
+ key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CONDUCTIVITY,
6580
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6581
+ },
6582
+ [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_PH]: {
6583
+ name: 'pH',
6584
+ key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_PH,
6585
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6586
+ },
6587
+ [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CALCIUM]: {
6588
+ name: 'Calcium',
6589
+ key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CALCIUM,
6590
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6591
+ },
6592
+ [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_TOTAL_IRON]: {
6593
+ name: 'Total Iron',
6594
+ key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_TOTAL_IRON,
6595
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6596
+ },
6597
+ // Evaporation Loss
6598
+ [ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW_RATE]: {
6599
+ name: 'Flow Rate',
6600
+ key: ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW_RATE,
6601
+ waterSystem: WATER_SYSTEMS_NAME.EVAPORATION_LOSS,
6602
+ },
6603
+ [ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW]: {
6604
+ name: 'Flow',
6605
+ key: ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW,
6606
+ waterSystem: WATER_SYSTEMS_NAME.EVAPORATION_LOSS,
6607
+ },
6608
+ // Blowndown Water
6609
+ [ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW_RATE]: {
6610
+ name: 'Flow Rate',
6611
+ key: ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW_RATE,
6612
+ waterSystem: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
6613
+ },
6614
+ [ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW]: {
6615
+ name: 'Flow',
6616
+ key: ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW,
6617
+ waterSystem: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
6618
+ },
6619
+ // Warmer Water
6620
+ [ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW_RATE]: {
6621
+ name: 'Flow Rate',
6622
+ key: ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW_RATE,
6623
+ waterSystem: WATER_SYSTEMS_NAME.WARMER_WATER,
6624
+ },
6625
+ [ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW]: {
6626
+ name: 'Flow',
6627
+ key: ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW,
6628
+ waterSystem: WATER_SYSTEMS_NAME.WARMER_WATER,
6629
+ },
6630
+ // Cooling Tower Analysis
6631
+ [ENUM_ASSET_PARAMETERS.ANALYSIS_CONDUCTIVITY]: {
6632
+ name: 'Conductivity',
6633
+ key: ENUM_ASSET_PARAMETERS.ANALYSIS_CONDUCTIVITY,
6634
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
6635
+ },
6636
+ [ENUM_ASSET_PARAMETERS.ANALYSIS_PH]: {
6637
+ name: 'pH',
6638
+ key: ENUM_ASSET_PARAMETERS.ANALYSIS_PH,
6639
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
6640
+ },
6641
+ [ENUM_ASSET_PARAMETERS.ANALYSIS_CALCIUM]: {
6642
+ name: 'Calcium',
6643
+ key: ENUM_ASSET_PARAMETERS.ANALYSIS_CALCIUM,
6644
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
6645
+ },
6646
+ [ENUM_ASSET_PARAMETERS.ANALYSIS_TOTAL_IRON]: {
6647
+ name: 'Iron',
6648
+ key: ENUM_ASSET_PARAMETERS.ANALYSIS_TOTAL_IRON,
6649
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
6650
+ },
6651
+ // Cooling Tower Chemistry
6652
+ [ENUM_ASSET_PARAMETERS.CHEMISTRY_PHOSPHATE]: {
6653
+ name: 'Phosphate',
6654
+ key: ENUM_ASSET_PARAMETERS.CHEMISTRY_PHOSPHATE,
6655
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
6656
+ },
6657
+ [ENUM_ASSET_PARAMETERS.CHEMISTRY_CHLORINE]: {
6658
+ name: 'Chlorine',
6659
+ key: ENUM_ASSET_PARAMETERS.CHEMISTRY_CHLORINE,
6660
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
6661
+ },
6662
+ [ENUM_ASSET_PARAMETERS.CHEMISTRY_STP_RESIDUAL]: {
6663
+ name: 'STP Residual',
6664
+ key: ENUM_ASSET_PARAMETERS.CHEMISTRY_STP_RESIDUAL,
6665
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
6666
+ },
6667
+ [ENUM_ASSET_PARAMETERS.CHEMISTRY_CS_CORROSION]: {
6668
+ name: 'CS Corrosion',
6669
+ key: ENUM_ASSET_PARAMETERS.CHEMISTRY_CS_CORROSION,
6670
+ waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
6671
+ },
6672
+ };
6673
+ const DATA_WATER_SYSTEMS = {
6674
+ [WATER_SYSTEMS_NAME.EVAPORATION_LOSS]: {
6675
+ title: WATER_SYSTEMS_NAME.EVAPORATION_LOSS,
6676
+ color: AtoGojsEditorModel.ENUM_COLORS.FLAMINGO,
6677
+ borderTable: AtoGojsEditorModel.ENUM_COLORS.FLAMINGO,
6678
+ bgColor: AtoGojsEditorModel.ENUM_COLORS.SNOW,
6679
+ },
6680
+ [WATER_SYSTEMS_NAME.WARMER_WATER]: {
6681
+ title: WATER_SYSTEMS_NAME.WARMER_WATER,
6682
+ color: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
6683
+ borderTable: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
6684
+ bgColor: AtoGojsEditorModel.ENUM_COLORS.OLD_LACE,
6685
+ },
6686
+ [WATER_SYSTEMS_NAME.BLOWDOWN_WATER]: {
6687
+ title: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
6688
+ color: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
6689
+ borderTable: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
6690
+ bgColor: AtoGojsEditorModel.ENUM_COLORS.OLD_LACE,
6691
+ },
6692
+ [WATER_SYSTEMS_NAME.MAKEUP_WATER]: {
6693
+ title: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6694
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
6695
+ borderTable: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
6696
+ bgColor: AtoGojsEditorModel.ENUM_COLORS.CERULEAN_ALICE_BLUE,
6697
+ },
6698
+ [WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS]: {
6699
+ title: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
6700
+ color: AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE,
6701
+ borderTable: AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE,
6702
+ bgColor: AtoGojsEditorModel.ENUM_COLORS.AZURE,
6703
+ },
6704
+ [WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY]: {
6705
+ title: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
6706
+ color: AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE,
6707
+ borderTable: AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE,
6708
+ bgColor: AtoGojsEditorModel.ENUM_COLORS.AZURE,
6709
+ },
6710
+ };
6711
+ const ASSET_CATEGORY_PARAMS = {
6712
+ [WATER_SYSTEMS_NAME.EVAPORATION_LOSS]: [
6713
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW_RATE],
6714
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW],
6715
+ ],
6716
+ [WATER_SYSTEMS_NAME.WARMER_WATER]: [
6717
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW_RATE],
6718
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW],
6719
+ ],
6720
+ [WATER_SYSTEMS_NAME.MAKEUP_WATER]: [
6721
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW_RATE],
6722
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW],
6723
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CONDUCTIVITY],
6724
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_PH],
6725
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CALCIUM],
6726
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_TOTAL_IRON],
6727
+ ],
6728
+ [WATER_SYSTEMS_NAME.BLOWDOWN_WATER]: [
6729
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW_RATE],
6730
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW],
6731
+ ],
6732
+ [WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS]: [
6733
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.ANALYSIS_CONDUCTIVITY],
6734
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.ANALYSIS_PH],
6735
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.ANALYSIS_CALCIUM],
6736
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.ANALYSIS_TOTAL_IRON],
6737
+ ],
6738
+ [WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY]: [
6739
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.CHEMISTRY_PHOSPHATE],
6740
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.CHEMISTRY_CHLORINE],
6741
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.CHEMISTRY_STP_RESIDUAL],
6742
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.CHEMISTRY_CS_CORROSION],
6743
+ ],
6744
+ };
6745
+ var COMPONENTS_GROUP_TYPE;
6746
+ (function (COMPONENTS_GROUP_TYPE) {
6747
+ COMPONENTS_GROUP_TYPE["INFLOW"] = "Inflow";
6748
+ COMPONENTS_GROUP_TYPE["LOSS"] = "Loss";
6749
+ COMPONENTS_GROUP_TYPE["OUTFLOW"] = "Outflow";
6750
+ COMPONENTS_GROUP_TYPE["RECIRCULATED"] = "Recirculated";
6751
+ COMPONENTS_GROUP_TYPE["EMBODIED"] = "Embodied";
6752
+ COMPONENTS_GROUP_TYPE["INFLOW_VALUE"] = "InFlowValue";
6753
+ COMPONENTS_GROUP_TYPE["OUTFLOW_VALUE"] = "OutFlowValue";
6754
+ COMPONENTS_GROUP_TYPE["LOSS_VALUE"] = "LossValue";
6755
+ COMPONENTS_GROUP_TYPE["RECIRCULATED_VALUE"] = "RecirculatedValue";
6756
+ })(COMPONENTS_GROUP_TYPE || (COMPONENTS_GROUP_TYPE = {}));
6757
+ const ATO_COMPONENTS_GROUP_DATA = {
6758
+ [AtoGojsEditorModel.ENUM_TYPES.STORAGE]: {
6759
+ nodeDataArray: [
6760
+ {
6761
+ key: 90,
6762
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6763
+ name: 'Inflow',
6764
+ value: '0 kl',
6765
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
6766
+ group: 100,
6767
+ loc: '0 130.5',
6768
+ },
6769
+ {
6770
+ key: 91,
6771
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6772
+ name: 'Outflow',
6773
+ value: '0 kl',
6774
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
6775
+ group: 100,
6776
+ loc: '300 130.5',
6777
+ },
6778
+ {
6779
+ key: 92,
6780
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6781
+ name: 'Loss',
6782
+ value: 'M',
6783
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
6784
+ group: 100,
6785
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
6786
+ loc: '152.5 0',
6787
+ },
6788
+ {
6789
+ key: 99,
6790
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE,
6791
+ group: 100,
6792
+ loc: '92.5 95',
6793
+ },
6794
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE, isGroup: true, name: 'Group' },
6795
+ ],
6796
+ linkDataArray: [
6797
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
6798
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
6799
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
6800
+ ],
6801
+ },
6802
+ [AtoGojsEditorModel.ENUM_TYPES.WATER_TREATMENT]: {
6803
+ nodeDataArray: [
6804
+ {
6805
+ key: 90,
6806
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6807
+ name: 'Inflow',
6808
+ value: '0 kl',
6809
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
6810
+ group: 100,
6811
+ loc: '0 134.5',
6812
+ },
6813
+ {
6814
+ key: 91,
6815
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6816
+ name: 'Outflow',
6817
+ value: '0 kl',
6818
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
6819
+ group: 100,
6820
+ loc: '333 170',
6821
+ },
6822
+ {
6823
+ key: 92,
6824
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6825
+ name: 'Loss',
6826
+ value: 'M',
6827
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
6828
+ group: 100,
6829
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
6830
+ loc: '160.5 297',
6831
+ },
6832
+ {
6833
+ key: 93,
6834
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6835
+ name: 'Recirculated',
6836
+ value: 'M',
6837
+ color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
6838
+ group: 100,
6839
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
6840
+ loc: '266 32',
6841
+ },
6842
+ {
6843
+ key: 99,
6844
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
6845
+ group: 100,
6846
+ loc: '92.5 95',
6847
+ },
6848
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WATER_TREATMENT, isGroup: true, name: 'Group' },
6849
+ ],
6850
+ linkDataArray: [
6851
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
6852
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
6853
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
6854
+ { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'T' },
6855
+ { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
6856
+ ],
6857
+ },
6858
+ [AtoGojsEditorModel.ENUM_TYPES.DEMIN_WATER_TREATMENT]: {
6859
+ nodeDataArray: [
6860
+ {
6861
+ key: 90,
6862
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6863
+ name: 'Inflow',
6864
+ value: '0 kl',
6865
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
6866
+ group: 100,
6867
+ loc: '0 134.5',
6868
+ },
6869
+ {
6870
+ key: 91,
6871
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6872
+ name: 'Outflow',
6873
+ value: '0 kl',
6874
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
6875
+ group: 100,
6876
+ loc: '333 170',
6877
+ },
6878
+ {
6879
+ key: 92,
6880
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6881
+ name: 'Loss',
6882
+ value: 'M',
6883
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
6884
+ group: 100,
6885
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
6886
+ loc: '160.5 297',
6887
+ },
6888
+ {
6889
+ key: 93,
6890
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
6891
+ name: 'Recirculated',
6892
+ value: 'M',
6893
+ color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
6894
+ group: 100,
6895
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
6896
+ loc: '266 32',
6897
+ },
6898
+ {
6899
+ key: 99,
6900
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
6901
+ group: 100,
6902
+ loc: '125 110',
6903
+ },
6904
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WATER_TREATMENT, isGroup: true, name: 'Group' },
6905
+ ],
6906
+ linkDataArray: [
6907
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
6908
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
6909
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
6910
+ { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
6911
+ { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
6912
+ ],
6913
+ },
6914
+ [AtoGojsEditorModel.ENUM_TYPES.RO_WATER_TREATMENT]: {
6915
+ nodeDataArray: [
6916
+ {
6917
+ key: 93,
6918
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE,
6919
+ group: 100,
6920
+ loc: '830 10',
6921
+ selectable: false,
6922
+ value: 'NA',
6923
+ font: 'bold 15px Arial',
6924
+ colorValue: '',
6925
+ tooltip: '',
6926
+ },
6927
+ Object.assign(Object.assign({ key: 94, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '20 10', padding: new go__default.Margin(0, 0, 0, 20) }, AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.CERULEAN]), { minSizeValue: new go__default.Size(100, NaN), selectable: false, dataTable: [
6928
+ {
6929
+ key: '',
6930
+ name: ENUM_ASSET_PARAMETERS.FEED_FLOW_RATE,
6931
+ value: '',
6932
+ isEditable: true,
6933
+ },
6934
+ {
6935
+ key: '',
6936
+ name: ENUM_ASSET_PARAMETERS.FEED_CONDUCTIVITY,
6937
+ value: '',
6938
+ isEditable: true,
6939
+ },
6940
+ {
6941
+ key: '',
6942
+ name: ENUM_ASSET_PARAMETERS.FEED_TEMPERATURE,
6943
+ value: '',
6944
+ isEditable: true,
6945
+ },
6946
+ {
6947
+ key: '',
6948
+ name: ENUM_ASSET_PARAMETERS.PRIMARY_PRESSURE,
6949
+ value: '',
6950
+ isEditable: true,
6951
+ },
6952
+ ] }),
6953
+ Object.assign(Object.assign({ key: 95, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '420 40' }, AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.DANUBE]), { minSizeValue: new go__default.Size(100, NaN), selectable: false, dataTable: [
6954
+ {
6955
+ key: '',
6956
+ name: ENUM_ASSET_PARAMETERS.REJECTION_RATE_SALT_PASSAGE,
6957
+ value: '',
6958
+ isEditable: true,
6959
+ },
6960
+ {
6961
+ key: '',
6962
+ name: ENUM_ASSET_PARAMETERS.PRESSURE_DROP,
6963
+ value: '',
6964
+ isEditable: true,
6965
+ },
6966
+ {
6967
+ key: '',
6968
+ name: ENUM_ASSET_PARAMETERS.SYSTEM_RECOVERY_RATE,
6969
+ value: '',
6970
+ isEditable: true,
6971
+ },
6972
+ ] }),
6973
+ Object.assign(Object.assign({ key: 96, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '590 150' }, AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE]), { minSizeValue: new go__default.Size(100, NaN), selectable: false, dataTable: [
6974
+ {
6975
+ key: '',
6976
+ name: ENUM_ASSET_PARAMETERS.PERMEATE_FLOW_RATE,
6977
+ value: '',
6978
+ isEditable: true,
6979
+ },
6980
+ {
6981
+ key: '',
6982
+ name: ENUM_ASSET_PARAMETERS.PERMEATE_CONDUCTIVITY,
6983
+ value: '',
6984
+ isEditable: true,
6985
+ },
6986
+ {
6987
+ key: '',
6988
+ name: ENUM_ASSET_PARAMETERS.PERMEATE_PRESSURE,
6989
+ value: '',
6990
+ isEditable: true,
6991
+ },
6992
+ ] }),
6993
+ Object.assign(Object.assign({ key: 97, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '30 370' }, AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.GALLIANO]), { minSizeValue: new go__default.Size(100, NaN), selectable: false, dataTable: [
6994
+ {
6995
+ key: '',
6996
+ name: ENUM_ASSET_PARAMETERS.CONCENTRATE_FLOW_RATE,
6997
+ value: '',
6998
+ isEditable: true,
6999
+ },
7000
+ {
7001
+ key: '',
7002
+ name: ENUM_ASSET_PARAMETERS.CONCENTRATE_PRESSURE,
7003
+ value: '',
7004
+ isEditable: true,
7005
+ },
7006
+ {
7007
+ key: '',
7008
+ name: ENUM_ASSET_PARAMETERS.CONCENTRATE_CONDUCTIVITY,
7009
+ value: '',
7010
+ isEditable: true,
7011
+ },
7012
+ ] }),
7013
+ {
7014
+ key: 99,
7015
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
7016
+ source: AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH,
7017
+ group: 100,
7018
+ loc: '0 0',
7019
+ margin: new go__default.Margin(130, 0, 0, 0),
7020
+ selectable: false,
7021
+ },
7022
+ {
7023
+ key: 100,
7024
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT,
7025
+ isGroup: true,
7026
+ name: 'Grid',
7027
+ loc: '0 0',
7028
+ selectable: false,
7029
+ // isViewGeneral: true,
7030
+ },
7031
+ ],
7032
+ linkDataArray: [],
7033
+ },
7034
+ [AtoGojsEditorModel.ENUM_TYPES.PROCESS]: {
7035
+ nodeDataArray: [
7036
+ {
7037
+ key: 90,
7038
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7039
+ name: 'Inflow',
7040
+ value: '0 kl',
7041
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7042
+ group: 100,
7043
+ loc: '0 134.5',
7044
+ },
7045
+ {
7046
+ key: 91,
7047
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7048
+ name: 'Outflow',
7049
+ value: '0 kl',
7050
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7051
+ group: 100,
7052
+ loc: '333 190',
7053
+ },
7054
+ {
7055
+ key: 92,
7056
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7057
+ name: 'Loss',
7058
+ value: 'M',
7059
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7060
+ group: 100,
7061
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7062
+ loc: '104 -20',
7063
+ },
7064
+ {
7065
+ key: 93,
7066
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7067
+ name: 'Recirculated',
7068
+ value: 'M',
7069
+ color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
7070
+ group: 100,
7071
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7072
+ loc: '266 32',
7073
+ },
7074
+ {
7075
+ key: 94,
7076
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7077
+ name: 'Embodied',
7078
+ value: 'M',
7079
+ color: AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE,
7080
+ group: 100,
7081
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7082
+ loc: '144.5 297',
7083
+ },
7084
+ {
7085
+ key: 99,
7086
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
7087
+ group: 100,
7088
+ loc: '90 80',
7089
+ },
7090
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS, isGroup: true, name: 'Group' },
7091
+ ],
7092
+ linkDataArray: [
7093
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7094
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7095
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7096
+ { from: 99, to: 94, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7097
+ { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7098
+ { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7099
+ ],
7100
+ },
7101
+ [AtoGojsEditorModel.ENUM_TYPES.WASTEWATER_TREATMENT]: {
7102
+ nodeDataArray: [
7103
+ {
7104
+ key: 90,
7105
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7106
+ name: 'Inflow',
7107
+ value: '0 kl',
7108
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7109
+ group: 100,
7110
+ loc: '0 134.5',
7111
+ },
7112
+ {
7113
+ key: 91,
7114
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7115
+ name: 'Outflow',
7116
+ value: '126 kl',
7117
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7118
+ group: 100,
7119
+ loc: '333 170',
7120
+ },
7121
+ {
7122
+ key: 92,
7123
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7124
+ name: 'Loss',
7125
+ value: 'M',
7126
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7127
+ group: 100,
7128
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7129
+ loc: '160.5 297',
7130
+ },
7131
+ {
7132
+ key: 93,
7133
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7134
+ name: 'Recirculated',
7135
+ value: 'M',
7136
+ color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
7137
+ group: 100,
7138
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7139
+ loc: '266 32',
7140
+ },
7141
+ {
7142
+ key: 99,
7143
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
7144
+ group: 100,
7145
+ loc: '125 110',
7146
+ },
7147
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
7148
+ ],
7149
+ linkDataArray: [
7150
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7151
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7152
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7153
+ { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7154
+ { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7155
+ ],
7156
+ },
7157
+ [AtoGojsEditorModel.ENUM_TYPES.DAF_WASTEWATER_TREATMENT]: {
7158
+ nodeDataArray: [
7159
+ {
7160
+ key: 90,
7161
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7162
+ name: 'Inflow',
7163
+ value: '0 kl',
7164
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7165
+ group: 100,
7166
+ loc: '0 134.5',
7167
+ },
7168
+ {
7169
+ key: 91,
7170
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7171
+ name: 'Outflow',
7172
+ value: '126 kl',
7173
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7174
+ group: 100,
7175
+ loc: '333 170',
7176
+ },
7177
+ {
7178
+ key: 92,
7179
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7180
+ name: 'Loss',
7181
+ value: 'M',
7182
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7183
+ group: 100,
7184
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7185
+ loc: '160.5 297',
7186
+ },
7187
+ {
7188
+ key: 93,
7189
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7190
+ name: 'Recirculated',
7191
+ value: 'M',
7192
+ color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
7193
+ group: 100,
7194
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7195
+ loc: '266 32',
7196
+ },
7197
+ {
7198
+ key: 99,
7199
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
7200
+ group: 100,
7201
+ loc: '125 110',
7202
+ },
7203
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
7204
+ ],
7205
+ linkDataArray: [
7206
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7207
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7208
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7209
+ { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7210
+ { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7211
+ ],
7212
+ },
7213
+ [AtoGojsEditorModel.ENUM_TYPES.ETP_WASTEWATER_TREATMENT]: {
7214
+ nodeDataArray: [
7215
+ {
7216
+ key: 90,
7217
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7218
+ name: 'Inflow',
7219
+ value: '0 kl',
7220
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7221
+ group: 100,
7222
+ loc: '0 134.5',
7223
+ },
7224
+ {
7225
+ key: 91,
7226
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7227
+ name: 'Outflow',
7228
+ value: '126 kl',
7229
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7230
+ group: 100,
7231
+ loc: '333 170',
7232
+ },
7233
+ {
7234
+ key: 92,
7235
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7236
+ name: 'Loss',
7237
+ value: 'M',
7238
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7239
+ group: 100,
7240
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7241
+ loc: '160.5 297',
7242
+ },
7243
+ {
7244
+ key: 93,
7245
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7246
+ name: 'Recirculated',
7247
+ value: 'M',
7248
+ color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
7249
+ group: 100,
7250
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7251
+ loc: '266 32',
7252
+ },
7253
+ {
7254
+ key: 99,
7255
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
7256
+ group: 100,
7257
+ loc: '125 110',
7258
+ },
7259
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
7260
+ ],
7261
+ linkDataArray: [
7262
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7263
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7264
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7265
+ { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7266
+ { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7267
+ ],
7268
+ },
7269
+ [AtoGojsEditorModel.ENUM_TYPES.MBR_WASTEWATER_TREATMENT]: {
7270
+ nodeDataArray: [
7271
+ {
7272
+ key: 90,
7273
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7274
+ name: 'Inflow',
7275
+ value: '0 kl',
7276
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7277
+ group: 100,
7278
+ loc: '0 134.5',
7279
+ },
7280
+ {
7281
+ key: 91,
7282
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7283
+ name: 'Outflow',
7284
+ value: '126 kl',
7285
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7286
+ group: 100,
7287
+ loc: '333 170',
7288
+ },
7289
+ {
7290
+ key: 92,
7291
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7292
+ name: 'Loss',
7293
+ value: 'M',
7294
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7295
+ group: 100,
7296
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7297
+ loc: '160.5 297',
7298
+ },
7299
+ {
7300
+ key: 93,
7301
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7302
+ name: 'Recirculated',
7303
+ value: 'M',
7304
+ color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
7305
+ group: 100,
7306
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7307
+ loc: '266 32',
7308
+ },
7309
+ {
7310
+ key: 99,
7311
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
7312
+ group: 100,
7313
+ loc: '125 110',
7314
+ },
7315
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
7316
+ ],
7317
+ linkDataArray: [
7318
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7319
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7320
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7321
+ { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7322
+ { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7323
+ ],
7324
+ },
7325
+ [AtoGojsEditorModel.ENUM_TYPES.ZLD_WASTEWATER_TREATMENT]: {
7326
+ nodeDataArray: [
7327
+ {
7328
+ key: 90,
7329
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7330
+ name: 'Inflow',
7331
+ value: '0 kl',
7332
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7333
+ group: 100,
7334
+ loc: '0 134.5',
7335
+ },
7336
+ {
7337
+ key: 91,
7338
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7339
+ name: 'Outflow',
7340
+ value: '126 kl',
7341
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7342
+ group: 100,
7343
+ loc: '333 170',
7344
+ },
7345
+ {
7346
+ key: 92,
7347
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7348
+ name: 'Loss',
7349
+ value: 'M',
7350
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7351
+ group: 100,
7352
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7353
+ loc: '160.5 297',
7354
+ },
7355
+ {
7356
+ key: 93,
7357
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7358
+ name: 'Recirculated',
7359
+ value: 'M',
7360
+ color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
7361
+ group: 100,
7362
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7363
+ loc: '266 32',
7364
+ },
7365
+ {
7366
+ key: 99,
7367
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
7368
+ group: 100,
7369
+ loc: '125 110',
7370
+ },
7371
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
7372
+ ],
7373
+ linkDataArray: [
7374
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7375
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7376
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7377
+ { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7378
+ { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7379
+ ],
7380
+ },
7381
+ [AtoGojsEditorModel.ENUM_TYPES.DOMESTIC_USE]: {
7382
+ nodeDataArray: [
7383
+ {
7384
+ key: 90,
7385
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7386
+ name: 'Inflow',
7387
+ value: '0 kl',
7388
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7389
+ group: 100,
7390
+ loc: '-20 134.5',
7391
+ },
7392
+ {
7393
+ key: 91,
7394
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7395
+ name: 'Outflow',
7396
+ value: '0 kl',
7397
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7398
+ group: 100,
7399
+ loc: '320 134.5',
7400
+ },
7401
+ {
7402
+ key: 92,
7403
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7404
+ name: 'Loss',
7405
+ value: 'M',
7406
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7407
+ group: 100,
7408
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7409
+ loc: '150.5 0',
7410
+ },
7411
+ {
7412
+ key: 99,
7413
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
7414
+ group: 100,
7415
+ loc: '82.5 95',
7416
+ },
7417
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.DOMESTIC_USE, isGroup: true, name: 'Group' },
7418
+ ],
7419
+ linkDataArray: [
7420
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7421
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7422
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7423
+ ],
7424
+ },
7425
+ [AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER]: {
7426
+ nodeDataArray: [
7427
+ {
7428
+ key: 92,
7429
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
7430
+ group: 100,
7431
+ loc: '0 0',
7432
+ data: {
7433
+ quantity: 2222,
7434
+ unit: 'm³',
7435
+ },
7436
+ name: 'top-left-marker',
7437
+ color: '#a8438d',
7438
+ },
7439
+ {
7440
+ key: 93,
7441
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
7442
+ group: 100,
7443
+ loc: '1000 700',
7444
+ data: {
7445
+ quantity: 3333,
7446
+ unit: 'm³',
7447
+ },
7448
+ name: 'bottom-right-marker',
7449
+ color: '#a8438d',
7450
+ },
7451
+ Object.assign(Object.assign({ key: 94, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '30 160', padding: new go__default.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS]), { minSizeValue: new go__default.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 140 }))) }),
7452
+ Object.assign(Object.assign({ key: 95, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go__default.Margin(0, 0, 0, 0), loc: '30 270' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER]), { minSizeValue: new go__default.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 120 }))) }),
7453
+ Object.assign(Object.assign({ key: 96, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go__default.Margin(0, 0, 0, 0), loc: '580 250' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.WARMER_WATER]), { minSizeValue: new go__default.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.WARMER_WATER].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 120 }))) }),
7454
+ Object.assign(Object.assign({ key: 97, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go__default.Margin(0, 0, 0, 0), loc: '580 560' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER]), { minSizeValue: new go__default.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 120 }))) }),
7455
+ Object.assign(Object.assign({ key: 98, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go__default.Margin(0, 0, 0, 0), loc: '450 20' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS]), { minSizeValue: new go__default.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 130 }))) }),
7456
+ Object.assign(Object.assign({ key: 99, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go__default.Margin(0, 0, 0, 0), loc: '730 20' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY]), { minSizeValue: new go__default.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 130 }))) }),
7457
+ {
7458
+ key: 91,
7459
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
7460
+ source: AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH,
7461
+ group: 100,
7462
+ loc: '0 0',
7463
+ margin: new go__default.Margin(195, 20, 0, 0),
7464
+ selectable: false,
7465
+ },
7466
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER, isGroup: true, name: 'Group' },
7467
+ ],
7468
+ linkDataArray: [],
7469
+ },
7470
+ [AtoGojsEditorModel.ENUM_TYPES.BOILER]: {
7471
+ nodeDataArray: [
7472
+ {
7473
+ key: 99,
7474
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
7475
+ source: AtoGojsEditorModel.IMAGE_BOILER_PATH,
7476
+ group: 100,
7477
+ loc: '0 0',
7478
+ margin: new go__default.Margin(0, 0, 0, 0),
7479
+ selectable: false,
7480
+ width: 1038,
7481
+ height: 516,
7482
+ },
7483
+ {
7484
+ key: 95,
7485
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL,
7486
+ group: 100,
7487
+ loc: '0 380',
7488
+ data: {
7489
+ quantity: 2222,
7490
+ unit: 'm3',
7491
+ },
7492
+ name: COMPONENTS_GROUP_TYPE.INFLOW_VALUE,
7493
+ color: '#a8438d',
7494
+ },
7495
+ {
7496
+ key: 96,
7497
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL,
7498
+ group: 100,
7499
+ loc: '670 430',
7500
+ data: {
7501
+ quantity: 3333,
7502
+ unit: 'm3',
7503
+ },
7504
+ name: COMPONENTS_GROUP_TYPE.OUTFLOW_VALUE,
7505
+ color: '#a8438d',
7506
+ },
7507
+ {
7508
+ key: 97,
7509
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL,
7510
+ group: 100,
7511
+ loc: '612 0',
7512
+ data: {
7513
+ quantity: 4444,
7514
+ unit: 'm3',
7515
+ },
7516
+ name: COMPONENTS_GROUP_TYPE.LOSS_VALUE,
7517
+ color: '#a8438d',
7518
+ },
7519
+ {
7520
+ key: 98,
7521
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL,
7522
+ group: 100,
7523
+ loc: '310 0',
7524
+ data: {
7525
+ quantity: 5555,
7526
+ unit: 'm3',
7527
+ },
7528
+ name: COMPONENTS_GROUP_TYPE.RECIRCULATED_VALUE,
7529
+ color: '#a8438d',
7530
+ },
7531
+ {
7532
+ key: 100,
7533
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.BOILER,
7534
+ isGroup: true,
7535
+ name: 'Group',
7536
+ loc: '0 0',
7537
+ selectable: false,
7538
+ },
7539
+ ],
7540
+ linkDataArray: [],
7541
+ },
7542
+ [AtoGojsEditorModel.ENUM_TYPES.OTHER]: {
7543
+ nodeDataArray: [
7544
+ {
7545
+ key: 90,
7546
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7547
+ name: 'Inflow',
7548
+ value: '0 kl',
7549
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7550
+ group: 100,
7551
+ loc: '0 140.5',
7552
+ },
7553
+ {
7554
+ key: 91,
7555
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7556
+ name: 'Outflow',
7557
+ value: '0 kl',
7558
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7559
+ group: 100,
7560
+ loc: '300 134.5',
7561
+ },
7562
+ {
7563
+ key: 92,
7564
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7565
+ name: 'Loss',
7566
+ value: 'M',
7567
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7568
+ group: 100,
7569
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7570
+ loc: '160.5 0',
7571
+ },
7572
+ {
7573
+ key: 99,
7574
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
7575
+ group: 100,
7576
+ loc: '92.5 95',
7577
+ },
7578
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.OTHER, isGroup: true, name: 'Group' },
7579
+ ],
7580
+ linkDataArray: [
7581
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7582
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7583
+ { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7584
+ ],
7585
+ },
7586
+ [AtoGojsEditorModel.ENUM_TYPES.LANDSCAPING_IRRIGATION]: {
7587
+ nodeDataArray: [
7588
+ {
7589
+ key: 90,
7590
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7591
+ name: 'Inflow',
7592
+ value: '0 kl',
7593
+ color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
7594
+ group: 100,
7595
+ loc: '0 140.5',
7596
+ },
7597
+ {
7598
+ key: 91,
7599
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
7600
+ name: 'Loss',
7601
+ value: 'M',
7602
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7603
+ group: 100,
7604
+ colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
7605
+ loc: '300 140.5',
7606
+ },
7607
+ {
7608
+ key: 99,
7609
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE,
7610
+ group: 100,
7611
+ loc: '92.5 95',
7612
+ },
7613
+ { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.LANDSCAPING_IRRIGATION, isGroup: true, name: 'Group' },
7614
+ ],
7615
+ linkDataArray: [
7616
+ { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7617
+ { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7618
+ ],
7619
+ },
7620
+ };
7621
+
7622
+ class AssetFlowComponent {
7623
+ constructor() {
7624
+ this.onClickParamOfTableEvent = new EventEmitter();
7625
+ this.$ = go.GraphObject.make;
7626
+ this.options = {
7627
+ layout: this.$(go.LayeredDigraphLayout, {
7628
+ // direction: 0,
7629
+ }),
7630
+ // isReadOnly: true,
7631
+ };
7632
+ this.flowData = {};
7633
+ }
7634
+ ngOnInit() {
7635
+ // this.flowData = {
7636
+ // ...ATO_COMPONENTS_GROUP_DATA[this.systemType],
7637
+ // linkFromPortIdProperty: 'fromPort',
7638
+ // linkToPortIdProperty: 'toPort',
7639
+ // };
7640
+ this.getDefaultFlowData();
7641
+ }
7642
+ onClickParamOfTable($event) {
7643
+ this.onClickParamOfTableEvent.emit($event);
7644
+ }
7645
+ getDefaultFlowData() {
7646
+ return Object.assign(Object.assign({}, ATO_COMPONENTS_GROUP_DATA[this.systemType]), { linkFromPortIdProperty: 'fromPort', linkToPortIdProperty: 'toPort' });
7647
+ }
7648
+ }
7649
+ AssetFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7650
+ AssetFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AssetFlowComponent, selector: "ato-asset-flow", inputs: { selectedComponent: "selectedComponent", systemType: "systemType", flowData: "flowData" }, outputs: { onClickParamOfTableEvent: "onClickParamOfTableEvent" }, viewQueries: [{ propertyName: "gjFlowDiagramTemp", first: true, predicate: AtoFlowDiagramLibComponent, descendants: true }], ngImport: i0, template: "<div class=\"h-100\" style=\"height: 100%\">\n <!-- tqlSpin [spinning]=\"flowData === null\" [delay]=\"1000\" -->\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n ></ato-flow-diagram-lib>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: ["showNotificationIcon", "data", "isLoading"] }] });
7651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, decorators: [{
7652
+ type: Component,
7653
+ args: [{ selector: 'ato-asset-flow', template: "<div class=\"h-100\" style=\"height: 100%\">\n <!-- tqlSpin [spinning]=\"flowData === null\" [delay]=\"1000\" -->\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n ></ato-flow-diagram-lib>\n</div>\n" }]
7654
+ }], propDecorators: { gjFlowDiagramTemp: [{
7655
+ type: ViewChild,
7656
+ args: [AtoFlowDiagramLibComponent]
7657
+ }], selectedComponent: [{
7658
+ type: Input
7659
+ }], systemType: [{
7660
+ type: Input
7661
+ }], onClickParamOfTableEvent: [{
7662
+ type: Output
7663
+ }], flowData: [{
7664
+ type: Input
7665
+ }] } });
7666
+
6451
7667
  class AtoWaterLibModule {
6452
7668
  }
6453
7669
  AtoWaterLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6454
7670
  AtoWaterLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, declarations: [AtoWaterLibComponent,
6455
- AtoFlowDiagramLibComponent], exports: [AtoWaterLibComponent,
6456
- AtoFlowDiagramLibComponent] });
6457
- AtoWaterLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule });
7671
+ AtoFlowDiagramLibComponent,
7672
+ AssetFlowComponent], imports: [CommonModule], exports: [AtoWaterLibComponent,
7673
+ AtoFlowDiagramLibComponent,
7674
+ AssetFlowComponent] });
7675
+ AtoWaterLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, imports: [CommonModule] });
6458
7676
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, decorators: [{
6459
7677
  type: NgModule,
6460
7678
  args: [{
6461
7679
  declarations: [
6462
7680
  AtoWaterLibComponent,
6463
- AtoFlowDiagramLibComponent
7681
+ AtoFlowDiagramLibComponent,
7682
+ AssetFlowComponent,
7683
+ ],
7684
+ imports: [
7685
+ CommonModule
6464
7686
  ],
6465
- imports: [],
6466
7687
  exports: [
6467
7688
  AtoWaterLibComponent,
6468
- AtoFlowDiagramLibComponent
7689
+ AtoFlowDiagramLibComponent,
7690
+ AssetFlowComponent
6469
7691
  ]
6470
7692
  }]
6471
7693
  }] });
@@ -6478,5 +7700,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6478
7700
  * Generated bundle index. Do not edit.
6479
7701
  */
6480
7702
 
6481
- export { AtoFlowDiagramLibComponent, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
7703
+ export { AssetFlowComponent, AtoFlowDiagramLibComponent, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
6482
7704
  //# sourceMappingURL=ato-water-lib.mjs.map