@progress/kendo-angular-layout 6.4.1 → 6.5.0-dev.202202091626
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/dist/cdn/js/kendo-angular-layout.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/common/util.js +4 -0
- package/dist/es/expansionpanel/expansionpanel.component.js +1 -0
- package/dist/es/gridlayout.module.js +31 -0
- package/dist/es/layout.module.js +5 -1
- package/dist/es/layouts/grid-layout.component.js +150 -0
- package/dist/es/layouts/gridlayout-item.component.js +52 -0
- package/dist/es/layouts/models/gridlayout-gap-settings.js +4 -0
- package/dist/es/layouts/models/gridlayout-row-col-size.js +4 -0
- package/dist/es/layouts/models/layout-align-settings.js +4 -0
- package/dist/es/layouts/models/layout-horizontal-align.js +4 -0
- package/dist/es/layouts/models/layout-vertical-align.js +4 -0
- package/dist/es/layouts/models.js +4 -0
- package/dist/es/layouts/stack-layout.component.js +171 -0
- package/dist/es/layouts/util.js +87 -0
- package/dist/es/main.js +7 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/splitter/splitter-bar.component.js +4 -2
- package/dist/es/splitter/splitter.component.js +25 -3
- package/dist/es/stacklayout.module.js +29 -0
- package/dist/es2015/common/orientation.d.ts +1 -1
- package/dist/es2015/common/util.d.ts +4 -0
- package/dist/es2015/common/util.js +4 -0
- package/dist/es2015/expansionpanel/expansionpanel.component.js +1 -0
- package/dist/es2015/gridlayout.module.d.ts +10 -0
- package/dist/es2015/gridlayout.module.js +30 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/layout.module.js +5 -1
- package/dist/es2015/layouts/grid-layout.component.d.ts +47 -0
- package/dist/es2015/layouts/grid-layout.component.js +139 -0
- package/dist/es2015/layouts/gridlayout-item.component.d.ts +33 -0
- package/dist/es2015/layouts/gridlayout-item.component.js +53 -0
- package/dist/es2015/layouts/models/gridlayout-gap-settings.d.ts +17 -0
- package/dist/es2015/layouts/models/gridlayout-gap-settings.js +4 -0
- package/dist/es2015/layouts/models/gridlayout-row-col-size.d.ts +22 -0
- package/dist/es2015/layouts/models/gridlayout-row-col-size.js +4 -0
- package/dist/es2015/layouts/models/layout-align-settings.d.ts +18 -0
- package/dist/es2015/layouts/models/layout-align-settings.js +4 -0
- package/dist/es2015/layouts/models/layout-horizontal-align.d.ts +8 -0
- package/dist/es2015/layouts/models/layout-horizontal-align.js +4 -0
- package/dist/es2015/layouts/models/layout-vertical-align.d.ts +8 -0
- package/dist/es2015/layouts/models/layout-vertical-align.js +4 -0
- package/dist/es2015/layouts/models.d.ts +10 -0
- package/dist/es2015/layouts/models.js +4 -0
- package/dist/es2015/layouts/stack-layout.component.d.ts +47 -0
- package/dist/es2015/layouts/stack-layout.component.js +152 -0
- package/dist/es2015/layouts/util.d.ts +38 -0
- package/dist/es2015/layouts/util.js +87 -0
- package/dist/es2015/main.d.ts +7 -0
- package/dist/es2015/main.js +7 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/splitter/splitter-bar.component.d.ts +3 -2
- package/dist/es2015/splitter/splitter-bar.component.js +4 -2
- package/dist/es2015/splitter/splitter-pane.component.d.ts +2 -2
- package/dist/es2015/splitter/splitter.component.d.ts +6 -3
- package/dist/es2015/splitter/splitter.component.js +21 -3
- package/dist/es2015/stacklayout.module.d.ts +10 -0
- package/dist/es2015/stacklayout.module.js +28 -0
- package/dist/fesm2015/index.js +707 -243
- package/dist/fesm5/index.js +878 -379
- package/dist/npm/common/util.js +4 -0
- package/dist/npm/expansionpanel/expansionpanel.component.js +1 -0
- package/dist/npm/gridlayout.module.js +33 -0
- package/dist/npm/layout.module.js +5 -1
- package/dist/npm/layouts/grid-layout.component.js +152 -0
- package/dist/npm/layouts/gridlayout-item.component.js +54 -0
- package/dist/npm/layouts/models/gridlayout-gap-settings.js +6 -0
- package/dist/npm/layouts/models/gridlayout-row-col-size.js +6 -0
- package/dist/npm/layouts/models/layout-align-settings.js +6 -0
- package/dist/npm/layouts/models/layout-horizontal-align.js +6 -0
- package/dist/npm/layouts/models/layout-vertical-align.js +6 -0
- package/dist/npm/layouts/models.js +6 -0
- package/dist/npm/layouts/stack-layout.component.js +173 -0
- package/dist/npm/layouts/util.js +89 -0
- package/dist/npm/main.js +12 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/splitter/splitter-bar.component.js +3 -1
- package/dist/npm/splitter/splitter.component.js +24 -2
- package/dist/npm/stacklayout.module.js +31 -0
- package/dist/systemjs/kendo-angular-layout.js +1 -1
- package/package.json +10 -8
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, ElementRef, EventEmitter, ContentChildren, Host, HostBinding, Inject, Input, Optional, Output, QueryList } from '@angular/core';
|
|
6
|
+
import { Component, ElementRef, EventEmitter, ContentChildren, Host, HostBinding, Inject, Input, Optional, Output, QueryList, ViewChildren, Renderer2 } from '@angular/core';
|
|
7
7
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
9
9
|
import { packageMetadata } from '../package-metadata';
|
|
10
10
|
import { SplitterPaneComponent } from './splitter-pane.component';
|
|
11
|
+
import { SplitterBarComponent } from './splitter-bar.component';
|
|
11
12
|
import { SplitterService } from './splitter.service';
|
|
13
|
+
import { isPresent } from '../common/util';
|
|
12
14
|
/**
|
|
13
15
|
* Represents the [Kendo UI Splitter component for Angular]({% slug overview_splitter %}).
|
|
14
16
|
*
|
|
@@ -45,10 +47,11 @@ import { SplitterService } from './splitter.service';
|
|
|
45
47
|
* ```
|
|
46
48
|
*/
|
|
47
49
|
var SplitterComponent = /** @class */ (function () {
|
|
48
|
-
function SplitterComponent(element, splitterService, localization, enclosingPane) {
|
|
50
|
+
function SplitterComponent(element, splitterService, localization, renderer, enclosingPane) {
|
|
49
51
|
this.element = element;
|
|
50
52
|
this.splitterService = splitterService;
|
|
51
53
|
this.localization = localization;
|
|
54
|
+
this.renderer = renderer;
|
|
52
55
|
this.enclosingPane = enclosingPane;
|
|
53
56
|
/**
|
|
54
57
|
* Specifies the orientation of the panes within the Splitter.
|
|
@@ -94,6 +97,19 @@ var SplitterComponent = /** @class */ (function () {
|
|
|
94
97
|
enumerable: true,
|
|
95
98
|
configurable: true
|
|
96
99
|
});
|
|
100
|
+
Object.defineProperty(SplitterComponent.prototype, "splitbars", {
|
|
101
|
+
set: function (splitbars) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
if (!isPresent(splitbars) || !isPresent(this.panes)) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
var components = this.panes.toArray().concat(splitbars.toArray()).sort(function (a, b) { return a.order - b.order; });
|
|
107
|
+
var elements = components.map(function (component) { return component.element.nativeElement; });
|
|
108
|
+
elements.forEach(function (element) { return _this.renderer.appendChild(_this.element.nativeElement, element); });
|
|
109
|
+
},
|
|
110
|
+
enumerable: true,
|
|
111
|
+
configurable: true
|
|
112
|
+
});
|
|
97
113
|
SplitterComponent.prototype.ngAfterContentInit = function () {
|
|
98
114
|
this.reconfigure();
|
|
99
115
|
};
|
|
@@ -175,6 +191,11 @@ var SplitterComponent = /** @class */ (function () {
|
|
|
175
191
|
HostBinding('attr.role'),
|
|
176
192
|
tslib_1.__metadata("design:type", String)
|
|
177
193
|
], SplitterComponent.prototype, "ariaRole", void 0);
|
|
194
|
+
tslib_1.__decorate([
|
|
195
|
+
ViewChildren(SplitterBarComponent),
|
|
196
|
+
tslib_1.__metadata("design:type", QueryList),
|
|
197
|
+
tslib_1.__metadata("design:paramtypes", [QueryList])
|
|
198
|
+
], SplitterComponent.prototype, "splitbars", null);
|
|
178
199
|
tslib_1.__decorate([
|
|
179
200
|
ContentChildren(SplitterPaneComponent),
|
|
180
201
|
tslib_1.__metadata("design:type", QueryList)
|
|
@@ -193,10 +214,11 @@ var SplitterComponent = /** @class */ (function () {
|
|
|
193
214
|
],
|
|
194
215
|
template: "\n <ng-content select=\"kendo-splitter-pane\"></ng-content>\n <ng-container *ngFor=\"\n let pane of panes;\n let index = index;\n let last = last;\n \">\n <kendo-splitter-bar\n kendoDraggable\n *ngIf=\"!last\"\n [index]=\"index\"\n [orientation]=\"orientation\">\n </kendo-splitter-bar>\n </ng-container>\n "
|
|
195
216
|
}),
|
|
196
|
-
tslib_1.__param(
|
|
217
|
+
tslib_1.__param(4, Optional()), tslib_1.__param(4, Host()), tslib_1.__param(4, Inject(SplitterPaneComponent)),
|
|
197
218
|
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
198
219
|
SplitterService,
|
|
199
220
|
LocalizationService,
|
|
221
|
+
Renderer2,
|
|
200
222
|
SplitterPaneComponent])
|
|
201
223
|
], SplitterComponent);
|
|
202
224
|
return SplitterComponent;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as tslib_1 from "tslib";
|
|
6
|
+
import { NgModule } from '@angular/core';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import { StackLayoutComponent } from './layouts/stack-layout.component';
|
|
9
|
+
var exportedModules = [
|
|
10
|
+
StackLayoutComponent
|
|
11
|
+
];
|
|
12
|
+
var declarations = exportedModules.slice();
|
|
13
|
+
/**
|
|
14
|
+
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
15
|
+
* definition for the StackLayout component.
|
|
16
|
+
*/
|
|
17
|
+
var StackLayoutModule = /** @class */ (function () {
|
|
18
|
+
function StackLayoutModule() {
|
|
19
|
+
}
|
|
20
|
+
StackLayoutModule = tslib_1.__decorate([
|
|
21
|
+
NgModule({
|
|
22
|
+
declarations: [declarations],
|
|
23
|
+
exports: [exportedModules],
|
|
24
|
+
imports: [CommonModule]
|
|
25
|
+
})
|
|
26
|
+
], StackLayoutModule);
|
|
27
|
+
return StackLayoutModule;
|
|
28
|
+
}());
|
|
29
|
+
export { StackLayoutModule };
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Specifies the orientation of
|
|
6
|
+
* Specifies the orientation of layouts in different scenarios.
|
|
7
7
|
*/
|
|
8
8
|
export declare type Orientation = 'horizontal' | 'vertical';
|
|
@@ -38,3 +38,7 @@ export declare const getStylingClasses: (componentType: any, stylingOption: stri
|
|
|
38
38
|
* @hidden
|
|
39
39
|
*/
|
|
40
40
|
export declare const mapShapeToRounded: (shape: AvatarShape) => AvatarRounded;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
export declare const isNumber: (value: string | number) => boolean;
|
|
@@ -80,4 +80,8 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
|
|
|
80
80
|
* @hidden
|
|
81
81
|
*/
|
|
82
82
|
export const mapShapeToRounded = (shape) => SHAPE_TO_ROUNDED[shape] || null;
|
|
83
|
+
/**
|
|
84
|
+
* @hidden
|
|
85
|
+
*/
|
|
86
|
+
export const isNumber = (value) => typeof value === 'number' && isFinite(value);
|
|
83
87
|
export { ɵ0 };
|
|
@@ -149,6 +149,7 @@ let ExpansionPanelComponent = class ExpansionPanelComponent {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
ngOnInit() {
|
|
152
|
+
this.renderer.removeAttribute(this.hostElement.nativeElement, 'title');
|
|
152
153
|
this.subscriptions = this.localizationService.changes.subscribe(({ rtl }) => { this.direction = rtl ? 'rtl' : 'ltr'; });
|
|
153
154
|
}
|
|
154
155
|
ngAfterViewInit() {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
7
|
+
* definition for the GridLayout component.
|
|
8
|
+
*/
|
|
9
|
+
export declare class GridLayoutModule {
|
|
10
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as tslib_1 from "tslib";
|
|
6
|
+
import { NgModule } from '@angular/core';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import { GridLayoutComponent } from './layouts/grid-layout.component';
|
|
9
|
+
import { GridLayoutItemComponent } from './layouts/gridlayout-item.component';
|
|
10
|
+
const exportedModules = [
|
|
11
|
+
GridLayoutComponent,
|
|
12
|
+
GridLayoutItemComponent
|
|
13
|
+
];
|
|
14
|
+
const declarations = [
|
|
15
|
+
...exportedModules
|
|
16
|
+
];
|
|
17
|
+
/**
|
|
18
|
+
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
19
|
+
* definition for the GridLayout component.
|
|
20
|
+
*/
|
|
21
|
+
let GridLayoutModule = class GridLayoutModule {
|
|
22
|
+
};
|
|
23
|
+
GridLayoutModule = tslib_1.__decorate([
|
|
24
|
+
NgModule({
|
|
25
|
+
declarations: [declarations],
|
|
26
|
+
exports: [exportedModules],
|
|
27
|
+
imports: [CommonModule]
|
|
28
|
+
})
|
|
29
|
+
], GridLayoutModule);
|
|
30
|
+
export { GridLayoutModule };
|