@progress/kendo-angular-dialog 24.0.4-develop.1 → 24.1.0-develop.1
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 +14 -30
- 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.
|
|
@@ -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: 1780513663,
|
|
520
|
+
version: '24.1.0-develop.1',
|
|
521
521
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
522
522
|
};
|
|
523
523
|
|
|
@@ -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,7 +1819,7 @@ 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.24", ngImport: i0, type: DialogService, deps: [{ token:
|
|
1822
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: DialogService, deps: [{ token: DialogContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1831
1823
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: DialogService, providedIn: 'root' });
|
|
1832
1824
|
}
|
|
1833
1825
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: DialogService, decorators: [{
|
|
@@ -1835,7 +1827,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImpo
|
|
|
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
|
}] }] });
|
|
@@ -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,7 +4070,7 @@ class WindowService {
|
|
|
4086
4070
|
]
|
|
4087
4071
|
};
|
|
4088
4072
|
}
|
|
4089
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: WindowService, deps: [{ token:
|
|
4073
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: WindowService, deps: [{ token: WindowContainerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4090
4074
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: WindowService, providedIn: 'root' });
|
|
4091
4075
|
}
|
|
4092
4076
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: WindowService, decorators: [{
|
|
@@ -4094,7 +4078,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImpo
|
|
|
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
|
}] }] });
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "24.0
|
|
10
|
+
"publishDate": 1780513663,
|
|
11
|
+
"version": "24.1.0-develop.1",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dialog",
|
|
3
|
-
"version": "24.0
|
|
3
|
+
"version": "24.1.0-develop.1",
|
|
4
4
|
"description": "Dialog Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
"package": {
|
|
46
46
|
"productName": "Kendo UI for Angular",
|
|
47
47
|
"productCode": "KENDOUIANGULAR",
|
|
48
|
-
"publishDate":
|
|
48
|
+
"publishDate": 1780513663,
|
|
49
49
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@angular/animations": "19 -
|
|
54
|
-
"@angular/common": "19 -
|
|
55
|
-
"@angular/core": "19 -
|
|
56
|
-
"@angular/platform-browser": "19 -
|
|
53
|
+
"@angular/animations": "19 - 22",
|
|
54
|
+
"@angular/common": "19 - 22",
|
|
55
|
+
"@angular/core": "19 - 22",
|
|
56
|
+
"@angular/platform-browser": "19 - 22",
|
|
57
57
|
"@progress/kendo-licensing": "^1.11.0",
|
|
58
|
-
"@progress/kendo-angular-buttons": "24.0
|
|
59
|
-
"@progress/kendo-angular-common": "24.0
|
|
60
|
-
"@progress/kendo-angular-icons": "24.0
|
|
61
|
-
"@progress/kendo-angular-l10n": "24.0
|
|
58
|
+
"@progress/kendo-angular-buttons": "24.1.0-develop.1",
|
|
59
|
+
"@progress/kendo-angular-common": "24.1.0-develop.1",
|
|
60
|
+
"@progress/kendo-angular-icons": "24.1.0-develop.1",
|
|
61
|
+
"@progress/kendo-angular-l10n": "24.1.0-develop.1",
|
|
62
62
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"tslib": "^2.3.1",
|
|
66
|
-
"@progress/kendo-angular-schematics": "24.0
|
|
66
|
+
"@progress/kendo-angular-schematics": "24.1.0-develop.1",
|
|
67
67
|
"@progress/kendo-popup-common": "1.9.5"
|
|
68
68
|
},
|
|
69
69
|
"schematics": "./schematics/collection.json",
|
|
@@ -9,7 +9,7 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DialogsModule', package: 'dialog', peerDependencies: {
|
|
11
11
|
// Peer dependency of buttons
|
|
12
|
-
'@progress/kendo-angular-popup': '24.0
|
|
12
|
+
'@progress/kendo-angular-popup': '24.1.0-develop.1',
|
|
13
13
|
// Peer dependency of icons
|
|
14
14
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
15
15
|
} });
|
|
@@ -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 { WindowSettings } from './models/window-settings';
|
|
7
6
|
import { WindowContainerService } from '../window/window-container.service';
|
|
8
7
|
import { WindowRef } from './models/window-ref';
|
|
@@ -13,16 +12,8 @@ import * as i0 from "@angular/core";
|
|
|
13
12
|
* 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))
|
|
14
13
|
*/
|
|
15
14
|
export declare class WindowService {
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
private resolver;
|
|
20
15
|
private containerService;
|
|
21
|
-
constructor(
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
resolver: ComponentFactoryResolver, containerService: WindowContainerService);
|
|
16
|
+
constructor(containerService: WindowContainerService);
|
|
26
17
|
/**
|
|
27
18
|
* Opens a Window component with the specified settings.
|
|
28
19
|
*
|