ato-water-lib 0.0.18 → 0.0.20
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 +3 -3
- package/esm2020/lib/constants/components-group-const.mjs +198 -11
- package/esm2020/lib/directive/ng-var.directive.mjs +31 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +21 -2
- package/esm2020/lib/models/gojs-editor.model.mjs +5 -1
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/ato-water-lib.mjs +268 -31
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +369 -43
- 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 +396 -1
- 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,13 +1,14 @@
|
|
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
|
-
import go__default from 'gojs';
|
5
4
|
import _ from 'lodash';
|
6
5
|
import moment from 'moment';
|
7
6
|
import { Subject, Subscription } from 'rxjs';
|
8
7
|
import * as i1 from '@angular/common';
|
9
8
|
import { DecimalPipe, CommonModule } from '@angular/common';
|
10
9
|
import { v4 } from 'uuid';
|
10
|
+
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
11
|
+
import { BrowserModule } from '@angular/platform-browser';
|
11
12
|
|
12
13
|
class AtoWaterLibService {
|
13
14
|
constructor() { }
|
@@ -1030,6 +1031,7 @@ class AtoGojsEditorModel {
|
|
1030
1031
|
ENUM_TEMPLATES["TURBINES"] = "Turbines";
|
1031
1032
|
// Plant Basic
|
1032
1033
|
ENUM_TEMPLATES["GROUP_BASIC_COMPONENT"] = "Group Basic Component";
|
1034
|
+
ENUM_TEMPLATES["TEXT_LABEL"] = "label";
|
1033
1035
|
})(ENUM_TEMPLATES = AtoGojsEditorModel.ENUM_TEMPLATES || (AtoGojsEditorModel.ENUM_TEMPLATES = {}));
|
1034
1036
|
// System Types
|
1035
1037
|
let ENUM_TYPES;
|
@@ -1739,6 +1741,9 @@ class AtoGojsEditorModel {
|
|
1739
1741
|
[ENUM_TEMPLATES.VALUE_LABEL]: {
|
1740
1742
|
name: ENUM_TEMPLATES.VALUE_LABEL,
|
1741
1743
|
},
|
1744
|
+
[ENUM_TEMPLATES.TEXT_LABEL]: {
|
1745
|
+
name: ENUM_TEMPLATES.TEXT_LABEL,
|
1746
|
+
},
|
1742
1747
|
[ENUM_TEMPLATES.DATA_BOX]: {
|
1743
1748
|
name: ENUM_TEMPLATES.DATA_BOX,
|
1744
1749
|
},
|
@@ -3441,6 +3446,10 @@ class AtoDefaultGojsEditor {
|
|
3441
3446
|
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL) {
|
3442
3447
|
this.makeValueLabelTemplate();
|
3443
3448
|
}
|
3449
|
+
// Label
|
3450
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL) {
|
3451
|
+
this.makeTextLabelTemplate();
|
3452
|
+
}
|
3444
3453
|
// Zone item
|
3445
3454
|
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM) {
|
3446
3455
|
this.makeZoneItemTemplate();
|
@@ -3921,6 +3930,19 @@ class AtoDefaultGojsEditor {
|
|
3921
3930
|
}), new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')))));
|
3922
3931
|
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL, node);
|
3923
3932
|
}
|
3933
|
+
makeTextLabelTemplate(size = { w: NaN, h: 20 }) {
|
3934
|
+
const node = this.$(go.Node, 'Auto', {
|
3935
|
+
movable: false,
|
3936
|
+
isSelected: false,
|
3937
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
|
3938
|
+
margin: new go.Margin(0, 5, 10, 0),
|
3939
|
+
textAlign: 'center',
|
3940
|
+
font: 'bold 16px Arial',
|
3941
|
+
wrap: go.TextBlock.WrapFit,
|
3942
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
3943
|
+
}, new go.Binding('stroke', 'color'), new go.Binding('text', 'name'), new go.Binding('visible', 'visible')))));
|
3944
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL, node);
|
3945
|
+
}
|
3924
3946
|
makeTextTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 2 }) {
|
3925
3947
|
const self = this;
|
3926
3948
|
const contextMenu = this.$(go.Adornment, 'Vertical', this.$('ContextMenuButton', this.$(go.TextBlock, 'Option 1'), {
|
@@ -5244,7 +5266,9 @@ class AtoDefaultGojsEditor {
|
|
5244
5266
|
{
|
5245
5267
|
zOrder: 2,
|
5246
5268
|
// padding: new go.Margin(0, 0, 0, 200),
|
5247
|
-
}, new go.Binding('padding', 'padding'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
5269
|
+
}, 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) => {
|
5270
|
+
return typeof data?.visible === 'boolean' ? data?.visible : true;
|
5271
|
+
}),
|
5248
5272
|
// Header
|
5249
5273
|
this.$(go.Panel, 'Auto', {
|
5250
5274
|
stretch: go.GraphObject.Fill,
|
@@ -6459,10 +6483,10 @@ class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
6459
6483
|
}
|
6460
6484
|
}
|
6461
6485
|
AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
6462
|
-
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\"
|
6486
|
+
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"] }] });
|
6463
6487
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
|
6464
6488
|
type: Component,
|
6465
|
-
args: [{ selector: 'ato-flow-diagram-lib', template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" atoLoading [appLoading]=\"data === null || !!isLoading\"
|
6489
|
+
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" }]
|
6466
6490
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { myDiagramDivTemp: [{
|
6467
6491
|
type: ViewChild,
|
6468
6492
|
args: ['myDiagramDivTemp']
|
@@ -6946,9 +6970,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
6946
6970
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
6947
6971
|
group: 100,
|
6948
6972
|
loc: '20 10',
|
6949
|
-
padding: new
|
6973
|
+
padding: new go.Margin(0, 0, 0, 20),
|
6950
6974
|
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.CERULEAN],
|
6951
|
-
minSizeValue: new
|
6975
|
+
minSizeValue: new go.Size(100, NaN),
|
6952
6976
|
selectable: false,
|
6953
6977
|
dataTable: [
|
6954
6978
|
{
|
@@ -6983,7 +7007,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
6983
7007
|
group: 100,
|
6984
7008
|
loc: '420 40',
|
6985
7009
|
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.DANUBE],
|
6986
|
-
minSizeValue: new
|
7010
|
+
minSizeValue: new go.Size(100, NaN),
|
6987
7011
|
selectable: false,
|
6988
7012
|
dataTable: [
|
6989
7013
|
{
|
@@ -7012,7 +7036,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7012
7036
|
group: 100,
|
7013
7037
|
loc: '590 150',
|
7014
7038
|
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE],
|
7015
|
-
minSizeValue: new
|
7039
|
+
minSizeValue: new go.Size(100, NaN),
|
7016
7040
|
selectable: false,
|
7017
7041
|
dataTable: [
|
7018
7042
|
{
|
@@ -7041,7 +7065,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7041
7065
|
group: 100,
|
7042
7066
|
loc: '30 370',
|
7043
7067
|
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.GALLIANO],
|
7044
|
-
minSizeValue: new
|
7068
|
+
minSizeValue: new go.Size(100, NaN),
|
7045
7069
|
selectable: false,
|
7046
7070
|
dataTable: [
|
7047
7071
|
{
|
@@ -7070,7 +7094,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7070
7094
|
source: AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH,
|
7071
7095
|
group: 100,
|
7072
7096
|
loc: '0 0',
|
7073
|
-
margin: new
|
7097
|
+
margin: new go.Margin(130, 0, 0, 0),
|
7074
7098
|
selectable: false,
|
7075
7099
|
},
|
7076
7100
|
{
|
@@ -7479,7 +7503,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7479
7503
|
[AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER]: {
|
7480
7504
|
nodeDataArray: [
|
7481
7505
|
{
|
7482
|
-
key:
|
7506
|
+
key: 88,
|
7483
7507
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
|
7484
7508
|
group: 100,
|
7485
7509
|
loc: '0 0',
|
@@ -7491,7 +7515,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7491
7515
|
color: '#a8438d',
|
7492
7516
|
},
|
7493
7517
|
{
|
7494
|
-
key:
|
7518
|
+
key: 89,
|
7495
7519
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
|
7496
7520
|
group: 100,
|
7497
7521
|
loc: '1000 700',
|
@@ -7503,13 +7527,13 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7503
7527
|
color: '#a8438d',
|
7504
7528
|
},
|
7505
7529
|
{
|
7506
|
-
key:
|
7530
|
+
key: 90,
|
7507
7531
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7508
7532
|
group: 100,
|
7509
7533
|
loc: '30 160',
|
7510
|
-
padding: new
|
7534
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7511
7535
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS],
|
7512
|
-
minSizeValue: new
|
7536
|
+
minSizeValue: new go.Size(100, NaN),
|
7513
7537
|
selectable: false,
|
7514
7538
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS].map((e) => ({
|
7515
7539
|
...e,
|
@@ -7517,15 +7541,16 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7517
7541
|
isEditable: true,
|
7518
7542
|
maxSizeValue: 140,
|
7519
7543
|
})),
|
7544
|
+
visible: true
|
7520
7545
|
},
|
7521
7546
|
{
|
7522
|
-
key:
|
7547
|
+
key: 91,
|
7523
7548
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7524
7549
|
group: 100,
|
7525
|
-
padding: new
|
7550
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7526
7551
|
loc: '30 270',
|
7527
7552
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER],
|
7528
|
-
minSizeValue: new
|
7553
|
+
minSizeValue: new go.Size(100, NaN),
|
7529
7554
|
selectable: false,
|
7530
7555
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER].map((e) => ({
|
7531
7556
|
...e,
|
@@ -7535,13 +7560,13 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7535
7560
|
})),
|
7536
7561
|
},
|
7537
7562
|
{
|
7538
|
-
key:
|
7563
|
+
key: 92,
|
7539
7564
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7540
7565
|
group: 100,
|
7541
|
-
padding: new
|
7566
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7542
7567
|
loc: '580 250',
|
7543
7568
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.WARMER_WATER],
|
7544
|
-
minSizeValue: new
|
7569
|
+
minSizeValue: new go.Size(100, NaN),
|
7545
7570
|
selectable: false,
|
7546
7571
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.WARMER_WATER].map((e) => ({
|
7547
7572
|
...e,
|
@@ -7551,13 +7576,13 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7551
7576
|
})),
|
7552
7577
|
},
|
7553
7578
|
{
|
7554
|
-
key:
|
7579
|
+
key: 93,
|
7555
7580
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7556
7581
|
group: 100,
|
7557
|
-
padding: new
|
7582
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7558
7583
|
loc: '580 560',
|
7559
7584
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER],
|
7560
|
-
minSizeValue: new
|
7585
|
+
minSizeValue: new go.Size(100, NaN),
|
7561
7586
|
selectable: false,
|
7562
7587
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER].map((e) => ({
|
7563
7588
|
...e,
|
@@ -7567,13 +7592,13 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7567
7592
|
})),
|
7568
7593
|
},
|
7569
7594
|
{
|
7570
|
-
key:
|
7595
|
+
key: 94,
|
7571
7596
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7572
7597
|
group: 100,
|
7573
|
-
padding: new
|
7598
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7574
7599
|
loc: '450 20',
|
7575
7600
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS],
|
7576
|
-
minSizeValue: new
|
7601
|
+
minSizeValue: new go.Size(100, NaN),
|
7577
7602
|
selectable: false,
|
7578
7603
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS].map((e) => ({
|
7579
7604
|
...e,
|
@@ -7583,13 +7608,13 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7583
7608
|
})),
|
7584
7609
|
},
|
7585
7610
|
{
|
7586
|
-
key:
|
7611
|
+
key: 95,
|
7587
7612
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7588
7613
|
group: 100,
|
7589
|
-
padding: new
|
7614
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7590
7615
|
loc: '730 20',
|
7591
7616
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY],
|
7592
|
-
minSizeValue: new
|
7617
|
+
minSizeValue: new go.Size(100, NaN),
|
7593
7618
|
selectable: false,
|
7594
7619
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => ({
|
7595
7620
|
...e,
|
@@ -7598,15 +7623,201 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7598
7623
|
maxSizeValue: 130,
|
7599
7624
|
})),
|
7600
7625
|
},
|
7626
|
+
{
|
7627
|
+
key: 96,
|
7628
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
|
7629
|
+
source: AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH,
|
7630
|
+
group: 100,
|
7631
|
+
loc: '0 0',
|
7632
|
+
margin: new go.Margin(195, 20, 0, 0),
|
7633
|
+
selectable: false,
|
7634
|
+
},
|
7635
|
+
// {
|
7636
|
+
// key: 97,
|
7637
|
+
// type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7638
|
+
// group: 100,
|
7639
|
+
// loc: '250 25',
|
7640
|
+
// name: 'Evaporation Loss',
|
7641
|
+
// color: AtoGojsEditorModel.ENUM_COLORS.FLAMINGO,
|
7642
|
+
// visible: false,
|
7643
|
+
// },
|
7644
|
+
// {
|
7645
|
+
// key: 98,
|
7646
|
+
// type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7647
|
+
// group: 100,
|
7648
|
+
// loc: '110 290',
|
7649
|
+
// name: 'Makeup Water',
|
7650
|
+
// color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7651
|
+
// visible: false,
|
7652
|
+
// },
|
7653
|
+
// {
|
7654
|
+
// key: 99,
|
7655
|
+
// type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7656
|
+
// group: 100,
|
7657
|
+
// loc: '580 435',
|
7658
|
+
// name: 'Blowdown Water',
|
7659
|
+
// color: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
|
7660
|
+
// visible: false,
|
7661
|
+
// },
|
7662
|
+
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER, isGroup: true, name: 'Group' },
|
7663
|
+
],
|
7664
|
+
linkDataArray: [],
|
7665
|
+
},
|
7666
|
+
[AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER + '_RESPONSIVE']: {
|
7667
|
+
nodeDataArray: [
|
7668
|
+
{
|
7669
|
+
key: 88,
|
7670
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
|
7671
|
+
group: 100,
|
7672
|
+
loc: '0 0',
|
7673
|
+
data: {
|
7674
|
+
quantity: 2222,
|
7675
|
+
unit: 'm³',
|
7676
|
+
},
|
7677
|
+
name: 'top-left-marker',
|
7678
|
+
color: '#a8438d',
|
7679
|
+
},
|
7680
|
+
{
|
7681
|
+
key: 89,
|
7682
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY,
|
7683
|
+
group: 100,
|
7684
|
+
loc: '700 300',
|
7685
|
+
data: {
|
7686
|
+
quantity: 3333,
|
7687
|
+
unit: 'm³',
|
7688
|
+
},
|
7689
|
+
name: 'bottom-right-marker',
|
7690
|
+
color: '#a8438d',
|
7691
|
+
},
|
7692
|
+
{
|
7693
|
+
key: 90,
|
7694
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7695
|
+
group: 100,
|
7696
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7697
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS],
|
7698
|
+
minSizeValue: new go.Size(100, NaN),
|
7699
|
+
selectable: false,
|
7700
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS].map((e) => ({
|
7701
|
+
...e,
|
7702
|
+
value: '',
|
7703
|
+
isEditable: true,
|
7704
|
+
maxSizeValue: 130,
|
7705
|
+
})),
|
7706
|
+
visible: false,
|
7707
|
+
},
|
7601
7708
|
{
|
7602
7709
|
key: 91,
|
7710
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7711
|
+
group: 100,
|
7712
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7713
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY],
|
7714
|
+
minSizeValue: new go.Size(100, NaN),
|
7715
|
+
selectable: false,
|
7716
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => ({
|
7717
|
+
...e,
|
7718
|
+
value: '',
|
7719
|
+
isEditable: true,
|
7720
|
+
maxSizeValue: 130,
|
7721
|
+
})),
|
7722
|
+
visible: false,
|
7723
|
+
},
|
7724
|
+
{
|
7725
|
+
key: 92,
|
7726
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7727
|
+
group: 100,
|
7728
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7729
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS],
|
7730
|
+
minSizeValue: new go.Size(100, NaN),
|
7731
|
+
selectable: false,
|
7732
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS].map((e) => ({
|
7733
|
+
...e,
|
7734
|
+
value: '',
|
7735
|
+
isEditable: true,
|
7736
|
+
maxSizeValue: 140,
|
7737
|
+
})),
|
7738
|
+
visible: false,
|
7739
|
+
},
|
7740
|
+
{
|
7741
|
+
key: 93,
|
7742
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7743
|
+
group: 100,
|
7744
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7745
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER],
|
7746
|
+
minSizeValue: new go.Size(100, NaN),
|
7747
|
+
selectable: false,
|
7748
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER].map((e) => ({
|
7749
|
+
...e,
|
7750
|
+
value: '',
|
7751
|
+
isEditable: true,
|
7752
|
+
maxSizeValue: 120,
|
7753
|
+
})),
|
7754
|
+
visible: false,
|
7755
|
+
},
|
7756
|
+
{
|
7757
|
+
key: 94,
|
7758
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7759
|
+
group: 100,
|
7760
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7761
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.WARMER_WATER],
|
7762
|
+
minSizeValue: new go.Size(100, NaN),
|
7763
|
+
selectable: false,
|
7764
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.WARMER_WATER].map((e) => ({
|
7765
|
+
...e,
|
7766
|
+
value: '',
|
7767
|
+
isEditable: true,
|
7768
|
+
maxSizeValue: 120,
|
7769
|
+
})),
|
7770
|
+
visible: false,
|
7771
|
+
},
|
7772
|
+
{
|
7773
|
+
key: 95,
|
7774
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7775
|
+
group: 100,
|
7776
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7777
|
+
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER],
|
7778
|
+
minSizeValue: new go.Size(100, NaN),
|
7779
|
+
selectable: false,
|
7780
|
+
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER].map((e) => ({
|
7781
|
+
...e,
|
7782
|
+
value: '',
|
7783
|
+
isEditable: true,
|
7784
|
+
maxSizeValue: 120,
|
7785
|
+
})),
|
7786
|
+
visible: false,
|
7787
|
+
},
|
7788
|
+
{
|
7789
|
+
key: 96,
|
7603
7790
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE,
|
7604
7791
|
source: AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH,
|
7605
7792
|
group: 100,
|
7606
7793
|
loc: '0 0',
|
7607
|
-
margin: new
|
7794
|
+
margin: new go.Margin(20, 20, 0, 0),
|
7608
7795
|
selectable: false,
|
7609
7796
|
},
|
7797
|
+
{
|
7798
|
+
key: 97,
|
7799
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7800
|
+
group: 100,
|
7801
|
+
loc: '250 25',
|
7802
|
+
name: 'Evaporation Loss',
|
7803
|
+
color: AtoGojsEditorModel.ENUM_COLORS.FLAMINGO,
|
7804
|
+
},
|
7805
|
+
{
|
7806
|
+
key: 98,
|
7807
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7808
|
+
group: 100,
|
7809
|
+
loc: '110 290',
|
7810
|
+
name: 'Makeup Water',
|
7811
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
7812
|
+
},
|
7813
|
+
{
|
7814
|
+
key: 99,
|
7815
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
|
7816
|
+
group: 100,
|
7817
|
+
loc: '580 435',
|
7818
|
+
name: 'Blowdown Water',
|
7819
|
+
color: AtoGojsEditorModel.ENUM_COLORS.CARROT_ORANGE,
|
7820
|
+
},
|
7610
7821
|
{ key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER, isGroup: true, name: 'Group' },
|
7611
7822
|
],
|
7612
7823
|
linkDataArray: [],
|
@@ -7619,7 +7830,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7619
7830
|
source: AtoGojsEditorModel.IMAGE_BOILER_PATH,
|
7620
7831
|
group: 100,
|
7621
7832
|
loc: '0 0',
|
7622
|
-
margin: new
|
7833
|
+
margin: new go.Margin(0, 0, 0, 0),
|
7623
7834
|
selectable: false,
|
7624
7835
|
width: 1038,
|
7625
7836
|
height: 516,
|
@@ -7763,6 +7974,58 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7763
7974
|
},
|
7764
7975
|
};
|
7765
7976
|
|
7977
|
+
class AtoNgVarDirective {
|
7978
|
+
set ngVar(context) {
|
7979
|
+
this.context.$implicit = this.context.ngVar = context;
|
7980
|
+
if (!this.hasView) {
|
7981
|
+
this.vcRef.createEmbeddedView(this.templateRef, this.context);
|
7982
|
+
this.hasView = true;
|
7983
|
+
}
|
7984
|
+
}
|
7985
|
+
constructor(templateRef, vcRef) {
|
7986
|
+
this.templateRef = templateRef;
|
7987
|
+
this.vcRef = vcRef;
|
7988
|
+
this.context = {
|
7989
|
+
$implicit: null,
|
7990
|
+
ngVar: null,
|
7991
|
+
};
|
7992
|
+
this.hasView = false;
|
7993
|
+
}
|
7994
|
+
}
|
7995
|
+
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 });
|
7996
|
+
AtoNgVarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoNgVarDirective, selector: "[ngVar]", inputs: { ngVar: "ngVar" }, ngImport: i0 });
|
7997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoNgVarDirective, decorators: [{
|
7998
|
+
type: Directive,
|
7999
|
+
args: [{
|
8000
|
+
selector: '[ngVar]',
|
8001
|
+
}]
|
8002
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { ngVar: [{
|
8003
|
+
type: Input
|
8004
|
+
}] } });
|
8005
|
+
|
8006
|
+
class AtoAssetParamsViewComponent {
|
8007
|
+
constructor() {
|
8008
|
+
this.isEditView = false;
|
8009
|
+
this.data = [];
|
8010
|
+
this.clickParamTableRow = new EventEmitter();
|
8011
|
+
}
|
8012
|
+
onClickRowParam(itemTable) {
|
8013
|
+
this.clickParamTableRow.emit(itemTable);
|
8014
|
+
}
|
8015
|
+
}
|
8016
|
+
AtoAssetParamsViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoAssetParamsViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
8017
|
+
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"] }] });
|
8018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoAssetParamsViewComponent, decorators: [{
|
8019
|
+
type: Component,
|
8020
|
+
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"] }]
|
8021
|
+
}], propDecorators: { isEditView: [{
|
8022
|
+
type: Input
|
8023
|
+
}], data: [{
|
8024
|
+
type: Input
|
8025
|
+
}], clickParamTableRow: [{
|
8026
|
+
type: Output
|
8027
|
+
}] } });
|
8028
|
+
|
7766
8029
|
class AssetFlowComponent {
|
7767
8030
|
constructor() {
|
7768
8031
|
this.onClickParamOfTableEvent = new EventEmitter();
|
@@ -7775,16 +8038,55 @@ class AssetFlowComponent {
|
|
7775
8038
|
// isReadOnly: true,
|
7776
8039
|
};
|
7777
8040
|
this.flowData = {};
|
8041
|
+
this.isResponsiveView = false;
|
8042
|
+
}
|
8043
|
+
onResize(event) {
|
8044
|
+
// Now only Support Cooling Tower Responsive
|
8045
|
+
if (this.timeoutResizeWindow) {
|
8046
|
+
clearTimeout(this.timeoutResizeWindow);
|
8047
|
+
}
|
8048
|
+
this.timeoutResizeWindow = setTimeout(() => {
|
8049
|
+
this.checkResponsiveView();
|
8050
|
+
this.updateLocationReponsive();
|
8051
|
+
}, 1000);
|
8052
|
+
}
|
8053
|
+
checkResponsiveView() {
|
8054
|
+
if (this?.systemType ===
|
8055
|
+
AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER) {
|
8056
|
+
this.isResponsiveView = window.innerWidth < 1024;
|
8057
|
+
}
|
8058
|
+
else {
|
8059
|
+
this.isResponsiveView = false;
|
8060
|
+
}
|
8061
|
+
}
|
8062
|
+
updateLocationReponsive() {
|
8063
|
+
if (!this.flowData?.nodeDataArray) {
|
8064
|
+
this.setFlowData(_.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType + (this.isResponsiveView ? '_RESPONSIVE' : '')]);
|
8065
|
+
this.dataTableAssetParams = this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE);
|
8066
|
+
return;
|
8067
|
+
}
|
8068
|
+
_.forEach(_.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType + (this.isResponsiveView ? '_RESPONSIVE' : '')]?.nodeDataArray, (node) => {
|
8069
|
+
const itemFind = this.flowData?.nodeDataArray?.find((x) => node?.key === x?.key);
|
8070
|
+
if (itemFind) {
|
8071
|
+
itemFind.visible = node?.visible === false ? false : true;
|
8072
|
+
itemFind.loc = node?.loc;
|
8073
|
+
itemFind.margin = node?.margin;
|
8074
|
+
itemFind.padding = node?.padding;
|
8075
|
+
}
|
8076
|
+
});
|
8077
|
+
this.dataTableAssetParams = this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE);
|
8078
|
+
this.setFlowData(_.cloneDeep(this.flowData));
|
7778
8079
|
}
|
7779
8080
|
ngOnInit() {
|
7780
|
-
this.
|
8081
|
+
this.checkResponsiveView();
|
8082
|
+
this.updateLocationReponsive();
|
7781
8083
|
}
|
7782
8084
|
onClickParamOfTable($event) {
|
7783
8085
|
this.onClickParamOfTableEvent.emit($event);
|
7784
8086
|
}
|
7785
8087
|
getDefaultFlowData() {
|
7786
8088
|
const flowData = {
|
7787
|
-
...ATO_COMPONENTS_GROUP_DATA[this.systemType],
|
8089
|
+
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType],
|
7788
8090
|
linkFromPortIdProperty: 'fromPort',
|
7789
8091
|
linkToPortIdProperty: 'toPort',
|
7790
8092
|
};
|
@@ -7801,10 +8103,10 @@ class AssetFlowComponent {
|
|
7801
8103
|
}
|
7802
8104
|
}
|
7803
8105
|
AssetFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
7804
|
-
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\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n
|
8106
|
+
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"] }] });
|
7805
8107
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, decorators: [{
|
7806
8108
|
type: Component,
|
7807
|
-
args: [{ selector: 'ato-asset-flow', template: "<div class=\"h-100\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n
|
8109
|
+
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"] }]
|
7808
8110
|
}], propDecorators: { gjFlowDiagramTemp: [{
|
7809
8111
|
type: ViewChild,
|
7810
8112
|
args: [AtoFlowDiagramLibComponent]
|
@@ -7818,6 +8120,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
7818
8120
|
type: Input
|
7819
8121
|
}], flowData: [{
|
7820
8122
|
type: Input
|
8123
|
+
}], isResponsiveView: [{
|
8124
|
+
type: Input
|
8125
|
+
}], getFlowDataCallBack: [{
|
8126
|
+
type: Input
|
8127
|
+
}], onResize: [{
|
8128
|
+
type: HostListener,
|
8129
|
+
args: ['window:resize', ['$event']]
|
7821
8130
|
}] } });
|
7822
8131
|
|
7823
8132
|
class AtoWaterLibModule {
|
@@ -7826,11 +8135,21 @@ AtoWaterLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", versio
|
|
7826
8135
|
AtoWaterLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, declarations: [AtoWaterLibComponent,
|
7827
8136
|
AtoFlowDiagramLibComponent,
|
7828
8137
|
AssetFlowComponent,
|
7829
|
-
AtoLoadingDirective
|
8138
|
+
AtoLoadingDirective,
|
8139
|
+
AtoAssetParamsViewComponent,
|
8140
|
+
AtoNgVarDirective], imports: [CommonModule,
|
8141
|
+
BrowserModule,
|
8142
|
+
ReactiveFormsModule,
|
8143
|
+
FormsModule], exports: [AtoWaterLibComponent,
|
7830
8144
|
AtoFlowDiagramLibComponent,
|
7831
8145
|
AssetFlowComponent,
|
7832
|
-
AtoLoadingDirective
|
7833
|
-
|
8146
|
+
AtoLoadingDirective,
|
8147
|
+
AtoAssetParamsViewComponent,
|
8148
|
+
AtoNgVarDirective] });
|
8149
|
+
AtoWaterLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, imports: [CommonModule,
|
8150
|
+
BrowserModule,
|
8151
|
+
ReactiveFormsModule,
|
8152
|
+
FormsModule] });
|
7834
8153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, decorators: [{
|
7835
8154
|
type: NgModule,
|
7836
8155
|
args: [{
|
@@ -7839,15 +8158,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
7839
8158
|
AtoFlowDiagramLibComponent,
|
7840
8159
|
AssetFlowComponent,
|
7841
8160
|
AtoLoadingDirective,
|
8161
|
+
AtoAssetParamsViewComponent,
|
8162
|
+
AtoNgVarDirective,
|
7842
8163
|
],
|
7843
8164
|
imports: [
|
7844
|
-
CommonModule
|
8165
|
+
CommonModule,
|
8166
|
+
BrowserModule,
|
8167
|
+
ReactiveFormsModule,
|
8168
|
+
FormsModule,
|
7845
8169
|
],
|
7846
8170
|
exports: [
|
7847
8171
|
AtoWaterLibComponent,
|
7848
8172
|
AtoFlowDiagramLibComponent,
|
7849
8173
|
AssetFlowComponent,
|
7850
|
-
AtoLoadingDirective
|
8174
|
+
AtoLoadingDirective,
|
8175
|
+
AtoAssetParamsViewComponent,
|
8176
|
+
AtoNgVarDirective
|
7851
8177
|
]
|
7852
8178
|
}]
|
7853
8179
|
}] });
|
@@ -7861,5 +8187,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
7861
8187
|
* Generated bundle index. Do not edit.
|
7862
8188
|
*/
|
7863
8189
|
|
7864
|
-
export { AssetFlowComponent, AtoFlowDiagramLibComponent, AtoLoadingDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
|
8190
|
+
export { AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
|
7865
8191
|
//# sourceMappingURL=ato-water-lib.mjs.map
|