ionic-logging-viewer 17.0.0 → 21.0.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 (25) hide show
  1. package/README.md +16 -14
  2. package/fesm2022/ionic-logging-viewer.mjs +140 -260
  3. package/fesm2022/ionic-logging-viewer.mjs.map +1 -1
  4. package/package.json +12 -11
  5. package/types/ionic-logging-viewer.d.ts +244 -0
  6. package/esm2022/ionic-logging-viewer.mjs +0 -5
  7. package/esm2022/lib/logging-viewer/logging-viewer.component.mjs +0 -119
  8. package/esm2022/lib/logging-viewer-filter.service.mjs +0 -64
  9. package/esm2022/lib/logging-viewer-levels/logging-viewer-levels.component.mjs +0 -71
  10. package/esm2022/lib/logging-viewer-modal/logging-viewer-modal-properties.model.mjs +0 -2
  11. package/esm2022/lib/logging-viewer-modal/logging-viewer-modal.component.mjs +0 -141
  12. package/esm2022/lib/logging-viewer-search/logging-viewer-search.component.mjs +0 -73
  13. package/esm2022/lib/logging-viewer-translation.model.mjs +0 -2
  14. package/esm2022/lib/logging-viewer.module.mjs +0 -53
  15. package/esm2022/public_api.mjs +0 -11
  16. package/index.d.ts +0 -5
  17. package/lib/logging-viewer/logging-viewer.component.d.ts +0 -73
  18. package/lib/logging-viewer-filter.service.d.ts +0 -47
  19. package/lib/logging-viewer-levels/logging-viewer-levels.component.d.ts +0 -44
  20. package/lib/logging-viewer-modal/logging-viewer-modal-properties.model.d.ts +0 -25
  21. package/lib/logging-viewer-modal/logging-viewer-modal.component.d.ts +0 -75
  22. package/lib/logging-viewer-search/logging-viewer-search.component.d.ts +0 -44
  23. package/lib/logging-viewer-translation.model.d.ts +0 -27
  24. package/lib/logging-viewer.module.d.ts +0 -13
  25. package/public_api.d.ts +0 -7
@@ -1,44 +0,0 @@
1
- import { OnDestroy, OnInit } from "@angular/core";
2
- import { LoggingService } from "ionic-logging-service";
3
- import { LoggingViewerFilterService } from "../logging-viewer-filter.service";
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Component for displaying the log levels for filtering the current logs.
7
- *
8
- * The component can be embedded in any web page using:
9
- *
10
- * <ionic-logging-viewer-levels></ionic-logging-viewer-levels>
11
- */
12
- export declare class LoggingViewerLevelsComponent implements OnInit, OnDestroy {
13
- private loggingViewerFilterService;
14
- /**
15
- * Log levels used for filtering: DEBUG, INFO, WARN, ERROR
16
- */
17
- logLevels: string[];
18
- /**
19
- * Selected level.
20
- */
21
- selectedLevel: string;
22
- private logger;
23
- private filterChangedSubscription;
24
- /**
25
- * Creates a new instance of the component.
26
- */
27
- constructor(loggingService: LoggingService, loggingViewerFilterService: LoggingViewerFilterService);
28
- /**
29
- * Initialize the component.
30
- *
31
- * This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html).
32
- */
33
- ngOnInit(): void;
34
- /**
35
- * Clean up.
36
- */
37
- ngOnDestroy(): void;
38
- /**
39
- * Callback when the level was changed in the UI.
40
- */
41
- onLevelChanged(): void;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<LoggingViewerLevelsComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<LoggingViewerLevelsComponent, "ionic-logging-viewer-levels", never, {}, {}, never, never, false, never>;
44
- }
@@ -1,25 +0,0 @@
1
- import { LoggingViewerTranslation } from "../logging-viewer-translation.model";
2
- /**
3
- * Describes all properties which can be passed to the
4
- * [LoggingViewerModalComponent](../classes/LoggingViewerModalComponent.html).
5
- */
6
- export interface LoggingViewerModalProperties {
7
- /**
8
- * Language to be used for the modal.
9
- * Currently supported: en, de
10
- */
11
- language?: string;
12
- /**
13
- * Translation to be used for the modal.
14
- * If specified, the language is ignored.
15
- */
16
- translation?: LoggingViewerTranslation;
17
- /**
18
- * Comma-separated list of localStorageKeys. If set, the logs get loaded from localStorage instead of memory.
19
- */
20
- localStorageKeys?: string;
21
- /**
22
- * Flag showing a delete button, which removes all existing log messages.
23
- */
24
- allowClearLogs?: boolean;
25
- }
@@ -1,75 +0,0 @@
1
- import { OnInit } from "@angular/core";
2
- import { ModalController, Platform, AlertController } from "@ionic/angular";
3
- import { LoggingService } from "ionic-logging-service";
4
- import { LoggingViewerTranslation } from "../logging-viewer-translation.model";
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Ionic modal containing [LoggingViewerComponent](LoggingViewerComponent.html),
8
- * [LoggingViewerLevelsComponent](LoggingViewerLevelsComponent.html) and
9
- * [LoggingViewerSearchComponent](LoggingViewerSearchComponent.html).
10
- */
11
- export declare class LoggingViewerModalComponent implements OnInit {
12
- private alertController;
13
- private modalController;
14
- private loggingService;
15
- private static languageEn;
16
- private static languageDe;
17
- /**
18
- * Language to be used for the modal.
19
- * Currently supported: en, de
20
- */
21
- language: string;
22
- /**
23
- * Translation to be used for the modal.
24
- * If specified, the language is ignored.
25
- */
26
- translation: LoggingViewerTranslation;
27
- /**
28
- * Comma-separated list of localStorageKeys. If set, the logs get loaded from localStorage instead of memory.
29
- */
30
- localStorageKeys: string;
31
- /**
32
- * Flag showing a delete button, which removes all existing log messages.
33
- */
34
- allowClearLogs: boolean;
35
- /**
36
- * Flag controlling which close button will be shown.
37
- */
38
- isAndroid: boolean;
39
- private logger;
40
- private translations;
41
- /**
42
- * Creates a new instance of the component.
43
- */
44
- constructor(platform: Platform, alertController: AlertController, modalController: ModalController, loggingService: LoggingService);
45
- /**
46
- * Initializes the LoggingViewerModalComponent.
47
- * It configures the supported translations.
48
- */
49
- ngOnInit(): void;
50
- /**
51
- * Eventhandler called by Ionic when the modal is opened.
52
- */
53
- ionViewDidEnter(): void;
54
- /**
55
- * Eventhandler called when the cancel button is clicked.
56
- */
57
- onClose(): Promise<void>;
58
- /**
59
- * Eventhandler called when the clear button is clicked.
60
- */
61
- onClearLogs(): Promise<void>;
62
- /**
63
- * Clear logs.
64
- */
65
- clearLogs(): void;
66
- /**
67
- * Helper method returning the current translation:
68
- * - the property translation if defined
69
- * - the translation according property language if valid
70
- * - English translation, otherwise
71
- */
72
- getTranslation(): LoggingViewerTranslation;
73
- static ɵfac: i0.ɵɵFactoryDeclaration<LoggingViewerModalComponent, never>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<LoggingViewerModalComponent, "ionic-logging-viewer-modal", never, { "language": { "alias": "language"; "required": false; }; "translation": { "alias": "translation"; "required": false; }; "localStorageKeys": { "alias": "localStorageKeys"; "required": false; }; "allowClearLogs": { "alias": "allowClearLogs"; "required": false; }; }, {}, never, never, false, never>;
75
- }
@@ -1,44 +0,0 @@
1
- import { OnInit, OnDestroy } from "@angular/core";
2
- import { LoggingService } from "ionic-logging-service";
3
- import { LoggingViewerFilterService } from "../logging-viewer-filter.service";
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Component for displaying the search bar for filtering the current logs.
7
- *
8
- * The component can be embedded in any web page using:
9
- *
10
- * &lt;ionic-logging-viewer-search placeholder="Search">&lt;/ionic-logging-viewer-search>
11
- */
12
- export declare class LoggingViewerSearchComponent implements OnInit, OnDestroy {
13
- private loggingViewerFilterService;
14
- /**
15
- * Placeholder to be shown in the empty search bar.
16
- */
17
- placeholder: string;
18
- /**
19
- * Current search value.
20
- */
21
- search: string;
22
- private logger;
23
- private filterChangedSubscription;
24
- /**
25
- * Creates a new instance of the component.
26
- */
27
- constructor(loggingService: LoggingService, loggingViewerFilterService: LoggingViewerFilterService);
28
- /**
29
- * Initialize the component.
30
- *
31
- * This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html).
32
- */
33
- ngOnInit(): void;
34
- /**
35
- * Clean up.
36
- */
37
- ngOnDestroy(): void;
38
- /**
39
- * Callback when the search value was changed in the UI.
40
- */
41
- onSearchChanged(): void;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<LoggingViewerSearchComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<LoggingViewerSearchComponent, "ionic-logging-viewer-search", never, { "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, false, never>;
44
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * Describes all values needed in a translation for
3
- * [LoggingViewerModalComponent](../classes/LoggingViewerModalComponent.html).
4
- */
5
- export interface LoggingViewerTranslation {
6
- /**
7
- * Title of the modal.
8
- */
9
- title: string;
10
- /**
11
- * Cancel button.
12
- * There are two cancel buttons: in the modal itself (iOS only) and the confirmation for deleting the messages.
13
- */
14
- cancel: string;
15
- /**
16
- * Ok button.
17
- */
18
- ok: string;
19
- /**
20
- * Placeholder for search bar.
21
- */
22
- searchPlaceholder: string;
23
- /**
24
- * Confirmation message for deleting log messages.
25
- */
26
- confirmDelete: string;
27
- }
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./logging-viewer/logging-viewer.component";
3
- import * as i2 from "./logging-viewer-search/logging-viewer-search.component";
4
- import * as i3 from "./logging-viewer-levels/logging-viewer-levels.component";
5
- import * as i4 from "./logging-viewer-modal/logging-viewer-modal.component";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@angular/forms";
8
- import * as i7 from "@ionic/angular";
9
- export declare class LoggingViewerModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<LoggingViewerModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<LoggingViewerModule, [typeof i1.LoggingViewerComponent, typeof i2.LoggingViewerSearchComponent, typeof i3.LoggingViewerLevelsComponent, typeof i4.LoggingViewerModalComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.IonicModule], [typeof i1.LoggingViewerComponent, typeof i2.LoggingViewerSearchComponent, typeof i3.LoggingViewerLevelsComponent, typeof i4.LoggingViewerModalComponent]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<LoggingViewerModule>;
13
- }
package/public_api.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from "./lib/logging-viewer.module";
2
- export * from "./lib/logging-viewer/logging-viewer.component";
3
- export * from "./lib/logging-viewer-levels/logging-viewer-levels.component";
4
- export * from "./lib/logging-viewer-search/logging-viewer-search.component";
5
- export * from "./lib/logging-viewer-modal/logging-viewer-modal.component";
6
- export * from "./lib/logging-viewer-modal/logging-viewer-modal-properties.model";
7
- export * from "./lib/logging-viewer-translation.model";