@progress/kendo-angular-layout 13.0.3 → 13.0.4-develop.1

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: 1686640134,
13
- version: '13.0.3',
12
+ publishDate: 1686676813,
13
+ version: '13.0.4-develop.1',
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
  };
@@ -13,12 +13,12 @@ import { TabStripService } from './tabstrip.service';
13
13
  import { ScrollService } from './tabstrip-scroll.service';
14
14
  import { Subscription } from 'rxjs';
15
15
  import { isFocusable } from '../common/dom-queries';
16
- import { getTabByIndex, isTablistHorizontal, tabStripHasScrollButtons, mouseScrollEnabled, resetTabFocus } from './util';
16
+ import { getTabByIndex, isTablistHorizontal, tabStripHasScrollButtons, mouseScrollEnabled, resetTabFocus, getId } from './util';
17
17
  import { normalizeScrollableSettings } from './models/scrollable-settings';
18
18
  import { TabScrollEvent } from './events/tabscroll-event';
19
19
  import { TabStripScrollableButtonComponent } from './scrollable-button.component';
20
20
  import { take } from 'rxjs/operators';
21
- import { isDocumentAvailable } from '@progress/kendo-angular-common';
21
+ import { guid, isDocumentAvailable } from '@progress/kendo-angular-common';
22
22
  import * as i0 from "@angular/core";
23
23
  import * as i1 from "@progress/kendo-angular-l10n";
24
24
  import * as i2 from "./tabstrip.service";
@@ -92,6 +92,7 @@ export class TabStripComponent {
92
92
  this._scrollableSettings = normalizeScrollableSettings(false);
93
93
  this.subscriptions = new Subscription();
94
94
  this.subscriptionsArePresent = false;
95
+ this.tabStripId = guid();
95
96
  validatePackage(packageMetadata);
96
97
  this.tabstripService.owner = this;
97
98
  this.scrollService.owner = this;
@@ -268,6 +269,18 @@ export class TabStripComponent {
268
269
  this.tabstripService.selectTab(tab, index);
269
270
  this.scrollToSelectedTab();
270
271
  }
272
+ /**
273
+ * @hidden
274
+ */
275
+ getTabId(idx) {
276
+ return getId('k-tabstrip-tab', this.tabStripId, idx);
277
+ }
278
+ /**
279
+ * @hidden
280
+ */
281
+ getTabPanelId(idx) {
282
+ return getId('k-tabstrip-tabpanel', this.tabStripId, idx);
283
+ }
271
284
  /**
272
285
  * @hidden
273
286
  */
@@ -441,8 +454,8 @@ TabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
441
454
  [closeSVGIcon]="closeSVGIcon"
442
455
  (tabClose)="tabClose.emit($event)"
443
456
  (click)="onTabClick($event, i)"
444
- [id]="'k-tabstrip-tab-' + i"
445
- [attr.aria-controls]="tab.selected ? 'k-tabstrip-tabpanel-' + i : undefined"></li>
457
+ [id]="getTabId(i)"
458
+ [attr.aria-controls]="tab.selected ? getTabPanelId(i) : undefined"></li>
446
459
  </ng-container>
447
460
  </ul>
448
461
  <span
@@ -467,10 +480,10 @@ TabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
467
480
  [ngClass]="!this.keepTabContent || tab.selected ? 'k-tabstrip-content k-active' : 'k-tabstrip-content'"
468
481
  [tabIndex]="0"
469
482
  role="tabpanel"
470
- [id]="'k-tabstrip-tabpanel-' + i"
483
+ [id]="getTabPanelId(i)"
471
484
  [attr.aria-hidden]="!tab.selected"
472
485
  [attr.aria-expanded]="tab.selected"
473
- [attr.aria-labelledby]="'k-tabstrip-tab-' + i"
486
+ [attr.aria-labelledby]="getTabId(i)"
474
487
  [attr.aria-disabled]="tab.disabled"
475
488
  >
476
489
  <ng-template [ngTemplateOutlet]="tab.tabContent?.templateRef">
@@ -573,8 +586,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
573
586
  [closeSVGIcon]="closeSVGIcon"
574
587
  (tabClose)="tabClose.emit($event)"
575
588
  (click)="onTabClick($event, i)"
576
- [id]="'k-tabstrip-tab-' + i"
577
- [attr.aria-controls]="tab.selected ? 'k-tabstrip-tabpanel-' + i : undefined"></li>
589
+ [id]="getTabId(i)"
590
+ [attr.aria-controls]="tab.selected ? getTabPanelId(i) : undefined"></li>
578
591
  </ng-container>
579
592
  </ul>
580
593
  <span
@@ -599,10 +612,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
599
612
  [ngClass]="!this.keepTabContent || tab.selected ? 'k-tabstrip-content k-active' : 'k-tabstrip-content'"
600
613
  [tabIndex]="0"
601
614
  role="tabpanel"
602
- [id]="'k-tabstrip-tabpanel-' + i"
615
+ [id]="getTabPanelId(i)"
603
616
  [attr.aria-hidden]="!tab.selected"
604
617
  [attr.aria-expanded]="tab.selected"
605
- [attr.aria-labelledby]="'k-tabstrip-tab-' + i"
618
+ [attr.aria-labelledby]="getTabId(i)"
606
619
  [attr.aria-disabled]="tab.disabled"
607
620
  >
608
621
  <ng-template [ngTemplateOutlet]="tab.tabContent?.templateRef">
@@ -107,3 +107,9 @@ export const resetTabSelection = (tabs) => {
107
107
  * @hidden
108
108
  */
109
109
  export const isTablistHorizontal = (tabPosition) => tabPosition === 'top' || tabPosition === 'bottom';
110
+ /**
111
+ * @hidden
112
+ */
113
+ export const getId = (prefix, tabStripId, tabIndex) => {
114
+ return `${prefix}-${tabStripId}-${tabIndex}`;
115
+ };
@@ -7,7 +7,7 @@ import { Directive, Optional, Injectable, isDevMode, Component, SkipSelf, Host,
7
7
  import * as i1 from '@progress/kendo-angular-l10n';
8
8
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
9
9
  import * as i1$1 from '@progress/kendo-angular-common';
10
- import { Keys, PreventableEvent as PreventableEvent$1, isDocumentAvailable, hasObservers, focusableSelector, isChanged, EventsModule, DraggableModule, ResizeSensorModule } from '@progress/kendo-angular-common';
10
+ import { Keys, PreventableEvent as PreventableEvent$1, isDocumentAvailable, guid, hasObservers, focusableSelector, isChanged, EventsModule, DraggableModule, ResizeSensorModule } from '@progress/kendo-angular-common';
11
11
  import { validatePackage } from '@progress/kendo-licensing';
12
12
  import * as i1$2 from '@angular/animations';
13
13
  import { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';
@@ -31,8 +31,8 @@ const packageMetadata = {
31
31
  name: '@progress/kendo-angular-layout',
32
32
  productName: 'Kendo UI for Angular',
33
33
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
34
- publishDate: 1686640134,
35
- version: '13.0.3',
34
+ publishDate: 1686676813,
35
+ version: '13.0.4-develop.1',
36
36
  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'
37
37
  };
38
38
 
@@ -2783,6 +2783,12 @@ const resetTabSelection = (tabs) => {
2783
2783
  * @hidden
2784
2784
  */
2785
2785
  const isTablistHorizontal = (tabPosition) => tabPosition === 'top' || tabPosition === 'bottom';
2786
+ /**
2787
+ * @hidden
2788
+ */
2789
+ const getId$1 = (prefix, tabStripId, tabIndex) => {
2790
+ return `${prefix}-${tabStripId}-${tabIndex}`;
2791
+ };
2786
2792
 
2787
2793
  /**
2788
2794
  * @hidden
@@ -3585,6 +3591,7 @@ class TabStripComponent {
3585
3591
  this._scrollableSettings = normalizeScrollableSettings(false);
3586
3592
  this.subscriptions = new Subscription();
3587
3593
  this.subscriptionsArePresent = false;
3594
+ this.tabStripId = guid();
3588
3595
  validatePackage(packageMetadata);
3589
3596
  this.tabstripService.owner = this;
3590
3597
  this.scrollService.owner = this;
@@ -3761,6 +3768,18 @@ class TabStripComponent {
3761
3768
  this.tabstripService.selectTab(tab, index);
3762
3769
  this.scrollToSelectedTab();
3763
3770
  }
3771
+ /**
3772
+ * @hidden
3773
+ */
3774
+ getTabId(idx) {
3775
+ return getId$1('k-tabstrip-tab', this.tabStripId, idx);
3776
+ }
3777
+ /**
3778
+ * @hidden
3779
+ */
3780
+ getTabPanelId(idx) {
3781
+ return getId$1('k-tabstrip-tabpanel', this.tabStripId, idx);
3782
+ }
3764
3783
  /**
3765
3784
  * @hidden
3766
3785
  */
@@ -3934,8 +3953,8 @@ TabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
3934
3953
  [closeSVGIcon]="closeSVGIcon"
3935
3954
  (tabClose)="tabClose.emit($event)"
3936
3955
  (click)="onTabClick($event, i)"
3937
- [id]="'k-tabstrip-tab-' + i"
3938
- [attr.aria-controls]="tab.selected ? 'k-tabstrip-tabpanel-' + i : undefined"></li>
3956
+ [id]="getTabId(i)"
3957
+ [attr.aria-controls]="tab.selected ? getTabPanelId(i) : undefined"></li>
3939
3958
  </ng-container>
3940
3959
  </ul>
3941
3960
  <span
@@ -3960,10 +3979,10 @@ TabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
3960
3979
  [ngClass]="!this.keepTabContent || tab.selected ? 'k-tabstrip-content k-active' : 'k-tabstrip-content'"
3961
3980
  [tabIndex]="0"
3962
3981
  role="tabpanel"
3963
- [id]="'k-tabstrip-tabpanel-' + i"
3982
+ [id]="getTabPanelId(i)"
3964
3983
  [attr.aria-hidden]="!tab.selected"
3965
3984
  [attr.aria-expanded]="tab.selected"
3966
- [attr.aria-labelledby]="'k-tabstrip-tab-' + i"
3985
+ [attr.aria-labelledby]="getTabId(i)"
3967
3986
  [attr.aria-disabled]="tab.disabled"
3968
3987
  >
3969
3988
  <ng-template [ngTemplateOutlet]="tab.tabContent?.templateRef">
@@ -4066,8 +4085,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4066
4085
  [closeSVGIcon]="closeSVGIcon"
4067
4086
  (tabClose)="tabClose.emit($event)"
4068
4087
  (click)="onTabClick($event, i)"
4069
- [id]="'k-tabstrip-tab-' + i"
4070
- [attr.aria-controls]="tab.selected ? 'k-tabstrip-tabpanel-' + i : undefined"></li>
4088
+ [id]="getTabId(i)"
4089
+ [attr.aria-controls]="tab.selected ? getTabPanelId(i) : undefined"></li>
4071
4090
  </ng-container>
4072
4091
  </ul>
4073
4092
  <span
@@ -4092,10 +4111,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4092
4111
  [ngClass]="!this.keepTabContent || tab.selected ? 'k-tabstrip-content k-active' : 'k-tabstrip-content'"
4093
4112
  [tabIndex]="0"
4094
4113
  role="tabpanel"
4095
- [id]="'k-tabstrip-tabpanel-' + i"
4114
+ [id]="getTabPanelId(i)"
4096
4115
  [attr.aria-hidden]="!tab.selected"
4097
4116
  [attr.aria-expanded]="tab.selected"
4098
- [attr.aria-labelledby]="'k-tabstrip-tab-' + i"
4117
+ [attr.aria-labelledby]="getTabId(i)"
4099
4118
  [attr.aria-disabled]="tab.disabled"
4100
4119
  >
4101
4120
  <ng-template [ngTemplateOutlet]="tab.tabContent?.templateRef">
@@ -7,7 +7,7 @@ import { Injectable, Directive, Optional, isDevMode, Component, SkipSelf, Host,
7
7
  import * as i1 from '@progress/kendo-angular-l10n';
8
8
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
9
9
  import * as i1$1 from '@progress/kendo-angular-common';
10
- import { Keys, PreventableEvent as PreventableEvent$1, isDocumentAvailable, hasObservers, focusableSelector, isChanged, EventsModule, DraggableModule, ResizeSensorModule } from '@progress/kendo-angular-common';
10
+ import { Keys, PreventableEvent as PreventableEvent$1, isDocumentAvailable, guid, hasObservers, focusableSelector, isChanged, EventsModule, DraggableModule, ResizeSensorModule } from '@progress/kendo-angular-common';
11
11
  import { validatePackage } from '@progress/kendo-licensing';
12
12
  import * as i1$2 from '@angular/animations';
13
13
  import { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';
@@ -31,8 +31,8 @@ const packageMetadata = {
31
31
  name: '@progress/kendo-angular-layout',
32
32
  productName: 'Kendo UI for Angular',
33
33
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
34
- publishDate: 1686640134,
35
- version: '13.0.3',
34
+ publishDate: 1686676813,
35
+ version: '13.0.4-develop.1',
36
36
  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'
37
37
  };
38
38
 
@@ -2773,6 +2773,12 @@ const resetTabSelection = (tabs) => {
2773
2773
  * @hidden
2774
2774
  */
2775
2775
  const isTablistHorizontal = (tabPosition) => tabPosition === 'top' || tabPosition === 'bottom';
2776
+ /**
2777
+ * @hidden
2778
+ */
2779
+ const getId$1 = (prefix, tabStripId, tabIndex) => {
2780
+ return `${prefix}-${tabStripId}-${tabIndex}`;
2781
+ };
2776
2782
 
2777
2783
  /**
2778
2784
  * @hidden
@@ -3575,6 +3581,7 @@ class TabStripComponent {
3575
3581
  this._scrollableSettings = normalizeScrollableSettings(false);
3576
3582
  this.subscriptions = new Subscription();
3577
3583
  this.subscriptionsArePresent = false;
3584
+ this.tabStripId = guid();
3578
3585
  validatePackage(packageMetadata);
3579
3586
  this.tabstripService.owner = this;
3580
3587
  this.scrollService.owner = this;
@@ -3751,6 +3758,18 @@ class TabStripComponent {
3751
3758
  this.tabstripService.selectTab(tab, index);
3752
3759
  this.scrollToSelectedTab();
3753
3760
  }
3761
+ /**
3762
+ * @hidden
3763
+ */
3764
+ getTabId(idx) {
3765
+ return getId$1('k-tabstrip-tab', this.tabStripId, idx);
3766
+ }
3767
+ /**
3768
+ * @hidden
3769
+ */
3770
+ getTabPanelId(idx) {
3771
+ return getId$1('k-tabstrip-tabpanel', this.tabStripId, idx);
3772
+ }
3754
3773
  /**
3755
3774
  * @hidden
3756
3775
  */
@@ -3924,8 +3943,8 @@ TabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
3924
3943
  [closeSVGIcon]="closeSVGIcon"
3925
3944
  (tabClose)="tabClose.emit($event)"
3926
3945
  (click)="onTabClick($event, i)"
3927
- [id]="'k-tabstrip-tab-' + i"
3928
- [attr.aria-controls]="tab.selected ? 'k-tabstrip-tabpanel-' + i : undefined"></li>
3946
+ [id]="getTabId(i)"
3947
+ [attr.aria-controls]="tab.selected ? getTabPanelId(i) : undefined"></li>
3929
3948
  </ng-container>
3930
3949
  </ul>
3931
3950
  <span
@@ -3950,10 +3969,10 @@ TabStripComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
3950
3969
  [ngClass]="!this.keepTabContent || tab.selected ? 'k-tabstrip-content k-active' : 'k-tabstrip-content'"
3951
3970
  [tabIndex]="0"
3952
3971
  role="tabpanel"
3953
- [id]="'k-tabstrip-tabpanel-' + i"
3972
+ [id]="getTabPanelId(i)"
3954
3973
  [attr.aria-hidden]="!tab.selected"
3955
3974
  [attr.aria-expanded]="tab.selected"
3956
- [attr.aria-labelledby]="'k-tabstrip-tab-' + i"
3975
+ [attr.aria-labelledby]="getTabId(i)"
3957
3976
  [attr.aria-disabled]="tab.disabled"
3958
3977
  >
3959
3978
  <ng-template [ngTemplateOutlet]="tab.tabContent?.templateRef">
@@ -4056,8 +4075,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4056
4075
  [closeSVGIcon]="closeSVGIcon"
4057
4076
  (tabClose)="tabClose.emit($event)"
4058
4077
  (click)="onTabClick($event, i)"
4059
- [id]="'k-tabstrip-tab-' + i"
4060
- [attr.aria-controls]="tab.selected ? 'k-tabstrip-tabpanel-' + i : undefined"></li>
4078
+ [id]="getTabId(i)"
4079
+ [attr.aria-controls]="tab.selected ? getTabPanelId(i) : undefined"></li>
4061
4080
  </ng-container>
4062
4081
  </ul>
4063
4082
  <span
@@ -4082,10 +4101,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4082
4101
  [ngClass]="!this.keepTabContent || tab.selected ? 'k-tabstrip-content k-active' : 'k-tabstrip-content'"
4083
4102
  [tabIndex]="0"
4084
4103
  role="tabpanel"
4085
- [id]="'k-tabstrip-tabpanel-' + i"
4104
+ [id]="getTabPanelId(i)"
4086
4105
  [attr.aria-hidden]="!tab.selected"
4087
4106
  [attr.aria-expanded]="tab.selected"
4088
- [attr.aria-labelledby]="'k-tabstrip-tab-' + i"
4107
+ [attr.aria-labelledby]="getTabId(i)"
4089
4108
  [attr.aria-disabled]="tab.disabled"
4090
4109
  >
4091
4110
  <ng-template [ngTemplateOutlet]="tab.tabContent?.templateRef">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-layout",
3
- "version": "13.0.3",
3
+ "version": "13.0.4-develop.1",
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",
@@ -39,16 +39,16 @@
39
39
  "@angular/core": "13 - 16",
40
40
  "@angular/platform-browser": "13 - 16",
41
41
  "@progress/kendo-licensing": "^1.0.2",
42
- "@progress/kendo-angular-common": "13.0.3",
43
- "@progress/kendo-angular-l10n": "13.0.3",
44
- "@progress/kendo-angular-progressbar": "13.0.3",
45
- "@progress/kendo-angular-icons": "13.0.3",
46
- "@progress/kendo-angular-buttons": "13.0.3",
42
+ "@progress/kendo-angular-common": "13.0.4-develop.1",
43
+ "@progress/kendo-angular-l10n": "13.0.4-develop.1",
44
+ "@progress/kendo-angular-progressbar": "13.0.4-develop.1",
45
+ "@progress/kendo-angular-icons": "13.0.4-develop.1",
46
+ "@progress/kendo-angular-buttons": "13.0.4-develop.1",
47
47
  "rxjs": "^6.5.3 || ^7.0.0"
48
48
  },
49
49
  "dependencies": {
50
50
  "tslib": "^2.3.1",
51
- "@progress/kendo-angular-schematics": "13.0.3",
51
+ "@progress/kendo-angular-schematics": "13.0.4-develop.1",
52
52
  "@progress/kendo-draggable": "^3.0.2"
53
53
  },
54
54
  "schematics": "./schematics/collection.json",
@@ -137,6 +137,7 @@ export declare class TabStripComponent implements AfterViewInit, OnDestroy {
137
137
  private subscriptions;
138
138
  private subscriptionsArePresent;
139
139
  private _closeSVGIcon;
140
+ private tabStripId;
140
141
  constructor(localization: LocalizationService, renderer: Renderer2, wrapper: ElementRef, tabstripService: TabStripService, scrollService: ScrollService, ngZone: NgZone);
141
142
  ngAfterViewInit(): void;
142
143
  ngOnChanges(changes: SimpleChanges): void;
@@ -174,6 +175,14 @@ export declare class TabStripComponent implements AfterViewInit, OnDestroy {
174
175
  * @param {number} index - The index of the tab that will be selected.
175
176
  */
176
177
  selectTab(index: number): void;
178
+ /**
179
+ * @hidden
180
+ */
181
+ getTabId(idx: number): string;
182
+ /**
183
+ * @hidden
184
+ */
185
+ getTabPanelId(idx: number): string;
177
186
  /**
178
187
  * @hidden
179
188
  */
@@ -60,3 +60,7 @@ export declare const resetTabSelection: (tabs: QueryList<TabStripTabComponent>)
60
60
  * @hidden
61
61
  */
62
62
  export declare const isTablistHorizontal: (tabPosition: TabPosition) => boolean;
63
+ /**
64
+ * @hidden
65
+ */
66
+ export declare const getId: (prefix: string, tabStripId: string, tabIndex: number) => string;