ngx-hana-nameserver-history-viewer 21.1.0 → 21.1.2
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.
- package/README.md +5 -5
- package/fesm2022/ngx-hana-nameserver-history-viewer.mjs +188 -70
- package/fesm2022/ngx-hana-nameserver-history-viewer.mjs.map +1 -1
- package/ngx-hana-nameserver-history-viewer-21.1.2.tgz +0 -0
- package/package.json +4 -3
- package/types/ngx-hana-nameserver-history-viewer.d.ts +29 -3
- package/ngx-hana-nameserver-history-viewer-21.1.0.tgz +0 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-hana-nameserver-history-viewer",
|
|
3
|
-
"version": "21.1.
|
|
3
|
+
"version": "21.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kuang Cheng",
|
|
@@ -31,10 +31,11 @@
|
|
|
31
31
|
"@angular/core": "^21.1.1",
|
|
32
32
|
"@angular/forms": "^21.1.1",
|
|
33
33
|
"@angular/platform-browser": "^21.1.1",
|
|
34
|
+
"@date-fns/tz": "^1.4.1",
|
|
34
35
|
"chart.js": "4.5.1",
|
|
36
|
+
"chartjs-adapter-date-fns": "^3.0.0",
|
|
35
37
|
"chartjs-plugin-zoom": "2.2.0",
|
|
36
|
-
"
|
|
37
|
-
"moment-timezone": "^0.6.0",
|
|
38
|
+
"date-fns": "^4.1.0",
|
|
38
39
|
"ngx-dropdown-list": "^21.0.2",
|
|
39
40
|
"ngx-selection-table": "^21.0.2",
|
|
40
41
|
"nshviewer-angular-datetime-picker": "^21.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, AfterViewInit, ElementRef, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { OnChanges, AfterViewInit, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
4
4
|
|
|
5
5
|
declare enum Item {
|
|
@@ -330,6 +330,14 @@ declare class NameServerHistoryComponent implements OnChanges, AfterViewInit {
|
|
|
330
330
|
* auto display the chart in stream mode
|
|
331
331
|
*/
|
|
332
332
|
autoDisplay: boolean;
|
|
333
|
+
/**
|
|
334
|
+
* service port info
|
|
335
|
+
*/
|
|
336
|
+
servicePortInfo: any;
|
|
337
|
+
/**
|
|
338
|
+
* update timezone value
|
|
339
|
+
*/
|
|
340
|
+
timezoneChange: EventEmitter<string>;
|
|
333
341
|
/**
|
|
334
342
|
* selected name server history file
|
|
335
343
|
*/
|
|
@@ -447,6 +455,11 @@ declare class NameServerHistoryComponent implements OnChanges, AfterViewInit {
|
|
|
447
455
|
* recalculating chart height when resizing
|
|
448
456
|
*/
|
|
449
457
|
onResize(): void;
|
|
458
|
+
/**
|
|
459
|
+
* Handle timezone change from timezone-selector
|
|
460
|
+
* @param newTimezone the new timezone value
|
|
461
|
+
*/
|
|
462
|
+
onTimezoneChange(newTimezone: string): void;
|
|
450
463
|
/**
|
|
451
464
|
* Switch port and reinitialize chart, triggered by changing the port
|
|
452
465
|
* @param port the selected port
|
|
@@ -505,6 +518,7 @@ declare class NameServerHistoryComponent implements OnChanges, AfterViewInit {
|
|
|
505
518
|
* build and display the chart on page
|
|
506
519
|
* @param port the selected port
|
|
507
520
|
* @param ports all available ports
|
|
521
|
+
* @param service service name
|
|
508
522
|
* @param switchFlag indicates whether this function is triggered from switching ports (no init port selector needed)
|
|
509
523
|
*/
|
|
510
524
|
private _buildChart;
|
|
@@ -527,6 +541,12 @@ declare class NameServerHistoryComponent implements OnChanges, AfterViewInit {
|
|
|
527
541
|
* @param port the selected port
|
|
528
542
|
*/
|
|
529
543
|
private _loadSettingsForSelectionsTable;
|
|
544
|
+
/**
|
|
545
|
+
* Replace confusing service type, issue: https://github.com/ckyycc/ngx-hana-nameserver-history-viewer/issues/14
|
|
546
|
+
* by default will replaced it with Service (port), eg: Service (30015)
|
|
547
|
+
*if topology is imported, it will be: Name Server (30001) or Index Server (30040), and so on...
|
|
548
|
+
*/
|
|
549
|
+
private _updateServiceHeader;
|
|
530
550
|
/**
|
|
531
551
|
* Show messages
|
|
532
552
|
* @param type type of the message
|
|
@@ -539,7 +559,13 @@ declare class NameServerHistoryComponent implements OnChanges, AfterViewInit {
|
|
|
539
559
|
*/
|
|
540
560
|
private _toggleItems;
|
|
541
561
|
static ɵfac: i0.ɵɵFactoryDeclaration<NameServerHistoryComponent, never>;
|
|
542
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NameServerHistoryComponent, "ngx-hana-nameserver-history-viewer", never, { "defaultSelectedItems": { "alias": "defaultSelectedItems"; "required": false; }; "hideMeasureColumns": { "alias": "hideMeasureColumns"; "required": false; }; "maxRowsLimitation": { "alias": "maxRowsLimitation"; "required": false; }; "showInstruction": { "alias": "showInstruction"; "required": false; }; "timezone": { "alias": "timezone"; "required": false; }; "fileBuffer": { "alias": "fileBuffer"; "required": false; }; "streamModeFileName": { "alias": "streamModeFileName"; "required": false; }; "autoDisplay": { "alias": "autoDisplay"; "required": false; }; }, {}, never, never, true, never>;
|
|
562
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NameServerHistoryComponent, "ngx-hana-nameserver-history-viewer", never, { "defaultSelectedItems": { "alias": "defaultSelectedItems"; "required": false; }; "hideMeasureColumns": { "alias": "hideMeasureColumns"; "required": false; }; "maxRowsLimitation": { "alias": "maxRowsLimitation"; "required": false; }; "showInstruction": { "alias": "showInstruction"; "required": false; }; "timezone": { "alias": "timezone"; "required": false; }; "fileBuffer": { "alias": "fileBuffer"; "required": false; }; "streamModeFileName": { "alias": "streamModeFileName"; "required": false; }; "autoDisplay": { "alias": "autoDisplay"; "required": false; }; "servicePortInfo": { "alias": "servicePortInfo"; "required": false; }; }, { "timezoneChange": "timezoneChange"; }, never, never, true, never>;
|
|
543
563
|
}
|
|
544
564
|
|
|
545
|
-
|
|
565
|
+
/**
|
|
566
|
+
*
|
|
567
|
+
* @returns get supported timezones from intl
|
|
568
|
+
*/
|
|
569
|
+
declare function supportedTimezones(): string[];
|
|
570
|
+
|
|
571
|
+
export { NameServerHistoryComponent, supportedTimezones };
|
|
Binary file
|