ato-water-lib 0.0.85 → 0.0.89

Sign up to get free protection for your applications and to get access to all the features.
@@ -958,6 +958,7 @@ class AtoGojsEditorModel {
958
958
  ENUM_TEMPLATES["PROCESS_EQUIPMENT_MACHINES"] = "Process equipment and machines";
959
959
  ENUM_TEMPLATES["MATERIAL_HANDLING_EQUIPMENT"] = "Material handling equipment";
960
960
  ENUM_TEMPLATES["POWER_DISTRIBUTION_CONTROL_SYSTEMS"] = "Power distribution and control";
961
+ ENUM_TEMPLATES["PUMP"] = "Pump";
961
962
  ENUM_TEMPLATES["POWER_DISTRIBUTION_SYSTEMS"] = "Power distribution systems";
962
963
  ENUM_TEMPLATES["WIND_POWER"] = "Wind Power";
963
964
  ENUM_TEMPLATES["NATURAL_GAS_GENERATORS"] = "Natural gas generators";
@@ -1096,6 +1097,7 @@ class AtoGojsEditorModel {
1096
1097
  ENUM_TYPES["OFFICE_EQUIPMENT"] = "Office equipment";
1097
1098
  ENUM_TYPES["MATERIAL_HANDLING_EQUIPMENT"] = "Material handling equipment";
1098
1099
  ENUM_TYPES["POWER_DISTRIBUTION_CONTROL_SYSTEMS"] = "Power distribution and control";
1100
+ ENUM_TYPES["PUMP"] = "Pump";
1099
1101
  ENUM_TYPES["POWER_DISTRIBUTION_SYSTEMS"] = "PowerDistributions";
1100
1102
  ENUM_TYPES["WIND_POWER"] = "Wind Power";
1101
1103
  ENUM_TYPES["NATURAL_GAS_GENERATORS"] = "Natural gas generators";
@@ -1372,6 +1374,7 @@ class AtoGojsEditorModel {
1372
1374
  ENUM_TYPES.PROCESS_EQUIPMENT_MACHINES,
1373
1375
  ENUM_TYPES.OFFICE_EQUIPMENT,
1374
1376
  ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
1377
+ ENUM_TYPES.PUMP,
1375
1378
  ENUM_TYPES.POWER_DISTRIBUTION_SYSTEMS,
1376
1379
  ENUM_TYPES.NATURAL_GAS_GENERATORS,
1377
1380
  ENUM_TYPES.MOTOR_CONTROLS,
@@ -1490,6 +1493,7 @@ class AtoGojsEditorModel {
1490
1493
  ENUM_TYPES.OFFICE_EQUIPMENT,
1491
1494
  ENUM_TYPES.MATERIAL_HANDLING_EQUIPMENT,
1492
1495
  ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
1496
+ ENUM_TYPES.PUMP,
1493
1497
  ENUM_TYPES.POWER_DISTRIBUTION_SYSTEMS,
1494
1498
  ENUM_TYPES.WIND_POWER,
1495
1499
  ENUM_TYPES.NATURAL_GAS_GENERATORS,
@@ -1905,6 +1909,11 @@ class AtoGojsEditorModel {
1905
1909
  icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution and control systems.svg`,
1906
1910
  systemType: ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
1907
1911
  },
1912
+ [ENUM_TEMPLATES.PUMP]: {
1913
+ name: ENUM_TEMPLATES.PUMP,
1914
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Pump.svg`,
1915
+ systemType: ENUM_TYPES.PUMP,
1916
+ },
1908
1917
  [ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS]: {
1909
1918
  name: ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS,
1910
1919
  icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution systems.svg`,
@@ -2519,6 +2528,7 @@ class AtoGojsEditorModel {
2519
2528
  AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES,
2520
2529
  AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT,
2521
2530
  AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
2531
+ AtoGojsEditorModel.ENUM_TEMPLATES.PUMP,
2522
2532
  AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE,
2523
2533
  AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
2524
2534
  AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE,
@@ -4679,6 +4689,12 @@ class AtoDefaultGojsEditor {
4679
4689
  click: (e, obj) => {
4680
4690
  if (obj?.data?.onSelected) {
4681
4691
  obj?.data?.onSelected(obj?.data);
4692
+ self.onClickCompoent.emit({
4693
+ left: e?.['Wr']?.x,
4694
+ top: e?.['Wr']?.y,
4695
+ node: node,
4696
+ component: obj?.data,
4697
+ });
4682
4698
  }
4683
4699
  },
4684
4700
  selectionChanged: (e) => {