@anglr/common 10.0.0-beta.20220215130133 → 11.0.0-beta.20220222093017
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/changelog.md +19 -0
- package/es2015/material/src/components/titledDialog/titledDialog.component.js +12 -8
- package/es2015/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
- package/es2015/material/src/modules/titledDialog.module.js +7 -4
- package/es2015/material/src/modules/titledDialog.module.js.map +1 -1
- package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +1 -0
- package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
- package/es2020/material/src/components/titledDialog/titledDialog.component.js +12 -8
- package/es2020/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
- package/es2020/material/src/modules/titledDialog.module.js +7 -4
- package/es2020/material/src/modules/titledDialog.module.js.map +1 -1
- package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +1 -0
- package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
- package/material/src/components/titledDialog/titledDialog.component.d.ts.map +1 -1
- package/material/src/modules/titledDialog.module.d.ts +1 -1
- package/material/src/modules/titledDialog.module.d.ts.map +1 -1
- package/package.json +23 -28
- package/readme.md +0 -1
- package/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.d.ts.map +1 -1
- package/version.bak +1 -1
- package/common.d.ts +0 -1398
- package/common.internal.d.ts +0 -1438
- package/date-fns/common-date-fns.d.ts +0 -8
- package/date-fns/common-date-fns.internal.d.ts +0 -8
- package/date-fns/temp/common-date-fns.api.md +0 -12
- package/es2015/hmr/src/index.js +0 -35
- package/es2015/hmr/src/index.js.map +0 -1
- package/es2020/hmr/src/index.js +0 -35
- package/es2020/hmr/src/index.js.map +0 -1
- package/forms/common-forms.d.ts +0 -966
- package/forms/common-forms.internal.d.ts +0 -966
- package/forms/temp/common-forms.api.md +0 -445
- package/hmr/common-hmr.d.ts +0 -6
- package/hmr/common-hmr.internal.d.ts +0 -6
- package/hmr/package.json +0 -9
- package/hmr/src/index.d.ts +0 -6
- package/hmr/src/index.d.ts.map +0 -1
- package/hmr/temp/common-hmr.api.md +0 -12
- package/hotkeys/common-hotkeys.d.ts +0 -53
- package/hotkeys/common-hotkeys.internal.d.ts +0 -53
- package/hotkeys/temp/common-hotkeys.api.md +0 -25
- package/material/common-material.d.ts +0 -264
- package/material/common-material.internal.d.ts +0 -278
- package/material/temp/common-material.api.md +0 -164
- package/moment/common-moment.d.ts +0 -61
- package/moment/common-moment.internal.d.ts +0 -61
- package/moment/temp/common-moment.api.md +0 -47
- package/numeral/common-numeral.d.ts +0 -44
- package/numeral/common-numeral.internal.d.ts +0 -44
- package/numeral/temp/common-numeral.api.md +0 -37
- package/positions/common-positions.d.ts +0 -324
- package/positions/common-positions.internal.d.ts +0 -346
- package/positions/temp/common-positions.api.md +0 -170
- package/router/common-router.d.ts +0 -140
- package/router/common-router.internal.d.ts +0 -140
- package/router/temp/common-router.api.md +0 -74
- package/store/common-store.d.ts +0 -61
- package/store/common-store.internal.d.ts +0 -61
- package/store/temp/common-store.api.md +0 -37
- package/structured-log/common-structured-log.d.ts +0 -418
- package/structured-log/common-structured-log.internal.d.ts +0 -418
- package/structured-log/temp/common-structured-log.api.md +0 -193
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
2
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import * as i2 from '@angular/common';
|
|
5
|
-
import { InjectionToken } from '@angular/core';
|
|
6
|
-
import { LogEvent } from 'structured-log';
|
|
7
|
-
import { LogEventLevel } from 'structured-log';
|
|
8
|
-
import { Logger } from '@anglr/common';
|
|
9
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
10
|
-
import { Observable } from 'rxjs';
|
|
11
|
-
import { OnDestroy } from '@angular/core';
|
|
12
|
-
import { OnInit } from '@angular/core';
|
|
13
|
-
import { Provider } from '@angular/core';
|
|
14
|
-
import { Sink } from 'structured-log';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Provider for ConsoleComponentSink for logger
|
|
18
|
-
*/
|
|
19
|
-
export declare const CONSOLE_COMPONENT_SINK: Provider;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Injection token for obtaining sink service for `ConsoleComponent`
|
|
23
|
-
*/
|
|
24
|
-
export declare const CONSOLE_COMPONENT_SINK_SERVICE: InjectionToken<ConsoleComponentSink>;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Provider for ConsoleComponentSinkService for logger
|
|
28
|
-
*/
|
|
29
|
-
export declare const CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER: Provider;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Show hide animation for console component
|
|
33
|
-
*/
|
|
34
|
-
export declare const consoleAnimationTrigger: AnimationTriggerMetadata;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Component used for displaying console logs
|
|
38
|
-
*/
|
|
39
|
-
export declare class ConsoleComponent implements OnInit, OnDestroy {
|
|
40
|
-
private _consoleSvc;
|
|
41
|
-
private _changeDetector;
|
|
42
|
-
/**
|
|
43
|
-
* Subscription for log changes
|
|
44
|
-
*/
|
|
45
|
-
private _logsChangeSubscription;
|
|
46
|
-
/**
|
|
47
|
-
* Current state of logger
|
|
48
|
-
*/
|
|
49
|
-
currentLogs: ConsoleComponentLog[];
|
|
50
|
-
/**
|
|
51
|
-
* Indication whether can use copy to clipboard
|
|
52
|
-
*/
|
|
53
|
-
canCopy: Clipboard;
|
|
54
|
-
/**
|
|
55
|
-
* Current value of filter
|
|
56
|
-
*/
|
|
57
|
-
filterValue: string;
|
|
58
|
-
constructor(_consoleSvc: ConsoleComponentSink, _changeDetector: ChangeDetectorRef);
|
|
59
|
-
/**
|
|
60
|
-
* Initialize component
|
|
61
|
-
*/
|
|
62
|
-
ngOnInit(): void;
|
|
63
|
-
/**
|
|
64
|
-
* Called when component is destroyed
|
|
65
|
-
*/
|
|
66
|
-
ngOnDestroy(): void;
|
|
67
|
-
/**
|
|
68
|
-
* Copies content of whole console log into clipboard
|
|
69
|
-
*/
|
|
70
|
-
copy(): void;
|
|
71
|
-
/**
|
|
72
|
-
* Copies message to clipboard
|
|
73
|
-
* @param message - Message to be copied
|
|
74
|
-
*/
|
|
75
|
-
copyMessage(message: string): void;
|
|
76
|
-
/**
|
|
77
|
-
* Clears existing logs
|
|
78
|
-
*/
|
|
79
|
-
clear(): void;
|
|
80
|
-
/**
|
|
81
|
-
* Sets messages using filter
|
|
82
|
-
*/
|
|
83
|
-
setMessages(): void;
|
|
84
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleComponent, never>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConsoleComponent, "console", never, {}, {}, never, never>;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Definition of logs available for `ConsoleComponent`
|
|
90
|
-
*/
|
|
91
|
-
export declare interface ConsoleComponentLog {
|
|
92
|
-
/**
|
|
93
|
-
* Text of log to be displayed
|
|
94
|
-
*/
|
|
95
|
-
text: string;
|
|
96
|
-
/**
|
|
97
|
-
* Log level of log
|
|
98
|
-
*/
|
|
99
|
-
logLevel: string;
|
|
100
|
-
/**
|
|
101
|
-
* Indication whether detail of line is expanded or not
|
|
102
|
-
*/
|
|
103
|
-
expanded?: boolean;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Definition of sink that will write to `ConsoleComponent`
|
|
108
|
-
*/
|
|
109
|
-
export declare interface ConsoleComponentSink {
|
|
110
|
-
/**
|
|
111
|
-
* Occurs when logs change
|
|
112
|
-
*/
|
|
113
|
-
readonly logsChange: Observable<void>;
|
|
114
|
-
/**
|
|
115
|
-
* Gets current logs
|
|
116
|
-
*/
|
|
117
|
-
readonly logs: ConsoleComponentLog[];
|
|
118
|
-
/**
|
|
119
|
-
* Clears all current logs
|
|
120
|
-
*/
|
|
121
|
-
clear(): void;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Factory method for `ConsoleComponentSink`
|
|
126
|
-
*/
|
|
127
|
-
export declare function consoleComponentSinkFactory(configSvc: ConsoleSinkConfigService): ConsoleComponentSinkService;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Sink that is used for storing logs in `ConsoleComponent`
|
|
131
|
-
*/
|
|
132
|
-
export declare class ConsoleComponentSinkService implements Sink, ConsoleComponentSink {
|
|
133
|
-
private _configSvc;
|
|
134
|
-
/**
|
|
135
|
-
* Indication that prototype of MessageTemplate was updated
|
|
136
|
-
*/
|
|
137
|
-
private _prototypeUpdated;
|
|
138
|
-
/**
|
|
139
|
-
* Array of current logs
|
|
140
|
-
*/
|
|
141
|
-
private _currentLogs;
|
|
142
|
-
/**
|
|
143
|
-
* Subject used for indicating logs change
|
|
144
|
-
*/
|
|
145
|
-
private _logsChangeSubject;
|
|
146
|
-
/**
|
|
147
|
-
* Occurs when logs change
|
|
148
|
-
*/
|
|
149
|
-
get logsChange(): Observable<void>;
|
|
150
|
-
/**
|
|
151
|
-
* Gets current logs
|
|
152
|
-
*/
|
|
153
|
-
get logs(): ConsoleComponentLog[];
|
|
154
|
-
constructor(_configSvc: ConsoleSinkConfigService);
|
|
155
|
-
/**
|
|
156
|
-
* Clears all current logs
|
|
157
|
-
*/
|
|
158
|
-
clear(): void;
|
|
159
|
-
emit(events: LogEvent[]): void;
|
|
160
|
-
flush(): Promise<void>;
|
|
161
|
-
/**
|
|
162
|
-
* Updates prototype of MessageTemplate
|
|
163
|
-
*/
|
|
164
|
-
private _updatePrototype;
|
|
165
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleComponentSinkService, never>;
|
|
166
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConsoleComponentSinkService>;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Module containing component Console (log)
|
|
171
|
-
*/
|
|
172
|
-
export declare class ConsoleLogModule {
|
|
173
|
-
/**
|
|
174
|
-
* Registers structured-log as logger service, with console component sink
|
|
175
|
-
*/
|
|
176
|
-
static forRoot(): ModuleWithProviders<ConsoleLogModule>;
|
|
177
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleLogModule, never>;
|
|
178
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ConsoleLogModule, [typeof i1.ConsoleComponent], [typeof i2.CommonModule], [typeof i1.ConsoleComponent]>;
|
|
179
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ConsoleLogModule>;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Service used as configuration for *console sink component*
|
|
184
|
-
*/
|
|
185
|
-
export declare class ConsoleSinkConfigService {
|
|
186
|
-
maxLogsCount?: number;
|
|
187
|
-
restrictToLevel?: LogEventLevel;
|
|
188
|
-
/**
|
|
189
|
-
* Creates instance of `ConsoleSinkConfigService`
|
|
190
|
-
* @param maxLogsCount - Maximal number of logs that can be stored
|
|
191
|
-
* @param restrictToLevel - Minimal log level to be displayed
|
|
192
|
-
*/
|
|
193
|
-
constructor(maxLogsCount?: number, restrictToLevel?: LogEventLevel);
|
|
194
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleSinkConfigService, never>;
|
|
195
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConsoleSinkConfigService>;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
declare namespace i1 {
|
|
199
|
-
export {
|
|
200
|
-
ConsoleComponent
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Checks if a log event level includes the target log event level.
|
|
206
|
-
* @param level - The level to check.
|
|
207
|
-
* @param target - The target level.
|
|
208
|
-
* @returns True if the checked level contains the target level, or if the checked level is undefined.
|
|
209
|
-
*/
|
|
210
|
-
export declare function isEnabled(level: LogEventLevel, target: LogEventLevel): boolean;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Injection token for obtaining rest client for rest sink
|
|
214
|
-
*/
|
|
215
|
-
export declare const LOGGER_REST_CLIENT: InjectionToken<LoggerRestClient>;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Injection token for obtaining loggers sinks
|
|
219
|
-
*/
|
|
220
|
-
export declare const LOGGER_SINKS: InjectionToken<Sink[]>;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Client used for logging logs using REST
|
|
224
|
-
*/
|
|
225
|
-
export declare interface LoggerRestClient {
|
|
226
|
-
/**
|
|
227
|
-
* Logs message on server using REST
|
|
228
|
-
* @param logs - Array of logs to be logged
|
|
229
|
-
*/
|
|
230
|
-
log(logs: RestLog[]): Observable<void>;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Service used for logging using structured-log
|
|
235
|
-
*/
|
|
236
|
-
export declare class LoggerService implements Logger {
|
|
237
|
-
/**
|
|
238
|
-
* Currently used instance of logger
|
|
239
|
-
*/
|
|
240
|
-
private _logger;
|
|
241
|
-
constructor(sinks: Sink[]);
|
|
242
|
-
/**
|
|
243
|
-
* Logs an event with the LogEventLevel.fatal severity.
|
|
244
|
-
* @param messageTemplate - Message template for the log event.
|
|
245
|
-
* @param properties - Properties that can be used to render the message template.
|
|
246
|
-
*/
|
|
247
|
-
fatal(messageTemplate: string, ...properties: any[]): void;
|
|
248
|
-
/**
|
|
249
|
-
* Logs an event with the LogEventLevel.fatal severity.
|
|
250
|
-
* @param error - Error for the log event.
|
|
251
|
-
* @param messageTemplate - Message template for the log event.
|
|
252
|
-
* @param properties - Properties that can be used to render the message template.
|
|
253
|
-
*/
|
|
254
|
-
fatal(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
255
|
-
/**
|
|
256
|
-
* Logs an event with the LogEventLevel.error severity.
|
|
257
|
-
* @param messageTemplate - Message template for the log event.
|
|
258
|
-
* @param properties - Properties that can be used to render the message template.
|
|
259
|
-
*/
|
|
260
|
-
error(messageTemplate: string, ...properties: any[]): void;
|
|
261
|
-
/**
|
|
262
|
-
* Logs an event with the LogEventLevel.error severity.
|
|
263
|
-
* @param error - Error for the log event.
|
|
264
|
-
* @param messageTemplate - Message template for the log event.
|
|
265
|
-
* @param properties - Properties that can be used to render the message template.
|
|
266
|
-
*/
|
|
267
|
-
error(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
268
|
-
/**
|
|
269
|
-
* Logs an event with the LogEventLevel.warning severity.
|
|
270
|
-
* @param messageTemplate - Message template for the log event.
|
|
271
|
-
* @param properties - Properties that can be used to render the message template.
|
|
272
|
-
*/
|
|
273
|
-
warn(messageTemplate: string, ...properties: any[]): void;
|
|
274
|
-
/**
|
|
275
|
-
* Logs an event with the LogEventLevel.warning severity.
|
|
276
|
-
* @param error - Error for the log event.
|
|
277
|
-
* @param messageTemplate - Message template for the log event.
|
|
278
|
-
* @param properties - Properties that can be used to render the message template.
|
|
279
|
-
*/
|
|
280
|
-
warn(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
281
|
-
/**
|
|
282
|
-
* Logs an event with the LogEventLevel.information severity.
|
|
283
|
-
* @param messageTemplate - Message template for the log event.
|
|
284
|
-
* @param properties - Properties that can be used to render the message template.
|
|
285
|
-
*/
|
|
286
|
-
info(messageTemplate: string, ...properties: any[]): void;
|
|
287
|
-
/**
|
|
288
|
-
* Logs an event with the LogEventLevel.information severity.
|
|
289
|
-
* @param error - Error for the log event.
|
|
290
|
-
* @param messageTemplate - Message template for the log event.
|
|
291
|
-
* @param properties - Properties that can be used to render the message template.
|
|
292
|
-
*/
|
|
293
|
-
info(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
294
|
-
/**
|
|
295
|
-
* Logs an event with the LogEventLevel.debug severity.
|
|
296
|
-
* @param messageTemplate - Message template for the log event.
|
|
297
|
-
* @param properties - Properties that can be used to render the message template.
|
|
298
|
-
*/
|
|
299
|
-
debug(messageTemplate: string, ...properties: any[]): void;
|
|
300
|
-
/**
|
|
301
|
-
* Logs an event with the LogEventLevel.debug severity.
|
|
302
|
-
* @param error - Error for the log event.
|
|
303
|
-
* @param messageTemplate - Message template for the log event.
|
|
304
|
-
* @param properties - Properties that can be used to render the message template.
|
|
305
|
-
*/
|
|
306
|
-
debug(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
307
|
-
/**
|
|
308
|
-
* Logs an event with the LogEventLevel.verbose severity.
|
|
309
|
-
* @param messageTemplate - Message template for the log event.
|
|
310
|
-
* @param properties - Properties that can be used to render the message template.
|
|
311
|
-
*/
|
|
312
|
-
verbose(messageTemplate: string, ...properties: any[]): void;
|
|
313
|
-
/**
|
|
314
|
-
* Logs an event with the LogEventLevel.verbose severity.
|
|
315
|
-
* @param error - Error for the log event.
|
|
316
|
-
* @param messageTemplate - Message template for the log event.
|
|
317
|
-
* @param properties - Properties that can be used to render the message template.
|
|
318
|
-
*/
|
|
319
|
-
verbose(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
320
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
|
|
321
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Provider for RestSinkService for logger
|
|
326
|
-
*/
|
|
327
|
-
export declare const REST_SINK: Provider;
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Definition of log object that is sent to server
|
|
331
|
-
*/
|
|
332
|
-
export declare interface RestLog {
|
|
333
|
-
/**
|
|
334
|
-
* Timestamp when log occured
|
|
335
|
-
*/
|
|
336
|
-
timestamp: string;
|
|
337
|
-
/**
|
|
338
|
-
* Level of log
|
|
339
|
-
*/
|
|
340
|
-
logLevel: string;
|
|
341
|
-
/**
|
|
342
|
-
* Message to be logged
|
|
343
|
-
*/
|
|
344
|
-
message: string;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Service used as configuration for *rest sink*
|
|
349
|
-
*/
|
|
350
|
-
export declare class RestSinkConfigService {
|
|
351
|
-
secondsToFlushAfter?: number;
|
|
352
|
-
flushAfterNumberOfLogs?: number;
|
|
353
|
-
immediateFlushMinLevel?: LogEventLevel;
|
|
354
|
-
restrictToLevel?: LogEventLevel;
|
|
355
|
-
/**
|
|
356
|
-
* Creates instance of `RestSinkConfigService`
|
|
357
|
-
* @param secondsToFlushAfter - Number of seconds after which should be flush called
|
|
358
|
-
* @param flushAfterNumberOfLogs - Number of logs after which should be flush called
|
|
359
|
-
* @param immediateFlushMinLevel - Minimal log level that will be flushed immediately
|
|
360
|
-
* @param restrictToLevel - Minimal log level to be displayed
|
|
361
|
-
*/
|
|
362
|
-
constructor(secondsToFlushAfter?: number, flushAfterNumberOfLogs?: number, immediateFlushMinLevel?: LogEventLevel, restrictToLevel?: LogEventLevel);
|
|
363
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RestSinkConfigService, never>;
|
|
364
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RestSinkConfigService>;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Sink that is used for storing logs using REST
|
|
369
|
-
*/
|
|
370
|
-
export declare class RestSinkService implements Sink {
|
|
371
|
-
private _configSvc;
|
|
372
|
-
private _restClient;
|
|
373
|
-
/**
|
|
374
|
-
* Indication that prototype of MessageTemplate was updated
|
|
375
|
-
*/
|
|
376
|
-
private _prototypeUpdated;
|
|
377
|
-
/**
|
|
378
|
-
* Array of unflushed logs
|
|
379
|
-
*/
|
|
380
|
-
private _logs;
|
|
381
|
-
/**
|
|
382
|
-
* Interval timer id
|
|
383
|
-
*/
|
|
384
|
-
private _timer;
|
|
385
|
-
constructor(_configSvc: RestSinkConfigService, isStable: Promise<void>, _restClient: LoggerRestClient);
|
|
386
|
-
/**
|
|
387
|
-
* Called when component is destroyed
|
|
388
|
-
*/
|
|
389
|
-
ngOnDestroy(): void;
|
|
390
|
-
/**
|
|
391
|
-
* Emits events into log
|
|
392
|
-
* @param events - Events to be emitted
|
|
393
|
-
*/
|
|
394
|
-
emit(events: LogEvent[]): void;
|
|
395
|
-
/**
|
|
396
|
-
* Flushes logs
|
|
397
|
-
*/
|
|
398
|
-
flush(): Promise<void>;
|
|
399
|
-
/**
|
|
400
|
-
* Updates prototype of MessageTemplate
|
|
401
|
-
*/
|
|
402
|
-
private _updatePrototype;
|
|
403
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RestSinkService, never>;
|
|
404
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RestSinkService>;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* Provider for logger that is using structured log implementation
|
|
409
|
-
*/
|
|
410
|
-
export declare const STRUCTURED_LOG_LOGGER: Provider;
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* Transforms property to text
|
|
414
|
-
* @param property - Property to be transformed to text
|
|
415
|
-
*/
|
|
416
|
-
export declare function toText(property: any): string;
|
|
417
|
-
|
|
418
|
-
export { }
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
## API Report File for "@anglr/common-structured-log"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
8
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
9
|
-
import * as i0 from '@angular/core';
|
|
10
|
-
import * as i2 from '@angular/common';
|
|
11
|
-
import { InjectionToken } from '@angular/core';
|
|
12
|
-
import { LogEvent } from 'structured-log';
|
|
13
|
-
import { LogEventLevel } from 'structured-log';
|
|
14
|
-
import { Logger } from '@anglr/common';
|
|
15
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
16
|
-
import { Observable } from 'rxjs';
|
|
17
|
-
import { OnDestroy } from '@angular/core';
|
|
18
|
-
import { OnInit } from '@angular/core';
|
|
19
|
-
import { Provider } from '@angular/core';
|
|
20
|
-
import { Sink } from 'structured-log';
|
|
21
|
-
|
|
22
|
-
// @public
|
|
23
|
-
export const CONSOLE_COMPONENT_SINK: Provider;
|
|
24
|
-
|
|
25
|
-
// @public
|
|
26
|
-
export const CONSOLE_COMPONENT_SINK_SERVICE: InjectionToken<ConsoleComponentSink>;
|
|
27
|
-
|
|
28
|
-
// @public
|
|
29
|
-
export const CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER: Provider;
|
|
30
|
-
|
|
31
|
-
// @public
|
|
32
|
-
export const consoleAnimationTrigger: AnimationTriggerMetadata;
|
|
33
|
-
|
|
34
|
-
// @public
|
|
35
|
-
export class ConsoleComponent implements OnInit, OnDestroy {
|
|
36
|
-
constructor(_consoleSvc: ConsoleComponentSink, _changeDetector: ChangeDetectorRef);
|
|
37
|
-
canCopy: Clipboard;
|
|
38
|
-
clear(): void;
|
|
39
|
-
copy(): void;
|
|
40
|
-
copyMessage(message: string): void;
|
|
41
|
-
currentLogs: ConsoleComponentLog[];
|
|
42
|
-
filterValue: string;
|
|
43
|
-
ngOnDestroy(): void;
|
|
44
|
-
ngOnInit(): void;
|
|
45
|
-
setMessages(): void;
|
|
46
|
-
// (undocumented)
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConsoleComponent, "console", never, {}, {}, never, never>;
|
|
48
|
-
// (undocumented)
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleComponent, never>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// @public
|
|
53
|
-
export interface ConsoleComponentLog {
|
|
54
|
-
expanded?: boolean;
|
|
55
|
-
logLevel: string;
|
|
56
|
-
text: string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// @public
|
|
60
|
-
export interface ConsoleComponentSink {
|
|
61
|
-
clear(): void;
|
|
62
|
-
readonly logs: ConsoleComponentLog[];
|
|
63
|
-
readonly logsChange: Observable<void>;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// @public
|
|
67
|
-
export function consoleComponentSinkFactory(configSvc: ConsoleSinkConfigService): ConsoleComponentSinkService;
|
|
68
|
-
|
|
69
|
-
// @public
|
|
70
|
-
export class ConsoleComponentSinkService implements Sink, ConsoleComponentSink {
|
|
71
|
-
constructor(_configSvc: ConsoleSinkConfigService);
|
|
72
|
-
clear(): void;
|
|
73
|
-
// (undocumented)
|
|
74
|
-
emit(events: LogEvent[]): void;
|
|
75
|
-
// (undocumented)
|
|
76
|
-
flush(): Promise<void>;
|
|
77
|
-
get logs(): ConsoleComponentLog[];
|
|
78
|
-
get logsChange(): Observable<void>;
|
|
79
|
-
// (undocumented)
|
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleComponentSinkService, never>;
|
|
81
|
-
// (undocumented)
|
|
82
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConsoleComponentSinkService>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// @public
|
|
86
|
-
export class ConsoleLogModule {
|
|
87
|
-
static forRoot(): ModuleWithProviders<ConsoleLogModule>;
|
|
88
|
-
// (undocumented)
|
|
89
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleLogModule, never>;
|
|
90
|
-
// (undocumented)
|
|
91
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ConsoleLogModule>;
|
|
92
|
-
// Warning: (ae-forgotten-export) The symbol "i1" needs to be exported by the entry point index.d.ts
|
|
93
|
-
//
|
|
94
|
-
// (undocumented)
|
|
95
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ConsoleLogModule, [typeof i1.ConsoleComponent], [typeof i2.CommonModule], [typeof i1.ConsoleComponent]>;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// @public
|
|
99
|
-
export class ConsoleSinkConfigService {
|
|
100
|
-
constructor(maxLogsCount?: number, restrictToLevel?: LogEventLevel);
|
|
101
|
-
// (undocumented)
|
|
102
|
-
maxLogsCount?: number;
|
|
103
|
-
// (undocumented)
|
|
104
|
-
restrictToLevel?: LogEventLevel;
|
|
105
|
-
// (undocumented)
|
|
106
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleSinkConfigService, never>;
|
|
107
|
-
// (undocumented)
|
|
108
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConsoleSinkConfigService>;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// @public
|
|
112
|
-
export function isEnabled(level: LogEventLevel, target: LogEventLevel): boolean;
|
|
113
|
-
|
|
114
|
-
// @public
|
|
115
|
-
export const LOGGER_REST_CLIENT: InjectionToken<LoggerRestClient>;
|
|
116
|
-
|
|
117
|
-
// @public
|
|
118
|
-
export const LOGGER_SINKS: InjectionToken<Sink[]>;
|
|
119
|
-
|
|
120
|
-
// @public
|
|
121
|
-
export interface LoggerRestClient {
|
|
122
|
-
log(logs: RestLog[]): Observable<void>;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// @public
|
|
126
|
-
export class LoggerService implements Logger {
|
|
127
|
-
constructor(sinks: Sink[]);
|
|
128
|
-
debug(messageTemplate: string, ...properties: any[]): void;
|
|
129
|
-
debug(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
130
|
-
error(messageTemplate: string, ...properties: any[]): void;
|
|
131
|
-
error(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
132
|
-
fatal(messageTemplate: string, ...properties: any[]): void;
|
|
133
|
-
fatal(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
134
|
-
info(messageTemplate: string, ...properties: any[]): void;
|
|
135
|
-
info(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
136
|
-
verbose(messageTemplate: string, ...properties: any[]): void;
|
|
137
|
-
verbose(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
138
|
-
warn(messageTemplate: string, ...properties: any[]): void;
|
|
139
|
-
warn(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
140
|
-
// (undocumented)
|
|
141
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
|
|
142
|
-
// (undocumented)
|
|
143
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// @public
|
|
147
|
-
export const REST_SINK: Provider;
|
|
148
|
-
|
|
149
|
-
// @public
|
|
150
|
-
export interface RestLog {
|
|
151
|
-
logLevel: string;
|
|
152
|
-
message: string;
|
|
153
|
-
timestamp: string;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
// @public
|
|
157
|
-
export class RestSinkConfigService {
|
|
158
|
-
constructor(secondsToFlushAfter?: number, flushAfterNumberOfLogs?: number, immediateFlushMinLevel?: LogEventLevel, restrictToLevel?: LogEventLevel);
|
|
159
|
-
// (undocumented)
|
|
160
|
-
flushAfterNumberOfLogs?: number;
|
|
161
|
-
// (undocumented)
|
|
162
|
-
immediateFlushMinLevel?: LogEventLevel;
|
|
163
|
-
// (undocumented)
|
|
164
|
-
restrictToLevel?: LogEventLevel;
|
|
165
|
-
// (undocumented)
|
|
166
|
-
secondsToFlushAfter?: number;
|
|
167
|
-
// (undocumented)
|
|
168
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RestSinkConfigService, never>;
|
|
169
|
-
// (undocumented)
|
|
170
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RestSinkConfigService>;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// @public
|
|
174
|
-
export class RestSinkService implements Sink {
|
|
175
|
-
constructor(_configSvc: RestSinkConfigService, isStable: Promise<void>, _restClient: LoggerRestClient);
|
|
176
|
-
emit(events: LogEvent[]): void;
|
|
177
|
-
flush(): Promise<void>;
|
|
178
|
-
ngOnDestroy(): void;
|
|
179
|
-
// (undocumented)
|
|
180
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RestSinkService, never>;
|
|
181
|
-
// (undocumented)
|
|
182
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RestSinkService>;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// @public
|
|
186
|
-
export const STRUCTURED_LOG_LOGGER: Provider;
|
|
187
|
-
|
|
188
|
-
// @public
|
|
189
|
-
export function toText(property: any): string;
|
|
190
|
-
|
|
191
|
-
// (No @packageDocumentation comment for this package)
|
|
192
|
-
|
|
193
|
-
```
|