@progress/kendo-angular-tooltip 19.1.2-develop.3 → 19.1.2-develop.5
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/directives.d.ts +65 -3
- package/esm2022/directives.mjs +65 -3
- package/esm2022/models/events.mjs +11 -13
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/popover/anchor.directive.mjs +2 -2
- package/esm2022/popover/container.directive.mjs +10 -12
- package/esm2022/popover/directives-base.mjs +4 -14
- package/esm2022/popover/popover.component.mjs +23 -34
- package/esm2022/popover/template-directives/actions-template.directive.mjs +10 -1
- package/esm2022/popover/template-directives/body-template.directive.mjs +10 -1
- package/esm2022/popover/template-directives/title-template.directive.mjs +10 -1
- package/esm2022/popover.module.mjs +3 -8
- package/esm2022/tooltip/tooltip.directive.mjs +29 -43
- package/esm2022/tooltip/tooltip.settings.mjs +19 -35
- package/esm2022/tooltip.module.mjs +6 -15
- package/esm2022/tooltips.module.mjs +5 -13
- package/fesm2022/progress-kendo-angular-tooltip.mjs +209 -197
- package/models/animation.model.d.ts +1 -1
- package/models/events.d.ts +11 -13
- package/models/functions.model.d.ts +4 -6
- package/models/popover-show-option.type.d.ts +7 -1
- package/models/position.type.d.ts +5 -5
- package/models/show.option.type.d.ts +4 -4
- package/package.json +7 -7
- package/popover/anchor.directive.d.ts +2 -2
- package/popover/container.directive.d.ts +10 -12
- package/popover/directives-base.d.ts +4 -14
- package/popover/popover.component.d.ts +23 -34
- package/popover/template-directives/actions-template.directive.d.ts +10 -1
- package/popover/template-directives/body-template.directive.d.ts +10 -1
- package/popover/template-directives/title-template.directive.d.ts +10 -1
- package/popover.module.d.ts +3 -8
- package/tooltip/tooltip.directive.d.ts +29 -43
- package/tooltip/tooltip.settings.d.ts +19 -35
- package/tooltip.module.d.ts +6 -15
- package/tooltips.module.d.ts +5 -13
@@ -17,12 +17,12 @@ import * as i1 from "@progress/kendo-angular-popup";
|
|
17
17
|
import * as i2 from "./tooltip.settings";
|
18
18
|
/**
|
19
19
|
* Represents the [Kendo UI Tooltip directive for Angular]({% slug overview_tooltip %}).
|
20
|
-
*
|
20
|
+
* Displays additional information related to an element.
|
21
21
|
*
|
22
22
|
* @example
|
23
|
-
* ```
|
23
|
+
* ```html
|
24
24
|
* <div kendoTooltip>
|
25
|
-
*
|
25
|
+
* <button kendoButton title="Save">Save</button>
|
26
26
|
* </div>
|
27
27
|
* ```
|
28
28
|
*/
|
@@ -32,75 +32,63 @@ export class TooltipDirective {
|
|
32
32
|
renderer;
|
33
33
|
popupService;
|
34
34
|
/**
|
35
|
-
* Specifies a selector for elements within a container
|
35
|
+
* Specifies a selector for elements within a container that display a tooltip
|
36
36
|
* ([see example]({% slug anchorelements_tooltip %})). The possible values include any
|
37
|
-
* DOM `selector`.
|
37
|
+
* DOM `selector`.
|
38
|
+
* @default '[title]'
|
38
39
|
*/
|
39
40
|
filter = '[title]';
|
40
41
|
/**
|
41
|
-
* Specifies the position of the Tooltip
|
42
|
+
* Specifies the position of the Tooltip relative to the
|
42
43
|
* anchor element ([see example]({% slug positioning_tooltip %})).
|
43
44
|
*
|
44
|
-
*
|
45
|
-
* * `top` (default)
|
46
|
-
* * `bottom`
|
47
|
-
* * `left`
|
48
|
-
* * `right`
|
45
|
+
* @default 'top'
|
49
46
|
*/
|
50
47
|
position = 'top';
|
51
48
|
/**
|
52
|
-
*
|
53
|
-
* ([see example]({% slug anchorelements_tooltip %})).
|
49
|
+
* Sets the template for the tooltip header title. [See example]({% slug anchorelements_tooltip %}).
|
54
50
|
*/
|
55
51
|
titleTemplate;
|
56
52
|
/**
|
57
|
-
* Specifies
|
58
|
-
* ([see example]({% slug programmaticopening_tooltip %})).
|
59
|
-
*
|
60
|
-
* The possible values are:
|
61
|
-
* * `hover` (default)
|
62
|
-
* * `click`
|
63
|
-
* * `none`
|
53
|
+
* Specifies the mouse action that triggers the Tooltip to show. [See example]({% slug programmaticopening_tooltip %}).
|
64
54
|
*/
|
65
55
|
showOn;
|
66
56
|
/**
|
67
57
|
* Specifies the delay in milliseconds before the Tooltip is shown.
|
68
|
-
*
|
58
|
+
*
|
59
|
+
* @default 100
|
69
60
|
*/
|
70
61
|
showAfter = 100;
|
71
62
|
/**
|
72
|
-
*
|
63
|
+
* Determines if the Tooltip displays a callout arrow.
|
73
64
|
*
|
74
|
-
*
|
75
|
-
* * `true` (default)
|
76
|
-
* * `false`
|
65
|
+
* @default true
|
77
66
|
*/
|
78
67
|
callout = true;
|
79
68
|
/**
|
80
|
-
*
|
81
|
-
* ([see example]({% slug closable_tooltip %})).
|
69
|
+
* Determines if the Tooltip displays a **Close** button. [See example]({% slug closable_tooltip %}).
|
82
70
|
*
|
83
|
-
*
|
84
|
-
* * `true`
|
85
|
-
* * `false`
|
71
|
+
* @default false
|
86
72
|
*/
|
87
73
|
closable = false;
|
88
74
|
/**
|
89
|
-
* Specifies the offset in pixels between the Tooltip and the anchor.
|
75
|
+
* Specifies the offset in pixels between the Tooltip and the anchor.
|
90
76
|
* If the `callout` property is set to `true`, the offset is rendered from the callout arrow.
|
91
77
|
* If the `callout` property is set to `false`, the offset is rendered from the content of the Tooltip.
|
78
|
+
*
|
79
|
+
* @default 6
|
92
80
|
*/
|
93
81
|
offset = 6;
|
94
82
|
/**
|
95
|
-
*
|
83
|
+
* Sets the width of the Tooltip. [See example]({% slug anchorelements_tooltip %}).
|
96
84
|
*/
|
97
85
|
tooltipWidth;
|
98
86
|
/**
|
99
|
-
*
|
87
|
+
* Sets the height of the Tooltip.
|
100
88
|
*/
|
101
89
|
tooltipHeight;
|
102
90
|
/**
|
103
|
-
*
|
91
|
+
* Sets a CSS class for the Tooltip.
|
104
92
|
*/
|
105
93
|
tooltipClass;
|
106
94
|
/**
|
@@ -113,12 +101,12 @@ export class TooltipDirective {
|
|
113
101
|
*/
|
114
102
|
collision;
|
115
103
|
/**
|
116
|
-
*
|
104
|
+
* Sets the title of the **Close** button.
|
117
105
|
*/
|
118
106
|
closeTitle;
|
119
107
|
/**
|
120
|
-
* Sets
|
121
|
-
*
|
108
|
+
* Sets a custom content template for the Tooltip.
|
109
|
+
* The template is rendered inside the Tooltip content area. [See example]({% slug templates_tooltip %}).
|
122
110
|
*/
|
123
111
|
set tooltipTemplate(value) {
|
124
112
|
this.template = value;
|
@@ -166,8 +154,7 @@ export class TooltipDirective {
|
|
166
154
|
}
|
167
155
|
/**
|
168
156
|
* Shows the Tooltip.
|
169
|
-
* @param anchor
|
170
|
-
* Specifies the element that will be used as an anchor. The Tooltip opens relative to that element.
|
157
|
+
* @param anchor - The element used as an anchor. The Tooltip opens relative to this element.
|
171
158
|
*/
|
172
159
|
show(anchor) {
|
173
160
|
if (this.popupRef) {
|
@@ -210,10 +197,9 @@ export class TooltipDirective {
|
|
210
197
|
this.closePopup();
|
211
198
|
}
|
212
199
|
/**
|
213
|
-
*
|
214
|
-
*
|
215
|
-
* @param
|
216
|
-
* @param show— Optional. Boolean. Specifies if the Tooltip will be rendered.
|
200
|
+
* Toggles the visibility of the Tooltip.
|
201
|
+
* @param anchor - The element used as an anchor.
|
202
|
+
* @param show - Optional. Boolean. Specifies if the Tooltip is rendered.
|
217
203
|
*/
|
218
204
|
toggle(anchor, show) {
|
219
205
|
const previousAnchor = this.anchor && this.anchor.nativeElement;
|
@@ -11,66 +11,50 @@ import * as i0 from "@angular/core";
|
|
11
11
|
*/
|
12
12
|
export const TOOLTIP_SETTINGS = new InjectionToken('kendo-ui-tooltip-settings');
|
13
13
|
/**
|
14
|
-
* Provides a global configuration for the Kendo UI Tooltip.
|
15
|
-
* the `AppComponent` constructor, the configuration properties can be overridden.
|
14
|
+
* Provides a global configuration for the Kendo UI Tooltip. Inject this class in the `AppComponent` constructor to override configuration properties.
|
16
15
|
*
|
17
16
|
* @example
|
18
|
-
* ```
|
17
|
+
* ```typescript
|
19
18
|
* import { TooltipSettings } from '@progress/kendo-angular-tooltip';
|
20
19
|
*
|
21
|
-
*
|
22
|
-
*
|
23
|
-
*
|
24
|
-
*
|
25
|
-
*
|
26
|
-
*
|
27
|
-
*
|
28
|
-
* provide: TooltipSettings,
|
29
|
-
* useFactory: (): TooltipSettings => ({
|
30
|
-
* // Override default values of tooltips if wanted
|
31
|
-
* position: 'right'
|
32
|
-
* })
|
33
|
-
* }]
|
20
|
+
* @Component({
|
21
|
+
* selector: 'my-app',
|
22
|
+
* template: `<div kendoTooltip><button title="Save">Save</button></div>`,
|
23
|
+
* providers: [{
|
24
|
+
* provide: TooltipSettings,
|
25
|
+
* useFactory: (): TooltipSettings => ({ position: 'right' })
|
26
|
+
* }]
|
34
27
|
* })
|
35
|
-
* export class AppComponent {
|
28
|
+
* export class AppComponent {}
|
36
29
|
* ```
|
37
30
|
*/
|
38
31
|
export class TooltipSettings {
|
39
32
|
/**
|
40
|
-
*
|
33
|
+
* Determines if the Tooltip displays a callout arrow.
|
41
34
|
*
|
42
|
-
*
|
43
|
-
* * `true` (default)
|
44
|
-
* * `false`
|
35
|
+
* @default true
|
45
36
|
*/
|
46
37
|
callout;
|
47
38
|
/**
|
48
|
-
*
|
39
|
+
* Sets the title of the **Close** button.
|
49
40
|
*/
|
50
41
|
closeTitle;
|
51
42
|
/**
|
52
|
-
* Specifies the position of the Tooltip
|
53
|
-
* relative to the anchor element.
|
43
|
+
* Specifies the position of the Tooltip relative to the anchor element.
|
54
44
|
*
|
55
|
-
*
|
56
|
-
* * `top` (default)
|
57
|
-
* * `bottom`
|
58
|
-
* * `left`
|
59
|
-
* * `right`
|
45
|
+
* @default 'top'
|
60
46
|
*/
|
61
47
|
position;
|
62
48
|
/**
|
63
|
-
* Specifies
|
49
|
+
* Specifies the mouse action that triggers the Tooltip to show.
|
64
50
|
*
|
65
|
-
*
|
66
|
-
* * `hover` (default)
|
67
|
-
* * `click`
|
68
|
-
* * `none`
|
51
|
+
* @default 'hover'
|
69
52
|
*/
|
70
53
|
showOn;
|
71
54
|
/**
|
72
55
|
* Specifies the delay in milliseconds before the Tooltip is shown.
|
73
|
-
*
|
56
|
+
*
|
57
|
+
* @default 100
|
74
58
|
*/
|
75
59
|
showAfter;
|
76
60
|
/**
|
@@ -13,33 +13,24 @@ import * as i2 from "./tooltip/tooltip.content.component";
|
|
13
13
|
import * as i3 from "./localization/localized-messages.directive";
|
14
14
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
15
15
|
/**
|
16
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
16
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi'])
|
17
17
|
* definition for the Tooltip component.
|
18
18
|
*
|
19
19
|
* The package exports:
|
20
|
-
* - `KendoTooltipDirective
|
20
|
+
* - `KendoTooltipDirective` — The Tooltip directive class.
|
21
21
|
*
|
22
22
|
* @example
|
23
|
-
*
|
24
|
-
* ```ts-no-run
|
25
|
-
* // Import the Tooltip module
|
23
|
+
* ```typescript
|
26
24
|
* import { TooltipModule } from '@progress/kendo-angular-tooltip';
|
27
|
-
*
|
28
|
-
* // The browser platform with a compiler
|
29
25
|
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
30
|
-
*
|
31
26
|
* import { NgModule } from '@angular/core';
|
32
27
|
*
|
33
|
-
*
|
34
|
-
*
|
35
|
-
*
|
36
|
-
* imports: [BrowserModule, TooltipModule], // import TooltipModule module
|
28
|
+
* @NgModule{{
|
29
|
+
* declarations: [AppComponent],
|
30
|
+
* imports: [BrowserModule, TooltipModule],
|
37
31
|
* bootstrap: [AppComponent]
|
38
32
|
* }}
|
39
33
|
* export class AppModule {}
|
40
|
-
*
|
41
|
-
* // Compile and launch the module
|
42
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
43
34
|
* ```
|
44
35
|
*/
|
45
36
|
export class TooltipModule {
|
@@ -19,29 +19,21 @@ import * as i8 from "./popover/anchor.directive";
|
|
19
19
|
import * as i9 from "./popover/container.directive";
|
20
20
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
21
21
|
/**
|
22
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
22
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi'])
|
23
23
|
* definition for the Tooltips components.
|
24
24
|
*
|
25
25
|
* @example
|
26
|
-
*
|
27
|
-
* ```ts-no-run
|
26
|
+
* ```typescript
|
28
27
|
* import { TooltipsModule } from '@progress/kendo-angular-tooltip';
|
29
|
-
*
|
30
|
-
* // The browser platform with a compiler
|
31
28
|
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
32
|
-
*
|
33
29
|
* import { NgModule } from '@angular/core';
|
34
30
|
*
|
35
|
-
*
|
36
|
-
*
|
37
|
-
*
|
38
|
-
* imports: [BrowserModule, TooltipsModule], // import TooltipsModule module
|
31
|
+
* @NgModule{{
|
32
|
+
* declarations: [AppComponent],
|
33
|
+
* imports: [BrowserModule, TooltipsModule],
|
39
34
|
* bootstrap: [AppComponent]
|
40
35
|
* }}
|
41
36
|
* export class AppModule {}
|
42
|
-
*
|
43
|
-
* // Compile and launch the module
|
44
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
45
37
|
* ```
|
46
38
|
*/
|
47
39
|
export class TooltipsModule {
|