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.
- package/esm2020/lib/models/default-gojs-editor.model.mjs +7 -1
- package/esm2020/lib/models/gojs-editor.model.mjs +11 -1
- package/fesm2015/ato-water-lib.mjs +17 -1
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +16 -0
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/models/gojs-editor.model.d.ts +2 -0
- package/package.json +1 -1
@@ -959,6 +959,7 @@ class AtoGojsEditorModel {
|
|
959
959
|
ENUM_TEMPLATES["PROCESS_EQUIPMENT_MACHINES"] = "Process equipment and machines";
|
960
960
|
ENUM_TEMPLATES["MATERIAL_HANDLING_EQUIPMENT"] = "Material handling equipment";
|
961
961
|
ENUM_TEMPLATES["POWER_DISTRIBUTION_CONTROL_SYSTEMS"] = "Power distribution and control";
|
962
|
+
ENUM_TEMPLATES["PUMP"] = "Pump";
|
962
963
|
ENUM_TEMPLATES["POWER_DISTRIBUTION_SYSTEMS"] = "Power distribution systems";
|
963
964
|
ENUM_TEMPLATES["WIND_POWER"] = "Wind Power";
|
964
965
|
ENUM_TEMPLATES["NATURAL_GAS_GENERATORS"] = "Natural gas generators";
|
@@ -1097,6 +1098,7 @@ class AtoGojsEditorModel {
|
|
1097
1098
|
ENUM_TYPES["OFFICE_EQUIPMENT"] = "Office equipment";
|
1098
1099
|
ENUM_TYPES["MATERIAL_HANDLING_EQUIPMENT"] = "Material handling equipment";
|
1099
1100
|
ENUM_TYPES["POWER_DISTRIBUTION_CONTROL_SYSTEMS"] = "Power distribution and control";
|
1101
|
+
ENUM_TYPES["PUMP"] = "Pump";
|
1100
1102
|
ENUM_TYPES["POWER_DISTRIBUTION_SYSTEMS"] = "PowerDistributions";
|
1101
1103
|
ENUM_TYPES["WIND_POWER"] = "Wind Power";
|
1102
1104
|
ENUM_TYPES["NATURAL_GAS_GENERATORS"] = "Natural gas generators";
|
@@ -1373,6 +1375,7 @@ class AtoGojsEditorModel {
|
|
1373
1375
|
ENUM_TYPES.PROCESS_EQUIPMENT_MACHINES,
|
1374
1376
|
ENUM_TYPES.OFFICE_EQUIPMENT,
|
1375
1377
|
ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
1378
|
+
ENUM_TYPES.PUMP,
|
1376
1379
|
ENUM_TYPES.POWER_DISTRIBUTION_SYSTEMS,
|
1377
1380
|
ENUM_TYPES.NATURAL_GAS_GENERATORS,
|
1378
1381
|
ENUM_TYPES.MOTOR_CONTROLS,
|
@@ -1491,6 +1494,7 @@ class AtoGojsEditorModel {
|
|
1491
1494
|
ENUM_TYPES.OFFICE_EQUIPMENT,
|
1492
1495
|
ENUM_TYPES.MATERIAL_HANDLING_EQUIPMENT,
|
1493
1496
|
ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
1497
|
+
ENUM_TYPES.PUMP,
|
1494
1498
|
ENUM_TYPES.POWER_DISTRIBUTION_SYSTEMS,
|
1495
1499
|
ENUM_TYPES.WIND_POWER,
|
1496
1500
|
ENUM_TYPES.NATURAL_GAS_GENERATORS,
|
@@ -1906,6 +1910,11 @@ class AtoGojsEditorModel {
|
|
1906
1910
|
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution and control systems.svg`,
|
1907
1911
|
systemType: ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
1908
1912
|
},
|
1913
|
+
[ENUM_TEMPLATES.PUMP]: {
|
1914
|
+
name: ENUM_TEMPLATES.PUMP,
|
1915
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Pump.svg`,
|
1916
|
+
systemType: ENUM_TYPES.PUMP,
|
1917
|
+
},
|
1909
1918
|
[ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS]: {
|
1910
1919
|
name: ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS,
|
1911
1920
|
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution systems.svg`,
|
@@ -2520,6 +2529,7 @@ class AtoGojsEditorModel {
|
|
2520
2529
|
AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES,
|
2521
2530
|
AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT,
|
2522
2531
|
AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
2532
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PUMP,
|
2523
2533
|
AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE,
|
2524
2534
|
AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
|
2525
2535
|
AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE,
|
@@ -4701,9 +4711,15 @@ class AtoDefaultGojsEditor {
|
|
4701
4711
|
// self.showPoint(obj?.part?.location);
|
4702
4712
|
},
|
4703
4713
|
click: (e, obj) => {
|
4704
|
-
var _a, _b;
|
4714
|
+
var _a, _b, _c, _d;
|
4705
4715
|
if ((_a = obj === null || obj === void 0 ? void 0 : obj.data) === null || _a === void 0 ? void 0 : _a.onSelected) {
|
4706
4716
|
(_b = obj === null || obj === void 0 ? void 0 : obj.data) === null || _b === void 0 ? void 0 : _b.onSelected(obj === null || obj === void 0 ? void 0 : obj.data);
|
4717
|
+
self.onClickCompoent.emit({
|
4718
|
+
left: (_c = e === null || e === void 0 ? void 0 : e['Wr']) === null || _c === void 0 ? void 0 : _c.x,
|
4719
|
+
top: (_d = e === null || e === void 0 ? void 0 : e['Wr']) === null || _d === void 0 ? void 0 : _d.y,
|
4720
|
+
node: node,
|
4721
|
+
component: obj === null || obj === void 0 ? void 0 : obj.data,
|
4722
|
+
});
|
4707
4723
|
}
|
4708
4724
|
},
|
4709
4725
|
selectionChanged: (e) => {
|