@progress/kendo-angular-tooltip 25.0.0-develop.7 → 25.0.0
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 +33 -34
- package/codemods/libs/common/src/codemods/utils.js +15 -0
- package/codemods/libs/tooltip/codemods/v25/tooltip-rendering-changes.js +22 -0
- package/fesm2022/progress-kendo-angular-tooltip.mjs +117 -60
- package/index.d.ts +34 -3
- package/package-metadata.mjs +2 -2
- package/package.json +14 -7
package/NOTICE.txt
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
Progress Kendo UI for Angular 2026
|
|
2
|
+
Progress Kendo UI for Angular 2026 Updated August 2026
|
|
3
3
|
|
|
4
4
|
----------------------------------------------------------------------------------------------------------------------------
|
|
5
5
|
NOTICES REPORT
|
|
6
6
|
----------------------------------------------------------------------------------------------------------------------------
|
|
7
7
|
|
|
8
8
|
Portions of the Products include certain open source and commercial third-party components listed below ("Third-Party
|
|
9
|
-
Components"). The authors of the Third-Party Components require Progress Software Corporation ("PSC") to include
|
|
10
|
-
|
|
11
|
-
acknowledge that the authors of the Third-Party Components have no obligation to provide support to you for the Third-
|
|
12
|
-
|
|
9
|
+
Components"). The authors of the Third-Party Components require Progress Software Corporation ("PSC") to include the
|
|
10
|
+
following notices and additional licensing terms as a condition of PSC's use of such Third-Party Components. You
|
|
11
|
+
acknowledge that the authors of the Third-Party Components have no obligation to provide support to you for the Third-Party
|
|
12
|
+
Components or the Product. You hereby undertake to comply with all licenses related to the applicable Third-Party
|
|
13
13
|
Components. Notwithstanding anything to the contrary, to the extent that any of the terms and conditions of the Progress
|
|
14
|
-
Agreement conflict, vary, or are in addition to the terms and conditions of the aforementioned third-party licenses for
|
|
15
|
-
|
|
14
|
+
Agreement conflict, vary, or are in addition to the terms and conditions of the aforementioned third-party licenses for these
|
|
15
|
+
technologies, such terms and conditions are offered by PSC alone and not by any other party.
|
|
16
16
|
|
|
17
17
|
----------------------------------------------------------------------------------------------------------------------------
|
|
18
18
|
Report Content
|
|
@@ -25,40 +25,38 @@
|
|
|
25
25
|
|
|
26
26
|
----------------------------------------------------------------------------------------------------------------------------
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
AI governed by the terms and conditions of a license agreement from AI licensor will be required for use and access of
|
|
32
|
-
|
|
33
|
-
a valid use of AI. You acknowledge and accept that Progress is not a party to the license agreement between You
|
|
34
|
-
licensor for AI use, and as a result Progress does not have any control over AI and its availability, and Progress
|
|
35
|
-
|
|
36
|
-
with the Software.
|
|
28
|
+
GENERATIVE ARTIFICIAL INTELLIGENCE INTEGRATION
|
|
29
|
+
If the Software documentation specifies integration with some form of generative artificial intelligence (AI), then the
|
|
30
|
+
Software will include a configuration to connect to AI. You acknowledge that a separate license or subscription access
|
|
31
|
+
to AI governed by the terms and conditions of a license agreement from AI licensor will be required for use and access of
|
|
32
|
+
AI capabilities integrated with the Software. You will be responsible to comply with the terms of such license agreement
|
|
33
|
+
for a valid use of AI. You acknowledge and accept that Progress is not a party to the license agreement between You
|
|
34
|
+
and AI licensor for AI use, and as a result Progress does not have any control over AI and its availability, and Progress
|
|
35
|
+
disclaims any and all liabilities for any output, error, damages, loss, etc., or any other result of Your use of AI
|
|
36
|
+
integrated with the Software.
|
|
37
37
|
|
|
38
38
|
----------------------------------------------------------------------------------------------------------------------------
|
|
39
39
|
|
|
40
|
-
NOTICE FROM PROGRESS SOFTWARE CORPORATION: Additional notices may be included in the release notes or
|
|
41
|
-
|
|
40
|
+
NOTICE FROM PROGRESS SOFTWARE CORPORATION: Additional notices may be included in the release notes or other
|
|
41
|
+
documentation that accompanies updates received in connection with support of the Product.
|
|
42
42
|
|
|
43
43
|
----------------------------------------------------------------------------------------------------------------------------
|
|
44
44
|
|
|
45
45
|
TECHNOLOGIES DISTRIBUTED UNDER ORIGINAL LICENSE
|
|
46
|
-
The Product contains the following third-party technologies licensed to PSC under licenses that require PSC to
|
|
47
|
-
|
|
48
|
-
below.
|
|
46
|
+
The Product contains the following third-party technologies licensed to PSC under licenses that require PSC to distribute the
|
|
47
|
+
technologies to Users only under its original license terms as noted, the text of which is copied herein below.
|
|
49
48
|
|
|
50
49
|
Component License
|
|
51
|
-
|
|
52
|
-
caniuse-lite | 1.0.30001797 Creative Commons Attribution 4.0
|
|
50
|
+
caniuse-lite | 1.0.30001806 Creative Commons Attribution 4.0
|
|
53
51
|
|
|
54
52
|
----------------------------------------------------------------------------------------------------------------------------
|
|
55
53
|
|
|
56
|
-
Components:
|
|
54
|
+
Components:
|
|
57
55
|
|
|
58
56
|
| -------------------------------------- | ------------------------------------- | ---------------------------------------- |
|
|
59
57
|
| Component | Origin | License |
|
|
60
58
|
| -------------------------------------- | ------------------------------------- | ---------------------------------------- |
|
|
61
|
-
| caniuse-lite 1.0.
|
|
59
|
+
| caniuse-lite 1.0.30001806 | https://github.com/ben-eb/caniuse-lit | Creative Commons Attribution 4.0 |
|
|
62
60
|
| | e | |
|
|
63
61
|
| jszip 3.10.1 | https://github.com/Stuk/jszip | MIT License |
|
|
64
62
|
| Microsofttslib 1.14.1 | http://github.com/Microsoft/tslib/ | BSD Zero Clause License |
|
|
@@ -66,12 +64,14 @@ Components:
|
|
|
66
64
|
| node-semver 7.7.1 | https://github.com/npm/node-semver | ISC License |
|
|
67
65
|
| nodeca/pako 1.0.11 | https://github.com/nodeca/pako | MIT License |
|
|
68
66
|
| orderedmap 2.1.1 | https://github.com/marijnh/orderedmap | MIT License |
|
|
69
|
-
| pdfjs-dist-for-node 5.
|
|
67
|
+
| pdfjs-dist-for-node 5.5.207 | http://mozilla.github.io/pdf.js/ | Apache License 2.0 |
|
|
68
|
+
| @progress/kendo-svg-icons 5.4.0 | https://github.com/telerik/kendo-icon | Apache License 2.0 |
|
|
69
|
+
| | s#readme | |
|
|
70
70
|
| prosemirror-commands 1.7.1 | https://github.com/prosemirror/prosem | MIT License |
|
|
71
71
|
| | irror-commands#readme | |
|
|
72
72
|
| prosemirror-dropcursor 1.8.2 | https://github.com/prosemirror/prosem | MIT License |
|
|
73
73
|
| | irror-dropcursor#readme | |
|
|
74
|
-
| prosemirror-gapcursor 1.4.
|
|
74
|
+
| prosemirror-gapcursor 1.4.1 | https://github.com/prosemirror/prosem | MIT License |
|
|
75
75
|
| | irror-gapcursor#readme | |
|
|
76
76
|
| prosemirror-history 1.5.0 | https://github.com/prosemirror/prosem | MIT License |
|
|
77
77
|
| | irror-history#readme | |
|
|
@@ -79,7 +79,7 @@ Components:
|
|
|
79
79
|
| | irror-inputrules#readme | |
|
|
80
80
|
| prosemirror-keymap 1.2.3 | https://github.com/prosemirror/prosem | MIT License |
|
|
81
81
|
| | irror-keymap#readme | |
|
|
82
|
-
| prosemirror-model 1.25.
|
|
82
|
+
| prosemirror-model 1.25.9 | https://github.com/prosemirror/prosem | MIT License |
|
|
83
83
|
| | irror-model#readme | |
|
|
84
84
|
| prosemirror-schema-list 1.5.1 | https://github.com/prosemirror/prosem | MIT License |
|
|
85
85
|
| | irror-schema-list#readme | |
|
|
@@ -87,16 +87,14 @@ Components:
|
|
|
87
87
|
| | irror-state#readme | |
|
|
88
88
|
| prosemirror-tables 1.8.5 | https://github.com/prosemirror/prosem | MIT License |
|
|
89
89
|
| | irror-tables#readme | |
|
|
90
|
-
| prosemirror-transform 1.
|
|
90
|
+
| prosemirror-transform 1.12.0 | https://github.com/prosemirror/prosem | MIT License |
|
|
91
91
|
| | irror-transform#readme | |
|
|
92
|
-
| prosemirror-view 1.
|
|
92
|
+
| prosemirror-view 1.42.0 | https://github.com/prosemirror/prosem | MIT License |
|
|
93
93
|
| | irror-view#readme | |
|
|
94
94
|
| rope-sequence 1.3.4 | https://github.com/marijnh/rope-seque | MIT License |
|
|
95
95
|
| | nce#readme | |
|
|
96
96
|
| w3c-keyname 2.2.8 | https://github.com/marijnh/w3c-keynam | MIT License |
|
|
97
97
|
| | e#readme | |
|
|
98
|
-
| @progress/kendo-svg-icons 4.9.2 | https://github.com/telerik/kendo-icon | Apache License 2.0 |
|
|
99
|
-
| | s#readme | |
|
|
100
98
|
| -------------------------------------- | ------------------------------------- | ---------------------------------------- |
|
|
101
99
|
|
|
102
100
|
-------------------------------------------------------------------------------------------------------------------------
|
|
@@ -104,7 +102,8 @@ License Data and Text:
|
|
|
104
102
|
-------------------------------------------------------------------------------------------------------------------------
|
|
105
103
|
|
|
106
104
|
Apache License 2.0
|
|
107
|
-
(@progress/kendo-svg-icons 4.
|
|
105
|
+
(@progress/kendo-svg-icons 5.4.0, pdfjs-dist-for-node 5.5.207)
|
|
106
|
+
|
|
108
107
|
Apache License
|
|
109
108
|
Version 2.0, January 2004
|
|
110
109
|
=========================
|
|
@@ -372,7 +371,7 @@ THIS SOFTWARE.
|
|
|
372
371
|
---
|
|
373
372
|
|
|
374
373
|
Creative Commons Attribution 4.0
|
|
375
|
-
(caniuse-lite 1.0.
|
|
374
|
+
(caniuse-lite 1.0.30001806)
|
|
376
375
|
|
|
377
376
|
Creative Commons Attribution 4.0
|
|
378
377
|
================================
|
|
@@ -13,6 +13,7 @@ exports.writeInstructionMarker = writeInstructionMarker;
|
|
|
13
13
|
exports.isApiChangeTarget = isApiChangeTarget;
|
|
14
14
|
exports.isRenderingChangeTarget = isRenderingChangeTarget;
|
|
15
15
|
exports.executeCodemodTest = executeCodemodTest;
|
|
16
|
+
exports.removeAttributeFromDirectiveHost = removeAttributeFromDirectiveHost;
|
|
16
17
|
const tslib_1 = require("tslib");
|
|
17
18
|
/// <reference types="node" />
|
|
18
19
|
const fs = tslib_1.__importStar(require("fs"));
|
|
@@ -1486,3 +1487,17 @@ function executeCodemodTest(codemod, testDir, exampleFileName = 'example.ts', ex
|
|
|
1486
1487
|
catch { }
|
|
1487
1488
|
}
|
|
1488
1489
|
}
|
|
1490
|
+
function removeAttributeFromDirectiveHost(templateContent, directiveAttr, attrToRemove) {
|
|
1491
|
+
const escapedDirective = directiveAttr.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
1492
|
+
const escapedAttr = attrToRemove.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
1493
|
+
const boundPattern = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*${escapedDirective}[^>]*?)\\s+\\[${escapedAttr}\\]\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*?>)`, 'gi');
|
|
1494
|
+
const staticPattern = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*${escapedDirective}[^>]*?)\\s+${escapedAttr}\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*?>)`, 'gi');
|
|
1495
|
+
// Also match when the attribute appears before the directive
|
|
1496
|
+
const boundPatternBefore = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*?)\\s+\\[${escapedAttr}\\]\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*${escapedDirective}[^>]*?>)`, 'gi');
|
|
1497
|
+
const staticPatternBefore = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*?)\\s+${escapedAttr}\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*${escapedDirective}[^>]*?>)`, 'gi');
|
|
1498
|
+
let result = templateContent.replace(boundPattern, '$1$3');
|
|
1499
|
+
result = result.replace(staticPattern, '$1$3');
|
|
1500
|
+
result = result.replace(boundPatternBefore, '$1$3');
|
|
1501
|
+
result = result.replace(staticPatternBefore, '$1$3');
|
|
1502
|
+
return result;
|
|
1503
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.aiInstructions = void 0;
|
|
8
|
+
exports.default = default_1;
|
|
9
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
10
|
+
exports.aiInstructions = `Review your stylesheets, test files, and any code that references these Tooltip changes:
|
|
11
|
+
|
|
12
|
+
aria-labelledby — changed to aria-describedby on tooltip anchor elements.
|
|
13
|
+
Replace aria-labelledby selectors/assertions with aria-describedby in Tooltip context.`;
|
|
14
|
+
const pattern = /aria-labelledby/;
|
|
15
|
+
function default_1(fileInfo) {
|
|
16
|
+
if ((0, codemods_1.isRenderingChangeTarget)(fileInfo.path)) {
|
|
17
|
+
if (pattern.test(fileInfo.source)) {
|
|
18
|
+
(0, codemods_1.writeInstructionMarker)(exports.aiInstructions, __filename, fileInfo.path);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return fileInfo.source;
|
|
22
|
+
}
|
|
@@ -6,7 +6,7 @@ import * as i0 from '@angular/core';
|
|
|
6
6
|
import { forwardRef, Input, Directive, Optional, isDevMode, EventEmitter, signal, afterNextRender, HostBinding, ContentChild, ViewChild, Output, ChangeDetectionStrategy, Component, ElementRef, ChangeDetectorRef, Injectable, InjectionToken, Inject, NgModule } from '@angular/core';
|
|
7
7
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { PreventableEvent, focusableSelector, Keys, isDocumentAvailable, closest, hasObservers, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
9
|
+
import { PreventableEvent, focusableSelector, Keys, isDocumentAvailable, closest, hasObservers, provideComponentName, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
10
10
|
import * as i1$1 from '@progress/kendo-angular-popup';
|
|
11
11
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
12
12
|
import { auditTime, take, filter } from 'rxjs/operators';
|
|
@@ -29,15 +29,15 @@ class LocalizedMessagesDirective extends ComponentMessages {
|
|
|
29
29
|
super();
|
|
30
30
|
this.service = service;
|
|
31
31
|
}
|
|
32
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
33
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
33
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoTooltipLocalizedMessages]", inputs: { closeTitle: "closeTitle" }, providers: [
|
|
34
34
|
{
|
|
35
35
|
provide: ComponentMessages,
|
|
36
36
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
37
37
|
}
|
|
38
38
|
], usesInheritance: true, ngImport: i0 });
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
41
41
|
type: Directive,
|
|
42
42
|
args: [{
|
|
43
43
|
providers: [
|
|
@@ -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: '25.0.0
|
|
305
|
+
publishDate: 1786525872,
|
|
306
|
+
version: '25.0.0',
|
|
307
307
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
308
308
|
};
|
|
309
309
|
|
|
@@ -327,10 +327,10 @@ class PopoverTitleTemplateDirective {
|
|
|
327
327
|
constructor(templateRef) {
|
|
328
328
|
this.templateRef = templateRef;
|
|
329
329
|
}
|
|
330
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
331
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
330
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverTitleTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
331
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", type: PopoverTitleTemplateDirective, isStandalone: true, selector: "[kendoPopoverTitleTemplate]", ngImport: i0 });
|
|
332
332
|
}
|
|
333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverTitleTemplateDirective, decorators: [{
|
|
334
334
|
type: Directive,
|
|
335
335
|
args: [{
|
|
336
336
|
selector: '[kendoPopoverTitleTemplate]',
|
|
@@ -360,10 +360,10 @@ class PopoverBodyTemplateDirective {
|
|
|
360
360
|
constructor(templateRef) {
|
|
361
361
|
this.templateRef = templateRef;
|
|
362
362
|
}
|
|
363
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
364
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverBodyTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
364
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", type: PopoverBodyTemplateDirective, isStandalone: true, selector: "[kendoPopoverBodyTemplate]", ngImport: i0 });
|
|
365
365
|
}
|
|
366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverBodyTemplateDirective, decorators: [{
|
|
367
367
|
type: Directive,
|
|
368
368
|
args: [{
|
|
369
369
|
selector: '[kendoPopoverBodyTemplate]',
|
|
@@ -393,10 +393,10 @@ class PopoverActionsTemplateDirective {
|
|
|
393
393
|
constructor(templateRef) {
|
|
394
394
|
this.templateRef = templateRef;
|
|
395
395
|
}
|
|
396
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
397
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
396
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverActionsTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
397
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", type: PopoverActionsTemplateDirective, isStandalone: true, selector: "[kendoPopoverActionsTemplate]", ngImport: i0 });
|
|
398
398
|
}
|
|
399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverActionsTemplateDirective, decorators: [{
|
|
400
400
|
type: Directive,
|
|
401
401
|
args: [{
|
|
402
402
|
selector: '[kendoPopoverActionsTemplate]',
|
|
@@ -427,6 +427,32 @@ class PopoverComponent {
|
|
|
427
427
|
* @hidden
|
|
428
428
|
*/
|
|
429
429
|
anchor;
|
|
430
|
+
/**
|
|
431
|
+
* Specifies CSS classes to apply to the Popover element.
|
|
432
|
+
* Supports the same values as [ngClass](https://angular.dev/api/common/NgClass).
|
|
433
|
+
*/
|
|
434
|
+
popupClass;
|
|
435
|
+
/**
|
|
436
|
+
* Provides screen boundary detection when the Popover is shown.
|
|
437
|
+
*/
|
|
438
|
+
set collision(value) {
|
|
439
|
+
this._collision.set(value);
|
|
440
|
+
}
|
|
441
|
+
get collision() {
|
|
442
|
+
return this._collision();
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Configures the popup settings for the Popover.
|
|
446
|
+
* Accepts a `PopupSettings` object with `popupClass` and `collision` properties.
|
|
447
|
+
*/
|
|
448
|
+
set popupSettings(value) {
|
|
449
|
+
if (value?.popupClass !== undefined) {
|
|
450
|
+
this.popupClass = value.popupClass;
|
|
451
|
+
}
|
|
452
|
+
if (value?.collision !== undefined) {
|
|
453
|
+
this._collision.set(value.collision);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
430
456
|
/**
|
|
431
457
|
* Specifies the position of the Popover relative to its anchor element. [See example](https://www.telerik.com/kendo-angular-ui/components/tooltips/popover/positioning).
|
|
432
458
|
*
|
|
@@ -631,6 +657,7 @@ class PopoverComponent {
|
|
|
631
657
|
* @hidden
|
|
632
658
|
*/
|
|
633
659
|
popoverId = '';
|
|
660
|
+
_collision = signal(null, ...(ngDevMode ? [{ debugName: "_collision" }] : []));
|
|
634
661
|
_position = signal('right', ...(ngDevMode ? [{ debugName: "_position" }] : []));
|
|
635
662
|
_offset = signal(6, ...(ngDevMode ? [{ debugName: "_offset" }] : []));
|
|
636
663
|
_widthValue = signal('auto', ...(ngDevMode ? [{ debugName: "_widthValue" }] : []));
|
|
@@ -726,8 +753,8 @@ class PopoverComponent {
|
|
|
726
753
|
this.renderer.setAttribute(wrapper, 'id', this.popoverId);
|
|
727
754
|
this.renderer.setAttribute(wrapper, 'role', focusablePopoverChildren.length > 0 ? 'dialog' : 'tooltip');
|
|
728
755
|
}
|
|
729
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
730
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
756
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
757
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.27", type: PopoverComponent, isStandalone: true, selector: "kendo-popover", inputs: { popupClass: "popupClass", collision: "collision", popupSettings: "popupSettings", position: "position", offset: "offset", width: "width", height: "height", title: "title", subtitle: "subtitle", body: "body", callout: "callout", animation: "animation", templateData: "templateData" }, outputs: { show: "show", shown: "shown", hide: "hide", hidden: "hidden", closeOnKeyDown: "closeOnKeyDown" }, host: { properties: { "attr.dir": "this.direction", "class.k-hidden": "this.isHidden", "attr.aria-hidden": "this.hasAttributeHidden", "style.width": "this._width", "style.height": "this._height" } }, providers: [
|
|
731
758
|
LocalizationService,
|
|
732
759
|
{
|
|
733
760
|
provide: L10N_PREFIX,
|
|
@@ -735,7 +762,7 @@ class PopoverComponent {
|
|
|
735
762
|
}
|
|
736
763
|
], queries: [{ propertyName: "titleTemplate", first: true, predicate: PopoverTitleTemplateDirective, descendants: true }, { propertyName: "bodyTemplate", first: true, predicate: PopoverBodyTemplateDirective, descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: PopoverActionsTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "popoverWrapper", first: true, predicate: ["popoverWrapper"], descendants: true }, { propertyName: "titleTemplateWrapper", first: true, predicate: ["titleTemplateWrapper"], descendants: true }, { propertyName: "bodyTemplateWrapper", first: true, predicate: ["bodyTemplateWrapper"], descendants: true }], ngImport: i0, template: `
|
|
737
764
|
@if (visible) {
|
|
738
|
-
<div #popoverWrapper class="k-popover k-popup" [ngStyle]="{'width': width, 'height': height}">
|
|
765
|
+
<div #popoverWrapper class="k-popover k-popup" [ngClass]="popupClass" [ngStyle]="{'width': width, 'height': height}">
|
|
739
766
|
@if (callout) {
|
|
740
767
|
<div class="k-popover-callout" [ngClass]="getCalloutPosition()"></div>
|
|
741
768
|
}
|
|
@@ -823,7 +850,7 @@ class PopoverComponent {
|
|
|
823
850
|
}
|
|
824
851
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
825
852
|
}
|
|
826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverComponent, decorators: [{
|
|
827
854
|
type: Component,
|
|
828
855
|
args: [{
|
|
829
856
|
selector: 'kendo-popover',
|
|
@@ -836,7 +863,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
836
863
|
],
|
|
837
864
|
template: `
|
|
838
865
|
@if (visible) {
|
|
839
|
-
<div #popoverWrapper class="k-popover k-popup" [ngStyle]="{'width': width, 'height': height}">
|
|
866
|
+
<div #popoverWrapper class="k-popover k-popup" [ngClass]="popupClass" [ngStyle]="{'width': width, 'height': height}">
|
|
840
867
|
@if (callout) {
|
|
841
868
|
<div class="k-popover-callout" [ngClass]="getCalloutPosition()"></div>
|
|
842
869
|
}
|
|
@@ -927,7 +954,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
927
954
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
928
955
|
imports: [NgStyle, NgClass, NgTemplateOutlet]
|
|
929
956
|
}]
|
|
930
|
-
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: {
|
|
957
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { popupClass: [{
|
|
958
|
+
type: Input
|
|
959
|
+
}], collision: [{
|
|
960
|
+
type: Input
|
|
961
|
+
}], popupSettings: [{
|
|
962
|
+
type: Input
|
|
963
|
+
}], position: [{
|
|
931
964
|
type: Input
|
|
932
965
|
}], offset: [{
|
|
933
966
|
type: Input
|
|
@@ -993,6 +1026,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
993
1026
|
}] } });
|
|
994
1027
|
|
|
995
1028
|
const validShowOptions = ['hover', 'click', 'none', 'focus'];
|
|
1029
|
+
const flipMap = {
|
|
1030
|
+
top: { vertical: 'bottom', horizontal: 'top' },
|
|
1031
|
+
bottom: { vertical: 'top', horizontal: 'bottom' },
|
|
1032
|
+
left: { horizontal: 'right', vertical: 'left' },
|
|
1033
|
+
right: { horizontal: 'left', vertical: 'right' }
|
|
1034
|
+
};
|
|
996
1035
|
/**
|
|
997
1036
|
* @hidden
|
|
998
1037
|
*/
|
|
@@ -1125,6 +1164,7 @@ class PopoverDirectivesBase {
|
|
|
1125
1164
|
const popupAlign = alignSettings.popupAlign;
|
|
1126
1165
|
const popupMargin = alignSettings.popupMargin;
|
|
1127
1166
|
const _animation = popoverComp.animation;
|
|
1167
|
+
const _collision = (popoverComp.collision || { horizontal: 'flip', vertical: 'flip' });
|
|
1128
1168
|
this.popupRef = this.popupService.open({
|
|
1129
1169
|
anchor: { nativeElement: this.anchor },
|
|
1130
1170
|
animate: _animation,
|
|
@@ -1132,7 +1172,7 @@ class PopoverDirectivesBase {
|
|
|
1132
1172
|
popupAlign,
|
|
1133
1173
|
anchorAlign,
|
|
1134
1174
|
margin: popupMargin,
|
|
1135
|
-
collision:
|
|
1175
|
+
collision: _collision
|
|
1136
1176
|
});
|
|
1137
1177
|
const popupInstance = this.popupRef.content.instance;
|
|
1138
1178
|
// Avoid adding the default k-popup class which leads to visual and rendering discrepancies
|
|
@@ -1154,6 +1194,20 @@ class PopoverDirectivesBase {
|
|
|
1154
1194
|
this.hide();
|
|
1155
1195
|
}));
|
|
1156
1196
|
this.applySettings(this.popupRef.content, popoverComp);
|
|
1197
|
+
this._popupSubs.add(this.popupRef.popupPositionChange.subscribe(({ flip }) => {
|
|
1198
|
+
const configuredPos = popoverComp.position;
|
|
1199
|
+
let actualPos = configuredPos;
|
|
1200
|
+
if (flip.horizontal) {
|
|
1201
|
+
actualPos = flipMap[actualPos].horizontal;
|
|
1202
|
+
}
|
|
1203
|
+
if (flip.vertical) {
|
|
1204
|
+
actualPos = flipMap[actualPos].vertical;
|
|
1205
|
+
}
|
|
1206
|
+
if (actualPos !== popupInstance.position) {
|
|
1207
|
+
popupInstance.position = actualPos;
|
|
1208
|
+
this.popupRef.content.changeDetectorRef.detectChanges();
|
|
1209
|
+
}
|
|
1210
|
+
}));
|
|
1157
1211
|
this.monitorPopup();
|
|
1158
1212
|
this.initializeCompletionEvents(popoverComp, this.anchor);
|
|
1159
1213
|
}
|
|
@@ -1198,6 +1252,7 @@ class PopoverDirectivesBase {
|
|
|
1198
1252
|
content.visible = true;
|
|
1199
1253
|
content.anchor = this.anchor;
|
|
1200
1254
|
content.position = popover.position;
|
|
1255
|
+
content.popupClass = popover.popupClass;
|
|
1201
1256
|
content.offset = popover.offset;
|
|
1202
1257
|
content.width = popover.width;
|
|
1203
1258
|
content.height = popover.height;
|
|
@@ -1290,10 +1345,10 @@ class PopoverDirectivesBase {
|
|
|
1290
1345
|
}
|
|
1291
1346
|
return false;
|
|
1292
1347
|
}
|
|
1293
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1294
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
1348
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverDirectivesBase, deps: [{ token: i0.NgZone }, { token: i1$1.PopupService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1349
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", type: PopoverDirectivesBase, isStandalone: true, inputs: { popover: "popover", showOn: "showOn" }, ngImport: i0 });
|
|
1295
1350
|
}
|
|
1296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverDirectivesBase, decorators: [{
|
|
1297
1352
|
type: Directive,
|
|
1298
1353
|
args: [{}]
|
|
1299
1354
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i1$1.PopupService }, { type: i0.Renderer2 }], propDecorators: { popover: [{
|
|
@@ -1359,10 +1414,10 @@ class PopoverService {
|
|
|
1359
1414
|
this._hidePopover.next([isPopoverHovered, isAnchorHovered, this._isOrigin, this.currentAnchor]);
|
|
1360
1415
|
}));
|
|
1361
1416
|
}
|
|
1362
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1363
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1417
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1418
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverService });
|
|
1364
1419
|
}
|
|
1365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverService, decorators: [{
|
|
1366
1421
|
type: Injectable
|
|
1367
1422
|
}], ctorParameters: () => [{ type: i0.NgZone }] });
|
|
1368
1423
|
|
|
@@ -1511,10 +1566,10 @@ class PopoverAnchorDirective extends PopoverDirectivesBase {
|
|
|
1511
1566
|
this.hide();
|
|
1512
1567
|
}
|
|
1513
1568
|
}
|
|
1514
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1515
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
1569
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverAnchorDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.PopupService }, { token: i0.Renderer2 }, { token: PopoverService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1570
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", type: PopoverAnchorDirective, isStandalone: true, selector: "[kendoPopoverAnchor]", providers: [PopoverService], exportAs: ["kendoPopoverAnchor"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
1516
1571
|
}
|
|
1517
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverAnchorDirective, decorators: [{
|
|
1518
1573
|
type: Directive,
|
|
1519
1574
|
args: [{
|
|
1520
1575
|
selector: '[kendoPopoverAnchor]',
|
|
@@ -1685,10 +1740,10 @@ class PopoverContainerDirective extends PopoverDirectivesBase {
|
|
|
1685
1740
|
this.hide();
|
|
1686
1741
|
}
|
|
1687
1742
|
}
|
|
1688
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1689
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
1743
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverContainerDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.PopupService }, { token: i0.Renderer2 }, { token: PopoverService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1744
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", type: PopoverContainerDirective, isStandalone: true, selector: "[kendoPopoverContainer]", inputs: { filter: "filter" }, providers: [PopoverService], exportAs: ["kendoPopoverContainer"], usesInheritance: true, ngImport: i0 });
|
|
1690
1745
|
}
|
|
1691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverContainerDirective, decorators: [{
|
|
1692
1747
|
type: Directive,
|
|
1693
1748
|
args: [{
|
|
1694
1749
|
selector: '[kendoPopoverContainer]',
|
|
@@ -1872,13 +1927,14 @@ class TooltipContentComponent {
|
|
|
1872
1927
|
styles.transform = isVertical ? `rotateX(${flipDeg})` : `rotateY(${flipDeg})`;
|
|
1873
1928
|
return styles;
|
|
1874
1929
|
};
|
|
1875
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1876
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
1930
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipContentComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1931
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.27", type: TooltipContentComponent, isStandalone: true, selector: "kendo-tooltip", inputs: { tooltipWidth: "tooltipWidth", tooltipHeight: "tooltipHeight", titleTemplate: "titleTemplate", anchor: "anchor", closable: "closable", templateRef: "templateRef", templateString: "templateString" }, outputs: { close: "close" }, host: { properties: { "attr.dir": "this.direction", "class": "this.cssClasses", "attr.role": "this.hostRole", "attr.id": "this.hostId", "class.k-tooltip-closable": "this.className", "style.position": "this.cssPosition", "style.width.px": "this.tooltipWidth", "style.height.px": "this.tooltipHeight" } }, providers: [
|
|
1877
1932
|
LocalizationService,
|
|
1878
1933
|
{
|
|
1879
1934
|
provide: L10N_PREFIX,
|
|
1880
1935
|
useValue: 'kendo.tooltip'
|
|
1881
|
-
}
|
|
1936
|
+
},
|
|
1937
|
+
provideComponentName('tooltip')
|
|
1882
1938
|
], ngImport: i0, template: `
|
|
1883
1939
|
<ng-container kendoTooltipLocalizedMessages
|
|
1884
1940
|
i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"
|
|
@@ -1924,7 +1980,7 @@ class TooltipContentComponent {
|
|
|
1924
1980
|
}
|
|
1925
1981
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoTooltipLocalizedMessages]", inputs: ["closeTitle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1926
1982
|
}
|
|
1927
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipContentComponent, decorators: [{
|
|
1928
1984
|
type: Component,
|
|
1929
1985
|
args: [{
|
|
1930
1986
|
selector: 'kendo-tooltip',
|
|
@@ -1977,7 +2033,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
1977
2033
|
{
|
|
1978
2034
|
provide: L10N_PREFIX,
|
|
1979
2035
|
useValue: 'kendo.tooltip'
|
|
1980
|
-
}
|
|
2036
|
+
},
|
|
2037
|
+
provideComponentName('tooltip')
|
|
1981
2038
|
],
|
|
1982
2039
|
standalone: true,
|
|
1983
2040
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -2082,10 +2139,10 @@ class TooltipSettings {
|
|
|
2082
2139
|
* @hidden
|
|
2083
2140
|
*/
|
|
2084
2141
|
constructor() { }
|
|
2085
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2086
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2142
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipSettings, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2143
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipSettings });
|
|
2087
2144
|
}
|
|
2088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipSettings, decorators: [{
|
|
2089
2146
|
type: Injectable
|
|
2090
2147
|
}], ctorParameters: () => [] });
|
|
2091
2148
|
|
|
@@ -2360,10 +2417,10 @@ class TooltipDirective {
|
|
|
2360
2417
|
clearTimeout(this.showTimeout);
|
|
2361
2418
|
const anchor = this.anchor?.nativeElement;
|
|
2362
2419
|
if (anchor?.getAttribute('data-title')) {
|
|
2363
|
-
if (!anchor
|
|
2364
|
-
anchor
|
|
2420
|
+
if (!anchor?.getAttribute('title') && anchor?.hasAttribute('title')) {
|
|
2421
|
+
anchor?.setAttribute('title', anchor?.getAttribute('data-title'));
|
|
2365
2422
|
}
|
|
2366
|
-
anchor
|
|
2423
|
+
anchor?.setAttribute('data-title', '');
|
|
2367
2424
|
}
|
|
2368
2425
|
if (this.popupMouseOutSubscription) {
|
|
2369
2426
|
this.popupMouseOutSubscription.unsubscribe();
|
|
@@ -2622,10 +2679,10 @@ class TooltipDirective {
|
|
|
2622
2679
|
throw new Error(`Invalid value provided for showOn property.The available options are 'hover' or 'none'.`);
|
|
2623
2680
|
}
|
|
2624
2681
|
}
|
|
2625
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2626
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2682
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1$1.PopupService }, { token: i0.Injector }, { token: TooltipSettings, optional: true }, { token: TOOLTIP_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2683
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", 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", tooltipThemeColor: "tooltipThemeColor", tooltipContentClass: "tooltipContentClass", collision: "collision", closeTitle: "closeTitle", tooltipTemplate: "tooltipTemplate" }, exportAs: ["kendoTooltip"], usesOnChanges: true, ngImport: i0 });
|
|
2627
2684
|
}
|
|
2628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
2629
2686
|
type: Directive,
|
|
2630
2687
|
args: [{
|
|
2631
2688
|
selector: '[kendoTooltip]',
|
|
@@ -2781,11 +2838,11 @@ const KENDO_TOOLTIPS = [
|
|
|
2781
2838
|
* ```
|
|
2782
2839
|
*/
|
|
2783
2840
|
class TooltipModule {
|
|
2784
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2785
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
2786
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
2841
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2842
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.27", ngImport: i0, type: TooltipModule, imports: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective], exports: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective] });
|
|
2843
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipModule, providers: [PopupService, ResizeBatchService, IconsService], imports: [TooltipContentComponent] });
|
|
2787
2844
|
}
|
|
2788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipModule, decorators: [{
|
|
2789
2846
|
type: NgModule,
|
|
2790
2847
|
args: [{
|
|
2791
2848
|
imports: [...KENDO_TOOLTIP],
|
|
@@ -2814,11 +2871,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
2814
2871
|
* ```
|
|
2815
2872
|
*/
|
|
2816
2873
|
class PopoverModule {
|
|
2817
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2818
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
2819
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
2874
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2875
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.27", ngImport: i0, type: PopoverModule, imports: [PopoverComponent, PopoverActionsTemplateDirective, PopoverBodyTemplateDirective, PopoverTitleTemplateDirective, PopoverAnchorDirective, PopoverContainerDirective], exports: [PopoverComponent, PopoverActionsTemplateDirective, PopoverBodyTemplateDirective, PopoverTitleTemplateDirective, PopoverAnchorDirective, PopoverContainerDirective] });
|
|
2876
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverModule, providers: [PopupService, ResizeBatchService] });
|
|
2820
2877
|
}
|
|
2821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PopoverModule, decorators: [{
|
|
2822
2879
|
type: NgModule,
|
|
2823
2880
|
args: [{
|
|
2824
2881
|
exports: [...KENDO_POPOVER],
|
|
@@ -2847,11 +2904,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
2847
2904
|
* ```
|
|
2848
2905
|
*/
|
|
2849
2906
|
class TooltipsModule {
|
|
2850
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2851
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
2852
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
2907
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2908
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.27", ngImport: i0, type: TooltipsModule, imports: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective, PopoverComponent, PopoverActionsTemplateDirective, PopoverBodyTemplateDirective, PopoverTitleTemplateDirective, PopoverAnchorDirective, PopoverContainerDirective], exports: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective, PopoverComponent, PopoverActionsTemplateDirective, PopoverBodyTemplateDirective, PopoverTitleTemplateDirective, PopoverAnchorDirective, PopoverContainerDirective] });
|
|
2909
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipsModule, providers: [PopupService, ResizeBatchService, IconsService], imports: [TooltipContentComponent] });
|
|
2853
2910
|
}
|
|
2854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: TooltipsModule, decorators: [{
|
|
2855
2912
|
type: NgModule,
|
|
2856
2913
|
args: [{
|
|
2857
2914
|
imports: [...KENDO_TOOLTIPS],
|
package/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { ComponentMessages, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
7
|
import { TemplateRef, OnInit, OnDestroy, EventEmitter, ElementRef, Renderer2, NgZone, ComponentRef, SimpleChanges, ChangeDetectorRef, InjectionToken, OnChanges, AfterViewChecked, Injector } from '@angular/core';
|
|
8
|
-
import { PopupRef, PopupAnimation,
|
|
8
|
+
import { PopupRef, PopupAnimation, Collision, PopupService } from '@progress/kendo-angular-popup';
|
|
9
9
|
import { PreventableEvent } from '@progress/kendo-angular-common';
|
|
10
10
|
import { Observable, Subscription } from 'rxjs';
|
|
11
11
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
@@ -177,6 +177,21 @@ declare class PopoverHiddenEvent {
|
|
|
177
177
|
*/
|
|
178
178
|
type PopoverAnimation = PopupAnimation | boolean;
|
|
179
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Configures the popup settings for the Popover component.
|
|
182
|
+
*/
|
|
183
|
+
interface PopupSettings {
|
|
184
|
+
/**
|
|
185
|
+
* Specifies CSS classes to apply to the Popup element of the Popover.
|
|
186
|
+
* Supports the same values as [ngClass](https://angular.dev/api/common/NgClass).
|
|
187
|
+
*/
|
|
188
|
+
popupClass?: string | string[] | Set<string>;
|
|
189
|
+
/**
|
|
190
|
+
* Provides screen boundary detection when the Popover is shown.
|
|
191
|
+
*/
|
|
192
|
+
collision?: Collision;
|
|
193
|
+
}
|
|
194
|
+
|
|
180
195
|
/**
|
|
181
196
|
* Represents the [Kendo UI Popover component for Angular](https://www.telerik.com/kendo-angular-ui/components/tooltips/popover).
|
|
182
197
|
* Displays additional information related to a target element.
|
|
@@ -198,6 +213,21 @@ declare class PopoverComponent implements OnInit, OnDestroy {
|
|
|
198
213
|
* @hidden
|
|
199
214
|
*/
|
|
200
215
|
anchor: Element;
|
|
216
|
+
/**
|
|
217
|
+
* Specifies CSS classes to apply to the Popover element.
|
|
218
|
+
* Supports the same values as [ngClass](https://angular.dev/api/common/NgClass).
|
|
219
|
+
*/
|
|
220
|
+
popupClass: string | string[] | Set<string>;
|
|
221
|
+
/**
|
|
222
|
+
* Provides screen boundary detection when the Popover is shown.
|
|
223
|
+
*/
|
|
224
|
+
set collision(value: Collision);
|
|
225
|
+
get collision(): Collision;
|
|
226
|
+
/**
|
|
227
|
+
* Configures the popup settings for the Popover.
|
|
228
|
+
* Accepts a `PopupSettings` object with `popupClass` and `collision` properties.
|
|
229
|
+
*/
|
|
230
|
+
set popupSettings(value: PopupSettings);
|
|
201
231
|
/**
|
|
202
232
|
* Specifies the position of the Popover relative to its anchor element. [See example](https://www.telerik.com/kendo-angular-ui/components/tooltips/popover/positioning).
|
|
203
233
|
*
|
|
@@ -344,6 +374,7 @@ declare class PopoverComponent implements OnInit, OnDestroy {
|
|
|
344
374
|
* @hidden
|
|
345
375
|
*/
|
|
346
376
|
popoverId: string;
|
|
377
|
+
private _collision;
|
|
347
378
|
private _position;
|
|
348
379
|
private _offset;
|
|
349
380
|
private _widthValue;
|
|
@@ -370,7 +401,7 @@ declare class PopoverComponent implements OnInit, OnDestroy {
|
|
|
370
401
|
private keepFocusWithinComponent;
|
|
371
402
|
private setAriaAttributes;
|
|
372
403
|
static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, never>;
|
|
373
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "kendo-popover", never, { "position": { "alias": "position"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "body": { "alias": "body"; "required": false; }; "callout": { "alias": "callout"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "templateData": { "alias": "templateData"; "required": false; }; }, { "show": "show"; "shown": "shown"; "hide": "hide"; "hidden": "hidden"; "closeOnKeyDown": "closeOnKeyDown"; }, ["titleTemplate", "bodyTemplate", "actionsTemplate"], never, true, never>;
|
|
404
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "kendo-popover", never, { "popupClass": { "alias": "popupClass"; "required": false; }; "collision": { "alias": "collision"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "position": { "alias": "position"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "body": { "alias": "body"; "required": false; }; "callout": { "alias": "callout"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "templateData": { "alias": "templateData"; "required": false; }; }, { "show": "show"; "shown": "shown"; "hide": "hide"; "hidden": "hidden"; "closeOnKeyDown": "closeOnKeyDown"; }, ["titleTemplate", "bodyTemplate", "actionsTemplate"], never, true, never>;
|
|
374
405
|
}
|
|
375
406
|
|
|
376
407
|
/**
|
|
@@ -1068,4 +1099,4 @@ declare class TooltipsModule {
|
|
|
1068
1099
|
}
|
|
1069
1100
|
|
|
1070
1101
|
export { KENDO_POPOVER, KENDO_TOOLTIP, KENDO_TOOLTIPS, LocalizedMessagesDirective, PopoverActionsTemplateDirective, PopoverAnchorDirective, PopoverBodyTemplateDirective, PopoverComponent, PopoverContainerDirective, PopoverHiddenEvent, PopoverHideEvent, PopoverModule, PopoverShowEvent, PopoverShownEvent, PopoverTitleTemplateDirective, TOOLTIP_SETTINGS, TooltipContentComponent, TooltipDirective, TooltipModule, TooltipSettings, TooltipsModule };
|
|
1071
|
-
export type { PopoverAnimation, PopoverDataFn, PopoverFn, PopoverShowOption, Position, ShowOption, TooltipThemeColor };
|
|
1102
|
+
export type { PopoverAnimation, PopoverDataFn, PopoverFn, PopoverShowOption, PopupSettings, Position, ShowOption, TooltipThemeColor };
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "25.0.0
|
|
10
|
+
"publishDate": 1786525872,
|
|
11
|
+
"version": "25.0.0",
|
|
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": "25.0.0
|
|
3
|
+
"version": "25.0.0",
|
|
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",
|
|
@@ -30,13 +30,20 @@
|
|
|
30
30
|
"file": "codemods/v24/tooltip-rendering-changes.js",
|
|
31
31
|
"instructionsOnly": true
|
|
32
32
|
}
|
|
33
|
+
],
|
|
34
|
+
"25": [
|
|
35
|
+
{
|
|
36
|
+
"description": "The Tooltip has rendering changes that may affect custom styling.",
|
|
37
|
+
"file": "codemods/v25/tooltip-rendering-changes.js",
|
|
38
|
+
"instructionsOnly": true
|
|
39
|
+
}
|
|
33
40
|
]
|
|
34
41
|
}
|
|
35
42
|
},
|
|
36
43
|
"package": {
|
|
37
44
|
"productName": "Kendo UI for Angular",
|
|
38
45
|
"productCode": "KENDOUIANGULAR",
|
|
39
|
-
"publishDate":
|
|
46
|
+
"publishDate": 1786525872,
|
|
40
47
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
41
48
|
}
|
|
42
49
|
},
|
|
@@ -46,15 +53,15 @@
|
|
|
46
53
|
"@angular/core": "20 - 22",
|
|
47
54
|
"@angular/platform-browser": "20 - 22",
|
|
48
55
|
"@progress/kendo-licensing": "^1.11.0",
|
|
49
|
-
"@progress/kendo-angular-common": "25.0.0
|
|
50
|
-
"@progress/kendo-angular-l10n": "25.0.0
|
|
51
|
-
"@progress/kendo-angular-popup": "25.0.0
|
|
52
|
-
"@progress/kendo-angular-icons": "25.0.0
|
|
56
|
+
"@progress/kendo-angular-common": "25.0.0",
|
|
57
|
+
"@progress/kendo-angular-l10n": "25.0.0",
|
|
58
|
+
"@progress/kendo-angular-popup": "25.0.0",
|
|
59
|
+
"@progress/kendo-angular-icons": "25.0.0",
|
|
53
60
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
54
61
|
},
|
|
55
62
|
"dependencies": {
|
|
56
63
|
"tslib": "^2.3.1",
|
|
57
|
-
"@progress/kendo-angular-schematics": "25.0.0
|
|
64
|
+
"@progress/kendo-angular-schematics": "25.0.0"
|
|
58
65
|
},
|
|
59
66
|
"schematics": "./schematics/collection.json",
|
|
60
67
|
"module": "fesm2022/progress-kendo-angular-tooltip.mjs",
|