ato-water-lib 0.0.11 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -3222,7 +3222,8 @@ class AtoDefaultGojsEditor {
3222
3222
  get editor() {
3223
3223
  return this._editor;
3224
3224
  }
3225
- constructor() {
3225
+ constructor(_elRef) {
3226
+ this._elRef = _elRef;
3226
3227
  this.actions = [];
3227
3228
  this.actionMenuId = 'actionMenuId';
3228
3229
  this.myDiagramDiv = this.constructor.name + '-' + moment().valueOf();
@@ -3507,7 +3508,8 @@ class AtoDefaultGojsEditor {
3507
3508
  if (this.animationInterval) {
3508
3509
  clearInterval(this.animationInterval);
3509
3510
  }
3510
- this.myDiagram = this.$(go.Diagram, this.myDiagramDiv, this.initialOptions);
3511
+ const diagramDiv = this._elRef.nativeElement.querySelector(`#${this.myDiagramDiv}`);
3512
+ this.myDiagram = this.$(go.Diagram, diagramDiv, this.initialOptions);
3511
3513
  // this.myDiagram.initialPosition = new go.Point(0, 0);
3512
3514
  this.addOrRemoveCompoentTemplate();
3513
3515
  this.makeLinkTemplate();
@@ -6239,11 +6241,11 @@ class AtoDefaultGojsEditor {
6239
6241
  });
6240
6242
  }
6241
6243
  }
6242
- AtoDefaultGojsEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6244
+ AtoDefaultGojsEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
6243
6245
  AtoDefaultGojsEditor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoDefaultGojsEditor, inputs: { linkValidation: "linkValidation", initialOptions: "initialOptions", editor: "editor", isShowNodeInfo: "isShowNodeInfo", plantSatus: "plantSatus" }, outputs: { onModelChangeListenerEvent: "onModelChangeListenerEvent", onClickInfoButton: "onClickInfoButton", onOpenWizard: "onOpenWizard", onOpenDetail: "onOpenDetail", onOpenAssetParameter: "onOpenAssetParameter", onOpenInsightMapping: "onOpenInsightMapping", onHoverInfoButton: "onHoverInfoButton", onHoverAlert: "onHoverAlert", onDoubleClickNode: "onDoubleClickNode", onOpenChangeIcon: "onOpenChangeIcon", onClickCompoent: "onClickCompoent", callbackImageTopology: "callbackImageTopology", onClikParamOfTable: "onClikParamOfTable", onDeleteNode: "onDeleteNode", onUndo: "onUndo", onRename: "onRename" }, viewQueries: [{ propertyName: "menuTrigger", first: true, predicate: ["menuTrigger"], descendants: true }], ngImport: i0 });
6244
6246
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, decorators: [{
6245
6247
  type: Directive
6246
- }], ctorParameters: function () { return []; }, propDecorators: { menuTrigger: [{
6248
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { menuTrigger: [{
6247
6249
  type: ViewChild,
6248
6250
  args: ['menuTrigger']
6249
6251
  }], linkValidation: [{
@@ -6372,8 +6374,8 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
6372
6374
  get data() {
6373
6375
  return this._data;
6374
6376
  }
6375
- constructor() {
6376
- super();
6377
+ constructor(_elRef) {
6378
+ super(_elRef);
6377
6379
  this._data = null;
6378
6380
  this.isLoading = false;
6379
6381
  this.actions = [
@@ -6414,12 +6416,12 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
6414
6416
  this.myDiagram.select(this.myDiagram.findNodeForKey(key));
6415
6417
  }
6416
6418
  }
6417
- AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6419
+ AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
6418
6420
  AtoFlowDiagramLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: { showNotificationIcon: "showNotificationIcon", 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\" style=\"height: 100%\">\n <!-- tqlSpin [spinning]=\"data === null || !!isLoading\" -->\n <div class=\"w-100 h-100 d-flex\" style=\"height: 100%\">\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\" style=\"height: 100%\"></div>\n <!-- <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <nz-empty nzNotFoundImage=\"simple\"></nz-empty>\n </div> -->\n </div>\n</div>\n", styles: [""] });
6419
6421
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
6420
6422
  type: Component,
6421
6423
  args: [{ selector: 'ato-flow-diagram-lib', template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" style=\"height: 100%\">\n <!-- tqlSpin [spinning]=\"data === null || !!isLoading\" -->\n <div class=\"w-100 h-100 d-flex\" style=\"height: 100%\">\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\" style=\"height: 100%\"></div>\n <!-- <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <nz-empty nzNotFoundImage=\"simple\"></nz-empty>\n </div> -->\n </div>\n</div>\n" }]
6422
- }], ctorParameters: function () { return []; }, propDecorators: { myDiagramDivTemp: [{
6424
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { myDiagramDivTemp: [{
6423
6425
  type: ViewChild,
6424
6426
  args: ['myDiagramDivTemp']
6425
6427
  }], showNotificationIcon: [{