@progress/kendo-angular-popup 5.0.0-next.202110181335 → 5.0.0-next.202204010906

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.
package/LICENSE.md CHANGED
@@ -8,4 +8,4 @@ This is commercial software. To use it, you need to agree to the [**Telerik End
8
8
 
9
9
  All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.
10
10
 
11
- *Copyright © 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
11
+ *Copyright © 2022 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
package/NOTICE.txt CHANGED
@@ -1,29 +1,71 @@
1
- Progress Kendo UI for Angular 2021
1
+ Progress Kendo UI for Angular 2022
2
2
 
3
- Copyright © 2016-2021 Progress Software Corporation and/or one of its
3
+ Copyright (c) 2016-2022 Progress Software Corporation and/or one of its
4
4
  subsidiaries or affiliates. All rights reserved.
5
5
 
6
6
  Portions of the Product include certain open source and commercial third-party
7
7
  components listed below ("Third-Party Components"). The authors of the
8
8
  Third-Party Components require Progress Software Corporation ("PSC") to
9
9
  include the following notices and additional licensing terms as a condition of
10
- PSC's use of such Third-Party Components. You acknowledge that the authors
10
+ PSC's use of such Third-Party Components. You acknowledge that the authors
11
11
  of the Third-Party Components have no obligation to provide support to you for
12
- the Third-Party Components or the Product. You hereby undertake to comply with
13
- all licenses related to the applicable Third-Party Components. Notwithstanding
12
+ the Third-Party Components or the Product. You hereby undertake to comply with
13
+ all licenses related to the applicable Third-Party Components. Notwithstanding
14
14
  anything to the contrary, to the extent that any of the terms and conditions of
15
15
  the Product Agreement conflict, vary, or are in addition to the terms and
16
16
  conditions of the aforementioned third-party licenses for these technologies,
17
17
  such terms and conditions are offered by Progress alone and not by any other
18
18
  party.
19
19
 
20
-
21
- 1. Special Notices Regarding Open Source Third-Party Components incorporated in
20
+ -------------------------------------------------------------------------
21
+ SUMMARY OF COMPONENTS:
22
+
23
+ VendorName | ComponentName | VersionName | LicenseType
24
+
25
+ DefinitelyTyped.org | @types/prosemirror-commands | 1.0.4 - Open Source | MIT-style License
26
+ DefinitelyTyped.org | @types/prosemirror-dropcursor | 1.0.1 - Open Source | MIT-style License
27
+ DefinitelyTyped.org | @types/prosemirror-gapcursor | 1.0.2 - Open Source | MIT-style License
28
+ DefinitelyTyped.org | @types/prosemirror-history | 1.0.2 - Open Source | MIT-style License
29
+ DefinitelyTyped.org | @types/prosemirror-inputrules | 1.0.2 - Open Source | MIT-style License
30
+ DefinitelyTyped.org | @types/prosemirror-keymap | 1.0.2 - Open Source | MIT-style License
31
+ DefinitelyTyped.org | @types/prosemirror-model | 1.11.2 - Open Source | MIT-style License
32
+ DefinitelyTyped.org | @types/prosemirror-schema-list | 1.0.2 - Open Source | MIT-style License
33
+ DefinitelyTyped.org | @types/prosemirror-state | 1.2.4 - Open Source | MIT-style License
34
+ DefinitelyTyped.org | @types/prosemirror-tables | 0.9.1 - Open Source | MIT-style License
35
+ DefinitelyTyped.org | @types/prosemirror-transform | 1.2.9 - Open Source | MIT-style License
36
+ DefinitelyTyped.org | @types/prosemirror-view | 1.11.4 - Open Source | MIT-style License
37
+ Isaac Z. Schlueter | glob | 7.1.3 - Open Source | ISC-style License
38
+ Jorik Tangelder (Eight Media) | HammerJS | 2.0.8 - Open Source | MIT-style License
39
+ Matt Mueller | cheerio | 0.22 - Open Source | MIT-style License
40
+ Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
41
+ Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
42
+ Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
43
+ ProseMirror | prosemiror-inputrules | 1.0.1 - Open Source | MIT-style License
44
+ ProseMirror | prosemirror-commands | 1.0.7 - Open Source | MIT-style License
45
+ ProseMirror | prosemirror-cursor | 1.0.1 - Open Source | MIT-style License
46
+ ProseMirror | prosemirror-gapcursor | 1.0.2 - Open Source | MIT-style License
47
+ ProseMirror | prosemirror-history | 1.0.2 - Open Source | MIT-style License
48
+ ProseMirror | prosemirror-keymap | 1.0.1 - Open Source | MIT-style License
49
+ ProseMirror | prosemirror-model | 1.6.1 - Open Source | MIT-style License
50
+ ProseMirror | prosemirror-schema-list | 1.0.1 - Open Source | MIT-style License
51
+ ProseMirror | prosemirror-state | 1.2.2 - Open Source | MIT-style License
52
+ ProseMirror | prosemirror-tables | 0.7.10 - Open Source | MIT-style License
53
+ ProseMirror | prosemirror-transform | 1.1.3 - Open Source | MIT-style License
54
+ ProseMirror | prosemirror-view | 1.5.2 - Open Source | MIT-style License
55
+ Quildreen Motta | Data.Task | 3.1.2 - Open Source | MIT-style License
56
+ Scott Sauyet and Michael Hurley | ramda | 0.23.0 - Open Source | MIT-style License
57
+ TsLib | TsLib | 1.9.3 - Open Source | Apache Software License Version 2.0
58
+ Tsvetomir Tsonev | xlf-translate | 2.0.4 - Open Source | BSD-style License
59
+ Unicode Inc. | CLDR | 37 - Open Source | Unicode, Inc. License Agreement - Data Files and Software
60
+ Vitaly Puzrin | js-yaml | 3.14.0 - Open Source | MIT-style License
61
+ -------------------------------------------------------------------------
62
+
63
+ 1. Special Notices Regarding Open-Source Third-Party Components incorporated into
22
64
  the Product:
23
65
 
24
- (1) The Apache Software License, Version 2.0:
66
+ (1) The Apache Software License, Version 2.0:
25
67
 
26
- Progress Kendo UI for Angular 2021 incorporates tslib v1.9.3. Such technology
68
+ Progress Kendo UI for Angular 2022 incorporates TsLib v1.9.3. Such technology
27
69
  is subject to the following terms and conditions: Apache Software License Version 2.0.
28
70
 
29
71
  Apache License
@@ -246,44 +288,44 @@ is subject to the following terms and conditions: Apache Software License Versio
246
288
  and limitations under the License.
247
289
  -------------------------------------------------------------------------
248
290
 
249
- (2) BSD-Style Licenses:
291
+ (2) BSD-Style Licenses:
250
292
 
251
- (a) Progress Kendo UI for Angular 2021 incorporates xlf-translate v2.0.4. Such
293
+ (a) Progress Kendo UI for Angular 2022 incorporates xlf-translate v2.0.4. Such
252
294
  technology is subject to the following terms and conditions:
253
295
 
254
- BSD 3-Clause License
296
+ BSD 3-Clause License
255
297
 
256
- Copyright (c) 2017, Tsvetomir Tsonev
257
- All rights reserved.
298
+ Copyright (c) 2017, Tsvetomir Tsonev
299
+ All rights reserved.
258
300
 
259
- Redistribution and use in source and binary forms, with or without
260
- modification, are permitted provided that the following conditions are met:
301
+ Redistribution and use in source and binary forms, with or without
302
+ modification, are permitted provided that the following conditions are met:
261
303
 
262
- * Redistributions of source code must retain the above copyright notice, this
263
- list of conditions and the following disclaimer.
304
+ * Redistributions of source code must retain the above copyright notice, this
305
+ list of conditions and the following disclaimer.
264
306
 
265
- * Redistributions in binary form must reproduce the above copyright notice,
266
- this list of conditions and the following disclaimer in the documentation
267
- and/or other materials provided with the distribution.
307
+ * Redistributions in binary form must reproduce the above copyright notice,
308
+ this list of conditions and the following disclaimer in the documentation
309
+ and/or other materials provided with the distribution.
268
310
 
269
- * Neither the name of the copyright holder nor the names of its
270
- contributors may be used to endorse or promote products derived from
271
- this software without specific prior written permission.
311
+ * Neither the name of the copyright holder nor the names of its
312
+ contributors may be used to endorse or promote products derived from
313
+ this software without specific prior written permission.
272
314
 
273
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
274
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
275
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
276
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
277
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
278
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
279
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
280
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
281
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
282
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
315
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
316
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
317
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
318
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
319
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
320
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
321
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
322
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
323
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
324
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
283
325
 
284
- (3) The ISC License:
326
+ (3) The ISC License:
285
327
 
286
- (a) Progress Kendo UI for Angular 2021 incorporates glob v7.1.3. Such technology
328
+ (a) Progress Kendo UI for Angular 2022 incorporates glob v7.1.3. Such technology
287
329
  is subject to the following terms and conditions:
288
330
 
289
331
  The ISC License
@@ -308,9 +350,9 @@ is subject to the following terms and conditions:
308
350
  under a Creative Commons Attribution-ShareAlike 4.0 International License
309
351
  https://creativecommons.org/licenses/by-sa/4.0/
310
352
 
311
- (4) MIT-Style Licenses:
353
+ (4) MIT-Style Licenses:
312
354
 
313
- (a) Progress Kendo UI for Angular 2021 incorporates HammerJS v2.0.8. Such
355
+ (a) Progress Kendo UI for Angular 2022 incorporates HammerJS v2.0.8. Such
314
356
  technology is subject to the following terms and conditions:
315
357
 
316
358
  The MIT License (MIT)
@@ -335,7 +377,7 @@ technology is subject to the following terms and conditions:
335
377
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
336
378
  SOFTWARE.
337
379
 
338
- (b) Progress Kendo UI for Angular 2021 incorporates prosemirror-commands v1*,
380
+ (b) Progress Kendo UI for Angular 2022 incorporates prosemirror-commands v1*,
339
381
  prosemirror-cursor v1*, prosemirror-gapcursor v1*, prosemirror-history v1*,
340
382
  prosemirror-inputrules v1*, prosemirror-keymap v1*, prosemirror-model v1*,
341
383
  prosemirror-schema-list v1*, prosemirror-state v1*, prosemirror-tables v0.7*,
@@ -362,39 +404,36 @@ subject to the following terms and conditions:
362
404
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
363
405
  THE SOFTWARE.
364
406
 
365
- (c) Progress Kendo UI for Angular 2021 incorporates cheerio v0.2.2. Such
366
- technology is subject to the following terms and conditions:
407
+ (c) Progress Kendo UI for Angular 2022 incorporates cheerio v0.2.2. Such technology is subject to the following terms and conditions:
367
408
 
368
- MIT License
409
+ MIT License
369
410
 
370
- Copyright (c) 2016 Matt Mueller
411
+ Copyright (c) 2016 Matt Mueller
371
412
 
372
- Permission is hereby granted, free of charge, to any person obtaining a copy
373
- of this software and associated documentation files (the "Software"), to deal
374
- in the Software without restriction, including without limitation the rights
375
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
376
- copies of the Software, and to permit persons to whom the Software is
377
- furnished to do so, subject to the following conditions:
413
+ Permission is hereby granted, free of charge, to any person obtaining a copy
414
+ of this software and associated documentation files (the "Software"), to deal
415
+ in the Software without restriction, including without limitation the rights
416
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
417
+ copies of the Software, and to permit persons to whom the Software is
418
+ furnished to do so, subject to the following conditions:
378
419
 
379
- The above copyright notice and this permission notice shall be included in all
380
- copies or substantial portions of the Software.
420
+ The above copyright notice and this permission notice shall be included in all
421
+ copies or substantial portions of the Software.
381
422
 
382
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
383
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
384
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
385
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
386
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
387
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
388
- SOFTWARE.
423
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
424
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
426
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
427
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
428
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
429
+ SOFTWARE.
389
430
 
390
- (d) Progress Kendo UI for Angular 2021 incorporates @types/prosemirror-commands v1*,
391
- @types/prosemirror-dropcursor v1*, @types/prosemirror-gapcursor v1*,
392
- @types/prosemirror-history v1*, @types/prosemirror-inputrules v1*,
393
- @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
394
- @types/prosemirror-schema-list v1*, @types/prosemirror-state v1*,
395
- @types/prosemirror-tables v0.9*, @types/prosemirror-transform v1*, and
396
- @types/prosemirror-view v1*. Such technologies are subject to the following terms
397
- and conditions:
431
+ (d) Progress Kendo UI for Angular 2022 incorporates @types/prosemirror-commands v1*,
432
+ @types/prosemirror-dropcursor v1*, @types/prosemirror-gapcursor v1*, @types/prosemirror-history v1*,
433
+ @types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
434
+ @types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*,
435
+ @types/prosemirror-transform v1*, and @types/prosemirror-view v1*. Such technologies are
436
+ subject to the following terms and conditions:
398
437
 
399
438
  This project is licensed under the MIT license.
400
439
  Copyrights are respective of each contributor listed at the beginning of each
@@ -418,7 +457,7 @@ and conditions:
418
457
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
419
458
  SOFTWARE.
420
459
 
421
- (e) Progress Kendo UI for Angular 2021 incorporates pako-esm v1.0.0. Such
460
+ (e) Progress Kendo UI for Angular 2022 incorporates pako-esm v1.0.0. Such
422
461
  technology is subject to the following terms and conditions:
423
462
 
424
463
  Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries
@@ -444,7 +483,7 @@ technology is subject to the following terms and conditions:
444
483
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
445
484
  THE SOFTWARE.
446
485
 
447
- (f) Progress Kendo UI for Angular 2021 incorporates jszip-esm v1.0.0. Such
486
+ (f) Progress Kendo UI for Angular 2022 incorporates jszip-esm v1.0.0. Such
448
487
  technology is subject to the following terms and conditions:
449
488
 
450
489
  Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries
@@ -471,7 +510,7 @@ technology is subject to the following terms and conditions:
471
510
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
472
511
  THE SOFTWARE.
473
512
 
474
- (g) Progress Kendo UI for Angular 2021 incorporates data.task v3.1.2. Such
513
+ (g) Progress Kendo UI for Angular 2022 incorporates data.task v3.1.2. Such
475
514
  technology is subject to the following terms and conditions:
476
515
 
477
516
  The MIT License
@@ -496,7 +535,7 @@ technology is subject to the following terms and conditions:
496
535
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
497
536
  THE SOFTWARE.
498
537
 
499
- (h) Progress Kendo UI for Angular 2021 incorporates ramda v0.23. Such technology
538
+ (h) Progress Kendo UI for Angular 2022 incorporates ramda v0.23. Such technology
500
539
  is subject to the following terms and conditions:
501
540
 
502
541
  The MIT License (MIT)
@@ -521,7 +560,7 @@ is subject to the following terms and conditions:
521
560
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
522
561
  THE SOFTWARE.
523
562
 
524
- (i) Progress Kendo UI for Angular 2021 incorporates js-yaml v3.14.0. Such
563
+ (i) Progress Kendo UI for Angular 2022 incorporates js-yaml v3.14.0. Such
525
564
  technology is subject to the following terms and conditions:
526
565
 
527
566
  (The MIT License)
@@ -546,10 +585,9 @@ technology is subject to the following terms and conditions:
546
585
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
547
586
  THE SOFTWARE.
548
587
 
588
+ (5) UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE:
549
589
 
550
- (5) UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE:
551
-
552
- Progress Kendo UI for Angular 2021 incorporates Unicode CLDR Database v37.
590
+ Progress Kendo UI for Angular 2022 incorporates Unicode CLDR Database v33.
553
591
  Such technology is subject to the following terms and conditions:
554
592
 
555
593
  UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
@@ -600,15 +638,17 @@ Such technology is subject to the following terms and conditions:
600
638
  written authorization of the copyright holder.
601
639
 
602
640
  2. Special Notices Regarding Commercially Licensed Third-Party Components
603
- incorporated in the Product:
641
+ incorporated into the Product: NONE
642
+
643
+ 3. Special Notices Regarding Progress Products incorporated into the Product:
604
644
 
605
- (a) Progress Kendo UI for Angular 2021 incorporates Kendo UI Licensing CLI v1.1
606
- from Progress Software Corporation. For third-party component information, see
607
- the product’s NOTICE.txt file.
645
+ (a) Progress Kendo UI for Angular 2022 incorporates Kendo UI Licensing CLI v1.1
646
+ from Progress Software Corporation. See NOTICE.txt text file within product for
647
+ third-party license information.
608
648
 
609
649
  NOTICE FROM PROGRESS SOFTWARE CORPORATION: Additional notices may be included in
610
650
  the release notes or other documentation that accompanies updates received in
611
651
  connection with support of the Product.
612
652
 
613
653
 
614
- Updated 3/2/2021
654
+ Updated 1/6/2022
package/README.md CHANGED
@@ -28,6 +28,6 @@ Kendo UI for Angular is a commercial UI library designed and built for developin
28
28
  * [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui)
29
29
  * [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2)
30
30
 
31
- *Copyright © 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
31
+ *Copyright © 2022 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
32
32
 
33
33
  *Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
@@ -2,4 +2,4 @@
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
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-popup-common"),require("@progress/kendo-angular-common"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define("KendoAngularPopup",["exports","@angular/core","@progress/kendo-popup-common","@progress/kendo-angular-common","rxjs","rxjs/operators","@angular/animations","@progress/kendo-licensing","@angular/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularPopup={},e.ng.core,e.KendoPopupCommon,e.KendoAngularCommon,e.rxjs,e.rxjs.operators,e.ng.animations,e.KendoLicensing,e.ng.common)}(this,function(e,c,r,p,n,o,i,l,t){"use strict";function s(n){if(n&&n.__esModule)return n;var o=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),o.default=n,Object.freeze(o)}var a=s(c),u=s(p),m=s(i),h=s(t);Object.create;function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(o=r.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function d(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||((o=o||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}Object.create;function y(e,t){return e||{height:0,left:t.left,top:t.top,width:0}}function g(){return"undefined"!=typeof window}function v(e){var t=[];if(!p.isDocumentAvailable()||!g())return t;for(var n,o=e.parentElement;o;)(b.test(C(n=o)||w(n))||o.hasAttribute("data-scrollable"))&&t.push(o),o=o.parentElement;return t.push(window),t}var b=/auto|scroll/,C=function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY},w=function(e){e=window.getComputedStyle(e);return""+e.overflow+e.overflowX+e.overflowY},I=1e3/60;function E(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e}var S,A,k,O=(k=!(S=function(){if(!p.isDocumentAvailable()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return k||(A=S.apply(void 0,d([],f(e))),k=!0),A}),P=new c.InjectionToken("Popup Document Scale"),V=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],_=(j.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},j.prototype.addScroll=function(e,t){return r.addScroll(e,t)},j.prototype.align=function(e){return r.align(e)},j.prototype.boundingOffset=function(e){return r.boundingOffset(this.nativeElement(e))},j.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return V.map(function(e){return{key:e,value:n[e]}})},j.prototype.getWindow=function(){return g()?window:null},j.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},j.prototype.offset=function(e){return e?r.offset(this.nativeElement(e)):null},j.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),o=n.style,i=o.left,e=o.top,o=o.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";t=r.offset(n);return n.style.left=i,n.style.top=e,n.offsetHeight,n.style.transition=o,t},j.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},j.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?r.positionWithScroll(this.nativeElement(e),this.nativeElement(t),n):null},j.prototype.removeScroll=function(e,t){return r.removeScroll(e,t)},j.prototype.restrictToView=function(e){return r.restrictToView(e)},j.prototype.scrollPosition=function(e){return r.scrollPosition(this.nativeElement(e))},j.prototype.scrollableParents=function(e){return v(this.nativeElement(e))},j.prototype.stackingElementOffset=function(e){e=this.getRelativeContextElement(e);return e?r.offset(e):null},j.prototype.stackingElementScroll=function(e){e=this.getRelativeContextElement(e);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},j.prototype.getRelativeContextElement=function(e){if(!e||!O())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},j.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},j.prototype.windowViewPort=function(e){return r.getWindowViewPort(this.nativeElement(e))},j.prototype.zIndex=function(e,t){return function(e,t){if(!e||!p.isDocumentAvailable()||!g())return null;t=r.siblingContainer(e,t);if(!t)return null;t=[e].concat(r.parents(e,t)).reduce(function(e,t){t=t.style.zIndex||window.getComputedStyle(t).zIndex,t=parseInt(t,10);return e<t?t:e},0);return t?t+1:null}(this.nativeElement(e),this.nativeElement(t))},j.prototype.zoomLevel=function(){return p.isDocumentAvailable()&&g()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},j.prototype.isZoomed=function(){return 1<this.zoomLevel()},j);function j(){}_.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:_,deps:[],target:a.ɵɵFactoryTarget.Injectable}),_.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:_}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:_,decorators:[{type:c.Injectable}]});var R=(z.prototype.alignElement=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,i=e.elementAlign,r=e.margin,s=e.offset,a=e.positionMode,e=this.scale||1,s="fixed"===a||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,s,e):this.relativeRect(t,n,s,e),e=E(this._dom.offset(n),e);return this._dom.align({anchorAlign:o,anchorRect:s,elementAlign:i,elementRect:e,margin:r})},z.prototype.absoluteRect=function(e,t,n,o){var i=this.elementScrollPosition(e,t),r=y(this._dom.offset(e),n),e=2*o,n=this._dom.stackingElementScroll(t);1!==o&&n&&(n.x/=e,n.y/=e);t=this._dom.stackingElementOffset(t);return 1!==o&&t&&(t.left/=e,t.top/=e),this._dom.removeScroll(this._dom.addScroll((o=E(r,o),(t=t)?{height:o.height,left:o.left-t.left,top:o.top-t.top,width:o.width}:o),n),i)},z.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},z.prototype.relativeRect=function(e,t,n,o){n=y(this._dom.position(e,t,o),n);return E(n,o)},z);function z(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}R.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:R,deps:[{token:_},{token:P,optional:!0}],target:a.ɵɵFactoryTarget.Injectable}),R.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:R}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:R,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:_},{type:void 0,decorators:[{type:c.Inject,args:[P]},{type:c.Optional}]}]}});var D=(x.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,i=e.anchorAlign,r=e.elementAlign,s=e.collisions,a=e.margin,p=this._dom,c=this.scale||1,l=p.offsetAtPoint(o,n),l=E(l,c),t=E(p.offset(t),c),t=y(t,n),o=e.viewPort||p.windowViewPort(o);o.width=o.width/c,o.height=o.height/c;o=p.restrictToView({anchorAlign:i,anchorRect:t,collisions:s,elementAlign:r,elementRect:l,margin:a,viewPort:o}),n=p.addOffset(n,o.offset);return{flip:o.flip,flipped:o.flipped,offset:n}},x);function x(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:D,deps:[{token:_},{token:P,optional:!0}],target:a.ɵɵFactoryTarget.Injectable}),D.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:D}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:D,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:_},{type:void 0,decorators:[{type:c.Inject,args:[P]},{type:c.Optional}]}]}});var F=(T.prototype.subscribe=function(e){var t=this;p.isDocumentAvailable()&&this._zone.runOutsideAngular(function(){t.subscription=n.fromEvent(t._dom.getWindow(),"resize").pipe(o.auditTime(I)).subscribe(function(){return e()})})},T.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},T.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},T);function T(e,t){this._dom=e,this._zone=t}F.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:F,deps:[{token:_},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Injectable}),F.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:F}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:F,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:_},{type:a.NgZone}]}});var M=(N.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},N.prototype.subscribe=function(i){var r,s,a=this;i&&p.isDocumentAvailable()&&this.element&&(r=this._dom.nativeElement(this.element),s=this._dom.scrollableParents(this.element),this._zone.runOutsideAngular(function(){var e=s.map(function(e){return n.fromEvent(e,"scroll").pipe(o.auditTime(I))});a.subscription=n.merge.apply(void 0,d([],f(e))).subscribe(function(e){var t=e.target,n=0<s.filter(function(e){return e===t}).length,o=t===document,e=t===window;(n||o||e)&&i(a.isVisible(r,t))})}))},N.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},N.prototype.isVisible=function(e,t){e=this._dom.boundingOffset(e),t=this._dom.boundingOffset(t);return!(1<t.top-e.bottom)&&(!(1<e.top-t.bottom)&&(!(1<e.left-t.right)&&!(1<t.left-e.right)))},N);function N(e,t){this._dom=e,this._zone=t}M.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:M,deps:[{token:_},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Injectable}),M.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:M}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:M,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:_},{type:a.NgZone}]}});var L="left",U="right",Z="down",q={expand:function(e){var t="up"===e||e===Z?"scaleY":"scaleX",e=e===Z?"top":e===L?U:e===U?L:"bottom";return{start:{transform:t+"(0)",transformOrigin:e},end:{transform:t+"(1)"}}},slide:function(e){var t=e===L||e===U?"translateX":"translateY";return{start:{transform:t+"("+(e===U||e===Z?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},K=(W.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var o=t.type||"slide",i=q[o];if(i){n=i(this.getDirection(n,t));this.playStates(e,n,t)}else if(c.isDevMode())throw new Error('Unsupported animation type: "'+o+'". The supported types are slide, expand, fade and zoom.')}},W.prototype.ngOnDestroy=function(){this.stopPlayer()},W.prototype.playStates=function(e,t,n){var o=this;this.stopPlayer();n=n.duration||100,t=this.animationBuilder.build([i.style(t.start),i.animate(n+"ms ease-in",i.style(t.end))]),e=this.player=t.create(e);e.onDone(function(){o.end.emit(),o.stopPlayer()}),this.start.emit(),e.play()},W.prototype.getDirection=function(e,t){t=t.direction||Z;return e.horizontal&&(t===L?t=U:t===U&&(t=L)),e.vertical&&(t===Z?t="up":"up"===t&&(t=Z)),t},W.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},W);function W(e){this.animationBuilder=e,this.start=new c.EventEmitter,this.end=new c.EventEmitter}K.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:K,deps:[{token:m.AnimationBuilder}],target:a.ɵɵFactoryTarget.Injectable}),K.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:K}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:K,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:m.AnimationBuilder}]}});var B={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1634564045,version:"",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"},X={left:-1e4,top:0},Y=(H.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=X,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},H.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},H.prototype.ngAfterViewInit=function(){var e=this;this.reposition(),this.animate||this.resolvedPromise.then(function(){e.onAnimationEnd()})},H.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular(function(){e.unsubscribeReposition(),e.repositionSubscription=n.from(e.resolvedPromise).subscribe(e.reposition)})},H.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},H.prototype.onResize=function(){this.reposition()},H.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},H.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(H.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!1,configurable:!0}),H.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},H.prototype.reposition=function(){var e,t,n,o,i,r,s=this;p.isDocumentAvailable()&&(r=this.position(),e=r.flip,t=r.offset,(!this.currentOffset||(n=this.currentOffset,o=t,i=n.left,r=n.top,n=t.left,o=t.top,1<=Math.abs(i-n)||1<=Math.abs(r-o)))&&(this.currentOffset=t,p.hasObservers(this.positionChange)&&this._zone.run(function(){return s.positionChange.emit({offset:t,flip:e})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,e),this.resizeSensor.acceptSize())},H.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},H.prototype.onScroll=function(e){var t=this,n=p.hasObservers(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run(function(){t.anchorViewportLeave.emit()})},H.prototype.copyFontStyles=function(){var t=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach(function(e){return t.setContainerStyle(e.key,e.value)})},H.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},H.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},H.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},H);function H(e,t,n,o,i,r,s,a,p){this.container=e,this._alignService=t,this.domService=n,this._positionService=o,this._resizeService=i,this._scrollableService=r,this.animationService=s,this._renderer=a,this._zone=p,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=X,this.anchorViewportLeave=new c.EventEmitter,this.close=new c.EventEmitter,this.open=new c.EventEmitter,this.positionChange=new c.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,l.validatePackage(B),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}Y.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:Y,deps:[{token:a.ElementRef},{token:R},{token:_},{token:D},{token:F},{token:M},{token:K},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),Y.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.10",type:Y,selector:"kendo-popup",inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",popupClass:"popupClass",positionMode:"positionMode",offset:"offset",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},providers:[R,K,_,D,F,M],viewQueries:[{propertyName:"contentContainer",first:!0,predicate:["container"],descendants:!0,static:!0},{propertyName:"resizeSensor",first:!0,predicate:p.ResizeSensorComponent,descendants:!0,static:!0}],exportAs:["kendo-popup"],usesOnChanges:!0,ngImport:a,template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n ',isInline:!0,components:[{type:u.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:h.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:h.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:h.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:Y,decorators:[{type:c.Component,args:[{exportAs:"kendo-popup",providers:[R,K,_,D,F,M],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}]}],ctorParameters:function(){return[{type:a.ElementRef},{type:R},{type:_},{type:D},{type:F},{type:M},{type:K},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{animate:[{type:c.Input}],anchor:[{type:c.Input}],anchorAlign:[{type:c.Input}],collision:[{type:c.Input}],popupAlign:[{type:c.Input}],copyAnchorStyles:[{type:c.Input}],popupClass:[{type:c.Input}],positionMode:[{type:c.Input}],offset:[{type:c.Input}],margin:[{type:c.Input}],anchorViewportLeave:[{type:c.Output}],close:[{type:c.Output}],open:[{type:c.Output}],positionChange:[{type:c.Output}],contentContainer:[{type:c.ViewChild,args:["container",{static:!0}]}],resizeSensor:[{type:c.ViewChild,args:[p.ResizeSensorComponent,{static:!0}]}]}});var G=new c.InjectionToken("Popup Container"),Q=(Object.defineProperty(J.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!1,configurable:!0}),J.prototype.open=function(e){var t=this.contentFrom((e=void 0===e?{}:e).content),n=t.component,t=t.nodes,o=this.appendPopup(t,e.appendTo),t=o.instance;this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var i=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=i)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:t.anchorViewportLeave,popupClose:t.close,popupElement:i,popupOpen:t.open,popupPositionChange:t.positionChange}},J.prototype.appendPopup=function(e,t){e=this.createComponent(Y,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(e)),e},J.prototype.getComponentRootNode=function(e){return e.location.nativeElement},J.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},J.prototype.createComponent=function(e,t,n){e=this.getComponentFactory(e);if(n)return n.createComponent(e,void 0,this.injector,t);t=e.create(this.injector,t);return this.applicationRef.attachView(t.hostView),t},J.prototype.projectComponentInputs=function(t,n){return Object.getOwnPropertyNames(n).filter(function(e){return"content"!==e||n.content instanceof c.TemplateRef}).map(function(e){t.instance[e]=n[e]}),t},J.prototype.contentFrom=function(e){if(!e||e instanceof c.TemplateRef)return{component:null,nodes:[[]]};e=this.createComponent(e);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},J);function J(e,t,n,o){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=o}Q.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:Q,deps:[{token:a.ApplicationRef},{token:a.ComponentFactoryResolver},{token:a.Injector},{token:G,optional:!0}],target:a.ɵɵFactoryTarget.Injectable}),Q.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:Q}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:Q,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:a.ApplicationRef},{type:a.ComponentFactoryResolver},{type:a.Injector},{type:a.ElementRef,decorators:[{type:c.Inject,args:[G]},{type:c.Optional}]}]}});u=[Y],h=function(){};h.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:h,deps:[],target:a.ɵɵFactoryTarget.NgModule}),h.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:h,declarations:[Y],imports:[t.CommonModule,p.ResizeSensorModule],exports:[Y]}),h.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:h,providers:[Q],imports:[[t.CommonModule,p.ResizeSensorModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.10",ngImport:a,type:h,decorators:[{type:c.NgModule,args:[{declarations:[u],entryComponents:[u],exports:[u],imports:[t.CommonModule,p.ResizeSensorModule],providers:[Q]}]}]}),e.POPUP_CONTAINER=G,e.PopupComponent=Y,e.PopupModule=h,e.PopupService=Q,e.SCALE=P,Object.defineProperty(e,"__esModule",{value:!0})});
5
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-popup-common"),require("@progress/kendo-angular-common"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define("KendoAngularPopup",["exports","@angular/core","@progress/kendo-popup-common","@progress/kendo-angular-common","rxjs","rxjs/operators","@angular/animations","@progress/kendo-licensing","@angular/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularPopup={},e.ng.core,e.KendoPopupCommon,e.KendoAngularCommon,e.rxjs,e.rxjs.operators,e.ng.animations,e.KendoLicensing,e.ng.common)}(this,function(e,c,r,a,n,o,i,F,t){"use strict";function s(n){if(n&&n.__esModule)return n;var o=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),o.default=n,Object.freeze(o)}var p=s(c),l=s(a),T=s(i),u=s(t);Object.create;function M(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(o=r.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function N(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||((o=o||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}Object.create;function m(e,t){return e||{height:0,left:t.left,top:t.top,width:0}}function h(){return"undefined"!=typeof window}function L(e){var t=[];if(!a.isDocumentAvailable()||!h())return t;for(var n,o=e.parentElement;o;)(U.test(Z(n=o)||q(n))||o.hasAttribute("data-scrollable"))&&t.push(o),o=o.parentElement;return t.push(window),t}var U=/auto|scroll/,Z=function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY},q=function(e){e=window.getComputedStyle(e);return""+e.overflow+e.overflowX+e.overflowY},K=1e3/60;function f(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e}d=!(W=function(){if(!a.isDocumentAvailable()&&null!==document.body)return!1;var e=document.createElement("div"),t=(e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e),10!==e.children[0].getBoundingClientRect().top);return document.body.removeChild(e),t});var W,B,d,X=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d||(B=W.apply(void 0,N([],M(e))),d=!0),B},y=new c.InjectionToken("Popup Document Scale"),Y=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],g=(v.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},v.prototype.addScroll=function(e,t){return r.addScroll(e,t)},v.prototype.align=function(e){return r.align(e)},v.prototype.boundingOffset=function(e){return r.boundingOffset(e)},v.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(e);return Y.map(function(e){return{key:e,value:n[e]}})},v.prototype.getWindow=function(){return h()?window:null},v.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},v.prototype.offset=function(e){return e?r.offset(e):null},v.prototype.offsetAtPoint=function(e,t){if(!e)return null;var e=this.nativeElement(e),n=e.style,o=n.left,i=n.top,n=n.transition,t=(e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px",r.offset(e));return e.style.left=o,e.style.top=i,e.offsetHeight,e.style.transition=n,t},v.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},v.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?r.positionWithScroll(e,this.nativeElement(t),n):null},v.prototype.removeScroll=function(e,t){return r.removeScroll(e,t)},v.prototype.restrictToView=function(e){return r.restrictToView(e)},v.prototype.scrollPosition=function(e){return r.scrollPosition(this.nativeElement(e))},v.prototype.scrollableParents=L,v.prototype.stackingElementOffset=function(e){e=this.getRelativeContextElement(e);return e?r.offset(e):null},v.prototype.stackingElementScroll=function(e){e=this.getRelativeContextElement(e);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},v.prototype.getRelativeContextElement=function(e){if(!e||!X())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},v.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},v.prototype.windowViewPort=function(e){return r.getWindowViewPort(this.nativeElement(e))},v.prototype.zIndex=function(e,t){t=this.nativeElement(t);return e&&a.isDocumentAvailable()&&h()&&(t=r.siblingContainer(e,t))&&(e=[e].concat(r.parents(e,t)).reduce(function(e,t){t=t.style.zIndex||window.getComputedStyle(t).zIndex,t=parseInt(t,10);return e<t?t:e},0))?e+1:null},v.prototype.zoomLevel=function(){return a.isDocumentAvailable()&&h()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},v.prototype.isZoomed=function(){return 1<this.zoomLevel()},v);function v(){}g.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:g,deps:[],target:p.ɵɵFactoryTarget.Injectable}),g.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:g}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:g,decorators:[{type:c.Injectable}]});C.prototype.alignElement=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,i=e.elementAlign,r=e.margin,s=e.offset,e=e.positionMode,a=this.scale||1,e="fixed"===e||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,s,a):this.relativeRect(t,n,s,a),t=f(this._dom.offset(n.nativeElement),a);return this._dom.align({anchorAlign:o,anchorRect:e,elementAlign:i,elementRect:t,margin:r})},C.prototype.absoluteRect=function(e,t,n,o){var i=this.elementScrollPosition(e,t),e=m(this._dom.offset(e),n),n=2*o,r=this._dom.stackingElementScroll(t),t=(1!==o&&r&&(r.x/=n,r.y/=n),this._dom.stackingElementOffset(t));return 1!==o&&t&&(t.left/=n,t.top/=n),this._dom.removeScroll(this._dom.addScroll((n=f(e,o),(e=t)?{height:n.height,left:n.left-e.left,top:n.top-e.top,width:n.width}:n),r),i)},C.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},C.prototype.relativeRect=function(e,t,n,o){e=m(this._dom.position(e,t,o),n);return f(e,o)};var b=C;function C(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}b.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:b,deps:[{token:g},{token:y,optional:!0}],target:p.ɵɵFactoryTarget.Injectable}),b.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:b}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:b,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:g},{type:void 0,decorators:[{type:c.Inject,args:[y]},{type:c.Optional}]}]}});H.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,i=e.anchorAlign,r=e.elementAlign,s=e.collisions,a=e.margin,p=this._dom,c=this.scale||1,l=p.offsetAtPoint(o,n),l=f(l,c),t=f(p.offset(t),c),t=m(t,n),e=e.viewPort||p.windowViewPort(o),o=(e.width=e.width/c,e.height=e.height/c,p.restrictToView({anchorAlign:i,anchorRect:t,collisions:s,elementAlign:r,elementRect:l,margin:a,viewPort:e})),c=p.addOffset(n,o.offset);return{flip:o.flip,flipped:o.flipped,offset:c}};var w=H;function H(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}w.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:w,deps:[{token:g},{token:y,optional:!0}],target:p.ɵɵFactoryTarget.Injectable}),w.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:w}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:w,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:g},{type:void 0,decorators:[{type:c.Inject,args:[y]},{type:c.Optional}]}]}});S.prototype.subscribe=function(e){var t=this;a.isDocumentAvailable()&&this._zone.runOutsideAngular(function(){t.subscription=n.fromEvent(t._dom.getWindow(),"resize").pipe(o.auditTime(K)).subscribe(function(){return e()})})},S.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},S.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed};var I=S;function S(e,t){this._dom=e,this._zone=t}I.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:I,deps:[{token:g},{token:p.NgZone}],target:p.ɵɵFactoryTarget.Injectable}),I.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:I}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:I,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:g},{type:p.NgZone}]}});A.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},A.prototype.subscribe=function(i){var r,s=this;i&&a.isDocumentAvailable()&&this.element&&(r=this._dom.scrollableParents(this.element),this._zone.runOutsideAngular(function(){var e=r.map(function(e){return n.fromEvent(e,"scroll").pipe(o.auditTime(K))});s.subscription=n.merge.apply(void 0,N([],M(e))).subscribe(function(e){var t=e.target,e=0<r.filter(function(e){return e===t}).length,n=t===document,o=t===window;(e||n||o)&&i(s.isVisible(s.element,t))})}))},A.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},A.prototype.isVisible=function(e,t){e=this._dom.boundingOffset(e),t=this._dom.boundingOffset(this._dom.nativeElement(t));return!(1<t.top-e.bottom)&&(!(1<e.top-t.bottom)&&(!(1<e.left-t.right)&&!(1<t.left-e.right)))};var E=A;function A(e,t){this._dom=e,this._zone=t}E.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:E,deps:[{token:g},{token:p.NgZone}],target:p.ɵɵFactoryTarget.Injectable}),E.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:E}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:E,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:g},{type:p.NgZone}]}});var k="left",O="right",P="down",G={expand:function(e){var t="up"===e||e===P?"scaleY":"scaleX",e=e===P?"top":e===k?O:e===O?k:"bottom";return{start:{transform:t+"(0)",transformOrigin:e},end:{transform:t+"(1)"}}},slide:function(e){var t=e===k||e===O?"translateX":"translateY";return{start:{transform:t+"("+(e===O||e===P?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},V=(_.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var o=t.type||"slide",i=G[o];if(i){i=i(this.getDirection(n,t));this.playStates(e,i,t)}else if(c.isDevMode())throw new Error('Unsupported animation type: "'+o+'". The supported types are slide, expand, fade and zoom.')}},_.prototype.ngOnDestroy=function(){this.stopPlayer()},_.prototype.playStates=function(e,t,n){var o=this,n=(this.stopPlayer(),n.duration||100),n=this.animationBuilder.build([i.style(t.start),i.animate(n+"ms ease-in",i.style(t.end))]),t=this.player=n.create(e);t.onDone(function(){o.end.emit(),o.stopPlayer()}),this.start.emit(),t.play()},_.prototype.getDirection=function(e,t){t=t.direction||P;return e.horizontal&&(t===k?t=O:t===O&&(t=k)),e.vertical&&(t===P?t="up":"up"===t&&(t=P)),t},_.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},_);function _(e){this.animationBuilder=e,this.start=new c.EventEmitter,this.end=new c.EventEmitter}V.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:V,deps:[{token:T.AnimationBuilder}],target:p.ɵɵFactoryTarget.Injectable}),V.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:V}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:V,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:T.AnimationBuilder}]}});var Q={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1648803868,version:"",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"},J={left:-1e4,top:0},j=(R.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.domService.nativeElement(this.anchor)||this.container.nativeElement).subscribe(this.onScroll.bind(this)),this.currentOffset=J,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},R.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},R.prototype.ngAfterViewInit=function(){var e=this;this.animate||this.resolvedPromise.then(function(){e.onAnimationEnd()})},R.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular(function(){e.unsubscribeReposition(),e.repositionSubscription=n.from(e.resolvedPromise).subscribe(e.reposition)})},R.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},R.prototype.onResize=function(){this.reposition()},R.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},R.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(R.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!1,configurable:!0}),R.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.domService.nativeElement(this.anchor),this.container)))},R.prototype.reposition=function(){var e,t,n,o,i,r,s=this;a.isDocumentAvailable()&&(n=this.position(),e=n.flip,t=n.offset,(!this.currentOffset||(n=this.currentOffset,o=t,i=n.left,n=n.top,r=t.left,o=t.top,1<=Math.abs(i-r)||1<=Math.abs(n-o)))&&(this.currentOffset=t,a.hasObservers(this.positionChange)&&this._zone.run(function(){return s.positionChange.emit({offset:t,flip:e})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,e),this.resizeSensor.acceptSize())},R.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},R.prototype.onScroll=function(e){var t=this,n=a.hasObservers(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run(function(){t.anchorViewportLeave.emit()})},R.prototype.copyFontStyles=function(){var t=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.domService.nativeElement(this.anchor)).forEach(function(e){return t.setContainerStyle(e.key,e.value)})},R.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},R.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},R.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},R);function R(e,t,n,o,i,r,s,a,p){this.container=e,this._alignService=t,this.domService=n,this._positionService=o,this._resizeService=i,this._scrollableService=r,this.animationService=s,this._renderer=a,this._zone=p,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=J,this.anchorViewportLeave=new c.EventEmitter,this.close=new c.EventEmitter,this.open=new c.EventEmitter,this.positionChange=new c.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,F.validatePackage(Q),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}j.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:j,deps:[{token:p.ElementRef},{token:b},{token:g},{token:w},{token:I},{token:E},{token:V},{token:p.Renderer2},{token:p.NgZone}],target:p.ɵɵFactoryTarget.Component}),j.ɵcmp=p.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:j,selector:"kendo-popup",inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",popupClass:"popupClass",positionMode:"positionMode",offset:"offset",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},providers:[b,V,g,w,I,E],viewQueries:[{propertyName:"contentContainer",first:!0,predicate:["container"],descendants:!0,static:!0},{propertyName:"resizeSensor",first:!0,predicate:a.ResizeSensorComponent,descendants:!0,static:!0}],exportAs:["kendo-popup"],usesOnChanges:!0,ngImport:p,template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n ',isInline:!0,components:[{type:l.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]}],directives:[{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:u.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:j,decorators:[{type:c.Component,args:[{exportAs:"kendo-popup",providers:[b,V,g,w,I,E],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}]}],ctorParameters:function(){return[{type:p.ElementRef},{type:b},{type:g},{type:w},{type:I},{type:E},{type:V},{type:p.Renderer2},{type:p.NgZone}]},propDecorators:{animate:[{type:c.Input}],anchor:[{type:c.Input}],anchorAlign:[{type:c.Input}],collision:[{type:c.Input}],popupAlign:[{type:c.Input}],copyAnchorStyles:[{type:c.Input}],popupClass:[{type:c.Input}],positionMode:[{type:c.Input}],offset:[{type:c.Input}],margin:[{type:c.Input}],anchorViewportLeave:[{type:c.Output}],close:[{type:c.Output}],open:[{type:c.Output}],positionChange:[{type:c.Output}],contentContainer:[{type:c.ViewChild,args:["container",{static:!0}]}],resizeSensor:[{type:c.ViewChild,args:[a.ResizeSensorComponent,{static:!0}]}]}});var z=new c.InjectionToken("Popup Container"),l=(Object.defineProperty(D.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!1,configurable:!0}),D.prototype.open=function(e){var t=this.contentFrom((e=void 0===e?{}:e).content),n=t.component,t=t.nodes,o=this.appendPopup(t,e.appendTo),t=o.instance,i=(this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges(),this.getComponentRootNode(o));return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=i)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:t.anchorViewportLeave,popupClose:t.close,popupElement:i,popupOpen:t.open,popupPositionChange:t.positionChange}},D.prototype.appendPopup=function(e,t){e=this.createComponent(j,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(e)),e},D.prototype.getComponentRootNode=function(e){return e.location.nativeElement},D.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},D.prototype.createComponent=function(e,t,n){e=this.getComponentFactory(e);return n?n.createComponent(e,void 0,this.injector,t):(n=e.create(this.injector,t),this.applicationRef.attachView(n.hostView),n)},D.prototype.projectComponentInputs=function(t,n){return Object.getOwnPropertyNames(n).filter(function(e){return"content"!==e||n.content instanceof c.TemplateRef}).map(function(e){t.instance[e]=n[e]}),t},D.prototype.contentFrom=function(e){if(!e||e instanceof c.TemplateRef)return{component:null,nodes:[[]]};e=this.createComponent(e);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},D);function D(e,t,n,o){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=o}l.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:l,deps:[{token:p.ApplicationRef},{token:p.ComponentFactoryResolver},{token:p.Injector},{token:z,optional:!0}],target:p.ɵɵFactoryTarget.Injectable}),l.ɵprov=p.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:l}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:l,decorators:[{type:c.Injectable}],ctorParameters:function(){return[{type:p.ApplicationRef},{type:p.ComponentFactoryResolver},{type:p.Injector},{type:p.ElementRef,decorators:[{type:c.Inject,args:[z]},{type:c.Optional}]}]}});var u=[j],x=function(){};x.ɵfac=p.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:x,deps:[],target:p.ɵɵFactoryTarget.NgModule}),x.ɵmod=p.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:x,declarations:[j],imports:[t.CommonModule,a.ResizeSensorModule],exports:[j]}),x.ɵinj=p.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:x,providers:[l],imports:[[t.CommonModule,a.ResizeSensorModule]]}),p.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:p,type:x,decorators:[{type:c.NgModule,args:[{declarations:[u],entryComponents:[u],exports:[u],imports:[t.CommonModule,a.ResizeSensorModule],providers:[l]}]}]}),e.POPUP_CONTAINER=z,e.PopupComponent=j,e.PopupModule=x,e.PopupService=l,e.SCALE=y,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-popup',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1634564045,
12
+ publishDate: 1648803868,
13
13
  version: '',
14
14
  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'
15
15
  };
@@ -212,11 +212,12 @@ export class PopupComponent {
212
212
  this._resizeService.subscribe(this.reposition);
213
213
  this.animationSubscriptions = this.animationService.start.subscribe(this.onAnimationStart.bind(this));
214
214
  this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this)));
215
- this._scrollableService.forElement(this.anchor || this.container).subscribe(this.onScroll.bind(this));
215
+ this._scrollableService.forElement(this.domService.nativeElement(this.anchor) || this.container.nativeElement).subscribe(this.onScroll.bind(this));
216
216
  this.currentOffset = DEFAULT_OFFSET;
217
217
  this.setZIndex();
218
218
  this.copyFontStyles();
219
219
  this.updateFixedClass();
220
+ this.reposition();
220
221
  }
221
222
  ngOnChanges(changes) {
222
223
  if (changes.copyAnchorStyles) {
@@ -227,7 +228,6 @@ export class PopupComponent {
227
228
  }
228
229
  }
229
230
  ngAfterViewInit() {
230
- this.reposition();
231
231
  if (!this.animate) {
232
232
  this.resolvedPromise.then(() => {
233
233
  this.onAnimationEnd();
@@ -282,7 +282,7 @@ export class PopupComponent {
282
282
  }
283
283
  setZIndex() {
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
  reposition() {
@@ -303,7 +303,7 @@ export class PopupComponent {
303
303
  }
304
304
  position() {
305
305
  const alignedOffset = this._alignService.alignElement({
306
- anchor: this.anchor,
306
+ anchor: this.domService.nativeElement(this.anchor),
307
307
  anchorAlign: this.anchorAlign,
308
308
  element: this.container,
309
309
  elementAlign: this.popupAlign,
@@ -312,7 +312,7 @@ export class PopupComponent {
312
312
  positionMode: this.positionMode
313
313
  });
314
314
  return this._positionService.positionElement({
315
- anchor: this.anchor,
315
+ anchor: this.domService.nativeElement(this.anchor),
316
316
  anchorAlign: this.anchorAlign,
317
317
  collisions: this.collision,
318
318
  currentLocation: alignedOffset,
@@ -336,7 +336,7 @@ export class PopupComponent {
336
336
  if (!this.anchor || !this.copyAnchorStyles) {
337
337
  return;
338
338
  }
339
- this.domService.getFontStyles(this.anchor)
339
+ this.domService.getFontStyles(this.domService.nativeElement(this.anchor))
340
340
  .forEach(s => this.setContainerStyle(s.key, s.value));
341
341
  }
342
342
  updateFixedClass() {
@@ -352,8 +352,8 @@ export class PopupComponent {
352
352
  }
353
353
  }
354
354
  }
355
- PopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupComponent, deps: [{ token: i0.ElementRef }, { token: i1.AlignService }, { token: i2.DOMService }, { token: i3.PositionService }, { token: i4.ResizeService }, { token: i5.ScrollableService }, { token: i6.AnimationService }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
356
- PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: PopupComponent, selector: "kendo-popup", inputs: { animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", collision: "collision", popupAlign: "popupAlign", copyAnchorStyles: "copyAnchorStyles", popupClass: "popupClass", positionMode: "positionMode", offset: "offset", margin: "margin" }, outputs: { anchorViewportLeave: "anchorViewportLeave", close: "close", open: "open", positionChange: "positionChange" }, providers: [AlignService, AnimationService, DOMService, PositionService, ResizeService, ScrollableService], viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "resizeSensor", first: true, predicate: ResizeSensorComponent, descendants: true, static: true }], exportAs: ["kendo-popup"], usesOnChanges: true, ngImport: i0, template: `
355
+ PopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupComponent, deps: [{ token: i0.ElementRef }, { token: i1.AlignService }, { token: i2.DOMService }, { token: i3.PositionService }, { token: i4.ResizeService }, { token: i5.ScrollableService }, { token: i6.AnimationService }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
356
+ PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: PopupComponent, selector: "kendo-popup", inputs: { animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", collision: "collision", popupAlign: "popupAlign", copyAnchorStyles: "copyAnchorStyles", popupClass: "popupClass", positionMode: "positionMode", offset: "offset", margin: "margin" }, outputs: { anchorViewportLeave: "anchorViewportLeave", close: "close", open: "open", positionChange: "positionChange" }, providers: [AlignService, AnimationService, DOMService, PositionService, ResizeService, ScrollableService], viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "resizeSensor", first: true, predicate: ResizeSensorComponent, descendants: true, static: true }], exportAs: ["kendo-popup"], usesOnChanges: true, ngImport: i0, template: `
357
357
  <div class="k-popup" [ngClass]="popupClass" #container>
358
358
  <ng-content></ng-content>
359
359
  <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>
@@ -361,7 +361,7 @@ PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
361
361
  </kendo-resize-sensor>
362
362
  </div>
363
363
  `, isInline: true, components: [{ type: i7.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
364
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupComponent, decorators: [{
364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupComponent, decorators: [{
365
365
  type: Component,
366
366
  args: [{
367
367
  exportAs: 'kendo-popup',
@@ -42,10 +42,10 @@ const POPUP_DIRECTIVES = [PopupComponent];
42
42
  */
43
43
  export class PopupModule {
44
44
  }
45
- PopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
46
- PopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupModule, declarations: [PopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [PopupComponent] });
47
- PopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupModule, providers: [PopupService], imports: [[CommonModule, ResizeSensorModule]] });
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupModule, decorators: [{
45
+ PopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
46
+ PopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupModule, declarations: [PopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [PopupComponent] });
47
+ PopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupModule, providers: [PopupService], imports: [[CommonModule, ResizeSensorModule]] });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupModule, decorators: [{
49
49
  type: NgModule,
50
50
  args: [{
51
51
  declarations: [POPUP_DIRECTIVES],
@@ -234,9 +234,9 @@ export class PopupService {
234
234
  };
235
235
  }
236
236
  }
237
- PopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
238
- PopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupService });
239
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupService, decorators: [{
237
+ PopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
238
+ PopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupService });
239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupService, decorators: [{
240
240
  type: Injectable
241
241
  }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
242
242
  type: Inject,
@@ -20,7 +20,7 @@ export 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,
@@ -54,9 +54,9 @@ export class AlignService {
54
54
  return scaleRect(rect, scale);
55
55
  }
56
56
  }
57
- AlignService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AlignService, deps: [{ token: i1.DOMService }, { token: SCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
58
- AlignService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AlignService });
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AlignService, decorators: [{
57
+ AlignService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AlignService, deps: [{ token: i1.DOMService }, { token: SCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
58
+ AlignService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AlignService });
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AlignService, decorators: [{
60
60
  type: Injectable
61
61
  }], ctorParameters: function () { return [{ type: i1.DOMService }, { type: undefined, decorators: [{
62
62
  type: Inject,
@@ -128,8 +128,8 @@ export class AnimationService {
128
128
  }
129
129
  }
130
130
  }
131
- AnimationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AnimationService, deps: [{ token: i1.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Injectable });
132
- AnimationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AnimationService });
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AnimationService, decorators: [{
131
+ AnimationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AnimationService, deps: [{ token: i1.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Injectable });
132
+ AnimationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AnimationService });
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AnimationService, decorators: [{
134
134
  type: Injectable
135
135
  }], ctorParameters: function () { return [{ type: i1.AnimationBuilder }]; } });
@@ -32,14 +32,14 @@ export 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 @@ export 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 @@ export 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 @@ export 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 @@ export 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()) {
@@ -148,8 +148,8 @@ export class DOMService {
148
148
  return this.zoomLevel() > 1;
149
149
  }
150
150
  }
151
- DOMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: DOMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
152
- DOMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: DOMService });
153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: DOMService, decorators: [{
151
+ DOMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DOMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
152
+ DOMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DOMService });
153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DOMService, decorators: [{
154
154
  type: Injectable
155
155
  }] });
@@ -43,9 +43,9 @@ export class PositionService {
43
43
  };
44
44
  }
45
45
  }
46
- PositionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PositionService, deps: [{ token: i1.DOMService }, { token: SCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
47
- PositionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PositionService });
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PositionService, decorators: [{
46
+ PositionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PositionService, deps: [{ token: i1.DOMService }, { token: SCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
47
+ PositionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PositionService });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PositionService, decorators: [{
49
49
  type: Injectable
50
50
  }], ctorParameters: function () { return [{ type: i1.DOMService }, { type: undefined, decorators: [{
51
51
  type: Inject,
@@ -37,8 +37,8 @@ export class ResizeService {
37
37
  return this.subscription && this.subscription.closed;
38
38
  }
39
39
  }
40
- ResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ResizeService, deps: [{ token: i1.DOMService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
41
- ResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ResizeService });
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ResizeService, decorators: [{
40
+ ResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeService, deps: [{ token: i1.DOMService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
41
+ ResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeService });
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeService, decorators: [{
43
43
  type: Injectable
44
44
  }], ctorParameters: function () { return [{ type: i1.DOMService }, { type: i0.NgZone }]; } });
@@ -30,7 +30,6 @@ export 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 @@ export 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 @@ export 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
  }
@@ -70,8 +69,8 @@ export class ScrollableService {
70
69
  return true;
71
70
  }
72
71
  }
73
- ScrollableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ScrollableService, deps: [{ token: i1.DOMService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
74
- ScrollableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ScrollableService });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ScrollableService, decorators: [{
72
+ ScrollableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollableService, deps: [{ token: i1.DOMService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
73
+ ScrollableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollableService });
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollableService, decorators: [{
76
75
  type: Injectable
77
76
  }], ctorParameters: function () { return [{ type: i1.DOMService }, { type: i0.NgZone }]; } });
@@ -211,14 +211,14 @@ class DOMService {
211
211
  return align(settings);
212
212
  }
213
213
  boundingOffset(el) {
214
- return boundingOffset(this.nativeElement(el));
214
+ return boundingOffset(el);
215
215
  }
216
216
  getFontStyles(el) {
217
217
  const window = this.getWindow();
218
218
  if (!window || !el) {
219
219
  return [];
220
220
  }
221
- const computedStyles = window.getComputedStyle(this.nativeElement(el));
221
+ const computedStyles = window.getComputedStyle(el);
222
222
  return STYLES.map(font => ({ key: font, value: computedStyles[font] }));
223
223
  }
224
224
  getWindow() {
@@ -234,7 +234,7 @@ class DOMService {
234
234
  if (!el) {
235
235
  return null;
236
236
  }
237
- return offset(this.nativeElement(el));
237
+ return offset(el);
238
238
  }
239
239
  offsetAtPoint(el, currentLocation) {
240
240
  if (!el) {
@@ -264,7 +264,7 @@ class DOMService {
264
264
  if (!element || !popup) {
265
265
  return null;
266
266
  }
267
- return positionWithScroll(this.nativeElement(element), this.nativeElement(popup), scale);
267
+ return positionWithScroll(element, this.nativeElement(popup), scale);
268
268
  }
269
269
  removeScroll(rect, scroll) {
270
270
  return removeScroll(rect, scroll);
@@ -276,7 +276,7 @@ class DOMService {
276
276
  return scrollPosition(this.nativeElement(el));
277
277
  }
278
278
  scrollableParents(el) {
279
- return scrollableParents(this.nativeElement(el));
279
+ return scrollableParents(el);
280
280
  }
281
281
  stackingElementOffset(el) {
282
282
  const relativeContextElement = this.getRelativeContextElement(el);
@@ -315,7 +315,7 @@ class DOMService {
315
315
  return getWindowViewPort(this.nativeElement(el));
316
316
  }
317
317
  zIndex(anchor, container) {
318
- return zIndex(this.nativeElement(anchor), this.nativeElement(container));
318
+ return zIndex(anchor, this.nativeElement(container));
319
319
  }
320
320
  zoomLevel() {
321
321
  if (!isDocumentAvailable() || !isWindowAvailable()) {
@@ -327,9 +327,9 @@ class DOMService {
327
327
  return this.zoomLevel() > 1;
328
328
  }
329
329
  }
330
- DOMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: DOMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
331
- DOMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: DOMService });
332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: DOMService, decorators: [{
330
+ DOMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DOMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
331
+ DOMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DOMService });
332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DOMService, decorators: [{
333
333
  type: Injectable
334
334
  }] });
335
335
 
@@ -346,7 +346,7 @@ class AlignService {
346
346
  const scale = this.scale || 1;
347
347
  const fixedMode = positionMode === 'fixed' || !this._dom.hasOffsetParent(element);
348
348
  const anchorRect = fixedMode ? this.absoluteRect(anchor, element, offset, scale) : this.relativeRect(anchor, element, offset, scale);
349
- const elementRect = scaleRect(this._dom.offset(element), scale);
349
+ const elementRect = scaleRect(this._dom.offset(element.nativeElement), scale);
350
350
  const result = this._dom.align({
351
351
  anchorAlign: anchorAlign,
352
352
  anchorRect: anchorRect,
@@ -380,9 +380,9 @@ class AlignService {
380
380
  return scaleRect(rect, scale);
381
381
  }
382
382
  }
383
- AlignService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AlignService, deps: [{ token: DOMService }, { token: SCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
384
- AlignService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AlignService });
385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AlignService, decorators: [{
383
+ AlignService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AlignService, deps: [{ token: DOMService }, { token: SCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
384
+ AlignService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AlignService });
385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AlignService, decorators: [{
386
386
  type: Injectable
387
387
  }], ctorParameters: function () { return [{ type: DOMService }, { type: undefined, decorators: [{
388
388
  type: Inject,
@@ -427,9 +427,9 @@ class PositionService {
427
427
  };
428
428
  }
429
429
  }
430
- PositionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PositionService, deps: [{ token: DOMService }, { token: SCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
431
- PositionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PositionService });
432
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PositionService, decorators: [{
430
+ PositionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PositionService, deps: [{ token: DOMService }, { token: SCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
431
+ PositionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PositionService });
432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PositionService, decorators: [{
433
433
  type: Injectable
434
434
  }], ctorParameters: function () { return [{ type: DOMService }, { type: undefined, decorators: [{
435
435
  type: Inject,
@@ -466,9 +466,9 @@ class ResizeService {
466
466
  return this.subscription && this.subscription.closed;
467
467
  }
468
468
  }
469
- ResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ResizeService, deps: [{ token: DOMService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
470
- ResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ResizeService });
471
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ResizeService, decorators: [{
469
+ ResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeService, deps: [{ token: DOMService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
470
+ ResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeService });
471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeService, decorators: [{
472
472
  type: Injectable
473
473
  }], ctorParameters: function () { return [{ type: DOMService }, { type: i0.NgZone }]; } });
474
474
 
@@ -493,7 +493,6 @@ class ScrollableService {
493
493
  if (!callback || !isDocumentAvailable() || !this.element) {
494
494
  return;
495
495
  }
496
- const nativeElement = this._dom.nativeElement(this.element);
497
496
  const parents = this._dom.scrollableParents(this.element);
498
497
  this._zone.runOutsideAngular(() => {
499
498
  const observables = parents.map(p => fromEvent(p, "scroll").pipe(auditTime(FRAME_DURATION)));
@@ -503,7 +502,7 @@ class ScrollableService {
503
502
  const isDocument = target === document;
504
503
  const isWindow = target === window;
505
504
  if (isParent || isDocument || isWindow) {
506
- callback(this.isVisible(nativeElement, target));
505
+ callback(this.isVisible(this.element, target));
507
506
  }
508
507
  };
509
508
  this.subscription = merge(...observables).subscribe(subscriber);
@@ -517,7 +516,7 @@ class ScrollableService {
517
516
  }
518
517
  isVisible(elem, container) {
519
518
  const elemRect = this._dom.boundingOffset(elem);
520
- const containerRect = this._dom.boundingOffset(container);
519
+ const containerRect = this._dom.boundingOffset(this._dom.nativeElement(container));
521
520
  if (THRESHOLD_DIFF < (containerRect.top - elemRect.bottom)) {
522
521
  return false;
523
522
  }
@@ -533,9 +532,9 @@ class ScrollableService {
533
532
  return true;
534
533
  }
535
534
  }
536
- ScrollableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ScrollableService, deps: [{ token: DOMService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
537
- ScrollableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ScrollableService });
538
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: ScrollableService, decorators: [{
535
+ ScrollableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollableService, deps: [{ token: DOMService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
536
+ ScrollableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollableService });
537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollableService, decorators: [{
539
538
  type: Injectable
540
539
  }], ctorParameters: function () { return [{ type: DOMService }, { type: i0.NgZone }]; } });
541
540
 
@@ -661,9 +660,9 @@ class AnimationService {
661
660
  }
662
661
  }
663
662
  }
664
- AnimationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AnimationService, deps: [{ token: i1.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Injectable });
665
- AnimationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AnimationService });
666
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: AnimationService, decorators: [{
663
+ AnimationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AnimationService, deps: [{ token: i1.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Injectable });
664
+ AnimationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AnimationService });
665
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AnimationService, decorators: [{
667
666
  type: Injectable
668
667
  }], ctorParameters: function () { return [{ type: i1.AnimationBuilder }]; } });
669
668
 
@@ -674,7 +673,7 @@ const packageMetadata = {
674
673
  name: '@progress/kendo-angular-popup',
675
674
  productName: 'Kendo UI for Angular',
676
675
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
677
- publishDate: 1634564045,
676
+ publishDate: 1648803868,
678
677
  version: '',
679
678
  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'
680
679
  };
@@ -868,11 +867,12 @@ class PopupComponent {
868
867
  this._resizeService.subscribe(this.reposition);
869
868
  this.animationSubscriptions = this.animationService.start.subscribe(this.onAnimationStart.bind(this));
870
869
  this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this)));
871
- this._scrollableService.forElement(this.anchor || this.container).subscribe(this.onScroll.bind(this));
870
+ this._scrollableService.forElement(this.domService.nativeElement(this.anchor) || this.container.nativeElement).subscribe(this.onScroll.bind(this));
872
871
  this.currentOffset = DEFAULT_OFFSET;
873
872
  this.setZIndex();
874
873
  this.copyFontStyles();
875
874
  this.updateFixedClass();
875
+ this.reposition();
876
876
  }
877
877
  ngOnChanges(changes) {
878
878
  if (changes.copyAnchorStyles) {
@@ -883,7 +883,6 @@ class PopupComponent {
883
883
  }
884
884
  }
885
885
  ngAfterViewInit() {
886
- this.reposition();
887
886
  if (!this.animate) {
888
887
  this.resolvedPromise.then(() => {
889
888
  this.onAnimationEnd();
@@ -938,7 +937,7 @@ class PopupComponent {
938
937
  }
939
938
  setZIndex() {
940
939
  if (this.anchor) {
941
- this.setContainerStyle('z-index', String(this.domService.zIndex(this.anchor, this.container)));
940
+ this.setContainerStyle('z-index', String(this.domService.zIndex(this.domService.nativeElement(this.anchor), this.container)));
942
941
  }
943
942
  }
944
943
  reposition() {
@@ -959,7 +958,7 @@ class PopupComponent {
959
958
  }
960
959
  position() {
961
960
  const alignedOffset = this._alignService.alignElement({
962
- anchor: this.anchor,
961
+ anchor: this.domService.nativeElement(this.anchor),
963
962
  anchorAlign: this.anchorAlign,
964
963
  element: this.container,
965
964
  elementAlign: this.popupAlign,
@@ -968,7 +967,7 @@ class PopupComponent {
968
967
  positionMode: this.positionMode
969
968
  });
970
969
  return this._positionService.positionElement({
971
- anchor: this.anchor,
970
+ anchor: this.domService.nativeElement(this.anchor),
972
971
  anchorAlign: this.anchorAlign,
973
972
  collisions: this.collision,
974
973
  currentLocation: alignedOffset,
@@ -992,7 +991,7 @@ class PopupComponent {
992
991
  if (!this.anchor || !this.copyAnchorStyles) {
993
992
  return;
994
993
  }
995
- this.domService.getFontStyles(this.anchor)
994
+ this.domService.getFontStyles(this.domService.nativeElement(this.anchor))
996
995
  .forEach(s => this.setContainerStyle(s.key, s.value));
997
996
  }
998
997
  updateFixedClass() {
@@ -1008,8 +1007,8 @@ class PopupComponent {
1008
1007
  }
1009
1008
  }
1010
1009
  }
1011
- PopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupComponent, deps: [{ token: i0.ElementRef }, { token: AlignService }, { token: DOMService }, { token: PositionService }, { token: ResizeService }, { token: ScrollableService }, { token: AnimationService }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1012
- PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: PopupComponent, selector: "kendo-popup", inputs: { animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", collision: "collision", popupAlign: "popupAlign", copyAnchorStyles: "copyAnchorStyles", popupClass: "popupClass", positionMode: "positionMode", offset: "offset", margin: "margin" }, outputs: { anchorViewportLeave: "anchorViewportLeave", close: "close", open: "open", positionChange: "positionChange" }, providers: [AlignService, AnimationService, DOMService, PositionService, ResizeService, ScrollableService], viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "resizeSensor", first: true, predicate: ResizeSensorComponent, descendants: true, static: true }], exportAs: ["kendo-popup"], usesOnChanges: true, ngImport: i0, template: `
1010
+ PopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupComponent, deps: [{ token: i0.ElementRef }, { token: AlignService }, { token: DOMService }, { token: PositionService }, { token: ResizeService }, { token: ScrollableService }, { token: AnimationService }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1011
+ PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: PopupComponent, selector: "kendo-popup", inputs: { animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", collision: "collision", popupAlign: "popupAlign", copyAnchorStyles: "copyAnchorStyles", popupClass: "popupClass", positionMode: "positionMode", offset: "offset", margin: "margin" }, outputs: { anchorViewportLeave: "anchorViewportLeave", close: "close", open: "open", positionChange: "positionChange" }, providers: [AlignService, AnimationService, DOMService, PositionService, ResizeService, ScrollableService], viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "resizeSensor", first: true, predicate: ResizeSensorComponent, descendants: true, static: true }], exportAs: ["kendo-popup"], usesOnChanges: true, ngImport: i0, template: `
1013
1012
  <div class="k-popup" [ngClass]="popupClass" #container>
1014
1013
  <ng-content></ng-content>
1015
1014
  <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>
@@ -1017,7 +1016,7 @@ PopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
1017
1016
  </kendo-resize-sensor>
1018
1017
  </div>
1019
1018
  `, isInline: true, components: [{ type: i7.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1020
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupComponent, decorators: [{
1019
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupComponent, decorators: [{
1021
1020
  type: Component,
1022
1021
  args: [{
1023
1022
  exportAs: 'kendo-popup',
@@ -1297,9 +1296,9 @@ class PopupService {
1297
1296
  };
1298
1297
  }
1299
1298
  }
1300
- PopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1301
- PopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupService });
1302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupService, decorators: [{
1299
+ PopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: POPUP_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1300
+ PopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupService });
1301
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupService, decorators: [{
1303
1302
  type: Injectable
1304
1303
  }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ElementRef, decorators: [{
1305
1304
  type: Inject,
@@ -1342,10 +1341,10 @@ const POPUP_DIRECTIVES = [PopupComponent];
1342
1341
  */
1343
1342
  class PopupModule {
1344
1343
  }
1345
- PopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1346
- PopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupModule, declarations: [PopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [PopupComponent] });
1347
- PopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupModule, providers: [PopupService], imports: [[CommonModule, ResizeSensorModule]] });
1348
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0, type: PopupModule, decorators: [{
1344
+ PopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1345
+ PopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupModule, declarations: [PopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [PopupComponent] });
1346
+ PopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupModule, providers: [PopupService], imports: [[CommonModule, ResizeSensorModule]] });
1347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PopupModule, decorators: [{
1349
1348
  type: NgModule,
1350
1349
  args: [{
1351
1350
  declarations: [POPUP_DIRECTIVES],
package/main.d.ts CHANGED
@@ -9,7 +9,7 @@ export { Margin } from './models/margin.interface';
9
9
  export { PopupSettings } from './models/popup-settings';
10
10
  export { PopupRef } from './models/popup-ref';
11
11
  export { PositionMode } from './models/position-mode';
12
- export { PopupAnimation } from './models/popup-animation.interface';
12
+ export { PopupAnimation, AnimationType, AnimationDirection } from './models/popup-animation.interface';
13
13
  export { PopupService, POPUP_CONTAINER } from './popup.service';
14
14
  export { PopupComponent } from './popup.component';
15
15
  export { PopupModule } from './popup.module';
@@ -9,7 +9,7 @@ import { PositionMode } from './position-mode';
9
9
  * @hidden
10
10
  */
11
11
  export interface AlignElementSettings {
12
- anchor?: ElementRef;
12
+ anchor?: HTMLElement;
13
13
  anchorAlign: AlignStrategy;
14
14
  element: ElementRef;
15
15
  elementAlign: AlignStrategy;
@@ -10,7 +10,7 @@ export interface PopupAnimation {
10
10
  * The type of the animation.
11
11
  * @default 'slide'
12
12
  */
13
- type?: 'slide' | 'expand' | 'zoom' | 'fade';
13
+ type?: AnimationType;
14
14
  /**
15
15
  * The animation duration in milliseconds.
16
16
  * @default 100
@@ -20,5 +20,7 @@ export interface PopupAnimation {
20
20
  * The animation direction. Applicable if the type is set to `slide` or `expand`.
21
21
  * @default 'down'
22
22
  */
23
- direction: 'down' | 'up' | 'left' | 'right';
23
+ direction: AnimationDirection;
24
24
  }
25
+ export declare type AnimationType = 'slide' | 'expand' | 'zoom' | 'fade';
26
+ export declare type AnimationDirection = 'down' | 'up' | 'left' | 'right';
@@ -24,7 +24,7 @@ export interface PopupSettings {
24
24
  /**
25
25
  * Specifies the element which will be used as an anchor. The Popup opens next to that element.
26
26
  */
27
- anchor?: ElementRef;
27
+ anchor?: ElementRef | HTMLElement;
28
28
  /**
29
29
  * Defines the container to which the Popup will be appended.
30
30
  */
@@ -9,7 +9,7 @@ import { PositionMode } from './position-mode';
9
9
  * @hidden
10
10
  */
11
11
  export interface PositionElementSettings {
12
- anchor?: ElementRef;
12
+ anchor?: HTMLElement;
13
13
  anchorAlign: AlignStrategy;
14
14
  collisions: CollisionStrategy;
15
15
  currentLocation: OffsetPosition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-popup",
3
- "version": "5.0.0-next.202110181335",
3
+ "version": "5.0.0-next.202204010906",
4
4
  "description": "Kendo UI Angular Popup component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@progress/kendo-popup-common": "^1.7.0",
26
- "@progress/kendo-schematics": "^1.0.0",
26
+ "@progress/kendo-schematics": "next",
27
27
  "tslib": "^2.3.1"
28
28
  },
29
29
  "peerDependencies": {
@@ -55,7 +55,7 @@ export declare class PopupComponent implements AfterViewInit, OnInit, OnChanges,
55
55
  * Specifies the element that will be used as an anchor. The Popup opens next to that element.
56
56
  * ([see example]({% slug alignmentpositioning_popup %}#toc-aligning-to-components)).
57
57
  */
58
- anchor: ElementRef;
58
+ anchor: ElementRef | HTMLElement;
59
59
  /**
60
60
  * Specifies the anchor pivot point
61
61
  * ([see example]({% slug alignmentpositioning_popup %}#toc-positioning)).
@@ -13,24 +13,24 @@ export declare class DOMService {
13
13
  addOffset(current: OffsetPosition, addition: OffsetPosition): OffsetPosition;
14
14
  addScroll(rect: ElementRect, scroll: ScrollInfo): ElementRect;
15
15
  align(settings: AlignSettings): OffsetPosition;
16
- boundingOffset(el: ElementRef): BoundingRect;
17
- getFontStyles(el: ElementRef): any;
16
+ boundingOffset(el: HTMLElement): BoundingRect;
17
+ getFontStyles(el: HTMLElement): any;
18
18
  getWindow(): Window;
19
19
  hasOffsetParent(el: ElementRef): boolean;
20
- offset(el: ElementRef): ElementRect;
20
+ offset(el: HTMLElement): ElementRect;
21
21
  offsetAtPoint(el: ElementRef, currentLocation: OffsetPosition): ElementRect;
22
- nativeElement(el: ElementRef): HTMLElement;
23
- position(element: ElementRef, popup: ElementRef, scale?: number): ElementRect;
22
+ nativeElement(el: any): HTMLElement;
23
+ position(element: HTMLElement, popup: ElementRef, scale?: number): ElementRect;
24
24
  removeScroll(rect: ElementRect, scroll: ScrollInfo): ElementRect;
25
25
  restrictToView(settings: PositionSettings): Position;
26
26
  scrollPosition(el: ElementRef): ScrollInfo;
27
- scrollableParents(el: ElementRef): Array<HTMLElement>;
27
+ scrollableParents(el: HTMLElement): Array<HTMLElement>;
28
28
  stackingElementOffset(el: ElementRef): ElementRect;
29
29
  stackingElementScroll(el: ElementRef): ScrollInfo;
30
30
  getRelativeContextElement(el: ElementRef): HTMLElement;
31
31
  useRelativePosition(el: ElementRef): boolean;
32
32
  windowViewPort(el: ElementRef): ViewPort;
33
- zIndex(anchor: ElementRef, container: ElementRef): number;
33
+ zIndex(anchor: HTMLElement, container: ElementRef): number;
34
34
  zoomLevel(): number;
35
35
  isZoomed(): boolean;
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<DOMService, never>;
@@ -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
  import * as i0 from "@angular/core";
8
8
  /**
@@ -18,10 +18,10 @@ export declare class ScrollableService {
18
18
  private element;
19
19
  private subscription;
20
20
  constructor(_dom: DOMService, _zone: NgZone);
21
- forElement(element: ElementRef): ScrollableService;
21
+ forElement(element: HTMLElement): ScrollableService;
22
22
  subscribe(callback: Function): void;
23
23
  unsubscribe(): void;
24
- isVisible(elem: any, container: any): boolean;
24
+ isVisible(elem: HTMLElement, container: any): boolean;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableService, never>;
26
26
  static ɵprov: i0.ɵɵInjectableDeclaration<ScrollableService>;
27
27
  }