@progress/kendo-angular-dialog 24.0.4-develop.1 → 24.1.0
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/NOTICE.txt +410 -1839
- package/dialog/dialog.service.d.ts +1 -10
- package/fesm2022/progress-kendo-angular-dialog.mjs +93 -109
- package/package-metadata.mjs +2 -2
- package/package.json +11 -11
- package/schematics/ngAdd/index.js +1 -1
- package/window/window.service.d.ts +1 -10
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ComponentFactoryResolver } from '@angular/core';
|
|
6
5
|
import { DialogContainerService } from './dialog-container.service';
|
|
7
6
|
import { DialogRef } from './models/dialog-ref';
|
|
8
7
|
import { DialogSettings } from './models';
|
|
@@ -11,16 +10,8 @@ import * as i0 from "@angular/core";
|
|
|
11
10
|
* Provides a service for opening Dialog windows dynamically ([see example](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service)).
|
|
12
11
|
*/
|
|
13
12
|
export declare class DialogService {
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
private resolver;
|
|
18
13
|
private containerService;
|
|
19
|
-
constructor(
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
resolver: ComponentFactoryResolver, containerService: DialogContainerService);
|
|
14
|
+
constructor(containerService: DialogContainerService);
|
|
24
15
|
/**
|
|
25
16
|
* Opens a Dialog window. Requires an element in the application that uses the
|
|
26
17
|
* [`kendoDialogContainer`](https://www.telerik.com/kendo-angular-ui/components/dialogs/api/dialogcontainerdirective) directive.
|
|
@@ -95,8 +95,8 @@ class DialogActionsComponent {
|
|
|
95
95
|
isDivider(action) {
|
|
96
96
|
return action === 'spacer';
|
|
97
97
|
}
|
|
98
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
99
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
98
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogActionsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
99
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DialogActionsComponent, isStandalone: true, selector: "kendo-dialog-actions", inputs: { actions: "actions", layout: "layout" }, outputs: { action: "action" }, host: { properties: { "class.k-actions": "this.hostClasses", "class.k-actions-horizontal": "this.hostClasses", "class.k-window-actions": "this.hostClasses", "class.k-dialog-actions": "this.hostClasses", "class.k-actions-start": "this.startClassName", "class.k-actions-center": "this.centerClassName", "class.k-actions-end": "this.endClassName", "class.k-actions-stretched": "this.stretchedClassName" } }, ngImport: i0, template: `
|
|
100
100
|
@if (!actions) {
|
|
101
101
|
<ng-content></ng-content>
|
|
102
102
|
}
|
|
@@ -126,7 +126,7 @@ class DialogActionsComponent {
|
|
|
126
126
|
}
|
|
127
127
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
128
128
|
}
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogActionsComponent, decorators: [{
|
|
130
130
|
type: Component,
|
|
131
131
|
args: [{
|
|
132
132
|
selector: 'kendo-dialog-actions',
|
|
@@ -241,10 +241,10 @@ class TitleBarLocalizationService extends LocalizationService {
|
|
|
241
241
|
}
|
|
242
242
|
return super.get(shortKey);
|
|
243
243
|
}
|
|
244
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
245
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
244
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TitleBarLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1$1.MessageService, optional: true }, { token: RTL, optional: true }, { token: DIALOG_LOCALIZATION_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
245
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TitleBarLocalizationService });
|
|
246
246
|
}
|
|
247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TitleBarLocalizationService, decorators: [{
|
|
248
248
|
type: Injectable
|
|
249
249
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
250
250
|
type: Inject,
|
|
@@ -283,10 +283,10 @@ class Messages extends ComponentMessages {
|
|
|
283
283
|
* Sets the title for the **Minimize** button.
|
|
284
284
|
*/
|
|
285
285
|
minimizeTitle;
|
|
286
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
287
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
286
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
287
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: Messages, isStandalone: true, selector: "kendo-dialog-messages-base", inputs: { closeTitle: "closeTitle", restoreTitle: "restoreTitle", maximizeTitle: "maximizeTitle", minimizeTitle: "minimizeTitle" }, usesInheritance: true, ngImport: i0 });
|
|
288
288
|
}
|
|
289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: Messages, decorators: [{
|
|
290
290
|
type: Directive,
|
|
291
291
|
args: [{
|
|
292
292
|
selector: 'kendo-dialog-messages-base'
|
|
@@ -310,15 +310,15 @@ class LocalizedMessagesDirective extends Messages {
|
|
|
310
310
|
super();
|
|
311
311
|
this.service = service;
|
|
312
312
|
}
|
|
313
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
314
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
313
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
314
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: LocalizedMessagesDirective, isStandalone: true, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ", providers: [
|
|
315
315
|
{
|
|
316
316
|
provide: Messages,
|
|
317
317
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
318
318
|
}
|
|
319
319
|
], usesInheritance: true, ngImport: i0 });
|
|
320
320
|
}
|
|
321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
322
322
|
type: Directive,
|
|
323
323
|
args: [{
|
|
324
324
|
providers: [
|
|
@@ -402,8 +402,8 @@ class DialogTitleBarComponent {
|
|
|
402
402
|
const eventArgs = new PreventableEvent();
|
|
403
403
|
this.close.emit(eventArgs);
|
|
404
404
|
}
|
|
405
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
406
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
405
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogTitleBarComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i1$1.LocalizationService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
406
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DialogTitleBarComponent, isStandalone: true, selector: "kendo-dialog-titlebar", inputs: { id: "id", closeTitle: "closeTitle", closable: "closable" }, outputs: { close: "close" }, host: { properties: { "class.k-window-titlebar": "this.className", "class.k-dialog-titlebar": "this.className" } }, providers: [
|
|
407
407
|
TitleBarLocalizationService,
|
|
408
408
|
{
|
|
409
409
|
provide: LocalizationService,
|
|
@@ -443,7 +443,7 @@ class DialogTitleBarComponent {
|
|
|
443
443
|
</ng-container>
|
|
444
444
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
445
445
|
}
|
|
446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogTitleBarComponent, decorators: [{
|
|
447
447
|
type: Component,
|
|
448
448
|
args: [{
|
|
449
449
|
selector: 'kendo-dialog-titlebar',
|
|
@@ -516,8 +516,8 @@ const packageMetadata = {
|
|
|
516
516
|
productName: 'Kendo UI for Angular',
|
|
517
517
|
productCode: 'KENDOUIANGULAR',
|
|
518
518
|
productCodes: ['KENDOUIANGULAR'],
|
|
519
|
-
publishDate:
|
|
520
|
-
version: '24.0
|
|
519
|
+
publishDate: 1780593727,
|
|
520
|
+
version: '24.1.0',
|
|
521
521
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
522
522
|
};
|
|
523
523
|
|
|
@@ -1237,8 +1237,8 @@ class DialogComponent {
|
|
|
1237
1237
|
this.subscriptions.push(s);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1241
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
1240
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i2.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
1241
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DialogComponent, isStandalone: true, selector: "kendo-dialog", inputs: { actions: "actions", actionsLayout: "actionsLayout", autoFocusedElement: "autoFocusedElement", closable: "closable", 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: [
|
|
1242
1242
|
LocalizationService,
|
|
1243
1243
|
{
|
|
1244
1244
|
provide: DIALOG_LOCALIZATION_SERVICE,
|
|
@@ -1293,7 +1293,7 @@ class DialogComponent {
|
|
|
1293
1293
|
])
|
|
1294
1294
|
] });
|
|
1295
1295
|
}
|
|
1296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogComponent, decorators: [{
|
|
1297
1297
|
type: Component,
|
|
1298
1298
|
args: [{
|
|
1299
1299
|
animations: [
|
|
@@ -1478,10 +1478,10 @@ class DialogContentBase {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1482
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
1481
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogContentBase, deps: [{ token: DialogRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1482
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: DialogContentBase, isStandalone: true, viewQueries: [{ propertyName: "dialogTitleBar", first: true, predicate: DialogTitleBarComponent, descendants: true }, { propertyName: "dialogActions", first: true, predicate: DialogActionsComponent, descendants: true }], ngImport: i0 });
|
|
1483
1483
|
}
|
|
1484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogContentBase, decorators: [{
|
|
1485
1485
|
type: Directive
|
|
1486
1486
|
}], ctorParameters: () => [{ type: DialogRef }], propDecorators: { dialogTitleBar: [{
|
|
1487
1487
|
type: ViewChild,
|
|
@@ -1502,10 +1502,10 @@ class DialogContainerService {
|
|
|
1502
1502
|
get container() {
|
|
1503
1503
|
return DialogContainerService.container;
|
|
1504
1504
|
}
|
|
1505
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1506
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1505
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1506
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogContainerService, providedIn: 'root' });
|
|
1507
1507
|
}
|
|
1508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogContainerService, decorators: [{
|
|
1509
1509
|
type: Injectable,
|
|
1510
1510
|
args: [{
|
|
1511
1511
|
providedIn: 'root'
|
|
@@ -1665,14 +1665,8 @@ class DialogInjector {
|
|
|
1665
1665
|
* Provides a service for opening Dialog windows dynamically ([see example](https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service)).
|
|
1666
1666
|
*/
|
|
1667
1667
|
class DialogService {
|
|
1668
|
-
resolver;
|
|
1669
1668
|
containerService;
|
|
1670
|
-
constructor(
|
|
1671
|
-
/**
|
|
1672
|
-
* @hidden
|
|
1673
|
-
*/
|
|
1674
|
-
resolver, containerService) {
|
|
1675
|
-
this.resolver = resolver;
|
|
1669
|
+
constructor(containerService) {
|
|
1676
1670
|
this.containerService = containerService;
|
|
1677
1671
|
}
|
|
1678
1672
|
/**
|
|
@@ -1699,7 +1693,6 @@ class DialogService {
|
|
|
1699
1693
|
* ```
|
|
1700
1694
|
*/
|
|
1701
1695
|
open(options) {
|
|
1702
|
-
const factory = this.resolver.resolveComponentFactory(DialogComponent);
|
|
1703
1696
|
const container = options.appendTo || this.containerService.container;
|
|
1704
1697
|
if (!container) {
|
|
1705
1698
|
throw new Error(`
|
|
@@ -1717,11 +1710,11 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
|
|
|
1717
1710
|
dialog: null,
|
|
1718
1711
|
result: null
|
|
1719
1712
|
};
|
|
1720
|
-
return this.initializeDialog(options.content,
|
|
1713
|
+
return this.initializeDialog(options.content, container, dialogRef, options);
|
|
1721
1714
|
}
|
|
1722
|
-
initializeDialog(component,
|
|
1715
|
+
initializeDialog(component, container, dialogRef, options) {
|
|
1723
1716
|
const content = this.contentFrom(component, container, dialogRef);
|
|
1724
|
-
const dialog = container.createComponent(
|
|
1717
|
+
const dialog = container.createComponent(DialogComponent, { projectableNodes: content.nodes });
|
|
1725
1718
|
dialogRef.dialog = dialog;
|
|
1726
1719
|
dialog.changeDetectorRef.markForCheck();
|
|
1727
1720
|
// copy @Input options to dialog instance
|
|
@@ -1811,8 +1804,7 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
|
|
|
1811
1804
|
else if (content && !(content instanceof TemplateRef)) {
|
|
1812
1805
|
// Component
|
|
1813
1806
|
const injector = new DialogInjector(() => dialogRef, container.injector);
|
|
1814
|
-
|
|
1815
|
-
componentRef = container.createComponent(factory, undefined, injector);
|
|
1807
|
+
componentRef = container.createComponent(content, { injector });
|
|
1816
1808
|
titleNodes = Array.from(componentRef.location.nativeElement.querySelectorAll('kendo-dialog-titlebar'));
|
|
1817
1809
|
nodes = [componentRef.location.nativeElement];
|
|
1818
1810
|
actionNodes = Array.from(componentRef.location.nativeElement.querySelectorAll('kendo-dialog-actions'));
|
|
@@ -1827,15 +1819,15 @@ See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.
|
|
|
1827
1819
|
]
|
|
1828
1820
|
};
|
|
1829
1821
|
}
|
|
1830
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1831
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1822
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogService, deps: [{ token: DialogContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1823
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogService, providedIn: 'root' });
|
|
1832
1824
|
}
|
|
1833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogService, decorators: [{
|
|
1834
1826
|
type: Injectable,
|
|
1835
1827
|
args: [{
|
|
1836
1828
|
providedIn: 'root'
|
|
1837
1829
|
}]
|
|
1838
|
-
}], ctorParameters: () => [{ type:
|
|
1830
|
+
}], ctorParameters: () => [{ type: DialogContainerService, decorators: [{
|
|
1839
1831
|
type: Inject,
|
|
1840
1832
|
args: [DialogContainerService]
|
|
1841
1833
|
}] }] });
|
|
@@ -2149,10 +2141,10 @@ class DragResizeService {
|
|
|
2149
2141
|
get windowViewPort() {
|
|
2150
2142
|
return getWindowViewPort(this.window.nativeElement);
|
|
2151
2143
|
}
|
|
2152
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2153
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
2144
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DragResizeService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2145
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DragResizeService });
|
|
2154
2146
|
}
|
|
2155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DragResizeService, decorators: [{
|
|
2156
2148
|
type: Injectable
|
|
2157
2149
|
}], ctorParameters: () => [{ type: i0.NgZone }] });
|
|
2158
2150
|
|
|
@@ -2202,10 +2194,10 @@ class ResizeHandleDirective {
|
|
|
2202
2194
|
setDisplay(value = 'block') {
|
|
2203
2195
|
this.renderer.setStyle(this.el.nativeElement, 'display', this.service.options.state === 'default' ? value : 'none');
|
|
2204
2196
|
}
|
|
2205
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2206
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
2197
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i1$2.DraggableDirective, host: true }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2198
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: ResizeHandleDirective, isStandalone: true, selector: "[kendoWindowResizeHandle]", inputs: { direction: "direction" }, host: { properties: { "class.k-resize-handle": "this.hostClass" } }, ngImport: i0 });
|
|
2207
2199
|
}
|
|
2208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ResizeHandleDirective, decorators: [{
|
|
2209
2201
|
type: Directive,
|
|
2210
2202
|
args: [{
|
|
2211
2203
|
selector: '[kendoWindowResizeHandle]',
|
|
@@ -2339,8 +2331,8 @@ class WindowTitleBarComponent {
|
|
|
2339
2331
|
const options = this.service.options;
|
|
2340
2332
|
return options.draggable && options.state !== 'maximized';
|
|
2341
2333
|
}
|
|
2342
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2343
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
2334
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowTitleBarComponent, deps: [{ token: i0.ElementRef }, { token: DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2335
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WindowTitleBarComponent, isStandalone: true, selector: "kendo-window-titlebar", inputs: { template: "template", id: "id" }, host: { listeners: { "dblclick": "handle($event)" }, properties: { "class.k-window-titlebar": "this.className", "style.touch-action": "this.touchAction" } }, ngImport: i0, template: `
|
|
2344
2336
|
@if (!template) {
|
|
2345
2337
|
<ng-content></ng-content>
|
|
2346
2338
|
}
|
|
@@ -2352,7 +2344,7 @@ class WindowTitleBarComponent {
|
|
|
2352
2344
|
}
|
|
2353
2345
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
2354
2346
|
}
|
|
2355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowTitleBarComponent, decorators: [{
|
|
2356
2348
|
type: Component,
|
|
2357
2349
|
args: [{
|
|
2358
2350
|
selector: 'kendo-window-titlebar',
|
|
@@ -2529,10 +2521,10 @@ class NavigationService {
|
|
|
2529
2521
|
}
|
|
2530
2522
|
}
|
|
2531
2523
|
}
|
|
2532
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2533
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
2524
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NavigationService, deps: [{ token: DragResizeService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2525
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NavigationService });
|
|
2534
2526
|
}
|
|
2535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: NavigationService, decorators: [{
|
|
2536
2528
|
type: Injectable
|
|
2537
2529
|
}], ctorParameters: () => [{ type: DragResizeService }, { type: i0.NgZone }] });
|
|
2538
2530
|
|
|
@@ -2569,8 +2561,8 @@ class WindowCloseActionDirective extends Button {
|
|
|
2569
2561
|
this.window.closeAction();
|
|
2570
2562
|
}
|
|
2571
2563
|
}
|
|
2572
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2573
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
2564
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowCloseActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2565
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WindowCloseActionDirective, isStandalone: true, selector: "button[kendoWindowCloseAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass" } }, providers: [
|
|
2574
2566
|
LocalizationService,
|
|
2575
2567
|
{
|
|
2576
2568
|
provide: L10N_PREFIX,
|
|
@@ -2595,7 +2587,7 @@ class WindowCloseActionDirective extends Button {
|
|
|
2595
2587
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
2596
2588
|
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2597
2589
|
}
|
|
2598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowCloseActionDirective, decorators: [{
|
|
2599
2591
|
type: Component,
|
|
2600
2592
|
args: [{
|
|
2601
2593
|
exportAs: 'kendoWindowCloseAction',
|
|
@@ -2679,8 +2671,8 @@ class WindowRestoreActionDirective extends Button {
|
|
|
2679
2671
|
get visible() {
|
|
2680
2672
|
return this.window.options.state === 'default' ? 'none' : 'inline-flex';
|
|
2681
2673
|
}
|
|
2682
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2683
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
2674
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowRestoreActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2675
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WindowRestoreActionDirective, isStandalone: true, selector: "button[kendoWindowRestoreAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
|
|
2684
2676
|
LocalizationService,
|
|
2685
2677
|
{
|
|
2686
2678
|
provide: L10N_PREFIX,
|
|
@@ -2705,7 +2697,7 @@ class WindowRestoreActionDirective extends Button {
|
|
|
2705
2697
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
2706
2698
|
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2707
2699
|
}
|
|
2708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowRestoreActionDirective, decorators: [{
|
|
2709
2701
|
type: Component,
|
|
2710
2702
|
args: [{
|
|
2711
2703
|
exportAs: 'kendoWindowRestoreAction',
|
|
@@ -2792,8 +2784,8 @@ class WindowMaximizeActionDirective extends Button {
|
|
|
2792
2784
|
get visible() {
|
|
2793
2785
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
2794
2786
|
}
|
|
2795
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2796
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
2787
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowMaximizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2788
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WindowMaximizeActionDirective, isStandalone: true, selector: "button[kendoWindowMaximizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
|
|
2797
2789
|
LocalizationService,
|
|
2798
2790
|
{
|
|
2799
2791
|
provide: L10N_PREFIX,
|
|
@@ -2818,7 +2810,7 @@ class WindowMaximizeActionDirective extends Button {
|
|
|
2818
2810
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
2819
2811
|
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2820
2812
|
}
|
|
2821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowMaximizeActionDirective, decorators: [{
|
|
2822
2814
|
type: Component,
|
|
2823
2815
|
args: [{
|
|
2824
2816
|
exportAs: 'kendoWindowMaximizeAction',
|
|
@@ -2905,8 +2897,8 @@ class WindowMinimizeActionDirective extends Button {
|
|
|
2905
2897
|
get visible() {
|
|
2906
2898
|
return this.window.options.state === 'default' ? 'inline-flex' : 'none';
|
|
2907
2899
|
}
|
|
2908
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2909
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
2900
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowMinimizeActionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService, optional: true }, { token: i1$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2901
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WindowMinimizeActionDirective, isStandalone: true, selector: "button[kendoWindowMinimizeAction]", inputs: { window: "window" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.type": "this.buttonType", "class.k-window-titlebar-action": "this.buttonClass", "style.display": "this.visible" } }, providers: [
|
|
2910
2902
|
LocalizationService,
|
|
2911
2903
|
{
|
|
2912
2904
|
provide: L10N_PREFIX,
|
|
@@ -2931,7 +2923,7 @@ class WindowMinimizeActionDirective extends Button {
|
|
|
2931
2923
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
2932
2924
|
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2933
2925
|
}
|
|
2934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowMinimizeActionDirective, decorators: [{
|
|
2935
2927
|
type: Component,
|
|
2936
2928
|
args: [{
|
|
2937
2929
|
exportAs: 'kendoWindowMinimizeAction',
|
|
@@ -3536,8 +3528,8 @@ class WindowComponent {
|
|
|
3536
3528
|
generateTitleId() {
|
|
3537
3529
|
return 'kendo-window-title-' + Math.ceil(Math.random() * 1000000).toString();
|
|
3538
3530
|
}
|
|
3539
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
3540
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
3531
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DragResizeService }, { token: NavigationService }, { token: i0.NgZone }, { token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3532
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WindowComponent, isStandalone: true, 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", "attr.role": "this.role", "class.k-window": "this.hostClass", "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: [
|
|
3541
3533
|
DragResizeService,
|
|
3542
3534
|
NavigationService,
|
|
3543
3535
|
LocalizationService,
|
|
@@ -3606,7 +3598,7 @@ class WindowComponent {
|
|
|
3606
3598
|
}
|
|
3607
3599
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n " }, { kind: "component", type: WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { kind: "component", type: WindowMinimizeActionDirective, selector: "button[kendoWindowMinimizeAction]", inputs: ["window"], exportAs: ["kendoWindowMinimizeAction"] }, { kind: "component", type: WindowMaximizeActionDirective, selector: "button[kendoWindowMaximizeAction]", inputs: ["window"], exportAs: ["kendoWindowMaximizeAction"] }, { kind: "component", type: WindowRestoreActionDirective, selector: "button[kendoWindowRestoreAction]", inputs: ["window"], exportAs: ["kendoWindowRestoreAction"] }, { kind: "component", type: WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ResizeHandleDirective, selector: "[kendoWindowResizeHandle]", inputs: ["direction"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay], kendo-watermark-overlay", inputs: ["licenseMessage"] }] });
|
|
3608
3600
|
}
|
|
3609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
3601
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowComponent, decorators: [{
|
|
3610
3602
|
type: Component,
|
|
3611
3603
|
args: [{
|
|
3612
3604
|
exportAs: 'kendoWindow',
|
|
@@ -3899,10 +3891,10 @@ class WindowContainerService {
|
|
|
3899
3891
|
get container() {
|
|
3900
3892
|
return WindowContainerService.container;
|
|
3901
3893
|
}
|
|
3902
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
3903
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
3894
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3895
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowContainerService, providedIn: 'root' });
|
|
3904
3896
|
}
|
|
3905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
3897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowContainerService, decorators: [{
|
|
3906
3898
|
type: Injectable,
|
|
3907
3899
|
args: [{
|
|
3908
3900
|
providedIn: 'root'
|
|
@@ -3930,14 +3922,8 @@ class WindowInjector {
|
|
|
3930
3922
|
* Use this service to open a Window component and manage its lifecycle. ([See example.](https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service))
|
|
3931
3923
|
*/
|
|
3932
3924
|
class WindowService {
|
|
3933
|
-
resolver;
|
|
3934
3925
|
containerService;
|
|
3935
|
-
constructor(
|
|
3936
|
-
/**
|
|
3937
|
-
* @hidden
|
|
3938
|
-
*/
|
|
3939
|
-
resolver, containerService) {
|
|
3940
|
-
this.resolver = resolver;
|
|
3926
|
+
constructor(containerService) {
|
|
3941
3927
|
this.containerService = containerService;
|
|
3942
3928
|
}
|
|
3943
3929
|
/**
|
|
@@ -3955,7 +3941,6 @@ class WindowService {
|
|
|
3955
3941
|
* ```
|
|
3956
3942
|
*/
|
|
3957
3943
|
open(settings) {
|
|
3958
|
-
const factory = this.resolver.resolveComponentFactory(WindowComponent);
|
|
3959
3944
|
const container = settings.appendTo || this.containerService.container;
|
|
3960
3945
|
if (!container) {
|
|
3961
3946
|
throw new Error(`Cannot attach window to the page.
|
|
@@ -3970,7 +3955,7 @@ class WindowService {
|
|
|
3970
3955
|
window: null
|
|
3971
3956
|
};
|
|
3972
3957
|
const content = this.contentFrom(settings.content, container, windowRef);
|
|
3973
|
-
const window = container.createComponent(
|
|
3958
|
+
const window = container.createComponent(WindowComponent, { projectableNodes: content.nodes });
|
|
3974
3959
|
windowRef.window = window;
|
|
3975
3960
|
this.applyOptions(window.instance, settings);
|
|
3976
3961
|
const apiClose = new Subject();
|
|
@@ -4073,8 +4058,7 @@ class WindowService {
|
|
|
4073
4058
|
}
|
|
4074
4059
|
else if (content && !(content instanceof TemplateRef)) {
|
|
4075
4060
|
const injector = new WindowInjector(() => windowRef, container.injector);
|
|
4076
|
-
|
|
4077
|
-
componentRef = container.createComponent(factory, undefined, injector);
|
|
4061
|
+
componentRef = container.createComponent(content, { injector });
|
|
4078
4062
|
nodes = [componentRef.location.nativeElement];
|
|
4079
4063
|
windowRef.content = componentRef;
|
|
4080
4064
|
}
|
|
@@ -4086,15 +4070,15 @@ class WindowService {
|
|
|
4086
4070
|
]
|
|
4087
4071
|
};
|
|
4088
4072
|
}
|
|
4089
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4090
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
4073
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowService, deps: [{ token: WindowContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4074
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowService, providedIn: 'root' });
|
|
4091
4075
|
}
|
|
4092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowService, decorators: [{
|
|
4093
4077
|
type: Injectable,
|
|
4094
4078
|
args: [{
|
|
4095
4079
|
providedIn: 'root'
|
|
4096
4080
|
}]
|
|
4097
|
-
}], ctorParameters: () => [{ type:
|
|
4081
|
+
}], ctorParameters: () => [{ type: WindowContainerService, decorators: [{
|
|
4098
4082
|
type: Inject,
|
|
4099
4083
|
args: [WindowContainerService]
|
|
4100
4084
|
}] }] });
|
|
@@ -4112,10 +4096,10 @@ class DialogContainerDirective {
|
|
|
4112
4096
|
constructor(container, service) {
|
|
4113
4097
|
service.container = container;
|
|
4114
4098
|
}
|
|
4115
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4116
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4099
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: DialogContainerService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4100
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: DialogContainerDirective, isStandalone: true, selector: "[kendoDialogContainer]", ngImport: i0 });
|
|
4117
4101
|
}
|
|
4118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogContainerDirective, decorators: [{
|
|
4119
4103
|
type: Directive,
|
|
4120
4104
|
args: [{
|
|
4121
4105
|
selector: '[kendoDialogContainer]',
|
|
@@ -4157,15 +4141,15 @@ class CustomMessagesComponent extends Messages {
|
|
|
4157
4141
|
get override() {
|
|
4158
4142
|
return true;
|
|
4159
4143
|
}
|
|
4160
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4161
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4144
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4145
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-dialog-messages, kendo-window-messages", providers: [
|
|
4162
4146
|
{
|
|
4163
4147
|
provide: Messages,
|
|
4164
4148
|
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
4165
4149
|
}
|
|
4166
4150
|
], usesInheritance: true, ngImport: i0 });
|
|
4167
4151
|
}
|
|
4168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
4169
4153
|
type: Directive,
|
|
4170
4154
|
args: [{
|
|
4171
4155
|
providers: [
|
|
@@ -4192,10 +4176,10 @@ class WindowContainerDirective {
|
|
|
4192
4176
|
constructor(container, service) {
|
|
4193
4177
|
service.container = container;
|
|
4194
4178
|
}
|
|
4195
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4196
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: WindowContainerService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4180
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: WindowContainerDirective, isStandalone: true, selector: "[kendoWindowContainer]", ngImport: i0 });
|
|
4197
4181
|
}
|
|
4198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowContainerDirective, decorators: [{
|
|
4199
4183
|
type: Directive,
|
|
4200
4184
|
args: [{
|
|
4201
4185
|
selector: '[kendoWindowContainer]',
|
|
@@ -4305,11 +4289,11 @@ const KENDO_DIALOGS = [
|
|
|
4305
4289
|
* ```
|
|
4306
4290
|
*/
|
|
4307
4291
|
class DialogModule {
|
|
4308
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4309
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
4310
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
4292
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4293
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: DialogModule, imports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent], exports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent] });
|
|
4294
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogModule, providers: [DialogContainerService, DialogService, IconsService], imports: [DialogComponent, DialogTitleBarComponent, DialogActionsComponent] });
|
|
4311
4295
|
}
|
|
4312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogModule, decorators: [{
|
|
4313
4297
|
type: NgModule,
|
|
4314
4298
|
args: [{
|
|
4315
4299
|
exports: [...KENDO_DIALOG],
|
|
@@ -4340,11 +4324,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImpo
|
|
|
4340
4324
|
* ```
|
|
4341
4325
|
*/
|
|
4342
4326
|
class WindowModule {
|
|
4343
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4344
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
4345
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
4327
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4328
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: WindowModule, imports: [WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent], exports: [WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent] });
|
|
4329
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowModule, providers: [WindowContainerService, WindowService, IconsService], imports: [WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, DialogActionsComponent] });
|
|
4346
4330
|
}
|
|
4347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WindowModule, decorators: [{
|
|
4348
4332
|
type: NgModule,
|
|
4349
4333
|
args: [{
|
|
4350
4334
|
imports: [...KENDO_WINDOW],
|
|
@@ -4376,11 +4360,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImpo
|
|
|
4376
4360
|
* ```
|
|
4377
4361
|
*/
|
|
4378
4362
|
class DialogsModule {
|
|
4379
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4380
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
4381
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
4363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4364
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: DialogsModule, imports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent, WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent], exports: [DialogComponent, DialogTitleBarComponent, DialogContainerDirective, DialogActionsComponent, CustomMessagesComponent, WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, WindowTitleBarComponent, WindowContainerDirective, DialogActionsComponent, CustomMessagesComponent] });
|
|
4365
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogsModule, providers: [IconsService, DialogService, DialogContainerService, WindowService, WindowContainerService], imports: [DialogComponent, DialogTitleBarComponent, DialogActionsComponent, WindowComponent, WindowCloseActionDirective, WindowMinimizeActionDirective, WindowMaximizeActionDirective, WindowRestoreActionDirective, DialogActionsComponent] });
|
|
4382
4366
|
}
|
|
4383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DialogsModule, decorators: [{
|
|
4384
4368
|
type: NgModule,
|
|
4385
4369
|
args: [{
|
|
4386
4370
|
imports: [...KENDO_DIALOGS],
|