@progress/kendo-angular-dialog 7.0.0-next.202204131319 → 7.1.0-dev.202205310852
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/common/preventable-event.d.ts +4 -3
- 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.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/common/preventable-event.js +3 -3
- 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.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/main.js +1 -0
- package/esm2015/package-metadata.js +1 -1
- package/fesm2015/kendo-angular-dialog.js +154 -49
- package/main.d.ts +4 -1
- package/package.json +9 -11
- package/schematics/ngAdd/index.js +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: [{
|
|
@@ -325,10 +326,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
325
326
|
args: ['class.k-actions-stretched']
|
|
326
327
|
}] } });
|
|
327
328
|
|
|
328
|
-
/**
|
|
329
|
-
* @hidden
|
|
330
|
-
*/
|
|
331
329
|
class PreventableEvent {
|
|
330
|
+
/**
|
|
331
|
+
* @hidden
|
|
332
|
+
*/
|
|
332
333
|
constructor() {
|
|
333
334
|
this.prevented = false;
|
|
334
335
|
}
|
|
@@ -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: 1653987141,
|
|
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']
|
|
@@ -1280,6 +1384,7 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
|
|
|
1280
1384
|
instance.closeTitle = options.closeTitle;
|
|
1281
1385
|
instance.cssClass = options.cssClass;
|
|
1282
1386
|
instance.htmlAttributes = options.htmlAttributes;
|
|
1387
|
+
instance.animation = options.animation !== undefined ? options.animation : true;
|
|
1283
1388
|
if (options.content instanceof TemplateRef) {
|
|
1284
1389
|
instance.contentTemplate = options.content;
|
|
1285
1390
|
}
|
|
@@ -1682,14 +1787,14 @@ class ResizeHandleDirective {
|
|
|
1682
1787
|
this.renderer.setStyle(this.el.nativeElement, 'display', this.service.options.state === 'default' ? value : 'none');
|
|
1683
1788
|
}
|
|
1684
1789
|
}
|
|
1685
|
-
ResizeHandleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i1$
|
|
1790
|
+
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
1791
|
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
1792
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeHandleDirective, decorators: [{
|
|
1688
1793
|
type: Directive,
|
|
1689
1794
|
args: [{
|
|
1690
1795
|
selector: '[kendoWindowResizeHandle]'
|
|
1691
1796
|
}]
|
|
1692
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1797
|
+
}], ctorParameters: function () { return [{ type: i1$1.DraggableDirective, decorators: [{
|
|
1693
1798
|
type: Host
|
|
1694
1799
|
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }]; }, propDecorators: { direction: [{
|
|
1695
1800
|
type: Input
|
|
@@ -1795,7 +1900,7 @@ WindowTitleBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
1795
1900
|
[ngTemplateOutlet]="template"
|
|
1796
1901
|
[ngTemplateOutletContext]="{'$implicit': service}" *ngIf="template">
|
|
1797
1902
|
</ng-template>
|
|
1798
|
-
`, isInline: true, directives: [{ type:
|
|
1903
|
+
`, isInline: true, directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
1799
1904
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowTitleBarComponent, decorators: [{
|
|
1800
1905
|
type: Component,
|
|
1801
1906
|
args: [{
|
|
@@ -1988,7 +2093,7 @@ class WindowMinimizeActionDirective extends Button {
|
|
|
1988
2093
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
1989
2094
|
}
|
|
1990
2095
|
}
|
|
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
|
|
2096
|
+
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
2097
|
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
2098
|
LocalizationService,
|
|
1994
2099
|
{
|
|
@@ -2011,7 +2116,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2011
2116
|
}]
|
|
2012
2117
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
|
|
2013
2118
|
type: Optional
|
|
2014
|
-
}] }, { type: i1
|
|
2119
|
+
}] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
2015
2120
|
type: Input
|
|
2016
2121
|
}], buttonType: [{
|
|
2017
2122
|
type: HostBinding,
|
|
@@ -2044,7 +2149,7 @@ class WindowMaximizeActionDirective extends Button {
|
|
|
2044
2149
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
2045
2150
|
}
|
|
2046
2151
|
}
|
|
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
|
|
2152
|
+
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
2153
|
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
2154
|
LocalizationService,
|
|
2050
2155
|
{
|
|
@@ -2067,7 +2172,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2067
2172
|
}]
|
|
2068
2173
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
|
|
2069
2174
|
type: Optional
|
|
2070
|
-
}] }, { type: i1
|
|
2175
|
+
}] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
2071
2176
|
type: Input
|
|
2072
2177
|
}], buttonType: [{
|
|
2073
2178
|
type: HostBinding,
|
|
@@ -2100,7 +2205,7 @@ class WindowRestoreActionDirective extends Button {
|
|
|
2100
2205
|
return this.window.options.state === 'default' ? 'none' : 'inline-flex';
|
|
2101
2206
|
}
|
|
2102
2207
|
}
|
|
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
|
|
2208
|
+
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
2209
|
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
2210
|
LocalizationService,
|
|
2106
2211
|
{
|
|
@@ -2123,7 +2228,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2123
2228
|
}]
|
|
2124
2229
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
|
|
2125
2230
|
type: Optional
|
|
2126
|
-
}] }, { type: i1
|
|
2231
|
+
}] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
2127
2232
|
type: Input
|
|
2128
2233
|
}], buttonType: [{
|
|
2129
2234
|
type: HostBinding,
|
|
@@ -2153,7 +2258,7 @@ class WindowCloseActionDirective extends Button {
|
|
|
2153
2258
|
}
|
|
2154
2259
|
}
|
|
2155
2260
|
}
|
|
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
|
|
2261
|
+
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
2262
|
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
2263
|
LocalizationService,
|
|
2159
2264
|
{
|
|
@@ -2176,7 +2281,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2176
2281
|
}]
|
|
2177
2282
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService, decorators: [{
|
|
2178
2283
|
type: Optional
|
|
2179
|
-
}] }, { type: i1
|
|
2284
|
+
}] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { window: [{
|
|
2180
2285
|
type: Input
|
|
2181
2286
|
}], buttonType: [{
|
|
2182
2287
|
type: HostBinding,
|
|
@@ -2685,7 +2790,7 @@ class WindowComponent {
|
|
|
2685
2790
|
}
|
|
2686
2791
|
}
|
|
2687
2792
|
}
|
|
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
|
|
2793
|
+
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
2794
|
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
2795
|
DragResizeService,
|
|
2691
2796
|
NavigationService,
|
|
@@ -2736,7 +2841,7 @@ WindowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
2736
2841
|
kendoDraggable>
|
|
2737
2842
|
</div>
|
|
2738
2843
|
</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:
|
|
2844
|
+
`, 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
2845
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: WindowComponent, decorators: [{
|
|
2741
2846
|
type: Component,
|
|
2742
2847
|
args: [{
|
|
@@ -2795,7 +2900,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2795
2900
|
</ng-template>
|
|
2796
2901
|
`
|
|
2797
2902
|
}]
|
|
2798
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }, { type: NavigationService }, { type: i0.NgZone }, { type: i1
|
|
2903
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DragResizeService }, { type: NavigationService }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { autoFocusedElement: [{
|
|
2799
2904
|
type: Input
|
|
2800
2905
|
}], title: [{
|
|
2801
2906
|
type: Input
|
|
@@ -3159,7 +3264,7 @@ class CustomMessagesComponent extends Messages {
|
|
|
3159
3264
|
return true;
|
|
3160
3265
|
}
|
|
3161
3266
|
}
|
|
3162
|
-
CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1
|
|
3267
|
+
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
3268
|
CustomMessagesComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CustomMessagesComponent, selector: "kendo-dialog-messages, kendo-window-messages", providers: [
|
|
3164
3269
|
{
|
|
3165
3270
|
provide: Messages,
|
|
@@ -3178,7 +3283,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3178
3283
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3179
3284
|
selector: 'kendo-dialog-messages, kendo-window-messages'
|
|
3180
3285
|
}]
|
|
3181
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
3286
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
3182
3287
|
|
|
3183
3288
|
/**
|
|
3184
3289
|
* @hidden
|
|
@@ -3391,5 +3496,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3391
3496
|
* Generated bundle index. Do not edit.
|
|
3392
3497
|
*/
|
|
3393
3498
|
|
|
3394
|
-
export { CustomMessagesComponent, DialogAction, DialogActionsComponent, DialogCloseResult, DialogComponent, DialogContainerDirective, DialogContentBase, DialogModule, DialogRef, DialogService, DialogSettings, DialogTitleBarComponent, DialogsModule, LocalizedMessagesDirective, Messages, WindowCloseActionDirective, WindowCloseResult, WindowComponent, WindowContainerDirective, WindowMaximizeActionDirective, WindowMinimizeActionDirective, WindowModule, WindowRef, WindowRestoreActionDirective, WindowService, WindowSettings, WindowTitleBarComponent };
|
|
3499
|
+
export { CustomMessagesComponent, DialogAction, DialogActionsComponent, DialogCloseResult, DialogComponent, DialogContainerDirective, DialogContentBase, DialogModule, DialogRef, DialogService, DialogSettings, DialogTitleBarComponent, DialogsModule, LocalizedMessagesDirective, Messages, PreventableEvent, WindowCloseActionDirective, WindowCloseResult, WindowComponent, WindowContainerDirective, WindowMaximizeActionDirective, WindowMinimizeActionDirective, WindowModule, WindowRef, WindowRestoreActionDirective, WindowService, WindowSettings, WindowTitleBarComponent };
|
|
3395
3500
|
|
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';
|
|
@@ -25,3 +27,4 @@ export { Messages } from './localization/messages';
|
|
|
25
27
|
export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
26
28
|
export { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
27
29
|
export { WindowContainerDirective } from './window/window-container.directive';
|
|
30
|
+
export { PreventableEvent } from './common/preventable-event';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dialog",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0-dev.202205310852",
|
|
4
4
|
"description": "Dialog Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"tslib": "^2.3.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@angular/animations": "
|
|
35
|
-
"@angular/common": "
|
|
36
|
-
"@angular/core": "
|
|
37
|
-
"@progress/kendo-angular-buttons": "
|
|
38
|
-
"@progress/kendo-angular-common": "
|
|
39
|
-
"@progress/kendo-angular-l10n": "
|
|
34
|
+
"@angular/animations": "12 - 14",
|
|
35
|
+
"@angular/common": "12 - 14",
|
|
36
|
+
"@angular/core": "12 - 14",
|
|
37
|
+
"@progress/kendo-angular-buttons": "^8.0.0",
|
|
38
|
+
"@progress/kendo-angular-common": "^3.0.0",
|
|
39
|
+
"@progress/kendo-angular-l10n": "^4.0.0",
|
|
40
40
|
"@progress/kendo-licensing": "^1.0.2",
|
|
41
41
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
42
42
|
},
|
|
@@ -67,12 +67,10 @@
|
|
|
67
67
|
"release": {
|
|
68
68
|
"debug": false,
|
|
69
69
|
"branchTags": {
|
|
70
|
-
"develop": "dev"
|
|
71
|
-
"ng12-update": "next"
|
|
70
|
+
"develop": "dev"
|
|
72
71
|
},
|
|
73
72
|
"fallbackTags": {
|
|
74
|
-
"dev": "latest"
|
|
75
|
-
"next": "latest"
|
|
73
|
+
"dev": "latest"
|
|
76
74
|
},
|
|
77
75
|
"analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
|
|
78
76
|
"generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
|
|
@@ -8,7 +8,7 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
8
8
|
function default_1(options) {
|
|
9
9
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DialogsModule', package: 'dialog', peerDependencies: {
|
|
10
10
|
// Peer dependency of buttons
|
|
11
|
-
"@progress/kendo-angular-popup": "^
|
|
11
|
+
"@progress/kendo-angular-popup": "^5.0.0"
|
|
12
12
|
} });
|
|
13
13
|
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
|
|
14
14
|
}
|
|
@@ -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
|
/**
|