@skyux/tabs 7.0.0-beta.1 → 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.
- package/documentation.json +970 -830
- package/esm2020/lib/modules/sectioned-form/sectioned-form-section.component.mjs +20 -14
- package/esm2020/lib/modules/sectioned-form/sectioned-form.component.mjs +25 -19
- package/esm2020/lib/modules/sectioned-form/sectioned-form.service.mjs +1 -1
- package/esm2020/lib/modules/shared/sky-tabs-resources.module.mjs +9 -1
- package/esm2020/lib/modules/tabs/tab-button-view-model.mjs +1 -1
- package/esm2020/lib/modules/tabs/tab-button.component.mjs +48 -10
- package/esm2020/lib/modules/tabs/tab.component.mjs +73 -33
- package/esm2020/lib/modules/tabs/tabs.module.mjs +5 -2
- package/esm2020/lib/modules/tabs/tabset-adapter.service.mjs +34 -22
- package/esm2020/lib/modules/tabs/tabset-nav-button-disabled.pipe.mjs +22 -0
- package/esm2020/lib/modules/tabs/tabset-nav-button.component.mjs +32 -42
- package/esm2020/lib/modules/tabs/tabset-permalink.service.mjs +41 -35
- package/esm2020/lib/modules/tabs/tabset-tab-indexes-change.mjs +1 -1
- package/esm2020/lib/modules/tabs/tabset.component.mjs +219 -226
- package/esm2020/lib/modules/tabs/tabset.service.mjs +67 -51
- package/esm2020/lib/modules/vertical-tabset/vertical-tab-media-query.service.mjs +11 -12
- package/esm2020/lib/modules/vertical-tabset/vertical-tab.component.mjs +67 -54
- package/esm2020/lib/modules/vertical-tabset/vertical-tabset-adapter.service.mjs +11 -8
- package/esm2020/lib/modules/vertical-tabset/vertical-tabset-group.component.mjs +28 -34
- package/esm2020/lib/modules/vertical-tabset/vertical-tabset.component.mjs +23 -20
- package/esm2020/lib/modules/vertical-tabset/vertical-tabset.service.mjs +55 -56
- package/esm2020/testing/tabs/tab-fixture-tab.mjs +1 -1
- package/esm2020/testing/tabs/tabset-fixture.mjs +44 -47
- package/fesm2015/skyux-tabs-testing.mjs +47 -49
- package/fesm2015/skyux-tabs-testing.mjs.map +1 -1
- package/fesm2015/skyux-tabs.mjs +764 -624
- package/fesm2015/skyux-tabs.mjs.map +1 -1
- package/fesm2020/skyux-tabs-testing.mjs +43 -46
- package/fesm2020/skyux-tabs-testing.mjs.map +1 -1
- package/fesm2020/skyux-tabs.mjs +867 -731
- package/fesm2020/skyux-tabs.mjs.map +1 -1
- package/lib/modules/sectioned-form/sectioned-form-section.component.d.ts +7 -10
- package/lib/modules/sectioned-form/sectioned-form.component.d.ts +4 -6
- package/lib/modules/sectioned-form/sectioned-form.service.d.ts +4 -4
- package/lib/modules/tabs/tab-button-view-model.d.ts +7 -5
- package/lib/modules/tabs/tab-button.component.d.ts +17 -11
- package/lib/modules/tabs/tab.component.d.ts +13 -18
- package/lib/modules/tabs/tabs.module.d.ts +9 -8
- package/lib/modules/tabs/tabset-adapter.service.d.ts +5 -10
- package/lib/modules/tabs/tabset-nav-button-disabled.pipe.d.ts +8 -0
- package/lib/modules/tabs/tabset-nav-button.component.d.ts +8 -5
- package/lib/modules/tabs/tabset-permalink.service.d.ts +3 -11
- package/lib/modules/tabs/tabset-tab-indexes-change.d.ts +2 -2
- package/lib/modules/tabs/tabset.component.d.ts +9 -56
- package/lib/modules/tabs/tabset.service.d.ts +8 -12
- package/lib/modules/vertical-tabset/vertical-tab-media-query.service.d.ts +2 -3
- package/lib/modules/vertical-tabset/vertical-tab.component.d.ts +13 -22
- package/lib/modules/vertical-tabset/vertical-tabset-adapter.service.d.ts +1 -2
- package/lib/modules/vertical-tabset/vertical-tabset-group.component.d.ts +7 -11
- package/lib/modules/vertical-tabset/vertical-tabset.component.d.ts +10 -13
- package/lib/modules/vertical-tabset/vertical-tabset.service.d.ts +10 -17
- package/package.json +9 -9
- package/testing/tabs/tab-fixture-tab.d.ts +3 -3
- package/testing/tabs/tabset-fixture.d.ts +3 -9
|
@@ -7,30 +7,27 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* Creates an individual form to display as a section within the sectioned form.
|
|
8
8
|
*/
|
|
9
9
|
export declare class SkySectionedFormSectionComponent implements OnInit, OnDestroy {
|
|
10
|
-
private
|
|
11
|
-
private tabsetService;
|
|
12
|
-
private changeRef;
|
|
10
|
+
#private;
|
|
13
11
|
sectionTabId: string;
|
|
14
12
|
sectionContentId: string;
|
|
15
13
|
/**
|
|
16
14
|
* Specifies the section header.
|
|
17
15
|
* @required
|
|
18
16
|
*/
|
|
19
|
-
heading: string;
|
|
17
|
+
heading: string | undefined;
|
|
20
18
|
/**
|
|
21
19
|
* Indicates the number of items within the section and displays a
|
|
22
20
|
* counter alongside the section header.
|
|
23
21
|
*/
|
|
24
|
-
itemCount: number;
|
|
22
|
+
itemCount: number | undefined;
|
|
25
23
|
/**
|
|
26
24
|
* Indicates whether the section is active when the form loads.
|
|
27
25
|
* @default false
|
|
28
26
|
*/
|
|
29
|
-
active: boolean;
|
|
30
|
-
fieldRequired: boolean;
|
|
31
|
-
fieldInvalid: boolean;
|
|
32
|
-
tab: SkyVerticalTabComponent;
|
|
33
|
-
private _ngUnsubscribe;
|
|
27
|
+
active: boolean | undefined;
|
|
28
|
+
fieldRequired: boolean | undefined;
|
|
29
|
+
fieldInvalid: boolean | undefined;
|
|
30
|
+
tab: SkyVerticalTabComponent | undefined;
|
|
34
31
|
constructor(sectionedFormService: SkySectionedFormService, tabsetService: SkyVerticalTabsetService, changeRef: ChangeDetectorRef);
|
|
35
32
|
ngOnInit(): void;
|
|
36
33
|
ngOnDestroy(): void;
|
|
@@ -5,23 +5,21 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* Creates a container for the sectioned forms.
|
|
6
6
|
*/
|
|
7
7
|
export declare class SkySectionedFormComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
8
|
+
#private;
|
|
8
9
|
tabService: SkyVerticalTabsetService;
|
|
9
|
-
private changeRef;
|
|
10
10
|
/**
|
|
11
11
|
* Indicates whether the sectioned form loads section content during initialization so that it
|
|
12
12
|
* displays content without moving around elements in the content container.
|
|
13
13
|
* @default false
|
|
14
14
|
*/
|
|
15
|
-
maintainSectionContent: boolean;
|
|
15
|
+
maintainSectionContent: boolean | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* Fires when the active tab changes and emits the index of the active
|
|
18
18
|
* section. The index is based on the section's position when the form loads.
|
|
19
19
|
*/
|
|
20
20
|
indexChanged: EventEmitter<number>;
|
|
21
|
-
|
|
22
|
-
content: ElementRef;
|
|
23
|
-
private isMobile;
|
|
24
|
-
private _ngUnsubscribe;
|
|
21
|
+
ariaRole: string | undefined;
|
|
22
|
+
content: ElementRef | undefined;
|
|
25
23
|
constructor(tabService: SkyVerticalTabsetService, changeRef: ChangeDetectorRef);
|
|
26
24
|
ngOnInit(): void;
|
|
27
25
|
ngAfterViewChecked(): void;
|
|
@@ -4,21 +4,21 @@ export declare class SkySectionedFormService {
|
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
invalidChange: BehaviorSubject<boolean>;
|
|
7
|
+
invalidChange: BehaviorSubject<boolean | undefined>;
|
|
8
8
|
/**
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
|
-
requiredChange: BehaviorSubject<boolean>;
|
|
11
|
+
requiredChange: BehaviorSubject<boolean | undefined>;
|
|
12
12
|
/**
|
|
13
13
|
* Sets the current section's invalid state based on the `isInvalid` parameter.
|
|
14
14
|
* This method is used within a `sky-sectioned-form-section` element.
|
|
15
15
|
*/
|
|
16
|
-
invalidFieldChanged(isInvalid: boolean): void;
|
|
16
|
+
invalidFieldChanged(isInvalid: boolean | undefined): void;
|
|
17
17
|
/**
|
|
18
18
|
* Sets the current section's required state based on the `isRequired` parameter.
|
|
19
19
|
* This method is used within a `sky-sectioned-form-section` element.
|
|
20
20
|
*/
|
|
21
|
-
requiredFieldChanged(isRequired: boolean): void;
|
|
21
|
+
requiredFieldChanged(isRequired: boolean | undefined): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkySectionedFormService, never>;
|
|
23
23
|
static ɵprov: i0.ɵɵInjectableDeclaration<SkySectionedFormService>;
|
|
24
24
|
}
|
|
@@ -5,11 +5,13 @@ import { SkyTabIndex } from './tab-index';
|
|
|
5
5
|
export declare type TabButtonViewModel = {
|
|
6
6
|
active: boolean;
|
|
7
7
|
ariaControls: string;
|
|
8
|
-
buttonHref: string;
|
|
8
|
+
buttonHref: string | null;
|
|
9
9
|
buttonId: string;
|
|
10
|
-
buttonText: string;
|
|
11
|
-
buttonTextCount: string;
|
|
10
|
+
buttonText: string | undefined;
|
|
11
|
+
buttonTextCount: string | undefined;
|
|
12
12
|
closeable: boolean;
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
tabIndex: SkyTabIndex;
|
|
13
|
+
disabled: boolean | undefined;
|
|
14
|
+
tabIndex: SkyTabIndex | undefined;
|
|
15
|
+
tabNumber: number;
|
|
16
|
+
totalTabsCount: number;
|
|
15
17
|
};
|
|
@@ -4,27 +4,32 @@ import { SkyTabIndex } from './tab-index';
|
|
|
4
4
|
import { SkyTabsetStyle } from './tabset-style';
|
|
5
5
|
import { SkyTabsetService } from './tabset.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
declare type SkyWizardStepState = 'completed' | 'current' | 'unavailable';
|
|
7
8
|
/**
|
|
8
9
|
* @internal
|
|
9
10
|
*/
|
|
10
11
|
export declare class SkyTabButtonComponent implements AfterViewInit, OnDestroy {
|
|
11
12
|
#private;
|
|
12
|
-
active: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
get active(): boolean | undefined;
|
|
14
|
+
set active(value: boolean | undefined);
|
|
15
|
+
ariaControls: string | undefined;
|
|
16
|
+
buttonHref: string | undefined;
|
|
17
|
+
buttonId: string | undefined;
|
|
18
|
+
buttonText: string | undefined;
|
|
17
19
|
buttonTextCount: string | undefined;
|
|
18
|
-
closeable: boolean;
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
closeable: boolean | undefined;
|
|
21
|
+
get disabled(): boolean;
|
|
22
|
+
set disabled(value: boolean | undefined);
|
|
23
|
+
tabIndex: SkyTabIndex | undefined;
|
|
24
|
+
tabNumber: number | undefined;
|
|
25
|
+
totalTabsCount: number | undefined;
|
|
26
|
+
get tabStyle(): SkyTabsetStyle | undefined;
|
|
22
27
|
set tabStyle(style: SkyTabsetStyle | undefined);
|
|
23
28
|
buttonClick: EventEmitter<void>;
|
|
24
29
|
closeClick: EventEmitter<void>;
|
|
25
30
|
constructor(elementRef: ElementRef, adapterService: SkyTabButtonAdapterService, changeDetectorRef: ChangeDetectorRef, tabsetService: SkyTabsetService);
|
|
26
|
-
elementRole: string | undefined;
|
|
27
31
|
closeBtnTabIndex: string;
|
|
32
|
+
wizardStepState: SkyWizardStepState | undefined;
|
|
28
33
|
ngAfterViewInit(): void;
|
|
29
34
|
ngOnDestroy(): void;
|
|
30
35
|
onButtonClick(event: any): void;
|
|
@@ -33,5 +38,6 @@ export declare class SkyTabButtonComponent implements AfterViewInit, OnDestroy {
|
|
|
33
38
|
focusBtn(): void;
|
|
34
39
|
onFocus(): void;
|
|
35
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabButtonComponent, never>;
|
|
36
|
-
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"; "tabIndex": "tabIndex"; "tabStyle": "tabStyle"; }, { "buttonClick": "buttonClick"; "closeClick": "closeClick"; }, never, never, false>;
|
|
41
|
+
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"; "tabIndex": "tabIndex"; "tabNumber": "tabNumber"; "totalTabsCount": "totalTabsCount"; "tabStyle": "tabStyle"; }, { "buttonClick": "buttonClick"; "closeClick": "closeClick"; }, never, never, false>;
|
|
37
42
|
}
|
|
43
|
+
export {};
|
|
@@ -5,22 +5,20 @@ import { SkyTabsetPermalinkService } from './tabset-permalink.service';
|
|
|
5
5
|
import { SkyTabsetService } from './tabset.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SkyTabComponent implements OnChanges, OnDestroy {
|
|
8
|
-
private
|
|
9
|
-
private permalinkService;
|
|
10
|
-
private tabsetService;
|
|
8
|
+
#private;
|
|
11
9
|
/**
|
|
12
10
|
* Indicates whether the tab is active when the tabset loads. After initialization, the `active`
|
|
13
11
|
* property on the tabset component should be used to set the active tab.
|
|
14
12
|
* @default false
|
|
15
13
|
*/
|
|
16
|
-
set active(value: boolean);
|
|
14
|
+
set active(value: boolean | undefined);
|
|
17
15
|
get active(): boolean;
|
|
18
16
|
get activeChange(): Observable<void>;
|
|
19
17
|
/**
|
|
20
18
|
* Indicates whether to disable the tab.
|
|
21
19
|
* @default false
|
|
22
20
|
*/
|
|
23
|
-
disabled: boolean;
|
|
21
|
+
disabled: boolean | undefined;
|
|
24
22
|
/**
|
|
25
23
|
* Specifies a custom query parameter value for the tab.
|
|
26
24
|
* This works in conjunction with the tabset's `permalinkId` to distinguish
|
|
@@ -29,11 +27,12 @@ export declare class SkyTabComponent implements OnChanges, OnDestroy {
|
|
|
29
27
|
* By default, the query parameter's value is parsed automatically from the tab's heading text.
|
|
30
28
|
* This input only applies when the tabset's `tabStyle` is `"tabs"`.
|
|
31
29
|
*/
|
|
32
|
-
set permalinkValue(value: string);
|
|
33
|
-
get permalinkValue(): string;
|
|
30
|
+
set permalinkValue(value: string | undefined);
|
|
31
|
+
get permalinkValue(): string | undefined;
|
|
34
32
|
/**
|
|
35
33
|
* Displays a counter beside the tab header.
|
|
36
34
|
* This input only applies when the tabset's `tabStyle` is `"tabs"`.
|
|
35
|
+
* @deprecated SKY UX no longer recommends adding counts to tabs.
|
|
37
36
|
*/
|
|
38
37
|
tabHeaderCount: string | undefined;
|
|
39
38
|
/**
|
|
@@ -44,40 +43,36 @@ export declare class SkyTabComponent implements OnChanges, OnDestroy {
|
|
|
44
43
|
* to reflect the tab header in the page title.
|
|
45
44
|
* @required
|
|
46
45
|
*/
|
|
47
|
-
tabHeading: string;
|
|
46
|
+
set tabHeading(value: string | undefined);
|
|
47
|
+
get tabHeading(): string | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* Specifies a unique identifier for the tab.
|
|
50
50
|
* If not defined, the identifier is set to the position of the tab on load, starting with `0`.
|
|
51
51
|
*/
|
|
52
|
-
set tabIndex(value: SkyTabIndex);
|
|
53
|
-
get tabIndex(): SkyTabIndex;
|
|
52
|
+
set tabIndex(value: SkyTabIndex | undefined);
|
|
53
|
+
get tabIndex(): SkyTabIndex | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* Fires when users click the button to close the tab.
|
|
56
56
|
* The close button is added to the tab when you specify a listener for this event.
|
|
57
57
|
* This event only applies when the tabset's `tabStyle` is `"tabs"`.
|
|
58
58
|
*/
|
|
59
59
|
close: EventEmitter<void>;
|
|
60
|
-
get closeable(): boolean;
|
|
61
60
|
/**
|
|
62
61
|
* Alerts the tabset component when this component has changes that need to be reflected in the UI.
|
|
63
62
|
*/
|
|
64
63
|
get stateChange(): Observable<void>;
|
|
65
|
-
get tabIndexChange(): Observable<SkyTabIndex>;
|
|
64
|
+
get tabIndexChange(): Observable<SkyTabIndex | undefined>;
|
|
65
|
+
permalinkValueOrDefault: string;
|
|
66
66
|
showContent: boolean;
|
|
67
67
|
tabButtonId: string;
|
|
68
68
|
tabPanelId: string;
|
|
69
|
-
private _active;
|
|
70
|
-
private _activeChange;
|
|
71
|
-
private _permalinkValue;
|
|
72
|
-
private _stateChange;
|
|
73
|
-
private _tabIndex;
|
|
74
|
-
private _tabIndexChange;
|
|
75
69
|
constructor(changeDetector: ChangeDetectorRef, permalinkService: SkyTabsetPermalinkService, tabsetService: SkyTabsetService);
|
|
76
70
|
ngOnChanges(changes: SimpleChanges): void;
|
|
77
71
|
ngOnDestroy(): void;
|
|
78
72
|
init(): void;
|
|
79
73
|
activate(): void;
|
|
80
74
|
deactivate(): void;
|
|
75
|
+
isCloseable(): boolean;
|
|
81
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabComponent, never>;
|
|
82
77
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTabComponent, "sky-tab", never, { "active": "active"; "disabled": "disabled"; "permalinkValue": "permalinkValue"; "tabHeaderCount": "tabHeaderCount"; "tabHeading": "tabHeading"; "tabIndex": "tabIndex"; }, { "close": "close"; }, never, ["*"], false>;
|
|
83
78
|
}
|
|
@@ -3,15 +3,16 @@ import * as i1 from "./tab-button.component";
|
|
|
3
3
|
import * as i2 from "./tab.component";
|
|
4
4
|
import * as i3 from "./tabset.component";
|
|
5
5
|
import * as i4 from "./tabset-nav-button.component";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "@angular/
|
|
8
|
-
import * as i7 from "@
|
|
9
|
-
import * as i8 from "@skyux/
|
|
10
|
-
import * as i9 from "@skyux/
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
6
|
+
import * as i5 from "./tabset-nav-button-disabled.pipe";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@angular/router";
|
|
9
|
+
import * as i8 from "@skyux/popovers";
|
|
10
|
+
import * as i9 from "@skyux/i18n";
|
|
11
|
+
import * as i10 from "@skyux/indicators";
|
|
12
|
+
import * as i11 from "../shared/sky-tabs-resources.module";
|
|
13
|
+
import * as i12 from "@skyux/theme";
|
|
13
14
|
export declare class SkyTabsModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyTabsModule, [typeof i1.SkyTabButtonComponent, typeof i2.SkyTabComponent, typeof i3.SkyTabsetComponent, typeof i4.SkyTabsetNavButtonComponent], [typeof
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyTabsModule, [typeof i1.SkyTabButtonComponent, typeof i2.SkyTabComponent, typeof i3.SkyTabsetComponent, typeof i4.SkyTabsetNavButtonComponent, typeof i5.SkyTabsetNavButtonDisabledPipe], [typeof i6.CommonModule, typeof i7.RouterModule, typeof i8.SkyDropdownModule, typeof i9.SkyI18nModule, typeof i10.SkyIconModule, typeof i11.SkyTabsResourcesModule, typeof i12.SkyThemeModule], [typeof i2.SkyTabComponent, typeof i3.SkyTabsetComponent, typeof i4.SkyTabsetNavButtonComponent]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyTabsModule>;
|
|
17
18
|
}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
export declare class SkyTabsetAdapterService {
|
|
7
|
+
export declare class SkyTabsetAdapterService implements OnDestroy {
|
|
8
|
+
#private;
|
|
8
9
|
get overflowChange(): Observable<boolean>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
private tabsOffsetLeft;
|
|
12
|
-
private _overflowChange;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnDestroy(): void;
|
|
13
12
|
registerTabset(tabsetRef: ElementRef): void;
|
|
14
13
|
/**
|
|
15
14
|
* Detects if the tab buttons are wider than the tabset container.
|
|
16
15
|
*/
|
|
17
16
|
detectOverflow(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Returns the number of pixels to the left of the first tab.
|
|
20
|
-
*/
|
|
21
|
-
private getTabsOffsetLeft;
|
|
22
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsetAdapterService, never>;
|
|
23
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<SkyTabsetAdapterService>;
|
|
24
19
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SkyTabsetNavButtonType } from './tabset-nav-button-type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SkyTabsetNavButtonDisabledPipe implements PipeTransform {
|
|
5
|
+
transform(disabled: boolean | undefined, buttonType?: SkyTabsetNavButtonType | string, tabToSelectExists?: boolean, tabToSelectIsDisabled?: boolean): boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsetNavButtonDisabledPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SkyTabsetNavButtonDisabledPipe, "skyTabsetNavButtonDisabled", false>;
|
|
8
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { SkyLogService } from '@skyux/core';
|
|
3
|
+
import { SkyTabComponent } from './tab.component';
|
|
3
4
|
import { SkyTabsetNavButtonType } from './tabset-nav-button-type';
|
|
4
5
|
import { SkyTabsetComponent } from './tabset.component';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
@@ -9,13 +10,14 @@ export declare class SkyTabsetNavButtonComponent implements OnDestroy {
|
|
|
9
10
|
* Specifies the tabset wizard component to associate with the nav button.
|
|
10
11
|
* @required
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
+
get tabset(): SkyTabsetComponent | undefined;
|
|
14
|
+
set tabset(value: SkyTabsetComponent | undefined);
|
|
13
15
|
/**
|
|
14
16
|
* Specifies the type of nav button to include.
|
|
15
17
|
* @required
|
|
16
18
|
*/
|
|
17
|
-
get buttonType(): SkyTabsetNavButtonType | string;
|
|
18
|
-
set buttonType(value: SkyTabsetNavButtonType | string);
|
|
19
|
+
get buttonType(): SkyTabsetNavButtonType | string | undefined;
|
|
20
|
+
set buttonType(value: SkyTabsetNavButtonType | string | undefined);
|
|
19
21
|
/**
|
|
20
22
|
* Specifies the label to display on the nav button. The following are the defaults for each `buttonType`.
|
|
21
23
|
* `next` = "Next", `previous` = "Previous", `finish` = "Finish"
|
|
@@ -26,12 +28,13 @@ export declare class SkyTabsetNavButtonComponent implements OnDestroy {
|
|
|
26
28
|
* Defaults to the disabled state of the next tab for `next`, the existence of a previous tab for `previous`,
|
|
27
29
|
* and false for `finish`.
|
|
28
30
|
*/
|
|
29
|
-
set disabled(value: boolean);
|
|
30
|
-
get disabled(): boolean;
|
|
31
|
+
set disabled(value: boolean | undefined);
|
|
32
|
+
get disabled(): boolean | undefined;
|
|
31
33
|
buttonClassName: string | undefined;
|
|
32
34
|
isVisible: boolean;
|
|
33
35
|
type: 'submit' | 'button';
|
|
34
36
|
ariaControls: string | undefined;
|
|
37
|
+
protected tabToSelect: SkyTabComponent | undefined;
|
|
35
38
|
constructor(logger: SkyLogService);
|
|
36
39
|
ngOnDestroy(): void;
|
|
37
40
|
buttonClick(): void;
|
|
@@ -7,12 +7,8 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
9
|
export declare class SkyTabsetPermalinkService implements OnDestroy {
|
|
10
|
-
private
|
|
11
|
-
private location;
|
|
12
|
-
private router;
|
|
10
|
+
#private;
|
|
13
11
|
get popStateChange(): Observable<void>;
|
|
14
|
-
private _popStateChange;
|
|
15
|
-
private subscription;
|
|
16
12
|
constructor(activatedRoute: ActivatedRoute, location: Location, router: Router);
|
|
17
13
|
ngOnDestroy(): void;
|
|
18
14
|
init(): void;
|
|
@@ -32,15 +28,11 @@ export declare class SkyTabsetPermalinkService implements OnDestroy {
|
|
|
32
28
|
* Returns a relative URL that includes the provided query parameter. The value is inteded to be
|
|
33
29
|
* used by an HTML anchor element.
|
|
34
30
|
*/
|
|
35
|
-
getParamHref(name: string, value: string): string | null;
|
|
31
|
+
getParamHref(name: string | undefined, value: string): string | null;
|
|
36
32
|
/**
|
|
37
33
|
* Converts the provided string into a value that can be safely used in a URL.
|
|
38
34
|
*/
|
|
39
|
-
urlify(value: string): string;
|
|
40
|
-
/**
|
|
41
|
-
* Returns all query params that exist in the current URL.
|
|
42
|
-
*/
|
|
43
|
-
private getParams;
|
|
35
|
+
urlify(value: string | undefined): string;
|
|
44
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsetPermalinkService, never>;
|
|
45
37
|
static ɵprov: i0.ɵɵInjectableDeclaration<SkyTabsetPermalinkService>;
|
|
46
38
|
}
|
|
@@ -11,29 +11,24 @@ import { SkyTabsetService } from './tabset.service';
|
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class SkyTabsetComponent implements AfterViewInit, OnDestroy {
|
|
13
13
|
#private;
|
|
14
|
-
private changeDetector;
|
|
15
|
-
private elementRef;
|
|
16
|
-
private adapterService;
|
|
17
|
-
private permalinkService;
|
|
18
|
-
private tabsetService;
|
|
19
14
|
/**
|
|
20
15
|
* Activates a tab by its `tabIndex` property.
|
|
21
16
|
*/
|
|
22
|
-
set active(value: SkyTabIndex);
|
|
23
|
-
get active(): SkyTabIndex;
|
|
17
|
+
set active(value: SkyTabIndex | undefined);
|
|
18
|
+
get active(): SkyTabIndex | undefined;
|
|
24
19
|
/**
|
|
25
20
|
* Specifies an ARIA label for the tabset. This sets the tabset's `aria-label` attribute
|
|
26
21
|
* [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
|
|
27
22
|
* If the tabset includes a visible label, use `ariaLabelledBy` instead.
|
|
28
23
|
*/
|
|
29
|
-
ariaLabel: string;
|
|
24
|
+
ariaLabel: string | undefined;
|
|
30
25
|
/**
|
|
31
26
|
* Specifies the HTML element ID (without the leading `#`) of the element that labels
|
|
32
27
|
* the tabset. This sets the tabset's `aria-labelledby` attribute
|
|
33
28
|
* [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
|
|
34
29
|
* If the tabset does not include a visible label, use `ariaLabel` instead.
|
|
35
30
|
*/
|
|
36
|
-
ariaLabelledBy: string;
|
|
31
|
+
ariaLabelledBy: string | undefined;
|
|
37
32
|
/**
|
|
38
33
|
* Distinguishes a tabset's unique state in the URL by generating a query parameter
|
|
39
34
|
* that is written as `?<queryParam>-active-tab=<sanitized-tab-heading>`.
|
|
@@ -41,13 +36,13 @@ export declare class SkyTabsetComponent implements AfterViewInit, OnDestroy {
|
|
|
41
36
|
* but you can supply a custom query parameter value for each tab with its `permalinkValue`.
|
|
42
37
|
* This input only applies when `tabStyle` is `"tabs"`
|
|
43
38
|
*/
|
|
44
|
-
set permalinkId(value: string);
|
|
39
|
+
set permalinkId(value: string | undefined);
|
|
45
40
|
get permalinkId(): string;
|
|
46
41
|
/**
|
|
47
42
|
* Specifies the behavior for a series of tabs.
|
|
48
43
|
* @default "tabs"
|
|
49
44
|
*/
|
|
50
|
-
set tabStyle(value: SkyTabsetStyle);
|
|
45
|
+
set tabStyle(value: SkyTabsetStyle | undefined);
|
|
51
46
|
get tabStyle(): SkyTabsetStyle;
|
|
52
47
|
/**
|
|
53
48
|
* Fires when the active tab changes. This event emits the index of the active tab.
|
|
@@ -72,23 +67,15 @@ export declare class SkyTabsetComponent implements AfterViewInit, OnDestroy {
|
|
|
72
67
|
tabIndexesChange: EventEmitter<SkyTabsetTabIndexesChange>;
|
|
73
68
|
set tabDisplayMode(value: SkyTabsetButtonsDisplayMode);
|
|
74
69
|
get tabDisplayMode(): SkyTabsetButtonsDisplayMode;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
tabs: QueryList<SkyTabComponent>;
|
|
70
|
+
set tabs(value: QueryList<SkyTabComponent> | undefined);
|
|
71
|
+
get tabs(): QueryList<SkyTabComponent> | undefined;
|
|
78
72
|
dropdownTriggerButtonText: string;
|
|
79
73
|
/**
|
|
80
74
|
* This property is used by the deprecated tabset-nav-button component.
|
|
81
75
|
* @internal
|
|
82
76
|
*/
|
|
83
|
-
lastActiveTabIndex: SkyTabIndex;
|
|
77
|
+
lastActiveTabIndex: SkyTabIndex | undefined;
|
|
84
78
|
tabButtons: TabButtonViewModel[];
|
|
85
|
-
elementRole: string | undefined;
|
|
86
|
-
private ngUnsubscribe;
|
|
87
|
-
private tabComponentsStateChangeUnsubscribe;
|
|
88
|
-
private _active;
|
|
89
|
-
private _permalinkId;
|
|
90
|
-
private _tabDisplayMode;
|
|
91
|
-
private _tabStyle;
|
|
92
79
|
constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, adapterService: SkyTabsetAdapterService, permalinkService: SkyTabsetPermalinkService, tabsetService: SkyTabsetService);
|
|
93
80
|
ngAfterViewInit(): void;
|
|
94
81
|
ngOnDestroy(): void;
|
|
@@ -101,40 +88,6 @@ export declare class SkyTabsetComponent implements AfterViewInit, OnDestroy {
|
|
|
101
88
|
onLeftKeyDown(): void;
|
|
102
89
|
onHomeKeyDown(): void;
|
|
103
90
|
onEndKeyDown(): void;
|
|
104
|
-
/**
|
|
105
|
-
* Sets the initial active tab index based on the following criteria.
|
|
106
|
-
* 1. Does the URL include a query param that reflects this tabset's active tab?
|
|
107
|
-
* 2. Does one of the tab components have their `active` property set to `true`?
|
|
108
|
-
* 3. Is the tabset component's `active` property set to a specific tab index?
|
|
109
|
-
*/
|
|
110
|
-
private getInitialTabIndex;
|
|
111
|
-
private listenActiveIndexChange;
|
|
112
|
-
private listenTabComponentsStructuralChange;
|
|
113
|
-
private listenTabComponentsStateChange;
|
|
114
|
-
private initTabComponents;
|
|
115
|
-
private resetTabComponents;
|
|
116
|
-
private emitTabIndexChange;
|
|
117
|
-
private unsubscribeTabComponentsStateChange;
|
|
118
|
-
private listenTabButtonsOverflowChange;
|
|
119
|
-
/**
|
|
120
|
-
* Listen for back/forward history button presses to detect query param changes in the URL.
|
|
121
|
-
*/
|
|
122
|
-
private listenLocationPopStateChange;
|
|
123
|
-
private setActiveTabIndexByPermalinkId;
|
|
124
|
-
private getActiveTabIndexByPermalinkId;
|
|
125
|
-
private getActiveTabComponent;
|
|
126
|
-
private createTabButtons;
|
|
127
|
-
private updateTabButtons;
|
|
128
|
-
/**
|
|
129
|
-
* Updates the UI and state of the tabset component after the tab index or
|
|
130
|
-
* tab components have changed.
|
|
131
|
-
* @param activeIndex The currently active tab index.
|
|
132
|
-
* @param regenerateTabButtons Indicates if tab button view models should be regenerated.
|
|
133
|
-
* Setting this value to `false` will simply update the existing tab buttons. Setting this value
|
|
134
|
-
* to `true` is only necessary when the underlying tab components have changed and the tab
|
|
135
|
-
* buttons must reflect those changes.
|
|
136
|
-
*/
|
|
137
|
-
private updateTabsetComponent;
|
|
138
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsetComponent, never>;
|
|
139
92
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyTabsetComponent, "sky-tabset", never, { "active": "active"; "ariaLabel": "ariaLabel"; "ariaLabelledBy": "ariaLabelledBy"; "permalinkId": "permalinkId"; "tabStyle": "tabStyle"; }, { "activeChange": "activeChange"; "newTab": "newTab"; "openTab": "openTab"; "tabIndexesChange": "tabIndexesChange"; }, ["tabs"], ["*"], false>;
|
|
140
93
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
import { TabButtonViewModel } from './tab-button-view-model';
|
|
3
4
|
import { SkyTabIndex } from './tab-index';
|
|
@@ -6,21 +7,19 @@ import * as i0 from "@angular/core";
|
|
|
6
7
|
/**
|
|
7
8
|
* @internal
|
|
8
9
|
*/
|
|
9
|
-
export declare class SkyTabsetService {
|
|
10
|
+
export declare class SkyTabsetService implements OnDestroy {
|
|
11
|
+
#private;
|
|
10
12
|
get activeTabUnregistered(): Observable<SkyTabsetActiveTabUnregisteredArgs>;
|
|
11
13
|
get activeTabIndex(): Observable<SkyTabIndex>;
|
|
12
14
|
get focusedTabBtnIndex(): Observable<SkyTabIndex>;
|
|
13
|
-
currentActiveTabIndex: SkyTabIndex;
|
|
15
|
+
currentActiveTabIndex: SkyTabIndex | undefined;
|
|
14
16
|
currentFocusedTabBtnIndex: SkyTabIndex;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
private _activeTabUnregistered;
|
|
18
|
-
private tabs;
|
|
19
|
-
private tabCounter;
|
|
17
|
+
constructor();
|
|
18
|
+
ngOnDestroy(): void;
|
|
20
19
|
/**
|
|
21
20
|
* Sets the active tab by its unique `tabIndex` property.
|
|
22
21
|
*/
|
|
23
|
-
setActiveTabIndex(value: SkyTabIndex, config?: {
|
|
22
|
+
setActiveTabIndex(value: SkyTabIndex | undefined, config?: {
|
|
24
23
|
emitChange: boolean;
|
|
25
24
|
}): void;
|
|
26
25
|
focusNextTabBtn(tabButtons: TabButtonViewModel[]): void;
|
|
@@ -44,7 +43,7 @@ export declare class SkyTabsetService {
|
|
|
44
43
|
/**
|
|
45
44
|
* Compares two tab indexes and returns `true` if they are equal.
|
|
46
45
|
*/
|
|
47
|
-
tabIndexesEqual(tabIndex1: SkyTabIndex, tabIndex2: SkyTabIndex): boolean;
|
|
46
|
+
tabIndexesEqual(tabIndex1: SkyTabIndex | undefined, tabIndex2: SkyTabIndex | undefined): boolean;
|
|
48
47
|
/**
|
|
49
48
|
* Verifies if a provided tab index is registered.
|
|
50
49
|
*/
|
|
@@ -57,9 +56,6 @@ export declare class SkyTabsetService {
|
|
|
57
56
|
* Activates the next registered tab, or the previous one based on a provided array index.
|
|
58
57
|
*/
|
|
59
58
|
activateNearestTab(arrayIndex: number): void;
|
|
60
|
-
private isTabIndexActive;
|
|
61
|
-
private getNextTabArrayIndex;
|
|
62
|
-
private getPrevTabArrayIndex;
|
|
63
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsetService, never>;
|
|
64
60
|
static ɵprov: i0.ɵɵInjectableDeclaration<SkyTabsetService>;
|
|
65
61
|
}
|
|
@@ -5,9 +5,8 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
export declare class SkyVerticalTabMediaQueryService {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
private _current;
|
|
8
|
+
#private;
|
|
9
|
+
current: SkyMediaBreakpoints | undefined;
|
|
11
10
|
constructor();
|
|
12
11
|
subscribe(listener: SkyMediaQueryListener): Subscription;
|
|
13
12
|
setBreakpointForWidth(width: number): void;
|