@progress/kendo-angular-layout 7.0.1-dev.202205020614 → 7.0.2-dev.202205251252

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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-layout',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1651472017,
12
+ publishDate: 1653483097,
13
13
  version: '',
14
14
  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'
15
15
  };
@@ -284,6 +284,7 @@ export class PanelBarComponent {
284
284
  return;
285
285
  }
286
286
  let modifiedItems = new Array();
287
+ let selectPreventedItems = [];
287
288
  this.allItems
288
289
  .forEach((currentItem) => {
289
290
  let selectedState = currentItem === item;
@@ -297,10 +298,13 @@ export class PanelBarComponent {
297
298
  this.activeDescendant = focusedState ? currentItem.itemId : '';
298
299
  modifiedItems.push(currentItem);
299
300
  }
301
+ else {
302
+ selectPreventedItems.push(currentItem);
303
+ }
300
304
  }
301
305
  });
302
306
  if (this.expandMode === PanelBarExpandMode.Multiple) {
303
- if ((item.hasChildItems || item.hasContent) && item.selected) {
307
+ if ((item.hasChildItems || item.hasContent) && !selectPreventedItems.includes(item)) {
304
308
  const isEventPrevented = item.expanded ?
305
309
  this.emitEvent('collapse', item).isDefaultPrevented() :
306
310
  this.emitEvent('expand', item).isDefaultPrevented();
@@ -316,7 +320,7 @@ export class PanelBarComponent {
316
320
  let siblings = item.parent ? item.parent.childrenItems : this.childrenItems;
317
321
  let preventedCollapseItem;
318
322
  let expandedItems = [];
319
- if ((item.hasChildItems || item.hasContent) && item.selected) {
323
+ if ((item.hasChildItems || item.hasContent) && !selectPreventedItems.includes(item)) {
320
324
  siblings
321
325
  .forEach((currentItem) => {
322
326
  let expandedState = currentItem === item;
@@ -49,6 +49,7 @@ export class SplitterPaneComponent {
49
49
  * Allows a two-way binding of the `collapsed` pane property.
50
50
  */
51
51
  this.collapsedChange = new EventEmitter();
52
+ this.ariaRole = 'group';
52
53
  this.hostClass = true;
53
54
  /**
54
55
  * @hidden
@@ -157,7 +158,7 @@ export class SplitterPaneComponent {
157
158
  }
158
159
  }
159
160
  SplitterPaneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitterPaneComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
160
- SplitterPaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitterPaneComponent, selector: "kendo-splitter-pane", inputs: { order: "order", size: "size", min: "min", max: "max", resizable: "resizable", collapsible: "collapsible", scrollable: "scrollable", collapsed: "collapsed", orientation: "orientation", containsSplitter: "containsSplitter", overlayContent: "overlayContent" }, outputs: { sizeChange: "sizeChange", collapsedChange: "collapsedChange" }, host: { properties: { "class.k-pane": "this.hostClass", "class.k-pane-static": "this.staticPaneClass", "class.k-scrollable": "this.scrollablePaneClass" } }, exportAs: ["kendoSplitterPane"], ngImport: i0, template: `
161
+ SplitterPaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitterPaneComponent, selector: "kendo-splitter-pane", inputs: { order: "order", size: "size", min: "min", max: "max", resizable: "resizable", collapsible: "collapsible", scrollable: "scrollable", collapsed: "collapsed", orientation: "orientation", containsSplitter: "containsSplitter", overlayContent: "overlayContent" }, outputs: { sizeChange: "sizeChange", collapsedChange: "collapsedChange" }, host: { properties: { "attr.role": "this.ariaRole", "class.k-pane": "this.hostClass", "class.k-pane-static": "this.staticPaneClass", "class.k-scrollable": "this.scrollablePaneClass" } }, exportAs: ["kendoSplitterPane"], ngImport: i0, template: `
161
162
  <ng-container *ngIf="!collapsed"><ng-content></ng-content></ng-container>
162
163
  <div *ngIf="overlayContent" class="k-splitter-overlay k-overlay"></div>
163
164
  `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
@@ -197,6 +198,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
197
198
  type: Output
198
199
  }], collapsedChange: [{
199
200
  type: Output
201
+ }], ariaRole: [{
202
+ type: HostBinding,
203
+ args: ['attr.role']
200
204
  }], hostClass: [{
201
205
  type: HostBinding,
202
206
  args: ['class.k-pane']
@@ -65,7 +65,6 @@ export class SplitterComponent {
65
65
  * Panes in a vertical Splitter are placed vertically.
66
66
  */
67
67
  this.orientation = 'horizontal';
68
- this.ariaRole = 'splitter';
69
68
  validatePackage(packageMetadata);
70
69
  if (enclosingPane) {
71
70
  enclosingPane.containsSplitter = true;
@@ -140,7 +139,7 @@ export class SplitterComponent {
140
139
  }
141
140
  }
142
141
  SplitterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitterComponent, deps: [{ token: i0.ElementRef }, { token: i1.SplitterService }, { token: i2.LocalizationService }, { token: i0.Renderer2 }, { token: SplitterPaneComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component });
143
- SplitterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitterComponent, selector: "kendo-splitter", inputs: { orientation: "orientation" }, outputs: { layoutChange: "layoutChange" }, host: { properties: { "class.k-splitter": "this.hostClasses", "class.k-splitter-flex": "this.hostClasses", "class.k-splitter-horizontal": "this.horizontalHostClasses", "class.k-splitter-vertical": "this.verticalHostClasses", "attr.dir": "this.dir", "attr.role": "this.ariaRole" } }, providers: [
142
+ SplitterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitterComponent, selector: "kendo-splitter", inputs: { orientation: "orientation" }, outputs: { layoutChange: "layoutChange" }, host: { properties: { "class.k-splitter": "this.hostClasses", "class.k-splitter-flex": "this.hostClasses", "class.k-splitter-horizontal": "this.horizontalHostClasses", "class.k-splitter-vertical": "this.verticalHostClasses", "attr.dir": "this.dir" } }, providers: [
144
143
  SplitterService,
145
144
  LocalizationService,
146
145
  {
@@ -217,9 +216,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
217
216
  }], dir: [{
218
217
  type: HostBinding,
219
218
  args: ['attr.dir']
220
- }], ariaRole: [{
221
- type: HostBinding,
222
- args: ['attr.role']
223
219
  }], splitbars: [{
224
220
  type: ViewChildren,
225
221
  args: [SplitterBarComponent]
@@ -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: 1651472017,
29
+ publishDate: 1653483097,
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
  };
@@ -1186,6 +1186,7 @@ class PanelBarComponent {
1186
1186
  return;
1187
1187
  }
1188
1188
  let modifiedItems = new Array();
1189
+ let selectPreventedItems = [];
1189
1190
  this.allItems
1190
1191
  .forEach((currentItem) => {
1191
1192
  let selectedState = currentItem === item;
@@ -1199,10 +1200,13 @@ class PanelBarComponent {
1199
1200
  this.activeDescendant = focusedState ? currentItem.itemId : '';
1200
1201
  modifiedItems.push(currentItem);
1201
1202
  }
1203
+ else {
1204
+ selectPreventedItems.push(currentItem);
1205
+ }
1202
1206
  }
1203
1207
  });
1204
1208
  if (this.expandMode === PanelBarExpandMode.Multiple) {
1205
- if ((item.hasChildItems || item.hasContent) && item.selected) {
1209
+ if ((item.hasChildItems || item.hasContent) && !selectPreventedItems.includes(item)) {
1206
1210
  const isEventPrevented = item.expanded ?
1207
1211
  this.emitEvent('collapse', item).isDefaultPrevented() :
1208
1212
  this.emitEvent('expand', item).isDefaultPrevented();
@@ -1218,7 +1222,7 @@ class PanelBarComponent {
1218
1222
  let siblings = item.parent ? item.parent.childrenItems : this.childrenItems;
1219
1223
  let preventedCollapseItem;
1220
1224
  let expandedItems = [];
1221
- if ((item.hasChildItems || item.hasContent) && item.selected) {
1225
+ if ((item.hasChildItems || item.hasContent) && !selectPreventedItems.includes(item)) {
1222
1226
  siblings
1223
1227
  .forEach((currentItem) => {
1224
1228
  let expandedState = currentItem === item;
@@ -1555,6 +1559,7 @@ class SplitterPaneComponent {
1555
1559
  * Allows a two-way binding of the `collapsed` pane property.
1556
1560
  */
1557
1561
  this.collapsedChange = new EventEmitter();
1562
+ this.ariaRole = 'group';
1558
1563
  this.hostClass = true;
1559
1564
  /**
1560
1565
  * @hidden
@@ -1663,7 +1668,7 @@ class SplitterPaneComponent {
1663
1668
  }
1664
1669
  }
1665
1670
  SplitterPaneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitterPaneComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1666
- SplitterPaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitterPaneComponent, selector: "kendo-splitter-pane", inputs: { order: "order", size: "size", min: "min", max: "max", resizable: "resizable", collapsible: "collapsible", scrollable: "scrollable", collapsed: "collapsed", orientation: "orientation", containsSplitter: "containsSplitter", overlayContent: "overlayContent" }, outputs: { sizeChange: "sizeChange", collapsedChange: "collapsedChange" }, host: { properties: { "class.k-pane": "this.hostClass", "class.k-pane-static": "this.staticPaneClass", "class.k-scrollable": "this.scrollablePaneClass" } }, exportAs: ["kendoSplitterPane"], ngImport: i0, template: `
1671
+ SplitterPaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitterPaneComponent, selector: "kendo-splitter-pane", inputs: { order: "order", size: "size", min: "min", max: "max", resizable: "resizable", collapsible: "collapsible", scrollable: "scrollable", collapsed: "collapsed", orientation: "orientation", containsSplitter: "containsSplitter", overlayContent: "overlayContent" }, outputs: { sizeChange: "sizeChange", collapsedChange: "collapsedChange" }, host: { properties: { "attr.role": "this.ariaRole", "class.k-pane": "this.hostClass", "class.k-pane-static": "this.staticPaneClass", "class.k-scrollable": "this.scrollablePaneClass" } }, exportAs: ["kendoSplitterPane"], ngImport: i0, template: `
1667
1672
  <ng-container *ngIf="!collapsed"><ng-content></ng-content></ng-container>
1668
1673
  <div *ngIf="overlayContent" class="k-splitter-overlay k-overlay"></div>
1669
1674
  `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
@@ -1703,6 +1708,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1703
1708
  type: Output
1704
1709
  }], collapsedChange: [{
1705
1710
  type: Output
1711
+ }], ariaRole: [{
1712
+ type: HostBinding,
1713
+ args: ['attr.role']
1706
1714
  }], hostClass: [{
1707
1715
  type: HostBinding,
1708
1716
  args: ['class.k-pane']
@@ -2131,7 +2139,6 @@ class SplitterComponent {
2131
2139
  * Panes in a vertical Splitter are placed vertically.
2132
2140
  */
2133
2141
  this.orientation = 'horizontal';
2134
- this.ariaRole = 'splitter';
2135
2142
  validatePackage(packageMetadata);
2136
2143
  if (enclosingPane) {
2137
2144
  enclosingPane.containsSplitter = true;
@@ -2206,7 +2213,7 @@ class SplitterComponent {
2206
2213
  }
2207
2214
  }
2208
2215
  SplitterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitterComponent, deps: [{ token: i0.ElementRef }, { token: SplitterService }, { token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: SplitterPaneComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component });
2209
- SplitterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitterComponent, selector: "kendo-splitter", inputs: { orientation: "orientation" }, outputs: { layoutChange: "layoutChange" }, host: { properties: { "class.k-splitter": "this.hostClasses", "class.k-splitter-flex": "this.hostClasses", "class.k-splitter-horizontal": "this.horizontalHostClasses", "class.k-splitter-vertical": "this.verticalHostClasses", "attr.dir": "this.dir", "attr.role": "this.ariaRole" } }, providers: [
2216
+ SplitterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitterComponent, selector: "kendo-splitter", inputs: { orientation: "orientation" }, outputs: { layoutChange: "layoutChange" }, host: { properties: { "class.k-splitter": "this.hostClasses", "class.k-splitter-flex": "this.hostClasses", "class.k-splitter-horizontal": "this.horizontalHostClasses", "class.k-splitter-vertical": "this.verticalHostClasses", "attr.dir": "this.dir" } }, providers: [
2210
2217
  SplitterService,
2211
2218
  LocalizationService,
2212
2219
  {
@@ -2283,9 +2290,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
2283
2290
  }], dir: [{
2284
2291
  type: HostBinding,
2285
2292
  args: ['attr.dir']
2286
- }], ariaRole: [{
2287
- type: HostBinding,
2288
- args: ['attr.role']
2289
2293
  }], splitbars: [{
2290
2294
  type: ViewChildren,
2291
2295
  args: [SplitterBarComponent]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-layout",
3
- "version": "7.0.1-dev.202205020614",
3
+ "version": "7.0.2-dev.202205251252",
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",
@@ -72,6 +72,7 @@ export declare class SplitterPaneComponent implements AfterViewChecked {
72
72
  */
73
73
  collapsedChange: EventEmitter<boolean>;
74
74
  get isHidden(): boolean;
75
+ ariaRole: string;
75
76
  hostClass: boolean;
76
77
  get staticPaneClass(): boolean;
77
78
  get scrollablePaneClass(): boolean;
@@ -66,7 +66,6 @@ export declare class SplitterComponent implements AfterContentInit {
66
66
  get horizontalHostClasses(): boolean;
67
67
  get verticalHostClasses(): boolean;
68
68
  get dir(): string;
69
- ariaRole: string;
70
69
  set splitbars(splitbars: QueryList<SplitterBarComponent>);
71
70
  /**
72
71
  * @hidden
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { TabStripScrollButtonsVisibility } from "./scroll-buttons-visibility";
6
6
  /**
7
- * The settings for the scrollable functionality of the TabStrip. ([see example]({% slug scrollable_tabstrip %}toc-scrollable-settings)).
7
+ * The settings for the scrollable functionality of the TabStrip. ([see example]({% slug scrollable_tabstrip %}))
8
8
  */
9
9
  export interface TabStripScrollableSettings {
10
10
  /**