ato-water-lib 0.0.6 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./ato-water-lib.component";
3
- import * as i2 from "./test-button/test-button.component";
3
+ import * as i2 from "./components/flow-diagram-lib/flow-diagram-lib.component";
4
4
  export declare class AtoWaterLibModule {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<AtoWaterLibModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<AtoWaterLibModule, [typeof i1.AtoWaterLibComponent, typeof i2.TestButtonComponent], never, [typeof i1.AtoWaterLibComponent, typeof i2.TestButtonComponent]>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AtoWaterLibModule, [typeof i1.AtoWaterLibComponent, typeof i2.AtoFlowDiagramLibComponent], never, [typeof i1.AtoWaterLibComponent, typeof i2.AtoFlowDiagramLibComponent]>;
7
7
  static ɵinj: i0.ɵɵInjectorDeclaration<AtoWaterLibModule>;
8
8
  }
@@ -0,0 +1,17 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AtoDefaultGojsEditor } from '../../models/default-gojs-editor.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor implements OnInit {
5
+ myDiagramDivTemp: any;
6
+ _data: any;
7
+ showNotificationIcon: any;
8
+ set data(v: any);
9
+ isLoading: boolean;
10
+ get data(): any;
11
+ constructor();
12
+ ngOnInit(): void;
13
+ loadDiagram(): void;
14
+ findNodeForKey(key: number | string): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtoFlowDiagramLibComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtoFlowDiagramLibComponent, "ato-flow-diagram-lib", never, { "showNotificationIcon": "showNotificationIcon"; "data": "data"; "isLoading": "isLoading"; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,162 @@
1
+ export declare enum ATO_ABBREVIATION {
2
+ L = "L",
3
+ KL = "KL",
4
+ gal = "gal",
5
+ kGal = "Kgal",
6
+ m3 = "m3",
7
+ m3_Special = "m\u00B3",
8
+ Wh = "Wh",
9
+ kWh = "kWh",
10
+ cf = "cf",
11
+ th = "th",
12
+ BTU = "BTU",
13
+ BTU_UNIT = "BTU/unit",
14
+ MM_BTU = "MMBTU",
15
+ m3_unit = "m3/unit",
16
+ m3_unit_Special = "m\u00B3/unit",
17
+ J = "J",
18
+ Bbl = "Bbl",
19
+ mg = "mg",
20
+ ALL = "ALL",
21
+ AFN = "AFN",
22
+ ARS = "ARS",
23
+ AWG = "AWG",
24
+ AUD = "AUD",
25
+ AZN = "AZN",
26
+ BSD = "BSD",
27
+ BBD = "BBD",
28
+ BYN = "BYN",
29
+ BZD = "BZD",
30
+ BMD = "BMD",
31
+ BOB = "BOB",
32
+ BAM = "BAM",
33
+ BWP = "BWP",
34
+ BGN = "BGN",
35
+ BRL = "BRL",
36
+ BND = "BND",
37
+ KHR = "KHR",
38
+ CAD = "CAD",
39
+ KYD = "KYD",
40
+ CLP = "CLP",
41
+ CNY = "CNY",
42
+ COP = "COP",
43
+ CRC = "CRC",
44
+ HRK = "HRK",
45
+ CUP = "CUP",
46
+ CZK = "CZK",
47
+ DKK = "DKK",
48
+ DOP = "DOP",
49
+ XCD = "XCD",
50
+ EGP = "EGP",
51
+ SVC = "SVC",
52
+ EUR = "EUR",
53
+ FKP = "FKP",
54
+ FJD = "FJD",
55
+ GHS = "GHS",
56
+ GIP = "GIP",
57
+ GTQ = "GTQ",
58
+ GGP = "GGP",
59
+ GYD = "GYD",
60
+ HNL = "HNL",
61
+ HKD = "HKD",
62
+ HUF = "HUF",
63
+ ISK = "ISK",
64
+ INR = "INR",
65
+ IDR = "IDR",
66
+ IRR = "IRR",
67
+ IMP = "IMP",
68
+ ILS = "ILS",
69
+ JMD = "JMD",
70
+ JPY = "JPY",
71
+ JEP = "JEP",
72
+ KZT = "KZT",
73
+ KPW = "KPW",
74
+ KRW = "KRW",
75
+ KGS = "KGS",
76
+ LAK = "LAK",
77
+ LBP = "LBP",
78
+ LRD = "LRD",
79
+ MKD = "MKD",
80
+ MYR = "MYR",
81
+ MUR = "MUR",
82
+ MXN = "MXN",
83
+ MNT = "MNT",
84
+ MZN = "MZN",
85
+ NAD = "NAD",
86
+ NPR = "NPR",
87
+ ANG = "ANG",
88
+ NZD = "NZD",
89
+ NIO = "NIO",
90
+ NGN = "NGN",
91
+ NOK = "NOK",
92
+ OMR = "OMR",
93
+ PKR = "PKR",
94
+ PAB = "PAB",
95
+ PYG = "PYG",
96
+ PEN = "PEN",
97
+ PHP = "PHP",
98
+ PLN = "PLN",
99
+ QAR = "QAR",
100
+ RON = "RON",
101
+ RUB = "RUB",
102
+ SHP = "SHP",
103
+ SAR = "SAR",
104
+ RSD = "RSD",
105
+ SCR = "SCR",
106
+ SGD = "SGD",
107
+ SBD = "SBD",
108
+ SOS = "SOS",
109
+ ZAR = "ZAR",
110
+ LKR = "LKR",
111
+ SEK = "SEK",
112
+ CHF = "CHF",
113
+ SRD = "SRD",
114
+ SYP = "SYP",
115
+ TWD = "TWD",
116
+ THB = "THB",
117
+ TTD = "TTD",
118
+ TRY = "TRY",
119
+ TVD = "TVD",
120
+ UAH = "UAH",
121
+ AED = "AED",
122
+ GBP = "GBP",
123
+ USD = "USD",
124
+ UYU = "UYU",
125
+ UZS = "UZS",
126
+ VEF = "VEF",
127
+ VND = "VND",
128
+ YER = "YER",
129
+ ZWD = "ZWD",
130
+ g = "g",
131
+ lbs = "lbs",
132
+ g_hr = "g/hr",
133
+ lbs_hr = "lbs/hr",
134
+ MPa = "MPa",
135
+ GPa = "GPa",
136
+ psi = "psi",
137
+ degC = "degC",
138
+ degF = "degF",
139
+ degC_unit_Special = "\u00B0C",
140
+ degF_unit_Special = "\u00B0F",
141
+ ton = "ton",
142
+ kg = "kg",
143
+ CO2 = "CO2",
144
+ CO2_Special = "CO\u2082"
145
+ }
146
+ export declare enum METRIC_PREFIXES {
147
+ K = "K",
148
+ Mn = "Mn",
149
+ Bn = "Bn",
150
+ M = "M",
151
+ MM = "MM",
152
+ B = "B",
153
+ G = "G"
154
+ }
155
+ export declare enum ROUNDED_NUMBER {
156
+ THOUSAND = 1000,
157
+ MILLION = 1000000,
158
+ BILLION = 1000000000
159
+ }
160
+ export declare const APPLICABLE_PREFIXES: {
161
+ [key in ATO_ABBREVIATION]: any;
162
+ };
@@ -0,0 +1 @@
1
+ export declare const GO_LICENSE_KEY = "298647e0b2604cc702d90676423d6bf919a175639c841ba4090310f6ee083806329fbb2801d38d90d4af4efe1c7f93d0d9c16f209248063db730d2db44e084aeb73320e5410b479cb40573939ffa78f1fd6a61f1c3b672bddf678ffb";
@@ -0,0 +1,7 @@
1
+ export declare enum ATO_EPlantType {
2
+ ENTERPRISE = "Enterprise",
3
+ DIVISION = "Division",
4
+ PROXY_PLANT = "proxy",
5
+ BASIC_PLANT = "basic",
6
+ PLANT = "plant"
7
+ }
@@ -0,0 +1,71 @@
1
+ export declare const VALUE_NA = "NA";
2
+ export declare const NO_DATA = "No Data";
3
+ export declare const VALUE_NA_SPECIAL = "N/A";
4
+ export declare const TEXT_UNKNOWN = "?";
5
+ export declare const TEXT_ERR = "!Err";
6
+ export declare const NO_ENOUGH_DATA = "Not enough data";
7
+ export declare const KEY_CREATE_DOM_TO_DOWNLOAD = "newCreateToDownload";
8
+ export declare const NO_HIDDEN = "noHidden";
9
+ export declare const GROUP_PLANT_CELL_KEY = 3000;
10
+ export declare const GROUP_PC_INPUTS_KEY = 1000;
11
+ export declare const GROUP_PC_OUTPUTS_KEY = 2000;
12
+ export declare const ENUM_ROLES = "ROLES";
13
+ export declare enum E_FILTER_KEY {
14
+ VIEW_MODE = "viewMode",
15
+ WATER_UNIT = "waterUnit",
16
+ ENERGY_UNIT = "energyUnit",
17
+ ELECTRICITY_UNIT = "electricityUnit",
18
+ NATURAL_GAS_UNIT = "naturalGasUnit",
19
+ FUEL_UNIT = "fuelUnit",
20
+ CURRENCY_UNIT = "currencyUnit"
21
+ }
22
+ export declare enum ATO_ECOMPONENT_PLANT_TYPE {
23
+ WATER = "water",
24
+ ENERGY = "energy",
25
+ ELECTRICITY = "electricity",
26
+ NATURAL_GAS = "gas",
27
+ FUEL = "fuel",
28
+ STEAM = "steam",
29
+ EMISSION = "emission",
30
+ COST = "cost",
31
+ WATER_PLANT_CELL = "water-plant-cell",
32
+ ENERGY_PLANT_CELL = "energy-plant-cell",
33
+ ELECTRICITY_PLANT_CELL = "electricity-plant-cell",
34
+ NATURAL_GAS_PLANT_CELL = "gas-plant-cell",
35
+ FUEL_PLANT_CELL = "fuel-plant-cell",
36
+ STEAM_PLANT_CELL = "steam-plant-cell",
37
+ EMISSION_PLANT_CELL = "emission-plant-cell",
38
+ COST_PLANT_CELL = "cost-plant-cell"
39
+ }
40
+ export declare const COMPOTYPE_CALL_PLANT_TOPOLOGY_DETAILS: string[];
41
+ export declare const COMPONENT_TYPE_OF_PLANT_CELL: string[];
42
+ export declare const COMPONENT_TYPE_OF_PLANT_CELL_ENERGY: string[];
43
+ export declare enum E_COMPONENT_DATA_TYPE {
44
+ COMPONENT_WATER_FLOW = "ComponentWaterFlow",
45
+ COMPONENT_ENERGY_FLOW = "ComponentEnergyFlow"
46
+ }
47
+ export declare enum E_FLOW_RECORD {
48
+ INFLOW_WATER_RECORD = "InflowWaterRecord",
49
+ OUTFLOW_WATER_RECORD = "OutflowWaterRecord",
50
+ INFLOW_ENERGY_RECORD = "InflowEnergyRecord",
51
+ OUTFLOW_ENERGY_RECORD = "OutflowEnergyRecord"
52
+ }
53
+ export declare enum TAG_TYPE {
54
+ WATER = "Water",
55
+ ELECTRICITY = "Electricity",
56
+ NATURAL_GAS = "Natural Gas",
57
+ FUEL = "Fuel",
58
+ STEAM = "Steam",
59
+ ENERGY = "Energy",
60
+ EMISSION = "Emission",
61
+ COST = "Cost",
62
+ WATER_ANALYTIC = "Water Analytic"
63
+ }
64
+ export declare const PLANT_ENERGY_DIAGRAM_TABS: {
65
+ [key in ATO_ECOMPONENT_PLANT_TYPE]: any;
66
+ };
67
+ export declare enum ATO_ENUM_FLOW_DIRECTION {
68
+ INFLOW = "Inflow",
69
+ OUTFLOW = "Outflow",
70
+ NONE = ""
71
+ }
@@ -0,0 +1,184 @@
1
+ import { EventEmitter, OnDestroy } from '@angular/core';
2
+ import { GojsEditorModel } from './gojs-editor.model';
3
+ import * as go from 'gojs';
4
+ import { Subject } from 'rxjs';
5
+ import { Subscription } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class AtoDefaultGojsEditor implements OnDestroy {
8
+ menuTrigger: any;
9
+ linkValidation: (fromNode: go.Node, fromPort: go.GraphObject, toNode: go.Node, toPort: go.GraphObject, link: go.Link) => boolean;
10
+ actions: any[];
11
+ actionMenuId: string;
12
+ myDiagramDiv: any;
13
+ myDiagram: any;
14
+ $: typeof go.GraphObject.make;
15
+ animationInterval: any;
16
+ defaultScaleZoomToFit?: number;
17
+ private _initialOptions;
18
+ checkLinkCondition(fromNode: go.Node, fromPort: go.GraphObject, toNode: go.Node, toPort: go.GraphObject, link: go.Link): boolean;
19
+ set initialOptions(v: any);
20
+ get initialOptions(): any;
21
+ private _editor;
22
+ set editor(v: GojsEditorModel);
23
+ get editor(): GojsEditorModel;
24
+ isShowNodeInfo: boolean;
25
+ plantSatus: string;
26
+ constructor();
27
+ onModelChangeListenerEvent: EventEmitter<any>;
28
+ onClickInfoButton: EventEmitter<any>;
29
+ onOpenWizard: EventEmitter<any>;
30
+ onOpenDetail: EventEmitter<any>;
31
+ onOpenAssetParameter: EventEmitter<any>;
32
+ onOpenInsightMapping: EventEmitter<any>;
33
+ onHoverInfoButton: EventEmitter<any>;
34
+ onHoverAlert: EventEmitter<any>;
35
+ onDoubleClickNode: EventEmitter<any>;
36
+ onOpenChangeIcon: EventEmitter<any>;
37
+ onClickCompoent: EventEmitter<any>;
38
+ callbackImageTopology: EventEmitter<any>;
39
+ onClikParamOfTable: EventEmitter<any>;
40
+ onDeleteNode: EventEmitter<any>;
41
+ onUndo: EventEmitter<any>;
42
+ onRename: EventEmitter<any>;
43
+ isAddedModelChangedListeners: boolean;
44
+ committedTransactionSubject: Subject<any>;
45
+ _subscriptionList: Subscription;
46
+ ngOnDestroy(): void;
47
+ addOrRemoveCompoentTemplate(): void;
48
+ addTemplate(node: any): void;
49
+ addGroupTemplate(node: any): void;
50
+ addNodeTemplate(node: any): void;
51
+ initDiagram(): void;
52
+ initGroupTemplateEnergy(): void;
53
+ initElectricDiagram(): void;
54
+ initElectricGroupTemplate(): void;
55
+ initFuelGroupTemplate(): void;
56
+ initGasGroupTemplate(): void;
57
+ initGasDiagram(): void;
58
+ initFuelDiagram(): void;
59
+ initSolarDiagram(): void;
60
+ initSteamDiagram(): void;
61
+ onModelChangeListener(e: go.ChangedEvent): void;
62
+ makeLinkTemplate(): void;
63
+ makeValueNodeTemplate(size?: {
64
+ w: number;
65
+ h: number;
66
+ }): void;
67
+ makeEmptyNodeTemplate(size?: {
68
+ w: number;
69
+ h: number;
70
+ }): void;
71
+ makeValueLabelTemplate(size?: {
72
+ w: number;
73
+ h: number;
74
+ }): void;
75
+ makeTextTemplate(size?: {
76
+ w: number;
77
+ h: number;
78
+ }): void;
79
+ arrowForPlantCell(size: any, flowDirection: any): go.Panel;
80
+ getTextDataBox(data: any): string;
81
+ makeDataBoxTemplate(size?: {
82
+ w: number;
83
+ h: number;
84
+ }): void;
85
+ showPoint(loc: any): void;
86
+ makeEntityTemplate(icon: any, title: any, size?: {
87
+ w: number;
88
+ h: number;
89
+ }): void;
90
+ makeEntityTemplateEnergy(icon: any, title: any, size?: {
91
+ w: number;
92
+ h: number;
93
+ }): void;
94
+ plantCellTemplate(icon: any, title: any, size?: {
95
+ w: number;
96
+ h: number;
97
+ }): void;
98
+ makeEntityWithdrawOrDischarge(icon: any, title: any, size?: {
99
+ w: number;
100
+ h: number;
101
+ }): void;
102
+ editTextGroupZone(e: any, button: any): void;
103
+ editText(e: any, button: any): void;
104
+ dragNewNode(e: any, button: any): Promise<void>;
105
+ addItemOnGroupZone(e: any, button: any): void;
106
+ generateActionGroup(actions: AtoDefaultGojsEditor.ENUM_ACTIONS[]): go.Panel;
107
+ clickNewNode(e: any, button: any): Promise<void>;
108
+ findLocYFromnode(fromnode: any): any;
109
+ isEmptyYLoc(locYAlreadyExist: any, i: any): any;
110
+ createNewNode(newnode: any): void;
111
+ deleteNode(e: any): void;
112
+ deleteNodeOnDiagram(e: any): void;
113
+ insightNode(e: any): void;
114
+ drawLink(e: any, button: any): void;
115
+ makePortGroup(name: any, align: any, spot: any, output: any, input: any): go.Panel;
116
+ makePort(name: any, align: any, spot: any, output: any, input: any): go.Panel;
117
+ makeGroupBasicComponent(icon: any, title: any, size?: {
118
+ w: number;
119
+ h: number;
120
+ }): void;
121
+ makeGroupTemplate(icon: any, title: any, size?: {
122
+ w: number;
123
+ h: number;
124
+ }): void;
125
+ makeImageTemplate(): void;
126
+ makeParamTable(): void;
127
+ makeMassBalance(): void;
128
+ makeGroupROPlantTemplate(icon: any, title: any, size?: {
129
+ w: number;
130
+ h: number;
131
+ }): void;
132
+ makeGroupBoilerTemplate(icon: any, title: any, size?: {
133
+ w: number;
134
+ h: number;
135
+ }): void;
136
+ makeGroupCoolingTowerTemplate(icon: any, title: any, size?: {
137
+ w: number;
138
+ h: number;
139
+ }): void;
140
+ groupPlantCellTemplate(icon: any, title: any, size?: {
141
+ w: number;
142
+ h: number;
143
+ }): void;
144
+ groupPCInputOrOutTemplate(icon: any, title: any, padding: go.Margin): void;
145
+ makeGroupZoneTemplate(size?: {
146
+ w: number;
147
+ h: number;
148
+ }): void;
149
+ makeZoneItemTemplate(size?: {
150
+ w: number;
151
+ h: number;
152
+ }): void;
153
+ makeSpecialTemplate(icon: any, title: any, size?: {
154
+ w: number;
155
+ h: number;
156
+ }): void;
157
+ startAnimation(): void;
158
+ stopAnimation(): void;
159
+ toDataURL(url: any, callback: any): void;
160
+ getBase64DiagramWithEmptyData(): void;
161
+ emitImageTopology(base64: any): void;
162
+ openActionMenu(): void;
163
+ unsubscribeAll(): void;
164
+ addSubscribes(...subscriptions: Subscription[]): void;
165
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtoDefaultGojsEditor, never>;
166
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AtoDefaultGojsEditor, never, never, { "linkValidation": "linkValidation"; "initialOptions": "initialOptions"; "editor": "editor"; "isShowNodeInfo": "isShowNodeInfo"; "plantSatus": "plantSatus"; }, { "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"; }, never, never, false, never>;
167
+ }
168
+ export declare namespace AtoDefaultGojsEditor {
169
+ enum ENUM_ACTIONS {
170
+ DETAILS = "Open details & wizard",
171
+ ONLY_DETAILS = "Open details",
172
+ RENAME = "Rename this box",
173
+ OUTFLOW = "Create an outflow",
174
+ DELETE = "Delete",
175
+ INSIGHT = "Insight tag mapping",
176
+ DATA_MAPPING = "Data Mapping",
177
+ MORE = "More",
178
+ FLOW_DETAILS = "Flow details",
179
+ ASSET_PARAMETERS = "Asset parameters",
180
+ CHANGE_ICON = "Change icon"
181
+ }
182
+ const ACTIONS: any;
183
+ const DISTANCE_2_OUTPUT = 60;
184
+ }