@progress/kendo-angular-tooltip 3.1.6 → 4.0.0-dev.202204131841

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 (146) hide show
  1. package/bundles/kendo-angular-tooltip.umd.js +5 -0
  2. package/{dist/es/constants.d.ts → constants.d.ts} +0 -0
  3. package/{dist/es2015 → esm2015}/constants.js +0 -0
  4. package/{dist/es/models/functions.model.js → esm2015/kendo-angular-tooltip.js} +4 -0
  5. package/esm2015/localization/localized-messages.directive.js +38 -0
  6. package/{dist/es → esm2015}/main.js +2 -0
  7. package/{dist/es2015 → esm2015}/models/animation.model.js +1 -0
  8. package/{dist/es2015 → esm2015}/models/events.js +0 -0
  9. package/{dist/es2015 → esm2015}/models/functions.model.js +1 -0
  10. package/{dist/es → esm2015}/models/popover-show-option.type.js +1 -0
  11. package/{dist/es2015 → esm2015}/models/position.type.js +1 -0
  12. package/{dist/es → esm2015}/models/show.option.type.js +1 -0
  13. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  14. package/{dist/es2015 → esm2015}/popover/anchor.directive.js +22 -19
  15. package/{dist/es2015 → esm2015}/popover/container.directive.js +24 -23
  16. package/{dist/es2015 → esm2015}/popover/directives-base.js +13 -12
  17. package/{dist/es2015 → esm2015}/popover/popover.component.js +118 -108
  18. package/{dist/es2015 → esm2015}/popover/popover.service.js +9 -9
  19. package/esm2015/popover/template-directives/actions-template.directive.js +27 -0
  20. package/esm2015/popover/template-directives/body-template.directive.js +27 -0
  21. package/esm2015/popover/template-directives/title-template.directive.js +27 -0
  22. package/{dist/es2015 → esm2015}/popover.module.js +31 -16
  23. package/{dist/es2015 → esm2015}/tooltip/tooltip.content.component.js +95 -73
  24. package/{dist/es2015 → esm2015}/tooltip/tooltip.directive.js +57 -80
  25. package/{dist/es2015 → esm2015}/tooltip/tooltip.settings.js +12 -7
  26. package/{dist/es2015 → esm2015}/tooltip.module.js +15 -12
  27. package/{dist/es2015 → esm2015}/tooltips.module.js +12 -9
  28. package/{dist/es2015 → esm2015}/utils.js +0 -1
  29. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-tooltip.js} +456 -399
  30. package/{dist/es2015/constants.d.ts → kendo-angular-tooltip.d.ts} +3 -6
  31. package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
  32. package/{dist/es/main.d.ts → main.d.ts} +3 -0
  33. package/{dist/es/models → models}/animation.model.d.ts +0 -0
  34. package/{dist/es/models → models}/events.d.ts +0 -0
  35. package/{dist/es/models → models}/functions.model.d.ts +0 -0
  36. package/{dist/es/models → models}/popover-show-option.type.d.ts +0 -0
  37. package/{dist/es/models → models}/position.type.d.ts +0 -0
  38. package/{dist/es/models → models}/show.option.type.d.ts +0 -0
  39. package/{dist/es/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  40. package/package.json +34 -113
  41. package/{dist/es2015/popover → popover}/anchor.directive.d.ts +3 -0
  42. package/{dist/es/popover → popover}/container.directive.d.ts +3 -0
  43. package/{dist/es2015/popover → popover}/directives-base.d.ts +9 -4
  44. package/{dist/es2015/popover → popover}/popover.component.d.ts +21 -8
  45. package/{dist/es/popover → popover}/popover.service.d.ts +7 -4
  46. package/{dist/es2015/popover → popover}/template-directives/actions-template.directive.d.ts +3 -0
  47. package/{dist/es2015/popover → popover}/template-directives/body-template.directive.d.ts +3 -0
  48. package/{dist/es2015/popover → popover}/template-directives/title-template.directive.d.ts +3 -0
  49. package/popover.module.d.ts +43 -0
  50. package/schematics/ngAdd/index.js +5 -2
  51. package/schematics/ngAdd/index.js.map +1 -1
  52. package/{dist/es/tooltip → tooltip}/tooltip.content.component.d.ts +7 -4
  53. package/{dist/es/tooltip → tooltip}/tooltip.directive.d.ts +5 -1
  54. package/{dist/es/tooltip → tooltip}/tooltip.settings.d.ts +7 -0
  55. package/{dist/es2015/tooltip.module.d.ts → tooltip.module.d.ts} +9 -0
  56. package/{dist/es2015/tooltips.module.d.ts → tooltips.module.d.ts} +6 -0
  57. package/{dist/es/utils.d.ts → utils.d.ts} +0 -0
  58. package/dist/cdn/js/kendo-angular-tooltip.js +0 -20
  59. package/dist/cdn/main.js +0 -5
  60. package/dist/es/constants.js +0 -12
  61. package/dist/es/index.d.ts +0 -12
  62. package/dist/es/index.js +0 -12
  63. package/dist/es/index.metadata.json +0 -1
  64. package/dist/es/localization/localized-messages.directive.d.ts +0 -16
  65. package/dist/es/localization/localized-messages.directive.js +0 -38
  66. package/dist/es/models/animation.model.js +0 -4
  67. package/dist/es/models/events.js +0 -78
  68. package/dist/es/models/position.type.js +0 -4
  69. package/dist/es/package-metadata.js +0 -15
  70. package/dist/es/popover/anchor.directive.d.ts +0 -44
  71. package/dist/es/popover/anchor.directive.js +0 -156
  72. package/dist/es/popover/container.directive.js +0 -182
  73. package/dist/es/popover/directives-base.d.ts +0 -90
  74. package/dist/es/popover/directives-base.js +0 -294
  75. package/dist/es/popover/popover.component.d.ts +0 -166
  76. package/dist/es/popover/popover.component.js +0 -300
  77. package/dist/es/popover/popover.service.js +0 -88
  78. package/dist/es/popover/template-directives/actions-template.directive.d.ts +0 -15
  79. package/dist/es/popover/template-directives/actions-template.directive.js +0 -26
  80. package/dist/es/popover/template-directives/body-template.directive.d.ts +0 -15
  81. package/dist/es/popover/template-directives/body-template.directive.js +0 -26
  82. package/dist/es/popover/template-directives/title-template.directive.d.ts +0 -15
  83. package/dist/es/popover/template-directives/title-template.directive.js +0 -26
  84. package/dist/es/popover.module.d.ts +0 -31
  85. package/dist/es/popover.module.js +0 -65
  86. package/dist/es/tooltip/tooltip.content.component.js +0 -192
  87. package/dist/es/tooltip/tooltip.directive.js +0 -452
  88. package/dist/es/tooltip/tooltip.settings.js +0 -46
  89. package/dist/es/tooltip.module.d.ts +0 -36
  90. package/dist/es/tooltip.module.js +0 -57
  91. package/dist/es/tooltips.module.d.ts +0 -32
  92. package/dist/es/tooltips.module.js +0 -45
  93. package/dist/es/utils.js +0 -113
  94. package/dist/es2015/index.d.ts +0 -12
  95. package/dist/es2015/index.js +0 -12
  96. package/dist/es2015/index.metadata.json +0 -1
  97. package/dist/es2015/localization/localized-messages.directive.js +0 -34
  98. package/dist/es2015/main.d.ts +0 -22
  99. package/dist/es2015/main.js +0 -18
  100. package/dist/es2015/models/animation.model.d.ts +0 -9
  101. package/dist/es2015/models/events.d.ts +0 -78
  102. package/dist/es2015/models/functions.model.d.ts +0 -17
  103. package/dist/es2015/models/popover-show-option.type.d.ts +0 -8
  104. package/dist/es2015/models/popover-show-option.type.js +0 -4
  105. package/dist/es2015/models/position.type.d.ts +0 -14
  106. package/dist/es2015/models/show.option.type.d.ts +0 -13
  107. package/dist/es2015/models/show.option.type.js +0 -4
  108. package/dist/es2015/package-metadata.d.ts +0 -9
  109. package/dist/es2015/popover/container.directive.d.ts +0 -56
  110. package/dist/es2015/popover/popover.service.d.ts +0 -30
  111. package/dist/es2015/popover/template-directives/actions-template.directive.js +0 -25
  112. package/dist/es2015/popover/template-directives/body-template.directive.js +0 -25
  113. package/dist/es2015/popover/template-directives/title-template.directive.js +0 -25
  114. package/dist/es2015/popover.module.d.ts +0 -31
  115. package/dist/es2015/tooltip/tooltip.content.component.d.ts +0 -41
  116. package/dist/es2015/tooltip/tooltip.directive.d.ts +0 -156
  117. package/dist/es2015/tooltip/tooltip.settings.d.ts +0 -72
  118. package/dist/es2015/utils.d.ts +0 -34
  119. package/dist/fesm5/index.js +0 -2071
  120. package/dist/npm/constants.js +0 -14
  121. package/dist/npm/index.js +0 -19
  122. package/dist/npm/localization/localized-messages.directive.js +0 -40
  123. package/dist/npm/main.js +0 -36
  124. package/dist/npm/models/animation.model.js +0 -6
  125. package/dist/npm/models/events.js +0 -80
  126. package/dist/npm/models/functions.model.js +0 -6
  127. package/dist/npm/models/popover-show-option.type.js +0 -6
  128. package/dist/npm/models/position.type.js +0 -6
  129. package/dist/npm/models/show.option.type.js +0 -6
  130. package/dist/npm/package-metadata.js +0 -17
  131. package/dist/npm/popover/anchor.directive.js +0 -158
  132. package/dist/npm/popover/container.directive.js +0 -184
  133. package/dist/npm/popover/directives-base.js +0 -296
  134. package/dist/npm/popover/popover.component.js +0 -302
  135. package/dist/npm/popover/popover.service.js +0 -90
  136. package/dist/npm/popover/template-directives/actions-template.directive.js +0 -28
  137. package/dist/npm/popover/template-directives/body-template.directive.js +0 -28
  138. package/dist/npm/popover/template-directives/title-template.directive.js +0 -28
  139. package/dist/npm/popover.module.js +0 -67
  140. package/dist/npm/tooltip/tooltip.content.component.js +0 -194
  141. package/dist/npm/tooltip/tooltip.directive.js +0 -454
  142. package/dist/npm/tooltip/tooltip.settings.js +0 -48
  143. package/dist/npm/tooltip.module.js +0 -59
  144. package/dist/npm/tooltips.module.js +0 -47
  145. package/dist/npm/utils.js +0 -121
  146. package/dist/systemjs/kendo-angular-tooltip.js +0 -5
@@ -1,28 +0,0 @@
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;
@@ -1,28 +0,0 @@
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;
@@ -1,28 +0,0 @@
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;
@@ -1,67 +0,0 @@
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,194 +0,0 @@
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 kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
10
- var utils_1 = require("../utils");
11
- /**
12
- * @hidden
13
- */
14
- var TooltipContentComponent = /** @class */ (function () {
15
- function TooltipContentComponent(content, localizationService) {
16
- this.content = content;
17
- this.localizationService = localizationService;
18
- this.close = new core_1.EventEmitter();
19
- this.tooltipWidth = null;
20
- this.tooltipHeight = null;
21
- this.callout = true;
22
- this.calloutStyles = function (position, calloutSize, isFlip) {
23
- var styles = {};
24
- var isVertical = position === 'top' || position === 'bottom';
25
- var flipDeg = '180deg';
26
- var zeroDeg = '0deg';
27
- if (!isFlip) {
28
- styles.transform = isVertical ? "rotateX(" + zeroDeg + ")" : "rotateY(" + zeroDeg + ")";
29
- return styles;
30
- }
31
- if (position === 'top') {
32
- styles.bottom = 'unset';
33
- }
34
- else if (position === 'bottom') {
35
- styles.top = 'unset';
36
- }
37
- else if (position === 'left') {
38
- styles.right = 'unset';
39
- }
40
- else if (position === 'right') {
41
- styles.left = 'unset';
42
- }
43
- styles[position] = -calloutSize + "px";
44
- styles.transform = isVertical ? "rotateX(" + flipDeg + ")" : "rotateY(" + flipDeg + ")";
45
- return styles;
46
- };
47
- this.direction = localizationService.rtl ? 'rtl' : 'ltr';
48
- }
49
- Object.defineProperty(TooltipContentComponent.prototype, "cssClasses", {
50
- get: function () {
51
- return 'k-widget k-tooltip';
52
- },
53
- enumerable: true,
54
- configurable: true
55
- });
56
- Object.defineProperty(TooltipContentComponent.prototype, "className", {
57
- get: function () {
58
- return this.closable;
59
- },
60
- enumerable: true,
61
- configurable: true
62
- });
63
- Object.defineProperty(TooltipContentComponent.prototype, "cssPosition", {
64
- get: function () {
65
- return 'relative';
66
- },
67
- enumerable: true,
68
- configurable: true
69
- });
70
- TooltipContentComponent.prototype.ngOnInit = function () {
71
- var _this = this;
72
- this.dynamicRTLSubscription = this.localizationService.changes
73
- .subscribe(function (_a) {
74
- var rtl = _a.rtl;
75
- return _this.direction = rtl ? 'rtl' : 'ltr';
76
- });
77
- };
78
- TooltipContentComponent.prototype.ngOnDestroy = function () {
79
- if (this.dynamicRTLSubscription) {
80
- this.dynamicRTLSubscription.unsubscribe();
81
- }
82
- };
83
- Object.defineProperty(TooltipContentComponent.prototype, "closeButtonTitle", {
84
- get: function () {
85
- return this.closeTitle || this.localizationService.get('closeTitle');
86
- },
87
- enumerable: true,
88
- configurable: true
89
- });
90
- TooltipContentComponent.prototype.calloutPositionClass = function () {
91
- return {
92
- 'top': 'k-callout-s',
93
- 'left': 'k-callout-e',
94
- 'bottom': 'k-callout-n',
95
- 'right': 'k-callout-w'
96
- }[this.position];
97
- };
98
- TooltipContentComponent.prototype.onCloseClick = function (event) {
99
- event.preventDefault();
100
- this.close.emit();
101
- };
102
- TooltipContentComponent.prototype.updateCalloutPosition = function (position, isFlip) {
103
- if (!this.callout) {
104
- return;
105
- }
106
- var callout = this.content.nativeElement.querySelector('.k-callout');
107
- var isVertical = position === 'top' || position === 'bottom';
108
- var size = isVertical ? 'width' : 'height';
109
- var dir = isVertical ? 'left' : 'top';
110
- var offsetProperty = isVertical ? 'marginLeft' : 'marginTop';
111
- var calloutSize = callout.getBoundingClientRect()[size];
112
- var anchorCenter = utils_1.getCenterOffset(this.anchor.nativeElement, dir, size);
113
- var contentCenter = utils_1.getCenterOffset(this.content.nativeElement, dir, size);
114
- var diff = Math.abs(contentCenter - anchorCenter);
115
- if (diff > 1 || diff === 0 || Math.round(diff) === 0) {
116
- var newMargin = contentCenter - anchorCenter + (calloutSize / 2);
117
- callout.style[offsetProperty] = -newMargin + "px";
118
- }
119
- var calloutStyles = this.calloutStyles(position, calloutSize, isFlip);
120
- Object.keys(calloutStyles).forEach(function (style) {
121
- callout.style[style] = calloutStyles[style];
122
- });
123
- };
124
- tslib_1.__decorate([
125
- core_1.HostBinding('attr.dir'),
126
- tslib_1.__metadata("design:type", String)
127
- ], TooltipContentComponent.prototype, "direction", void 0);
128
- tslib_1.__decorate([
129
- core_1.Output(),
130
- tslib_1.__metadata("design:type", core_1.EventEmitter)
131
- ], TooltipContentComponent.prototype, "close", void 0);
132
- tslib_1.__decorate([
133
- core_1.HostBinding('class'),
134
- tslib_1.__metadata("design:type", String),
135
- tslib_1.__metadata("design:paramtypes", [])
136
- ], TooltipContentComponent.prototype, "cssClasses", null);
137
- tslib_1.__decorate([
138
- core_1.HostBinding('class.k-tooltip-closable'),
139
- tslib_1.__metadata("design:type", Boolean),
140
- tslib_1.__metadata("design:paramtypes", [])
141
- ], TooltipContentComponent.prototype, "className", null);
142
- tslib_1.__decorate([
143
- core_1.HostBinding('style.position'),
144
- tslib_1.__metadata("design:type", String),
145
- tslib_1.__metadata("design:paramtypes", [])
146
- ], TooltipContentComponent.prototype, "cssPosition", null);
147
- tslib_1.__decorate([
148
- core_1.HostBinding('style.width.px'),
149
- core_1.Input(),
150
- tslib_1.__metadata("design:type", Number)
151
- ], TooltipContentComponent.prototype, "tooltipWidth", void 0);
152
- tslib_1.__decorate([
153
- core_1.HostBinding('style.height.px'),
154
- core_1.Input(),
155
- tslib_1.__metadata("design:type", Number)
156
- ], TooltipContentComponent.prototype, "tooltipHeight", void 0);
157
- tslib_1.__decorate([
158
- core_1.Input(),
159
- tslib_1.__metadata("design:type", core_1.TemplateRef)
160
- ], TooltipContentComponent.prototype, "titleTemplate", void 0);
161
- tslib_1.__decorate([
162
- core_1.Input(),
163
- tslib_1.__metadata("design:type", core_1.ElementRef)
164
- ], TooltipContentComponent.prototype, "anchor", void 0);
165
- tslib_1.__decorate([
166
- core_1.Input(),
167
- tslib_1.__metadata("design:type", Boolean)
168
- ], TooltipContentComponent.prototype, "closable", void 0);
169
- tslib_1.__decorate([
170
- core_1.Input(),
171
- tslib_1.__metadata("design:type", core_1.TemplateRef)
172
- ], TooltipContentComponent.prototype, "templateRef", void 0);
173
- tslib_1.__decorate([
174
- core_1.Input(),
175
- tslib_1.__metadata("design:type", String)
176
- ], TooltipContentComponent.prototype, "templateString", void 0);
177
- TooltipContentComponent = tslib_1.__decorate([
178
- core_1.Component({
179
- selector: 'kendo-tooltip',
180
- 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 ",
181
- providers: [
182
- kendo_angular_l10n_1.LocalizationService,
183
- {
184
- provide: kendo_angular_l10n_1.L10N_PREFIX,
185
- useValue: 'kendo.tooltip'
186
- }
187
- ]
188
- }),
189
- tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
190
- kendo_angular_l10n_1.LocalizationService])
191
- ], TooltipContentComponent);
192
- return TooltipContentComponent;
193
- }());
194
- exports.TooltipContentComponent = TooltipContentComponent;