ionic-logging-viewer 12.0.0 → 15.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.
- package/README.md +5 -1
- package/esm2020/ionic-logging-viewer.mjs +5 -0
- package/esm2020/lib/logging-viewer/logging-viewer.component.mjs +119 -0
- package/esm2020/lib/logging-viewer-filter.service.mjs +64 -0
- package/esm2020/lib/logging-viewer-levels/logging-viewer-levels.component.mjs +71 -0
- package/{esm2015/lib/logging-viewer-modal/logging-viewer-modal-properties.model.js → esm2020/lib/logging-viewer-modal/logging-viewer-modal-properties.model.mjs} +0 -0
- package/esm2020/lib/logging-viewer-modal/logging-viewer-modal.component.mjs +141 -0
- package/esm2020/lib/logging-viewer-search/logging-viewer-search.component.mjs +73 -0
- package/{esm2015/lib/logging-viewer-translation.model.js → esm2020/lib/logging-viewer-translation.model.mjs} +0 -0
- package/esm2020/lib/logging-viewer.module.mjs +53 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/fesm2015/ionic-logging-viewer.mjs +498 -0
- package/fesm2015/ionic-logging-viewer.mjs.map +1 -0
- package/fesm2020/ionic-logging-viewer.mjs +493 -0
- package/fesm2020/ionic-logging-viewer.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/logging-viewer/logging-viewer.component.d.ts +3 -0
- package/lib/logging-viewer-filter.service.d.ts +3 -0
- package/lib/logging-viewer-levels/logging-viewer-levels.component.d.ts +3 -0
- package/lib/logging-viewer-modal/logging-viewer-modal.component.d.ts +3 -0
- package/lib/logging-viewer-search/logging-viewer-search.component.d.ts +3 -0
- package/lib/logging-viewer.module.d.ts +11 -0
- package/package.json +25 -13
- package/bundles/ionic-logging-viewer.umd.js +0 -883
- package/bundles/ionic-logging-viewer.umd.js.map +0 -1
- package/bundles/ionic-logging-viewer.umd.min.js +0 -16
- package/bundles/ionic-logging-viewer.umd.min.js.map +0 -1
- package/esm2015/ionic-logging-viewer.js +0 -6
- package/esm2015/lib/logging-viewer/logging-viewer.component.js +0 -121
- package/esm2015/lib/logging-viewer-filter.service.js +0 -62
- package/esm2015/lib/logging-viewer-levels/logging-viewer-levels.component.js +0 -70
- package/esm2015/lib/logging-viewer-modal/logging-viewer-modal.component.js +0 -144
- package/esm2015/lib/logging-viewer-search/logging-viewer-search.component.js +0 -74
- package/esm2015/lib/logging-viewer.module.js +0 -37
- package/fesm2015/ionic-logging-viewer.js +0 -500
- package/fesm2015/ionic-logging-viewer.js.map +0 -1
- package/ionic-logging-viewer.d.ts +0 -5
- package/ionic-logging-viewer.metadata.json +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
import { FormsModule } from "@angular/forms";
|
|
4
|
+
import { IonicModule } from "@ionic/angular";
|
|
5
|
+
import { LoggingViewerComponent } from "./logging-viewer/logging-viewer.component";
|
|
6
|
+
import { LoggingViewerFilterService } from "./logging-viewer-filter.service";
|
|
7
|
+
import { LoggingViewerLevelsComponent } from "./logging-viewer-levels/logging-viewer-levels.component";
|
|
8
|
+
import { LoggingViewerSearchComponent } from "./logging-viewer-search/logging-viewer-search.component";
|
|
9
|
+
import { LoggingViewerModalComponent } from "./logging-viewer-modal/logging-viewer-modal.component";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export class LoggingViewerModule {
|
|
12
|
+
}
|
|
13
|
+
LoggingViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14
|
+
LoggingViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerModule, declarations: [LoggingViewerComponent,
|
|
15
|
+
LoggingViewerSearchComponent,
|
|
16
|
+
LoggingViewerLevelsComponent,
|
|
17
|
+
LoggingViewerModalComponent], imports: [CommonModule,
|
|
18
|
+
FormsModule,
|
|
19
|
+
IonicModule], exports: [LoggingViewerComponent,
|
|
20
|
+
LoggingViewerSearchComponent,
|
|
21
|
+
LoggingViewerLevelsComponent,
|
|
22
|
+
LoggingViewerModalComponent] });
|
|
23
|
+
LoggingViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerModule, providers: [
|
|
24
|
+
LoggingViewerFilterService
|
|
25
|
+
], imports: [CommonModule,
|
|
26
|
+
FormsModule,
|
|
27
|
+
IonicModule] });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerModule, decorators: [{
|
|
29
|
+
type: NgModule,
|
|
30
|
+
args: [{
|
|
31
|
+
imports: [
|
|
32
|
+
CommonModule,
|
|
33
|
+
FormsModule,
|
|
34
|
+
IonicModule
|
|
35
|
+
],
|
|
36
|
+
declarations: [
|
|
37
|
+
LoggingViewerComponent,
|
|
38
|
+
LoggingViewerSearchComponent,
|
|
39
|
+
LoggingViewerLevelsComponent,
|
|
40
|
+
LoggingViewerModalComponent
|
|
41
|
+
],
|
|
42
|
+
exports: [
|
|
43
|
+
LoggingViewerComponent,
|
|
44
|
+
LoggingViewerSearchComponent,
|
|
45
|
+
LoggingViewerLevelsComponent,
|
|
46
|
+
LoggingViewerModalComponent
|
|
47
|
+
],
|
|
48
|
+
providers: [
|
|
49
|
+
LoggingViewerFilterService
|
|
50
|
+
]
|
|
51
|
+
}]
|
|
52
|
+
}] });
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2luZy12aWV3ZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvaW9uaWMtbG9nZ2luZy12aWV3ZXIvc3JjL2xpYi9sb2dnaW5nLXZpZXdlci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTdDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUU3QyxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSwyQ0FBMkMsQ0FBQztBQUNuRixPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUM3RSxPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSx5REFBeUQsQ0FBQztBQUN2RyxPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSx5REFBeUQsQ0FBQztBQUN2RyxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSx1REFBdUQsQ0FBQzs7QUF3QnBHLE1BQU0sT0FBTyxtQkFBbUI7O2dIQUFuQixtQkFBbUI7aUhBQW5CLG1CQUFtQixpQkFmeEIsc0JBQXNCO1FBQ3RCLDRCQUE0QjtRQUM1Qiw0QkFBNEI7UUFDNUIsMkJBQTJCLGFBUjNCLFlBQVk7UUFDWixXQUFXO1FBQ1gsV0FBVyxhQVNYLHNCQUFzQjtRQUN0Qiw0QkFBNEI7UUFDNUIsNEJBQTRCO1FBQzVCLDJCQUEyQjtpSEFNdEIsbUJBQW1CLGFBSmpCO1FBQ1AsMEJBQTBCO0tBQzdCLFlBbEJHLFlBQVk7UUFDWixXQUFXO1FBQ1gsV0FBVzsyRkFrQk4sbUJBQW1CO2tCQXRCL0IsUUFBUTttQkFBQztvQkFDTixPQUFPLEVBQUU7d0JBQ0wsWUFBWTt3QkFDWixXQUFXO3dCQUNYLFdBQVc7cUJBQ2Q7b0JBQ0QsWUFBWSxFQUFFO3dCQUNWLHNCQUFzQjt3QkFDdEIsNEJBQTRCO3dCQUM1Qiw0QkFBNEI7d0JBQzVCLDJCQUEyQjtxQkFDOUI7b0JBQ0QsT0FBTyxFQUFFO3dCQUNMLHNCQUFzQjt3QkFDdEIsNEJBQTRCO3dCQUM1Qiw0QkFBNEI7d0JBQzVCLDJCQUEyQjtxQkFDOUI7b0JBQ0QsU0FBUyxFQUFFO3dCQUNQLDBCQUEwQjtxQkFDN0I7aUJBQ0oiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gXCJAYW5ndWxhci9jb3JlXCI7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tIFwiQGFuZ3VsYXIvY29tbW9uXCI7XG5pbXBvcnQgeyBGb3Jtc01vZHVsZSB9IGZyb20gXCJAYW5ndWxhci9mb3Jtc1wiO1xuXG5pbXBvcnQgeyBJb25pY01vZHVsZSB9IGZyb20gXCJAaW9uaWMvYW5ndWxhclwiO1xuXG5pbXBvcnQgeyBMb2dnaW5nVmlld2VyQ29tcG9uZW50IH0gZnJvbSBcIi4vbG9nZ2luZy12aWV3ZXIvbG9nZ2luZy12aWV3ZXIuY29tcG9uZW50XCI7XG5pbXBvcnQgeyBMb2dnaW5nVmlld2VyRmlsdGVyU2VydmljZSB9IGZyb20gXCIuL2xvZ2dpbmctdmlld2VyLWZpbHRlci5zZXJ2aWNlXCI7XG5pbXBvcnQgeyBMb2dnaW5nVmlld2VyTGV2ZWxzQ29tcG9uZW50IH0gZnJvbSBcIi4vbG9nZ2luZy12aWV3ZXItbGV2ZWxzL2xvZ2dpbmctdmlld2VyLWxldmVscy5jb21wb25lbnRcIjtcbmltcG9ydCB7IExvZ2dpbmdWaWV3ZXJTZWFyY2hDb21wb25lbnQgfSBmcm9tIFwiLi9sb2dnaW5nLXZpZXdlci1zZWFyY2gvbG9nZ2luZy12aWV3ZXItc2VhcmNoLmNvbXBvbmVudFwiO1xuaW1wb3J0IHsgTG9nZ2luZ1ZpZXdlck1vZGFsQ29tcG9uZW50IH0gZnJvbSBcIi4vbG9nZ2luZy12aWV3ZXItbW9kYWwvbG9nZ2luZy12aWV3ZXItbW9kYWwuY29tcG9uZW50XCI7XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW1xuICAgICAgICBDb21tb25Nb2R1bGUsXG4gICAgICAgIEZvcm1zTW9kdWxlLFxuICAgICAgICBJb25pY01vZHVsZVxuICAgIF0sXG4gICAgZGVjbGFyYXRpb25zOiBbXG4gICAgICAgIExvZ2dpbmdWaWV3ZXJDb21wb25lbnQsXG4gICAgICAgIExvZ2dpbmdWaWV3ZXJTZWFyY2hDb21wb25lbnQsXG4gICAgICAgIExvZ2dpbmdWaWV3ZXJMZXZlbHNDb21wb25lbnQsXG4gICAgICAgIExvZ2dpbmdWaWV3ZXJNb2RhbENvbXBvbmVudFxuICAgIF0sXG4gICAgZXhwb3J0czogW1xuICAgICAgICBMb2dnaW5nVmlld2VyQ29tcG9uZW50LFxuICAgICAgICBMb2dnaW5nVmlld2VyU2VhcmNoQ29tcG9uZW50LFxuICAgICAgICBMb2dnaW5nVmlld2VyTGV2ZWxzQ29tcG9uZW50LFxuICAgICAgICBMb2dnaW5nVmlld2VyTW9kYWxDb21wb25lbnRcbiAgICBdLFxuICAgIHByb3ZpZGVyczogW1xuICAgICAgICBMb2dnaW5nVmlld2VyRmlsdGVyU2VydmljZVxuICAgIF1cbn0pXG5leHBvcnQgY2xhc3MgTG9nZ2luZ1ZpZXdlck1vZHVsZSB7IH1cbiJdfQ==
|
|
File without changes
|
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Injectable, Component, Input, NgModule } from '@angular/core';
|
|
3
|
+
import * as i3 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i4 from '@angular/forms';
|
|
6
|
+
import { FormsModule } from '@angular/forms';
|
|
7
|
+
import * as i1$1 from '@ionic/angular';
|
|
8
|
+
import { IonicModule } from '@ionic/angular';
|
|
9
|
+
import { __awaiter } from 'tslib';
|
|
10
|
+
import * as i1 from 'ionic-logging-service';
|
|
11
|
+
import { LogLevelConverter } from 'ionic-logging-service';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Service for storing filter settings for logging viewer.
|
|
15
|
+
*/
|
|
16
|
+
class LoggingViewerFilterService {
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new instance of the service.
|
|
19
|
+
*
|
|
20
|
+
* @param loggingService needed for internal logging.
|
|
21
|
+
*/
|
|
22
|
+
constructor(loggingService) {
|
|
23
|
+
this.logger = loggingService.getLogger("Ionic.Logging.Viewer.Filter.Service");
|
|
24
|
+
const methodName = "ctor";
|
|
25
|
+
this.logger.entry(methodName);
|
|
26
|
+
this.levelValue = "DEBUG";
|
|
27
|
+
this.searchValue = "";
|
|
28
|
+
this.filterChanged = new EventEmitter();
|
|
29
|
+
this.logger.exit(methodName);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Gets the current log level.
|
|
33
|
+
*
|
|
34
|
+
* @return log level
|
|
35
|
+
*/
|
|
36
|
+
get level() {
|
|
37
|
+
return this.levelValue;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Sets the new log level and emits a filterChanged event.
|
|
41
|
+
*
|
|
42
|
+
* @param value new slog level
|
|
43
|
+
*/
|
|
44
|
+
set level(value) {
|
|
45
|
+
this.levelValue = value;
|
|
46
|
+
this.filterChanged.emit();
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Gets the current search value.
|
|
50
|
+
*
|
|
51
|
+
* @return search value
|
|
52
|
+
*/
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
54
|
+
get search() {
|
|
55
|
+
return this.searchValue;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Sets the new search value and emits a filterChanged event.
|
|
59
|
+
*
|
|
60
|
+
* @param value new search value
|
|
61
|
+
*/
|
|
62
|
+
set search(value) {
|
|
63
|
+
this.searchValue = value;
|
|
64
|
+
this.filterChanged.emit();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
LoggingViewerFilterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerFilterService, deps: [{ token: i1.LoggingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
68
|
+
LoggingViewerFilterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerFilterService });
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerFilterService, decorators: [{
|
|
70
|
+
type: Injectable
|
|
71
|
+
}], ctorParameters: function () { return [{ type: i1.LoggingService }]; } });
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Component for displaying the current logs.
|
|
75
|
+
*
|
|
76
|
+
* The component can be embedded in any web page using:
|
|
77
|
+
*
|
|
78
|
+
* <ionic-logging-viewer></ionic-logging-viewer>
|
|
79
|
+
*/
|
|
80
|
+
class LoggingViewerComponent {
|
|
81
|
+
/**
|
|
82
|
+
* Creates a new instance of the component.
|
|
83
|
+
*/
|
|
84
|
+
constructor(loggingService, loggingViewerFilterService) {
|
|
85
|
+
this.loggingService = loggingService;
|
|
86
|
+
this.loggingViewerFilterService = loggingViewerFilterService;
|
|
87
|
+
this.logger = loggingService.getLogger("Ionic.Logging.Viewer.Component");
|
|
88
|
+
const methodName = "ctor";
|
|
89
|
+
this.logger.entry(methodName);
|
|
90
|
+
this.logger.exit(methodName);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Initialize the component.
|
|
94
|
+
*
|
|
95
|
+
* This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html)
|
|
96
|
+
* and the log messages from [LoggingService](../../../ionic-logging-service/typedoc/index.html).
|
|
97
|
+
* If the localStorageKeys property is set, the messages are read from local storage.
|
|
98
|
+
*/
|
|
99
|
+
ngOnInit() {
|
|
100
|
+
const methodName = "ngOnInit";
|
|
101
|
+
this.logger.entry(methodName);
|
|
102
|
+
this.loadLogMessages();
|
|
103
|
+
this.filterLogMessages();
|
|
104
|
+
// subscribe to loggingService.logMessagesChanged event, to refresh, when new message is logged
|
|
105
|
+
this.logMessagesChangedSubscription = this.loggingService.logMessagesChanged.subscribe(() => __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
this.loadLogMessages();
|
|
107
|
+
this.filterLogMessages();
|
|
108
|
+
}));
|
|
109
|
+
// subscribe to loggingViewerFilterService.filterChanged event, to refresh, when filter is modified
|
|
110
|
+
this.filterChangedSubscription = this.loggingViewerFilterService.filterChanged.subscribe(() => {
|
|
111
|
+
this.filterLogMessages();
|
|
112
|
+
});
|
|
113
|
+
this.logger.exit(methodName);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Clean up.
|
|
117
|
+
*/
|
|
118
|
+
ngOnDestroy() {
|
|
119
|
+
const methodName = "ngOnDestroy";
|
|
120
|
+
this.logger.entry(methodName);
|
|
121
|
+
this.logMessagesChangedSubscription.unsubscribe();
|
|
122
|
+
this.filterChangedSubscription.unsubscribe();
|
|
123
|
+
this.logger.exit(methodName);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Filter the log messages.
|
|
127
|
+
*/
|
|
128
|
+
filterLogMessages() {
|
|
129
|
+
this.logMessagesForDisplay = this.logMessages.filter((message) => this.filterLogMessagesByLevel(message) && this.filterLogMessagesBySearch(message));
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Check if the log message's level fulfills the level condition.
|
|
133
|
+
*
|
|
134
|
+
* @param message the log message to check
|
|
135
|
+
* @returns true if check was successful
|
|
136
|
+
*/
|
|
137
|
+
filterLogMessagesByLevel(message) {
|
|
138
|
+
const levelValue = this.loggingViewerFilterService.level;
|
|
139
|
+
return LogLevelConverter.levelFromString(message.level) >= LogLevelConverter.levelFromString(levelValue);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Check if the log message fulfills the search condition.
|
|
143
|
+
*
|
|
144
|
+
* The search value gets searched in:
|
|
145
|
+
* - logger name
|
|
146
|
+
* - method name
|
|
147
|
+
* - message
|
|
148
|
+
*
|
|
149
|
+
* @param message the log message to check
|
|
150
|
+
* @returns true if check was successful
|
|
151
|
+
*/
|
|
152
|
+
filterLogMessagesBySearch(message) {
|
|
153
|
+
const searchValue = new RegExp(this.loggingViewerFilterService.search, "i");
|
|
154
|
+
return message.logger.search(searchValue) >= 0 ||
|
|
155
|
+
message.methodName.search(searchValue) >= 0 ||
|
|
156
|
+
message.message.join("|").search(searchValue) >= 0;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Load the current log messages.
|
|
160
|
+
* For unit test purposes mainly.
|
|
161
|
+
*/
|
|
162
|
+
loadLogMessages() {
|
|
163
|
+
if (this.localStorageKeys) {
|
|
164
|
+
this.logMessages = [];
|
|
165
|
+
for (const localStorageKey of this.localStorageKeys.split(",")) {
|
|
166
|
+
this.logMessages = this.logMessages.concat(this.loggingService.getLogMessagesFromLocalStorage(localStorageKey));
|
|
167
|
+
}
|
|
168
|
+
this.logMessages = this.logMessages.sort((a, b) => a.timeStamp.getTime() - b.timeStamp.getTime());
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
this.logMessages = this.loggingService.getLogMessages();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
LoggingViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerComponent, deps: [{ token: i1.LoggingService }, { token: LoggingViewerFilterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
176
|
+
LoggingViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: LoggingViewerComponent, selector: "ionic-logging-viewer", inputs: { localStorageKeys: "localStorageKeys" }, ngImport: i0, template: "<ion-list>\n\t<ion-item *ngFor=\"let logMessage of logMessagesForDisplay\">\n\t\t<ion-label>\n\t\t\t<p>{{ logMessage.timeStamp | date:'dd.MM.yyyy HH:mm:ss' }} {{ logMessage.level }}</p>\n\t\t\t<p>{{ logMessage.logger }}</p>\n\t\t\t<p>\n\t\t\t\t{{ logMessage.methodName }}\n\t\t\t\t<span *ngFor=\"let messagePart of logMessage.message\"> {{ messagePart }} </span>\n\t\t\t</p>\n\t\t</ion-label>\n\t</ion-item>\n</ion-list>", styles: [""], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i1$1.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "counterFormatter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { kind: "component", type: i1$1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i1$1.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "pipe", type: i3.DatePipe, name: "date" }] });
|
|
177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerComponent, decorators: [{
|
|
178
|
+
type: Component,
|
|
179
|
+
args: [{ selector: "ionic-logging-viewer", template: "<ion-list>\n\t<ion-item *ngFor=\"let logMessage of logMessagesForDisplay\">\n\t\t<ion-label>\n\t\t\t<p>{{ logMessage.timeStamp | date:'dd.MM.yyyy HH:mm:ss' }} {{ logMessage.level }}</p>\n\t\t\t<p>{{ logMessage.logger }}</p>\n\t\t\t<p>\n\t\t\t\t{{ logMessage.methodName }}\n\t\t\t\t<span *ngFor=\"let messagePart of logMessage.message\"> {{ messagePart }} </span>\n\t\t\t</p>\n\t\t</ion-label>\n\t</ion-item>\n</ion-list>" }]
|
|
180
|
+
}], ctorParameters: function () { return [{ type: i1.LoggingService }, { type: LoggingViewerFilterService }]; }, propDecorators: { localStorageKeys: [{
|
|
181
|
+
type: Input
|
|
182
|
+
}] } });
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Component for displaying the log levels for filtering the current logs.
|
|
186
|
+
*
|
|
187
|
+
* The component can be embedded in any web page using:
|
|
188
|
+
*
|
|
189
|
+
* <ionic-logging-viewer-levels></ionic-logging-viewer-levels>
|
|
190
|
+
*/
|
|
191
|
+
class LoggingViewerLevelsComponent {
|
|
192
|
+
/**
|
|
193
|
+
* Creates a new instance of the component.
|
|
194
|
+
*/
|
|
195
|
+
constructor(loggingService, loggingViewerFilterService) {
|
|
196
|
+
this.loggingViewerFilterService = loggingViewerFilterService;
|
|
197
|
+
this.logger = loggingService.getLogger("Ionic.Logging.Viewer.Levels.Component");
|
|
198
|
+
const methodName = "ctor";
|
|
199
|
+
this.logger.entry(methodName);
|
|
200
|
+
this.logLevels = [];
|
|
201
|
+
this.logLevels.push("DEBUG", "INFO", "WARN", "ERROR");
|
|
202
|
+
this.logger.exit(methodName);
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Initialize the component.
|
|
206
|
+
*
|
|
207
|
+
* This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html).
|
|
208
|
+
*/
|
|
209
|
+
ngOnInit() {
|
|
210
|
+
const methodName = "ngOnInit";
|
|
211
|
+
this.logger.entry(methodName);
|
|
212
|
+
this.selectedLevel = this.loggingViewerFilterService.level;
|
|
213
|
+
// subscribe to loggingViewerFilterService.filterChanged event, to refresh,
|
|
214
|
+
// when someone else modifies the level
|
|
215
|
+
this.filterChangedSubscription = this.loggingViewerFilterService.filterChanged.subscribe(() => {
|
|
216
|
+
this.selectedLevel = this.loggingViewerFilterService.level;
|
|
217
|
+
});
|
|
218
|
+
this.logger.exit(methodName);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Clean up.
|
|
222
|
+
*/
|
|
223
|
+
ngOnDestroy() {
|
|
224
|
+
const methodName = "ngOnDestroy";
|
|
225
|
+
this.logger.entry(methodName);
|
|
226
|
+
this.filterChangedSubscription.unsubscribe();
|
|
227
|
+
this.logger.exit(methodName);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Callback when the level was changed in the UI.
|
|
231
|
+
*/
|
|
232
|
+
onLevelChanged() {
|
|
233
|
+
const methodName = "onLevelChanged";
|
|
234
|
+
this.logger.entry(methodName, this.selectedLevel);
|
|
235
|
+
this.loggingViewerFilterService.level = this.selectedLevel;
|
|
236
|
+
this.logger.exit(methodName);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
LoggingViewerLevelsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerLevelsComponent, deps: [{ token: i1.LoggingService }, { token: LoggingViewerFilterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
240
|
+
LoggingViewerLevelsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: LoggingViewerLevelsComponent, selector: "ionic-logging-viewer-levels", ngImport: i0, template: "<ion-segment [(ngModel)]=\"selectedLevel\" (ionChange)=\"onLevelChanged()\">\n\t<ion-segment-button *ngFor=\"let logLevel of logLevels\" [value]=\"logLevel\">\n\t\t<ion-label>{{ logLevel }}</ion-label>\n\t</ion-segment-button>\n</ion-segment>", styles: [""], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i1$1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i1$1.IonSegment, selector: "ion-segment", inputs: ["color", "disabled", "mode", "scrollable", "selectOnFocus", "swipeGesture", "value"] }, { kind: "component", type: i1$1.IonSegmentButton, selector: "ion-segment-button", inputs: ["disabled", "layout", "mode", "type", "value"] }, { kind: "directive", type: i1$1.SelectValueAccessor, selector: "ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime" }] });
|
|
241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerLevelsComponent, decorators: [{
|
|
242
|
+
type: Component,
|
|
243
|
+
args: [{ selector: "ionic-logging-viewer-levels", template: "<ion-segment [(ngModel)]=\"selectedLevel\" (ionChange)=\"onLevelChanged()\">\n\t<ion-segment-button *ngFor=\"let logLevel of logLevels\" [value]=\"logLevel\">\n\t\t<ion-label>{{ logLevel }}</ion-label>\n\t</ion-segment-button>\n</ion-segment>" }]
|
|
244
|
+
}], ctorParameters: function () { return [{ type: i1.LoggingService }, { type: LoggingViewerFilterService }]; } });
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Component for displaying the search bar for filtering the current logs.
|
|
248
|
+
*
|
|
249
|
+
* The component can be embedded in any web page using:
|
|
250
|
+
*
|
|
251
|
+
* <ionic-logging-viewer-search placeholder="Search"></ionic-logging-viewer-search>
|
|
252
|
+
*/
|
|
253
|
+
class LoggingViewerSearchComponent {
|
|
254
|
+
/**
|
|
255
|
+
* Creates a new instance of the component.
|
|
256
|
+
*/
|
|
257
|
+
constructor(loggingService, loggingViewerFilterService) {
|
|
258
|
+
this.loggingViewerFilterService = loggingViewerFilterService;
|
|
259
|
+
this.logger = loggingService.getLogger("Ionic.Logging.Viewer.Search.Component");
|
|
260
|
+
const methodName = "ctor";
|
|
261
|
+
this.logger.entry(methodName);
|
|
262
|
+
this.logger.exit(methodName);
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Initialize the component.
|
|
266
|
+
*
|
|
267
|
+
* This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html).
|
|
268
|
+
*/
|
|
269
|
+
ngOnInit() {
|
|
270
|
+
const methodName = "ngOnInit";
|
|
271
|
+
this.logger.entry(methodName);
|
|
272
|
+
if (!this.placeholder) {
|
|
273
|
+
this.placeholder = "Search";
|
|
274
|
+
}
|
|
275
|
+
this.search = this.loggingViewerFilterService.search;
|
|
276
|
+
// subscribe to loggingViewerFilterService.filterChanged event, to refresh,
|
|
277
|
+
// when someone else modifies the search value
|
|
278
|
+
this.filterChangedSubscription = this.loggingViewerFilterService.filterChanged.subscribe(() => {
|
|
279
|
+
this.search = this.loggingViewerFilterService.search;
|
|
280
|
+
});
|
|
281
|
+
this.logger.exit(methodName);
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Clean up.
|
|
285
|
+
*/
|
|
286
|
+
ngOnDestroy() {
|
|
287
|
+
const methodName = "ngOnDestroy";
|
|
288
|
+
this.logger.entry(methodName);
|
|
289
|
+
this.filterChangedSubscription.unsubscribe();
|
|
290
|
+
this.logger.exit(methodName);
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Callback when the search value was changed in the UI.
|
|
294
|
+
*/
|
|
295
|
+
onSearchChanged() {
|
|
296
|
+
const methodName = "onSearchChanged";
|
|
297
|
+
this.logger.entry(methodName, this.search);
|
|
298
|
+
this.loggingViewerFilterService.search = this.search;
|
|
299
|
+
this.logger.exit(methodName);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
LoggingViewerSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerSearchComponent, deps: [{ token: i1.LoggingService }, { token: LoggingViewerFilterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
303
|
+
LoggingViewerSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: LoggingViewerSearchComponent, selector: "ionic-logging-viewer-search", inputs: { placeholder: "placeholder" }, ngImport: i0, template: "<ion-searchbar placeholder=\"{{placeholder}}\" [(ngModel)]=\"search\" (ionChange)=\"onSearchChanged()\"></ion-searchbar>", styles: ["ion-searchbar{padding-top:3px;padding-bottom:0}\n"], dependencies: [{ kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i1$1.IonSearchbar, selector: "ion-searchbar", inputs: ["animated", "autocomplete", "autocorrect", "cancelButtonIcon", "cancelButtonText", "clearIcon", "color", "debounce", "disabled", "enterkeyhint", "inputmode", "mode", "placeholder", "searchIcon", "showCancelButton", "showClearButton", "spellcheck", "type", "value"] }, { kind: "directive", type: i1$1.TextValueAccessor, selector: "ion-input:not([type=number]),ion-textarea,ion-searchbar" }] });
|
|
304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerSearchComponent, decorators: [{
|
|
305
|
+
type: Component,
|
|
306
|
+
args: [{ selector: "ionic-logging-viewer-search", template: "<ion-searchbar placeholder=\"{{placeholder}}\" [(ngModel)]=\"search\" (ionChange)=\"onSearchChanged()\"></ion-searchbar>", styles: ["ion-searchbar{padding-top:3px;padding-bottom:0}\n"] }]
|
|
307
|
+
}], ctorParameters: function () { return [{ type: i1.LoggingService }, { type: LoggingViewerFilterService }]; }, propDecorators: { placeholder: [{
|
|
308
|
+
type: Input
|
|
309
|
+
}] } });
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Ionic modal containing [LoggingViewerComponent](LoggingViewerComponent.html),
|
|
313
|
+
* [LoggingViewerLevelsComponent](LoggingViewerLevelsComponent.html) and
|
|
314
|
+
* [LoggingViewerSearchComponent](LoggingViewerSearchComponent.html).
|
|
315
|
+
*/
|
|
316
|
+
class LoggingViewerModalComponent {
|
|
317
|
+
/**
|
|
318
|
+
* Creates a new instance of the component.
|
|
319
|
+
*/
|
|
320
|
+
constructor(platform, alertController, modalController, loggingService) {
|
|
321
|
+
this.alertController = alertController;
|
|
322
|
+
this.modalController = modalController;
|
|
323
|
+
this.loggingService = loggingService;
|
|
324
|
+
this.logger = loggingService.getLogger("Ionic.Logging.Viewer.Modal.Component");
|
|
325
|
+
const methodName = "ctor";
|
|
326
|
+
this.logger.entry(methodName);
|
|
327
|
+
this.isAndroid = platform.is("android");
|
|
328
|
+
this.logger.exit(methodName);
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Initializes the LoggingViewerModalComponent.
|
|
332
|
+
* It configures the supported translations.
|
|
333
|
+
*/
|
|
334
|
+
ngOnInit() {
|
|
335
|
+
// prepare translations
|
|
336
|
+
this.translations = {};
|
|
337
|
+
this.translations[LoggingViewerModalComponent.languageEn] = {
|
|
338
|
+
cancel: "Cancel",
|
|
339
|
+
confirmDelete: "Delete all log messages?",
|
|
340
|
+
ok: "Ok",
|
|
341
|
+
searchPlaceholder: "Search",
|
|
342
|
+
title: "Logging",
|
|
343
|
+
};
|
|
344
|
+
this.translations[LoggingViewerModalComponent.languageDe] = {
|
|
345
|
+
cancel: "Abbrechen",
|
|
346
|
+
confirmDelete: "Alle Logs löschen?",
|
|
347
|
+
ok: "Ok",
|
|
348
|
+
searchPlaceholder: "Suchen",
|
|
349
|
+
title: "Logging",
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Eventhandler called by Ionic when the modal is opened.
|
|
354
|
+
*/
|
|
355
|
+
ionViewDidEnter() {
|
|
356
|
+
const methodName = "ionViewDidEnter";
|
|
357
|
+
this.logger.entry(methodName);
|
|
358
|
+
this.logger.exit(methodName);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Eventhandler called when the cancel button is clicked.
|
|
362
|
+
*/
|
|
363
|
+
onClose() {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
const methodName = "onClose";
|
|
366
|
+
this.logger.entry(methodName);
|
|
367
|
+
yield this.modalController.dismiss();
|
|
368
|
+
this.logger.exit(methodName);
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Eventhandler called when the clear button is clicked.
|
|
373
|
+
*/
|
|
374
|
+
onClearLogs() {
|
|
375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
const methodName = "onClearLogs";
|
|
377
|
+
this.logger.entry(methodName);
|
|
378
|
+
const alert = yield this.alertController.create({
|
|
379
|
+
header: this.getTranslation().confirmDelete,
|
|
380
|
+
buttons: [
|
|
381
|
+
{
|
|
382
|
+
text: this.getTranslation().cancel,
|
|
383
|
+
role: "cancel",
|
|
384
|
+
cssClass: "secondary"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
text: this.getTranslation().ok,
|
|
388
|
+
handler: () => {
|
|
389
|
+
this.clearLogs();
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
]
|
|
393
|
+
});
|
|
394
|
+
yield alert.present();
|
|
395
|
+
this.logger.exit(methodName);
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Clear logs.
|
|
400
|
+
*/
|
|
401
|
+
clearLogs() {
|
|
402
|
+
if (this.localStorageKeys) {
|
|
403
|
+
for (const localStorageKey of this.localStorageKeys.split(",")) {
|
|
404
|
+
this.loggingService.removeLogMessagesFromLocalStorage(localStorageKey);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
else {
|
|
408
|
+
this.loggingService.removeLogMessages();
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Helper method returning the current translation:
|
|
413
|
+
* - the property translation if defined
|
|
414
|
+
* - the translation according property language if valid
|
|
415
|
+
* - English translation, otherwise
|
|
416
|
+
*/
|
|
417
|
+
getTranslation() {
|
|
418
|
+
if (typeof this.translation !== "undefined") {
|
|
419
|
+
return this.translation;
|
|
420
|
+
}
|
|
421
|
+
else if (typeof this.language !== "undefined" && typeof this.translations[this.language] === "object") {
|
|
422
|
+
return this.translations[this.language];
|
|
423
|
+
}
|
|
424
|
+
else {
|
|
425
|
+
return this.translations[LoggingViewerModalComponent.languageEn];
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
LoggingViewerModalComponent.languageEn = "en";
|
|
430
|
+
LoggingViewerModalComponent.languageDe = "de";
|
|
431
|
+
LoggingViewerModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerModalComponent, deps: [{ token: i1$1.Platform }, { token: i1$1.AlertController }, { token: i1$1.ModalController }, { token: i1.LoggingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
432
|
+
LoggingViewerModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: LoggingViewerModalComponent, selector: "ionic-logging-viewer-modal", inputs: { language: "language", translation: "translation", localStorageKeys: "localStorageKeys", allowClearLogs: "allowClearLogs" }, ngImport: i0, template: "<ion-header>\n\t<ion-toolbar color=primary>\n\t\t<ion-title>{{ getTranslation().title }}</ion-title>\n\t\t<ion-buttons slot=\"start\">\n\t\t\t<ion-button *ngIf=\"!isAndroid\" (click)=\"onClose()\">\n\t\t\t\t{{ getTranslation().cancel }}\n\t\t\t</ion-button>\n\t\t\t<ion-button *ngIf=\"isAndroid\" icon-only (click)=\"onClose()\">\n\t\t\t\t<ion-icon name=\"md-close\"></ion-icon>\n\t\t\t</ion-button>\n\t\t</ion-buttons>\n\t</ion-toolbar>\n\t<ion-toolbar>\n\t\t<ionic-logging-viewer-search [placeholder]=\"getTranslation().searchPlaceholder\"></ionic-logging-viewer-search>\n\t\t<ion-buttons slot=\"end\" *ngIf=\"allowClearLogs !== false\" class=\"clearLogs\">\n\t\t\t<ion-button (click)=\"onClearLogs()\">\n\t\t\t\t<ion-icon name=\"trash-outline\"></ion-icon>\n\t\t\t</ion-button>\n\t\t</ion-buttons>\n\t</ion-toolbar>\n\t<ion-toolbar>\n\t\t<ionic-logging-viewer-levels></ionic-logging-viewer-levels>\n\t</ion-toolbar>\n</ion-header>\n<ion-content>\n\t<ionic-logging-viewer [localStorageKeys]=\"localStorageKeys\"></ionic-logging-viewer>\n</ion-content>", styles: ["ionic-logging-viewer-levels{width:100%;padding-left:12px;padding-right:12px}.clearLogs{padding-top:3px}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$1.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i1$1.IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: i1$1.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i1$1.IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i1$1.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i1$1.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: i1$1.IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: LoggingViewerComponent, selector: "ionic-logging-viewer", inputs: ["localStorageKeys"] }, { kind: "component", type: LoggingViewerSearchComponent, selector: "ionic-logging-viewer-search", inputs: ["placeholder"] }, { kind: "component", type: LoggingViewerLevelsComponent, selector: "ionic-logging-viewer-levels" }] });
|
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerModalComponent, decorators: [{
|
|
434
|
+
type: Component,
|
|
435
|
+
args: [{ selector: "ionic-logging-viewer-modal", template: "<ion-header>\n\t<ion-toolbar color=primary>\n\t\t<ion-title>{{ getTranslation().title }}</ion-title>\n\t\t<ion-buttons slot=\"start\">\n\t\t\t<ion-button *ngIf=\"!isAndroid\" (click)=\"onClose()\">\n\t\t\t\t{{ getTranslation().cancel }}\n\t\t\t</ion-button>\n\t\t\t<ion-button *ngIf=\"isAndroid\" icon-only (click)=\"onClose()\">\n\t\t\t\t<ion-icon name=\"md-close\"></ion-icon>\n\t\t\t</ion-button>\n\t\t</ion-buttons>\n\t</ion-toolbar>\n\t<ion-toolbar>\n\t\t<ionic-logging-viewer-search [placeholder]=\"getTranslation().searchPlaceholder\"></ionic-logging-viewer-search>\n\t\t<ion-buttons slot=\"end\" *ngIf=\"allowClearLogs !== false\" class=\"clearLogs\">\n\t\t\t<ion-button (click)=\"onClearLogs()\">\n\t\t\t\t<ion-icon name=\"trash-outline\"></ion-icon>\n\t\t\t</ion-button>\n\t\t</ion-buttons>\n\t</ion-toolbar>\n\t<ion-toolbar>\n\t\t<ionic-logging-viewer-levels></ionic-logging-viewer-levels>\n\t</ion-toolbar>\n</ion-header>\n<ion-content>\n\t<ionic-logging-viewer [localStorageKeys]=\"localStorageKeys\"></ionic-logging-viewer>\n</ion-content>", styles: ["ionic-logging-viewer-levels{width:100%;padding-left:12px;padding-right:12px}.clearLogs{padding-top:3px}\n"] }]
|
|
436
|
+
}], ctorParameters: function () { return [{ type: i1$1.Platform }, { type: i1$1.AlertController }, { type: i1$1.ModalController }, { type: i1.LoggingService }]; }, propDecorators: { language: [{
|
|
437
|
+
type: Input
|
|
438
|
+
}], translation: [{
|
|
439
|
+
type: Input
|
|
440
|
+
}], localStorageKeys: [{
|
|
441
|
+
type: Input
|
|
442
|
+
}], allowClearLogs: [{
|
|
443
|
+
type: Input
|
|
444
|
+
}] } });
|
|
445
|
+
|
|
446
|
+
class LoggingViewerModule {
|
|
447
|
+
}
|
|
448
|
+
LoggingViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
449
|
+
LoggingViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerModule, declarations: [LoggingViewerComponent,
|
|
450
|
+
LoggingViewerSearchComponent,
|
|
451
|
+
LoggingViewerLevelsComponent,
|
|
452
|
+
LoggingViewerModalComponent], imports: [CommonModule,
|
|
453
|
+
FormsModule,
|
|
454
|
+
IonicModule], exports: [LoggingViewerComponent,
|
|
455
|
+
LoggingViewerSearchComponent,
|
|
456
|
+
LoggingViewerLevelsComponent,
|
|
457
|
+
LoggingViewerModalComponent] });
|
|
458
|
+
LoggingViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerModule, providers: [
|
|
459
|
+
LoggingViewerFilterService
|
|
460
|
+
], imports: [CommonModule,
|
|
461
|
+
FormsModule,
|
|
462
|
+
IonicModule] });
|
|
463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: LoggingViewerModule, decorators: [{
|
|
464
|
+
type: NgModule,
|
|
465
|
+
args: [{
|
|
466
|
+
imports: [
|
|
467
|
+
CommonModule,
|
|
468
|
+
FormsModule,
|
|
469
|
+
IonicModule
|
|
470
|
+
],
|
|
471
|
+
declarations: [
|
|
472
|
+
LoggingViewerComponent,
|
|
473
|
+
LoggingViewerSearchComponent,
|
|
474
|
+
LoggingViewerLevelsComponent,
|
|
475
|
+
LoggingViewerModalComponent
|
|
476
|
+
],
|
|
477
|
+
exports: [
|
|
478
|
+
LoggingViewerComponent,
|
|
479
|
+
LoggingViewerSearchComponent,
|
|
480
|
+
LoggingViewerLevelsComponent,
|
|
481
|
+
LoggingViewerModalComponent
|
|
482
|
+
],
|
|
483
|
+
providers: [
|
|
484
|
+
LoggingViewerFilterService
|
|
485
|
+
]
|
|
486
|
+
}]
|
|
487
|
+
}] });
|
|
488
|
+
|
|
489
|
+
/*
|
|
490
|
+
* Public API Surface of ionic-logging-viewer
|
|
491
|
+
*/
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Generated bundle index. Do not edit.
|
|
495
|
+
*/
|
|
496
|
+
|
|
497
|
+
export { LoggingViewerComponent, LoggingViewerLevelsComponent, LoggingViewerModalComponent, LoggingViewerModule, LoggingViewerSearchComponent };
|
|
498
|
+
//# sourceMappingURL=ionic-logging-viewer.mjs.map
|