ngx-hana-nameserver-history-viewer 1.2.1 → 21.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/README.md +2 -1
  2. package/{fesm2020 → fesm2022}/ngx-hana-nameserver-history-viewer.mjs +2898 -3983
  3. package/fesm2022/ngx-hana-nameserver-history-viewer.mjs.map +1 -0
  4. package/ngx-hana-nameserver-history-viewer-21.1.0.tgz +0 -0
  5. package/package.json +20 -27
  6. package/types/ngx-hana-nameserver-history-viewer.d.ts +545 -0
  7. package/esm2020/ngx-hana-nameserver-history-viewer.mjs +0 -5
  8. package/esm2020/public-api.mjs +0 -2
  9. package/esm2020/src/nameserver-history-viewer/components/alert/alert.component.mjs +0 -68
  10. package/esm2020/src/nameserver-history-viewer/components/alert/alert.module.mjs +0 -22
  11. package/esm2020/src/nameserver-history-viewer/components/alert/index.mjs +0 -3
  12. package/esm2020/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.mjs +0 -112
  13. package/esm2020/src/nameserver-history-viewer/components/file-drop-input/index.mjs +0 -2
  14. package/esm2020/src/nameserver-history-viewer/components/index.mjs +0 -9
  15. package/esm2020/src/nameserver-history-viewer/components/instruction/index.mjs +0 -2
  16. package/esm2020/src/nameserver-history-viewer/components/instruction/instruction.component.mjs +0 -42
  17. package/esm2020/src/nameserver-history-viewer/components/nameserver-history.component.mjs +0 -557
  18. package/esm2020/src/nameserver-history-viewer/components/port-selector/index.mjs +0 -2
  19. package/esm2020/src/nameserver-history-viewer/components/port-selector/port-selector.component.mjs +0 -69
  20. package/esm2020/src/nameserver-history-viewer/components/port-selector/port-selector.service.mjs +0 -41
  21. package/esm2020/src/nameserver-history-viewer/components/progress-bar/index.mjs +0 -2
  22. package/esm2020/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.mjs +0 -40
  23. package/esm2020/src/nameserver-history-viewer/components/time-range-selector/index.mjs +0 -2
  24. package/esm2020/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.mjs +0 -70
  25. package/esm2020/src/nameserver-history-viewer/components/timezone-selector/index.mjs +0 -2
  26. package/esm2020/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.mjs +0 -88
  27. package/esm2020/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.mjs +0 -47
  28. package/esm2020/src/nameserver-history-viewer/index.mjs +0 -3
  29. package/esm2020/src/nameserver-history-viewer/nameserver-history.module.mjs +0 -63
  30. package/esm2020/src/nameserver-history-viewer/services/chart.service.mjs +0 -328
  31. package/esm2020/src/nameserver-history-viewer/services/file.service.mjs +0 -390
  32. package/esm2020/src/nameserver-history-viewer/services/index.mjs +0 -4
  33. package/esm2020/src/nameserver-history-viewer/services/ui.service.mjs +0 -557
  34. package/esm2020/src/nameserver-history-viewer/types/abort.types.mjs +0 -6
  35. package/esm2020/src/nameserver-history-viewer/types/alert.types.mjs +0 -8
  36. package/esm2020/src/nameserver-history-viewer/types/chart-content-data-item.types.mjs +0 -2
  37. package/esm2020/src/nameserver-history-viewer/types/chart-content-data.types.mjs +0 -2
  38. package/esm2020/src/nameserver-history-viewer/types/chart-content-header.types.mjs +0 -2
  39. package/esm2020/src/nameserver-history-viewer/types/chart-content-time.types.mjs +0 -2
  40. package/esm2020/src/nameserver-history-viewer/types/chart-content.types.mjs +0 -2
  41. package/esm2020/src/nameserver-history-viewer/types/color-rgba.types.mjs +0 -2
  42. package/esm2020/src/nameserver-history-viewer/types/html-element.type.mjs +0 -9
  43. package/esm2020/src/nameserver-history-viewer/types/index.mjs +0 -28
  44. package/esm2020/src/nameserver-history-viewer/types/item.types.mjs +0 -14
  45. package/esm2020/src/nameserver-history-viewer/types/legend-color.types.mjs +0 -2
  46. package/esm2020/src/nameserver-history-viewer/types/load-history-info-backup.types.mjs +0 -2
  47. package/esm2020/src/nameserver-history-viewer/types/load-history-info-columnstore.types.mjs +0 -2
  48. package/esm2020/src/nameserver-history-viewer/types/load-history-info-host.types.mjs +0 -2
  49. package/esm2020/src/nameserver-history-viewer/types/load-history-info-item.types.mjs +0 -2
  50. package/esm2020/src/nameserver-history-viewer/types/load-history-info-persistence.types.mjs +0 -2
  51. package/esm2020/src/nameserver-history-viewer/types/load-history-info-rowstore.types.mjs +0 -2
  52. package/esm2020/src/nameserver-history-viewer/types/load-history-info-server.types.mjs +0 -2
  53. package/esm2020/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.mjs +0 -2
  54. package/esm2020/src/nameserver-history-viewer/types/load-history-info-sql.types.mjs +0 -2
  55. package/esm2020/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.mjs +0 -2
  56. package/esm2020/src/nameserver-history-viewer/types/load-history-info-threads.types.mjs +0 -2
  57. package/esm2020/src/nameserver-history-viewer/types/load-history-info.types.mjs +0 -2
  58. package/esm2020/src/nameserver-history-viewer/types/port.types.mjs +0 -2
  59. package/esm2020/src/nameserver-history-viewer/types/scale-group.types.mjs +0 -17
  60. package/esm2020/src/nameserver-history-viewer/types/unit-category.types.mjs +0 -10
  61. package/esm2020/src/nameserver-history-viewer/types/unit.types.mjs +0 -14
  62. package/esm2020/src/nameserver-history-viewer/utils/chart-util.mjs +0 -25
  63. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.mjs +0 -2
  64. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.mjs +0 -56
  65. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.mjs +0 -139
  66. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/index.mjs +0 -41
  67. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.mjs +0 -106
  68. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.mjs +0 -167
  69. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/utils.mjs +0 -114
  70. package/esm2020/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.mjs +0 -527
  71. package/esm2020/src/nameserver-history-viewer/utils/chartjs-zoom/index.mjs +0 -2
  72. package/esm2020/src/nameserver-history-viewer/utils/file-util.mjs +0 -161
  73. package/esm2020/src/nameserver-history-viewer/utils/index.mjs +0 -5
  74. package/esm2020/src/nameserver-history-viewer/utils/time-util.mjs +0 -99
  75. package/esm2020/src/nameserver-history-viewer/utils/ui-util.mjs +0 -162
  76. package/fesm2015/ngx-hana-nameserver-history-viewer.mjs +0 -4098
  77. package/fesm2015/ngx-hana-nameserver-history-viewer.mjs.map +0 -1
  78. package/fesm2020/ngx-hana-nameserver-history-viewer.mjs.map +0 -1
  79. package/ngx-hana-nameserver-history-viewer.d.ts +0 -5
  80. package/public-api.d.ts +0 -1
  81. package/src/nameserver-history-viewer/components/alert/alert.component.d.ts +0 -21
  82. package/src/nameserver-history-viewer/components/alert/alert.module.d.ts +0 -8
  83. package/src/nameserver-history-viewer/components/alert/index.d.ts +0 -2
  84. package/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.d.ts +0 -16
  85. package/src/nameserver-history-viewer/components/file-drop-input/index.d.ts +0 -1
  86. package/src/nameserver-history-viewer/components/index.d.ts +0 -8
  87. package/src/nameserver-history-viewer/components/instruction/index.d.ts +0 -1
  88. package/src/nameserver-history-viewer/components/instruction/instruction.component.d.ts +0 -17
  89. package/src/nameserver-history-viewer/components/nameserver-history.component.d.ts +0 -262
  90. package/src/nameserver-history-viewer/components/port-selector/index.d.ts +0 -1
  91. package/src/nameserver-history-viewer/components/port-selector/port-selector.component.d.ts +0 -31
  92. package/src/nameserver-history-viewer/components/port-selector/port-selector.service.d.ts +0 -14
  93. package/src/nameserver-history-viewer/components/progress-bar/index.d.ts +0 -1
  94. package/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.d.ts +0 -6
  95. package/src/nameserver-history-viewer/components/time-range-selector/index.d.ts +0 -1
  96. package/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.d.ts +0 -19
  97. package/src/nameserver-history-viewer/components/timezone-selector/index.d.ts +0 -1
  98. package/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.d.ts +0 -26
  99. package/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.d.ts +0 -21
  100. package/src/nameserver-history-viewer/index.d.ts +0 -2
  101. package/src/nameserver-history-viewer/nameserver-history.module.d.ts +0 -19
  102. package/src/nameserver-history-viewer/services/chart.service.d.ts +0 -59
  103. package/src/nameserver-history-viewer/services/file.service.d.ts +0 -63
  104. package/src/nameserver-history-viewer/services/index.d.ts +0 -3
  105. package/src/nameserver-history-viewer/services/ui.service.d.ts +0 -88
  106. package/src/nameserver-history-viewer/types/abort.types.d.ts +0 -4
  107. package/src/nameserver-history-viewer/types/alert.types.d.ts +0 -6
  108. package/src/nameserver-history-viewer/types/chart-content-data-item.types.d.ts +0 -4
  109. package/src/nameserver-history-viewer/types/chart-content-data.types.d.ts +0 -4
  110. package/src/nameserver-history-viewer/types/chart-content-header.types.d.ts +0 -4
  111. package/src/nameserver-history-viewer/types/chart-content-time.types.d.ts +0 -3
  112. package/src/nameserver-history-viewer/types/chart-content.types.d.ts +0 -10
  113. package/src/nameserver-history-viewer/types/color-rgba.types.d.ts +0 -6
  114. package/src/nameserver-history-viewer/types/html-element.type.d.ts +0 -7
  115. package/src/nameserver-history-viewer/types/index.d.ts +0 -27
  116. package/src/nameserver-history-viewer/types/item.types.d.ts +0 -12
  117. package/src/nameserver-history-viewer/types/legend-color.types.d.ts +0 -4
  118. package/src/nameserver-history-viewer/types/load-history-info-backup.types.d.ts +0 -7
  119. package/src/nameserver-history-viewer/types/load-history-info-columnstore.types.d.ts +0 -7
  120. package/src/nameserver-history-viewer/types/load-history-info-host.types.d.ts +0 -15
  121. package/src/nameserver-history-viewer/types/load-history-info-item.types.d.ts +0 -13
  122. package/src/nameserver-history-viewer/types/load-history-info-persistence.types.d.ts +0 -11
  123. package/src/nameserver-history-viewer/types/load-history-info-rowstore.types.d.ts +0 -5
  124. package/src/nameserver-history-viewer/types/load-history-info-server.types.d.ts +0 -10
  125. package/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.d.ts +0 -10
  126. package/src/nameserver-history-viewer/types/load-history-info-sql.types.d.ts +0 -16
  127. package/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.d.ts +0 -5
  128. package/src/nameserver-history-viewer/types/load-history-info-threads.types.d.ts +0 -9
  129. package/src/nameserver-history-viewer/types/load-history-info.types.d.ts +0 -22
  130. package/src/nameserver-history-viewer/types/port.types.d.ts +0 -5
  131. package/src/nameserver-history-viewer/types/scale-group.types.d.ts +0 -15
  132. package/src/nameserver-history-viewer/types/unit-category.types.d.ts +0 -8
  133. package/src/nameserver-history-viewer/types/unit.types.d.ts +0 -12
  134. package/src/nameserver-history-viewer/utils/chart-util.d.ts +0 -14
  135. package/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.d.ts +0 -89
  136. package/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.d.ts +0 -32
  137. package/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.d.ts +0 -78
  138. package/src/nameserver-history-viewer/utils/chartjs-downsample/index.d.ts +0 -1
  139. package/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.d.ts +0 -57
  140. package/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.d.ts +0 -55
  141. package/src/nameserver-history-viewer/utils/chartjs-downsample/utils.d.ts +0 -64
  142. package/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.d.ts +0 -30
  143. package/src/nameserver-history-viewer/utils/chartjs-zoom/index.d.ts +0 -1
  144. package/src/nameserver-history-viewer/utils/file-util.d.ts +0 -68
  145. package/src/nameserver-history-viewer/utils/index.d.ts +0 -4
  146. package/src/nameserver-history-viewer/utils/time-util.d.ts +0 -23
  147. package/src/nameserver-history-viewer/utils/ui-util.d.ts +0 -41
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="ngx-hana-nameserver-history-viewer" />
5
- export * from './public-api';
package/public-api.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './src/nameserver-history-viewer/index';
@@ -1,21 +0,0 @@
1
- import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class AlertComponent implements OnChanges {
4
- alertMessage: string;
5
- alertType: string;
6
- alertTimeout: number;
7
- alertMessageChange: EventEmitter<string>;
8
- message: string;
9
- private _timeout;
10
- ngOnChanges(changes: SimpleChanges): void;
11
- private _setMessage;
12
- private _showMessage;
13
- private _setTimeout;
14
- clearAlert(): void;
15
- /**
16
- * get css class base on the alert type
17
- */
18
- get alertClassType(): "alert-success" | "alert-error" | "alert-info" | "alert-warning";
19
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "alert", never, { "alertMessage": "alertMessage"; "alertType": "alertType"; "alertTimeout": "alertTimeout"; }, { "alertMessageChange": "alertMessageChange"; }, never, never>;
21
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./alert.component";
3
- import * as i2 from "@angular/common";
4
- export declare class AlertModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.AlertComponent], [typeof i2.CommonModule], [typeof i1.AlertComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
8
- }
@@ -1,2 +0,0 @@
1
- export * from './alert.component';
2
- export * from './alert.module';
@@ -1,16 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class FileDropInputComponent {
4
- dropAreaText: string;
5
- inputAreaText: string;
6
- fileDrop: EventEmitter<any>;
7
- fileInput: EventEmitter<any>;
8
- droppingFlag: boolean;
9
- private static _stopAndPrevent;
10
- browseFiles(event: Event): void;
11
- onDragOver(event: Event): void;
12
- onDragLeave(event: Event): void;
13
- onDropFiles(event: any): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FileDropInputComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<FileDropInputComponent, "file-drop-input", never, { "dropAreaText": "dropAreaText"; "inputAreaText": "inputAreaText"; }, { "fileDrop": "fileDrop"; "fileInput": "fileInput"; }, never, never>;
16
- }
@@ -1 +0,0 @@
1
- export * from './file-drop-input.component';
@@ -1,8 +0,0 @@
1
- export * from './alert';
2
- export * from './file-drop-input';
3
- export * from './progress-bar';
4
- export * from './timezone-selector';
5
- export * from './port-selector';
6
- export * from './instruction';
7
- export * from './time-range-selector';
8
- export * from './nameserver-history.component';
@@ -1 +0,0 @@
1
- export * from './instruction.component';
@@ -1,17 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class InstructionComponent {
4
- step1Finished: boolean;
5
- step2Finished: boolean;
6
- step3Finished: boolean;
7
- step4Finished: boolean;
8
- step5Finished: boolean;
9
- show: boolean;
10
- /**
11
- * Output event bind to (show)
12
- */
13
- showChange: EventEmitter<boolean>;
14
- onClose(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<InstructionComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<InstructionComponent, "instruction", never, { "step1Finished": "step1Finished"; "step2Finished": "step2Finished"; "step3Finished": "step3Finished"; "step4Finished": "step4Finished"; "step5Finished": "step5Finished"; "show": "show"; }, { "showChange": "showChange"; }, never, never>;
17
- }
@@ -1,262 +0,0 @@
1
- import { AfterViewInit, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
2
- import { Alert, Item, ChartContentData, ChartContentHeader, ChartContentTime, Port } from '../types';
3
- import { FileService, ChartService, UIService } from '../services';
4
- import 'hammerjs';
5
- import '../utils/chartjs-downsample';
6
- import '../utils/chartjs-zoom';
7
- import * as i0 from "@angular/core";
8
- declare enum SearchType {
9
- searchWithSubHeader = "searchWithSubHeader",
10
- searchAll = "searchAll",
11
- searchInChildren = "searchInChildren"
12
- }
13
- export declare class NameServerHistoryComponent implements OnChanges, AfterViewInit {
14
- private fileService;
15
- private chartService;
16
- private uiService;
17
- nameserverHistoryAllRef: ElementRef;
18
- nameserverHistoryContentRef: ElementRef;
19
- /**
20
- * Input (optional) bind to [defaultSelectedItems]
21
- */
22
- defaultSelectedItems: string[];
23
- /**
24
- * Input (optional) bind to [hideMeasureColumns]
25
- */
26
- hideMeasureColumns: string[];
27
- /**
28
- * Input (optional) bind to [maxRowsLimitation]
29
- */
30
- maxRowsLimitation: number;
31
- /**
32
- * Input (optional) bind to [showInstruction]
33
- */
34
- showInstruction: boolean;
35
- /**
36
- * Input (optional) bind to [timezone]
37
- */
38
- timezone: string;
39
- /**
40
- * file buffer, use this for stream mode
41
- */
42
- fileBuffer: Blob;
43
- /**
44
- * file name for stream mode
45
- */
46
- streamModeFileName: string;
47
- /**
48
- * auto display the chart in stream mode
49
- */
50
- autoDisplay: boolean;
51
- /**
52
- * selected name server history file
53
- */
54
- file: File;
55
- /**
56
- * time info of the name server history file
57
- */
58
- time: ChartContentTime;
59
- /**
60
- * data of the name server history file
61
- */
62
- data: ChartContentData;
63
- /**
64
- * header of the name server history file
65
- */
66
- header: ChartContentHeader[];
67
- /**
68
- * host of the name server history file
69
- */
70
- host: string;
71
- /**
72
- * alert message content
73
- */
74
- alertMessage: string;
75
- /**
76
- * alert message type
77
- */
78
- alertType: Alert;
79
- /**
80
- * selected port
81
- */
82
- port: string;
83
- /**
84
- * all the ports from the nameserver history file
85
- */
86
- ports: Port[];
87
- /**
88
- * selected time range
89
- */
90
- dateTimeRange: Date[];
91
- /**
92
- * data source for the selection table (right part of the chart)
93
- */
94
- tableSource: any[];
95
- /**
96
- * the progress for reading file
97
- */
98
- readProgress: number;
99
- /**
100
- * selected/dropped file name (abbreviation), full file name will be shown via the tooltips
101
- */
102
- abbreviatedFileName: string;
103
- /**
104
- * for the instruction step 4
105
- */
106
- stepShowChart: boolean;
107
- /**
108
- * control flag for showing the name server history chart
109
- */
110
- showChartFlag: boolean;
111
- /**
112
- * control flag for showing the file reading progress
113
- */
114
- showReadFileProgress: boolean;
115
- /**
116
- * control flag for "Load" ports button
117
- */
118
- enableLoadPortsButton: boolean;
119
- /**
120
- * control flag for enabling "Show" chart button
121
- */
122
- enableShowChartButton: boolean;
123
- /**
124
- * control flag for "Reset" chart button
125
- */
126
- enableResetChartButton: boolean;
127
- searchType: SearchType;
128
- /**
129
- * selection information for the selection table
130
- */
131
- private _selection;
132
- /**
133
- * current displaying port
134
- */
135
- private _currentChartPort;
136
- constructor(fileService: FileService, chartService: ChartService, uiService: UIService);
137
- ngOnChanges(changes: SimpleChanges): Promise<void>;
138
- ngAfterViewInit(): void;
139
- /**
140
- * Reset Chart to initial status
141
- * If legend is already selected/unselected from the list, it wouldn't be restored.
142
- */
143
- resetChart(): void;
144
- /**
145
- * read the file and display the chart
146
- */
147
- showChart(): void;
148
- /**
149
- * load all ports from file
150
- */
151
- loadPorts(): void;
152
- /**
153
- * select name server history file, currently only supports 1 file.
154
- */
155
- fileSelected(event: any): Promise<void>;
156
- /**
157
- * drop name server history file, currently only supports 1 file.
158
- */
159
- fileDropped(event: any): void;
160
- /**
161
- * Select one item from selection table, relative dataset will be shown or hidden
162
- */
163
- selectItem(event: any): void;
164
- /**
165
- * recalculating chart height when resizing
166
- */
167
- onResize(): void;
168
- /**
169
- * Switch port and reinitialize chart, triggered by changing the port
170
- * @param port the selected port
171
- */
172
- switchPortForChart(port: string): void;
173
- /**
174
- * get the columns which need to be hidden from the selection table
175
- */
176
- get hiddenColumns(): string[];
177
- /**
178
- * get default timezone
179
- */
180
- get defaultTimezone(): string;
181
- /**
182
- * get the key column (KPI)
183
- */
184
- get kpiColumn(): Item;
185
- /**
186
- * get the key column (KPI)
187
- */
188
- get descColumn(): Item;
189
- /**
190
- * get the selected time range, set second and millisecond part to 0
191
- */
192
- private get _selectedTimeRange();
193
- /**
194
- * get the time range string, eg: 2018-10-25 10:25 ~ 2018-10-26 10:26
195
- */
196
- private get _selectedTimeRangeString();
197
- /**
198
- * get array of header key
199
- */
200
- private get _headerKey();
201
- /**
202
- * get array of header text
203
- */
204
- private get _headerText();
205
- /**
206
- * read ports from the selected nameserver history file
207
- * @param file nameserver history file
208
- */
209
- private _readPortsFromFile;
210
- /**
211
- * build chart from the selected nameserver history file
212
- * @param file the nameserver history file
213
- * @param startTime start time
214
- * @param endTime end time
215
- * @param selectedPort selected port for nameserver history file (MDC system)
216
- */
217
- private _buildChartFromDataFile;
218
- /**
219
- * reinitialize the port selector with the ports
220
- */
221
- private _initPortSelector;
222
- /**
223
- * build and display the chart on page
224
- * @param port the selected port
225
- * @param ports all available ports
226
- * @param switchFlag indicates whether this function is triggered from switching ports (no init port selector needed)
227
- */
228
- private _buildChart;
229
- /**
230
- * get the string that will be displayed on the title area of the chart
231
- * eg: host1 - 30040 (2018-09-05 15:32:32 ~ 2018-09-07 15:32:15)
232
- * @param port selected port
233
- */
234
- private _getHostTitle;
235
- /**
236
- * after zoom, enable the reset button.
237
- */
238
- private _onZoom;
239
- /**
240
- * initialize chart, including: destroy current chart, initialize config, initialize all relative data
241
- */
242
- private _initChartEnv;
243
- /**
244
- * Load settings for the selection table (the right part of the chart)
245
- * @param port the selected port
246
- */
247
- private _loadSettingsForSelectionsTable;
248
- /**
249
- * Show messages
250
- * @param type type of the message
251
- * @param message message text
252
- */
253
- private _showMessage;
254
- /**
255
- * toggle items with the provided status (show or hide the relative element on the page)
256
- * @param items items with the relative id and status.
257
- */
258
- private _toggleItems;
259
- static ɵfac: i0.ɵɵFactoryDeclaration<NameServerHistoryComponent, never>;
260
- static ɵcmp: i0.ɵɵComponentDeclaration<NameServerHistoryComponent, "ngx-hana-nameserver-history-viewer", never, { "defaultSelectedItems": "defaultSelectedItems"; "hideMeasureColumns": "hideMeasureColumns"; "maxRowsLimitation": "maxRowsLimitation"; "showInstruction": "showInstruction"; "timezone": "timezone"; "fileBuffer": "fileBuffer"; "streamModeFileName": "streamModeFileName"; "autoDisplay": "autoDisplay"; }, {}, never, never>;
261
- }
262
- export {};
@@ -1 +0,0 @@
1
- export * from './port-selector.component';
@@ -1,31 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { PortSelectorService } from './port-selector.service';
3
- import { Port } from '../../types';
4
- import * as i0 from "@angular/core";
5
- export declare class PortSelectorComponent {
6
- private service;
7
- /**
8
- * Input: boolean (optional) bind to [disabled]
9
- */
10
- disabled: boolean;
11
- /**
12
- * Output event bind to (port)
13
- */
14
- portChange: EventEmitter<string>;
15
- /**
16
- * Input: string (required) bind to [port]
17
- */
18
- port: string;
19
- /**
20
- * Input: array (required) bind to [ports]
21
- */
22
- ports: Port[];
23
- get displayPorts(): Port[];
24
- constructor(service: PortSelectorService);
25
- /**
26
- * onChange function called by the "ngx-select" element
27
- */
28
- onChange(event: any): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<PortSelectorComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<PortSelectorComponent, "port-selector", never, { "disabled": "disabled"; "port": "port"; "ports": "ports"; }, { "portChange": "portChange"; }, never, never>;
31
- }
@@ -1,14 +0,0 @@
1
- import { Port } from '../../types';
2
- import * as i0 from "@angular/core";
3
- export declare class PortSelectorService {
4
- private _defaultPorts;
5
- /**
6
- * generate the default ports from 3**01 to 3**99
7
- * the ports which used (3**01, 3**03, 3**07, 3**40, 3**43, 3*46, 3**49, 3**52, 3**55, 3*58, 3**61 ...)
8
- * by hana normally will be put in the first places
9
- */
10
- private _getDefaultPorts;
11
- getPorts(ports?: Port[]): Port[];
12
- static ɵfac: i0.ɵɵFactoryDeclaration<PortSelectorService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<PortSelectorService>;
14
- }
@@ -1 +0,0 @@
1
- export * from './progress-bar.component';
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ProgressBarComponent {
3
- progress: number;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "progress-bar", never, { "progress": "progress"; }, {}, never, never>;
6
- }
@@ -1 +0,0 @@
1
- export * from './time-range-selector.component';
@@ -1,19 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TimeRangeSelectorComponent {
4
- disabled: boolean;
5
- /**
6
- * selected time range
7
- */
8
- dateTimeRange: Date[];
9
- /**
10
- * for two way binding.
11
- */
12
- dateTimeRangeChange: EventEmitter<Date[]>;
13
- /**
14
- * triggered when picker closed
15
- */
16
- afterPickerClosed(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<TimeRangeSelectorComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<TimeRangeSelectorComponent, "time-range-selector", never, { "disabled": "disabled"; "dateTimeRange": "dateTimeRange"; }, { "dateTimeRangeChange": "dateTimeRangeChange"; }, never, never>;
19
- }
@@ -1 +0,0 @@
1
- export * from './timezone-selector.component';
@@ -1,26 +0,0 @@
1
- import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import { TimezoneSelectorService } from './timezone-selector.service';
3
- import * as i0 from "@angular/core";
4
- export declare class TimezoneSelectorComponent implements OnChanges {
5
- private service;
6
- disabled: boolean;
7
- timezone: string;
8
- timezoneChange: EventEmitter<string>;
9
- /**
10
- * all time zones for each region
11
- */
12
- timezones: any[];
13
- private static _formatNumber;
14
- constructor(service: TimezoneSelectorService);
15
- ngOnChanges(changes: SimpleChanges): void;
16
- private _getFormattedZone;
17
- private _formatTimezone;
18
- private _getOffset;
19
- /**
20
- * onChange function called by the "ngx-select" element
21
- * @param selectedTimezone The timezone string selected
22
- */
23
- onChange(selectedTimezone: string): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<TimezoneSelectorComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<TimezoneSelectorComponent, "timezone-selector", never, { "disabled": "disabled"; "timezone": "timezone"; }, { "timezoneChange": "timezoneChange"; }, never, never>;
26
- }
@@ -1,21 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export interface Timezone {
3
- region: string;
4
- zones: string[];
5
- }
6
- export declare class TimezoneSelectorService {
7
- /**
8
- * get the default timezone
9
- */
10
- getDefaultTimezone(): string;
11
- /**
12
- * Get all the timezones for each region
13
- */
14
- getZones(): Timezone[];
15
- /**
16
- * build timezone lists
17
- */
18
- private _buildTimezones;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<TimezoneSelectorService, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<TimezoneSelectorService>;
21
- }
@@ -1,2 +0,0 @@
1
- export * from './nameserver-history.module';
2
- export * from './components/nameserver-history.component';
@@ -1,19 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./components/nameserver-history.component";
3
- import * as i2 from "./components/file-drop-input/file-drop-input.component";
4
- import * as i3 from "./components/progress-bar/progress-bar.component";
5
- import * as i4 from "./components/timezone-selector/timezone-selector.component";
6
- import * as i5 from "./components/port-selector/port-selector.component";
7
- import * as i6 from "./components/instruction/instruction.component";
8
- import * as i7 from "./components/time-range-selector/time-range-selector.component";
9
- import * as i8 from "./components/alert/alert.module";
10
- import * as i9 from "ngx-selection-table";
11
- import * as i10 from "ngx-dropdown-list";
12
- import * as i11 from "@danielmoncada/angular-datetime-picker";
13
- import * as i12 from "@angular/common";
14
- import * as i13 from "@angular/forms";
15
- export declare class NameserverHistoryModule {
16
- static ɵfac: i0.ɵɵFactoryDeclaration<NameserverHistoryModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<NameserverHistoryModule, [typeof i1.NameServerHistoryComponent, typeof i2.FileDropInputComponent, typeof i3.ProgressBarComponent, typeof i4.TimezoneSelectorComponent, typeof i5.PortSelectorComponent, typeof i6.InstructionComponent, typeof i7.TimeRangeSelectorComponent], [typeof i8.AlertModule, typeof i9.SelectionTableModule, typeof i10.DropdownListModule, typeof i11.OwlDateTimeModule, typeof i11.OwlNativeDateTimeModule, typeof i12.CommonModule, typeof i13.FormsModule], [typeof i1.NameServerHistoryComponent]>;
18
- static ɵinj: i0.ɵɵInjectorDeclaration<NameserverHistoryModule>;
19
- }
@@ -1,59 +0,0 @@
1
- import { SelectionModel } from '@angular/cdk/collections';
2
- import { ChartContentDataItem } from '../types';
3
- import * as i0 from "@angular/core";
4
- export declare class ChartService {
5
- private _chart;
6
- /**
7
- * toggle the dataset status of the chart, synchronously
8
- */
9
- private static _toggleDataSet;
10
- private static _restoreDataSetStatus;
11
- /**
12
- * initialize/clear the configuration for the chart
13
- */
14
- private static _initConfig;
15
- /**
16
- * Generate DataSets by the data and header information
17
- */
18
- private static _generateDataSets;
19
- private static _generateXAxes;
20
- private static _generateYAxes;
21
- /**
22
- * generate configuration for chart
23
- */
24
- private static _generateChartConfig;
25
- private _getDataSetIndexByLabel;
26
- /**
27
- * destroy the chart, release the resource of the chart
28
- */
29
- private _destroyChart;
30
- /**
31
- * update/refresh the chart
32
- */
33
- private _updateChart;
34
- /**
35
- * reset zoom of the chart
36
- */
37
- private _resetZoom;
38
- /**
39
- * Reset Chart to initial status
40
- * If legend is already selected/unselected from the list, it wouldn't be restored.
41
- * @param dataSourceData the data sets of the chart
42
- * @param selection selection status list
43
- */
44
- resetChart(dataSourceData: any, selection: SelectionModel<any>): Promise<any>;
45
- /**
46
- * destroy the chart and reinitialize the configuration of the chart
47
- */
48
- destroyChart(): Promise<any>;
49
- /**
50
- * generate configuration for chart and create the chart object.
51
- */
52
- buildChart(time: number[], data: ChartContentDataItem[][], yScale: number[], header: string[], headerKey: string[], selection: SelectionModel<any>, tableSource: any, title: string, defaultItems: string[], zoomCB: any): Promise<void>;
53
- /**
54
- * show/hide the relative data set
55
- */
56
- toggleDataInChart(label: string, hide: boolean): Promise<any>;
57
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartService, never>;
58
- static ɵprov: i0.ɵɵInjectableDeclaration<ChartService>;
59
- }
@@ -1,63 +0,0 @@
1
- import { ChartContent } from '../types';
2
- import * as i0 from "@angular/core";
3
- export declare class FileService {
4
- /**
5
- * prevent browser from crashing, set the max rows limitation.
6
- * @param limitation if this parameter is not null, the default value will be overwritten by this one.
7
- */
8
- private static _getMaxRowsLimitation;
9
- /**
10
- * get all available ports from data
11
- */
12
- private static _getPorts;
13
- /**
14
- * get the time column from the analyzed data
15
- * @param data the analyzed data
16
- * @param firstChunk whether it's first chunk or not
17
- * @param startTime selected starting time. It's millisecond, need to be converted second.
18
- * @param endTime selected ending time. It's millisecond, need to be converted second.
19
- * @param lastProcessedTime last processed time form last chunk
20
- * @param time time object which contains the time data for all ports
21
- * @param selectedPort if the selected port is empty (did not select any port), all ports info are needed
22
- * @param isMDC flag for MDC system
23
- * @param timezone selected timezone
24
- * @param maxRowsLimitation prevent browser from crashing, set the max rows limitation.
25
- * This comes from the input: maxRowsLimitation of the component.
26
- */
27
- private static _getTimeColumn;
28
- /**
29
- * Get data for all columns
30
- * @param columnNum the total number of columns. For mdc system,
31
- * the length of each row is different. Host relative data does not exist in tenant line.
32
- * Needs to use column number from the first line.
33
- * @param data data parsed by papa
34
- * @param firstChunk the flag which identifies whether it's the first chunk or not.
35
- * @param time
36
- * @param indexStart
37
- * @param indexEnd
38
- * @param lastProcessedLine
39
- * @param resultData the result data after analyzed
40
- * @param selectedPort
41
- * @param isMDC
42
- */
43
- private static _getDataColumns;
44
- /**
45
- * Get Chart data from provided file.
46
- * @param file the nameserver history file
47
- * @param startTime
48
- * @param endTime
49
- * @param port
50
- * @param timezone
51
- * @param maxRowsLimitation prevent browser from crashing, set the max rows limitation.
52
- * @param progress call back function for updating progress
53
- */
54
- getChartContentFromFile(file: File, startTime: number, endTime: number, port: string, timezone: string, maxRowsLimitation: any, progress: any): Promise<ChartContent>;
55
- /**
56
- * Get all ports from the name server history file
57
- * @param file the name server history file
58
- * @param progress call back for updating the progress
59
- */
60
- getPortsFromFile(file: File, progress: any): Promise<string[]>;
61
- static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
62
- static ɵprov: i0.ɵɵInjectableDeclaration<FileService>;
63
- }
@@ -1,3 +0,0 @@
1
- export * from './chart.service';
2
- export * from './file.service';
3
- export * from './ui.service';