@progress/kendo-angular-layout 7.1.5-dev.202210191350 → 7.1.5-dev.202210241150
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/bundles/kendo-angular-layout.umd.js +1 -1
- package/drawer/drawer.service.d.ts +2 -0
- package/drawer/item.component.d.ts +2 -2
- package/drawer/list.component.d.ts +4 -2
- package/esm2015/drawer/drawer-container.component.js +1 -1
- package/esm2015/drawer/drawer.component.js +9 -8
- package/esm2015/drawer/drawer.service.js +28 -0
- package/esm2015/drawer/item.component.js +3 -3
- package/esm2015/drawer/list.component.js +26 -9
- package/esm2015/expansionpanel/expansionpanel.component.js +43 -53
- package/esm2015/package-metadata.js +1 -1
- package/expansionpanel/expansionpanel.component.d.ts +3 -11
- package/fesm2015/kendo-angular-layout.js +108 -73
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ const packageMetadata = {
|
|
|
26
26
|
name: '@progress/kendo-angular-layout',
|
|
27
27
|
productName: 'Kendo UI for Angular',
|
|
28
28
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
29
|
-
publishDate:
|
|
29
|
+
publishDate: 1666612185,
|
|
30
30
|
version: '',
|
|
31
31
|
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'
|
|
32
32
|
};
|
|
@@ -3997,6 +3997,7 @@ const defaultIsItemExpanded = (_item) => false;
|
|
|
3997
3997
|
class DrawerService {
|
|
3998
3998
|
constructor() {
|
|
3999
3999
|
this.selectedIndices = [];
|
|
4000
|
+
this.focusIndex = 0;
|
|
4000
4001
|
this.originalItems = [];
|
|
4001
4002
|
this.idxCounter = 0;
|
|
4002
4003
|
this.isItemExpanded = defaultIsItemExpanded;
|
|
@@ -4010,6 +4011,33 @@ class DrawerService {
|
|
|
4010
4011
|
get view() {
|
|
4011
4012
|
return Array.from(this.viewData);
|
|
4012
4013
|
}
|
|
4014
|
+
changeFocusedItem(items, keyName, renderer) {
|
|
4015
|
+
const currentItem = items.get(this.focusIndex);
|
|
4016
|
+
let nextItem;
|
|
4017
|
+
if (keyName === 'arrowUp') {
|
|
4018
|
+
if (this.focusIndex === 0) {
|
|
4019
|
+
nextItem = items.get(items.length - 1);
|
|
4020
|
+
this.focusIndex = items.length - 1;
|
|
4021
|
+
}
|
|
4022
|
+
else {
|
|
4023
|
+
nextItem = items.get(this.focusIndex - 1);
|
|
4024
|
+
this.focusIndex = this.focusIndex - 1;
|
|
4025
|
+
}
|
|
4026
|
+
}
|
|
4027
|
+
else if (keyName === 'arrowDown') {
|
|
4028
|
+
if (this.focusIndex === items.length - 1) {
|
|
4029
|
+
nextItem = items.get(0);
|
|
4030
|
+
this.focusIndex = 0;
|
|
4031
|
+
}
|
|
4032
|
+
else {
|
|
4033
|
+
nextItem = items.get(this.focusIndex + 1);
|
|
4034
|
+
this.focusIndex = this.focusIndex + 1;
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4037
|
+
renderer.setAttribute(currentItem.nativeElement, 'tabindex', '-1');
|
|
4038
|
+
renderer.setAttribute(nextItem.nativeElement, 'tabindex', '0');
|
|
4039
|
+
nextItem.nativeElement.focus();
|
|
4040
|
+
}
|
|
4013
4041
|
populateViewData(items, level = 0) {
|
|
4014
4042
|
items.forEach((item) => {
|
|
4015
4043
|
this.setSelection(item);
|
|
@@ -4235,8 +4263,8 @@ class DrawerListSelectEvent extends PreventableEvent$1 {
|
|
|
4235
4263
|
* @hidden
|
|
4236
4264
|
*/
|
|
4237
4265
|
class DrawerItemComponent {
|
|
4238
|
-
constructor(
|
|
4239
|
-
this.
|
|
4266
|
+
constructor(drawerService, element, renderer) {
|
|
4267
|
+
this.drawerService = drawerService;
|
|
4240
4268
|
this.element = element;
|
|
4241
4269
|
this.renderer = renderer;
|
|
4242
4270
|
}
|
|
@@ -4244,7 +4272,7 @@ class DrawerItemComponent {
|
|
|
4244
4272
|
return this.item.disabled;
|
|
4245
4273
|
}
|
|
4246
4274
|
get selectedClass() {
|
|
4247
|
-
return this.
|
|
4275
|
+
return this.drawerService.selectedIndices.indexOf(this.index) >= 0;
|
|
4248
4276
|
}
|
|
4249
4277
|
get label() {
|
|
4250
4278
|
return this.item.text ? this.item.text : null;
|
|
@@ -4392,12 +4420,26 @@ class DrawerListComponent {
|
|
|
4392
4420
|
this.ngZone.runOutsideAngular(() => {
|
|
4393
4421
|
const nativeElement = this.element.nativeElement;
|
|
4394
4422
|
this.subscriptions.add(this.renderer.listen(nativeElement, 'click', this.clickHandler.bind(this)));
|
|
4395
|
-
this.subscriptions.add(this.renderer.listen(nativeElement, 'keydown',
|
|
4423
|
+
this.subscriptions.add(this.renderer.listen(nativeElement, 'keydown', (e) => {
|
|
4424
|
+
const isEnterOrSpace = e.keyCode === Keys.Enter || e.keyCode === Keys.Space;
|
|
4425
|
+
const isArrowUpOrDown = e.keyCode === Keys.ArrowUp || e.keyCode === Keys.ArrowDown;
|
|
4426
|
+
if (isEnterOrSpace) {
|
|
4427
|
+
this.onEnterOrSpaceKeyDown(e);
|
|
4428
|
+
}
|
|
4429
|
+
else if (isArrowUpOrDown) {
|
|
4430
|
+
if (e.target.classList.contains('k-drawer-item')) {
|
|
4431
|
+
const keyName = e.keyCode === Keys.ArrowUp ? 'arrowUp' : 'arrowDown';
|
|
4432
|
+
this.drawerService.changeFocusedItem(this.items, keyName, this.renderer);
|
|
4433
|
+
}
|
|
4434
|
+
}
|
|
4435
|
+
}));
|
|
4396
4436
|
});
|
|
4397
4437
|
}
|
|
4398
4438
|
clickHandler(e) {
|
|
4399
4439
|
const viewItemIdx = this.getDrawerItemIndex(e.target);
|
|
4400
4440
|
const viewItem = this.view[viewItemIdx];
|
|
4441
|
+
const filterItems = this.view.filter(items => !items.item.separator);
|
|
4442
|
+
const selectedItemIndex = filterItems.findIndex(item => item.index === viewItemIdx);
|
|
4401
4443
|
if (!viewItem) {
|
|
4402
4444
|
return;
|
|
4403
4445
|
}
|
|
@@ -4414,17 +4456,14 @@ class DrawerListComponent {
|
|
|
4414
4456
|
const event = new DrawerListSelectEvent(args);
|
|
4415
4457
|
this.select.emit(event);
|
|
4416
4458
|
if (!event.isDefaultPrevented()) {
|
|
4459
|
+
this.drawerService.focusIndex = selectedItemIndex;
|
|
4417
4460
|
this.drawerService.onSelect(viewItemIdx);
|
|
4418
4461
|
this.drawerService.init();
|
|
4419
4462
|
this.view = this.drawerService.view;
|
|
4420
4463
|
}
|
|
4421
4464
|
});
|
|
4422
4465
|
}
|
|
4423
|
-
|
|
4424
|
-
const isEnterOrSpace = e.keyCode === Keys.Enter || e.keyCode === Keys.Space;
|
|
4425
|
-
if (!isEnterOrSpace) {
|
|
4426
|
-
return;
|
|
4427
|
-
}
|
|
4466
|
+
onEnterOrSpaceKeyDown(e) {
|
|
4428
4467
|
this.clickHandler(e);
|
|
4429
4468
|
const link = nestedLink(this.element.nativeElement, ACTIVE_NESTED_LINK_SELECTOR);
|
|
4430
4469
|
if (link) {
|
|
@@ -4440,7 +4479,7 @@ class DrawerListComponent {
|
|
|
4440
4479
|
}
|
|
4441
4480
|
}
|
|
4442
4481
|
DrawerListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DrawerListComponent, deps: [{ token: DrawerService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4443
|
-
DrawerListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DrawerListComponent, selector: "[kendoDrawerList]", inputs: { itemTemplate: "itemTemplate", mini: "mini", expanded: "expanded", view: "view" }, outputs: { select: "select" }, ngImport: i0, template: "\n <ng-container *ngFor=\"let v of view; trackBy:identifyItem; let idx = index\">\n <li *ngIf=\"!v.item.separator\" kendoDrawerItem\n class=\"k-drawer-item {{expanded ? ' k-level-' + v.level : ''}}\"\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=\"0\">\n </li>\n\n <li *ngIf=\"v.item.separator\"\n class=\"k-drawer-item k-drawer-separator\"\n [ngClass]=\"v.item.cssClass\"\n [ngStyle]=\"v.item.cssStyle\">\n \n </li>\n </ng-container>\n ", isInline: true, components: [{ type: DrawerItemComponent, selector: "[kendoDrawerItem]", inputs: ["viewItem", "index", "itemTemplate", "mini", "expanded", "disabled", "cssClass", "cssStyle"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
4482
|
+
DrawerListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DrawerListComponent, selector: "[kendoDrawerList]", inputs: { itemTemplate: "itemTemplate", mini: "mini", expanded: "expanded", view: "view" }, outputs: { select: "select" }, viewQueries: [{ propertyName: "items", predicate: DrawerItemComponent, descendants: true, read: ElementRef }], ngImport: i0, template: "\n <ng-container *ngFor=\"let v of view; trackBy:identifyItem; let idx = index\">\n <li *ngIf=\"!v.item.separator\" 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.item.id === 0 ? '0' : '-1'\">\n </li>\n\n <li *ngIf=\"v.item.separator\"\n role=\"separator\"\n class=\"k-drawer-item k-drawer-separator\"\n [ngClass]=\"v.item.cssClass\"\n [ngStyle]=\"v.item.cssStyle\">\n \n </li>\n </ng-container>\n ", isInline: true, components: [{ type: DrawerItemComponent, selector: "[kendoDrawerItem]", inputs: ["viewItem", "index", "itemTemplate", "mini", "expanded", "disabled", "cssClass", "cssStyle"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
4444
4483
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DrawerListComponent, decorators: [{
|
|
4445
4484
|
type: Component,
|
|
4446
4485
|
args: [{
|
|
@@ -4450,6 +4489,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4450
4489
|
<ng-container *ngFor="let v of view; trackBy:identifyItem; let idx = index">
|
|
4451
4490
|
<li *ngIf="!v.item.separator" kendoDrawerItem
|
|
4452
4491
|
class="k-drawer-item {{expanded ? ' k-level-' + v.level : ''}}"
|
|
4492
|
+
role="menuitem"
|
|
4453
4493
|
[viewItem]="v"
|
|
4454
4494
|
[index]="idx"
|
|
4455
4495
|
[mini]="mini"
|
|
@@ -4458,10 +4498,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4458
4498
|
[attr.${DRAWER_ITEM_INDEX}]="v.index"
|
|
4459
4499
|
[ngClass]="v.item.cssClass"
|
|
4460
4500
|
[ngStyle]="v.item.cssStyle"
|
|
4461
|
-
tabindex="0">
|
|
4501
|
+
[tabindex]="v.item.id === 0 ? '0' : '-1'">
|
|
4462
4502
|
</li>
|
|
4463
4503
|
|
|
4464
4504
|
<li *ngIf="v.item.separator"
|
|
4505
|
+
role="separator"
|
|
4465
4506
|
class="k-drawer-item k-drawer-separator"
|
|
4466
4507
|
[ngClass]="v.item.cssClass"
|
|
4467
4508
|
[ngStyle]="v.item.cssStyle">
|
|
@@ -4480,6 +4521,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4480
4521
|
type: Input
|
|
4481
4522
|
}], select: [{
|
|
4482
4523
|
type: Output
|
|
4524
|
+
}], items: [{
|
|
4525
|
+
type: ViewChildren,
|
|
4526
|
+
args: [DrawerItemComponent, { read: ElementRef }]
|
|
4483
4527
|
}] } });
|
|
4484
4528
|
|
|
4485
4529
|
const DEFAULT_ANIMATION = { type: 'slide', duration: 200 };
|
|
@@ -4738,7 +4782,7 @@ class DrawerComponent {
|
|
|
4738
4782
|
}
|
|
4739
4783
|
}
|
|
4740
4784
|
DrawerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DrawerComponent, deps: [{ token: i0.ElementRef }, { token: i1$2.AnimationBuilder }, { token: i1.LocalizationService }, { token: DrawerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4741
|
-
DrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DrawerComponent, 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-
|
|
4785
|
+
DrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DrawerComponent, 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.transform": "this.overlayTransofrmStyles", "style.flexBasis.px": "this.flexStyles", "attr.dir": "this.direction" } }, providers: [
|
|
4742
4786
|
LocalizationService,
|
|
4743
4787
|
DrawerService,
|
|
4744
4788
|
{
|
|
@@ -4753,6 +4797,8 @@ DrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
4753
4797
|
</ng-template>
|
|
4754
4798
|
|
|
4755
4799
|
<ul kendoDrawerList
|
|
4800
|
+
role="menubar"
|
|
4801
|
+
orientation="vertical"
|
|
4756
4802
|
(select)="onSelect($event)"
|
|
4757
4803
|
[mini]="mini"
|
|
4758
4804
|
[expanded]="expanded"
|
|
@@ -4792,6 +4838,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4792
4838
|
</ng-template>
|
|
4793
4839
|
|
|
4794
4840
|
<ul kendoDrawerList
|
|
4841
|
+
role="menubar"
|
|
4842
|
+
orientation="vertical"
|
|
4795
4843
|
(select)="onSelect($event)"
|
|
4796
4844
|
[mini]="mini"
|
|
4797
4845
|
[expanded]="expanded"
|
|
@@ -4812,9 +4860,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4812
4860
|
`
|
|
4813
4861
|
}]
|
|
4814
4862
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.AnimationBuilder }, { type: i1.LocalizationService }, { type: DrawerService }]; }, propDecorators: { hostClasses: [{
|
|
4815
|
-
type: HostBinding,
|
|
4816
|
-
args: ['class.k-widget']
|
|
4817
|
-
}, {
|
|
4818
4863
|
type: HostBinding,
|
|
4819
4864
|
args: ['class.k-drawer']
|
|
4820
4865
|
}], startPositionClass: [{
|
|
@@ -4862,16 +4907,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4862
4907
|
type: Output
|
|
4863
4908
|
}], drawerTemplate: [{
|
|
4864
4909
|
type: ContentChild,
|
|
4865
|
-
args: [DrawerTemplateDirective
|
|
4910
|
+
args: [DrawerTemplateDirective]
|
|
4866
4911
|
}], footerTemplate: [{
|
|
4867
4912
|
type: ContentChild,
|
|
4868
|
-
args: [DrawerFooterTemplateDirective
|
|
4913
|
+
args: [DrawerFooterTemplateDirective]
|
|
4869
4914
|
}], headerTemplate: [{
|
|
4870
4915
|
type: ContentChild,
|
|
4871
|
-
args: [DrawerHeaderTemplateDirective
|
|
4916
|
+
args: [DrawerHeaderTemplateDirective]
|
|
4872
4917
|
}], itemTemplate: [{
|
|
4873
4918
|
type: ContentChild,
|
|
4874
|
-
args: [DrawerItemTemplateDirective
|
|
4919
|
+
args: [DrawerItemTemplateDirective]
|
|
4875
4920
|
}] } });
|
|
4876
4921
|
|
|
4877
4922
|
/**
|
|
@@ -4970,7 +5015,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4970
5015
|
args: ['attr.dir']
|
|
4971
5016
|
}], drawer: [{
|
|
4972
5017
|
type: ContentChild,
|
|
4973
|
-
args: [DrawerComponent
|
|
5018
|
+
args: [DrawerComponent]
|
|
4974
5019
|
}] } });
|
|
4975
5020
|
|
|
4976
5021
|
/**
|
|
@@ -6940,7 +6985,6 @@ class ExpansionPanelComponent {
|
|
|
6940
6985
|
*/
|
|
6941
6986
|
this.collapse = new EventEmitter();
|
|
6942
6987
|
this.hostClass = true;
|
|
6943
|
-
this.tabindex = 0;
|
|
6944
6988
|
/**
|
|
6945
6989
|
* @hidden
|
|
6946
6990
|
*/
|
|
@@ -6975,31 +7019,13 @@ class ExpansionPanelComponent {
|
|
|
6975
7019
|
get expandedClass() {
|
|
6976
7020
|
return this.expanded && !this.disabled;
|
|
6977
7021
|
}
|
|
6978
|
-
get focusClass() {
|
|
6979
|
-
return this.focused;
|
|
6980
|
-
}
|
|
6981
|
-
get disabledClass() {
|
|
6982
|
-
return this.disabled;
|
|
6983
|
-
}
|
|
6984
|
-
/**
|
|
6985
|
-
* @hidden
|
|
6986
|
-
*/
|
|
6987
|
-
onComponentBlur() {
|
|
6988
|
-
if (this.focused) {
|
|
6989
|
-
this.focused = false;
|
|
6990
|
-
}
|
|
6991
|
-
}
|
|
6992
|
-
/**
|
|
6993
|
-
* @hidden
|
|
6994
|
-
*/
|
|
6995
|
-
onComponentFocus() {
|
|
6996
|
-
if (!this.focused) {
|
|
6997
|
-
this.focused = true;
|
|
6998
|
-
}
|
|
6999
|
-
}
|
|
7000
7022
|
ngOnInit() {
|
|
7001
7023
|
this.renderer.removeAttribute(this.hostElement.nativeElement, 'title');
|
|
7002
7024
|
this.subscriptions = this.localizationService.changes.subscribe(({ rtl }) => { this.direction = rtl ? 'rtl' : 'ltr'; });
|
|
7025
|
+
const elem = this.hostElement.nativeElement;
|
|
7026
|
+
const header = this.header.nativeElement;
|
|
7027
|
+
this.subscriptions.add(this.renderer.listen(header, 'focus', () => this.focusExpansionPanel(elem)));
|
|
7028
|
+
this.subscriptions.add(this.renderer.listen(header, 'blur', () => this.blurExpansionPanel(elem)));
|
|
7003
7029
|
}
|
|
7004
7030
|
ngAfterViewInit() {
|
|
7005
7031
|
this.initDomEvents();
|
|
@@ -7019,8 +7045,8 @@ class ExpansionPanelComponent {
|
|
|
7019
7045
|
}
|
|
7020
7046
|
if (!this.disabled) {
|
|
7021
7047
|
this.ngZone.runOutsideAngular(() => {
|
|
7022
|
-
const
|
|
7023
|
-
this.subscriptions.add(this.renderer.listen(
|
|
7048
|
+
const elem = this.hostElement.nativeElement;
|
|
7049
|
+
this.subscriptions.add(this.renderer.listen(elem, 'keydown', this.keyDownHandler.bind(this)));
|
|
7024
7050
|
});
|
|
7025
7051
|
}
|
|
7026
7052
|
}
|
|
@@ -7032,7 +7058,7 @@ class ExpansionPanelComponent {
|
|
|
7032
7058
|
if (!isEnterOrSpace) {
|
|
7033
7059
|
return;
|
|
7034
7060
|
}
|
|
7035
|
-
if (hasClass(ev.target, 'k-expander')) {
|
|
7061
|
+
if (hasClass(ev.target, 'k-expander-header')) {
|
|
7036
7062
|
ev.preventDefault();
|
|
7037
7063
|
this.ngZone.run(() => {
|
|
7038
7064
|
this.onHeaderAction();
|
|
@@ -7043,7 +7069,8 @@ class ExpansionPanelComponent {
|
|
|
7043
7069
|
* @hidden
|
|
7044
7070
|
*/
|
|
7045
7071
|
onHeaderClick(ev) {
|
|
7046
|
-
|
|
7072
|
+
const header = this.header.nativeElement;
|
|
7073
|
+
if (!isFocusable(ev.target) || (ev.target === header) && !this.disabled) {
|
|
7047
7074
|
this.onHeaderAction();
|
|
7048
7075
|
}
|
|
7049
7076
|
}
|
|
@@ -7051,7 +7078,6 @@ class ExpansionPanelComponent {
|
|
|
7051
7078
|
* @hidden
|
|
7052
7079
|
*/
|
|
7053
7080
|
onHeaderAction() {
|
|
7054
|
-
this.focused = true;
|
|
7055
7081
|
const eventArgs = new ExpansionPanelActionEvent();
|
|
7056
7082
|
eventArgs.action = this.expanded ? 'collapse' : 'expand';
|
|
7057
7083
|
this.action.emit(eventArgs);
|
|
@@ -7106,6 +7132,18 @@ class ExpansionPanelComponent {
|
|
|
7106
7132
|
}
|
|
7107
7133
|
this.emitExpandCollapseEvent();
|
|
7108
7134
|
}
|
|
7135
|
+
focusExpansionPanel(el) {
|
|
7136
|
+
if (!this.focused) {
|
|
7137
|
+
this.focused = true;
|
|
7138
|
+
this.renderer.addClass(el, 'k-focus');
|
|
7139
|
+
}
|
|
7140
|
+
}
|
|
7141
|
+
blurExpansionPanel(el) {
|
|
7142
|
+
if (this.focused) {
|
|
7143
|
+
this.focused = false;
|
|
7144
|
+
this.renderer.removeClass(el, 'k-focus');
|
|
7145
|
+
}
|
|
7146
|
+
}
|
|
7109
7147
|
setExpanded(value) {
|
|
7110
7148
|
this._expanded = value;
|
|
7111
7149
|
this.expandedChange.emit(value);
|
|
@@ -7146,18 +7184,24 @@ class ExpansionPanelComponent {
|
|
|
7146
7184
|
}
|
|
7147
7185
|
}
|
|
7148
7186
|
ExpansionPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpansionPanelComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.LocalizationService }, { token: i1$2.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
7149
|
-
ExpansionPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ExpansionPanelComponent, selector: "kendo-expansionpanel", inputs: { title: "title", subtitle: "subtitle", disabled: "disabled", expanded: "expanded", expandIcon: "expandIcon", collapseIcon: "collapseIcon", animation: "animation" }, outputs: { expandedChange: "expandedChange", action: "action", expand: "expand", collapse: "collapse" }, host: {
|
|
7187
|
+
ExpansionPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ExpansionPanelComponent, selector: "kendo-expansionpanel", inputs: { title: "title", subtitle: "subtitle", disabled: "disabled", expanded: "expanded", expandIcon: "expandIcon", collapseIcon: "collapseIcon", animation: "animation" }, outputs: { expandedChange: "expandedChange", action: "action", expand: "expand", collapse: "collapse" }, host: { properties: { "class.k-expander": "this.hostClass", "class.k-expanded": "this.expandedClass", "attr.dir": "this.direction" } }, providers: [
|
|
7150
7188
|
LocalizationService,
|
|
7151
7189
|
{
|
|
7152
7190
|
provide: L10N_PREFIX,
|
|
7153
7191
|
useValue: 'kendo.expansionpanel'
|
|
7154
7192
|
}
|
|
7155
|
-
], queries: [{ propertyName: "titleTemplate", first: true, predicate: ExpansionPanelTitleDirective, descendants: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }], exportAs: ["kendoExpansionPanel"], ngImport: i0, template: `
|
|
7193
|
+
], queries: [{ propertyName: "titleTemplate", first: true, predicate: ExpansionPanelTitleDirective, descendants: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }, { propertyName: "header", first: true, predicate: ["header"], descendants: true, static: true }], exportAs: ["kendoExpansionPanel"], ngImport: i0, template: `
|
|
7156
7194
|
<div
|
|
7195
|
+
#header
|
|
7157
7196
|
[class.k-expander-header]="true"
|
|
7197
|
+
[class.k-disabled]="disabled"
|
|
7198
|
+
[attr.aria-disabled]="disabled"
|
|
7158
7199
|
[attr.aria-expanded]="expanded && !disabled"
|
|
7159
7200
|
role="button"
|
|
7160
|
-
|
|
7201
|
+
tabindex="0"
|
|
7202
|
+
[attr.aria-controls]="title"
|
|
7203
|
+
(click)="onHeaderClick($event)"
|
|
7204
|
+
>
|
|
7161
7205
|
<ng-container *ngIf="!titleTemplate">
|
|
7162
7206
|
<div *ngIf="title" class="k-expander-title">{{ title }}</div>
|
|
7163
7207
|
<span class="k-spacer"></span>
|
|
@@ -7174,7 +7218,7 @@ ExpansionPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
7174
7218
|
</span>
|
|
7175
7219
|
</div>
|
|
7176
7220
|
<div #content class="k-expander-content-wrapper">
|
|
7177
|
-
<div
|
|
7221
|
+
<div [id]="title" class="k-expander-content" [attr.aria-hidden]="!expanded">
|
|
7178
7222
|
<ng-content></ng-content>
|
|
7179
7223
|
</div>
|
|
7180
7224
|
</div>
|
|
@@ -7193,10 +7237,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7193
7237
|
selector: 'kendo-expansionpanel',
|
|
7194
7238
|
template: `
|
|
7195
7239
|
<div
|
|
7240
|
+
#header
|
|
7196
7241
|
[class.k-expander-header]="true"
|
|
7242
|
+
[class.k-disabled]="disabled"
|
|
7243
|
+
[attr.aria-disabled]="disabled"
|
|
7197
7244
|
[attr.aria-expanded]="expanded && !disabled"
|
|
7198
7245
|
role="button"
|
|
7199
|
-
|
|
7246
|
+
tabindex="0"
|
|
7247
|
+
[attr.aria-controls]="title"
|
|
7248
|
+
(click)="onHeaderClick($event)"
|
|
7249
|
+
>
|
|
7200
7250
|
<ng-container *ngIf="!titleTemplate">
|
|
7201
7251
|
<div *ngIf="title" class="k-expander-title">{{ title }}</div>
|
|
7202
7252
|
<span class="k-spacer"></span>
|
|
@@ -7213,7 +7263,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7213
7263
|
</span>
|
|
7214
7264
|
</div>
|
|
7215
7265
|
<div #content class="k-expander-content-wrapper">
|
|
7216
|
-
<div
|
|
7266
|
+
<div [id]="title" class="k-expander-content" [attr.aria-hidden]="!expanded">
|
|
7217
7267
|
<ng-content></ng-content>
|
|
7218
7268
|
</div>
|
|
7219
7269
|
</div>
|
|
@@ -7247,33 +7297,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7247
7297
|
}], content: [{
|
|
7248
7298
|
type: ViewChild,
|
|
7249
7299
|
args: ['content', { static: true }]
|
|
7300
|
+
}], header: [{
|
|
7301
|
+
type: ViewChild,
|
|
7302
|
+
args: ['header', { static: true }]
|
|
7250
7303
|
}], hostClass: [{
|
|
7251
7304
|
type: HostBinding,
|
|
7252
7305
|
args: ['class.k-expander']
|
|
7253
7306
|
}], expandedClass: [{
|
|
7254
7307
|
type: HostBinding,
|
|
7255
7308
|
args: ['class.k-expanded']
|
|
7256
|
-
}], focusClass: [{
|
|
7257
|
-
type: HostBinding,
|
|
7258
|
-
args: ['class.k-focus']
|
|
7259
|
-
}], disabledClass: [{
|
|
7260
|
-
type: HostBinding,
|
|
7261
|
-
args: ['attr.aria-disabled']
|
|
7262
|
-
}, {
|
|
7263
|
-
type: HostBinding,
|
|
7264
|
-
args: ['class.k-disabled']
|
|
7265
7309
|
}], direction: [{
|
|
7266
7310
|
type: HostBinding,
|
|
7267
7311
|
args: ['attr.dir']
|
|
7268
|
-
}], tabindex: [{
|
|
7269
|
-
type: HostBinding,
|
|
7270
|
-
args: ['attr.tabindex']
|
|
7271
|
-
}], onComponentBlur: [{
|
|
7272
|
-
type: HostListener,
|
|
7273
|
-
args: ['blur']
|
|
7274
|
-
}], onComponentFocus: [{
|
|
7275
|
-
type: HostListener,
|
|
7276
|
-
args: ['focus']
|
|
7277
7312
|
}] } });
|
|
7278
7313
|
|
|
7279
7314
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-layout",
|
|
3
|
-
"version": "7.1.5-dev.
|
|
3
|
+
"version": "7.1.5-dev.202210241150",
|
|
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",
|