@skyux/tabs 12.0.0-alpha.2 → 12.0.0-alpha.3

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.
@@ -5,6 +5,9 @@ import * as i3 from "@angular/common";
5
5
  import * as i4 from "@skyux/forms";
6
6
  import * as i5 from "@skyux/theme";
7
7
  import * as i6 from "../vertical-tabset/vertical-tabset.module";
8
+ /**
9
+ * @docsIncludeIds SkySectionedFormComponent, SkySectionedFormSectionComponent, SkySectionedFormService, SkySectionedFormMessage, SkySectionedFormMessageType
10
+ */
8
11
  export declare class SkySectionedFormModule {
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SkySectionedFormModule, never>;
10
13
  static ɵmod: i0.ɵɵNgModuleDeclaration<SkySectionedFormModule, [typeof i1.SkySectionedFormComponent, typeof i2.SkySectionedFormSectionComponent], [typeof i3.CommonModule, typeof i4.SkyCheckboxModule, typeof i5.SkyThemeModule, typeof i6.SkyVerticalTabsetModule], [typeof i1.SkySectionedFormComponent, typeof i2.SkySectionedFormSectionComponent]>;
@@ -10,6 +10,9 @@ import * as i8 from "@skyux/popovers";
10
10
  import * as i9 from "@skyux/icon";
11
11
  import * as i10 from "../shared/sky-tabs-resources.module";
12
12
  import * as i11 from "@skyux/theme";
13
+ /**
14
+ * @docsIncludeIds SkyTabsetComponent, SkyTabComponent, SkyTabsetNavButtonComponent, SkyTabIndex, SkyTabLayoutType, SkyTabsetButtonsDisplayMode, SkyTabsetStyle, SkyTabsetTabIndexesChange
15
+ */
13
16
  export declare class SkyTabsModule {
14
17
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyTabsModule, never>;
15
18
  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.SkyResponsiveHostDirective, typeof i8.SkyDropdownModule, typeof i9.SkyIconModule, typeof i7.SkyIdModule, typeof i10.SkyTabsResourcesModule, typeof i11.SkyThemeModule], [typeof i2.SkyTabComponent, typeof i3.SkyTabsetComponent, typeof i4.SkyTabsetNavButtonComponent]>;
@@ -8,6 +8,9 @@ import * as i6 from "@skyux/core";
8
8
  import * as i7 from "@skyux/indicators";
9
9
  import * as i8 from "../shared/sky-tabs-resources.module";
10
10
  import * as i9 from "@skyux/theme";
11
+ /**
12
+ * @docsIncludeIds SkyVerticalTabsetComponent, SkyVerticalTabComponent, SkyVerticalTabsetGroupComponent
13
+ */
11
14
  export declare class SkyVerticalTabsetModule {
12
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyVerticalTabsetModule, never>;
13
16
  static ɵmod: i0.ɵɵNgModuleDeclaration<SkyVerticalTabsetModule, [typeof i1.SkyVerticalTabsetComponent, typeof i2.SkyVerticalTabsetGroupComponent, typeof i3.SkyVerticalTabComponent], [typeof i4.CommonModule, typeof i5.SkyIconModule, typeof i6.SkyIdModule, typeof i7.SkyExpansionIndicatorModule, typeof i6.SkyResponsiveHostDirective, typeof i7.SkyStatusIndicatorModule, typeof i8.SkyTabsResourcesModule, typeof i9.SkyThemeModule], [typeof i1.SkyVerticalTabsetComponent, typeof i2.SkyVerticalTabsetGroupComponent, typeof i3.SkyVerticalTabComponent]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/tabs",
3
- "version": "12.0.0-alpha.2",
3
+ "version": "12.0.0-alpha.3",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -33,19 +33,20 @@
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@angular/animations": "^19.0.5",
36
+ "@angular/cdk": "^19.0.4",
36
37
  "@angular/common": "^19.0.5",
37
38
  "@angular/core": "^19.0.5",
38
39
  "@angular/platform-browser": "^19.0.5",
39
40
  "@angular/router": "^19.0.5",
40
- "@skyux-sdk/testing": "12.0.0-alpha.2",
41
- "@skyux/animations": "12.0.0-alpha.2",
42
- "@skyux/core": "12.0.0-alpha.2",
43
- "@skyux/forms": "12.0.0-alpha.2",
44
- "@skyux/i18n": "12.0.0-alpha.2",
45
- "@skyux/icon": "12.0.0-alpha.2",
46
- "@skyux/indicators": "12.0.0-alpha.2",
47
- "@skyux/popovers": "12.0.0-alpha.2",
48
- "@skyux/theme": "12.0.0-alpha.2"
41
+ "@skyux-sdk/testing": "12.0.0-alpha.3",
42
+ "@skyux/animations": "12.0.0-alpha.3",
43
+ "@skyux/core": "12.0.0-alpha.3",
44
+ "@skyux/forms": "12.0.0-alpha.3",
45
+ "@skyux/i18n": "12.0.0-alpha.3",
46
+ "@skyux/icon": "12.0.0-alpha.3",
47
+ "@skyux/indicators": "12.0.0-alpha.3",
48
+ "@skyux/popovers": "12.0.0-alpha.3",
49
+ "@skyux/theme": "12.0.0-alpha.3"
49
50
  },
50
51
  "dependencies": {
51
52
  "tslib": "^2.8.1"
@@ -0,0 +1,10 @@
1
+ import { SkyHarnessFilters } from '@skyux/core/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of `SkyTabButtonHarness` instances.
4
+ */
5
+ export interface SkyTabButtonHarnessFilters extends SkyHarnessFilters {
6
+ /**
7
+ * Finds tab button whose tab heading matches this value.
8
+ */
9
+ tabHeading: string;
10
+ }
@@ -0,0 +1,51 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyComponentHarness } from '@skyux/core/testing';
3
+ import { SkyTabButtonHarnessFilters } from './tab-button-harness-filters';
4
+ import { SkyTabContentHarness } from './tab-content-harness';
5
+ /**
6
+ * Harness for interacting with a tab button component in tests.
7
+ */
8
+ export declare class SkyTabButtonHarness extends SkyComponentHarness {
9
+ #private;
10
+ /**
11
+ * @internal
12
+ */
13
+ static hostSelector: string;
14
+ /**
15
+ * Gets a `HarnessPredicate` that can be used to search for a
16
+ * `SkyTabButtonHarness` that meets certain criteria.
17
+ */
18
+ static with(filters: SkyTabButtonHarnessFilters): HarnessPredicate<SkyTabButtonHarness>;
19
+ /**
20
+ * Clicks the tab button.
21
+ */
22
+ click(): Promise<void>;
23
+ /**
24
+ * Clicks the remove tab button if it is visible.
25
+ */
26
+ clickRemoveButton(): Promise<void>;
27
+ /**
28
+ * Gets the permalink that the page routes to when the tab is clicked.
29
+ */
30
+ getPermalink(): Promise<string | null>;
31
+ /**
32
+ * Gets the `SkyTabContentHarness` controlled by this tab button.
33
+ */
34
+ getTabContentHarness(): Promise<SkyTabContentHarness>;
35
+ /**
36
+ * Gets the tab heading.
37
+ */
38
+ getTabHeading(): Promise<string>;
39
+ /**
40
+ * Gets whether the tab button is active.
41
+ */
42
+ isActive(): Promise<boolean>;
43
+ /**
44
+ * Gets whether the tab button is disabled.
45
+ */
46
+ isDisabled(): Promise<boolean>;
47
+ /**
48
+ * @internal
49
+ */
50
+ getTabId(): Promise<string>;
51
+ }
@@ -0,0 +1,11 @@
1
+ import { SkyHarnessFilters } from '@skyux/core/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of `SkyTabContentHarness` instances.
4
+ */
5
+ export interface SkyTabContentHarnessFilters extends SkyHarnessFilters {
6
+ /**
7
+ * Finds tabs whose id matches given value.
8
+ * @internal
9
+ */
10
+ tabId: string;
11
+ }
@@ -0,0 +1,31 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyQueryableComponentHarness } from '@skyux/core/testing';
3
+ import { SkyTabContentHarnessFilters } from './tab-content-harness-filters';
4
+ /**
5
+ * Harness for interacting with a tab component in tests.
6
+ */
7
+ export declare class SkyTabContentHarness extends SkyQueryableComponentHarness {
8
+ #private;
9
+ /**
10
+ * @internal
11
+ */
12
+ static hostSelector: string;
13
+ /**
14
+ * Gets a `HarnessPredicate` that can be used to search for a
15
+ * `SkyTabContentHarness` that meets certain criteria.
16
+ * @internal
17
+ */
18
+ static with(filters: SkyTabContentHarnessFilters): HarnessPredicate<SkyTabContentHarness>;
19
+ /**
20
+ * Gets the tab's layout.
21
+ */
22
+ getLayout(): Promise<string>;
23
+ /**
24
+ * @internal
25
+ */
26
+ getTabId(): Promise<string | null>;
27
+ /**
28
+ * Whether the tab content is visible.
29
+ */
30
+ isVisible(): Promise<boolean>;
31
+ }
@@ -0,0 +1,6 @@
1
+ import { SkyHarnessFilters } from '@skyux/core/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of `SkyTabsetHarness` instances.
4
+ */
5
+ export interface SkyTabsetHarnessFilters extends SkyHarnessFilters {
6
+ }
@@ -0,0 +1,65 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyComponentHarness } from '@skyux/core/testing';
3
+ import { SkyTabsetButtonsDisplayMode } from '@skyux/tabs';
4
+ import { SkyTabButtonHarness } from './tab-button-harness';
5
+ import { SkyTabContentHarness } from './tab-content-harness';
6
+ import { SkyTabsetHarnessFilters } from './tabset-harness-filters';
7
+ /**
8
+ * Harness for interacting with a tabset component in tests.
9
+ */
10
+ export declare class SkyTabsetHarness extends SkyComponentHarness {
11
+ #private;
12
+ /**
13
+ * @internal
14
+ */
15
+ static hostSelector: string;
16
+ /**
17
+ * Gets a `HarnessPredicate` that can be used to search for a
18
+ * `SkyTabsetHarness` that meets certain criteria.
19
+ */
20
+ static with(filters: SkyTabsetHarnessFilters): HarnessPredicate<SkyTabsetHarness>;
21
+ /**
22
+ * In `dropdown` mode, clicks the dropdown tab to open the tab dropdown menu.
23
+ */
24
+ clickDropdownTab(): Promise<void>;
25
+ /**
26
+ * Clicks the new tab button if visible.
27
+ */
28
+ clickNewTabButton(): Promise<void>;
29
+ /**
30
+ * Clicks the open tab button if visible.
31
+ */
32
+ clickOpenTabButton(): Promise<void>;
33
+ /**
34
+ * Clicks a tab button with a `tabHeading` matching the input.
35
+ */
36
+ clickTabButton(tabHeading: string): Promise<void>;
37
+ /**
38
+ * Gets the active tab button harness.
39
+ */
40
+ getActiveTabButton(): Promise<SkyTabButtonHarness | null>;
41
+ /**
42
+ * Gets the tabset aria-label value.
43
+ */
44
+ getAriaLabel(): Promise<string | null>;
45
+ /**
46
+ * Gets the tabset aria-labelledby value.
47
+ */
48
+ getAriaLabelledBy(): Promise<string | null>;
49
+ /**
50
+ * Gets the tabset's display mode.
51
+ */
52
+ getMode(): Promise<SkyTabsetButtonsDisplayMode>;
53
+ /**
54
+ * Gets a tab button harness with the given `tabHeading`
55
+ */
56
+ getTabButtonHarness(tabHeading: string): Promise<SkyTabButtonHarness>;
57
+ /**
58
+ * Gets an array of all tab button harnesses.
59
+ */
60
+ getTabButtonHarnesses(): Promise<SkyTabButtonHarness[]>;
61
+ /**
62
+ * Gets a tab content harness for the tab with the given `tabHeading`.
63
+ */
64
+ getTabContentHarness(tabHeading: string): Promise<SkyTabContentHarness>;
65
+ }
@@ -1,2 +1,7 @@
1
1
  export { SkyTabsetFixtureTab } from './legacy/tabs/tab-fixture-tab';
2
2
  export { SkyTabsetFixture } from './legacy/tabs/tabset-fixture';
3
+ export { SkyTabsetHarness } from './modules/tabs/tabset-harness';
4
+ export { SkyTabsetHarnessFilters } from './modules/tabs/tabset-harness-filters';
5
+ export { SkyTabButtonHarness } from './modules/tabs/tab-button-harness';
6
+ export { SkyTabButtonHarnessFilters } from './modules/tabs/tab-button-harness-filters';
7
+ export { SkyTabContentHarness } from './modules/tabs/tab-content-harness';