@progress/kendo-angular-layout 6.4.0-dev.202201191016 → 6.4.2-dev.202201251524
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/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/tabstrip/scrollable-button.component.js +6 -3
- package/dist/es2015/index.metadata.json +1 -1
- 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/tabstrip/scrollable-button.component.js +6 -3
- package/dist/fesm2015/index.js +265 -244
- package/dist/fesm5/index.js +395 -370
- 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/tabstrip/scrollable-button.component.js +6 -3
- package/dist/systemjs/kendo-angular-layout.js +1 -1
- package/package.json +1 -1
package/dist/fesm5/index.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import { __decorate, __metadata, __param, __extends, __assign } from 'tslib';
|
|
6
6
|
import { Injectable, Directive, TemplateRef, Optional, isDevMode, Input, ViewChild, ElementRef, HostBinding, ViewChildren, QueryList, ContentChildren, Component, SkipSelf, Host, Renderer2, Output, EventEmitter, ContentChild, HostListener, ChangeDetectorRef, NgZone, Inject, forwardRef, ViewEncapsulation, NgModule } from '@angular/core';
|
|
7
7
|
import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { Keys, PreventableEvent, isDocumentAvailable, hasObservers, EventsModule,
|
|
8
|
+
import { Keys, DraggableDirective, PreventableEvent, isDocumentAvailable, hasObservers, EventsModule, DraggableModule, ResizeSensorModule } from '@progress/kendo-angular-common';
|
|
9
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
10
10
|
import { trigger, state, style, transition, animate, AUTO_STYLE, AnimationBuilder } from '@angular/animations';
|
|
11
11
|
import { Subject, BehaviorSubject, Subscription, of } from 'rxjs';
|
|
12
|
-
import {
|
|
12
|
+
import { tap, filter, switchMap, delay, takeUntil, map, take } from 'rxjs/operators';
|
|
13
13
|
import Draggable from '@telerik/kendo-draggable';
|
|
14
14
|
import { CommonModule } from '@angular/common';
|
|
15
15
|
import { ProgressBarModule } from '@progress/kendo-angular-progressbar';
|
|
@@ -21,7 +21,7 @@ var packageMetadata = {
|
|
|
21
21
|
name: '@progress/kendo-angular-layout',
|
|
22
22
|
productName: 'Kendo UI for Angular',
|
|
23
23
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
24
|
-
publishDate:
|
|
24
|
+
publishDate: 1643124181,
|
|
25
25
|
version: '',
|
|
26
26
|
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'
|
|
27
27
|
};
|
|
@@ -1683,146 +1683,426 @@ var SplitterService = /** @class */ (function () {
|
|
|
1683
1683
|
return SplitterService;
|
|
1684
1684
|
}());
|
|
1685
1685
|
|
|
1686
|
+
var stopPropagation = function (_a) {
|
|
1687
|
+
var event = _a.originalEvent;
|
|
1688
|
+
event.stopPropagation();
|
|
1689
|
+
event.preventDefault();
|
|
1690
|
+
};
|
|
1691
|
+
var preventOnDblClick = function (release) { return function (mouseDown) {
|
|
1692
|
+
return of(mouseDown).pipe(delay(150), takeUntil(release));
|
|
1693
|
+
}; };
|
|
1694
|
+
var classFromObject = function (classes) { return Object.keys(classes).filter(function (c) { return classes[c]; }).join(' '); };
|
|
1695
|
+
var createMoveStream = function (draggable) { return function (mouseDown) {
|
|
1696
|
+
return draggable.kendoDrag
|
|
1697
|
+
.pipe(takeUntil(draggable.kendoRelease), map(function (_a) {
|
|
1698
|
+
var pageX = _a.pageX, pageY = _a.pageY;
|
|
1699
|
+
return ({
|
|
1700
|
+
originalX: mouseDown.pageX,
|
|
1701
|
+
originalY: mouseDown.pageY,
|
|
1702
|
+
pageX: pageX,
|
|
1703
|
+
pageY: pageY
|
|
1704
|
+
});
|
|
1705
|
+
}));
|
|
1706
|
+
}; };
|
|
1686
1707
|
/**
|
|
1687
|
-
*
|
|
1688
|
-
*
|
|
1689
|
-
* ```ts-preview
|
|
1690
|
-
*
|
|
1691
|
-
* @Component({
|
|
1692
|
-
* selector: 'my-app',
|
|
1693
|
-
* template: `
|
|
1694
|
-
* <kendo-splitter style="height: 280px;">
|
|
1695
|
-
*
|
|
1696
|
-
* <kendo-splitter-pane [collapsible]="true" size="30%">
|
|
1697
|
-
* <h3>Inner splitter / left pane</h3>
|
|
1698
|
-
* <p>Resizable and collapsible.</p>
|
|
1699
|
-
* </kendo-splitter-pane>
|
|
1700
|
-
*
|
|
1701
|
-
* <kendo-splitter-pane>
|
|
1702
|
-
* <h3>Inner splitter / center pane</h3>
|
|
1703
|
-
* <p>Resizable only.</p>
|
|
1704
|
-
* </kendo-splitter-pane>
|
|
1705
|
-
*
|
|
1706
|
-
* <kendo-splitter-pane [collapsible]="true" size="30%">
|
|
1707
|
-
* <h3>Inner splitter / right pane</h3>
|
|
1708
|
-
* <p>Resizable and collapsible.</p>
|
|
1709
|
-
* </kendo-splitter-pane>
|
|
1710
|
-
*
|
|
1711
|
-
* </kendo-splitter>
|
|
1712
|
-
* `,
|
|
1713
|
-
* styles: [ `
|
|
1714
|
-
* h3 { font-size: 1.2em; }
|
|
1715
|
-
* h3, p { margin: 10px; padding: 0; }
|
|
1716
|
-
* ` ]
|
|
1717
|
-
* })
|
|
1718
|
-
* class AppComponent {}
|
|
1719
|
-
* ```
|
|
1708
|
+
* @hidden
|
|
1720
1709
|
*/
|
|
1721
|
-
var
|
|
1722
|
-
function
|
|
1710
|
+
var SplitterBarComponent = /** @class */ (function () {
|
|
1711
|
+
function SplitterBarComponent(draggable, element, splitter, localization) {
|
|
1712
|
+
this.draggable = draggable;
|
|
1723
1713
|
this.element = element;
|
|
1724
|
-
this.
|
|
1714
|
+
this.splitter = splitter;
|
|
1725
1715
|
this.localization = localization;
|
|
1726
|
-
this.enclosingPane = enclosingPane;
|
|
1727
|
-
/**
|
|
1728
|
-
* Specifies the orientation of the panes within the Splitter.
|
|
1729
|
-
* Panes in a horizontal Splitter are placed horizontally.
|
|
1730
|
-
* Panes in a vertical Splitter are placed vertically.
|
|
1731
|
-
*/
|
|
1732
1716
|
this.orientation = 'horizontal';
|
|
1733
|
-
this.
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
}
|
|
1738
|
-
// the handler only runs in NgZone if there are bound handlers
|
|
1739
|
-
// this line merges both streams
|
|
1740
|
-
this.layoutChange = this.splitterService.layoutChange;
|
|
1741
|
-
this.configure = this.configure.bind(this);
|
|
1717
|
+
this.index = 0;
|
|
1718
|
+
this.ariaRole = 'separator';
|
|
1719
|
+
this.focused = false;
|
|
1720
|
+
this.subscriptions = new Subscription();
|
|
1742
1721
|
}
|
|
1743
|
-
Object.defineProperty(
|
|
1722
|
+
Object.defineProperty(SplitterBarComponent.prototype, "direction", {
|
|
1744
1723
|
get: function () {
|
|
1745
|
-
return
|
|
1724
|
+
return this.localization.rtl ? 'rtl' : 'ltr';
|
|
1746
1725
|
},
|
|
1747
1726
|
enumerable: true,
|
|
1748
1727
|
configurable: true
|
|
1749
1728
|
});
|
|
1750
|
-
Object.defineProperty(
|
|
1729
|
+
Object.defineProperty(SplitterBarComponent.prototype, "tabIndex", {
|
|
1751
1730
|
get: function () {
|
|
1752
|
-
return this.
|
|
1731
|
+
return this.splitter.isStatic(this.index) ? -1 : 0;
|
|
1753
1732
|
},
|
|
1754
1733
|
enumerable: true,
|
|
1755
1734
|
configurable: true
|
|
1756
1735
|
});
|
|
1757
|
-
Object.defineProperty(
|
|
1736
|
+
Object.defineProperty(SplitterBarComponent.prototype, "hostClasses", {
|
|
1758
1737
|
get: function () {
|
|
1759
|
-
|
|
1738
|
+
var isHorizontal = this.orientation === 'horizontal';
|
|
1739
|
+
var isDraggable = this.splitter.isDraggable(this.index);
|
|
1740
|
+
var isStatic = this.splitter.isStatic(this.index);
|
|
1741
|
+
return classFromObject({
|
|
1742
|
+
'k-state-focused': this.focused,
|
|
1743
|
+
'k-splitbar': true,
|
|
1744
|
+
'k-splitbar-horizontal': isHorizontal,
|
|
1745
|
+
'k-splitbar-vertical': !isHorizontal,
|
|
1746
|
+
'k-splitbar-draggable-horizontal': isHorizontal && isDraggable,
|
|
1747
|
+
'k-splitbar-draggable-vertical': !isHorizontal && isDraggable,
|
|
1748
|
+
'k-splitbar-static-horizontal': isHorizontal && isStatic,
|
|
1749
|
+
'k-splitbar-static-vertical': !isHorizontal && isStatic,
|
|
1750
|
+
'k-touch-action-none': isDraggable
|
|
1751
|
+
});
|
|
1760
1752
|
},
|
|
1761
1753
|
enumerable: true,
|
|
1762
1754
|
configurable: true
|
|
1763
1755
|
});
|
|
1764
|
-
Object.defineProperty(
|
|
1756
|
+
Object.defineProperty(SplitterBarComponent.prototype, "order", {
|
|
1765
1757
|
get: function () {
|
|
1766
|
-
return this.
|
|
1758
|
+
return 2 * this.index + 1;
|
|
1767
1759
|
},
|
|
1768
1760
|
enumerable: true,
|
|
1769
1761
|
configurable: true
|
|
1770
1762
|
});
|
|
1771
|
-
|
|
1772
|
-
this.
|
|
1773
|
-
|
|
1774
|
-
SplitterComponent.prototype.ngOnChanges = function (changes) {
|
|
1775
|
-
if (changes.orientation && !changes.orientation.isFirstChange()) {
|
|
1776
|
-
this.reconfigure();
|
|
1763
|
+
SplitterBarComponent.prototype.collapseAny = function () {
|
|
1764
|
+
if (this.expandLast) {
|
|
1765
|
+
this.toggleNext();
|
|
1777
1766
|
}
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
if (this.enclosingPane) {
|
|
1781
|
-
this.enclosingPane.containsSplitter = false;
|
|
1767
|
+
else {
|
|
1768
|
+
this.tryToggleNearest();
|
|
1782
1769
|
}
|
|
1783
|
-
this.unsubscribeChanges();
|
|
1784
1770
|
};
|
|
1785
|
-
|
|
1786
|
-
this.
|
|
1787
|
-
this.configure();
|
|
1788
|
-
this.paneChangesSubscription = this.panes.changes.subscribe(this.configure);
|
|
1771
|
+
SplitterBarComponent.prototype.onFocusIn = function () {
|
|
1772
|
+
this.focused = true;
|
|
1789
1773
|
};
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
this.paneChangesSubscription.unsubscribe();
|
|
1793
|
-
this.paneChangesSubscription = null;
|
|
1794
|
-
}
|
|
1774
|
+
SplitterBarComponent.prototype.onFocusOut = function () {
|
|
1775
|
+
this.focused = false;
|
|
1795
1776
|
};
|
|
1796
|
-
|
|
1777
|
+
SplitterBarComponent.prototype.onKeyDown = function (event) {
|
|
1797
1778
|
var _this = this;
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1779
|
+
var keyCode = event && event.keyCode;
|
|
1780
|
+
var isHorizontal = this.orientation === 'horizontal';
|
|
1781
|
+
var resize = function (delta) {
|
|
1782
|
+
event.preventDefault();
|
|
1783
|
+
var state$$1 = _this.splitter.dragState(_this.index);
|
|
1784
|
+
_this.splitter.setSize(state$$1, delta);
|
|
1785
|
+
};
|
|
1786
|
+
if (keyCode === Keys.Enter) {
|
|
1787
|
+
event.preventDefault();
|
|
1788
|
+
this.collapseAny();
|
|
1789
|
+
}
|
|
1790
|
+
else if (isHorizontal && keyCode === Keys.ArrowLeft) {
|
|
1791
|
+
resize(-10);
|
|
1792
|
+
}
|
|
1793
|
+
else if (isHorizontal && keyCode === Keys.ArrowRight) {
|
|
1794
|
+
resize(10);
|
|
1795
|
+
}
|
|
1796
|
+
else if (!isHorizontal && keyCode === Keys.ArrowUp) {
|
|
1797
|
+
resize(-10);
|
|
1798
|
+
}
|
|
1799
|
+
else if (!isHorizontal && keyCode === Keys.ArrowDown) {
|
|
1800
|
+
resize(10);
|
|
1801
|
+
}
|
|
1810
1802
|
};
|
|
1811
|
-
Object.defineProperty(
|
|
1803
|
+
Object.defineProperty(SplitterBarComponent.prototype, "expandLast", {
|
|
1812
1804
|
get: function () {
|
|
1813
|
-
|
|
1805
|
+
var panes = this.splitter.panes;
|
|
1806
|
+
return panes.length === 2 && panes[1].collapsed;
|
|
1814
1807
|
},
|
|
1815
1808
|
enumerable: true,
|
|
1816
1809
|
configurable: true
|
|
1817
1810
|
});
|
|
1811
|
+
SplitterBarComponent.prototype.ngOnInit = function () {
|
|
1812
|
+
var _this = this;
|
|
1813
|
+
var state$$1;
|
|
1814
|
+
var listener = this.draggable.kendoPress.pipe(tap(stopPropagation), filter(function () { return _this.splitter.isDraggable(_this.index); }), tap(function () { return state$$1 = _this.splitter.dragState(_this.index); }), tap(function () { return _this.splitter.toggleContentOverlay(_this.index, true); }), switchMap(preventOnDblClick(this.draggable.kendoRelease)), switchMap(createMoveStream(this.draggable))).subscribe(function (_a) {
|
|
1815
|
+
var pageX = _a.pageX, pageY = _a.pageY, originalX = _a.originalX, originalY = _a.originalY;
|
|
1816
|
+
var delta;
|
|
1817
|
+
if (_this.orientation === 'vertical') {
|
|
1818
|
+
delta = pageY - originalY;
|
|
1819
|
+
}
|
|
1820
|
+
else if (_this.direction === 'rtl') {
|
|
1821
|
+
delta = originalX - pageX;
|
|
1822
|
+
}
|
|
1823
|
+
else {
|
|
1824
|
+
delta = pageX - originalX;
|
|
1825
|
+
}
|
|
1826
|
+
_this.splitter.setSize(state$$1, delta);
|
|
1827
|
+
});
|
|
1828
|
+
this.subscriptions.add(listener);
|
|
1829
|
+
this.subscriptions.add(this.draggable.kendoRelease.subscribe(function () { return _this.splitter.toggleContentOverlay(_this.index, false); }));
|
|
1830
|
+
};
|
|
1831
|
+
SplitterBarComponent.prototype.ngOnDestroy = function () {
|
|
1832
|
+
if (this.subscriptions) {
|
|
1833
|
+
this.subscriptions.unsubscribe();
|
|
1834
|
+
}
|
|
1835
|
+
};
|
|
1836
|
+
SplitterBarComponent.prototype.togglePrevious = function () {
|
|
1837
|
+
this.splitter.tryToggle(this.index);
|
|
1838
|
+
};
|
|
1839
|
+
SplitterBarComponent.prototype.toggleNext = function () {
|
|
1840
|
+
this.splitter.tryToggle(this.index + 1);
|
|
1841
|
+
};
|
|
1842
|
+
SplitterBarComponent.prototype.previousArrowClass = function () {
|
|
1843
|
+
var pane = this.splitter.pane(this.index);
|
|
1844
|
+
var nextPane = this.splitter.pane(this.index + 1);
|
|
1845
|
+
var isCollapsible = pane.collapsible;
|
|
1846
|
+
var isCollapsed = pane.collapsed;
|
|
1847
|
+
var isHorizontal = this.orientation === 'horizontal';
|
|
1848
|
+
return classFromObject({
|
|
1849
|
+
'k-icon': true,
|
|
1850
|
+
'k-hidden': !isCollapsible || nextPane.isHidden,
|
|
1851
|
+
'k-collapse-prev': isCollapsible,
|
|
1852
|
+
'k-i-arrow-60-left': isCollapsible && isHorizontal && !isCollapsed,
|
|
1853
|
+
'k-i-arrow-60-right': isCollapsible && isHorizontal && isCollapsed,
|
|
1854
|
+
'k-i-arrow-60-up': isCollapsible && !isHorizontal && !isCollapsed,
|
|
1855
|
+
'k-i-arrow-60-down': isCollapsible && !isHorizontal && isCollapsed
|
|
1856
|
+
});
|
|
1857
|
+
};
|
|
1858
|
+
SplitterBarComponent.prototype.nextArrowClass = function () {
|
|
1859
|
+
var pane = this.splitter.pane(this.index + 1);
|
|
1860
|
+
var prevPane = this.splitter.pane(this.index);
|
|
1861
|
+
var isCollapsible = pane.collapsible;
|
|
1862
|
+
var isCollapsed = pane.collapsed;
|
|
1863
|
+
var isHorizontal = this.orientation === 'horizontal';
|
|
1864
|
+
return classFromObject({
|
|
1865
|
+
'k-icon': true,
|
|
1866
|
+
'k-hidden': !isCollapsible || prevPane.isHidden,
|
|
1867
|
+
'k-collapse-next': isCollapsible,
|
|
1868
|
+
'k-i-arrow-60-right': isCollapsible && isHorizontal && !isCollapsed,
|
|
1869
|
+
'k-i-arrow-60-left': isCollapsible && isHorizontal && isCollapsed,
|
|
1870
|
+
'k-i-arrow-60-down': isCollapsible && !isHorizontal && !isCollapsed,
|
|
1871
|
+
'k-i-arrow-60-up': isCollapsible && !isHorizontal && isCollapsed
|
|
1872
|
+
});
|
|
1873
|
+
};
|
|
1874
|
+
SplitterBarComponent.prototype.tryToggleNearest = function () {
|
|
1875
|
+
var prev = this.index;
|
|
1876
|
+
var next = this.index + 1;
|
|
1877
|
+
if (!this.splitter.tryToggle(prev)) {
|
|
1878
|
+
this.splitter.tryToggle(next);
|
|
1879
|
+
}
|
|
1880
|
+
};
|
|
1818
1881
|
__decorate([
|
|
1819
1882
|
Input(),
|
|
1883
|
+
HostBinding('attr.aria-orientation'),
|
|
1820
1884
|
__metadata("design:type", String)
|
|
1821
|
-
],
|
|
1822
|
-
__decorate([
|
|
1823
|
-
|
|
1824
|
-
__metadata("design:type",
|
|
1825
|
-
],
|
|
1885
|
+
], SplitterBarComponent.prototype, "orientation", void 0);
|
|
1886
|
+
__decorate([
|
|
1887
|
+
Input(),
|
|
1888
|
+
__metadata("design:type", Number)
|
|
1889
|
+
], SplitterBarComponent.prototype, "index", void 0);
|
|
1890
|
+
__decorate([
|
|
1891
|
+
HostBinding('attr.role'),
|
|
1892
|
+
__metadata("design:type", String)
|
|
1893
|
+
], SplitterBarComponent.prototype, "ariaRole", void 0);
|
|
1894
|
+
__decorate([
|
|
1895
|
+
HostBinding('class.k-state-focused'),
|
|
1896
|
+
__metadata("design:type", Boolean)
|
|
1897
|
+
], SplitterBarComponent.prototype, "focused", void 0);
|
|
1898
|
+
__decorate([
|
|
1899
|
+
HostBinding('attr.tabindex'),
|
|
1900
|
+
__metadata("design:type", Number),
|
|
1901
|
+
__metadata("design:paramtypes", [])
|
|
1902
|
+
], SplitterBarComponent.prototype, "tabIndex", null);
|
|
1903
|
+
__decorate([
|
|
1904
|
+
HostBinding('class'),
|
|
1905
|
+
__metadata("design:type", String),
|
|
1906
|
+
__metadata("design:paramtypes", [])
|
|
1907
|
+
], SplitterBarComponent.prototype, "hostClasses", null);
|
|
1908
|
+
__decorate([
|
|
1909
|
+
HostBinding('style.-ms-flex-order'),
|
|
1910
|
+
HostBinding('style.order'),
|
|
1911
|
+
__metadata("design:type", Number),
|
|
1912
|
+
__metadata("design:paramtypes", [])
|
|
1913
|
+
], SplitterBarComponent.prototype, "order", null);
|
|
1914
|
+
__decorate([
|
|
1915
|
+
HostListener('dblclick'),
|
|
1916
|
+
__metadata("design:type", Function),
|
|
1917
|
+
__metadata("design:paramtypes", []),
|
|
1918
|
+
__metadata("design:returntype", void 0)
|
|
1919
|
+
], SplitterBarComponent.prototype, "collapseAny", null);
|
|
1920
|
+
__decorate([
|
|
1921
|
+
HostListener('focusin'),
|
|
1922
|
+
__metadata("design:type", Function),
|
|
1923
|
+
__metadata("design:paramtypes", []),
|
|
1924
|
+
__metadata("design:returntype", void 0)
|
|
1925
|
+
], SplitterBarComponent.prototype, "onFocusIn", null);
|
|
1926
|
+
__decorate([
|
|
1927
|
+
HostListener('focusout'),
|
|
1928
|
+
__metadata("design:type", Function),
|
|
1929
|
+
__metadata("design:paramtypes", []),
|
|
1930
|
+
__metadata("design:returntype", void 0)
|
|
1931
|
+
], SplitterBarComponent.prototype, "onFocusOut", null);
|
|
1932
|
+
__decorate([
|
|
1933
|
+
HostListener('keydown', ['$event']),
|
|
1934
|
+
__metadata("design:type", Function),
|
|
1935
|
+
__metadata("design:paramtypes", [Object]),
|
|
1936
|
+
__metadata("design:returntype", void 0)
|
|
1937
|
+
], SplitterBarComponent.prototype, "onKeyDown", null);
|
|
1938
|
+
SplitterBarComponent = __decorate([
|
|
1939
|
+
Component({
|
|
1940
|
+
selector: 'kendo-splitter-bar',
|
|
1941
|
+
template: "\n <div [class]=\"previousArrowClass()\" (click)=\"togglePrevious()\"></div>\n <div class=\"k-resize-handle\"></div>\n <div [class]=\"nextArrowClass()\" (click)=\"toggleNext()\"></div>\n "
|
|
1942
|
+
}),
|
|
1943
|
+
__param(0, Host()),
|
|
1944
|
+
__metadata("design:paramtypes", [DraggableDirective,
|
|
1945
|
+
ElementRef,
|
|
1946
|
+
SplitterService,
|
|
1947
|
+
LocalizationService])
|
|
1948
|
+
], SplitterBarComponent);
|
|
1949
|
+
return SplitterBarComponent;
|
|
1950
|
+
}());
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* Represents the [Kendo UI Splitter component for Angular]({% slug overview_splitter %}).
|
|
1954
|
+
*
|
|
1955
|
+
* ```ts-preview
|
|
1956
|
+
*
|
|
1957
|
+
* @Component({
|
|
1958
|
+
* selector: 'my-app',
|
|
1959
|
+
* template: `
|
|
1960
|
+
* <kendo-splitter style="height: 280px;">
|
|
1961
|
+
*
|
|
1962
|
+
* <kendo-splitter-pane [collapsible]="true" size="30%">
|
|
1963
|
+
* <h3>Inner splitter / left pane</h3>
|
|
1964
|
+
* <p>Resizable and collapsible.</p>
|
|
1965
|
+
* </kendo-splitter-pane>
|
|
1966
|
+
*
|
|
1967
|
+
* <kendo-splitter-pane>
|
|
1968
|
+
* <h3>Inner splitter / center pane</h3>
|
|
1969
|
+
* <p>Resizable only.</p>
|
|
1970
|
+
* </kendo-splitter-pane>
|
|
1971
|
+
*
|
|
1972
|
+
* <kendo-splitter-pane [collapsible]="true" size="30%">
|
|
1973
|
+
* <h3>Inner splitter / right pane</h3>
|
|
1974
|
+
* <p>Resizable and collapsible.</p>
|
|
1975
|
+
* </kendo-splitter-pane>
|
|
1976
|
+
*
|
|
1977
|
+
* </kendo-splitter>
|
|
1978
|
+
* `,
|
|
1979
|
+
* styles: [ `
|
|
1980
|
+
* h3 { font-size: 1.2em; }
|
|
1981
|
+
* h3, p { margin: 10px; padding: 0; }
|
|
1982
|
+
* ` ]
|
|
1983
|
+
* })
|
|
1984
|
+
* class AppComponent {}
|
|
1985
|
+
* ```
|
|
1986
|
+
*/
|
|
1987
|
+
var SplitterComponent = /** @class */ (function () {
|
|
1988
|
+
function SplitterComponent(element, splitterService, localization, renderer, enclosingPane) {
|
|
1989
|
+
this.element = element;
|
|
1990
|
+
this.splitterService = splitterService;
|
|
1991
|
+
this.localization = localization;
|
|
1992
|
+
this.renderer = renderer;
|
|
1993
|
+
this.enclosingPane = enclosingPane;
|
|
1994
|
+
/**
|
|
1995
|
+
* Specifies the orientation of the panes within the Splitter.
|
|
1996
|
+
* Panes in a horizontal Splitter are placed horizontally.
|
|
1997
|
+
* Panes in a vertical Splitter are placed vertically.
|
|
1998
|
+
*/
|
|
1999
|
+
this.orientation = 'horizontal';
|
|
2000
|
+
this.ariaRole = 'splitter';
|
|
2001
|
+
validatePackage(packageMetadata);
|
|
2002
|
+
if (enclosingPane) {
|
|
2003
|
+
enclosingPane.containsSplitter = true;
|
|
2004
|
+
}
|
|
2005
|
+
// the handler only runs in NgZone if there are bound handlers
|
|
2006
|
+
// this line merges both streams
|
|
2007
|
+
this.layoutChange = this.splitterService.layoutChange;
|
|
2008
|
+
this.configure = this.configure.bind(this);
|
|
2009
|
+
}
|
|
2010
|
+
Object.defineProperty(SplitterComponent.prototype, "hostClasses", {
|
|
2011
|
+
get: function () {
|
|
2012
|
+
return true;
|
|
2013
|
+
},
|
|
2014
|
+
enumerable: true,
|
|
2015
|
+
configurable: true
|
|
2016
|
+
});
|
|
2017
|
+
Object.defineProperty(SplitterComponent.prototype, "horizontalHostClasses", {
|
|
2018
|
+
get: function () {
|
|
2019
|
+
return this.orientation === 'horizontal';
|
|
2020
|
+
},
|
|
2021
|
+
enumerable: true,
|
|
2022
|
+
configurable: true
|
|
2023
|
+
});
|
|
2024
|
+
Object.defineProperty(SplitterComponent.prototype, "verticalHostClasses", {
|
|
2025
|
+
get: function () {
|
|
2026
|
+
return this.orientation === 'vertical';
|
|
2027
|
+
},
|
|
2028
|
+
enumerable: true,
|
|
2029
|
+
configurable: true
|
|
2030
|
+
});
|
|
2031
|
+
Object.defineProperty(SplitterComponent.prototype, "dir", {
|
|
2032
|
+
get: function () {
|
|
2033
|
+
return this.direction;
|
|
2034
|
+
},
|
|
2035
|
+
enumerable: true,
|
|
2036
|
+
configurable: true
|
|
2037
|
+
});
|
|
2038
|
+
Object.defineProperty(SplitterComponent.prototype, "splitbars", {
|
|
2039
|
+
set: function (splitbars) {
|
|
2040
|
+
var _this = this;
|
|
2041
|
+
if (!isPresent(splitbars) || !isPresent(this.panes)) {
|
|
2042
|
+
return;
|
|
2043
|
+
}
|
|
2044
|
+
var components = this.panes.toArray().concat(splitbars.toArray()).sort(function (a, b) { return a.order - b.order; });
|
|
2045
|
+
var elements = components.map(function (component) { return component.element.nativeElement; });
|
|
2046
|
+
elements.forEach(function (element) { return _this.renderer.appendChild(_this.element.nativeElement, element); });
|
|
2047
|
+
},
|
|
2048
|
+
enumerable: true,
|
|
2049
|
+
configurable: true
|
|
2050
|
+
});
|
|
2051
|
+
SplitterComponent.prototype.ngAfterContentInit = function () {
|
|
2052
|
+
this.reconfigure();
|
|
2053
|
+
};
|
|
2054
|
+
SplitterComponent.prototype.ngOnChanges = function (changes) {
|
|
2055
|
+
if (changes.orientation && !changes.orientation.isFirstChange()) {
|
|
2056
|
+
this.reconfigure();
|
|
2057
|
+
}
|
|
2058
|
+
};
|
|
2059
|
+
SplitterComponent.prototype.ngOnDestroy = function () {
|
|
2060
|
+
if (this.enclosingPane) {
|
|
2061
|
+
this.enclosingPane.containsSplitter = false;
|
|
2062
|
+
}
|
|
2063
|
+
this.unsubscribeChanges();
|
|
2064
|
+
};
|
|
2065
|
+
SplitterComponent.prototype.reconfigure = function () {
|
|
2066
|
+
this.unsubscribeChanges();
|
|
2067
|
+
this.configure();
|
|
2068
|
+
this.paneChangesSubscription = this.panes.changes.subscribe(this.configure);
|
|
2069
|
+
};
|
|
2070
|
+
SplitterComponent.prototype.unsubscribeChanges = function () {
|
|
2071
|
+
if (this.paneChangesSubscription) {
|
|
2072
|
+
this.paneChangesSubscription.unsubscribe();
|
|
2073
|
+
this.paneChangesSubscription = null;
|
|
2074
|
+
}
|
|
2075
|
+
};
|
|
2076
|
+
SplitterComponent.prototype.configure = function () {
|
|
2077
|
+
var _this = this;
|
|
2078
|
+
this.splitterService.configure({
|
|
2079
|
+
panes: this.panes.toArray(),
|
|
2080
|
+
orientation: this.orientation,
|
|
2081
|
+
containerSize: function () {
|
|
2082
|
+
if (_this.orientation === 'vertical') {
|
|
2083
|
+
return _this.element.nativeElement.clientHeight;
|
|
2084
|
+
}
|
|
2085
|
+
else {
|
|
2086
|
+
return _this.element.nativeElement.clientWidth;
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
};
|
|
2091
|
+
Object.defineProperty(SplitterComponent.prototype, "direction", {
|
|
2092
|
+
get: function () {
|
|
2093
|
+
return this.localization.rtl ? 'rtl' : 'ltr';
|
|
2094
|
+
},
|
|
2095
|
+
enumerable: true,
|
|
2096
|
+
configurable: true
|
|
2097
|
+
});
|
|
2098
|
+
__decorate([
|
|
2099
|
+
Input(),
|
|
2100
|
+
__metadata("design:type", String)
|
|
2101
|
+
], SplitterComponent.prototype, "orientation", void 0);
|
|
2102
|
+
__decorate([
|
|
2103
|
+
Output(),
|
|
2104
|
+
__metadata("design:type", EventEmitter)
|
|
2105
|
+
], SplitterComponent.prototype, "layoutChange", void 0);
|
|
1826
2106
|
__decorate([
|
|
1827
2107
|
HostBinding('class.k-widget'),
|
|
1828
2108
|
HostBinding('class.k-splitter'),
|
|
@@ -1849,6 +2129,11 @@ var SplitterComponent = /** @class */ (function () {
|
|
|
1849
2129
|
HostBinding('attr.role'),
|
|
1850
2130
|
__metadata("design:type", String)
|
|
1851
2131
|
], SplitterComponent.prototype, "ariaRole", void 0);
|
|
2132
|
+
__decorate([
|
|
2133
|
+
ViewChildren(SplitterBarComponent),
|
|
2134
|
+
__metadata("design:type", QueryList),
|
|
2135
|
+
__metadata("design:paramtypes", [QueryList])
|
|
2136
|
+
], SplitterComponent.prototype, "splitbars", null);
|
|
1852
2137
|
__decorate([
|
|
1853
2138
|
ContentChildren(SplitterPaneComponent),
|
|
1854
2139
|
__metadata("design:type", QueryList)
|
|
@@ -1867,10 +2152,11 @@ var SplitterComponent = /** @class */ (function () {
|
|
|
1867
2152
|
],
|
|
1868
2153
|
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 "
|
|
1869
2154
|
}),
|
|
1870
|
-
__param(
|
|
2155
|
+
__param(4, Optional()), __param(4, Host()), __param(4, Inject(SplitterPaneComponent)),
|
|
1871
2156
|
__metadata("design:paramtypes", [ElementRef,
|
|
1872
2157
|
SplitterService,
|
|
1873
2158
|
LocalizationService,
|
|
2159
|
+
Renderer2,
|
|
1874
2160
|
SplitterPaneComponent])
|
|
1875
2161
|
], SplitterComponent);
|
|
1876
2162
|
return SplitterComponent;
|
|
@@ -2730,8 +3016,11 @@ var TabStripScrollableButtonComponent = /** @class */ (function () {
|
|
|
2730
3016
|
};
|
|
2731
3017
|
__decorate([
|
|
2732
3018
|
HostBinding('class.k-button'),
|
|
2733
|
-
HostBinding('class.k-button-
|
|
2734
|
-
HostBinding('class.k-
|
|
3019
|
+
HostBinding('class.k-button-md'),
|
|
3020
|
+
HostBinding('class.k-icon-button'),
|
|
3021
|
+
HostBinding('class.k-rounded-md'),
|
|
3022
|
+
HostBinding('class.k-button-flat'),
|
|
3023
|
+
HostBinding('class.k-button-flat-base'),
|
|
2735
3024
|
__metadata("design:type", Boolean)
|
|
2736
3025
|
], TabStripScrollableButtonComponent.prototype, "btnClasses", void 0);
|
|
2737
3026
|
__decorate([
|
|
@@ -2755,7 +3044,7 @@ var TabStripScrollableButtonComponent = /** @class */ (function () {
|
|
|
2755
3044
|
], TabStripScrollableButtonComponent.prototype, "prev", void 0);
|
|
2756
3045
|
TabStripScrollableButtonComponent = __decorate([
|
|
2757
3046
|
Component({
|
|
2758
|
-
template: "\n <span class=\"k-icon\" [ngClass]=\"iconClass\"></span>\n ",
|
|
3047
|
+
template: "\n <span class=\"k-icon k-button-icon\" [ngClass]=\"iconClass\"></span>\n ",
|
|
2759
3048
|
selector: '[kendoTabStripScrollableButton]'
|
|
2760
3049
|
}),
|
|
2761
3050
|
__metadata("design:paramtypes", [ElementRef,
|
|
@@ -7630,270 +7919,6 @@ var PanelBarModule = /** @class */ (function () {
|
|
|
7630
7919
|
return PanelBarModule;
|
|
7631
7920
|
}());
|
|
7632
7921
|
|
|
7633
|
-
var stopPropagation = function (_a) {
|
|
7634
|
-
var event = _a.originalEvent;
|
|
7635
|
-
event.stopPropagation();
|
|
7636
|
-
event.preventDefault();
|
|
7637
|
-
};
|
|
7638
|
-
var preventOnDblClick = function (release) { return function (mouseDown) {
|
|
7639
|
-
return of(mouseDown).pipe(delay(150), takeUntil(release));
|
|
7640
|
-
}; };
|
|
7641
|
-
var classFromObject = function (classes) { return Object.keys(classes).filter(function (c) { return classes[c]; }).join(' '); };
|
|
7642
|
-
var createMoveStream = function (draggable) { return function (mouseDown) {
|
|
7643
|
-
return draggable.kendoDrag
|
|
7644
|
-
.pipe(takeUntil(draggable.kendoRelease), map(function (_a) {
|
|
7645
|
-
var pageX = _a.pageX, pageY = _a.pageY;
|
|
7646
|
-
return ({
|
|
7647
|
-
originalX: mouseDown.pageX,
|
|
7648
|
-
originalY: mouseDown.pageY,
|
|
7649
|
-
pageX: pageX,
|
|
7650
|
-
pageY: pageY
|
|
7651
|
-
});
|
|
7652
|
-
}));
|
|
7653
|
-
}; };
|
|
7654
|
-
/**
|
|
7655
|
-
* @hidden
|
|
7656
|
-
*/
|
|
7657
|
-
var SplitterBarComponent = /** @class */ (function () {
|
|
7658
|
-
function SplitterBarComponent(draggable, splitter, localization) {
|
|
7659
|
-
this.draggable = draggable;
|
|
7660
|
-
this.splitter = splitter;
|
|
7661
|
-
this.localization = localization;
|
|
7662
|
-
this.orientation = 'horizontal';
|
|
7663
|
-
this.index = 0;
|
|
7664
|
-
this.ariaRole = 'separator';
|
|
7665
|
-
this.focused = false;
|
|
7666
|
-
this.subscriptions = new Subscription();
|
|
7667
|
-
}
|
|
7668
|
-
Object.defineProperty(SplitterBarComponent.prototype, "direction", {
|
|
7669
|
-
get: function () {
|
|
7670
|
-
return this.localization.rtl ? 'rtl' : 'ltr';
|
|
7671
|
-
},
|
|
7672
|
-
enumerable: true,
|
|
7673
|
-
configurable: true
|
|
7674
|
-
});
|
|
7675
|
-
Object.defineProperty(SplitterBarComponent.prototype, "tabIndex", {
|
|
7676
|
-
get: function () {
|
|
7677
|
-
return this.splitter.isStatic(this.index) ? -1 : 0;
|
|
7678
|
-
},
|
|
7679
|
-
enumerable: true,
|
|
7680
|
-
configurable: true
|
|
7681
|
-
});
|
|
7682
|
-
Object.defineProperty(SplitterBarComponent.prototype, "hostClasses", {
|
|
7683
|
-
get: function () {
|
|
7684
|
-
var isHorizontal = this.orientation === 'horizontal';
|
|
7685
|
-
var isDraggable = this.splitter.isDraggable(this.index);
|
|
7686
|
-
var isStatic = this.splitter.isStatic(this.index);
|
|
7687
|
-
return classFromObject({
|
|
7688
|
-
'k-state-focused': this.focused,
|
|
7689
|
-
'k-splitbar': true,
|
|
7690
|
-
'k-splitbar-horizontal': isHorizontal,
|
|
7691
|
-
'k-splitbar-vertical': !isHorizontal,
|
|
7692
|
-
'k-splitbar-draggable-horizontal': isHorizontal && isDraggable,
|
|
7693
|
-
'k-splitbar-draggable-vertical': !isHorizontal && isDraggable,
|
|
7694
|
-
'k-splitbar-static-horizontal': isHorizontal && isStatic,
|
|
7695
|
-
'k-splitbar-static-vertical': !isHorizontal && isStatic,
|
|
7696
|
-
'k-touch-action-none': isDraggable
|
|
7697
|
-
});
|
|
7698
|
-
},
|
|
7699
|
-
enumerable: true,
|
|
7700
|
-
configurable: true
|
|
7701
|
-
});
|
|
7702
|
-
Object.defineProperty(SplitterBarComponent.prototype, "order", {
|
|
7703
|
-
get: function () {
|
|
7704
|
-
return 2 * this.index + 1;
|
|
7705
|
-
},
|
|
7706
|
-
enumerable: true,
|
|
7707
|
-
configurable: true
|
|
7708
|
-
});
|
|
7709
|
-
SplitterBarComponent.prototype.collapseAny = function () {
|
|
7710
|
-
if (this.expandLast) {
|
|
7711
|
-
this.toggleNext();
|
|
7712
|
-
}
|
|
7713
|
-
else {
|
|
7714
|
-
this.tryToggleNearest();
|
|
7715
|
-
}
|
|
7716
|
-
};
|
|
7717
|
-
SplitterBarComponent.prototype.onFocusIn = function () {
|
|
7718
|
-
this.focused = true;
|
|
7719
|
-
};
|
|
7720
|
-
SplitterBarComponent.prototype.onFocusOut = function () {
|
|
7721
|
-
this.focused = false;
|
|
7722
|
-
};
|
|
7723
|
-
SplitterBarComponent.prototype.onKeyDown = function (event) {
|
|
7724
|
-
var _this = this;
|
|
7725
|
-
var keyCode = event && event.keyCode;
|
|
7726
|
-
var isHorizontal = this.orientation === 'horizontal';
|
|
7727
|
-
var resize = function (delta) {
|
|
7728
|
-
event.preventDefault();
|
|
7729
|
-
var state$$1 = _this.splitter.dragState(_this.index);
|
|
7730
|
-
_this.splitter.setSize(state$$1, delta);
|
|
7731
|
-
};
|
|
7732
|
-
if (keyCode === Keys.Enter) {
|
|
7733
|
-
event.preventDefault();
|
|
7734
|
-
this.collapseAny();
|
|
7735
|
-
}
|
|
7736
|
-
else if (isHorizontal && keyCode === Keys.ArrowLeft) {
|
|
7737
|
-
resize(-10);
|
|
7738
|
-
}
|
|
7739
|
-
else if (isHorizontal && keyCode === Keys.ArrowRight) {
|
|
7740
|
-
resize(10);
|
|
7741
|
-
}
|
|
7742
|
-
else if (!isHorizontal && keyCode === Keys.ArrowUp) {
|
|
7743
|
-
resize(-10);
|
|
7744
|
-
}
|
|
7745
|
-
else if (!isHorizontal && keyCode === Keys.ArrowDown) {
|
|
7746
|
-
resize(10);
|
|
7747
|
-
}
|
|
7748
|
-
};
|
|
7749
|
-
Object.defineProperty(SplitterBarComponent.prototype, "expandLast", {
|
|
7750
|
-
get: function () {
|
|
7751
|
-
var panes = this.splitter.panes;
|
|
7752
|
-
return panes.length === 2 && panes[1].collapsed;
|
|
7753
|
-
},
|
|
7754
|
-
enumerable: true,
|
|
7755
|
-
configurable: true
|
|
7756
|
-
});
|
|
7757
|
-
SplitterBarComponent.prototype.ngOnInit = function () {
|
|
7758
|
-
var _this = this;
|
|
7759
|
-
var state$$1;
|
|
7760
|
-
var listener = this.draggable.kendoPress.pipe(tap(stopPropagation), filter(function () { return _this.splitter.isDraggable(_this.index); }), tap(function () { return state$$1 = _this.splitter.dragState(_this.index); }), tap(function () { return _this.splitter.toggleContentOverlay(_this.index, true); }), switchMap(preventOnDblClick(this.draggable.kendoRelease)), switchMap(createMoveStream(this.draggable))).subscribe(function (_a) {
|
|
7761
|
-
var pageX = _a.pageX, pageY = _a.pageY, originalX = _a.originalX, originalY = _a.originalY;
|
|
7762
|
-
var delta;
|
|
7763
|
-
if (_this.orientation === 'vertical') {
|
|
7764
|
-
delta = pageY - originalY;
|
|
7765
|
-
}
|
|
7766
|
-
else if (_this.direction === 'rtl') {
|
|
7767
|
-
delta = originalX - pageX;
|
|
7768
|
-
}
|
|
7769
|
-
else {
|
|
7770
|
-
delta = pageX - originalX;
|
|
7771
|
-
}
|
|
7772
|
-
_this.splitter.setSize(state$$1, delta);
|
|
7773
|
-
});
|
|
7774
|
-
this.subscriptions.add(listener);
|
|
7775
|
-
this.subscriptions.add(this.draggable.kendoRelease.subscribe(function () { return _this.splitter.toggleContentOverlay(_this.index, false); }));
|
|
7776
|
-
};
|
|
7777
|
-
SplitterBarComponent.prototype.ngOnDestroy = function () {
|
|
7778
|
-
if (this.subscriptions) {
|
|
7779
|
-
this.subscriptions.unsubscribe();
|
|
7780
|
-
}
|
|
7781
|
-
};
|
|
7782
|
-
SplitterBarComponent.prototype.togglePrevious = function () {
|
|
7783
|
-
this.splitter.tryToggle(this.index);
|
|
7784
|
-
};
|
|
7785
|
-
SplitterBarComponent.prototype.toggleNext = function () {
|
|
7786
|
-
this.splitter.tryToggle(this.index + 1);
|
|
7787
|
-
};
|
|
7788
|
-
SplitterBarComponent.prototype.previousArrowClass = function () {
|
|
7789
|
-
var pane = this.splitter.pane(this.index);
|
|
7790
|
-
var nextPane = this.splitter.pane(this.index + 1);
|
|
7791
|
-
var isCollapsible = pane.collapsible;
|
|
7792
|
-
var isCollapsed = pane.collapsed;
|
|
7793
|
-
var isHorizontal = this.orientation === 'horizontal';
|
|
7794
|
-
return classFromObject({
|
|
7795
|
-
'k-icon': true,
|
|
7796
|
-
'k-hidden': !isCollapsible || nextPane.isHidden,
|
|
7797
|
-
'k-collapse-prev': isCollapsible,
|
|
7798
|
-
'k-i-arrow-60-left': isCollapsible && isHorizontal && !isCollapsed,
|
|
7799
|
-
'k-i-arrow-60-right': isCollapsible && isHorizontal && isCollapsed,
|
|
7800
|
-
'k-i-arrow-60-up': isCollapsible && !isHorizontal && !isCollapsed,
|
|
7801
|
-
'k-i-arrow-60-down': isCollapsible && !isHorizontal && isCollapsed
|
|
7802
|
-
});
|
|
7803
|
-
};
|
|
7804
|
-
SplitterBarComponent.prototype.nextArrowClass = function () {
|
|
7805
|
-
var pane = this.splitter.pane(this.index + 1);
|
|
7806
|
-
var prevPane = this.splitter.pane(this.index);
|
|
7807
|
-
var isCollapsible = pane.collapsible;
|
|
7808
|
-
var isCollapsed = pane.collapsed;
|
|
7809
|
-
var isHorizontal = this.orientation === 'horizontal';
|
|
7810
|
-
return classFromObject({
|
|
7811
|
-
'k-icon': true,
|
|
7812
|
-
'k-hidden': !isCollapsible || prevPane.isHidden,
|
|
7813
|
-
'k-collapse-next': isCollapsible,
|
|
7814
|
-
'k-i-arrow-60-right': isCollapsible && isHorizontal && !isCollapsed,
|
|
7815
|
-
'k-i-arrow-60-left': isCollapsible && isHorizontal && isCollapsed,
|
|
7816
|
-
'k-i-arrow-60-down': isCollapsible && !isHorizontal && !isCollapsed,
|
|
7817
|
-
'k-i-arrow-60-up': isCollapsible && !isHorizontal && isCollapsed
|
|
7818
|
-
});
|
|
7819
|
-
};
|
|
7820
|
-
SplitterBarComponent.prototype.tryToggleNearest = function () {
|
|
7821
|
-
var prev = this.index;
|
|
7822
|
-
var next = this.index + 1;
|
|
7823
|
-
if (!this.splitter.tryToggle(prev)) {
|
|
7824
|
-
this.splitter.tryToggle(next);
|
|
7825
|
-
}
|
|
7826
|
-
};
|
|
7827
|
-
__decorate([
|
|
7828
|
-
Input(),
|
|
7829
|
-
HostBinding('attr.aria-orientation'),
|
|
7830
|
-
__metadata("design:type", String)
|
|
7831
|
-
], SplitterBarComponent.prototype, "orientation", void 0);
|
|
7832
|
-
__decorate([
|
|
7833
|
-
Input(),
|
|
7834
|
-
__metadata("design:type", Number)
|
|
7835
|
-
], SplitterBarComponent.prototype, "index", void 0);
|
|
7836
|
-
__decorate([
|
|
7837
|
-
HostBinding('attr.role'),
|
|
7838
|
-
__metadata("design:type", String)
|
|
7839
|
-
], SplitterBarComponent.prototype, "ariaRole", void 0);
|
|
7840
|
-
__decorate([
|
|
7841
|
-
HostBinding('class.k-state-focused'),
|
|
7842
|
-
__metadata("design:type", Boolean)
|
|
7843
|
-
], SplitterBarComponent.prototype, "focused", void 0);
|
|
7844
|
-
__decorate([
|
|
7845
|
-
HostBinding('attr.tabindex'),
|
|
7846
|
-
__metadata("design:type", Number),
|
|
7847
|
-
__metadata("design:paramtypes", [])
|
|
7848
|
-
], SplitterBarComponent.prototype, "tabIndex", null);
|
|
7849
|
-
__decorate([
|
|
7850
|
-
HostBinding('class'),
|
|
7851
|
-
__metadata("design:type", String),
|
|
7852
|
-
__metadata("design:paramtypes", [])
|
|
7853
|
-
], SplitterBarComponent.prototype, "hostClasses", null);
|
|
7854
|
-
__decorate([
|
|
7855
|
-
HostBinding('style.-ms-flex-order'),
|
|
7856
|
-
HostBinding('style.order'),
|
|
7857
|
-
__metadata("design:type", Number),
|
|
7858
|
-
__metadata("design:paramtypes", [])
|
|
7859
|
-
], SplitterBarComponent.prototype, "order", null);
|
|
7860
|
-
__decorate([
|
|
7861
|
-
HostListener('dblclick'),
|
|
7862
|
-
__metadata("design:type", Function),
|
|
7863
|
-
__metadata("design:paramtypes", []),
|
|
7864
|
-
__metadata("design:returntype", void 0)
|
|
7865
|
-
], SplitterBarComponent.prototype, "collapseAny", null);
|
|
7866
|
-
__decorate([
|
|
7867
|
-
HostListener('focusin'),
|
|
7868
|
-
__metadata("design:type", Function),
|
|
7869
|
-
__metadata("design:paramtypes", []),
|
|
7870
|
-
__metadata("design:returntype", void 0)
|
|
7871
|
-
], SplitterBarComponent.prototype, "onFocusIn", null);
|
|
7872
|
-
__decorate([
|
|
7873
|
-
HostListener('focusout'),
|
|
7874
|
-
__metadata("design:type", Function),
|
|
7875
|
-
__metadata("design:paramtypes", []),
|
|
7876
|
-
__metadata("design:returntype", void 0)
|
|
7877
|
-
], SplitterBarComponent.prototype, "onFocusOut", null);
|
|
7878
|
-
__decorate([
|
|
7879
|
-
HostListener('keydown', ['$event']),
|
|
7880
|
-
__metadata("design:type", Function),
|
|
7881
|
-
__metadata("design:paramtypes", [Object]),
|
|
7882
|
-
__metadata("design:returntype", void 0)
|
|
7883
|
-
], SplitterBarComponent.prototype, "onKeyDown", null);
|
|
7884
|
-
SplitterBarComponent = __decorate([
|
|
7885
|
-
Component({
|
|
7886
|
-
selector: 'kendo-splitter-bar',
|
|
7887
|
-
template: "\n <div [class]=\"previousArrowClass()\" (click)=\"togglePrevious()\"></div>\n <div class=\"k-resize-handle\"></div>\n <div [class]=\"nextArrowClass()\" (click)=\"toggleNext()\"></div>\n "
|
|
7888
|
-
}),
|
|
7889
|
-
__param(0, Host()),
|
|
7890
|
-
__metadata("design:paramtypes", [DraggableDirective,
|
|
7891
|
-
SplitterService,
|
|
7892
|
-
LocalizationService])
|
|
7893
|
-
], SplitterBarComponent);
|
|
7894
|
-
return SplitterBarComponent;
|
|
7895
|
-
}());
|
|
7896
|
-
|
|
7897
7922
|
var exportedModules$5 = [
|
|
7898
7923
|
SplitterComponent,
|
|
7899
7924
|
SplitterPaneComponent
|