@progress/kendo-angular-layout 24.0.0-develop.3 → 24.0.0-develop.4
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.
|
@@ -52,7 +52,8 @@ export declare class DrawerComponent implements OnDestroy {
|
|
|
52
52
|
hostClasses: boolean;
|
|
53
53
|
get startPositionClass(): boolean;
|
|
54
54
|
get endPositionClass(): boolean;
|
|
55
|
-
get
|
|
55
|
+
get overlayMarginLeft(): string;
|
|
56
|
+
get overlayMarginRight(): string;
|
|
56
57
|
get flexStyles(): number;
|
|
57
58
|
/**
|
|
58
59
|
* Specifies the mode in which the Drawer displays.
|
|
@@ -191,6 +192,7 @@ export declare class DrawerComponent implements OnDestroy {
|
|
|
191
192
|
onSelect(e: DrawerListSelectEvent): void;
|
|
192
193
|
private onAnimationEnd;
|
|
193
194
|
private setExpanded;
|
|
195
|
+
private shouldApplyOverlayMargin;
|
|
194
196
|
private animate;
|
|
195
197
|
private createPlayer;
|
|
196
198
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerComponent, never>;
|
|
@@ -29,8 +29,8 @@ const packageMetadata = {
|
|
|
29
29
|
productName: 'Kendo UI for Angular',
|
|
30
30
|
productCode: 'KENDOUIANGULAR',
|
|
31
31
|
productCodes: ['KENDOUIANGULAR'],
|
|
32
|
-
publishDate:
|
|
33
|
-
version: '24.0.0-develop.
|
|
32
|
+
publishDate: 1776957267,
|
|
33
|
+
version: '24.0.0-develop.4',
|
|
34
34
|
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'
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -5344,20 +5344,20 @@ function collapsePush(duration, width) {
|
|
|
5344
5344
|
/**
|
|
5345
5345
|
* @hidden
|
|
5346
5346
|
*/
|
|
5347
|
-
function expandRTLOverlay(duration) {
|
|
5347
|
+
function expandRTLOverlay(duration, width) {
|
|
5348
5348
|
return [
|
|
5349
|
-
style({
|
|
5350
|
-
animate(`${duration}ms ease-in`, style({ overflow: 'hidden',
|
|
5349
|
+
style({ marginRight: `-${width}px` }),
|
|
5350
|
+
animate(`${duration}ms ease-in`, style({ overflow: 'hidden', marginRight: `0px` }))
|
|
5351
5351
|
];
|
|
5352
5352
|
}
|
|
5353
5353
|
/**
|
|
5354
5354
|
* @hidden
|
|
5355
5355
|
*/
|
|
5356
|
-
function expandOverlay(duration, position) {
|
|
5357
|
-
const
|
|
5356
|
+
function expandOverlay(duration, width, position) {
|
|
5357
|
+
const marginProp = position !== 'end' ? 'marginLeft' : 'marginRight';
|
|
5358
5358
|
return [
|
|
5359
|
-
style({
|
|
5360
|
-
animate(`${duration}ms ease-in`, style({ overflow: 'hidden',
|
|
5359
|
+
style({ [marginProp]: `-${width}px` }),
|
|
5360
|
+
animate(`${duration}ms ease-in`, style({ overflow: 'hidden', [marginProp]: `0px` }))
|
|
5361
5361
|
];
|
|
5362
5362
|
}
|
|
5363
5363
|
/**
|
|
@@ -5372,20 +5372,20 @@ function miniCollapseOverlay(duration, width, miniWidth) {
|
|
|
5372
5372
|
/**
|
|
5373
5373
|
* @hidden
|
|
5374
5374
|
*/
|
|
5375
|
-
function collapseOverlay(duration, position) {
|
|
5376
|
-
const
|
|
5375
|
+
function collapseOverlay(duration, width, position) {
|
|
5376
|
+
const marginProp = position !== 'end' ? 'marginLeft' : 'marginRight';
|
|
5377
5377
|
return [
|
|
5378
|
-
style({
|
|
5379
|
-
animate(`${duration}ms ease-in`, style({ overflow: 'hidden',
|
|
5378
|
+
style({ [marginProp]: `0px` }),
|
|
5379
|
+
animate(`${duration}ms ease-in`, style({ overflow: 'hidden', [marginProp]: `-${width}px` }))
|
|
5380
5380
|
];
|
|
5381
5381
|
}
|
|
5382
5382
|
/**
|
|
5383
5383
|
* @hidden
|
|
5384
5384
|
*/
|
|
5385
|
-
function collapseRTLOverlay(duration) {
|
|
5385
|
+
function collapseRTLOverlay(duration, width) {
|
|
5386
5386
|
return [
|
|
5387
|
-
style({
|
|
5388
|
-
animate(`${duration}ms ease-in`, style({ overflow: 'hidden',
|
|
5387
|
+
style({ marginRight: `0px` }),
|
|
5388
|
+
animate(`${duration}ms ease-in`, style({ overflow: 'hidden', marginRight: `-${width}px` }))
|
|
5389
5389
|
];
|
|
5390
5390
|
}
|
|
5391
5391
|
/**
|
|
@@ -5406,7 +5406,7 @@ function expandAnimation(settings) {
|
|
|
5406
5406
|
return expandPush(duration, width);
|
|
5407
5407
|
}
|
|
5408
5408
|
if (!mini && mode === 'overlay') {
|
|
5409
|
-
return rtl ? expandRTLOverlay(duration) : expandOverlay(duration, position);
|
|
5409
|
+
return rtl ? expandRTLOverlay(duration, width) : expandOverlay(duration, width, position);
|
|
5410
5410
|
}
|
|
5411
5411
|
if (mini && mode === 'overlay') {
|
|
5412
5412
|
return miniExpandOverlay(duration, width, miniWidth);
|
|
@@ -5430,7 +5430,7 @@ function collapseAnimation(settings) {
|
|
|
5430
5430
|
return collapsePush(duration, width);
|
|
5431
5431
|
}
|
|
5432
5432
|
if (!mini && mode === 'overlay') {
|
|
5433
|
-
return rtl ? collapseRTLOverlay(duration) : collapseOverlay(duration, position);
|
|
5433
|
+
return rtl ? collapseRTLOverlay(duration, width) : collapseOverlay(duration, width, position);
|
|
5434
5434
|
}
|
|
5435
5435
|
if (mini && mode === 'overlay') {
|
|
5436
5436
|
return miniCollapseOverlay(duration, width, miniWidth);
|
|
@@ -5776,7 +5776,7 @@ class DrawerListComponent {
|
|
|
5776
5776
|
}
|
|
5777
5777
|
}
|
|
5778
5778
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DrawerListComponent, deps: [{ token: DrawerService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5779
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DrawerListComponent, isStandalone: true, selector: "[kendoDrawerList]", inputs: { itemTemplate: "itemTemplate", mini: "mini", expanded: "expanded", view: "view" }, outputs: { select: "select", viewChange: "viewChange" }, viewQueries: [{ propertyName: "items", predicate: DrawerItemComponent, descendants: true, read: ElementRef }], ngImport: i0, template: "\n @for (v of view; track identifyItem(idx, v); let idx = $index) {\n @if (!v.item.separator) {\n <li kendoDrawerItem\n class=\"k-drawer-item {{expanded ? ' k-level-' + v.level : ''}}\"\n role=\"menuitem\"\n [viewItem]=\"v\"\n [index]=\"idx\"\n [mini]=\"mini\"\n [expanded]=\"expanded\"\n [itemTemplate]=\"itemTemplate\"\n [attr.data-kendo-drawer-index]=\"v.index\"\n [ngClass]=\"v.item.cssClass\"\n [ngStyle]=\"v.item.cssStyle\"\n [tabindex]=\"v.index === 0 ? '0' : '-1'\">\n </li>\n }\n @if (v.item.separator) {\n <li\n role=\"separator\"\n class=\"k-drawer-item k-drawer-separator\"\n [ngClass]=\"v.item.cssClass\"\n [ngStyle]=\"v.item.cssStyle\">\n
|
|
5779
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DrawerListComponent, isStandalone: true, selector: "[kendoDrawerList]", inputs: { itemTemplate: "itemTemplate", mini: "mini", expanded: "expanded", view: "view" }, outputs: { select: "select", viewChange: "viewChange" }, viewQueries: [{ propertyName: "items", predicate: DrawerItemComponent, descendants: true, read: ElementRef }], ngImport: i0, template: "\n @for (v of view; track identifyItem(idx, v); let idx = $index) {\n @if (!v.item.separator) {\n <li kendoDrawerItem\n class=\"k-drawer-item {{expanded ? ' k-level-' + v.level : ''}}\"\n role=\"menuitem\"\n [viewItem]=\"v\"\n [index]=\"idx\"\n [mini]=\"mini\"\n [expanded]=\"expanded\"\n [itemTemplate]=\"itemTemplate\"\n [attr.data-kendo-drawer-index]=\"v.index\"\n [ngClass]=\"v.item.cssClass\"\n [ngStyle]=\"v.item.cssStyle\"\n [tabindex]=\"v.index === 0 ? '0' : '-1'\">\n </li>\n }\n @if (v.item.separator) {\n <li\n role=\"separator\"\n class=\"k-drawer-item k-drawer-separator\"\n [ngClass]=\"v.item.cssClass\"\n [ngStyle]=\"v.item.cssStyle\">\n </li>\n }\n }\n ", isInline: true, dependencies: [{ kind: "component", type: DrawerItemComponent, selector: "[kendoDrawerItem]", inputs: ["viewItem", "index", "itemTemplate", "mini", "expanded", "disabled", "cssClass", "cssStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
5780
5780
|
}
|
|
5781
5781
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DrawerListComponent, decorators: [{
|
|
5782
5782
|
type: Component,
|
|
@@ -5805,7 +5805,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
5805
5805
|
class="k-drawer-item k-drawer-separator"
|
|
5806
5806
|
[ngClass]="v.item.cssClass"
|
|
5807
5807
|
[ngStyle]="v.item.cssStyle">
|
|
5808
|
-
|
|
5809
5808
|
</li>
|
|
5810
5809
|
}
|
|
5811
5810
|
}
|
|
@@ -5873,14 +5872,23 @@ class DrawerComponent {
|
|
|
5873
5872
|
get endPositionClass() {
|
|
5874
5873
|
return this.position === 'end';
|
|
5875
5874
|
}
|
|
5876
|
-
get
|
|
5877
|
-
if (this.
|
|
5878
|
-
return;
|
|
5875
|
+
get overlayMarginLeft() {
|
|
5876
|
+
if (!this.shouldApplyOverlayMargin()) {
|
|
5877
|
+
return null;
|
|
5878
|
+
}
|
|
5879
|
+
if (this.rtl || this.position === 'end') {
|
|
5880
|
+
return null;
|
|
5881
|
+
}
|
|
5882
|
+
return `-${this.drawerWidth}px`;
|
|
5883
|
+
}
|
|
5884
|
+
get overlayMarginRight() {
|
|
5885
|
+
if (!this.shouldApplyOverlayMargin()) {
|
|
5886
|
+
return null;
|
|
5879
5887
|
}
|
|
5880
|
-
if (this.
|
|
5881
|
-
return
|
|
5888
|
+
if (!this.rtl && this.position !== 'end') {
|
|
5889
|
+
return null;
|
|
5882
5890
|
}
|
|
5883
|
-
return
|
|
5891
|
+
return `-${this.drawerWidth}px`;
|
|
5884
5892
|
}
|
|
5885
5893
|
get flexStyles() {
|
|
5886
5894
|
if (this.mode === 'overlay') {
|
|
@@ -6095,6 +6103,9 @@ class DrawerComponent {
|
|
|
6095
6103
|
this.expanded = value;
|
|
6096
6104
|
this.expandedChange.emit(value);
|
|
6097
6105
|
}
|
|
6106
|
+
shouldApplyOverlayMargin() {
|
|
6107
|
+
return this.mode !== 'push' && !this.expanded && !this.minimized;
|
|
6108
|
+
}
|
|
6098
6109
|
animate(expanded) {
|
|
6099
6110
|
const settings = {
|
|
6100
6111
|
mode: this.mode,
|
|
@@ -6122,7 +6133,7 @@ class DrawerComponent {
|
|
|
6122
6133
|
return player;
|
|
6123
6134
|
}
|
|
6124
6135
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DrawerComponent, deps: [{ token: i0.ElementRef }, { token: i1$2.AnimationBuilder }, { token: i1.LocalizationService }, { token: DrawerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6125
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DrawerComponent, isStandalone: true, selector: "kendo-drawer", inputs: { mode: "mode", position: "position", mini: "mini", expanded: "expanded", width: "width", miniWidth: "miniWidth", autoCollapse: "autoCollapse", items: "items", isItemExpanded: "isItemExpanded", animation: "animation" }, outputs: { expand: "expand", collapse: "collapse", select: "select", expandedChange: "expandedChange" }, host: { properties: { "class.k-drawer": "this.hostClasses", "class.k-drawer-start": "this.startPositionClass", "class.k-drawer-end": "this.endPositionClass", "style.
|
|
6136
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: DrawerComponent, isStandalone: true, selector: "kendo-drawer", inputs: { mode: "mode", position: "position", mini: "mini", expanded: "expanded", width: "width", miniWidth: "miniWidth", autoCollapse: "autoCollapse", items: "items", isItemExpanded: "isItemExpanded", animation: "animation" }, outputs: { expand: "expand", collapse: "collapse", select: "select", expandedChange: "expandedChange" }, host: { properties: { "class.k-drawer": "this.hostClasses", "class.k-drawer-start": "this.startPositionClass", "class.k-drawer-end": "this.endPositionClass", "style.marginLeft": "this.overlayMarginLeft", "style.marginRight": "this.overlayMarginRight", "style.flexBasis.px": "this.flexStyles", "attr.dir": "this.direction" } }, providers: [
|
|
6126
6137
|
LocalizationService,
|
|
6127
6138
|
DrawerService,
|
|
6128
6139
|
{
|
|
@@ -6229,9 +6240,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
6229
6240
|
}], endPositionClass: [{
|
|
6230
6241
|
type: HostBinding,
|
|
6231
6242
|
args: ['class.k-drawer-end']
|
|
6232
|
-
}],
|
|
6243
|
+
}], overlayMarginLeft: [{
|
|
6244
|
+
type: HostBinding,
|
|
6245
|
+
args: ['style.marginLeft']
|
|
6246
|
+
}], overlayMarginRight: [{
|
|
6233
6247
|
type: HostBinding,
|
|
6234
|
-
args: ['style.
|
|
6248
|
+
args: ['style.marginRight']
|
|
6235
6249
|
}], flexStyles: [{
|
|
6236
6250
|
type: HostBinding,
|
|
6237
6251
|
args: ['style.flexBasis.px']
|
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": 1776957267,
|
|
11
|
+
"version": "24.0.0-develop.4",
|
|
12
12
|
"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"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-layout",
|
|
3
|
-
"version": "24.0.0-develop.
|
|
3
|
+
"version": "24.0.0-develop.4",
|
|
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",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"package": {
|
|
64
64
|
"productName": "Kendo UI for Angular",
|
|
65
65
|
"productCode": "KENDOUIANGULAR",
|
|
66
|
-
"publishDate":
|
|
66
|
+
"publishDate": 1776957267,
|
|
67
67
|
"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"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
@@ -73,17 +73,17 @@
|
|
|
73
73
|
"@angular/core": "19 - 21",
|
|
74
74
|
"@angular/platform-browser": "19 - 21",
|
|
75
75
|
"@progress/kendo-licensing": "^1.11.0",
|
|
76
|
-
"@progress/kendo-angular-common": "24.0.0-develop.
|
|
77
|
-
"@progress/kendo-angular-l10n": "24.0.0-develop.
|
|
78
|
-
"@progress/kendo-angular-progressbar": "24.0.0-develop.
|
|
79
|
-
"@progress/kendo-angular-icons": "24.0.0-develop.
|
|
80
|
-
"@progress/kendo-angular-buttons": "24.0.0-develop.
|
|
81
|
-
"@progress/kendo-angular-intl": "24.0.0-develop.
|
|
76
|
+
"@progress/kendo-angular-common": "24.0.0-develop.4",
|
|
77
|
+
"@progress/kendo-angular-l10n": "24.0.0-develop.4",
|
|
78
|
+
"@progress/kendo-angular-progressbar": "24.0.0-develop.4",
|
|
79
|
+
"@progress/kendo-angular-icons": "24.0.0-develop.4",
|
|
80
|
+
"@progress/kendo-angular-buttons": "24.0.0-develop.4",
|
|
81
|
+
"@progress/kendo-angular-intl": "24.0.0-develop.4",
|
|
82
82
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"tslib": "^2.3.1",
|
|
86
|
-
"@progress/kendo-angular-schematics": "24.0.0-develop.
|
|
86
|
+
"@progress/kendo-angular-schematics": "24.0.0-develop.4",
|
|
87
87
|
"@progress/kendo-draggable": "^3.0.2"
|
|
88
88
|
},
|
|
89
89
|
"schematics": "./schematics/collection.json",
|