ato-water-lib 0.0.25 → 0.0.27
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 +3 -14
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +2 -4
- package/esm2020/lib/models/default-gojs-editor.model.mjs +24 -19
- package/fesm2015/ato-water-lib.mjs +29 -34
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +26 -34
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/ato-water-lib.module.d.ts +1 -3
- 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
@@ -7,8 +7,6 @@ import { Subject, Subscription } from 'rxjs';
|
|
7
7
|
import * as i1 from '@angular/common';
|
8
8
|
import { DecimalPipe, CommonModule } from '@angular/common';
|
9
9
|
import { v4 } from 'uuid';
|
10
|
-
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
11
|
-
import { BrowserModule } from '@angular/platform-browser';
|
12
10
|
|
13
11
|
class AtoWaterLibService {
|
14
12
|
constructor() { }
|
@@ -4717,6 +4715,10 @@ class AtoDefaultGojsEditor {
|
|
4717
4715
|
e === AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT) {
|
4718
4716
|
return AtoDefaultGojsEditor.ENUM_ACTIONS.DATA_MAPPING;
|
4719
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
|
+
}
|
4720
4722
|
return e;
|
4721
4723
|
});
|
4722
4724
|
self.actions = filteredActions.map((action) => {
|
@@ -4732,6 +4734,7 @@ class AtoDefaultGojsEditor {
|
|
4732
4734
|
break;
|
4733
4735
|
case AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS:
|
4734
4736
|
case AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS:
|
4737
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD:
|
4735
4738
|
onClickFn = () => {
|
4736
4739
|
self.onOpenDetail.emit({
|
4737
4740
|
node: obj.part,
|
@@ -5336,7 +5339,18 @@ class AtoDefaultGojsEditor {
|
|
5336
5339
|
// }),
|
5337
5340
|
// ),
|
5338
5341
|
// ),
|
5339
|
-
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) => {
|
5340
5354
|
return data?.name;
|
5341
5355
|
})), this.$(go.Panel, 'Table', {
|
5342
5356
|
column: 1,
|
@@ -5365,13 +5379,6 @@ class AtoDefaultGojsEditor {
|
|
5365
5379
|
}
|
5366
5380
|
return !!data?.value;
|
5367
5381
|
}))),
|
5368
|
-
}, {
|
5369
|
-
click: (e, obj) => {
|
5370
|
-
self.onClikParamOfTable.emit({
|
5371
|
-
pramTable: obj.panel.part.data,
|
5372
|
-
...obj.panel.part.data?.dataTable[obj?.panel.row],
|
5373
|
-
});
|
5374
|
-
},
|
5375
5382
|
}, new go.Binding('text', '', (data, panel) => {
|
5376
5383
|
return data?.value;
|
5377
5384
|
}), new go.Binding('stroke', '', (data) => {
|
@@ -5395,16 +5402,6 @@ class AtoDefaultGojsEditor {
|
|
5395
5402
|
})), new go.Binding('visible', '', (data) => !!data?.toolTipAction)),
|
5396
5403
|
height: 14,
|
5397
5404
|
width: 14,
|
5398
|
-
}, {
|
5399
|
-
click: (e, obj) => {
|
5400
|
-
if (obj.panel.part.data?.dataTable[obj?.panel.row]?.isEditable === false) {
|
5401
|
-
return;
|
5402
|
-
}
|
5403
|
-
self.onClikParamOfTable.emit({
|
5404
|
-
pramTable: obj.panel.part.data,
|
5405
|
-
...obj.panel.part.data?.dataTable[obj?.panel.row],
|
5406
|
-
});
|
5407
|
-
},
|
5408
5405
|
}, new go.Binding('visible', '', (data, panel) => {
|
5409
5406
|
return !this._initialOptions.isReadOnly;
|
5410
5407
|
}), new go.Binding('opacity', '', (data, panel) => {
|
@@ -6332,6 +6329,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
6332
6329
|
ENUM_ACTIONS["DATA_MAPPING"] = "Data Mapping";
|
6333
6330
|
ENUM_ACTIONS["MORE"] = "More";
|
6334
6331
|
ENUM_ACTIONS["FLOW_DETAILS"] = "Flow details";
|
6332
|
+
ENUM_ACTIONS["FLOW_DETAILS_AND_WIZARD"] = "Flow details & wizard";
|
6335
6333
|
ENUM_ACTIONS["ASSET_PARAMETERS"] = "Asset parameters";
|
6336
6334
|
ENUM_ACTIONS["CHANGE_ICON"] = "Change icon";
|
6337
6335
|
})(ENUM_ACTIONS = AtoDefaultGojsEditor.ENUM_ACTIONS || (AtoDefaultGojsEditor.ENUM_ACTIONS = {}));
|
@@ -6346,6 +6344,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
6346
6344
|
iconClassName: 'far fa-arrow-progress',
|
6347
6345
|
onClick: () => { },
|
6348
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
|
+
},
|
6349
6352
|
[ENUM_ACTIONS.ASSET_PARAMETERS]: {
|
6350
6353
|
name: ENUM_ACTIONS.ASSET_PARAMETERS,
|
6351
6354
|
iconClassName: 'far fa-box-archive',
|
@@ -8062,8 +8065,6 @@ class AssetFlowComponent {
|
|
8062
8065
|
updateLocationReponsive() {
|
8063
8066
|
if (!this.flowData?.nodeDataArray) {
|
8064
8067
|
this.flowData = this.getDefaultFlowData();
|
8065
|
-
this.dataTableAssetParams = this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE);
|
8066
|
-
return;
|
8067
8068
|
}
|
8068
8069
|
_.forEach(_.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType + (this.isResponsiveView ? '_RESPONSIVE' : '')]?.nodeDataArray, (node) => {
|
8069
8070
|
const itemFind = this.flowData?.nodeDataArray?.find((x) => node?.key === x?.key);
|
@@ -8086,7 +8087,7 @@ class AssetFlowComponent {
|
|
8086
8087
|
}
|
8087
8088
|
getDefaultFlowData() {
|
8088
8089
|
const flowData = {
|
8089
|
-
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType
|
8090
|
+
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType],
|
8090
8091
|
linkFromPortIdProperty: 'fromPort',
|
8091
8092
|
linkToPortIdProperty: 'toPort',
|
8092
8093
|
};
|
@@ -8137,19 +8138,13 @@ AtoWaterLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versi
|
|
8137
8138
|
AssetFlowComponent,
|
8138
8139
|
AtoLoadingDirective,
|
8139
8140
|
AtoAssetParamsViewComponent,
|
8140
|
-
AtoNgVarDirective], imports: [CommonModule,
|
8141
|
-
BrowserModule,
|
8142
|
-
ReactiveFormsModule,
|
8143
|
-
FormsModule], exports: [AtoWaterLibComponent,
|
8141
|
+
AtoNgVarDirective], imports: [CommonModule], exports: [AtoWaterLibComponent,
|
8144
8142
|
AtoFlowDiagramLibComponent,
|
8145
8143
|
AssetFlowComponent,
|
8146
8144
|
AtoLoadingDirective,
|
8147
8145
|
AtoAssetParamsViewComponent,
|
8148
8146
|
AtoNgVarDirective] });
|
8149
|
-
AtoWaterLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, imports: [CommonModule
|
8150
|
-
BrowserModule,
|
8151
|
-
ReactiveFormsModule,
|
8152
|
-
FormsModule] });
|
8147
|
+
AtoWaterLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, imports: [CommonModule] });
|
8153
8148
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, decorators: [{
|
8154
8149
|
type: NgModule,
|
8155
8150
|
args: [{
|
@@ -8163,9 +8158,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
8163
8158
|
],
|
8164
8159
|
imports: [
|
8165
8160
|
CommonModule,
|
8166
|
-
BrowserModule,
|
8167
|
-
ReactiveFormsModule,
|
8168
|
-
FormsModule,
|
8169
8161
|
],
|
8170
8162
|
exports: [
|
8171
8163
|
AtoWaterLibComponent,
|