@progress/kendo-angular-tooltip 24.0.0-develop.2 → 24.0.0-develop.21
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/NOTICE.txt +2599 -172
- package/fesm2022/progress-kendo-angular-tooltip.mjs +32 -26
- package/index.d.ts +1 -0
- package/models/theme-color.type.d.ts +16 -0
- package/package-metadata.mjs +2 -2
- package/package.json +7 -7
- package/popover/popover.component.d.ts +1 -1
- package/tooltip/tooltip.directive.d.ts +7 -1
|
@@ -302,8 +302,8 @@ const packageMetadata = {
|
|
|
302
302
|
productName: 'Kendo UI for Angular',
|
|
303
303
|
productCode: 'KENDOUIANGULAR',
|
|
304
304
|
productCodes: ['KENDOUIANGULAR'],
|
|
305
|
-
publishDate:
|
|
306
|
-
version: '24.0.0-develop.
|
|
305
|
+
publishDate: 1778161032,
|
|
306
|
+
version: '24.0.0-develop.21',
|
|
307
307
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
308
308
|
};
|
|
309
309
|
|
|
@@ -531,7 +531,7 @@ class PopoverComponent {
|
|
|
531
531
|
* @hidden
|
|
532
532
|
*/
|
|
533
533
|
get hasAttributeHidden() {
|
|
534
|
-
return
|
|
534
|
+
return this.visible ? null : true;
|
|
535
535
|
}
|
|
536
536
|
/**
|
|
537
537
|
* Fires before the Popover is shown. The event is preventable. If canceled, the Popover will not display. [See example](https://www.telerik.com/kendo-angular-ui/components/tooltips/popover/events).
|
|
@@ -663,19 +663,17 @@ class PopoverComponent {
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
setAriaAttributes(wrapper, focusablePopoverChildren) {
|
|
666
|
-
if (this.titleTemplate) {
|
|
667
|
-
const titleRef = this.titleTemplateWrapper
|
|
668
|
-
|
|
669
|
-
if (focusableHeaderChildren) {
|
|
666
|
+
if (this.titleTemplate || this.title) {
|
|
667
|
+
const titleRef = this.titleTemplateWrapper?.nativeElement;
|
|
668
|
+
if (titleRef) {
|
|
670
669
|
const headerId = getId('k-popover-header', 'popoverTitle');
|
|
671
670
|
this.renderer.setAttribute(titleRef, 'id', headerId);
|
|
672
671
|
this.renderer.setAttribute(wrapper, 'aria-labelledby', headerId);
|
|
673
672
|
}
|
|
674
673
|
}
|
|
675
|
-
if (this.bodyTemplate) {
|
|
676
|
-
const bodyRef = this.bodyTemplateWrapper
|
|
677
|
-
|
|
678
|
-
if (focusableBodyChildren) {
|
|
674
|
+
if (this.bodyTemplate || this.body) {
|
|
675
|
+
const bodyRef = this.bodyTemplateWrapper?.nativeElement;
|
|
676
|
+
if (bodyRef) {
|
|
679
677
|
const bodyId = getId('k-popover-body', 'popoverBody');
|
|
680
678
|
this.renderer.setAttribute(bodyRef, 'id', bodyId);
|
|
681
679
|
this.renderer.setAttribute(wrapper, 'aria-describedby', bodyId);
|
|
@@ -1815,13 +1813,12 @@ class TooltipContentComponent {
|
|
|
1815
1813
|
</div>
|
|
1816
1814
|
|
|
1817
1815
|
@if (closable) {
|
|
1818
|
-
<div [attr.aria-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
</a>
|
|
1816
|
+
<div class="k-tooltip-button" role="button" [attr.aria-label]="closeButtonTitle" tabindex="0"
|
|
1817
|
+
(click)="onCloseClick($event)" (keydown.enter)="onCloseClick($event)" (keydown.space)="onCloseClick($event)">
|
|
1818
|
+
<kendo-icon-wrapper
|
|
1819
|
+
name="x"
|
|
1820
|
+
[svgIcon]="xIcon">
|
|
1821
|
+
</kendo-icon-wrapper>
|
|
1825
1822
|
</div>
|
|
1826
1823
|
}
|
|
1827
1824
|
|
|
@@ -1865,13 +1862,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1865
1862
|
</div>
|
|
1866
1863
|
|
|
1867
1864
|
@if (closable) {
|
|
1868
|
-
<div [attr.aria-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
</a>
|
|
1865
|
+
<div class="k-tooltip-button" role="button" [attr.aria-label]="closeButtonTitle" tabindex="0"
|
|
1866
|
+
(click)="onCloseClick($event)" (keydown.enter)="onCloseClick($event)" (keydown.space)="onCloseClick($event)">
|
|
1867
|
+
<kendo-icon-wrapper
|
|
1868
|
+
name="x"
|
|
1869
|
+
[svgIcon]="xIcon">
|
|
1870
|
+
</kendo-icon-wrapper>
|
|
1875
1871
|
</div>
|
|
1876
1872
|
}
|
|
1877
1873
|
|
|
@@ -2071,6 +2067,11 @@ class TooltipDirective {
|
|
|
2071
2067
|
* Sets a CSS class for the Tooltip.
|
|
2072
2068
|
*/
|
|
2073
2069
|
tooltipClass;
|
|
2070
|
+
/**
|
|
2071
|
+
* Specifies the theme color of the Tooltip.
|
|
2072
|
+
* The theme color applies the corresponding `k-tooltip-{themeColor}` class to the Tooltip element.
|
|
2073
|
+
*/
|
|
2074
|
+
themeColor;
|
|
2074
2075
|
/**
|
|
2075
2076
|
* @hidden
|
|
2076
2077
|
* Specifies a CSS class that will be added to the kendo-tooltip element.
|
|
@@ -2302,6 +2303,9 @@ class TooltipDirective {
|
|
|
2302
2303
|
if (this.tooltipClass) {
|
|
2303
2304
|
this.renderer.addClass(this.popupRef.popupElement, this.tooltipClass);
|
|
2304
2305
|
}
|
|
2306
|
+
if (this.themeColor) {
|
|
2307
|
+
this.renderer.addClass(this.popupRef.content.location.nativeElement, `k-tooltip-${this.themeColor}`);
|
|
2308
|
+
}
|
|
2305
2309
|
if (this.tooltipContentClass) {
|
|
2306
2310
|
this.renderer.addClass(this.popupRef.content.instance['content'].nativeElement, this.tooltipContentClass);
|
|
2307
2311
|
}
|
|
@@ -2421,7 +2425,7 @@ class TooltipDirective {
|
|
|
2421
2425
|
}
|
|
2422
2426
|
}
|
|
2423
2427
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1$1.PopupService }, { token: TooltipSettings, optional: true }, { token: TOOLTIP_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2424
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.20", type: TooltipDirective, isStandalone: true, selector: "[kendoTooltip]", inputs: { filter: "filter", position: "position", titleTemplate: "titleTemplate", showOn: "showOn", showAfter: "showAfter", callout: "callout", closable: "closable", offset: "offset", tooltipWidth: "tooltipWidth", tooltipHeight: "tooltipHeight", tooltipClass: "tooltipClass", tooltipContentClass: "tooltipContentClass", collision: "collision", closeTitle: "closeTitle", tooltipTemplate: "tooltipTemplate" }, exportAs: ["kendoTooltip"], usesOnChanges: true, ngImport: i0 });
|
|
2428
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.20", type: TooltipDirective, isStandalone: true, selector: "[kendoTooltip]", inputs: { filter: "filter", position: "position", titleTemplate: "titleTemplate", showOn: "showOn", showAfter: "showAfter", callout: "callout", closable: "closable", offset: "offset", tooltipWidth: "tooltipWidth", tooltipHeight: "tooltipHeight", tooltipClass: "tooltipClass", themeColor: "themeColor", tooltipContentClass: "tooltipContentClass", collision: "collision", closeTitle: "closeTitle", tooltipTemplate: "tooltipTemplate" }, exportAs: ["kendoTooltip"], usesOnChanges: true, ngImport: i0 });
|
|
2425
2429
|
}
|
|
2426
2430
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
2427
2431
|
type: Directive,
|
|
@@ -2459,6 +2463,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2459
2463
|
type: Input
|
|
2460
2464
|
}], tooltipClass: [{
|
|
2461
2465
|
type: Input
|
|
2466
|
+
}], themeColor: [{
|
|
2467
|
+
type: Input
|
|
2462
2468
|
}], tooltipContentClass: [{
|
|
2463
2469
|
type: Input
|
|
2464
2470
|
}], collision: [{
|
package/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { PopoverActionsTemplateDirective } from './popover/template-directives/a
|
|
|
16
16
|
export { ShowOption } from './models/show.option.type';
|
|
17
17
|
export { PopoverShowOption } from './models/popover-show-option.type';
|
|
18
18
|
export { Position } from './models/position.type';
|
|
19
|
+
export { TooltipThemeColor } from './models/theme-color.type';
|
|
19
20
|
export { PopoverFn, PopoverDataFn } from './models/functions.model';
|
|
20
21
|
export { PopoverAnimation } from './models/animation.model';
|
|
21
22
|
export { PopoverShowEvent, PopoverShownEvent, PopoverHideEvent, PopoverHiddenEvent } from './models/events';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the predefined theme color of the Tooltip.
|
|
7
|
+
*
|
|
8
|
+
* The available values are:
|
|
9
|
+
* - `base` (default)—Applies coloring based on the `base` theme color.
|
|
10
|
+
* - `inverse`—Applies coloring based on the `inverse` theme color.
|
|
11
|
+
* - `info`—Applies coloring based on the `info` theme color.
|
|
12
|
+
* - `success`—Applies coloring based on the `success` theme color.
|
|
13
|
+
* - `warning`—Applies coloring based on the `warning` theme color.
|
|
14
|
+
* - `error`—Applies coloring based on the `error` theme color.
|
|
15
|
+
*/
|
|
16
|
+
export type TooltipThemeColor = 'base' | 'inverse' | 'info' | 'success' | 'warning' | 'error';
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "24.0.0-develop.
|
|
10
|
+
"publishDate": 1778161032,
|
|
11
|
+
"version": "24.0.0-develop.21",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-tooltip",
|
|
3
|
-
"version": "24.0.0-develop.
|
|
3
|
+
"version": "24.0.0-develop.21",
|
|
4
4
|
"description": "Kendo UI Tooltip for Angular - A highly customizable and easily themeable tooltip from the creators developers trust for professional Angular components.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"package": {
|
|
22
22
|
"productName": "Kendo UI for Angular",
|
|
23
23
|
"productCode": "KENDOUIANGULAR",
|
|
24
|
-
"publishDate":
|
|
24
|
+
"publishDate": 1778161032,
|
|
25
25
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"@angular/core": "19 - 21",
|
|
32
32
|
"@angular/platform-browser": "19 - 21",
|
|
33
33
|
"@progress/kendo-licensing": "^1.11.0",
|
|
34
|
-
"@progress/kendo-angular-common": "24.0.0-develop.
|
|
35
|
-
"@progress/kendo-angular-l10n": "24.0.0-develop.
|
|
36
|
-
"@progress/kendo-angular-popup": "24.0.0-develop.
|
|
37
|
-
"@progress/kendo-angular-icons": "24.0.0-develop.
|
|
34
|
+
"@progress/kendo-angular-common": "24.0.0-develop.21",
|
|
35
|
+
"@progress/kendo-angular-l10n": "24.0.0-develop.21",
|
|
36
|
+
"@progress/kendo-angular-popup": "24.0.0-develop.21",
|
|
37
|
+
"@progress/kendo-angular-icons": "24.0.0-develop.21",
|
|
38
38
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"tslib": "^2.3.1",
|
|
42
|
-
"@progress/kendo-angular-schematics": "24.0.0-develop.
|
|
42
|
+
"@progress/kendo-angular-schematics": "24.0.0-develop.21"
|
|
43
43
|
},
|
|
44
44
|
"schematics": "./schematics/collection.json",
|
|
45
45
|
"module": "fesm2022/progress-kendo-angular-tooltip.mjs",
|
|
@@ -112,7 +112,7 @@ export declare class PopoverComponent implements OnInit, AfterViewInit, OnDestro
|
|
|
112
112
|
/**
|
|
113
113
|
* @hidden
|
|
114
114
|
*/
|
|
115
|
-
get hasAttributeHidden(): boolean;
|
|
115
|
+
get hasAttributeHidden(): boolean | null;
|
|
116
116
|
/**
|
|
117
117
|
* Fires before the Popover is shown. The event is preventable. If canceled, the Popover will not display. [See example](https://www.telerik.com/kendo-angular-ui/components/tooltips/popover/events).
|
|
118
118
|
*/
|
|
@@ -7,6 +7,7 @@ import { PopupService, PopupRef, Collision } from '@progress/kendo-angular-popup
|
|
|
7
7
|
import { TooltipSettings } from './tooltip.settings';
|
|
8
8
|
import { Position } from '../models/position.type';
|
|
9
9
|
import { ShowOption } from '../models/show.option.type';
|
|
10
|
+
import { TooltipThemeColor } from '../models/theme-color.type';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* Represents the [Kendo UI Tooltip directive for Angular](https://www.telerik.com/kendo-angular-ui/components/tooltips/tooltip).
|
|
@@ -84,6 +85,11 @@ export declare class TooltipDirective implements OnDestroy, OnChanges, AfterView
|
|
|
84
85
|
* Sets a CSS class for the Tooltip.
|
|
85
86
|
*/
|
|
86
87
|
tooltipClass: string;
|
|
88
|
+
/**
|
|
89
|
+
* Specifies the theme color of the Tooltip.
|
|
90
|
+
* The theme color applies the corresponding `k-tooltip-{themeColor}` class to the Tooltip element.
|
|
91
|
+
*/
|
|
92
|
+
themeColor: TooltipThemeColor;
|
|
87
93
|
/**
|
|
88
94
|
* @hidden
|
|
89
95
|
* Specifies a CSS class that will be added to the kendo-tooltip element.
|
|
@@ -150,5 +156,5 @@ export declare class TooltipDirective implements OnDestroy, OnChanges, AfterView
|
|
|
150
156
|
private onMouseOut;
|
|
151
157
|
private verifyProperties;
|
|
152
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
153
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[kendoTooltip]", ["kendoTooltip"], { "filter": { "alias": "filter"; "required": false; }; "position": { "alias": "position"; "required": false; }; "titleTemplate": { "alias": "titleTemplate"; "required": false; }; "showOn": { "alias": "showOn"; "required": false; }; "showAfter": { "alias": "showAfter"; "required": false; }; "callout": { "alias": "callout"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "tooltipWidth": { "alias": "tooltipWidth"; "required": false; }; "tooltipHeight": { "alias": "tooltipHeight"; "required": false; }; "tooltipClass": { "alias": "tooltipClass"; "required": false; }; "tooltipContentClass": { "alias": "tooltipContentClass"; "required": false; }; "collision": { "alias": "collision"; "required": false; }; "closeTitle": { "alias": "closeTitle"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
159
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[kendoTooltip]", ["kendoTooltip"], { "filter": { "alias": "filter"; "required": false; }; "position": { "alias": "position"; "required": false; }; "titleTemplate": { "alias": "titleTemplate"; "required": false; }; "showOn": { "alias": "showOn"; "required": false; }; "showAfter": { "alias": "showAfter"; "required": false; }; "callout": { "alias": "callout"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "tooltipWidth": { "alias": "tooltipWidth"; "required": false; }; "tooltipHeight": { "alias": "tooltipHeight"; "required": false; }; "tooltipClass": { "alias": "tooltipClass"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "tooltipContentClass": { "alias": "tooltipContentClass"; "required": false; }; "collision": { "alias": "collision"; "required": false; }; "closeTitle": { "alias": "closeTitle"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
154
160
|
}
|