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
@@ -3226,7 +3226,8 @@ class AtoDefaultGojsEditor {
|
|
3226
3226
|
get editor() {
|
3227
3227
|
return this._editor;
|
3228
3228
|
}
|
3229
|
-
constructor() {
|
3229
|
+
constructor(_elRef) {
|
3230
|
+
this._elRef = _elRef;
|
3230
3231
|
this.actions = [];
|
3231
3232
|
this.actionMenuId = 'actionMenuId';
|
3232
3233
|
this.myDiagramDiv = this.constructor.name + '-' + moment().valueOf();
|
@@ -3518,7 +3519,7 @@ class AtoDefaultGojsEditor {
|
|
3518
3519
|
if (this.animationInterval) {
|
3519
3520
|
clearInterval(this.animationInterval);
|
3520
3521
|
}
|
3521
|
-
const diagramDiv =
|
3522
|
+
const diagramDiv = this._elRef.nativeElement.querySelector(`#${this.myDiagramDiv}`);
|
3522
3523
|
this.myDiagram = this.$(go.Diagram, diagramDiv, this.initialOptions);
|
3523
3524
|
// this.myDiagram.initialPosition = new go.Point(0, 0);
|
3524
3525
|
this.addOrRemoveCompoentTemplate();
|
@@ -6271,11 +6272,11 @@ class AtoDefaultGojsEditor {
|
|
6271
6272
|
});
|
6272
6273
|
}
|
6273
6274
|
}
|
6274
|
-
AtoDefaultGojsEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
6275
|
+
AtoDefaultGojsEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
6275
6276
|
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 });
|
6276
6277
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, decorators: [{
|
6277
6278
|
type: Directive
|
6278
|
-
}], ctorParameters: function () { return []; }, propDecorators: { menuTrigger: [{
|
6279
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { menuTrigger: [{
|
6279
6280
|
type: ViewChild,
|
6280
6281
|
args: ['menuTrigger']
|
6281
6282
|
}], linkValidation: [{
|
@@ -6404,8 +6405,8 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
6404
6405
|
get data() {
|
6405
6406
|
return this._data;
|
6406
6407
|
}
|
6407
|
-
constructor() {
|
6408
|
-
super();
|
6408
|
+
constructor(_elRef) {
|
6409
|
+
super(_elRef);
|
6409
6410
|
this._data = null;
|
6410
6411
|
this.isLoading = false;
|
6411
6412
|
this.actions = [
|
@@ -6444,12 +6445,12 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
6444
6445
|
this.myDiagram.select(this.myDiagram.findNodeForKey(key));
|
6445
6446
|
}
|
6446
6447
|
}
|
6447
|
-
AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
6448
|
+
AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
6448
6449
|
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: [""] });
|
6449
6450
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
|
6450
6451
|
type: Component,
|
6451
6452
|
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" }]
|
6452
|
-
}], ctorParameters: function () { return []; }, propDecorators: { myDiagramDivTemp: [{
|
6453
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { myDiagramDivTemp: [{
|
6453
6454
|
type: ViewChild,
|
6454
6455
|
args: ['myDiagramDivTemp']
|
6455
6456
|
}], showNotificationIcon: [{
|