@progress/kendo-angular-tooltip 3.1.3 → 3.1.4-dev.202201241132
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/dist/cdn/js/kendo-angular-tooltip.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/index.metadata.json +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/popover/anchor.directive.js +8 -2
- package/dist/es/popover/container.directive.js +8 -2
- package/dist/es/popover/directives-base.d.ts +3 -2
- package/dist/es/popover/directives-base.js +32 -25
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/popover/anchor.directive.js +7 -2
- package/dist/es2015/popover/container.directive.js +7 -2
- package/dist/es2015/popover/directives-base.d.ts +3 -2
- package/dist/es2015/popover/directives-base.js +32 -24
- package/dist/fesm2015/index.js +45 -26
- package/dist/fesm5/index.js +47 -27
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/popover/anchor.directive.js +7 -1
- package/dist/npm/popover/container.directive.js +7 -1
- package/dist/npm/popover/directives-base.js +32 -25
- package/dist/systemjs/kendo-angular-tooltip.js +1 -1
- package/package.json +9 -9
package/dist/fesm5/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var packageMetadata = {
|
|
|
19
19
|
name: '@progress/kendo-angular-tooltip',
|
|
20
20
|
productName: 'Kendo UI for Angular',
|
|
21
21
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
22
|
-
publishDate:
|
|
22
|
+
publishDate: 1643023857,
|
|
23
23
|
version: '',
|
|
24
24
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
25
25
|
};
|
|
@@ -1360,7 +1360,6 @@ var PopoverDirectivesBase = /** @class */ (function () {
|
|
|
1360
1360
|
* @hidden
|
|
1361
1361
|
*/
|
|
1362
1362
|
PopoverDirectivesBase.prototype.openPopup = function (anchor) {
|
|
1363
|
-
var _this = this;
|
|
1364
1363
|
var _anchor = anchor instanceof ElementRef ? anchor.nativeElement : anchor;
|
|
1365
1364
|
var popoverComp = this.popover instanceof PopoverComponent ? this.popover : this.popover(_anchor);
|
|
1366
1365
|
var alignSettings = align(popoverComp.position, popoverComp.offset);
|
|
@@ -1368,29 +1367,19 @@ var PopoverDirectivesBase = /** @class */ (function () {
|
|
|
1368
1367
|
var popupAlign = alignSettings.popupAlign;
|
|
1369
1368
|
var popupMargin = alignSettings.popupMargin;
|
|
1370
1369
|
var _animation = popoverComp.animation;
|
|
1371
|
-
this.
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
collision: { horizontal: 'fit', vertical: 'fit' }
|
|
1381
|
-
});
|
|
1382
|
-
var popoverInstance = _this.popupRef.content.instance;
|
|
1383
|
-
Object.assign(popoverInstance, popoverComp);
|
|
1384
|
-
popoverInstance.anchor = anchor;
|
|
1385
|
-
popoverInstance.contextData = popoverInstance.templateData(anchor);
|
|
1386
|
-
popoverInstance.visible = true;
|
|
1387
|
-
_this.popupRef.content.changeDetectorRef.detectChanges();
|
|
1388
|
-
_this.monitorPopup();
|
|
1389
|
-
_this.initializeFinishingEvents(popoverComp, _anchor);
|
|
1370
|
+
this.popupRef = this.popupService.open({
|
|
1371
|
+
anchor: { nativeElement: _anchor },
|
|
1372
|
+
animate: _animation,
|
|
1373
|
+
content: PopoverComponent,
|
|
1374
|
+
popupAlign: popupAlign,
|
|
1375
|
+
anchorAlign: anchorAlign,
|
|
1376
|
+
margin: popupMargin,
|
|
1377
|
+
popupClass: 'k-popup-transparent',
|
|
1378
|
+
collision: { horizontal: 'fit', vertical: 'fit' }
|
|
1390
1379
|
});
|
|
1391
|
-
this.popupRef.
|
|
1392
|
-
|
|
1393
|
-
|
|
1380
|
+
this.applySettings(this.popupRef.content, popoverComp, anchor);
|
|
1381
|
+
this.monitorPopup();
|
|
1382
|
+
this.initializeCompletionEvents(popoverComp, _anchor);
|
|
1394
1383
|
};
|
|
1395
1384
|
/**
|
|
1396
1385
|
* @hidden
|
|
@@ -1429,6 +1418,25 @@ var PopoverDirectivesBase = /** @class */ (function () {
|
|
|
1429
1418
|
});
|
|
1430
1419
|
}
|
|
1431
1420
|
};
|
|
1421
|
+
PopoverDirectivesBase.prototype.applySettings = function (contentComponent, popover, anchor) {
|
|
1422
|
+
var content = contentComponent.instance;
|
|
1423
|
+
var _anchor = anchor instanceof ElementRef ? anchor.nativeElement : anchor;
|
|
1424
|
+
content.visible = true;
|
|
1425
|
+
content.anchor = _anchor;
|
|
1426
|
+
content.position = popover.position;
|
|
1427
|
+
content.offset = popover.offset;
|
|
1428
|
+
content.width = popover.width;
|
|
1429
|
+
content.height = popover.height;
|
|
1430
|
+
content.title = popover.title;
|
|
1431
|
+
content.body = popover.body;
|
|
1432
|
+
content.callout = popover.callout;
|
|
1433
|
+
content.animation = popover.animation;
|
|
1434
|
+
content.contextData = popover.templateData(_anchor);
|
|
1435
|
+
content.titleTemplate = popover.titleTemplate;
|
|
1436
|
+
content.bodyTemplate = popover.bodyTemplate;
|
|
1437
|
+
content.actionsTemplate = popover.actionsTemplate;
|
|
1438
|
+
this.popupRef.content.changeDetectorRef.detectChanges();
|
|
1439
|
+
};
|
|
1432
1440
|
/**
|
|
1433
1441
|
* @hidden
|
|
1434
1442
|
*/
|
|
@@ -1452,7 +1460,7 @@ var PopoverDirectivesBase = /** @class */ (function () {
|
|
|
1452
1460
|
}
|
|
1453
1461
|
return eventArgs;
|
|
1454
1462
|
};
|
|
1455
|
-
PopoverDirectivesBase.prototype.
|
|
1463
|
+
PopoverDirectivesBase.prototype.initializeCompletionEvents = function (popoverComp, _anchor) {
|
|
1456
1464
|
var _this = this;
|
|
1457
1465
|
if (!this._popupOpenSub) {
|
|
1458
1466
|
this.popupRef.popupOpen.subscribe(function () {
|
|
@@ -1636,10 +1644,16 @@ var PopoverContainerDirective = /** @class */ (function (_super) {
|
|
|
1636
1644
|
* @param anchor—Specifies the element that will be used as an anchor. The Popover opens relative to that element. [See example]({% slug programmaticcontrol_popover %})
|
|
1637
1645
|
*/
|
|
1638
1646
|
PopoverContainerDirective.prototype.show = function (anchor) {
|
|
1647
|
+
var _this = this;
|
|
1639
1648
|
if (this.popupRef) {
|
|
1640
1649
|
return;
|
|
1641
1650
|
}
|
|
1642
|
-
this.
|
|
1651
|
+
this.ngZone.run(function () {
|
|
1652
|
+
_this.openPopup(anchor);
|
|
1653
|
+
});
|
|
1654
|
+
this.popupRef.popupAnchorViewportLeave
|
|
1655
|
+
.pipe(take(1))
|
|
1656
|
+
.subscribe(function () { return _this.hide(); });
|
|
1643
1657
|
};
|
|
1644
1658
|
/**
|
|
1645
1659
|
* Toggles the visibility of the Popover. [See example]({% slug programmaticcontrol_popover %})
|
|
@@ -1789,10 +1803,16 @@ var PopoverAnchorDirective = /** @class */ (function (_super) {
|
|
|
1789
1803
|
* Shows the Popover. [See example]({% slug programmaticcontrol_popover %})
|
|
1790
1804
|
*/
|
|
1791
1805
|
PopoverAnchorDirective.prototype.show = function () {
|
|
1806
|
+
var _this = this;
|
|
1792
1807
|
if (this.popupRef) {
|
|
1793
1808
|
return;
|
|
1794
1809
|
}
|
|
1795
|
-
this.
|
|
1810
|
+
this.ngZone.run(function () {
|
|
1811
|
+
_this.openPopup(_this.hostEl);
|
|
1812
|
+
});
|
|
1813
|
+
this.popupRef.popupAnchorViewportLeave
|
|
1814
|
+
.pipe(take(1))
|
|
1815
|
+
.subscribe(function () { return _this.hide(); });
|
|
1796
1816
|
};
|
|
1797
1817
|
/**
|
|
1798
1818
|
* Toggles the visibility of the Popover. [See example]({% slug programmaticcontrol_popover %})
|
|
@@ -11,7 +11,7 @@ exports.packageMetadata = {
|
|
|
11
11
|
name: '@progress/kendo-angular-tooltip',
|
|
12
12
|
productName: 'Kendo UI for Angular',
|
|
13
13
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
-
publishDate:
|
|
14
|
+
publishDate: 1643023857,
|
|
15
15
|
version: '',
|
|
16
16
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
17
17
|
};
|
|
@@ -74,10 +74,16 @@ var PopoverAnchorDirective = /** @class */ (function (_super) {
|
|
|
74
74
|
* Shows the Popover. [See example]({% slug programmaticcontrol_popover %})
|
|
75
75
|
*/
|
|
76
76
|
PopoverAnchorDirective.prototype.show = function () {
|
|
77
|
+
var _this = this;
|
|
77
78
|
if (this.popupRef) {
|
|
78
79
|
return;
|
|
79
80
|
}
|
|
80
|
-
this.
|
|
81
|
+
this.ngZone.run(function () {
|
|
82
|
+
_this.openPopup(_this.hostEl);
|
|
83
|
+
});
|
|
84
|
+
this.popupRef.popupAnchorViewportLeave
|
|
85
|
+
.pipe(operators_1.take(1))
|
|
86
|
+
.subscribe(function () { return _this.hide(); });
|
|
81
87
|
};
|
|
82
88
|
/**
|
|
83
89
|
* Toggles the visibility of the Popover. [See example]({% slug programmaticcontrol_popover %})
|
|
@@ -86,10 +86,16 @@ var PopoverContainerDirective = /** @class */ (function (_super) {
|
|
|
86
86
|
* @param anchor—Specifies the element that will be used as an anchor. The Popover opens relative to that element. [See example]({% slug programmaticcontrol_popover %})
|
|
87
87
|
*/
|
|
88
88
|
PopoverContainerDirective.prototype.show = function (anchor) {
|
|
89
|
+
var _this = this;
|
|
89
90
|
if (this.popupRef) {
|
|
90
91
|
return;
|
|
91
92
|
}
|
|
92
|
-
this.
|
|
93
|
+
this.ngZone.run(function () {
|
|
94
|
+
_this.openPopup(anchor);
|
|
95
|
+
});
|
|
96
|
+
this.popupRef.popupAnchorViewportLeave
|
|
97
|
+
.pipe(operators_1.take(1))
|
|
98
|
+
.subscribe(function () { return _this.hide(); });
|
|
93
99
|
};
|
|
94
100
|
/**
|
|
95
101
|
* Toggles the visibility of the Popover. [See example]({% slug programmaticcontrol_popover %})
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
var tslib_1 = require("tslib");
|
|
8
8
|
var core_1 = require("@angular/core");
|
|
9
|
-
var operators_1 = require("rxjs/operators");
|
|
10
9
|
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
11
10
|
var constants_1 = require("../constants");
|
|
12
11
|
var events_1 = require("../models/events");
|
|
@@ -153,7 +152,6 @@ var PopoverDirectivesBase = /** @class */ (function () {
|
|
|
153
152
|
* @hidden
|
|
154
153
|
*/
|
|
155
154
|
PopoverDirectivesBase.prototype.openPopup = function (anchor) {
|
|
156
|
-
var _this = this;
|
|
157
155
|
var _anchor = anchor instanceof core_1.ElementRef ? anchor.nativeElement : anchor;
|
|
158
156
|
var popoverComp = this.popover instanceof popover_component_1.PopoverComponent ? this.popover : this.popover(_anchor);
|
|
159
157
|
var alignSettings = utils_1.align(popoverComp.position, popoverComp.offset);
|
|
@@ -161,29 +159,19 @@ var PopoverDirectivesBase = /** @class */ (function () {
|
|
|
161
159
|
var popupAlign = alignSettings.popupAlign;
|
|
162
160
|
var popupMargin = alignSettings.popupMargin;
|
|
163
161
|
var _animation = popoverComp.animation;
|
|
164
|
-
this.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
collision: { horizontal: 'fit', vertical: 'fit' }
|
|
174
|
-
});
|
|
175
|
-
var popoverInstance = _this.popupRef.content.instance;
|
|
176
|
-
Object.assign(popoverInstance, popoverComp);
|
|
177
|
-
popoverInstance.anchor = anchor;
|
|
178
|
-
popoverInstance.contextData = popoverInstance.templateData(anchor);
|
|
179
|
-
popoverInstance.visible = true;
|
|
180
|
-
_this.popupRef.content.changeDetectorRef.detectChanges();
|
|
181
|
-
_this.monitorPopup();
|
|
182
|
-
_this.initializeFinishingEvents(popoverComp, _anchor);
|
|
162
|
+
this.popupRef = this.popupService.open({
|
|
163
|
+
anchor: { nativeElement: _anchor },
|
|
164
|
+
animate: _animation,
|
|
165
|
+
content: popover_component_1.PopoverComponent,
|
|
166
|
+
popupAlign: popupAlign,
|
|
167
|
+
anchorAlign: anchorAlign,
|
|
168
|
+
margin: popupMargin,
|
|
169
|
+
popupClass: 'k-popup-transparent',
|
|
170
|
+
collision: { horizontal: 'fit', vertical: 'fit' }
|
|
183
171
|
});
|
|
184
|
-
this.popupRef.
|
|
185
|
-
|
|
186
|
-
|
|
172
|
+
this.applySettings(this.popupRef.content, popoverComp, anchor);
|
|
173
|
+
this.monitorPopup();
|
|
174
|
+
this.initializeCompletionEvents(popoverComp, _anchor);
|
|
187
175
|
};
|
|
188
176
|
/**
|
|
189
177
|
* @hidden
|
|
@@ -222,6 +210,25 @@ var PopoverDirectivesBase = /** @class */ (function () {
|
|
|
222
210
|
});
|
|
223
211
|
}
|
|
224
212
|
};
|
|
213
|
+
PopoverDirectivesBase.prototype.applySettings = function (contentComponent, popover, anchor) {
|
|
214
|
+
var content = contentComponent.instance;
|
|
215
|
+
var _anchor = anchor instanceof core_1.ElementRef ? anchor.nativeElement : anchor;
|
|
216
|
+
content.visible = true;
|
|
217
|
+
content.anchor = _anchor;
|
|
218
|
+
content.position = popover.position;
|
|
219
|
+
content.offset = popover.offset;
|
|
220
|
+
content.width = popover.width;
|
|
221
|
+
content.height = popover.height;
|
|
222
|
+
content.title = popover.title;
|
|
223
|
+
content.body = popover.body;
|
|
224
|
+
content.callout = popover.callout;
|
|
225
|
+
content.animation = popover.animation;
|
|
226
|
+
content.contextData = popover.templateData(_anchor);
|
|
227
|
+
content.titleTemplate = popover.titleTemplate;
|
|
228
|
+
content.bodyTemplate = popover.bodyTemplate;
|
|
229
|
+
content.actionsTemplate = popover.actionsTemplate;
|
|
230
|
+
this.popupRef.content.changeDetectorRef.detectChanges();
|
|
231
|
+
};
|
|
225
232
|
/**
|
|
226
233
|
* @hidden
|
|
227
234
|
*/
|
|
@@ -245,7 +252,7 @@ var PopoverDirectivesBase = /** @class */ (function () {
|
|
|
245
252
|
}
|
|
246
253
|
return eventArgs;
|
|
247
254
|
};
|
|
248
|
-
PopoverDirectivesBase.prototype.
|
|
255
|
+
PopoverDirectivesBase.prototype.initializeCompletionEvents = function (popoverComp, _anchor) {
|
|
249
256
|
var _this = this;
|
|
250
257
|
if (!this._popupOpenSub) {
|
|
251
258
|
this.popupRef.popupOpen.subscribe(function () {
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
System.register("@progress/kendo-angular-tooltip",["tslib","@angular/core","@progress/kendo-angular-popup","@angular/common","rxjs/operators","@progress/kendo-angular-common","@progress/kendo-angular-l10n","rxjs","@progress/kendo-licensing"],function(r){var s,p,a,c,u,l,d,h,v;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){p=t(e)},function(e){a=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){h=t(e)},function(e){v=t(e)}],execute:function(){function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var o,n;n={},i.m=o=[function(e,t){e.exports=s},function(e,t){e.exports=p},function(e,t){e.exports=a},function(e,t){e.exports=u},function(e,t){e.exports=l},function(e,t,o){"use strict";function n(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var o={},i={},n={};switch(e){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var o=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!n(i);){if(o(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&!n(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,o){e=e.getBoundingClientRect();return e[t]+e[o]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t){e.exports=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverActionsTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverActionsTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverBodyTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverBodyTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverTitleTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverTitleTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),s=o(6),p=o(24),a=o(23),c=o(20),u=o(9),l=o(8),o=o(7),r=(Object.defineProperty(d.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(n.isDevMode&&"function"!=typeof e)throw new Error(c.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},d.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},d.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],d.prototype,"offset",null),i.__decorate([n.HostBinding("style.width"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"width",null),i.__decorate([n.HostBinding("style.height"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"height",null),i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],d.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"title",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"subtitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"body",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],d.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],d.prototype,"animation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],d.prototype,"templateData",null),i.__decorate([n.HostBinding("class.k-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"isHidden",null),i.__decorate([n.HostBinding("attr.aria-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"hasAttributeHidden",null),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"show",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"shown",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hide",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hidden",void 0),i.__decorate([n.ContentChild(u.PopoverTitleTemplateDirective,{static:!1}),i.__metadata("design:type",u.PopoverTitleTemplateDirective)],d.prototype,"titleTemplate",void 0),i.__decorate([n.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),i.__metadata("design:type",l.PopoverBodyTemplateDirective)],d.prototype,"bodyTemplate",void 0),i.__decorate([n.ContentChild(o.PopoverActionsTemplateDirective,{static:!1}),i.__metadata("design:type",o.PopoverActionsTemplateDirective)],d.prototype,"actionsTemplate",void 0),i.__decorate([n.Component({selector:"kendo-popover",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService])],d));function d(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new n.EventEmitter,this.shown=new n.EventEmitter,this.hide=new n.EventEmitter,this.hidden=new n.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new s.Subscription,this._templateData=function(){return null},p.validatePackage(a.packageMetadata)}t.PopoverComponent=r},function(e,t){e.exports=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(13),r=o(1),s=o(2),p=o(15),a=o(19),c=o(10),u=o(9),l=o(8),a=[o(7).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],s=i.__decorate([r.NgModule({declarations:a.concat([c.PopoverComponent]),entryComponents:[c.PopoverComponent],exports:a.concat([c.PopoverComponent]),imports:[n.CommonModule,s.PopupModule]})],d);function d(){}t.PopoverModule=s},function(e,t){e.exports=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(13),s=o(25),p=o(2),a=o(21),o=o(27),o=[s.TooltipDirective,a.TooltipContentComponent,o.LocalizedMessagesDirective],p=[p.PopupModule],o=i.__decorate([n.NgModule({declarations:[o],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(p),exports:[o]})],c);function c(){}t.TooltipModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(4),r=o(2),a=o(3),c=o(18),o=o(16),o=(s=c.PopoverDirectivesBase,i.__extends(u,s),u.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},u.prototype.toggle=function(){this.popupRef?this.hide():this.show()},u.prototype.subscribeToEvents=function(t){var o=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[0].name,function(){o.popoverService.emitAnchorState(!0,o.hostEl.nativeElement),t[0].handler()})),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[1].name,function(e){o.popoverService.emitAnchorState(!1,null),t[1].handler({domEvent:e})}))},u.prototype.subscribeClick=function(){var t=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){t.onClick(e)})},u.prototype.onClick=function(e){var t=this,o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),e=!!p.closest(e.target,function(e){return e===t.hostEl.nativeElement});o||this.popupRef&&e||(e?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},u.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},i.__decorate([n.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],u));function u(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.hostEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.mouseleaveHandler=function(){r.isPrevented(r.hostEl.nativeElement,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],e=e[1];t||e||r.hide()}))},r.focusHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.blurHandler=function(e){e=e.domEvent;r.isPrevented(r.hostEl.nativeElement,!1)||(p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||r.hide()})))},r._popoverService=r.popoverService,r}t.PopoverAnchorDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(3),n=(p.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(p.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitPopoverState=function(t){var o=this;this.ngZone.run(function(e){return o._pointerOverPopup.next(t)})},Object.defineProperty(p.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitAnchorState=function(t,e){var o=this;this._isOrigin=this.originAnchor===e,this.currentAnchor=e,t&&(this.originAnchor=e),this.ngZone.run(function(e){return o._pointerOverAnchor.next(t)})},Object.defineProperty(p.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitFocusInsidePopover=function(t){var o=this;this.ngZone.run(function(e){return o._focusInsidePopover.next(t)}),this._focusInsidePopover.next(null)},Object.defineProperty(p.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.monitor=function(){var o=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe(function(e){var t=e[0],e=e[1];o._hidePopover.next([t,e,o._isOrigin,o.currentAnchor])}))},i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[n.NgZone])],p));function p(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}t.PopoverService=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(4),o=(i=r.PreventableEvent,n.__extends(s,i),s);function s(e){var t=i.call(this)||this;return t.anchor=e,t}t.PopoverShowEvent=o;var p,n=(p=r.PreventableEvent,n.__extends(a,p),a);function a(e,t){var o=p.call(this)||this;return o.anchor=e,o.popover=t,o}t.PopoverHideEvent=n,t.PopoverShownEvent=function(e,t){this.anchor=e,this.popover=t},t.PopoverHiddenEvent=function(e){this.anchor=e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),c=o(1),u=o(3),n=o(4),r=o(20),s=o(17),l=o(5),d=o(10),p=o(6),a=["hover","click","none","focus"],i=(Object.defineProperty(h.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof d.PopoverComponent||"function"==typeof e)this._popover=e;else if(c.isDevMode)throw new Error(r.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(c.isDevMode&&!l.containsItem(a,e))throw new Error(r.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),h.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular(function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}})},h.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},h.prototype.hide=function(){this.closePopup()},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},h.prototype.openPopup=function(t){var o=this,i=t instanceof c.ElementRef?t.nativeElement:t,n=this.popover instanceof d.PopoverComponent?this.popover:this.popover(i),e=l.align(n.position,n.offset),r=e.anchorAlign,s=e.popupAlign,p=e.popupMargin,a=n.animation;this.ngZone.run(function(){o.popupRef=o.popupService.open({anchor:{nativeElement:i},animate:a,content:d.PopoverComponent,popupAlign:s,anchorAlign:r,margin:p,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var e=o.popupRef.content.instance;Object.assign(e,n),e.anchor=t,e.contextData=e.templateData(t),e.visible=!0,o.popupRef.content.changeDetectorRef.detectChanges(),o.monitorPopup(),o.initializeFinishingEvents(n,i)}),this.popupRef.popupAnchorViewportLeave.pipe(u.take(1)).subscribe(function(){return o.hide()})},h.prototype.isPrevented=function(e,t){var o=this.popover instanceof d.PopoverComponent?this.popover:this.popover(e);return this.initializeEvents(o,void 0,t,e).isDefaultPrevented()},h.prototype.monitorPopup=function(){var t=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupHoverInListener=t.renderer.listen(e,"mouseenter",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!0)})}),t.disposePopupHoverOutListener=t.renderer.listen(e,"mouseleave",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!1)})})}),"focus"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupFocusOutListener=t.renderer.listen(e,"focusout",function(e){n.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||t.ngZone.run(function(e){return t._popoverService.emitFocusInsidePopover(!1)})})})},h.prototype.initializeEvents=function(t,o,e,i){var n=this;return e?this.ngZone.run(function(e){o=new s.PopoverShowEvent(i),n.popupRef||t.show.emit(o)}):this.ngZone.run(function(e){o=new s.PopoverHideEvent(i,n.popupRef),n.popupRef&&t.hide.emit(o)}),o},h.prototype.initializeFinishingEvents=function(o,i){var t=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe(function(){var e=new s.PopoverShownEvent(i,t.popupRef);o.shown.emit(e)}),this._popupCloseSub||this.popupRef.popupClose.subscribe(function(){t.ngZone.run(function(e){var t=new s.PopoverHiddenEvent(i);o.hidden.emit(t)})})},i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],h.prototype,"popover",null),i.__decorate([c.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],h.prototype,"showOn",null),h);function h(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new p.Subscription,this._showOn="click"}t.PopoverDirectivesBase=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(4),r=o(2),a=o(3),c=o(5),u=o(18),o=o(16),o=(s=u.PopoverDirectivesBase,i.__extends(l,s),l.prototype.show=function(e){this.popupRef||this.openPopup(e)},l.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},l.prototype.subscribeClick=function(){var o=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){var t=c.closestBySelector(e.target,o.filter);o.clickHandler(t,e)})},l.prototype.subscribeToEvents=function(o){var i=this;Array.from(document.querySelectorAll(this.filter)).forEach(function(t){i.subs.add(i.renderer.listen(t,o[0].name,function(){i.popoverService.emitAnchorState(!0,t),o[0].handler(t)})),i.subs.add(i.renderer.listen(t,o[1].name,function(e){i.popoverService.emitAnchorState(!1,null),o[1].handler({anchor:t,domEvent:e})}))})},l.prototype.clickHandler=function(t,e){var o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),i=this.popupRef&&this.popupRef.content.instance.anchor,e=!!p.closest(e.target,function(e){return e===(i||t)});"click"!==this.showOn||o||this.popupRef&&e||(t||!this.popupRef?e?this.controlVisibility(t,!0):this.popupRef&&(this.controlVisibility(t,!1),this.controlVisibility(t,!0)):this.controlVisibility(t,!1))},l.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},i.__decorate([n.Input(),i.__metadata("design:type",String)],l.prototype,"filter",void 0),i.__decorate([n.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],l));function l(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.wrapperEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(e){r.controlVisibility(e,!0)},r.mouseleaveHandler=function(e){e=e.anchor;r.isPrevented(e,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],o=e[2],e=e[3];t||o||(r.hide(),!o&&e&&r.show(e))}))},r.focusHandler=function(e){r.controlVisibility(e,!0)},r.blurHandler=function(e){var t,o=e.anchor,e=e.domEvent;r.isPrevented(o,!1)||((t=!!p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")}))||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||t||r.hide()})))},r._popoverService=r.popoverService,r}t.PopoverContainerDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),c=o(5),r=(Object.defineProperty(s.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),s.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"})},s.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(s.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),s.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},s.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},s.prototype.updateCalloutPosition=function(e,t){var o,i,n,r,s,p,a;this.callout&&(p=(r="top"===e||"bottom"===e)?"width":"height",s=r?"left":"top",i=r?"marginLeft":"marginTop",n=(o=this.content.nativeElement.querySelector(".k-callout")).getBoundingClientRect()[p],r=c.getCenterOffset(this.anchor.nativeElement,s,p),s=c.getCenterOffset(this.content.nativeElement,s,p),(1<(p=Math.abs(s-r))||0===p||0===Math.round(p))&&(o.style[i]=-(s-r+n/2)+"px"),a=this.calloutStyles(e,n,t),Object.keys(a).forEach(function(e){o.style[e]=a[e]}))},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],s.prototype,"direction",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],s.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],s.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],s.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],s.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],s.prototype,"templateString",void 0),i.__decorate([n.Component({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],s));function s(e,t){this.content=e,this.localizationService=t,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var i={},n="top"===e||"bottom"===e;return o?("top"===e?i.bottom="unset":"bottom"===e?i.top="unset":"left"===e?i.right="unset":"right"===e&&(i.left="unset"),i[e]=-t+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)"):i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i},this.direction=t.rtl?"rtl":"ltr"}t.TooltipContentComponent=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1);t.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings");o=i.__decorate([o.Injectable()],n);function n(){}t.TooltipSettings=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642674091,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),p=o(3),a=o(6),r=o(2),c=o(24),u=o(23),s=o(22),l=o(21),d=o(5),s=(Object.defineProperty(h.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),h.prototype.show=function(e){var t=this;this.popupRef||(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn?this.popupRef||(clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return t.showContent(t.anchor)},this.showAfter)):(this.hideElementTitle(this.anchor),this.showContent(this.anchor)))},h.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},h.prototype.toggle=function(e,t){var o=this.anchor&&this.anchor.nativeElement;o!==(e=e instanceof Element?{nativeElement:e}:e).nativeElement&&this.hide(),o===e.nativeElement&&"click"===this.showOn&&this.hide(),(t=void 0===t?!this.popupRef:t)?this.show(e):this.hide()},h.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},h.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},h.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},h.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},h.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)}),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe(function(){return t.hide()}))},h.prototype.bindContent=function(e,t){var o=this,e=e.instance;this.closeClickSubscription=e.close.subscribe(function(){o.hide()}),this.template?e.templateRef=this.template:e.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(e.titleTemplate=this.titleTemplate),e.closeTitle=this.closeTitle,e.anchor=t,e.callout=this.callout,e.closable=this.closable,e.position=this.position,e.tooltipWidth=this.tooltipWidth,e.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},h.prototype.hideElementTitle=function(e){e=e.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},h.prototype.openPopup=function(e){var t=this,o=d.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,o=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:o,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var r=this.popupRef.content.instance;r.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(e){e=e.flip,e=!0===e.horizontal||!0===e.vertical;r.updateCalloutPosition(t.position,e)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=a.fromEvent(e,"mouseout").subscribe(function(e){return t.onMouseOut(e)})})},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},h.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(p.filter(function(){return""!==t.filter})).subscribe(function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)}))},h.prototype.onMouseClick=function(e,t){var o=e.target,i=d.closestBySelector(o,this.filter),e=this.popupRef&&this.popupRef.popupElement;if(e){if(e.contains(o))return;if(this.closable)return}t.contains(o)&&i?this.toggle(i,!0):e&&this.hide()},h.prototype.onMouseOver=function(e){e=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},h.prototype.onMouseOut=function(e){var t;"hover"!==this.showOn||this.closable||(t=this.popupRef&&this.popupRef.popupElement,(e=e.relatedTarget)&&this.anchor&&d.contains(this.anchor.nativeElement,e)||e&&d.contains(t,e)||this.hide())},h.prototype.verifyProperties=function(){if(n.isDevMode()){if(!d.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!d.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],h.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],h.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"closeTitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],h.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(s.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,r.PopupService,s.TooltipSettings,s.TooltipSettings])],h));function h(e,t,o,i,n,r){var s=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],c.validatePackage(u.packageMetadata),Object.assign(this,n,r),this.ngZone.runOutsideAngular(function(){var e=s.tooltipWrapper.nativeElement;s.anchorTitleSubscription=a.fromEvent(e,"mouseover").pipe(p.filter(function(){return""!==s.filter})).subscribe(function(e){e=d.closestBySelector(e.target,s.filter);e&&s.hideElementTitle({nativeElement:e})}),s.mouseOverSubscription=a.fromEvent(e,"mouseover").pipe(p.debounceTime(100),p.filter(function(){return""!==s.filter})).subscribe(function(e){return s.onMouseOver(e)}),s.mouseOutSubscription=a.fromEvent(e,"mouseout").pipe(p.debounceTime(100)).subscribe(function(e){return s.onMouseOut(e)})})}t.TooltipDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(14),o=o(12),o=i.__decorate([n.NgModule({exports:[r.TooltipModule,o.PopoverModule]})],s);function s(){}t.TooltipsModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),s=o(1),o=o(11),o=(i=o.ComponentMessages,r.__extends(p,i),n=p,r.__decorate([s.Input(),r.__metadata("design:type",String)],p.prototype,"closeTitle",void 0),n=r.__decorate([s.Directive({providers:[{provide:o.ComponentMessages,useExisting:s.forwardRef(function(){return n})}],selector:"[kendoTooltipLocalizedMessages]"}),r.__metadata("design:paramtypes",[o.LocalizationService])],p));function p(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(25);t.TooltipDirective=i.TooltipDirective;i=o(22);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;i=o(10);t.PopoverComponent=i.PopoverComponent;i=o(19);t.PopoverContainerDirective=i.PopoverContainerDirective;i=o(15);t.PopoverAnchorDirective=i.PopoverAnchorDirective;i=o(9);t.PopoverTitleTemplateDirective=i.PopoverTitleTemplateDirective;i=o(8);t.PopoverBodyTemplateDirective=i.PopoverBodyTemplateDirective;i=o(7);t.PopoverActionsTemplateDirective=i.PopoverActionsTemplateDirective;i=o(17);t.PopoverShowEvent=i.PopoverShowEvent,t.PopoverShownEvent=i.PopoverShownEvent,t.PopoverHideEvent=i.PopoverHideEvent,t.PopoverHiddenEvent=i.PopoverHiddenEvent;i=o(14);t.TooltipModule=i.TooltipModule;i=o(12);t.PopoverModule=i.PopoverModule;o=o(26);t.TooltipsModule=o.TooltipsModule,function(e){for(var t in e)r(t,e[t])}(t)}],i.c=n,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=28)}}});
|
|
5
|
+
System.register("@progress/kendo-angular-tooltip",["tslib","@angular/common","@angular/core","@progress/kendo-angular-popup","@progress/kendo-angular-common","rxjs/operators","rxjs","@progress/kendo-licensing","@progress/kendo-angular-l10n"],function(r){var s,p,a,c,u,l,d,h,v;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){p=t(e)},function(e){a=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){h=t(e)},function(e){v=t(e)}],execute:function(){function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var o,n;n={},i.m=o=[function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t){e.exports=c},function(e,t){e.exports=u},function(e,t,o){"use strict";function n(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var o={},i={},n={};switch(e){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var o=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!n(i);){if(o(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&!n(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,o){e=e.getBoundingClientRect();return e[t]+e[o]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t){e.exports=d},function(e,t){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverActionsTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverActionsTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverBodyTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverBodyTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=i.__decorate([o.Directive({selector:"[kendoPopoverTitleTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverTitleTemplateDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),s=o(5),p=o(24),a=o(23),c=o(20),u=o(9),l=o(8),o=o(7),r=(Object.defineProperty(d.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(n.isDevMode&&"function"!=typeof e)throw new Error(c.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},d.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},d.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],d.prototype,"offset",null),i.__decorate([n.HostBinding("style.width"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"width",null),i.__decorate([n.HostBinding("style.height"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"height",null),i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],d.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"title",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"subtitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"body",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],d.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],d.prototype,"animation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],d.prototype,"templateData",null),i.__decorate([n.HostBinding("class.k-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"isHidden",null),i.__decorate([n.HostBinding("attr.aria-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"hasAttributeHidden",null),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"show",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"shown",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hide",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hidden",void 0),i.__decorate([n.ContentChild(u.PopoverTitleTemplateDirective,{static:!1}),i.__metadata("design:type",u.PopoverTitleTemplateDirective)],d.prototype,"titleTemplate",void 0),i.__decorate([n.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),i.__metadata("design:type",l.PopoverBodyTemplateDirective)],d.prototype,"bodyTemplate",void 0),i.__decorate([n.ContentChild(o.PopoverActionsTemplateDirective,{static:!1}),i.__metadata("design:type",o.PopoverActionsTemplateDirective)],d.prototype,"actionsTemplate",void 0),i.__decorate([n.Component({selector:"kendo-popover",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService])],d));function d(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new n.EventEmitter,this.shown=new n.EventEmitter,this.hide=new n.EventEmitter,this.hidden=new n.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new s.Subscription,this._templateData=function(){return null},p.validatePackage(a.packageMetadata)}t.PopoverComponent=r},function(e,t){e.exports=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(13),r=o(1),s=o(2),p=o(15),a=o(19),c=o(10),u=o(9),l=o(8),a=[o(7).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],s=i.__decorate([r.NgModule({declarations:a.concat([c.PopoverComponent]),entryComponents:[c.PopoverComponent],exports:a.concat([c.PopoverComponent]),imports:[n.CommonModule,s.PopupModule]})],d);function d(){}t.PopoverModule=s},function(e,t){e.exports=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(13),s=o(25),p=o(2),a=o(21),o=o(27),o=[s.TooltipDirective,a.TooltipContentComponent,o.LocalizedMessagesDirective],p=[p.PopupModule],o=i.__decorate([n.NgModule({declarations:[o],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(p),exports:[o]})],c);function c(){}t.TooltipModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(3),r=o(2),a=o(6),c=o(18),o=o(16),o=(s=c.PopoverDirectivesBase,i.__extends(u,s),u.prototype.show=function(){var e=this;this.popupRef||(this.ngZone.run(function(){e.openPopup(e.hostEl)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return e.hide()}))},u.prototype.toggle=function(){this.popupRef?this.hide():this.show()},u.prototype.subscribeToEvents=function(t){var o=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[0].name,function(){o.popoverService.emitAnchorState(!0,o.hostEl.nativeElement),t[0].handler()})),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[1].name,function(e){o.popoverService.emitAnchorState(!1,null),t[1].handler({domEvent:e})}))},u.prototype.subscribeClick=function(){var t=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){t.onClick(e)})},u.prototype.onClick=function(e){var t=this,o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),e=!!p.closest(e.target,function(e){return e===t.hostEl.nativeElement});o||this.popupRef&&e||(e?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},u.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},i.__decorate([n.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],u));function u(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.hostEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.mouseleaveHandler=function(){r.isPrevented(r.hostEl.nativeElement,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],e=e[1];t||e||r.hide()}))},r.focusHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.blurHandler=function(e){e=e.domEvent;r.isPrevented(r.hostEl.nativeElement,!1)||(p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||r.hide()})))},r._popoverService=r.popoverService,r}t.PopoverAnchorDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(5),s=o(6),n=(p.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(p.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitPopoverState=function(t){var o=this;this.ngZone.run(function(e){return o._pointerOverPopup.next(t)})},Object.defineProperty(p.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitAnchorState=function(t,e){var o=this;this._isOrigin=this.originAnchor===e,this.currentAnchor=e,t&&(this.originAnchor=e),this.ngZone.run(function(e){return o._pointerOverAnchor.next(t)})},Object.defineProperty(p.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitFocusInsidePopover=function(t){var o=this;this.ngZone.run(function(e){return o._focusInsidePopover.next(t)}),this._focusInsidePopover.next(null)},Object.defineProperty(p.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.monitor=function(){var o=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe(function(e){var t=e[0],e=e[1];o._hidePopover.next([t,e,o._isOrigin,o.currentAnchor])}))},i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[n.NgZone])],p));function p(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}t.PopoverService=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(3),o=(i=r.PreventableEvent,n.__extends(s,i),s);function s(e){var t=i.call(this)||this;return t.anchor=e,t}t.PopoverShowEvent=o;var p,n=(p=r.PreventableEvent,n.__extends(a,p),a);function a(e,t){var o=p.call(this)||this;return o.anchor=e,o.popover=t,o}t.PopoverHideEvent=n,t.PopoverShownEvent=function(e,t){this.anchor=e,this.popover=t},t.PopoverHiddenEvent=function(e){this.anchor=e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),p=o(1),n=o(3),r=o(20),s=o(17),a=o(4),c=o(10),u=o(5),l=["hover","click","none","focus"],i=(Object.defineProperty(d.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof c.PopoverComponent||"function"==typeof e)this._popover=e;else if(p.isDevMode)throw new Error(r.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(p.isDevMode&&!a.containsItem(l,e))throw new Error(r.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),d.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular(function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}})},d.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},d.prototype.hide=function(){this.closePopup()},d.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},d.prototype.openPopup=function(e){var t=e instanceof p.ElementRef?e.nativeElement:e,o=this.popover instanceof c.PopoverComponent?this.popover:this.popover(t),i=a.align(o.position,o.offset),n=i.anchorAlign,r=i.popupAlign,s=i.popupMargin,i=o.animation;this.popupRef=this.popupService.open({anchor:{nativeElement:t},animate:i,content:c.PopoverComponent,popupAlign:r,anchorAlign:n,margin:s,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}}),this.applySettings(this.popupRef.content,o,e),this.monitorPopup(),this.initializeCompletionEvents(o,t)},d.prototype.isPrevented=function(e,t){var o=this.popover instanceof c.PopoverComponent?this.popover:this.popover(e);return this.initializeEvents(o,void 0,t,e).isDefaultPrevented()},d.prototype.monitorPopup=function(){var t=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupHoverInListener=t.renderer.listen(e,"mouseenter",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!0)})}),t.disposePopupHoverOutListener=t.renderer.listen(e,"mouseleave",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!1)})})}),"focus"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupFocusOutListener=t.renderer.listen(e,"focusout",function(e){n.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||t.ngZone.run(function(e){return t._popoverService.emitFocusInsidePopover(!1)})})})},d.prototype.applySettings=function(e,t,o){e=e.instance,o=o instanceof p.ElementRef?o.nativeElement:o;e.visible=!0,e.anchor=o,e.position=t.position,e.offset=t.offset,e.width=t.width,e.height=t.height,e.title=t.title,e.body=t.body,e.callout=t.callout,e.animation=t.animation,e.contextData=t.templateData(o),e.titleTemplate=t.titleTemplate,e.bodyTemplate=t.bodyTemplate,e.actionsTemplate=t.actionsTemplate,this.popupRef.content.changeDetectorRef.detectChanges()},d.prototype.initializeEvents=function(t,o,e,i){var n=this;return e?this.ngZone.run(function(e){o=new s.PopoverShowEvent(i),n.popupRef||t.show.emit(o)}):this.ngZone.run(function(e){o=new s.PopoverHideEvent(i,n.popupRef),n.popupRef&&t.hide.emit(o)}),o},d.prototype.initializeCompletionEvents=function(o,i){var t=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe(function(){var e=new s.PopoverShownEvent(i,t.popupRef);o.shown.emit(e)}),this._popupCloseSub||this.popupRef.popupClose.subscribe(function(){t.ngZone.run(function(e){var t=new s.PopoverHiddenEvent(i);o.hidden.emit(t)})})},i.__decorate([p.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"popover",null),i.__decorate([p.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],d.prototype,"showOn",null),d);function d(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new u.Subscription,this._showOn="click"}t.PopoverDirectivesBase=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(3),r=o(2),a=o(6),c=o(4),u=o(18),o=o(16),o=(s=u.PopoverDirectivesBase,i.__extends(l,s),l.prototype.show=function(e){var t=this;this.popupRef||(this.ngZone.run(function(){t.openPopup(e)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return t.hide()}))},l.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},l.prototype.subscribeClick=function(){var o=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){var t=c.closestBySelector(e.target,o.filter);o.clickHandler(t,e)})},l.prototype.subscribeToEvents=function(o){var i=this;Array.from(document.querySelectorAll(this.filter)).forEach(function(t){i.subs.add(i.renderer.listen(t,o[0].name,function(){i.popoverService.emitAnchorState(!0,t),o[0].handler(t)})),i.subs.add(i.renderer.listen(t,o[1].name,function(e){i.popoverService.emitAnchorState(!1,null),o[1].handler({anchor:t,domEvent:e})}))})},l.prototype.clickHandler=function(t,e){var o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),i=this.popupRef&&this.popupRef.content.instance.anchor,e=!!p.closest(e.target,function(e){return e===(i||t)});"click"!==this.showOn||o||this.popupRef&&e||(t||!this.popupRef?e?this.controlVisibility(t,!0):this.popupRef&&(this.controlVisibility(t,!1),this.controlVisibility(t,!0)):this.controlVisibility(t,!1))},l.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},i.__decorate([n.Input(),i.__metadata("design:type",String)],l.prototype,"filter",void 0),i.__decorate([n.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],l));function l(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.wrapperEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(e){r.controlVisibility(e,!0)},r.mouseleaveHandler=function(e){e=e.anchor;r.isPrevented(e,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],o=e[2],e=e[3];t||o||(r.hide(),!o&&e&&r.show(e))}))},r.focusHandler=function(e){r.controlVisibility(e,!0)},r.blurHandler=function(e){var t,o=e.anchor,e=e.domEvent;r.isPrevented(o,!1)||((t=!!p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")}))||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||t||r.hide()})))},r._popoverService=r.popoverService,r}t.PopoverContainerDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),c=o(4),r=(Object.defineProperty(s.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),s.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"})},s.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(s.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),s.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},s.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},s.prototype.updateCalloutPosition=function(e,t){var o,i,n,r,s,p,a;this.callout&&(p=(r="top"===e||"bottom"===e)?"width":"height",s=r?"left":"top",i=r?"marginLeft":"marginTop",n=(o=this.content.nativeElement.querySelector(".k-callout")).getBoundingClientRect()[p],r=c.getCenterOffset(this.anchor.nativeElement,s,p),s=c.getCenterOffset(this.content.nativeElement,s,p),(1<(p=Math.abs(s-r))||0===p||0===Math.round(p))&&(o.style[i]=-(s-r+n/2)+"px"),a=this.calloutStyles(e,n,t),Object.keys(a).forEach(function(e){o.style[e]=a[e]}))},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],s.prototype,"direction",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],s.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],s.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],s.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],s.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],s.prototype,"templateString",void 0),i.__decorate([n.Component({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],s));function s(e,t){this.content=e,this.localizationService=t,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var i={},n="top"===e||"bottom"===e;return o?("top"===e?i.bottom="unset":"bottom"===e?i.top="unset":"left"===e?i.right="unset":"right"===e&&(i.left="unset"),i[e]=-t+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)"):i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i},this.direction=t.rtl?"rtl":"ltr"}t.TooltipContentComponent=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1);t.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings");o=i.__decorate([o.Injectable()],n);function n(){}t.TooltipSettings=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1643023857,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),p=o(6),a=o(5),r=o(2),c=o(24),u=o(23),s=o(22),l=o(21),d=o(4),s=(Object.defineProperty(h.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),h.prototype.show=function(e){var t=this;this.popupRef||(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn?this.popupRef||(clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return t.showContent(t.anchor)},this.showAfter)):(this.hideElementTitle(this.anchor),this.showContent(this.anchor)))},h.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},h.prototype.toggle=function(e,t){var o=this.anchor&&this.anchor.nativeElement;o!==(e=e instanceof Element?{nativeElement:e}:e).nativeElement&&this.hide(),o===e.nativeElement&&"click"===this.showOn&&this.hide(),(t=void 0===t?!this.popupRef:t)?this.show(e):this.hide()},h.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},h.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},h.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},h.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},h.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)}),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe(function(){return t.hide()}))},h.prototype.bindContent=function(e,t){var o=this,e=e.instance;this.closeClickSubscription=e.close.subscribe(function(){o.hide()}),this.template?e.templateRef=this.template:e.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(e.titleTemplate=this.titleTemplate),e.closeTitle=this.closeTitle,e.anchor=t,e.callout=this.callout,e.closable=this.closable,e.position=this.position,e.tooltipWidth=this.tooltipWidth,e.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},h.prototype.hideElementTitle=function(e){e=e.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},h.prototype.openPopup=function(e){var t=this,o=d.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,o=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:o,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var r=this.popupRef.content.instance;r.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(e){e=e.flip,e=!0===e.horizontal||!0===e.vertical;r.updateCalloutPosition(t.position,e)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=a.fromEvent(e,"mouseout").subscribe(function(e){return t.onMouseOut(e)})})},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},h.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(p.filter(function(){return""!==t.filter})).subscribe(function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)}))},h.prototype.onMouseClick=function(e,t){var o=e.target,i=d.closestBySelector(o,this.filter),e=this.popupRef&&this.popupRef.popupElement;if(e){if(e.contains(o))return;if(this.closable)return}t.contains(o)&&i?this.toggle(i,!0):e&&this.hide()},h.prototype.onMouseOver=function(e){e=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},h.prototype.onMouseOut=function(e){var t;"hover"!==this.showOn||this.closable||(t=this.popupRef&&this.popupRef.popupElement,(e=e.relatedTarget)&&this.anchor&&d.contains(this.anchor.nativeElement,e)||e&&d.contains(t,e)||this.hide())},h.prototype.verifyProperties=function(){if(n.isDevMode()){if(!d.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!d.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],h.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],h.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"closeTitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],h.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(s.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,r.PopupService,s.TooltipSettings,s.TooltipSettings])],h));function h(e,t,o,i,n,r){var s=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],c.validatePackage(u.packageMetadata),Object.assign(this,n,r),this.ngZone.runOutsideAngular(function(){var e=s.tooltipWrapper.nativeElement;s.anchorTitleSubscription=a.fromEvent(e,"mouseover").pipe(p.filter(function(){return""!==s.filter})).subscribe(function(e){e=d.closestBySelector(e.target,s.filter);e&&s.hideElementTitle({nativeElement:e})}),s.mouseOverSubscription=a.fromEvent(e,"mouseover").pipe(p.debounceTime(100),p.filter(function(){return""!==s.filter})).subscribe(function(e){return s.onMouseOver(e)}),s.mouseOutSubscription=a.fromEvent(e,"mouseout").pipe(p.debounceTime(100)).subscribe(function(e){return s.onMouseOut(e)})})}t.TooltipDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(14),o=o(12),o=i.__decorate([n.NgModule({exports:[r.TooltipModule,o.PopoverModule]})],s);function s(){}t.TooltipsModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),s=o(1),o=o(11),o=(i=o.ComponentMessages,r.__extends(p,i),n=p,r.__decorate([s.Input(),r.__metadata("design:type",String)],p.prototype,"closeTitle",void 0),n=r.__decorate([s.Directive({providers:[{provide:o.ComponentMessages,useExisting:s.forwardRef(function(){return n})}],selector:"[kendoTooltipLocalizedMessages]"}),r.__metadata("design:paramtypes",[o.LocalizationService])],p));function p(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(25);t.TooltipDirective=i.TooltipDirective;i=o(22);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;i=o(10);t.PopoverComponent=i.PopoverComponent;i=o(19);t.PopoverContainerDirective=i.PopoverContainerDirective;i=o(15);t.PopoverAnchorDirective=i.PopoverAnchorDirective;i=o(9);t.PopoverTitleTemplateDirective=i.PopoverTitleTemplateDirective;i=o(8);t.PopoverBodyTemplateDirective=i.PopoverBodyTemplateDirective;i=o(7);t.PopoverActionsTemplateDirective=i.PopoverActionsTemplateDirective;i=o(17);t.PopoverShowEvent=i.PopoverShowEvent,t.PopoverShownEvent=i.PopoverShownEvent,t.PopoverHideEvent=i.PopoverHideEvent,t.PopoverHiddenEvent=i.PopoverHiddenEvent;i=o(14);t.TooltipModule=i.TooltipModule;i=o(12);t.PopoverModule=i.PopoverModule;o=o(26);t.TooltipsModule=o.TooltipsModule,function(e){for(var t in e)r(t,e[t])}(t)}],i.c=n,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=28)}}});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Kendo UI Tooltip for Angular",
|
|
4
4
|
"author": "Progress",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
-
"version": "3.1.
|
|
6
|
+
"version": "3.1.4-dev.202201241132",
|
|
7
7
|
"main": "dist/npm/index.js",
|
|
8
8
|
"module": "dist/fesm5/index.js",
|
|
9
9
|
"es2015": "dist/fesm2015/index.js",
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
"@angular/platform-browser-dynamic": "^8.2.0",
|
|
59
59
|
"@angular/platform-server": "^8.2.0",
|
|
60
60
|
"@angular/router": "^8.2.0",
|
|
61
|
-
"@progress/kendo-angular-buttons": "^
|
|
61
|
+
"@progress/kendo-angular-buttons": "^7.0.0",
|
|
62
62
|
"@progress/kendo-angular-icons": "^0.4.4",
|
|
63
63
|
"@progress/kendo-angular-common": "^2.0.2",
|
|
64
|
-
"@progress/kendo-angular-dateinputs": "^
|
|
65
|
-
"@progress/kendo-angular-dropdowns": "^
|
|
64
|
+
"@progress/kendo-angular-dateinputs": "^6.0.0",
|
|
65
|
+
"@progress/kendo-angular-dropdowns": "^6.0.0",
|
|
66
66
|
"@progress/kendo-angular-e2e": "^3.0.0",
|
|
67
67
|
"@progress/kendo-angular-excel-export": "^4.0.0",
|
|
68
68
|
"@progress/kendo-angular-grid": "dev",
|
|
69
|
-
"@progress/kendo-angular-inputs": "^
|
|
69
|
+
"@progress/kendo-angular-inputs": "^8.0.0",
|
|
70
70
|
"@progress/kendo-angular-intl": "^3.0.0",
|
|
71
71
|
"@progress/kendo-angular-jest-preset": "^2.0.0",
|
|
72
72
|
"@progress/kendo-angular-l10n": "^3.0.3",
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"@progress/kendo-angular-pdf-export": "^3.0.0",
|
|
75
75
|
"@progress/kendo-angular-popup": "^4.0.2",
|
|
76
76
|
"@progress/kendo-angular-tasks": "^19.1.0",
|
|
77
|
-
"@progress/kendo-angular-treeview": "^
|
|
77
|
+
"@progress/kendo-angular-treeview": "^6.0.0",
|
|
78
78
|
"@progress/kendo-data-query": "^1.5.0",
|
|
79
79
|
"@progress/kendo-drawing": "^1.5.7",
|
|
80
80
|
"@progress/kendo-licensing": "^1.2.1",
|
|
81
81
|
"@progress/kendo-e2e": "^0.7.0",
|
|
82
|
-
"@progress/kendo-theme-bootstrap": "^5.0.0",
|
|
83
|
-
"@progress/kendo-theme-default": "^5.0.0",
|
|
84
|
-
"@progress/kendo-theme-material": "^5.0.0",
|
|
82
|
+
"@progress/kendo-theme-bootstrap": "^4.44.0 || ^5.0.0",
|
|
83
|
+
"@progress/kendo-theme-default": "^4.44.0 || ^5.0.0",
|
|
84
|
+
"@progress/kendo-theme-material": "^4.44.0 || ^5.0.0",
|
|
85
85
|
"@telerik/semantic-prerelease": "^1.0.0",
|
|
86
86
|
"@types/jest": "^24.9.0",
|
|
87
87
|
"@types/node": "ts3.4",
|