@skyux/tabs 7.0.0-beta.0 → 7.0.0-beta.10

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 (57) hide show
  1. package/documentation.json +1118 -836
  2. package/esm2020/lib/modules/sectioned-form/sectioned-form-section.component.mjs +20 -14
  3. package/esm2020/lib/modules/sectioned-form/sectioned-form.component.mjs +25 -19
  4. package/esm2020/lib/modules/sectioned-form/sectioned-form.service.mjs +1 -1
  5. package/esm2020/lib/modules/shared/sky-tabs-resources.module.mjs +9 -1
  6. package/esm2020/lib/modules/tabs/tab-button-adapter.service.mjs +16 -0
  7. package/esm2020/lib/modules/tabs/tab-button-view-model.mjs +2 -0
  8. package/esm2020/lib/modules/tabs/tab-button.component.mjs +103 -10
  9. package/esm2020/lib/modules/tabs/tab.component.mjs +73 -33
  10. package/esm2020/lib/modules/tabs/tabs.module.mjs +5 -2
  11. package/esm2020/lib/modules/tabs/tabset-adapter.service.mjs +34 -22
  12. package/esm2020/lib/modules/tabs/tabset-nav-button-disabled.pipe.mjs +22 -0
  13. package/esm2020/lib/modules/tabs/tabset-nav-button.component.mjs +32 -42
  14. package/esm2020/lib/modules/tabs/tabset-permalink.service.mjs +41 -35
  15. package/esm2020/lib/modules/tabs/tabset-tab-indexes-change.mjs +1 -1
  16. package/esm2020/lib/modules/tabs/tabset.component.mjs +227 -219
  17. package/esm2020/lib/modules/tabs/tabset.service.mjs +104 -26
  18. package/esm2020/lib/modules/vertical-tabset/vertical-tab-media-query.service.mjs +11 -12
  19. package/esm2020/lib/modules/vertical-tabset/vertical-tab.component.mjs +67 -54
  20. package/esm2020/lib/modules/vertical-tabset/vertical-tabset-adapter.service.mjs +11 -8
  21. package/esm2020/lib/modules/vertical-tabset/vertical-tabset-group.component.mjs +28 -34
  22. package/esm2020/lib/modules/vertical-tabset/vertical-tabset.component.mjs +23 -20
  23. package/esm2020/lib/modules/vertical-tabset/vertical-tabset.service.mjs +55 -56
  24. package/esm2020/testing/tabs/tab-fixture-tab.mjs +1 -1
  25. package/esm2020/testing/tabs/tabset-fixture.mjs +44 -47
  26. package/fesm2015/skyux-tabs-testing.mjs +47 -49
  27. package/fesm2015/skyux-tabs-testing.mjs.map +1 -1
  28. package/fesm2015/skyux-tabs.mjs +947 -668
  29. package/fesm2015/skyux-tabs.mjs.map +1 -1
  30. package/fesm2020/skyux-tabs-testing.mjs +43 -46
  31. package/fesm2020/skyux-tabs-testing.mjs.map +1 -1
  32. package/fesm2020/skyux-tabs.mjs +1075 -800
  33. package/fesm2020/skyux-tabs.mjs.map +1 -1
  34. package/lib/modules/sectioned-form/sectioned-form-section.component.d.ts +7 -10
  35. package/lib/modules/sectioned-form/sectioned-form.component.d.ts +4 -6
  36. package/lib/modules/sectioned-form/sectioned-form.service.d.ts +4 -4
  37. package/lib/modules/tabs/tab-button-adapter.service.d.ts +10 -0
  38. package/lib/modules/tabs/tab-button-view-model.d.ts +17 -0
  39. package/lib/modules/tabs/tab-button.component.d.ts +30 -11
  40. package/lib/modules/tabs/tab.component.d.ts +13 -18
  41. package/lib/modules/tabs/tabs.module.d.ts +9 -8
  42. package/lib/modules/tabs/tabset-adapter.service.d.ts +5 -10
  43. package/lib/modules/tabs/tabset-nav-button-disabled.pipe.d.ts +8 -0
  44. package/lib/modules/tabs/tabset-nav-button.component.d.ts +8 -5
  45. package/lib/modules/tabs/tabset-permalink.service.d.ts +3 -11
  46. package/lib/modules/tabs/tabset-tab-indexes-change.d.ts +2 -2
  47. package/lib/modules/tabs/tabset.component.d.ts +14 -70
  48. package/lib/modules/tabs/tabset.service.d.ts +16 -9
  49. package/lib/modules/vertical-tabset/vertical-tab-media-query.service.d.ts +2 -3
  50. package/lib/modules/vertical-tabset/vertical-tab.component.d.ts +13 -22
  51. package/lib/modules/vertical-tabset/vertical-tabset-adapter.service.d.ts +1 -2
  52. package/lib/modules/vertical-tabset/vertical-tabset-group.component.d.ts +7 -11
  53. package/lib/modules/vertical-tabset/vertical-tabset.component.d.ts +10 -13
  54. package/lib/modules/vertical-tabset/vertical-tabset.service.d.ts +10 -17
  55. package/package.json +9 -9
  56. package/testing/tabs/tab-fixture-tab.d.ts +3 -3
  57. package/testing/tabs/tabset-fixture.d.ts +3 -9
@@ -4,21 +4,18 @@ import { SkyVerticalTabsetAdapterService } from './vertical-tabset-adapter.servi
4
4
  import { SkyVerticalTabsetService } from './vertical-tabset.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SkyVerticalTabComponent implements OnInit, OnDestroy {
7
- private adapterService;
8
- private changeRef;
9
- private tabsetService;
10
- private verticalTabMediaQueryService;
7
+ #private;
11
8
  /**
12
9
  * Indicates whether the tab is active when the tabset loads.
13
10
  */
14
- active: boolean;
11
+ active: boolean | undefined;
15
12
  /**
16
13
  * Specifies the HTML element ID (without the leading `#`) of the element that contains
17
14
  * the content that the vertical tab displays, which corresponds to the `tabId`. This property
18
15
  * [supports accessibility rules for disclosures](https://www.w3.org/TR/wai-aria-practices-1.1/#disclosure).
19
16
  * @deprecated Now that the vertical tabs provide aria labels automatically, this input is no longer necessary.
20
17
  */
21
- ariaControls: string;
18
+ ariaControls: string | undefined;
22
19
  /**
23
20
  * Specifies an ARIA role for the vertical tab
24
21
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility)
@@ -30,46 +27,41 @@ export declare class SkyVerticalTabComponent implements OnInit, OnDestroy {
30
27
  * In the next major version, this property will be automatically set to `tab`.
31
28
  */
32
29
  get ariaRole(): string;
33
- set ariaRole(value: string);
30
+ set ariaRole(value: string | undefined);
34
31
  /**
35
32
  * Indicates whether to disable the tab.
36
33
  */
37
- disabled: boolean;
34
+ disabled: boolean | undefined;
38
35
  /**
39
36
  * Indicates whether to indicate that the tab has an error.
40
37
  * @internal This is used for sectioned forms and is not currently a supported design for pure vertical tabs.
41
38
  */
42
- errorIndicator: boolean;
39
+ errorIndicator: boolean | undefined;
43
40
  /**
44
41
  * Displays an item count alongside the tab header to indicate how many list items the tab contains.
45
42
  */
46
- tabHeaderCount: number;
43
+ tabHeaderCount: number | undefined;
47
44
  /**
48
45
  * Specifies the tab header.
49
46
  * @required
50
47
  */
51
- tabHeading: string;
48
+ tabHeading: string | undefined;
52
49
  /**
53
50
  * Indicates whether to display a chevron-right icon in the righthand side of the tab.
54
51
  * @internal
55
52
  */
56
- get showTabRightArrow(): boolean;
57
- set showTabRightArrow(value: boolean);
53
+ showTabRightArrow: boolean | undefined;
58
54
  /**
59
55
  * Specifies an ID for the tab.
60
56
  * @deprecated Now that the vertical tabs provide aria labels automatically, this input is no longer necessary.
61
57
  */
62
- tabId: string;
58
+ set tabId(value: string | undefined);
59
+ get tabId(): string;
63
60
  set contentRendered(value: boolean);
64
61
  get contentRendered(): boolean;
65
- index: number;
62
+ index: number | undefined;
66
63
  isMobile: boolean;
67
- tabContent: ElementRef;
68
- private _ariaRole;
69
- private _contentRendered;
70
- private _mobileSubscription;
71
- private _ngUnsubscribe;
72
- private _showTabRightArrow;
64
+ tabContent: ElementRef | undefined;
73
65
  constructor(adapterService: SkyVerticalTabsetAdapterService, changeRef: ChangeDetectorRef, tabsetService: SkyVerticalTabsetService, verticalTabMediaQueryService: SkyVerticalTabMediaQueryService);
74
66
  ngOnInit(): void;
75
67
  ngOnDestroy(): void;
@@ -78,7 +70,6 @@ export declare class SkyVerticalTabComponent implements OnInit, OnDestroy {
78
70
  onTabButtonKeyUp(event: KeyboardEvent): void;
79
71
  onWindowResize(): void;
80
72
  tabDeactivated(): void;
81
- private updateBreakpointAndResponsiveClass;
82
73
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabComponent, never>;
83
74
  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, ["*"], false>;
84
75
  }
@@ -2,8 +2,7 @@ import { ElementRef, RendererFactory2 } from '@angular/core';
2
2
  import { SkyMediaBreakpoints } from '@skyux/core';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SkyVerticalTabsetAdapterService {
5
- private rendererFactory;
6
- private renderer;
5
+ #private;
7
6
  constructor(rendererFactory: RendererFactory2);
8
7
  getWidth(elementRef: ElementRef): number;
9
8
  scrollToContentTop(element: ElementRef): void;
@@ -1,28 +1,24 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnDestroy, OnInit, QueryList } from '@angular/core';
2
+ import { SkyVerticalTabComponent } from './vertical-tab.component';
2
3
  import { SkyVerticalTabsetService } from './vertical-tabset.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class SkyVerticalTabsetGroupComponent implements OnInit, OnDestroy {
5
- private tabService;
6
- private changeRef;
6
+ #private;
7
7
  /**
8
8
  * Indicates whether to disable the ability to expand and collapse the group.
9
9
  * @default false
10
10
  */
11
- disabled: boolean;
11
+ disabled: boolean | undefined;
12
12
  /**
13
13
  * Specifies the header for the collapsible group of tabs.
14
14
  */
15
- groupHeading: string;
15
+ groupHeading: string | undefined;
16
16
  /**
17
17
  * Indicates whether the collapsible group is expanded.
18
18
  * @default false
19
19
  */
20
- set open(value: boolean);
21
- get open(): boolean;
22
- private tabs;
23
- private ngUnsubscribe;
24
- private openBeforeTabsHidden;
25
- private _open;
20
+ open: boolean | undefined;
21
+ tabs: QueryList<SkyVerticalTabComponent> | undefined;
26
22
  constructor(tabService: SkyVerticalTabsetService, changeRef: ChangeDetectorRef);
27
23
  ngOnInit(): void;
28
24
  ngOnDestroy(): void;
@@ -4,27 +4,26 @@ import { SkyVerticalTabsetAdapterService } from './vertical-tabset-adapter.servi
4
4
  import { SkyVerticalTabsetService } from './vertical-tabset.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChecked, OnDestroy {
7
+ #private;
7
8
  adapterService: SkyVerticalTabsetAdapterService;
8
9
  tabService: SkyVerticalTabsetService;
9
- private resources;
10
- private changeRef;
11
10
  /**
12
11
  * Specifies the text to display on the show tabs button on mobile devices.
13
12
  */
14
- showTabsText: string;
13
+ showTabsText: string | undefined;
15
14
  /**
16
15
  * Specifies an ARIA label for the tabset. This sets the tabset's `aria-label` attribute
17
16
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
18
17
  * If the tabset includes a visible label, use `ariaLabelledBy` instead.
19
18
  */
20
- ariaLabel: string;
19
+ ariaLabel: string | undefined;
21
20
  /**
22
21
  * Specifies the HTML element ID (without the leading `#`) of the element that labels
23
22
  * the tabset. This sets the tabset's `aria-labelledby` attribute
24
23
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
25
24
  * If the tabset does not include a visible label, use `ariaLabel` instead.
26
25
  */
27
- ariaLabelledBy: string;
26
+ ariaLabelledBy: string | undefined;
28
27
  /**
29
28
  * Specifies an ARIA role for the vertical tabset
30
29
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility)
@@ -36,24 +35,22 @@ export declare class SkyVerticalTabsetComponent implements OnInit, AfterViewChec
36
35
  * In the next major version, this property will be automatically set to `tablist`.
37
36
  */
38
37
  get ariaRole(): string;
39
- set ariaRole(value: string);
38
+ set ariaRole(value: string | undefined);
40
39
  /**
41
40
  * Indicates whether the vertical tabset loads tab content during initialization so that it
42
41
  * displays content without moving around elements in the content container.
43
42
  * @default false
44
43
  */
45
- maintainTabContent: boolean;
44
+ maintainTabContent: boolean | undefined;
46
45
  /**
47
46
  * Fires when the active tab changes. Emits the index of the active tab. The
48
47
  * index is based on the tab's position when it loads.
49
48
  */
50
49
  activeChange: EventEmitter<number>;
51
- tabGroups: ElementRef;
52
- content: ElementRef;
53
- private contentWrapper;
54
- private isMobile;
55
- private _ngUnsubscribe;
56
- private _ariaRole;
50
+ tabGroups: ElementRef | undefined;
51
+ content: ElementRef | undefined;
52
+ contentWrapper: ElementRef | undefined;
53
+ isMobile: boolean;
57
54
  constructor(adapterService: SkyVerticalTabsetAdapterService, tabService: SkyVerticalTabsetService, resources: SkyLibResourcesService, changeRef: ChangeDetectorRef);
58
55
  ngOnInit(): void;
59
56
  ngAfterViewChecked(): void;
@@ -1,6 +1,6 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { SkyMediaQueryService } from '@skyux/core';
3
- import { BehaviorSubject, Subject } from 'rxjs';
3
+ import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
4
4
  import { SkyVerticalTabComponent } from './vertical-tab.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare const VISIBLE_STATE = "shown";
@@ -9,36 +9,29 @@ export declare const HIDDEN_STATE = "void";
9
9
  * @internal
10
10
  */
11
11
  export declare class SkyVerticalTabsetService {
12
- private mediaQueryService;
13
- activeIndex: number;
14
- animationContentVisibleState: string;
15
- animationTabsVisibleState: string;
16
- set content(value: ElementRef);
12
+ #private;
13
+ activeIndex: number | undefined;
14
+ animationContentVisibleState: string | undefined;
15
+ animationTabsVisibleState: string | undefined;
16
+ content: ElementRef | undefined;
17
17
  hidingTabs: BehaviorSubject<boolean>;
18
- indexChanged: BehaviorSubject<number>;
19
- maintainTabContent: boolean;
18
+ indexChanged: ReplaySubject<number>;
19
+ maintainTabContent: boolean | undefined;
20
20
  showingTabs: BehaviorSubject<boolean>;
21
21
  switchingMobile: Subject<boolean>;
22
22
  tabs: Array<SkyVerticalTabComponent>;
23
23
  tabAdded: Subject<SkyVerticalTabComponent>;
24
- tabClicked: BehaviorSubject<boolean>;
25
- private _content;
26
- private _contentAdded;
27
- private _tabsVisible;
28
- private _isMobile;
24
+ tabClicked: ReplaySubject<boolean>;
29
25
  constructor(mediaQueryService: SkyMediaQueryService);
30
26
  addTab(tab: SkyVerticalTabComponent): void;
31
27
  destroyTab(tab: SkyVerticalTabComponent): void;
32
28
  activateTab(tab: SkyVerticalTabComponent): void;
33
- activeTab(): SkyVerticalTabComponent;
29
+ activeTab(): SkyVerticalTabComponent | undefined;
34
30
  isMobile(): boolean;
35
31
  updateContent(): void;
36
32
  tabsVisible(): boolean;
37
33
  contentVisible(): boolean;
38
34
  showTabs(): void;
39
- private destroyContent;
40
- private moveContent;
41
- private updateTabClicked;
42
35
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabsetService, never>;
43
36
  static ɵprov: i0.ɵɵInjectableDeclaration<SkyVerticalTabsetService>;
44
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/tabs",
3
- "version": "7.0.0-beta.0",
3
+ "version": "7.0.0-beta.10",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -45,14 +45,14 @@
45
45
  "@angular/core": "^14.2.0",
46
46
  "@angular/platform-browser": "^14.2.0",
47
47
  "@angular/router": "^14.2.0",
48
- "@skyux-sdk/testing": "7.0.0-beta.0",
49
- "@skyux/animations": "7.0.0-beta.0",
50
- "@skyux/core": "7.0.0-beta.0",
51
- "@skyux/forms": "7.0.0-beta.0",
52
- "@skyux/i18n": "7.0.0-beta.0",
53
- "@skyux/indicators": "7.0.0-beta.0",
54
- "@skyux/popovers": "7.0.0-beta.0",
55
- "@skyux/theme": "7.0.0-beta.0"
48
+ "@skyux-sdk/testing": "7.0.0-beta.10",
49
+ "@skyux/animations": "7.0.0-beta.10",
50
+ "@skyux/core": "7.0.0-beta.10",
51
+ "@skyux/forms": "7.0.0-beta.10",
52
+ "@skyux/i18n": "7.0.0-beta.10",
53
+ "@skyux/indicators": "7.0.0-beta.10",
54
+ "@skyux/popovers": "7.0.0-beta.10",
55
+ "@skyux/theme": "7.0.0-beta.10"
56
56
  },
57
57
  "dependencies": {
58
58
  "tslib": "^2.3.1"
@@ -14,13 +14,13 @@ export interface SkyTabsetFixtureTab {
14
14
  /**
15
15
  * The permalink value specified for the tab.
16
16
  */
17
- permalinkValue: string;
17
+ permalinkValue: string | undefined;
18
18
  /**
19
19
  * The count displayed in the tab header.
20
20
  */
21
- tabHeaderCount: string;
21
+ tabHeaderCount: string | undefined;
22
22
  /**
23
23
  * The text displayed in the tab header.
24
24
  */
25
- tabHeading: string;
25
+ tabHeading: string | undefined;
26
26
  }
@@ -5,20 +5,19 @@ import { SkyTabsetFixtureTab } from './tab-fixture-tab';
5
5
  * @internal
6
6
  */
7
7
  export declare class SkyTabsetFixture {
8
- private fixture;
8
+ #private;
9
9
  /**
10
10
  * The tabset component's ARIA label.
11
11
  */
12
- get ariaLabel(): string;
12
+ get ariaLabel(): string | undefined;
13
13
  /**
14
14
  * The tabset component's ARIA labelled by attribute.
15
15
  */
16
- get ariaLabelledBy(): string;
16
+ get ariaLabelledBy(): string | undefined;
17
17
  /**
18
18
  * The index of the currently selected tab.
19
19
  */
20
20
  get activeTabIndex(): number;
21
- private debugEl;
22
21
  constructor(fixture: ComponentFixture<any>, skyTestId: string);
23
22
  /**
24
23
  * Retrieves information about the tab at the specified index.
@@ -43,9 +42,4 @@ export declare class SkyTabsetFixture {
43
42
  * @param tabIndex The index of the tab.
44
43
  */
45
44
  clickTabClose(tabIndex: number): Promise<any>;
46
- private clickButton;
47
- private getTabsetEl;
48
- private getTabLinkEls;
49
- private getTabLinkEl;
50
- private getTextContent;
51
45
  }