ato-water-lib 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/ng-package.json +11 -0
  2. package/package.json +3 -22
  3. package/src/lib/ato-water-lib.component.spec.ts +23 -0
  4. package/src/lib/ato-water-lib.component.ts +15 -0
  5. package/src/lib/ato-water-lib.module.ts +31 -0
  6. package/src/lib/ato-water-lib.service.spec.ts +16 -0
  7. package/src/lib/ato-water-lib.service.ts +9 -0
  8. package/src/lib/components/asset-flow/asset-flow.component.html +21 -0
  9. package/src/lib/components/asset-flow/asset-flow.component.scss +4 -0
  10. package/src/lib/components/asset-flow/asset-flow.component.spec.ts +23 -0
  11. package/src/lib/components/asset-flow/asset-flow.component.ts +137 -0
  12. package/src/lib/components/asset-params-view/asset-params-view.component.html +85 -0
  13. package/src/lib/components/asset-params-view/asset-params-view.component.scss +37 -0
  14. package/src/lib/components/asset-params-view/asset-params-view.component.spec.ts +23 -0
  15. package/src/lib/components/asset-params-view/asset-params-view.component.ts +16 -0
  16. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.css +0 -0
  17. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.html +25 -0
  18. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.ts +69 -0
  19. package/src/lib/constants/applicable-prefixes-const.ts +452 -0
  20. package/src/lib/constants/base64.const.ts +5 -0
  21. package/src/lib/constants/components-group-const.ts +1637 -0
  22. package/src/lib/constants/icon-base64.const.ts +3 -0
  23. package/src/lib/constants/icon-svg.const.ts +8 -0
  24. package/src/lib/constants/key.const.ts +5 -0
  25. package/src/lib/constants/plant.constant.ts +52 -0
  26. package/src/lib/constants/value.const.ts +822 -0
  27. package/src/lib/directive/ato-loading.directive.ts +55 -0
  28. package/src/lib/directive/ng-var.directive.ts +28 -0
  29. package/src/lib/models/default-gojs-editor.model.ts +4906 -0
  30. package/{lib/models/gojs-data.model.d.ts → src/lib/models/gojs-data.model.ts} +3 -3
  31. package/src/lib/models/gojs-editor.model.ts +1901 -0
  32. package/src/lib/services/utils/utils.service.ts +141 -0
  33. package/{public-api.d.ts → src/public-api.ts} +10 -0
  34. package/tsconfig.lib.json +14 -0
  35. package/tsconfig.lib.prod.json +10 -0
  36. package/tsconfig.spec.json +14 -0
  37. package/esm2020/ato-water-lib.mjs +0 -5
  38. package/esm2020/lib/ato-water-lib.component.mjs +0 -19
  39. package/esm2020/lib/ato-water-lib.module.mjs +0 -49
  40. package/esm2020/lib/ato-water-lib.service.mjs +0 -14
  41. package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +0 -121
  42. package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +0 -26
  43. package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +0 -54
  44. package/esm2020/lib/constants/applicable-prefixes-const.mjs +0 -441
  45. package/esm2020/lib/constants/base64.const.mjs +0 -5
  46. package/esm2020/lib/constants/components-group-const.mjs +0 -1476
  47. package/esm2020/lib/constants/icon-base64.const.mjs +0 -4
  48. package/esm2020/lib/constants/key.const.mjs +0 -4
  49. package/esm2020/lib/constants/plant.constant.mjs +0 -51
  50. package/esm2020/lib/constants/value.const.mjs +0 -782
  51. package/esm2020/lib/directive/ato-loading.directive.mjs +0 -55
  52. package/esm2020/lib/directive/ng-var.directive.mjs +0 -31
  53. package/esm2020/lib/models/default-gojs-editor.model.mjs +0 -3227
  54. package/esm2020/lib/models/gojs-data.model.mjs +0 -6
  55. package/esm2020/lib/models/gojs-editor.model.mjs +0 -1754
  56. package/esm2020/lib/services/utils/utils.service.mjs +0 -133
  57. package/esm2020/public-api.mjs +0 -15
  58. package/fesm2015/ato-water-lib.mjs +0 -8018
  59. package/fesm2015/ato-water-lib.mjs.map +0 -1
  60. package/fesm2020/ato-water-lib.mjs +0 -8205
  61. package/fesm2020/ato-water-lib.mjs.map +0 -1
  62. package/index.d.ts +0 -5
  63. package/lib/ato-water-lib.component.d.ts +0 -5
  64. package/lib/ato-water-lib.module.d.ts +0 -13
  65. package/lib/ato-water-lib.service.d.ts +0 -6
  66. package/lib/components/asset-flow/asset-flow.component.d.ts +0 -1336
  67. package/lib/components/asset-params-view/asset-params-view.component.d.ts +0 -10
  68. package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +0 -16
  69. package/lib/constants/applicable-prefixes-const.d.ts +0 -162
  70. package/lib/constants/base64.const.d.ts +0 -3
  71. package/lib/constants/components-group-const.d.ts +0 -1561
  72. package/lib/constants/icon-base64.const.d.ts +0 -3
  73. package/lib/constants/key.const.d.ts +0 -1
  74. package/lib/constants/plant.constant.d.ts +0 -7
  75. package/lib/constants/value.const.d.ts +0 -71
  76. package/lib/directive/ato-loading.directive.d.ts +0 -14
  77. package/lib/directive/ng-var.directive.d.ts +0 -12
  78. package/lib/models/default-gojs-editor.model.d.ts +0 -197
  79. package/lib/models/gojs-editor.model.d.ts +0 -436
  80. package/lib/services/utils/utils.service.d.ts +0 -24
@@ -1,3 +0,0 @@
1
- export declare const ICONS_BASE64: {
2
- uf044: string;
3
- };
@@ -1 +0,0 @@
1
- export declare const GO_LICENSE_KEY = "298647e0b2604cc702d90676423d6bf919a175639c841ba4090310f6ee083806329fbb2801d38d90d4af4efe1c7f93d0d9c16f209248063db730d2db44e084aeb73320e5410b479cb40573939ffa78f1fd6a61f1c3b672bddf678ffb";
@@ -1,7 +0,0 @@
1
- export declare enum ATO_EPlantType {
2
- ENTERPRISE = "Enterprise",
3
- DIVISION = "Division",
4
- PROXY_PLANT = "proxy",
5
- BASIC_PLANT = "basic",
6
- PLANT = "plant"
7
- }
@@ -1,71 +0,0 @@
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
- }
@@ -1,14 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,197 +0,0 @@
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
- }