@anglr/common 14.2.0 → 15.0.0-beta.20221026053714
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 +45 -0
- package/es2015/floating-ui/src/services/floatingUiDomPosition.service.js +80 -62
- package/es2015/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
- package/es2015/material/src/directives/confirmationDialog/confirmationDialog.directive.js +7 -5
- package/es2015/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
- package/es2015/src/modules/position/directives/positionTo/positionTo.directive.js +55 -19
- package/es2015/src/modules/position/directives/positionTo/positionTo.directive.js.map +1 -1
- package/es2015/src/modules/progressIndicator/interceptors/progressInterceptor.js +1 -1
- package/es2015/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
- package/es2015/src/modules/tooltip/directives/tooltip/tooltip.directive.js +6 -6
- package/es2015/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
- package/es2015/src/services/position/position.interface.js.map +1 -1
- package/es2015/src/services/position/position.types.js.map +1 -1
- package/es2015/src/utils/index.js +1 -1
- package/es2015/src/utils/index.js.map +1 -1
- package/es2015/structured-log/src/services/rest/restSink.service.js +4 -2
- package/es2015/structured-log/src/services/rest/restSink.service.js.map +1 -1
- package/es2020/floating-ui/src/services/floatingUiDomPosition.service.js +80 -62
- package/es2020/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
- package/es2020/material/src/directives/confirmationDialog/confirmationDialog.directive.js +6 -5
- package/es2020/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
- package/es2020/src/modules/position/directives/positionTo/positionTo.directive.js +56 -19
- package/es2020/src/modules/position/directives/positionTo/positionTo.directive.js.map +1 -1
- package/es2020/src/modules/progressIndicator/interceptors/progressInterceptor.js +1 -1
- package/es2020/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
- package/es2020/src/modules/tooltip/directives/tooltip/tooltip.directive.js +6 -6
- package/es2020/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
- package/es2020/src/services/position/position.interface.js.map +1 -1
- package/es2020/src/services/position/position.types.js.map +1 -1
- package/es2020/src/utils/index.js +1 -1
- package/es2020/src/utils/index.js.map +1 -1
- package/es2020/structured-log/src/services/rest/restSink.service.js +3 -2
- package/es2020/structured-log/src/services/rest/restSink.service.js.map +1 -1
- package/floating-ui/src/services/floatingUiDomPosition.service.d.ts.map +1 -1
- package/material/src/directives/confirmationDialog/confirmationDialog.directive.d.ts +4 -4
- package/material/src/directives/confirmationDialog/confirmationDialog.directive.d.ts.map +1 -1
- package/package.json +31 -28
- package/src/modules/position/directives/positionTo/positionTo.directive.d.ts +35 -14
- package/src/modules/position/directives/positionTo/positionTo.directive.d.ts.map +1 -1
- package/src/modules/progressIndicator/interceptors/progressInterceptor.d.ts.map +1 -1
- package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts.map +1 -1
- package/src/services/position/position.interface.d.ts +51 -3
- package/src/services/position/position.interface.d.ts.map +1 -1
- package/src/services/position/position.types.d.ts +4 -0
- package/src/services/position/position.types.d.ts.map +1 -1
- package/structured-log/src/services/rest/restSink.service.d.ts.map +1 -1
- package/{positions/src/types/positions.typings.d.ts → typings/positions/index.d.ts} +12 -4
- package/typings/store/index.d.ts +5 -0
- package/{structured-log/src/types/structured-log.typings.d.ts → typings/structured-log/index.d.ts} +49 -13
- package/version.bak +1 -1
- package/es2015/positions/src/types/positions.typings.js +0 -2
- package/es2015/positions/src/types/positions.typings.js.map +0 -1
- package/es2015/store/src/types/store.typings.js +0 -2
- package/es2015/store/src/types/store.typings.js.map +0 -1
- package/es2015/structured-log/src/types/structured-log.typings.js +0 -2
- package/es2015/structured-log/src/types/structured-log.typings.js.map +0 -1
- package/es2020/positions/src/types/positions.typings.js +0 -2
- package/es2020/positions/src/types/positions.typings.js.map +0 -1
- package/es2020/store/src/types/store.typings.js +0 -2
- package/es2020/store/src/types/store.typings.js.map +0 -1
- package/es2020/structured-log/src/types/structured-log.typings.js +0 -2
- package/es2020/structured-log/src/types/structured-log.typings.js.map +0 -1
- package/positions/src/types/positions.typings.d.ts.map +0 -1
- package/store/src/types/store.typings.d.ts +0 -4
- package/store/src/types/store.typings.d.ts.map +0 -1
- package/structured-log/src/types/structured-log.typings.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anglr/common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0-beta.20221026053714",
|
|
4
4
|
"description": "Angular module for common angular stuff",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -94,17 +94,17 @@
|
|
|
94
94
|
},
|
|
95
95
|
"homepage": "https://github.com/ressurectit/ng-common",
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"@angular/core": ">=14.
|
|
98
|
-
"@angular/common": ">=14.
|
|
99
|
-
"@angular/forms": ">=14.
|
|
100
|
-
"@angular/router": ">=14.
|
|
101
|
-
"@angular/platform-browser": ">=14.
|
|
102
|
-
"@angular/animations": ">=14.
|
|
103
|
-
"@angular/cdk": ">=14.
|
|
104
|
-
"@angular/material": ">=14.
|
|
97
|
+
"@angular/core": ">=14.2.0",
|
|
98
|
+
"@angular/common": ">=14.2.0",
|
|
99
|
+
"@angular/forms": ">=14.2.0",
|
|
100
|
+
"@angular/router": ">=14.2.0",
|
|
101
|
+
"@angular/platform-browser": ">=14.2.0",
|
|
102
|
+
"@angular/animations": ">=14.2.0",
|
|
103
|
+
"@angular/cdk": ">=14.2.0",
|
|
104
|
+
"@angular/material": ">=14.2.0",
|
|
105
105
|
"@anglr/animations": ">=9.1.0",
|
|
106
|
-
"rxjs": ">=
|
|
107
|
-
"@jscrpt/common": ">=
|
|
106
|
+
"rxjs": ">=7.5.7",
|
|
107
|
+
"@jscrpt/common": ">=3.2.0",
|
|
108
108
|
"numeral": "^2.0.6",
|
|
109
109
|
"angular2-hotkeys": "^13.1.0",
|
|
110
110
|
"store": "^2.0.12",
|
|
@@ -112,38 +112,38 @@
|
|
|
112
112
|
"moment": "^2.29.1",
|
|
113
113
|
"date-fns": "^2.27.0",
|
|
114
114
|
"positions": "^1.6.2",
|
|
115
|
-
"@floating-ui/dom": "^0.3
|
|
116
|
-
"tslib": "^2.
|
|
115
|
+
"@floating-ui/dom": "^1.0.3",
|
|
116
|
+
"tslib": "^2.4.0"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
|
-
"@angular/core": "^14.
|
|
120
|
-
"@angular/common": "^14.
|
|
121
|
-
"@angular/router": "^14.
|
|
122
|
-
"@angular/forms": "^14.
|
|
123
|
-
"@angular/platform-browser": "^14.
|
|
124
|
-
"@angular/animations": "^14.
|
|
125
|
-
"@angular/cdk": "^14.
|
|
126
|
-
"@angular/material": "^14.
|
|
119
|
+
"@angular/core": "^14.2.0",
|
|
120
|
+
"@angular/common": "^14.2.0",
|
|
121
|
+
"@angular/router": "^14.2.0",
|
|
122
|
+
"@angular/forms": "^14.2.0",
|
|
123
|
+
"@angular/platform-browser": "^14.2.0",
|
|
124
|
+
"@angular/animations": "^14.2.0",
|
|
125
|
+
"@angular/cdk": "^14.2.0",
|
|
126
|
+
"@angular/material": "^14.2.0",
|
|
127
127
|
"@anglr/animations": "^9.1.0",
|
|
128
|
-
"rxjs": "^
|
|
129
|
-
"@jscrpt/common": "^
|
|
128
|
+
"rxjs": "^7.5.7",
|
|
129
|
+
"@jscrpt/common": "^3.2.0",
|
|
130
130
|
"angular2-hotkeys": "^13.1.0",
|
|
131
131
|
"store": "^2.0.12",
|
|
132
132
|
"structured-log": "^0.2.0",
|
|
133
133
|
"moment": "^2.29.1",
|
|
134
134
|
"date-fns": "^2.27.0",
|
|
135
135
|
"positions": "^1.6.2",
|
|
136
|
-
"@floating-ui/dom": "^0.3
|
|
136
|
+
"@floating-ui/dom": "^1.0.3",
|
|
137
137
|
"@types/node": "^14.14.31",
|
|
138
138
|
"@types/numeral": "^2.0.2",
|
|
139
139
|
"@types/store": "^2.0.2",
|
|
140
140
|
"@types/mousetrap": "^1.6.8",
|
|
141
|
-
"@angular/compiler-cli": "^14.
|
|
142
|
-
"@angular/compiler": "^14.
|
|
143
|
-
"@angular/language-service": "^14.
|
|
141
|
+
"@angular/compiler-cli": "^14.2.0",
|
|
142
|
+
"@angular/compiler": "^14.2.0",
|
|
143
|
+
"@angular/language-service": "^14.2.0",
|
|
144
144
|
"@microsoft/api-extractor": "7.19.2",
|
|
145
145
|
"@microsoft/api-documenter": "7.13.77",
|
|
146
|
-
"tslib": "2.
|
|
146
|
+
"tslib": "2.4.0",
|
|
147
147
|
"eslint": "7.32.0",
|
|
148
148
|
"@typescript-eslint/eslint-plugin": "4.33.0",
|
|
149
149
|
"@typescript-eslint/parser": "4.33.0",
|
|
@@ -170,6 +170,9 @@
|
|
|
170
170
|
"./styles/*": {
|
|
171
171
|
"sass": "./styles/*.scss"
|
|
172
172
|
},
|
|
173
|
+
"./typings/*": {
|
|
174
|
+
"types": "./typings/*/index.d.ts"
|
|
175
|
+
},
|
|
173
176
|
".": {
|
|
174
177
|
"types": "./src/index.d.ts",
|
|
175
178
|
"esm2020": "./es2020/src/index.js",
|
|
@@ -1,43 +1,64 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
1
|
+
import { ElementRef, OnChanges, SimpleChanges, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Func1, NoopAction } from '@jscrpt/common';
|
|
3
|
+
import { Position, PositionPlacement, PositionOffsetString, PositionOffsets, PositionArguments, AutoUpdateOptions } from '../../../../services/position';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Sets position of attached element relative to provided element
|
|
6
7
|
*/
|
|
7
|
-
export declare class PositionToDirective implements OnChanges {
|
|
8
|
-
protected
|
|
9
|
-
protected
|
|
8
|
+
export declare class PositionToDirective implements OnChanges, OnDestroy {
|
|
9
|
+
protected target: ElementRef<HTMLElement>;
|
|
10
|
+
protected position: Position;
|
|
10
11
|
/**
|
|
11
12
|
* Position placement value
|
|
12
13
|
*/
|
|
13
|
-
protected
|
|
14
|
+
protected ɵPlacement: PositionPlacement | undefined | null;
|
|
14
15
|
/**
|
|
15
16
|
* Html element which is used as source for positioning
|
|
16
17
|
*/
|
|
17
|
-
protected
|
|
18
|
+
protected ɵSource: HTMLElement | undefined | null;
|
|
19
|
+
/**
|
|
20
|
+
* Method used for disposing auto positioning
|
|
21
|
+
*/
|
|
22
|
+
protected dispose: NoopAction | undefined | null;
|
|
18
23
|
/**
|
|
19
24
|
* Gets or sets html element which is used as source for positioning
|
|
20
25
|
*/
|
|
21
|
-
get source(): HTMLElement;
|
|
22
|
-
set source(value: HTMLElement);
|
|
26
|
+
get source(): HTMLElement | undefined | null;
|
|
27
|
+
set source(value: HTMLElement | undefined | null);
|
|
23
28
|
/**
|
|
24
29
|
* Gets or sets position placement value
|
|
25
30
|
*/
|
|
26
|
-
get placement(): PositionPlacement |
|
|
27
|
-
set placement(value: PositionPlacement |
|
|
31
|
+
get placement(): PositionPlacement | undefined | null;
|
|
32
|
+
set placement(value: PositionPlacement | undefined | null);
|
|
33
|
+
/**
|
|
34
|
+
* Offset which allows moving target element along the cross axis of placement, or any chosed direction
|
|
35
|
+
*/
|
|
36
|
+
offset: PositionOffsetString | number | PositionOffsets | Func1<number | PositionOffsets, PositionArguments>;
|
|
37
|
+
/**
|
|
38
|
+
* Indication whether set up 'auto updating' of position
|
|
39
|
+
*/
|
|
40
|
+
autoUpdate: boolean | AutoUpdateOptions;
|
|
28
41
|
/**
|
|
29
42
|
* Occurs when flip occurs during positioning
|
|
30
43
|
*/
|
|
31
44
|
flip: EventEmitter<void>;
|
|
32
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Occurs when element was positioned
|
|
47
|
+
*/
|
|
48
|
+
done: EventEmitter<void>;
|
|
49
|
+
constructor(target: ElementRef<HTMLElement>, position: Position);
|
|
33
50
|
/**
|
|
34
51
|
* Called when input value changes
|
|
35
52
|
*/
|
|
36
53
|
ngOnChanges(changes: SimpleChanges): void;
|
|
54
|
+
/**
|
|
55
|
+
* Called when component is destroyed
|
|
56
|
+
*/
|
|
57
|
+
ngOnDestroy(): void;
|
|
37
58
|
/**
|
|
38
59
|
* Applies position according to specified parameters to specified elements
|
|
39
60
|
*/
|
|
40
|
-
protected _applyPosition():
|
|
61
|
+
protected _applyPosition(): void;
|
|
41
62
|
/**
|
|
42
63
|
* Custom input type for `placement` input
|
|
43
64
|
*/
|
|
@@ -47,6 +68,6 @@ export declare class PositionToDirective implements OnChanges {
|
|
|
47
68
|
*/
|
|
48
69
|
static ngAcceptInputType_source: HTMLElement | ElementRef<HTMLElement>;
|
|
49
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<PositionToDirective, never>;
|
|
50
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PositionToDirective, "[positionTo]", never, { "source": "positionTo"; "placement": "placement"; }, { "flip": "flip"; }, never, never, false>;
|
|
71
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PositionToDirective, "[positionTo]", never, { "source": "positionTo"; "placement": "placement"; "offset": "offset"; "autoUpdate": "autoUpdate"; }, { "flip": "flip"; "done": "done"; }, never, never, false>;
|
|
51
72
|
}
|
|
52
73
|
//# sourceMappingURL=positionTo.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positionTo.directive.d.ts","sourceRoot":"","sources":["positionTo.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,SAAS,EAAE,aAAa,EAAkB,YAAY,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"positionTo.directive.d.ts","sourceRoot":"","sources":["positionTo.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,SAAS,EAAE,aAAa,EAAkB,YAAY,EAAE,SAAS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AAE,UAAU,CAAC,WAAW,CAAC,EACb,QAAQ,EAAE,QAAQ;IAM1D;;OAEG;IACI,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAYhD;;OAEG;IACI,WAAW,IAAI,IAAI;IAO1B;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,IAAI;IAyChC;;OAEG;IACH,OAAc,2BAA2B,EAAE,iBAAiB,GAAC,SAAS,GAAC,IAAI,GAAC,MAAM,OAAO,iBAAiB,CAAC;IAI3G;;OAEG;IACH,OAAc,wBAAwB,EAAE,WAAW,GAAC,UAAU,CAAC,WAAW,CAAC,CAAC;yCA9KnE,mBAAmB;2CAAnB,mBAAmB;CA+K/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progressInterceptor.d.ts","sourceRoot":"","sources":["progressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAC,MAAM,eAAe,CAAC;AACxD,OAAO,EAAC,SAAS,EAAE,eAAe,EAAE,WAAW,EAAoC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAC5H,OAAO,EAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"progressInterceptor.d.ts","sourceRoot":"","sources":["progressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAC,MAAM,eAAe,CAAC;AACxD,OAAO,EAAC,SAAS,EAAE,eAAe,EAAE,WAAW,EAAoC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAC5H,OAAO,EAAC,UAAU,EAAM,MAAM,MAAM,CAAC;AAErC,OAAO,EAAC,wBAAwB,EAAC,MAAM,uCAAuC,CAAC;;AAI/E;;GAEG;AACH,qBACa,mBAAoB,YAAW,eAAe;IAG3C,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,wBAAwB;IAM3D;;;;OAIG;IACI,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;yCAdrF,mBAAmB;6CAAnB,mBAAmB;CAqC/B;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,aAK3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.directive.d.ts","sourceRoot":"","sources":["tooltip.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAA2B,UAAU,EAAyC,QAAQ,EAAS,SAAS,EAAE,SAAS,EAAY,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACtN,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.directive.d.ts","sourceRoot":"","sources":["tooltip.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAA2B,UAAU,EAAyC,QAAQ,EAAS,SAAS,EAAE,SAAS,EAAY,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACtN,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAOvE,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAsB,QAAQ,EAA0D,MAAM,+BAA+B,CAAC;AACrI,OAAO,EAAC,wBAAwB,EAAC,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAC,sBAAsB,EAAC,MAAM,4CAA4C,CAAC;;AAsBlF;;GAEG;AACH,qBAIa,gBAAgB,CAAC,KAAK,GAAG,GAAG,CAAE,YAAW,SAAS,EAAE,SAAS;IA+F1D,SAAS,CAAC,iBAAiB,EAAE,gBAAgB;IAC7C,SAAS,CAAC,SAAS,EAAE,QAAQ;IAC7B,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IAC3C,SAAS,CAAC,iBAAiB,EAAE,gBAAgB;I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C;IAUlF;;OAEG;IACI,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAiBhD;;OAEG;IACI,WAAW,IAAI,IAAI;IAY1B;;;;OAIG;IAEI,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAoB1C;;;;OAIG;IAEI,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAmCzC;;;OAGG;IACH,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI;IAwBhD;;OAEG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;IAK9B;;OAEG;IACH,SAAS,CAAC,eAAe,IAAI,IAAI;IAsBjC;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,IAAI;IAqBhC;;OAEG;IACH,SAAS,CAAC,SAAS,IAAI,IAAI;IAsC3B;;OAEG;IACH,OAAc,yBAAyB,EAAE,GAAG,CAAC;yCAtVpC,gBAAgB;2CAAhB,gBAAgB;CAuV5B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Func1 } from '@jscrpt/common';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
3
|
+
import { PositionOffsetString, PositionPlacement } from './position.types';
|
|
3
4
|
/**
|
|
4
5
|
* Options for autoupdate specific functionality
|
|
5
6
|
*/
|
|
@@ -17,6 +18,53 @@ export interface AutoUpdateOptions {
|
|
|
17
18
|
*/
|
|
18
19
|
elementResize: boolean;
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Defines object which describes offsets for positioned element
|
|
23
|
+
*/
|
|
24
|
+
export interface PositionOffsets {
|
|
25
|
+
/**
|
|
26
|
+
* Distance between positioned and reference element.
|
|
27
|
+
*/
|
|
28
|
+
mainAxis?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Skidding between floating and reference element.
|
|
31
|
+
*/
|
|
32
|
+
crossAxis?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Works on the same axis as crossAxis but applies only to aligned placements and works logically. The offset is inverted for -end alignments.
|
|
35
|
+
*/
|
|
36
|
+
alignmentAxis?: number | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Stores positioned element and reference element
|
|
40
|
+
*/
|
|
41
|
+
export interface PositionElements<TElement extends Element = Element> {
|
|
42
|
+
/**
|
|
43
|
+
* Reference element against which is object positioned
|
|
44
|
+
*/
|
|
45
|
+
reference: TElement;
|
|
46
|
+
/**
|
|
47
|
+
* Element that is positioned
|
|
48
|
+
*/
|
|
49
|
+
floating: TElement;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Arguments that are passed during positioning
|
|
53
|
+
*/
|
|
54
|
+
export interface PositionArguments<TElement extends Element = Element> {
|
|
55
|
+
/**
|
|
56
|
+
* X coordinate of positioned element
|
|
57
|
+
*/
|
|
58
|
+
x: number;
|
|
59
|
+
/**
|
|
60
|
+
* Y coordinate of positioned element
|
|
61
|
+
*/
|
|
62
|
+
y: number;
|
|
63
|
+
/**
|
|
64
|
+
* Elements that are being used during positioning
|
|
65
|
+
*/
|
|
66
|
+
elements: PositionElements<TElement>;
|
|
67
|
+
}
|
|
20
68
|
/**
|
|
21
69
|
* Options that are passed to position service
|
|
22
70
|
*/
|
|
@@ -26,9 +74,9 @@ export interface PositionOptions {
|
|
|
26
74
|
*/
|
|
27
75
|
placement: PositionPlacement;
|
|
28
76
|
/**
|
|
29
|
-
* Offset which allows moving target element along the cross axis of placement
|
|
77
|
+
* Offset which allows moving target element along the cross axis of placement, or any chosed direction
|
|
30
78
|
*/
|
|
31
|
-
offset:
|
|
79
|
+
offset: PositionOffsetString | number | PositionOffsets | Func1<number | PositionOffsets, PositionArguments>;
|
|
32
80
|
/**
|
|
33
81
|
* Indication whether perform flip in case of collision (with view boundaries)
|
|
34
82
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.interface.d.ts","sourceRoot":"","sources":["position.interface.ts"],"names":[],"mappings":"AAAA,OAA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AAK,CAAC,MAAM,GAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;IAErG;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,OAAO,GAAC,iBAAiB,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,QAAQ,SAAS,OAAO,GAAG,GAAG;IAE1D;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IAIrB;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;CAClH"}
|
|
@@ -80,4 +80,8 @@ export declare enum PositionOffset {
|
|
|
80
80
|
*/
|
|
81
81
|
NegativeFull = 5
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Type that represents available names of position offset
|
|
85
|
+
*/
|
|
86
|
+
export declare type PositionOffsetString = keyof typeof PositionOffset;
|
|
83
87
|
//# sourceMappingURL=position.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.types.d.ts","sourceRoot":"","sources":["position.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,iBAAiB;IAEzB;;OAEG;IACH,GAAG,IAAA;IAEH;;OAEG;IACH,QAAQ,IAAA;IAER;;OAEG;IACH,MAAM,IAAA;IAEN;;OAEG;IACH,IAAI,IAAA;IAEJ;;OAEG;IACH,SAAS,IAAA;IAET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"version":3,"file":"restSink.service.d.ts","sourceRoot":"","sources":["restSink.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAgB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"restSink.service.d.ts","sourceRoot":"","sources":["restSink.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAgB,MAAM,gBAAgB,CAAC;AAI7D,OAAO,EAAC,qBAAqB,EAAC,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAC,gBAAgB,EAAU,MAAM,8BAA8B,CAAC;;AAEvE;;GAEG;AACH,qBACa,eAAgB,YAAW,IAAI;IAoB5B,OAAO,CAAC,UAAU;IAEU,OAAO,CAAC,WAAW;IAlB3D;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAAkB;IAE3C;;OAEG;IACH,OAAO,CAAC,KAAK,CAAiB;IAE9B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAwB;gBAGlB,UAAU,EAAE,qBAAqB,EACrB,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,EACP,WAAW,EAAE,gBAAgB;IAa7E;;OAEG;IACI,WAAW,IAAI,IAAI;IAY1B;;;OAGG;IACI,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI;IA+CrC;;OAEG;IACI,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IA0B7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;yCArIf,eAAe;6CAAf,eAAe;CA8I3B"}
|
|
@@ -1,24 +1,31 @@
|
|
|
1
|
+
export as namespace Positions;
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Coordinates for positioning target
|
|
3
5
|
*/
|
|
4
|
-
export interface PositionsCss
|
|
6
|
+
export interface PositionsCss
|
|
7
|
+
{
|
|
5
8
|
/**
|
|
6
9
|
* Top css property
|
|
7
10
|
*/
|
|
8
11
|
top?: number;
|
|
12
|
+
|
|
9
13
|
/**
|
|
10
14
|
* Left css property
|
|
11
15
|
*/
|
|
12
16
|
left?: number;
|
|
13
17
|
}
|
|
18
|
+
|
|
14
19
|
/**
|
|
15
20
|
* Posible coordinates
|
|
16
21
|
*/
|
|
17
|
-
export
|
|
22
|
+
export type PositionsCoordinates = 'top left'|'top center'|'top right'|'center left'|'center center'|'center right'|'bottom left'|'bottom center'|'bottom right';
|
|
23
|
+
|
|
18
24
|
/**
|
|
19
25
|
* Description of position function
|
|
20
26
|
*/
|
|
21
|
-
export interface PositionsFunc
|
|
27
|
+
export interface PositionsFunc
|
|
28
|
+
{
|
|
22
29
|
/**
|
|
23
30
|
* Computes positions for element relative to target
|
|
24
31
|
* @param element Element that will be positioned
|
|
@@ -28,6 +35,7 @@ export interface PositionsFunc {
|
|
|
28
35
|
*/
|
|
29
36
|
(element: HTMLElement, elementCoordinates: PositionsCoordinates, target: HTMLElement, targetCoordinates: PositionsCoordinates): PositionsCss;
|
|
30
37
|
}
|
|
38
|
+
|
|
31
39
|
declare const positions: PositionsFunc;
|
|
40
|
+
|
|
32
41
|
export default positions;
|
|
33
|
-
//# sourceMappingURL=positions.typings.d.ts.map
|
package/{structured-log/src/types/structured-log.typings.d.ts → typings/structured-log/index.d.ts}
RENAMED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export as namespace StructuredLog;
|
|
2
|
+
|
|
3
|
+
export declare class BatchedSink implements Sink
|
|
4
|
+
{
|
|
2
5
|
protected durableStorageKey: string;
|
|
3
6
|
protected options: BatchedSinkOptions;
|
|
4
7
|
protected innerSink: Sink;
|
|
@@ -13,6 +16,7 @@ export declare class BatchedSink implements Sink {
|
|
|
13
16
|
protected cycleBatch(): void;
|
|
14
17
|
private storeEvents;
|
|
15
18
|
}
|
|
19
|
+
|
|
16
20
|
export declare interface BatchedSinkOptions {
|
|
17
21
|
/**
|
|
18
22
|
* Maximum number of events to be sent in a single batch.
|
|
@@ -27,7 +31,9 @@ export declare interface BatchedSinkOptions {
|
|
|
27
31
|
*/
|
|
28
32
|
durableStore?: Storage;
|
|
29
33
|
}
|
|
34
|
+
|
|
30
35
|
export declare function configure(): LoggerConfiguration;
|
|
36
|
+
|
|
31
37
|
export declare interface ConsoleProxy {
|
|
32
38
|
error(message?: any, ...properties: any[]): any;
|
|
33
39
|
warn(message?: any, ...properties: any[]): any;
|
|
@@ -35,7 +41,9 @@ export declare interface ConsoleProxy {
|
|
|
35
41
|
debug(message?: any, ...properties: any[]): any;
|
|
36
42
|
log(message?: any, ...properties: any[]): any;
|
|
37
43
|
}
|
|
38
|
-
|
|
44
|
+
|
|
45
|
+
export declare class ConsoleSink implements Sink
|
|
46
|
+
{
|
|
39
47
|
private options;
|
|
40
48
|
private console;
|
|
41
49
|
constructor(options?: ConsoleSinkOptions);
|
|
@@ -43,17 +51,21 @@ export declare class ConsoleSink implements Sink {
|
|
|
43
51
|
flush(): Promise<{}>;
|
|
44
52
|
private writeToConsole;
|
|
45
53
|
}
|
|
54
|
+
|
|
46
55
|
export declare interface ConsoleSinkOptions {
|
|
47
56
|
console?: any;
|
|
48
57
|
includeTimestamps?: boolean;
|
|
49
58
|
includeProperties?: boolean;
|
|
50
59
|
restrictedToMinimumLevel?: LogEventLevel;
|
|
51
60
|
}
|
|
61
|
+
|
|
52
62
|
export declare const defaultBatchedSinkOptions: BatchedSinkOptions;
|
|
63
|
+
|
|
53
64
|
/**
|
|
54
65
|
* Allows dynamic control of the logging level.
|
|
55
66
|
*/
|
|
56
|
-
export declare class DynamicLevelSwitch implements LogEventLevelSwitch<Promise<any>>
|
|
67
|
+
export declare class DynamicLevelSwitch implements LogEventLevelSwitch<Promise<any>>
|
|
68
|
+
{
|
|
57
69
|
private minLevel;
|
|
58
70
|
/**
|
|
59
71
|
* Gets or sets a delegate that can be called when the pipeline needs to be flushed.
|
|
@@ -69,7 +81,9 @@ export declare class DynamicLevelSwitch implements LogEventLevelSwitch<Promise<a
|
|
|
69
81
|
off(): Promise<LogEventLevel>;
|
|
70
82
|
isEnabled(level: LogEventLevel): boolean;
|
|
71
83
|
}
|
|
72
|
-
|
|
84
|
+
|
|
85
|
+
export declare class DynamicLevelSwitchStage extends FilterStage
|
|
86
|
+
{
|
|
73
87
|
private dynamicLevelSwitch;
|
|
74
88
|
/**
|
|
75
89
|
* Sets a delegate that can be called when the pipeline needs to be flushed.
|
|
@@ -77,18 +91,23 @@ export declare class DynamicLevelSwitchStage extends FilterStage {
|
|
|
77
91
|
setFlushDelegate(flushDelegate: () => Promise<any>): void;
|
|
78
92
|
constructor(dynamicLevelSwitch: DynamicLevelSwitch);
|
|
79
93
|
}
|
|
80
|
-
|
|
94
|
+
|
|
95
|
+
export declare class EnrichStage implements PipelineStage
|
|
96
|
+
{
|
|
81
97
|
private enricher;
|
|
82
98
|
constructor(enricher: Object | ObjectFactory);
|
|
83
99
|
emit(events: LogEvent[]): LogEvent[];
|
|
84
100
|
flush(): Promise<any>;
|
|
85
101
|
}
|
|
86
|
-
|
|
102
|
+
|
|
103
|
+
export declare class FilterStage implements PipelineStage
|
|
104
|
+
{
|
|
87
105
|
private predicate;
|
|
88
106
|
constructor(predicate: (e: LogEvent) => boolean);
|
|
89
107
|
emit(events: LogEvent[]): LogEvent[];
|
|
90
108
|
flush(): Promise<any>;
|
|
91
109
|
}
|
|
110
|
+
|
|
92
111
|
/**
|
|
93
112
|
* Checks if a log event level includes the target log event level.
|
|
94
113
|
* @param {LogEventLevel} level The level to check.
|
|
@@ -96,10 +115,12 @@ export declare class FilterStage implements PipelineStage {
|
|
|
96
115
|
* @returns True if the checked level contains the target level, or if the checked level is undefined.
|
|
97
116
|
*/
|
|
98
117
|
export declare function isEnabled(level: LogEventLevel, target: LogEventLevel): boolean;
|
|
118
|
+
|
|
99
119
|
/**
|
|
100
120
|
* Represents a log event.
|
|
101
121
|
*/
|
|
102
|
-
export declare class LogEvent
|
|
122
|
+
export declare class LogEvent
|
|
123
|
+
{
|
|
103
124
|
/**
|
|
104
125
|
* Creates a new log event instance.
|
|
105
126
|
*/
|
|
@@ -126,6 +147,7 @@ export declare class LogEvent {
|
|
|
126
147
|
*/
|
|
127
148
|
error: Error;
|
|
128
149
|
}
|
|
150
|
+
|
|
129
151
|
/**
|
|
130
152
|
* Represents the severity level of a log event.
|
|
131
153
|
*/
|
|
@@ -138,6 +160,7 @@ export declare enum LogEventLevel {
|
|
|
138
160
|
debug = 31,
|
|
139
161
|
verbose = 63
|
|
140
162
|
}
|
|
163
|
+
|
|
141
164
|
/**
|
|
142
165
|
* Represents an object that can switch between log levels.
|
|
143
166
|
*/
|
|
@@ -149,10 +172,12 @@ export declare interface LogEventLevelSwitch<T> {
|
|
|
149
172
|
debug(): T;
|
|
150
173
|
verbose(): T;
|
|
151
174
|
}
|
|
175
|
+
|
|
152
176
|
/**
|
|
153
177
|
* Logs events.
|
|
154
178
|
*/
|
|
155
|
-
export declare class Logger implements Sink
|
|
179
|
+
export declare class Logger implements Sink
|
|
180
|
+
{
|
|
156
181
|
private pipeline;
|
|
157
182
|
suppressErrors: boolean;
|
|
158
183
|
/**
|
|
@@ -248,10 +273,12 @@ export declare class Logger implements Sink {
|
|
|
248
273
|
emit(events: LogEvent[]): LogEvent[];
|
|
249
274
|
private write;
|
|
250
275
|
}
|
|
276
|
+
|
|
251
277
|
/**
|
|
252
278
|
* Configures pipelines for new logger instances.
|
|
253
279
|
*/
|
|
254
|
-
export declare class LoggerConfiguration
|
|
280
|
+
export declare class LoggerConfiguration
|
|
281
|
+
{
|
|
255
282
|
private pipeline;
|
|
256
283
|
private _suppressErrors;
|
|
257
284
|
constructor();
|
|
@@ -282,10 +309,12 @@ export declare class LoggerConfiguration {
|
|
|
282
309
|
*/
|
|
283
310
|
create(): Logger;
|
|
284
311
|
}
|
|
312
|
+
|
|
285
313
|
/**
|
|
286
314
|
* Represents a message template that can be rendered into a log message.
|
|
287
315
|
*/
|
|
288
|
-
export declare class MessageTemplate
|
|
316
|
+
export declare class MessageTemplate
|
|
317
|
+
{
|
|
289
318
|
/**
|
|
290
319
|
* Gets or sets the raw message template of this instance.
|
|
291
320
|
*/
|
|
@@ -311,11 +340,15 @@ export declare class MessageTemplate {
|
|
|
311
340
|
private toText;
|
|
312
341
|
private capture;
|
|
313
342
|
}
|
|
343
|
+
|
|
314
344
|
export declare interface MinLevel extends LogEventLevelSwitch<LoggerConfiguration> {
|
|
315
345
|
(levelOrSwitch: LogEventLevel | string | number | DynamicLevelSwitch): LoggerConfiguration;
|
|
316
346
|
}
|
|
347
|
+
|
|
317
348
|
export declare type ObjectFactory = (properties?: Object) => Object;
|
|
318
|
-
|
|
349
|
+
|
|
350
|
+
export declare class Pipeline
|
|
351
|
+
{
|
|
319
352
|
private stages;
|
|
320
353
|
private eventQueue;
|
|
321
354
|
private flushInProgress;
|
|
@@ -338,18 +371,21 @@ export declare class Pipeline {
|
|
|
338
371
|
*/
|
|
339
372
|
flush(): Promise<any>;
|
|
340
373
|
}
|
|
374
|
+
|
|
341
375
|
export declare interface PipelineStage {
|
|
342
376
|
emit(events: LogEvent[]): LogEvent[];
|
|
343
377
|
flush(): Promise<any>;
|
|
344
378
|
}
|
|
379
|
+
|
|
345
380
|
export declare interface Sink {
|
|
346
381
|
emit(events: LogEvent[]): any;
|
|
347
382
|
flush(): Promise<any>;
|
|
348
383
|
}
|
|
349
|
-
|
|
384
|
+
|
|
385
|
+
export declare class SinkStage implements PipelineStage
|
|
386
|
+
{
|
|
350
387
|
private sink;
|
|
351
388
|
constructor(sink: Sink);
|
|
352
389
|
emit(events: LogEvent[]): LogEvent[];
|
|
353
390
|
flush(): Promise<any>;
|
|
354
391
|
}
|
|
355
|
-
//# sourceMappingURL=structured-log.typings.d.ts.map
|
package/version.bak
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
15.0.0-beta.20221026053714
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"positions.typings.js","sourceRoot":"","sources":["../../../../positions/src/types/positions.typings.ts"],"names":[],"mappings":"AAsCA,eAAe,SAAS,CAAC","sourcesContent":["/**\n * Coordinates for positioning target\n */\nexport interface PositionsCss\n{\n /**\n * Top css property\n */\n top?: number;\n\n /**\n * Left css property\n */\n left?: number;\n}\n\n/**\n * Posible coordinates\n */\nexport type PositionsCoordinates = 'top left'|'top center'|'top right'|'center left'|'center center'|'center right'|'bottom left'|'bottom center'|'bottom right';\n\n/**\n * Description of position function\n */\nexport interface PositionsFunc\n{\n /**\n * Computes positions for element relative to target\n * @param element Element that will be positioned\n * @param elementCoordinates Relative coordinates of element\n * @param target Target element which will be element positioned against\n * @param targetCoordinates Relative coordinates of target element\n */\n (element: HTMLElement, elementCoordinates: PositionsCoordinates, target: HTMLElement, targetCoordinates: PositionsCoordinates): PositionsCss;\n}\n\ndeclare const positions: PositionsFunc;\n\nexport default positions;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.typings.js","sourceRoot":"","sources":["../../../../store/src/types/store.typings.ts"],"names":[],"mappings":"","sourcesContent":["interface StoreJsAPI \n{\n // expirePlugin\n set(key: string, value: any, expiration: number): any;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"structured-log.typings.js","sourceRoot":"","sources":["../../../../structured-log/src/types/structured-log.typings.ts"],"names":[],"mappings":"","sourcesContent":["\nexport declare class BatchedSink implements Sink \n{\n protected durableStorageKey: string;\n protected options: BatchedSinkOptions;\n protected innerSink: Sink;\n protected batchedEvents: LogEvent[];\n private batchTimeout;\n private batchKey;\n constructor(innerSink?: Sink, options?: BatchedSinkOptions);\n emit(events: LogEvent[]): LogEvent[];\n flush(): Promise<any>;\n protected emitCore(events: LogEvent[]): any;\n protected flushCore(): Promise<any>;\n protected cycleBatch(): void;\n private storeEvents;\n}\n\nexport declare interface BatchedSinkOptions {\n /**\n * Maximum number of events to be sent in a single batch.\n */\n maxSize?: number;\n /**\n * Number of seconds to wait between checking for batches.\n */\n period?: number;\n /**\n * {Storage} instance to be used for durable storage of log events.\n */\n durableStore?: Storage;\n}\n\nexport declare function configure(): LoggerConfiguration;\n\nexport declare interface ConsoleProxy {\n error(message?: any, ...properties: any[]): any;\n warn(message?: any, ...properties: any[]): any;\n info(message?: any, ...properties: any[]): any;\n debug(message?: any, ...properties: any[]): any;\n log(message?: any, ...properties: any[]): any;\n}\n\nexport declare class ConsoleSink implements Sink \n{\n private options;\n private console;\n constructor(options?: ConsoleSinkOptions);\n emit(events: LogEvent[]): void;\n flush(): Promise<{}>;\n private writeToConsole;\n}\n\nexport declare interface ConsoleSinkOptions {\n console?: any;\n includeTimestamps?: boolean;\n includeProperties?: boolean;\n restrictedToMinimumLevel?: LogEventLevel;\n}\n\nexport declare const defaultBatchedSinkOptions: BatchedSinkOptions;\n\n/**\n * Allows dynamic control of the logging level.\n */\nexport declare class DynamicLevelSwitch implements LogEventLevelSwitch<Promise<any>> \n{\n private minLevel;\n /**\n * Gets or sets a delegate that can be called when the pipeline needs to be flushed.\n * This should generally not be modified, as it will be provided by the pipeline stage.\n */\n flushDelegate: () => Promise<any>;\n fatal(): Promise<LogEventLevel>;\n error(): Promise<LogEventLevel>;\n warning(): Promise<LogEventLevel>;\n information(): Promise<LogEventLevel>;\n debug(): Promise<LogEventLevel>;\n verbose(): Promise<LogEventLevel>;\n off(): Promise<LogEventLevel>;\n isEnabled(level: LogEventLevel): boolean;\n}\n\nexport declare class DynamicLevelSwitchStage extends FilterStage \n{\n private dynamicLevelSwitch;\n /**\n * Sets a delegate that can be called when the pipeline needs to be flushed.\n */\n setFlushDelegate(flushDelegate: () => Promise<any>): void;\n constructor(dynamicLevelSwitch: DynamicLevelSwitch);\n}\n\nexport declare class EnrichStage implements PipelineStage \n{\n private enricher;\n constructor(enricher: Object | ObjectFactory);\n emit(events: LogEvent[]): LogEvent[];\n flush(): Promise<any>;\n}\n\nexport declare class FilterStage implements PipelineStage \n{\n private predicate;\n constructor(predicate: (e: LogEvent) => boolean);\n emit(events: LogEvent[]): LogEvent[];\n flush(): Promise<any>;\n}\n\n/**\n * Checks if a log event level includes the target log event level.\n * @param {LogEventLevel} level The level to check.\n * @param {LogEventLevel} target The target level.\n * @returns True if the checked level contains the target level, or if the checked level is undefined.\n */\nexport declare function isEnabled(level: LogEventLevel, target: LogEventLevel): boolean;\n\n/**\n * Represents a log event.\n */\nexport declare class LogEvent \n{\n /**\n * Creates a new log event instance.\n */\n constructor(timestamp: string, level: LogEventLevel, messageTemplate: MessageTemplate, properties?: Object, error?: Error);\n /**\n * Gets or sets an ISO 8601-formatted date string for when this event occurred.\n * @example YYYY-MM-DDTHH:mm:ss.sssZ\n */\n timestamp: string;\n /**\n * Gets or sets the severity level of this event.\n */\n level: LogEventLevel;\n /**\n * Gets or sets the message template instance of this event.\n */\n messageTemplate: MessageTemplate;\n /**\n * Gets or sets an object containing the captured properties of this event.\n */\n properties: Object;\n /**\n * Gets or sets an error associated with this event.\n */\n error: Error;\n}\n\n/**\n * Represents the severity level of a log event.\n */\nexport declare enum LogEventLevel {\n off = 0,\n fatal = 1,\n error = 3,\n warning = 7,\n information = 15,\n debug = 31,\n verbose = 63\n}\n\n/**\n * Represents an object that can switch between log levels.\n */\nexport declare interface LogEventLevelSwitch<T> {\n fatal(): T;\n error(): T;\n warning(): T;\n information(): T;\n debug(): T;\n verbose(): T;\n}\n\n/**\n * Logs events.\n */\nexport declare class Logger implements Sink \n{\n private pipeline;\n suppressErrors: boolean;\n /**\n * Creates a new logger instance using the specified pipeline.\n */\n constructor(pipeline: Pipeline, suppressErrors?: boolean);\n /**\n * Logs an event with the {LogEventLevel.fatal} severity.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n fatal(messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.fatal} severity.\n * @param {Error} error Error for the log event.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n fatal(error: Error, messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.error} severity.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n error(messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.error} severity.\n * @param {Error} error Error for the log event.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n error(error: Error, messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.warning} severity.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n warn(messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.warning} severity.\n * @param {Error} error Error for the log event.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n warn(error: Error, messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.information} severity.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n info(messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.information} severity.\n * @param {Error} error Error for the log event.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n info(error: Error, messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.debug} severity.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n debug(messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.debug} severity.\n * @param {Error} error Error for the log event.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n debug(error: Error, messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.verbose} severity.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n verbose(messageTemplate: string, ...properties: any[]): any;\n /**\n * Logs an event with the {LogEventLevel.verbose} severity.\n * @param {Error} error Error for the log event.\n * @param {string} messageTemplate Message template for the log event.\n * @param {any[]} properties Properties that can be used to render the message template.\n */\n verbose(error: Error, messageTemplate: string, ...properties: any[]): any;\n /**\n * Flushes the pipeline of this logger.\n * @returns A {Promise<any>} that will resolve when the pipeline has been flushed.\n */\n flush(): Promise<any>;\n /**\n * Emits events through this logger's pipeline.\n */\n emit(events: LogEvent[]): LogEvent[];\n private write;\n}\n\n/**\n * Configures pipelines for new logger instances.\n */\nexport declare class LoggerConfiguration \n{\n private pipeline;\n private _suppressErrors;\n constructor();\n /**\n * Adds a sink to the pipeline.\n * @param {Sink} sink The sink to add.\n */\n writeTo(sink: Sink): LoggerConfiguration;\n /**\n * Sets the minimum level for any subsequent stages in the pipeline.\n */\n minLevel: MinLevel;\n /**\n * Adds a filter to the pipeline.\n * @param {(e: LogEvent) => boolean} predicate Filter predicate to use.\n */\n filter(predicate: (e: LogEvent) => boolean): LoggerConfiguration;\n /**\n * Adds an enricher to the pipeline.\n */\n enrich(enricher: Object | ObjectFactory): LoggerConfiguration;\n /**\n * Enable or disable error suppression.\n */\n suppressErrors(suppress?: boolean): LoggerConfiguration;\n /**\n * Creates a new logger instance based on this configuration.\n */\n create(): Logger;\n}\n\n/**\n * Represents a message template that can be rendered into a log message.\n */\nexport declare class MessageTemplate \n{\n /**\n * Gets or sets the raw message template of this instance.\n */\n raw: string;\n private tokens;\n /**\n * Creates a new MessageTemplate instance with the given template.\n */\n constructor(messageTemplate: string);\n /**\n * Renders this template using the given properties.\n * @param {Object} properties Object containing the properties.\n * @returns Rendered message.\n */\n render(properties?: Object): string;\n /**\n * Binds the given set of args to their matching tokens.\n * @param {any} positionalArgs Arguments.\n * @returns Object containing the properties.\n */\n bindProperties(positionalArgs: any): Object;\n private tokenize;\n private toText;\n private capture;\n}\n\nexport declare interface MinLevel extends LogEventLevelSwitch<LoggerConfiguration> {\n (levelOrSwitch: LogEventLevel | string | number | DynamicLevelSwitch): LoggerConfiguration;\n}\n\nexport declare type ObjectFactory = (properties?: Object) => Object;\n\nexport declare class Pipeline \n{\n private stages;\n private eventQueue;\n private flushInProgress;\n private flushPromise;\n constructor();\n /**\n * Adds a stage to the end of the pipeline.\n * @param {PipelineStage} stage The pipeline stage to add.\n */\n addStage(stage: PipelineStage): void;\n /**\n * Emits events through the pipeline. If a flush is currently in progress, the events will be queued and will been\n * sent through the pipeline once the flush is complete.\n * @param {LogEvent[]} events The events to emit.\n */\n emit(events: LogEvent[]): Promise<any>;\n /**\n * Flushes events through the pipeline.\n * @returns A {Promise<any>} that resolves when all events have been flushed and the pipeline can accept new events.\n */\n flush(): Promise<any>;\n}\n\nexport declare interface PipelineStage {\n emit(events: LogEvent[]): LogEvent[];\n flush(): Promise<any>;\n}\n\nexport declare interface Sink {\n emit(events: LogEvent[]): any;\n flush(): Promise<any>;\n}\n\nexport declare class SinkStage implements PipelineStage \n{\n private sink;\n constructor(sink: Sink);\n emit(events: LogEvent[]): LogEvent[];\n flush(): Promise<any>;\n}\n"]}
|