@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
|
@@ -10,7 +10,9 @@ var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
|
10
10
|
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
11
11
|
var package_metadata_1 = require("../package-metadata");
|
|
12
12
|
var splitter_pane_component_1 = require("./splitter-pane.component");
|
|
13
|
+
var splitter_bar_component_1 = require("./splitter-bar.component");
|
|
13
14
|
var splitter_service_1 = require("./splitter.service");
|
|
15
|
+
var util_1 = require("../common/util");
|
|
14
16
|
/**
|
|
15
17
|
* Represents the [Kendo UI Splitter component for Angular]({% slug overview_splitter %}).
|
|
16
18
|
*
|
|
@@ -47,10 +49,11 @@ var splitter_service_1 = require("./splitter.service");
|
|
|
47
49
|
* ```
|
|
48
50
|
*/
|
|
49
51
|
var SplitterComponent = /** @class */ (function () {
|
|
50
|
-
function SplitterComponent(element, splitterService, localization, enclosingPane) {
|
|
52
|
+
function SplitterComponent(element, splitterService, localization, renderer, enclosingPane) {
|
|
51
53
|
this.element = element;
|
|
52
54
|
this.splitterService = splitterService;
|
|
53
55
|
this.localization = localization;
|
|
56
|
+
this.renderer = renderer;
|
|
54
57
|
this.enclosingPane = enclosingPane;
|
|
55
58
|
/**
|
|
56
59
|
* Specifies the orientation of the panes within the Splitter.
|
|
@@ -96,6 +99,19 @@ var SplitterComponent = /** @class */ (function () {
|
|
|
96
99
|
enumerable: true,
|
|
97
100
|
configurable: true
|
|
98
101
|
});
|
|
102
|
+
Object.defineProperty(SplitterComponent.prototype, "splitbars", {
|
|
103
|
+
set: function (splitbars) {
|
|
104
|
+
var _this = this;
|
|
105
|
+
if (!util_1.isPresent(splitbars) || !util_1.isPresent(this.panes)) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
var components = this.panes.toArray().concat(splitbars.toArray()).sort(function (a, b) { return a.order - b.order; });
|
|
109
|
+
var elements = components.map(function (component) { return component.element.nativeElement; });
|
|
110
|
+
elements.forEach(function (element) { return _this.renderer.appendChild(_this.element.nativeElement, element); });
|
|
111
|
+
},
|
|
112
|
+
enumerable: true,
|
|
113
|
+
configurable: true
|
|
114
|
+
});
|
|
99
115
|
SplitterComponent.prototype.ngAfterContentInit = function () {
|
|
100
116
|
this.reconfigure();
|
|
101
117
|
};
|
|
@@ -177,6 +193,11 @@ var SplitterComponent = /** @class */ (function () {
|
|
|
177
193
|
core_1.HostBinding('attr.role'),
|
|
178
194
|
tslib_1.__metadata("design:type", String)
|
|
179
195
|
], SplitterComponent.prototype, "ariaRole", void 0);
|
|
196
|
+
tslib_1.__decorate([
|
|
197
|
+
core_1.ViewChildren(splitter_bar_component_1.SplitterBarComponent),
|
|
198
|
+
tslib_1.__metadata("design:type", core_1.QueryList),
|
|
199
|
+
tslib_1.__metadata("design:paramtypes", [core_1.QueryList])
|
|
200
|
+
], SplitterComponent.prototype, "splitbars", null);
|
|
180
201
|
tslib_1.__decorate([
|
|
181
202
|
core_1.ContentChildren(splitter_pane_component_1.SplitterPaneComponent),
|
|
182
203
|
tslib_1.__metadata("design:type", core_1.QueryList)
|
|
@@ -195,10 +216,11 @@ var SplitterComponent = /** @class */ (function () {
|
|
|
195
216
|
],
|
|
196
217
|
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 "
|
|
197
218
|
}),
|
|
198
|
-
tslib_1.__param(
|
|
219
|
+
tslib_1.__param(4, core_1.Optional()), tslib_1.__param(4, core_1.Host()), tslib_1.__param(4, core_1.Inject(splitter_pane_component_1.SplitterPaneComponent)),
|
|
199
220
|
tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
|
|
200
221
|
splitter_service_1.SplitterService,
|
|
201
222
|
kendo_angular_l10n_1.LocalizationService,
|
|
223
|
+
core_1.Renderer2,
|
|
202
224
|
splitter_pane_component_1.SplitterPaneComponent])
|
|
203
225
|
], SplitterComponent);
|
|
204
226
|
return SplitterComponent;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var tslib_1 = require("tslib");
|
|
8
|
+
var core_1 = require("@angular/core");
|
|
9
|
+
var common_1 = require("@angular/common");
|
|
10
|
+
var stack_layout_component_1 = require("./layouts/stack-layout.component");
|
|
11
|
+
var exportedModules = [
|
|
12
|
+
stack_layout_component_1.StackLayoutComponent
|
|
13
|
+
];
|
|
14
|
+
var declarations = exportedModules.slice();
|
|
15
|
+
/**
|
|
16
|
+
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
17
|
+
* definition for the StackLayout component.
|
|
18
|
+
*/
|
|
19
|
+
var StackLayoutModule = /** @class */ (function () {
|
|
20
|
+
function StackLayoutModule() {
|
|
21
|
+
}
|
|
22
|
+
StackLayoutModule = tslib_1.__decorate([
|
|
23
|
+
core_1.NgModule({
|
|
24
|
+
declarations: [declarations],
|
|
25
|
+
exports: [exportedModules],
|
|
26
|
+
imports: [common_1.CommonModule]
|
|
27
|
+
})
|
|
28
|
+
], StackLayoutModule);
|
|
29
|
+
return StackLayoutModule;
|
|
30
|
+
}());
|
|
31
|
+
exports.StackLayoutModule = StackLayoutModule;
|