ato-water-lib 0.0.83 → 0.0.87
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +3 -3
- package/esm2020/lib/models/default-gojs-editor.model.mjs +2 -2
- package/esm2020/lib/models/gojs-editor.model.mjs +11 -1
- package/fesm2015/ato-water-lib.mjs +14 -4
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +13 -3
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/models/gojs-editor.model.d.ts +2 -0
- package/package.json +1 -1
@@ -958,6 +958,7 @@ class AtoGojsEditorModel {
|
|
958
958
|
ENUM_TEMPLATES["PROCESS_EQUIPMENT_MACHINES"] = "Process equipment and machines";
|
959
959
|
ENUM_TEMPLATES["MATERIAL_HANDLING_EQUIPMENT"] = "Material handling equipment";
|
960
960
|
ENUM_TEMPLATES["POWER_DISTRIBUTION_CONTROL_SYSTEMS"] = "Power distribution and control";
|
961
|
+
ENUM_TEMPLATES["PUMP"] = "Pump";
|
961
962
|
ENUM_TEMPLATES["POWER_DISTRIBUTION_SYSTEMS"] = "Power distribution systems";
|
962
963
|
ENUM_TEMPLATES["WIND_POWER"] = "Wind Power";
|
963
964
|
ENUM_TEMPLATES["NATURAL_GAS_GENERATORS"] = "Natural gas generators";
|
@@ -1096,6 +1097,7 @@ class AtoGojsEditorModel {
|
|
1096
1097
|
ENUM_TYPES["OFFICE_EQUIPMENT"] = "Office equipment";
|
1097
1098
|
ENUM_TYPES["MATERIAL_HANDLING_EQUIPMENT"] = "Material handling equipment";
|
1098
1099
|
ENUM_TYPES["POWER_DISTRIBUTION_CONTROL_SYSTEMS"] = "Power distribution and control";
|
1100
|
+
ENUM_TYPES["PUMP"] = "Pump";
|
1099
1101
|
ENUM_TYPES["POWER_DISTRIBUTION_SYSTEMS"] = "PowerDistributions";
|
1100
1102
|
ENUM_TYPES["WIND_POWER"] = "Wind Power";
|
1101
1103
|
ENUM_TYPES["NATURAL_GAS_GENERATORS"] = "Natural gas generators";
|
@@ -1372,6 +1374,7 @@ class AtoGojsEditorModel {
|
|
1372
1374
|
ENUM_TYPES.PROCESS_EQUIPMENT_MACHINES,
|
1373
1375
|
ENUM_TYPES.OFFICE_EQUIPMENT,
|
1374
1376
|
ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
1377
|
+
ENUM_TYPES.PUMP,
|
1375
1378
|
ENUM_TYPES.POWER_DISTRIBUTION_SYSTEMS,
|
1376
1379
|
ENUM_TYPES.NATURAL_GAS_GENERATORS,
|
1377
1380
|
ENUM_TYPES.MOTOR_CONTROLS,
|
@@ -1490,6 +1493,7 @@ class AtoGojsEditorModel {
|
|
1490
1493
|
ENUM_TYPES.OFFICE_EQUIPMENT,
|
1491
1494
|
ENUM_TYPES.MATERIAL_HANDLING_EQUIPMENT,
|
1492
1495
|
ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
1496
|
+
ENUM_TYPES.PUMP,
|
1493
1497
|
ENUM_TYPES.POWER_DISTRIBUTION_SYSTEMS,
|
1494
1498
|
ENUM_TYPES.WIND_POWER,
|
1495
1499
|
ENUM_TYPES.NATURAL_GAS_GENERATORS,
|
@@ -1905,6 +1909,11 @@ class AtoGojsEditorModel {
|
|
1905
1909
|
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution and control systems.svg`,
|
1906
1910
|
systemType: ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
1907
1911
|
},
|
1912
|
+
[ENUM_TEMPLATES.PUMP]: {
|
1913
|
+
name: ENUM_TEMPLATES.PUMP,
|
1914
|
+
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Pump.svg`,
|
1915
|
+
systemType: ENUM_TYPES.PUMP,
|
1916
|
+
},
|
1908
1917
|
[ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS]: {
|
1909
1918
|
name: ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS,
|
1910
1919
|
icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution systems.svg`,
|
@@ -2519,6 +2528,7 @@ class AtoGojsEditorModel {
|
|
2519
2528
|
AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES,
|
2520
2529
|
AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT,
|
2521
2530
|
AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
2531
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PUMP,
|
2522
2532
|
AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE,
|
2523
2533
|
AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
|
2524
2534
|
AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE,
|
@@ -3560,7 +3570,7 @@ class AtoDefaultGojsEditor {
|
|
3560
3570
|
if (this.animationInterval) {
|
3561
3571
|
clearInterval(this.animationInterval);
|
3562
3572
|
}
|
3563
|
-
const diagramDiv = this._elRef.nativeElement
|
3573
|
+
const diagramDiv = this._elRef.nativeElement?.getElementsByClassName(this.myDiagramDiv)?.[0];
|
3564
3574
|
this.myDiagram = this.$(go.Diagram, diagramDiv, this.initialOptions);
|
3565
3575
|
// this.myDiagram.initialPosition = new go.Point(0, 0);
|
3566
3576
|
this.addOrRemoveCompoentTemplate();
|
@@ -6874,10 +6884,10 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
6874
6884
|
}
|
6875
6885
|
}
|
6876
6886
|
AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
6877
|
-
AtoFlowDiagramLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: { data: "data", isLoading: "isLoading" }, viewQueries: [{ propertyName: "myDiagramDivTemp", first: true, predicate: ["myDiagramDivTemp"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" atoLoading [appLoading]=\"data === null || !!isLoading\">\n <div class=\"w-100 h-100 d-flex\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp
|
6887
|
+
AtoFlowDiagramLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: { data: "data", isLoading: "isLoading" }, viewQueries: [{ propertyName: "myDiagramDivTemp", first: true, predicate: ["myDiagramDivTemp"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" atoLoading [appLoading]=\"data === null || !!isLoading\">\n <div class=\"w-100 h-100 d-flex\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp class=\"flex-grow-1 {{myDiagramDiv}}\"></div>\n <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <!-- <nz-empty nzNotFoundImage=\"simple\"></nz-empty> -->\n No Data\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: AtoLoadingDirective, selector: "[atoLoading]", inputs: ["appLoading"] }] });
|
6878
6888
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
|
6879
6889
|
type: Component,
|
6880
|
-
args: [{ selector: 'ato-flow-diagram-lib', template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" atoLoading [appLoading]=\"data === null || !!isLoading\">\n <div class=\"w-100 h-100 d-flex\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp
|
6890
|
+
args: [{ selector: 'ato-flow-diagram-lib', template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" atoLoading [appLoading]=\"data === null || !!isLoading\">\n <div class=\"w-100 h-100 d-flex\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp class=\"flex-grow-1 {{myDiagramDiv}}\"></div>\n <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <!-- <nz-empty nzNotFoundImage=\"simple\"></nz-empty> -->\n No Data\n </div>\n </div>\n</div>\n" }]
|
6881
6891
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { myDiagramDivTemp: [{
|
6882
6892
|
type: ViewChild,
|
6883
6893
|
args: ['myDiagramDivTemp']
|