@progress/kendo-angular-scheduler 25.0.0-develop.26 → 25.0.0-develop.27
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 +15 -0
- package/codemods/libs/scheduler/codemods/v25/scheduler-messages-editorDateInputsDateTab.js +28 -0
- package/codemods/libs/scheduler/codemods/v25/scheduler-messages-editorDateInputsDateTabLabel.js +28 -0
- package/codemods/libs/scheduler/codemods/v25/scheduler-messages-editorDateInputsTimeTab.js +28 -0
- package/codemods/libs/scheduler/codemods/v25/scheduler-messages-editorDateInputsTimeTabLabel.js +28 -0
- package/codemods/libs/scheduler/codemods/v25/scheduler-messages-editorDateInputsToggle.js +28 -0
- package/codemods/libs/scheduler/codemods/v25/scheduler-messages-editorEventSeparateTimeZones.js +28 -0
- package/codemods/libs/scheduler/codemods/v25/scheduler-rendering-changes.js +47 -0
- package/codemods/libs/scheduler/codemods/v25/scheduler-viewselector-responsiveBreakpoint.js +28 -0
- package/codemods/libs/scheduler/codemods/v25/scheduler-viewselector-toolbarWidth.js +28 -0
- package/fesm2022/progress-kendo-angular-scheduler.mjs +4 -10
- package/package-metadata.mjs +2 -2
- package/package.json +54 -15
- package/schematics/ngAdd/index.js +3 -3
|
@@ -13,6 +13,7 @@ exports.writeInstructionMarker = writeInstructionMarker;
|
|
|
13
13
|
exports.isApiChangeTarget = isApiChangeTarget;
|
|
14
14
|
exports.isRenderingChangeTarget = isRenderingChangeTarget;
|
|
15
15
|
exports.executeCodemodTest = executeCodemodTest;
|
|
16
|
+
exports.removeAttributeFromDirectiveHost = removeAttributeFromDirectiveHost;
|
|
16
17
|
const tslib_1 = require("tslib");
|
|
17
18
|
/// <reference types="node" />
|
|
18
19
|
const fs = tslib_1.__importStar(require("fs"));
|
|
@@ -1486,3 +1487,17 @@ function executeCodemodTest(codemod, testDir, exampleFileName = 'example.ts', ex
|
|
|
1486
1487
|
catch { }
|
|
1487
1488
|
}
|
|
1488
1489
|
}
|
|
1490
|
+
function removeAttributeFromDirectiveHost(templateContent, directiveAttr, attrToRemove) {
|
|
1491
|
+
const escapedDirective = directiveAttr.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
1492
|
+
const escapedAttr = attrToRemove.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
1493
|
+
const boundPattern = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*${escapedDirective}[^>]*?)\\s+\\[${escapedAttr}\\]\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*?>)`, 'gi');
|
|
1494
|
+
const staticPattern = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*${escapedDirective}[^>]*?)\\s+${escapedAttr}\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*?>)`, 'gi');
|
|
1495
|
+
// Also match when the attribute appears before the directive
|
|
1496
|
+
const boundPatternBefore = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*?)\\s+\\[${escapedAttr}\\]\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*${escapedDirective}[^>]*?>)`, 'gi');
|
|
1497
|
+
const staticPatternBefore = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*?)\\s+${escapedAttr}\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*${escapedDirective}[^>]*?>)`, 'gi');
|
|
1498
|
+
let result = templateContent.replace(boundPattern, '$1$3');
|
|
1499
|
+
result = result.replace(staticPattern, '$1$3');
|
|
1500
|
+
result = result.replace(boundPatternBefore, '$1$3');
|
|
1501
|
+
result = result.replace(staticPatternBefore, '$1$3');
|
|
1502
|
+
return result;
|
|
1503
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeRemoval)(templateContent, 'kendo-scheduler-messages', 'editorDateInputsDateTab'));
|
|
17
|
+
if (filePath.endsWith('.html')) {
|
|
18
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
19
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
20
|
+
return htmlResult;
|
|
21
|
+
}
|
|
22
|
+
return fileInfo.source;
|
|
23
|
+
}
|
|
24
|
+
const j = api.jscodeshift;
|
|
25
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
26
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-scheduler', 'SchedulerCustomMessagesComponent', 'editorDateInputsDateTab');
|
|
27
|
+
return rootSource.toSource();
|
|
28
|
+
}
|
package/codemods/libs/scheduler/codemods/v25/scheduler-messages-editorDateInputsDateTabLabel.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeRemoval)(templateContent, 'kendo-scheduler-messages', 'editorDateInputsDateTabLabel'));
|
|
17
|
+
if (filePath.endsWith('.html')) {
|
|
18
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
19
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
20
|
+
return htmlResult;
|
|
21
|
+
}
|
|
22
|
+
return fileInfo.source;
|
|
23
|
+
}
|
|
24
|
+
const j = api.jscodeshift;
|
|
25
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
26
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-scheduler', 'SchedulerCustomMessagesComponent', 'editorDateInputsDateTabLabel');
|
|
27
|
+
return rootSource.toSource();
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeRemoval)(templateContent, 'kendo-scheduler-messages', 'editorDateInputsTimeTab'));
|
|
17
|
+
if (filePath.endsWith('.html')) {
|
|
18
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
19
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
20
|
+
return htmlResult;
|
|
21
|
+
}
|
|
22
|
+
return fileInfo.source;
|
|
23
|
+
}
|
|
24
|
+
const j = api.jscodeshift;
|
|
25
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
26
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-scheduler', 'SchedulerCustomMessagesComponent', 'editorDateInputsTimeTab');
|
|
27
|
+
return rootSource.toSource();
|
|
28
|
+
}
|
package/codemods/libs/scheduler/codemods/v25/scheduler-messages-editorDateInputsTimeTabLabel.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeRemoval)(templateContent, 'kendo-scheduler-messages', 'editorDateInputsTimeTabLabel'));
|
|
17
|
+
if (filePath.endsWith('.html')) {
|
|
18
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
19
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
20
|
+
return htmlResult;
|
|
21
|
+
}
|
|
22
|
+
return fileInfo.source;
|
|
23
|
+
}
|
|
24
|
+
const j = api.jscodeshift;
|
|
25
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
26
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-scheduler', 'SchedulerCustomMessagesComponent', 'editorDateInputsTimeTabLabel');
|
|
27
|
+
return rootSource.toSource();
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeRemoval)(templateContent, 'kendo-scheduler-messages', 'editorDateInputsToggle'));
|
|
17
|
+
if (filePath.endsWith('.html')) {
|
|
18
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
19
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
20
|
+
return htmlResult;
|
|
21
|
+
}
|
|
22
|
+
return fileInfo.source;
|
|
23
|
+
}
|
|
24
|
+
const j = api.jscodeshift;
|
|
25
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
26
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-scheduler', 'SchedulerCustomMessagesComponent', 'editorDateInputsToggle');
|
|
27
|
+
return rootSource.toSource();
|
|
28
|
+
}
|
package/codemods/libs/scheduler/codemods/v25/scheduler-messages-editorEventSeparateTimeZones.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeRemoval)(templateContent, 'kendo-scheduler-messages', 'editorEventSeparateTimeZones'));
|
|
17
|
+
if (filePath.endsWith('.html')) {
|
|
18
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
19
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
20
|
+
return htmlResult;
|
|
21
|
+
}
|
|
22
|
+
return fileInfo.source;
|
|
23
|
+
}
|
|
24
|
+
const j = api.jscodeshift;
|
|
25
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
26
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-scheduler', 'SchedulerCustomMessagesComponent', 'editorEventSeparateTimeZones');
|
|
27
|
+
return rootSource.toSource();
|
|
28
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.aiInstructions = void 0;
|
|
8
|
+
exports.default = default_1;
|
|
9
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
10
|
+
exports.aiInstructions = `Review your stylesheets, test files, and any code that references these Scheduler classes:
|
|
11
|
+
|
|
12
|
+
k-slot-cell — no longer rendered on major and minor time header slots when using horizontal resources. TimeLine views no longer add k-slot-cell to header cells.
|
|
13
|
+
Update selectors or tests that rely on .k-slot-cell in Scheduler time headers.
|
|
14
|
+
|
|
15
|
+
k-event-actions — removed. Replaced by k-event-recurrence-icon and k-event-continuation spans.
|
|
16
|
+
Replace .k-event-actions selectors with .k-event-recurrence-icon or .k-event-continuation as appropriate.
|
|
17
|
+
|
|
18
|
+
Edit form rendering — The Scheduler edit form rendering is revamped.
|
|
19
|
+
Update selectors or tests targeting the edit form structure.
|
|
20
|
+
|
|
21
|
+
Delete icon — removed from event rendering.
|
|
22
|
+
Remove selectors or tests targeting the delete icon in Scheduler events.
|
|
23
|
+
|
|
24
|
+
Day/Week view header cells — now use a two-line layout with separate day name and date number.
|
|
25
|
+
Update selectors targeting the day/week header cell content structure.
|
|
26
|
+
|
|
27
|
+
ToolbarViewSelectorComponent — now renders a DropDownButton in compact mode and SegmentedControl in default mode (replaces HTML select and button group).
|
|
28
|
+
Update selectors targeting .k-scheduler-views select or .k-button-group in the toolbar.
|
|
29
|
+
|
|
30
|
+
New Event button — The Toolbar now displays a New Event button when editing is enabled.
|
|
31
|
+
Update tests that assert toolbar element count or order.
|
|
32
|
+
|
|
33
|
+
Toolbar order — Now: New Event button, Today button, Navigation, ViewSelector.
|
|
34
|
+
Update tests or selectors that rely on a specific toolbar element order.
|
|
35
|
+
|
|
36
|
+
Year view — now uses a Popover instead of a Tooltip to display events for a day.
|
|
37
|
+
Update selectors or tests targeting tooltip elements in the Year view.`;
|
|
38
|
+
const classes = ['k-slot-cell', 'k-event-actions', 'k-scheduler-views'];
|
|
39
|
+
const pattern = (0, codemods_1.makePattern)(classes);
|
|
40
|
+
function default_1(fileInfo) {
|
|
41
|
+
if ((0, codemods_1.isRenderingChangeTarget)(fileInfo.path)) {
|
|
42
|
+
if (pattern.test(fileInfo.source)) {
|
|
43
|
+
(0, codemods_1.writeInstructionMarker)(exports.aiInstructions, __filename, fileInfo.path);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return fileInfo.source;
|
|
47
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.removeAttributeFromDirectiveHost)(templateContent, 'kendoSchedulerToolbarViewSelector', 'responsiveBreakpoint'));
|
|
17
|
+
if (filePath.endsWith('.html')) {
|
|
18
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
19
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
20
|
+
return htmlResult;
|
|
21
|
+
}
|
|
22
|
+
return fileInfo.source;
|
|
23
|
+
}
|
|
24
|
+
const j = api.jscodeshift;
|
|
25
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
26
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-scheduler', 'ToolbarViewSelectorComponent', 'responsiveBreakpoint');
|
|
27
|
+
return rootSource.toSource();
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.removeAttributeFromDirectiveHost)(templateContent, 'kendoSchedulerToolbarViewSelector', 'toolbarWidth'));
|
|
17
|
+
if (filePath.endsWith('.html')) {
|
|
18
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
19
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
20
|
+
return htmlResult;
|
|
21
|
+
}
|
|
22
|
+
return fileInfo.source;
|
|
23
|
+
}
|
|
24
|
+
const j = api.jscodeshift;
|
|
25
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
26
|
+
(0, codemods_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, '@progress/kendo-angular-scheduler', 'ToolbarViewSelectorComponent', 'toolbarWidth');
|
|
27
|
+
return rootSource.toSource();
|
|
28
|
+
}
|
|
@@ -43,8 +43,8 @@ const packageMetadata = {
|
|
|
43
43
|
productName: 'Kendo UI for Angular',
|
|
44
44
|
productCode: 'KENDOUIANGULAR',
|
|
45
45
|
productCodes: ['KENDOUIANGULAR'],
|
|
46
|
-
publishDate:
|
|
47
|
-
version: '25.0.0-develop.
|
|
46
|
+
publishDate: 1786387513,
|
|
47
|
+
version: '25.0.0-develop.27',
|
|
48
48
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -7500,7 +7500,7 @@ class ToolbarComponent {
|
|
|
7500
7500
|
}
|
|
7501
7501
|
}
|
|
7502
7502
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolbarComponent, deps: [{ token: ToolbarService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
7503
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ToolbarComponent, isStandalone: true, selector: "kendo-scheduler-toolbar", inputs: { selectedView: "selectedView", views: "views", dateRange: "dateRange", selectedDate: "selectedDate", template: "template", min: "min", max: "max", editable: "editable" }, outputs: { navigate: "navigate", toolbarWidthChange: "toolbarWidthChange", newEventClick: "newEventClick" }, host: { properties: { "class.k-scheduler-toolbar": "this.hostClasses", "class.k-toolbar": "this.hostClasses", "
|
|
7503
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ToolbarComponent, isStandalone: true, selector: "kendo-scheduler-toolbar", inputs: { selectedView: "selectedView", views: "views", dateRange: "dateRange", selectedDate: "selectedDate", template: "template", min: "min", max: "max", editable: "editable" }, outputs: { navigate: "navigate", toolbarWidthChange: "toolbarWidthChange", newEventClick: "newEventClick" }, host: { properties: { "class.k-scheduler-toolbar": "this.hostClasses", "class.k-toolbar": "this.hostClasses", "attr.role": "this.toolbarRole", "attr.aria-label": "this.toolbarAriaLabel" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
7504
7504
|
@if (template) {
|
|
7505
7505
|
<ng-template
|
|
7506
7506
|
[ngTemplateOutlet]="template.templateRef"
|
|
@@ -7590,9 +7590,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
|
|
|
7590
7590
|
}, {
|
|
7591
7591
|
type: HostBinding,
|
|
7592
7592
|
args: ['class.k-toolbar']
|
|
7593
|
-
}, {
|
|
7594
|
-
type: HostBinding,
|
|
7595
|
-
args: ['class.k-toolbar-flat']
|
|
7596
7593
|
}], toolbarRole: [{
|
|
7597
7594
|
type: HostBinding,
|
|
7598
7595
|
args: ['attr.role']
|
|
@@ -16743,7 +16740,7 @@ class ViewFooterComponent {
|
|
|
16743
16740
|
this.itemClick.emit(item);
|
|
16744
16741
|
}
|
|
16745
16742
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ViewFooterComponent, deps: [{ token: ViewStateService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
16746
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ViewFooterComponent, isStandalone: true, selector: "[viewFooter]", inputs: { items: "items" }, outputs: { itemClick: "itemClick" }, host: { properties: { "class.k-scheduler-footer": "this.hostClasses", "class.k-toolbar": "this.hostClasses", "
|
|
16743
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ViewFooterComponent, isStandalone: true, selector: "[viewFooter]", inputs: { items: "items" }, outputs: { itemClick: "itemClick" }, host: { properties: { "class.k-scheduler-footer": "this.hostClasses", "class.k-toolbar": "this.hostClasses", "attr.role": "this.toolbarRole", "attr.aria-label": "this.toolbarAriaLabel", "style.justify-content": "this.inlineJustifyContentStyle" } }, ngImport: i0, template: `
|
|
16747
16744
|
<span>
|
|
16748
16745
|
@for (item of items; track item) {
|
|
16749
16746
|
<button
|
|
@@ -16791,9 +16788,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
|
|
|
16791
16788
|
}, {
|
|
16792
16789
|
type: HostBinding,
|
|
16793
16790
|
args: ['class.k-toolbar']
|
|
16794
|
-
}, {
|
|
16795
|
-
type: HostBinding,
|
|
16796
|
-
args: ['class.k-toolbar-flat']
|
|
16797
16791
|
}], toolbarRole: [{
|
|
16798
16792
|
type: HostBinding,
|
|
16799
16793
|
args: ['attr.role']
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "25.0.0-develop.
|
|
10
|
+
"publishDate": 1786387513,
|
|
11
|
+
"version": "25.0.0-develop.27",
|
|
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-scheduler",
|
|
3
|
-
"version": "25.0.0-develop.
|
|
3
|
+
"version": "25.0.0-develop.27",
|
|
4
4
|
"description": "Kendo UI Scheduler Angular - Outlook or Google-style angular scheduler calendar. Full-featured and customizable embedded scheduling from the creator developers trust for professional UI components.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -35,13 +35,52 @@
|
|
|
35
35
|
"file": "codemods/v24/scheduler-rendering-changes.js",
|
|
36
36
|
"instructionsOnly": true
|
|
37
37
|
}
|
|
38
|
+
],
|
|
39
|
+
"25": [
|
|
40
|
+
{
|
|
41
|
+
"description": "The editorDateInputsToggle message property is removed.",
|
|
42
|
+
"file": "codemods/v25/scheduler-messages-editorDateInputsToggle.js"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"description": "The editorEventSeparateTimeZones message property is removed.",
|
|
46
|
+
"file": "codemods/v25/scheduler-messages-editorEventSeparateTimeZones.js"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"description": "The editorDateInputsDateTab message property is removed.",
|
|
50
|
+
"file": "codemods/v25/scheduler-messages-editorDateInputsDateTab.js"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"description": "The editorDateInputsDateTabLabel message property is removed.",
|
|
54
|
+
"file": "codemods/v25/scheduler-messages-editorDateInputsDateTabLabel.js"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"description": "The editorDateInputsTimeTab message property is removed.",
|
|
58
|
+
"file": "codemods/v25/scheduler-messages-editorDateInputsTimeTab.js"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"description": "The editorDateInputsTimeTabLabel message property is removed.",
|
|
62
|
+
"file": "codemods/v25/scheduler-messages-editorDateInputsTimeTabLabel.js"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"description": "The responsiveBreakpoint property of kendoSchedulerToolbarViewSelector is removed. Set displayMode manually for responsive behavior.",
|
|
66
|
+
"file": "codemods/v25/scheduler-viewselector-responsiveBreakpoint.js"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"description": "The toolbarWidth property of kendoSchedulerToolbarViewSelector is removed. Set displayMode manually for responsive behavior.",
|
|
70
|
+
"file": "codemods/v25/scheduler-viewselector-toolbarWidth.js"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"description": "The Scheduler has rendering changes that may affect custom styling.",
|
|
74
|
+
"file": "codemods/v25/scheduler-rendering-changes.js",
|
|
75
|
+
"instructionsOnly": true
|
|
76
|
+
}
|
|
38
77
|
]
|
|
39
78
|
}
|
|
40
79
|
},
|
|
41
80
|
"package": {
|
|
42
81
|
"productName": "Kendo UI for Angular",
|
|
43
82
|
"productCode": "KENDOUIANGULAR",
|
|
44
|
-
"publishDate":
|
|
83
|
+
"publishDate": 1786387513,
|
|
45
84
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
46
85
|
}
|
|
47
86
|
},
|
|
@@ -54,23 +93,23 @@
|
|
|
54
93
|
"@progress/kendo-data-query": "^1.7.3",
|
|
55
94
|
"@progress/kendo-drawing": "^1.25.0",
|
|
56
95
|
"@progress/kendo-licensing": "^1.11.0",
|
|
57
|
-
"@progress/kendo-angular-tooltip": "25.0.0-develop.
|
|
58
|
-
"@progress/kendo-angular-buttons": "25.0.0-develop.
|
|
59
|
-
"@progress/kendo-angular-common": "25.0.0-develop.
|
|
60
|
-
"@progress/kendo-angular-dateinputs": "25.0.0-develop.
|
|
61
|
-
"@progress/kendo-angular-dialog": "25.0.0-develop.
|
|
62
|
-
"@progress/kendo-angular-dropdowns": "25.0.0-develop.
|
|
63
|
-
"@progress/kendo-angular-icons": "25.0.0-develop.
|
|
64
|
-
"@progress/kendo-angular-inputs": "25.0.0-develop.
|
|
65
|
-
"@progress/kendo-angular-intl": "25.0.0-develop.
|
|
66
|
-
"@progress/kendo-angular-l10n": "25.0.0-develop.
|
|
67
|
-
"@progress/kendo-angular-label": "25.0.0-develop.
|
|
68
|
-
"@progress/kendo-angular-popup": "25.0.0-develop.
|
|
96
|
+
"@progress/kendo-angular-tooltip": "25.0.0-develop.27",
|
|
97
|
+
"@progress/kendo-angular-buttons": "25.0.0-develop.27",
|
|
98
|
+
"@progress/kendo-angular-common": "25.0.0-develop.27",
|
|
99
|
+
"@progress/kendo-angular-dateinputs": "25.0.0-develop.27",
|
|
100
|
+
"@progress/kendo-angular-dialog": "25.0.0-develop.27",
|
|
101
|
+
"@progress/kendo-angular-dropdowns": "25.0.0-develop.27",
|
|
102
|
+
"@progress/kendo-angular-icons": "25.0.0-develop.27",
|
|
103
|
+
"@progress/kendo-angular-inputs": "25.0.0-develop.27",
|
|
104
|
+
"@progress/kendo-angular-intl": "25.0.0-develop.27",
|
|
105
|
+
"@progress/kendo-angular-l10n": "25.0.0-develop.27",
|
|
106
|
+
"@progress/kendo-angular-label": "25.0.0-develop.27",
|
|
107
|
+
"@progress/kendo-angular-popup": "25.0.0-develop.27",
|
|
69
108
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
70
109
|
},
|
|
71
110
|
"dependencies": {
|
|
72
111
|
"tslib": "^2.3.1",
|
|
73
|
-
"@progress/kendo-angular-schematics": "25.0.0-develop.
|
|
112
|
+
"@progress/kendo-angular-schematics": "25.0.0-develop.27",
|
|
74
113
|
"@progress/kendo-date-math": "^1.3.2",
|
|
75
114
|
"@progress/kendo-draggable": "^3.0.2",
|
|
76
115
|
"@progress/kendo-file-saver": "^1.0.7",
|
|
@@ -9,10 +9,10 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'SchedulerModule', package: 'scheduler', peerDependencies: {
|
|
11
11
|
// peer deps of the dropdowns
|
|
12
|
-
'@progress/kendo-angular-treeview': '25.0.0-develop.
|
|
13
|
-
'@progress/kendo-angular-navigation': '25.0.0-develop.
|
|
12
|
+
'@progress/kendo-angular-treeview': '25.0.0-develop.27',
|
|
13
|
+
'@progress/kendo-angular-navigation': '25.0.0-develop.27',
|
|
14
14
|
// peer dependency of kendo-angular-inputs
|
|
15
|
-
'@progress/kendo-angular-dialog': '25.0.0-develop.
|
|
15
|
+
'@progress/kendo-angular-dialog': '25.0.0-develop.27',
|
|
16
16
|
// peer dependency of kendo-angular-icons
|
|
17
17
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
18
18
|
} });
|