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.
- package/esm2020/lib/ato-water-lib.module.mjs +15 -7
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +56 -0
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +5 -5
- package/esm2020/lib/constants/components-group-const.mjs +1289 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +225 -223
- package/esm2020/lib/models/gojs-editor.model.mjs +302 -295
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ato-water-lib.mjs +1748 -526
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +1879 -526
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/ato-water-lib.module.d.ts +3 -1
- package/lib/components/asset-flow/asset-flow.component.d.ts +21 -0
- package/lib/constants/components-group-const.d.ts +1132 -0
- package/lib/models/default-gojs-editor.model.d.ts +3 -3
- package/lib/models/gojs-editor.model.d.ts +10 -7
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
@@ -2,9 +2,11 @@ import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Component, EventEmitter, Directive, ViewChild, Input, Output, NgModule } from '@angular/core';
|
3
3
|
import _ from 'lodash';
|
4
4
|
import * as go from 'gojs';
|
5
|
+
import go__default from 'gojs';
|
5
6
|
import moment from 'moment';
|
6
7
|
import { Subject, Subscription } from 'rxjs';
|
7
|
-
import
|
8
|
+
import * as i1 from '@angular/common';
|
9
|
+
import { DecimalPipe, CommonModule } from '@angular/common';
|
8
10
|
import { v4 } from 'uuid';
|
9
11
|
|
10
12
|
class AtoWaterLibService {
|
@@ -818,26 +820,26 @@ var ATO_ENUM_FLOW_DIRECTION;
|
|
818
820
|
ATO_ENUM_FLOW_DIRECTION["NONE"] = "";
|
819
821
|
})(ATO_ENUM_FLOW_DIRECTION || (ATO_ENUM_FLOW_DIRECTION = {}));
|
820
822
|
|
821
|
-
class
|
823
|
+
class AtoGojsEditorModel {
|
822
824
|
constructor(data) {
|
823
825
|
this.data = data;
|
824
826
|
}
|
825
827
|
}
|
826
|
-
(function (
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
828
|
+
(function (AtoGojsEditorModel) {
|
829
|
+
AtoGojsEditorModel.GRID_SIZE = 20;
|
830
|
+
AtoGojsEditorModel.BASIC_GRID_INTERVAL_X = 24;
|
831
|
+
AtoGojsEditorModel.BASIC_GRID_INTERVAL_Y = 10;
|
832
|
+
AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH = AtoGojsEditorModel.GRID_SIZE * AtoGojsEditorModel.BASIC_GRID_INTERVAL_X;
|
833
|
+
AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT = AtoGojsEditorModel.GRID_SIZE * AtoGojsEditorModel.BASIC_GRID_INTERVAL_Y;
|
834
|
+
AtoGojsEditorModel.DISTANCE_LAST_TO_ADD = 50;
|
835
|
+
AtoGojsEditorModel.PLANT_CELL_HEIGHT = 160;
|
834
836
|
let ENUM_LAYOUT_EDITOR;
|
835
837
|
(function (ENUM_LAYOUT_EDITOR) {
|
836
838
|
ENUM_LAYOUT_EDITOR["AUTO"] = "AUTO ALIGN";
|
837
839
|
ENUM_LAYOUT_EDITOR["GRID"] = "GRID SUPPORTED";
|
838
840
|
ENUM_LAYOUT_EDITOR["FREEFORM"] = "FREE FORM";
|
839
|
-
})(ENUM_LAYOUT_EDITOR =
|
840
|
-
|
841
|
+
})(ENUM_LAYOUT_EDITOR = AtoGojsEditorModel.ENUM_LAYOUT_EDITOR || (AtoGojsEditorModel.ENUM_LAYOUT_EDITOR = {}));
|
842
|
+
AtoGojsEditorModel.LAYOUT_LIST = [
|
841
843
|
{
|
842
844
|
name: 'Auto-align',
|
843
845
|
key: ENUM_LAYOUT_EDITOR.AUTO,
|
@@ -879,14 +881,17 @@ class GojsEditorModel {
|
|
879
881
|
ENUM_COLORS["DANUBE_ALICE_BLUE"] = "#F1F5FA";
|
880
882
|
ENUM_COLORS["AZURE"] = "#EEF8F8";
|
881
883
|
ENUM_COLORS["OLD_LACE"] = "#FCF6EA";
|
882
|
-
|
884
|
+
ENUM_COLORS["CARROT_ORANGE"] = "#F69122";
|
885
|
+
ENUM_COLORS["FLAMINGO"] = "#E95F47";
|
886
|
+
ENUM_COLORS["SNOW"] = "#FEF7F6";
|
887
|
+
})(ENUM_COLORS = AtoGojsEditorModel.ENUM_COLORS || (AtoGojsEditorModel.ENUM_COLORS = {}));
|
883
888
|
let ENUM_LINK_TYPES;
|
884
889
|
(function (ENUM_LINK_TYPES) {
|
885
890
|
ENUM_LINK_TYPES["SIMPLE"] = "simple";
|
886
891
|
ENUM_LINK_TYPES["PIPE_ANIMATION"] = "pipe animation";
|
887
892
|
ENUM_LINK_TYPES["PIPE"] = "pipe";
|
888
893
|
ENUM_LINK_TYPES["PIPE_HIDDEN"] = "pipe hidden";
|
889
|
-
})(ENUM_LINK_TYPES =
|
894
|
+
})(ENUM_LINK_TYPES = AtoGojsEditorModel.ENUM_LINK_TYPES || (AtoGojsEditorModel.ENUM_LINK_TYPES = {}));
|
890
895
|
// Components types
|
891
896
|
let ENUM_TEMPLATES;
|
892
897
|
(function (ENUM_TEMPLATES) {
|
@@ -1025,7 +1030,7 @@ class GojsEditorModel {
|
|
1025
1030
|
ENUM_TEMPLATES["TURBINES"] = "Turbines";
|
1026
1031
|
// Plant Basic
|
1027
1032
|
ENUM_TEMPLATES["GROUP_BASIC_COMPONENT"] = "Group Basic Component";
|
1028
|
-
})(ENUM_TEMPLATES =
|
1033
|
+
})(ENUM_TEMPLATES = AtoGojsEditorModel.ENUM_TEMPLATES || (AtoGojsEditorModel.ENUM_TEMPLATES = {}));
|
1029
1034
|
// System Types
|
1030
1035
|
let ENUM_TYPES;
|
1031
1036
|
(function (ENUM_TYPES) {
|
@@ -1159,10 +1164,10 @@ class GojsEditorModel {
|
|
1159
1164
|
ENUM_TYPES["STEAM_COMPONENT"] = "SteamComponents";
|
1160
1165
|
ENUM_TYPES["STEAM_CONSUMING_SYSTEM"] = "SteamConsumings";
|
1161
1166
|
ENUM_TYPES["ENERGY_CONVERTER"] = "EnergyConverters";
|
1162
|
-
})(ENUM_TYPES =
|
1167
|
+
})(ENUM_TYPES = AtoGojsEditorModel.ENUM_TYPES || (AtoGojsEditorModel.ENUM_TYPES = {}));
|
1163
1168
|
let ENUM_CATEGORY;
|
1164
1169
|
(function (ENUM_CATEGORY) {
|
1165
|
-
})(ENUM_CATEGORY =
|
1170
|
+
})(ENUM_CATEGORY = AtoGojsEditorModel.ENUM_CATEGORY || (AtoGojsEditorModel.ENUM_CATEGORY = {}));
|
1166
1171
|
let DATA_COLLECTION_METHOD;
|
1167
1172
|
(function (DATA_COLLECTION_METHOD) {
|
1168
1173
|
DATA_COLLECTION_METHOD["MEASURED"] = "Measured";
|
@@ -1171,8 +1176,8 @@ class GojsEditorModel {
|
|
1171
1176
|
DATA_COLLECTION_METHOD["ESTIMATED"] = "Estimated";
|
1172
1177
|
DATA_COLLECTION_METHOD["WATER_CAPACITY"] = "Water Capacity";
|
1173
1178
|
DATA_COLLECTION_METHOD["KEY_MODEL_COMPUTED"] = "M";
|
1174
|
-
})(DATA_COLLECTION_METHOD =
|
1175
|
-
|
1179
|
+
})(DATA_COLLECTION_METHOD = AtoGojsEditorModel.DATA_COLLECTION_METHOD || (AtoGojsEditorModel.DATA_COLLECTION_METHOD = {}));
|
1180
|
+
AtoGojsEditorModel.COLOR_COLLECTION_METHOD = {
|
1176
1181
|
[DATA_COLLECTION_METHOD.MEASURED]: {
|
1177
1182
|
name: DATA_COLLECTION_METHOD.MEASURED,
|
1178
1183
|
color: ENUM_COLORS.RED,
|
@@ -1211,21 +1216,21 @@ class GojsEditorModel {
|
|
1211
1216
|
let WITH_DRAW_SYSTEM_TYPES;
|
1212
1217
|
(function (WITH_DRAW_SYSTEM_TYPES) {
|
1213
1218
|
WITH_DRAW_SYSTEM_TYPES["WATER_SOURCE"] = "WaterSource";
|
1214
|
-
})(WITH_DRAW_SYSTEM_TYPES =
|
1219
|
+
})(WITH_DRAW_SYSTEM_TYPES = AtoGojsEditorModel.WITH_DRAW_SYSTEM_TYPES || (AtoGojsEditorModel.WITH_DRAW_SYSTEM_TYPES = {}));
|
1215
1220
|
// export enum DISCHARGE_TYPES {
|
1216
1221
|
// GROUND_WATER_RENEWABLE = 'Ground Water Renewable',
|
1217
1222
|
// }
|
1218
1223
|
let DISCHARGE_TYPES_SYSTEM_TYPES;
|
1219
1224
|
(function (DISCHARGE_TYPES_SYSTEM_TYPES) {
|
1220
1225
|
DISCHARGE_TYPES_SYSTEM_TYPES["GROUND_WATER_RANEWABLE"] = "GroundWaterRenewable";
|
1221
|
-
})(DISCHARGE_TYPES_SYSTEM_TYPES =
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1226
|
+
})(DISCHARGE_TYPES_SYSTEM_TYPES = AtoGojsEditorModel.DISCHARGE_TYPES_SYSTEM_TYPES || (AtoGojsEditorModel.DISCHARGE_TYPES_SYSTEM_TYPES = {}));
|
1227
|
+
AtoGojsEditorModel.WaterWithdrawSources = 'WaterWithdrawSources';
|
1228
|
+
AtoGojsEditorModel.WaterWithdrawSourcesPath = 'GetFlowTopology.Plant.WaterWithdrawSources.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams';
|
1229
|
+
AtoGojsEditorModel.WaterDischargeDestinations = 'WaterDischargeDestinations';
|
1230
|
+
AtoGojsEditorModel.WaterDischargeDestinationsPath = 'GetFlowTopology.Plant.WaterDischargeDestinations.ComponentWaterFlow.InFlows.InflowWaterRecord.QuantityParams';
|
1231
|
+
AtoGojsEditorModel.SOURCES_COMPONENTS = [
|
1232
|
+
AtoGojsEditorModel.WaterWithdrawSources,
|
1233
|
+
AtoGojsEditorModel.WaterDischargeDestinations,
|
1229
1234
|
ENUM_TYPES.ELECTRIC_SOURCES,
|
1230
1235
|
ENUM_TYPES.ELECTRIC_PRODUCTIONS,
|
1231
1236
|
ENUM_TYPES.GAS_SOURCE,
|
@@ -1233,8 +1238,8 @@ class GojsEditorModel {
|
|
1233
1238
|
ENUM_TYPES.FUEL_SOURCES,
|
1234
1239
|
// ENUM_TYPES.FUEL_STORAGE_TANKS,
|
1235
1240
|
];
|
1236
|
-
|
1237
|
-
|
1241
|
+
AtoGojsEditorModel.SOURCES_WITHDRAW = [
|
1242
|
+
AtoGojsEditorModel.WaterWithdrawSources,
|
1238
1243
|
ENUM_TYPES.ELECTRIC_SOURCES,
|
1239
1244
|
ENUM_TYPES.ELECTRIC_PRODUCTIONS,
|
1240
1245
|
ENUM_TYPES.GAS_SOURCE,
|
@@ -1242,18 +1247,18 @@ class GojsEditorModel {
|
|
1242
1247
|
ENUM_TYPES.FUEL_SOURCES,
|
1243
1248
|
// ENUM_TYPES.FUEL_STORAGE_TANKS,
|
1244
1249
|
];
|
1245
|
-
|
1246
|
-
|
1250
|
+
AtoGojsEditorModel.SOURCES_DISCHARGE = [
|
1251
|
+
AtoGojsEditorModel.WaterDischargeDestinations,
|
1247
1252
|
// ENUM_TYPES.ELECTRIC_SOURCES,
|
1248
1253
|
// ENUM_TYPES.ELECTRIC_PRODUCTIONS,
|
1249
1254
|
// ENUM_TYPES.GAS_SOURCE,
|
1250
1255
|
// ENUM_TYPES.GAS_PRODUCTION,
|
1251
1256
|
// ENUM_TYPES.FUEL_SOURCES,
|
1252
1257
|
];
|
1253
|
-
|
1258
|
+
AtoGojsEditorModel.COMPONENTS_HAVE_SPECIAL_CATEGORY = [
|
1254
1259
|
// Water
|
1255
|
-
|
1256
|
-
|
1260
|
+
AtoGojsEditorModel.WaterWithdrawSources,
|
1261
|
+
AtoGojsEditorModel.WaterDischargeDestinations,
|
1257
1262
|
// ENUM_TYPES.FRESH_SURFACE_WAER,
|
1258
1263
|
// ENUM_TYPES.THIRD_PARTY_SOURCES,
|
1259
1264
|
// ENUM_TYPES.GROUND_WATER_NON_RENEWABLE,
|
@@ -1297,7 +1302,7 @@ class GojsEditorModel {
|
|
1297
1302
|
ENUM_TYPES.PIPELINE,
|
1298
1303
|
ENUM_TYPES.FUELS,
|
1299
1304
|
];
|
1300
|
-
|
1305
|
+
AtoGojsEditorModel.WITH_DRAW_TYPE_LIST = [
|
1301
1306
|
ENUM_TYPES.THIRD_PARTY_SOURCES,
|
1302
1307
|
ENUM_TYPES.FRESH_SURFACE_WATER,
|
1303
1308
|
ENUM_TYPES.BRACKISH_SURFACE_WATER,
|
@@ -1305,16 +1310,20 @@ class GojsEditorModel {
|
|
1305
1310
|
ENUM_TYPES.GROUND_WATER_NON_RENEWABLE,
|
1306
1311
|
ENUM_TYPES.PRODUCED_ENTRAINED,
|
1307
1312
|
];
|
1308
|
-
|
1313
|
+
AtoGojsEditorModel.DISCHARGE_TYPE_LIST = [
|
1309
1314
|
ENUM_TYPES.FRESH_SURFACE_WATER,
|
1310
1315
|
ENUM_TYPES.BRACKISH_SURFACE_WATER,
|
1311
1316
|
ENUM_TYPES.GROUND_WATER_RENEWABLE,
|
1312
1317
|
ENUM_TYPES.THIRD_PARTY_DESTINATIONS,
|
1313
1318
|
];
|
1314
|
-
|
1315
|
-
|
1319
|
+
AtoGojsEditorModel.WITH_DRAW_SYSTEM_TYPE_LIST = [
|
1320
|
+
WITH_DRAW_SYSTEM_TYPES.WATER_SOURCE,
|
1321
|
+
];
|
1322
|
+
AtoGojsEditorModel.DISCHARGE_SYSTEM_TYPE_LIST = [
|
1323
|
+
DISCHARGE_TYPES_SYSTEM_TYPES.GROUND_WATER_RANEWABLE,
|
1324
|
+
];
|
1316
1325
|
// system type
|
1317
|
-
|
1326
|
+
AtoGojsEditorModel.TYPE_COMPONENT = [
|
1318
1327
|
ENUM_TYPES.STORAGE,
|
1319
1328
|
ENUM_TYPES.WATER_TREATMENT,
|
1320
1329
|
ENUM_TYPES.DEMIN_WATER_TREATMENT,
|
@@ -1330,8 +1339,8 @@ class GojsEditorModel {
|
|
1330
1339
|
ENUM_TYPES.BOILER,
|
1331
1340
|
ENUM_TYPES.OTHER,
|
1332
1341
|
ENUM_TYPES.LANDSCAPING_IRRIGATION,
|
1333
|
-
|
1334
|
-
|
1342
|
+
AtoGojsEditorModel.WaterWithdrawSources,
|
1343
|
+
AtoGojsEditorModel.WaterDischargeDestinations,
|
1335
1344
|
// Energy
|
1336
1345
|
ENUM_TYPES.ZONE,
|
1337
1346
|
// Electricity==========================
|
@@ -1545,27 +1554,27 @@ class GojsEditorModel {
|
|
1545
1554
|
ENUM_TYPES.STEAM_CONSUMING_SYSTEM,
|
1546
1555
|
ENUM_TYPES.ENERGY_CONVERTER,
|
1547
1556
|
];
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1557
|
+
AtoGojsEditorModel.ICON_ASSET_PATH = 'assets/images/editor/icons';
|
1558
|
+
AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON = '/assets/images/icons/hoskote_plant';
|
1559
|
+
AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH = '/assets/images/ro-water-treatment/RO_WATER_TREATMENT_BG.png';
|
1560
|
+
AtoGojsEditorModel.IMAGE_BOILER_PATH = 'assets/images/boiler/cms_boiler.png';
|
1561
|
+
AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH = 'assets/images/process-water/cooling_tower.png';
|
1562
|
+
AtoGojsEditorModel.SPECIAL_ICON_ASSET_PATH = 'assets/images/editor/special';
|
1563
|
+
AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH = 'assets/images/editor/energy';
|
1564
|
+
AtoGojsEditorModel.GAS_ICON_ASSET_PATH = 'assets/images/editor/gas';
|
1565
|
+
AtoGojsEditorModel.FUEL_ICON_ASSET_PATH = 'assets/images/editor/fuel';
|
1566
|
+
AtoGojsEditorModel.STEAM_ICON_ASSET_PATH = 'assets/images/editor/steam';
|
1567
|
+
AtoGojsEditorModel.PLANT_CELL_PATH = 'assets/images/editor/plant-cell';
|
1568
|
+
AtoGojsEditorModel.DATA_BOX = 'assets/images/editor/data-box';
|
1569
|
+
AtoGojsEditorModel.LINK_TEMPLATES = {
|
1561
1570
|
[ENUM_LINK_TYPES.SIMPLE]: {
|
1562
1571
|
toShortLength: 8,
|
1563
1572
|
strokeWidth: 8,
|
1564
1573
|
arrow: {
|
1565
1574
|
toArrow: 'Triangle',
|
1566
1575
|
visible: true,
|
1567
|
-
stroke:
|
1568
|
-
fill:
|
1576
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
1577
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
1569
1578
|
scale: 1.7,
|
1570
1579
|
},
|
1571
1580
|
},
|
@@ -1591,7 +1600,7 @@ class GojsEditorModel {
|
|
1591
1600
|
},
|
1592
1601
|
},
|
1593
1602
|
};
|
1594
|
-
|
1603
|
+
AtoGojsEditorModel.ATTRNAME_COMPONENT = [
|
1595
1604
|
'waterWithdrawName',
|
1596
1605
|
'waterDischargeName',
|
1597
1606
|
'wasteWaterProcessName',
|
@@ -1614,58 +1623,58 @@ class GojsEditorModel {
|
|
1614
1623
|
// FACILITY_FUNCTIONS = 'Facility functions',
|
1615
1624
|
// OTHER = 'Other',
|
1616
1625
|
// }
|
1617
|
-
|
1626
|
+
AtoGojsEditorModel.NODE_TEMPLATES = {
|
1618
1627
|
[ENUM_TEMPLATES.STORAGE]: {
|
1619
1628
|
name: ENUM_TEMPLATES.STORAGE,
|
1620
|
-
icon: `${
|
1629
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Raw Water Tank.svg`,
|
1621
1630
|
systemType: ENUM_TYPES.STORAGE,
|
1622
1631
|
},
|
1623
1632
|
[ENUM_TEMPLATES.COOLING_TOWER]: {
|
1624
1633
|
name: ENUM_TEMPLATES.COOLING_TOWER,
|
1625
|
-
icon: `${
|
1634
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/cooling_tower.svg`,
|
1626
1635
|
systemType: ENUM_TYPES.COOLING_TOWER,
|
1627
1636
|
},
|
1628
1637
|
// WATER_TREATMENT
|
1629
1638
|
[ENUM_TEMPLATES.WATER_TREATMENT]: {
|
1630
1639
|
name: ENUM_TEMPLATES.WATER_TREATMENT,
|
1631
|
-
icon: `${
|
1640
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/water_treatment.svg`,
|
1632
1641
|
systemType: ENUM_TYPES.WATER_TREATMENT,
|
1633
1642
|
},
|
1634
1643
|
[ENUM_TEMPLATES.DEMIN_WATER_TREATMENT]: {
|
1635
1644
|
name: ENUM_TEMPLATES.DEMIN_WATER_TREATMENT,
|
1636
|
-
icon: `${
|
1645
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Demin.svg`,
|
1637
1646
|
systemType: ENUM_TYPES.DEMIN_WATER_TREATMENT,
|
1638
1647
|
},
|
1639
1648
|
[ENUM_TEMPLATES.RO_WATER_TREATMENT]: {
|
1640
1649
|
name: ENUM_TEMPLATES.RO_WATER_TREATMENT,
|
1641
|
-
icon: `${
|
1650
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/RO.svg`,
|
1642
1651
|
systemType: ENUM_TYPES.RO_WATER_TREATMENT,
|
1643
1652
|
},
|
1644
1653
|
[ENUM_TEMPLATES.DOMESTIC_USE]: {
|
1645
1654
|
name: ENUM_TEMPLATES.DOMESTIC_USE,
|
1646
|
-
icon: `${
|
1655
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Domestic_new.svg`,
|
1647
1656
|
systemType: ENUM_TYPES.DOMESTIC_USE,
|
1648
1657
|
},
|
1649
1658
|
[ENUM_TEMPLATES.PROCESS]: {
|
1650
1659
|
name: ENUM_TEMPLATES.PROCESS,
|
1651
1660
|
// icon: `${ICON_ASSET_PATH}/process.svg`,
|
1652
|
-
icon: `${
|
1661
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Generic Process.svg`,
|
1653
1662
|
systemType: ENUM_TYPES.PROCESS,
|
1654
1663
|
},
|
1655
1664
|
[ENUM_TEMPLATES.SPECIAL_STORAGE]: {
|
1656
1665
|
name: ENUM_TEMPLATES.SPECIAL_STORAGE,
|
1657
|
-
icon: `${
|
1666
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/process.svg`,
|
1658
1667
|
systemType: ENUM_TYPES.SPECIAL_STORAGE,
|
1659
1668
|
},
|
1660
1669
|
[ENUM_TEMPLATES.BOILER]: {
|
1661
1670
|
name: ENUM_TEMPLATES.BOILER,
|
1662
|
-
icon: `${
|
1671
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Boiler.svg`,
|
1663
1672
|
systemType: ENUM_TYPES.BOILER,
|
1664
1673
|
},
|
1665
1674
|
// WASTEWATER_TREATMENT
|
1666
1675
|
[ENUM_TEMPLATES.WASTEWATER_TREATMENT]: {
|
1667
1676
|
name: ENUM_TEMPLATES.WASTEWATER_TREATMENT,
|
1668
|
-
icon: `${
|
1677
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/wastewater_treatment.svg`,
|
1669
1678
|
// size: {
|
1670
1679
|
// w: GRID_SIZE * 8,
|
1671
1680
|
// h: GRID_SIZE * 6,
|
@@ -1674,7 +1683,7 @@ class GojsEditorModel {
|
|
1674
1683
|
},
|
1675
1684
|
[ENUM_TEMPLATES.DAF_WASTEWATER_TREATMENT]: {
|
1676
1685
|
name: ENUM_TEMPLATES.DAF_WASTEWATER_TREATMENT,
|
1677
|
-
icon: `${
|
1686
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/DAF.svg`,
|
1678
1687
|
// size: {
|
1679
1688
|
// w: GRID_SIZE * 8,
|
1680
1689
|
// h: GRID_SIZE * 6,
|
@@ -1683,12 +1692,12 @@ class GojsEditorModel {
|
|
1683
1692
|
},
|
1684
1693
|
[ENUM_TEMPLATES.ETP_WASTEWATER_TREATMENT]: {
|
1685
1694
|
name: ENUM_TEMPLATES.ETP_WASTEWATER_TREATMENT,
|
1686
|
-
icon: `${
|
1695
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/water_treatment.svg`,
|
1687
1696
|
systemType: ENUM_TYPES.ETP_WASTEWATER_TREATMENT,
|
1688
1697
|
},
|
1689
1698
|
[ENUM_TEMPLATES.MBR_WASTEWATER_TREATMENT]: {
|
1690
1699
|
name: ENUM_TEMPLATES.MBR_WASTEWATER_TREATMENT,
|
1691
|
-
icon: `${
|
1700
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/MBR.svg`,
|
1692
1701
|
// size: {
|
1693
1702
|
// w: GRID_SIZE * 8,
|
1694
1703
|
// h: GRID_SIZE * 6,
|
@@ -1697,7 +1706,7 @@ class GojsEditorModel {
|
|
1697
1706
|
},
|
1698
1707
|
[ENUM_TEMPLATES.ZLD_WASTEWATER_TREATMENT]: {
|
1699
1708
|
name: ENUM_TEMPLATES.ZLD_WASTEWATER_TREATMENT,
|
1700
|
-
icon: `${
|
1709
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/ZLD.svg`,
|
1701
1710
|
// size: {
|
1702
1711
|
// w: GRID_SIZE * 8,
|
1703
1712
|
// h: GRID_SIZE * 6,
|
@@ -1706,7 +1715,7 @@ class GojsEditorModel {
|
|
1706
1715
|
},
|
1707
1716
|
[ENUM_TEMPLATES.LANDSCAPING_IRRIGATION]: {
|
1708
1717
|
name: ENUM_TEMPLATES.LANDSCAPING_IRRIGATION,
|
1709
|
-
icon: `${
|
1718
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Irrigation.svg`,
|
1710
1719
|
// size: {
|
1711
1720
|
// w: GRID_SIZE * 8,
|
1712
1721
|
// h: GRID_SIZE * 6,
|
@@ -1715,7 +1724,7 @@ class GojsEditorModel {
|
|
1715
1724
|
},
|
1716
1725
|
[ENUM_TEMPLATES.OTHER]: {
|
1717
1726
|
name: ENUM_TEMPLATES.OTHER,
|
1718
|
-
icon: `${
|
1727
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/other.svg`,
|
1719
1728
|
systemType: ENUM_TYPES.OTHER,
|
1720
1729
|
},
|
1721
1730
|
[ENUM_TEMPLATES.TEXT_NODE]: {
|
@@ -1735,46 +1744,46 @@ class GojsEditorModel {
|
|
1735
1744
|
},
|
1736
1745
|
[ENUM_TEMPLATES.SPECIAL_PROCESS]: {
|
1737
1746
|
name: ENUM_TEMPLATES.SPECIAL_PROCESS,
|
1738
|
-
icon: `${
|
1747
|
+
icon: `${AtoGojsEditorModel.SPECIAL_ICON_ASSET_PATH}/process.svg`,
|
1739
1748
|
},
|
1740
1749
|
[ENUM_TEMPLATES.SPECIAL_STORE]: {
|
1741
1750
|
name: ENUM_TEMPLATES.SPECIAL_STORE,
|
1742
|
-
icon: `${
|
1751
|
+
icon: `${AtoGojsEditorModel.SPECIAL_ICON_ASSET_PATH}/Discharge.svg`,
|
1743
1752
|
},
|
1744
1753
|
[ENUM_TEMPLATES.SPECIAL_DISCHARGE]: {
|
1745
1754
|
name: ENUM_TEMPLATES.SPECIAL_DISCHARGE,
|
1746
|
-
icon: `${
|
1755
|
+
icon: `${AtoGojsEditorModel.SPECIAL_ICON_ASSET_PATH}/Discharge.svg`,
|
1747
1756
|
},
|
1748
1757
|
[ENUM_TEMPLATES.THIRD_PARTY_SOURCES]: {
|
1749
1758
|
name: ENUM_TEMPLATES.THIRD_PARTY_SOURCES,
|
1750
1759
|
// icon: `${ICON_ASSET_PATH}/Intake.svg`,
|
1751
|
-
icon: `${
|
1760
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Third Party Sources.svg`,
|
1752
1761
|
systemType: ENUM_TYPES.THIRD_PARTY_SOURCES,
|
1753
1762
|
},
|
1754
1763
|
[ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS]: {
|
1755
1764
|
name: ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
|
1756
1765
|
// icon: `${ICON_ASSET_PATH}/Intake.svg`,
|
1757
|
-
icon: `${
|
1766
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Third party destinations.svg`,
|
1758
1767
|
systemType: ENUM_TYPES.THIRD_PARTY_DESTINATIONS,
|
1759
1768
|
},
|
1760
1769
|
[ENUM_TEMPLATES.GROUND_WATER_NON_RENEWABLE]: {
|
1761
1770
|
name: ENUM_TEMPLATES.GROUND_WATER_NON_RENEWABLE,
|
1762
|
-
icon: `${
|
1771
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Groundwater - Non-Renewable.svg`,
|
1763
1772
|
systemType: ENUM_TYPES.GROUND_WATER_NON_RENEWABLE,
|
1764
1773
|
},
|
1765
1774
|
[ENUM_TEMPLATES.PRODUCED_ENTRAINED]: {
|
1766
1775
|
name: ENUM_TEMPLATES.PRODUCED_ENTRAINED,
|
1767
|
-
icon: `${
|
1776
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Produced Entrained Water.svg`,
|
1768
1777
|
systemType: ENUM_TYPES.PRODUCED_ENTRAINED,
|
1769
1778
|
},
|
1770
1779
|
[ENUM_TEMPLATES.BRACKISH_SURFACE_WATER]: {
|
1771
1780
|
name: ENUM_TEMPLATES.BRACKISH_SURFACE_WATER,
|
1772
|
-
icon: `${
|
1781
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Brackisk Surface Water Seawater.svg`,
|
1773
1782
|
systemType: ENUM_TYPES.BRACKISH_SURFACE_WATER,
|
1774
1783
|
},
|
1775
1784
|
[ENUM_TEMPLATES.FRESH_SURFACE_WATER]: {
|
1776
1785
|
name: ENUM_TEMPLATES.FRESH_SURFACE_WATER,
|
1777
|
-
icon: `${
|
1786
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Fresh Surface Water.svg`,
|
1778
1787
|
systemType: ENUM_TYPES.FRESH_SURFACE_WATER,
|
1779
1788
|
},
|
1780
1789
|
[ENUM_TEMPLATES.UTILITY]: {
|
@@ -1784,18 +1793,18 @@ class GojsEditorModel {
|
|
1784
1793
|
},
|
1785
1794
|
[ENUM_TEMPLATES.GROUND_WATER_RENEWABLE]: {
|
1786
1795
|
name: ENUM_TEMPLATES.GROUND_WATER_RENEWABLE,
|
1787
|
-
icon: `${
|
1796
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Groundwater - Renewable.svg`,
|
1788
1797
|
systemType: ENUM_TYPES.GROUND_WATER_RENEWABLE,
|
1789
1798
|
},
|
1790
1799
|
[ENUM_TEMPLATES.SPECIAL_OTHER]: {
|
1791
1800
|
name: ENUM_TEMPLATES.SPECIAL_OTHER,
|
1792
|
-
icon: `${
|
1801
|
+
icon: `${AtoGojsEditorModel.SPECIAL_ICON_ASSET_PATH}/Discharge.svg`,
|
1793
1802
|
},
|
1794
1803
|
// Energy
|
1795
1804
|
// Electric Node Template ====================================================================
|
1796
1805
|
[ENUM_TEMPLATES.GRID]: {
|
1797
1806
|
name: ENUM_TEMPLATES.GRID,
|
1798
|
-
icon: `${
|
1807
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Grid.svg`,
|
1799
1808
|
systemType: ENUM_TYPES.GRID,
|
1800
1809
|
// size: {
|
1801
1810
|
// h: GRID_SIZE * 8,
|
@@ -1804,7 +1813,7 @@ class GojsEditorModel {
|
|
1804
1813
|
},
|
1805
1814
|
[ENUM_TEMPLATES.DIESEL_GENERATORS]: {
|
1806
1815
|
name: ENUM_TEMPLATES.DIESEL_GENERATORS,
|
1807
|
-
icon: `${
|
1816
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Diesel Generators.svg`,
|
1808
1817
|
systemType: ENUM_TYPES.DIESEL_GENERATORS,
|
1809
1818
|
// size: {
|
1810
1819
|
// h: GRID_SIZE * 8,
|
@@ -1813,133 +1822,133 @@ class GojsEditorModel {
|
|
1813
1822
|
},
|
1814
1823
|
[ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE]: {
|
1815
1824
|
name: ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE,
|
1816
|
-
icon: `${
|
1825
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Battery.svg`,
|
1817
1826
|
systemType: ENUM_TYPES.BATTERY_ENERGY_STORAGE,
|
1818
1827
|
},
|
1819
1828
|
[ENUM_TEMPLATES.LIGHTING_SYSTEMS]: {
|
1820
1829
|
name: ENUM_TEMPLATES.LIGHTING_SYSTEMS,
|
1821
|
-
icon: `${
|
1830
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Lighting systems.svg`,
|
1822
1831
|
systemType: ENUM_TYPES.LIGHTING_SYSTEMS,
|
1823
1832
|
},
|
1824
1833
|
[ENUM_TEMPLATES.LIGHTINGS]: {
|
1825
1834
|
name: ENUM_TEMPLATES.LIGHTINGS,
|
1826
|
-
icon: `${
|
1835
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Lights.svg`,
|
1827
1836
|
systemType: ENUM_TYPES.LIGHTINGS,
|
1828
1837
|
},
|
1829
1838
|
[ENUM_TEMPLATES.ELECTRIC_METERS]: {
|
1830
1839
|
name: ENUM_TEMPLATES.ELECTRIC_METERS,
|
1831
|
-
icon: `${
|
1840
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Meter.svg`,
|
1832
1841
|
systemType: ENUM_TYPES.ELECTRIC_METERS,
|
1833
1842
|
},
|
1834
1843
|
[ENUM_TEMPLATES.TRANSFORMERS]: {
|
1835
1844
|
name: ENUM_TEMPLATES.TRANSFORMERS,
|
1836
|
-
icon: `${
|
1845
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Transformer.svg`,
|
1837
1846
|
systemType: ENUM_TYPES.TRANSFORMERS,
|
1838
1847
|
},
|
1839
1848
|
[ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE]: {
|
1840
1849
|
name: ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
|
1841
|
-
icon: `${
|
1850
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Pumped hydro storage systems.svg`,
|
1842
1851
|
systemType: ENUM_TYPES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
|
1843
1852
|
},
|
1844
1853
|
[ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE]: {
|
1845
1854
|
name: ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE,
|
1846
|
-
icon: `${
|
1855
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Pumped hydro storage systems.svg`,
|
1847
1856
|
systemType: ENUM_TYPES.PUMPED_HYDRO_STORAGE,
|
1848
1857
|
},
|
1849
1858
|
[ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE]: {
|
1850
1859
|
name: ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE,
|
1851
|
-
icon: `${
|
1860
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Thermal energy storage systems.svg`,
|
1852
1861
|
systemType: ENUM_TYPES.THERMAL_ENERGY_STORAGE,
|
1853
1862
|
},
|
1854
1863
|
[ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE]: {
|
1855
1864
|
name: ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE,
|
1856
|
-
icon: `${
|
1865
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Supercapacitor energy storage systems.svg`,
|
1857
1866
|
systemType: ENUM_TYPES.SUPER_CAPACITOR_ENERGY_STORAGE,
|
1858
1867
|
},
|
1859
1868
|
[ENUM_TEMPLATES.SWITCH_GEARS]: {
|
1860
1869
|
name: ENUM_TEMPLATES.SWITCH_GEARS,
|
1861
|
-
icon: `${
|
1870
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Switchgear.svg`,
|
1862
1871
|
systemType: ENUM_TYPES.SWITCH_GEARS,
|
1863
1872
|
},
|
1864
1873
|
[ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS]: {
|
1865
1874
|
name: ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS,
|
1866
|
-
icon: `${
|
1875
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Process control and automation systems.svg`,
|
1867
1876
|
systemType: ENUM_TYPES.PROCESS_CONTROL_AUTOMATION_SYSTEMS,
|
1868
1877
|
},
|
1869
1878
|
[ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES]: {
|
1870
1879
|
name: ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES,
|
1871
|
-
icon: `${
|
1880
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Process equipment and machines.svg`,
|
1872
1881
|
systemType: ENUM_TYPES.PROCESS_EQUIPMENT_MACHINES,
|
1873
1882
|
},
|
1874
1883
|
[ENUM_TEMPLATES.OFFICE_EQUIPMENT]: {
|
1875
1884
|
name: ENUM_TEMPLATES.OFFICE_EQUIPMENT,
|
1876
|
-
icon: `${
|
1885
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Office equipment.svg`,
|
1877
1886
|
systemType: ENUM_TYPES.OFFICE_EQUIPMENT,
|
1878
1887
|
},
|
1879
1888
|
[ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS]: {
|
1880
1889
|
name: ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
1881
|
-
icon: `${
|
1890
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution and control systems.svg`,
|
1882
1891
|
systemType: ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
1883
1892
|
},
|
1884
1893
|
[ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS]: {
|
1885
1894
|
name: ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS,
|
1886
|
-
icon: `${
|
1895
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution systems.svg`,
|
1887
1896
|
systemType: ENUM_TYPES.POWER_DISTRIBUTION_SYSTEMS,
|
1888
1897
|
},
|
1889
1898
|
[ENUM_TEMPLATES.NATURAL_GAS_GENERATORS]: {
|
1890
1899
|
name: ENUM_TEMPLATES.NATURAL_GAS_GENERATORS,
|
1891
|
-
icon: `${
|
1900
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Natural gas generators.svg`,
|
1892
1901
|
systemType: ENUM_TYPES.NATURAL_GAS_GENERATORS,
|
1893
1902
|
},
|
1894
1903
|
[ENUM_TEMPLATES.MOTOR_CONTROLS]: {
|
1895
1904
|
name: ENUM_TEMPLATES.MOTOR_CONTROLS,
|
1896
|
-
icon: `${
|
1905
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Motor control centers (MCCs).svg`,
|
1897
1906
|
systemType: ENUM_TYPES.MOTOR_CONTROLS,
|
1898
1907
|
},
|
1899
1908
|
[ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS]: {
|
1900
1909
|
name: ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS,
|
1901
|
-
icon: `${
|
1910
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Variable frequency drives (VFDs).svg`,
|
1902
1911
|
systemType: ENUM_TYPES.VARIABLE_FREQUENCY_DRIVERS,
|
1903
1912
|
},
|
1904
1913
|
[ENUM_TEMPLATES.ELECTRIC_HVAC]: {
|
1905
1914
|
name: ENUM_TEMPLATES.ELECTRIC_HVAC,
|
1906
|
-
icon: `${
|
1915
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Gas HVAC.svg`,
|
1907
1916
|
systemType: ENUM_TYPES.ELECTRIC_HVAC,
|
1908
1917
|
},
|
1909
1918
|
[ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS]: {
|
1910
1919
|
name: ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS,
|
1911
|
-
icon: `${
|
1920
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Compressed air.svg`,
|
1912
1921
|
systemType: ENUM_TYPES.COMPRESSED_AIR_SYSTEMS,
|
1913
1922
|
},
|
1914
1923
|
[ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS]: {
|
1915
1924
|
name: ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS,
|
1916
|
-
icon: `${
|
1925
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Refrigeration and cooling systems.svg`,
|
1917
1926
|
systemType: ENUM_TYPES.REFRIGERATION_COOLING_SYSTEMS,
|
1918
1927
|
},
|
1919
1928
|
[ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT]: {
|
1920
1929
|
name: ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT,
|
1921
|
-
icon: `${
|
1930
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Material handling equipment.svg`,
|
1922
1931
|
systemType: ENUM_TYPES.MATERIAL_HANDLING_EQUIPMENT,
|
1923
1932
|
},
|
1924
1933
|
[ENUM_TEMPLATES.WIND_POWER]: {
|
1925
1934
|
name: ENUM_TEMPLATES.WIND_POWER,
|
1926
|
-
icon: `${
|
1935
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Wind Power.svg`,
|
1927
1936
|
systemType: ENUM_TYPES.WIND_POWER,
|
1928
1937
|
},
|
1929
1938
|
[ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS]: {
|
1930
1939
|
name: ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS,
|
1931
|
-
icon: `${
|
1940
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Industrial motors.svg`,
|
1932
1941
|
systemType: ENUM_TYPES.ELECTRIC_INDUSTRIAL_MOTORS,
|
1933
1942
|
},
|
1934
1943
|
[ENUM_TEMPLATES.GROUNDING]: {
|
1935
1944
|
name: ENUM_TEMPLATES.GROUNDING,
|
1936
|
-
icon: `${
|
1945
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Grounding systems.svg`,
|
1937
1946
|
systemType: ENUM_TYPES.GROUNDING,
|
1938
1947
|
},
|
1939
1948
|
// Gas ================================================================================
|
1940
1949
|
[ENUM_TEMPLATES.NATURAL_GAS_PIPELINES]: {
|
1941
1950
|
name: ENUM_TEMPLATES.NATURAL_GAS_PIPELINES,
|
1942
|
-
icon: `${
|
1951
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Natural gas pipelines.svg`,
|
1943
1952
|
systemType: ENUM_TYPES.NATURAL_GAS_PIPELINES,
|
1944
1953
|
},
|
1945
1954
|
// [ENUM_TEMPLATES.LIQUEFIED_NATURAL_GAS]: {
|
@@ -1949,7 +1958,7 @@ class GojsEditorModel {
|
|
1949
1958
|
// },
|
1950
1959
|
[ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE]: {
|
1951
1960
|
name: ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE,
|
1952
|
-
icon: `${
|
1961
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Compressed natural gas pipeline (CNG).svg`,
|
1953
1962
|
systemType: ENUM_TYPES.COMPRESSED_NATURAL_GAS_PIPELINE,
|
1954
1963
|
},
|
1955
1964
|
// [ENUM_TEMPLATES.ON_SITE_PRODUCTION]: {
|
@@ -1959,42 +1968,42 @@ class GojsEditorModel {
|
|
1959
1968
|
// },
|
1960
1969
|
[ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PRODUCTION]: {
|
1961
1970
|
name: ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PRODUCTION,
|
1962
|
-
icon: `${
|
1971
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Compressed natural gas pipeline (CNG).svg`,
|
1963
1972
|
systemType: ENUM_TYPES.COMPRESSED_NATURAL_GAS_PRODUCTION,
|
1964
1973
|
},
|
1965
1974
|
[ENUM_TEMPLATES.BOILERS_AND_HEATERS]: {
|
1966
1975
|
name: ENUM_TEMPLATES.BOILERS_AND_HEATERS,
|
1967
|
-
icon: `${
|
1976
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Boilers and heaters.svg`,
|
1968
1977
|
systemType: ENUM_TYPES.BOILERS_AND_HEATERS,
|
1969
1978
|
},
|
1970
1979
|
[ENUM_TEMPLATES.FURNACES]: {
|
1971
1980
|
name: ENUM_TEMPLATES.FURNACES,
|
1972
|
-
icon: `${
|
1981
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Furnaces.svg`,
|
1973
1982
|
systemType: ENUM_TYPES.FURNACES,
|
1974
1983
|
},
|
1975
1984
|
[ENUM_TEMPLATES.POWER_GENERATION]: {
|
1976
1985
|
name: ENUM_TEMPLATES.POWER_GENERATION,
|
1977
|
-
icon: `${
|
1986
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Power generation.svg`,
|
1978
1987
|
systemType: ENUM_TYPES.POWER_GENERATION,
|
1979
1988
|
},
|
1980
1989
|
[ENUM_TEMPLATES.COGENERATION]: {
|
1981
1990
|
name: ENUM_TEMPLATES.COGENERATION,
|
1982
|
-
icon: `${
|
1991
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Cogeneration.svg`,
|
1983
1992
|
systemType: ENUM_TYPES.COGENERATION,
|
1984
1993
|
},
|
1985
1994
|
[ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS]: {
|
1986
1995
|
name: ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS,
|
1987
|
-
icon: `${
|
1996
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Combined cycle power plants.svg`,
|
1988
1997
|
systemType: ENUM_TYPES.COMBINED_CYCLE_POWER_PLANTS,
|
1989
1998
|
},
|
1990
1999
|
[ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT]: {
|
1991
2000
|
name: ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT,
|
1992
|
-
icon: `${
|
2001
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Fuel for vehicles and equipment.svg`,
|
1993
2002
|
systemType: ENUM_TYPES.FUEL_FOR_VEHICLES_AND_EQUIPMENT,
|
1994
2003
|
},
|
1995
2004
|
[ENUM_TEMPLATES.GAS_METERS]: {
|
1996
2005
|
name: ENUM_TEMPLATES.GAS_METERS,
|
1997
|
-
icon: `${
|
2006
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Gas meters.svg`,
|
1998
2007
|
systemType: ENUM_TYPES.GAS_METERS,
|
1999
2008
|
},
|
2000
2009
|
// [ENUM_TEMPLATES.BURNERS]: {
|
@@ -2009,155 +2018,155 @@ class GojsEditorModel {
|
|
2009
2018
|
// },
|
2010
2019
|
[ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS]: {
|
2011
2020
|
name: ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS,
|
2012
|
-
icon: `${
|
2021
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Combustion control systems.svg`,
|
2013
2022
|
systemType: ENUM_TYPES.COMBUSTION_CONTROL_SYSTEMS,
|
2014
2023
|
},
|
2015
2024
|
[ENUM_TEMPLATES.GAS_STORAGE_TANKS]: {
|
2016
2025
|
name: ENUM_TEMPLATES.GAS_STORAGE_TANKS,
|
2017
|
-
icon: `${
|
2026
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Gas storage tanks.svg`,
|
2018
2027
|
systemType: ENUM_TYPES.GAS_STORAGE_TANKS,
|
2019
2028
|
},
|
2020
2029
|
[ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS]: {
|
2021
2030
|
name: ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS,
|
2022
|
-
icon: `${
|
2031
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Gas pressure regulators.svg`,
|
2023
2032
|
systemType: ENUM_TYPES.GAS_PRESSURE_REGULATORS,
|
2024
2033
|
},
|
2025
2034
|
[ENUM_TEMPLATES.NATURAL_GAS]: {
|
2026
2035
|
name: ENUM_TEMPLATES.NATURAL_GAS,
|
2027
|
-
icon: `${
|
2036
|
+
icon: `${AtoGojsEditorModel.GAS_ICON_ASSET_PATH}/Natural Gas.svg`,
|
2028
2037
|
systemType: ENUM_TYPES.NATURAL_GAS,
|
2029
2038
|
},
|
2030
2039
|
// Fuel==========================================================
|
2031
2040
|
[ENUM_TEMPLATES.DIESEL_FUELS]: {
|
2032
2041
|
name: ENUM_TEMPLATES.DIESEL_FUELS,
|
2033
|
-
icon: `${
|
2042
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Diesel fuel.svg`,
|
2034
2043
|
systemType: ENUM_TYPES.DIESEL_FUELS,
|
2035
2044
|
},
|
2036
2045
|
[ENUM_TEMPLATES.GASON_LINES]: {
|
2037
2046
|
name: ENUM_TEMPLATES.GASON_LINES,
|
2038
|
-
icon: `${
|
2047
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Gasoline.svg`,
|
2039
2048
|
systemType: ENUM_TYPES.GASON_LINES,
|
2040
2049
|
},
|
2041
2050
|
[ENUM_TEMPLATES.BIODIESELS]: {
|
2042
2051
|
name: ENUM_TEMPLATES.BIODIESELS,
|
2043
|
-
icon: `${
|
2052
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Biodiesel.svg`,
|
2044
2053
|
systemType: ENUM_TYPES.BIODIESELS,
|
2045
2054
|
},
|
2046
2055
|
[ENUM_TEMPLATES.KEROSENSE]: {
|
2047
2056
|
name: ENUM_TEMPLATES.KEROSENSE,
|
2048
|
-
icon: `${
|
2057
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Kerosene.svg`,
|
2049
2058
|
systemType: ENUM_TYPES.KEROSENSE,
|
2050
2059
|
},
|
2051
2060
|
[ENUM_TEMPLATES.PROPANES]: {
|
2052
2061
|
name: ENUM_TEMPLATES.PROPANES,
|
2053
|
-
icon: `${
|
2062
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Propane.svg`,
|
2054
2063
|
systemType: ENUM_TYPES.PROPANES,
|
2055
2064
|
},
|
2056
2065
|
[ENUM_TEMPLATES.TANKER_TRUCKS]: {
|
2057
2066
|
name: ENUM_TEMPLATES.TANKER_TRUCKS,
|
2058
|
-
icon: `${
|
2067
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Tanker Trucks.svg`,
|
2059
2068
|
systemType: ENUM_TYPES.TANKER_TRUCKS,
|
2060
2069
|
},
|
2061
2070
|
[ENUM_TEMPLATES.PIPELINE]: {
|
2062
2071
|
name: ENUM_TEMPLATES.PIPELINE,
|
2063
|
-
icon: `${
|
2072
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Pipeline.svg`,
|
2064
2073
|
systemType: ENUM_TYPES.PIPELINE,
|
2065
2074
|
},
|
2066
2075
|
[ENUM_TEMPLATES.INDUSTRIAL_BOILERS]: {
|
2067
2076
|
name: ENUM_TEMPLATES.INDUSTRIAL_BOILERS,
|
2068
|
-
icon: `${
|
2077
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial boilers.svg`,
|
2069
2078
|
systemType: ENUM_TYPES.INDUSTRIAL_BOILERS,
|
2070
2079
|
},
|
2071
2080
|
[ENUM_TEMPLATES.GENERATORS]: {
|
2072
2081
|
name: ENUM_TEMPLATES.GENERATORS,
|
2073
|
-
icon: `${
|
2082
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Generators.svg`,
|
2074
2083
|
systemType: ENUM_TYPES.GENERATORS,
|
2075
2084
|
},
|
2076
2085
|
[ENUM_TEMPLATES.INDUSTRIAL_FURNACES]: {
|
2077
2086
|
name: ENUM_TEMPLATES.INDUSTRIAL_FURNACES,
|
2078
|
-
icon: `${
|
2087
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial furnaces.svg`,
|
2079
2088
|
systemType: ENUM_TYPES.INDUSTRIAL_FURNACES,
|
2080
2089
|
},
|
2081
2090
|
[ENUM_TEMPLATES.INDUSTRIAL_OVENS]: {
|
2082
2091
|
name: ENUM_TEMPLATES.INDUSTRIAL_OVENS,
|
2083
|
-
icon: `${
|
2092
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial ovens.svg`,
|
2084
2093
|
systemType: ENUM_TYPES.INDUSTRIAL_OVENS,
|
2085
2094
|
},
|
2086
2095
|
[ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT]: {
|
2087
2096
|
name: ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT,
|
2088
|
-
icon: `${
|
2097
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Industrial vehicles and equipment.svg`,
|
2089
2098
|
systemType: ENUM_TYPES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT,
|
2090
2099
|
},
|
2091
2100
|
[ENUM_TEMPLATES.FUEL_METERS]: {
|
2092
2101
|
name: ENUM_TEMPLATES.FUEL_METERS,
|
2093
|
-
icon: `${
|
2102
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel meters.svg`,
|
2094
2103
|
systemType: ENUM_TYPES.FUEL_METERS,
|
2095
2104
|
},
|
2096
2105
|
[ENUM_TEMPLATES.FUEL_DISPENSERS]: {
|
2097
2106
|
name: ENUM_TEMPLATES.FUEL_DISPENSERS,
|
2098
|
-
icon: `${
|
2107
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel dispensers.svg`,
|
2099
2108
|
systemType: ENUM_TYPES.FUEL_DISPENSERS,
|
2100
2109
|
},
|
2101
2110
|
[ENUM_TEMPLATES.FUEL_STRORAGE_TANKS]: {
|
2102
2111
|
name: ENUM_TEMPLATES.FUEL_STRORAGE_TANKS,
|
2103
|
-
icon: `${
|
2112
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel storage tanks.svg`,
|
2104
2113
|
systemType: ENUM_TYPES.FUEL_STRORAGE_TANKS,
|
2105
2114
|
},
|
2106
2115
|
[ENUM_TEMPLATES.FUEL_FILTRATIONS]: {
|
2107
2116
|
name: ENUM_TEMPLATES.FUEL_FILTRATIONS,
|
2108
|
-
icon: `${
|
2117
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel filtration systems.svg`,
|
2109
2118
|
systemType: ENUM_TYPES.FUEL_FILTRATIONS,
|
2110
2119
|
},
|
2111
2120
|
[ENUM_TEMPLATES.FUEL_MANAGEMENTS]: {
|
2112
2121
|
name: ENUM_TEMPLATES.FUEL_MANAGEMENTS,
|
2113
|
-
icon: `${
|
2122
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Fuel management systems.svg`,
|
2114
2123
|
systemType: ENUM_TYPES.FUEL_MANAGEMENTS,
|
2115
2124
|
},
|
2116
2125
|
[ENUM_TEMPLATES.FUELS]: {
|
2117
2126
|
name: ENUM_TEMPLATES.FUELS,
|
2118
|
-
icon: `${
|
2127
|
+
icon: `${AtoGojsEditorModel.FUEL_ICON_ASSET_PATH}/Diesel fuel.svg`,
|
2119
2128
|
systemType: ENUM_TYPES.FUELS,
|
2120
2129
|
},
|
2121
2130
|
// Gas new
|
2122
2131
|
[ENUM_TEMPLATES.LIQUEFIED_NATURAL_GAS]: {
|
2123
2132
|
name: ENUM_TEMPLATES.LIQUEFIED_NATURAL_GAS,
|
2124
|
-
icon: `${
|
2133
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Natural gas generators.svg`,
|
2125
2134
|
systemType: ENUM_TYPES.LIQUEFIED_NATURAL_GAS,
|
2126
2135
|
},
|
2127
2136
|
[ENUM_TEMPLATES.ON_SITE_PRODUCTION]: {
|
2128
2137
|
name: ENUM_TEMPLATES.ON_SITE_PRODUCTION,
|
2129
|
-
icon: `${
|
2138
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Natural gas generators.svg`,
|
2130
2139
|
systemType: ENUM_TYPES.ON_SITE_PRODUCTION,
|
2131
2140
|
},
|
2132
2141
|
[ENUM_TEMPLATES.BURNERS]: {
|
2133
2142
|
name: ENUM_TEMPLATES.BURNERS,
|
2134
|
-
icon: `${
|
2143
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power conditioning unit (PCU).svg`,
|
2135
2144
|
systemType: ENUM_TYPES.BURNERS,
|
2136
2145
|
},
|
2137
2146
|
[ENUM_TEMPLATES.FLUE_GAS_ANALYZERS]: {
|
2138
2147
|
name: ENUM_TEMPLATES.FLUE_GAS_ANALYZERS,
|
2139
|
-
icon: `${
|
2148
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power conditioning unit (PCU).svg`,
|
2140
2149
|
systemType: ENUM_TYPES.FLUE_GAS_ANALYZERS,
|
2141
2150
|
},
|
2142
2151
|
// Solar ==========================================================
|
2143
2152
|
[ENUM_TEMPLATES.SOLAR_POWER]: {
|
2144
2153
|
name: ENUM_TEMPLATES.SOLAR_POWER,
|
2145
|
-
icon: `${
|
2154
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Solar.svg`,
|
2146
2155
|
systemType: ENUM_TYPES.SOLAR_POWER,
|
2147
2156
|
},
|
2148
2157
|
[ENUM_TEMPLATES.POWER_CONDITIONING_UNIT]: {
|
2149
2158
|
name: ENUM_TEMPLATES.POWER_CONDITIONING_UNIT,
|
2150
|
-
icon: `${
|
2159
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power conditioning unit (PCU).svg`,
|
2151
2160
|
systemType: ENUM_TYPES.POWER_CONDITIONING_UNIT,
|
2152
2161
|
},
|
2153
2162
|
[ENUM_TEMPLATES.INVERTERS]: {
|
2154
2163
|
name: ENUM_TEMPLATES.INVERTERS,
|
2155
|
-
icon: `${
|
2164
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Inverter.svg`,
|
2156
2165
|
systemType: ENUM_TYPES.INVERTERS,
|
2157
2166
|
},
|
2158
2167
|
[ENUM_TEMPLATES.BATTERIES]: {
|
2159
2168
|
name: ENUM_TEMPLATES.BATTERIES,
|
2160
|
-
icon: `${
|
2169
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Battery.svg`,
|
2161
2170
|
systemType: ENUM_TYPES.BATTERIES,
|
2162
2171
|
},
|
2163
2172
|
[ENUM_TEMPLATES.ZONE]: {
|
@@ -2176,7 +2185,7 @@ class GojsEditorModel {
|
|
2176
2185
|
// Plant Cell
|
2177
2186
|
[ENUM_TEMPLATES.PLANT_CELL]: {
|
2178
2187
|
name: ENUM_TEMPLATES.PLANT_CELL,
|
2179
|
-
icon: `${
|
2188
|
+
icon: `${AtoGojsEditorModel.PLANT_CELL_PATH}/Cell.svg`,
|
2180
2189
|
systemType: ENUM_TYPES.PLANT_CELL,
|
2181
2190
|
},
|
2182
2191
|
[ENUM_TEMPLATES.INPUT_PLANT_CELL]: {
|
@@ -2210,47 +2219,47 @@ class GojsEditorModel {
|
|
2210
2219
|
// STEAM
|
2211
2220
|
[ENUM_TEMPLATES.VALUES]: {
|
2212
2221
|
name: ENUM_TEMPLATES.VALUES,
|
2213
|
-
icon: `${
|
2222
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Steam_Valve.png`,
|
2214
2223
|
},
|
2215
2224
|
[ENUM_TEMPLATES.STEAM_TRAPS]: {
|
2216
2225
|
name: ENUM_TEMPLATES.STEAM_TRAPS,
|
2217
|
-
icon: `${
|
2226
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Trap.png`,
|
2218
2227
|
},
|
2219
2228
|
[ENUM_TEMPLATES.PRESSURE_REGULATORS]: {
|
2220
2229
|
name: ENUM_TEMPLATES.PRESSURE_REGULATORS,
|
2221
|
-
icon: `${
|
2230
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Pressure_Regulator.png`,
|
2222
2231
|
},
|
2223
2232
|
[ENUM_TEMPLATES.SAFETY_VALUES_AND_EQUIPMENT]: {
|
2224
2233
|
name: ENUM_TEMPLATES.SAFETY_VALUES_AND_EQUIPMENT,
|
2225
|
-
icon: `${
|
2234
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/safety valve.png`,
|
2226
2235
|
},
|
2227
2236
|
[ENUM_TEMPLATES.CONDENSATE_RETURN_SYSTEM]: {
|
2228
2237
|
name: ENUM_TEMPLATES.CONDENSATE_RETURN_SYSTEM,
|
2229
|
-
icon: `${
|
2238
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Condensate Return System.png`,
|
2230
2239
|
},
|
2231
2240
|
[ENUM_TEMPLATES.DEAERATORS]: {
|
2232
2241
|
name: ENUM_TEMPLATES.DEAERATORS,
|
2233
|
-
icon: `${
|
2242
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Deaerators.png`,
|
2234
2243
|
},
|
2235
2244
|
[ENUM_TEMPLATES.FEEDWATER_PUMPS]: {
|
2236
2245
|
name: ENUM_TEMPLATES.FEEDWATER_PUMPS,
|
2237
|
-
icon: `${
|
2246
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Feed Water Pump.png`,
|
2238
2247
|
},
|
2239
2248
|
[ENUM_TEMPLATES.BLOWDOWN_TANKS]: {
|
2240
2249
|
name: ENUM_TEMPLATES.BLOWDOWN_TANKS,
|
2241
|
-
icon: `${
|
2250
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Blowdown tank.png`,
|
2242
2251
|
},
|
2243
2252
|
[ENUM_TEMPLATES.EXPANSION_TANKS]: {
|
2244
2253
|
name: ENUM_TEMPLATES.EXPANSION_TANKS,
|
2245
|
-
icon: `${
|
2254
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Expansion Tanks.png`,
|
2246
2255
|
},
|
2247
2256
|
[ENUM_TEMPLATES.HEAT_EXCHANGERS]: {
|
2248
2257
|
name: ENUM_TEMPLATES.HEAT_EXCHANGERS,
|
2249
|
-
icon: `${
|
2258
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/heat exchangers.png`,
|
2250
2259
|
},
|
2251
2260
|
[ENUM_TEMPLATES.TURBINES]: {
|
2252
2261
|
name: ENUM_TEMPLATES.TURBINES,
|
2253
|
-
icon: `${
|
2262
|
+
icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/steam turbine.png`,
|
2254
2263
|
},
|
2255
2264
|
// Plant Basic
|
2256
2265
|
[ENUM_TEMPLATES.GROUP_BASIC_COMPONENT]: {
|
@@ -2258,46 +2267,46 @@ class GojsEditorModel {
|
|
2258
2267
|
icon: ``,
|
2259
2268
|
},
|
2260
2269
|
};
|
2261
|
-
|
2270
|
+
AtoGojsEditorModel.WITHDRAW_DISCHARGE_ICON = {
|
2262
2271
|
[ENUM_TYPES.FRESH_SURFACE_WATER]: {
|
2263
2272
|
name: ENUM_TEMPLATES.FRESH_SURFACE_WATER,
|
2264
|
-
iconActive: `${
|
2265
|
-
iconDisabled: `${
|
2273
|
+
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Fresh surface water - Duo.svg`,
|
2274
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Fresh surface water.svg`,
|
2266
2275
|
},
|
2267
2276
|
[ENUM_TYPES.THIRD_PARTY_SOURCES]: {
|
2268
2277
|
name: ENUM_TEMPLATES.THIRD_PARTY_SOURCES,
|
2269
|
-
iconActive: `${
|
2270
|
-
iconDisabled: `${
|
2278
|
+
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources - Duo.svg`,
|
2279
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources.svg`,
|
2271
2280
|
isHasWaterCapcity: true,
|
2272
2281
|
},
|
2273
2282
|
[ENUM_TYPES.THIRD_PARTY_DESTINATIONS]: {
|
2274
2283
|
name: ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
|
2275
|
-
iconActive: `${
|
2276
|
-
iconDisabled: `${
|
2284
|
+
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources - Duo.svg`,
|
2285
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Third party sources.svg`,
|
2277
2286
|
isHasWaterCapcity: true,
|
2278
2287
|
},
|
2279
2288
|
[ENUM_TYPES.GROUND_WATER_NON_RENEWABLE]: {
|
2280
2289
|
name: ENUM_TEMPLATES.GROUND_WATER_NON_RENEWABLE,
|
2281
|
-
iconActive: `${
|
2282
|
-
iconDisabled: `${
|
2290
|
+
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - non-renewable - Duo.svg`,
|
2291
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - non-renewable.svg`,
|
2283
2292
|
},
|
2284
2293
|
[ENUM_TYPES.PRODUCED_ENTRAINED]: {
|
2285
2294
|
name: ENUM_TEMPLATES.PRODUCED_ENTRAINED,
|
2286
|
-
iconActive: `${
|
2287
|
-
iconDisabled: `${
|
2295
|
+
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable - Duo.svg`,
|
2296
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable.svg`,
|
2288
2297
|
},
|
2289
2298
|
[ENUM_TYPES.BRACKISH_SURFACE_WATER]: {
|
2290
2299
|
name: ENUM_TEMPLATES.BRACKISH_SURFACE_WATER,
|
2291
|
-
iconiconActive: `${
|
2292
|
-
iconDisabled: `${
|
2300
|
+
iconiconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Brackish surface - Duo.svg`,
|
2301
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Brackish surface.svg`,
|
2293
2302
|
},
|
2294
2303
|
[ENUM_TYPES.GROUND_WATER_RENEWABLE]: {
|
2295
2304
|
name: ENUM_TEMPLATES.GROUND_WATER_RENEWABLE,
|
2296
|
-
iconActive: `${
|
2297
|
-
iconDisabled: `${
|
2305
|
+
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable - Duo.svg`,
|
2306
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable.svg`,
|
2298
2307
|
},
|
2299
2308
|
};
|
2300
|
-
|
2309
|
+
AtoGojsEditorModel.WITHDRAW_DISCHARGE_DIAGRAM_HOME = {
|
2301
2310
|
withdrawSourcesChildren: [
|
2302
2311
|
ENUM_TYPES.WATER_TREATMENT,
|
2303
2312
|
ENUM_TYPES.DEMIN_WATER_TREATMENT,
|
@@ -2318,20 +2327,20 @@ class GojsEditorModel {
|
|
2318
2327
|
ACTION_RIGHT_MENU_GROUP["DATA_BOX"] = "Measurement";
|
2319
2328
|
ACTION_RIGHT_MENU_GROUP["SYSTEM_TEMPLATES"] = "System Templates";
|
2320
2329
|
ACTION_RIGHT_MENU_GROUP["WATER_COMPONENT"] = "Water Components";
|
2321
|
-
})(ACTION_RIGHT_MENU_GROUP =
|
2330
|
+
})(ACTION_RIGHT_MENU_GROUP = AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP || (AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP = {}));
|
2322
2331
|
let DATA_BOX_NAME_OF_COMPONENT;
|
2323
2332
|
(function (DATA_BOX_NAME_OF_COMPONENT) {
|
2324
2333
|
DATA_BOX_NAME_OF_COMPONENT["INFLOW"] = "Inflow Of";
|
2325
2334
|
DATA_BOX_NAME_OF_COMPONENT["OUTFLOW"] = "Outflow From";
|
2326
|
-
})(DATA_BOX_NAME_OF_COMPONENT =
|
2335
|
+
})(DATA_BOX_NAME_OF_COMPONENT = AtoGojsEditorModel.DATA_BOX_NAME_OF_COMPONENT || (AtoGojsEditorModel.DATA_BOX_NAME_OF_COMPONENT = {}));
|
2327
2336
|
let ACTION_RIGHT_MENU;
|
2328
2337
|
(function (ACTION_RIGHT_MENU) {
|
2329
2338
|
ACTION_RIGHT_MENU["APPLY_TEMPLATE"] = "ApplyTemplate";
|
2330
2339
|
ACTION_RIGHT_MENU["NEW_PLANT_CELL"] = "NewPlantCell";
|
2331
2340
|
ACTION_RIGHT_MENU["NAME_PLANT_CELL"] = "NamePlantCell";
|
2332
2341
|
ACTION_RIGHT_MENU["ADD_COMPONENT"] = "AddComponent";
|
2333
|
-
})(ACTION_RIGHT_MENU =
|
2334
|
-
|
2342
|
+
})(ACTION_RIGHT_MENU = AtoGojsEditorModel.ACTION_RIGHT_MENU || (AtoGojsEditorModel.ACTION_RIGHT_MENU = {}));
|
2343
|
+
AtoGojsEditorModel.DATA_MENU = [
|
2335
2344
|
{
|
2336
2345
|
name: 'Plant Templates',
|
2337
2346
|
componentType: ATO_ECOMPONENT_PLANT_TYPE.WATER,
|
@@ -2379,7 +2388,7 @@ class GojsEditorModel {
|
|
2379
2388
|
// ],
|
2380
2389
|
// },
|
2381
2390
|
];
|
2382
|
-
|
2391
|
+
AtoGojsEditorModel.WATER_USING_SYSTEM = [
|
2383
2392
|
ENUM_TYPES.COOLING_TOWER,
|
2384
2393
|
ENUM_TYPES.BOILER,
|
2385
2394
|
ENUM_TYPES.OTHER,
|
@@ -2387,7 +2396,7 @@ class GojsEditorModel {
|
|
2387
2396
|
ENUM_TYPES.DOMESTIC_USE,
|
2388
2397
|
ENUM_TYPES.LANDSCAPING_IRRIGATION,
|
2389
2398
|
];
|
2390
|
-
|
2399
|
+
AtoGojsEditorModel.PARAM_TABLE_STYLE = {
|
2391
2400
|
[ENUM_COLORS.CERULEAN]: {
|
2392
2401
|
borderTable: ENUM_COLORS.CERULEAN,
|
2393
2402
|
bgColor: ENUM_COLORS.CERULEAN_ALICE_BLUE,
|
@@ -2410,7 +2419,7 @@ class GojsEditorModel {
|
|
2410
2419
|
},
|
2411
2420
|
};
|
2412
2421
|
// System type include Water
|
2413
|
-
|
2422
|
+
AtoGojsEditorModel.TYPE_COMPONENT_WATER = [
|
2414
2423
|
ENUM_TYPES.STORAGE,
|
2415
2424
|
ENUM_TYPES.WATER_TREATMENT,
|
2416
2425
|
ENUM_TYPES.DEMIN_WATER_TREATMENT,
|
@@ -2426,139 +2435,139 @@ class GojsEditorModel {
|
|
2426
2435
|
ENUM_TYPES.BOILER,
|
2427
2436
|
ENUM_TYPES.OTHER,
|
2428
2437
|
ENUM_TYPES.LANDSCAPING_IRRIGATION,
|
2429
|
-
|
2430
|
-
|
2438
|
+
AtoGojsEditorModel.WaterWithdrawSources,
|
2439
|
+
AtoGojsEditorModel.WaterDischargeDestinations,
|
2431
2440
|
];
|
2432
2441
|
// Template type includes Water
|
2433
|
-
|
2434
|
-
|
2435
|
-
|
2436
|
-
|
2437
|
-
|
2438
|
-
|
2439
|
-
|
2440
|
-
|
2441
|
-
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2445
|
-
|
2446
|
-
|
2442
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_WATER_NORMAL = [
|
2443
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS,
|
2444
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.BOILER,
|
2445
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER,
|
2446
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.ETP_WASTEWATER_TREATMENT,
|
2447
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.ZLD_WASTEWATER_TREATMENT,
|
2448
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.MBR_WASTEWATER_TREATMENT,
|
2449
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.DAF_WASTEWATER_TREATMENT,
|
2450
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT,
|
2451
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.DEMIN_WATER_TREATMENT,
|
2452
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE,
|
2453
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.DOMESTIC_USE,
|
2454
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.LANDSCAPING_IRRIGATION,
|
2455
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.OTHER,
|
2447
2456
|
];
|
2448
2457
|
// ['Process', 'Boiler', 'Cooling Tower', 'ETP Wastewater Treatment', 'ZLD Wastewater Treatment', 'MBR Wastewater Treatment', 'DAF Wastewater Treatment',
|
2449
2458
|
// 'RO Water Treatment', 'Demin Water Treatment', 'Storage', 'Domestic Use', 'Landscaping/Irrigation', 'Other'];
|
2450
|
-
|
2451
|
-
|
2452
|
-
|
2453
|
-
|
2454
|
-
|
2455
|
-
|
2456
|
-
|
2457
|
-
|
2459
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE = [
|
2460
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.FRESH_SURFACE_WATER,
|
2461
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.BRACKISH_SURFACE_WATER,
|
2462
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.GROUND_WATER_RENEWABLE,
|
2463
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.GROUND_WATER_NON_RENEWABLE,
|
2464
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PRODUCED_ENTRAINED,
|
2465
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.THIRD_PARTY_SOURCES,
|
2466
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
|
2458
2467
|
];
|
2459
2468
|
// ['Fresh surface water', 'Brackish surface water/ seawater', 'Groundwater - Renewable', 'Groundwater - non-renewable', 'Produced / entrained water', 'Third party sources', 'Third party destinations'];
|
2460
|
-
|
2461
|
-
|
2462
|
-
|
2463
|
-
|
2464
|
-
|
2465
|
-
|
2466
|
-
|
2467
|
-
|
2468
|
-
|
2469
|
-
|
2470
|
-
|
2471
|
-
|
2472
|
-
|
2473
|
-
|
2474
|
-
|
2475
|
-
|
2476
|
-
|
2477
|
-
|
2478
|
-
|
2479
|
-
|
2480
|
-
|
2481
|
-
|
2482
|
-
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2487
|
-
|
2469
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_ELECTRICITY = [
|
2470
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.GRID,
|
2471
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.DIESEL_GENERATORS,
|
2472
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.NATURAL_GAS_GENERATORS,
|
2473
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.SOLAR_POWER,
|
2474
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.TRANSFORMERS,
|
2475
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.SWITCH_GEARS,
|
2476
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.MOTOR_CONTROLS,
|
2477
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS,
|
2478
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS,
|
2479
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTINGS,
|
2480
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.GROUNDING,
|
2481
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_METERS,
|
2482
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS,
|
2483
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTING_SYSTEMS,
|
2484
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC,
|
2485
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS,
|
2486
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS,
|
2487
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.OFFICE_EQUIPMENT,
|
2488
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS,
|
2489
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES,
|
2490
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT,
|
2491
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
2492
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE,
|
2493
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
|
2494
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE,
|
2495
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE,
|
2496
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE,
|
2488
2497
|
];
|
2489
2498
|
// ['Grid', 'Diesel Generators', 'Natural gas generators', 'Solar Power', 'Transformers', 'Switchgears', 'MotorControls', 'VariableFrequencyDrives',
|
2490
2499
|
// 'Power distribution systems', 'Lightings', 'Grounding', 'Electric Meters', 'Industrial motors',
|
2491
2500
|
// 'Lighting systems', 'Heating, ventilation, and air conditioning (HVAC) systems', 'Refrigeration and cooling', 'Process control and automation', 'Office equipment', 'Compressed air',
|
2492
2501
|
// 'Process equipment and machines', 'Material handling equipment', 'Power distribution and control', 'Battery energy storage', 'Flywheel energy storage',
|
2493
2502
|
// 'Pumped hydro storage', 'Thermal energy storage', 'Supercapacitor energy storage'];
|
2494
|
-
|
2495
|
-
|
2496
|
-
|
2497
|
-
|
2498
|
-
|
2499
|
-
|
2500
|
-
|
2501
|
-
|
2502
|
-
|
2503
|
-
|
2504
|
-
|
2505
|
-
|
2506
|
-
|
2507
|
-
|
2508
|
-
|
2509
|
-
|
2510
|
-
|
2511
|
-
|
2503
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_NATURAL_GAS = [
|
2504
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.NATURAL_GAS_PIPELINES,
|
2505
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.LIQUEFIED_NATURAL_GAS,
|
2506
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE,
|
2507
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.ON_SITE_PRODUCTION,
|
2508
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PRODUCTION,
|
2509
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.BOILERS_AND_HEATERS,
|
2510
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.FURNACES,
|
2511
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.POWER_GENERATION,
|
2512
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.COGENERATION,
|
2513
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS,
|
2514
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT,
|
2515
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.GAS_METERS,
|
2516
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.BURNERS,
|
2517
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.FLUE_GAS_ANALYZERS,
|
2518
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS,
|
2519
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.GAS_STORAGE_TANKS,
|
2520
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS,
|
2512
2521
|
];
|
2513
2522
|
// ['Natural gas pipelines', 'Liquefied natural gas', 'Compressed natural gas pipeline', 'On-site production',
|
2514
2523
|
// 'Compressed natural gas production', 'Boilers and heaters', 'Furnaces', 'Power generation', 'Cogeneration', 'Combined cycle power plants',
|
2515
2524
|
// 'Fuel for vehicles and equipment', 'Gas meters', 'Burners', 'Flue gas analyzers', 'Combustion control systems', 'Gas storage tanks',
|
2516
2525
|
// 'Gas pressure regulators'];
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2522
|
-
|
2523
|
-
|
2524
|
-
|
2525
|
-
|
2526
|
-
|
2527
|
-
|
2528
|
-
|
2529
|
-
|
2530
|
-
|
2531
|
-
|
2532
|
-
|
2533
|
-
|
2534
|
-
|
2526
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_FUEL = [
|
2527
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.DIESEL_FUELS,
|
2528
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.GASON_LINES,
|
2529
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.BIODIESELS,
|
2530
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.KEROSENSE,
|
2531
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PROPANES,
|
2532
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.TANKER_TRUCKS,
|
2533
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE,
|
2534
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_BOILERS,
|
2535
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.GENERATORS,
|
2536
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_FURNACES,
|
2537
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_OVENS,
|
2538
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT,
|
2539
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_METERS,
|
2540
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS,
|
2541
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS,
|
2542
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS,
|
2543
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS,
|
2535
2544
|
];
|
2536
2545
|
// ['DieselFuels', 'Gasonlines', 'Biodiesels', 'Kerosenes', 'Propanes', 'Tanker Trucks',
|
2537
2546
|
// 'Pipeline', 'Industrial boilers', 'Generators', 'Industrial furnaces', 'Industrial ovens', 'Industrial vehicles and equipment',
|
2538
2547
|
// 'FuelMeters', 'FuelDispensers', 'FuelStorageTanks', 'FuelFiltrations', 'FuelManagements'];
|
2539
|
-
|
2540
|
-
|
2541
|
-
|
2542
|
-
|
2543
|
-
|
2544
|
-
|
2545
|
-
|
2546
|
-
|
2547
|
-
|
2548
|
-
|
2549
|
-
|
2550
|
-
|
2548
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_STEAM = [
|
2549
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.VALUES,
|
2550
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_TRAPS,
|
2551
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PRESSURE_REGULATORS,
|
2552
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.SAFETY_VALUES_AND_EQUIPMENT,
|
2553
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.CONDENSATE_RETURN_SYSTEM,
|
2554
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.DEAERATORS,
|
2555
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.FEEDWATER_PUMPS,
|
2556
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.BLOWDOWN_TANKS,
|
2557
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.EXPANSION_TANKS,
|
2558
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.HEAT_EXCHANGERS,
|
2559
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.TURBINES,
|
2551
2560
|
];
|
2552
2561
|
// ['Valves', 'Steam Traps', 'Pressure Regulator', 'Safety Valves and Equipment', 'Condensate Return System', 'Deaerators',
|
2553
2562
|
// 'Feedwater Pumps', 'Blowdown Tanks', 'Expansion Tanks', 'Heat Exchangers', 'Turbines'];
|
2554
|
-
|
2555
|
-
|
2556
|
-
|
2557
|
-
|
2558
|
-
|
2559
|
-
|
2563
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_SPECIAL = [
|
2564
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
|
2565
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORAGE,
|
2566
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE,
|
2567
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE,
|
2568
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
|
2560
2569
|
];
|
2561
|
-
})(
|
2570
|
+
})(AtoGojsEditorModel || (AtoGojsEditorModel = {}));
|
2562
2571
|
|
2563
2572
|
// export const GO_LICENSE_KEY =
|
2564
2573
|
// '73f946e5b26328a800ca0d2b113f69ed1bb37f3b9e8c1bf15e5041f0ea08681c3089ee7d02da8b9481fb1aa91a7ac089d5c46c7b9e4b013ce037d38f44e480fbe13f77b4435f559ea25676c599a87aa0ee6872f3c1b568a0c5788d';
|
@@ -3222,7 +3231,7 @@ class AtoDefaultGojsEditor {
|
|
3222
3231
|
'toolManager.hoverDelay': 200,
|
3223
3232
|
// 'draggingTool.isEnabled': false,
|
3224
3233
|
// initialAutoScale: go.Diagram.UniformToFill,
|
3225
|
-
// autoScrollRegion:
|
3234
|
+
// autoScrollRegion: AtoGojsEditorModel.GRID_SIZE * 5,
|
3226
3235
|
layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
|
3227
3236
|
initialContentAlignment: go.Spot.Center,
|
3228
3237
|
initialAutoScale: go.Diagram.Uniform,
|
@@ -3267,7 +3276,7 @@ class AtoDefaultGojsEditor {
|
|
3267
3276
|
// this.myDiagram.zoomToFit();
|
3268
3277
|
// this.defaultScaleZoomToFit = this.myDiagram.scale;
|
3269
3278
|
// if (!this.initialOptions.isReadOnly) {
|
3270
|
-
// const sizeMargin =
|
3279
|
+
// const sizeMargin = AtoGojsEditorModel.GRID_SIZE * 15;
|
3271
3280
|
// this.myDiagram.padding = new go.Margin(sizeMargin);
|
3272
3281
|
// }
|
3273
3282
|
// },
|
@@ -3299,6 +3308,7 @@ class AtoDefaultGojsEditor {
|
|
3299
3308
|
go.Diagram.licenseKey = GO_LICENSE_KEY;
|
3300
3309
|
}
|
3301
3310
|
ngOnDestroy() {
|
3311
|
+
this.unsubscribeAll();
|
3302
3312
|
this.stopAnimation();
|
3303
3313
|
// this.myDiagram?.clear();
|
3304
3314
|
if (!!this.myDiagram?.div) {
|
@@ -3346,39 +3356,39 @@ class AtoDefaultGojsEditor {
|
|
3346
3356
|
return;
|
3347
3357
|
}
|
3348
3358
|
// Group
|
3349
|
-
if (node?.type ===
|
3350
|
-
this.makeGroupROPlantTemplate(
|
3359
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT) {
|
3360
|
+
this.makeGroupROPlantTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
3351
3361
|
return;
|
3352
3362
|
}
|
3353
|
-
if (node?.type ===
|
3354
|
-
this.makeGroupBoilerTemplate(
|
3363
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.BOILER) {
|
3364
|
+
this.makeGroupBoilerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
3355
3365
|
return;
|
3356
3366
|
}
|
3357
|
-
if (node?.type ===
|
3358
|
-
this.makeGroupCoolingTowerTemplate(
|
3367
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER) {
|
3368
|
+
this.makeGroupCoolingTowerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
3359
3369
|
return;
|
3360
3370
|
}
|
3361
|
-
if (node?.type ===
|
3371
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE) {
|
3362
3372
|
this.makeGroupZoneTemplate();
|
3363
3373
|
return;
|
3364
3374
|
}
|
3365
|
-
if (node?.type ===
|
3366
|
-
this.groupPlantCellTemplate(
|
3375
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL && node?.isGroup) {
|
3376
|
+
this.groupPlantCellTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
3367
3377
|
return;
|
3368
3378
|
}
|
3369
|
-
if (node?.type ===
|
3370
|
-
this.groupPCInputOrOutTemplate(
|
3379
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_INPUT_GROUP) {
|
3380
|
+
this.groupPCInputOrOutTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name, new go.Margin(0, 50, 0, 0));
|
3371
3381
|
return;
|
3372
3382
|
}
|
3373
|
-
if (node?.type ===
|
3374
|
-
this.groupPCInputOrOutTemplate(
|
3383
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_OUTPUT_GROUP) {
|
3384
|
+
this.groupPCInputOrOutTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name, new go.Margin(0, 0, 0, 50));
|
3375
3385
|
return;
|
3376
3386
|
}
|
3377
|
-
if (node?.type ===
|
3378
|
-
this.makeGroupBasicComponent(
|
3387
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.GROUP_BASIC_COMPONENT) {
|
3388
|
+
this.makeGroupBasicComponent(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
3379
3389
|
return;
|
3380
3390
|
}
|
3381
|
-
this.makeGroupTemplate(
|
3391
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
3382
3392
|
}
|
3383
3393
|
addNodeTemplate(node) {
|
3384
3394
|
if (this.myDiagram.nodeTemplateMap?.Hb[node?.type] || node?.isGroup) {
|
@@ -3386,61 +3396,61 @@ class AtoDefaultGojsEditor {
|
|
3386
3396
|
}
|
3387
3397
|
// Not Group
|
3388
3398
|
// Component Water Normal
|
3389
|
-
if (
|
3390
|
-
this.makeEntityTemplate(
|
3399
|
+
if (AtoGojsEditorModel.TYPE_TEMPLATE_WATER_NORMAL?.includes(node?.type) && !node?.isGroup) {
|
3400
|
+
this.makeEntityTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
|
3391
3401
|
}
|
3392
3402
|
// Component Water Withdraw Or Discharge
|
3393
|
-
if (
|
3394
|
-
this.makeEntityWithdrawOrDischarge(
|
3403
|
+
if (AtoGojsEditorModel.TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE?.includes(node?.type) && !node?.isGroup) {
|
3404
|
+
this.makeEntityWithdrawOrDischarge(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
|
3395
3405
|
}
|
3396
3406
|
// Component Energy Normal
|
3397
|
-
if ((
|
3398
|
-
|
3399
|
-
|
3400
|
-
|
3407
|
+
if ((AtoGojsEditorModel.TYPE_TEMPLATE_ELECTRICITY?.includes(node?.type) ||
|
3408
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_NATURAL_GAS?.includes(node?.type) ||
|
3409
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_FUEL?.includes(node?.type) ||
|
3410
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_STEAM?.includes(node?.type)) &&
|
3401
3411
|
!node?.isGroup) {
|
3402
|
-
this.makeEntityTemplateEnergy(
|
3412
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
|
3403
3413
|
}
|
3404
|
-
if (node?.type ===
|
3414
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE) {
|
3405
3415
|
this.makeImageTemplate();
|
3406
3416
|
}
|
3407
|
-
if (node?.type ===
|
3417
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE) {
|
3408
3418
|
this.makeParamTable();
|
3409
3419
|
}
|
3410
|
-
if (node?.type ===
|
3420
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE) {
|
3411
3421
|
this.makeMassBalance();
|
3412
3422
|
}
|
3413
3423
|
// Text Node
|
3414
|
-
if (node?.type ===
|
3424
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
|
3415
3425
|
this.makeTextTemplate();
|
3416
3426
|
}
|
3417
3427
|
// Value Node
|
3418
|
-
if (node?.type ===
|
3428
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_NODE) {
|
3419
3429
|
this.makeValueNodeTemplate();
|
3420
3430
|
}
|
3421
3431
|
// Value Node
|
3422
|
-
if (node?.type ===
|
3432
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY) {
|
3423
3433
|
this.makeEmptyNodeTemplate();
|
3424
3434
|
}
|
3425
3435
|
// Value Label
|
3426
|
-
if (node?.type ===
|
3436
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL) {
|
3427
3437
|
this.makeValueLabelTemplate();
|
3428
3438
|
}
|
3429
3439
|
// Zone item
|
3430
|
-
if (node?.type ===
|
3440
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM) {
|
3431
3441
|
this.makeZoneItemTemplate();
|
3432
3442
|
}
|
3433
3443
|
// data box
|
3434
|
-
if (node?.type ===
|
3444
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX) {
|
3435
3445
|
this.makeDataBoxTemplate();
|
3436
3446
|
}
|
3437
3447
|
// Special template
|
3438
|
-
if (
|
3439
|
-
this.makeSpecialTemplate(
|
3448
|
+
if (AtoGojsEditorModel.TYPE_TEMPLATE_SPECIAL?.includes(node?.type)) {
|
3449
|
+
this.makeSpecialTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
3440
3450
|
}
|
3441
3451
|
// Plant Cell
|
3442
|
-
if (node?.type ===
|
3443
|
-
this.plantCellTemplate(
|
3452
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL && !node?.isGroup) {
|
3453
|
+
this.plantCellTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
3444
3454
|
}
|
3445
3455
|
}
|
3446
3456
|
initDiagram() {
|
@@ -3528,7 +3538,7 @@ class AtoDefaultGojsEditor {
|
|
3528
3538
|
// for water
|
3529
3539
|
const { STORAGE, WATER_TREATMENT, DEMIN_WATER_TREATMENT,
|
3530
3540
|
// RO_WATER_TREATMENT,
|
3531
|
-
PROCESS, WASTEWATER_TREATMENT, DAF_WASTEWATER_TREATMENT, ETP_WASTEWATER_TREATMENT, MBR_WASTEWATER_TREATMENT, ZLD_WASTEWATER_TREATMENT, COOLING_TOWER, BOILER, OTHER, LANDSCAPING_IRRIGATION, } =
|
3541
|
+
PROCESS, WASTEWATER_TREATMENT, DAF_WASTEWATER_TREATMENT, ETP_WASTEWATER_TREATMENT, MBR_WASTEWATER_TREATMENT, ZLD_WASTEWATER_TREATMENT, COOLING_TOWER, BOILER, OTHER, LANDSCAPING_IRRIGATION, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
3532
3542
|
const waterGroups = [
|
3533
3543
|
STORAGE,
|
3534
3544
|
WATER_TREATMENT,
|
@@ -3546,8 +3556,8 @@ class AtoDefaultGojsEditor {
|
|
3546
3556
|
LANDSCAPING_IRRIGATION,
|
3547
3557
|
];
|
3548
3558
|
waterGroups.map((e) => {
|
3549
|
-
if (!!
|
3550
|
-
this.makeGroupTemplate(
|
3559
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
3560
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
3551
3561
|
}
|
3552
3562
|
});
|
3553
3563
|
// electrical
|
@@ -3558,7 +3568,7 @@ class AtoDefaultGojsEditor {
|
|
3558
3568
|
this.initGasGroupTemplate();
|
3559
3569
|
}
|
3560
3570
|
initElectricDiagram() {
|
3561
|
-
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, } =
|
3571
|
+
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;
|
3562
3572
|
const ListItemsCreateEntityTemplate = [
|
3563
3573
|
GRID,
|
3564
3574
|
DIESEL_GENERATORS,
|
@@ -3589,37 +3599,37 @@ class AtoDefaultGojsEditor {
|
|
3589
3599
|
GROUNDING,
|
3590
3600
|
];
|
3591
3601
|
ListItemsCreateEntityTemplate.map((e) => {
|
3592
|
-
if (!!
|
3593
|
-
this.makeEntityTemplateEnergy(
|
3602
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
3603
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
3594
3604
|
}
|
3595
3605
|
});
|
3596
3606
|
}
|
3597
3607
|
initElectricGroupTemplate() {
|
3598
3608
|
const listItems = [
|
3599
|
-
|
3600
|
-
|
3601
|
-
|
3602
|
-
|
3603
|
-
|
3604
|
-
|
3605
|
-
|
3606
|
-
|
3607
|
-
|
3608
|
-
|
3609
|
-
|
3610
|
-
|
3611
|
-
|
3612
|
-
|
3613
|
-
|
3614
|
-
|
3615
|
-
|
3616
|
-
|
3617
|
-
|
3618
|
-
|
3619
|
-
|
3620
|
-
|
3621
|
-
|
3622
|
-
|
3609
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE],
|
3610
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.TRANSFORMERS],
|
3611
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_METERS],
|
3612
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTINGS],
|
3613
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS],
|
3614
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.SWITCH_GEARS],
|
3615
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS],
|
3616
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GROUNDING],
|
3617
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.MOTOR_CONTROLS],
|
3618
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTING_SYSTEMS],
|
3619
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
|
3620
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS],
|
3621
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS],
|
3622
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.OFFICE_EQUIPMENT],
|
3623
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS],
|
3624
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES],
|
3625
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT],
|
3626
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS],
|
3627
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BATTERIES],
|
3628
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS],
|
3629
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE],
|
3630
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE],
|
3631
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE],
|
3632
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE],
|
3623
3633
|
];
|
3624
3634
|
listItems.forEach((e) => {
|
3625
3635
|
this.makeGroupTemplate(e?.icon, e.name);
|
@@ -3627,59 +3637,59 @@ class AtoDefaultGojsEditor {
|
|
3627
3637
|
}
|
3628
3638
|
initFuelGroupTemplate() {
|
3629
3639
|
const listItems = [
|
3630
|
-
|
3631
|
-
|
3632
|
-
|
3633
|
-
|
3634
|
-
|
3635
|
-
|
3636
|
-
|
3637
|
-
|
3638
|
-
|
3639
|
-
|
3640
|
-
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3644
|
-
|
3645
|
-
|
3646
|
-
|
3647
|
-
|
3640
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.DIESEL_FUELS],
|
3641
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GASON_LINES],
|
3642
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BIODIESELS],
|
3643
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.KEROSENSE],
|
3644
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROPANES],
|
3645
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.TANKER_TRUCKS],
|
3646
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE],
|
3647
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_BOILERS],
|
3648
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GENERATORS],
|
3649
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_FURNACES],
|
3650
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_OVENS],
|
3651
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT],
|
3652
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_METERS],
|
3653
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS],
|
3654
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS],
|
3655
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
|
3656
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS],
|
3657
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS],
|
3648
3658
|
];
|
3649
|
-
this.makeGroupTemplate(
|
3650
|
-
this.makeGroupTemplate(
|
3651
|
-
this.makeGroupTemplate(
|
3652
|
-
this.makeGroupTemplate(
|
3659
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
|
3660
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
|
3661
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
|
3662
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
|
3653
3663
|
listItems.forEach((e) => {
|
3654
3664
|
this.makeGroupTemplate(e?.icon, e.name);
|
3655
3665
|
});
|
3656
3666
|
}
|
3657
3667
|
initGasGroupTemplate() {
|
3658
3668
|
const listItems = [
|
3659
|
-
|
3660
|
-
|
3661
|
-
|
3662
|
-
|
3663
|
-
|
3664
|
-
|
3665
|
-
|
3666
|
-
|
3667
|
-
|
3668
|
-
|
3669
|
-
|
3670
|
-
|
3671
|
-
|
3669
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE],
|
3670
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BOILERS_AND_HEATERS],
|
3671
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FURNACES],
|
3672
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_GENERATION],
|
3673
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COGENERATION],
|
3674
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS],
|
3675
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT],
|
3676
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_METERS],
|
3677
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BURNERS],
|
3678
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FLUE_GAS_ANALYZERS],
|
3679
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS],
|
3680
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_STORAGE_TANKS],
|
3681
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS],
|
3672
3682
|
];
|
3673
|
-
this.makeGroupTemplate(
|
3674
|
-
this.makeGroupTemplate(
|
3675
|
-
this.makeGroupTemplate(
|
3676
|
-
this.makeGroupTemplate(
|
3683
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
|
3684
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
|
3685
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
|
3686
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
|
3677
3687
|
listItems.forEach((e) => {
|
3678
3688
|
this.makeGroupTemplate(e?.icon, e.name);
|
3679
3689
|
});
|
3680
3690
|
}
|
3681
3691
|
initGasDiagram() {
|
3682
|
-
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, } =
|
3692
|
+
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;
|
3683
3693
|
const ListItemsCreateEntityTemplate = [
|
3684
3694
|
NATURAL_GAS_PIPELINES,
|
3685
3695
|
LIQUEFIED_NATURAL_GAS,
|
@@ -3700,13 +3710,13 @@ class AtoDefaultGojsEditor {
|
|
3700
3710
|
NATURAL_GAS,
|
3701
3711
|
];
|
3702
3712
|
ListItemsCreateEntityTemplate.map((e) => {
|
3703
|
-
if (!!
|
3704
|
-
this.makeEntityTemplateEnergy(
|
3713
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
3714
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
3705
3715
|
}
|
3706
3716
|
});
|
3707
3717
|
}
|
3708
3718
|
initFuelDiagram() {
|
3709
|
-
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, } =
|
3719
|
+
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;
|
3710
3720
|
const ListItemsCreateEntityTemplate = [
|
3711
3721
|
DIESEL_FUELS,
|
3712
3722
|
GASON_LINES,
|
@@ -3728,22 +3738,22 @@ class AtoDefaultGojsEditor {
|
|
3728
3738
|
FUELS,
|
3729
3739
|
];
|
3730
3740
|
ListItemsCreateEntityTemplate.map((e) => {
|
3731
|
-
if (!!
|
3732
|
-
this.makeEntityTemplateEnergy(
|
3741
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
3742
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
3733
3743
|
}
|
3734
3744
|
});
|
3735
3745
|
}
|
3736
3746
|
initSolarDiagram() {
|
3737
|
-
const { SOLAR_POWER, POWER_CONDITIONING_UNIT, BATTERIES: BATTERY, INVERTERS: INVERTER, } =
|
3747
|
+
const { SOLAR_POWER, POWER_CONDITIONING_UNIT, BATTERIES: BATTERY, INVERTERS: INVERTER, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
3738
3748
|
const ListItemsCreateEntityTemplate = [SOLAR_POWER, POWER_CONDITIONING_UNIT, BATTERY, INVERTER];
|
3739
3749
|
ListItemsCreateEntityTemplate.map((e) => {
|
3740
|
-
if (!!
|
3741
|
-
this.makeEntityTemplateEnergy(
|
3750
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
3751
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
3742
3752
|
}
|
3743
3753
|
});
|
3744
3754
|
}
|
3745
3755
|
initSteamDiagram() {
|
3746
|
-
const { VALUES, STEAM_TRAPS, PRESSURE_REGULATORS, SAFETY_VALUES_AND_EQUIPMENT, CONDENSATE_RETURN_SYSTEM, DEAERATORS, FEEDWATER_PUMPS, BLOWDOWN_TANKS, EXPANSION_TANKS, HEAT_EXCHANGERS, TURBINES, } =
|
3756
|
+
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;
|
3747
3757
|
const ListItemsCreateEntityTemplate = [
|
3748
3758
|
VALUES,
|
3749
3759
|
STEAM_TRAPS,
|
@@ -3758,8 +3768,8 @@ class AtoDefaultGojsEditor {
|
|
3758
3768
|
TURBINES,
|
3759
3769
|
];
|
3760
3770
|
ListItemsCreateEntityTemplate.map((e) => {
|
3761
|
-
if (!!
|
3762
|
-
this.makeEntityTemplateEnergy(
|
3771
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
3772
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
3763
3773
|
}
|
3764
3774
|
});
|
3765
3775
|
}
|
@@ -3771,13 +3781,13 @@ class AtoDefaultGojsEditor {
|
|
3771
3781
|
// line
|
3772
3782
|
elements.push(this.$(go.Shape, {
|
3773
3783
|
isPanelMain: true,
|
3774
|
-
stroke:
|
3775
|
-
strokeWidth:
|
3784
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
3785
|
+
strokeWidth: AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE]?.strokeWidth,
|
3776
3786
|
// strokeWidth: 0,
|
3777
|
-
}, new go.Binding('stroke', 'color'), new go.Binding('selectable', 'selectable'), new go.Binding('strokeWidth', 'type', (x) =>
|
3787
|
+
}, new go.Binding('stroke', 'color'), new go.Binding('selectable', 'selectable'), new go.Binding('strokeWidth', 'type', (x) => AtoGojsEditorModel.LINK_TEMPLATES[x]?.strokeWidth)));
|
3778
3788
|
// animation
|
3779
3789
|
elements.push(this.$(go.Shape, {
|
3780
|
-
...
|
3790
|
+
...AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION]?.animation,
|
3781
3791
|
visible: true,
|
3782
3792
|
fill: 'transparent',
|
3783
3793
|
}));
|
@@ -3819,10 +3829,10 @@ class AtoDefaultGojsEditor {
|
|
3819
3829
|
}, new go.Binding('text', 'textComponent'), new go.Binding('background', 'textComponent', (x) => (x ? 'white' : 'transparent')))));
|
3820
3830
|
// arrow
|
3821
3831
|
elements.push(this.$(go.Shape, // the "from" arrowhead
|
3822
|
-
{ ...
|
3823
|
-
|
3824
|
-
|
3825
|
-
|
3832
|
+
{ ...AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE]?.arrow }, new go.Binding('visible', 'type', (x) => ![
|
3833
|
+
AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION,
|
3834
|
+
AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE,
|
3835
|
+
AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_HIDDEN,
|
3826
3836
|
].includes(x)), new go.Binding('fill', 'color'), new go.Binding('stroke', 'color')));
|
3827
3837
|
// TODO fix link cannot selected inside group template
|
3828
3838
|
this.myDiagram.linkTemplate = this.$(go.Link, go.Link.Orthogonal, {
|
@@ -3835,23 +3845,23 @@ class AtoDefaultGojsEditor {
|
|
3835
3845
|
relinkableFrom: true,
|
3836
3846
|
relinkableTo: true,
|
3837
3847
|
selectable: true,
|
3838
|
-
toShortLength:
|
3848
|
+
toShortLength: AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE].toShortLength, // assume arrowhead at "to" end, need to avoid bad appearance when path is thick
|
3839
3849
|
}, new go.Binding('layerName', '', (data) => {
|
3840
3850
|
return data?.textComponent ? 'Background' : '';
|
3841
|
-
}), new go.Binding('zOrder', 'type', (x) => (x ===
|
3851
|
+
}), 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'),
|
3842
3852
|
// make sure links come in from the proper direction and go out appropriately
|
3843
3853
|
...elements);
|
3844
3854
|
}
|
3845
3855
|
makeValueNodeTemplate(size = { w: 82, h: 36 }) {
|
3846
3856
|
const self = this;
|
3847
3857
|
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', {
|
3848
|
-
fill:
|
3858
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
3849
3859
|
stroke: 'transparent',
|
3850
3860
|
}), this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
|
3851
3861
|
row: 2,
|
3852
3862
|
font: 'bold 14px Arial',
|
3853
3863
|
textAlign: 'center',
|
3854
|
-
stroke:
|
3864
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
3855
3865
|
}, 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) {
|
3856
3866
|
return data.value !== VALUE_NA;
|
3857
3867
|
})),
|
@@ -3861,18 +3871,18 @@ class AtoDefaultGojsEditor {
|
|
3861
3871
|
text: VALUE_NA,
|
3862
3872
|
textAlign: 'center',
|
3863
3873
|
font: 'bold 10pt sans-serif',
|
3864
|
-
stroke:
|
3874
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.SALMON,
|
3865
3875
|
wrap: go.TextBlock.WrapFit,
|
3866
3876
|
editable: false,
|
3867
3877
|
isMultiline: false,
|
3868
3878
|
}, new go.Binding('visible', '', function (data) {
|
3869
3879
|
return data.value === VALUE_NA;
|
3870
3880
|
})))));
|
3871
|
-
this.myDiagram.nodeTemplateMap.set(
|
3881
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_NODE, node);
|
3872
3882
|
}
|
3873
3883
|
makeEmptyNodeTemplate(size = { w: 0, h: 0 }) {
|
3874
3884
|
const node = this.$(go.Node, 'Spot', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify));
|
3875
|
-
this.myDiagram.nodeTemplateMap.set(
|
3885
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY, node);
|
3876
3886
|
}
|
3877
3887
|
makeValueLabelTemplate(size = { w: 82, h: 36 }) {
|
3878
3888
|
const node = this.$(go.Node, 'Auto', {
|
@@ -3884,7 +3894,7 @@ class AtoDefaultGojsEditor {
|
|
3884
3894
|
textAlign: 'center',
|
3885
3895
|
font: 'bold 15px sans-serif',
|
3886
3896
|
wrap: go.TextBlock.WrapFit,
|
3887
|
-
stroke:
|
3897
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
3888
3898
|
minSize: new go.Size(150, 30), // Set the width of the text block
|
3889
3899
|
}, new go.Binding('stroke', 'color'), new go.Binding('text', 'data', (x) => {
|
3890
3900
|
if (typeof x?.quantity !== 'number') {
|
@@ -3903,9 +3913,9 @@ class AtoDefaultGojsEditor {
|
|
3903
3913
|
}
|
3904
3914
|
return retValue;
|
3905
3915
|
}), new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')))));
|
3906
|
-
this.myDiagram.nodeTemplateMap.set(
|
3916
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL, node);
|
3907
3917
|
}
|
3908
|
-
makeTextTemplate(size = { w:
|
3918
|
+
makeTextTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 2 }) {
|
3909
3919
|
const self = this;
|
3910
3920
|
const contextMenu = this.$(go.Adornment, 'Vertical', this.$('ContextMenuButton', this.$(go.TextBlock, 'Option 1'), {
|
3911
3921
|
click: function (e, obj) {
|
@@ -4041,8 +4051,8 @@ class AtoDefaultGojsEditor {
|
|
4041
4051
|
column: 1,
|
4042
4052
|
row: 2,
|
4043
4053
|
}, new go.Binding('width', 'width'), new go.Binding('height', 'height'), this.$(go.Shape, 'RoundedRectangle', {
|
4044
|
-
fill:
|
4045
|
-
stroke:
|
4054
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
4055
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
4046
4056
|
name: 'textNodeShape',
|
4047
4057
|
}, new go.Binding('fill', 'fill'), new go.Binding('stroke', 'stroke')), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', { alignment: go.Spot.Center },
|
4048
4058
|
// Alert
|
@@ -4088,7 +4098,7 @@ class AtoDefaultGojsEditor {
|
|
4088
4098
|
desiredSize: new go.Size(size.w - 8, 18),
|
4089
4099
|
font: 'bold 22px Arial',
|
4090
4100
|
textAlign: 'center',
|
4091
|
-
stroke:
|
4101
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
4092
4102
|
overflow: go.TextBlock.OverflowEllipsis,
|
4093
4103
|
},
|
4094
4104
|
// new go.Binding('editable', 'isEditable'),
|
@@ -4100,7 +4110,7 @@ class AtoDefaultGojsEditor {
|
|
4100
4110
|
}), new go.Binding('stroke', 'color'), new go.Binding('text', '', function (data) {
|
4101
4111
|
return self.getTextDataBox(data);
|
4102
4112
|
}).makeTwoWay(), new go.Binding('visible', '', (data) => !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))));
|
4103
|
-
this.myDiagram.nodeTemplateMap.set(
|
4113
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE, node);
|
4104
4114
|
}
|
4105
4115
|
arrowForPlantCell(size, flowDirection) {
|
4106
4116
|
return this.$(go.Panel, 'Table', {
|
@@ -4127,7 +4137,7 @@ class AtoDefaultGojsEditor {
|
|
4127
4137
|
}
|
4128
4138
|
return `${data?.shortenedNumber}${data?.unitPrefixes ? ' ' + data?.unitPrefixes : ''}`;
|
4129
4139
|
}
|
4130
|
-
makeDataBoxTemplate(size = { w:
|
4140
|
+
makeDataBoxTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
4131
4141
|
const self = this;
|
4132
4142
|
let node = this.$(go.Node, 'Spot', {
|
4133
4143
|
locationSpot: go.Spot.Center,
|
@@ -4158,8 +4168,8 @@ class AtoDefaultGojsEditor {
|
|
4158
4168
|
}
|
4159
4169
|
},
|
4160
4170
|
}, this.$(go.Panel, 'Auto', { row: 0, stretch: go.GraphObject.Horizontal }, this.$(go.Shape, 'Rectangle', {
|
4161
|
-
fill:
|
4162
|
-
stroke:
|
4171
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
4172
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
4163
4173
|
}, new go.Binding('fill', 'color')), this.$(go.TextBlock, {
|
4164
4174
|
row: 0,
|
4165
4175
|
margin: new go.Margin(10, 10, 5, 10),
|
@@ -4169,8 +4179,8 @@ class AtoDefaultGojsEditor {
|
|
4169
4179
|
textAlign: 'center',
|
4170
4180
|
spacingBelow: 5,
|
4171
4181
|
}, new go.Binding('text', 'name').makeTwoWay())), this.$(go.Panel, 'Auto', { row: 1, stretch: go.GraphObject.Horizontal }, this.$(go.Shape, 'Rectangle', {
|
4172
|
-
fill:
|
4173
|
-
stroke:
|
4182
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
4183
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
4174
4184
|
}), this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
|
4175
4185
|
row: 2,
|
4176
4186
|
// editable: true,
|
@@ -4179,7 +4189,7 @@ class AtoDefaultGojsEditor {
|
|
4179
4189
|
margin: new go.Margin(5, 0, 5, 5),
|
4180
4190
|
font: 'bold 12pt Arial',
|
4181
4191
|
textAlign: 'center',
|
4182
|
-
stroke:
|
4192
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
4183
4193
|
}, new go.Binding('editable', 'isEditable'), new go.Binding('text', 'shortenedNumber').makeTwoWay(), new go.Binding('stroke', 'color'), new go.Binding('visible', '', function (data) {
|
4184
4194
|
return data.value !== VALUE_NA;
|
4185
4195
|
})), this.$(go.TextBlock, {
|
@@ -4190,7 +4200,7 @@ class AtoDefaultGojsEditor {
|
|
4190
4200
|
margin: new go.Margin(5, 5, 5, 0),
|
4191
4201
|
font: 'bold 12pt Arial',
|
4192
4202
|
textAlign: 'center',
|
4193
|
-
stroke:
|
4203
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
4194
4204
|
}, new go.Binding('visible', '', function (data) {
|
4195
4205
|
return data.value !== VALUE_NA;
|
4196
4206
|
}), new go.Binding('text', 'unitPrefixes'), new go.Binding('stroke', 'color')),
|
@@ -4200,7 +4210,7 @@ class AtoDefaultGojsEditor {
|
|
4200
4210
|
text: VALUE_NA,
|
4201
4211
|
textAlign: 'center',
|
4202
4212
|
font: 'bold 10pt sans-serif',
|
4203
|
-
stroke:
|
4213
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.SALMON,
|
4204
4214
|
wrap: go.TextBlock.WrapFit,
|
4205
4215
|
editable: false,
|
4206
4216
|
isMultiline: false,
|
@@ -4215,12 +4225,12 @@ class AtoDefaultGojsEditor {
|
|
4215
4225
|
}),
|
4216
4226
|
// four named ports, one on each side:
|
4217
4227
|
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));
|
4218
|
-
this.myDiagram.nodeTemplateMap.set(
|
4228
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX, node);
|
4219
4229
|
}
|
4220
4230
|
showPoint(loc) {
|
4221
4231
|
const docLoc = this.myDiagram.transformDocToView(loc);
|
4222
4232
|
}
|
4223
|
-
makeEntityTemplate(icon, title, size = { w:
|
4233
|
+
makeEntityTemplate(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
4224
4234
|
const self = this;
|
4225
4235
|
let node = this.$(go.Node, 'Spot', {
|
4226
4236
|
locationSpot: go.Spot.Center,
|
@@ -4258,8 +4268,8 @@ class AtoDefaultGojsEditor {
|
|
4258
4268
|
// more
|
4259
4269
|
!this._initialOptions.isReadOnly
|
4260
4270
|
? this.generateActionGroup([
|
4261
|
-
|
4262
|
-
|
4271
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT].name,
|
4272
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER]
|
4263
4273
|
.name,
|
4264
4274
|
].includes(title)
|
4265
4275
|
? [
|
@@ -4280,7 +4290,7 @@ class AtoDefaultGojsEditor {
|
|
4280
4290
|
// new go.Binding('location', 'loc', go.Point.parse),
|
4281
4291
|
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', {
|
4282
4292
|
fill: 'white',
|
4283
|
-
stroke:
|
4293
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
4284
4294
|
strokeWidth: 1,
|
4285
4295
|
// strokeDashArray: [5, 5],
|
4286
4296
|
}), this.$(go.Panel, 'Table', this.$(go.Picture, icon, {
|
@@ -4305,7 +4315,7 @@ class AtoDefaultGojsEditor {
|
|
4305
4315
|
overflow: go.TextBlock.OverflowEllipsis,
|
4306
4316
|
toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))),
|
4307
4317
|
}, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('editable', '', (data) => {
|
4308
|
-
return !(
|
4318
|
+
return !(AtoGojsEditorModel.TYPE_COMPONENT_WATER?.includes(data?.systemType) &&
|
4309
4319
|
data?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
|
4310
4320
|
data?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL);
|
4311
4321
|
})))), this.$(go.Panel, 'Vertical', {
|
@@ -4317,7 +4327,7 @@ class AtoDefaultGojsEditor {
|
|
4317
4327
|
}), 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));
|
4318
4328
|
this.myDiagram.nodeTemplateMap.set(title, node);
|
4319
4329
|
}
|
4320
|
-
makeEntityTemplateEnergy(icon, title, size = { w:
|
4330
|
+
makeEntityTemplateEnergy(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
4321
4331
|
const self = this;
|
4322
4332
|
let node = this.$(go.Node, 'Spot', {
|
4323
4333
|
locationSpot: go.Spot.Center,
|
@@ -4355,7 +4365,7 @@ class AtoDefaultGojsEditor {
|
|
4355
4365
|
]))),
|
4356
4366
|
}, 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', {
|
4357
4367
|
fill: 'white',
|
4358
|
-
stroke:
|
4368
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
4359
4369
|
// strokeDashArray: [5, 5],
|
4360
4370
|
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
|
4361
4371
|
row: 0,
|
@@ -4398,7 +4408,7 @@ class AtoDefaultGojsEditor {
|
|
4398
4408
|
this.myDiagram.nodeTemplateMap.set(title, node);
|
4399
4409
|
}
|
4400
4410
|
// Plant Cell
|
4401
|
-
plantCellTemplate(icon, title, size = { w: 260, h:
|
4411
|
+
plantCellTemplate(icon, title, size = { w: 260, h: AtoGojsEditorModel.PLANT_CELL_HEIGHT }) {
|
4402
4412
|
const self = this;
|
4403
4413
|
let node = this.$(go.Group, 'Spot', {
|
4404
4414
|
locationSpot: go.Spot.Center,
|
@@ -4475,7 +4485,7 @@ class AtoDefaultGojsEditor {
|
|
4475
4485
|
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h },
|
4476
4486
|
// this.$(go.Shape, 'RoundedRectangle', {
|
4477
4487
|
// fill: 'white',
|
4478
|
-
// stroke:
|
4488
|
+
// stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
4479
4489
|
// // strokeDashArray: [5, 5],
|
4480
4490
|
// }),
|
4481
4491
|
// this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0), visible: false }),
|
@@ -4484,7 +4494,7 @@ class AtoDefaultGojsEditor {
|
|
4484
4494
|
margin: new go.Margin(0, 50, 0, 50),
|
4485
4495
|
}, this.$(go.Shape, 'RoundedRectangle', {
|
4486
4496
|
fill: 'white',
|
4487
|
-
stroke:
|
4497
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
4488
4498
|
strokeDashArray: [5, 5],
|
4489
4499
|
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
|
4490
4500
|
row: 0,
|
@@ -4502,7 +4512,7 @@ class AtoDefaultGojsEditor {
|
|
4502
4512
|
alignment: go.Spot.Center,
|
4503
4513
|
desiredSize: new go.Size(size.w - 20, size.h - 65),
|
4504
4514
|
imageStretch: go.GraphObject.Uniform,
|
4505
|
-
}, new go.Binding('source', 'pathImage', (x) => x ??
|
4515
|
+
}, new go.Binding('source', 'pathImage', (x) => x ?? AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL].icon)), this.$(go.TextBlock, {
|
4506
4516
|
row: 2,
|
4507
4517
|
margin: new go.Margin(10, 0, 3, 0),
|
4508
4518
|
editable: true,
|
@@ -4524,7 +4534,7 @@ class AtoDefaultGojsEditor {
|
|
4524
4534
|
}));
|
4525
4535
|
this.myDiagram.nodeTemplateMap.set(title, node);
|
4526
4536
|
}
|
4527
|
-
makeEntityWithdrawOrDischarge(icon, title, size = { w:
|
4537
|
+
makeEntityWithdrawOrDischarge(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
4528
4538
|
const self = this;
|
4529
4539
|
let node = this.$(go.Node, 'Spot', {
|
4530
4540
|
locationSpot: go.Spot.Center,
|
@@ -4553,7 +4563,7 @@ class AtoDefaultGojsEditor {
|
|
4553
4563
|
// new go.Binding('location', 'loc', go.Point.parse),
|
4554
4564
|
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', {
|
4555
4565
|
fill: 'white',
|
4556
|
-
stroke:
|
4566
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
4557
4567
|
// strokeDashArray: [5, 5],
|
4558
4568
|
}), this.$(go.Panel, 'Table',
|
4559
4569
|
// this.$(go.TextBlock, title, {
|
@@ -4667,8 +4677,8 @@ class AtoDefaultGojsEditor {
|
|
4667
4677
|
return !!obj.part?.['ob']?.id;
|
4668
4678
|
}
|
4669
4679
|
if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME &&
|
4670
|
-
obj.part?.['ob']?.type !==
|
4671
|
-
|
4680
|
+
obj.part?.['ob']?.type !== AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE &&
|
4681
|
+
AtoGojsEditorModel.TYPE_COMPONENT_WATER?.includes(obj.part?.['ob']?.systemType) &&
|
4672
4682
|
obj.part?.['ob']?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
|
4673
4683
|
obj.part?.['ob']?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL) {
|
4674
4684
|
return false;
|
@@ -4716,7 +4726,7 @@ class AtoDefaultGojsEditor {
|
|
4716
4726
|
break;
|
4717
4727
|
case AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME:
|
4718
4728
|
onClickFn = () => {
|
4719
|
-
if (obj.part?.data?.type ===
|
4729
|
+
if (obj.part?.data?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
|
4720
4730
|
self.onRename.emit({
|
4721
4731
|
left: e?.['Wr']?.x - 50,
|
4722
4732
|
top: e?.['Wr']?.y,
|
@@ -4741,9 +4751,9 @@ class AtoDefaultGojsEditor {
|
|
4741
4751
|
self.clickNewNode(e, _.merge(obj, {
|
4742
4752
|
actionMove: self.dragNewNode,
|
4743
4753
|
_dragData: {
|
4744
|
-
type:
|
4745
|
-
name: `${
|
4746
|
-
color:
|
4754
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
|
4755
|
+
name: `${AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP.DATA_BOX}_${moment().valueOf()}`,
|
4756
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
4747
4757
|
movable: self.plantSatus === ATO_EPlantType.BASIC_PLANT ? false : null,
|
4748
4758
|
isNotAllowConnect: self.plantSatus === ATO_EPlantType.BASIC_PLANT ? true : null,
|
4749
4759
|
},
|
@@ -4799,8 +4809,8 @@ class AtoDefaultGojsEditor {
|
|
4799
4809
|
isEditable: true,
|
4800
4810
|
shortenedNumber: 0,
|
4801
4811
|
isFormat: false,
|
4802
|
-
dataCollectionMethod:
|
4803
|
-
color:
|
4812
|
+
dataCollectionMethod: AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL,
|
4813
|
+
color: AtoGojsEditorModel.COLOR_COLLECTION_METHOD[AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL].color,
|
4804
4814
|
group: fromnode?.ob?.group,
|
4805
4815
|
value: 0,
|
4806
4816
|
});
|
@@ -5064,22 +5074,22 @@ class AtoDefaultGojsEditor {
|
|
5064
5074
|
// selectable: true,
|
5065
5075
|
dragComputation: (node, pt, gridpt) => {
|
5066
5076
|
pt.x =
|
5067
|
-
Math.round(pt.x /
|
5068
|
-
|
5077
|
+
Math.round(pt.x / AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH) *
|
5078
|
+
AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH;
|
5069
5079
|
pt.y =
|
5070
|
-
Math.round(pt.y /
|
5071
|
-
|
5080
|
+
Math.round(pt.y / AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT) *
|
5081
|
+
AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT;
|
5072
5082
|
return pt;
|
5073
5083
|
},
|
5074
5084
|
}, {
|
5075
|
-
// minSize: new go.Size(
|
5085
|
+
// minSize: new go.Size(AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH, AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT),
|
5076
5086
|
minSize: new go.Size(1, 1),
|
5077
5087
|
maxSize: new go.Size(1, 1),
|
5078
5088
|
// minSize: new go.Size(100, 100),
|
5079
5089
|
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
|
5080
5090
|
fill: 'transparent',
|
5081
5091
|
stroke: 'transparent',
|
5082
|
-
// stroke:
|
5092
|
+
// stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
5083
5093
|
strokeWidth: 2,
|
5084
5094
|
// strokeDashArray: [5, 5],
|
5085
5095
|
})));
|
@@ -5118,7 +5128,7 @@ class AtoDefaultGojsEditor {
|
|
5118
5128
|
// new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
5119
5129
|
this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
|
5120
5130
|
fill: 'transparent',
|
5121
|
-
stroke:
|
5131
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
5122
5132
|
strokeWidth: 2,
|
5123
5133
|
// strokeDashArray: [5, 5],
|
5124
5134
|
}), this.$(go.Placeholder, { padding: new go.Margin(60, 20, 20, 20) })),
|
@@ -5211,15 +5221,15 @@ class AtoDefaultGojsEditor {
|
|
5211
5221
|
}, new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Horizontal', {
|
5212
5222
|
row: 0,
|
5213
5223
|
alignment: go.Spot.Left,
|
5214
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Picture,
|
5224
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Picture, AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH, {
|
5215
5225
|
alignment: go.Spot.Center,
|
5216
5226
|
// maxSize: new go.Size(500, 500),
|
5217
5227
|
// imageStretch: go.GraphObject.Uniform,
|
5218
5228
|
// margin: new go.Margin(130, 0, 0, 0),
|
5219
5229
|
}, new go.Binding('margin', 'margin'), new go.Binding('width', 'width'), new go.Binding('height', 'height'), new go.Binding('source', '', (data) => {
|
5220
|
-
return data?.source ? data?.source :
|
5230
|
+
return data?.source ? data?.source : AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH;
|
5221
5231
|
}))));
|
5222
|
-
this.myDiagram.nodeTemplateMap.set(
|
5232
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE, node);
|
5223
5233
|
}
|
5224
5234
|
makeParamTable() {
|
5225
5235
|
const self = this;
|
@@ -5305,7 +5315,8 @@ class AtoDefaultGojsEditor {
|
|
5305
5315
|
defaultSeparatorPadding: new go.Margin(0, 0, 0, 0),
|
5306
5316
|
stretch: go.GraphObject.Fill,
|
5307
5317
|
}, new go.Binding('minSize', '', (data, panel) => {
|
5308
|
-
return panel.part?.data?.minSizeValue;
|
5318
|
+
// return panel.part?.data?.minSizeValue;
|
5319
|
+
return new go.Size(panel.part?.data?.minSizeValue?.width, NaN);
|
5309
5320
|
}), this.$(go.TextBlock, '', {
|
5310
5321
|
column: 0,
|
5311
5322
|
margin: 0,
|
@@ -5369,7 +5380,7 @@ class AtoDefaultGojsEditor {
|
|
5369
5380
|
return data?.isEditable === false ? 0.6 : 1;
|
5370
5381
|
})))),
|
5371
5382
|
})));
|
5372
|
-
this.myDiagram.nodeTemplateMap.set(
|
5383
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, node);
|
5373
5384
|
}
|
5374
5385
|
makeMassBalance() {
|
5375
5386
|
const self = this;
|
@@ -5386,11 +5397,11 @@ class AtoDefaultGojsEditor {
|
|
5386
5397
|
margin: new go.Margin(0, 5, 0, 0),
|
5387
5398
|
text: 'Mass Balance:',
|
5388
5399
|
}, new go.Binding('font', 'font')), this.$(go.TextBlock, '', {
|
5389
|
-
stroke:
|
5400
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.ALIZARIN,
|
5390
5401
|
}, new go.Binding('font', 'font'), new go.Binding('stroke', 'colorValue'), new go.Binding('text', '', (data, panel) => {
|
5391
5402
|
return data?.value;
|
5392
5403
|
}))));
|
5393
|
-
this.myDiagram.nodeTemplateMap.set(
|
5404
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE, node);
|
5394
5405
|
}
|
5395
5406
|
makeGroupROPlantTemplate(icon, title, size = { w: 80, h: 80 }) {
|
5396
5407
|
let node = this.$(go.Group, 'Spot', {
|
@@ -5403,7 +5414,7 @@ class AtoDefaultGojsEditor {
|
|
5403
5414
|
}, this.$(go.Shape, 'RoundedRectangle', {
|
5404
5415
|
name: 'SHAPE_KEY',
|
5405
5416
|
fill: '#FCFCFD',
|
5406
|
-
stroke:
|
5417
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
5407
5418
|
strokeWidth: 2,
|
5408
5419
|
// strokeDashArray: [5, 5],
|
5409
5420
|
}), this.$(go.Placeholder, { padding: new go.Margin(15, 0, 0, 0) })), this.$(go.Picture, RO_LINE_DIRTY, {
|
@@ -5463,7 +5474,7 @@ class AtoDefaultGojsEditor {
|
|
5463
5474
|
}, this.$(go.Shape, 'RoundedRectangle', {
|
5464
5475
|
name: 'SHAPE_KEY',
|
5465
5476
|
fill: '#FCFCFD',
|
5466
|
-
stroke:
|
5477
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
5467
5478
|
strokeWidth: 2,
|
5468
5479
|
}), 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', {
|
5469
5480
|
width: 0,
|
@@ -5506,7 +5517,7 @@ class AtoDefaultGojsEditor {
|
|
5506
5517
|
}, this.$(go.Shape, 'RoundedRectangle', {
|
5507
5518
|
name: 'SHAPE_KEY',
|
5508
5519
|
fill: '#FCFCFD',
|
5509
|
-
stroke:
|
5520
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
5510
5521
|
strokeWidth: 2,
|
5511
5522
|
strokeDashArray: [5, 5],
|
5512
5523
|
}), this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })), this.$(go.Panel, 'Table', {
|
@@ -5623,16 +5634,16 @@ class AtoDefaultGojsEditor {
|
|
5623
5634
|
// self.onHoverInfoButton.emit(null);
|
5624
5635
|
// // let shape = (node as any)?.findObject('SHAPE_KEY');
|
5625
5636
|
// // if (shape) {
|
5626
|
-
// // shape.stroke =
|
5637
|
+
// // shape.stroke = AtoGojsEditorModel.ENUM_COLORS.WHITE;
|
5627
5638
|
// // }
|
5628
5639
|
// },
|
5629
5640
|
}, new go.Binding('layout', '', function (data, node) {
|
5630
|
-
// return data?.layoutValue ===
|
5641
|
+
// return data?.layoutValue === AtoGojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
|
5631
5642
|
// ? self.$(go.LayeredDigraphLayout, { direction: 0 })
|
5632
5643
|
// : node?.layout;
|
5633
5644
|
if (data?.layoutValue !== data?.layoutValueClone) {
|
5634
5645
|
data.layoutValueClone = data?.layoutValue;
|
5635
|
-
return data?.layoutValue ===
|
5646
|
+
return data?.layoutValue === AtoGojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
|
5636
5647
|
? self.$(go.LayeredDigraphLayout, { direction: 0 })
|
5637
5648
|
: self.$(go.Layout);
|
5638
5649
|
}
|
@@ -5666,7 +5677,7 @@ class AtoDefaultGojsEditor {
|
|
5666
5677
|
}, this.$(go.Shape, 'RoundedRectangle', {
|
5667
5678
|
name: 'SHAPE_KEY',
|
5668
5679
|
fill: 'transparent',
|
5669
|
-
stroke:
|
5680
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
5670
5681
|
strokeWidth: 2,
|
5671
5682
|
strokeDashArray: [5, 5],
|
5672
5683
|
}), this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })));
|
@@ -5700,8 +5711,8 @@ class AtoDefaultGojsEditor {
|
|
5700
5711
|
// },
|
5701
5712
|
// this.$(go.Shape, 'RoundedRectangle', {
|
5702
5713
|
// fill: 'transparent',
|
5703
|
-
// // stroke:
|
5704
|
-
// stroke:
|
5714
|
+
// // stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
5715
|
+
// stroke: AtoGojsEditorModel.ENUM_COLORS.WHITE,
|
5705
5716
|
// strokeWidth: 2,
|
5706
5717
|
// strokeDashArray: [5, 5],
|
5707
5718
|
// }),
|
@@ -5722,8 +5733,8 @@ class AtoDefaultGojsEditor {
|
|
5722
5733
|
padding: padding ?? new go.Margin(0, 0, 0, 0),
|
5723
5734
|
}, this.$(go.Shape, 'RoundedRectangle', {
|
5724
5735
|
fill: 'transparent',
|
5725
|
-
stroke:
|
5726
|
-
// stroke:
|
5736
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.WHITE,
|
5737
|
+
// stroke: AtoGojsEditorModel.ENUM_COLORS.ALIZARIN,
|
5727
5738
|
strokeWidth: 2,
|
5728
5739
|
// strokeDashArray: [5, 5],
|
5729
5740
|
}), this.$(go.Placeholder, {
|
@@ -5731,7 +5742,7 @@ class AtoDefaultGojsEditor {
|
|
5731
5742
|
})));
|
5732
5743
|
this.myDiagram.groupTemplateMap.set(title, node);
|
5733
5744
|
}
|
5734
|
-
makeGroupZoneTemplate(size = { w:
|
5745
|
+
makeGroupZoneTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 14, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
5735
5746
|
const self = this;
|
5736
5747
|
let node = this.$(go.Group, 'Vertical', {
|
5737
5748
|
layout: this.$(go.GridLayout, { wrappingColumn: 1, spacing: new go.Size(0, 0) }),
|
@@ -5763,9 +5774,9 @@ class AtoDefaultGojsEditor {
|
|
5763
5774
|
background: 'white',
|
5764
5775
|
}, this.$('Button', {
|
5765
5776
|
_dragData: {
|
5766
|
-
type:
|
5777
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
|
5767
5778
|
name: 0,
|
5768
|
-
color:
|
5779
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
5769
5780
|
},
|
5770
5781
|
click: self.addItemOnGroupZone,
|
5771
5782
|
'ButtonBorder.strokeWidth': 0,
|
@@ -5786,7 +5797,7 @@ class AtoDefaultGojsEditor {
|
|
5786
5797
|
]))),
|
5787
5798
|
}, this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
|
5788
5799
|
fill: 'transparent',
|
5789
|
-
stroke:
|
5800
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
5790
5801
|
strokeWidth: 2,
|
5791
5802
|
strokeDashArray: [5, 5],
|
5792
5803
|
maxSize: new go.Size(size.w, NaN),
|
@@ -5798,7 +5809,7 @@ class AtoDefaultGojsEditor {
|
|
5798
5809
|
margin: new go.Margin(5, 0, 10, 0),
|
5799
5810
|
editable: true,
|
5800
5811
|
desiredSize: new go.Size(size.w - 20, 25),
|
5801
|
-
stroke:
|
5812
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
|
5802
5813
|
font: 'bold 16px Arial',
|
5803
5814
|
textAlign: 'center',
|
5804
5815
|
wrap: go.TextBlock.None,
|
@@ -5809,9 +5820,9 @@ class AtoDefaultGojsEditor {
|
|
5809
5820
|
}, new go.Binding('text', 'name').makeTwoWay()), this.$(go.Placeholder, 'Vertical', {
|
5810
5821
|
row: 1,
|
5811
5822
|
})), 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));
|
5812
|
-
this.myDiagram.groupTemplateMap.set(
|
5823
|
+
this.myDiagram.groupTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.ZONE, node);
|
5813
5824
|
}
|
5814
|
-
makeZoneItemTemplate(size = { w:
|
5825
|
+
makeZoneItemTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 12, h: AtoGojsEditorModel.GRID_SIZE * 2 }) {
|
5815
5826
|
const self = this;
|
5816
5827
|
const node = this.$(go.Node, 'Auto',
|
5817
5828
|
// {
|
@@ -5846,15 +5857,15 @@ class AtoDefaultGojsEditor {
|
|
5846
5857
|
width: size.w,
|
5847
5858
|
height: size.h,
|
5848
5859
|
}, this.$(go.Shape, 'Rectangle', {
|
5849
|
-
fill:
|
5850
|
-
stroke:
|
5860
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
5861
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
5851
5862
|
}), this.$(go.Panel, 'Vertical', this.$(go.TextBlock, {
|
5852
5863
|
editable: true,
|
5853
5864
|
row: 2,
|
5854
5865
|
margin: new go.Margin(10, 0, 5, 0),
|
5855
5866
|
font: 'bold 12px Arial',
|
5856
5867
|
textAlign: 'center',
|
5857
|
-
stroke:
|
5868
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
|
5858
5869
|
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
5859
5870
|
margin: 4,
|
5860
5871
|
}, new go.Binding('text', 'name').makeTwoWay())),
|
@@ -5864,7 +5875,7 @@ class AtoDefaultGojsEditor {
|
|
5864
5875
|
margin: new go.Margin(0, 5, 10, 0),
|
5865
5876
|
textAlign: 'center',
|
5866
5877
|
font: '12px sans-serif',
|
5867
|
-
stroke:
|
5878
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
|
5868
5879
|
wrap: go.TextBlock.WrapFit,
|
5869
5880
|
editable: true,
|
5870
5881
|
isMultiline: false,
|
@@ -5877,14 +5888,14 @@ class AtoDefaultGojsEditor {
|
|
5877
5888
|
margin: new go.Margin(0, 5, 10, 0),
|
5878
5889
|
textAlign: 'center',
|
5879
5890
|
font: '12px sans-serif',
|
5880
|
-
stroke:
|
5891
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
5881
5892
|
wrap: go.TextBlock.WrapFit,
|
5882
5893
|
text: '< ',
|
5883
5894
|
}, new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')), this.$(go.TextBlock, {
|
5884
5895
|
margin: new go.Margin(0, 5, 10, 0),
|
5885
5896
|
textAlign: 'center',
|
5886
5897
|
font: '12px sans-serif',
|
5887
|
-
stroke:
|
5898
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
5888
5899
|
wrap: go.TextBlock.WrapFit,
|
5889
5900
|
}, new go.Binding('text', 'data', (x) => {
|
5890
5901
|
if (typeof x?.quantity !== 'number') {
|
@@ -5899,16 +5910,16 @@ class AtoDefaultGojsEditor {
|
|
5899
5910
|
margin: new go.Margin(0, 5, 10, 0),
|
5900
5911
|
textAlign: 'center',
|
5901
5912
|
font: '12px sans-serif',
|
5902
|
-
stroke:
|
5913
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
5903
5914
|
wrap: go.TextBlock.WrapFit,
|
5904
5915
|
text: ' >',
|
5905
5916
|
}, new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number'))))));
|
5906
|
-
this.myDiagram.nodeTemplateMap.set(
|
5917
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM, node);
|
5907
5918
|
}
|
5908
|
-
makeSpecialTemplate(icon, title, size = { w:
|
5919
|
+
makeSpecialTemplate(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
5909
5920
|
let node = null;
|
5910
5921
|
switch (title) {
|
5911
|
-
case
|
5922
|
+
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS:
|
5912
5923
|
node = this.$(go.Node, 'Spot',
|
5913
5924
|
// {
|
5914
5925
|
// fromSpot: go.Spot.Right, // coming out from middle-right
|
@@ -5930,7 +5941,7 @@ class AtoDefaultGojsEditor {
|
|
5930
5941
|
stroke: '#2D3B77',
|
5931
5942
|
strokeWidth: 2,
|
5932
5943
|
// strokeDashArray: [5, 5],
|
5933
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock,
|
5944
|
+
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS, {
|
5934
5945
|
row: 0,
|
5935
5946
|
margin: new go.Margin(3, 3, 10, 3),
|
5936
5947
|
maxSize: new go.Size(size.w - 20, NaN),
|
@@ -5953,7 +5964,7 @@ class AtoDefaultGojsEditor {
|
|
5953
5964
|
// four named ports, one on each side:
|
5954
5965
|
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));
|
5955
5966
|
break;
|
5956
|
-
case
|
5967
|
+
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORAGE:
|
5957
5968
|
node = this.$(go.Node, 'Spot', {
|
5958
5969
|
click: (e, obj) => {
|
5959
5970
|
if (obj?.data?.onSelected) {
|
@@ -5970,7 +5981,7 @@ class AtoDefaultGojsEditor {
|
|
5970
5981
|
stroke: '#2D3B77',
|
5971
5982
|
strokeWidth: 2,
|
5972
5983
|
// strokeDashArray: [5, 5],
|
5973
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock,
|
5984
|
+
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE, {
|
5974
5985
|
row: 0,
|
5975
5986
|
margin: new go.Margin(3, 3, 10, 3),
|
5976
5987
|
maxSize: new go.Size(size.w - 20, NaN),
|
@@ -5994,7 +6005,7 @@ class AtoDefaultGojsEditor {
|
|
5994
6005
|
// four named ports, one on each side:
|
5995
6006
|
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));
|
5996
6007
|
break;
|
5997
|
-
case
|
6008
|
+
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE:
|
5998
6009
|
node = this.$(go.Node, 'Spot', {
|
5999
6010
|
click: (e, obj) => {
|
6000
6011
|
if (obj?.data?.onSelected) {
|
@@ -6026,7 +6037,7 @@ class AtoDefaultGojsEditor {
|
|
6026
6037
|
imageStretch: go.GraphObject.Uniform,
|
6027
6038
|
}))));
|
6028
6039
|
break;
|
6029
|
-
case
|
6040
|
+
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE:
|
6030
6041
|
node = this.$(go.Node, 'Spot', {
|
6031
6042
|
click: (e, obj) => {
|
6032
6043
|
if (obj?.data?.onSelected) {
|
@@ -6058,7 +6069,7 @@ class AtoDefaultGojsEditor {
|
|
6058
6069
|
imageStretch: go.GraphObject.Uniform,
|
6059
6070
|
}))));
|
6060
6071
|
break;
|
6061
|
-
case
|
6072
|
+
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER:
|
6062
6073
|
node = this.$(go.Node, 'Spot', {
|
6063
6074
|
click: (e, obj) => {
|
6064
6075
|
if (obj?.data?.onSelected) {
|
@@ -6393,7 +6404,7 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
6393
6404
|
});
|
6394
6405
|
}
|
6395
6406
|
// setTimeout(() => {
|
6396
|
-
this.editor = new
|
6407
|
+
this.editor = new AtoGojsEditorModel({
|
6397
6408
|
class: 'go.GraphLinksModel',
|
6398
6409
|
nodeCategoryProperty: 'type',
|
6399
6410
|
...this.data,
|
@@ -6404,10 +6415,10 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
6404
6415
|
}
|
6405
6416
|
}
|
6406
6417
|
AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
6407
|
-
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: "
|
6418
|
+
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: [""] });
|
6408
6419
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
|
6409
6420
|
type: Component,
|
6410
|
-
args: [{ selector: 'ato-flow-diagram-lib', template: "
|
6421
|
+
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" }]
|
6411
6422
|
}], ctorParameters: function () { return []; }, propDecorators: { myDiagramDivTemp: [{
|
6412
6423
|
type: ViewChild,
|
6413
6424
|
args: ['myDiagramDivTemp']
|
@@ -6419,24 +6430,1366 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
6419
6430
|
type: Input
|
6420
6431
|
}] } });
|
6421
6432
|
|
6433
|
+
var ENUM_ASSET_PARAMETERS;
|
6434
|
+
(function (ENUM_ASSET_PARAMETERS) {
|
6435
|
+
ENUM_ASSET_PARAMETERS["FEED_FLOW_RATE"] = "Feed Flow Rate";
|
6436
|
+
ENUM_ASSET_PARAMETERS["FEED_CONDUCTIVITY"] = "Feed Conductivity";
|
6437
|
+
ENUM_ASSET_PARAMETERS["FEED_TEMPERATURE"] = "Feed Temperature";
|
6438
|
+
ENUM_ASSET_PARAMETERS["PRIMARY_PRESSURE"] = "Primary Pressure";
|
6439
|
+
ENUM_ASSET_PARAMETERS["REJECTION_RATE_SALT_PASSAGE"] = "Rejection Rate/Salt Passage";
|
6440
|
+
ENUM_ASSET_PARAMETERS["PRESSURE_DROP"] = "Pressure Drop";
|
6441
|
+
ENUM_ASSET_PARAMETERS["SYSTEM_RECOVERY_RATE"] = "System Recovery Rate";
|
6442
|
+
ENUM_ASSET_PARAMETERS["PERMEATE_FLOW_RATE"] = "Permeate Flow Rate";
|
6443
|
+
ENUM_ASSET_PARAMETERS["PERMEATE_CONDUCTIVITY"] = "Permeate Conductivity";
|
6444
|
+
ENUM_ASSET_PARAMETERS["PERMEATE_PRESSURE"] = "Permeate Pressure";
|
6445
|
+
ENUM_ASSET_PARAMETERS["CONCENTRATE_FLOW_RATE"] = "Concentrate Flow Rate";
|
6446
|
+
ENUM_ASSET_PARAMETERS["CONCENTRATE_PRESSURE"] = "Stage2 Concentrate Pressure";
|
6447
|
+
ENUM_ASSET_PARAMETERS["CONCENTRATE_CONDUCTIVITY"] = "Concentrate Conductivity";
|
6448
|
+
// Makeup Water
|
6449
|
+
ENUM_ASSET_PARAMETERS["MAKEUP_WATER_FLOW_RATE"] = "MakeupWaterFlowRate";
|
6450
|
+
ENUM_ASSET_PARAMETERS["MAKEUP_WATER_FLOW"] = "MakeupWaterFlow";
|
6451
|
+
ENUM_ASSET_PARAMETERS["MAKEUP_WATER_CONDUCTIVITY"] = "MakeupWaterConductivity";
|
6452
|
+
ENUM_ASSET_PARAMETERS["MAKEUP_WATER_PH"] = "MakeupWaterpH";
|
6453
|
+
ENUM_ASSET_PARAMETERS["MAKEUP_WATER_CALCIUM"] = "MakeupWaterCalcium";
|
6454
|
+
ENUM_ASSET_PARAMETERS["MAKEUP_WATER_TOTAL_IRON"] = "MakeupWaterTotalIron";
|
6455
|
+
// Evaporation Loss
|
6456
|
+
ENUM_ASSET_PARAMETERS["EVAPORATION_LOSS_FLOW_RATE"] = "EvaporationLossFlowRate";
|
6457
|
+
ENUM_ASSET_PARAMETERS["EVAPORATION_LOSS_FLOW"] = "EvaporationLossFlow";
|
6458
|
+
// Blowndown Water
|
6459
|
+
ENUM_ASSET_PARAMETERS["BLOWDOWN_WATER_FLOW_RATE"] = "BlowdownWaterFlowRate";
|
6460
|
+
ENUM_ASSET_PARAMETERS["BLOWDOWN_WATER_FLOW"] = "BlowdownWaterFlow";
|
6461
|
+
// Warmer Water
|
6462
|
+
ENUM_ASSET_PARAMETERS["WARMER_WATER_FLOW_RATE"] = "WarmerWaterFlowRate";
|
6463
|
+
ENUM_ASSET_PARAMETERS["WARMER_WATER_FLOW"] = "WarmerWaterFlow";
|
6464
|
+
// Cooling Tower Analysis
|
6465
|
+
ENUM_ASSET_PARAMETERS["ANALYSIS_CONDUCTIVITY"] = "AnalysisConductivity";
|
6466
|
+
ENUM_ASSET_PARAMETERS["ANALYSIS_PH"] = "AnalysispH";
|
6467
|
+
ENUM_ASSET_PARAMETERS["ANALYSIS_CALCIUM"] = "AnalysisCalcium";
|
6468
|
+
ENUM_ASSET_PARAMETERS["ANALYSIS_TOTAL_IRON"] = "AnalysisTotalIron";
|
6469
|
+
// Cooling Tower Chemistry
|
6470
|
+
ENUM_ASSET_PARAMETERS["CHEMISTRY_PHOSPHATE"] = "ChemistryPhosphate";
|
6471
|
+
ENUM_ASSET_PARAMETERS["CHEMISTRY_CHLORINE"] = "ChemistryChlorine";
|
6472
|
+
ENUM_ASSET_PARAMETERS["CHEMISTRY_STP_RESIDUAL"] = "ChemistrySTPResidual";
|
6473
|
+
ENUM_ASSET_PARAMETERS["CHEMISTRY_CS_CORROSION"] = "ChemistryCSCorrosion";
|
6474
|
+
})(ENUM_ASSET_PARAMETERS || (ENUM_ASSET_PARAMETERS = {}));
|
6475
|
+
var WATER_SYSTEMS_NAME;
|
6476
|
+
(function (WATER_SYSTEMS_NAME) {
|
6477
|
+
WATER_SYSTEMS_NAME["EVAPORATION_LOSS"] = "Evaporation Loss";
|
6478
|
+
WATER_SYSTEMS_NAME["MAKEUP_WATER"] = "Makeup Water";
|
6479
|
+
WATER_SYSTEMS_NAME["WARMER_WATER"] = "Warmer Water (Recirculation)";
|
6480
|
+
WATER_SYSTEMS_NAME["BLOWDOWN_WATER"] = "Blowdown Water";
|
6481
|
+
WATER_SYSTEMS_NAME["COOLING_TOWER_ANALYSIS"] = "Cooling Water Analysis";
|
6482
|
+
WATER_SYSTEMS_NAME["COOLING_WATER_CHEMISTRY"] = "Cooling Water Chemistry";
|
6483
|
+
})(WATER_SYSTEMS_NAME || (WATER_SYSTEMS_NAME = {}));
|
6484
|
+
const DATA_ASSET_PARAMETER_FIELDS = {
|
6485
|
+
[ENUM_ASSET_PARAMETERS.FEED_FLOW_RATE]: {
|
6486
|
+
name: ENUM_ASSET_PARAMETERS.FEED_FLOW_RATE,
|
6487
|
+
key: ENUM_ASSET_PARAMETERS.FEED_FLOW_RATE,
|
6488
|
+
},
|
6489
|
+
[ENUM_ASSET_PARAMETERS.FEED_CONDUCTIVITY]: {
|
6490
|
+
name: ENUM_ASSET_PARAMETERS.FEED_CONDUCTIVITY,
|
6491
|
+
key: ENUM_ASSET_PARAMETERS.FEED_CONDUCTIVITY,
|
6492
|
+
},
|
6493
|
+
[ENUM_ASSET_PARAMETERS.FEED_TEMPERATURE]: {
|
6494
|
+
name: ENUM_ASSET_PARAMETERS.FEED_TEMPERATURE,
|
6495
|
+
key: ENUM_ASSET_PARAMETERS.FEED_TEMPERATURE,
|
6496
|
+
},
|
6497
|
+
[ENUM_ASSET_PARAMETERS.PRIMARY_PRESSURE]: {
|
6498
|
+
name: ENUM_ASSET_PARAMETERS.PRIMARY_PRESSURE,
|
6499
|
+
key: ENUM_ASSET_PARAMETERS.PRIMARY_PRESSURE,
|
6500
|
+
},
|
6501
|
+
[ENUM_ASSET_PARAMETERS.REJECTION_RATE_SALT_PASSAGE]: {
|
6502
|
+
name: ENUM_ASSET_PARAMETERS.REJECTION_RATE_SALT_PASSAGE,
|
6503
|
+
key: ENUM_ASSET_PARAMETERS.REJECTION_RATE_SALT_PASSAGE,
|
6504
|
+
},
|
6505
|
+
[ENUM_ASSET_PARAMETERS.PRESSURE_DROP]: {
|
6506
|
+
name: ENUM_ASSET_PARAMETERS.PRESSURE_DROP,
|
6507
|
+
key: ENUM_ASSET_PARAMETERS.PRESSURE_DROP,
|
6508
|
+
},
|
6509
|
+
[ENUM_ASSET_PARAMETERS.SYSTEM_RECOVERY_RATE]: {
|
6510
|
+
name: ENUM_ASSET_PARAMETERS.SYSTEM_RECOVERY_RATE,
|
6511
|
+
key: ENUM_ASSET_PARAMETERS.SYSTEM_RECOVERY_RATE,
|
6512
|
+
},
|
6513
|
+
[ENUM_ASSET_PARAMETERS.PERMEATE_FLOW_RATE]: {
|
6514
|
+
name: ENUM_ASSET_PARAMETERS.PERMEATE_FLOW_RATE,
|
6515
|
+
key: ENUM_ASSET_PARAMETERS.PERMEATE_FLOW_RATE,
|
6516
|
+
},
|
6517
|
+
[ENUM_ASSET_PARAMETERS.PERMEATE_CONDUCTIVITY]: {
|
6518
|
+
name: ENUM_ASSET_PARAMETERS.PERMEATE_CONDUCTIVITY,
|
6519
|
+
key: ENUM_ASSET_PARAMETERS.PERMEATE_CONDUCTIVITY,
|
6520
|
+
},
|
6521
|
+
[ENUM_ASSET_PARAMETERS.PERMEATE_PRESSURE]: {
|
6522
|
+
name: ENUM_ASSET_PARAMETERS.PERMEATE_PRESSURE,
|
6523
|
+
key: ENUM_ASSET_PARAMETERS.PERMEATE_PRESSURE,
|
6524
|
+
},
|
6525
|
+
[ENUM_ASSET_PARAMETERS.CONCENTRATE_FLOW_RATE]: {
|
6526
|
+
name: ENUM_ASSET_PARAMETERS.CONCENTRATE_FLOW_RATE,
|
6527
|
+
key: ENUM_ASSET_PARAMETERS.CONCENTRATE_FLOW_RATE,
|
6528
|
+
},
|
6529
|
+
[ENUM_ASSET_PARAMETERS.CONCENTRATE_PRESSURE]: {
|
6530
|
+
name: ENUM_ASSET_PARAMETERS.CONCENTRATE_PRESSURE,
|
6531
|
+
key: ENUM_ASSET_PARAMETERS.CONCENTRATE_PRESSURE,
|
6532
|
+
},
|
6533
|
+
[ENUM_ASSET_PARAMETERS.CONCENTRATE_CONDUCTIVITY]: {
|
6534
|
+
name: ENUM_ASSET_PARAMETERS.CONCENTRATE_CONDUCTIVITY,
|
6535
|
+
key: ENUM_ASSET_PARAMETERS.CONCENTRATE_CONDUCTIVITY,
|
6536
|
+
},
|
6537
|
+
// Makeup Water
|
6538
|
+
[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW_RATE]: {
|
6539
|
+
name: 'Flow Rate',
|
6540
|
+
key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW_RATE,
|
6541
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
6542
|
+
},
|
6543
|
+
[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW]: {
|
6544
|
+
name: 'Flow',
|
6545
|
+
key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW,
|
6546
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
6547
|
+
},
|
6548
|
+
[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CONDUCTIVITY]: {
|
6549
|
+
name: 'Conductivity',
|
6550
|
+
key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CONDUCTIVITY,
|
6551
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
6552
|
+
},
|
6553
|
+
[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_PH]: {
|
6554
|
+
name: 'pH',
|
6555
|
+
key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_PH,
|
6556
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
6557
|
+
},
|
6558
|
+
[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CALCIUM]: {
|
6559
|
+
name: 'Calcium',
|
6560
|
+
key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CALCIUM,
|
6561
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
6562
|
+
},
|
6563
|
+
[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_TOTAL_IRON]: {
|
6564
|
+
name: 'Total Iron',
|
6565
|
+
key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_TOTAL_IRON,
|
6566
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
6567
|
+
},
|
6568
|
+
// Evaporation Loss
|
6569
|
+
[ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW_RATE]: {
|
6570
|
+
name: 'Flow Rate',
|
6571
|
+
key: ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW_RATE,
|
6572
|
+
waterSystem: WATER_SYSTEMS_NAME.EVAPORATION_LOSS,
|
6573
|
+
},
|
6574
|
+
[ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW]: {
|
6575
|
+
name: 'Flow',
|
6576
|
+
key: ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW,
|
6577
|
+
waterSystem: WATER_SYSTEMS_NAME.EVAPORATION_LOSS,
|
6578
|
+
},
|
6579
|
+
// Blowndown Water
|
6580
|
+
[ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW_RATE]: {
|
6581
|
+
name: 'Flow Rate',
|
6582
|
+
key: ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW_RATE,
|
6583
|
+
waterSystem: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
|
6584
|
+
},
|
6585
|
+
[ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW]: {
|
6586
|
+
name: 'Flow',
|
6587
|
+
key: ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW,
|
6588
|
+
waterSystem: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
|
6589
|
+
},
|
6590
|
+
// Warmer Water
|
6591
|
+
[ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW_RATE]: {
|
6592
|
+
name: 'Flow Rate',
|
6593
|
+
key: ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW_RATE,
|
6594
|
+
waterSystem: WATER_SYSTEMS_NAME.WARMER_WATER,
|
6595
|
+
},
|
6596
|
+
[ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW]: {
|
6597
|
+
name: 'Flow',
|
6598
|
+
key: ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW,
|
6599
|
+
waterSystem: WATER_SYSTEMS_NAME.WARMER_WATER,
|
6600
|
+
},
|
6601
|
+
// Cooling Tower Analysis
|
6602
|
+
[ENUM_ASSET_PARAMETERS.ANALYSIS_CONDUCTIVITY]: {
|
6603
|
+
name: 'Conductivity',
|
6604
|
+
key: ENUM_ASSET_PARAMETERS.ANALYSIS_CONDUCTIVITY,
|
6605
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
|
6606
|
+
},
|
6607
|
+
[ENUM_ASSET_PARAMETERS.ANALYSIS_PH]: {
|
6608
|
+
name: 'pH',
|
6609
|
+
key: ENUM_ASSET_PARAMETERS.ANALYSIS_PH,
|
6610
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
|
6611
|
+
},
|
6612
|
+
[ENUM_ASSET_PARAMETERS.ANALYSIS_CALCIUM]: {
|
6613
|
+
name: 'Calcium',
|
6614
|
+
key: ENUM_ASSET_PARAMETERS.ANALYSIS_CALCIUM,
|
6615
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
|
6616
|
+
},
|
6617
|
+
[ENUM_ASSET_PARAMETERS.ANALYSIS_TOTAL_IRON]: {
|
6618
|
+
name: 'Iron',
|
6619
|
+
key: ENUM_ASSET_PARAMETERS.ANALYSIS_TOTAL_IRON,
|
6620
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
|
6621
|
+
},
|
6622
|
+
// Cooling Tower Chemistry
|
6623
|
+
[ENUM_ASSET_PARAMETERS.CHEMISTRY_PHOSPHATE]: {
|
6624
|
+
name: 'Phosphate',
|
6625
|
+
key: ENUM_ASSET_PARAMETERS.CHEMISTRY_PHOSPHATE,
|
6626
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
|
6627
|
+
},
|
6628
|
+
[ENUM_ASSET_PARAMETERS.CHEMISTRY_CHLORINE]: {
|
6629
|
+
name: 'Chlorine',
|
6630
|
+
key: ENUM_ASSET_PARAMETERS.CHEMISTRY_CHLORINE,
|
6631
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
|
6632
|
+
},
|
6633
|
+
[ENUM_ASSET_PARAMETERS.CHEMISTRY_STP_RESIDUAL]: {
|
6634
|
+
name: 'STP Residual',
|
6635
|
+
key: ENUM_ASSET_PARAMETERS.CHEMISTRY_STP_RESIDUAL,
|
6636
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
|
6637
|
+
},
|
6638
|
+
[ENUM_ASSET_PARAMETERS.CHEMISTRY_CS_CORROSION]: {
|
6639
|
+
name: 'CS Corrosion',
|
6640
|
+
key: ENUM_ASSET_PARAMETERS.CHEMISTRY_CS_CORROSION,
|
6641
|
+
waterSystem: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
|
6642
|
+
},
|
6643
|
+
};
|
6644
|
+
const DATA_WATER_SYSTEMS = {
|
6645
|
+
[WATER_SYSTEMS_NAME.EVAPORATION_LOSS]: {
|
6646
|
+
title: WATER_SYSTEMS_NAME.EVAPORATION_LOSS,
|
6647
|
+
color: AtoGojsEditorModel.ENUM_COLORS.FLAMINGO,
|
6648
|
+
borderTable: AtoGojsEditorModel.ENUM_COLORS.FLAMINGO,
|
6649
|
+
bgColor: AtoGojsEditorModel.ENUM_COLORS.SNOW,
|
6650
|
+
},
|
6651
|
+
[WATER_SYSTEMS_NAME.WARMER_WATER]: {
|
6652
|
+
title: WATER_SYSTEMS_NAME.WARMER_WATER,
|
6653
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
|
6654
|
+
borderTable: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
|
6655
|
+
bgColor: AtoGojsEditorModel.ENUM_COLORS.OLD_LACE,
|
6656
|
+
},
|
6657
|
+
[WATER_SYSTEMS_NAME.BLOWDOWN_WATER]: {
|
6658
|
+
title: WATER_SYSTEMS_NAME.BLOWDOWN_WATER,
|
6659
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
|
6660
|
+
borderTable: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
|
6661
|
+
bgColor: AtoGojsEditorModel.ENUM_COLORS.OLD_LACE,
|
6662
|
+
},
|
6663
|
+
[WATER_SYSTEMS_NAME.MAKEUP_WATER]: {
|
6664
|
+
title: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
6665
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
6666
|
+
borderTable: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
6667
|
+
bgColor: AtoGojsEditorModel.ENUM_COLORS.CERULEAN_ALICE_BLUE,
|
6668
|
+
},
|
6669
|
+
[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS]: {
|
6670
|
+
title: WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS,
|
6671
|
+
color: AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE,
|
6672
|
+
borderTable: AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE,
|
6673
|
+
bgColor: AtoGojsEditorModel.ENUM_COLORS.AZURE,
|
6674
|
+
},
|
6675
|
+
[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY]: {
|
6676
|
+
title: WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY,
|
6677
|
+
color: AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE,
|
6678
|
+
borderTable: AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE,
|
6679
|
+
bgColor: AtoGojsEditorModel.ENUM_COLORS.AZURE,
|
6680
|
+
},
|
6681
|
+
};
|
6682
|
+
const ASSET_CATEGORY_PARAMS = {
|
6683
|
+
[WATER_SYSTEMS_NAME.EVAPORATION_LOSS]: [
|
6684
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW_RATE],
|
6685
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW],
|
6686
|
+
],
|
6687
|
+
[WATER_SYSTEMS_NAME.WARMER_WATER]: [
|
6688
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW_RATE],
|
6689
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.WARMER_WATER_FLOW],
|
6690
|
+
],
|
6691
|
+
[WATER_SYSTEMS_NAME.MAKEUP_WATER]: [
|
6692
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW_RATE],
|
6693
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW],
|
6694
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CONDUCTIVITY],
|
6695
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_PH],
|
6696
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CALCIUM],
|
6697
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.MAKEUP_WATER_TOTAL_IRON],
|
6698
|
+
],
|
6699
|
+
[WATER_SYSTEMS_NAME.BLOWDOWN_WATER]: [
|
6700
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW_RATE],
|
6701
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.BLOWDOWN_WATER_FLOW],
|
6702
|
+
],
|
6703
|
+
[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS]: [
|
6704
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.ANALYSIS_CONDUCTIVITY],
|
6705
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.ANALYSIS_PH],
|
6706
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.ANALYSIS_CALCIUM],
|
6707
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.ANALYSIS_TOTAL_IRON],
|
6708
|
+
],
|
6709
|
+
[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY]: [
|
6710
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.CHEMISTRY_PHOSPHATE],
|
6711
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.CHEMISTRY_CHLORINE],
|
6712
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.CHEMISTRY_STP_RESIDUAL],
|
6713
|
+
DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.CHEMISTRY_CS_CORROSION],
|
6714
|
+
],
|
6715
|
+
};
|
6716
|
+
var COMPONENTS_GROUP_TYPE;
|
6717
|
+
(function (COMPONENTS_GROUP_TYPE) {
|
6718
|
+
COMPONENTS_GROUP_TYPE["INFLOW"] = "Inflow";
|
6719
|
+
COMPONENTS_GROUP_TYPE["LOSS"] = "Loss";
|
6720
|
+
COMPONENTS_GROUP_TYPE["OUTFLOW"] = "Outflow";
|
6721
|
+
COMPONENTS_GROUP_TYPE["RECIRCULATED"] = "Recirculated";
|
6722
|
+
COMPONENTS_GROUP_TYPE["EMBODIED"] = "Embodied";
|
6723
|
+
COMPONENTS_GROUP_TYPE["INFLOW_VALUE"] = "InFlowValue";
|
6724
|
+
COMPONENTS_GROUP_TYPE["OUTFLOW_VALUE"] = "OutFlowValue";
|
6725
|
+
COMPONENTS_GROUP_TYPE["LOSS_VALUE"] = "LossValue";
|
6726
|
+
COMPONENTS_GROUP_TYPE["RECIRCULATED_VALUE"] = "RecirculatedValue";
|
6727
|
+
})(COMPONENTS_GROUP_TYPE || (COMPONENTS_GROUP_TYPE = {}));
|
6728
|
+
const ATO_COMPONENTS_GROUP_DATA = {
|
6729
|
+
[AtoGojsEditorModel.ENUM_TYPES.STORAGE]: {
|
6730
|
+
nodeDataArray: [
|
6731
|
+
{
|
6732
|
+
key: 90,
|
6733
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6734
|
+
name: 'Inflow',
|
6735
|
+
value: '0 kl',
|
6736
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
6737
|
+
group: 100,
|
6738
|
+
loc: '0 130.5',
|
6739
|
+
},
|
6740
|
+
{
|
6741
|
+
key: 91,
|
6742
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6743
|
+
name: 'Outflow',
|
6744
|
+
value: '0 kl',
|
6745
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
6746
|
+
group: 100,
|
6747
|
+
loc: '300 130.5',
|
6748
|
+
},
|
6749
|
+
{
|
6750
|
+
key: 92,
|
6751
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6752
|
+
name: 'Loss',
|
6753
|
+
value: 'M',
|
6754
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
6755
|
+
group: 100,
|
6756
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
6757
|
+
loc: '152.5 0',
|
6758
|
+
},
|
6759
|
+
{
|
6760
|
+
key: 99,
|
6761
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE,
|
6762
|
+
group: 100,
|
6763
|
+
loc: '92.5 95',
|
6764
|
+
},
|
6765
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE, isGroup: true, name: 'Group' },
|
6766
|
+
],
|
6767
|
+
linkDataArray: [
|
6768
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
6769
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
6770
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
6771
|
+
],
|
6772
|
+
},
|
6773
|
+
[AtoGojsEditorModel.ENUM_TYPES.WATER_TREATMENT]: {
|
6774
|
+
nodeDataArray: [
|
6775
|
+
{
|
6776
|
+
key: 90,
|
6777
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6778
|
+
name: 'Inflow',
|
6779
|
+
value: '0 kl',
|
6780
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
6781
|
+
group: 100,
|
6782
|
+
loc: '0 134.5',
|
6783
|
+
},
|
6784
|
+
{
|
6785
|
+
key: 91,
|
6786
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6787
|
+
name: 'Outflow',
|
6788
|
+
value: '0 kl',
|
6789
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
6790
|
+
group: 100,
|
6791
|
+
loc: '333 170',
|
6792
|
+
},
|
6793
|
+
{
|
6794
|
+
key: 92,
|
6795
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6796
|
+
name: 'Loss',
|
6797
|
+
value: 'M',
|
6798
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
6799
|
+
group: 100,
|
6800
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
6801
|
+
loc: '160.5 297',
|
6802
|
+
},
|
6803
|
+
{
|
6804
|
+
key: 93,
|
6805
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6806
|
+
name: 'Recirculated',
|
6807
|
+
value: 'M',
|
6808
|
+
color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
|
6809
|
+
group: 100,
|
6810
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
6811
|
+
loc: '266 32',
|
6812
|
+
},
|
6813
|
+
{
|
6814
|
+
key: 99,
|
6815
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
|
6816
|
+
group: 100,
|
6817
|
+
loc: '92.5 95',
|
6818
|
+
},
|
6819
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WATER_TREATMENT, isGroup: true, name: 'Group' },
|
6820
|
+
],
|
6821
|
+
linkDataArray: [
|
6822
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
6823
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
6824
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
6825
|
+
{ from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'T' },
|
6826
|
+
{ from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
|
6827
|
+
],
|
6828
|
+
},
|
6829
|
+
[AtoGojsEditorModel.ENUM_TYPES.DEMIN_WATER_TREATMENT]: {
|
6830
|
+
nodeDataArray: [
|
6831
|
+
{
|
6832
|
+
key: 90,
|
6833
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6834
|
+
name: 'Inflow',
|
6835
|
+
value: '0 kl',
|
6836
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
6837
|
+
group: 100,
|
6838
|
+
loc: '0 134.5',
|
6839
|
+
},
|
6840
|
+
{
|
6841
|
+
key: 91,
|
6842
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6843
|
+
name: 'Outflow',
|
6844
|
+
value: '0 kl',
|
6845
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
6846
|
+
group: 100,
|
6847
|
+
loc: '333 170',
|
6848
|
+
},
|
6849
|
+
{
|
6850
|
+
key: 92,
|
6851
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6852
|
+
name: 'Loss',
|
6853
|
+
value: 'M',
|
6854
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
6855
|
+
group: 100,
|
6856
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
6857
|
+
loc: '160.5 297',
|
6858
|
+
},
|
6859
|
+
{
|
6860
|
+
key: 93,
|
6861
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
6862
|
+
name: 'Recirculated',
|
6863
|
+
value: 'M',
|
6864
|
+
color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
|
6865
|
+
group: 100,
|
6866
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
6867
|
+
loc: '266 32',
|
6868
|
+
},
|
6869
|
+
{
|
6870
|
+
key: 99,
|
6871
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
|
6872
|
+
group: 100,
|
6873
|
+
loc: '125 110',
|
6874
|
+
},
|
6875
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WATER_TREATMENT, isGroup: true, name: 'Group' },
|
6876
|
+
],
|
6877
|
+
linkDataArray: [
|
6878
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
6879
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
6880
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
6881
|
+
{ from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
|
6882
|
+
{ from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
|
6883
|
+
],
|
6884
|
+
},
|
6885
|
+
[AtoGojsEditorModel.ENUM_TYPES.RO_WATER_TREATMENT]: {
|
6886
|
+
nodeDataArray: [
|
6887
|
+
{
|
6888
|
+
key: 93,
|
6889
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE,
|
6890
|
+
group: 100,
|
6891
|
+
loc: '830 10',
|
6892
|
+
selectable: false,
|
6893
|
+
value: 'NA',
|
6894
|
+
font: 'bold 15px Arial',
|
6895
|
+
colorValue: '',
|
6896
|
+
tooltip: '',
|
6897
|
+
},
|
6898
|
+
{
|
6899
|
+
key: 94,
|
6900
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
6901
|
+
group: 100,
|
6902
|
+
loc: '20 10',
|
6903
|
+
padding: new go__default.Margin(0, 0, 0, 20),
|
6904
|
+
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.CERULEAN],
|
6905
|
+
minSizeValue: new go__default.Size(100, NaN),
|
6906
|
+
selectable: false,
|
6907
|
+
dataTable: [
|
6908
|
+
{
|
6909
|
+
key: '',
|
6910
|
+
name: ENUM_ASSET_PARAMETERS.FEED_FLOW_RATE,
|
6911
|
+
value: '',
|
6912
|
+
isEditable: true,
|
6913
|
+
},
|
6914
|
+
{
|
6915
|
+
key: '',
|
6916
|
+
name: ENUM_ASSET_PARAMETERS.FEED_CONDUCTIVITY,
|
6917
|
+
value: '',
|
6918
|
+
isEditable: true,
|
6919
|
+
},
|
6920
|
+
{
|
6921
|
+
key: '',
|
6922
|
+
name: ENUM_ASSET_PARAMETERS.FEED_TEMPERATURE,
|
6923
|
+
value: '',
|
6924
|
+
isEditable: true,
|
6925
|
+
},
|
6926
|
+
{
|
6927
|
+
key: '',
|
6928
|
+
name: ENUM_ASSET_PARAMETERS.PRIMARY_PRESSURE,
|
6929
|
+
value: '',
|
6930
|
+
isEditable: true,
|
6931
|
+
},
|
6932
|
+
],
|
6933
|
+
},
|
6934
|
+
{
|
6935
|
+
key: 95,
|
6936
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
6937
|
+
group: 100,
|
6938
|
+
loc: '420 40',
|
6939
|
+
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.DANUBE],
|
6940
|
+
minSizeValue: new go__default.Size(100, NaN),
|
6941
|
+
selectable: false,
|
6942
|
+
dataTable: [
|
6943
|
+
{
|
6944
|
+
key: '',
|
6945
|
+
name: ENUM_ASSET_PARAMETERS.REJECTION_RATE_SALT_PASSAGE,
|
6946
|
+
value: '',
|
6947
|
+
isEditable: true,
|
6948
|
+
},
|
6949
|
+
{
|
6950
|
+
key: '',
|
6951
|
+
name: ENUM_ASSET_PARAMETERS.PRESSURE_DROP,
|
6952
|
+
value: '',
|
6953
|
+
isEditable: true,
|
6954
|
+
},
|
6955
|
+
{
|
6956
|
+
key: '',
|
6957
|
+
name: ENUM_ASSET_PARAMETERS.SYSTEM_RECOVERY_RATE,
|
6958
|
+
value: '',
|
6959
|
+
isEditable: true,
|
6960
|
+
},
|
6961
|
+
],
|
6962
|
+
},
|
6963
|
+
{
|
6964
|
+
key: 96,
|
6965
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
6966
|
+
group: 100,
|
6967
|
+
loc: '590 150',
|
6968
|
+
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE],
|
6969
|
+
minSizeValue: new go__default.Size(100, NaN),
|
6970
|
+
selectable: false,
|
6971
|
+
dataTable: [
|
6972
|
+
{
|
6973
|
+
key: '',
|
6974
|
+
name: ENUM_ASSET_PARAMETERS.PERMEATE_FLOW_RATE,
|
6975
|
+
value: '',
|
6976
|
+
isEditable: true,
|
6977
|
+
},
|
6978
|
+
{
|
6979
|
+
key: '',
|
6980
|
+
name: ENUM_ASSET_PARAMETERS.PERMEATE_CONDUCTIVITY,
|
6981
|
+
value: '',
|
6982
|
+
isEditable: true,
|
6983
|
+
},
|
6984
|
+
{
|
6985
|
+
key: '',
|
6986
|
+
name: ENUM_ASSET_PARAMETERS.PERMEATE_PRESSURE,
|
6987
|
+
value: '',
|
6988
|
+
isEditable: true,
|
6989
|
+
},
|
6990
|
+
],
|
6991
|
+
},
|
6992
|
+
{
|
6993
|
+
key: 97,
|
6994
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
6995
|
+
group: 100,
|
6996
|
+
loc: '30 370',
|
6997
|
+
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.GALLIANO],
|
6998
|
+
minSizeValue: new go__default.Size(100, NaN),
|
6999
|
+
selectable: false,
|
7000
|
+
dataTable: [
|
7001
|
+
{
|
7002
|
+
key: '',
|
7003
|
+
name: ENUM_ASSET_PARAMETERS.CONCENTRATE_FLOW_RATE,
|
7004
|
+
value: '',
|
7005
|
+
isEditable: true,
|
7006
|
+
},
|
7007
|
+
{
|
7008
|
+
key: '',
|
7009
|
+
name: ENUM_ASSET_PARAMETERS.CONCENTRATE_PRESSURE,
|
7010
|
+
value: '',
|
7011
|
+
isEditable: true,
|
7012
|
+
},
|
7013
|
+
{
|
7014
|
+
key: '',
|
7015
|
+
name: ENUM_ASSET_PARAMETERS.CONCENTRATE_CONDUCTIVITY,
|
7016
|
+
value: '',
|
7017
|
+
isEditable: true,
|
7018
|
+
},
|
7019
|
+
],
|
7020
|
+
},
|
7021
|
+
{
|
7022
|
+
key: 99,
|
7023
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
|
7024
|
+
source: AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH,
|
7025
|
+
group: 100,
|
7026
|
+
loc: '0 0',
|
7027
|
+
margin: new go__default.Margin(130, 0, 0, 0),
|
7028
|
+
selectable: false,
|
7029
|
+
},
|
7030
|
+
{
|
7031
|
+
key: 100,
|
7032
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT,
|
7033
|
+
isGroup: true,
|
7034
|
+
name: 'Grid',
|
7035
|
+
loc: '0 0',
|
7036
|
+
selectable: false,
|
7037
|
+
// isViewGeneral: true,
|
7038
|
+
},
|
7039
|
+
],
|
7040
|
+
linkDataArray: [],
|
7041
|
+
},
|
7042
|
+
[AtoGojsEditorModel.ENUM_TYPES.PROCESS]: {
|
7043
|
+
nodeDataArray: [
|
7044
|
+
{
|
7045
|
+
key: 90,
|
7046
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7047
|
+
name: 'Inflow',
|
7048
|
+
value: '0 kl',
|
7049
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7050
|
+
group: 100,
|
7051
|
+
loc: '0 134.5',
|
7052
|
+
},
|
7053
|
+
{
|
7054
|
+
key: 91,
|
7055
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7056
|
+
name: 'Outflow',
|
7057
|
+
value: '0 kl',
|
7058
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7059
|
+
group: 100,
|
7060
|
+
loc: '333 190',
|
7061
|
+
},
|
7062
|
+
{
|
7063
|
+
key: 92,
|
7064
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7065
|
+
name: 'Loss',
|
7066
|
+
value: 'M',
|
7067
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
7068
|
+
group: 100,
|
7069
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7070
|
+
loc: '104 -20',
|
7071
|
+
},
|
7072
|
+
{
|
7073
|
+
key: 93,
|
7074
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7075
|
+
name: 'Recirculated',
|
7076
|
+
value: 'M',
|
7077
|
+
color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
|
7078
|
+
group: 100,
|
7079
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7080
|
+
loc: '266 32',
|
7081
|
+
},
|
7082
|
+
{
|
7083
|
+
key: 94,
|
7084
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7085
|
+
name: 'Embodied',
|
7086
|
+
value: 'M',
|
7087
|
+
color: AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE,
|
7088
|
+
group: 100,
|
7089
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7090
|
+
loc: '144.5 297',
|
7091
|
+
},
|
7092
|
+
{
|
7093
|
+
key: 99,
|
7094
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
|
7095
|
+
group: 100,
|
7096
|
+
loc: '90 80',
|
7097
|
+
},
|
7098
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS, isGroup: true, name: 'Group' },
|
7099
|
+
],
|
7100
|
+
linkDataArray: [
|
7101
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7102
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7103
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7104
|
+
{ from: 99, to: 94, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7105
|
+
{ from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
|
7106
|
+
{ from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
|
7107
|
+
],
|
7108
|
+
},
|
7109
|
+
[AtoGojsEditorModel.ENUM_TYPES.WASTEWATER_TREATMENT]: {
|
7110
|
+
nodeDataArray: [
|
7111
|
+
{
|
7112
|
+
key: 90,
|
7113
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7114
|
+
name: 'Inflow',
|
7115
|
+
value: '0 kl',
|
7116
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7117
|
+
group: 100,
|
7118
|
+
loc: '0 134.5',
|
7119
|
+
},
|
7120
|
+
{
|
7121
|
+
key: 91,
|
7122
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7123
|
+
name: 'Outflow',
|
7124
|
+
value: '126 kl',
|
7125
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7126
|
+
group: 100,
|
7127
|
+
loc: '333 170',
|
7128
|
+
},
|
7129
|
+
{
|
7130
|
+
key: 92,
|
7131
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7132
|
+
name: 'Loss',
|
7133
|
+
value: 'M',
|
7134
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
7135
|
+
group: 100,
|
7136
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7137
|
+
loc: '160.5 297',
|
7138
|
+
},
|
7139
|
+
{
|
7140
|
+
key: 93,
|
7141
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7142
|
+
name: 'Recirculated',
|
7143
|
+
value: 'M',
|
7144
|
+
color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
|
7145
|
+
group: 100,
|
7146
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7147
|
+
loc: '266 32',
|
7148
|
+
},
|
7149
|
+
{
|
7150
|
+
key: 99,
|
7151
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
|
7152
|
+
group: 100,
|
7153
|
+
loc: '125 110',
|
7154
|
+
},
|
7155
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
|
7156
|
+
],
|
7157
|
+
linkDataArray: [
|
7158
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7159
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7160
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7161
|
+
{ from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
|
7162
|
+
{ from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
|
7163
|
+
],
|
7164
|
+
},
|
7165
|
+
[AtoGojsEditorModel.ENUM_TYPES.DAF_WASTEWATER_TREATMENT]: {
|
7166
|
+
nodeDataArray: [
|
7167
|
+
{
|
7168
|
+
key: 90,
|
7169
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7170
|
+
name: 'Inflow',
|
7171
|
+
value: '0 kl',
|
7172
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7173
|
+
group: 100,
|
7174
|
+
loc: '0 134.5',
|
7175
|
+
},
|
7176
|
+
{
|
7177
|
+
key: 91,
|
7178
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7179
|
+
name: 'Outflow',
|
7180
|
+
value: '126 kl',
|
7181
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7182
|
+
group: 100,
|
7183
|
+
loc: '333 170',
|
7184
|
+
},
|
7185
|
+
{
|
7186
|
+
key: 92,
|
7187
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7188
|
+
name: 'Loss',
|
7189
|
+
value: 'M',
|
7190
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
7191
|
+
group: 100,
|
7192
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7193
|
+
loc: '160.5 297',
|
7194
|
+
},
|
7195
|
+
{
|
7196
|
+
key: 93,
|
7197
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7198
|
+
name: 'Recirculated',
|
7199
|
+
value: 'M',
|
7200
|
+
color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
|
7201
|
+
group: 100,
|
7202
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7203
|
+
loc: '266 32',
|
7204
|
+
},
|
7205
|
+
{
|
7206
|
+
key: 99,
|
7207
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
|
7208
|
+
group: 100,
|
7209
|
+
loc: '125 110',
|
7210
|
+
},
|
7211
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
|
7212
|
+
],
|
7213
|
+
linkDataArray: [
|
7214
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7215
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7216
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7217
|
+
{ from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
|
7218
|
+
{ from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
|
7219
|
+
],
|
7220
|
+
},
|
7221
|
+
[AtoGojsEditorModel.ENUM_TYPES.ETP_WASTEWATER_TREATMENT]: {
|
7222
|
+
nodeDataArray: [
|
7223
|
+
{
|
7224
|
+
key: 90,
|
7225
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7226
|
+
name: 'Inflow',
|
7227
|
+
value: '0 kl',
|
7228
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7229
|
+
group: 100,
|
7230
|
+
loc: '0 134.5',
|
7231
|
+
},
|
7232
|
+
{
|
7233
|
+
key: 91,
|
7234
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7235
|
+
name: 'Outflow',
|
7236
|
+
value: '126 kl',
|
7237
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7238
|
+
group: 100,
|
7239
|
+
loc: '333 170',
|
7240
|
+
},
|
7241
|
+
{
|
7242
|
+
key: 92,
|
7243
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7244
|
+
name: 'Loss',
|
7245
|
+
value: 'M',
|
7246
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
7247
|
+
group: 100,
|
7248
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7249
|
+
loc: '160.5 297',
|
7250
|
+
},
|
7251
|
+
{
|
7252
|
+
key: 93,
|
7253
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7254
|
+
name: 'Recirculated',
|
7255
|
+
value: 'M',
|
7256
|
+
color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
|
7257
|
+
group: 100,
|
7258
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7259
|
+
loc: '266 32',
|
7260
|
+
},
|
7261
|
+
{
|
7262
|
+
key: 99,
|
7263
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
|
7264
|
+
group: 100,
|
7265
|
+
loc: '125 110',
|
7266
|
+
},
|
7267
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
|
7268
|
+
],
|
7269
|
+
linkDataArray: [
|
7270
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7271
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7272
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7273
|
+
{ from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
|
7274
|
+
{ from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
|
7275
|
+
],
|
7276
|
+
},
|
7277
|
+
[AtoGojsEditorModel.ENUM_TYPES.MBR_WASTEWATER_TREATMENT]: {
|
7278
|
+
nodeDataArray: [
|
7279
|
+
{
|
7280
|
+
key: 90,
|
7281
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7282
|
+
name: 'Inflow',
|
7283
|
+
value: '0 kl',
|
7284
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7285
|
+
group: 100,
|
7286
|
+
loc: '0 134.5',
|
7287
|
+
},
|
7288
|
+
{
|
7289
|
+
key: 91,
|
7290
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7291
|
+
name: 'Outflow',
|
7292
|
+
value: '126 kl',
|
7293
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7294
|
+
group: 100,
|
7295
|
+
loc: '333 170',
|
7296
|
+
},
|
7297
|
+
{
|
7298
|
+
key: 92,
|
7299
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7300
|
+
name: 'Loss',
|
7301
|
+
value: 'M',
|
7302
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
7303
|
+
group: 100,
|
7304
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7305
|
+
loc: '160.5 297',
|
7306
|
+
},
|
7307
|
+
{
|
7308
|
+
key: 93,
|
7309
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7310
|
+
name: 'Recirculated',
|
7311
|
+
value: 'M',
|
7312
|
+
color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
|
7313
|
+
group: 100,
|
7314
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7315
|
+
loc: '266 32',
|
7316
|
+
},
|
7317
|
+
{
|
7318
|
+
key: 99,
|
7319
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
|
7320
|
+
group: 100,
|
7321
|
+
loc: '125 110',
|
7322
|
+
},
|
7323
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
|
7324
|
+
],
|
7325
|
+
linkDataArray: [
|
7326
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7327
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7328
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7329
|
+
{ from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
|
7330
|
+
{ from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
|
7331
|
+
],
|
7332
|
+
},
|
7333
|
+
[AtoGojsEditorModel.ENUM_TYPES.ZLD_WASTEWATER_TREATMENT]: {
|
7334
|
+
nodeDataArray: [
|
7335
|
+
{
|
7336
|
+
key: 90,
|
7337
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7338
|
+
name: 'Inflow',
|
7339
|
+
value: '0 kl',
|
7340
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7341
|
+
group: 100,
|
7342
|
+
loc: '0 134.5',
|
7343
|
+
},
|
7344
|
+
{
|
7345
|
+
key: 91,
|
7346
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7347
|
+
name: 'Outflow',
|
7348
|
+
value: '126 kl',
|
7349
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7350
|
+
group: 100,
|
7351
|
+
loc: '333 170',
|
7352
|
+
},
|
7353
|
+
{
|
7354
|
+
key: 92,
|
7355
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7356
|
+
name: 'Loss',
|
7357
|
+
value: 'M',
|
7358
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
7359
|
+
group: 100,
|
7360
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7361
|
+
loc: '160.5 297',
|
7362
|
+
},
|
7363
|
+
{
|
7364
|
+
key: 93,
|
7365
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7366
|
+
name: 'Recirculated',
|
7367
|
+
value: 'M',
|
7368
|
+
color: AtoGojsEditorModel.ENUM_COLORS.VIVID_VIOLET,
|
7369
|
+
group: 100,
|
7370
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7371
|
+
loc: '266 32',
|
7372
|
+
},
|
7373
|
+
{
|
7374
|
+
key: 99,
|
7375
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
|
7376
|
+
group: 100,
|
7377
|
+
loc: '125 110',
|
7378
|
+
},
|
7379
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
|
7380
|
+
],
|
7381
|
+
linkDataArray: [
|
7382
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7383
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7384
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7385
|
+
{ from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
|
7386
|
+
{ from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
|
7387
|
+
],
|
7388
|
+
},
|
7389
|
+
[AtoGojsEditorModel.ENUM_TYPES.DOMESTIC_USE]: {
|
7390
|
+
nodeDataArray: [
|
7391
|
+
{
|
7392
|
+
key: 90,
|
7393
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7394
|
+
name: 'Inflow',
|
7395
|
+
value: '0 kl',
|
7396
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7397
|
+
group: 100,
|
7398
|
+
loc: '-20 134.5',
|
7399
|
+
},
|
7400
|
+
{
|
7401
|
+
key: 91,
|
7402
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7403
|
+
name: 'Outflow',
|
7404
|
+
value: '0 kl',
|
7405
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7406
|
+
group: 100,
|
7407
|
+
loc: '320 134.5',
|
7408
|
+
},
|
7409
|
+
{
|
7410
|
+
key: 92,
|
7411
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7412
|
+
name: 'Loss',
|
7413
|
+
value: 'M',
|
7414
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
7415
|
+
group: 100,
|
7416
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7417
|
+
loc: '150.5 0',
|
7418
|
+
},
|
7419
|
+
{
|
7420
|
+
key: 99,
|
7421
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS,
|
7422
|
+
group: 100,
|
7423
|
+
loc: '82.5 95',
|
7424
|
+
},
|
7425
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.DOMESTIC_USE, isGroup: true, name: 'Group' },
|
7426
|
+
],
|
7427
|
+
linkDataArray: [
|
7428
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7429
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7430
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7431
|
+
],
|
7432
|
+
},
|
7433
|
+
[AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER]: {
|
7434
|
+
nodeDataArray: [
|
7435
|
+
{
|
7436
|
+
key: 92,
|
7437
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
|
7438
|
+
group: 100,
|
7439
|
+
loc: '0 0',
|
7440
|
+
data: {
|
7441
|
+
quantity: 2222,
|
7442
|
+
unit: 'm³',
|
7443
|
+
},
|
7444
|
+
name: 'top-left-marker',
|
7445
|
+
color: '#a8438d',
|
7446
|
+
},
|
7447
|
+
{
|
7448
|
+
key: 93,
|
7449
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
|
7450
|
+
group: 100,
|
7451
|
+
loc: '1000 700',
|
7452
|
+
data: {
|
7453
|
+
quantity: 3333,
|
7454
|
+
unit: 'm³',
|
7455
|
+
},
|
7456
|
+
name: 'bottom-right-marker',
|
7457
|
+
color: '#a8438d',
|
7458
|
+
},
|
7459
|
+
{
|
7460
|
+
key: 94,
|
7461
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7462
|
+
group: 100,
|
7463
|
+
loc: '30 160',
|
7464
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7465
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS],
|
7466
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7467
|
+
selectable: false,
|
7468
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS].map((e) => ({
|
7469
|
+
...e,
|
7470
|
+
value: '',
|
7471
|
+
isEditable: true,
|
7472
|
+
maxSizeValue: 140,
|
7473
|
+
})),
|
7474
|
+
},
|
7475
|
+
{
|
7476
|
+
key: 95,
|
7477
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7478
|
+
group: 100,
|
7479
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7480
|
+
loc: '30 270',
|
7481
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER],
|
7482
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7483
|
+
selectable: false,
|
7484
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER].map((e) => ({
|
7485
|
+
...e,
|
7486
|
+
value: '',
|
7487
|
+
isEditable: true,
|
7488
|
+
maxSizeValue: 120,
|
7489
|
+
})),
|
7490
|
+
},
|
7491
|
+
{
|
7492
|
+
key: 96,
|
7493
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7494
|
+
group: 100,
|
7495
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7496
|
+
loc: '580 250',
|
7497
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.WARMER_WATER],
|
7498
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7499
|
+
selectable: false,
|
7500
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.WARMER_WATER].map((e) => ({
|
7501
|
+
...e,
|
7502
|
+
value: '',
|
7503
|
+
isEditable: true,
|
7504
|
+
maxSizeValue: 120,
|
7505
|
+
})),
|
7506
|
+
},
|
7507
|
+
{
|
7508
|
+
key: 97,
|
7509
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7510
|
+
group: 100,
|
7511
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7512
|
+
loc: '580 560',
|
7513
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER],
|
7514
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7515
|
+
selectable: false,
|
7516
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER].map((e) => ({
|
7517
|
+
...e,
|
7518
|
+
value: '',
|
7519
|
+
isEditable: true,
|
7520
|
+
maxSizeValue: 120,
|
7521
|
+
})),
|
7522
|
+
},
|
7523
|
+
{
|
7524
|
+
key: 98,
|
7525
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7526
|
+
group: 100,
|
7527
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7528
|
+
loc: '450 20',
|
7529
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS],
|
7530
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7531
|
+
selectable: false,
|
7532
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS].map((e) => ({
|
7533
|
+
...e,
|
7534
|
+
value: '',
|
7535
|
+
isEditable: true,
|
7536
|
+
maxSizeValue: 130,
|
7537
|
+
})),
|
7538
|
+
},
|
7539
|
+
{
|
7540
|
+
key: 99,
|
7541
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7542
|
+
group: 100,
|
7543
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7544
|
+
loc: '730 20',
|
7545
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY],
|
7546
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7547
|
+
selectable: false,
|
7548
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => ({
|
7549
|
+
...e,
|
7550
|
+
value: '',
|
7551
|
+
isEditable: true,
|
7552
|
+
maxSizeValue: 130,
|
7553
|
+
})),
|
7554
|
+
},
|
7555
|
+
{
|
7556
|
+
key: 91,
|
7557
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
|
7558
|
+
source: AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH,
|
7559
|
+
group: 100,
|
7560
|
+
loc: '0 0',
|
7561
|
+
margin: new go__default.Margin(195, 20, 0, 0),
|
7562
|
+
selectable: false,
|
7563
|
+
},
|
7564
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER, isGroup: true, name: 'Group' },
|
7565
|
+
],
|
7566
|
+
linkDataArray: [],
|
7567
|
+
},
|
7568
|
+
[AtoGojsEditorModel.ENUM_TYPES.BOILER]: {
|
7569
|
+
nodeDataArray: [
|
7570
|
+
{
|
7571
|
+
key: 99,
|
7572
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
|
7573
|
+
source: AtoGojsEditorModel.IMAGE_BOILER_PATH,
|
7574
|
+
group: 100,
|
7575
|
+
loc: '0 0',
|
7576
|
+
margin: new go__default.Margin(0, 0, 0, 0),
|
7577
|
+
selectable: false,
|
7578
|
+
width: 1038,
|
7579
|
+
height: 516,
|
7580
|
+
},
|
7581
|
+
{
|
7582
|
+
key: 95,
|
7583
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL,
|
7584
|
+
group: 100,
|
7585
|
+
loc: '0 380',
|
7586
|
+
data: {
|
7587
|
+
quantity: 2222,
|
7588
|
+
unit: 'm3',
|
7589
|
+
},
|
7590
|
+
name: COMPONENTS_GROUP_TYPE.INFLOW_VALUE,
|
7591
|
+
color: '#a8438d',
|
7592
|
+
},
|
7593
|
+
{
|
7594
|
+
key: 96,
|
7595
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL,
|
7596
|
+
group: 100,
|
7597
|
+
loc: '670 430',
|
7598
|
+
data: {
|
7599
|
+
quantity: 3333,
|
7600
|
+
unit: 'm3',
|
7601
|
+
},
|
7602
|
+
name: COMPONENTS_GROUP_TYPE.OUTFLOW_VALUE,
|
7603
|
+
color: '#a8438d',
|
7604
|
+
},
|
7605
|
+
{
|
7606
|
+
key: 97,
|
7607
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL,
|
7608
|
+
group: 100,
|
7609
|
+
loc: '612 0',
|
7610
|
+
data: {
|
7611
|
+
quantity: 4444,
|
7612
|
+
unit: 'm3',
|
7613
|
+
},
|
7614
|
+
name: COMPONENTS_GROUP_TYPE.LOSS_VALUE,
|
7615
|
+
color: '#a8438d',
|
7616
|
+
},
|
7617
|
+
{
|
7618
|
+
key: 98,
|
7619
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL,
|
7620
|
+
group: 100,
|
7621
|
+
loc: '310 0',
|
7622
|
+
data: {
|
7623
|
+
quantity: 5555,
|
7624
|
+
unit: 'm3',
|
7625
|
+
},
|
7626
|
+
name: COMPONENTS_GROUP_TYPE.RECIRCULATED_VALUE,
|
7627
|
+
color: '#a8438d',
|
7628
|
+
},
|
7629
|
+
{
|
7630
|
+
key: 100,
|
7631
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.BOILER,
|
7632
|
+
isGroup: true,
|
7633
|
+
name: 'Group',
|
7634
|
+
loc: '0 0',
|
7635
|
+
selectable: false,
|
7636
|
+
},
|
7637
|
+
],
|
7638
|
+
linkDataArray: [],
|
7639
|
+
},
|
7640
|
+
[AtoGojsEditorModel.ENUM_TYPES.OTHER]: {
|
7641
|
+
nodeDataArray: [
|
7642
|
+
{
|
7643
|
+
key: 90,
|
7644
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7645
|
+
name: 'Inflow',
|
7646
|
+
value: '0 kl',
|
7647
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7648
|
+
group: 100,
|
7649
|
+
loc: '0 140.5',
|
7650
|
+
},
|
7651
|
+
{
|
7652
|
+
key: 91,
|
7653
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7654
|
+
name: 'Outflow',
|
7655
|
+
value: '0 kl',
|
7656
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7657
|
+
group: 100,
|
7658
|
+
loc: '300 134.5',
|
7659
|
+
},
|
7660
|
+
{
|
7661
|
+
key: 92,
|
7662
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7663
|
+
name: 'Loss',
|
7664
|
+
value: 'M',
|
7665
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
7666
|
+
group: 100,
|
7667
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7668
|
+
loc: '160.5 0',
|
7669
|
+
},
|
7670
|
+
{
|
7671
|
+
key: 99,
|
7672
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
|
7673
|
+
group: 100,
|
7674
|
+
loc: '92.5 95',
|
7675
|
+
},
|
7676
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.OTHER, isGroup: true, name: 'Group' },
|
7677
|
+
],
|
7678
|
+
linkDataArray: [
|
7679
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7680
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7681
|
+
{ from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7682
|
+
],
|
7683
|
+
},
|
7684
|
+
[AtoGojsEditorModel.ENUM_TYPES.LANDSCAPING_IRRIGATION]: {
|
7685
|
+
nodeDataArray: [
|
7686
|
+
{
|
7687
|
+
key: 90,
|
7688
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7689
|
+
name: 'Inflow',
|
7690
|
+
value: '0 kl',
|
7691
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7692
|
+
group: 100,
|
7693
|
+
loc: '0 140.5',
|
7694
|
+
},
|
7695
|
+
{
|
7696
|
+
key: 91,
|
7697
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX,
|
7698
|
+
name: 'Loss',
|
7699
|
+
value: 'M',
|
7700
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
7701
|
+
group: 100,
|
7702
|
+
colorValue: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
7703
|
+
loc: '300 140.5',
|
7704
|
+
},
|
7705
|
+
{
|
7706
|
+
key: 99,
|
7707
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE,
|
7708
|
+
group: 100,
|
7709
|
+
loc: '92.5 95',
|
7710
|
+
},
|
7711
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.LANDSCAPING_IRRIGATION, isGroup: true, name: 'Group' },
|
7712
|
+
],
|
7713
|
+
linkDataArray: [
|
7714
|
+
{ from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7715
|
+
{ from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
|
7716
|
+
],
|
7717
|
+
},
|
7718
|
+
};
|
7719
|
+
|
7720
|
+
class AssetFlowComponent {
|
7721
|
+
constructor() {
|
7722
|
+
this.onClickParamOfTableEvent = new EventEmitter();
|
7723
|
+
this.$ = go.GraphObject.make;
|
7724
|
+
this.options = {
|
7725
|
+
layout: this.$(go.LayeredDigraphLayout, {
|
7726
|
+
// direction: 0,
|
7727
|
+
}),
|
7728
|
+
// isReadOnly: true,
|
7729
|
+
};
|
7730
|
+
this.flowData = {};
|
7731
|
+
}
|
7732
|
+
ngOnInit() {
|
7733
|
+
// this.flowData = {
|
7734
|
+
// ...ATO_COMPONENTS_GROUP_DATA[this.systemType],
|
7735
|
+
// linkFromPortIdProperty: 'fromPort',
|
7736
|
+
// linkToPortIdProperty: 'toPort',
|
7737
|
+
// };
|
7738
|
+
this.getDefaultFlowData();
|
7739
|
+
}
|
7740
|
+
onClickParamOfTable($event) {
|
7741
|
+
this.onClickParamOfTableEvent.emit($event);
|
7742
|
+
}
|
7743
|
+
getDefaultFlowData() {
|
7744
|
+
return {
|
7745
|
+
...ATO_COMPONENTS_GROUP_DATA[this.systemType],
|
7746
|
+
linkFromPortIdProperty: 'fromPort',
|
7747
|
+
linkToPortIdProperty: 'toPort',
|
7748
|
+
};
|
7749
|
+
}
|
7750
|
+
}
|
7751
|
+
AssetFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
7752
|
+
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"] }] });
|
7753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, decorators: [{
|
7754
|
+
type: Component,
|
7755
|
+
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" }]
|
7756
|
+
}], propDecorators: { gjFlowDiagramTemp: [{
|
7757
|
+
type: ViewChild,
|
7758
|
+
args: [AtoFlowDiagramLibComponent]
|
7759
|
+
}], selectedComponent: [{
|
7760
|
+
type: Input
|
7761
|
+
}], systemType: [{
|
7762
|
+
type: Input
|
7763
|
+
}], onClickParamOfTableEvent: [{
|
7764
|
+
type: Output
|
7765
|
+
}], flowData: [{
|
7766
|
+
type: Input
|
7767
|
+
}] } });
|
7768
|
+
|
6422
7769
|
class AtoWaterLibModule {
|
6423
7770
|
}
|
6424
7771
|
AtoWaterLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
6425
7772
|
AtoWaterLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, declarations: [AtoWaterLibComponent,
|
6426
|
-
AtoFlowDiagramLibComponent
|
6427
|
-
|
6428
|
-
|
7773
|
+
AtoFlowDiagramLibComponent,
|
7774
|
+
AssetFlowComponent], imports: [CommonModule], exports: [AtoWaterLibComponent,
|
7775
|
+
AtoFlowDiagramLibComponent,
|
7776
|
+
AssetFlowComponent] });
|
7777
|
+
AtoWaterLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, imports: [CommonModule] });
|
6429
7778
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, decorators: [{
|
6430
7779
|
type: NgModule,
|
6431
7780
|
args: [{
|
6432
7781
|
declarations: [
|
6433
7782
|
AtoWaterLibComponent,
|
6434
|
-
AtoFlowDiagramLibComponent
|
7783
|
+
AtoFlowDiagramLibComponent,
|
7784
|
+
AssetFlowComponent,
|
7785
|
+
],
|
7786
|
+
imports: [
|
7787
|
+
CommonModule
|
6435
7788
|
],
|
6436
|
-
imports: [],
|
6437
7789
|
exports: [
|
6438
7790
|
AtoWaterLibComponent,
|
6439
|
-
AtoFlowDiagramLibComponent
|
7791
|
+
AtoFlowDiagramLibComponent,
|
7792
|
+
AssetFlowComponent
|
6440
7793
|
]
|
6441
7794
|
}]
|
6442
7795
|
}] });
|
@@ -6449,5 +7802,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
6449
7802
|
* Generated bundle index. Do not edit.
|
6450
7803
|
*/
|
6451
7804
|
|
6452
|
-
export { AtoFlowDiagramLibComponent, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
|
7805
|
+
export { AssetFlowComponent, AtoFlowDiagramLibComponent, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
|
6453
7806
|
//# sourceMappingURL=ato-water-lib.mjs.map
|