@progress/kendo-angular-layout 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.
- package/codemods/utils.js +805 -394
- package/codemods/v19/tabstrip-mousescrollspeed.js +11 -15
- package/esm2022/avatar/avatar.component.mjs +63 -59
- package/esm2022/card/card-actions.component.mjs +51 -41
- package/esm2022/drawer/drawer-container.component.mjs +10 -8
- package/esm2022/drawer/drawer.component.mjs +69 -55
- package/esm2022/drawer/item.component.mjs +79 -69
- package/esm2022/drawer/list.component.mjs +30 -27
- package/esm2022/expansionpanel/expansionpanel.component.mjs +75 -65
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/panelbar/panelbar-item.component.mjs +169 -135
- package/esm2022/panelbar/panelbar.component.mjs +58 -47
- package/esm2022/splitter/splitter-bar.component.mjs +34 -27
- package/esm2022/splitter/splitter-pane.component.mjs +16 -10
- package/esm2022/splitter/splitter.component.mjs +29 -31
- package/esm2022/stepper/list.component.mjs +33 -33
- package/esm2022/stepper/step.component.mjs +141 -111
- package/esm2022/stepper/stepper.component.mjs +59 -55
- package/esm2022/stepper/stepper.service.mjs +2 -2
- package/esm2022/tabstrip/rendering/tab.component.mjs +49 -39
- package/esm2022/tabstrip/tabstrip.component.mjs +251 -233
- package/esm2022/tabstrip/tabstrip.service.mjs +2 -2
- package/esm2022/tabstrip/util.mjs +1 -1
- package/esm2022/tilelayout/keyboard-navigation.service.mjs +2 -2
- package/esm2022/tilelayout/tilelayout-item.component.mjs +28 -23
- package/esm2022/tilelayout/tilelayout.component.mjs +24 -21
- package/esm2022/timeline/models/events-order.mjs +5 -0
- package/esm2022/timeline/timeline-card.component.mjs +185 -151
- package/esm2022/timeline/timeline-horizontal.component.mjs +200 -192
- package/esm2022/timeline/timeline-vertical.component.mjs +79 -67
- package/esm2022/timeline/timeline.component.mjs +61 -34
- package/fesm2022/progress-kendo-angular-layout.mjs +1781 -1514
- package/index.d.ts +1 -0
- package/package.json +10 -11
- package/timeline/models/events-order.d.ts +10 -0
- package/timeline/timeline.component.d.ts +12 -1
- package/codemods/template-transformer/index.js +0 -93
package/index.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export { TimelineModelFields } from './timeline/models/model-fields';
|
|
|
92
92
|
export { TimelineEvent } from './timeline/models/timeline-event';
|
|
93
93
|
export { AnchorTarget } from './timeline/models/anchor-target';
|
|
94
94
|
export { NavigationDirection } from './timeline/events/navigation-direction';
|
|
95
|
+
export { TimelineEventsOrder } from './timeline/models/events-order';
|
|
95
96
|
export { TimelineCardHeaderTemplateDirective } from "./timeline/templates/timeline-card-header.directive";
|
|
96
97
|
export { TimelineCardBodyTemplateDirective } from "./timeline/templates/timeline-card-body.directive";
|
|
97
98
|
export { TimelineCardActionsTemplateDirective } from "./timeline/templates/timeline-card-actions.directive";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-layout",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.0-develop.10",
|
|
4
4
|
"description": "Kendo UI for Angular Layout Package - a collection of components to create professional application layoyts",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"package": {
|
|
51
51
|
"productName": "Kendo UI for Angular",
|
|
52
52
|
"productCode": "KENDOUIANGULAR",
|
|
53
|
-
"publishDate":
|
|
53
|
+
"publishDate": 1764592921,
|
|
54
54
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
@@ -60,19 +60,18 @@
|
|
|
60
60
|
"@angular/core": "18 - 21",
|
|
61
61
|
"@angular/platform-browser": "18 - 21",
|
|
62
62
|
"@progress/kendo-licensing": "^1.7.0",
|
|
63
|
-
"@progress/kendo-angular-common": "21.
|
|
64
|
-
"@progress/kendo-angular-l10n": "21.
|
|
65
|
-
"@progress/kendo-angular-progressbar": "21.
|
|
66
|
-
"@progress/kendo-angular-icons": "21.
|
|
67
|
-
"@progress/kendo-angular-buttons": "21.
|
|
68
|
-
"@progress/kendo-angular-intl": "21.
|
|
63
|
+
"@progress/kendo-angular-common": "21.2.0-develop.10",
|
|
64
|
+
"@progress/kendo-angular-l10n": "21.2.0-develop.10",
|
|
65
|
+
"@progress/kendo-angular-progressbar": "21.2.0-develop.10",
|
|
66
|
+
"@progress/kendo-angular-icons": "21.2.0-develop.10",
|
|
67
|
+
"@progress/kendo-angular-buttons": "21.2.0-develop.10",
|
|
68
|
+
"@progress/kendo-angular-intl": "21.2.0-develop.10",
|
|
69
69
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"tslib": "^2.3.1",
|
|
73
|
-
"@progress/kendo-angular-schematics": "21.
|
|
74
|
-
"@progress/kendo-draggable": "^3.0.2"
|
|
75
|
-
"node-html-parser": "^7.0.1"
|
|
73
|
+
"@progress/kendo-angular-schematics": "21.2.0-develop.10",
|
|
74
|
+
"@progress/kendo-draggable": "^3.0.2"
|
|
76
75
|
},
|
|
77
76
|
"schematics": "./schematics/collection.json",
|
|
78
77
|
"module": "fesm2022/progress-kendo-angular-layout.mjs",
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* Specifies the order of the Timeline events.
|
|
7
|
+
* `asc` - chronological order
|
|
8
|
+
* `desc` - reverse-chronological order
|
|
9
|
+
*/
|
|
10
|
+
export type TimelineEventsOrder = 'asc' | 'desc';
|
|
@@ -12,6 +12,7 @@ import { NavigationDirection } from './events/navigation-direction';
|
|
|
12
12
|
import { TimelineCardBodyTemplateDirective } from './templates/timeline-card-body.directive';
|
|
13
13
|
import { TimelineCardHeaderTemplateDirective } from './templates/timeline-card-header.directive';
|
|
14
14
|
import { TimelineCardActionsTemplateDirective } from './templates/timeline-card-actions.directive';
|
|
15
|
+
import { TimelineEventsOrder } from './models/events-order';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
/**
|
|
17
18
|
* Represents the [Kendo UI Timeline component for Angular]({% slug overview_timeline %}).
|
|
@@ -69,6 +70,15 @@ export declare class TimelineComponent implements AfterContentInit, OnDestroy {
|
|
|
69
70
|
* @default true
|
|
70
71
|
*/
|
|
71
72
|
animation: boolean | number;
|
|
73
|
+
/**
|
|
74
|
+
* Specifies the order of the Timeline events.
|
|
75
|
+
* `asc` - chronological order
|
|
76
|
+
* `desc` - reverse-chronological order
|
|
77
|
+
*
|
|
78
|
+
* @default 'asc'
|
|
79
|
+
*/
|
|
80
|
+
set eventsOrder(order: TimelineEventsOrder);
|
|
81
|
+
get eventsOrder(): TimelineEventsOrder;
|
|
72
82
|
/**
|
|
73
83
|
* Sets a specific width for the event.
|
|
74
84
|
* This setting is supported only in `vertical` mode.
|
|
@@ -153,6 +163,7 @@ export declare class TimelineComponent implements AfterContentInit, OnDestroy {
|
|
|
153
163
|
private _eventHeight;
|
|
154
164
|
private _dateFormat;
|
|
155
165
|
private originalData;
|
|
166
|
+
private _eventsOrder;
|
|
156
167
|
private subscriptions;
|
|
157
168
|
constructor(timelineService: TimelineService);
|
|
158
169
|
ngAfterContentInit(): void;
|
|
@@ -184,5 +195,5 @@ export declare class TimelineComponent implements AfterContentInit, OnDestroy {
|
|
|
184
195
|
collapse(index: number): void;
|
|
185
196
|
private initTemplates;
|
|
186
197
|
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineComponent, never>;
|
|
187
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineComponent, "kendo-timeline", ["kendoTimeline"], { "events": { "alias": "events"; "required": false; }; "modelFields": { "alias": "modelFields"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "alterMode": { "alias": "alterMode"; "required": false; }; "collapsibleEvents": { "alias": "collapsibleEvents"; "required": false; }; "navigable": { "alias": "navigable"; "required": false; }; "showDateLabels": { "alias": "showDateLabels"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "eventWidth": { "alias": "eventWidth"; "required": false; }; "eventHeight": { "alias": "eventHeight"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; }, { "onToggle": "onToggle"; "onActionClick": "onActionClick"; "onNavigate": "onNavigate"; }, ["cardHeaderTemplate", "cardBodyTemplate", "cardActionsTemplate"], never, true, never>;
|
|
198
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineComponent, "kendo-timeline", ["kendoTimeline"], { "events": { "alias": "events"; "required": false; }; "modelFields": { "alias": "modelFields"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "alterMode": { "alias": "alterMode"; "required": false; }; "collapsibleEvents": { "alias": "collapsibleEvents"; "required": false; }; "navigable": { "alias": "navigable"; "required": false; }; "showDateLabels": { "alias": "showDateLabels"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "eventsOrder": { "alias": "eventsOrder"; "required": false; }; "eventWidth": { "alias": "eventWidth"; "required": false; }; "eventHeight": { "alias": "eventHeight"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; }, { "onToggle": "onToggle"; "onActionClick": "onActionClick"; "onNavigate": "onNavigate"; }, ["cardHeaderTemplate", "cardBodyTemplate", "cardActionsTemplate"], never, true, never>;
|
|
188
199
|
}
|
|
@@ -1,93 +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
|
-
function templateTransformer(root, j, ...processFns) {
|
|
10
|
-
root
|
|
11
|
-
.find(j.ClassDeclaration)
|
|
12
|
-
.forEach(classPath => {
|
|
13
|
-
// Skip if no decorators
|
|
14
|
-
const classNode = classPath.node;
|
|
15
|
-
if (!classNode.decorators || !classNode.decorators.length)
|
|
16
|
-
return;
|
|
17
|
-
// Find Component decorator
|
|
18
|
-
const componentDecorator = classNode.decorators.find((decorator) => {
|
|
19
|
-
if (decorator.expression && decorator.expression.type === 'CallExpression') {
|
|
20
|
-
const callee = decorator.expression.callee;
|
|
21
|
-
// Handle direct Component identifier
|
|
22
|
-
if (callee.type === 'Identifier' && callee.name === 'Component') {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
// Handle angular.core.Component or similar
|
|
26
|
-
if (callee.type === 'MemberExpression' &&
|
|
27
|
-
callee.property &&
|
|
28
|
-
callee.property.type === 'Identifier' &&
|
|
29
|
-
callee.property.name === 'Component') {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return false;
|
|
34
|
-
});
|
|
35
|
-
if (!componentDecorator || !componentDecorator.expression)
|
|
36
|
-
return;
|
|
37
|
-
const expression = componentDecorator.expression;
|
|
38
|
-
if (expression.type !== 'CallExpression' || !expression.arguments.length)
|
|
39
|
-
return;
|
|
40
|
-
const componentOptions = expression.arguments[0];
|
|
41
|
-
if (componentOptions.type !== 'ObjectExpression')
|
|
42
|
-
return;
|
|
43
|
-
// Find template and templateUrl properties
|
|
44
|
-
const props = componentOptions.properties || [];
|
|
45
|
-
const templateProp = props.find((prop) => (prop.key.type === 'Identifier' && prop.key.name === 'template') ||
|
|
46
|
-
(prop.key.type === 'StringLiteral' && prop.key.value === 'template'));
|
|
47
|
-
// const templateUrlProp = props.find((prop: any) =>
|
|
48
|
-
// (prop.key.type === 'Identifier' && prop.key.name === 'templateUrl') ||
|
|
49
|
-
// (prop.key.type === 'StringLiteral' && prop.key.value === 'templateUrl')
|
|
50
|
-
// );
|
|
51
|
-
// Process inline template
|
|
52
|
-
if (templateProp) {
|
|
53
|
-
// Extract template based on node type
|
|
54
|
-
let originalTemplate;
|
|
55
|
-
if (templateProp.value.type === 'StringLiteral' || templateProp.value.type === 'Literal') {
|
|
56
|
-
originalTemplate = templateProp.value.value;
|
|
57
|
-
}
|
|
58
|
-
else if (templateProp.value.type === 'TemplateLiteral') {
|
|
59
|
-
// For template literals, join quasis
|
|
60
|
-
if (templateProp.value.quasis && templateProp.value.quasis.length) {
|
|
61
|
-
originalTemplate = templateProp.value.quasis
|
|
62
|
-
.map((q) => q.value.cooked || q.value.raw)
|
|
63
|
-
.join('');
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
console.warn('Could not process TemplateLiteral properly');
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
console.warn(`Unsupported template type: ${templateProp.value.type}`);
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
const root = (0, node_html_parser_1.parse)(originalTemplate);
|
|
75
|
-
processFns.forEach(fn => {
|
|
76
|
-
fn(root);
|
|
77
|
-
});
|
|
78
|
-
// Transform template using Angular compiler
|
|
79
|
-
const transformedTemplate = root.toString();
|
|
80
|
-
if (transformedTemplate !== originalTemplate) {
|
|
81
|
-
// Update template property
|
|
82
|
-
if (templateProp.value.type === 'TemplateLiteral') {
|
|
83
|
-
// For template literals, create a new template literal
|
|
84
|
-
templateProp.value = j.templateLiteral([j.templateElement({ cooked: transformedTemplate, raw: transformedTemplate }, true)], []);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
// For string literals, update the value
|
|
88
|
-
templateProp.value.value = transformedTemplate;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}
|