@progress/kendo-angular-tooltip 4.1.1 → 11.0.0-develop.101

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 (62) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +4 -4
  3. package/README.md +4 -4
  4. package/constants.d.ts +1 -1
  5. package/{esm2015/constants.js → esm2020/constants.mjs} +1 -1
  6. package/{esm2015/main.js → esm2020/index.mjs} +1 -1
  7. package/{esm2015/localization/localized-messages.directive.js → esm2020/localization/localized-messages.directive.mjs} +5 -5
  8. package/{esm2015/models/animation.model.js → esm2020/models/animation.model.mjs} +1 -1
  9. package/{esm2015/models/events.js → esm2020/models/events.mjs} +1 -1
  10. package/{esm2015/models/popover-show-option.type.js → esm2020/models/functions.model.mjs} +1 -1
  11. package/{esm2015/models/position.type.js → esm2020/models/popover-show-option.type.mjs} +1 -1
  12. package/{esm2015/models/functions.model.js → esm2020/models/position.type.mjs} +1 -1
  13. package/esm2020/models/show.option.type.mjs +5 -0
  14. package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
  15. package/{esm2015/popover/anchor.directive.js → esm2020/popover/anchor.directive.mjs} +7 -6
  16. package/{esm2015/popover/container.directive.js → esm2020/popover/container.directive.mjs} +7 -6
  17. package/{esm2015/popover/directives-base.js → esm2020/popover/directives-base.mjs} +7 -5
  18. package/{esm2015/popover/popover.component.js → esm2020/popover/popover.component.mjs} +4 -4
  19. package/{esm2015/popover/popover.service.js → esm2020/popover/popover.service.mjs} +5 -5
  20. package/{esm2015/popover/template-directives/actions-template.directive.js → esm2020/popover/template-directives/actions-template.directive.mjs} +5 -5
  21. package/{esm2015/popover/template-directives/body-template.directive.js → esm2020/popover/template-directives/body-template.directive.mjs} +5 -5
  22. package/{esm2015/popover/template-directives/title-template.directive.js → esm2020/popover/template-directives/title-template.directive.mjs} +5 -5
  23. package/{esm2015/popover.module.js → esm2020/popover.module.mjs} +5 -5
  24. package/{esm2015/kendo-angular-tooltip.js → esm2020/progress-kendo-angular-tooltip.mjs} +2 -2
  25. package/{esm2015/tooltip/tooltip.content.component.js → esm2020/tooltip/tooltip.content.component.mjs} +26 -10
  26. package/{esm2015/tooltip/tooltip.directive.js → esm2020/tooltip/tooltip.directive.mjs} +9 -8
  27. package/{esm2015/tooltip/tooltip.settings.js → esm2020/tooltip/tooltip.settings.mjs} +5 -4
  28. package/{esm2015/tooltip.module.js → esm2020/tooltip.module.mjs} +7 -6
  29. package/{esm2015/tooltips.module.js → esm2020/tooltips.module.mjs} +5 -5
  30. package/{esm2015/utils.js → esm2020/utils.mjs} +1 -1
  31. package/fesm2015/progress-kendo-angular-tooltip.mjs +2145 -0
  32. package/{fesm2015/kendo-angular-tooltip.js → fesm2020/progress-kendo-angular-tooltip.mjs} +82 -63
  33. package/{main.d.ts → index.d.ts} +1 -1
  34. package/localization/localized-messages.directive.d.ts +1 -1
  35. package/models/animation.model.d.ts +1 -1
  36. package/models/events.d.ts +1 -1
  37. package/models/functions.model.d.ts +1 -1
  38. package/models/popover-show-option.type.d.ts +1 -1
  39. package/models/position.type.d.ts +1 -1
  40. package/models/show.option.type.d.ts +1 -1
  41. package/package-metadata.d.ts +1 -1
  42. package/package.json +29 -54
  43. package/popover/anchor.directive.d.ts +1 -1
  44. package/popover/container.directive.d.ts +1 -1
  45. package/popover/directives-base.d.ts +1 -1
  46. package/popover/popover.component.d.ts +1 -1
  47. package/popover/popover.service.d.ts +1 -1
  48. package/popover/template-directives/actions-template.directive.d.ts +1 -1
  49. package/popover/template-directives/body-template.directive.d.ts +1 -1
  50. package/popover/template-directives/title-template.directive.d.ts +1 -1
  51. package/popover.module.d.ts +1 -1
  52. package/{kendo-angular-tooltip.d.ts → progress-kendo-angular-tooltip.d.ts} +2 -2
  53. package/schematics/ngAdd/index.js +5 -6
  54. package/tooltip/tooltip.content.component.d.ts +6 -1
  55. package/tooltip/tooltip.directive.d.ts +1 -1
  56. package/tooltip/tooltip.settings.d.ts +1 -1
  57. package/tooltip.module.d.ts +3 -2
  58. package/tooltips.module.d.ts +1 -1
  59. package/utils.d.ts +1 -1
  60. package/bundles/kendo-angular-tooltip.umd.js +0 -5
  61. package/esm2015/models/show.option.type.js +0 -5
  62. package/schematics/ngAdd/index.js.map +0 -1
@@ -1,16 +1,17 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Directive, Input, Optional, Inject, isDevMode } from '@angular/core';
5
+ import { Directive, Input, TemplateRef, Optional, ElementRef, NgZone, Inject, isDevMode, Renderer2 } from '@angular/core';
6
6
  import { take, filter } from 'rxjs/operators';
7
7
  import { fromEvent, Subscription } from 'rxjs';
8
+ import { PopupService } from '@progress/kendo-angular-popup';
8
9
  import { validatePackage } from '@progress/kendo-licensing';
9
10
  import { packageMetadata } from '../package-metadata';
10
- import { TOOLTIP_SETTINGS } from './tooltip.settings';
11
+ import { TooltipSettings, TOOLTIP_SETTINGS } from './tooltip.settings';
11
12
  import { TooltipContentComponent } from '../tooltip/tooltip.content.component';
12
13
  import { align, closestBySelector, contains, containsItem, collision, hasParent } from '../utils';
13
- import { Keys } from '@progress/kendo-angular-common';
14
+ import { isDocumentAvailable, Keys } from '@progress/kendo-angular-common';
14
15
  import * as i0 from "@angular/core";
15
16
  import * as i1 from "@progress/kendo-angular-popup";
16
17
  import * as i2 from "./tooltip.settings";
@@ -189,7 +190,7 @@ export class TooltipDirective {
189
190
  this.verifyProperties();
190
191
  }
191
192
  ngOnChanges(changes) {
192
- if (changes.showOn) {
193
+ if (changes.showOn && isDocumentAvailable()) {
193
194
  this.subscribeClick();
194
195
  }
195
196
  }
@@ -398,9 +399,9 @@ export class TooltipDirective {
398
399
  }
399
400
  }
400
401
  }
401
- TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", 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 });
402
- TooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", 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 });
403
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipDirective, decorators: [{
402
+ TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.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 });
403
+ TooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.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 });
404
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipDirective, decorators: [{
404
405
  type: Directive,
405
406
  args: [{
406
407
  selector: '[kendoTooltip]',
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Injectable, InjectionToken } from '@angular/core';
@@ -39,10 +39,11 @@ export class TooltipSettings {
39
39
  /**
40
40
  * @hidden
41
41
  */
42
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
42
43
  constructor() { }
43
44
  }
44
- TooltipSettings.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipSettings, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
45
- TooltipSettings.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipSettings });
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipSettings, decorators: [{
45
+ TooltipSettings.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipSettings, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
46
+ TooltipSettings.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipSettings });
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipSettings, decorators: [{
47
48
  type: Injectable
48
49
  }], ctorParameters: function () { return []; } });
@@ -1,16 +1,17 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
6
6
  import { CommonModule } from '@angular/common';
7
7
  import { TooltipDirective } from './tooltip/tooltip.directive';
8
8
  import { PopupModule } from '@progress/kendo-angular-popup';
9
+ import { IconsModule } from '@progress/kendo-angular-icons';
9
10
  import { TooltipContentComponent } from './tooltip/tooltip.content.component';
10
11
  import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
11
12
  import * as i0 from "@angular/core";
12
13
  const COMPONENT_DIRECTIVES = [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective];
13
- const COMPONENT_MODULES = [PopupModule];
14
+ const COMPONENT_MODULES = [PopupModule, IconsModule];
14
15
  /**
15
16
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
16
17
  * definition for the Tooltip component.
@@ -43,10 +44,10 @@ const COMPONENT_MODULES = [PopupModule];
43
44
  */
44
45
  export class TooltipModule {
45
46
  }
46
- TooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
- TooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", 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.17", ngImport: i0, type: TooltipModule, imports: [[CommonModule, ...COMPONENT_MODULES]] });
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipModule, decorators: [{
47
+ TooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
+ TooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipModule, declarations: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective], imports: [CommonModule, PopupModule, IconsModule], exports: [TooltipDirective, TooltipContentComponent, LocalizedMessagesDirective] });
49
+ TooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipModule, imports: [[CommonModule, ...COMPONENT_MODULES]] });
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipModule, decorators: [{
50
51
  type: NgModule,
51
52
  args: [{
52
53
  declarations: [COMPONENT_DIRECTIVES],
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
@@ -34,10 +34,10 @@ import * as i0 from "@angular/core";
34
34
  */
35
35
  export class TooltipsModule {
36
36
  }
37
- TooltipsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
- TooltipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipsModule, exports: [TooltipModule, PopoverModule] });
39
- TooltipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipsModule, imports: [TooltipModule, PopoverModule] });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipsModule, decorators: [{
37
+ TooltipsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
+ TooltipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipsModule, exports: [TooltipModule, PopoverModule] });
39
+ TooltipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipsModule, imports: [TooltipModule, PopoverModule] });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TooltipsModule, decorators: [{
41
41
  type: NgModule,
42
42
  args: [{
43
43
  exports: [TooltipModule, PopoverModule]
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**