@progress/kendo-angular-tooltip 3.1.7-dev.202203280924 → 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 +110 -112
  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} +448 -403
  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 +13 -6
  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 -172
  76. package/dist/es/popover/popover.component.js +0 -312
  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 -2083
  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 -314
  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,294 +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
- import * as tslib_1 from "tslib";
6
- import { ElementRef, Input, isDevMode } from "@angular/core";
7
- import { closest, hasObservers, isDocumentAvailable } from "@progress/kendo-angular-common";
8
- import { ERRORS } from '../constants';
9
- import { PopoverHideEvent, PopoverShowEvent, PopoverShownEvent, PopoverHiddenEvent } from "../models/events";
10
- import { align, containsItem } from "../utils";
11
- import { PopoverComponent } from "./popover.component";
12
- import { Subscription } from "rxjs";
13
- var validShowOptions = ['hover', 'click', 'none', 'focus'];
14
- /**
15
- * @hidden
16
- */
17
- var PopoverDirectivesBase = /** @class */ (function () {
18
- function PopoverDirectivesBase(ngZone, popupService, renderer) {
19
- this.ngZone = ngZone;
20
- this.popupService = popupService;
21
- this.renderer = renderer;
22
- this.subs = new Subscription();
23
- this._showOn = 'click';
24
- }
25
- Object.defineProperty(PopoverDirectivesBase.prototype, "popover", {
26
- get: function () {
27
- return this._popover;
28
- },
29
- /**
30
- * Specifies the popover instance that will be rendered.
31
- * Accepts a [`PopoverComponent`]({% slug api_tooltip_popovercomponent %}) instance or
32
- * a [`PopoverFn`]({% slug api_tooltip_popoverfn %}) callback which returns a [`PopoverComponent`]({% slug api_tooltip_popovercomponent %}) instance
33
- * depending on the current anchor element.
34
- *
35
- * [See example]({% slug templates_popover %}#toc-popovercallback)
36
- */
37
- set: function (value) {
38
- if (value instanceof PopoverComponent || typeof value === "function") {
39
- this._popover = value;
40
- }
41
- else {
42
- if (isDevMode) {
43
- throw new Error(ERRORS.popover);
44
- }
45
- }
46
- },
47
- enumerable: true,
48
- configurable: true
49
- });
50
- Object.defineProperty(PopoverDirectivesBase.prototype, "showOn", {
51
- get: function () {
52
- return this._showOn;
53
- },
54
- /**
55
- * The event on which the Popover will be shown
56
- *
57
- * The supported values are:
58
- * - `click` (default) —The Popover will be shown when its `anchor` element is clicked.
59
- * - `hover`—The Popover will be shown when its `anchor` element is hovered.
60
- * - `focus`—The Popover will be shown when its `anchor` element is focused.
61
- * - `none`—The Popover will not be shown on user interaction. It could be rendered via the Popover API methods.
62
- */
63
- set: function (value) {
64
- if (isDevMode && !containsItem(validShowOptions, value)) {
65
- throw new Error(ERRORS.showOn);
66
- }
67
- this._showOn = value;
68
- },
69
- enumerable: true,
70
- configurable: true
71
- });
72
- PopoverDirectivesBase.prototype.ngAfterViewInit = function () {
73
- var _this = this;
74
- if (!isDocumentAvailable()) {
75
- return;
76
- }
77
- this.ngZone.runOutsideAngular(function () {
78
- switch (_this.showOn) {
79
- case 'hover':
80
- _this.subscribeToEvents([{
81
- name: 'mouseenter', handler: _this.mouseenterHandler
82
- }, {
83
- name: 'mouseleave', handler: _this.mouseleaveHandler
84
- }]);
85
- break;
86
- case 'focus':
87
- _this.subscribeToEvents([{
88
- name: 'focus', handler: _this.focusHandler
89
- }, {
90
- name: 'blur', handler: _this.blurHandler
91
- }]);
92
- break;
93
- case 'click':
94
- _this.subscribeClick();
95
- break;
96
- default:
97
- break;
98
- }
99
- });
100
- };
101
- PopoverDirectivesBase.prototype.ngOnDestroy = function () {
102
- this.closePopup();
103
- if (this.disposeHoverOverListener) {
104
- this.disposeHoverOverListener();
105
- }
106
- if (this.disposeHoverOutListener) {
107
- this.disposeHoverOutListener();
108
- }
109
- if (this.disposeClickListener) {
110
- this.disposeClickListener();
111
- }
112
- if (this._focusInsideSub) {
113
- this._focusInsideSub.unsubscribe();
114
- }
115
- if (this._hideSub) {
116
- this._hideSub.unsubscribe();
117
- }
118
- if (this.subs) {
119
- this.subs.unsubscribe();
120
- }
121
- if (this._popupOpenSub) {
122
- this._popupOpenSub.unsubscribe();
123
- }
124
- if (this._popupCloseSub) {
125
- this._popupCloseSub.unsubscribe();
126
- }
127
- };
128
- /**
129
- * Hides the Popover ([See example]({% slug programmaticcontrol_popover %})).
130
- */
131
- PopoverDirectivesBase.prototype.hide = function () {
132
- this.closePopup();
133
- };
134
- /**
135
- * @hidden
136
- */
137
- PopoverDirectivesBase.prototype.closePopup = function () {
138
- if (this.popupRef) {
139
- this.popupRef.close();
140
- this.popupRef = null;
141
- if (this.disposePopupHoverOutListener) {
142
- this.disposePopupHoverOutListener();
143
- }
144
- if (this.disposePopupHoverInListener) {
145
- this.disposePopupHoverInListener();
146
- }
147
- if (this.disposePopupFocusOutListener) {
148
- this.disposePopupFocusOutListener();
149
- }
150
- }
151
- };
152
- /**
153
- * @hidden
154
- */
155
- PopoverDirectivesBase.prototype.openPopup = function (anchor) {
156
- var _anchor = anchor instanceof ElementRef ? anchor.nativeElement : anchor;
157
- var popoverComp = this.popover instanceof PopoverComponent ? this.popover : this.popover(_anchor);
158
- var alignSettings = align(popoverComp.position, popoverComp.offset);
159
- var anchorAlign = alignSettings.anchorAlign;
160
- var popupAlign = alignSettings.popupAlign;
161
- var popupMargin = alignSettings.popupMargin;
162
- var _animation = popoverComp.animation;
163
- this.popupRef = this.popupService.open({
164
- anchor: { nativeElement: _anchor },
165
- animate: _animation,
166
- content: PopoverComponent,
167
- popupAlign: popupAlign,
168
- anchorAlign: anchorAlign,
169
- margin: popupMargin,
170
- popupClass: 'k-popup-transparent',
171
- collision: { horizontal: 'fit', vertical: 'fit' }
172
- });
173
- this.applySettings(this.popupRef.content, popoverComp, anchor);
174
- this.monitorPopup();
175
- this.initializeCompletionEvents(popoverComp, _anchor);
176
- };
177
- /**
178
- * @hidden
179
- */
180
- PopoverDirectivesBase.prototype.isPrevented = function (anchorElement, show) {
181
- var popoverComp = this.popover instanceof PopoverComponent ? this.popover : this.popover(anchorElement);
182
- var eventArgs;
183
- eventArgs = this.initializeEvents(popoverComp, eventArgs, show, anchorElement);
184
- return eventArgs.isDefaultPrevented();
185
- };
186
- /**
187
- * @hidden
188
- */
189
- PopoverDirectivesBase.prototype.monitorPopup = function () {
190
- var _this = this;
191
- if (this.showOn === 'hover') {
192
- this.ngZone.runOutsideAngular(function () {
193
- var popup = _this.popupRef.popupElement;
194
- _this.disposePopupHoverInListener = _this.renderer.listen(popup, 'mouseenter', function (_) {
195
- _this.ngZone.run(function (_) { return _this._popoverService.emitPopoverState(true); });
196
- });
197
- _this.disposePopupHoverOutListener = _this.renderer.listen(popup, 'mouseleave', function (_) {
198
- _this.ngZone.run(function (_) { return _this._popoverService.emitPopoverState(false); });
199
- });
200
- });
201
- }
202
- if (this.showOn === 'focus') {
203
- this.ngZone.runOutsideAngular(function () {
204
- var popup = _this.popupRef.popupElement;
205
- _this.disposePopupFocusOutListener = _this.renderer.listen(popup, 'focusout', function (e) {
206
- var isInsidePopover = closest(e.relatedTarget, function (node) { return node.classList && node.classList.contains('k-popover'); });
207
- if (!isInsidePopover) {
208
- _this.ngZone.run(function (_) { return _this._popoverService.emitFocusInsidePopover(false); });
209
- }
210
- });
211
- });
212
- }
213
- };
214
- PopoverDirectivesBase.prototype.applySettings = function (contentComponent, popover, anchor) {
215
- var content = contentComponent.instance;
216
- var _anchor = anchor instanceof ElementRef ? anchor.nativeElement : anchor;
217
- content.visible = true;
218
- content.anchor = _anchor;
219
- content.position = popover.position;
220
- content.offset = popover.offset;
221
- content.width = popover.width;
222
- content.height = popover.height;
223
- content.title = popover.title;
224
- content.body = popover.body;
225
- content.callout = popover.callout;
226
- content.animation = popover.animation;
227
- content.contextData = popover.templateData(_anchor);
228
- content.titleTemplate = popover.titleTemplate;
229
- content.bodyTemplate = popover.bodyTemplate;
230
- content.actionsTemplate = popover.actionsTemplate;
231
- this.popupRef.content.changeDetectorRef.detectChanges();
232
- };
233
- /**
234
- * @hidden
235
- */
236
- PopoverDirectivesBase.prototype.initializeEvents = function (popoverComp, eventArgs, show, anchorElement) {
237
- if (show) {
238
- eventArgs = new PopoverShowEvent(anchorElement);
239
- if (this.shouldEmitEvent(!!this.popupRef, 'show', popoverComp)) {
240
- this.ngZone.run(function () { return popoverComp.show.emit(eventArgs); });
241
- }
242
- }
243
- else {
244
- eventArgs = new PopoverHideEvent(anchorElement, this.popupRef);
245
- if (this.shouldEmitEvent(!!this.popupRef, 'hide', popoverComp)) {
246
- this.ngZone.run(function () { return popoverComp.hide.emit(eventArgs); });
247
- }
248
- }
249
- return eventArgs;
250
- };
251
- PopoverDirectivesBase.prototype.initializeCompletionEvents = function (popoverComp, _anchor) {
252
- var _this = this;
253
- if (this.shouldEmitCompletionEvents('shown', popoverComp)) {
254
- this.popupRef.popupOpen.subscribe(function () {
255
- var eventArgs = new PopoverShownEvent(_anchor, _this.popupRef);
256
- popoverComp.shown.emit(eventArgs);
257
- });
258
- }
259
- if (this.shouldEmitCompletionEvents('hidden', popoverComp)) {
260
- this.popupRef.popupClose.subscribe(function () {
261
- _this.ngZone.run(function (_) {
262
- var eventArgs = new PopoverHiddenEvent(_anchor);
263
- popoverComp.hidden.emit(eventArgs);
264
- });
265
- });
266
- }
267
- };
268
- PopoverDirectivesBase.prototype.shouldEmitEvent = function (hasPopup, event, popoverComp) {
269
- if ((event === 'show' && !hasPopup && hasObservers(popoverComp[event]))
270
- || (event === 'hide' && hasPopup && hasObservers(popoverComp[event]))) {
271
- return true;
272
- }
273
- return false;
274
- };
275
- PopoverDirectivesBase.prototype.shouldEmitCompletionEvents = function (event, popoverComp) {
276
- if ((hasObservers(popoverComp[event]) && !this._popupOpenSub)
277
- || (hasObservers(popoverComp[event]) && !this._popupCloseSub)) {
278
- return true;
279
- }
280
- return false;
281
- };
282
- tslib_1.__decorate([
283
- Input(),
284
- tslib_1.__metadata("design:type", Object),
285
- tslib_1.__metadata("design:paramtypes", [Object])
286
- ], PopoverDirectivesBase.prototype, "popover", null);
287
- tslib_1.__decorate([
288
- Input(),
289
- tslib_1.__metadata("design:type", String),
290
- tslib_1.__metadata("design:paramtypes", [String])
291
- ], PopoverDirectivesBase.prototype, "showOn", null);
292
- return PopoverDirectivesBase;
293
- }());
294
- export { PopoverDirectivesBase };
@@ -1,172 +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
- import { EventEmitter } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { Position } from '../models/position.type';
8
- import { PopoverDataFn } from '../models/functions.model';
9
- import { PopoverTitleTemplateDirective } from './template-directives/title-template.directive';
10
- import { PopoverBodyTemplateDirective } from './template-directives/body-template.directive';
11
- import { PopoverActionsTemplateDirective } from './template-directives/actions-template.directive';
12
- import { PopoverHideEvent, PopoverShowEvent, PopoverShownEvent } from '../models/events';
13
- import { PopoverAnimation } from '../models/animation.model';
14
- /**
15
- * Represents the [Kendo UI Popover component for Angular]({% slug overview_popover %}).
16
- * Used to display additional information that is related to a target element.
17
- *
18
- * @example
19
- * ```ts-no-run
20
- * <kendo-popover>
21
- * <ng-template kendoPopoverTitleTemplate>Foo Title</ng-template>
22
- * <ng-template kendoPopoverBodyTemplate>Foo Body</ng-template>
23
- * <ng-template kendoPopoverActionsTemplate>Foo Actions</ng-template>
24
- * </kendo-popover>
25
- * ```
26
- */
27
- export declare class PopoverComponent {
28
- private localization;
29
- /**
30
- * @hidden
31
- */
32
- anchor: Element;
33
- /**
34
- * Specifies the position of the Popover in relation to its anchor element. [See example]({% slug positioning_popover %})
35
- *
36
- * The possible options are:
37
- * `top`
38
- * `bottom`
39
- * `right` (Default)
40
- * `left`
41
- */
42
- position: Position;
43
- /**
44
- * Specifies the distance from the Popover to its anchor element in pixels.
45
- *
46
- * @default `6`
47
- */
48
- offset: number;
49
- /**
50
- * Determines the width of the popover. Numeric values are treated as pixels.
51
- * @default 'auto'
52
- */
53
- width: number | string;
54
- /**
55
- * Determines the height of the popover. Numeric values are treated as pixels.
56
- * @default 'auto'
57
- */
58
- height: number | string;
59
- /**
60
- * @hidden
61
- */
62
- direction: 'ltr' | 'rtl';
63
- /**
64
- * Specifies the main header text of the Popover.
65
- *
66
- * If a `titleTemplate` is provided it would take precedence over the title.
67
- */
68
- title: string;
69
- /**
70
- * @hidden
71
- * Specifies the secondary header text of the Popover.
72
- *
73
- * If a `titleTemplate` is provided it would take precedence over the subtitle.
74
- */
75
- subtitle: string;
76
- /**
77
- * Represents the text that will be rendered in the Popover body section.
78
- *
79
- * If a `bodyTemplate` is provided it would take precedence over this text.
80
- */
81
- body: string;
82
- /**
83
- * Determines whether a callout will be rendered along the Popover. [See example]({% slug callout_popover %})
84
- *
85
- * @default true
86
- */
87
- callout: boolean;
88
- /**
89
- * Enables and configures the Popover animation. [See example]({% slug animations_popover %})
90
- *
91
- * The possible options are:
92
- *
93
- * * `boolean`&mdash;Enables the default animation
94
- * * `PopoverAnimation`&mdash;A configuration object which allows setting the `direction`, `duration` and `type` of the animation.
95
- *
96
- * @default false
97
- */
98
- animation: PopoverAnimation;
99
- /**
100
- * Defines a callback function which returns custom data passed to the Popover templates.
101
- * It exposes the current anchor element as an argument. [See example]({% slug templates_popover %}#toc-popoverdatacallback)
102
- */
103
- templateData: PopoverDataFn;
104
- /**
105
- * @hidden
106
- * Determines the visibility of the Popover.
107
- */
108
- visible: boolean;
109
- /**
110
- * @hidden
111
- */
112
- readonly isHidden: boolean;
113
- /**
114
- * @hidden
115
- */
116
- readonly hasAttributeHidden: boolean;
117
- /**
118
- * Fires before the Popover is about to be shown ([see example]({% slug events_popover %})).
119
- * The event is preventable. If canceled, the Popover will not be displayed. [See example]({% slug events_popover %})
120
- */
121
- show: EventEmitter<PopoverShowEvent>;
122
- /**
123
- * Fires after the Popover has been shown and the animation has ended. [See example]({% slug events_popover %})
124
- */
125
- shown: EventEmitter<PopoverShownEvent>;
126
- /**
127
- * Fires when the Popover is about to be hidden ([see example]({% slug events_popover %})).
128
- * The event is preventable. If canceled, the Popover will remain visible.
129
- */
130
- hide: EventEmitter<PopoverHideEvent>;
131
- /**
132
- * Fires after the Popover has been hidden and the animation has ended. [See example]({% slug events_popover %})
133
- */
134
- hidden: EventEmitter<any>;
135
- /**
136
- * @hidden
137
- */
138
- titleTemplate: PopoverTitleTemplateDirective;
139
- /**
140
- * @hidden
141
- */
142
- bodyTemplate: PopoverBodyTemplateDirective;
143
- /**
144
- * @hidden
145
- */
146
- actionsTemplate: PopoverActionsTemplateDirective;
147
- /**
148
- * @hidden
149
- */
150
- contextData: any;
151
- /**
152
- * @hidden
153
- */
154
- _width: string;
155
- /**
156
- * @hidden
157
- */
158
- _height: string;
159
- private _offset;
160
- private subs;
161
- constructor(localization: LocalizationService);
162
- ngOnInit(): void;
163
- ngOnDestroy(): void;
164
- /**
165
- * @hidden
166
- */
167
- getCalloutPosition(): any;
168
- /**
169
- * @hidden
170
- */
171
- private _templateData;
172
- }