@progress/kendo-angular-popup 4.0.5-dev.202202251003 → 4.0.6-dev.202203161114

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.
@@ -204,7 +204,7 @@ let PopupComponent = class PopupComponent {
204
204
  this._resizeService.subscribe(this.reposition);
205
205
  this.animationSubscriptions = this.animationService.start.subscribe(this.onAnimationStart.bind(this));
206
206
  this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this)));
207
- this._scrollableService.forElement(this.anchor || this.container).subscribe(this.onScroll.bind(this));
207
+ this._scrollableService.forElement(this.domService.nativeElement(this.anchor) || this.container.nativeElement).subscribe(this.onScroll.bind(this));
208
208
  this.currentOffset = DEFAULT_OFFSET;
209
209
  this.setZIndex();
210
210
  this.copyFontStyles();
@@ -274,7 +274,7 @@ let PopupComponent = class PopupComponent {
274
274
  }
275
275
  setZIndex() {
276
276
  if (this.anchor) {
277
- this.setContainerStyle('z-index', String(this.domService.zIndex(this.anchor, this.container)));
277
+ this.setContainerStyle('z-index', String(this.domService.zIndex(this.domService.nativeElement(this.anchor), this.container)));
278
278
  }
279
279
  }
280
280
  reposition() {
@@ -295,7 +295,7 @@ let PopupComponent = class PopupComponent {
295
295
  }
296
296
  position() {
297
297
  const alignedOffset = this._alignService.alignElement({
298
- anchor: this.anchor,
298
+ anchor: this.domService.nativeElement(this.anchor),
299
299
  anchorAlign: this.anchorAlign,
300
300
  element: this.container,
301
301
  elementAlign: this.popupAlign,
@@ -304,7 +304,7 @@ let PopupComponent = class PopupComponent {
304
304
  positionMode: this.positionMode
305
305
  });
306
306
  return this._positionService.positionElement({
307
- anchor: this.anchor,
307
+ anchor: this.domService.nativeElement(this.anchor),
308
308
  anchorAlign: this.anchorAlign,
309
309
  collisions: this.collision,
310
310
  currentLocation: alignedOffset,
@@ -328,7 +328,7 @@ let PopupComponent = class PopupComponent {
328
328
  if (!this.anchor || !this.copyAnchorStyles) {
329
329
  return;
330
330
  }
331
- this.domService.getFontStyles(this.anchor)
331
+ this.domService.getFontStyles(this.domService.nativeElement(this.anchor))
332
332
  .forEach(s => this.setContainerStyle(s.key, s.value));
333
333
  }
334
334
  updateFixedClass() {
@@ -350,7 +350,7 @@ tslib_1.__decorate([
350
350
  ], PopupComponent.prototype, "animate", void 0);
351
351
  tslib_1.__decorate([
352
352
  Input(),
353
- tslib_1.__metadata("design:type", ElementRef)
353
+ tslib_1.__metadata("design:type", Object)
354
354
  ], PopupComponent.prototype, "anchor", void 0);
355
355
  tslib_1.__decorate([
356
356
  Input(),
@@ -20,7 +20,7 @@ let AlignService = class AlignService {
20
20
  const scale = this.scale || 1;
21
21
  const fixedMode = positionMode === 'fixed' || !this._dom.hasOffsetParent(element);
22
22
  const anchorRect = fixedMode ? this.absoluteRect(anchor, element, offset, scale) : this.relativeRect(anchor, element, offset, scale);
23
- const elementRect = scaleRect(this._dom.offset(element), scale);
23
+ const elementRect = scaleRect(this._dom.offset(element.nativeElement), scale);
24
24
  const result = this._dom.align({
25
25
  anchorAlign: anchorAlign,
26
26
  anchorRect: anchorRect,
@@ -12,24 +12,24 @@ export declare class DOMService {
12
12
  addOffset(current: OffsetPosition, addition: OffsetPosition): OffsetPosition;
13
13
  addScroll(rect: ElementRect, scroll: ScrollInfo): ElementRect;
14
14
  align(settings: AlignSettings): OffsetPosition;
15
- boundingOffset(el: ElementRef): BoundingRect;
16
- getFontStyles(el: ElementRef): any;
15
+ boundingOffset(el: HTMLElement): BoundingRect;
16
+ getFontStyles(el: HTMLElement): any;
17
17
  getWindow(): Window;
18
18
  hasOffsetParent(el: ElementRef): boolean;
19
- offset(el: ElementRef): ElementRect;
19
+ offset(el: HTMLElement): ElementRect;
20
20
  offsetAtPoint(el: ElementRef, currentLocation: OffsetPosition): ElementRect;
21
- nativeElement(el: ElementRef): HTMLElement;
22
- position(element: ElementRef, popup: ElementRef, scale?: number): ElementRect;
21
+ nativeElement(el: any): HTMLElement;
22
+ position(element: HTMLElement, popup: ElementRef, scale?: number): ElementRect;
23
23
  removeScroll(rect: ElementRect, scroll: ScrollInfo): ElementRect;
24
24
  restrictToView(settings: PositionSettings): Position;
25
25
  scrollPosition(el: ElementRef): ScrollInfo;
26
- scrollableParents(el: ElementRef): Array<HTMLElement>;
26
+ scrollableParents(el: HTMLElement): Array<HTMLElement>;
27
27
  stackingElementOffset(el: ElementRef): ElementRect;
28
28
  stackingElementScroll(el: ElementRef): ScrollInfo;
29
29
  getRelativeContextElement(el: ElementRef): HTMLElement;
30
30
  useRelativePosition(el: ElementRef): boolean;
31
31
  windowViewPort(el: ElementRef): ViewPort;
32
- zIndex(anchor: ElementRef, container: ElementRef): number;
32
+ zIndex(anchor: HTMLElement, container: ElementRef): number;
33
33
  zoomLevel(): number;
34
34
  isZoomed(): boolean;
35
35
  }
@@ -32,14 +32,14 @@ let DOMService = class DOMService {
32
32
  return align(settings);
33
33
  }
34
34
  boundingOffset(el) {
35
- return boundingOffset(this.nativeElement(el));
35
+ return boundingOffset(el);
36
36
  }
37
37
  getFontStyles(el) {
38
38
  const window = this.getWindow();
39
39
  if (!window || !el) {
40
40
  return [];
41
41
  }
42
- const computedStyles = window.getComputedStyle(this.nativeElement(el));
42
+ const computedStyles = window.getComputedStyle(el);
43
43
  return STYLES.map(font => ({ key: font, value: computedStyles[font] }));
44
44
  }
45
45
  getWindow() {
@@ -55,7 +55,7 @@ let DOMService = class DOMService {
55
55
  if (!el) {
56
56
  return null;
57
57
  }
58
- return offset(this.nativeElement(el));
58
+ return offset(el);
59
59
  }
60
60
  offsetAtPoint(el, currentLocation) {
61
61
  if (!el) {
@@ -85,7 +85,7 @@ let DOMService = class DOMService {
85
85
  if (!element || !popup) {
86
86
  return null;
87
87
  }
88
- return positionWithScroll(this.nativeElement(element), this.nativeElement(popup), scale);
88
+ return positionWithScroll(element, this.nativeElement(popup), scale);
89
89
  }
90
90
  removeScroll(rect, scroll) {
91
91
  return removeScroll(rect, scroll);
@@ -97,7 +97,7 @@ let DOMService = class DOMService {
97
97
  return scrollPosition(this.nativeElement(el));
98
98
  }
99
99
  scrollableParents(el) {
100
- return scrollableParents(this.nativeElement(el));
100
+ return scrollableParents(el);
101
101
  }
102
102
  stackingElementOffset(el) {
103
103
  const relativeContextElement = this.getRelativeContextElement(el);
@@ -136,7 +136,7 @@ let DOMService = class DOMService {
136
136
  return getWindowViewPort(this.nativeElement(el));
137
137
  }
138
138
  zIndex(anchor, container) {
139
- return zIndex(this.nativeElement(anchor), this.nativeElement(container));
139
+ return zIndex(anchor, this.nativeElement(container));
140
140
  }
141
141
  zoomLevel() {
142
142
  if (!isDocumentAvailable() || !isWindowAvailable()) {
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2021 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 } from '@angular/core';
5
+ import { NgZone } from '@angular/core';
6
6
  import { DOMService } from './dom.service';
7
7
  /**
8
8
  * @hidden
@@ -17,8 +17,8 @@ export declare class ScrollableService {
17
17
  private element;
18
18
  private subscription;
19
19
  constructor(_dom: DOMService, _zone: NgZone);
20
- forElement(element: ElementRef): ScrollableService;
20
+ forElement(element: HTMLElement): ScrollableService;
21
21
  subscribe(callback: Function): void;
22
22
  unsubscribe(): void;
23
- isVisible(elem: any, container: any): boolean;
23
+ isVisible(elem: HTMLElement, container: any): boolean;
24
24
  }
@@ -30,7 +30,6 @@ let ScrollableService = class ScrollableService {
30
30
  if (!callback || !isDocumentAvailable() || !this.element) {
31
31
  return;
32
32
  }
33
- const nativeElement = this._dom.nativeElement(this.element);
34
33
  const parents = this._dom.scrollableParents(this.element);
35
34
  this._zone.runOutsideAngular(() => {
36
35
  const observables = parents.map(p => fromEvent(p, "scroll").pipe(auditTime(FRAME_DURATION)));
@@ -40,7 +39,7 @@ let ScrollableService = class ScrollableService {
40
39
  const isDocument = target === document;
41
40
  const isWindow = target === window;
42
41
  if (isParent || isDocument || isWindow) {
43
- callback(this.isVisible(nativeElement, target));
42
+ callback(this.isVisible(this.element, target));
44
43
  }
45
44
  };
46
45
  this.subscription = merge(...observables).subscribe(subscriber);
@@ -54,7 +53,7 @@ let ScrollableService = class ScrollableService {
54
53
  }
55
54
  isVisible(elem, container) {
56
55
  const elemRect = this._dom.boundingOffset(elem);
57
- const containerRect = this._dom.boundingOffset(container);
56
+ const containerRect = this._dom.boundingOffset(this._dom.nativeElement(container));
58
57
  if (THRESHOLD_DIFF < (containerRect.top - elemRect.bottom)) {
59
58
  return false;
60
59
  }
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __decorate, __param, __metadata } from 'tslib';
6
- import { Injectable, InjectionToken, Inject, Optional, NgZone, EventEmitter, isDevMode, Input, ElementRef, Output, ViewChild, Component, Renderer2, TemplateRef, ApplicationRef, ComponentFactoryResolver, Injector, NgModule } from '@angular/core';
6
+ import { Injectable, InjectionToken, Inject, Optional, NgZone, EventEmitter, isDevMode, Input, Output, ViewChild, ElementRef, Component, Renderer2, TemplateRef, ApplicationRef, ComponentFactoryResolver, Injector, NgModule } from '@angular/core';
7
7
  import { siblingContainer, parents, addScroll, align, boundingOffset, offset, positionWithScroll, removeScroll, restrictToView, scrollPosition, getWindowViewPort } from '@progress/kendo-popup-common';
8
8
  import { isDocumentAvailable, hasObservers, ResizeSensorComponent, ResizeSensorModule } from '@progress/kendo-angular-common';
9
9
  import { fromEvent, merge, from } from 'rxjs';
@@ -173,14 +173,14 @@ let DOMService = class DOMService {
173
173
  return align(settings);
174
174
  }
175
175
  boundingOffset(el) {
176
- return boundingOffset(this.nativeElement(el));
176
+ return boundingOffset(el);
177
177
  }
178
178
  getFontStyles(el) {
179
179
  const window = this.getWindow();
180
180
  if (!window || !el) {
181
181
  return [];
182
182
  }
183
- const computedStyles = window.getComputedStyle(this.nativeElement(el));
183
+ const computedStyles = window.getComputedStyle(el);
184
184
  return STYLES.map(font => ({ key: font, value: computedStyles[font] }));
185
185
  }
186
186
  getWindow() {
@@ -196,7 +196,7 @@ let DOMService = class DOMService {
196
196
  if (!el) {
197
197
  return null;
198
198
  }
199
- return offset(this.nativeElement(el));
199
+ return offset(el);
200
200
  }
201
201
  offsetAtPoint(el, currentLocation) {
202
202
  if (!el) {
@@ -226,7 +226,7 @@ let DOMService = class DOMService {
226
226
  if (!element || !popup) {
227
227
  return null;
228
228
  }
229
- return positionWithScroll(this.nativeElement(element), this.nativeElement(popup), scale);
229
+ return positionWithScroll(element, this.nativeElement(popup), scale);
230
230
  }
231
231
  removeScroll(rect, scroll) {
232
232
  return removeScroll(rect, scroll);
@@ -238,7 +238,7 @@ let DOMService = class DOMService {
238
238
  return scrollPosition(this.nativeElement(el));
239
239
  }
240
240
  scrollableParents(el) {
241
- return scrollableParents(this.nativeElement(el));
241
+ return scrollableParents(el);
242
242
  }
243
243
  stackingElementOffset(el) {
244
244
  const relativeContextElement = this.getRelativeContextElement(el);
@@ -277,7 +277,7 @@ let DOMService = class DOMService {
277
277
  return getWindowViewPort(this.nativeElement(el));
278
278
  }
279
279
  zIndex(anchor, container) {
280
- return zIndex(this.nativeElement(anchor), this.nativeElement(container));
280
+ return zIndex(anchor, this.nativeElement(container));
281
281
  }
282
282
  zoomLevel() {
283
283
  if (!isDocumentAvailable() || !isWindowAvailable()) {
@@ -323,7 +323,7 @@ let AlignService = class AlignService {
323
323
  const scale = this.scale || 1;
324
324
  const fixedMode = positionMode === 'fixed' || !this._dom.hasOffsetParent(element);
325
325
  const anchorRect = fixedMode ? this.absoluteRect(anchor, element, offset$$1, scale) : this.relativeRect(anchor, element, offset$$1, scale);
326
- const elementRect = scaleRect(this._dom.offset(element), scale);
326
+ const elementRect = scaleRect(this._dom.offset(element.nativeElement), scale);
327
327
  const result = this._dom.align({
328
328
  anchorAlign: anchorAlign,
329
329
  anchorRect: anchorRect,
@@ -459,7 +459,6 @@ let ScrollableService = class ScrollableService {
459
459
  if (!callback || !isDocumentAvailable() || !this.element) {
460
460
  return;
461
461
  }
462
- const nativeElement = this._dom.nativeElement(this.element);
463
462
  const parents$$1 = this._dom.scrollableParents(this.element);
464
463
  this._zone.runOutsideAngular(() => {
465
464
  const observables = parents$$1.map(p => fromEvent(p, "scroll").pipe(auditTime(FRAME_DURATION)));
@@ -469,7 +468,7 @@ let ScrollableService = class ScrollableService {
469
468
  const isDocument = target === document;
470
469
  const isWindow = target === window;
471
470
  if (isParent || isDocument || isWindow) {
472
- callback(this.isVisible(nativeElement, target));
471
+ callback(this.isVisible(this.element, target));
473
472
  }
474
473
  };
475
474
  this.subscription = merge(...observables).subscribe(subscriber);
@@ -483,7 +482,7 @@ let ScrollableService = class ScrollableService {
483
482
  }
484
483
  isVisible(elem, container) {
485
484
  const elemRect = this._dom.boundingOffset(elem);
486
- const containerRect = this._dom.boundingOffset(container);
485
+ const containerRect = this._dom.boundingOffset(this._dom.nativeElement(container));
487
486
  if (THRESHOLD_DIFF < (containerRect.top - elemRect.bottom)) {
488
487
  return false;
489
488
  }
@@ -639,7 +638,7 @@ const packageMetadata = {
639
638
  name: '@progress/kendo-angular-popup',
640
639
  productName: 'Kendo UI for Angular',
641
640
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
642
- publishDate: 1645783353,
641
+ publishDate: 1647429230,
643
642
  version: '',
644
643
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
645
644
  };
@@ -833,7 +832,7 @@ let PopupComponent = class PopupComponent {
833
832
  this._resizeService.subscribe(this.reposition);
834
833
  this.animationSubscriptions = this.animationService.start.subscribe(this.onAnimationStart.bind(this));
835
834
  this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this)));
836
- this._scrollableService.forElement(this.anchor || this.container).subscribe(this.onScroll.bind(this));
835
+ this._scrollableService.forElement(this.domService.nativeElement(this.anchor) || this.container.nativeElement).subscribe(this.onScroll.bind(this));
837
836
  this.currentOffset = DEFAULT_OFFSET;
838
837
  this.setZIndex();
839
838
  this.copyFontStyles();
@@ -903,7 +902,7 @@ let PopupComponent = class PopupComponent {
903
902
  }
904
903
  setZIndex() {
905
904
  if (this.anchor) {
906
- this.setContainerStyle('z-index', String(this.domService.zIndex(this.anchor, this.container)));
905
+ this.setContainerStyle('z-index', String(this.domService.zIndex(this.domService.nativeElement(this.anchor), this.container)));
907
906
  }
908
907
  }
909
908
  reposition() {
@@ -924,7 +923,7 @@ let PopupComponent = class PopupComponent {
924
923
  }
925
924
  position() {
926
925
  const alignedOffset = this._alignService.alignElement({
927
- anchor: this.anchor,
926
+ anchor: this.domService.nativeElement(this.anchor),
928
927
  anchorAlign: this.anchorAlign,
929
928
  element: this.container,
930
929
  elementAlign: this.popupAlign,
@@ -933,7 +932,7 @@ let PopupComponent = class PopupComponent {
933
932
  positionMode: this.positionMode
934
933
  });
935
934
  return this._positionService.positionElement({
936
- anchor: this.anchor,
935
+ anchor: this.domService.nativeElement(this.anchor),
937
936
  anchorAlign: this.anchorAlign,
938
937
  collisions: this.collision,
939
938
  currentLocation: alignedOffset,
@@ -957,7 +956,7 @@ let PopupComponent = class PopupComponent {
957
956
  if (!this.anchor || !this.copyAnchorStyles) {
958
957
  return;
959
958
  }
960
- this.domService.getFontStyles(this.anchor)
959
+ this.domService.getFontStyles(this.domService.nativeElement(this.anchor))
961
960
  .forEach(s => this.setContainerStyle(s.key, s.value));
962
961
  }
963
962
  updateFixedClass() {
@@ -979,7 +978,7 @@ __decorate([
979
978
  ], PopupComponent.prototype, "animate", void 0);
980
979
  __decorate([
981
980
  Input(),
982
- __metadata("design:type", ElementRef)
981
+ __metadata("design:type", Object)
983
982
  ], PopupComponent.prototype, "anchor", void 0);
984
983
  __decorate([
985
984
  Input(),
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __decorate, __param, __metadata } from 'tslib';
6
- import { Injectable, InjectionToken, Inject, Optional, NgZone, isDevMode, EventEmitter, Input, ElementRef, Output, ViewChild, Component, Renderer2, TemplateRef, ApplicationRef, ComponentFactoryResolver, Injector, NgModule } from '@angular/core';
6
+ import { Injectable, InjectionToken, Inject, Optional, NgZone, isDevMode, EventEmitter, Input, Output, ViewChild, ElementRef, Component, Renderer2, TemplateRef, ApplicationRef, ComponentFactoryResolver, Injector, NgModule } from '@angular/core';
7
7
  import { siblingContainer, parents, addScroll, align, boundingOffset, offset, positionWithScroll, removeScroll, restrictToView, scrollPosition, getWindowViewPort } from '@progress/kendo-popup-common';
8
8
  import { isDocumentAvailable, hasObservers, ResizeSensorComponent, ResizeSensorModule } from '@progress/kendo-angular-common';
9
9
  import { fromEvent, merge, from } from 'rxjs';
@@ -179,14 +179,14 @@ var DOMService = /** @class */ (function () {
179
179
  return align(settings);
180
180
  };
181
181
  DOMService.prototype.boundingOffset = function (el) {
182
- return boundingOffset(this.nativeElement(el));
182
+ return boundingOffset(el);
183
183
  };
184
184
  DOMService.prototype.getFontStyles = function (el) {
185
185
  var window = this.getWindow();
186
186
  if (!window || !el) {
187
187
  return [];
188
188
  }
189
- var computedStyles = window.getComputedStyle(this.nativeElement(el));
189
+ var computedStyles = window.getComputedStyle(el);
190
190
  return STYLES.map(function (font) { return ({ key: font, value: computedStyles[font] }); });
191
191
  };
192
192
  DOMService.prototype.getWindow = function () {
@@ -202,7 +202,7 @@ var DOMService = /** @class */ (function () {
202
202
  if (!el) {
203
203
  return null;
204
204
  }
205
- return offset(this.nativeElement(el));
205
+ return offset(el);
206
206
  };
207
207
  DOMService.prototype.offsetAtPoint = function (el, currentLocation) {
208
208
  if (!el) {
@@ -233,7 +233,7 @@ var DOMService = /** @class */ (function () {
233
233
  if (!element || !popup) {
234
234
  return null;
235
235
  }
236
- return positionWithScroll(this.nativeElement(element), this.nativeElement(popup), scale);
236
+ return positionWithScroll(element, this.nativeElement(popup), scale);
237
237
  };
238
238
  DOMService.prototype.removeScroll = function (rect, scroll) {
239
239
  return removeScroll(rect, scroll);
@@ -245,7 +245,7 @@ var DOMService = /** @class */ (function () {
245
245
  return scrollPosition(this.nativeElement(el));
246
246
  };
247
247
  DOMService.prototype.scrollableParents = function (el) {
248
- return scrollableParents(this.nativeElement(el));
248
+ return scrollableParents(el);
249
249
  };
250
250
  DOMService.prototype.stackingElementOffset = function (el) {
251
251
  var relativeContextElement = this.getRelativeContextElement(el);
@@ -284,7 +284,7 @@ var DOMService = /** @class */ (function () {
284
284
  return getWindowViewPort(this.nativeElement(el));
285
285
  };
286
286
  DOMService.prototype.zIndex = function (anchor, container) {
287
- return zIndex(this.nativeElement(anchor), this.nativeElement(container));
287
+ return zIndex(anchor, this.nativeElement(container));
288
288
  };
289
289
  DOMService.prototype.zoomLevel = function () {
290
290
  if (!isDocumentAvailable() || !isWindowAvailable()) {
@@ -332,7 +332,7 @@ var AlignService = /** @class */ (function () {
332
332
  var scale = this.scale || 1;
333
333
  var fixedMode = positionMode === 'fixed' || !this._dom.hasOffsetParent(element);
334
334
  var anchorRect = fixedMode ? this.absoluteRect(anchor, element, offset$$1, scale) : this.relativeRect(anchor, element, offset$$1, scale);
335
- var elementRect = scaleRect(this._dom.offset(element), scale);
335
+ var elementRect = scaleRect(this._dom.offset(element.nativeElement), scale);
336
336
  var result = this._dom.align({
337
337
  anchorAlign: anchorAlign,
338
338
  anchorRect: anchorRect,
@@ -474,7 +474,6 @@ var ScrollableService = /** @class */ (function () {
474
474
  if (!callback || !isDocumentAvailable() || !this.element) {
475
475
  return;
476
476
  }
477
- var nativeElement = this._dom.nativeElement(this.element);
478
477
  var parents$$1 = this._dom.scrollableParents(this.element);
479
478
  this._zone.runOutsideAngular(function () {
480
479
  var observables = parents$$1.map(function (p) { return fromEvent(p, "scroll").pipe(auditTime(FRAME_DURATION)); });
@@ -484,7 +483,7 @@ var ScrollableService = /** @class */ (function () {
484
483
  var isDocument = target === document;
485
484
  var isWindow = target === window;
486
485
  if (isParent || isDocument || isWindow) {
487
- callback(_this.isVisible(nativeElement, target));
486
+ callback(_this.isVisible(_this.element, target));
488
487
  }
489
488
  };
490
489
  _this.subscription = merge.apply(void 0, observables).subscribe(subscriber);
@@ -498,7 +497,7 @@ var ScrollableService = /** @class */ (function () {
498
497
  };
499
498
  ScrollableService.prototype.isVisible = function (elem, container) {
500
499
  var elemRect = this._dom.boundingOffset(elem);
501
- var containerRect = this._dom.boundingOffset(container);
500
+ var containerRect = this._dom.boundingOffset(this._dom.nativeElement(container));
502
501
  if (THRESHOLD_DIFF < (containerRect.top - elemRect.bottom)) {
503
502
  return false;
504
503
  }
@@ -657,7 +656,7 @@ var packageMetadata = {
657
656
  name: '@progress/kendo-angular-popup',
658
657
  productName: 'Kendo UI for Angular',
659
658
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
660
- publishDate: 1645783353,
659
+ publishDate: 1647429230,
661
660
  version: '',
662
661
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
663
662
  };
@@ -851,7 +850,7 @@ var PopupComponent = /** @class */ (function () {
851
850
  this._resizeService.subscribe(this.reposition);
852
851
  this.animationSubscriptions = this.animationService.start.subscribe(this.onAnimationStart.bind(this));
853
852
  this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this)));
854
- this._scrollableService.forElement(this.anchor || this.container).subscribe(this.onScroll.bind(this));
853
+ this._scrollableService.forElement(this.domService.nativeElement(this.anchor) || this.container.nativeElement).subscribe(this.onScroll.bind(this));
855
854
  this.currentOffset = DEFAULT_OFFSET;
856
855
  this.setZIndex();
857
856
  this.copyFontStyles();
@@ -927,7 +926,7 @@ var PopupComponent = /** @class */ (function () {
927
926
  });
928
927
  PopupComponent.prototype.setZIndex = function () {
929
928
  if (this.anchor) {
930
- this.setContainerStyle('z-index', String(this.domService.zIndex(this.anchor, this.container)));
929
+ this.setContainerStyle('z-index', String(this.domService.zIndex(this.domService.nativeElement(this.anchor), this.container)));
931
930
  }
932
931
  };
933
932
  PopupComponent.prototype.reposition = function () {
@@ -949,7 +948,7 @@ var PopupComponent = /** @class */ (function () {
949
948
  };
950
949
  PopupComponent.prototype.position = function () {
951
950
  var alignedOffset = this._alignService.alignElement({
952
- anchor: this.anchor,
951
+ anchor: this.domService.nativeElement(this.anchor),
953
952
  anchorAlign: this.anchorAlign,
954
953
  element: this.container,
955
954
  elementAlign: this.popupAlign,
@@ -958,7 +957,7 @@ var PopupComponent = /** @class */ (function () {
958
957
  positionMode: this.positionMode
959
958
  });
960
959
  return this._positionService.positionElement({
961
- anchor: this.anchor,
960
+ anchor: this.domService.nativeElement(this.anchor),
962
961
  anchorAlign: this.anchorAlign,
963
962
  collisions: this.collision,
964
963
  currentLocation: alignedOffset,
@@ -984,7 +983,7 @@ var PopupComponent = /** @class */ (function () {
984
983
  if (!this.anchor || !this.copyAnchorStyles) {
985
984
  return;
986
985
  }
987
- this.domService.getFontStyles(this.anchor)
986
+ this.domService.getFontStyles(this.domService.nativeElement(this.anchor))
988
987
  .forEach(function (s) { return _this.setContainerStyle(s.key, s.value); });
989
988
  };
990
989
  PopupComponent.prototype.updateFixedClass = function () {
@@ -1005,7 +1004,7 @@ var PopupComponent = /** @class */ (function () {
1005
1004
  ], PopupComponent.prototype, "animate", void 0);
1006
1005
  __decorate([
1007
1006
  Input(),
1008
- __metadata("design:type", ElementRef)
1007
+ __metadata("design:type", Object)
1009
1008
  ], PopupComponent.prototype, "anchor", void 0);
1010
1009
  __decorate([
1011
1010
  Input(),
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-popup',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1645783353,
14
+ publishDate: 1647429230,
15
15
  version: '',
16
16
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
17
17
  };
@@ -206,7 +206,7 @@ var PopupComponent = /** @class */ (function () {
206
206
  this._resizeService.subscribe(this.reposition);
207
207
  this.animationSubscriptions = this.animationService.start.subscribe(this.onAnimationStart.bind(this));
208
208
  this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this)));
209
- this._scrollableService.forElement(this.anchor || this.container).subscribe(this.onScroll.bind(this));
209
+ this._scrollableService.forElement(this.domService.nativeElement(this.anchor) || this.container.nativeElement).subscribe(this.onScroll.bind(this));
210
210
  this.currentOffset = DEFAULT_OFFSET;
211
211
  this.setZIndex();
212
212
  this.copyFontStyles();
@@ -282,7 +282,7 @@ var PopupComponent = /** @class */ (function () {
282
282
  });
283
283
  PopupComponent.prototype.setZIndex = function () {
284
284
  if (this.anchor) {
285
- this.setContainerStyle('z-index', String(this.domService.zIndex(this.anchor, this.container)));
285
+ this.setContainerStyle('z-index', String(this.domService.zIndex(this.domService.nativeElement(this.anchor), this.container)));
286
286
  }
287
287
  };
288
288
  PopupComponent.prototype.reposition = function () {
@@ -304,7 +304,7 @@ var PopupComponent = /** @class */ (function () {
304
304
  };
305
305
  PopupComponent.prototype.position = function () {
306
306
  var alignedOffset = this._alignService.alignElement({
307
- anchor: this.anchor,
307
+ anchor: this.domService.nativeElement(this.anchor),
308
308
  anchorAlign: this.anchorAlign,
309
309
  element: this.container,
310
310
  elementAlign: this.popupAlign,
@@ -313,7 +313,7 @@ var PopupComponent = /** @class */ (function () {
313
313
  positionMode: this.positionMode
314
314
  });
315
315
  return this._positionService.positionElement({
316
- anchor: this.anchor,
316
+ anchor: this.domService.nativeElement(this.anchor),
317
317
  anchorAlign: this.anchorAlign,
318
318
  collisions: this.collision,
319
319
  currentLocation: alignedOffset,
@@ -339,7 +339,7 @@ var PopupComponent = /** @class */ (function () {
339
339
  if (!this.anchor || !this.copyAnchorStyles) {
340
340
  return;
341
341
  }
342
- this.domService.getFontStyles(this.anchor)
342
+ this.domService.getFontStyles(this.domService.nativeElement(this.anchor))
343
343
  .forEach(function (s) { return _this.setContainerStyle(s.key, s.value); });
344
344
  };
345
345
  PopupComponent.prototype.updateFixedClass = function () {
@@ -360,7 +360,7 @@ var PopupComponent = /** @class */ (function () {
360
360
  ], PopupComponent.prototype, "animate", void 0);
361
361
  tslib_1.__decorate([
362
362
  core_1.Input(),
363
- tslib_1.__metadata("design:type", core_1.ElementRef)
363
+ tslib_1.__metadata("design:type", Object)
364
364
  ], PopupComponent.prototype, "anchor", void 0);
365
365
  tslib_1.__decorate([
366
366
  core_1.Input(),
@@ -23,7 +23,7 @@ var AlignService = /** @class */ (function () {
23
23
  var scale = this.scale || 1;
24
24
  var fixedMode = positionMode === 'fixed' || !this._dom.hasOffsetParent(element);
25
25
  var anchorRect = fixedMode ? this.absoluteRect(anchor, element, offset, scale) : this.relativeRect(anchor, element, offset, scale);
26
- var elementRect = util_1.scaleRect(this._dom.offset(element), scale);
26
+ var elementRect = util_1.scaleRect(this._dom.offset(element.nativeElement), scale);
27
27
  var result = this._dom.align({
28
28
  anchorAlign: anchorAlign,
29
29
  anchorRect: anchorRect,
@@ -36,14 +36,14 @@ var DOMService = /** @class */ (function () {
36
36
  return kendo_popup_common_1.align(settings);
37
37
  };
38
38
  DOMService.prototype.boundingOffset = function (el) {
39
- return kendo_popup_common_1.boundingOffset(this.nativeElement(el));
39
+ return kendo_popup_common_1.boundingOffset(el);
40
40
  };
41
41
  DOMService.prototype.getFontStyles = function (el) {
42
42
  var window = this.getWindow();
43
43
  if (!window || !el) {
44
44
  return [];
45
45
  }
46
- var computedStyles = window.getComputedStyle(this.nativeElement(el));
46
+ var computedStyles = window.getComputedStyle(el);
47
47
  return STYLES.map(function (font) { return ({ key: font, value: computedStyles[font] }); });
48
48
  };
49
49
  DOMService.prototype.getWindow = function () {
@@ -59,7 +59,7 @@ var DOMService = /** @class */ (function () {
59
59
  if (!el) {
60
60
  return null;
61
61
  }
62
- return kendo_popup_common_1.offset(this.nativeElement(el));
62
+ return kendo_popup_common_1.offset(el);
63
63
  };
64
64
  DOMService.prototype.offsetAtPoint = function (el, currentLocation) {
65
65
  if (!el) {
@@ -90,7 +90,7 @@ var DOMService = /** @class */ (function () {
90
90
  if (!element || !popup) {
91
91
  return null;
92
92
  }
93
- return kendo_popup_common_1.positionWithScroll(this.nativeElement(element), this.nativeElement(popup), scale);
93
+ return kendo_popup_common_1.positionWithScroll(element, this.nativeElement(popup), scale);
94
94
  };
95
95
  DOMService.prototype.removeScroll = function (rect, scroll) {
96
96
  return kendo_popup_common_1.removeScroll(rect, scroll);
@@ -102,7 +102,7 @@ var DOMService = /** @class */ (function () {
102
102
  return kendo_popup_common_1.scrollPosition(this.nativeElement(el));
103
103
  };
104
104
  DOMService.prototype.scrollableParents = function (el) {
105
- return util_1.scrollableParents(this.nativeElement(el));
105
+ return util_1.scrollableParents(el);
106
106
  };
107
107
  DOMService.prototype.stackingElementOffset = function (el) {
108
108
  var relativeContextElement = this.getRelativeContextElement(el);
@@ -141,7 +141,7 @@ var DOMService = /** @class */ (function () {
141
141
  return kendo_popup_common_1.getWindowViewPort(this.nativeElement(el));
142
142
  };
143
143
  DOMService.prototype.zIndex = function (anchor, container) {
144
- return util_1.zIndex(this.nativeElement(anchor), this.nativeElement(container));
144
+ return util_1.zIndex(anchor, this.nativeElement(container));
145
145
  };
146
146
  DOMService.prototype.zoomLevel = function () {
147
147
  if (!kendo_angular_common_1.isDocumentAvailable() || !util_1.isWindowAvailable()) {
@@ -33,7 +33,6 @@ var ScrollableService = /** @class */ (function () {
33
33
  if (!callback || !kendo_angular_common_1.isDocumentAvailable() || !this.element) {
34
34
  return;
35
35
  }
36
- var nativeElement = this._dom.nativeElement(this.element);
37
36
  var parents = this._dom.scrollableParents(this.element);
38
37
  this._zone.runOutsideAngular(function () {
39
38
  var observables = parents.map(function (p) { return rxjs_1.fromEvent(p, "scroll").pipe(operators_1.auditTime(util_1.FRAME_DURATION)); });
@@ -43,7 +42,7 @@ var ScrollableService = /** @class */ (function () {
43
42
  var isDocument = target === document;
44
43
  var isWindow = target === window;
45
44
  if (isParent || isDocument || isWindow) {
46
- callback(_this.isVisible(nativeElement, target));
45
+ callback(_this.isVisible(_this.element, target));
47
46
  }
48
47
  };
49
48
  _this.subscription = rxjs_1.merge.apply(void 0, observables).subscribe(subscriber);
@@ -57,7 +56,7 @@ var ScrollableService = /** @class */ (function () {
57
56
  };
58
57
  ScrollableService.prototype.isVisible = function (elem, container) {
59
58
  var elemRect = this._dom.boundingOffset(elem);
60
- var containerRect = this._dom.boundingOffset(container);
59
+ var containerRect = this._dom.boundingOffset(this._dom.nativeElement(container));
61
60
  if (exports.THRESHOLD_DIFF < (containerRect.top - elemRect.bottom)) {
62
61
  return false;
63
62
  }