ato-water-lib 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/ato-water-lib.module.mjs +27 -6
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +55 -6
- package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +27 -0
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +5 -4
- package/esm2020/lib/constants/components-group-const.mjs +197 -10
- package/esm2020/lib/constants/icon-base64.const.mjs +4 -0
- package/esm2020/lib/directive/ato-loading.directive.mjs +3 -3
- package/esm2020/lib/directive/ng-var.directive.mjs +31 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +26 -5
- package/esm2020/lib/models/gojs-editor.model.mjs +5 -1
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/ato-water-lib.mjs +271 -28
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +360 -28
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/ato-water-lib.module.d.ts +6 -2
- package/lib/components/asset-flow/asset-flow.component.d.ts +1278 -2
- package/lib/components/asset-params-view/asset-params-view.component.d.ts +10 -0
- package/lib/constants/components-group-const.d.ts +395 -0
- package/lib/constants/icon-base64.const.d.ts +3 -0
- package/lib/directive/ng-var.directive.d.ts +12 -0
- package/lib/models/default-gojs-editor.model.d.ts +4 -0
- package/lib/models/gojs-editor.model.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Injectable, Component, EventEmitter, Directive, ViewChild, Input, Output, NgModule } from '@angular/core';
|
2
|
+
import { Injectable, Component, EventEmitter, Directive, ViewChild, Input, Output, HostListener, NgModule } from '@angular/core';
|
3
3
|
import * as go from 'gojs';
|
4
4
|
import go__default from 'gojs';
|
5
5
|
import _ from 'lodash';
|
@@ -8,6 +8,8 @@ import { Subject, Subscription } from 'rxjs';
|
|
8
8
|
import * as i1 from '@angular/common';
|
9
9
|
import { DecimalPipe, CommonModule } from '@angular/common';
|
10
10
|
import { v4 } from 'uuid';
|
11
|
+
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
12
|
+
import { BrowserModule } from '@angular/platform-browser';
|
11
13
|
|
12
14
|
class AtoWaterLibService {
|
13
15
|
constructor() { }
|
@@ -1030,6 +1032,7 @@ class AtoGojsEditorModel {
|
|
1030
1032
|
ENUM_TEMPLATES["TURBINES"] = "Turbines";
|
1031
1033
|
// Plant Basic
|
1032
1034
|
ENUM_TEMPLATES["GROUP_BASIC_COMPONENT"] = "Group Basic Component";
|
1035
|
+
ENUM_TEMPLATES["TEXT_LABEL"] = "label";
|
1033
1036
|
})(ENUM_TEMPLATES = AtoGojsEditorModel.ENUM_TEMPLATES || (AtoGojsEditorModel.ENUM_TEMPLATES = {}));
|
1034
1037
|
// System Types
|
1035
1038
|
let ENUM_TYPES;
|
@@ -1739,6 +1742,9 @@ class AtoGojsEditorModel {
|
|
1739
1742
|
[ENUM_TEMPLATES.VALUE_LABEL]: {
|
1740
1743
|
name: ENUM_TEMPLATES.VALUE_LABEL,
|
1741
1744
|
},
|
1745
|
+
[ENUM_TEMPLATES.TEXT_LABEL]: {
|
1746
|
+
name: ENUM_TEMPLATES.TEXT_LABEL,
|
1747
|
+
},
|
1742
1748
|
[ENUM_TEMPLATES.DATA_BOX]: {
|
1743
1749
|
name: ENUM_TEMPLATES.DATA_BOX,
|
1744
1750
|
},
|
@@ -3192,6 +3198,10 @@ var ATO_EPlantType;
|
|
3192
3198
|
// [PlantComponentModel.PLANT_STATUS.active]: PLANT_TYPE_ACTIVE,
|
3193
3199
|
// };
|
3194
3200
|
|
3201
|
+
const ICONS_BASE64 = {
|
3202
|
+
"uf044": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAAC+lBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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2jenLQqla3hlct7AKlIevyyUmnCK9rr3qI1XDH7s78FrvGl9bhtEcXZXqV9o66qVTWAl2/M6YdVYWMX3b49fVOF8lTX9NS/ZWu5jhS+ljf1pn49LsHb5P4hyZf06Hfz1LxthVqmeY2BLUyv4YgjqTZyxvUcJtaVrDSzLinFzLqREkOr7vmYWjcy19B5ykXHMLcupKC5qTPVuzG5LmSoubXKK5hd+7PJ4GK1y18wv7bnq04mL1dkYoJtzySzFyrfxAzbne2JZq9YdjqLObY5xV1MX7Mehkm2OfeYv2uxBrNsb1aZ58+a78c825r8i4K4cdm1EDNtZ84G9IK+m2ox1zam7tagHl6Yicm2MdOCe3xlKWbbvqwI8PmlpN9hvm3LpqQABWAtdmHG7crOFBZoWmMxaFXeD/wvmJcewqzbkyPtWeBJO4x5tyWHQnk9d5s9mHk78l5bFkpav4O5tyFvh/Za1tSNmP3w80pqeP9nSlqC+Q87K5uE+pe26XVAEGZqp7GQcyseEQoxRbeE/7fWznvBIawcsOIDbRetBolwsqo5syN3FQFG8Dk30p63G3TeAR5BZ3tHm95vkZDxFZAEma+yE5ldSXsJVILLRhtfxD78GMAEk4KhzMokZ+O/owGkdEFzZms6PlsNQGZTvdLut652XYmXiRlM3YvpzPZc+XwlQJlJ5bM9mQtptwAXhgzky9yOzJWk3o9nRTRn530pzKlcvegkqOnK58+4+BHGxOtyT4GdeorWDmnCHE3SgCf24YkRlbP+vf/WP4m5nXb35O7H0lAiNfsW392W+ZEWN2Su2oNXDcedkndXZd6QynxL2g9Hzcv79bb8gqLiEkCOgl5cVJC/7dd580b1T7MI2v8B/uISip5sw2wAAAAASUVORK5CYII="
|
3203
|
+
};
|
3204
|
+
|
3195
3205
|
const ICON_ALERT = '/assets/images/icons/Station.svg';
|
3196
3206
|
const ARROW = '/assets/images/icons/arrow.svg';
|
3197
3207
|
const ARROW_GRAY = '/assets/images/icons/arrow-gray.svg';
|
@@ -3437,6 +3447,10 @@ class AtoDefaultGojsEditor {
|
|
3437
3447
|
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL) {
|
3438
3448
|
this.makeValueLabelTemplate();
|
3439
3449
|
}
|
3450
|
+
// Label
|
3451
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL) {
|
3452
|
+
this.makeTextLabelTemplate();
|
3453
|
+
}
|
3440
3454
|
// Zone item
|
3441
3455
|
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM) {
|
3442
3456
|
this.makeZoneItemTemplate();
|
@@ -3917,6 +3931,19 @@ class AtoDefaultGojsEditor {
|
|
3917
3931
|
}), new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')))));
|
3918
3932
|
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL, node);
|
3919
3933
|
}
|
3934
|
+
makeTextLabelTemplate(size = { w: NaN, h: 20 }) {
|
3935
|
+
const node = this.$(go.Node, 'Auto', {
|
3936
|
+
movable: false,
|
3937
|
+
isSelected: false,
|
3938
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
|
3939
|
+
margin: new go.Margin(0, 5, 10, 0),
|
3940
|
+
textAlign: 'center',
|
3941
|
+
font: 'bold 16px Arial',
|
3942
|
+
wrap: go.TextBlock.WrapFit,
|
3943
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
3944
|
+
}, new go.Binding('stroke', 'color'), new go.Binding('text', 'name'), new go.Binding('visible', 'visible')))));
|
3945
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL, node);
|
3946
|
+
}
|
3920
3947
|
makeTextTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 2 }) {
|
3921
3948
|
const self = this;
|
3922
3949
|
const contextMenu = this.$(go.Adornment, 'Vertical', this.$('ContextMenuButton', this.$(go.TextBlock, 'Option 1'), {
|
@@ -5240,7 +5267,9 @@ class AtoDefaultGojsEditor {
|
|
5240
5267
|
{
|
5241
5268
|
zOrder: 2,
|
5242
5269
|
// padding: new go.Margin(0, 0, 0, 200),
|
5243
|
-
}, new go.Binding('padding', 'padding'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
5270
|
+
}, new go.Binding('padding', 'padding'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('visible', '', (data) => {
|
5271
|
+
return typeof data?.visible === 'boolean' ? data?.visible : true;
|
5272
|
+
}),
|
5244
5273
|
// Header
|
5245
5274
|
this.$(go.Panel, 'Auto', {
|
5246
5275
|
stretch: go.GraphObject.Fill,
|
@@ -5353,12 +5382,11 @@ class AtoDefaultGojsEditor {
|
|
5353
5382
|
return data.color;
|
5354
5383
|
}), new go.Binding('maxSize', '', (data) => {
|
5355
5384
|
return new go.Size(data?.maxSizeValue || 190, 14);
|
5356
|
-
})), this.$(go.
|
5385
|
+
})), this.$(go.Picture, {
|
5357
5386
|
alignment: go.Spot.Right,
|
5358
5387
|
column: 1,
|
5359
5388
|
margin: new go.Margin(0, 0, 0, 5),
|
5360
|
-
|
5361
|
-
font: '13px "Font Awesome 6 Pro"',
|
5389
|
+
source: ICONS_BASE64["uf044"],
|
5362
5390
|
cursor: 'pointer',
|
5363
5391
|
visible: false,
|
5364
5392
|
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
@@ -5366,6 +5394,8 @@ class AtoDefaultGojsEditor {
|
|
5366
5394
|
}, new go.Binding('text', '', (data, panel) => {
|
5367
5395
|
return data?.toolTipAction;
|
5368
5396
|
})), new go.Binding('visible', '', (data) => !!data?.toolTipAction)),
|
5397
|
+
height: 14,
|
5398
|
+
width: 14,
|
5369
5399
|
}, {
|
5370
5400
|
click: (e, obj) => {
|
5371
5401
|
if (obj.panel.part.data?.dataTable[obj?.panel.row]?.isEditable === false) {
|
@@ -6383,8 +6413,8 @@ class AtoLoadingDirective {
|
|
6383
6413
|
this.renderer.setStyle(this.spinnerWrapper, 'z-index', '10');
|
6384
6414
|
const spinner = this.renderer.createElement('img');
|
6385
6415
|
this.renderer.setAttribute(spinner, 'src', 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ibWFyZ2luOiBhdXRvOyBiYWNrZ3JvdW5kOiByZ2IoMjU1LCAyNTUsIDI1NSk7IGRpc3BsYXk6IGJsb2NrOyBzaGFwZS1yZW5kZXJpbmc6IGF1dG87IGFuaW1hdGlvbi1wbGF5LXN0YXRlOiBydW5uaW5nOyBhbmltYXRpb24tZGVsYXk6IDBzOyIgd2lkdGg9Ijg4cHgiIGhlaWdodD0iODhweCIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KPGRlZnMgc3R5bGU9ImFuaW1hdGlvbi1wbGF5LXN0YXRlOiBydW5uaW5nOyBhbmltYXRpb24tZGVsYXk6IDBzOyI+CiAgPG1hc2sgaWQ9ImxkaW8tdmN5YjQ1YmFvdWstbWFzayIgc3R5bGU9ImFuaW1hdGlvbi1wbGF5LXN0YXRlOiBydW5uaW5nOyBhbmltYXRpb24tZGVsYXk6IDBzOyI+CiAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0id2hpdGUiIHN0eWxlPSJhbmltYXRpb24tcGxheS1zdGF0ZTogcnVubmluZzsgYW5pbWF0aW9uLWRlbGF5OiA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|
6416
|
+
this.renderer.setStyle(spinner, 'width', '30px');
|
6417
|
+
this.renderer.setStyle(spinner, 'height', '30px');
|
6388
6418
|
this.renderer.setStyle(spinner, 'border-radius', '50%');
|
6389
6419
|
this.renderer.appendChild(this.spinnerWrapper, spinner);
|
6390
6420
|
}
|
@@ -6454,10 +6484,10 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
6454
6484
|
}
|
6455
6485
|
}
|
6456
6486
|
AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
6457
|
-
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\"
|
6487
|
+
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"] }] });
|
6458
6488
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
|
6459
6489
|
type: Component,
|
6460
|
-
args: [{ selector: 'ato-flow-diagram-lib', template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" atoLoading [appLoading]=\"data === null || !!isLoading\"
|
6490
|
+
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" }]
|
6461
6491
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { myDiagramDivTemp: [{
|
6462
6492
|
type: ViewChild,
|
6463
6493
|
args: ['myDiagramDivTemp']
|
@@ -7474,7 +7504,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7474
7504
|
[AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER]: {
|
7475
7505
|
nodeDataArray: [
|
7476
7506
|
{
|
7477
|
-
key:
|
7507
|
+
key: 88,
|
7478
7508
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
|
7479
7509
|
group: 100,
|
7480
7510
|
loc: '0 0',
|
@@ -7486,7 +7516,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7486
7516
|
color: '#a8438d',
|
7487
7517
|
},
|
7488
7518
|
{
|
7489
|
-
key:
|
7519
|
+
key: 89,
|
7490
7520
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
|
7491
7521
|
group: 100,
|
7492
7522
|
loc: '1000 700',
|
@@ -7498,7 +7528,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7498
7528
|
color: '#a8438d',
|
7499
7529
|
},
|
7500
7530
|
{
|
7501
|
-
key:
|
7531
|
+
key: 90,
|
7502
7532
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7503
7533
|
group: 100,
|
7504
7534
|
loc: '30 160',
|
@@ -7512,9 +7542,10 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7512
7542
|
isEditable: true,
|
7513
7543
|
maxSizeValue: 140,
|
7514
7544
|
})),
|
7545
|
+
visible: true
|
7515
7546
|
},
|
7516
7547
|
{
|
7517
|
-
key:
|
7548
|
+
key: 91,
|
7518
7549
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7519
7550
|
group: 100,
|
7520
7551
|
padding: new go__default.Margin(0, 0, 0, 0),
|
@@ -7530,7 +7561,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7530
7561
|
})),
|
7531
7562
|
},
|
7532
7563
|
{
|
7533
|
-
key:
|
7564
|
+
key: 92,
|
7534
7565
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7535
7566
|
group: 100,
|
7536
7567
|
padding: new go__default.Margin(0, 0, 0, 0),
|
@@ -7546,7 +7577,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7546
7577
|
})),
|
7547
7578
|
},
|
7548
7579
|
{
|
7549
|
-
key:
|
7580
|
+
key: 93,
|
7550
7581
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7551
7582
|
group: 100,
|
7552
7583
|
padding: new go__default.Margin(0, 0, 0, 0),
|
@@ -7562,7 +7593,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7562
7593
|
})),
|
7563
7594
|
},
|
7564
7595
|
{
|
7565
|
-
key:
|
7596
|
+
key: 94,
|
7566
7597
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7567
7598
|
group: 100,
|
7568
7599
|
padding: new go__default.Margin(0, 0, 0, 0),
|
@@ -7578,7 +7609,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7578
7609
|
})),
|
7579
7610
|
},
|
7580
7611
|
{
|
7581
|
-
key:
|
7612
|
+
key: 95,
|
7582
7613
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7583
7614
|
group: 100,
|
7584
7615
|
padding: new go__default.Margin(0, 0, 0, 0),
|
@@ -7594,7 +7625,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7594
7625
|
})),
|
7595
7626
|
},
|
7596
7627
|
{
|
7597
|
-
key:
|
7628
|
+
key: 96,
|
7598
7629
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
|
7599
7630
|
source: AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH,
|
7600
7631
|
group: 100,
|
@@ -7602,6 +7633,192 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7602
7633
|
margin: new go__default.Margin(195, 20, 0, 0),
|
7603
7634
|
selectable: false,
|
7604
7635
|
},
|
7636
|
+
// {
|
7637
|
+
// key: 97,
|
7638
|
+
// type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7639
|
+
// group: 100,
|
7640
|
+
// loc: '250 25',
|
7641
|
+
// name: 'Evaporation Loss',
|
7642
|
+
// color: AtoGojsEditorModel.ENUM_COLORS.FLAMINGO,
|
7643
|
+
// visible: false,
|
7644
|
+
// },
|
7645
|
+
// {
|
7646
|
+
// key: 98,
|
7647
|
+
// type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7648
|
+
// group: 100,
|
7649
|
+
// loc: '110 290',
|
7650
|
+
// name: 'Makeup Water',
|
7651
|
+
// color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7652
|
+
// visible: false,
|
7653
|
+
// },
|
7654
|
+
// {
|
7655
|
+
// key: 99,
|
7656
|
+
// type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7657
|
+
// group: 100,
|
7658
|
+
// loc: '580 435',
|
7659
|
+
// name: 'Blowdown Water',
|
7660
|
+
// color: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
|
7661
|
+
// visible: false,
|
7662
|
+
// },
|
7663
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER, isGroup: true, name: 'Group' },
|
7664
|
+
],
|
7665
|
+
linkDataArray: [],
|
7666
|
+
},
|
7667
|
+
[AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER + '_RESPONSIVE']: {
|
7668
|
+
nodeDataArray: [
|
7669
|
+
{
|
7670
|
+
key: 88,
|
7671
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
|
7672
|
+
group: 100,
|
7673
|
+
loc: '0 0',
|
7674
|
+
data: {
|
7675
|
+
quantity: 2222,
|
7676
|
+
unit: 'm³',
|
7677
|
+
},
|
7678
|
+
name: 'top-left-marker',
|
7679
|
+
color: '#a8438d',
|
7680
|
+
},
|
7681
|
+
{
|
7682
|
+
key: 89,
|
7683
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
|
7684
|
+
group: 100,
|
7685
|
+
loc: '700 300',
|
7686
|
+
data: {
|
7687
|
+
quantity: 3333,
|
7688
|
+
unit: 'm³',
|
7689
|
+
},
|
7690
|
+
name: 'bottom-right-marker',
|
7691
|
+
color: '#a8438d',
|
7692
|
+
},
|
7693
|
+
{
|
7694
|
+
key: 90,
|
7695
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7696
|
+
group: 100,
|
7697
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7698
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS],
|
7699
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7700
|
+
selectable: false,
|
7701
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS].map((e) => ({
|
7702
|
+
...e,
|
7703
|
+
value: '',
|
7704
|
+
isEditable: true,
|
7705
|
+
maxSizeValue: 130,
|
7706
|
+
})),
|
7707
|
+
visible: false,
|
7708
|
+
},
|
7709
|
+
{
|
7710
|
+
key: 91,
|
7711
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7712
|
+
group: 100,
|
7713
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7714
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY],
|
7715
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7716
|
+
selectable: false,
|
7717
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => ({
|
7718
|
+
...e,
|
7719
|
+
value: '',
|
7720
|
+
isEditable: true,
|
7721
|
+
maxSizeValue: 130,
|
7722
|
+
})),
|
7723
|
+
visible: false,
|
7724
|
+
},
|
7725
|
+
{
|
7726
|
+
key: 92,
|
7727
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7728
|
+
group: 100,
|
7729
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7730
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS],
|
7731
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7732
|
+
selectable: false,
|
7733
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS].map((e) => ({
|
7734
|
+
...e,
|
7735
|
+
value: '',
|
7736
|
+
isEditable: true,
|
7737
|
+
maxSizeValue: 140,
|
7738
|
+
})),
|
7739
|
+
visible: false,
|
7740
|
+
},
|
7741
|
+
{
|
7742
|
+
key: 93,
|
7743
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7744
|
+
group: 100,
|
7745
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7746
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER],
|
7747
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7748
|
+
selectable: false,
|
7749
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER].map((e) => ({
|
7750
|
+
...e,
|
7751
|
+
value: '',
|
7752
|
+
isEditable: true,
|
7753
|
+
maxSizeValue: 120,
|
7754
|
+
})),
|
7755
|
+
visible: false,
|
7756
|
+
},
|
7757
|
+
{
|
7758
|
+
key: 94,
|
7759
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7760
|
+
group: 100,
|
7761
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7762
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.WARMER_WATER],
|
7763
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7764
|
+
selectable: false,
|
7765
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.WARMER_WATER].map((e) => ({
|
7766
|
+
...e,
|
7767
|
+
value: '',
|
7768
|
+
isEditable: true,
|
7769
|
+
maxSizeValue: 120,
|
7770
|
+
})),
|
7771
|
+
visible: false,
|
7772
|
+
},
|
7773
|
+
{
|
7774
|
+
key: 95,
|
7775
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7776
|
+
group: 100,
|
7777
|
+
padding: new go__default.Margin(0, 0, 0, 0),
|
7778
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER],
|
7779
|
+
minSizeValue: new go__default.Size(100, NaN),
|
7780
|
+
selectable: false,
|
7781
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER].map((e) => ({
|
7782
|
+
...e,
|
7783
|
+
value: '',
|
7784
|
+
isEditable: true,
|
7785
|
+
maxSizeValue: 120,
|
7786
|
+
})),
|
7787
|
+
visible: false,
|
7788
|
+
},
|
7789
|
+
{
|
7790
|
+
key: 96,
|
7791
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
|
7792
|
+
source: AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH,
|
7793
|
+
group: 100,
|
7794
|
+
loc: '0 0',
|
7795
|
+
margin: new go__default.Margin(20, 20, 0, 0),
|
7796
|
+
selectable: false,
|
7797
|
+
},
|
7798
|
+
{
|
7799
|
+
key: 97,
|
7800
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7801
|
+
group: 100,
|
7802
|
+
loc: '250 25',
|
7803
|
+
name: 'Evaporation Loss',
|
7804
|
+
color: AtoGojsEditorModel.ENUM_COLORS.FLAMINGO,
|
7805
|
+
},
|
7806
|
+
{
|
7807
|
+
key: 98,
|
7808
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7809
|
+
group: 100,
|
7810
|
+
loc: '110 290',
|
7811
|
+
name: 'Makeup Water',
|
7812
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7813
|
+
},
|
7814
|
+
{
|
7815
|
+
key: 99,
|
7816
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7817
|
+
group: 100,
|
7818
|
+
loc: '580 435',
|
7819
|
+
name: 'Blowdown Water',
|
7820
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
|
7821
|
+
},
|
7605
7822
|
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER, isGroup: true, name: 'Group' },
|
7606
7823
|
],
|
7607
7824
|
linkDataArray: [],
|
@@ -7758,6 +7975,58 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7758
7975
|
},
|
7759
7976
|
};
|
7760
7977
|
|
7978
|
+
class AtoNgVarDirective {
|
7979
|
+
set ngVar(context) {
|
7980
|
+
this.context.$implicit = this.context.ngVar = context;
|
7981
|
+
if (!this.hasView) {
|
7982
|
+
this.vcRef.createEmbeddedView(this.templateRef, this.context);
|
7983
|
+
this.hasView = true;
|
7984
|
+
}
|
7985
|
+
}
|
7986
|
+
constructor(templateRef, vcRef) {
|
7987
|
+
this.templateRef = templateRef;
|
7988
|
+
this.vcRef = vcRef;
|
7989
|
+
this.context = {
|
7990
|
+
$implicit: null,
|
7991
|
+
ngVar: null,
|
7992
|
+
};
|
7993
|
+
this.hasView = false;
|
7994
|
+
}
|
7995
|
+
}
|
7996
|
+
AtoNgVarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoNgVarDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
7997
|
+
AtoNgVarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoNgVarDirective, selector: "[ngVar]", inputs: { ngVar: "ngVar" }, ngImport: i0 });
|
7998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoNgVarDirective, decorators: [{
|
7999
|
+
type: Directive,
|
8000
|
+
args: [{
|
8001
|
+
selector: '[ngVar]',
|
8002
|
+
}]
|
8003
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { ngVar: [{
|
8004
|
+
type: Input
|
8005
|
+
}] } });
|
8006
|
+
|
8007
|
+
class AtoAssetParamsViewComponent {
|
8008
|
+
constructor() {
|
8009
|
+
this.isEditView = false;
|
8010
|
+
this.data = [];
|
8011
|
+
this.clickParamTableRow = new EventEmitter();
|
8012
|
+
}
|
8013
|
+
onClickRowParam(itemTable) {
|
8014
|
+
this.clickParamTableRow.emit(itemTable);
|
8015
|
+
}
|
8016
|
+
}
|
8017
|
+
AtoAssetParamsViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoAssetParamsViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
8018
|
+
AtoAssetParamsViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoAssetParamsViewComponent, selector: "ato-asset-params-view", inputs: { isEditView: "isEditView", data: "data" }, outputs: { clickParamTableRow: "clickParamTableRow" }, ngImport: i0, template: "<div class=\"d-flex flex-column flex-gap-2\">\n <div class=\"\" *ngFor=\"let tableParam of data\">\n <ng-template\n [ngTemplateOutlet]=\"tableParamTemplate\"\n [ngTemplateOutletContext]=\"{\n data: tableParam\n }\"\n ></ng-template>\n </div>\n</div>\n\n<ng-template #tableParamTemplate let-data=\"data\">\n <div\n class=\"d-flex flex-column asset-param-item w-100\"\n *ngVar=\"{ isCollapsed: true } as vars\"\n [style.backgroundColor]=\"data?.color\"\n >\n <div\n class=\"d-flex align-items-center justify-content-between py-1 pl-1 pr-2 cursor-pointer\"\n (click)=\"vars.isCollapsed = !vars.isCollapsed\"\n >\n <div class=\"font-size-14px flex-grow-1 text-truncate color-white\">{{ data?.title }}</div>\n <i\n class=\"fa-solid font-size-14px color-white {{ vars.isCollapsed ? 'fa-angle-right' : 'fa-angle-down' }}\"\n ></i>\n </div>\n <div class=\"px-1 pb-1\" *ngIf=\"!vars.isCollapsed\">\n <div class=\"table-asset-param-wrapper\" [style.backgroundColor]=\"data?.bgColor\">\n <table>\n <tbody>\n <tr\n *ngFor=\"let itemTable of data?.dataTable\"\n (click)=\"onClickRowParam(itemTable)\"\n class=\"cursor-pointer\"\n >\n <td class=\"font-size-13px\" [style.borderColor]=\"data?.borderTable\">\n {{ itemTable?.name }}\n </td>\n <td class=\"font-size-13px\" [style.borderColor]=\"data?.borderTable\">\n <div class=\"d-flex align-items-center\">\n <div\n class=\"mr-auto font-size-13px text-truncate flex-grow-1\"\n [style.color]=\"itemTable?.color\"\n >\n {{ itemTable?.value }}\n </div>\n <i *ngIf=\"isEditView\" class=\"fal fa-edit font-size-14px color-night-rider\"></i>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: [".asset-param-item{border-radius:5px}.asset-param-item .table-asset-param-wrapper{border-radius:5px;background-color:#f0f8ff}.asset-param-item .table-asset-param-wrapper table{border-collapse:collapse;width:100%}.asset-param-item .table-asset-param-wrapper table tbody tr td{border:1px solid red;height:30px;padding:4px}.color-white{color:#fff}.flex-gap-2{gap:.5rem}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: AtoNgVarDirective, selector: "[ngVar]", inputs: ["ngVar"] }] });
|
8019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoAssetParamsViewComponent, decorators: [{
|
8020
|
+
type: Component,
|
8021
|
+
args: [{ selector: 'ato-asset-params-view', template: "<div class=\"d-flex flex-column flex-gap-2\">\n <div class=\"\" *ngFor=\"let tableParam of data\">\n <ng-template\n [ngTemplateOutlet]=\"tableParamTemplate\"\n [ngTemplateOutletContext]=\"{\n data: tableParam\n }\"\n ></ng-template>\n </div>\n</div>\n\n<ng-template #tableParamTemplate let-data=\"data\">\n <div\n class=\"d-flex flex-column asset-param-item w-100\"\n *ngVar=\"{ isCollapsed: true } as vars\"\n [style.backgroundColor]=\"data?.color\"\n >\n <div\n class=\"d-flex align-items-center justify-content-between py-1 pl-1 pr-2 cursor-pointer\"\n (click)=\"vars.isCollapsed = !vars.isCollapsed\"\n >\n <div class=\"font-size-14px flex-grow-1 text-truncate color-white\">{{ data?.title }}</div>\n <i\n class=\"fa-solid font-size-14px color-white {{ vars.isCollapsed ? 'fa-angle-right' : 'fa-angle-down' }}\"\n ></i>\n </div>\n <div class=\"px-1 pb-1\" *ngIf=\"!vars.isCollapsed\">\n <div class=\"table-asset-param-wrapper\" [style.backgroundColor]=\"data?.bgColor\">\n <table>\n <tbody>\n <tr\n *ngFor=\"let itemTable of data?.dataTable\"\n (click)=\"onClickRowParam(itemTable)\"\n class=\"cursor-pointer\"\n >\n <td class=\"font-size-13px\" [style.borderColor]=\"data?.borderTable\">\n {{ itemTable?.name }}\n </td>\n <td class=\"font-size-13px\" [style.borderColor]=\"data?.borderTable\">\n <div class=\"d-flex align-items-center\">\n <div\n class=\"mr-auto font-size-13px text-truncate flex-grow-1\"\n [style.color]=\"itemTable?.color\"\n >\n {{ itemTable?.value }}\n </div>\n <i *ngIf=\"isEditView\" class=\"fal fa-edit font-size-14px color-night-rider\"></i>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: [".asset-param-item{border-radius:5px}.asset-param-item .table-asset-param-wrapper{border-radius:5px;background-color:#f0f8ff}.asset-param-item .table-asset-param-wrapper table{border-collapse:collapse;width:100%}.asset-param-item .table-asset-param-wrapper table tbody tr td{border:1px solid red;height:30px;padding:4px}.color-white{color:#fff}.flex-gap-2{gap:.5rem}\n"] }]
|
8022
|
+
}], propDecorators: { isEditView: [{
|
8023
|
+
type: Input
|
8024
|
+
}], data: [{
|
8025
|
+
type: Input
|
8026
|
+
}], clickParamTableRow: [{
|
8027
|
+
type: Output
|
8028
|
+
}] } });
|
8029
|
+
|
7761
8030
|
class AssetFlowComponent {
|
7762
8031
|
constructor() {
|
7763
8032
|
this.onClickParamOfTableEvent = new EventEmitter();
|
@@ -7770,16 +8039,55 @@ class AssetFlowComponent {
|
|
7770
8039
|
// isReadOnly: true,
|
7771
8040
|
};
|
7772
8041
|
this.flowData = {};
|
8042
|
+
this.isResponsiveView = false;
|
8043
|
+
}
|
8044
|
+
onResize(event) {
|
8045
|
+
// Now only Support Cooling Tower Responsive
|
8046
|
+
if (this.timeoutResizeWindow) {
|
8047
|
+
clearTimeout(this.timeoutResizeWindow);
|
8048
|
+
}
|
8049
|
+
this.timeoutResizeWindow = setTimeout(() => {
|
8050
|
+
this.checkResponsiveView();
|
8051
|
+
this.updateLocationReponsive();
|
8052
|
+
}, 1000);
|
8053
|
+
}
|
8054
|
+
checkResponsiveView() {
|
8055
|
+
if (this?.systemType ===
|
8056
|
+
AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER) {
|
8057
|
+
this.isResponsiveView = window.innerWidth < 1024;
|
8058
|
+
}
|
8059
|
+
else {
|
8060
|
+
this.isResponsiveView = false;
|
8061
|
+
}
|
8062
|
+
}
|
8063
|
+
updateLocationReponsive() {
|
8064
|
+
if (!this.flowData?.nodeDataArray) {
|
8065
|
+
this.setFlowData(_.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType + (this.isResponsiveView ? '_RESPONSIVE' : '')]);
|
8066
|
+
this.dataTableAssetParams = this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE);
|
8067
|
+
return;
|
8068
|
+
}
|
8069
|
+
_.forEach(_.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType + (this.isResponsiveView ? '_RESPONSIVE' : '')]?.nodeDataArray, (node) => {
|
8070
|
+
const itemFind = this.flowData?.nodeDataArray?.find((x) => node?.key === x?.key);
|
8071
|
+
if (itemFind) {
|
8072
|
+
itemFind.visible = node?.visible === false ? false : true;
|
8073
|
+
itemFind.loc = node?.loc;
|
8074
|
+
itemFind.margin = node?.margin;
|
8075
|
+
itemFind.padding = node?.padding;
|
8076
|
+
}
|
8077
|
+
});
|
8078
|
+
this.dataTableAssetParams = this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE);
|
8079
|
+
this.setFlowData(_.cloneDeep(this.flowData));
|
7773
8080
|
}
|
7774
8081
|
ngOnInit() {
|
7775
|
-
this.
|
8082
|
+
this.checkResponsiveView();
|
8083
|
+
this.updateLocationReponsive();
|
7776
8084
|
}
|
7777
8085
|
onClickParamOfTable($event) {
|
7778
8086
|
this.onClickParamOfTableEvent.emit($event);
|
7779
8087
|
}
|
7780
8088
|
getDefaultFlowData() {
|
7781
8089
|
const flowData = {
|
7782
|
-
...ATO_COMPONENTS_GROUP_DATA[this.systemType],
|
8090
|
+
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType],
|
7783
8091
|
linkFromPortIdProperty: 'fromPort',
|
7784
8092
|
linkToPortIdProperty: 'toPort',
|
7785
8093
|
};
|
@@ -7796,10 +8104,10 @@ class AssetFlowComponent {
|
|
7796
8104
|
}
|
7797
8105
|
}
|
7798
8106
|
AssetFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
7799
|
-
AssetFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AssetFlowComponent, selector: "ato-asset-flow", inputs: { selectedComponent: "selectedComponent", systemType: "systemType", isUseBase64: "isUseBase64", flowData: "flowData" }, outputs: { onClickParamOfTableEvent: "onClickParamOfTableEvent" }, viewQueries: [{ propertyName: "gjFlowDiagramTemp", first: true, predicate: AtoFlowDiagramLibComponent, descendants: true }], ngImport: i0, template: "<div class=\"h-100\"
|
8107
|
+
AssetFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AssetFlowComponent, selector: "ato-asset-flow", inputs: { selectedComponent: "selectedComponent", systemType: "systemType", isUseBase64: "isUseBase64", flowData: "flowData", isResponsiveView: "isResponsiveView", getFlowDataCallBack: "getFlowDataCallBack" }, outputs: { onClickParamOfTableEvent: "onClickParamOfTableEvent" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "gjFlowDiagramTemp", first: true, predicate: AtoFlowDiagramLibComponent, descendants: true }], ngImport: i0, template: "<div class=\"h-100 d-flex flex-column flex-gap-3 flex-grow-1 overflow-auto px-3 pb-3\">\n <div class=\"h-100 d-flex flex-column\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n [class]=\"!!isResponsiveView ? 'diagram-responsive-view' : 'flex-grow-1'\"\n ></ato-flow-diagram-lib>\n <div class=\"mt-2\" *ngIf=\"isResponsiveView\">\n <ato-asset-params-view\n [data]=\"dataTableAssetParams\"\n [isEditView]=\"true\"\n (clickParamTableRow)=\"onClickParamOfTable($event)\"\n ></ato-asset-params-view>\n </div>\n </div>\n</div>\n\n", styles: [".diagram-responsive-view{height:30vh}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: ["data", "isLoading"] }, { kind: "directive", type: AtoLoadingDirective, selector: "[atoLoading]", inputs: ["appLoading"] }, { kind: "component", type: AtoAssetParamsViewComponent, selector: "ato-asset-params-view", inputs: ["isEditView", "data"], outputs: ["clickParamTableRow"] }] });
|
7800
8108
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, decorators: [{
|
7801
8109
|
type: Component,
|
7802
|
-
args: [{ selector: 'ato-asset-flow', template: "<div class=\"h-100\"
|
8110
|
+
args: [{ selector: 'ato-asset-flow', template: "<div class=\"h-100 d-flex flex-column flex-gap-3 flex-grow-1 overflow-auto px-3 pb-3\">\n <div class=\"h-100 d-flex flex-column\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n [class]=\"!!isResponsiveView ? 'diagram-responsive-view' : 'flex-grow-1'\"\n ></ato-flow-diagram-lib>\n <div class=\"mt-2\" *ngIf=\"isResponsiveView\">\n <ato-asset-params-view\n [data]=\"dataTableAssetParams\"\n [isEditView]=\"true\"\n (clickParamTableRow)=\"onClickParamOfTable($event)\"\n ></ato-asset-params-view>\n </div>\n </div>\n</div>\n\n", styles: [".diagram-responsive-view{height:30vh}\n"] }]
|
7803
8111
|
}], propDecorators: { gjFlowDiagramTemp: [{
|
7804
8112
|
type: ViewChild,
|
7805
8113
|
args: [AtoFlowDiagramLibComponent]
|
@@ -7813,6 +8121,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
7813
8121
|
type: Input
|
7814
8122
|
}], flowData: [{
|
7815
8123
|
type: Input
|
8124
|
+
}], isResponsiveView: [{
|
8125
|
+
type: Input
|
8126
|
+
}], getFlowDataCallBack: [{
|
8127
|
+
type: Input
|
8128
|
+
}], onResize: [{
|
8129
|
+
type: HostListener,
|
8130
|
+
args: ['window:resize', ['$event']]
|
7816
8131
|
}] } });
|
7817
8132
|
|
7818
8133
|
class AtoWaterLibModule {
|
@@ -7821,11 +8136,21 @@ AtoWaterLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", versio
|
|
7821
8136
|
AtoWaterLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, declarations: [AtoWaterLibComponent,
|
7822
8137
|
AtoFlowDiagramLibComponent,
|
7823
8138
|
AssetFlowComponent,
|
7824
|
-
AtoLoadingDirective
|
8139
|
+
AtoLoadingDirective,
|
8140
|
+
AtoAssetParamsViewComponent,
|
8141
|
+
AtoNgVarDirective], imports: [CommonModule,
|
8142
|
+
BrowserModule,
|
8143
|
+
ReactiveFormsModule,
|
8144
|
+
FormsModule], exports: [AtoWaterLibComponent,
|
7825
8145
|
AtoFlowDiagramLibComponent,
|
7826
8146
|
AssetFlowComponent,
|
7827
|
-
AtoLoadingDirective
|
7828
|
-
|
8147
|
+
AtoLoadingDirective,
|
8148
|
+
AtoAssetParamsViewComponent,
|
8149
|
+
AtoNgVarDirective] });
|
8150
|
+
AtoWaterLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, imports: [CommonModule,
|
8151
|
+
BrowserModule,
|
8152
|
+
ReactiveFormsModule,
|
8153
|
+
FormsModule] });
|
7829
8154
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, decorators: [{
|
7830
8155
|
type: NgModule,
|
7831
8156
|
args: [{
|
@@ -7834,15 +8159,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
7834
8159
|
AtoFlowDiagramLibComponent,
|
7835
8160
|
AssetFlowComponent,
|
7836
8161
|
AtoLoadingDirective,
|
8162
|
+
AtoAssetParamsViewComponent,
|
8163
|
+
AtoNgVarDirective,
|
7837
8164
|
],
|
7838
8165
|
imports: [
|
7839
|
-
CommonModule
|
8166
|
+
CommonModule,
|
8167
|
+
BrowserModule,
|
8168
|
+
ReactiveFormsModule,
|
8169
|
+
FormsModule,
|
7840
8170
|
],
|
7841
8171
|
exports: [
|
7842
8172
|
AtoWaterLibComponent,
|
7843
8173
|
AtoFlowDiagramLibComponent,
|
7844
8174
|
AssetFlowComponent,
|
7845
|
-
AtoLoadingDirective
|
8175
|
+
AtoLoadingDirective,
|
8176
|
+
AtoAssetParamsViewComponent,
|
8177
|
+
AtoNgVarDirective
|
7846
8178
|
]
|
7847
8179
|
}]
|
7848
8180
|
}] });
|
@@ -7856,5 +8188,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
7856
8188
|
* Generated bundle index. Do not edit.
|
7857
8189
|
*/
|
7858
8190
|
|
7859
|
-
export { AssetFlowComponent, AtoFlowDiagramLibComponent, AtoLoadingDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
|
8191
|
+
export { AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
|
7860
8192
|
//# sourceMappingURL=ato-water-lib.mjs.map
|