@progress/kendo-angular-dateinputs 21.1.1-develop.2 → 21.2.0-develop.10

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.
Files changed (32) hide show
  1. package/codemods/utils.js +805 -394
  2. package/codemods/v19/datepicker-subtitle.js +9 -12
  3. package/codemods/v19/datepicker-title.js +9 -12
  4. package/codemods/v19/daterange-popup-subtitle.js +9 -12
  5. package/codemods/v19/daterange-popup-title.js +9 -12
  6. package/codemods/v19/datetimepicker-subtitle.js +9 -12
  7. package/codemods/v19/datetimepicker-title.js +9 -12
  8. package/codemods/v19/timepicker-subtitle.js +9 -12
  9. package/codemods/v19/timepicker-title.js +9 -12
  10. package/esm2022/calendar/calendar.component.mjs +224 -223
  11. package/esm2022/calendar/footer.component.mjs +31 -29
  12. package/esm2022/calendar/header.component.mjs +157 -145
  13. package/esm2022/calendar/horizontal-view-list.component.mjs +139 -123
  14. package/esm2022/calendar/multiview-calendar.component.mjs +112 -109
  15. package/esm2022/calendar/navigation.component.mjs +55 -49
  16. package/esm2022/calendar/services/navigation.service.mjs +2 -2
  17. package/esm2022/calendar/view-list.component.mjs +148 -135
  18. package/esm2022/calendar/view.component.mjs +107 -89
  19. package/esm2022/common/utils.mjs +2 -2
  20. package/esm2022/dateinput/dateinput.component.mjs +142 -137
  21. package/esm2022/datepicker/datepicker.component.mjs +317 -305
  22. package/esm2022/daterange/date-range-input.mjs +2 -2
  23. package/esm2022/daterange/date-range-popup.component.mjs +266 -255
  24. package/esm2022/daterange/date-range.component.mjs +12 -9
  25. package/esm2022/datetimepicker/datetimepicker.component.mjs +679 -659
  26. package/esm2022/package-metadata.mjs +2 -2
  27. package/esm2022/timepicker/timelist.component.mjs +57 -53
  28. package/esm2022/timepicker/timepicker.component.mjs +381 -369
  29. package/esm2022/timepicker/timeselector.component.mjs +140 -125
  30. package/fesm2022/progress-kendo-angular-dateinputs.mjs +2956 -2796
  31. package/package.json +12 -13
  32. package/codemods/template-transformer/index.js +0 -96
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dateinputs",
3
- "version": "21.1.1-develop.2",
3
+ "version": "21.2.0-develop.10",
4
4
  "description": "Kendo UI for Angular Date Inputs Package - Everything you need to add date selection functionality to apps (DatePicker, TimePicker, DateInput, DateRangePicker, DateTimePicker, Calendar, and MultiViewCalendar).",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -79,7 +79,7 @@
79
79
  "package": {
80
80
  "productName": "Kendo UI for Angular",
81
81
  "productCode": "KENDOUIANGULAR",
82
- "publishDate": 1763729109,
82
+ "publishDate": 1764592958,
83
83
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
84
84
  }
85
85
  },
@@ -90,23 +90,22 @@
90
90
  "@angular/forms": "18 - 21",
91
91
  "@angular/platform-browser": "18 - 21",
92
92
  "@progress/kendo-licensing": "^1.7.0",
93
- "@progress/kendo-angular-buttons": "21.1.1-develop.2",
94
- "@progress/kendo-angular-common": "21.1.1-develop.2",
95
- "@progress/kendo-angular-utils": "21.1.1-develop.2",
96
- "@progress/kendo-angular-intl": "21.1.1-develop.2",
97
- "@progress/kendo-angular-l10n": "21.1.1-develop.2",
98
- "@progress/kendo-angular-icons": "21.1.1-develop.2",
99
- "@progress/kendo-angular-popup": "21.1.1-develop.2",
100
- "@progress/kendo-angular-navigation": "21.1.1-develop.2",
93
+ "@progress/kendo-angular-buttons": "21.2.0-develop.10",
94
+ "@progress/kendo-angular-common": "21.2.0-develop.10",
95
+ "@progress/kendo-angular-utils": "21.2.0-develop.10",
96
+ "@progress/kendo-angular-intl": "21.2.0-develop.10",
97
+ "@progress/kendo-angular-l10n": "21.2.0-develop.10",
98
+ "@progress/kendo-angular-icons": "21.2.0-develop.10",
99
+ "@progress/kendo-angular-popup": "21.2.0-develop.10",
100
+ "@progress/kendo-angular-navigation": "21.2.0-develop.10",
101
101
  "rxjs": "^6.5.3 || ^7.0.0"
102
102
  },
103
103
  "dependencies": {
104
104
  "tslib": "^2.3.1",
105
- "@progress/kendo-angular-schematics": "21.1.1-develop.2",
105
+ "@progress/kendo-angular-schematics": "21.2.0-develop.10",
106
106
  "@progress/kendo-common": "^1.0.1",
107
107
  "@progress/kendo-date-math": "^1.1.0",
108
- "@progress/kendo-dateinputs-common": "^0.4.7",
109
- "node-html-parser": "^7.0.1"
108
+ "@progress/kendo-dateinputs-common": "^0.4.7"
110
109
  },
111
110
  "schematics": "./schematics/collection.json",
112
111
  "module": "fesm2022/progress-kendo-angular-dateinputs.mjs",
@@ -1,96 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2025 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.templateTransformer = templateTransformer;
8
- const node_html_parser_1 = require("node-html-parser");
9
- const utils_1 = require("../utils");
10
- function templateTransformer(root, j, ...processFns) {
11
- root
12
- .find(j.ClassDeclaration)
13
- .forEach(classPath => {
14
- // Skip if no decorators
15
- const classNode = classPath.node;
16
- if (!classNode.decorators || !classNode.decorators.length)
17
- return;
18
- // Find Component decorator
19
- const componentDecorator = classNode.decorators.find((decorator) => {
20
- if (decorator.expression && decorator.expression.type === 'CallExpression') {
21
- const callee = decorator.expression.callee;
22
- // Handle direct Component identifier
23
- if (callee.type === 'Identifier' && callee.name === 'Component') {
24
- return true;
25
- }
26
- // Handle angular.core.Component or similar
27
- if (callee.type === 'MemberExpression' &&
28
- callee.property &&
29
- callee.property.type === 'Identifier' &&
30
- callee.property.name === 'Component') {
31
- return true;
32
- }
33
- }
34
- return false;
35
- });
36
- if (!componentDecorator || !componentDecorator.expression)
37
- return;
38
- const expression = componentDecorator.expression;
39
- if (expression.type !== 'CallExpression' || !expression.arguments.length)
40
- return;
41
- const componentOptions = expression.arguments[0];
42
- if (componentOptions.type !== 'ObjectExpression')
43
- return;
44
- // Find template and templateUrl properties
45
- const props = componentOptions.properties || [];
46
- const templateProp = props.find((prop) => (prop.key.type === 'Identifier' && prop.key.name === 'template') ||
47
- (prop.key.type === 'StringLiteral' && prop.key.value === 'template'));
48
- // const templateUrlProp = props.find((prop: any) =>
49
- // (prop.key.type === 'Identifier' && prop.key.name === 'templateUrl') ||
50
- // (prop.key.type === 'StringLiteral' && prop.key.value === 'templateUrl')
51
- // );
52
- // Process inline template
53
- if (templateProp) {
54
- // Extract template based on node type
55
- let originalTemplate;
56
- if (templateProp.value.type === 'StringLiteral' || templateProp.value.type === 'Literal') {
57
- originalTemplate = templateProp.value.value;
58
- }
59
- else if (templateProp.value.type === 'TemplateLiteral') {
60
- // For template literals, join quasis
61
- if (templateProp.value.quasis && templateProp.value.quasis.length) {
62
- originalTemplate = templateProp.value.quasis
63
- .map((q) => q.value.cooked || q.value.raw)
64
- .join('');
65
- }
66
- else {
67
- console.warn('Could not process TemplateLiteral properly');
68
- return;
69
- }
70
- }
71
- else {
72
- console.warn(`Unsupported template type: ${templateProp.value.type}`);
73
- return;
74
- }
75
- if ((0, utils_1.hasKendoInTemplate)(originalTemplate)) {
76
- const root = (0, node_html_parser_1.parse)(originalTemplate, { comment: true, blockTextElements: utils_1.blockTextElements });
77
- processFns.forEach(fn => {
78
- fn(root);
79
- });
80
- // Transform template using Angular compiler
81
- const transformedTemplate = root.toString();
82
- if (transformedTemplate !== originalTemplate) {
83
- // Update template property
84
- if (templateProp.value.type === 'TemplateLiteral') {
85
- // For template literals, create a new template literal
86
- templateProp.value = j.templateLiteral([j.templateElement({ cooked: transformedTemplate, raw: transformedTemplate }, true)], []);
87
- }
88
- else {
89
- // For string literals, update the value
90
- templateProp.value.value = transformedTemplate;
91
- }
92
- }
93
- }
94
- }
95
- });
96
- }