ato-water-lib 0.0.36 → 0.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. package/esm2020/ato-water-lib.mjs +5 -0
  2. package/esm2020/lib/ato-water-lib.component.mjs +19 -0
  3. package/esm2020/lib/ato-water-lib.module.mjs +49 -0
  4. package/esm2020/lib/ato-water-lib.service.mjs +14 -0
  5. package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +127 -0
  6. package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +26 -0
  7. package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +54 -0
  8. package/esm2020/lib/constants/applicable-prefixes-const.mjs +441 -0
  9. package/esm2020/lib/constants/base64.const.mjs +5 -0
  10. package/esm2020/lib/constants/components-group-const.mjs +1629 -0
  11. package/esm2020/lib/constants/icon-base64.const.mjs +4 -0
  12. package/esm2020/lib/constants/key.const.mjs +4 -0
  13. package/esm2020/lib/constants/plant.constant.mjs +51 -0
  14. package/esm2020/lib/constants/value.const.mjs +782 -0
  15. package/esm2020/lib/directive/ato-loading.directive.mjs +55 -0
  16. package/esm2020/lib/directive/ng-var.directive.mjs +31 -0
  17. package/esm2020/lib/models/ato-asset-flow.model.mjs +2 -0
  18. package/esm2020/lib/models/default-gojs-editor.model.mjs +3227 -0
  19. package/esm2020/lib/models/gojs-data.model.mjs +6 -0
  20. package/esm2020/lib/models/gojs-editor.model.mjs +1754 -0
  21. package/esm2020/lib/services/utils/utils.service.mjs +133 -0
  22. package/esm2020/public-api.mjs +16 -0
  23. package/fesm2015/ato-water-lib.mjs +8208 -0
  24. package/fesm2015/ato-water-lib.mjs.map +1 -0
  25. package/fesm2020/ato-water-lib.mjs +8363 -0
  26. package/fesm2020/ato-water-lib.mjs.map +1 -0
  27. package/index.d.ts +5 -0
  28. package/lib/ato-water-lib.component.d.ts +5 -0
  29. package/lib/ato-water-lib.module.d.ts +13 -0
  30. package/lib/ato-water-lib.service.d.ts +6 -0
  31. package/lib/components/asset-flow/asset-flow.component.d.ts +35 -0
  32. package/lib/components/asset-params-view/asset-params-view.component.d.ts +10 -0
  33. package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +16 -0
  34. package/lib/constants/applicable-prefixes-const.d.ts +162 -0
  35. package/lib/constants/base64.const.d.ts +3 -0
  36. package/lib/constants/components-group-const.d.ts +1264 -0
  37. package/lib/constants/icon-base64.const.d.ts +3 -0
  38. package/lib/constants/key.const.d.ts +1 -0
  39. package/lib/constants/plant.constant.d.ts +7 -0
  40. package/lib/constants/value.const.d.ts +71 -0
  41. package/lib/directive/ato-loading.directive.d.ts +14 -0
  42. package/lib/directive/ng-var.directive.d.ts +12 -0
  43. package/lib/models/ato-asset-flow.model.d.ts +5 -0
  44. package/lib/models/default-gojs-editor.model.d.ts +197 -0
  45. package/lib/models/gojs-data.model.d.ts +9 -0
  46. package/lib/models/gojs-editor.model.d.ts +436 -0
  47. package/lib/services/utils/utils.service.d.ts +24 -0
  48. package/package.json +22 -3
  49. package/{src/public-api.ts → public-api.d.ts} +1 -10
  50. package/ng-package.json +0 -11
  51. package/src/lib/ato-water-lib.component.spec.ts +0 -23
  52. package/src/lib/ato-water-lib.component.ts +0 -15
  53. package/src/lib/ato-water-lib.module.ts +0 -31
  54. package/src/lib/ato-water-lib.service.spec.ts +0 -16
  55. package/src/lib/ato-water-lib.service.ts +0 -9
  56. package/src/lib/components/asset-flow/asset-flow.component.html +0 -21
  57. package/src/lib/components/asset-flow/asset-flow.component.scss +0 -4
  58. package/src/lib/components/asset-flow/asset-flow.component.spec.ts +0 -23
  59. package/src/lib/components/asset-flow/asset-flow.component.ts +0 -137
  60. package/src/lib/components/asset-params-view/asset-params-view.component.html +0 -85
  61. package/src/lib/components/asset-params-view/asset-params-view.component.scss +0 -37
  62. package/src/lib/components/asset-params-view/asset-params-view.component.spec.ts +0 -23
  63. package/src/lib/components/asset-params-view/asset-params-view.component.ts +0 -16
  64. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.css +0 -0
  65. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.html +0 -25
  66. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.ts +0 -69
  67. package/src/lib/constants/applicable-prefixes-const.ts +0 -452
  68. package/src/lib/constants/base64.const.ts +0 -5
  69. package/src/lib/constants/components-group-const.ts +0 -1637
  70. package/src/lib/constants/icon-base64.const.ts +0 -3
  71. package/src/lib/constants/icon-svg.const.ts +0 -8
  72. package/src/lib/constants/key.const.ts +0 -5
  73. package/src/lib/constants/plant.constant.ts +0 -52
  74. package/src/lib/constants/value.const.ts +0 -822
  75. package/src/lib/directive/ato-loading.directive.ts +0 -55
  76. package/src/lib/directive/ng-var.directive.ts +0 -28
  77. package/src/lib/models/default-gojs-editor.model.ts +0 -4906
  78. package/src/lib/models/gojs-data.model.ts +0 -7
  79. package/src/lib/models/gojs-editor.model.ts +0 -1901
  80. package/src/lib/services/utils/utils.service.ts +0 -141
  81. package/tsconfig.lib.json +0 -14
  82. package/tsconfig.lib.prod.json +0 -10
  83. package/tsconfig.spec.json +0 -14
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ato-water-lib" />
5
+ export * from './public-api';
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AtoWaterLibComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtoWaterLibComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtoWaterLibComponent, "lib-ato-water-lib", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./ato-water-lib.component";
3
+ import * as i2 from "./components/flow-diagram-lib/flow-diagram-lib.component";
4
+ import * as i3 from "./components/asset-flow/asset-flow.component";
5
+ import * as i4 from "./directive/ato-loading.directive";
6
+ import * as i5 from "./components/asset-params-view/asset-params-view.component";
7
+ import * as i6 from "./directive/ng-var.directive";
8
+ import * as i7 from "@angular/common";
9
+ export declare class AtoWaterLibModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtoWaterLibModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AtoWaterLibModule, [typeof i1.AtoWaterLibComponent, typeof i2.AtoFlowDiagramLibComponent, typeof i3.AssetFlowComponent, typeof i4.AtoLoadingDirective, typeof i5.AtoAssetParamsViewComponent, typeof i6.AtoNgVarDirective], [typeof i7.CommonModule], [typeof i1.AtoWaterLibComponent, typeof i2.AtoFlowDiagramLibComponent, typeof i3.AssetFlowComponent, typeof i4.AtoLoadingDirective, typeof i5.AtoAssetParamsViewComponent, typeof i6.AtoNgVarDirective]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<AtoWaterLibModule>;
13
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AtoWaterLibService {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtoWaterLibService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<AtoWaterLibService>;
6
+ }
@@ -0,0 +1,35 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as go from 'gojs';
3
+ import { AtoDefaultFlowData } from '../../models/ato-asset-flow.model';
4
+ import { AtoGoJSData } from '../../models/gojs-data.model';
5
+ import { AtoGojsEditorModel } from '../../models/gojs-editor.model';
6
+ import { AtoAssetParamsViewComponent } from '../asset-params-view/asset-params-view.component';
7
+ import { AtoFlowDiagramLibComponent } from '../flow-diagram-lib/flow-diagram-lib.component';
8
+ import * as i0 from "@angular/core";
9
+ export declare class AssetFlowComponent implements OnInit {
10
+ assetLayer: string;
11
+ gjFlowDiagramTemp: AtoFlowDiagramLibComponent;
12
+ assetParamsViewTemp: AtoAssetParamsViewComponent;
13
+ selectedComponent: any;
14
+ systemType: AtoGojsEditorModel.ENUM_TYPES;
15
+ onClickParamOfTableEvent: EventEmitter<any>;
16
+ isUseBase64: boolean;
17
+ $: typeof go.GraphObject.make;
18
+ options: {
19
+ layout: go.LayeredDigraphLayout;
20
+ };
21
+ flowData: AtoGoJSData;
22
+ dataTableAssetParams: any[];
23
+ isResponsiveView: boolean;
24
+ getFlowDataCallBack: Function;
25
+ timeoutResizeWindow: any;
26
+ onResize(event: Event): void;
27
+ checkResponsiveView(): void;
28
+ updateLocationReponsive(): void;
29
+ ngOnInit(): void;
30
+ onClickParamOfTable($event: any): void;
31
+ static getDefaultFlowData(defaultData: AtoDefaultFlowData): any;
32
+ setFlowData(data: AtoGoJSData): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<AssetFlowComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<AssetFlowComponent, "ato-asset-flow", never, { "assetLayer": "assetLayer"; "selectedComponent": "selectedComponent"; "systemType": "systemType"; "isUseBase64": "isUseBase64"; "flowData": "flowData"; "isResponsiveView": "isResponsiveView"; "getFlowDataCallBack": "getFlowDataCallBack"; }, { "onClickParamOfTableEvent": "onClickParamOfTableEvent"; }, never, never, false, never>;
35
+ }
@@ -0,0 +1,10 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AtoAssetParamsViewComponent {
4
+ isEditView: boolean;
5
+ data: any[];
6
+ clickParamTableRow: EventEmitter<any>;
7
+ onClickRowParam(itemTable: any): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtoAssetParamsViewComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtoAssetParamsViewComponent, "ato-asset-params-view", never, { "isEditView": "isEditView"; "data": "data"; }, { "clickParamTableRow": "clickParamTableRow"; }, never, never, false, never>;
10
+ }
@@ -0,0 +1,16 @@
1
+ import { ElementRef, 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
+ set data(v: any);
8
+ isLoading: boolean;
9
+ get data(): any;
10
+ constructor(_elRef: ElementRef);
11
+ ngOnInit(): void;
12
+ loadDiagram(): void;
13
+ findNodeForKey(key: number | string): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtoFlowDiagramLibComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtoFlowDiagramLibComponent, "ato-flow-diagram-lib", never, { "data": "data"; "isLoading": "isLoading"; }, {}, never, never, false, never>;
16
+ }
@@ -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,3 @@
1
+ export declare const AtoGoJSBase64: {
2
+ CoolingTowers: string;
3
+ };