ato-water-lib 0.0.26 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/ato-water-lib.module.mjs +2 -2
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +3 -5
- package/esm2020/lib/models/default-gojs-editor.model.mjs +24 -19
- package/fesm2015/ato-water-lib.mjs +29 -22
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +26 -23
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/components/asset-flow/asset-flow.component.d.ts +908 -0
- package/lib/models/default-gojs-editor.model.d.ts +1 -0
- package/package.json +1 -1
@@ -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',
|
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);
|
@@ -8072,7 +8075,6 @@ class AssetFlowComponent {
|
|
8072
8075
|
itemFind.padding = node?.padding;
|
8073
8076
|
}
|
8074
8077
|
});
|
8075
|
-
this.dataTableAssetParams = this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE);
|
8076
8078
|
this.setFlowData(_.cloneDeep(this.flowData));
|
8077
8079
|
}
|
8078
8080
|
ngOnInit() {
|
@@ -8084,7 +8086,7 @@ class AssetFlowComponent {
|
|
8084
8086
|
}
|
8085
8087
|
getDefaultFlowData() {
|
8086
8088
|
const flowData = {
|
8087
|
-
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType
|
8089
|
+
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType],
|
8088
8090
|
linkFromPortIdProperty: 'fromPort',
|
8089
8091
|
linkToPortIdProperty: 'toPort',
|
8090
8092
|
};
|
@@ -8098,6 +8100,7 @@ class AssetFlowComponent {
|
|
8098
8100
|
}
|
8099
8101
|
setFlowData(data) {
|
8100
8102
|
this.flowData = { ...data };
|
8103
|
+
this.dataTableAssetParams = this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE);
|
8101
8104
|
}
|
8102
8105
|
}
|
8103
8106
|
AssetFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
@@ -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,
|