ato-water-lib 0.0.12 → 0.0.13
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 +5 -5
- package/esm2020/lib/models/default-gojs-editor.model.mjs +6 -5
- package/fesm2015/ato-water-lib.mjs +9 -8
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +9 -8
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +2 -2
- package/lib/models/default-gojs-editor.model.d.ts +3 -2
- package/package.json +1 -1
@@ -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,7 @@ class AtoDefaultGojsEditor {
|
|
3507
3508
|
if (this.animationInterval) {
|
3508
3509
|
clearInterval(this.animationInterval);
|
3509
3510
|
}
|
3510
|
-
const diagramDiv =
|
3511
|
+
const diagramDiv = this._elRef.nativeElement.querySelector(`#${this.myDiagramDiv}`);
|
3511
3512
|
this.myDiagram = this.$(go.Diagram, diagramDiv, this.initialOptions);
|
3512
3513
|
// this.myDiagram.initialPosition = new go.Point(0, 0);
|
3513
3514
|
this.addOrRemoveCompoentTemplate();
|
@@ -6240,11 +6241,11 @@ class AtoDefaultGojsEditor {
|
|
6240
6241
|
});
|
6241
6242
|
}
|
6242
6243
|
}
|
6243
|
-
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 });
|
6244
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 });
|
6245
6246
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, decorators: [{
|
6246
6247
|
type: Directive
|
6247
|
-
}], ctorParameters: function () { return []; }, propDecorators: { menuTrigger: [{
|
6248
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { menuTrigger: [{
|
6248
6249
|
type: ViewChild,
|
6249
6250
|
args: ['menuTrigger']
|
6250
6251
|
}], linkValidation: [{
|
@@ -6373,8 +6374,8 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
6373
6374
|
get data() {
|
6374
6375
|
return this._data;
|
6375
6376
|
}
|
6376
|
-
constructor() {
|
6377
|
-
super();
|
6377
|
+
constructor(_elRef) {
|
6378
|
+
super(_elRef);
|
6378
6379
|
this._data = null;
|
6379
6380
|
this.isLoading = false;
|
6380
6381
|
this.actions = [
|
@@ -6415,12 +6416,12 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
6415
6416
|
this.myDiagram.select(this.myDiagram.findNodeForKey(key));
|
6416
6417
|
}
|
6417
6418
|
}
|
6418
|
-
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 });
|
6419
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: [""] });
|
6420
6421
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
|
6421
6422
|
type: Component,
|
6422
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" }]
|
6423
|
-
}], ctorParameters: function () { return []; }, propDecorators: { myDiagramDivTemp: [{
|
6424
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { myDiagramDivTemp: [{
|
6424
6425
|
type: ViewChild,
|
6425
6426
|
args: ['myDiagramDivTemp']
|
6426
6427
|
}], showNotificationIcon: [{
|