@progress/kendo-angular-tooltip 16.8.0 → 16.9.0-develop.10

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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-tooltip',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1724741889,
13
- version: '16.8.0',
12
+ publishDate: 1724927200,
13
+ version: '16.9.0-develop.10',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -9,6 +9,7 @@ import { PopupService } from "@progress/kendo-angular-popup";
9
9
  import { filter, take } from "rxjs/operators";
10
10
  import { PopoverDirectivesBase } from "./directives-base";
11
11
  import { PopoverService } from "./popover.service";
12
+ import { Subscription } from "rxjs";
12
13
  import * as i0 from "@angular/core";
13
14
  import * as i1 from "@progress/kendo-angular-popup";
14
15
  import * as i2 from "./popover.service";
@@ -69,6 +70,16 @@ export class PopoverAnchorDirective extends PopoverDirectivesBase {
69
70
  };
70
71
  this._popoverService = this.popoverService;
71
72
  }
73
+ ngOnChanges(changes) {
74
+ if (changes['showOn'] && !changes['showOn'].isFirstChange()) {
75
+ this.subs.unsubscribe();
76
+ if (this.disposeClickListener) {
77
+ this.disposeClickListener();
78
+ }
79
+ this.subs = new Subscription();
80
+ this.manageEvents();
81
+ }
82
+ }
72
83
  /**
73
84
  * Shows the Popover. [See example]({% slug programmaticcontrol_popover %})
74
85
  */
@@ -144,7 +155,7 @@ export class PopoverAnchorDirective extends PopoverDirectivesBase {
144
155
  }
145
156
  }
146
157
  PopoverAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopoverAnchorDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.PopupService }, { token: i0.Renderer2 }, { token: i2.PopoverService }], target: i0.ɵɵFactoryTarget.Directive });
147
- PopoverAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PopoverAnchorDirective, isStandalone: true, selector: "[kendoPopoverAnchor]", providers: [PopoverService], exportAs: ["kendoPopoverAnchor"], usesInheritance: true, ngImport: i0 });
158
+ PopoverAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PopoverAnchorDirective, isStandalone: true, selector: "[kendoPopoverAnchor]", providers: [PopoverService], exportAs: ["kendoPopoverAnchor"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
148
159
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopoverAnchorDirective, decorators: [{
149
160
  type: Directive,
150
161
  args: [{
@@ -73,33 +73,12 @@ export class PopoverDirectivesBase {
73
73
  if (!isDocumentAvailable()) {
74
74
  return;
75
75
  }
76
- this.ngZone.runOutsideAngular(() => {
77
- switch (this.showOn) {
78
- case 'hover':
79
- this.subscribeToShowEvents([{
80
- name: 'mouseenter', handler: this.mouseenterHandler
81
- }, {
82
- name: 'mouseleave', handler: this.mouseleaveHandler
83
- }]);
84
- break;
85
- case 'focus':
86
- this.subscribeToShowEvents([{
87
- name: 'focus', handler: this.focusHandler
88
- }, {
89
- name: 'blur', handler: this.blurHandler
90
- }]);
91
- break;
92
- case 'click':
93
- this.subscribeClick();
94
- break;
95
- default:
96
- break;
97
- }
98
- });
76
+ this.manageEvents();
99
77
  }
100
78
  ngOnDestroy() {
101
79
  this.closePopup();
102
80
  this.subs.unsubscribe();
81
+ this._popupSubs && this._popupSubs.unsubscribe();
103
82
  if (this.disposeHoverOverListener) {
104
83
  this.disposeHoverOverListener();
105
84
  }
@@ -147,6 +126,7 @@ export class PopoverDirectivesBase {
147
126
  if (this.disposePopupFocusOutListener) {
148
127
  this.disposePopupFocusOutListener();
149
128
  }
129
+ this._popupSubs.unsubscribe();
150
130
  }
151
131
  }
152
132
  /**
@@ -171,11 +151,12 @@ export class PopoverDirectivesBase {
171
151
  collision: { horizontal: 'fit', vertical: 'fit' }
172
152
  });
173
153
  const popupInstance = this.popupRef.content.instance;
154
+ this._popupSubs = new Subscription();
174
155
  if (anchor) {
175
- this.subs.add(this.renderer.listen(this.anchor, 'keydown', event => this.onKeyDown(event)));
156
+ this._popupSubs.add(this.renderer.listen(this.anchor, 'keydown', event => this.onKeyDown(event)));
176
157
  this.renderer.setAttribute(this.anchor, 'aria-describedby', popupInstance.popoverId);
177
158
  }
178
- this.subs.add(popupInstance.closeOnKeyDown.subscribe(() => {
159
+ this._popupSubs.add(popupInstance.closeOnKeyDown.subscribe(() => {
179
160
  this.anchor.focus();
180
161
  this.hide();
181
162
  }));
@@ -238,6 +219,31 @@ export class PopoverDirectivesBase {
238
219
  content.actionsTemplate = popover.actionsTemplate;
239
220
  this.popupRef.content.changeDetectorRef.detectChanges();
240
221
  }
222
+ manageEvents() {
223
+ this.ngZone.runOutsideAngular(() => {
224
+ switch (this.showOn) {
225
+ case 'hover':
226
+ this.subscribeToShowEvents([{
227
+ name: 'mouseenter', handler: this.mouseenterHandler
228
+ }, {
229
+ name: 'mouseleave', handler: this.mouseleaveHandler
230
+ }]);
231
+ break;
232
+ case 'focus':
233
+ this.subscribeToShowEvents([{
234
+ name: 'focus', handler: this.focusHandler
235
+ }, {
236
+ name: 'blur', handler: this.blurHandler
237
+ }]);
238
+ break;
239
+ case 'click':
240
+ this.subscribeClick();
241
+ break;
242
+ default:
243
+ break;
244
+ }
245
+ });
246
+ }
241
247
  /**
242
248
  * @hidden
243
249
  */
@@ -274,8 +274,8 @@ const packageMetadata = {
274
274
  name: '@progress/kendo-angular-tooltip',
275
275
  productName: 'Kendo UI for Angular',
276
276
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
277
- publishDate: 1724741889,
278
- version: '16.8.0',
277
+ publishDate: 1724927200,
278
+ version: '16.9.0-develop.10',
279
279
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
280
280
  };
281
281
 
@@ -809,33 +809,12 @@ class PopoverDirectivesBase {
809
809
  if (!isDocumentAvailable()) {
810
810
  return;
811
811
  }
812
- this.ngZone.runOutsideAngular(() => {
813
- switch (this.showOn) {
814
- case 'hover':
815
- this.subscribeToShowEvents([{
816
- name: 'mouseenter', handler: this.mouseenterHandler
817
- }, {
818
- name: 'mouseleave', handler: this.mouseleaveHandler
819
- }]);
820
- break;
821
- case 'focus':
822
- this.subscribeToShowEvents([{
823
- name: 'focus', handler: this.focusHandler
824
- }, {
825
- name: 'blur', handler: this.blurHandler
826
- }]);
827
- break;
828
- case 'click':
829
- this.subscribeClick();
830
- break;
831
- default:
832
- break;
833
- }
834
- });
812
+ this.manageEvents();
835
813
  }
836
814
  ngOnDestroy() {
837
815
  this.closePopup();
838
816
  this.subs.unsubscribe();
817
+ this._popupSubs && this._popupSubs.unsubscribe();
839
818
  if (this.disposeHoverOverListener) {
840
819
  this.disposeHoverOverListener();
841
820
  }
@@ -883,6 +862,7 @@ class PopoverDirectivesBase {
883
862
  if (this.disposePopupFocusOutListener) {
884
863
  this.disposePopupFocusOutListener();
885
864
  }
865
+ this._popupSubs.unsubscribe();
886
866
  }
887
867
  }
888
868
  /**
@@ -907,11 +887,12 @@ class PopoverDirectivesBase {
907
887
  collision: { horizontal: 'fit', vertical: 'fit' }
908
888
  });
909
889
  const popupInstance = this.popupRef.content.instance;
890
+ this._popupSubs = new Subscription();
910
891
  if (anchor) {
911
- this.subs.add(this.renderer.listen(this.anchor, 'keydown', event => this.onKeyDown(event)));
892
+ this._popupSubs.add(this.renderer.listen(this.anchor, 'keydown', event => this.onKeyDown(event)));
912
893
  this.renderer.setAttribute(this.anchor, 'aria-describedby', popupInstance.popoverId);
913
894
  }
914
- this.subs.add(popupInstance.closeOnKeyDown.subscribe(() => {
895
+ this._popupSubs.add(popupInstance.closeOnKeyDown.subscribe(() => {
915
896
  this.anchor.focus();
916
897
  this.hide();
917
898
  }));
@@ -974,6 +955,31 @@ class PopoverDirectivesBase {
974
955
  content.actionsTemplate = popover.actionsTemplate;
975
956
  this.popupRef.content.changeDetectorRef.detectChanges();
976
957
  }
958
+ manageEvents() {
959
+ this.ngZone.runOutsideAngular(() => {
960
+ switch (this.showOn) {
961
+ case 'hover':
962
+ this.subscribeToShowEvents([{
963
+ name: 'mouseenter', handler: this.mouseenterHandler
964
+ }, {
965
+ name: 'mouseleave', handler: this.mouseleaveHandler
966
+ }]);
967
+ break;
968
+ case 'focus':
969
+ this.subscribeToShowEvents([{
970
+ name: 'focus', handler: this.focusHandler
971
+ }, {
972
+ name: 'blur', handler: this.blurHandler
973
+ }]);
974
+ break;
975
+ case 'click':
976
+ this.subscribeClick();
977
+ break;
978
+ default:
979
+ break;
980
+ }
981
+ });
982
+ }
977
983
  /**
978
984
  * @hidden
979
985
  */
@@ -1158,6 +1164,16 @@ class PopoverAnchorDirective extends PopoverDirectivesBase {
1158
1164
  };
1159
1165
  this._popoverService = this.popoverService;
1160
1166
  }
1167
+ ngOnChanges(changes) {
1168
+ if (changes['showOn'] && !changes['showOn'].isFirstChange()) {
1169
+ this.subs.unsubscribe();
1170
+ if (this.disposeClickListener) {
1171
+ this.disposeClickListener();
1172
+ }
1173
+ this.subs = new Subscription();
1174
+ this.manageEvents();
1175
+ }
1176
+ }
1161
1177
  /**
1162
1178
  * Shows the Popover. [See example]({% slug programmaticcontrol_popover %})
1163
1179
  */
@@ -1233,7 +1249,7 @@ class PopoverAnchorDirective extends PopoverDirectivesBase {
1233
1249
  }
1234
1250
  }
1235
1251
  PopoverAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopoverAnchorDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.PopupService }, { token: i0.Renderer2 }, { token: PopoverService }], target: i0.ɵɵFactoryTarget.Directive });
1236
- PopoverAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PopoverAnchorDirective, isStandalone: true, selector: "[kendoPopoverAnchor]", providers: [PopoverService], exportAs: ["kendoPopoverAnchor"], usesInheritance: true, ngImport: i0 });
1252
+ PopoverAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PopoverAnchorDirective, isStandalone: true, selector: "[kendoPopoverAnchor]", providers: [PopoverService], exportAs: ["kendoPopoverAnchor"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1237
1253
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopoverAnchorDirective, decorators: [{
1238
1254
  type: Directive,
1239
1255
  args: [{
@@ -274,8 +274,8 @@ const packageMetadata = {
274
274
  name: '@progress/kendo-angular-tooltip',
275
275
  productName: 'Kendo UI for Angular',
276
276
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
277
- publishDate: 1724741889,
278
- version: '16.8.0',
277
+ publishDate: 1724927200,
278
+ version: '16.9.0-develop.10',
279
279
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
280
280
  };
281
281
 
@@ -803,33 +803,12 @@ class PopoverDirectivesBase {
803
803
  if (!isDocumentAvailable()) {
804
804
  return;
805
805
  }
806
- this.ngZone.runOutsideAngular(() => {
807
- switch (this.showOn) {
808
- case 'hover':
809
- this.subscribeToShowEvents([{
810
- name: 'mouseenter', handler: this.mouseenterHandler
811
- }, {
812
- name: 'mouseleave', handler: this.mouseleaveHandler
813
- }]);
814
- break;
815
- case 'focus':
816
- this.subscribeToShowEvents([{
817
- name: 'focus', handler: this.focusHandler
818
- }, {
819
- name: 'blur', handler: this.blurHandler
820
- }]);
821
- break;
822
- case 'click':
823
- this.subscribeClick();
824
- break;
825
- default:
826
- break;
827
- }
828
- });
806
+ this.manageEvents();
829
807
  }
830
808
  ngOnDestroy() {
831
809
  this.closePopup();
832
810
  this.subs.unsubscribe();
811
+ this._popupSubs && this._popupSubs.unsubscribe();
833
812
  if (this.disposeHoverOverListener) {
834
813
  this.disposeHoverOverListener();
835
814
  }
@@ -877,6 +856,7 @@ class PopoverDirectivesBase {
877
856
  if (this.disposePopupFocusOutListener) {
878
857
  this.disposePopupFocusOutListener();
879
858
  }
859
+ this._popupSubs.unsubscribe();
880
860
  }
881
861
  }
882
862
  /**
@@ -901,11 +881,12 @@ class PopoverDirectivesBase {
901
881
  collision: { horizontal: 'fit', vertical: 'fit' }
902
882
  });
903
883
  const popupInstance = this.popupRef.content.instance;
884
+ this._popupSubs = new Subscription();
904
885
  if (anchor) {
905
- this.subs.add(this.renderer.listen(this.anchor, 'keydown', event => this.onKeyDown(event)));
886
+ this._popupSubs.add(this.renderer.listen(this.anchor, 'keydown', event => this.onKeyDown(event)));
906
887
  this.renderer.setAttribute(this.anchor, 'aria-describedby', popupInstance.popoverId);
907
888
  }
908
- this.subs.add(popupInstance.closeOnKeyDown.subscribe(() => {
889
+ this._popupSubs.add(popupInstance.closeOnKeyDown.subscribe(() => {
909
890
  this.anchor.focus();
910
891
  this.hide();
911
892
  }));
@@ -968,6 +949,31 @@ class PopoverDirectivesBase {
968
949
  content.actionsTemplate = popover.actionsTemplate;
969
950
  this.popupRef.content.changeDetectorRef.detectChanges();
970
951
  }
952
+ manageEvents() {
953
+ this.ngZone.runOutsideAngular(() => {
954
+ switch (this.showOn) {
955
+ case 'hover':
956
+ this.subscribeToShowEvents([{
957
+ name: 'mouseenter', handler: this.mouseenterHandler
958
+ }, {
959
+ name: 'mouseleave', handler: this.mouseleaveHandler
960
+ }]);
961
+ break;
962
+ case 'focus':
963
+ this.subscribeToShowEvents([{
964
+ name: 'focus', handler: this.focusHandler
965
+ }, {
966
+ name: 'blur', handler: this.blurHandler
967
+ }]);
968
+ break;
969
+ case 'click':
970
+ this.subscribeClick();
971
+ break;
972
+ default:
973
+ break;
974
+ }
975
+ });
976
+ }
971
977
  /**
972
978
  * @hidden
973
979
  */
@@ -1152,6 +1158,16 @@ class PopoverAnchorDirective extends PopoverDirectivesBase {
1152
1158
  };
1153
1159
  this._popoverService = this.popoverService;
1154
1160
  }
1161
+ ngOnChanges(changes) {
1162
+ if (changes['showOn'] && !changes['showOn'].isFirstChange()) {
1163
+ this.subs.unsubscribe();
1164
+ if (this.disposeClickListener) {
1165
+ this.disposeClickListener();
1166
+ }
1167
+ this.subs = new Subscription();
1168
+ this.manageEvents();
1169
+ }
1170
+ }
1155
1171
  /**
1156
1172
  * Shows the Popover. [See example]({% slug programmaticcontrol_popover %})
1157
1173
  */
@@ -1227,7 +1243,7 @@ class PopoverAnchorDirective extends PopoverDirectivesBase {
1227
1243
  }
1228
1244
  }
1229
1245
  PopoverAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopoverAnchorDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.PopupService }, { token: i0.Renderer2 }, { token: PopoverService }], target: i0.ɵɵFactoryTarget.Directive });
1230
- PopoverAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PopoverAnchorDirective, isStandalone: true, selector: "[kendoPopoverAnchor]", providers: [PopoverService], exportAs: ["kendoPopoverAnchor"], usesInheritance: true, ngImport: i0 });
1246
+ PopoverAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PopoverAnchorDirective, isStandalone: true, selector: "[kendoPopoverAnchor]", providers: [PopoverService], exportAs: ["kendoPopoverAnchor"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
1231
1247
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopoverAnchorDirective, decorators: [{
1232
1248
  type: Directive,
1233
1249
  args: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-tooltip",
3
- "version": "16.8.0",
3
+ "version": "16.9.0-develop.10",
4
4
  "description": "Kendo UI Tooltip for Angular - A highly customizable and easily themeable tooltip from the creators developers trust for professional Angular components.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -25,15 +25,15 @@
25
25
  "@angular/core": "15 - 18",
26
26
  "@angular/platform-browser": "15 - 18",
27
27
  "@progress/kendo-licensing": "^1.0.2",
28
- "@progress/kendo-angular-common": "16.8.0",
29
- "@progress/kendo-angular-l10n": "16.8.0",
30
- "@progress/kendo-angular-popup": "16.8.0",
31
- "@progress/kendo-angular-icons": "16.8.0",
28
+ "@progress/kendo-angular-common": "16.9.0-develop.10",
29
+ "@progress/kendo-angular-l10n": "16.9.0-develop.10",
30
+ "@progress/kendo-angular-popup": "16.9.0-develop.10",
31
+ "@progress/kendo-angular-icons": "16.9.0-develop.10",
32
32
  "rxjs": "^6.5.3 || ^7.0.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "tslib": "^2.3.1",
36
- "@progress/kendo-angular-schematics": "16.8.0"
36
+ "@progress/kendo-angular-schematics": "16.9.0-develop.10"
37
37
  },
38
38
  "schematics": "./schematics/collection.json",
39
39
  "module": "fesm2015/progress-kendo-angular-tooltip.mjs",
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2024 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 { ElementRef, NgZone, Renderer2 } from "@angular/core";
5
+ import { ElementRef, NgZone, Renderer2, SimpleChanges } from "@angular/core";
6
6
  import { PopupService } from "@progress/kendo-angular-popup";
7
7
  import { PopoverDirectivesBase } from "./directives-base";
8
8
  import { PopoverService } from "./popover.service";
@@ -23,6 +23,7 @@ export declare class PopoverAnchorDirective extends PopoverDirectivesBase {
23
23
  protected renderer: Renderer2;
24
24
  protected popoverService: PopoverService;
25
25
  constructor(hostEl: ElementRef, ngZone: NgZone, popupService: PopupService, renderer: Renderer2, popoverService: PopoverService);
26
+ ngOnChanges(changes: SimpleChanges): void;
26
27
  /**
27
28
  * Shows the Popover. [See example]({% slug programmaticcontrol_popover %})
28
29
  */
@@ -57,6 +57,7 @@ export declare abstract class PopoverDirectivesBase {
57
57
  private _showOn;
58
58
  private _popupOpenSub;
59
59
  private _popupCloseSub;
60
+ private _popupSubs;
60
61
  constructor(ngZone: NgZone, popupService: PopupService, renderer: Renderer2);
61
62
  ngAfterViewInit(): void;
62
63
  ngOnDestroy(): void;
@@ -87,6 +88,7 @@ export declare abstract class PopoverDirectivesBase {
87
88
  protected abstract mouseleaveHandler(args?: any): void;
88
89
  protected abstract focusHandler(args?: any): void;
89
90
  protected abstract blurHandler(args?: any): void;
91
+ protected manageEvents(): void;
90
92
  /**
91
93
  * @hidden
92
94
  */