@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,324 +0,0 @@
|
|
|
1
|
-
import { ApplicationRef } from '@angular/core';
|
|
2
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import { ComponentFactoryResolver } from '@angular/core';
|
|
4
|
-
import { ComponentRef } from '@angular/core';
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
|
-
import * as i0 from '@angular/core';
|
|
8
|
-
import * as i3 from '@angular/common';
|
|
9
|
-
import { InjectionToken } from '@angular/core';
|
|
10
|
-
import { Injector } from '@angular/core';
|
|
11
|
-
import { OnChanges } from '@angular/core';
|
|
12
|
-
import { OnDestroy } from '@angular/core';
|
|
13
|
-
import type { PositionsCoordinates } from 'positions';
|
|
14
|
-
import { SimpleChanges } from '@angular/core';
|
|
15
|
-
import { TemplateRef } from '@angular/core';
|
|
16
|
-
import { Type } from '@angular/core';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Available flip directions
|
|
20
|
-
*/
|
|
21
|
-
export declare type FLIP_DIRECTION = 'vertical' | 'horizontal' | 'verticalOriginal' | 'horizontalOriginal';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Function to be called when flip occurs
|
|
25
|
-
*/
|
|
26
|
-
export declare interface FlipCallback {
|
|
27
|
-
(direction: FLIP_DIRECTION): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare namespace i1 {
|
|
31
|
-
export {
|
|
32
|
-
PositionToDirective
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare namespace i1_2 {
|
|
37
|
-
export {
|
|
38
|
-
TooltipDirective
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare namespace i2 {
|
|
43
|
-
export {
|
|
44
|
-
TooltipComponent
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Module for position to directive
|
|
50
|
-
*/
|
|
51
|
-
export declare class PositionsModule {
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PositionsModule, never>;
|
|
53
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PositionsModule, [typeof i1.PositionToDirective], never, [typeof i1.PositionToDirective]>;
|
|
54
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PositionsModule>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Computes and applies position for element relative to target, if there is collision it automatically flips
|
|
59
|
-
* @param element - Element that will be positioned
|
|
60
|
-
* @param elementCoordinates - Relative coordinates of element
|
|
61
|
-
* @param target - Target element which will be element positioned against
|
|
62
|
-
* @param targetCoordinates - Relative coordinates of target element
|
|
63
|
-
* @param htmlDocument - HTML document instance
|
|
64
|
-
* @param flipCallback - Callback called when flip occured during positioning
|
|
65
|
-
*/
|
|
66
|
-
export declare function positionsWithFlip(element: HTMLElement, elementCoordinates: PositionsCoordinates, target: HTMLElement, targetCoordinates: PositionsCoordinates, htmlDocument?: Document, flipCallback?: FlipCallback): void;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Sets position of attached element relative to provided element
|
|
70
|
-
*/
|
|
71
|
-
export declare class PositionToDirective implements OnChanges {
|
|
72
|
-
private _element;
|
|
73
|
-
private _document;
|
|
74
|
-
/**
|
|
75
|
-
* Html element which is used as target for positioning against it
|
|
76
|
-
*/
|
|
77
|
-
target: HTMLElement;
|
|
78
|
-
/**
|
|
79
|
-
* Relative coordinates of element
|
|
80
|
-
*/
|
|
81
|
-
elementCoordinates: PositionsCoordinates;
|
|
82
|
-
/**
|
|
83
|
-
* Relative coordinates of target element
|
|
84
|
-
*/
|
|
85
|
-
targetCoordinates: PositionsCoordinates;
|
|
86
|
-
/**
|
|
87
|
-
* Occurs when flip occurs during positioning
|
|
88
|
-
*/
|
|
89
|
-
flip: EventEmitter<void>;
|
|
90
|
-
constructor(_element: ElementRef<HTMLElement>, _document: Document);
|
|
91
|
-
/**
|
|
92
|
-
* Called when input value changes
|
|
93
|
-
*/
|
|
94
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
95
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PositionToDirective, never>;
|
|
96
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PositionToDirective, "[positionTo]", never, { "target": "positionTo"; "elementCoordinates": "elementCoordinates"; "targetCoordinates": "targetCoordinates"; }, { "flip": "flip"; }, never>;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Injection token used for injecting tooltip options
|
|
101
|
-
*/
|
|
102
|
-
export declare const TOOLTIP_OPTIONS: InjectionToken<TooltipOptions>;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Component used for displaying tooltip content
|
|
106
|
-
*/
|
|
107
|
-
export declare class TooltipComponent<TData = any> implements TooltipRenderer<TData> {
|
|
108
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
109
|
-
protected _element: ElementRef<HTMLElement>;
|
|
110
|
-
/**
|
|
111
|
-
* Called when mouse enter tooltip component, hover
|
|
112
|
-
*/
|
|
113
|
-
protected _enterFn: () => void;
|
|
114
|
-
/**
|
|
115
|
-
* Called when mouse leaves tooltip component
|
|
116
|
-
*/
|
|
117
|
-
protected _leaveFn: () => void;
|
|
118
|
-
/**
|
|
119
|
-
* Data that are rendered in tooltip
|
|
120
|
-
*/
|
|
121
|
-
data: TData | null;
|
|
122
|
-
/**
|
|
123
|
-
* Template used for rendering tooltip
|
|
124
|
-
*/
|
|
125
|
-
template: TemplateRef<TData> | null;
|
|
126
|
-
/**
|
|
127
|
-
* Indication whether are html tags allowed in tooltip text
|
|
128
|
-
*/
|
|
129
|
-
allowHtml: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Css class that is applied to tooltip renderer component
|
|
132
|
-
*/
|
|
133
|
-
cssClass: string | null;
|
|
134
|
-
|
|
135
|
-
constructor(_changeDetector: ChangeDetectorRef, _element: ElementRef<HTMLElement>);
|
|
136
|
-
/**
|
|
137
|
-
* Registers handlers that allows reaction to entering or leaving tooltip
|
|
138
|
-
* @param enter - Called when mouse enter tooltip component, hover
|
|
139
|
-
* @param leave - Called when mouse leaves tooltip component
|
|
140
|
-
*/
|
|
141
|
-
registerHoverEvents(enter: () => void, leave: () => void): void;
|
|
142
|
-
/**
|
|
143
|
-
* Explicitly runs invalidation of content (change detection)
|
|
144
|
-
*/
|
|
145
|
-
invalidateVisuals(): void;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent<any>, never>;
|
|
149
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent<any>, "tooltip-popup", never, {}, {}, never, never>;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Directive used for rendering tooltip
|
|
154
|
-
*/
|
|
155
|
-
export declare class TooltipDirective<TData = any> implements OnChanges, OnDestroy {
|
|
156
|
-
protected _componentFactoryResolver: ComponentFactoryResolver;
|
|
157
|
-
protected _appRef: ApplicationRef;
|
|
158
|
-
protected _injector: Injector;
|
|
159
|
-
protected _element: ElementRef<HTMLElement>;
|
|
160
|
-
/**
|
|
161
|
-
* Instance of component used for rendering tooltip
|
|
162
|
-
*/
|
|
163
|
-
protected _tooltipComponent?: ComponentRef<TooltipRenderer>;
|
|
164
|
-
/**
|
|
165
|
-
* Instance of HTML element for tooltip renderer
|
|
166
|
-
*/
|
|
167
|
-
protected _tooltipElement?: HTMLElement;
|
|
168
|
-
/**
|
|
169
|
-
* Instance of options provided for this tooltip
|
|
170
|
-
*/
|
|
171
|
-
protected _options: TooltipOptions;
|
|
172
|
-
/**
|
|
173
|
-
* Indication whether there is active show tooltip request
|
|
174
|
-
*/
|
|
175
|
-
protected _showRequest: boolean;
|
|
176
|
-
/**
|
|
177
|
-
* Indication whether keep open tooltip component
|
|
178
|
-
*/
|
|
179
|
-
protected _keepOpen: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* Timeout that is used for handling mouse move
|
|
182
|
-
*/
|
|
183
|
-
protected _timeout: number | null;
|
|
184
|
-
/**
|
|
185
|
-
* Tooltip text that is displayed, or any data that could be passed to template
|
|
186
|
-
*/
|
|
187
|
-
tooltip?: TData | string;
|
|
188
|
-
/**
|
|
189
|
-
* Indication whether are html tags allowed in tooltip text
|
|
190
|
-
*/
|
|
191
|
-
allowHtml: boolean;
|
|
192
|
-
/**
|
|
193
|
-
* Instance of tooltip template that is used for rendering
|
|
194
|
-
*/
|
|
195
|
-
tooltipTemplate?: TemplateRef<any>;
|
|
196
|
-
/**
|
|
197
|
-
* Options used for displaying tooltip
|
|
198
|
-
*/
|
|
199
|
-
get tooltipOptions(): TooltipOptions;
|
|
200
|
-
set tooltipOptions(value: TooltipOptions);
|
|
201
|
-
/**
|
|
202
|
-
* Gets or sets indication whether is tooltip visible, if has boolean value, mouse events cant override this
|
|
203
|
-
*/
|
|
204
|
-
tooltipVisible?: boolean;
|
|
205
|
-
/**
|
|
206
|
-
* Instance of template from element content, used for rendering
|
|
207
|
-
*/
|
|
208
|
-
tooltipTemplateChild?: TemplateRef<any>;
|
|
209
|
-
constructor(_componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _element: ElementRef<HTMLElement>, options: TooltipOptions);
|
|
210
|
-
/**
|
|
211
|
-
* Called when input value changes
|
|
212
|
-
*/
|
|
213
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
214
|
-
/**
|
|
215
|
-
* Called when component is destroyed
|
|
216
|
-
*/
|
|
217
|
-
ngOnDestroy(): void;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Shows tooltip
|
|
222
|
-
* @param xCoordinate - X coordinate of mouse event in viewport
|
|
223
|
-
*/
|
|
224
|
-
protected _showTooltip(xCoordinate?: number): void;
|
|
225
|
-
/**
|
|
226
|
-
* Hides tooltip
|
|
227
|
-
*/
|
|
228
|
-
protected _hideTooltip(): void;
|
|
229
|
-
/**
|
|
230
|
-
* Destroys tooltip component
|
|
231
|
-
*/
|
|
232
|
-
protected _destroyTooltip(): void;
|
|
233
|
-
/**
|
|
234
|
-
* Creates tooltip renderer component
|
|
235
|
-
*/
|
|
236
|
-
protected _createTooltip(): void;
|
|
237
|
-
/**
|
|
238
|
-
* Sets data to tooltip component and shows them
|
|
239
|
-
*/
|
|
240
|
-
protected _showData(): void;
|
|
241
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective<any>, [null, null, null, null, { optional: true; }]>;
|
|
242
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective<any>, "[tooltip]", never, { "tooltip": "tooltip"; "allowHtml": "allowHtml"; "tooltipTemplate": "tooltipTemplate"; "tooltipOptions": "tooltipOptions"; "tooltipVisible": "tooltipVisible"; }, {}, ["tooltipTemplateChild"]>;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* Module for rendering tooltips
|
|
247
|
-
*/
|
|
248
|
-
export declare class TooltipModule {
|
|
249
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
|
|
250
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof i1_2.TooltipDirective, typeof i2.TooltipComponent], [typeof i3.CommonModule], [typeof i1_2.TooltipDirective]>;
|
|
251
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Options used for tooltip directive
|
|
256
|
-
*/
|
|
257
|
-
export declare interface TooltipOptions {
|
|
258
|
-
/**
|
|
259
|
-
* Delay for displaying of tooltip on hover
|
|
260
|
-
*/
|
|
261
|
-
delay?: number;
|
|
262
|
-
/**
|
|
263
|
-
* Indication whether is tooltip displayed at fixed position, or if it is displayed where cursor enters element
|
|
264
|
-
*/
|
|
265
|
-
fixedPosition?: boolean;
|
|
266
|
-
/**
|
|
267
|
-
* Position where should be tooltip displayed at element
|
|
268
|
-
*/
|
|
269
|
-
elementPositionAt?: PositionsCoordinates;
|
|
270
|
-
/**
|
|
271
|
-
* Position of tooltip where should placed at
|
|
272
|
-
*/
|
|
273
|
-
tooltipPosition?: PositionsCoordinates;
|
|
274
|
-
/**
|
|
275
|
-
* Allows selection of text in tooltip
|
|
276
|
-
*/
|
|
277
|
-
allowSelection?: boolean | null;
|
|
278
|
-
/**
|
|
279
|
-
* Css class that is applied to tooltip renderer component
|
|
280
|
-
*/
|
|
281
|
-
tooltipCssClass?: string | null;
|
|
282
|
-
/**
|
|
283
|
-
* Indication whether stop propagation of "hover" event
|
|
284
|
-
*/
|
|
285
|
-
stopPropagation?: boolean | null;
|
|
286
|
-
/**
|
|
287
|
-
* Type of tooltip renderer that is used for rendering tooltip
|
|
288
|
-
*/
|
|
289
|
-
tooltipRenderer?: Type<TooltipRenderer>;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Represents component that is used for rendering tooltip
|
|
294
|
-
*/
|
|
295
|
-
export declare interface TooltipRenderer<TData = any> {
|
|
296
|
-
/**
|
|
297
|
-
* Data that are rendered in tooltip
|
|
298
|
-
*/
|
|
299
|
-
data: TData | null;
|
|
300
|
-
/**
|
|
301
|
-
* Template used for rendering tooltip
|
|
302
|
-
*/
|
|
303
|
-
template: TemplateRef<TData> | null;
|
|
304
|
-
/**
|
|
305
|
-
* Indication whether are html tags allowed in tooltip text
|
|
306
|
-
*/
|
|
307
|
-
allowHtml: boolean;
|
|
308
|
-
/**
|
|
309
|
-
* Css class that is applied to tooltip renderer component
|
|
310
|
-
*/
|
|
311
|
-
cssClass: string | null;
|
|
312
|
-
/**
|
|
313
|
-
* Registers handlers that allows reaction to entering or leaving tooltip
|
|
314
|
-
* @param enter - Called when mouse enter tooltip component, hover
|
|
315
|
-
* @param leave - Called when mouse leaves tooltip component
|
|
316
|
-
*/
|
|
317
|
-
registerHoverEvents(enter: () => void, leave: () => void): void;
|
|
318
|
-
/**
|
|
319
|
-
* Explicitly runs invalidation of content (change detection)
|
|
320
|
-
*/
|
|
321
|
-
invalidateVisuals(): void;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export { }
|
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { ApplicationRef } from '@angular/core';
|
|
2
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import { ComponentFactoryResolver } from '@angular/core';
|
|
4
|
-
import { ComponentRef } from '@angular/core';
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
|
-
import * as i0 from '@angular/core';
|
|
8
|
-
import * as i3 from '@angular/common';
|
|
9
|
-
import { InjectionToken } from '@angular/core';
|
|
10
|
-
import { Injector } from '@angular/core';
|
|
11
|
-
import { OnChanges } from '@angular/core';
|
|
12
|
-
import { OnDestroy } from '@angular/core';
|
|
13
|
-
import type { PositionsCoordinates } from 'positions';
|
|
14
|
-
import { SimpleChanges } from '@angular/core';
|
|
15
|
-
import { TemplateRef } from '@angular/core';
|
|
16
|
-
import { Type } from '@angular/core';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Available flip directions
|
|
20
|
-
*/
|
|
21
|
-
export declare type FLIP_DIRECTION = 'vertical' | 'horizontal' | 'verticalOriginal' | 'horizontalOriginal';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Function to be called when flip occurs
|
|
25
|
-
*/
|
|
26
|
-
export declare interface FlipCallback {
|
|
27
|
-
(direction: FLIP_DIRECTION): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare namespace i1 {
|
|
31
|
-
export {
|
|
32
|
-
PositionToDirective
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare namespace i1_2 {
|
|
37
|
-
export {
|
|
38
|
-
TooltipDirective
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare namespace i2 {
|
|
43
|
-
export {
|
|
44
|
-
TooltipComponent
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Module for position to directive
|
|
50
|
-
*/
|
|
51
|
-
export declare class PositionsModule {
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PositionsModule, never>;
|
|
53
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PositionsModule, [typeof i1.PositionToDirective], never, [typeof i1.PositionToDirective]>;
|
|
54
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PositionsModule>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Computes and applies position for element relative to target, if there is collision it automatically flips
|
|
59
|
-
* @param element - Element that will be positioned
|
|
60
|
-
* @param elementCoordinates - Relative coordinates of element
|
|
61
|
-
* @param target - Target element which will be element positioned against
|
|
62
|
-
* @param targetCoordinates - Relative coordinates of target element
|
|
63
|
-
* @param htmlDocument - HTML document instance
|
|
64
|
-
* @param flipCallback - Callback called when flip occured during positioning
|
|
65
|
-
*/
|
|
66
|
-
export declare function positionsWithFlip(element: HTMLElement, elementCoordinates: PositionsCoordinates, target: HTMLElement, targetCoordinates: PositionsCoordinates, htmlDocument?: Document, flipCallback?: FlipCallback): void;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Sets position of attached element relative to provided element
|
|
70
|
-
*/
|
|
71
|
-
export declare class PositionToDirective implements OnChanges {
|
|
72
|
-
private _element;
|
|
73
|
-
private _document;
|
|
74
|
-
/**
|
|
75
|
-
* Html element which is used as target for positioning against it
|
|
76
|
-
*/
|
|
77
|
-
target: HTMLElement;
|
|
78
|
-
/**
|
|
79
|
-
* Relative coordinates of element
|
|
80
|
-
*/
|
|
81
|
-
elementCoordinates: PositionsCoordinates;
|
|
82
|
-
/**
|
|
83
|
-
* Relative coordinates of target element
|
|
84
|
-
*/
|
|
85
|
-
targetCoordinates: PositionsCoordinates;
|
|
86
|
-
/**
|
|
87
|
-
* Occurs when flip occurs during positioning
|
|
88
|
-
*/
|
|
89
|
-
flip: EventEmitter<void>;
|
|
90
|
-
constructor(_element: ElementRef<HTMLElement>, _document: Document);
|
|
91
|
-
/**
|
|
92
|
-
* Called when input value changes
|
|
93
|
-
*/
|
|
94
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
95
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PositionToDirective, never>;
|
|
96
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PositionToDirective, "[positionTo]", never, { "target": "positionTo"; "elementCoordinates": "elementCoordinates"; "targetCoordinates": "targetCoordinates"; }, { "flip": "flip"; }, never>;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Injection token used for injecting tooltip options
|
|
101
|
-
*/
|
|
102
|
-
export declare const TOOLTIP_OPTIONS: InjectionToken<TooltipOptions>;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Component used for displaying tooltip content
|
|
106
|
-
*/
|
|
107
|
-
export declare class TooltipComponent<TData = any> implements TooltipRenderer<TData> {
|
|
108
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
109
|
-
protected _element: ElementRef<HTMLElement>;
|
|
110
|
-
/**
|
|
111
|
-
* Called when mouse enter tooltip component, hover
|
|
112
|
-
*/
|
|
113
|
-
protected _enterFn: () => void;
|
|
114
|
-
/**
|
|
115
|
-
* Called when mouse leaves tooltip component
|
|
116
|
-
*/
|
|
117
|
-
protected _leaveFn: () => void;
|
|
118
|
-
/**
|
|
119
|
-
* Data that are rendered in tooltip
|
|
120
|
-
*/
|
|
121
|
-
data: TData | null;
|
|
122
|
-
/**
|
|
123
|
-
* Template used for rendering tooltip
|
|
124
|
-
*/
|
|
125
|
-
template: TemplateRef<TData> | null;
|
|
126
|
-
/**
|
|
127
|
-
* Indication whether are html tags allowed in tooltip text
|
|
128
|
-
*/
|
|
129
|
-
allowHtml: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Css class that is applied to tooltip renderer component
|
|
132
|
-
*/
|
|
133
|
-
cssClass: string | null;
|
|
134
|
-
/**
|
|
135
|
-
* Attach fade in/out animation to element
|
|
136
|
-
* @internal
|
|
137
|
-
*/
|
|
138
|
-
animation: boolean;
|
|
139
|
-
constructor(_changeDetector: ChangeDetectorRef, _element: ElementRef<HTMLElement>);
|
|
140
|
-
/**
|
|
141
|
-
* Registers handlers that allows reaction to entering or leaving tooltip
|
|
142
|
-
* @param enter - Called when mouse enter tooltip component, hover
|
|
143
|
-
* @param leave - Called when mouse leaves tooltip component
|
|
144
|
-
*/
|
|
145
|
-
registerHoverEvents(enter: () => void, leave: () => void): void;
|
|
146
|
-
/**
|
|
147
|
-
* Explicitly runs invalidation of content (change detection)
|
|
148
|
-
*/
|
|
149
|
-
invalidateVisuals(): void;
|
|
150
|
-
/**
|
|
151
|
-
* Handles mouse enter event over tooltip
|
|
152
|
-
* @internal
|
|
153
|
-
*/
|
|
154
|
-
mouseEnter(): void;
|
|
155
|
-
/**
|
|
156
|
-
* Handles mouse leave event over tooltip
|
|
157
|
-
* @internal
|
|
158
|
-
*/
|
|
159
|
-
mouseLeave(): void;
|
|
160
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent<any>, never>;
|
|
161
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent<any>, "tooltip-popup", never, {}, {}, never, never>;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Directive used for rendering tooltip
|
|
166
|
-
*/
|
|
167
|
-
export declare class TooltipDirective<TData = any> implements OnChanges, OnDestroy {
|
|
168
|
-
protected _componentFactoryResolver: ComponentFactoryResolver;
|
|
169
|
-
protected _appRef: ApplicationRef;
|
|
170
|
-
protected _injector: Injector;
|
|
171
|
-
protected _element: ElementRef<HTMLElement>;
|
|
172
|
-
/**
|
|
173
|
-
* Instance of component used for rendering tooltip
|
|
174
|
-
*/
|
|
175
|
-
protected _tooltipComponent?: ComponentRef<TooltipRenderer>;
|
|
176
|
-
/**
|
|
177
|
-
* Instance of HTML element for tooltip renderer
|
|
178
|
-
*/
|
|
179
|
-
protected _tooltipElement?: HTMLElement;
|
|
180
|
-
/**
|
|
181
|
-
* Instance of options provided for this tooltip
|
|
182
|
-
*/
|
|
183
|
-
protected _options: TooltipOptions;
|
|
184
|
-
/**
|
|
185
|
-
* Indication whether there is active show tooltip request
|
|
186
|
-
*/
|
|
187
|
-
protected _showRequest: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Indication whether keep open tooltip component
|
|
190
|
-
*/
|
|
191
|
-
protected _keepOpen: boolean;
|
|
192
|
-
/**
|
|
193
|
-
* Timeout that is used for handling mouse move
|
|
194
|
-
*/
|
|
195
|
-
protected _timeout: number | null;
|
|
196
|
-
/**
|
|
197
|
-
* Tooltip text that is displayed, or any data that could be passed to template
|
|
198
|
-
*/
|
|
199
|
-
tooltip?: TData | string;
|
|
200
|
-
/**
|
|
201
|
-
* Indication whether are html tags allowed in tooltip text
|
|
202
|
-
*/
|
|
203
|
-
allowHtml: boolean;
|
|
204
|
-
/**
|
|
205
|
-
* Instance of tooltip template that is used for rendering
|
|
206
|
-
*/
|
|
207
|
-
tooltipTemplate?: TemplateRef<any>;
|
|
208
|
-
/**
|
|
209
|
-
* Options used for displaying tooltip
|
|
210
|
-
*/
|
|
211
|
-
get tooltipOptions(): TooltipOptions;
|
|
212
|
-
set tooltipOptions(value: TooltipOptions);
|
|
213
|
-
/**
|
|
214
|
-
* Gets or sets indication whether is tooltip visible, if has boolean value, mouse events cant override this
|
|
215
|
-
*/
|
|
216
|
-
tooltipVisible?: boolean;
|
|
217
|
-
/**
|
|
218
|
-
* Instance of template from element content, used for rendering
|
|
219
|
-
*/
|
|
220
|
-
tooltipTemplateChild?: TemplateRef<any>;
|
|
221
|
-
constructor(_componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _element: ElementRef<HTMLElement>, options: TooltipOptions);
|
|
222
|
-
/**
|
|
223
|
-
* Called when input value changes
|
|
224
|
-
*/
|
|
225
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
226
|
-
/**
|
|
227
|
-
* Called when component is destroyed
|
|
228
|
-
*/
|
|
229
|
-
ngOnDestroy(): void;
|
|
230
|
-
/**
|
|
231
|
-
* Handles mouse leave event, hover ends
|
|
232
|
-
* @param event - Mouse event that occured
|
|
233
|
-
* @internal
|
|
234
|
-
*/
|
|
235
|
-
mouseLeave(event: MouseEvent): void;
|
|
236
|
-
/**
|
|
237
|
-
* Handles mouse move event, displaying tooltip
|
|
238
|
-
* @param event - Mouse event that occured
|
|
239
|
-
* @internal
|
|
240
|
-
*/
|
|
241
|
-
mouseMove(event: MouseEvent): void;
|
|
242
|
-
/**
|
|
243
|
-
* Shows tooltip
|
|
244
|
-
* @param xCoordinate - X coordinate of mouse event in viewport
|
|
245
|
-
*/
|
|
246
|
-
protected _showTooltip(xCoordinate?: number): void;
|
|
247
|
-
/**
|
|
248
|
-
* Hides tooltip
|
|
249
|
-
*/
|
|
250
|
-
protected _hideTooltip(): void;
|
|
251
|
-
/**
|
|
252
|
-
* Destroys tooltip component
|
|
253
|
-
*/
|
|
254
|
-
protected _destroyTooltip(): void;
|
|
255
|
-
/**
|
|
256
|
-
* Creates tooltip renderer component
|
|
257
|
-
*/
|
|
258
|
-
protected _createTooltip(): void;
|
|
259
|
-
/**
|
|
260
|
-
* Sets data to tooltip component and shows them
|
|
261
|
-
*/
|
|
262
|
-
protected _showData(): void;
|
|
263
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective<any>, [null, null, null, null, { optional: true; }]>;
|
|
264
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective<any>, "[tooltip]", never, { "tooltip": "tooltip"; "allowHtml": "allowHtml"; "tooltipTemplate": "tooltipTemplate"; "tooltipOptions": "tooltipOptions"; "tooltipVisible": "tooltipVisible"; }, {}, ["tooltipTemplateChild"]>;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Module for rendering tooltips
|
|
269
|
-
*/
|
|
270
|
-
export declare class TooltipModule {
|
|
271
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
|
|
272
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof i1_2.TooltipDirective, typeof i2.TooltipComponent], [typeof i3.CommonModule], [typeof i1_2.TooltipDirective]>;
|
|
273
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Options used for tooltip directive
|
|
278
|
-
*/
|
|
279
|
-
export declare interface TooltipOptions {
|
|
280
|
-
/**
|
|
281
|
-
* Delay for displaying of tooltip on hover
|
|
282
|
-
*/
|
|
283
|
-
delay?: number;
|
|
284
|
-
/**
|
|
285
|
-
* Indication whether is tooltip displayed at fixed position, or if it is displayed where cursor enters element
|
|
286
|
-
*/
|
|
287
|
-
fixedPosition?: boolean;
|
|
288
|
-
/**
|
|
289
|
-
* Position where should be tooltip displayed at element
|
|
290
|
-
*/
|
|
291
|
-
elementPositionAt?: PositionsCoordinates;
|
|
292
|
-
/**
|
|
293
|
-
* Position of tooltip where should placed at
|
|
294
|
-
*/
|
|
295
|
-
tooltipPosition?: PositionsCoordinates;
|
|
296
|
-
/**
|
|
297
|
-
* Allows selection of text in tooltip
|
|
298
|
-
*/
|
|
299
|
-
allowSelection?: boolean | null;
|
|
300
|
-
/**
|
|
301
|
-
* Css class that is applied to tooltip renderer component
|
|
302
|
-
*/
|
|
303
|
-
tooltipCssClass?: string | null;
|
|
304
|
-
/**
|
|
305
|
-
* Indication whether stop propagation of "hover" event
|
|
306
|
-
*/
|
|
307
|
-
stopPropagation?: boolean | null;
|
|
308
|
-
/**
|
|
309
|
-
* Type of tooltip renderer that is used for rendering tooltip
|
|
310
|
-
*/
|
|
311
|
-
tooltipRenderer?: Type<TooltipRenderer>;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Represents component that is used for rendering tooltip
|
|
316
|
-
*/
|
|
317
|
-
export declare interface TooltipRenderer<TData = any> {
|
|
318
|
-
/**
|
|
319
|
-
* Data that are rendered in tooltip
|
|
320
|
-
*/
|
|
321
|
-
data: TData | null;
|
|
322
|
-
/**
|
|
323
|
-
* Template used for rendering tooltip
|
|
324
|
-
*/
|
|
325
|
-
template: TemplateRef<TData> | null;
|
|
326
|
-
/**
|
|
327
|
-
* Indication whether are html tags allowed in tooltip text
|
|
328
|
-
*/
|
|
329
|
-
allowHtml: boolean;
|
|
330
|
-
/**
|
|
331
|
-
* Css class that is applied to tooltip renderer component
|
|
332
|
-
*/
|
|
333
|
-
cssClass: string | null;
|
|
334
|
-
/**
|
|
335
|
-
* Registers handlers that allows reaction to entering or leaving tooltip
|
|
336
|
-
* @param enter - Called when mouse enter tooltip component, hover
|
|
337
|
-
* @param leave - Called when mouse leaves tooltip component
|
|
338
|
-
*/
|
|
339
|
-
registerHoverEvents(enter: () => void, leave: () => void): void;
|
|
340
|
-
/**
|
|
341
|
-
* Explicitly runs invalidation of content (change detection)
|
|
342
|
-
*/
|
|
343
|
-
invalidateVisuals(): void;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
export { }
|