ato-water-lib 0.0.79 → 0.0.82
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 +6 -6
- package/esm2020/lib/models/gojs-editor.model.mjs +21 -2
- package/fesm2015/ato-water-lib.mjs +26 -6
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +25 -6
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/models/gojs-editor.model.d.ts +6 -2
- package/package.json +1 -1
@@ -1035,6 +1035,9 @@ class AtoGojsEditorModel {
|
|
1035
1035
|
// Plant Basic
|
1036
1036
|
ENUM_TEMPLATES["GROUP_BASIC_COMPONENT"] = "Group Basic Component";
|
1037
1037
|
ENUM_TEMPLATES["TEXT_LABEL"] = "label";
|
1038
|
+
// Type Group duplicate Energy with Water
|
1039
|
+
ENUM_TEMPLATES["BOILER_ENERGY"] = "Boiler Energy";
|
1040
|
+
ENUM_TEMPLATES["COOLING_TOWER_ENERGY"] = "Cooling Tower Energy";
|
1038
1041
|
})(ENUM_TEMPLATES = AtoGojsEditorModel.ENUM_TEMPLATES || (AtoGojsEditorModel.ENUM_TEMPLATES = {}));
|
1039
1042
|
// System Types
|
1040
1043
|
let ENUM_TYPES;
|
@@ -1171,6 +1174,9 @@ class AtoGojsEditorModel {
|
|
1171
1174
|
ENUM_TYPES["STEAM_COMPONENT"] = "SteamComponents";
|
1172
1175
|
ENUM_TYPES["STEAM_CONSUMING_SYSTEM"] = "SteamConsumings";
|
1173
1176
|
ENUM_TYPES["ENERGY_CONVERTER"] = "EnergyConverters";
|
1177
|
+
// System Type Group duplicate Energy with Water
|
1178
|
+
ENUM_TYPES["BOILER_ENERGY"] = "Boiler Energy";
|
1179
|
+
ENUM_TYPES["COOLING_TOWER_ENERGY"] = "CoolingTowers Energy";
|
1174
1180
|
})(ENUM_TYPES = AtoGojsEditorModel.ENUM_TYPES || (AtoGojsEditorModel.ENUM_TYPES = {}));
|
1175
1181
|
let ENUM_CATEGORY;
|
1176
1182
|
(function (ENUM_CATEGORY) {
|
@@ -2280,6 +2286,17 @@ class AtoGojsEditorModel {
|
|
2280
2286
|
name: ENUM_TEMPLATES.GROUP_BASIC_COMPONENT,
|
2281
2287
|
icon: ``,
|
2282
2288
|
},
|
2289
|
+
// System Type Group duplicate Energy with Water
|
2290
|
+
[ENUM_TEMPLATES.BOILER_ENERGY]: {
|
2291
|
+
name: ENUM_TEMPLATES.BOILER,
|
2292
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Boiler.svg`,
|
2293
|
+
systemType: ENUM_TYPES.BOILER,
|
2294
|
+
},
|
2295
|
+
[ENUM_TEMPLATES.COOLING_TOWER_ENERGY]: {
|
2296
|
+
name: ENUM_TEMPLATES.COOLING_TOWER_ENERGY,
|
2297
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/cooling_tower.svg`,
|
2298
|
+
systemType: ENUM_TYPES.COOLING_TOWER,
|
2299
|
+
},
|
2283
2300
|
};
|
2284
2301
|
AtoGojsEditorModel.WITHDRAW_DISCHARGE_ICON = {
|
2285
2302
|
[ENUM_TYPES.FRESH_SURFACE_WATER]: {
|
@@ -2583,7 +2600,9 @@ class AtoGojsEditorModel {
|
|
2583
2600
|
AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
|
2584
2601
|
];
|
2585
2602
|
AtoGojsEditorModel.TEMPLATE_DUPLICATE = {
|
2586
|
-
[AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE]: AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE
|
2603
|
+
[AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE]: AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE,
|
2604
|
+
[AtoGojsEditorModel.ENUM_TEMPLATES.BOILER_ENERGY]: AtoGojsEditorModel.ENUM_TEMPLATES.BOILER,
|
2605
|
+
[AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER_ENERGY]: AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER,
|
2587
2606
|
};
|
2588
2607
|
})(AtoGojsEditorModel || (AtoGojsEditorModel = {}));
|
2589
2608
|
|
@@ -4104,7 +4123,7 @@ class AtoDefaultGojsEditor {
|
|
4104
4123
|
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
4105
4124
|
])
|
4106
4125
|
: {})),
|
4107
|
-
}, new go.Binding('fromSpot', 'fromSpot'), new go.Binding('toSpot', 'toSpot'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
4126
|
+
}, new go.Binding('visible', 'visible'), new go.Binding('fromSpot', 'fromSpot'), new go.Binding('toSpot', 'toSpot'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
4108
4127
|
// new go.Binding('alignment', 'alignment', function(loc) {
|
4109
4128
|
// return new go.Spot(0, 0, loc.x, 0);
|
4110
4129
|
// }).ofObject(),
|
@@ -5384,6 +5403,7 @@ class AtoDefaultGojsEditor {
|
|
5384
5403
|
this.myDiagram.groupTemplateMap.set(title, node);
|
5385
5404
|
}
|
5386
5405
|
makeGroupTemplate(icon, title, size = { w: 80, h: 80 }) {
|
5406
|
+
var _a;
|
5387
5407
|
let node = this.$(go.Group, 'Spot', {
|
5388
5408
|
// // layout: this.$(go.ForceDirectedLayout , {
|
5389
5409
|
// // direction: 0,
|
@@ -5479,7 +5499,7 @@ class AtoDefaultGojsEditor {
|
|
5479
5499
|
column: 1,
|
5480
5500
|
defaultAlignment: go.Spot.Left,
|
5481
5501
|
alignmentFocus: new go.Spot(0, 0, 0, 20),
|
5482
|
-
}, this.$(go.TextBlock, title, {
|
5502
|
+
}, this.$(go.TextBlock, (_a = AtoGojsEditorModel.TEMPLATE_DUPLICATE[title]) !== null && _a !== void 0 ? _a : title, {
|
5483
5503
|
row: 0,
|
5484
5504
|
margin: new go.Margin(3, 3, 5, 10),
|
5485
5505
|
// maxSize: new go.Size(size.w - 20, NaN),
|
@@ -5580,8 +5600,8 @@ class AtoDefaultGojsEditor {
|
|
5580
5600
|
// this.$(go.TextBlock, 'row 2 col 2', { column: 1, margin: 2 }),
|
5581
5601
|
// ),
|
5582
5602
|
// new go.Binding('itemArray', 'dataTable'),
|
5583
|
-
new go.Binding(
|
5584
|
-
return data.dataTable.filter(x => (x === null || x === void 0 ? void 0 : x.visible) !== false);
|
5603
|
+
new go.Binding('itemArray', '', function (data) {
|
5604
|
+
return data.dataTable.filter((x) => (x === null || x === void 0 ? void 0 : x.visible) !== false);
|
5585
5605
|
}), {
|
5586
5606
|
// itemTemplate: this.$(
|
5587
5607
|
// go.Panel,
|
@@ -5682,7 +5702,7 @@ class AtoDefaultGojsEditor {
|
|
5682
5702
|
height: 14,
|
5683
5703
|
width: 14,
|
5684
5704
|
}, new go.Binding('visible', '', (data, panel) => {
|
5685
|
-
return !(data === null || data === void 0 ? void 0 : data.isReadOnly) && !this._initialOptions.isReadOnly;
|
5705
|
+
return (!(data === null || data === void 0 ? void 0 : data.isReadOnly) && !this._initialOptions.isReadOnly);
|
5686
5706
|
}), new go.Binding('opacity', '', (data, panel) => {
|
5687
5707
|
return (data === null || data === void 0 ? void 0 : data.isEditable) === false ? 0.6 : 1;
|
5688
5708
|
})))),
|