@progress/kendo-angular-popup 26.0.0 → 26.1.0-develop.2
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/fesm2022/progress-kendo-angular-popup.mjs +21 -29
- package/index.d.ts +4 -5
- package/package-metadata.mjs +2 -2
- package/package.json +4 -5
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { Injectable, InjectionToken, Inject, Optional, EventEmitter, isDevMode, signal, afterNextRender, ViewChild, Output, Input, ChangeDetectionStrategy, Component, EnvironmentInjector, createComponent, TemplateRef, NgModule } from '@angular/core';
|
|
7
7
|
import { siblingContainer, parents, addScroll, align, boundingOffset, offset, positionWithScroll, removeScroll, restrictToView, scrollPosition, getWindowViewPort } from '@progress/kendo-popup-common';
|
|
8
|
-
import * as i1
|
|
9
|
-
import { isDocumentAvailable, hasObservers, ResizeSensorComponent, KENDO_RESIZESENSOR, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
8
|
+
import * as i1 from '@progress/kendo-angular-common';
|
|
9
|
+
import { isDocumentAvailable, playAnimation, hasObservers, ResizeSensorComponent, KENDO_RESIZESENSOR, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
10
10
|
import { fromEvent, merge } from 'rxjs';
|
|
11
11
|
import { auditTime } from 'rxjs/operators';
|
|
12
|
-
import * as i1 from '@angular/animations';
|
|
13
|
-
import { style, animate } from '@angular/animations';
|
|
14
12
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
13
|
import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
16
14
|
|
|
@@ -592,7 +590,7 @@ animationTypes.expand = (direction) => {
|
|
|
592
590
|
}
|
|
593
591
|
return {
|
|
594
592
|
start: { transform: `${scale}(${startScale})`, transformOrigin: origin },
|
|
595
|
-
end: { transform: `${scale}(${endScale})
|
|
593
|
+
end: { transform: `${scale}(${endScale})`, transformOrigin: origin }
|
|
596
594
|
};
|
|
597
595
|
};
|
|
598
596
|
animationTypes.slide = (direction) => {
|
|
@@ -622,13 +620,13 @@ animationTypes.zoom = () => {
|
|
|
622
620
|
* @hidden
|
|
623
621
|
*/
|
|
624
622
|
class AnimationService {
|
|
625
|
-
|
|
623
|
+
zone;
|
|
626
624
|
start = new EventEmitter();
|
|
627
625
|
end = new EventEmitter();
|
|
628
626
|
flip;
|
|
629
|
-
|
|
630
|
-
constructor(
|
|
631
|
-
this.
|
|
627
|
+
animation;
|
|
628
|
+
constructor(zone) {
|
|
629
|
+
this.zone = zone;
|
|
632
630
|
}
|
|
633
631
|
play(element, options, flip) {
|
|
634
632
|
if (!this.flip || this.flip.horizontal !== flip.horizontal ||
|
|
@@ -647,22 +645,16 @@ class AnimationService {
|
|
|
647
645
|
}
|
|
648
646
|
}
|
|
649
647
|
ngOnDestroy() {
|
|
650
|
-
this.
|
|
648
|
+
this.stopAnimation();
|
|
651
649
|
}
|
|
652
650
|
playStates(element, states, options) {
|
|
653
|
-
this.
|
|
651
|
+
this.stopAnimation();
|
|
654
652
|
const duration = options.duration || DEFAULT_DURATION;
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
]);
|
|
659
|
-
const player = this.player = factory.create(element);
|
|
660
|
-
player.onDone(() => {
|
|
661
|
-
this.end.emit();
|
|
662
|
-
this.stopPlayer();
|
|
653
|
+
this.animation = playAnimation(element, [states.start, states.end], { duration, easing: 'ease-in' }, () => {
|
|
654
|
+
this.animation = null;
|
|
655
|
+
this.zone.run(() => this.end.emit());
|
|
663
656
|
});
|
|
664
657
|
this.start.emit();
|
|
665
|
-
player.play();
|
|
666
658
|
}
|
|
667
659
|
getDirection(flip, options) {
|
|
668
660
|
let direction = options.direction || DOWN;
|
|
@@ -684,18 +676,18 @@ class AnimationService {
|
|
|
684
676
|
}
|
|
685
677
|
return direction;
|
|
686
678
|
}
|
|
687
|
-
|
|
688
|
-
if (this.
|
|
689
|
-
this.
|
|
690
|
-
this.
|
|
679
|
+
stopAnimation() {
|
|
680
|
+
if (this.animation) {
|
|
681
|
+
this.animation.cancel();
|
|
682
|
+
this.animation = null;
|
|
691
683
|
}
|
|
692
684
|
}
|
|
693
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: AnimationService, deps: [{ token:
|
|
685
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: AnimationService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
694
686
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: AnimationService });
|
|
695
687
|
}
|
|
696
688
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: AnimationService, decorators: [{
|
|
697
689
|
type: Injectable
|
|
698
|
-
}], ctorParameters: () => [{ type:
|
|
690
|
+
}], ctorParameters: () => [{ type: i0.NgZone }] });
|
|
699
691
|
|
|
700
692
|
/**
|
|
701
693
|
* @hidden
|
|
@@ -705,8 +697,8 @@ const packageMetadata = {
|
|
|
705
697
|
productName: 'Kendo UI for Angular',
|
|
706
698
|
productCode: 'KENDOUIANGULAR',
|
|
707
699
|
productCodes: ['KENDOUIANGULAR'],
|
|
708
|
-
publishDate:
|
|
709
|
-
version: '26.0.
|
|
700
|
+
publishDate: 1794569297,
|
|
701
|
+
version: '26.1.0-develop.2',
|
|
710
702
|
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'
|
|
711
703
|
};
|
|
712
704
|
|
|
@@ -1346,7 +1338,7 @@ const KENDO_POPUP = [
|
|
|
1346
1338
|
*/
|
|
1347
1339
|
class PopupModule {
|
|
1348
1340
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: PopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1349
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: PopupModule, imports: [i1
|
|
1341
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: PopupModule, imports: [i1.ResizeSensorComponent, PopupComponent], exports: [PopupComponent] });
|
|
1350
1342
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: PopupModule, providers: [PopupService, ResizeBatchService], imports: [KENDO_RESIZESENSOR, KENDO_POPUP] });
|
|
1351
1343
|
}
|
|
1352
1344
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: PopupModule, decorators: [{
|
package/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { AlignStrategy, OffsetPosition, MarginSettings, ElementRect, ScrollInfo, AlignSettings, BoundingRect, PositionSettings, ViewPort, CollisionStrategy } from '@progress/kendo-popup-common';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
7
|
import { ElementRef, ViewContainerRef, TemplateRef, NgZone, OnDestroy, EventEmitter, AfterViewInit, AfterViewChecked, OnInit, OnChanges, Renderer2, Injector, ComponentRef, InjectionToken, ApplicationRef } from '@angular/core';
|
|
8
|
-
import { AnimationBuilder } from '@angular/animations';
|
|
9
8
|
import * as i1 from '@progress/kendo-angular-common';
|
|
10
9
|
import { ResizeSensorComponent } from '@progress/kendo-angular-common';
|
|
11
10
|
|
|
@@ -312,17 +311,17 @@ declare class ScrollableService {
|
|
|
312
311
|
* @hidden
|
|
313
312
|
*/
|
|
314
313
|
declare class AnimationService implements OnDestroy {
|
|
315
|
-
private
|
|
314
|
+
private zone;
|
|
316
315
|
start: EventEmitter<any>;
|
|
317
316
|
end: EventEmitter<any>;
|
|
318
317
|
private flip;
|
|
319
|
-
private
|
|
320
|
-
constructor(
|
|
318
|
+
private animation;
|
|
319
|
+
constructor(zone: NgZone);
|
|
321
320
|
play(element: any, options: any, flip: any): void;
|
|
322
321
|
ngOnDestroy(): void;
|
|
323
322
|
private playStates;
|
|
324
323
|
private getDirection;
|
|
325
|
-
private
|
|
324
|
+
private stopAnimation;
|
|
326
325
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnimationService, never>;
|
|
327
326
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnimationService>;
|
|
328
327
|
}
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "26.0.
|
|
10
|
+
"publishDate": 1794569297,
|
|
11
|
+
"version": "26.1.0-develop.2",
|
|
12
12
|
"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"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-popup",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.1.0-develop.2",
|
|
4
4
|
"description": "Kendo UI Angular Popup component - an easily customized popup from the most trusted provider of professional Angular components.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -34,23 +34,22 @@
|
|
|
34
34
|
"package": {
|
|
35
35
|
"productName": "Kendo UI for Angular",
|
|
36
36
|
"productCode": "KENDOUIANGULAR",
|
|
37
|
-
"publishDate":
|
|
37
|
+
"publishDate": 1794569297,
|
|
38
38
|
"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"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@angular/animations": "20 - 22",
|
|
43
42
|
"@angular/common": "20 - 22",
|
|
44
43
|
"@angular/core": "20 - 22",
|
|
45
44
|
"@angular/platform-browser": "20 - 22",
|
|
46
|
-
"@progress/kendo-angular-common": "26.0.
|
|
45
|
+
"@progress/kendo-angular-common": "26.1.0-develop.2",
|
|
47
46
|
"@progress/kendo-licensing": "^1.13.0",
|
|
48
47
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
49
48
|
},
|
|
50
49
|
"dependencies": {
|
|
51
50
|
"@progress/kendo-popup-common": "1.9.5",
|
|
52
51
|
"tslib": "^2.3.1",
|
|
53
|
-
"@progress/kendo-angular-schematics": "26.0.
|
|
52
|
+
"@progress/kendo-angular-schematics": "26.1.0-develop.2"
|
|
54
53
|
},
|
|
55
54
|
"schematics": "./schematics/collection.json",
|
|
56
55
|
"module": "fesm2022/progress-kendo-angular-popup.mjs",
|