@progress/kendo-angular-tooltip 4.0.0-next.202110211119 → 4.0.0-next.202203281040

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 (50) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/bundles/kendo-angular-tooltip.umd.js +1 -1
  5. package/constants.d.ts +12 -0
  6. package/esm2015/constants.js +12 -0
  7. package/esm2015/localization/localized-messages.directive.js +3 -3
  8. package/esm2015/main.js +12 -1
  9. package/esm2015/models/animation.model.js +5 -0
  10. package/esm2015/models/events.js +65 -0
  11. package/esm2015/models/functions.model.js +5 -0
  12. package/esm2015/models/popover-show-option.type.js +5 -0
  13. package/esm2015/package-metadata.js +1 -1
  14. package/esm2015/popover/anchor.directive.js +147 -0
  15. package/esm2015/popover/container.directive.js +172 -0
  16. package/esm2015/popover/directives-base.js +282 -0
  17. package/esm2015/popover/popover.component.js +314 -0
  18. package/esm2015/popover/popover.service.js +67 -0
  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/esm2015/popover.module.js +78 -0
  23. package/esm2015/tooltip/tooltip.content.component.js +3 -3
  24. package/esm2015/tooltip/tooltip.directive.js +7 -7
  25. package/esm2015/tooltip/tooltip.settings.js +8 -4
  26. package/esm2015/tooltip.module.js +4 -4
  27. package/esm2015/tooltips.module.js +45 -0
  28. package/esm2015/utils.js +1 -1
  29. package/fesm2015/kendo-angular-tooltip.js +1199 -28
  30. package/main.d.ts +16 -2
  31. package/models/animation.model.d.ts +9 -0
  32. package/models/events.d.ts +78 -0
  33. package/models/functions.model.d.ts +17 -0
  34. package/models/popover-show-option.type.d.ts +8 -0
  35. package/models/position.type.d.ts +1 -1
  36. package/package.json +4 -4
  37. package/popover/anchor.directive.d.ts +47 -0
  38. package/popover/container.directive.d.ts +59 -0
  39. package/popover/directives-base.d.ts +95 -0
  40. package/popover/popover.component.d.ts +179 -0
  41. package/popover/popover.service.d.ts +33 -0
  42. package/popover/template-directives/actions-template.directive.d.ts +18 -0
  43. package/popover/template-directives/body-template.directive.d.ts +18 -0
  44. package/popover/template-directives/title-template.directive.d.ts +18 -0
  45. package/popover.module.d.ts +43 -0
  46. package/schematics/ngAdd/index.js +1 -2
  47. package/schematics/ngAdd/index.js.map +1 -1
  48. package/tooltip/tooltip.settings.d.ts +4 -0
  49. package/tooltips.module.d.ts +38 -0
  50. package/utils.d.ts +1 -1
@@ -0,0 +1,27 @@
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 { Directive, Optional } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents a template that defines the content of the Popover actions.
9
+ *
10
+ * To define the template, nest an `<ng-template>` tag
11
+ * with the `kendoPopoverActionsTemplate` directive inside the `<kendo-popover>` tag.
12
+ */
13
+ export class PopoverActionsTemplateDirective {
14
+ constructor(templateRef) {
15
+ this.templateRef = templateRef;
16
+ }
17
+ }
18
+ PopoverActionsTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverActionsTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
19
+ PopoverActionsTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PopoverActionsTemplateDirective, selector: "[kendoPopoverActionsTemplate]", ngImport: i0 });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverActionsTemplateDirective, decorators: [{
21
+ type: Directive,
22
+ args: [{
23
+ selector: '[kendoPopoverActionsTemplate]'
24
+ }]
25
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
26
+ type: Optional
27
+ }] }]; } });
@@ -0,0 +1,27 @@
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 { Directive, Optional } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents a template that defines the content of the Popover body.
9
+ *
10
+ * To define the template, nest an `<ng-template>` tag
11
+ * with the `kendoPopoverBodyTemplate` directive inside the `<kendo-popover>` tag.
12
+ */
13
+ export class PopoverBodyTemplateDirective {
14
+ constructor(templateRef) {
15
+ this.templateRef = templateRef;
16
+ }
17
+ }
18
+ PopoverBodyTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverBodyTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
19
+ PopoverBodyTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PopoverBodyTemplateDirective, selector: "[kendoPopoverBodyTemplate]", ngImport: i0 });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverBodyTemplateDirective, decorators: [{
21
+ type: Directive,
22
+ args: [{
23
+ selector: '[kendoPopoverBodyTemplate]'
24
+ }]
25
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
26
+ type: Optional
27
+ }] }]; } });
@@ -0,0 +1,27 @@
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 { Directive, Optional } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents a template that defines the content of the Popover title.
9
+ *
10
+ * To define the template, nest an `<ng-template>` tag
11
+ * with the `kendoPopoverTitleTemplate` directive inside the `<kendo-popover>` tag.
12
+ */
13
+ export class PopoverTitleTemplateDirective {
14
+ constructor(templateRef) {
15
+ this.templateRef = templateRef;
16
+ }
17
+ }
18
+ PopoverTitleTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverTitleTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
19
+ PopoverTitleTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PopoverTitleTemplateDirective, selector: "[kendoPopoverTitleTemplate]", ngImport: i0 });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverTitleTemplateDirective, decorators: [{
21
+ type: Directive,
22
+ args: [{
23
+ selector: '[kendoPopoverTitleTemplate]'
24
+ }]
25
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
26
+ type: Optional
27
+ }] }]; } });
@@ -0,0 +1,78 @@
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 { CommonModule } from "@angular/common";
6
+ import { NgModule } from "@angular/core";
7
+ import { PopupModule } from "@progress/kendo-angular-popup";
8
+ import { PopoverAnchorDirective } from "./popover/anchor.directive";
9
+ import { PopoverContainerDirective } from "./popover/container.directive";
10
+ import { PopoverComponent } from "./popover/popover.component";
11
+ import { PopoverTitleTemplateDirective } from './popover/template-directives/title-template.directive';
12
+ import { PopoverBodyTemplateDirective } from './popover/template-directives/body-template.directive';
13
+ import { PopoverActionsTemplateDirective } from './popover/template-directives/actions-template.directive';
14
+ import * as i0 from "@angular/core";
15
+ const DIRECTIVES = [
16
+ PopoverActionsTemplateDirective,
17
+ PopoverBodyTemplateDirective,
18
+ PopoverTitleTemplateDirective,
19
+ PopoverAnchorDirective,
20
+ PopoverContainerDirective
21
+ ];
22
+ /**
23
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
24
+ * definition for the Popover component.
25
+ *
26
+ * @example
27
+ *
28
+ * ```ts-no-run
29
+ * import { PopoverModule } from '@progress/kendo-angular-tooltip';
30
+ *
31
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
32
+ * import { NgModule } from '@angular/core';
33
+ *
34
+ * import { AppComponent } from './app.component';
35
+ *
36
+ * _@NgModule({
37
+ * declarations: [AppComponent],
38
+ * imports: [BrowserModule, PopoverModule],
39
+ * bootstrap: [AppComponent]
40
+ * })
41
+ * export class AppModule {}
42
+ *
43
+ * platformBrowserDynamic().bootstrapModule(AppModule);
44
+ *
45
+ * ```
46
+ */
47
+ export class PopoverModule {
48
+ }
49
+ PopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
50
+ PopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverModule, declarations: [PopoverActionsTemplateDirective,
51
+ PopoverBodyTemplateDirective,
52
+ PopoverTitleTemplateDirective,
53
+ PopoverAnchorDirective,
54
+ PopoverContainerDirective, PopoverComponent], imports: [CommonModule,
55
+ PopupModule], exports: [PopoverActionsTemplateDirective,
56
+ PopoverBodyTemplateDirective,
57
+ PopoverTitleTemplateDirective,
58
+ PopoverAnchorDirective,
59
+ PopoverContainerDirective, PopoverComponent] });
60
+ PopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverModule, imports: [[
61
+ CommonModule,
62
+ PopupModule
63
+ ]] });
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopoverModule, decorators: [{
65
+ type: NgModule,
66
+ args: [{
67
+ declarations: [
68
+ ...DIRECTIVES,
69
+ PopoverComponent
70
+ ],
71
+ entryComponents: [PopoverComponent],
72
+ exports: [...DIRECTIVES, PopoverComponent],
73
+ imports: [
74
+ CommonModule,
75
+ PopupModule
76
+ ]
77
+ }]
78
+ }] });
@@ -103,8 +103,8 @@ export class TooltipContentComponent {
103
103
  });
104
104
  }
105
105
  }
106
- TooltipContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipContentComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
107
- TooltipContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: TooltipContentComponent, selector: "kendo-tooltip", inputs: { tooltipWidth: "tooltipWidth", tooltipHeight: "tooltipHeight", titleTemplate: "titleTemplate", anchor: "anchor", closable: "closable", templateRef: "templateRef", templateString: "templateString" }, outputs: { close: "close" }, host: { properties: { "attr.dir": "this.direction", "class": "this.cssClasses", "class.k-tooltip-closable": "this.className", "style.position": "this.cssPosition", "style.width.px": "this.tooltipWidth", "style.height.px": "this.tooltipHeight" } }, providers: [
106
+ TooltipContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipContentComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
107
+ TooltipContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TooltipContentComponent, selector: "kendo-tooltip", inputs: { tooltipWidth: "tooltipWidth", tooltipHeight: "tooltipHeight", titleTemplate: "titleTemplate", anchor: "anchor", closable: "closable", templateRef: "templateRef", templateString: "templateString" }, outputs: { close: "close" }, host: { properties: { "attr.dir": "this.direction", "class": "this.cssClasses", "class.k-tooltip-closable": "this.className", "style.position": "this.cssPosition", "style.width.px": "this.tooltipWidth", "style.height.px": "this.tooltipHeight" } }, providers: [
108
108
  LocalizationService,
109
109
  {
110
110
  provide: L10N_PREFIX,
@@ -143,7 +143,7 @@ TooltipContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
143
143
 
144
144
  <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>
145
145
  `, isInline: true, directives: [{ type: i2.LocalizedMessagesDirective, selector: "[kendoTooltipLocalizedMessages]", inputs: ["closeTitle"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
146
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipContentComponent, decorators: [{
146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipContentComponent, decorators: [{
147
147
  type: Component,
148
148
  args: [{
149
149
  selector: 'kendo-tooltip',
@@ -9,7 +9,7 @@ import { validatePackage } from '@progress/kendo-licensing';
9
9
  import { packageMetadata } from '../package-metadata';
10
10
  import { TOOLTIP_SETTINGS } from './tooltip.settings';
11
11
  import { TooltipContentComponent } from '../tooltip/tooltip.content.component';
12
- import { align, closest, contains, containsItem, collision, hasParent } from '../utils';
12
+ import { align, closestBySelector, contains, containsItem, collision, hasParent } from '../utils';
13
13
  import * as i0 from "@angular/core";
14
14
  import * as i1 from "@progress/kendo-angular-popup";
15
15
  import * as i2 from "./tooltip.settings";
@@ -85,7 +85,7 @@ export class TooltipDirective {
85
85
  this.anchorTitleSubscription = fromEvent(wrapper, 'mouseover')
86
86
  .pipe(filter(() => this.filter !== ''))
87
87
  .subscribe((e) => {
88
- const filterElement = closest(e.target, this.filter);
88
+ const filterElement = closestBySelector(e.target, this.filter);
89
89
  if (filterElement) {
90
90
  this.hideElementTitle({ nativeElement: filterElement });
91
91
  }
@@ -316,7 +316,7 @@ export class TooltipDirective {
316
316
  }
317
317
  onMouseClick(e, wrapper) {
318
318
  const target = e.target;
319
- const filterElement = closest(target, this.filter);
319
+ const filterElement = closestBySelector(target, this.filter);
320
320
  const popup = this.popupRef && this.popupRef.popupElement;
321
321
  if (popup) {
322
322
  if (popup.contains(target)) {
@@ -334,7 +334,7 @@ export class TooltipDirective {
334
334
  }
335
335
  }
336
336
  onMouseOver(e) {
337
- const filterElement = closest(e.target, this.filter);
337
+ const filterElement = closestBySelector(e.target, this.filter);
338
338
  if (this.showOn !== 'hover') {
339
339
  return;
340
340
  }
@@ -371,9 +371,9 @@ export class TooltipDirective {
371
371
  }
372
372
  }
373
373
  }
374
- TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.PopupService }, { token: i2.TooltipSettings, optional: true }, { token: TOOLTIP_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
375
- TooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: TooltipDirective, selector: "[kendoTooltip]", inputs: { filter: "filter", position: "position", titleTemplate: "titleTemplate", showOn: "showOn", showAfter: "showAfter", callout: "callout", closable: "closable", offset: "offset", tooltipWidth: "tooltipWidth", tooltipHeight: "tooltipHeight", tooltipClass: "tooltipClass", collision: "collision", closeTitle: "closeTitle", tooltipTemplate: "tooltipTemplate" }, exportAs: ["kendoTooltip"], usesOnChanges: true, ngImport: i0 });
376
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipDirective, decorators: [{
374
+ TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.PopupService }, { token: i2.TooltipSettings, optional: true }, { token: TOOLTIP_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
375
+ TooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TooltipDirective, selector: "[kendoTooltip]", inputs: { filter: "filter", position: "position", titleTemplate: "titleTemplate", showOn: "showOn", showAfter: "showAfter", callout: "callout", closable: "closable", offset: "offset", tooltipWidth: "tooltipWidth", tooltipHeight: "tooltipHeight", tooltipClass: "tooltipClass", collision: "collision", closeTitle: "closeTitle", tooltipTemplate: "tooltipTemplate" }, exportAs: ["kendoTooltip"], usesOnChanges: true, ngImport: i0 });
376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipDirective, decorators: [{
377
377
  type: Directive,
378
378
  args: [{
379
379
  selector: '[kendoTooltip]',
@@ -36,9 +36,13 @@ export const TOOLTIP_SETTINGS = new InjectionToken('kendo-ui-tooltip-settings');
36
36
  * ```
37
37
  */
38
38
  export class TooltipSettings {
39
+ /**
40
+ * @hidden
41
+ */
42
+ constructor() { }
39
43
  }
40
- TooltipSettings.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipSettings, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
41
- TooltipSettings.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipSettings });
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipSettings, decorators: [{
44
+ TooltipSettings.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipSettings, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
45
+ TooltipSettings.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipSettings });
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipSettings, decorators: [{
43
47
  type: Injectable
44
- }] });
48
+ }], ctorParameters: function () { return []; } });
@@ -43,10 +43,10 @@ const COMPONENT_MODULES = [PopupModule];
43
43
  */
44
44
  export class TooltipModule {
45
45
  }
46
- TooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
- TooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipModule, declarations: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective], imports: [CommonModule, PopupModule], exports: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective] });
48
- TooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipModule, imports: [[CommonModule, ...COMPONENT_MODULES]] });
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: TooltipModule, decorators: [{
46
+ TooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
+ TooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipModule, declarations: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective], imports: [CommonModule, PopupModule], exports: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective] });
48
+ TooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipModule, imports: [[CommonModule, ...COMPONENT_MODULES]] });
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipModule, decorators: [{
50
50
  type: NgModule,
51
51
  args: [{
52
52
  declarations: [COMPONENT_DIRECTIVES],
@@ -0,0 +1,45 @@
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 { NgModule } from '@angular/core';
6
+ import { TooltipModule } from './tooltip.module';
7
+ import { PopoverModule } from './popover.module';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
11
+ * definition for the Tooltips components.
12
+ *
13
+ * @example
14
+ *
15
+ * ```ts-no-run
16
+ * import { TooltipsModule } from '@progress/kendo-angular-tooltip';
17
+ *
18
+ * // The browser platform with a compiler
19
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
20
+ *
21
+ * import { NgModule } from '@angular/core';
22
+ *
23
+ * // Import the app component
24
+ * _@NgModule{{
25
+ * declarations: [AppComponent], // declare app component
26
+ * imports: [BrowserModule, TooltipsModule], // import TooltipsModule module
27
+ * bootstrap: [AppComponent]
28
+ * }}
29
+ * export class AppModule {}
30
+ *
31
+ * // Compile and launch the module
32
+ * platformBrowserDynamic().bootstrapModule(AppModule);
33
+ * ```
34
+ */
35
+ export class TooltipsModule {
36
+ }
37
+ TooltipsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
+ TooltipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipsModule, exports: [TooltipModule, PopoverModule] });
39
+ TooltipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipsModule, imports: [TooltipModule, PopoverModule] });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipsModule, decorators: [{
41
+ type: NgModule,
42
+ args: [{
43
+ exports: [TooltipModule, PopoverModule]
44
+ }]
45
+ }] });
package/esm2015/utils.js CHANGED
@@ -56,7 +56,7 @@ function isDocumentNode(container) {
56
56
  /**
57
57
  * @hidden
58
58
  */
59
- export function closest(element, selector) {
59
+ export function closestBySelector(element, selector) {
60
60
  if (element.closest) {
61
61
  return element.closest(selector);
62
62
  }