ato-water-lib 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -4715,6 +4715,10 @@ class AtoDefaultGojsEditor {
4715
4715
  e === AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT) {
4716
4716
  return AtoDefaultGojsEditor.ENUM_ACTIONS.DATA_MAPPING;
4717
4717
  }
4718
+ if (e === AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS &&
4719
+ obj?.part?.['ob']?.systemType === AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER) {
4720
+ return AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD;
4721
+ }
4718
4722
  return e;
4719
4723
  });
4720
4724
  self.actions = filteredActions.map((action) => {
@@ -4730,6 +4734,7 @@ class AtoDefaultGojsEditor {
4730
4734
  break;
4731
4735
  case AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS:
4732
4736
  case AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS:
4737
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD:
4733
4738
  onClickFn = () => {
4734
4739
  self.onOpenDetail.emit({
4735
4740
  node: obj.part,
@@ -5334,7 +5339,18 @@ class AtoDefaultGojsEditor {
5334
5339
  // }),
5335
5340
  // ),
5336
5341
  // ),
5337
- itemTemplate: this.$(go.Panel, 'TableRow', this.$(go.TextBlock, '', { column: 0, margin: 2, textAlign: 'left', alignment: go.Spot.Left }, new go.Binding('text', '', (data, panel) => {
5342
+ itemTemplate: this.$(go.Panel, 'TableRow', {
5343
+ cursor: 'pointer',
5344
+ click: (e, obj) => {
5345
+ if (obj.panel.part.data?.dataTable[obj.row]?.isEditable === false) {
5346
+ return;
5347
+ }
5348
+ self.onClikParamOfTable.emit({
5349
+ ...obj.panel.part.data?.dataTable[obj.row],
5350
+ });
5351
+ },
5352
+ background: 'transparent',
5353
+ }, this.$(go.TextBlock, '', { column: 0, margin: 2, textAlign: 'left', alignment: go.Spot.Left }, new go.Binding('text', '', (data, panel) => {
5338
5354
  return data?.name;
5339
5355
  })), this.$(go.Panel, 'Table', {
5340
5356
  column: 1,
@@ -5363,13 +5379,6 @@ class AtoDefaultGojsEditor {
5363
5379
  }
5364
5380
  return !!data?.value;
5365
5381
  }))),
5366
- }, {
5367
- click: (e, obj) => {
5368
- self.onClikParamOfTable.emit({
5369
- pramTable: obj.panel.part.data,
5370
- ...obj.panel.part.data?.dataTable[obj?.panel.row],
5371
- });
5372
- },
5373
5382
  }, new go.Binding('text', '', (data, panel) => {
5374
5383
  return data?.value;
5375
5384
  }), new go.Binding('stroke', '', (data) => {
@@ -5393,16 +5402,6 @@ class AtoDefaultGojsEditor {
5393
5402
  })), new go.Binding('visible', '', (data) => !!data?.toolTipAction)),
5394
5403
  height: 14,
5395
5404
  width: 14,
5396
- }, {
5397
- click: (e, obj) => {
5398
- if (obj.panel.part.data?.dataTable[obj?.panel.row]?.isEditable === false) {
5399
- return;
5400
- }
5401
- self.onClikParamOfTable.emit({
5402
- pramTable: obj.panel.part.data,
5403
- ...obj.panel.part.data?.dataTable[obj?.panel.row],
5404
- });
5405
- },
5406
5405
  }, new go.Binding('visible', '', (data, panel) => {
5407
5406
  return !this._initialOptions.isReadOnly;
5408
5407
  }), new go.Binding('opacity', '', (data, panel) => {
@@ -6330,6 +6329,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6330
6329
  ENUM_ACTIONS["DATA_MAPPING"] = "Data Mapping";
6331
6330
  ENUM_ACTIONS["MORE"] = "More";
6332
6331
  ENUM_ACTIONS["FLOW_DETAILS"] = "Flow details";
6332
+ ENUM_ACTIONS["FLOW_DETAILS_AND_WIZARD"] = "Flow details & wizard";
6333
6333
  ENUM_ACTIONS["ASSET_PARAMETERS"] = "Asset parameters";
6334
6334
  ENUM_ACTIONS["CHANGE_ICON"] = "Change icon";
6335
6335
  })(ENUM_ACTIONS = AtoDefaultGojsEditor.ENUM_ACTIONS || (AtoDefaultGojsEditor.ENUM_ACTIONS = {}));
@@ -6344,6 +6344,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6344
6344
  iconClassName: 'far fa-arrow-progress',
6345
6345
  onClick: () => { },
6346
6346
  },
6347
+ [ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD]: {
6348
+ name: ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD,
6349
+ iconClassName: 'far fa-arrow-progress',
6350
+ onClick: () => { },
6351
+ },
6347
6352
  [ENUM_ACTIONS.ASSET_PARAMETERS]: {
6348
6353
  name: ENUM_ACTIONS.ASSET_PARAMETERS,
6349
6354
  iconClassName: 'far fa-box-archive',
@@ -8060,8 +8065,6 @@ class AssetFlowComponent {
8060
8065
  updateLocationReponsive() {
8061
8066
  if (!this.flowData?.nodeDataArray) {
8062
8067
  this.flowData = this.getDefaultFlowData();
8063
- this.dataTableAssetParams = this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE);
8064
- return;
8065
8068
  }
8066
8069
  _.forEach(_.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType + (this.isResponsiveView ? '_RESPONSIVE' : '')]?.nodeDataArray, (node) => {
8067
8070
  const itemFind = this.flowData?.nodeDataArray?.find((x) => node?.key === x?.key);
@@ -8084,7 +8087,7 @@ class AssetFlowComponent {
8084
8087
  }
8085
8088
  getDefaultFlowData() {
8086
8089
  const flowData = {
8087
- ..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType + (this.isResponsiveView ? '_RESPONSIVE' : '')],
8090
+ ..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType],
8088
8091
  linkFromPortIdProperty: 'fromPort',
8089
8092
  linkToPortIdProperty: 'toPort',
8090
8093
  };
@@ -8154,7 +8157,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8154
8157
  AtoNgVarDirective,
8155
8158
  ],
8156
8159
  imports: [
8157
- CommonModule
8160
+ CommonModule,
8158
8161
  ],
8159
8162
  exports: [
8160
8163
  AtoWaterLibComponent,