@progress/kendo-vue-tooltip 5.3.0-dev.202410141143 → 5.3.0-develop.2

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 (53) hide show
  1. package/README.md +24 -29
  2. package/Tooltip.js +8 -0
  3. package/Tooltip.mjs +271 -0
  4. package/dist/cdn/js/kendo-vue-tooltip.js +8 -1
  5. package/index.d.mts +304 -0
  6. package/index.d.ts +304 -0
  7. package/index.js +8 -0
  8. package/index.mjs +11 -0
  9. package/package-metadata.js +8 -0
  10. package/package-metadata.mjs +18 -0
  11. package/package.json +22 -39
  12. package/utils.js +8 -0
  13. package/utils.mjs +52 -0
  14. package/dist/es/Tooltip.d.ts +0 -52
  15. package/dist/es/Tooltip.js +0 -420
  16. package/dist/es/TooltipProps.d.ts +0 -100
  17. package/dist/es/TooltipProps.js +0 -2
  18. package/dist/es/additionalTypes.ts +0 -21
  19. package/dist/es/events.d.ts +0 -34
  20. package/dist/es/events.js +0 -1
  21. package/dist/es/main.d.ts +0 -5
  22. package/dist/es/main.js +0 -2
  23. package/dist/es/package-metadata.d.ts +0 -5
  24. package/dist/es/package-metadata.js +0 -11
  25. package/dist/es/utils.d.ts +0 -24
  26. package/dist/es/utils.js +0 -76
  27. package/dist/esm/Tooltip.d.ts +0 -52
  28. package/dist/esm/Tooltip.js +0 -420
  29. package/dist/esm/TooltipProps.d.ts +0 -100
  30. package/dist/esm/TooltipProps.js +0 -2
  31. package/dist/esm/additionalTypes.ts +0 -21
  32. package/dist/esm/events.d.ts +0 -34
  33. package/dist/esm/events.js +0 -1
  34. package/dist/esm/main.d.ts +0 -5
  35. package/dist/esm/main.js +0 -2
  36. package/dist/esm/package-metadata.d.ts +0 -5
  37. package/dist/esm/package-metadata.js +0 -11
  38. package/dist/esm/package.json +0 -3
  39. package/dist/esm/utils.d.ts +0 -24
  40. package/dist/esm/utils.js +0 -76
  41. package/dist/npm/Tooltip.d.ts +0 -52
  42. package/dist/npm/Tooltip.js +0 -427
  43. package/dist/npm/TooltipProps.d.ts +0 -100
  44. package/dist/npm/TooltipProps.js +0 -3
  45. package/dist/npm/additionalTypes.ts +0 -21
  46. package/dist/npm/events.d.ts +0 -34
  47. package/dist/npm/events.js +0 -2
  48. package/dist/npm/main.d.ts +0 -5
  49. package/dist/npm/main.js +0 -6
  50. package/dist/npm/package-metadata.d.ts +0 -5
  51. package/dist/npm/package-metadata.js +0 -14
  52. package/dist/npm/utils.d.ts +0 -24
  53. package/dist/npm/utils.js +0 -86
@@ -1,420 +0,0 @@
1
- var __assign = this && this.__assign || function () {
2
- __assign = Object.assign || function (t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- // @ts-ignore
14
- import * as Vue from 'vue';
15
- var allVue = Vue;
16
- var gh = allVue.h;
17
- var isV3 = allVue.version && allVue.version[0] === '3';
18
- import { classNames, validatePackage, getDefaultSlots, getListeners, templateRendering, getTemplate, setRef, getRef, canUseDOM, guid } from '@progress/kendo-vue-common';
19
- import { getLeftPosition, getTopPosition, getDomRect, isTooltipElement } from './utils.js';
20
- import { packageMetadata } from './package-metadata.js';
21
- var DEFAULT_TOOLTIP_ZINDEX = 100;
22
- var ARIAIDSUFFIX = '_tb_active';
23
- /**
24
- * @hidden
25
- */
26
- var TooltipVue2 = {
27
- name: 'KendoTooltip',
28
- inheritAttrs: false,
29
- props: {
30
- showCallout: {
31
- type: Boolean,
32
- default: true
33
- },
34
- setCalloutOnPositionAuto: {
35
- type: String,
36
- default: undefined
37
- },
38
- anchorElement: {
39
- type: String,
40
- default: 'pointer',
41
- validator: function validator(value) {
42
- return ['pointer', 'target'].includes(value);
43
- }
44
- },
45
- content: [String, Object, Function],
46
- filter: Function,
47
- openDelay: {
48
- type: Number,
49
- default: 400
50
- },
51
- open: {
52
- type: Boolean,
53
- default: undefined
54
- },
55
- position: {
56
- type: String,
57
- default: 'auto',
58
- validator: function validator(value) {
59
- return ['right', 'left', 'top', 'bottom', 'auto'].includes(value);
60
- }
61
- },
62
- updatePosition: {
63
- type: Function,
64
- default: undefined
65
- },
66
- updateInterval: Number,
67
- className: String,
68
- wrapperStyle: Object,
69
- tooltipClassName: String,
70
- tooltipStyle: Object,
71
- targetElement: {
72
- type: undefined
73
- },
74
- parentTitle: {
75
- type: Boolean,
76
- default: false
77
- }
78
- },
79
- data: function data() {
80
- return {
81
- top: 0,
82
- left: 0,
83
- currentTargetElement: null,
84
- currentOpen: false,
85
- title: ''
86
- };
87
- },
88
- computed: {
89
- wrapperClass: function wrapperClass() {
90
- var _a;
91
- return _a = {
92
- 'k-animation-container': true,
93
- 'k-animation-container-fixed': true,
94
- 'k-animation-container-shown': true
95
- }, _a[this.$props.className] = true, _a;
96
- },
97
- computedTarget: function computedTarget() {
98
- return this.targetElement !== undefined ? this.targetElement : this.currentTargetElement;
99
- },
100
- computedOpen: function computedOpen() {
101
- return this.open !== undefined ? this.open : this.currentOpen;
102
- }
103
- },
104
- inject: {
105
- kCurrentZIndex: {
106
- default: null
107
- }
108
- },
109
- created: function created() {
110
- validatePackage(packageMetadata);
111
- this.top = 0;
112
- this.left = 0;
113
- this.willOpen = false;
114
- },
115
- mounted: function mounted() {
116
- this.element = getRef(this, 'element');
117
- if (document) {
118
- document.body.addEventListener('mousemove', this.handleBodyMousemove);
119
- }
120
- },
121
- destroyed: !!isV3 ? undefined : function () {
122
- this.destroyElement();
123
- },
124
- // @ts-ignore
125
- unmounted: function unmounted() {
126
- this.destroyElement();
127
- },
128
- updated: function updated() {
129
- if (this.$props.open && this.$props.targetElement) {
130
- this.showToolTip({
131
- target: this.$props.targetElement
132
- });
133
- }
134
- this.element = getRef(this, 'element');
135
- if (!this.element) {
136
- return;
137
- }
138
- this.resetPosition();
139
- if (this.computedTarget) {
140
- var appendToElement = this.$props.appendTo ? this.$props.appendTo : this.computedTarget.ownerDocument.body;
141
- if (this.element.parentElement !== appendToElement) {
142
- this.computedTarget.ownerDocument.body.append(this.element);
143
- }
144
- }
145
- this.callout = this.v3 ? this.calloutRef : this.$refs.callout;
146
- if (!this.callout) {
147
- return;
148
- }
149
- this.callout.className = this.calloutClassName();
150
- if (this.$props.position === 'auto' && canUseDOM) {
151
- this.left < window.screen.availWidth / 2 ? this.callout.style.left = this.$props.setCalloutOnPositionAuto || '25%' : this.callout.style.left = this.$props.setCalloutOnPositionAuto || '75%';
152
- }
153
- },
154
- // @ts-ignore
155
- setup: !isV3 ? undefined : function () {
156
- var v3 = !!isV3;
157
- return {
158
- v3: v3
159
- };
160
- },
161
- // @ts-ignore
162
- render: function render(createElement) {
163
- var h = gh || createElement;
164
- var defaultSlot = getDefaultSlots(this);
165
- var currentZIndex = this.getCurrentZIndex();
166
- var content = this.$props.content ? templateRendering.call(this, this.$props.content, getListeners.call(this)) : undefined;
167
- var contentDefaultRendering = this.title;
168
- var ariaId = guid() + ARIAIDSUFFIX;
169
- if (this.computedTarget) {
170
- if (this.computedTarget.hasAttribute('id')) {
171
- ariaId = this.computedTarget.getAttribute('id') + ARIAIDSUFFIX;
172
- }
173
- this.computedTarget.setAttribute('aria-describedby', ariaId);
174
- }
175
- var contentRendering = getTemplate.call(this, {
176
- h: h,
177
- template: content,
178
- defaultRendering: contentDefaultRendering,
179
- additionalProps: {
180
- title: this.title,
181
- target: this.computedTarget
182
- }
183
- });
184
- var innerToolTip = this.computedOpen && h("div", {
185
- "class": classNames('k-tooltip', this.$props.tooltipClassName),
186
- role: 'tooltip',
187
- attrs: this.v3 ? undefined : {
188
- role: 'tooltip',
189
- id: ariaId
190
- },
191
- id: ariaId,
192
- style: __assign({
193
- position: 'relative'
194
- }, this.$props.tooltipStyle)
195
- }, [h("div", {
196
- "class": "k-tooltip-content"
197
- }, [contentRendering]), this.$props.showCallout && h("div", {
198
- ref: setRef(this, 'callout')
199
- })]);
200
- var tooltip = this.computedTarget && this.title && this.computedTarget.ownerDocument && h("div", {
201
- ref: setRef(this, 'element'),
202
- "class": this.wrapperClass,
203
- style: __assign({
204
- zIndex: currentZIndex
205
- }, this.$props.wrapperStyle),
206
- tabindex: 0,
207
- attrs: this.v3 ? undefined : {
208
- tabindex: 0
209
- },
210
- onMouseleave: this.handleTooltipMouseOut,
211
- on: this.v3 ? undefined : {
212
- "mouseleave": this.handleTooltipMouseOut
213
- }
214
- }, [h("div", {
215
- "class": "k-child-animation-container"
216
- }, [innerToolTip])]);
217
- if (defaultSlot) {
218
- return h("div", {
219
- onMouseover: this.handleMouseOver,
220
- on: this.v3 ? undefined : {
221
- "mouseover": this.handleMouseOver,
222
- "mouseout": this.handleMouseOut
223
- },
224
- onMouseout: this.handleMouseOut
225
- }, [tooltip, defaultSlot]);
226
- } else {
227
- return tooltip;
228
- }
229
- },
230
- methods: {
231
- destroyElement: function destroyElement() {
232
- clearTimeout(this.openTimeoutId);
233
- clearInterval(this.updateIntervalId);
234
- if (document) {
235
- document.body.removeEventListener('mousemove', this.handleBodyMousemove);
236
- }
237
- if (this.element) {
238
- this.element.remove();
239
- }
240
- },
241
- handleTooltipMouseOut: function handleTooltipMouseOut(event) {
242
- this.onClose(event);
243
- },
244
- handleMouseOut: function handleMouseOut(event) {
245
- var currentDocument = this.computedTarget ? this.computedTarget.ownerDocument : document;
246
- var element = currentDocument && currentDocument.elementFromPoint(event.clientX, event.clientY);
247
- this.willOpen = false;
248
- if (isTooltipElement(element) || this.computedTarget !== event.target) {
249
- return;
250
- }
251
- if (this.$props.open) {
252
- return;
253
- }
254
- clearInterval(this.updateIntervalId);
255
- this.onClose(event);
256
- },
257
- handleMouseOver: function handleMouseOver(event) {
258
- var target = event.target;
259
- if (!this.isVisible(target) || isTooltipElement(target) || target === this.computedTarget) {
260
- return;
261
- }
262
- this.showToolTip(event);
263
- },
264
- handleBodyMousemove: function handleBodyMousemove(event) {
265
- this.top = event.clientY;
266
- this.left = event.clientX;
267
- },
268
- onClose: function onClose(event) {
269
- this.$emit('close', {
270
- event: event,
271
- component: this
272
- });
273
- this.computedTarget.removeAttribute('aria-describedby');
274
- this.currentTargetElement = null;
275
- this.currentOpen = false;
276
- this.title = '';
277
- },
278
- showToolTip: function showToolTip(event) {
279
- var _this = this;
280
- clearTimeout(this.openTimeoutId);
281
- clearInterval(this.updateIntervalId);
282
- if (event.target.hasChildNodes()) {
283
- event.target.childNodes.forEach(function (childElement) {
284
- if (childElement.nodeName === 'title') {
285
- event.target.titleExpando = childElement.innerHTML;
286
- childElement.remove();
287
- }
288
- });
289
- }
290
- var target = this.computedTarget || event.target;
291
- var titleResult = this.getTitle(target);
292
- if (!titleResult.title) {
293
- if (this.computedOpen) {
294
- this.onClose(event);
295
- }
296
- return;
297
- }
298
- if (titleResult.element) {
299
- titleResult.element.titleExpando = titleResult.title;
300
- titleResult.element.title = '';
301
- }
302
- this.willOpen = true;
303
- if (!this.$props.openDelay) {
304
- this.currentTargetElement = target;
305
- this.currentOpen = true;
306
- this.title = titleResult.title;
307
- this.setUpdateInterval();
308
- } else {
309
- if (canUseDOM) {
310
- this.openTimeoutId = window.setTimeout(function () {
311
- if (_this.willOpen) {
312
- _this.currentTargetElement = target;
313
- _this.currentOpen = true;
314
- _this.title = titleResult.title;
315
- _this.setUpdateInterval();
316
- }
317
- }, this.$props.openDelay);
318
- }
319
- }
320
- if (this.title !== titleResult.title) {
321
- this.$emit('open', {
322
- event: event,
323
- compoponent: this
324
- });
325
- }
326
- },
327
- setUpdateInterval: function setUpdateInterval() {
328
- if (this.$props.updateInterval) {
329
- this.updateIntervalId = setInterval(this.onIntervalUpdate, this.$props.updateInterval);
330
- }
331
- },
332
- onIntervalUpdate: function onIntervalUpdate() {
333
- var target = this.computedTarget;
334
- if (!target) {
335
- return;
336
- }
337
- if (target.parentElement === null) {
338
- // Getting element from previous target coordinates will cause reflow which is performance hit.
339
- // Also remount case can be avoided easily
340
- this.onClose({
341
- target: target
342
- });
343
- } else {
344
- this.showToolTip({
345
- target: target
346
- });
347
- }
348
- },
349
- resetPosition: function resetPosition() {
350
- if (this.element) {
351
- var position = this.setPosition(this.element);
352
- if (this.$props.updatePosition) {
353
- position = this.$props.updatePosition({
354
- element: this.element,
355
- targetElement: this.computedTarget,
356
- mouseTop: this.top,
357
- mouseLeft: this.left,
358
- anchorElement: this.$props.anchorElement,
359
- position: this.$props.position,
360
- target: this,
361
- defaultPosition: position
362
- });
363
- }
364
- this.element.style.left = position.left + 'px';
365
- this.element.style.top = position.top + 'px';
366
- }
367
- },
368
- isVisible: function isVisible(element) {
369
- return !this.$props.filter || this.$props.filter(element);
370
- },
371
- setPosition: function setPosition(element) {
372
- var target = this.parentTitle ? this.getTitle(this.computedTarget).element : this.computedTarget;
373
- var domRect = getDomRect(target);
374
- var left = getLeftPosition(this.left, element.offsetWidth, domRect, this.$props.anchorElement, this.$props.position);
375
- var top = getTopPosition(this.top, domRect, element.offsetHeight, this.$props.anchorElement, this.$props.position);
376
- return {
377
- left: left,
378
- top: top
379
- };
380
- },
381
- getTitle: function getTitle(element) {
382
- while (element) {
383
- if (element.getAttribute('title') !== null || element.titleExpando) {
384
- var title = element.getAttribute('title') || element.titleExpando;
385
- return {
386
- title: title,
387
- element: element
388
- };
389
- }
390
- element = this.$props.parentTitle && element.parentElement || null;
391
- }
392
- return {
393
- title: '',
394
- element: element
395
- };
396
- },
397
- calloutClassName: function calloutClassName() {
398
- switch (this.$props.position) {
399
- case 'bottom':
400
- return 'k-callout k-callout-n';
401
- case 'left':
402
- return 'k-callout k-callout-e';
403
- case 'right':
404
- return 'k-callout k-callout-w';
405
- case 'top':
406
- return 'k-callout k-callout-s';
407
- default:
408
- return canUseDOM && this.top < window.innerHeight / 2 ? 'k-callout k-callout-n' : 'k-callout k-callout-s';
409
- }
410
- },
411
- getCurrentZIndex: function getCurrentZIndex() {
412
- return this.kCurrentZIndex ? this.kCurrentZIndex : DEFAULT_TOOLTIP_ZINDEX;
413
- }
414
- }
415
- };
416
- /**
417
- * @hidden
418
- */
419
- var Tooltip = TooltipVue2;
420
- export { Tooltip, TooltipVue2 };
@@ -1,100 +0,0 @@
1
- import { TooltipEvent, TooltipPositionEvent } from './events';
2
- import { TooltipPosition } from './utils';
3
- /**
4
- * Represents the props of the [Kendo UI for Vue Tooltip component]({% slug overview_tooltip %}).
5
- */
6
- export interface TooltipProps {
7
- /**
8
- * Sets the anchor element of the Tooltip.
9
- *
10
- * The available options are:
11
- * - (Default) `pointer`&mdash;Shows a Tooltip where the cursor is located.
12
- * - `target`&mdash;Positions the Tooltip based on the anchor element.
13
- */
14
- anchorElement?: string;
15
- /**
16
- * Defines the container to which the Tooltip will be appended. Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
17
- */
18
- appendTo?: HTMLElement | null;
19
- /**
20
- * Sets the position of the Tooltip ([see example]({% slug positioning_tooltip %})).
21
- *
22
- * The available options are:
23
- * - (Default) `auto`&mdash;Positions the Tooltip depending on the available space.
24
- * - `right`&mdash;Positions the Tooltip to the right side of the element.
25
- * - `left`&mdash;Positions the Tooltip to the left side of the element.
26
- * - `bottom`&mdash;Positions the Tooltip at the bottom of the element.
27
- * - `top`&mdash;Positions the Tooltip at the top of the element.
28
- */
29
- position?: TooltipPosition | String;
30
- /**
31
- * Sets a class of the Tooltip animation container.
32
- */
33
- className?: string;
34
- /**
35
- * Sets a class of the Tooltip animation container.
36
- */
37
- wrapperStyle?: object;
38
- /**
39
- * Sets the content of the Tooltip ([see example]({% slug templates_tooltip %})).
40
- */
41
- content?: any;
42
- /**
43
- * Specifies if the Tooltip will be open.
44
- * Sets the Tooltip in its controlled mode ([see example]({% slug controlledmode_tooltip %})).
45
- * Requires you to set the `targetElement` property.
46
- */
47
- open?: boolean;
48
- /**
49
- * Sets a delay in milliseconds.
50
- */
51
- openDelay?: number;
52
- /**
53
- * If any of the parent elements has a title, displays a Tooltip.
54
- */
55
- parentTitle?: boolean;
56
- /**
57
- * Specifies if the Tooltip callout will be displayed.
58
- */
59
- showCallout?: boolean;
60
- /**
61
- * When the position is set to `auto`, sets the start point of the Tooltip callout (in pixels).
62
- */
63
- setCalloutOnPositionAuto?: any;
64
- /**
65
- * Sets the Tooltip target element. You have to use it with the `open` property.
66
- */
67
- targetElement?: any;
68
- /**
69
- * Specifies the CSS class names which are set to the Tooltip DOM element.
70
- */
71
- tooltipClassName?: string;
72
- /**
73
- * Specifies the styles which are set to the Tooltip DOM element.
74
- */
75
- tooltipStyle?: any;
76
- /**
77
- * Callback called when the Tooltip calculates it's position. Useful to modify the default position behavior.
78
- * Require to return the `top` and `left` position of the Tooltip.
79
- */
80
- updatePosition?: (event: TooltipPositionEvent) => {
81
- top: number;
82
- left: number;
83
- };
84
- /**
85
- * Fires when the Tooltip is shown.
86
- */
87
- onOpen?: (event: TooltipEvent) => void;
88
- /**
89
- * Fires when the Tooltip is hidden.
90
- */
91
- onClose?: (event: TooltipEvent) => void;
92
- /**
93
- * Represents a callback function which determines if a Tooltip will be displayed ([see example]({% slug filter_elements_tooltip %})).
94
- */
95
- filter?: (target: HTMLElement) => void;
96
- /**
97
- * The milliseconds interval on which the Tooltip will check for title change. By default the Tooltip does not track for title updates.
98
- */
99
- updateInterval?: number;
100
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- // tslint:enable:max-line-length
@@ -1,21 +0,0 @@
1
- // @ts-ignore
2
- import { DefineComponent } from 'vue';
3
- // @ts-ignore
4
- import * as Vue from 'vue';
5
-
6
- /**
7
- * @hidden
8
- */
9
- // @ts-ignore
10
- type Vue2type = Vue.default;
11
-
12
- /**
13
- * @hidden
14
- */
15
- // @ts-ignore
16
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
17
- /**
18
- * @hidden
19
- */
20
- // @ts-ignore
21
- export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
@@ -1,34 +0,0 @@
1
- import { TooltipPosition } from './utils';
2
- export interface TooltipEvent {
3
- event: any;
4
- }
5
- export interface TooltipPositionEvent {
6
- /**
7
- * The Tooltip element. Useful to get the actual `width` and `height` of rendered Tooltip.
8
- */
9
- element: HTMLDivElement;
10
- /**
11
- * The current target element. Useful to calculate `top` and `left` position of the Tooltip element.
12
- */
13
- targetElement: HTMLElement | null;
14
- /**
15
- * The current mouse `top` position;
16
- */
17
- mouseTop: number;
18
- /**
19
- * The current mouse `left` position.
20
- */
21
- mouseLeft: number;
22
- /**
23
- * The Tooltip anchor element prop.
24
- */
25
- anchorElement?: string;
26
- /**
27
- * The Tooltip position prop.
28
- */
29
- position?: TooltipPosition;
30
- /**
31
- * The Tooltip default calculated position.
32
- */
33
- defaultPosition?: TooltipPosition;
34
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- import { Tooltip, TooltipVue2 } from './Tooltip';
2
- import { TooltipProps } from './TooltipProps';
3
- import { TooltipEvent, TooltipPositionEvent } from './events';
4
- import { TooltipPosition } from './utils';
5
- export { Tooltip, TooltipVue2, TooltipEvent, TooltipPositionEvent, TooltipProps, TooltipPosition };
package/dist/esm/main.js DELETED
@@ -1,2 +0,0 @@
1
- import { Tooltip, TooltipVue2 } from './Tooltip.js';
2
- export { Tooltip, TooltipVue2 };
@@ -1,5 +0,0 @@
1
- import { PackageMetadata } from '@progress/kendo-licensing';
2
- /**
3
- * @hidden
4
- */
5
- export declare const packageMetadata: PackageMetadata;
@@ -1,11 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export var packageMetadata = {
5
- name: '@progress/kendo-vue-tooltip',
6
- productName: 'Kendo UI for Vue',
7
- productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1728906101,
9
- version: '',
10
- licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
- };
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export declare type TooltipPosition = 'right' | 'left' | 'bottom' | 'top' | 'auto';
5
- /**
6
- * @hidden
7
- */
8
- export declare const getLeftPosition: (left: any, elementWidth: any, targetElement: any, anchorElement: any, position: any) => any;
9
- /**
10
- * @hidden
11
- */
12
- export declare const getTopPosition: (top: any, targetElement: any, elementHeight: any, anchorElement: any, position: any) => any;
13
- /**
14
- * @hidden
15
- */
16
- export declare const getDomRect: (currentTarget: any) => any;
17
- /**
18
- * @hidden
19
- */
20
- export declare const toolTipSelectors: string[];
21
- /**
22
- * @hidden
23
- */
24
- export declare const isTooltipElement: (element: any) => boolean;