@anglr/common 11.2.0-beta.20220301111415 → 11.3.0-beta.20220302063757

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/changelog.md +37 -0
  2. package/es2015/src/index.js +1 -0
  3. package/es2015/src/index.js.map +1 -1
  4. package/es2015/src/modules/tooltip/components/index.js +2 -0
  5. package/es2015/src/modules/tooltip/components/index.js.map +1 -0
  6. package/es2015/src/modules/tooltip/components/tooltip/tooltip.component.js +102 -0
  7. package/es2015/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -0
  8. package/es2015/src/modules/tooltip/directives/index.js +3 -0
  9. package/es2015/src/modules/tooltip/directives/index.js.map +1 -0
  10. package/es2015/src/modules/tooltip/directives/tooltip/tooltip.directive.js +248 -0
  11. package/es2015/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -0
  12. package/es2015/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +20 -0
  13. package/es2015/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js.map +1 -0
  14. package/es2015/src/modules/tooltip/index.js +6 -0
  15. package/es2015/src/modules/tooltip/index.js.map +1 -0
  16. package/es2015/src/modules/tooltip/misc/tokens.js +6 -0
  17. package/es2015/src/modules/tooltip/misc/tokens.js.map +1 -0
  18. package/es2015/src/modules/tooltip/misc/tooltip.interface.js +2 -0
  19. package/es2015/src/modules/tooltip/misc/tooltip.interface.js.map +1 -0
  20. package/es2015/src/modules/tooltip/modules/index.js +2 -0
  21. package/es2015/src/modules/tooltip/modules/index.js.map +1 -0
  22. package/es2015/src/modules/tooltip/modules/tooltip.module.js +36 -0
  23. package/es2015/src/modules/tooltip/modules/tooltip.module.js.map +1 -0
  24. package/es2020/src/index.js +1 -0
  25. package/es2020/src/index.js.map +1 -1
  26. package/es2020/src/modules/tooltip/components/index.js +2 -0
  27. package/es2020/src/modules/tooltip/components/index.js.map +1 -0
  28. package/es2020/src/modules/tooltip/components/tooltip/tooltip.component.js +102 -0
  29. package/es2020/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -0
  30. package/es2020/src/modules/tooltip/directives/index.js +3 -0
  31. package/es2020/src/modules/tooltip/directives/index.js.map +1 -0
  32. package/es2020/src/modules/tooltip/directives/tooltip/tooltip.directive.js +247 -0
  33. package/es2020/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -0
  34. package/es2020/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +20 -0
  35. package/es2020/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js.map +1 -0
  36. package/es2020/src/modules/tooltip/index.js +6 -0
  37. package/es2020/src/modules/tooltip/index.js.map +1 -0
  38. package/es2020/src/modules/tooltip/misc/tokens.js +6 -0
  39. package/es2020/src/modules/tooltip/misc/tokens.js.map +1 -0
  40. package/es2020/src/modules/tooltip/misc/tooltip.interface.js +2 -0
  41. package/es2020/src/modules/tooltip/misc/tooltip.interface.js.map +1 -0
  42. package/es2020/src/modules/tooltip/modules/index.js +2 -0
  43. package/es2020/src/modules/tooltip/modules/index.js.map +1 -0
  44. package/es2020/src/modules/tooltip/modules/tooltip.module.js +36 -0
  45. package/es2020/src/modules/tooltip/modules/tooltip.module.js.map +1 -0
  46. package/package.json +1 -1
  47. package/src/index.d.ts +1 -0
  48. package/src/index.d.ts.map +1 -1
  49. package/src/modules/tooltip/components/index.d.ts +2 -0
  50. package/src/modules/tooltip/components/index.d.ts.map +1 -0
  51. package/src/modules/tooltip/components/tooltip/tooltip.component.css +10 -0
  52. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts +63 -0
  53. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts.map +1 -0
  54. package/src/modules/tooltip/components/tooltip/tooltip.component.html +6 -0
  55. package/src/modules/tooltip/directives/index.d.ts +3 -0
  56. package/src/modules/tooltip/directives/index.d.ts.map +1 -0
  57. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts +113 -0
  58. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts.map +1 -0
  59. package/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.d.ts +12 -0
  60. package/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.d.ts.map +1 -0
  61. package/src/modules/tooltip/index.d.ts +6 -0
  62. package/src/modules/tooltip/index.d.ts.map +1 -0
  63. package/src/modules/tooltip/misc/tokens.d.ts +7 -0
  64. package/src/modules/tooltip/misc/tokens.d.ts.map +1 -0
  65. package/src/modules/tooltip/misc/tooltip.interface.d.ts +63 -0
  66. package/src/modules/tooltip/misc/tooltip.interface.d.ts.map +1 -0
  67. package/src/modules/tooltip/modules/index.d.ts +2 -0
  68. package/src/modules/tooltip/modules/index.d.ts.map +1 -0
  69. package/src/modules/tooltip/modules/tooltip.module.d.ts +14 -0
  70. package/src/modules/tooltip/modules/tooltip.module.d.ts.map +1 -0
  71. package/version.bak +1 -1
@@ -0,0 +1,63 @@
1
+ import { TemplateRef, ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { TooltipRenderer } from '../../misc/tooltip.interface';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Component used for displaying tooltip content
6
+ */
7
+ export declare class TooltipComponent<TData = any> implements TooltipRenderer<TData> {
8
+ protected _changeDetector: ChangeDetectorRef;
9
+ protected _element: ElementRef<HTMLElement>;
10
+ /**
11
+ * Called when mouse enter tooltip component, hover
12
+ */
13
+ protected _enterFn: () => void;
14
+ /**
15
+ * Called when mouse leaves tooltip component
16
+ */
17
+ protected _leaveFn: () => void;
18
+ /**
19
+ * Data that are rendered in tooltip
20
+ */
21
+ data: TData | null | undefined;
22
+ /**
23
+ * Template used for rendering tooltip
24
+ */
25
+ template: TemplateRef<TData> | null | undefined;
26
+ /**
27
+ * Indication whether are html tags allowed in tooltip text
28
+ */
29
+ allowHtml: boolean;
30
+ /**
31
+ * Css class that is applied to tooltip renderer component
32
+ */
33
+ cssClass: string | null | undefined;
34
+ /**
35
+ * Attach fade in/out animation to element
36
+ * @internal
37
+ */
38
+ animation: boolean;
39
+ constructor(_changeDetector: ChangeDetectorRef, _element: ElementRef<HTMLElement>);
40
+ /**
41
+ * Registers handlers that allows reaction to entering or leaving tooltip
42
+ * @param enter - Called when mouse enter tooltip component, hover
43
+ * @param leave - Called when mouse leaves tooltip component
44
+ */
45
+ registerHoverEvents(enter: () => void, leave: () => void): void;
46
+ /**
47
+ * Explicitly runs invalidation of content (change detection)
48
+ */
49
+ invalidateVisuals(): void;
50
+ /**
51
+ * Handles mouse enter event over tooltip
52
+ * @internal
53
+ */
54
+ mouseEnter(): void;
55
+ /**
56
+ * Handles mouse leave event over tooltip
57
+ * @internal
58
+ */
59
+ mouseLeave(): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent<any>, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent<any>, "tooltip-popup", never, {}, {}, never, never>;
62
+ }
63
+ //# sourceMappingURL=tooltip.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.component.d.ts","sourceRoot":"","sources":["tooltip.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,WAAW,EAAE,iBAAiB,EAAe,UAAU,EAAe,MAAM,eAAe,CAAC;AAIxI,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;;AAE7D;;GAEG;AACH,qBAqBa,gBAAgB,CAAC,KAAK,GAAG,GAAG,CAAE,YAAW,eAAe,CAAC,KAAK,CAAC;IA8C5D,SAAS,CAAC,eAAe,EAAE,iBAAiB;IAC5C,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IA3CvD;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAc;IAE5C;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAc;IAI5C;;OAEG;IACI,IAAI,EAAE,KAAK,GAAC,IAAI,GAAC,SAAS,CAAC;IAElC;;OAEG;IACI,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,GAAC,IAAI,GAAC,SAAS,CAAC;IAEnD;;OAEG;IACI,SAAS,EAAE,OAAO,CAAS;IAElC;;OAEG;IACI,QAAQ,EAAE,MAAM,GAAC,IAAI,GAAC,SAAS,CAAC;IAIvC;;;OAGG;IAEI,SAAS,EAAE,OAAO,CAAQ;gBAGX,eAAe,EAAE,iBAAiB,EAClC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IAMvD;;;;OAIG;IACI,mBAAmB,CAAC,KAAK,EAAE,MAAM,IAAI,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,IAAI;IAMtE;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAYhC;;;OAGG;IAEI,UAAU,IAAI,IAAI;IAKzB;;;OAGG;IAEI,UAAU,IAAI,IAAI;yCA9FhB,gBAAgB;2CAAhB,gBAAgB;CAkG5B"}
@@ -0,0 +1,6 @@
1
+ <div *ngIf="!template && !allowHtml">{{data}}</div>
2
+ <div *ngIf="!template && allowHtml" [innerHTML]="data"></div>
3
+
4
+ <ng-template [ngIf]="template">
5
+ <ng-container *ngTemplateOutlet="template; context: {$implicit: data}"></ng-container>
6
+ </ng-template>
@@ -0,0 +1,3 @@
1
+ export * from './tooltip/tooltip.directive';
2
+ export * from './tooltipTemplate/tooltipTemplate.directive';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC"}
@@ -0,0 +1,113 @@
1
+ import { ComponentRef, ElementRef, Injector, OnChanges, OnDestroy, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { TooltipOptions, TooltipRenderer } from '../../misc/tooltip.interface';
3
+ import { Position } from '../../../../services/position';
4
+ import { TooltipTemplateDirective } from '../tooltipTemplate/tooltipTemplate.directive';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Directive used for rendering tooltip
8
+ */
9
+ export declare class TooltipDirective<TData = any> implements OnChanges, OnDestroy {
10
+ protected _viewContainerRef: ViewContainerRef;
11
+ protected _injector: Injector;
12
+ protected _element: ElementRef<HTMLElement>;
13
+ protected _document: Document;
14
+ protected _position: Position;
15
+ /**
16
+ * Instance of component used for rendering tooltip
17
+ */
18
+ protected _tooltipComponent?: ComponentRef<TooltipRenderer<TData>>;
19
+ /**
20
+ * Instance of HTML element for tooltip renderer
21
+ */
22
+ protected _tooltipElement?: HTMLElement;
23
+ /**
24
+ * Instance of options provided for this tooltip
25
+ */
26
+ protected _options: TooltipOptions;
27
+ /**
28
+ * Indication whether there is active show tooltip request
29
+ */
30
+ protected _showRequest: boolean;
31
+ /**
32
+ * Indication whether keep open tooltip component
33
+ */
34
+ protected _keepOpen: boolean;
35
+ /**
36
+ * Timeout that is used for handling mouse move
37
+ */
38
+ protected _timeout: number | null;
39
+ /**
40
+ * Tooltip text that is displayed, or any data that could be passed to template
41
+ */
42
+ tooltip?: TData;
43
+ /**
44
+ * Indication whether are html tags allowed in tooltip text
45
+ */
46
+ allowHtml: boolean;
47
+ /**
48
+ * Instance of tooltip template that is used for rendering
49
+ */
50
+ tooltipTemplate?: TemplateRef<TData>;
51
+ /**
52
+ * Options used for displaying tooltip
53
+ */
54
+ get tooltipOptions(): Partial<TooltipOptions>;
55
+ set tooltipOptions(value: Partial<TooltipOptions>);
56
+ /**
57
+ * Gets or sets indication whether is tooltip visible, if has boolean value, mouse events cant override this
58
+ */
59
+ tooltipVisible?: boolean;
60
+ /**
61
+ * Instance of template from element content, used for rendering
62
+ */
63
+ tooltipTemplateChild?: TooltipTemplateDirective;
64
+ constructor(_viewContainerRef: ViewContainerRef, _injector: Injector, _element: ElementRef<HTMLElement>, _document: Document, _position: Position, options?: Partial<TooltipOptions>);
65
+ /**
66
+ * Called when input value changes
67
+ */
68
+ ngOnChanges(changes: SimpleChanges): void;
69
+ /**
70
+ * Called when component is destroyed
71
+ */
72
+ ngOnDestroy(): void;
73
+ /**
74
+ * Handles mouse leave event, hover ends
75
+ * @param event - Mouse event that occured
76
+ * @internal
77
+ */
78
+ mouseLeave(event: MouseEvent): void;
79
+ /**
80
+ * Handles mouse move event, displaying tooltip
81
+ * @param event - Mouse event that occured
82
+ * @internal
83
+ */
84
+ mouseMove(event: MouseEvent): void;
85
+ /**
86
+ * Shows tooltip
87
+ * @param event - Mouse event
88
+ */
89
+ protected _showTooltip(event?: MouseEvent): void;
90
+ /**
91
+ * Hides tooltip
92
+ */
93
+ protected _hideTooltip(): void;
94
+ /**
95
+ * Destroys tooltip component
96
+ */
97
+ protected _destroyTooltip(): void;
98
+ /**
99
+ * Creates tooltip renderer component
100
+ */
101
+ protected _createTooltip(): void;
102
+ /**
103
+ * Sets data to tooltip component and shows them
104
+ */
105
+ protected _showData(): void;
106
+ /**
107
+ * Custom input type for `tooltip` input
108
+ */
109
+ static ngAcceptInputType_tooltip: any;
110
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective<any>, [null, null, null, null, null, { optional: true; }]>;
111
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective<any>, "[tooltip]", never, { "tooltip": "tooltip"; "allowHtml": "allowHtml"; "tooltipTemplate": "tooltipTemplate"; "tooltipOptions": "tooltipOptions"; "tooltipVisible": "tooltipVisible"; }, {}, ["tooltipTemplateChild"]>;
112
+ }
113
+ //# sourceMappingURL=tooltip.directive.d.ts.map
@@ -0,0 +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;AAKtN,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAsB,QAAQ,EAAoC,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EAAC,wBAAwB,EAAC,MAAM,8CAA8C,CAAC;;AAoBtF;;GAEG;AACH,qBAIa,gBAAgB,CAAC,KAAK,GAAG,GAAG,CAAE,YAAW,SAAS,EAAE,SAAS;IAkF1D,SAAS,CAAC,iBAAiB,EAAE,gBAAgB;IAC7C,SAAS,CAAC,SAAS,EAAE,QAAQ;IAC7B,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IACzB,SAAS,CAAC,SAAS,EAAE,QAAQ;IAC7B,SAAS,CAAC,SAAS,EAAE,QAAQ;IAlF3D;;OAEG;IACH,SAAS,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IAEnE;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,EAAE,WAAW,CAAC;IAExC;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,cAAc,CAAC;IAEnC;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,OAAO,CAAS;IAExC;;OAEG;IACH,SAAS,CAAC,SAAS,EAAE,OAAO,CAAS;IAErC;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAC,IAAI,CAAQ;IAIvC;;OAEG;IAEI,OAAO,CAAC,EAAE,KAAK,CAAC;IAEvB;;OAEG;IAEI,SAAS,EAAE,OAAO,CAAS;IAElC;;OAEG;IAEI,eAAe,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAE5C;;OAEG;IACH,IACW,cAAc,IAAI,OAAO,CAAC,cAAc,CAAC,CAGnD;IACD,IAAW,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,cAAc,CAAC,EAGvD;IAED;;OAEG;IAEI,cAAc,CAAC,EAAE,OAAO,CAAC;IAIhC;;OAEG;IAEI,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;gBAGjC,iBAAiB,EAAE,gBAAgB,EACnC,SAAS,EAAE,QAAQ,EACnB,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC,EACf,SAAS,EAAE,QAAQ,EACnB,SAAS,EAAE,QAAQ,EACV,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC;IAOlF;;OAEG;IACI,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAiBhD;;OAEG;IACI,WAAW,IAAI,IAAI;IAO1B;;;;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;IAyBhD;;OAEG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;IAK9B;;OAEG;IACH,SAAS,CAAC,eAAe,IAAI,IAAI;IAUjC;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,IAAI;IAoBhC;;OAEG;IACH,SAAS,CAAC,SAAS,IAAI,IAAI;IAsC3B;;OAEG;IACH,OAAc,yBAAyB,EAAE,GAAG,CAAC;yCApTpC,gBAAgB;2CAAhB,gBAAgB;CAqT5B"}
@@ -0,0 +1,12 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Directive used for obtaining custom tooltip template
5
+ */
6
+ export declare class TooltipTemplateDirective<TData = any> {
7
+ template: TemplateRef<TData>;
8
+ constructor(template: TemplateRef<TData>);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipTemplateDirective<any>, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipTemplateDirective<any>, "[tooltipTemplate]", never, {}, {}, never>;
11
+ }
12
+ //# sourceMappingURL=tooltipTemplate.directive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltipTemplate.directive.d.ts","sourceRoot":"","sources":["tooltipTemplate.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAC,MAAM,eAAe,CAAC;;AAErD;;GAEG;AACH,qBAIa,wBAAwB,CAAC,KAAK,GAAG,GAAG;IAG1B,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC;gBAA5B,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC;yCAHtC,wBAAwB;2CAAxB,wBAAwB;CAMpC"}
@@ -0,0 +1,6 @@
1
+ export * from './components';
2
+ export * from './directives';
3
+ export * from './modules';
4
+ export * from './misc/tokens';
5
+ export * from './misc/tooltip.interface';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { TooltipOptions } from './tooltip.interface';
3
+ /**
4
+ * Injection token used for injecting tooltip options
5
+ */
6
+ export declare const TOOLTIP_OPTIONS: InjectionToken<Partial<TooltipOptions>>;
7
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,OAAO,CAAC,cAAc,CAAC,CAAkE,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { TemplateRef, Type } from '@angular/core';
2
+ import { PositionOptions } from '../../../services/position';
3
+ /**
4
+ * Represents component that is used for rendering tooltip
5
+ */
6
+ export interface TooltipRenderer<TData = any> {
7
+ /**
8
+ * Data that are rendered in tooltip
9
+ */
10
+ data: TData | null | undefined;
11
+ /**
12
+ * Template used for rendering tooltip
13
+ */
14
+ template: TemplateRef<TData> | null | undefined;
15
+ /**
16
+ * Indication whether are html tags allowed in tooltip text
17
+ */
18
+ allowHtml: boolean;
19
+ /**
20
+ * Css class that is applied to tooltip renderer component
21
+ */
22
+ cssClass: string | null | undefined;
23
+ /**
24
+ * Registers handlers that allows reaction to entering or leaving tooltip
25
+ * @param enter - Called when mouse enter tooltip component, hover
26
+ * @param leave - Called when mouse leaves tooltip component
27
+ */
28
+ registerHoverEvents(enter: () => void, leave: () => void): void;
29
+ /**
30
+ * Explicitly runs invalidation of content (change detection)
31
+ */
32
+ invalidateVisuals(): void;
33
+ }
34
+ /**
35
+ * Options used for tooltip directive
36
+ */
37
+ export interface TooltipOptions {
38
+ /**
39
+ * Delay for displaying of tooltip on hover
40
+ */
41
+ delay: number;
42
+ /**
43
+ * Position where should tooltip appear relative to its parent
44
+ */
45
+ position: Pick<PositionOptions, 'placement' | 'offset'>;
46
+ /**
47
+ * Allows selection of text in tooltip
48
+ */
49
+ allowSelection: boolean | null;
50
+ /**
51
+ * Css class that is applied to tooltip renderer component
52
+ */
53
+ tooltipCssClass: string | null;
54
+ /**
55
+ * Indication whether stop propagation of "hover" event
56
+ */
57
+ stopPropagation: boolean | null;
58
+ /**
59
+ * Type of tooltip renderer that is used for rendering tooltip
60
+ */
61
+ tooltipRenderer: Type<TooltipRenderer>;
62
+ }
63
+ //# sourceMappingURL=tooltip.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.interface.d.ts","sourceRoot":"","sources":["tooltip.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,KAAK,GAAG,GAAG;IAIxC;;OAEG;IACH,IAAI,EAAE,KAAK,GAAC,IAAI,GAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,GAAC,IAAI,GAAC,SAAS,CAAC;IAE5C;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAC,IAAI,GAAC,SAAS,CAAC;IAIhC;;;;OAIG;IACH,mBAAmB,CAAC,KAAK,EAAE,MAAM,IAAI,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAEhE;;OAEG;IACH,iBAAiB,IAAI,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAE3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,eAAe,EAAE,WAAW,GAAC,QAAQ,CAAC,CAAC;IAEtD;;OAEG;IACH,cAAc,EAAE,OAAO,GAAC,IAAI,CAAC;IAE7B;;OAEG;IACH,eAAe,EAAE,MAAM,GAAC,IAAI,CAAC;IAE7B;;OAEG;IACH,eAAe,EAAE,OAAO,GAAC,IAAI,CAAC;IAE9B;;OAEG;IACH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,2 @@
1
+ export * from './tooltip.module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../directives/tooltip/tooltip.directive";
3
+ import * as i2 from "../directives/tooltipTemplate/tooltipTemplate.directive";
4
+ import * as i3 from "../components/tooltip/tooltip.component";
5
+ import * as i4 from "@angular/common";
6
+ /**
7
+ * Module for rendering tooltips
8
+ */
9
+ export declare class TooltipModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof i1.TooltipDirective, typeof i2.TooltipTemplateDirective, typeof i3.TooltipComponent], [typeof i4.CommonModule], [typeof i1.TooltipDirective, typeof i2.TooltipTemplateDirective]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
13
+ }
14
+ //# sourceMappingURL=tooltip.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.module.d.ts","sourceRoot":"","sources":["tooltip.module.ts"],"names":[],"mappings":";;;;;AAMA;;GAEG;AACH,qBAkBa,aAAa;yCAAb,aAAa;0CAAb,aAAa;0CAAb,aAAa;CAEzB"}
package/version.bak CHANGED
@@ -1 +1 @@
1
- 11.2.0-beta.20220301111415
1
+ 11.3.0-beta.20220302063757