@progress/kendo-angular-dialog 24.0.0-develop.37 → 24.0.0-develop.39
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/codemods/libs/common/src/codemods/utils.js +1488 -0
- package/codemods/libs/dialog/codemods/v24/dialog-themeColor.js +30 -0
- package/codemods/libs/dialog/codemods/v24/dialogSettings-themeColor.js +22 -0
- package/codemods/libs/dialog/codemods/v24/window-themeColor.js +30 -0
- package/fesm2022/progress-kendo-angular-dialog.mjs +11 -7
- package/package-metadata.mjs +2 -2
- package/package.json +29 -7
- package/schematics/ngAdd/index.js +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = default_1;
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
9
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
10
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
11
|
+
function default_1(fileInfo, api) {
|
|
12
|
+
const filePath = fileInfo.path;
|
|
13
|
+
if (!(0, codemods_1.isApiChangeTarget)(filePath)) {
|
|
14
|
+
return fileInfo.source;
|
|
15
|
+
}
|
|
16
|
+
// Handle HTML files and inline templates
|
|
17
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeRemoval)(templateContent, 'kendo-dialog', 'themeColor'));
|
|
18
|
+
if (filePath.endsWith('.html')) {
|
|
19
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
20
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
21
|
+
return htmlResult;
|
|
22
|
+
}
|
|
23
|
+
return fileInfo.source;
|
|
24
|
+
}
|
|
25
|
+
// Handle TypeScript property transformations
|
|
26
|
+
const j = api.jscodeshift;
|
|
27
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
28
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dialog', 'DialogComponent', 'themeColor');
|
|
29
|
+
return rootSource.toSource();
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = default_1;
|
|
8
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
9
|
+
function default_1(fileInfo, api) {
|
|
10
|
+
const filePath = fileInfo.path;
|
|
11
|
+
if (!(0, codemods_1.isApiChangeTarget)(filePath)) {
|
|
12
|
+
return fileInfo.source;
|
|
13
|
+
}
|
|
14
|
+
if (filePath.endsWith('.html')) {
|
|
15
|
+
return fileInfo.source;
|
|
16
|
+
}
|
|
17
|
+
const j = api.jscodeshift;
|
|
18
|
+
const rootSource = j(fileInfo.source);
|
|
19
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dialog', 'DialogSettings', 'themeColor');
|
|
20
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dialog', 'WindowSettings', 'themeColor');
|
|
21
|
+
return rootSource.toSource();
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = default_1;
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
9
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
10
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
11
|
+
function default_1(fileInfo, api) {
|
|
12
|
+
const filePath = fileInfo.path;
|
|
13
|
+
if (!(0, codemods_1.isApiChangeTarget)(filePath)) {
|
|
14
|
+
return fileInfo.source;
|
|
15
|
+
}
|
|
16
|
+
// Handle HTML files and inline templates
|
|
17
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeRemoval)(templateContent, 'kendo-window', 'themeColor'));
|
|
18
|
+
if (filePath.endsWith('.html')) {
|
|
19
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
20
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
21
|
+
return htmlResult;
|
|
22
|
+
}
|
|
23
|
+
return fileInfo.source;
|
|
24
|
+
}
|
|
25
|
+
// Handle TypeScript property transformations
|
|
26
|
+
const j = api.jscodeshift;
|
|
27
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
28
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dialog', 'WindowComponent', 'themeColor');
|
|
29
|
+
return rootSource.toSource();
|
|
30
|
+
}
|
|
@@ -16,7 +16,7 @@ import { xIcon, windowRestoreIcon, windowIcon, windowMinimizeIcon } from '@progr
|
|
|
16
16
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
17
17
|
import { of, Subscription, Subject, merge } from 'rxjs';
|
|
18
18
|
import * as i1$2 from '@progress/kendo-angular-common';
|
|
19
|
-
import { setHTMLAttributes, getLicenseMessage, shouldShowValidationUI, isDocumentAvailable, normalizeKeys, Keys, focusableSelector, WatermarkOverlayComponent, DraggableDirective, isChanged } from '@progress/kendo-angular-common';
|
|
19
|
+
import { setHTMLAttributes, getLicenseMessage, shouldShowValidationUI, isDocumentAvailable, normalizeKeys, Keys, focusableSelector, WatermarkOverlayComponent, KENDO_WEBMCP_HOST, DraggableDirective, isChanged } from '@progress/kendo-angular-common';
|
|
20
20
|
import { offset, scrollPosition, positionWithScroll, getDocumentElement, getWindowViewPort } from '@progress/kendo-popup-common';
|
|
21
21
|
import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
|
|
22
22
|
|
|
@@ -513,8 +513,8 @@ const packageMetadata = {
|
|
|
513
513
|
productName: 'Kendo UI for Angular',
|
|
514
514
|
productCode: 'KENDOUIANGULAR',
|
|
515
515
|
productCodes: ['KENDOUIANGULAR'],
|
|
516
|
-
publishDate:
|
|
517
|
-
version: '24.0.0-develop.
|
|
516
|
+
publishDate: 1779209685,
|
|
517
|
+
version: '24.0.0-develop.39',
|
|
518
518
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
519
519
|
};
|
|
520
520
|
|
|
@@ -1248,7 +1248,8 @@ class DialogComponent {
|
|
|
1248
1248
|
{
|
|
1249
1249
|
provide: L10N_PREFIX,
|
|
1250
1250
|
useValue: 'kendo.dialog'
|
|
1251
|
-
}
|
|
1251
|
+
},
|
|
1252
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => DialogComponent) }
|
|
1252
1253
|
], 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: `
|
|
1253
1254
|
<ng-container
|
|
1254
1255
|
kendoDialogLocalizedMessages
|
|
@@ -1312,7 +1313,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1312
1313
|
{
|
|
1313
1314
|
provide: L10N_PREFIX,
|
|
1314
1315
|
useValue: 'kendo.dialog'
|
|
1315
|
-
}
|
|
1316
|
+
},
|
|
1317
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => DialogComponent) }
|
|
1316
1318
|
],
|
|
1317
1319
|
selector: 'kendo-dialog',
|
|
1318
1320
|
template: `
|
|
@@ -3545,7 +3547,8 @@ class WindowComponent {
|
|
|
3545
3547
|
{
|
|
3546
3548
|
provide: L10N_PREFIX,
|
|
3547
3549
|
useValue: 'kendo.window'
|
|
3548
|
-
}
|
|
3550
|
+
},
|
|
3551
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => WindowComponent) }
|
|
3549
3552
|
], queries: [{ propertyName: "titleBarContent", first: true, predicate: WindowTitleBarComponent, descendants: true }], viewQueries: [{ propertyName: "titleBarView", first: true, predicate: WindowTitleBarComponent, descendants: true }, { propertyName: "resizeHandles", predicate: ResizeHandleDirective, descendants: true }], exportAs: ["kendoWindow"], usesOnChanges: true, ngImport: i0, template: `
|
|
3550
3553
|
<ng-container kendoWindowLocalizedMessages
|
|
3551
3554
|
i18n-closeTitle="kendo.window.closeTitle|The title of the close button"
|
|
@@ -3617,7 +3620,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
3617
3620
|
{
|
|
3618
3621
|
provide: L10N_PREFIX,
|
|
3619
3622
|
useValue: 'kendo.window'
|
|
3620
|
-
}
|
|
3623
|
+
},
|
|
3624
|
+
{ provide: KENDO_WEBMCP_HOST, useExisting: forwardRef(() => WindowComponent) }
|
|
3621
3625
|
],
|
|
3622
3626
|
selector: 'kendo-window',
|
|
3623
3627
|
template: `
|
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.0-develop.
|
|
10
|
+
"publishDate": 1779209685,
|
|
11
|
+
"version": "24.0.0-develop.39",
|
|
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.0-develop.
|
|
3
|
+
"version": "24.0.0-develop.39",
|
|
4
4
|
"description": "Dialog Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -20,10 +20,32 @@
|
|
|
20
20
|
],
|
|
21
21
|
"@progress": {
|
|
22
22
|
"friendlyName": "Dialogs",
|
|
23
|
+
"migrations": {
|
|
24
|
+
"options": {
|
|
25
|
+
"parser": "tsx",
|
|
26
|
+
"pattern": "*.{ts,html,css,scss,sass,less}"
|
|
27
|
+
},
|
|
28
|
+
"codemods": {
|
|
29
|
+
"24": [
|
|
30
|
+
{
|
|
31
|
+
"description": "The Dialog's themeColor input property is removed.",
|
|
32
|
+
"file": "codemods/v24/dialog-themeColor.js"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"description": "The Window's themeColor input property is removed.",
|
|
36
|
+
"file": "codemods/v24/window-themeColor.js"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"description": "The themeColor property is removed from DialogSettings and WindowSettings.",
|
|
40
|
+
"file": "codemods/v24/dialogSettings-themeColor.js"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
23
45
|
"package": {
|
|
24
46
|
"productName": "Kendo UI for Angular",
|
|
25
47
|
"productCode": "KENDOUIANGULAR",
|
|
26
|
-
"publishDate":
|
|
48
|
+
"publishDate": 1779209685,
|
|
27
49
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
28
50
|
}
|
|
29
51
|
},
|
|
@@ -33,15 +55,15 @@
|
|
|
33
55
|
"@angular/core": "19 - 21",
|
|
34
56
|
"@angular/platform-browser": "19 - 21",
|
|
35
57
|
"@progress/kendo-licensing": "^1.11.0",
|
|
36
|
-
"@progress/kendo-angular-buttons": "24.0.0-develop.
|
|
37
|
-
"@progress/kendo-angular-common": "24.0.0-develop.
|
|
38
|
-
"@progress/kendo-angular-icons": "24.0.0-develop.
|
|
39
|
-
"@progress/kendo-angular-l10n": "24.0.0-develop.
|
|
58
|
+
"@progress/kendo-angular-buttons": "24.0.0-develop.39",
|
|
59
|
+
"@progress/kendo-angular-common": "24.0.0-develop.39",
|
|
60
|
+
"@progress/kendo-angular-icons": "24.0.0-develop.39",
|
|
61
|
+
"@progress/kendo-angular-l10n": "24.0.0-develop.39",
|
|
40
62
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
41
63
|
},
|
|
42
64
|
"dependencies": {
|
|
43
65
|
"tslib": "^2.3.1",
|
|
44
|
-
"@progress/kendo-angular-schematics": "24.0.0-develop.
|
|
66
|
+
"@progress/kendo-angular-schematics": "24.0.0-develop.39",
|
|
45
67
|
"@progress/kendo-popup-common": "1.9.5"
|
|
46
68
|
},
|
|
47
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.0-develop.
|
|
12
|
+
'@progress/kendo-angular-popup': '24.0.0-develop.39',
|
|
13
13
|
// Peer dependency of icons
|
|
14
14
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
15
15
|
} });
|