ngx-hana-nameserver-history-viewer 1.1.1 → 1.1.90
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 +7 -6
- package/esm2020/ngx-hana-nameserver-history-viewer.mjs +5 -0
- package/esm2020/public-api.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/components/alert/alert.component.mjs +68 -0
- package/esm2020/src/nameserver-history-viewer/components/alert/alert.module.mjs +22 -0
- package/esm2020/src/nameserver-history-viewer/components/alert/index.mjs +3 -0
- package/esm2020/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.mjs +112 -0
- package/esm2020/src/nameserver-history-viewer/components/file-drop-input/index.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/components/index.mjs +9 -0
- package/esm2020/src/nameserver-history-viewer/components/instruction/index.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/components/instruction/instruction.component.mjs +42 -0
- package/esm2020/src/nameserver-history-viewer/components/nameserver-history.component.mjs +550 -0
- package/esm2020/src/nameserver-history-viewer/components/port-selector/index.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/components/port-selector/port-selector.component.mjs +69 -0
- package/esm2020/src/nameserver-history-viewer/components/port-selector/port-selector.service.mjs +41 -0
- package/esm2020/src/nameserver-history-viewer/components/progress-bar/index.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.mjs +40 -0
- package/esm2020/src/nameserver-history-viewer/components/time-range-selector/index.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.mjs +70 -0
- package/esm2020/src/nameserver-history-viewer/components/timezone-selector/index.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.mjs +90 -0
- package/esm2020/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.mjs +49 -0
- package/esm2020/src/nameserver-history-viewer/index.mjs +3 -0
- package/esm2020/src/nameserver-history-viewer/nameserver-history.module.mjs +63 -0
- package/esm2020/src/nameserver-history-viewer/services/chart.service.mjs +323 -0
- package/esm2020/src/nameserver-history-viewer/services/file.service.mjs +390 -0
- package/esm2020/src/nameserver-history-viewer/services/index.mjs +4 -0
- package/esm2020/src/nameserver-history-viewer/services/ui.service.mjs +557 -0
- package/esm2020/src/nameserver-history-viewer/types/abort.types.mjs +6 -0
- package/esm2020/src/nameserver-history-viewer/types/alert.types.mjs +8 -0
- package/esm2020/src/nameserver-history-viewer/types/chart-content-data-item.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/chart-content-data.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/chart-content-header.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/chart-content-time.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/chart-content.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/color-rgba.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/html-element.type.mjs +9 -0
- package/esm2020/src/nameserver-history-viewer/types/index.mjs +28 -0
- package/esm2020/src/nameserver-history-viewer/types/item.types.mjs +14 -0
- package/esm2020/src/nameserver-history-viewer/types/legend-color.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-backup.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-columnstore.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-host.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-item.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-persistence.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-rowstore.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-server.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-sql.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-threads.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/load-history-info.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/port.types.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/types/scale-group.types.mjs +17 -0
- package/esm2020/src/nameserver-history-viewer/types/unit-category.types.mjs +10 -0
- package/esm2020/src/nameserver-history-viewer/types/unit.types.mjs +14 -0
- package/esm2020/src/nameserver-history-viewer/utils/chart-util.mjs +25 -0
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.mjs +57 -0
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.mjs +139 -0
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/index.mjs +41 -0
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.mjs +106 -0
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.mjs +168 -0
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/utils.mjs +114 -0
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.mjs +527 -0
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-zoom/index.mjs +2 -0
- package/esm2020/src/nameserver-history-viewer/utils/file-util.mjs +154 -0
- package/esm2020/src/nameserver-history-viewer/utils/index.mjs +5 -0
- package/esm2020/src/nameserver-history-viewer/utils/time-util.mjs +101 -0
- package/esm2020/src/nameserver-history-viewer/utils/ui-util.mjs +162 -0
- package/fesm2015/ngx-hana-nameserver-history-viewer.mjs +4081 -0
- package/fesm2015/ngx-hana-nameserver-history-viewer.mjs.map +1 -0
- package/fesm2020/ngx-hana-nameserver-history-viewer.mjs +4081 -0
- package/fesm2020/ngx-hana-nameserver-history-viewer.mjs.map +1 -0
- package/ngx-hana-nameserver-history-viewer.d.ts +1 -1
- package/package.json +36 -61
- package/src/nameserver-history-viewer/components/alert/alert.component.d.ts +4 -1
- package/src/nameserver-history-viewer/components/alert/alert.module.d.ts +6 -0
- package/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.d.ts +3 -0
- package/src/nameserver-history-viewer/components/instruction/instruction.component.d.ts +3 -0
- package/src/nameserver-history-viewer/components/nameserver-history.component.d.ts +33 -14
- package/src/nameserver-history-viewer/components/port-selector/port-selector.component.d.ts +4 -1
- package/src/nameserver-history-viewer/components/port-selector/port-selector.service.d.ts +3 -0
- package/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.d.ts +3 -0
- package/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.d.ts +3 -0
- package/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.d.ts +3 -0
- package/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.d.ts +3 -0
- package/src/nameserver-history-viewer/index.d.ts +1 -0
- package/src/nameserver-history-viewer/nameserver-history.module.d.ts +17 -0
- package/src/nameserver-history-viewer/services/chart.service.d.ts +4 -1
- package/src/nameserver-history-viewer/services/file.service.d.ts +4 -0
- package/src/nameserver-history-viewer/services/ui.service.d.ts +5 -2
- package/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.d.ts +3 -0
- package/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.d.ts +1 -1
- package/src/nameserver-history-viewer/utils/file-util.d.ts +11 -0
- package/bundles/ngx-hana-nameserver-history-viewer.umd.js +0 -6298
- package/bundles/ngx-hana-nameserver-history-viewer.umd.js.map +0 -1
- package/bundles/ngx-hana-nameserver-history-viewer.umd.min.js +0 -2
- package/bundles/ngx-hana-nameserver-history-viewer.umd.min.js.map +0 -1
- package/esm2015/ngx-hana-nameserver-history-viewer.js +0 -10
- package/esm2015/public-api.js +0 -6
- package/esm2015/src/nameserver-history-viewer/components/alert/alert.component.js +0 -108
- package/esm2015/src/nameserver-history-viewer/components/alert/alert.module.js +0 -21
- package/esm2015/src/nameserver-history-viewer/components/alert/index.js +0 -7
- package/esm2015/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.js +0 -141
- package/esm2015/src/nameserver-history-viewer/components/file-drop-input/index.js +0 -6
- package/esm2015/src/nameserver-history-viewer/components/index.js +0 -13
- package/esm2015/src/nameserver-history-viewer/components/instruction/index.js +0 -6
- package/esm2015/src/nameserver-history-viewer/components/instruction/instruction.component.js +0 -62
- package/esm2015/src/nameserver-history-viewer/components/nameserver-history.component.js +0 -742
- package/esm2015/src/nameserver-history-viewer/components/port-selector/index.js +0 -6
- package/esm2015/src/nameserver-history-viewer/components/port-selector/port-selector.component.js +0 -93
- package/esm2015/src/nameserver-history-viewer/components/port-selector/port-selector.service.js +0 -56
- package/esm2015/src/nameserver-history-viewer/components/progress-bar/index.js +0 -6
- package/esm2015/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.js +0 -35
- package/esm2015/src/nameserver-history-viewer/components/time-range-selector/index.js +0 -6
- package/esm2015/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.js +0 -68
- package/esm2015/src/nameserver-history-viewer/components/timezone-selector/index.js +0 -6
- package/esm2015/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.js +0 -135
- package/esm2015/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.js +0 -72
- package/esm2015/src/nameserver-history-viewer/index.js +0 -6
- package/esm2015/src/nameserver-history-viewer/nameserver-history.module.js +0 -42
- package/esm2015/src/nameserver-history-viewer/services/chart.service.js +0 -423
- package/esm2015/src/nameserver-history-viewer/services/file.service.js +0 -447
- package/esm2015/src/nameserver-history-viewer/services/index.js +0 -8
- package/esm2015/src/nameserver-history-viewer/services/ui.service.js +0 -817
- package/esm2015/src/nameserver-history-viewer/types/abort.types.js +0 -13
- package/esm2015/src/nameserver-history-viewer/types/alert.types.js +0 -13
- package/esm2015/src/nameserver-history-viewer/types/chart-content-data-item.types.js +0 -15
- package/esm2015/src/nameserver-history-viewer/types/chart-content-data.types.js +0 -9
- package/esm2015/src/nameserver-history-viewer/types/chart-content-header.types.js +0 -15
- package/esm2015/src/nameserver-history-viewer/types/chart-content-time.types.js +0 -9
- package/esm2015/src/nameserver-history-viewer/types/chart-content.types.js +0 -21
- package/esm2015/src/nameserver-history-viewer/types/color-rgba.types.js +0 -19
- package/esm2015/src/nameserver-history-viewer/types/html-element.type.js +0 -19
- package/esm2015/src/nameserver-history-viewer/types/index.js +0 -32
- package/esm2015/src/nameserver-history-viewer/types/item.types.js +0 -19
- package/esm2015/src/nameserver-history-viewer/types/legend-color.types.js +0 -9
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-backup.types.js +0 -19
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-columnstore.types.js +0 -19
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-host.types.js +0 -35
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-item.types.js +0 -31
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-persistence.types.js +0 -27
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-rowstore.types.js +0 -15
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-server.types.js +0 -25
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.js +0 -19
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-sql.types.js +0 -37
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.js +0 -15
- package/esm2015/src/nameserver-history-viewer/types/load-history-info-threads.types.js +0 -23
- package/esm2015/src/nameserver-history-viewer/types/load-history-info.types.js +0 -31
- package/esm2015/src/nameserver-history-viewer/types/port.types.js +0 -17
- package/esm2015/src/nameserver-history-viewer/types/scale-group.types.js +0 -35
- package/esm2015/src/nameserver-history-viewer/types/unit-category.types.js +0 -21
- package/esm2015/src/nameserver-history-viewer/types/unit.types.js +0 -19
- package/esm2015/src/nameserver-history-viewer/utils/chart-util.js +0 -38
- package/esm2015/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.js +0 -100
- package/esm2015/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.js +0 -88
- package/esm2015/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.js +0 -213
- package/esm2015/src/nameserver-history-viewer/utils/chartjs-downsample/index.js +0 -46
- package/esm2015/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.js +0 -158
- package/esm2015/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.js +0 -295
- package/esm2015/src/nameserver-history-viewer/utils/chartjs-downsample/utils.js +0 -130
- package/esm2015/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.js +0 -733
- package/esm2015/src/nameserver-history-viewer/utils/chartjs-zoom/index.js +0 -6
- package/esm2015/src/nameserver-history-viewer/utils/file-util.js +0 -149
- package/esm2015/src/nameserver-history-viewer/utils/index.js +0 -9
- package/esm2015/src/nameserver-history-viewer/utils/time-util.js +0 -135
- package/esm2015/src/nameserver-history-viewer/utils/ui-util.js +0 -203
- package/esm5/ngx-hana-nameserver-history-viewer.js +0 -10
- package/esm5/public-api.js +0 -6
- package/esm5/src/nameserver-history-viewer/components/alert/alert.component.js +0 -140
- package/esm5/src/nameserver-history-viewer/components/alert/alert.module.js +0 -25
- package/esm5/src/nameserver-history-viewer/components/alert/index.js +0 -7
- package/esm5/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.js +0 -155
- package/esm5/src/nameserver-history-viewer/components/file-drop-input/index.js +0 -6
- package/esm5/src/nameserver-history-viewer/components/index.js +0 -13
- package/esm5/src/nameserver-history-viewer/components/instruction/index.js +0 -6
- package/esm5/src/nameserver-history-viewer/components/instruction/instruction.component.js +0 -67
- package/esm5/src/nameserver-history-viewer/components/nameserver-history.component.js +0 -990
- package/esm5/src/nameserver-history-viewer/components/port-selector/index.js +0 -6
- package/esm5/src/nameserver-history-viewer/components/port-selector/port-selector.component.js +0 -93
- package/esm5/src/nameserver-history-viewer/components/port-selector/port-selector.service.js +0 -81
- package/esm5/src/nameserver-history-viewer/components/progress-bar/index.js +0 -6
- package/esm5/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.js +0 -26
- package/esm5/src/nameserver-history-viewer/components/time-range-selector/index.js +0 -6
- package/esm5/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.js +0 -58
- package/esm5/src/nameserver-history-viewer/components/timezone-selector/index.js +0 -6
- package/esm5/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.js +0 -164
- package/esm5/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.js +0 -102
- package/esm5/src/nameserver-history-viewer/index.js +0 -6
- package/esm5/src/nameserver-history-viewer/nameserver-history.module.js +0 -46
- package/esm5/src/nameserver-history-viewer/services/chart.service.js +0 -578
- package/esm5/src/nameserver-history-viewer/services/file.service.js +0 -566
- package/esm5/src/nameserver-history-viewer/services/index.js +0 -8
- package/esm5/src/nameserver-history-viewer/services/ui.service.js +0 -1036
- package/esm5/src/nameserver-history-viewer/types/abort.types.js +0 -13
- package/esm5/src/nameserver-history-viewer/types/alert.types.js +0 -13
- package/esm5/src/nameserver-history-viewer/types/chart-content-data-item.types.js +0 -15
- package/esm5/src/nameserver-history-viewer/types/chart-content-data.types.js +0 -9
- package/esm5/src/nameserver-history-viewer/types/chart-content-header.types.js +0 -15
- package/esm5/src/nameserver-history-viewer/types/chart-content-time.types.js +0 -9
- package/esm5/src/nameserver-history-viewer/types/chart-content.types.js +0 -21
- package/esm5/src/nameserver-history-viewer/types/color-rgba.types.js +0 -19
- package/esm5/src/nameserver-history-viewer/types/html-element.type.js +0 -19
- package/esm5/src/nameserver-history-viewer/types/index.js +0 -32
- package/esm5/src/nameserver-history-viewer/types/item.types.js +0 -19
- package/esm5/src/nameserver-history-viewer/types/legend-color.types.js +0 -9
- package/esm5/src/nameserver-history-viewer/types/load-history-info-backup.types.js +0 -19
- package/esm5/src/nameserver-history-viewer/types/load-history-info-columnstore.types.js +0 -19
- package/esm5/src/nameserver-history-viewer/types/load-history-info-host.types.js +0 -35
- package/esm5/src/nameserver-history-viewer/types/load-history-info-item.types.js +0 -31
- package/esm5/src/nameserver-history-viewer/types/load-history-info-persistence.types.js +0 -27
- package/esm5/src/nameserver-history-viewer/types/load-history-info-rowstore.types.js +0 -15
- package/esm5/src/nameserver-history-viewer/types/load-history-info-server.types.js +0 -25
- package/esm5/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.js +0 -19
- package/esm5/src/nameserver-history-viewer/types/load-history-info-sql.types.js +0 -37
- package/esm5/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.js +0 -15
- package/esm5/src/nameserver-history-viewer/types/load-history-info-threads.types.js +0 -23
- package/esm5/src/nameserver-history-viewer/types/load-history-info.types.js +0 -31
- package/esm5/src/nameserver-history-viewer/types/port.types.js +0 -17
- package/esm5/src/nameserver-history-viewer/types/scale-group.types.js +0 -35
- package/esm5/src/nameserver-history-viewer/types/unit-category.types.js +0 -21
- package/esm5/src/nameserver-history-viewer/types/unit.types.js +0 -19
- package/esm5/src/nameserver-history-viewer/utils/chart-util.js +0 -39
- package/esm5/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.js +0 -100
- package/esm5/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.js +0 -88
- package/esm5/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.js +0 -307
- package/esm5/src/nameserver-history-viewer/utils/chartjs-downsample/index.js +0 -46
- package/esm5/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.js +0 -232
- package/esm5/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.js +0 -350
- package/esm5/src/nameserver-history-viewer/utils/chartjs-downsample/utils.js +0 -142
- package/esm5/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.js +0 -733
- package/esm5/src/nameserver-history-viewer/utils/chartjs-zoom/index.js +0 -6
- package/esm5/src/nameserver-history-viewer/utils/file-util.js +0 -150
- package/esm5/src/nameserver-history-viewer/utils/index.js +0 -9
- package/esm5/src/nameserver-history-viewer/utils/time-util.js +0 -135
- package/esm5/src/nameserver-history-viewer/utils/ui-util.js +0 -205
- package/fesm2015/ngx-hana-nameserver-history-viewer.js +0 -5223
- package/fesm2015/ngx-hana-nameserver-history-viewer.js.map +0 -1
- package/fesm5/ngx-hana-nameserver-history-viewer.js +0 -6295
- package/fesm5/ngx-hana-nameserver-history-viewer.js.map +0 -1
- package/ngx-hana-nameserver-history-viewer.metadata.json +0 -1
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
6
|
-
var AlertComponent = /** @class */ (function () {
|
|
7
|
-
function AlertComponent() {
|
|
8
|
-
this.alertMessageChange = new EventEmitter();
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @param {?} changes
|
|
12
|
-
* @return {?}
|
|
13
|
-
*/
|
|
14
|
-
AlertComponent.prototype.ngOnChanges = /**
|
|
15
|
-
* @param {?} changes
|
|
16
|
-
* @return {?}
|
|
17
|
-
*/
|
|
18
|
-
function (changes) {
|
|
19
|
-
if (changes.alertMessage) {
|
|
20
|
-
this._setMessage(changes.alertMessage.currentValue);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
* @param {?} msgString
|
|
26
|
-
* @return {?}
|
|
27
|
-
*/
|
|
28
|
-
AlertComponent.prototype._setMessage = /**
|
|
29
|
-
* @private
|
|
30
|
-
* @param {?} msgString
|
|
31
|
-
* @return {?}
|
|
32
|
-
*/
|
|
33
|
-
function (msgString) {
|
|
34
|
-
this.message = void 0;
|
|
35
|
-
if (msgString && msgString.length > 0) {
|
|
36
|
-
this._showMessage(msgString);
|
|
37
|
-
this._setTimeout();
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* @private
|
|
42
|
-
* @param {?} msgString
|
|
43
|
-
* @return {?}
|
|
44
|
-
*/
|
|
45
|
-
AlertComponent.prototype._showMessage = /**
|
|
46
|
-
* @private
|
|
47
|
-
* @param {?} msgString
|
|
48
|
-
* @return {?}
|
|
49
|
-
*/
|
|
50
|
-
function (msgString) {
|
|
51
|
-
var _this = this;
|
|
52
|
-
setTimeout(function () { return _this.message = msgString; }, 100);
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @private
|
|
56
|
-
* @return {?}
|
|
57
|
-
*/
|
|
58
|
-
AlertComponent.prototype._setTimeout = /**
|
|
59
|
-
* @private
|
|
60
|
-
* @return {?}
|
|
61
|
-
*/
|
|
62
|
-
function () {
|
|
63
|
-
var _this = this;
|
|
64
|
-
if (this.alertTimeout > 0) {
|
|
65
|
-
// clear time out first, it doesn't matter whether the _timeout is undefined or not.
|
|
66
|
-
clearTimeout(this._timeout);
|
|
67
|
-
this._timeout = setTimeout(function () { return _this.clearAlert(); }, this.alertTimeout);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* @return {?}
|
|
72
|
-
*/
|
|
73
|
-
AlertComponent.prototype.clearAlert = /**
|
|
74
|
-
* @return {?}
|
|
75
|
-
*/
|
|
76
|
-
function () {
|
|
77
|
-
this.alertMessage = void 0;
|
|
78
|
-
this.alertType = void 0;
|
|
79
|
-
this.alertMessageChange.emit(this.alertMessage);
|
|
80
|
-
clearTimeout(this._timeout);
|
|
81
|
-
};
|
|
82
|
-
Object.defineProperty(AlertComponent.prototype, "alertClassType", {
|
|
83
|
-
/**
|
|
84
|
-
* get css class base on the alert type
|
|
85
|
-
*/
|
|
86
|
-
get: /**
|
|
87
|
-
* get css class base on the alert type
|
|
88
|
-
* @return {?}
|
|
89
|
-
*/
|
|
90
|
-
function () {
|
|
91
|
-
if (this.alertType) {
|
|
92
|
-
switch (this.alertType.toLowerCase()) {
|
|
93
|
-
case 'success':
|
|
94
|
-
return 'alert-success';
|
|
95
|
-
case 'error':
|
|
96
|
-
return 'alert-error';
|
|
97
|
-
case 'info':
|
|
98
|
-
return 'alert-info';
|
|
99
|
-
case 'warning':
|
|
100
|
-
return 'alert-warning';
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
enumerable: true,
|
|
105
|
-
configurable: true
|
|
106
|
-
});
|
|
107
|
-
AlertComponent.decorators = [
|
|
108
|
-
{ type: Component, args: [{
|
|
109
|
-
selector: 'alert',
|
|
110
|
-
template: "<div class=\"alert-container\" *ngIf=\"message\">\n <div [ngClass]=\"alertClassType\">\n {{message}}\n <a class=\"close\" (click)=\"clearAlert()\">×</a>\n </div>\n</div>\n\n\n\n\n",
|
|
111
|
-
styles: [".alert-container{position:relative;width:100%;text-align:left}.alert-container .alert-error,.alert-container .alert-info,.alert-container .alert-success,.alert-container .alert-warning,.alert-container .fadein{animation:1s fadein;-moz-animation:1s fadein;-webkit-animation:1s fadein;-o-animation:1s fadein}@keyframes fadein{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}.alert-container .alert,.alert-container .alert-error,.alert-container .alert-info,.alert-container .alert-success,.alert-container .alert-warning{display:inline-block;padding:.5rem 1rem;border:1px solid transparent;border-radius:.25rem;font-size:12px}.alert-container .alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-container .alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-container .alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-container .alert-error{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-container .close{color:#000;text-shadow:0 1px 0 #fff;opacity:.5;box-sizing:border-box}.alert-container .close:hover{cursor:pointer;font-weight:900;color:red}"]
|
|
112
|
-
}] }
|
|
113
|
-
];
|
|
114
|
-
AlertComponent.propDecorators = {
|
|
115
|
-
alertMessage: [{ type: Input }],
|
|
116
|
-
alertType: [{ type: Input }],
|
|
117
|
-
alertTimeout: [{ type: Input }],
|
|
118
|
-
alertMessageChange: [{ type: Output }]
|
|
119
|
-
};
|
|
120
|
-
return AlertComponent;
|
|
121
|
-
}());
|
|
122
|
-
export { AlertComponent };
|
|
123
|
-
if (false) {
|
|
124
|
-
/** @type {?} */
|
|
125
|
-
AlertComponent.prototype.alertMessage;
|
|
126
|
-
/** @type {?} */
|
|
127
|
-
AlertComponent.prototype.alertType;
|
|
128
|
-
/** @type {?} */
|
|
129
|
-
AlertComponent.prototype.alertTimeout;
|
|
130
|
-
/** @type {?} */
|
|
131
|
-
AlertComponent.prototype.alertMessageChange;
|
|
132
|
-
/** @type {?} */
|
|
133
|
-
AlertComponent.prototype.message;
|
|
134
|
-
/**
|
|
135
|
-
* @type {?}
|
|
136
|
-
* @private
|
|
137
|
-
*/
|
|
138
|
-
AlertComponent.prototype._timeout;
|
|
139
|
-
}
|
|
140
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWhhbmEtbmFtZXNlcnZlci1oaXN0b3J5LXZpZXdlci8iLCJzb3VyY2VzIjpbInNyYy9uYW1lc2VydmVyLWhpc3Rvcnktdmlld2VyL2NvbXBvbmVudHMvYWxlcnQvYWxlcnQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUE0QixNQUFNLGVBQWUsQ0FBQztBQUVqRztJQUFBO1FBVVksdUJBQWtCLEdBQUcsSUFBSSxZQUFZLEVBQVUsQ0FBQztJQXNENUQsQ0FBQzs7Ozs7SUFsREMsb0NBQVc7Ozs7SUF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dpbmZvJzpcbiAgICAgICAgICByZXR1cm4gJ2FsZXJ0LWluZm8nO1xuICAgICAgICBjYXNlICd3YXJuaW5nJzpcbiAgICAgICAgICByZXR1cm4gJ2FsZXJ0LXdhcm5pbmcnO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { AlertComponent } from './alert.component';
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
var AlertModule = /** @class */ (function () {
|
|
9
|
-
function AlertModule() {
|
|
10
|
-
}
|
|
11
|
-
AlertModule.decorators = [
|
|
12
|
-
{ type: NgModule, args: [{
|
|
13
|
-
declarations: [
|
|
14
|
-
AlertComponent,
|
|
15
|
-
],
|
|
16
|
-
exports: [AlertComponent],
|
|
17
|
-
imports: [CommonModule],
|
|
18
|
-
providers: [],
|
|
19
|
-
bootstrap: [],
|
|
20
|
-
},] }
|
|
21
|
-
];
|
|
22
|
-
return AlertModule;
|
|
23
|
-
}());
|
|
24
|
-
export { AlertModule };
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWhhbmEtbmFtZXNlcnZlci1oaXN0b3J5LXZpZXdlci8iLCJzb3VyY2VzIjpbInNyYy9uYW1lc2VydmVyLWhpc3Rvcnktdmlld2VyL2NvbXBvbmVudHMvYWxlcnQvYWxlcnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFFN0M7SUFBQTtJQVMwQixDQUFDOztnQkFUMUIsUUFBUSxTQUFDO29CQUNSLFlBQVksRUFBRTt3QkFDWixjQUFjO3FCQUNmO29CQUNELE9BQU8sRUFBRSxDQUFDLGNBQWMsQ0FBQztvQkFDekIsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO29CQUN2QixTQUFTLEVBQUUsRUFBRTtvQkFDYixTQUFTLEVBQUUsRUFBRTtpQkFDZDs7SUFDeUIsa0JBQUM7Q0FBQSxBQVQzQixJQVMyQjtTQUFkLFdBQVciLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0FsZXJ0Q29tcG9uZW50fSBmcm9tICcuL2FsZXJ0LmNvbXBvbmVudCc7XHJcbmltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5pbXBvcnQge0NvbW1vbk1vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbXHJcbiAgICBBbGVydENvbXBvbmVudCxcclxuICBdLFxyXG4gIGV4cG9ydHM6IFtBbGVydENvbXBvbmVudF0sXHJcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXHJcbiAgcHJvdmlkZXJzOiBbXSxcclxuICBib290c3RyYXA6IFtdLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgQWxlcnRNb2R1bGUge31cclxuIl19
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
export { AlertComponent } from './alert.component';
|
|
6
|
-
export { AlertModule } from './alert.module';
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaGFuYS1uYW1lc2VydmVyLWhpc3Rvcnktdmlld2VyLyIsInNvdXJjZXMiOlsic3JjL25hbWVzZXJ2ZXItaGlzdG9yeS12aWV3ZXIvY29tcG9uZW50cy9hbGVydC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsK0JBQWMsbUJBQW1CLENBQUM7QUFDbEMsNEJBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2FsZXJ0LmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vYWxlcnQubW9kdWxlJztcclxuXHJcblxyXG5cclxuXHJcbiJdfQ==
|
package/esm5/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.js
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
6
|
-
var FileDropInputComponent = /** @class */ (function () {
|
|
7
|
-
function FileDropInputComponent() {
|
|
8
|
-
this.dropAreaText = '';
|
|
9
|
-
this.inputAreaText = '';
|
|
10
|
-
this.fileDrop = new EventEmitter();
|
|
11
|
-
this.fileInput = new EventEmitter();
|
|
12
|
-
this.droppingFlag = false;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
* @param {?} event
|
|
17
|
-
* @return {?}
|
|
18
|
-
*/
|
|
19
|
-
FileDropInputComponent._stopAndPrevent = /**
|
|
20
|
-
* @private
|
|
21
|
-
* @param {?} event
|
|
22
|
-
* @return {?}
|
|
23
|
-
*/
|
|
24
|
-
function (event) {
|
|
25
|
-
event.stopPropagation(); // Stops some browsers from redirecting.
|
|
26
|
-
event.preventDefault(); // Stops some browsers' default action, like open the file directly
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @param {?} event
|
|
30
|
-
* @return {?}
|
|
31
|
-
*/
|
|
32
|
-
FileDropInputComponent.prototype.browseFiles = /**
|
|
33
|
-
* @param {?} event
|
|
34
|
-
* @return {?}
|
|
35
|
-
*/
|
|
36
|
-
function (event) {
|
|
37
|
-
this.fileInput.emit(event);
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* @param {?} event
|
|
41
|
-
* @return {?}
|
|
42
|
-
*/
|
|
43
|
-
FileDropInputComponent.prototype.onDragOver = /**
|
|
44
|
-
* @param {?} event
|
|
45
|
-
* @return {?}
|
|
46
|
-
*/
|
|
47
|
-
function (event) {
|
|
48
|
-
FileDropInputComponent._stopAndPrevent(event);
|
|
49
|
-
if (!this.droppingFlag) {
|
|
50
|
-
this.droppingFlag = true;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* @param {?} event
|
|
55
|
-
* @return {?}
|
|
56
|
-
*/
|
|
57
|
-
FileDropInputComponent.prototype.onDragLeave = /**
|
|
58
|
-
* @param {?} event
|
|
59
|
-
* @return {?}
|
|
60
|
-
*/
|
|
61
|
-
function (event) {
|
|
62
|
-
FileDropInputComponent._stopAndPrevent(event);
|
|
63
|
-
if (this.droppingFlag) {
|
|
64
|
-
this.droppingFlag = false;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* @param {?} event
|
|
69
|
-
* @return {?}
|
|
70
|
-
*/
|
|
71
|
-
FileDropInputComponent.prototype.onDropFiles = /**
|
|
72
|
-
* @param {?} event
|
|
73
|
-
* @return {?}
|
|
74
|
-
*/
|
|
75
|
-
function (event) {
|
|
76
|
-
FileDropInputComponent._stopAndPrevent(event);
|
|
77
|
-
this.droppingFlag = false;
|
|
78
|
-
/** @type {?} */
|
|
79
|
-
var length = 0;
|
|
80
|
-
if (event.dataTransfer.items) {
|
|
81
|
-
length = event.dataTransfer.items.length;
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
length = event.dataTransfer.files.length;
|
|
85
|
-
}
|
|
86
|
-
if (length > 1) {
|
|
87
|
-
event.error = 'Multiple files/folders are not supported';
|
|
88
|
-
this.fileDrop.emit(event);
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
if (length === 1) {
|
|
92
|
-
/** @type {?} */
|
|
93
|
-
var fileEntry = void 0;
|
|
94
|
-
if (event.dataTransfer.items) {
|
|
95
|
-
if (event.dataTransfer.items[0].webkitGetAsEntry) {
|
|
96
|
-
fileEntry = event.dataTransfer.items[0].webkitGetAsEntry();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
if (event.dataTransfer.files[0].webkitGetAsEntry) {
|
|
101
|
-
fileEntry = event.dataTransfer.files[0].webkitGetAsEntry();
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (fileEntry) {
|
|
105
|
-
if (fileEntry.isFile) {
|
|
106
|
-
event.error = void 0;
|
|
107
|
-
}
|
|
108
|
-
else if (fileEntry.isDirectory) {
|
|
109
|
-
event.error = "Folder (" + fileEntry.name + ") is not supported.";
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
event.error = "Internal error, can not get the type of the dropped item (" + fileEntry.name + ").";
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
/** @type {?} */
|
|
116
|
-
var file = event.dataTransfer.files && event.dataTransfer.files.length > 0 ? event.dataTransfer.files[0] : null;
|
|
117
|
-
if (file) {
|
|
118
|
-
event.file = file;
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
event.error = 'Internal error, can not get the dropped file.';
|
|
122
|
-
}
|
|
123
|
-
this.fileDrop.emit(event);
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
FileDropInputComponent.decorators = [
|
|
128
|
-
{ type: Component, args: [{
|
|
129
|
-
selector: 'file-drop-input',
|
|
130
|
-
template: "\n <div class=\"file-drop-input\" [class.file-drop-dropping]=\"droppingFlag\" (drop)=\"onDropFiles($event)\"\n (dragover)=\"onDragOver($event)\" (dragleave)=\"onDragLeave($event)\">\n <div class=\"drop-content\">\n <label class=\"input-button\">\n <input type=\"file\" (change)=\"browseFiles($event)\" accept=\".trc\"/> {{inputAreaText}} \n </label>{{dropAreaText}}\n </div>\n </div>\n ",
|
|
131
|
-
styles: [".file-drop-dropping{background-color:rgba(148,148,148,.6)}.file-drop-input{width:100%;height:100%;border-radius:1px;border:0}.file-drop-input .drop-content{color:#4169e1;height:46px;display:flex;justify-content:center;align-items:center}.file-drop-input .drop-content .input-button{display:inline-block;border:none;outline:0;cursor:pointer;font-weight:700;padding:0 2px;color:#00008b}.file-drop-input .drop-content .input-button:hover{text-shadow:1px 1px 3px #4169e1}.file-drop-input .drop-content .input-button input{display:none}"]
|
|
132
|
-
}] }
|
|
133
|
-
];
|
|
134
|
-
FileDropInputComponent.propDecorators = {
|
|
135
|
-
dropAreaText: [{ type: Input }],
|
|
136
|
-
inputAreaText: [{ type: Input }],
|
|
137
|
-
fileDrop: [{ type: Output }],
|
|
138
|
-
fileInput: [{ type: Output }]
|
|
139
|
-
};
|
|
140
|
-
return FileDropInputComponent;
|
|
141
|
-
}());
|
|
142
|
-
export { FileDropInputComponent };
|
|
143
|
-
if (false) {
|
|
144
|
-
/** @type {?} */
|
|
145
|
-
FileDropInputComponent.prototype.dropAreaText;
|
|
146
|
-
/** @type {?} */
|
|
147
|
-
FileDropInputComponent.prototype.inputAreaText;
|
|
148
|
-
/** @type {?} */
|
|
149
|
-
FileDropInputComponent.prototype.fileDrop;
|
|
150
|
-
/** @type {?} */
|
|
151
|
-
FileDropInputComponent.prototype.fileInput;
|
|
152
|
-
/** @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XMgbm90IHN1cHBvcnRlZC5gO1xyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICBldmVudC5lcnJvciA9IGBJbnRlcm5hbCBlcnJvciwgY2FuIG5vdCBnZXQgdGhlIHR5cGUgb2YgdGhlIGRyb3BwZWQgaXRlbSAoJHtmaWxlRW50cnkubmFtZX0pLmA7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcblxyXG4gICAgICBjb25zdCBmaWxlOiBGaWxlID0gZXZlbnQuZGF0YVRyYW5zZmVyLmZpbGVzICYmIGV2ZW50LmRhdGFUcmFuc2Zlci5maWxlcy5sZW5ndGggPiAwID8gZXZlbnQuZGF0YVRyYW5zZmVyLmZpbGVzWzBdIDogbnVsbDtcclxuICAgICAgaWYgKGZpbGUpIHtcclxuICAgICAgICBldmVudC5maWxlID0gZmlsZTtcclxuICAgICAgfSBlbHNlIHtcclxuICAgICAgICBldmVudC5lcnJvciA9ICdJbnRlcm5hbCBlcnJvciwgY2FuIG5vdCBnZXQgdGhlIGRyb3BwZWQgZmlsZS4nO1xyXG4gICAgICB9XHJcbiAgICAgIHRoaXMuZmlsZURyb3AuZW1pdChldmVudCk7XHJcbiAgICAgIHJldHVybjtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
export { FileDropInputComponent } from './file-drop-input.component';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaGFuYS1uYW1lc2VydmVyLWhpc3Rvcnktdmlld2VyLyIsInNvdXJjZXMiOlsic3JjL25hbWVzZXJ2ZXItaGlzdG9yeS12aWV3ZXIvY29tcG9uZW50cy9maWxlLWRyb3AtaW5wdXQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHVDQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9maWxlLWRyb3AtaW5wdXQuY29tcG9uZW50JztcclxuIl19
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
export { AlertComponent, AlertModule } from './alert';
|
|
6
|
-
export { FileDropInputComponent } from './file-drop-input';
|
|
7
|
-
export { ProgressBarComponent } from './progress-bar';
|
|
8
|
-
export { TimezoneSelectorComponent } from './timezone-selector';
|
|
9
|
-
export { PortSelectorComponent } from './port-selector';
|
|
10
|
-
export { InstructionComponent } from './instruction';
|
|
11
|
-
export { TimeRangeSelectorComponent } from './time-range-selector';
|
|
12
|
-
export { NameServerHistoryComponent } from './nameserver-history.component';
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaGFuYS1uYW1lc2VydmVyLWhpc3Rvcnktdmlld2VyLyIsInNvdXJjZXMiOlsic3JjL25hbWVzZXJ2ZXItaGlzdG9yeS12aWV3ZXIvY29tcG9uZW50cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsNENBQWMsU0FBUyxDQUFDO0FBQ3hCLHVDQUFjLG1CQUFtQixDQUFDO0FBQ2xDLHFDQUFjLGdCQUFnQixDQUFDO0FBQy9CLDBDQUFjLHFCQUFxQixDQUFDO0FBQ3BDLHNDQUFjLGlCQUFpQixDQUFDO0FBQ2hDLHFDQUFjLGVBQWUsQ0FBQztBQUM5QiwyQ0FBYyx1QkFBdUIsQ0FBQztBQUN0QywyQ0FBYyxnQ0FBZ0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYWxlcnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2ZpbGUtZHJvcC1pbnB1dCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vcHJvZ3Jlc3MtYmFyJztcclxuZXhwb3J0ICogZnJvbSAnLi90aW1lem9uZS1zZWxlY3Rvcic7XHJcbmV4cG9ydCAqIGZyb20gJy4vcG9ydC1zZWxlY3Rvcic7XHJcbmV4cG9ydCAqIGZyb20gJy4vaW5zdHJ1Y3Rpb24nO1xyXG5leHBvcnQgKiBmcm9tICcuL3RpbWUtcmFuZ2Utc2VsZWN0b3InO1xyXG5leHBvcnQgKiBmcm9tICcuL25hbWVzZXJ2ZXItaGlzdG9yeS5jb21wb25lbnQnO1xyXG4iXX0=
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
export { InstructionComponent } from './instruction.component';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaGFuYS1uYW1lc2VydmVyLWhpc3Rvcnktdmlld2VyLyIsInNvdXJjZXMiOlsic3JjL25hbWVzZXJ2ZXItaGlzdG9yeS12aWV3ZXIvY29tcG9uZW50cy9pbnN0cnVjdGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEscUNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2luc3RydWN0aW9uLmNvbXBvbmVudCc7XHJcbiJdfQ==
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
6
|
-
var InstructionComponent = /** @class */ (function () {
|
|
7
|
-
function InstructionComponent() {
|
|
8
|
-
this.step1Finished = false;
|
|
9
|
-
this.step2Finished = false;
|
|
10
|
-
this.step3Finished = false;
|
|
11
|
-
this.step4Finished = false;
|
|
12
|
-
this.step5Finished = false;
|
|
13
|
-
this.show = true;
|
|
14
|
-
/**
|
|
15
|
-
* Output event bind to (show)
|
|
16
|
-
*/
|
|
17
|
-
this.showChange = new EventEmitter();
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @return {?}
|
|
21
|
-
*/
|
|
22
|
-
InstructionComponent.prototype.onClose = /**
|
|
23
|
-
* @return {?}
|
|
24
|
-
*/
|
|
25
|
-
function () {
|
|
26
|
-
this.show = false;
|
|
27
|
-
this.showChange.emit(this.show);
|
|
28
|
-
};
|
|
29
|
-
InstructionComponent.decorators = [
|
|
30
|
-
{ type: Component, args: [{
|
|
31
|
-
selector: 'instruction',
|
|
32
|
-
template: "<div class=\"instruction\" *ngIf=\"show\">\n <div class=\"close\" (click)=\"onClose()\">×</div>\n <div class=\"mandatory\" [class.completed]=\"step1Finished\">\n <label>Select nameserver history file <span class=\"flag\">*</span></label> <br>\n <ul>\n <li>Click the \"Browse\" </li>\n <li>Drag and drop your file to \"Drop File Here\"</li>\n </ul>\n </div>\n <div class=\"optional\" [class.completed]=\"step2Finished\">\n <label>Select time range and timezone <span class=\"flag\">(optional)</span></label> <br>\n <ul>\n <li>If you do not select time range, this tool will read from the beginning until it reaches the configured maxRowsLimitation. </li>\n <li>If you do not select time zone, this tool will use your local default timezone.</li>\n </ul>\n </div>\n <div class=\"optional\" [class.completed]=\"step3Finished\">\n <label>Select ports <span class=\"flag\">(optional)</span></label> <br>\n <ul>\n <li>If you do not choose any port, this tool will try to load data for all ports until it reaches the configured maxRowsLimitation.</li>\n <li>After choosing one port, this tool will only try to load data for the selected port until it reaches the configured maxRowsLimitation.</li>\n <li>If you do not know any port information, you can click \"Load\" to load all ports from the nameserver history file.</li>\n </ul>\n </div>\n <div class=\"mandatory\" [class.completed]=\"step4Finished\">\n <label>Load the data from nameserver history file and show the chart <span class=\"flag\">*</span></label> <br>\n <ul><li>Click button \"Show\"</li></ul>\n </div>\n <div class=\"optional\" [class.completed]=\"step5Finished\">\n <label>Reset the chart <span class=\"flag\">(optional)</span></label> <br>\n <ul><li>If you zoomed in, you can go back to original status by clicking \"Reset Chart\"</li></ul>\n </div>\n</div>\n",
|
|
33
|
-
styles: [".instruction{margin-top:15px;padding:15px;position:relative;width:100%;height:auto;text-align:left;text-shadow:0 0 1px #ddd;font-size:16px;font-weight:400;background:#f8f8f8;box-shadow:inset 0 20px 20px -20px rgba(0,0,0,.6);border:1px dashed #0782d0}.instruction .close{position:absolute;top:2px;right:4px;color:red;font-size:14px}.instruction .close:hover{font-weight:700;cursor:pointer}.instruction li{font-size:14px;display:list-item}.instruction .mandatory{color:#3a4048}.instruction .mandatory .flag{color:red;display:inline}.instruction .optional{color:#3a4048}.instruction .optional .flag{color:#00008b;display:inline}.instruction .completed{color:#2e8b57}"]
|
|
34
|
-
}] }
|
|
35
|
-
];
|
|
36
|
-
InstructionComponent.propDecorators = {
|
|
37
|
-
step1Finished: [{ type: Input }],
|
|
38
|
-
step2Finished: [{ type: Input }],
|
|
39
|
-
step3Finished: [{ type: Input }],
|
|
40
|
-
step4Finished: [{ type: Input }],
|
|
41
|
-
step5Finished: [{ type: Input }],
|
|
42
|
-
show: [{ type: Input }],
|
|
43
|
-
showChange: [{ type: Output }]
|
|
44
|
-
};
|
|
45
|
-
return InstructionComponent;
|
|
46
|
-
}());
|
|
47
|
-
export { InstructionComponent };
|
|
48
|
-
if (false) {
|
|
49
|
-
/** @type {?} */
|
|
50
|
-
InstructionComponent.prototype.step1Finished;
|
|
51
|
-
/** @type {?} */
|
|
52
|
-
InstructionComponent.prototype.step2Finished;
|
|
53
|
-
/** @type {?} */
|
|
54
|
-
InstructionComponent.prototype.step3Finished;
|
|
55
|
-
/** @type {?} */
|
|
56
|
-
InstructionComponent.prototype.step4Finished;
|
|
57
|
-
/** @type {?} */
|
|
58
|
-
InstructionComponent.prototype.step5Finished;
|
|
59
|
-
/** @type {?} */
|
|
60
|
-
InstructionComponent.prototype.show;
|
|
61
|
-
/**
|
|
62
|
-
* Output event bind to (show)
|
|
63
|
-
* @type {?}
|
|
64
|
-
*/
|
|
65
|
-
InstructionComponent.prototype.showChange;
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdHJ1Y3Rpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWhhbmEtbmFtZXNlcnZlci1oaXN0b3J5LXZpZXdlci8iLCJzb3VyY2VzIjpbInNyYy9uYW1lc2VydmVyLWhpc3Rvcnktdmlld2VyL2NvbXBvbmVudHMvaW5zdHJ1Y3Rpb24vaW5zdHJ1Y3Rpb24uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXJFO0lBQUE7UUFRRSxrQkFBYSxHQUFHLEtBQUssQ0FBQztRQUV0QixrQkFBYSxHQUFHLEtBQUssQ0FBQztRQUV0QixrQkFBYSxHQUFHLEtBQUssQ0FBQztRQUV0QixrQkFBYSxHQUFHLEtBQUssQ0FBQztRQUV0QixrQkFBYSxHQUFHLEtBQUssQ0FBQztRQUV0QixTQUFJLEdBQUcsSUFBSSxDQU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