@progress/kendo-angular-dialog 7.0.0 → 7.1.0-dev.202205311705
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/bundles/kendo-angular-dialog.umd.js +1 -1
- package/common/animation-types.d.ts +8 -0
- package/common/dialog-animation-direction.d.ts +8 -0
- package/dialog/dialog-animations/animate-content.d.ts +11 -0
- package/dialog/dialog-animations/animations.d.ts +11 -0
- package/dialog/dialog-animations/create-animation-player.d.ts +10 -0
- package/dialog/dialog-content-base.d.ts +1 -1
- package/dialog/dialog.component.d.ts +14 -3
- package/dialog/models/dialog-animation.d.ts +23 -0
- package/dialog/models/dialog-settings.d.ts +6 -0
- package/dialog/models/index.d.ts +1 -0
- package/esm2015/common/animation-types.js +5 -0
- package/esm2015/common/dialog-animation-direction.js +5 -0
- package/esm2015/dialog/dialog-animations/animate-content.js +19 -0
- package/esm2015/dialog/dialog-animations/animations.js +69 -0
- package/esm2015/dialog/dialog-animations/create-animation-player.js +18 -0
- package/esm2015/dialog/dialog-content-base.js +4 -8
- package/esm2015/dialog/dialog.component.js +31 -20
- package/esm2015/dialog/dialog.service.js +1 -0
- package/esm2015/dialog/models/dialog-animation.js +5 -0
- package/esm2015/dialog/models/index.js +1 -0
- package/esm2015/package-metadata.js +1 -1
- package/fesm2015/kendo-angular-dialog.js +153 -52
- package/main.d.ts +3 -1
- package/package.json +1 -1
- package/window/window.component.d.ts +1 -1
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { EventEmitter, TemplateRef, Component, Input, Output, HostBinding, InjectionToken, Injectable, Inject, Optional, Directive, forwardRef, ContentChildren, ViewChildren, ViewChild, isDevMode, Renderer2, Host, HostListener, ContentChild, NgModule } from '@angular/core';
|
|
7
|
-
import
|
|
7
|
+
import * as i2 from '@angular/animations';
|
|
8
|
+
import { style, animate, keyframes, trigger, state, transition } from '@angular/animations';
|
|
8
9
|
import { of, Subscription, Subject, merge } from 'rxjs';
|
|
9
10
|
import { delay, takeUntil, take, filter, map, share, tap, switchMap } from 'rxjs/operators';
|
|
10
|
-
import * as
|
|
11
|
+
import * as i6 from '@angular/common';
|
|
11
12
|
import { CommonModule } from '@angular/common';
|
|
12
|
-
import * as i1
|
|
13
|
+
import * as i1 from '@progress/kendo-angular-l10n';
|
|
13
14
|
import { LocalizationService, L10N_PREFIX, RTL, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
14
15
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
|
-
import * as i1$
|
|
16
|
+
import * as i1$1 from '@progress/kendo-angular-common';
|
|
16
17
|
import { DraggableDirective, isChanged, isDocumentAvailable, DraggableModule } from '@progress/kendo-angular-common';
|
|
17
18
|
import { offset, scrollPosition, positionWithScroll, getDocumentElement, getWindowViewPort } from '@progress/kendo-popup-common';
|
|
18
19
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
@@ -287,7 +288,7 @@ DialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
287
288
|
</button>
|
|
288
289
|
</ng-container>
|
|
289
290
|
<ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>
|
|
290
|
-
`, isInline: true, directives: [{ type:
|
|
291
|
+
`, isInline: true, directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
291
292
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogActionsComponent, decorators: [{
|
|
292
293
|
type: Component,
|
|
293
294
|
args: [{
|
|
@@ -369,21 +370,21 @@ class TitleBarLocalizationService extends LocalizationService {
|
|
|
369
370
|
return super.get(shortKey);
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
|
-
TitleBarLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TitleBarLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1
|
|
373
|
+
TitleBarLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TitleBarLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }, { token: DIALOG_LOCALIZATION_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
373
374
|
TitleBarLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TitleBarLocalizationService });
|
|
374
375
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TitleBarLocalizationService, decorators: [{
|
|
375
376
|
type: Injectable
|
|
376
377
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
377
378
|
type: Inject,
|
|
378
379
|
args: [L10N_PREFIX]
|
|
379
|
-
}] }, { type: i1
|
|
380
|
+
}] }, { type: i1.MessageService, decorators: [{
|
|
380
381
|
type: Optional
|
|
381
382
|
}] }, { type: undefined, decorators: [{
|
|
382
383
|
type: Optional
|
|
383
384
|
}, {
|
|
384
385
|
type: Inject,
|
|
385
386
|
args: [RTL]
|
|
386
|
-
}] }, { type: i1
|
|
387
|
+
}] }, { type: i1.LocalizationService, decorators: [{
|
|
387
388
|
type: Optional
|
|
388
389
|
}, {
|
|
389
390
|
type: Inject,
|
|
@@ -422,7 +423,7 @@ class LocalizedMessagesDirective extends Messages {
|
|
|
422
423
|
this.service = service;
|
|
423
424
|
}
|
|
424
425
|
}
|
|
425
|
-
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1
|
|
426
|
+
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
426
427
|
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ", providers: [
|
|
427
428
|
{
|
|
428
429
|
provide: Messages,
|
|
@@ -444,7 +445,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
444
445
|
[kendoDialogTitleBarLocalizedMessages]
|
|
445
446
|
`
|
|
446
447
|
}]
|
|
447
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
448
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
448
449
|
|
|
449
450
|
/**
|
|
450
451
|
* Represents the [Kendo UI DialogTitleBar component for Angular]({% slug api_dialog_dialogtitlebarcomponent %}).
|
|
@@ -482,7 +483,7 @@ class DialogTitleBarComponent {
|
|
|
482
483
|
this.close.emit(eventArgs);
|
|
483
484
|
}
|
|
484
485
|
}
|
|
485
|
-
DialogTitleBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogTitleBarComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i1
|
|
486
|
+
DialogTitleBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogTitleBarComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i1.LocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
486
487
|
DialogTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: { id: "id", closeTitle: "closeTitle" }, outputs: { close: "close" }, host: { properties: { "class.k-window-titlebar": "this.className", "class.k-dialog-titlebar": "this.className" } }, providers: [
|
|
487
488
|
TitleBarLocalizationService,
|
|
488
489
|
{
|
|
@@ -555,7 +556,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
555
556
|
</ng-container>
|
|
556
557
|
`
|
|
557
558
|
}]
|
|
558
|
-
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i1
|
|
559
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i1.LocalizationService, decorators: [{
|
|
559
560
|
type: Optional
|
|
560
561
|
}] }]; }, propDecorators: { close: [{
|
|
561
562
|
type: Output
|
|
@@ -578,7 +579,7 @@ const packageMetadata = {
|
|
|
578
579
|
name: '@progress/kendo-angular-dialog',
|
|
579
580
|
productName: 'Kendo UI for Angular',
|
|
580
581
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
581
|
-
publishDate:
|
|
582
|
+
publishDate: 1654016727,
|
|
582
583
|
version: '',
|
|
583
584
|
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'
|
|
584
585
|
};
|
|
@@ -591,15 +592,111 @@ const packageMetadata = {
|
|
|
591
592
|
class DialogCloseResult {
|
|
592
593
|
}
|
|
593
594
|
|
|
595
|
+
/**
|
|
596
|
+
* @hidden
|
|
597
|
+
*/
|
|
598
|
+
function animations(duration, direction, animationType) {
|
|
599
|
+
switch (animationType) {
|
|
600
|
+
case 'slide':
|
|
601
|
+
const translate = direction === 'left' || direction === 'right' ? 'translateX' : 'translateY';
|
|
602
|
+
const start = direction === 'right' || direction === 'down' ? -100 : 100;
|
|
603
|
+
const end = 0;
|
|
604
|
+
return [
|
|
605
|
+
style({ transform: `${translate}(${start}%)` }),
|
|
606
|
+
animate(`${duration}ms ease-in`, style({ transform: `${translate}(${end}%)` }))
|
|
607
|
+
];
|
|
608
|
+
case 'expand':
|
|
609
|
+
const scale = direction === 'up' || direction === 'down' ? 'scaleY' : 'scaleX';
|
|
610
|
+
const startScale = 0;
|
|
611
|
+
const endScale = 1;
|
|
612
|
+
let origin;
|
|
613
|
+
if (direction === 'down') {
|
|
614
|
+
origin = 'top';
|
|
615
|
+
}
|
|
616
|
+
else if (direction === 'left') {
|
|
617
|
+
origin = 'right';
|
|
618
|
+
}
|
|
619
|
+
else if (direction = 'right') {
|
|
620
|
+
origin = 'left';
|
|
621
|
+
}
|
|
622
|
+
else {
|
|
623
|
+
origin = 'bottom';
|
|
624
|
+
}
|
|
625
|
+
return [
|
|
626
|
+
style({ transform: `${scale}(${startScale})`, transformOrigin: origin }),
|
|
627
|
+
animate(`${duration}ms ease-in`, style({ transform: `${scale}(${endScale})` }))
|
|
628
|
+
];
|
|
629
|
+
case 'zoom':
|
|
630
|
+
const startZoom = 0;
|
|
631
|
+
const endZoom = 1;
|
|
632
|
+
return [
|
|
633
|
+
animate(duration, keyframes([
|
|
634
|
+
style({ transform: `scale(${startZoom})` }),
|
|
635
|
+
style({ transform: `scale(${endZoom})` })
|
|
636
|
+
]))
|
|
637
|
+
];
|
|
638
|
+
case 'fade':
|
|
639
|
+
const startFade = 0;
|
|
640
|
+
const endFade = 1;
|
|
641
|
+
return [
|
|
642
|
+
animate(duration, keyframes([
|
|
643
|
+
style({ opacity: `${startFade}` }),
|
|
644
|
+
style({ opacity: `${endFade}` })
|
|
645
|
+
]))
|
|
646
|
+
];
|
|
647
|
+
case 'translate':
|
|
648
|
+
return [
|
|
649
|
+
style({ transform: 'translate(0, -10%)' }),
|
|
650
|
+
animate(`${duration}ms cubic-bezier(.2, 1, .2, 1)`)
|
|
651
|
+
];
|
|
652
|
+
default:
|
|
653
|
+
return [
|
|
654
|
+
style({ transform: 'translate(0, -10%)' }),
|
|
655
|
+
animate(`${duration}ms cubic-bezier(.2, 1, .2, 1)`)
|
|
656
|
+
];
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* @hidden
|
|
662
|
+
*/
|
|
663
|
+
const createPlayer = (builder, animation, animatedElement) => {
|
|
664
|
+
const factory = builder.build(animation);
|
|
665
|
+
let player = factory.create(animatedElement);
|
|
666
|
+
player.onDone(() => {
|
|
667
|
+
if (player) {
|
|
668
|
+
player.destroy();
|
|
669
|
+
player = null;
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
return player;
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* @hidden
|
|
677
|
+
*/
|
|
678
|
+
const animateContent = (animation, defAnimationConfig, animatedElement, builder) => {
|
|
679
|
+
let animationConfig = defAnimationConfig;
|
|
680
|
+
if (typeof animation !== 'boolean') {
|
|
681
|
+
animationConfig = animation;
|
|
682
|
+
animationConfig.duration = animationConfig.duration ? animationConfig.duration : defAnimationConfig.duration;
|
|
683
|
+
}
|
|
684
|
+
const animationSpecs = animations(animationConfig.duration, animationConfig.direction, animationConfig.type);
|
|
685
|
+
const player = createPlayer(builder, animationSpecs, animatedElement);
|
|
686
|
+
player.play();
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
const DEFAULT_ANIMATION_CONFIG = { duration: 300, type: 'translate' };
|
|
594
690
|
/**
|
|
595
691
|
* Represents the [Kendo UI Dialog component for Angular]({% slug overview_dialog_dialogs %}).
|
|
596
692
|
*/
|
|
597
693
|
class DialogComponent {
|
|
598
|
-
constructor(wrapper, renderer, localization, cdr, ngZone) {
|
|
694
|
+
constructor(wrapper, renderer, localization, cdr, ngZone, builder) {
|
|
599
695
|
this.wrapper = wrapper;
|
|
600
696
|
this.renderer = renderer;
|
|
601
697
|
this.cdr = cdr;
|
|
602
698
|
this.ngZone = ngZone;
|
|
699
|
+
this.builder = builder;
|
|
603
700
|
/**
|
|
604
701
|
* Specifies the layout of the action buttons in the Dialog.
|
|
605
702
|
* This option is only applicable if the action buttons are specified through the `actions` options.
|
|
@@ -607,6 +704,13 @@ class DialogComponent {
|
|
|
607
704
|
* @default 'stretched'
|
|
608
705
|
*/
|
|
609
706
|
this.actionsLayout = 'stretched';
|
|
707
|
+
/**
|
|
708
|
+
* Configures the Dialog opening animation ([see example]({% slug animations_dialog %})).
|
|
709
|
+
* By default the animation type is set to `translate` and its duration is `300ms`.
|
|
710
|
+
*
|
|
711
|
+
* @default true
|
|
712
|
+
*/
|
|
713
|
+
this.animation = true;
|
|
610
714
|
/**
|
|
611
715
|
* @hidden
|
|
612
716
|
*/
|
|
@@ -705,6 +809,9 @@ class DialogComponent {
|
|
|
705
809
|
this.initDomEvents();
|
|
706
810
|
}
|
|
707
811
|
ngOnInit() {
|
|
812
|
+
if (this.animation) {
|
|
813
|
+
animateContent(this.animation, DEFAULT_ANIMATION_CONFIG, this.dialog.nativeElement, this.builder);
|
|
814
|
+
}
|
|
708
815
|
this.renderer.removeAttribute(this.wrapper.nativeElement, 'title');
|
|
709
816
|
this.cdr.detectChanges();
|
|
710
817
|
}
|
|
@@ -897,8 +1004,8 @@ class DialogComponent {
|
|
|
897
1004
|
}
|
|
898
1005
|
}
|
|
899
1006
|
}
|
|
900
|
-
DialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1
|
|
901
|
-
DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialogComponent, selector: "kendo-dialog", inputs: { actions: "actions", actionsLayout: "actionsLayout", autoFocusedElement: "autoFocusedElement", title: "title", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", height: "height", minHeight: "minHeight", maxHeight: "maxHeight" }, outputs: { action: "action", close: "close" }, host: { properties: { "attr.dir": "this.dir", "attr.tabIndex": "this.tabIndex", "class.k-dialog-wrapper": "this.wrapperClass" } }, providers: [
|
|
1007
|
+
DialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i2.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
1008
|
+
DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialogComponent, selector: "kendo-dialog", inputs: { actions: "actions", actionsLayout: "actionsLayout", autoFocusedElement: "autoFocusedElement", title: "title", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", height: "height", minHeight: "minHeight", maxHeight: "maxHeight", animation: "animation" }, outputs: { action: "action", close: "close" }, host: { properties: { "attr.dir": "this.dir", "attr.tabIndex": "this.tabIndex", "class.k-dialog-wrapper": "this.wrapperClass" } }, providers: [
|
|
902
1009
|
LocalizationService,
|
|
903
1010
|
{
|
|
904
1011
|
provide: DIALOG_LOCALIZATION_SERVICE,
|
|
@@ -908,7 +1015,7 @@ DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
908
1015
|
provide: L10N_PREFIX,
|
|
909
1016
|
useValue: 'kendo.dialog'
|
|
910
1017
|
}
|
|
911
|
-
], queries: [{ propertyName: "titlebarContent", predicate: DialogTitleBarComponent }], viewQueries: [{ propertyName: "actionsView", first: true, predicate: DialogActionsComponent, descendants: true }, { propertyName: "titlebarView", predicate: DialogTitleBarComponent, descendants: true }], exportAs: ["kendoDialog"], ngImport: i0, template: `
|
|
1018
|
+
], queries: [{ propertyName: "titlebarContent", predicate: DialogTitleBarComponent }], viewQueries: [{ propertyName: "actionsView", first: true, predicate: DialogActionsComponent, descendants: true }, { propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, static: true }, { propertyName: "titlebarView", predicate: DialogTitleBarComponent, descendants: true }], exportAs: ["kendoDialog"], ngImport: i0, template: `
|
|
912
1019
|
<ng-container
|
|
913
1020
|
kendoDialogLocalizedMessages
|
|
914
1021
|
i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"
|
|
@@ -916,7 +1023,7 @@ DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
916
1023
|
>
|
|
917
1024
|
<div class="k-overlay" @overlayAppear></div>
|
|
918
1025
|
|
|
919
|
-
<div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles"
|
|
1026
|
+
<div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
|
|
920
1027
|
<kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
|
|
921
1028
|
<ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
|
|
922
1029
|
|
|
@@ -929,14 +1036,10 @@ DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
929
1036
|
<kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>
|
|
930
1037
|
</div>
|
|
931
1038
|
</ng-container>
|
|
932
|
-
`, isInline: true, components: [{ type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type:
|
|
1039
|
+
`, isInline: true, components: [{ type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
|
|
933
1040
|
trigger('overlayAppear', [
|
|
934
1041
|
state('in', style({ opacity: 1 })),
|
|
935
1042
|
transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
|
|
936
|
-
]),
|
|
937
|
-
trigger('dialogSlideInAppear', [
|
|
938
|
-
state('in', style({ transform: 'translate(0, 0)' })),
|
|
939
|
-
transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
|
|
940
1043
|
])
|
|
941
1044
|
] });
|
|
942
1045
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogComponent, decorators: [{
|
|
@@ -946,10 +1049,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
946
1049
|
trigger('overlayAppear', [
|
|
947
1050
|
state('in', style({ opacity: 1 })),
|
|
948
1051
|
transition('void => *', [style({ opacity: 0.1 }), animate('.3s cubic-bezier(.2, .6, .4, 1)')])
|
|
949
|
-
]),
|
|
950
|
-
trigger('dialogSlideInAppear', [
|
|
951
|
-
state('in', style({ transform: 'translate(0, 0)' })),
|
|
952
|
-
transition('void => *', [style({ transform: 'translate(0, -10%)' }), animate('.3s cubic-bezier(.2, 1, .2, 1)')])
|
|
953
1052
|
])
|
|
954
1053
|
],
|
|
955
1054
|
exportAs: 'kendoDialog',
|
|
@@ -973,7 +1072,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
973
1072
|
>
|
|
974
1073
|
<div class="k-overlay" @overlayAppear></div>
|
|
975
1074
|
|
|
976
|
-
<div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles"
|
|
1075
|
+
<div #dialog class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles">
|
|
977
1076
|
<kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>
|
|
978
1077
|
<ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>
|
|
979
1078
|
|
|
@@ -988,7 +1087,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
988
1087
|
</ng-container>
|
|
989
1088
|
`
|
|
990
1089
|
}]
|
|
991
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1
|
|
1090
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.AnimationBuilder }]; }, propDecorators: { actions: [{
|
|
992
1091
|
type: Input
|
|
993
1092
|
}], actionsLayout: [{
|
|
994
1093
|
type: Input
|
|
@@ -1008,6 +1107,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1008
1107
|
type: Input
|
|
1009
1108
|
}], maxHeight: [{
|
|
1010
1109
|
type: Input
|
|
1110
|
+
}], animation: [{
|
|
1111
|
+
type: Input
|
|
1011
1112
|
}], action: [{
|
|
1012
1113
|
type: Output
|
|
1013
1114
|
}], close: [{
|
|
@@ -1027,6 +1128,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1027
1128
|
}], actionsView: [{
|
|
1028
1129
|
type: ViewChild,
|
|
1029
1130
|
args: [DialogActionsComponent, { static: false }]
|
|
1131
|
+
}], dialog: [{
|
|
1132
|
+
type: ViewChild,
|
|
1133
|
+
args: ['dialog', { static: true }]
|
|
1030
1134
|
}], wrapperClass: [{
|
|
1031
1135
|
type: HostBinding,
|
|
1032
1136
|
args: ['class.k-dialog-wrapper']
|
|
@@ -1065,14 +1169,10 @@ class DialogContentBase {
|
|
|
1065
1169
|
}
|
|
1066
1170
|
}
|
|
1067
1171
|
}
|
|
1068
|
-
DialogContentBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContentBase, deps: [{ token: DialogRef }], target: i0.ɵɵFactoryTarget.
|
|
1069
|
-
DialogContentBase.ɵ
|
|
1172
|
+
DialogContentBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContentBase, deps: [{ token: DialogRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1173
|
+
DialogContentBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DialogContentBase, viewQueries: [{ propertyName: "dialogTitleBar", first: true, predicate: DialogTitleBarComponent, descendants: true }, { propertyName: "dialogActions", first: true, predicate: DialogActionsComponent, descendants: true }], ngImport: i0 });
|
|
1070
1174
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialogContentBase, decorators: [{
|
|
1071
|
-
type:
|
|
1072
|
-
args: [{
|
|
1073
|
-
template: ``,
|
|
1074
|
-
selector: 'kendo-dialog-content-base'
|
|
1075
|
-
}]
|
|
1175
|
+
type: Directive
|
|
1076
1176
|
}], ctorParameters: function () { return [{ type: DialogRef }]; }, propDecorators: { dialogTitleBar: [{
|
|
1077
1177
|
type: ViewChild,
|
|
1078
1178
|
args: [DialogTitleBarComponent, { static: false }]
|
|
@@ -1280,6 +1380,7 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
|
|
|
1280
1380
|
instance.closeTitle = options.closeTitle;
|
|
1281
1381
|
instance.cssClass = options.cssClass;
|
|
1282
1382
|
instance.htmlAttributes = options.htmlAttributes;
|
|
1383
|
+
instance.animation = options.animation !== undefined ? options.animation : true;
|
|
1283
1384
|
if (options.content instanceof TemplateRef) {
|
|
1284
1385
|
instance.contentTemplate = options.content;
|
|
1285
1386
|
}
|
|
@@ -1682,14 +1783,14 @@ class ResizeHandleDirective {
|
|
|
1682
1783
|
this.renderer.setStyle(this.el.nativeElement, 'display', this.service.options.state === 'default' ? value : 'none');
|
|
1683
1784
|
}
|
|
1684
1785
|
}
|
|
1685
|
-
ResizeHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i1$
|
|
1786
|
+
ResizeHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i1$1.DraggableDirective, host: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1686
1787
|
ResizeHandleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: { direction: "direction" }, host: { properties: { "class.k-resize-handle": "this.hostClass" } }, ngImport: i0 });
|
|
1687
1788
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, decorators: [{
|
|
1688
1789
|
type: Directive,
|
|
1689
1790
|
args: [{
|
|
1690
1791
|
selector: '[kendoWindowResizeHandle]'
|
|
1691
1792
|
}]
|
|
1692
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1793
|
+
}], ctorParameters: function () { return [{ type: i1$1.DraggableDirective, decorators: [{
|
|
1693
1794
|
type: Host
|
|
1694
1795
|
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }]; }, propDecorators: { direction: [{
|
|
1695
1796
|
type: Input
|
|
@@ -1795,7 +1896,7 @@ WindowTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
1795
1896
|
[ngTemplateOutlet]="template"
|
|
1796
1897
|
[ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
|
|
1797
1898
|
</ng-template>
|
|
1798
|
-
`, isInline: true, directives: [{ type:
|
|
1899
|
+
`, isInline: true, directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
1799
1900
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowTitleBarComponent, decorators: [{
|
|
1800
1901
|
type: Component,
|
|
1801
1902
|
args: [{
|
|
@@ -1988,7 +2089,7 @@ class WindowMinimizeActionDirective extends Button {
|
|
|
1988
2089
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
1989
2090
|
}
|
|
1990
2091
|
}
|
|
1991
|
-
WindowMinimizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMinimizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1
|
|
2092
|
+
WindowMinimizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMinimizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1992
2093
|
WindowMinimizeActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "style.display": "this.visible" } }, providers: [
|
|
1993
2094
|
LocalizationService,
|
|
1994
2095
|
{
|
|
@@ -2011,7 +2112,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2011
2112
|
}]
|
|
2012
2113
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
|
|
2013
2114
|
type: Optional
|
|
2014
|
-
}] }, { type: i1
|
|
2115
|
+
}] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
2015
2116
|
type: Input
|
|
2016
2117
|
}], buttonType: [{
|
|
2017
2118
|
type: HostBinding,
|
|
@@ -2044,7 +2145,7 @@ class WindowMaximizeActionDirective extends Button {
|
|
|
2044
2145
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
2045
2146
|
}
|
|
2046
2147
|
}
|
|
2047
|
-
WindowMaximizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMaximizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1
|
|
2148
|
+
WindowMaximizeActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowMaximizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2048
2149
|
WindowMaximizeActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "style.display": "this.visible" } }, providers: [
|
|
2049
2150
|
LocalizationService,
|
|
2050
2151
|
{
|
|
@@ -2067,7 +2168,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2067
2168
|
}]
|
|
2068
2169
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
|
|
2069
2170
|
type: Optional
|
|
2070
|
-
}] }, { type: i1
|
|
2171
|
+
}] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
2071
2172
|
type: Input
|
|
2072
2173
|
}], buttonType: [{
|
|
2073
2174
|
type: HostBinding,
|
|
@@ -2100,7 +2201,7 @@ class WindowRestoreActionDirective extends Button {
|
|
|
2100
2201
|
return this.window.options.state === 'default' ? 'none' : 'inline-flex';
|
|
2101
2202
|
}
|
|
2102
2203
|
}
|
|
2103
|
-
WindowRestoreActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowRestoreActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1
|
|
2204
|
+
WindowRestoreActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowRestoreActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2104
2205
|
WindowRestoreActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "style.display": "this.visible" } }, providers: [
|
|
2105
2206
|
LocalizationService,
|
|
2106
2207
|
{
|
|
@@ -2123,7 +2224,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2123
2224
|
}]
|
|
2124
2225
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
|
|
2125
2226
|
type: Optional
|
|
2126
|
-
}] }, { type: i1
|
|
2227
|
+
}] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
2127
2228
|
type: Input
|
|
2128
2229
|
}], buttonType: [{
|
|
2129
2230
|
type: HostBinding,
|
|
@@ -2153,7 +2254,7 @@ class WindowCloseActionDirective extends Button {
|
|
|
2153
2254
|
}
|
|
2154
2255
|
}
|
|
2155
2256
|
}
|
|
2156
|
-
WindowCloseActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowCloseActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1
|
|
2257
|
+
WindowCloseActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowCloseActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2157
2258
|
WindowCloseActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType" } }, providers: [
|
|
2158
2259
|
LocalizationService,
|
|
2159
2260
|
{
|
|
@@ -2176,7 +2277,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2176
2277
|
}]
|
|
2177
2278
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
|
|
2178
2279
|
type: Optional
|
|
2179
|
-
}] }, { type: i1
|
|
2280
|
+
}] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
2180
2281
|
type: Input
|
|
2181
2282
|
}], buttonType: [{
|
|
2182
2283
|
type: HostBinding,
|
|
@@ -2685,7 +2786,7 @@ class WindowComponent {
|
|
|
2685
2786
|
}
|
|
2686
2787
|
}
|
|
2687
2788
|
}
|
|
2688
|
-
WindowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService }, { token: NavigationService }, { token: i0.NgZone }, { token: i1
|
|
2789
|
+
WindowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService }, { token: NavigationService }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2689
2790
|
WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: WindowComponent, selector: "kendo-window", inputs: { autoFocusedElement: "autoFocusedElement", title: "title", draggable: "draggable", resizable: "resizable", keepContent: "keepContent", state: "state", minWidth: "minWidth", minHeight: "minHeight", width: "width", height: "height", top: "top", left: "left" }, outputs: { dragStart: "dragStart", dragEnd: "dragEnd", resizeStart: "resizeStart", resizeEnd: "resizeEnd", close: "close", widthChange: "widthChange", heightChange: "heightChange", topChange: "topChange", leftChange: "leftChange", stateChange: "stateChange" }, host: { listeners: { "focus": "onComponentFocus()", "blur": "onComponentBlur()" }, properties: { "attr.tabIndex": "this.tabIndex", "class.k-window": "this.hostClasses", "attr.dir": "this.dir", "style.minWidth": "this.styleMinWidth", "style.minHeight": "this.styleMinHeight", "style.position": "this.stylePosition", "class.k-window-maximized": "this.wrapperMaximizedClass", "class.k-window-minimized": "this.wrapperMinimizedClass" } }, providers: [
|
|
2690
2791
|
DragResizeService,
|
|
2691
2792
|
NavigationService,
|
|
@@ -2736,7 +2837,7 @@ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
2736
2837
|
kendoDraggable>
|
|
2737
2838
|
</div>
|
|
2738
2839
|
</ng-template>
|
|
2739
|
-
`, isInline: true, components: [{ type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template"] }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type:
|
|
2840
|
+
`, isInline: true, components: [{ type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template"] }], directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { type: i1$1.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
|
|
2740
2841
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowComponent, decorators: [{
|
|
2741
2842
|
type: Component,
|
|
2742
2843
|
args: [{
|
|
@@ -2795,7 +2896,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2795
2896
|
</ng-template>
|
|
2796
2897
|
`
|
|
2797
2898
|
}]
|
|
2798
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }, { type: NavigationService }, { type: i0.NgZone }, { type: i1
|
|
2899
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }, { type: NavigationService }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { autoFocusedElement: [{
|
|
2799
2900
|
type: Input
|
|
2800
2901
|
}], title: [{
|
|
2801
2902
|
type: Input
|
|
@@ -3159,7 +3260,7 @@ class CustomMessagesComponent extends Messages {
|
|
|
3159
3260
|
return true;
|
|
3160
3261
|
}
|
|
3161
3262
|
}
|
|
3162
|
-
CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1
|
|
3263
|
+
CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3163
3264
|
CustomMessagesComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CustomMessagesComponent, selector: "kendo-dialog-messages, kendo-window-messages", providers: [
|
|
3164
3265
|
{
|
|
3165
3266
|
provide: Messages,
|
|
@@ -3178,7 +3279,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3178
3279
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3179
3280
|
selector: 'kendo-dialog-messages, kendo-window-messages'
|
|
3180
3281
|
}]
|
|
3181
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
3282
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
3182
3283
|
|
|
3183
3284
|
/**
|
|
3184
3285
|
* @hidden
|
package/main.d.ts
CHANGED
|
@@ -7,8 +7,10 @@ export { DialogTitleBarComponent } from './dialog/dialog-titlebar.component';
|
|
|
7
7
|
export { DialogContentBase } from './dialog/dialog-content-base';
|
|
8
8
|
export { DialogActionsComponent } from './dialog/dialog-actions.component';
|
|
9
9
|
export { DialogService } from './dialog/dialog.service';
|
|
10
|
-
export { DialogCloseResult, DialogRef, DialogSettings, DialogAction, DialogResult } from './dialog/models/';
|
|
10
|
+
export { DialogCloseResult, DialogRef, DialogSettings, DialogAction, DialogResult, DialogAnimation } from './dialog/models/';
|
|
11
11
|
export { ActionsLayout } from './common/actions-layout';
|
|
12
|
+
export { DialogAnimationType } from './common/animation-types';
|
|
13
|
+
export { AnimationDirection } from './common/dialog-animation-direction';
|
|
12
14
|
export { WindowComponent } from './window/window.component';
|
|
13
15
|
export { WindowTitleBarComponent } from './window/window-titlebar.component';
|
|
14
16
|
export { WindowMaximizeActionDirective } from './window/actions/window-maximize-action.directive';
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ export declare class WindowComponent implements OnInit, OnDestroy, OnChanges, Af
|
|
|
22
22
|
private ngZone;
|
|
23
23
|
private localization;
|
|
24
24
|
/**
|
|
25
|
-
* Specifies the query selector used to set the initial focus.
|
|
25
|
+
* Specifies the query selector used to set the initial focus ([see examples]({% slug initial_focus_window %})).
|
|
26
26
|
*/
|
|
27
27
|
autoFocusedElement: string;
|
|
28
28
|
/**
|