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.
- package/esm2020/lib/ato-water-lib.module.mjs +2 -2
- 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 +28 -22
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +25 -22
- 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
@@ -34,7 +34,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
34
34
|
AtoNgVarDirective,
|
35
35
|
],
|
36
36
|
imports: [
|
37
|
-
CommonModule
|
37
|
+
CommonModule,
|
38
38
|
],
|
39
39
|
exports: [
|
40
40
|
AtoWaterLibComponent,
|
@@ -46,4 +46,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
46
46
|
]
|
47
47
|
}]
|
48
48
|
}] });
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvLXdhdGVyLWxpYi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvYXRvLXdhdGVyLWxpYi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNqRSxPQUFPLEVBQUUsMEJBQTBCLEVBQU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pbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgQXRvV2F0ZXJMaWJDb21wb25lbnQsXG4gICAgQXRvRmxvd0RpYWdyYW1MaWJDb21wb25lbnQsXG4gICAgQXNzZXRGbG93Q29tcG9uZW50LFxuICAgIEF0b0xvYWRpbmdEaXJlY3RpdmUsXG4gICAgQXRvQXNzZXRQYXJhbXNWaWV3Q29tcG9uZW50LFxuICAgIEF0b05nVmFyRGlyZWN0aXZlLFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIEF0b1dhdGVyTGliTW9kdWxlIHsgfVxuIl19
|
@@ -46,8 +46,6 @@ export class AssetFlowComponent {
|
|
46
46
|
updateLocationReponsive() {
|
47
47
|
if (!this.flowData?.nodeDataArray) {
|
48
48
|
this.flowData = this.getDefaultFlowData();
|
49
|
-
this.dataTableAssetParams = this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE);
|
50
|
-
return;
|
51
49
|
}
|
52
50
|
_.forEach(_.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType + (this.isResponsiveView ? '_RESPONSIVE' : '')]?.nodeDataArray, (node) => {
|
53
51
|
const itemFind = this.flowData?.nodeDataArray?.find((x) => node?.key === x?.key);
|
@@ -70,7 +68,7 @@ export class AssetFlowComponent {
|
|
70
68
|
}
|
71
69
|
getDefaultFlowData() {
|
72
70
|
const flowData = {
|
73
|
-
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType
|
71
|
+
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType],
|
74
72
|
linkFromPortIdProperty: 'fromPort',
|
75
73
|
linkToPortIdProperty: 'toPort',
|
76
74
|
};
|
@@ -112,4 +110,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
112
110
|
type: HostListener,
|
113
111
|
args: ['window:resize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