ato-water-lib 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/ato-water-lib.mjs +5 -0
- package/esm2020/lib/ato-water-lib.component.mjs +19 -0
- package/esm2020/lib/ato-water-lib.module.mjs +49 -0
- package/esm2020/lib/ato-water-lib.service.mjs +14 -0
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +123 -0
- package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +26 -0
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +54 -0
- package/esm2020/lib/constants/applicable-prefixes-const.mjs +441 -0
- package/esm2020/lib/constants/base64.const.mjs +5 -0
- package/esm2020/lib/constants/components-group-const.mjs +1629 -0
- package/esm2020/lib/constants/icon-base64.const.mjs +4 -0
- package/esm2020/lib/constants/key.const.mjs +4 -0
- package/esm2020/lib/constants/plant.constant.mjs +51 -0
- package/esm2020/lib/constants/value.const.mjs +782 -0
- package/esm2020/lib/directive/ato-loading.directive.mjs +55 -0
- package/esm2020/lib/directive/ng-var.directive.mjs +31 -0
- package/esm2020/lib/models/ato-asset-flow.model.mjs +2 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +3227 -0
- package/esm2020/lib/models/gojs-data.model.mjs +6 -0
- package/esm2020/lib/models/gojs-editor.model.mjs +1754 -0
- package/esm2020/lib/services/utils/utils.service.mjs +133 -0
- package/esm2020/public-api.mjs +15 -0
- package/fesm2015/ato-water-lib.mjs +8208 -0
- package/fesm2015/ato-water-lib.mjs.map +1 -0
- package/fesm2020/ato-water-lib.mjs +8360 -0
- package/fesm2020/ato-water-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/ato-water-lib.component.d.ts +5 -0
- package/lib/ato-water-lib.module.d.ts +13 -0
- package/lib/ato-water-lib.service.d.ts +6 -0
- package/lib/components/asset-flow/asset-flow.component.d.ts +35 -0
- package/lib/components/asset-params-view/asset-params-view.component.d.ts +10 -0
- package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +16 -0
- package/lib/constants/applicable-prefixes-const.d.ts +162 -0
- package/lib/constants/base64.const.d.ts +3 -0
- package/lib/constants/components-group-const.d.ts +1264 -0
- package/lib/constants/icon-base64.const.d.ts +3 -0
- package/lib/constants/key.const.d.ts +1 -0
- package/lib/constants/plant.constant.d.ts +7 -0
- package/lib/constants/value.const.d.ts +71 -0
- package/lib/directive/ato-loading.directive.d.ts +14 -0
- package/lib/directive/ng-var.directive.d.ts +12 -0
- package/lib/models/ato-asset-flow.model.d.ts +5 -0
- package/lib/models/default-gojs-editor.model.d.ts +197 -0
- package/{src/lib/models/gojs-data.model.ts → lib/models/gojs-data.model.d.ts} +3 -3
- package/lib/models/gojs-editor.model.d.ts +436 -0
- package/lib/services/utils/utils.service.d.ts +24 -0
- package/package.json +22 -3
- package/{src/public-api.ts → public-api.d.ts} +0 -10
- package/ng-package.json +0 -11
- package/src/lib/ato-water-lib.component.spec.ts +0 -23
- package/src/lib/ato-water-lib.component.ts +0 -15
- package/src/lib/ato-water-lib.module.ts +0 -31
- package/src/lib/ato-water-lib.service.spec.ts +0 -16
- package/src/lib/ato-water-lib.service.ts +0 -9
- package/src/lib/components/asset-flow/asset-flow.component.html +0 -21
- package/src/lib/components/asset-flow/asset-flow.component.scss +0 -4
- package/src/lib/components/asset-flow/asset-flow.component.spec.ts +0 -23
- package/src/lib/components/asset-flow/asset-flow.component.ts +0 -137
- package/src/lib/components/asset-params-view/asset-params-view.component.html +0 -85
- package/src/lib/components/asset-params-view/asset-params-view.component.scss +0 -37
- package/src/lib/components/asset-params-view/asset-params-view.component.spec.ts +0 -23
- package/src/lib/components/asset-params-view/asset-params-view.component.ts +0 -16
- package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.css +0 -0
- package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.html +0 -25
- package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.ts +0 -69
- package/src/lib/constants/applicable-prefixes-const.ts +0 -452
- package/src/lib/constants/base64.const.ts +0 -5
- package/src/lib/constants/components-group-const.ts +0 -1637
- package/src/lib/constants/icon-base64.const.ts +0 -3
- package/src/lib/constants/icon-svg.const.ts +0 -8
- package/src/lib/constants/key.const.ts +0 -5
- package/src/lib/constants/plant.constant.ts +0 -52
- package/src/lib/constants/value.const.ts +0 -822
- package/src/lib/directive/ato-loading.directive.ts +0 -55
- package/src/lib/directive/ng-var.directive.ts +0 -28
- package/src/lib/models/default-gojs-editor.model.ts +0 -4906
- package/src/lib/models/gojs-editor.model.ts +0 -1901
- package/src/lib/services/utils/utils.service.ts +0 -141
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
@@ -0,0 +1 @@
|
|
1
|
+
export declare const GO_LICENSE_KEY = "298647e0b2604cc702d90676423d6bf919a175639c841ba4090310f6ee083806329fbb2801d38d90d4af4efe1c7f93d0d9c16f209248063db730d2db44e084aeb73320e5410b479cb40573939ffa78f1fd6a61f1c3b672bddf678ffb";
|
@@ -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,14 @@
|
|
1
|
+
import { ElementRef, Renderer2, OnChanges, SimpleChanges } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class AtoLoadingDirective implements OnChanges {
|
4
|
+
private el;
|
5
|
+
private renderer;
|
6
|
+
appLoading: boolean;
|
7
|
+
private spinnerWrapper;
|
8
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
9
|
+
ngOnChanges(changes: SimpleChanges): void;
|
10
|
+
private showSpinner;
|
11
|
+
private hideSpinner;
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtoLoadingDirective, never>;
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AtoLoadingDirective, "[atoLoading]", never, { "appLoading": "appLoading"; }, {}, never, never, false, never>;
|
14
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class AtoNgVarDirective {
|
4
|
+
private templateRef;
|
5
|
+
private vcRef;
|
6
|
+
set ngAtoVar(context: unknown);
|
7
|
+
private context;
|
8
|
+
private hasView;
|
9
|
+
constructor(templateRef: TemplateRef<any>, vcRef: ViewContainerRef);
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtoNgVarDirective, never>;
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AtoNgVarDirective, "[ngAtoVar]", never, { "ngAtoVar": "ngAtoVar"; }, {}, never, never, false, never>;
|
12
|
+
}
|
@@ -0,0 +1,197 @@
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
2
|
+
import { AtoGojsEditorModel } 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
|
+
private _elRef;
|
9
|
+
menuTrigger: any;
|
10
|
+
linkValidation: (fromNode: go.Node, fromPort: go.GraphObject, toNode: go.Node, toPort: go.GraphObject, link: go.Link) => boolean;
|
11
|
+
actions: any[];
|
12
|
+
actionMenuId: string;
|
13
|
+
myDiagramDiv: any;
|
14
|
+
myDiagram: any;
|
15
|
+
$: typeof go.GraphObject.make;
|
16
|
+
animationInterval: any;
|
17
|
+
defaultScaleZoomToFit?: number;
|
18
|
+
private _initialOptions;
|
19
|
+
checkLinkCondition(fromNode: go.Node, fromPort: go.GraphObject, toNode: go.Node, toPort: go.GraphObject, link: go.Link): boolean;
|
20
|
+
set initialOptions(v: any);
|
21
|
+
get initialOptions(): any;
|
22
|
+
private _editor;
|
23
|
+
set editor(v: AtoGojsEditorModel);
|
24
|
+
get editor(): AtoGojsEditorModel;
|
25
|
+
isShowNodeInfo: boolean;
|
26
|
+
plantSatus: string;
|
27
|
+
constructor(_elRef: ElementRef);
|
28
|
+
onModelChangeListenerEvent: EventEmitter<any>;
|
29
|
+
onClickInfoButton: EventEmitter<any>;
|
30
|
+
onOpenWizard: EventEmitter<any>;
|
31
|
+
onOpenDetail: EventEmitter<any>;
|
32
|
+
onOpenAssetParameter: EventEmitter<any>;
|
33
|
+
onOpenInsightMapping: EventEmitter<any>;
|
34
|
+
onHoverInfoButton: EventEmitter<any>;
|
35
|
+
onHoverAlert: EventEmitter<any>;
|
36
|
+
onDoubleClickNode: EventEmitter<any>;
|
37
|
+
onOpenChangeIcon: EventEmitter<any>;
|
38
|
+
onClickCompoent: EventEmitter<any>;
|
39
|
+
callbackImageTopology: EventEmitter<any>;
|
40
|
+
onClikParamOfTable: EventEmitter<any>;
|
41
|
+
onDeleteNode: EventEmitter<any>;
|
42
|
+
onUndo: EventEmitter<any>;
|
43
|
+
onRename: EventEmitter<any>;
|
44
|
+
isAddedModelChangedListeners: boolean;
|
45
|
+
committedTransactionSubject: Subject<any>;
|
46
|
+
_subscriptionList: Subscription;
|
47
|
+
ngOnDestroy(): void;
|
48
|
+
addOrRemoveCompoentTemplate(): void;
|
49
|
+
addTemplate(node: any): void;
|
50
|
+
addGroupTemplate(node: any): void;
|
51
|
+
addNodeTemplate(node: any): void;
|
52
|
+
initDiagram(): void;
|
53
|
+
initGroupTemplateEnergy(): void;
|
54
|
+
initElectricDiagram(): void;
|
55
|
+
initElectricGroupTemplate(): void;
|
56
|
+
initFuelGroupTemplate(): void;
|
57
|
+
initGasGroupTemplate(): void;
|
58
|
+
initGasDiagram(): void;
|
59
|
+
initFuelDiagram(): void;
|
60
|
+
initSolarDiagram(): void;
|
61
|
+
initSteamDiagram(): void;
|
62
|
+
onModelChangeListener(e: go.ChangedEvent): void;
|
63
|
+
makeLinkTemplate(): void;
|
64
|
+
makeValueNodeTemplate(size?: {
|
65
|
+
w: number;
|
66
|
+
h: number;
|
67
|
+
}): void;
|
68
|
+
makeEmptyNodeTemplate(size?: {
|
69
|
+
w: number;
|
70
|
+
h: number;
|
71
|
+
}): void;
|
72
|
+
makeValueLabelTemplate(size?: {
|
73
|
+
w: number;
|
74
|
+
h: number;
|
75
|
+
}): void;
|
76
|
+
makeTextLabelTemplate(size?: {
|
77
|
+
w: number;
|
78
|
+
h: number;
|
79
|
+
}): void;
|
80
|
+
makeTextTemplate(size?: {
|
81
|
+
w: number;
|
82
|
+
h: number;
|
83
|
+
}): void;
|
84
|
+
arrowForPlantCell(size: any, flowDirection: any): go.Panel;
|
85
|
+
getTextDataBox(data: any): string;
|
86
|
+
makeDataBoxTemplate(size?: {
|
87
|
+
w: number;
|
88
|
+
h: number;
|
89
|
+
}): void;
|
90
|
+
showPoint(loc: any): void;
|
91
|
+
makeEntityTemplate(icon: any, title: any, size?: {
|
92
|
+
w: number;
|
93
|
+
h: number;
|
94
|
+
}): void;
|
95
|
+
makeEntityTemplateEnergy(icon: any, title: any, size?: {
|
96
|
+
w: number;
|
97
|
+
h: number;
|
98
|
+
}): void;
|
99
|
+
plantCellTemplate(icon: any, title: any, size?: {
|
100
|
+
w: number;
|
101
|
+
h: number;
|
102
|
+
}): void;
|
103
|
+
makeEntityWithdrawOrDischarge(icon: any, title: any, size?: {
|
104
|
+
w: number;
|
105
|
+
h: number;
|
106
|
+
}): void;
|
107
|
+
editTextGroupZone(e: any, button: any): void;
|
108
|
+
editText(e: any, button: any): void;
|
109
|
+
dragNewNode(e: any, button: any): Promise<void>;
|
110
|
+
addItemOnGroupZone(e: any, button: any): void;
|
111
|
+
generateActionGroup(actions: AtoDefaultGojsEditor.ENUM_ACTIONS[]): go.Panel;
|
112
|
+
setProFOrNewNode(self: any): Promise<{
|
113
|
+
movable: boolean;
|
114
|
+
isNotAllowConnect: boolean;
|
115
|
+
} | {
|
116
|
+
movable?: undefined;
|
117
|
+
isNotAllowConnect?: undefined;
|
118
|
+
}>;
|
119
|
+
clickNewNode(e: any, button: any): Promise<void>;
|
120
|
+
findLocYFromnode(fromnode: any): any;
|
121
|
+
isEmptyYLoc(locYAlreadyExist: any, i: any): any;
|
122
|
+
createNewNode(newnode: any): void;
|
123
|
+
deleteNode(e: any): void;
|
124
|
+
deleteNodeOnDiagram(e: any): void;
|
125
|
+
insightNode(e: any): void;
|
126
|
+
drawLink(e: any, button: any): void;
|
127
|
+
makePortGroup(name: any, align: any, spot: any, output: any, input: any): go.Panel;
|
128
|
+
makePort(name: any, align: any, spot: any, output: any, input: any): go.Panel;
|
129
|
+
makeGroupBasicComponent(icon: any, title: any, size?: {
|
130
|
+
w: number;
|
131
|
+
h: number;
|
132
|
+
}): void;
|
133
|
+
makeGroupTemplate(icon: any, title: any, size?: {
|
134
|
+
w: number;
|
135
|
+
h: number;
|
136
|
+
}): void;
|
137
|
+
makeImageTemplate(): void;
|
138
|
+
makeParamTable(): void;
|
139
|
+
makeMassBalance(): void;
|
140
|
+
makeGroupROPlantTemplate(icon: any, title: any, size?: {
|
141
|
+
w: number;
|
142
|
+
h: number;
|
143
|
+
}): void;
|
144
|
+
makeGroupBoilerTemplate(icon: any, title: any, size?: {
|
145
|
+
w: number;
|
146
|
+
h: number;
|
147
|
+
}): void;
|
148
|
+
makeGroupCoolingTowerTemplate(icon: any, title: any, size?: {
|
149
|
+
w: number;
|
150
|
+
h: number;
|
151
|
+
}): void;
|
152
|
+
groupPlantCellTemplate(icon: any, title: any, size?: {
|
153
|
+
w: number;
|
154
|
+
h: number;
|
155
|
+
}): void;
|
156
|
+
groupPCInputOrOutTemplate(icon: any, title: any, padding: go.Margin): void;
|
157
|
+
makeGroupZoneTemplate(size?: {
|
158
|
+
w: number;
|
159
|
+
h: number;
|
160
|
+
}): void;
|
161
|
+
makeZoneItemTemplate(size?: {
|
162
|
+
w: number;
|
163
|
+
h: number;
|
164
|
+
}): void;
|
165
|
+
makeSpecialTemplate(icon: any, title: any, size?: {
|
166
|
+
w: number;
|
167
|
+
h: number;
|
168
|
+
}): void;
|
169
|
+
startAnimation(): void;
|
170
|
+
stopAnimation(): void;
|
171
|
+
toDataURL(url: any, callback: any): void;
|
172
|
+
getBase64DiagramWithEmptyData(): void;
|
173
|
+
emitImageTopology(base64: any): void;
|
174
|
+
openActionMenu(): void;
|
175
|
+
unsubscribeAll(): void;
|
176
|
+
addSubscribes(...subscriptions: Subscription[]): void;
|
177
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtoDefaultGojsEditor, never>;
|
178
|
+
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>;
|
179
|
+
}
|
180
|
+
export declare namespace AtoDefaultGojsEditor {
|
181
|
+
enum ENUM_ACTIONS {
|
182
|
+
DETAILS = "Open details & wizard",
|
183
|
+
ONLY_DETAILS = "Open details",
|
184
|
+
RENAME = "Rename this box",
|
185
|
+
OUTFLOW = "Create an outflow",
|
186
|
+
DELETE = "Delete",
|
187
|
+
INSIGHT = "Insight tag mapping",
|
188
|
+
DATA_MAPPING = "Data Mapping",
|
189
|
+
MORE = "More",
|
190
|
+
FLOW_DETAILS = "Flow details",
|
191
|
+
FLOW_DETAILS_AND_WIZARD = "Flow details & wizard",
|
192
|
+
ASSET_PARAMETERS = "Asset parameters",
|
193
|
+
CHANGE_ICON = "Change icon"
|
194
|
+
}
|
195
|
+
const ACTIONS: any;
|
196
|
+
const DISTANCE_2_OUTPUT = 60;
|
197
|
+
}
|