ionic-logging-viewer 10.0.0 → 14.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 (52) hide show
  1. package/README.md +10 -6
  2. package/esm2020/ionic-logging-viewer.mjs +5 -0
  3. package/esm2020/lib/logging-viewer/logging-viewer.component.mjs +119 -0
  4. package/esm2020/lib/logging-viewer-filter.service.mjs +64 -0
  5. package/esm2020/lib/logging-viewer-levels/logging-viewer-levels.component.mjs +71 -0
  6. package/esm2020/lib/logging-viewer-modal/logging-viewer-modal-properties.model.mjs +2 -0
  7. package/esm2020/lib/logging-viewer-modal/logging-viewer-modal.component.mjs +141 -0
  8. package/esm2020/lib/logging-viewer-search/logging-viewer-search.component.mjs +73 -0
  9. package/esm2020/lib/logging-viewer-translation.model.mjs +2 -0
  10. package/esm2020/lib/logging-viewer.module.mjs +55 -0
  11. package/esm2020/public_api.mjs +11 -0
  12. package/fesm2015/ionic-logging-viewer.mjs +500 -0
  13. package/fesm2015/ionic-logging-viewer.mjs.map +1 -0
  14. package/fesm2020/ionic-logging-viewer.mjs +495 -0
  15. package/fesm2020/ionic-logging-viewer.mjs.map +1 -0
  16. package/ionic-logging-viewer.d.ts +1 -1
  17. package/lib/logging-viewer/logging-viewer.component.d.ts +3 -0
  18. package/lib/logging-viewer-filter.service.d.ts +8 -0
  19. package/lib/logging-viewer-levels/logging-viewer-levels.component.d.ts +3 -0
  20. package/lib/logging-viewer-modal/logging-viewer-modal.component.d.ts +3 -0
  21. package/lib/logging-viewer-search/logging-viewer-search.component.d.ts +3 -0
  22. package/lib/logging-viewer.module.d.ts +11 -0
  23. package/package.json +28 -16
  24. package/bundles/ionic-logging-viewer.umd.js +0 -782
  25. package/bundles/ionic-logging-viewer.umd.js.map +0 -1
  26. package/bundles/ionic-logging-viewer.umd.min.js +0 -16
  27. package/bundles/ionic-logging-viewer.umd.min.js.map +0 -1
  28. package/esm2015/ionic-logging-viewer.js +0 -6
  29. package/esm2015/lib/logging-viewer/logging-viewer.component.js +0 -127
  30. package/esm2015/lib/logging-viewer-filter.service.js +0 -60
  31. package/esm2015/lib/logging-viewer-levels/logging-viewer-levels.component.js +0 -74
  32. package/esm2015/lib/logging-viewer-modal/logging-viewer-modal-properties.model.js +0 -1
  33. package/esm2015/lib/logging-viewer-modal/logging-viewer-modal.component.js +0 -158
  34. package/esm2015/lib/logging-viewer-search/logging-viewer-search.component.js +0 -79
  35. package/esm2015/lib/logging-viewer-translation.model.js +0 -1
  36. package/esm2015/lib/logging-viewer.module.js +0 -39
  37. package/esm2015/public_api.js +0 -9
  38. package/esm5/ionic-logging-viewer.js +0 -6
  39. package/esm5/lib/logging-viewer/logging-viewer.component.js +0 -144
  40. package/esm5/lib/logging-viewer-filter.service.js +0 -69
  41. package/esm5/lib/logging-viewer-levels/logging-viewer-levels.component.js +0 -76
  42. package/esm5/lib/logging-viewer-modal/logging-viewer-modal-properties.model.js +0 -1
  43. package/esm5/lib/logging-viewer-modal/logging-viewer-modal.component.js +0 -191
  44. package/esm5/lib/logging-viewer-search/logging-viewer-search.component.js +0 -81
  45. package/esm5/lib/logging-viewer-translation.model.js +0 -1
  46. package/esm5/lib/logging-viewer.module.js +0 -42
  47. package/esm5/public_api.js +0 -9
  48. package/fesm2015/ionic-logging-viewer.js +0 -519
  49. package/fesm2015/ionic-logging-viewer.js.map +0 -1
  50. package/fesm5/ionic-logging-viewer.js +0 -585
  51. package/fesm5/ionic-logging-viewer.js.map +0 -1
  52. package/ionic-logging-viewer.metadata.json +0 -1
@@ -0,0 +1,55 @@
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: "13.2.1", ngImport: i0, type: LoggingViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
14
+ LoggingViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.1", 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: "13.2.1", ngImport: i0, type: LoggingViewerModule, providers: [
24
+ LoggingViewerFilterService
25
+ ], imports: [[
26
+ CommonModule,
27
+ FormsModule,
28
+ IonicModule
29
+ ]] });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: LoggingViewerModule, decorators: [{
31
+ type: NgModule,
32
+ args: [{
33
+ imports: [
34
+ CommonModule,
35
+ FormsModule,
36
+ IonicModule
37
+ ],
38
+ declarations: [
39
+ LoggingViewerComponent,
40
+ LoggingViewerSearchComponent,
41
+ LoggingViewerLevelsComponent,
42
+ LoggingViewerModalComponent
43
+ ],
44
+ exports: [
45
+ LoggingViewerComponent,
46
+ LoggingViewerSearchComponent,
47
+ LoggingViewerLevelsComponent,
48
+ LoggingViewerModalComponent
49
+ ],
50
+ providers: [
51
+ LoggingViewerFilterService
52
+ ]
53
+ }]
54
+ }] });
55
+ //# sourceMappingURL=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V3ZXJNb2R1bGUgeyB9XG4iXX0=
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Public API Surface of ionic-logging-viewer
3
+ */
4
+ export * from "./lib/logging-viewer.module";
5
+ export * from "./lib/logging-viewer/logging-viewer.component";
6
+ export * from "./lib/logging-viewer-levels/logging-viewer-levels.component";
7
+ export * from "./lib/logging-viewer-search/logging-viewer-search.component";
8
+ export * from "./lib/logging-viewer-modal/logging-viewer-modal.component";
9
+ export * from "./lib/logging-viewer-modal/logging-viewer-modal-properties.model";
10
+ export * from "./lib/logging-viewer-translation.model";
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2lvbmljLWxvZ2dpbmctdmlld2VyL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLCtDQUErQyxDQUFDO0FBQzlELGNBQWMsNkRBQTZELENBQUM7QUFDNUUsY0FBYyw2REFBNkQsQ0FBQztBQUM1RSxjQUFjLDJEQUEyRCxDQUFDO0FBQzFFLGNBQWMsa0VBQWtFLENBQUM7QUFDakYsY0FBYyx3Q0FBd0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgaW9uaWMtbG9nZ2luZy12aWV3ZXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvbG9nZ2luZy12aWV3ZXIubW9kdWxlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9saWIvbG9nZ2luZy12aWV3ZXIvbG9nZ2luZy12aWV3ZXIuY29tcG9uZW50XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9saWIvbG9nZ2luZy12aWV3ZXItbGV2ZWxzL2xvZ2dpbmctdmlld2VyLWxldmVscy5jb21wb25lbnRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9sb2dnaW5nLXZpZXdlci1zZWFyY2gvbG9nZ2luZy12aWV3ZXItc2VhcmNoLmNvbXBvbmVudFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL2xvZ2dpbmctdmlld2VyLW1vZGFsL2xvZ2dpbmctdmlld2VyLW1vZGFsLmNvbXBvbmVudFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL2xvZ2dpbmctdmlld2VyLW1vZGFsL2xvZ2dpbmctdmlld2VyLW1vZGFsLXByb3BlcnRpZXMubW9kZWxcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9sb2dnaW5nLXZpZXdlci10cmFuc2xhdGlvbi5tb2RlbFwiO1xuIl19
@@ -0,0 +1,500 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Injectable, Component, Input, NgModule } from '@angular/core';
3
+ import * as i4 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i4$1 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: "13.2.1", ngImport: i0, type: LoggingViewerFilterService, deps: [{ token: i1.LoggingService }], target: i0.ɵɵFactoryTarget.Injectable });
68
+ LoggingViewerFilterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: LoggingViewerFilterService });
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", 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: "13.2.1", ngImport: i0, type: LoggingViewerComponent, deps: [{ token: i1.LoggingService }, { token: LoggingViewerFilterService }], target: i0.ɵɵFactoryTarget.Component });
176
+ LoggingViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", 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: [""], components: [{ type: i1$1.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { type: i1$1.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { type: i1$1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "date": i4.DatePipe } });
177
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", 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>", styles: [""] }]
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
+ * &lt;ionic-logging-viewer-levels>&lt;/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: "13.2.1", ngImport: i0, type: LoggingViewerLevelsComponent, deps: [{ token: i1.LoggingService }, { token: LoggingViewerFilterService }], target: i0.ɵɵFactoryTarget.Component });
240
+ LoggingViewerLevelsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", 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: [""], components: [{ type: i1$1.IonSegment, selector: "ion-segment", inputs: ["color", "disabled", "mode", "scrollable", "selectOnFocus", "swipeGesture", "value"] }, { type: i1$1.IonSegmentButton, selector: "ion-segment-button", inputs: ["disabled", "layout", "mode", "type", "value"] }, { type: i1$1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }], directives: [{ type: i1$1.SelectValueAccessor, selector: "ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime" }, { type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", 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>", styles: [""] }]
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
+ * &lt;ionic-logging-viewer-search placeholder="Search">&lt;/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: "13.2.1", ngImport: i0, type: LoggingViewerSearchComponent, deps: [{ token: i1.LoggingService }, { token: LoggingViewerFilterService }], target: i0.ɵɵFactoryTarget.Component });
303
+ LoggingViewerSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", 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"], components: [{ 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"] }], directives: [{ type: i1$1.TextValueAccessor, selector: "ion-input:not([type=number]),ion-textarea,ion-searchbar" }, { type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
304
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", 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: "13.2.1", 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: "12.0.0", version: "13.2.1", 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"], components: [{ type: i1$1.IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { type: i1$1.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { type: i1$1.IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { type: i1$1.IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { type: i1$1.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { type: i1$1.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { type: LoggingViewerSearchComponent, selector: "ionic-logging-viewer-search", inputs: ["placeholder"] }, { type: LoggingViewerLevelsComponent, selector: "ionic-logging-viewer-levels" }, { type: i1$1.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { type: LoggingViewerComponent, selector: "ionic-logging-viewer", inputs: ["localStorageKeys"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", 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: "13.2.1", ngImport: i0, type: LoggingViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
449
+ LoggingViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.1", 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: "13.2.1", ngImport: i0, type: LoggingViewerModule, providers: [
459
+ LoggingViewerFilterService
460
+ ], imports: [[
461
+ CommonModule,
462
+ FormsModule,
463
+ IonicModule
464
+ ]] });
465
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: LoggingViewerModule, decorators: [{
466
+ type: NgModule,
467
+ args: [{
468
+ imports: [
469
+ CommonModule,
470
+ FormsModule,
471
+ IonicModule
472
+ ],
473
+ declarations: [
474
+ LoggingViewerComponent,
475
+ LoggingViewerSearchComponent,
476
+ LoggingViewerLevelsComponent,
477
+ LoggingViewerModalComponent
478
+ ],
479
+ exports: [
480
+ LoggingViewerComponent,
481
+ LoggingViewerSearchComponent,
482
+ LoggingViewerLevelsComponent,
483
+ LoggingViewerModalComponent
484
+ ],
485
+ providers: [
486
+ LoggingViewerFilterService
487
+ ]
488
+ }]
489
+ }] });
490
+
491
+ /*
492
+ * Public API Surface of ionic-logging-viewer
493
+ */
494
+
495
+ /**
496
+ * Generated bundle index. Do not edit.
497
+ */
498
+
499
+ export { LoggingViewerComponent, LoggingViewerLevelsComponent, LoggingViewerModalComponent, LoggingViewerModule, LoggingViewerSearchComponent };
500
+ //# sourceMappingURL=ionic-logging-viewer.mjs.map