ato-water-lib 0.0.47 → 0.0.49

Sign up to get free protection for your applications and to get access to all the features.
@@ -1017,6 +1017,7 @@ class AtoGojsEditorModel {
1017
1017
  ENUM_TEMPLATES["PARAM_TABLE"] = "Param Table";
1018
1018
  ENUM_TEMPLATES["MASS_BALANCE"] = "Mass Balance";
1019
1019
  // Steam Type
1020
+ ENUM_TEMPLATES["STEAM_PIPELINE"] = "Steam pipeline";
1020
1021
  ENUM_TEMPLATES["VALUES"] = "Valves";
1021
1022
  ENUM_TEMPLATES["STEAM_TRAPS"] = "Steam Traps";
1022
1023
  ENUM_TEMPLATES["PRESSURE_REGULATORS"] = "Pressure Regulator";
@@ -1151,6 +1152,8 @@ class AtoGojsEditorModel {
1151
1152
  ENUM_TYPES["PLANT_CELL_INPUT_GROUP"] = "PC Input Group";
1152
1153
  ENUM_TYPES["PLANT_CELL_OUTPUT_GROUP"] = "PC Output Group";
1153
1154
  // Steam
1155
+ ENUM_TYPES["STEAM_SOURCES"] = "SteamSources";
1156
+ ENUM_TYPES["STEAM_PIPELINE"] = "Steam pipeline";
1154
1157
  ENUM_TYPES["VALUES"] = "Valves";
1155
1158
  ENUM_TYPES["STEAM_TRAPS"] = "Steam Traps";
1156
1159
  ENUM_TYPES["PRESSURE_REGULATORS"] = "Pressure Regulator";
@@ -2221,6 +2224,10 @@ class AtoGojsEditorModel {
2221
2224
  icon: ``,
2222
2225
  },
2223
2226
  // STEAM
2227
+ [ENUM_TEMPLATES.STEAM_PIPELINE]: {
2228
+ name: ENUM_TEMPLATES.STEAM_PIPELINE,
2229
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Pipeline.svg`,
2230
+ },
2224
2231
  [ENUM_TEMPLATES.VALUES]: {
2225
2232
  name: ENUM_TEMPLATES.VALUES,
2226
2233
  icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Steam_Valve.png`,
@@ -2550,6 +2557,7 @@ class AtoGojsEditorModel {
2550
2557
  // 'Pipeline', 'Industrial boilers', 'Generators', 'Industrial furnaces', 'Industrial ovens', 'Industrial vehicles and equipment',
2551
2558
  // 'FuelMeters', 'FuelDispensers', 'FuelStorageTanks', 'FuelFiltrations', 'FuelManagements'];
2552
2559
  AtoGojsEditorModel.TYPE_TEMPLATE_STEAM = [
2560
+ AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE,
2553
2561
  AtoGojsEditorModel.ENUM_TEMPLATES.VALUES,
2554
2562
  AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_TRAPS,
2555
2563
  AtoGojsEditorModel.ENUM_TEMPLATES.PRESSURE_REGULATORS,
@@ -2571,6 +2579,9 @@ class AtoGojsEditorModel {
2571
2579
  AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE,
2572
2580
  AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
2573
2581
  ];
2582
+ AtoGojsEditorModel.TEMPLATE_DUPLICATE = {
2583
+ [AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE]: AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE
2584
+ };
2574
2585
  })(AtoGojsEditorModel || (AtoGojsEditorModel = {}));
2575
2586
 
2576
2587
  // export const GO_LICENSE_KEY =
@@ -4374,6 +4385,7 @@ class AtoDefaultGojsEditor {
4374
4385
  this.myDiagram.nodeTemplateMap.set(title, node);
4375
4386
  }
4376
4387
  makeEntityTemplateEnergy(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
4388
+ var _a;
4377
4389
  const self = this;
4378
4390
  let node = this.$(go.Node, 'Spot', {
4379
4391
  locationSpot: go.Spot.Center,
@@ -4415,7 +4427,7 @@ class AtoDefaultGojsEditor {
4415
4427
  fill: 'white',
4416
4428
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
4417
4429
  // strokeDashArray: [5, 5],
4418
- }), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
4430
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, (_a = AtoGojsEditorModel.TEMPLATE_DUPLICATE[title]) !== null && _a !== void 0 ? _a : title, {
4419
4431
  row: 0,
4420
4432
  margin: new go.Margin(3, 3, 10, 3),
4421
4433
  maxSize: new go.Size(size.w - 20, 15),