ato-water-lib 0.0.80 → 0.0.83

Sign up to get free protection for your applications and to get access to all the features.
@@ -1034,6 +1034,9 @@ class AtoGojsEditorModel {
1034
1034
  // Plant Basic
1035
1035
  ENUM_TEMPLATES["GROUP_BASIC_COMPONENT"] = "Group Basic Component";
1036
1036
  ENUM_TEMPLATES["TEXT_LABEL"] = "label";
1037
+ // Type Group duplicate Energy with Water
1038
+ ENUM_TEMPLATES["BOILER_ENERGY"] = "Boiler Energy";
1039
+ ENUM_TEMPLATES["COOLING_TOWER_ENERGY"] = "Cooling Tower Energy";
1037
1040
  })(ENUM_TEMPLATES = AtoGojsEditorModel.ENUM_TEMPLATES || (AtoGojsEditorModel.ENUM_TEMPLATES = {}));
1038
1041
  // System Types
1039
1042
  let ENUM_TYPES;
@@ -1170,6 +1173,9 @@ class AtoGojsEditorModel {
1170
1173
  ENUM_TYPES["STEAM_COMPONENT"] = "SteamComponents";
1171
1174
  ENUM_TYPES["STEAM_CONSUMING_SYSTEM"] = "SteamConsumings";
1172
1175
  ENUM_TYPES["ENERGY_CONVERTER"] = "EnergyConverters";
1176
+ // System Type Group duplicate Energy with Water
1177
+ ENUM_TYPES["BOILER_ENERGY"] = "Boiler Energy";
1178
+ ENUM_TYPES["COOLING_TOWER_ENERGY"] = "CoolingTowers Energy";
1173
1179
  })(ENUM_TYPES = AtoGojsEditorModel.ENUM_TYPES || (AtoGojsEditorModel.ENUM_TYPES = {}));
1174
1180
  let ENUM_CATEGORY;
1175
1181
  (function (ENUM_CATEGORY) {
@@ -2279,6 +2285,17 @@ class AtoGojsEditorModel {
2279
2285
  name: ENUM_TEMPLATES.GROUP_BASIC_COMPONENT,
2280
2286
  icon: ``,
2281
2287
  },
2288
+ // System Type Group duplicate Energy with Water
2289
+ [ENUM_TEMPLATES.BOILER_ENERGY]: {
2290
+ name: ENUM_TEMPLATES.BOILER_ENERGY,
2291
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Boiler.svg`,
2292
+ systemType: ENUM_TYPES.BOILER,
2293
+ },
2294
+ [ENUM_TEMPLATES.COOLING_TOWER_ENERGY]: {
2295
+ name: ENUM_TEMPLATES.COOLING_TOWER_ENERGY,
2296
+ icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/cooling_tower.svg`,
2297
+ systemType: ENUM_TYPES.COOLING_TOWER,
2298
+ },
2282
2299
  };
2283
2300
  AtoGojsEditorModel.WITHDRAW_DISCHARGE_ICON = {
2284
2301
  [ENUM_TYPES.FRESH_SURFACE_WATER]: {
@@ -2582,7 +2599,9 @@ class AtoGojsEditorModel {
2582
2599
  AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER,
2583
2600
  ];
2584
2601
  AtoGojsEditorModel.TEMPLATE_DUPLICATE = {
2585
- [AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE]: AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE
2602
+ [AtoGojsEditorModel.ENUM_TEMPLATES.STEAM_PIPELINE]: AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE,
2603
+ [AtoGojsEditorModel.ENUM_TEMPLATES.BOILER_ENERGY]: AtoGojsEditorModel.ENUM_TEMPLATES.BOILER,
2604
+ [AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER_ENERGY]: AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER,
2586
2605
  };
2587
2606
  })(AtoGojsEditorModel || (AtoGojsEditorModel = {}));
2588
2607
 
@@ -5470,7 +5489,7 @@ class AtoDefaultGojsEditor {
5470
5489
  column: 1,
5471
5490
  defaultAlignment: go.Spot.Left,
5472
5491
  alignmentFocus: new go.Spot(0, 0, 0, 20),
5473
- }, this.$(go.TextBlock, title, {
5492
+ }, this.$(go.TextBlock, AtoGojsEditorModel.TEMPLATE_DUPLICATE[title] ?? title, {
5474
5493
  row: 0,
5475
5494
  margin: new go.Margin(3, 3, 5, 10),
5476
5495
  // maxSize: new go.Size(size.w - 20, NaN),
@@ -5571,8 +5590,8 @@ class AtoDefaultGojsEditor {
5571
5590
  // this.$(go.TextBlock, 'row 2 col 2', { column: 1, margin: 2 }),
5572
5591
  // ),
5573
5592
  // new go.Binding('itemArray', 'dataTable'),
5574
- new go.Binding("itemArray", "", function (data) {
5575
- return data.dataTable.filter(x => x?.visible !== false);
5593
+ new go.Binding('itemArray', '', function (data) {
5594
+ return data.dataTable.filter((x) => x?.visible !== false);
5576
5595
  }), {
5577
5596
  // itemTemplate: this.$(
5578
5597
  // go.Panel,
@@ -5673,7 +5692,7 @@ class AtoDefaultGojsEditor {
5673
5692
  height: 14,
5674
5693
  width: 14,
5675
5694
  }, new go.Binding('visible', '', (data, panel) => {
5676
- return !data?.isReadOnly && !this._initialOptions.isReadOnly;
5695
+ return (!data?.isReadOnly && !this._initialOptions.isReadOnly);
5677
5696
  }), new go.Binding('opacity', '', (data, panel) => {
5678
5697
  return data?.isEditable === false ? 0.6 : 1;
5679
5698
  })))),