ato-water-lib 0.0.46 → 0.0.48

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,7 @@ 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_PIPELINE"] = "Steam pipeline";
1154
1156
  ENUM_TYPES["VALUES"] = "Valves";
1155
1157
  ENUM_TYPES["STEAM_TRAPS"] = "Steam Traps";
1156
1158
  ENUM_TYPES["PRESSURE_REGULATORS"] = "Pressure Regulator";
@@ -2221,6 +2223,10 @@ class AtoGojsEditorModel {
2221
2223
  icon: ``,
2222
2224
  },
2223
2225
  // STEAM
2226
+ [ENUM_TEMPLATES.STEAM_PIPELINE]: {
2227
+ name: ENUM_TEMPLATES.STEAM_PIPELINE,
2228
+ icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Pipeline.svg`,
2229
+ },
2224
2230
  [ENUM_TEMPLATES.VALUES]: {
2225
2231
  name: ENUM_TEMPLATES.VALUES,
2226
2232
  icon: `${AtoGojsEditorModel.STEAM_ICON_ASSET_PATH}/Steam_Valve.png`,
@@ -2550,6 +2556,7 @@ class AtoGojsEditorModel {
2550
2556
  // 'Pipeline', 'Industrial boilers', 'Generators', 'Industrial furnaces', 'Industrial ovens', 'Industrial vehicles and equipment',
2551
2557
  // 'FuelMeters', 'FuelDispensers', 'FuelStorageTanks', 'FuelFiltrations', 'FuelManagements'];
2552
2558
  AtoGojsEditorModel.TYPE_TEMPLATE_STEAM = [
2559
+ AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE,
2553
2560
  AtoGojsEditorModel.ENUM_TEMPLATES.VALUES,
2554
2561
  AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_TRAPS,
2555
2562
  AtoGojsEditorModel.ENUM_TEMPLATES.PRESSURE_REGULATORS,
@@ -2571,6 +2578,9 @@ class AtoGojsEditorModel {
2571
2578
  AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE,
2572
2579
  AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
2573
2580
  ];
2581
+ AtoGojsEditorModel.TEMPLATE_DUPLICATE = {
2582
+ [AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE]: AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE
2583
+ };
2574
2584
  })(AtoGojsEditorModel || (AtoGojsEditorModel = {}));
2575
2585
 
2576
2586
  // export const GO_LICENSE_KEY =
@@ -4374,6 +4384,7 @@ class AtoDefaultGojsEditor {
4374
4384
  this.myDiagram.nodeTemplateMap.set(title, node);
4375
4385
  }
4376
4386
  makeEntityTemplateEnergy(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
4387
+ var _a;
4377
4388
  const self = this;
4378
4389
  let node = this.$(go.Node, 'Spot', {
4379
4390
  locationSpot: go.Spot.Center,
@@ -4415,7 +4426,7 @@ class AtoDefaultGojsEditor {
4415
4426
  fill: 'white',
4416
4427
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
4417
4428
  // strokeDashArray: [5, 5],
4418
- }), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
4429
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, (_a = AtoGojsEditorModel.TEMPLATE_DUPLICATE[title]) !== null && _a !== void 0 ? _a : title, {
4419
4430
  row: 0,
4420
4431
  margin: new go.Margin(3, 3, 10, 3),
4421
4432
  maxSize: new go.Size(size.w - 20, 15),
@@ -6662,32 +6673,32 @@ const DATA_ASSET_PARAMETER_FIELDS = {
6662
6673
  [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW_RATE]: {
6663
6674
  name: 'Flow Rate',
6664
6675
  key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW_RATE,
6665
- waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW,
6676
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6666
6677
  },
6667
6678
  [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW]: {
6668
6679
  name: 'Flow',
6669
6680
  key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_FLOW,
6670
- waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW,
6681
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6671
6682
  },
6672
6683
  [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CONDUCTIVITY]: {
6673
6684
  name: 'Conductivity',
6674
6685
  key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CONDUCTIVITY,
6675
- waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY,
6686
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6676
6687
  },
6677
6688
  [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_PH]: {
6678
6689
  name: 'pH',
6679
6690
  key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_PH,
6680
- waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY,
6691
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6681
6692
  },
6682
6693
  [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CALCIUM]: {
6683
6694
  name: 'Calcium',
6684
6695
  key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_CALCIUM,
6685
- waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY,
6696
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6686
6697
  },
6687
6698
  [ENUM_ASSET_PARAMETERS.MAKEUP_WATER_TOTAL_IRON]: {
6688
6699
  name: 'Total Iron',
6689
6700
  key: ENUM_ASSET_PARAMETERS.MAKEUP_WATER_TOTAL_IRON,
6690
- waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY,
6701
+ waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
6691
6702
  },
6692
6703
  // Evaporation Loss
6693
6704
  [ENUM_ASSET_PARAMETERS.EVAPORATION_LOSS_FLOW_RATE]: {
@@ -7588,7 +7599,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
7588
7599
  }, extendedDataResponsive: {
7589
7600
  visible: false,
7590
7601
  } }),
7591
- Object.assign(Object.assign({ key: 89, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go.Margin(0, 0, 0, 0), loc: '30 270' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 120 }))), assetLayers: ATO_ASSET_LAYERS.FLOW, extendedData: {
7602
+ Object.assign(Object.assign({ key: 89, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go.Margin(0, 0, 0, 0), loc: '30 350' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 120 }))), assetLayers: ATO_ASSET_LAYERS.FLOW, extendedData: {
7592
7603
  visible: true,
7593
7604
  }, extendedDataResponsive: {
7594
7605
  visible: false,