@progress/kendo-angular-tooltip 3.0.2-dev.202105121258 → 3.1.0-dev.202201182021

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/dist/cdn/js/kendo-angular-tooltip.js +3 -3
  5. package/dist/cdn/main.js +2 -2
  6. package/dist/es/constants.d.ts +12 -0
  7. package/dist/es/constants.js +12 -0
  8. package/dist/es/index.d.ts +5 -3
  9. package/dist/es/index.js +3 -1
  10. package/dist/es/index.metadata.json +1 -1
  11. package/dist/es/localization/localized-messages.directive.d.ts +1 -1
  12. package/dist/es/localization/localized-messages.directive.js +1 -1
  13. package/dist/es/main.d.ts +17 -3
  14. package/dist/es/main.js +13 -2
  15. package/dist/es/models/animation.model.d.ts +9 -0
  16. package/dist/es/models/animation.model.js +4 -0
  17. package/dist/es/models/events.d.ts +78 -0
  18. package/dist/es/models/events.js +78 -0
  19. package/dist/es/models/functions.model.d.ts +17 -0
  20. package/dist/es/models/functions.model.js +4 -0
  21. package/dist/es/models/popover-show-option.type.d.ts +8 -0
  22. package/dist/es/models/popover-show-option.type.js +4 -0
  23. package/dist/es/models/position.type.d.ts +2 -2
  24. package/dist/es/models/position.type.js +1 -1
  25. package/dist/es/models/show.option.type.d.ts +1 -1
  26. package/dist/es/models/show.option.type.js +1 -1
  27. package/dist/es/package-metadata.d.ts +1 -1
  28. package/dist/es/package-metadata.js +2 -2
  29. package/dist/es/popover/anchor.directive.d.ts +44 -0
  30. package/dist/es/popover/anchor.directive.js +150 -0
  31. package/dist/es/popover/container.directive.d.ts +56 -0
  32. package/dist/es/popover/container.directive.js +176 -0
  33. package/dist/es/popover/directives-base.d.ts +87 -0
  34. package/dist/es/popover/directives-base.js +274 -0
  35. package/dist/es/popover/popover.component.d.ts +166 -0
  36. package/dist/es/popover/popover.component.js +300 -0
  37. package/dist/es/popover/popover.service.d.ts +30 -0
  38. package/dist/es/popover/popover.service.js +88 -0
  39. package/dist/es/popover/template-directives/actions-template.directive.d.ts +15 -0
  40. package/dist/es/popover/template-directives/actions-template.directive.js +26 -0
  41. package/dist/es/popover/template-directives/body-template.directive.d.ts +15 -0
  42. package/dist/es/popover/template-directives/body-template.directive.js +26 -0
  43. package/dist/es/popover/template-directives/title-template.directive.d.ts +15 -0
  44. package/dist/es/popover/template-directives/title-template.directive.js +26 -0
  45. package/dist/es/popover.module.d.ts +31 -0
  46. package/dist/es/popover.module.js +65 -0
  47. package/dist/es/tooltip/tooltip.content.component.d.ts +1 -1
  48. package/dist/es/tooltip/tooltip.content.component.js +1 -1
  49. package/dist/es/tooltip/tooltip.directive.d.ts +1 -1
  50. package/dist/es/tooltip/tooltip.directive.js +5 -5
  51. package/dist/es/tooltip/tooltip.settings.d.ts +1 -1
  52. package/dist/es/tooltip/tooltip.settings.js +1 -1
  53. package/dist/es/tooltip.module.d.ts +1 -1
  54. package/dist/es/tooltip.module.js +1 -1
  55. package/dist/es/tooltips.module.d.ts +32 -0
  56. package/dist/es/tooltips.module.js +45 -0
  57. package/dist/es/utils.d.ts +2 -2
  58. package/dist/es/utils.js +2 -2
  59. package/dist/es2015/constants.d.ts +12 -0
  60. package/dist/es2015/constants.js +12 -0
  61. package/dist/es2015/index.d.ts +3 -1
  62. package/dist/es2015/index.js +3 -1
  63. package/dist/es2015/index.metadata.json +1 -1
  64. package/dist/es2015/localization/localized-messages.directive.d.ts +1 -1
  65. package/dist/es2015/localization/localized-messages.directive.js +1 -1
  66. package/dist/es2015/main.d.ts +17 -3
  67. package/dist/es2015/main.js +13 -2
  68. package/dist/es2015/models/animation.model.d.ts +9 -0
  69. package/dist/es2015/models/animation.model.js +4 -0
  70. package/dist/es2015/models/events.d.ts +78 -0
  71. package/dist/es2015/models/events.js +65 -0
  72. package/dist/es2015/models/functions.model.d.ts +17 -0
  73. package/dist/es2015/models/functions.model.js +4 -0
  74. package/dist/es2015/models/popover-show-option.type.d.ts +8 -0
  75. package/dist/es2015/models/popover-show-option.type.js +4 -0
  76. package/dist/es2015/models/position.type.d.ts +2 -2
  77. package/dist/es2015/models/position.type.js +1 -1
  78. package/dist/es2015/models/show.option.type.d.ts +1 -1
  79. package/dist/es2015/models/show.option.type.js +1 -1
  80. package/dist/es2015/package-metadata.d.ts +1 -1
  81. package/dist/es2015/package-metadata.js +2 -2
  82. package/dist/es2015/popover/anchor.directive.d.ts +44 -0
  83. package/dist/es2015/popover/anchor.directive.js +144 -0
  84. package/dist/es2015/popover/container.directive.d.ts +56 -0
  85. package/dist/es2015/popover/container.directive.js +171 -0
  86. package/dist/es2015/popover/directives-base.d.ts +87 -0
  87. package/dist/es2015/popover/directives-base.js +259 -0
  88. package/dist/es2015/popover/popover.component.d.ts +166 -0
  89. package/dist/es2015/popover/popover.component.js +304 -0
  90. package/dist/es2015/popover/popover.service.d.ts +30 -0
  91. package/dist/es2015/popover/popover.service.js +67 -0
  92. package/dist/es2015/popover/template-directives/actions-template.directive.d.ts +15 -0
  93. package/dist/es2015/popover/template-directives/actions-template.directive.js +25 -0
  94. package/dist/es2015/popover/template-directives/body-template.directive.d.ts +15 -0
  95. package/dist/es2015/popover/template-directives/body-template.directive.js +25 -0
  96. package/dist/es2015/popover/template-directives/title-template.directive.d.ts +15 -0
  97. package/dist/es2015/popover/template-directives/title-template.directive.js +25 -0
  98. package/dist/es2015/popover.module.d.ts +31 -0
  99. package/dist/es2015/popover.module.js +63 -0
  100. package/dist/es2015/tooltip/tooltip.content.component.d.ts +1 -1
  101. package/dist/es2015/tooltip/tooltip.content.component.js +1 -1
  102. package/dist/es2015/tooltip/tooltip.directive.d.ts +1 -1
  103. package/dist/es2015/tooltip/tooltip.directive.js +5 -5
  104. package/dist/es2015/tooltip/tooltip.settings.d.ts +1 -1
  105. package/dist/es2015/tooltip/tooltip.settings.js +1 -1
  106. package/dist/es2015/tooltip.module.d.ts +1 -1
  107. package/dist/es2015/tooltip.module.js +1 -1
  108. package/dist/es2015/tooltips.module.d.ts +32 -0
  109. package/dist/es2015/tooltips.module.js +42 -0
  110. package/dist/es2015/utils.d.ts +2 -2
  111. package/dist/es2015/utils.js +2 -2
  112. package/dist/fesm2015/index.js +1111 -10
  113. package/dist/fesm5/index.js +1169 -10
  114. package/dist/npm/constants.js +14 -0
  115. package/dist/npm/index.js +5 -1
  116. package/dist/npm/localization/localized-messages.directive.js +1 -1
  117. package/dist/npm/main.js +26 -3
  118. package/dist/npm/models/animation.model.js +6 -0
  119. package/dist/npm/models/events.js +80 -0
  120. package/dist/npm/models/functions.model.js +6 -0
  121. package/dist/npm/models/popover-show-option.type.js +6 -0
  122. package/dist/npm/models/position.type.js +1 -1
  123. package/dist/npm/models/show.option.type.js +1 -1
  124. package/dist/npm/package-metadata.js +2 -2
  125. package/dist/npm/popover/anchor.directive.js +152 -0
  126. package/dist/npm/popover/container.directive.js +178 -0
  127. package/dist/npm/popover/directives-base.js +276 -0
  128. package/dist/npm/popover/popover.component.js +302 -0
  129. package/dist/npm/popover/popover.service.js +90 -0
  130. package/dist/npm/popover/template-directives/actions-template.directive.js +28 -0
  131. package/dist/npm/popover/template-directives/body-template.directive.js +28 -0
  132. package/dist/npm/popover/template-directives/title-template.directive.js +28 -0
  133. package/dist/npm/popover.module.js +67 -0
  134. package/dist/npm/tooltip/tooltip.content.component.js +1 -1
  135. package/dist/npm/tooltip/tooltip.directive.js +4 -4
  136. package/dist/npm/tooltip/tooltip.settings.js +1 -1
  137. package/dist/npm/tooltip.module.js +1 -1
  138. package/dist/npm/tooltips.module.js +47 -0
  139. package/dist/npm/utils.js +3 -3
  140. package/dist/systemjs/kendo-angular-tooltip.js +2 -2
  141. package/package.json +23 -19
@@ -0,0 +1,28 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var tslib_1 = require("tslib");
8
+ var core_1 = require("@angular/core");
9
+ /**
10
+ * Represents a template that defines the content of the Popover actions.
11
+ *
12
+ * To define the template, nest an `<ng-template>` tag
13
+ * with the `kendoPopoverActionsTemplate` directive inside the `<kendo-popover>` tag.
14
+ */
15
+ var PopoverActionsTemplateDirective = /** @class */ (function () {
16
+ function PopoverActionsTemplateDirective(templateRef) {
17
+ this.templateRef = templateRef;
18
+ }
19
+ PopoverActionsTemplateDirective = tslib_1.__decorate([
20
+ core_1.Directive({
21
+ selector: '[kendoPopoverActionsTemplate]'
22
+ }),
23
+ tslib_1.__param(0, core_1.Optional()),
24
+ tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
25
+ ], PopoverActionsTemplateDirective);
26
+ return PopoverActionsTemplateDirective;
27
+ }());
28
+ exports.PopoverActionsTemplateDirective = PopoverActionsTemplateDirective;
@@ -0,0 +1,28 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var tslib_1 = require("tslib");
8
+ var core_1 = require("@angular/core");
9
+ /**
10
+ * Represents a template that defines the content of the Popover body.
11
+ *
12
+ * To define the template, nest an `<ng-template>` tag
13
+ * with the `kendoPopoverBodyTemplate` directive inside the `<kendo-popover>` tag.
14
+ */
15
+ var PopoverBodyTemplateDirective = /** @class */ (function () {
16
+ function PopoverBodyTemplateDirective(templateRef) {
17
+ this.templateRef = templateRef;
18
+ }
19
+ PopoverBodyTemplateDirective = tslib_1.__decorate([
20
+ core_1.Directive({
21
+ selector: '[kendoPopoverBodyTemplate]'
22
+ }),
23
+ tslib_1.__param(0, core_1.Optional()),
24
+ tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
25
+ ], PopoverBodyTemplateDirective);
26
+ return PopoverBodyTemplateDirective;
27
+ }());
28
+ exports.PopoverBodyTemplateDirective = PopoverBodyTemplateDirective;
@@ -0,0 +1,28 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var tslib_1 = require("tslib");
8
+ var core_1 = require("@angular/core");
9
+ /**
10
+ * Represents a template that defines the content of the Popover title.
11
+ *
12
+ * To define the template, nest an `<ng-template>` tag
13
+ * with the `kendoPopoverTitleTemplate` directive inside the `<kendo-popover>` tag.
14
+ */
15
+ var PopoverTitleTemplateDirective = /** @class */ (function () {
16
+ function PopoverTitleTemplateDirective(templateRef) {
17
+ this.templateRef = templateRef;
18
+ }
19
+ PopoverTitleTemplateDirective = tslib_1.__decorate([
20
+ core_1.Directive({
21
+ selector: '[kendoPopoverTitleTemplate]'
22
+ }),
23
+ tslib_1.__param(0, core_1.Optional()),
24
+ tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
25
+ ], PopoverTitleTemplateDirective);
26
+ return PopoverTitleTemplateDirective;
27
+ }());
28
+ exports.PopoverTitleTemplateDirective = PopoverTitleTemplateDirective;
@@ -0,0 +1,67 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var tslib_1 = require("tslib");
8
+ var common_1 = require("@angular/common");
9
+ var core_1 = require("@angular/core");
10
+ var kendo_angular_popup_1 = require("@progress/kendo-angular-popup");
11
+ var anchor_directive_1 = require("./popover/anchor.directive");
12
+ var container_directive_1 = require("./popover/container.directive");
13
+ var popover_component_1 = require("./popover/popover.component");
14
+ var title_template_directive_1 = require("./popover/template-directives/title-template.directive");
15
+ var body_template_directive_1 = require("./popover/template-directives/body-template.directive");
16
+ var actions_template_directive_1 = require("./popover/template-directives/actions-template.directive");
17
+ var DIRECTIVES = [
18
+ actions_template_directive_1.PopoverActionsTemplateDirective,
19
+ body_template_directive_1.PopoverBodyTemplateDirective,
20
+ title_template_directive_1.PopoverTitleTemplateDirective,
21
+ anchor_directive_1.PopoverAnchorDirective,
22
+ container_directive_1.PopoverContainerDirective
23
+ ];
24
+ /**
25
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
26
+ * definition for the Popover component.
27
+ *
28
+ * @example
29
+ *
30
+ * ```ts-no-run
31
+ * import { PopoverModule } from '@progress/kendo-angular-tooltip';
32
+ *
33
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
34
+ * import { NgModule } from '@angular/core';
35
+ *
36
+ * import { AppComponent } from './app.component';
37
+ *
38
+ * _@NgModule({
39
+ * declarations: [AppComponent],
40
+ * imports: [BrowserModule, PopoverModule],
41
+ * bootstrap: [AppComponent]
42
+ * })
43
+ * export class AppModule {}
44
+ *
45
+ * platformBrowserDynamic().bootstrapModule(AppModule);
46
+ *
47
+ * ```
48
+ */
49
+ var PopoverModule = /** @class */ (function () {
50
+ function PopoverModule() {
51
+ }
52
+ PopoverModule = tslib_1.__decorate([
53
+ core_1.NgModule({
54
+ declarations: DIRECTIVES.concat([
55
+ popover_component_1.PopoverComponent
56
+ ]),
57
+ entryComponents: [popover_component_1.PopoverComponent],
58
+ exports: DIRECTIVES.concat([popover_component_1.PopoverComponent]),
59
+ imports: [
60
+ common_1.CommonModule,
61
+ kendo_angular_popup_1.PopupModule
62
+ ]
63
+ })
64
+ ], PopoverModule);
65
+ return PopoverModule;
66
+ }());
67
+ exports.PopoverModule = PopoverModule;
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  "use strict";
@@ -87,7 +87,7 @@ var TooltipDirective = /** @class */ (function () {
87
87
  _this.anchorTitleSubscription = rxjs_1.fromEvent(wrapper, 'mouseover')
88
88
  .pipe(operators_1.filter(function () { return _this.filter !== ''; }))
89
89
  .subscribe(function (e) {
90
- var filterElement = utils_1.closest(e.target, _this.filter);
90
+ var filterElement = utils_1.closestBySelector(e.target, _this.filter);
91
91
  if (filterElement) {
92
92
  _this.hideElementTitle({ nativeElement: filterElement });
93
93
  }
@@ -324,7 +324,7 @@ var TooltipDirective = /** @class */ (function () {
324
324
  };
325
325
  TooltipDirective.prototype.onMouseClick = function (e, wrapper) {
326
326
  var target = e.target;
327
- var filterElement = utils_1.closest(target, this.filter);
327
+ var filterElement = utils_1.closestBySelector(target, this.filter);
328
328
  var popup = this.popupRef && this.popupRef.popupElement;
329
329
  if (popup) {
330
330
  if (popup.contains(target)) {
@@ -342,7 +342,7 @@ var TooltipDirective = /** @class */ (function () {
342
342
  }
343
343
  };
344
344
  TooltipDirective.prototype.onMouseOver = function (e) {
345
- var filterElement = utils_1.closest(e.target, this.filter);
345
+ var filterElement = utils_1.closestBySelector(e.target, this.filter);
346
346
  if (this.showOn !== 'hover') {
347
347
  return;
348
348
  }
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  "use strict";
@@ -0,0 +1,47 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var tslib_1 = require("tslib");
8
+ var core_1 = require("@angular/core");
9
+ var tooltip_module_1 = require("./tooltip.module");
10
+ var popover_module_1 = require("./popover.module");
11
+ /**
12
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
13
+ * definition for the Tooltips components.
14
+ *
15
+ * @example
16
+ *
17
+ * ```ts-no-run
18
+ * import { TooltipsModule } from '@progress/kendo-angular-tooltip';
19
+ *
20
+ * // The browser platform with a compiler
21
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
22
+ *
23
+ * import { NgModule } from '@angular/core';
24
+ *
25
+ * // Import the app component
26
+ * _@NgModule{{
27
+ * declarations: [AppComponent], // declare app component
28
+ * imports: [BrowserModule, TooltipsModule], // import TooltipsModule module
29
+ * bootstrap: [AppComponent]
30
+ * }}
31
+ * export class AppModule {}
32
+ *
33
+ * // Compile and launch the module
34
+ * platformBrowserDynamic().bootstrapModule(AppModule);
35
+ * ```
36
+ */
37
+ var TooltipsModule = /** @class */ (function () {
38
+ function TooltipsModule() {
39
+ }
40
+ TooltipsModule = tslib_1.__decorate([
41
+ core_1.NgModule({
42
+ exports: [tooltip_module_1.TooltipModule, popover_module_1.PopoverModule]
43
+ })
44
+ ], TooltipsModule);
45
+ return TooltipsModule;
46
+ }());
47
+ exports.TooltipsModule = TooltipsModule;
package/dist/npm/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  "use strict";
@@ -60,7 +60,7 @@ function isDocumentNode(container) {
60
60
  /**
61
61
  * @hidden
62
62
  */
63
- function closest(element, selector) {
63
+ function closestBySelector(element, selector) {
64
64
  if (element.closest) {
65
65
  return element.closest(selector);
66
66
  }
@@ -75,7 +75,7 @@ function closest(element, selector) {
75
75
  node = node.parentNode;
76
76
  }
77
77
  }
78
- exports.closest = closest;
78
+ exports.closestBySelector = closestBySelector;
79
79
  /**
80
80
  * @hidden
81
81
  */
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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","@progress/kendo-angular-popup","@angular/core","@angular/common","rxjs/operators","rxjs","@progress/kendo-licensing","@progress/kendo-angular-l10n"],function(r){var s,p,a,l,c,u,h,d;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){s=e(t)},function(t){p=e(t)},function(t){a=e(t)},function(t){l=e(t)},function(t){c=e(t)},function(t){u=e(t)},function(t){h=e(t)},function(t){d=e(t)}],execute:function(){function i(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var o,n;n={},i.m=o=[function(t,e){t.exports=a},function(t,e){t.exports=s},function(t,e,o){"use strict";function n(t){return 9===t.nodeType}Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var o={},i={},n={};switch(t){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:e};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:e};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:e,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:e,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},e.collision=function(t,e){return t||("top"===e||"bottom"===e?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var o=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},i=t;i&&!n(i);){if(o(i,e))return i;i=i.parentNode}},e.contains=function(t,e){return!!t&&!n(t)&&(t.contains?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},e.hasParent=function(t,e){for(;t&&t!==e;)t=t.parentNode;return t},e.getCenterOffset=function(t,e,o){t=t.getBoundingClientRect();return t[e]+t[o]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e){t.exports=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),r=o(3),l=o(2),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 e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(t){t=t.rtl;return e.direction=t?"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(t){t.preventDefault(),this.close.emit()},s.prototype.updateCalloutPosition=function(t,e){var o,i,n,r,s,p,a;this.callout&&(p=(r="top"===t||"bottom"===t)?"width":"height",s=r?"left":"top",i=r?"marginLeft":"marginTop",n=(o=this.content.nativeElement.querySelector(".k-callout")).getBoundingClientRect()[p],r=l.getCenterOffset(this.anchor.nativeElement,s,p),s=l.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(t,n,e),Object.keys(a).forEach(function(t){o.style[t]=a[t]}))},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(t,e){this.content=t,this.localizationService=e,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,o){var i={},n="top"===t||"bottom"===t;return o?("top"===t?i.bottom="unset":"bottom"===t?i.top="unset":"left"===t?i.right="unset":"right"===t&&(i.left="unset"),i[t]=-e+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)"):i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i},this.direction=e.rtl?"rtl":"ltr"}e.TooltipContentComponent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),o=o(0);e.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings");o=i.__decorate([o.Injectable()],function(){});e.TooltipSettings=o},function(t,e){t.exports=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),p=o(14),a=o(13),r=o(6),l=o(12),c=o(11),s=o(5),u=o(4),h=o(2),s=(Object.defineProperty(d.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),d.prototype.show=function(t){var e=this;this.popupRef||(t instanceof Element&&(t={nativeElement:t}),this.anchor=t,"hover"===this.showOn?this.popupRef||(clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return e.showContent(e.anchor)},this.showAfter)):(this.hideElementTitle(this.anchor),this.showContent(this.anchor)))},d.prototype.hide=function(){clearTimeout(this.showTimeout);var t=this.anchor&&this.anchor.nativeElement;t&&t.getAttribute("data-title")&&(!t.getAttribute("title")&&t.hasAttribute("title")&&t.setAttribute("title",t.getAttribute("data-title")),t.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},d.prototype.toggle=function(t,e){var o=this.anchor&&this.anchor.nativeElement;o!==(t=t instanceof Element?{nativeElement:t}:t).nativeElement&&this.hide(),o===t.nativeElement&&"click"===this.showOn&&this.hide(),(e=void 0===e?!this.popupRef:e)?this.show(t):this.hide()},d.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},d.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},d.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!h.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},d.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()},d.prototype.showContent=function(t){var e=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){e.openPopup(t),e.bindContent(e.popupRef.content,t)}),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe(function(){return e.hide()}))},d.prototype.bindContent=function(t,e){var o=this,t=t.instance;this.closeClickSubscription=t.close.subscribe(function(){o.hide()}),this.template?t.templateRef=this.template:t.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(t.titleTemplate=this.titleTemplate),t.closeTitle=this.closeTitle,t.anchor=e,t.callout=this.callout,t.closable=this.closable,t.position=this.position,t.tooltipWidth=this.tooltipWidth,t.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},d.prototype.hideElementTitle=function(t){t=t.nativeElement;t.getAttribute("title")&&(t.setAttribute("data-title",t.getAttribute("title")),t.setAttribute("title",""))},d.prototype.openPopup=function(t){var e=this,o=h.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,o=o.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:i,animate:!1,content:u.TooltipContentComponent,collision:h.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(t){t=t.flip,t=!0===t.horizontal||!0===t.vertical;r.updateCalloutPosition(e.position,t)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var t=e.popupRef.popupElement;e.popupMouseOutSubscription=a.fromEvent(t,"mouseout").subscribe(function(t){return e.onMouseOut(t)})})},d.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},d.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(p.filter(function(){return""!==e.filter})).subscribe(function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)}))},d.prototype.onMouseClick=function(t,e){var o=t.target,i=h.closest(o,this.filter),t=this.popupRef&&this.popupRef.popupElement;if(t){if(t.contains(o))return;if(this.closable)return}e.contains(o)&&i?this.toggle(i,!0):t&&this.hide()},d.prototype.onMouseOver=function(t){t=h.closest(t.target,this.filter);"hover"===this.showOn&&t&&this.toggle(t,!0)},d.prototype.onMouseOut=function(t){var e;"hover"!==this.showOn||this.closable||(e=this.popupRef&&this.popupRef.popupElement,(t=t.relatedTarget)&&this.anchor&&h.contains(this.anchor.nativeElement,t)||t&&h.contains(e,t)||this.hide())},d.prototype.verifyProperties=function(){if(n.isDevMode()){if(!h.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!h.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)],d.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],d.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],d.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],d.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],d.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],d.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],d.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],d.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],d.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"closeTitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],d.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])],d));function d(t,e,o,i,n,r){var s=this;this.tooltipWrapper=t,this.ngZone=e,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"],l.validatePackage(c.packageMetadata),Object.assign(this,n,r),this.ngZone.runOutsideAngular(function(){var t=s.tooltipWrapper.nativeElement;s.anchorTitleSubscription=a.fromEvent(t,"mouseover").pipe(p.filter(function(){return""!==s.filter})).subscribe(function(t){t=h.closest(t.target,s.filter);t&&s.hideElementTitle({nativeElement:t})}),s.mouseOverSubscription=a.fromEvent(t,"mouseover").pipe(p.debounceTime(100),p.filter(function(){return""!==s.filter})).subscribe(function(t){return s.onMouseOver(t)}),s.mouseOutSubscription=a.fromEvent(t,"mouseout").pipe(p.debounceTime(100)).subscribe(function(t){return s.onMouseOut(t)})})}e.TooltipDirective=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n,r=o(1),s=o(0),o=o(3),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(t){var e=i.call(this)||this;return e.service=t,e}e.LocalizedMessagesDirective=o},function(t,e){t.exports=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),r=o(9),s=o(7),p=o(6),a=o(4),o=o(8),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]})],function(){});e.TooltipModule=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1620824286,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(t,e){t.exports=h},function(t,e){t.exports=u},function(t,e){t.exports=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(7);e.TooltipDirective=i.TooltipDirective;i=o(10);e.TooltipModule=i.TooltipModule;o=o(5);e.TooltipSettings=o.TooltipSettings,e.TOOLTIP_SETTINGS=o.TOOLTIP_SETTINGS,function(t){for(var e in t)r(e,t[e])}(e)}],i.c=n,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=15)}}});
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=l},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,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=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(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:1642537195,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(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)}}});
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.0.2-dev.202105121258",
6
+ "version": "3.1.0-dev.202201182021",
7
7
  "main": "dist/npm/index.js",
8
8
  "module": "dist/fesm5/index.js",
9
9
  "es2015": "dist/fesm2015/index.js",
@@ -15,8 +15,8 @@
15
15
  "unpkg": "dist/cdn/main.js",
16
16
  "sideEffects": false,
17
17
  "scripts": {
18
- "test": "jest",
19
- "test:watch": "jest --watch",
18
+ "test": "jest --env=jsdom",
19
+ "test:watch": "jest --watch --env=jsdom",
20
20
  "test:ci": "ci-angular-test",
21
21
  "start": "gulp start",
22
22
  "e2e:ci": "ci-angular-e2e",
@@ -33,13 +33,13 @@
33
33
  "Tooltip"
34
34
  ],
35
35
  "peerDependencies": {
36
- "@angular/common": "8 - 12",
37
- "@angular/core": "8 - 12",
36
+ "@angular/common": "8 - 13",
37
+ "@angular/core": "8 - 13",
38
38
  "@progress/kendo-angular-common": "^2.0.0",
39
39
  "@progress/kendo-angular-l10n": "^3.0.0",
40
40
  "@progress/kendo-angular-popup": "^4.0.0",
41
41
  "@progress/kendo-licensing": "^1.0.2",
42
- "rxjs": "^6.4.0"
42
+ "rxjs": "^6.4.0 || ^7.0.0"
43
43
  },
44
44
  "dependencies": {
45
45
  "@progress/kendo-schematics": "^1.0.0",
@@ -58,30 +58,32 @@
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": "^6.0.0",
62
- "@progress/kendo-angular-common": "^2.0.0",
61
+ "@progress/kendo-angular-buttons": "^6.4.1",
62
+ "@progress/kendo-angular-icons": "^0.4.4",
63
+ "@progress/kendo-angular-common": "^2.0.2",
63
64
  "@progress/kendo-angular-dateinputs": "^5.0.0",
64
65
  "@progress/kendo-angular-dropdowns": "^5.0.0",
65
- "@progress/kendo-angular-e2e": "^2.2.0",
66
+ "@progress/kendo-angular-e2e": "^3.0.0",
66
67
  "@progress/kendo-angular-excel-export": "^4.0.0",
67
68
  "@progress/kendo-angular-grid": "dev",
68
69
  "@progress/kendo-angular-inputs": "^7.0.0",
69
70
  "@progress/kendo-angular-intl": "^3.0.0",
70
71
  "@progress/kendo-angular-jest-preset": "^2.0.0",
71
- "@progress/kendo-angular-l10n": "^3.0.0",
72
+ "@progress/kendo-angular-l10n": "^3.0.3",
72
73
  "@progress/kendo-angular-label": "^3.0.0",
73
74
  "@progress/kendo-angular-pdf-export": "^3.0.0",
74
- "@progress/kendo-angular-popup": "^4.0.0",
75
- "@progress/kendo-angular-tasks": "^18.0.2",
75
+ "@progress/kendo-angular-popup": "^4.0.2",
76
+ "@progress/kendo-angular-tasks": "^19.1.0",
76
77
  "@progress/kendo-angular-treeview": "^5.0.0",
77
78
  "@progress/kendo-data-query": "^1.5.0",
78
79
  "@progress/kendo-drawing": "^1.5.7",
79
- "@progress/kendo-licensing": "^1.0.2",
80
- "@progress/kendo-theme-bootstrap": "^4.19.0",
81
- "@progress/kendo-theme-default": "^4.21.0",
82
- "@progress/kendo-theme-material": "^3.18.0",
80
+ "@progress/kendo-licensing": "^1.2.1",
81
+ "@progress/kendo-e2e": "^0.7.0",
82
+ "@progress/kendo-theme-bootstrap": "^4.44.0",
83
+ "@progress/kendo-theme-default": "^4.44.0",
84
+ "@progress/kendo-theme-material": "^4.44.0",
83
85
  "@telerik/semantic-prerelease": "^1.0.0",
84
- "@types/jest": "^21.1.8",
86
+ "@types/jest": "^24.9.0",
85
87
  "@types/node": "ts3.4",
86
88
  "@types/zone.js": "0.0.27",
87
89
  "codelyzer": "^5.0.0",
@@ -90,8 +92,10 @@
90
92
  "ghooks": "^1.0.3",
91
93
  "gulp": "^4.0.0",
92
94
  "gulp-typedoc": "2.2.0",
93
- "jest-cli": "^21.2.1",
94
- "jest-junit": "^8.0.0",
95
+ "jest": "^24.9.0",
96
+ "jest-cli": "^24.9.0",
97
+ "jest-junit": "^12.2.0",
98
+ "jest-environment-jsdom": "^24.9.0",
95
99
  "rxjs": "~6.4.0",
96
100
  "rxjs-tslint-rules": "^4.23.1",
97
101
  "semantic-release": "^6.3.6",