ato-water-lib 0.0.47 → 0.0.48

Sign up to get free protection for your applications and to get access to all the features.
@@ -1016,6 +1016,7 @@ class AtoGojsEditorModel {
1016
1016
  ENUM_TEMPLATES["PARAM_TABLE"] = "Param Table";
1017
1017
  ENUM_TEMPLATES["MASS_BALANCE"] = "Mass Balance";
1018
1018
  // Steam Type
1019
+ ENUM_TEMPLATES["STEAM_PIPELINE"] = "Steam pipeline";
1019
1020
  ENUM_TEMPLATES["VALUES"] = "Valves";
1020
1021
  ENUM_TEMPLATES["STEAM_TRAPS"] = "Steam Traps";
1021
1022
  ENUM_TEMPLATES["PRESSURE_REGULATORS"] = "Pressure Regulator";
@@ -1150,6 +1151,7 @@ class AtoGojsEditorModel {
1150
1151
  ENUM_TYPES["PLANT_CELL_INPUT_GROUP"] = "PC Input Group";
1151
1152
  ENUM_TYPES["PLANT_CELL_OUTPUT_GROUP"] = "PC Output Group";
1152
1153
  // Steam
1154
+ ENUM_TYPES["STEAM_PIPELINE"] = "Steam pipeline";
1153
1155
  ENUM_TYPES["VALUES"] = "Valves";
1154
1156
  ENUM_TYPES["STEAM_TRAPS"] = "Steam Traps";
1155
1157
  ENUM_TYPES["PRESSURE_REGULATORS"] = "Pressure Regulator";
@@ -2220,6 +2222,10 @@ class AtoGojsEditorModel {
2220
2222
  icon: ``,
2221
2223
  },
2222
2224
  // STEAM
2225
+ [ENUM_TEMPLATES.STEAM_PIPELINE]: {
2226
+ name: ENUM_TEMPLATES.STEAM_PIPELINE,
2227
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Pipeline.svg`,
2228
+ },
2223
2229
  [ENUM_TEMPLATES.VALUES]: {
2224
2230
  name: ENUM_TEMPLATES.VALUES,
2225
2231
  icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Steam_Valve.png`,
@@ -2549,6 +2555,7 @@ class AtoGojsEditorModel {
2549
2555
  // 'Pipeline', 'Industrial boilers', 'Generators', 'Industrial furnaces', 'Industrial ovens', 'Industrial vehicles and equipment',
2550
2556
  // 'FuelMeters', 'FuelDispensers', 'FuelStorageTanks', 'FuelFiltrations', 'FuelManagements'];
2551
2557
  AtoGojsEditorModel.TYPE_TEMPLATE_STEAM = [
2558
+ AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE,
2552
2559
  AtoGojsEditorModel.ENUM_TEMPLATES.VALUES,
2553
2560
  AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_TRAPS,
2554
2561
  AtoGojsEditorModel.ENUM_TEMPLATES.PRESSURE_REGULATORS,
@@ -2570,6 +2577,9 @@ class AtoGojsEditorModel {
2570
2577
  AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE,
2571
2578
  AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
2572
2579
  ];
2580
+ AtoGojsEditorModel.TEMPLATE_DUPLICATE = {
2581
+ [AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE]: AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE
2582
+ };
2573
2583
  })(AtoGojsEditorModel || (AtoGojsEditorModel = {}));
2574
2584
 
2575
2585
  // export const GO_LICENSE_KEY =
@@ -4393,7 +4403,7 @@ class AtoDefaultGojsEditor {
4393
4403
  fill: 'white',
4394
4404
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
4395
4405
  // strokeDashArray: [5, 5],
4396
- }), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
4406
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.TEMPLATE_DUPLICATE[title] ?? title, {
4397
4407
  row: 0,
4398
4408
  margin: new go.Margin(3, 3, 10, 3),
4399
4409
  maxSize: new go.Size(size.w - 20, 15),