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.
@@ -959,6 +959,7 @@ class AtoGojsEditorModel {
959
959
  ENUM_TEMPLATES["PROCESS_EQUIPMENT_MACHINES"] = "Process equipment and machines";
960
960
  ENUM_TEMPLATES["MATERIAL_HANDLING_EQUIPMENT"] = "Material handling equipment";
961
961
  ENUM_TEMPLATES["POWER_DISTRIBUTION_CONTROL_SYSTEMS"] = "Power distribution and control";
962
+ ENUM_TEMPLATES["PUMP"] = "Pump";
962
963
  ENUM_TEMPLATES["POWER_DISTRIBUTION_SYSTEMS"] = "Power distribution systems";
963
964
  ENUM_TEMPLATES["WIND_POWER"] = "Wind Power";
964
965
  ENUM_TEMPLATES["NATURAL_GAS_GENERATORS"] = "Natural gas generators";
@@ -1097,6 +1098,7 @@ class AtoGojsEditorModel {
1097
1098
  ENUM_TYPES["OFFICE_EQUIPMENT"] = "Office equipment";
1098
1099
  ENUM_TYPES["MATERIAL_HANDLING_EQUIPMENT"] = "Material handling equipment";
1099
1100
  ENUM_TYPES["POWER_DISTRIBUTION_CONTROL_SYSTEMS"] = "Power distribution and control";
1101
+ ENUM_TYPES["PUMP"] = "Pump";
1100
1102
  ENUM_TYPES["POWER_DISTRIBUTION_SYSTEMS"] = "PowerDistributions";
1101
1103
  ENUM_TYPES["WIND_POWER"] = "Wind Power";
1102
1104
  ENUM_TYPES["NATURAL_GAS_GENERATORS"] = "Natural gas generators";
@@ -1373,6 +1375,7 @@ class AtoGojsEditorModel {
1373
1375
  ENUM_TYPES.PROCESS_EQUIPMENT_MACHINES,
1374
1376
  ENUM_TYPES.OFFICE_EQUIPMENT,
1375
1377
  ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
1378
+ ENUM_TYPES.PUMP,
1376
1379
  ENUM_TYPES.POWER_DISTRIBUTION_SYSTEMS,
1377
1380
  ENUM_TYPES.NATURAL_GAS_GENERATORS,
1378
1381
  ENUM_TYPES.MOTOR_CONTROLS,
@@ -1491,6 +1494,7 @@ class AtoGojsEditorModel {
1491
1494
  ENUM_TYPES.OFFICE_EQUIPMENT,
1492
1495
  ENUM_TYPES.MATERIAL_HANDLING_EQUIPMENT,
1493
1496
  ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
1497
+ ENUM_TYPES.PUMP,
1494
1498
  ENUM_TYPES.POWER_DISTRIBUTION_SYSTEMS,
1495
1499
  ENUM_TYPES.WIND_POWER,
1496
1500
  ENUM_TYPES.NATURAL_GAS_GENERATORS,
@@ -1906,6 +1910,11 @@ class AtoGojsEditorModel {
1906
1910
  icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution and control systems.svg`,
1907
1911
  systemType: ENUM_TYPES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
1908
1912
  },
1913
+ [ENUM_TEMPLATES.PUMP]: {
1914
+ name: ENUM_TEMPLATES.PUMP,
1915
+ icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Pump.svg`,
1916
+ systemType: ENUM_TYPES.PUMP,
1917
+ },
1909
1918
  [ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS]: {
1910
1919
  name: ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS,
1911
1920
  icon: `${AtoGojsEditorModel.ENERGY_ICON_ASSET_PATH}/Power distribution systems.svg`,
@@ -2520,6 +2529,7 @@ class AtoGojsEditorModel {
2520
2529
  AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES,
2521
2530
  AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT,
2522
2531
  AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS,
2532
+ AtoGojsEditorModel.ENUM_TEMPLATES.PUMP,
2523
2533
  AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE,
2524
2534
  AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
2525
2535
  AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE,
@@ -3515,7 +3525,7 @@ class AtoDefaultGojsEditor {
3515
3525
  }
3516
3526
  }
3517
3527
  initDiagram() {
3518
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
3528
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
3519
3529
  if (!!((_a = this.myDiagram) === null || _a === void 0 ? void 0 : _a.div)) {
3520
3530
  // this.myDiagram.div = null;
3521
3531
  if ((_b = this.initialOptions) === null || _b === void 0 ? void 0 : _b.grid) {
@@ -3571,7 +3581,7 @@ class AtoDefaultGojsEditor {
3571
3581
  if (this.animationInterval) {
3572
3582
  clearInterval(this.animationInterval);
3573
3583
  }
3574
- const diagramDiv = this._elRef.nativeElement.querySelector(`#${this.myDiagramDiv}`);
3584
+ const diagramDiv = (_1 = (_0 = this._elRef.nativeElement) === null || _0 === void 0 ? void 0 : _0.getElementsByClassName(this.myDiagramDiv)) === null || _1 === void 0 ? void 0 : _1[0];
3575
3585
  this.myDiagram = this.$(go.Diagram, diagramDiv, this.initialOptions);
3576
3586
  // this.myDiagram.initialPosition = new go.Point(0, 0);
3577
3587
  this.addOrRemoveCompoentTemplate();
@@ -6897,10 +6907,10 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
6897
6907
  }
6898
6908
  }
6899
6909
  AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
6900
- 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 [id]=\"myDiagramDiv\" class=\"flex-grow-1\"></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"] }] });
6910
+ 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"] }] });
6901
6911
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
6902
6912
  type: Component,
6903
- 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 [id]=\"myDiagramDiv\" class=\"flex-grow-1\"></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" }]
6913
+ 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" }]
6904
6914
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { myDiagramDivTemp: [{
6905
6915
  type: ViewChild,
6906
6916
  args: ['myDiagramDivTemp']