@skyux/tabs 5.0.4 → 5.1.0

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.
Files changed (32) hide show
  1. package/bundles/skyux-tabs.umd.js +147 -181
  2. package/documentation.json +476 -425
  3. package/esm2015/modules/sectioned-form/sectioned-form-section.component.js +9 -13
  4. package/esm2015/modules/sectioned-form/sectioned-form.component.js +3 -3
  5. package/esm2015/modules/sectioned-form/sectioned-form.module.js +4 -4
  6. package/esm2015/modules/sectioned-form/sectioned-form.service.js +3 -3
  7. package/esm2015/modules/shared/sky-tabs-resources.module.js +4 -4
  8. package/esm2015/modules/tabs/tab-button.component.js +17 -6
  9. package/esm2015/modules/tabs/tab.component.js +3 -3
  10. package/esm2015/modules/tabs/tabs.module.js +4 -4
  11. package/esm2015/modules/tabs/tabset-adapter.service.js +3 -3
  12. package/esm2015/modules/tabs/tabset-nav-button.component.js +3 -3
  13. package/esm2015/modules/tabs/tabset-permalink.service.js +3 -3
  14. package/esm2015/modules/tabs/tabset.component.js +5 -5
  15. package/esm2015/modules/tabs/tabset.service.js +3 -3
  16. package/esm2015/modules/vertical-tabset/vertical-tab-media-query.service.js +3 -3
  17. package/esm2015/modules/vertical-tabset/vertical-tab.component.js +29 -20
  18. package/esm2015/modules/vertical-tabset/vertical-tabset-adapter.service.js +3 -3
  19. package/esm2015/modules/vertical-tabset/vertical-tabset-group.component.js +8 -54
  20. package/esm2015/modules/vertical-tabset/vertical-tabset.component.js +11 -5
  21. package/esm2015/modules/vertical-tabset/vertical-tabset.module.js +13 -9
  22. package/esm2015/modules/vertical-tabset/vertical-tabset.service.js +3 -3
  23. package/fesm2015/skyux-tabs.js +128 -149
  24. package/fesm2015/skyux-tabs.js.map +1 -1
  25. package/modules/sectioned-form/sectioned-form-section.component.d.ts +0 -3
  26. package/modules/tabs/tab-button.component.d.ts +2 -2
  27. package/modules/tabs/tabset.component.d.ts +1 -1
  28. package/modules/vertical-tabset/vertical-tab.component.d.ts +8 -13
  29. package/modules/vertical-tabset/vertical-tabset-group.component.d.ts +2 -2
  30. package/modules/vertical-tabset/vertical-tabset.component.d.ts +17 -2
  31. package/modules/vertical-tabset/vertical-tabset.module.d.ts +4 -3
  32. package/package.json +9 -9
@@ -27,12 +27,9 @@ export declare class SkySectionedFormSectionComponent implements OnInit, OnDestr
27
27
  * @default false
28
28
  */
29
29
  active: boolean;
30
- get ariaRole(): string;
31
- get ariaLabelledby(): string;
32
30
  fieldRequired: boolean;
33
31
  fieldInvalid: boolean;
34
32
  tab: SkyVerticalTabComponent;
35
- private isMobile;
36
33
  private _ngUnsubscribe;
37
34
  constructor(sectionedFormService: SkySectionedFormService, tabsetService: SkyVerticalTabsetService, changeRef: ChangeDetectorRef);
38
35
  ngOnInit(): void;
@@ -16,8 +16,8 @@ export declare class SkyTabButtonComponent {
16
16
  tabStyle: SkyTabsetStyle;
17
17
  buttonClick: EventEmitter<void>;
18
18
  closeClick: EventEmitter<void>;
19
- onButtonClick(event: MouseEvent): void;
20
- onButtonEnterKeyDown(event: any): void;
19
+ onButtonClick(event: any): void;
20
+ onTabButtonKeyDown(event: KeyboardEvent): void;
21
21
  onCloseClick(event: any): void;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabButtonComponent, never>;
23
23
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyTabButtonComponent, "sky-tab-button", never, { "active": "active"; "ariaControls": "ariaControls"; "buttonHref": "buttonHref"; "buttonId": "buttonId"; "buttonText": "buttonText"; "buttonTextCount": "buttonTextCount"; "closeable": "closeable"; "disabled": "disabled"; "tabStyle": "tabStyle"; }, { "buttonClick": "buttonClick"; "closeClick": "closeClick"; }, never, never>;
@@ -59,7 +59,7 @@ export declare class SkyTabsetComponent implements AfterViewInit, OnDestroy {
59
59
  * @deprecated The property was designed to create wizards by setting tabStyle="wizard" on tabsets in modals,
60
60
  * but this wizard implementation was replaced by the
61
61
  * [progress indicator component](https://developer.blackbaud.com/skyux/components/progress-indicator).
62
- * @default 'tabs'
62
+ * @default "tabs"
63
63
  */
64
64
  set tabStyle(value: SkyTabsetStyle);
65
65
  get tabStyle(): SkyTabsetStyle;
@@ -16,17 +16,9 @@ export declare class SkyVerticalTabComponent implements OnInit, OnDestroy {
16
16
  * Specifies the HTML element ID (without the leading `#`) of the element that contains
17
17
  * the content that the vertical tab displays, which corresponds to the `tabId`. This property
18
18
  * [supports accessibility rules for disclosures](https://www.w3.org/TR/wai-aria-practices-1.1/#disclosure).
19
+ * @deprecated Now that the vertical tabs provide aria labels automatically, this input is no longer necessary.
19
20
  */
20
- get ariaControls(): string;
21
- set ariaControls(value: string);
22
- /**
23
- * @internal
24
- */
25
- ariaInvalid: boolean;
26
- /**
27
- * @internal
28
- */
29
- ariaRequired: boolean;
21
+ ariaControls: string;
30
22
  /**
31
23
  * Specifies an ARIA role for the vertical tab
32
24
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility)
@@ -34,6 +26,8 @@ export declare class SkyVerticalTabComponent implements OnInit, OnDestroy {
34
26
  * an ARIA role indicates what an item represents on a web page, see the
35
27
  * [WAI-ARIA roles model](https://www.w3.org/WAI/PF/aria/roles).
36
28
  * @default "tab"
29
+ * @deprecated Any other value than `tab` could lead to a poor user experience for users with assistive technology.
30
+ * In the next major version, this property will be automatically set to `tab`.
37
31
  */
38
32
  get ariaRole(): string;
39
33
  set ariaRole(value: string);
@@ -63,14 +57,14 @@ export declare class SkyVerticalTabComponent implements OnInit, OnDestroy {
63
57
  set showTabRightArrow(value: boolean);
64
58
  /**
65
59
  * Specifies an ID for the tab.
60
+ * @deprecated Now that the vertical tabs provide aria labels automatically, this input is no longer necessary.
66
61
  */
67
62
  tabId: string;
68
63
  set contentRendered(value: boolean);
69
64
  get contentRendered(): boolean;
70
65
  index: number;
66
+ isMobile: boolean;
71
67
  tabContent: ElementRef;
72
- private isMobile;
73
- private _ariaControls;
74
68
  private _ariaRole;
75
69
  private _contentRendered;
76
70
  private _mobileSubscription;
@@ -81,9 +75,10 @@ export declare class SkyVerticalTabComponent implements OnInit, OnDestroy {
81
75
  ngOnDestroy(): void;
82
76
  tabIndex(): number;
83
77
  activateTab(): void;
78
+ onTabButtonKeyUp(event: KeyboardEvent): void;
84
79
  onWindowResize(): void;
85
80
  tabDeactivated(): void;
86
81
  private updateBreakpointAndResponsiveClass;
87
82
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabComponent, never>;
88
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyVerticalTabComponent, "sky-vertical-tab", never, { "active": "active"; "ariaControls": "ariaControls"; "ariaInvalid": "ariaInvalid"; "ariaRequired": "ariaRequired"; "ariaRole": "ariaRole"; "disabled": "disabled"; "errorIndicator": "errorIndicator"; "tabHeaderCount": "tabHeaderCount"; "tabHeading": "tabHeading"; "showTabRightArrow": "showTabRightArrow"; "tabId": "tabId"; }, {}, never, ["*"]>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyVerticalTabComponent, "sky-vertical-tab", never, { "active": "active"; "ariaControls": "ariaControls"; "ariaRole": "ariaRole"; "disabled": "disabled"; "errorIndicator": "errorIndicator"; "tabHeaderCount": "tabHeaderCount"; "tabHeading": "tabHeading"; "showTabRightArrow": "showTabRightArrow"; "tabId": "tabId"; }, {}, never, ["*"]>;
89
84
  }
@@ -6,7 +6,7 @@ export declare class SkyVerticalTabsetGroupComponent implements OnInit, OnDestro
6
6
  private changeRef;
7
7
  /**
8
8
  * Indicates whether to disable the ability to expand and collapse the group.
9
- * @default "false"
9
+ * @default false
10
10
  */
11
11
  disabled: boolean;
12
12
  /**
@@ -15,7 +15,7 @@ export declare class SkyVerticalTabsetGroupComponent implements OnInit, OnDestro
15
15
  groupHeading: string;
16
16
  /**
17
17
  * Indicates whether the collapsible group is expanded.
18
- * @default "false"
18
+ * @default false
19
19
  */
20
20
  set open(value: boolean);
21
21
  get open(): boolean;
@@ -12,6 +12,19 @@ export declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChec
12
12
  * Specifies the text to display on the show tabs button on mobile devices.
13
13
  */
14
14
  showTabsText: string;
15
+ /**
16
+ * Specifies an ARIA label for the tabset. This sets the tabset's `aria-label` attribute
17
+ * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
18
+ * If the tabset includes a visible label, use `ariaLabelledBy` instead.
19
+ */
20
+ ariaLabel: string;
21
+ /**
22
+ * Specifies the HTML element ID (without the leading `#`) of the element that labels
23
+ * the tabset. This sets the tabset's `aria-labelledby` attribute
24
+ * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
25
+ * If the tabset does not include a visible label, use `ariaLabel` instead.
26
+ */
27
+ ariaLabelledBy: string;
15
28
  /**
16
29
  * Specifies an ARIA role for the vertical tabset
17
30
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility)
@@ -19,13 +32,15 @@ export declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChec
19
32
  * an ARIA role indicates what an item represents on a web page, see the
20
33
  * [WAI-ARIA roles model](https://www.w3.org/WAI/PF/aria/roles).
21
34
  * @default "tablist"
35
+ * @deprecated Any other value than `tablist` could lead to a poor user experience for users with assistive technology.
36
+ * In the next major version, this property will be automatically set to `tablist`.
22
37
  */
23
38
  get ariaRole(): string;
24
39
  set ariaRole(value: string);
25
40
  /**
26
41
  * Indicates whether the vertical tabset loads tab content during initialization so that it
27
42
  * displays content without moving around elements in the content container.
28
- * @default 'false'
43
+ * @default false
29
44
  */
30
45
  maintainTabContent: boolean;
31
46
  /**
@@ -44,5 +59,5 @@ export declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChec
44
59
  ngAfterViewChecked(): void;
45
60
  ngOnDestroy(): void;
46
61
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabsetComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyVerticalTabsetComponent, "sky-vertical-tabset", never, { "showTabsText": "showTabsText"; "ariaRole": "ariaRole"; "maintainTabContent": "maintainTabContent"; }, { "activeChange": "activeChange"; }, never, ["*"]>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyVerticalTabsetComponent, "sky-vertical-tabset", never, { "showTabsText": "showTabsText"; "ariaLabel": "ariaLabel"; "ariaLabelledBy": "ariaLabelledBy"; "ariaRole": "ariaRole"; "maintainTabContent": "maintainTabContent"; }, { "activeChange": "activeChange"; }, never, ["*"]>;
48
63
  }
@@ -4,10 +4,11 @@ import * as i2 from "./vertical-tabset-group.component";
4
4
  import * as i3 from "./vertical-tab.component";
5
5
  import * as i4 from "@angular/common";
6
6
  import * as i5 from "@skyux/indicators";
7
- import * as i6 from "../shared/sky-tabs-resources.module";
8
- import * as i7 from "@skyux/theme";
7
+ import * as i6 from "@skyux/core";
8
+ import * as i7 from "../shared/sky-tabs-resources.module";
9
+ import * as i8 from "@skyux/theme";
9
10
  export declare class SkyVerticalTabsetModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabsetModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyVerticalTabsetModule, [typeof i1.SkyVerticalTabsetComponent, typeof i2.SkyVerticalTabsetGroupComponent, typeof i3.SkyVerticalTabComponent], [typeof i4.CommonModule, typeof i5.SkyChevronModule, typeof i5.SkyIconModule, typeof i5.SkyStatusIndicatorModule, typeof i6.SkyTabsResourcesModule, typeof i7.SkyThemeModule], [typeof i1.SkyVerticalTabsetComponent, typeof i2.SkyVerticalTabsetGroupComponent, typeof i3.SkyVerticalTabComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyVerticalTabsetModule, [typeof i1.SkyVerticalTabsetComponent, typeof i2.SkyVerticalTabsetGroupComponent, typeof i3.SkyVerticalTabComponent], [typeof i4.CommonModule, typeof i5.SkyIconModule, typeof i6.SkyIdModule, typeof i5.SkyExpansionIndicatorModule, typeof i5.SkyStatusIndicatorModule, typeof i7.SkyTabsResourcesModule, typeof i8.SkyThemeModule], [typeof i1.SkyVerticalTabsetComponent, typeof i2.SkyVerticalTabsetGroupComponent, typeof i3.SkyVerticalTabComponent]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyVerticalTabsetModule>;
13
14
  }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@skyux/tabs",
3
- "version": "5.0.4",
3
+ "version": "5.1.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^12.2.15",
6
- "@angular/core": "^12.2.15",
7
- "@angular/router": "^12.2.15",
8
- "@skyux/core": "^5.2.2",
9
- "@skyux/i18n": "^5.0.1",
5
+ "@angular/common": "^12.2.16",
6
+ "@angular/core": "^12.2.16",
7
+ "@angular/router": "^12.2.16",
8
+ "@skyux/core": "^5.2.3",
9
+ "@skyux/i18n": "^5.0.2",
10
10
  "@skyux/forms": "^5.0.2",
11
- "@skyux/indicators": "^5.1.2",
12
- "@skyux/modals": "^5.0.3",
11
+ "@skyux/indicators": "^5.3.0",
12
+ "@skyux/modals": "^5.0.5",
13
13
  "@skyux/popovers": "^5.0.2",
14
- "@skyux/theme": "^5.0.4"
14
+ "@skyux/theme": "^5.0.5"
15
15
  },
16
16
  "dependencies": {
17
17
  "tslib": "^2.3.1"