ato-water-lib 0.0.7 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/esm2020/lib/ato-water-lib.module.mjs +16 -8
  2. package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +56 -0
  3. package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +71 -0
  4. package/esm2020/lib/constants/applicable-prefixes-const.mjs +441 -0
  5. package/esm2020/lib/constants/components-group-const.mjs +1289 -0
  6. package/esm2020/lib/constants/key.const.mjs +4 -0
  7. package/esm2020/lib/constants/plant.constant.mjs +51 -0
  8. package/esm2020/lib/constants/value.const.mjs +782 -0
  9. package/esm2020/lib/models/default-gojs-editor.model.mjs +3184 -0
  10. package/esm2020/lib/models/gojs-editor.model.mjs +1750 -0
  11. package/esm2020/lib/services/utils/utils.service.mjs +133 -0
  12. package/esm2020/public-api.mjs +3 -2
  13. package/fesm2015/ato-water-lib.mjs +7645 -14
  14. package/fesm2015/ato-water-lib.mjs.map +1 -1
  15. package/fesm2020/ato-water-lib.mjs +7747 -14
  16. package/fesm2020/ato-water-lib.mjs.map +1 -1
  17. package/lib/ato-water-lib.module.d.ts +4 -2
  18. package/lib/components/asset-flow/asset-flow.component.d.ts +21 -0
  19. package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +17 -0
  20. package/lib/constants/applicable-prefixes-const.d.ts +162 -0
  21. package/lib/constants/components-group-const.d.ts +1132 -0
  22. package/lib/constants/key.const.d.ts +1 -0
  23. package/lib/constants/plant.constant.d.ts +7 -0
  24. package/lib/constants/value.const.d.ts +71 -0
  25. package/lib/models/default-gojs-editor.model.d.ts +184 -0
  26. package/lib/models/gojs-editor.model.d.ts +435 -0
  27. package/lib/services/utils/utils.service.d.ts +24 -0
  28. package/package.json +1 -1
  29. package/public-api.d.ts +2 -1
  30. package/esm2020/lib/test-button/test-button.component.mjs +0 -11
  31. package/lib/test-button/test-button.component.d.ts +0 -5
@@ -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 { 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
+ 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: AtoGojsEditorModel);
23
+ get editor(): AtoGojsEditorModel;
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
+ }