@skyux/tabs 12.9.0 → 12.11.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.
- package/fesm2022/skyux-tabs-testing.mjs +274 -104
- package/fesm2022/skyux-tabs-testing.mjs.map +1 -1
- package/fesm2022/skyux-tabs.mjs +3 -2
- package/fesm2022/skyux-tabs.mjs.map +1 -1
- package/package.json +10 -10
- package/testing/modules/sectioned-form/sectioned-form-harness-filters.d.ts +6 -0
- package/testing/modules/sectioned-form/sectioned-form-harness.d.ts +33 -0
- package/testing/modules/sectioned-form/sectioned-form-section-content-harness-filters.d.ts +6 -0
- package/testing/modules/sectioned-form/sectioned-form-section-content-harness.d.ts +17 -0
- package/testing/modules/sectioned-form/sectioned-form-section-harness-filters.d.ts +10 -0
- package/testing/modules/sectioned-form/sectioned-form-section-harness.d.ts +59 -0
- package/testing/public-api.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/tabs",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.11.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"@angular/core": "^19.2.7",
|
|
23
23
|
"@angular/platform-browser": "^19.2.7",
|
|
24
24
|
"@angular/router": "^19.2.7",
|
|
25
|
-
"@skyux-sdk/testing": "12.
|
|
26
|
-
"@skyux/animations": "12.
|
|
27
|
-
"@skyux/core": "12.
|
|
28
|
-
"@skyux/forms": "12.
|
|
29
|
-
"@skyux/i18n": "12.
|
|
30
|
-
"@skyux/icon": "12.
|
|
31
|
-
"@skyux/indicators": "12.
|
|
32
|
-
"@skyux/popovers": "12.
|
|
33
|
-
"@skyux/theme": "12.
|
|
25
|
+
"@skyux-sdk/testing": "12.11.0",
|
|
26
|
+
"@skyux/animations": "12.11.0",
|
|
27
|
+
"@skyux/core": "12.11.0",
|
|
28
|
+
"@skyux/forms": "12.11.0",
|
|
29
|
+
"@skyux/i18n": "12.11.0",
|
|
30
|
+
"@skyux/icon": "12.11.0",
|
|
31
|
+
"@skyux/indicators": "12.11.0",
|
|
32
|
+
"@skyux/popovers": "12.11.0",
|
|
33
|
+
"@skyux/theme": "12.11.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"tslib": "^2.8.1"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkySectionedFormHarnessFilters } from './sectioned-form-harness-filters';
|
|
4
|
+
import { SkySectionedFormSectionContentHarness } from './sectioned-form-section-content-harness';
|
|
5
|
+
import { SkySectionedFormSectionHarness } from './sectioned-form-section-harness';
|
|
6
|
+
import { SkySectionedFormSectionHarnessFilters } from './sectioned-form-section-harness-filters';
|
|
7
|
+
/**
|
|
8
|
+
* Harness for interacting with a sectioned form component in tests.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SkySectionedFormHarness 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
|
+
* `SkySectionedFormHarness` that meets certain criteria.
|
|
19
|
+
*/
|
|
20
|
+
static with(filters: SkySectionedFormHarnessFilters): HarnessPredicate<SkySectionedFormHarness>;
|
|
21
|
+
/**
|
|
22
|
+
* Gets the `SkySectionedFormSectionHarness` for the currently active section.
|
|
23
|
+
*/
|
|
24
|
+
getActiveSection(): Promise<SkySectionedFormSectionHarness | undefined>;
|
|
25
|
+
getActiveSectionContent(): Promise<SkySectionedFormSectionContentHarness | undefined>;
|
|
26
|
+
getSection(filters: SkySectionedFormSectionHarnessFilters): Promise<SkySectionedFormSectionHarness>;
|
|
27
|
+
getSections(filters?: SkySectionedFormSectionHarnessFilters): Promise<SkySectionedFormSectionHarness[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the section tabs are visible.
|
|
30
|
+
* In mobile view, sectioned forms collapse to just content pane.
|
|
31
|
+
*/
|
|
32
|
+
isSectionsVisible(): Promise<boolean>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SkyVerticalTabContentHarnessFilters } from '../vertical-tabset/vertical-tab-content-harness-filters';
|
|
2
|
+
/**
|
|
3
|
+
* A set of criteria that can be used to filter a list of `SkySectionedFormSectionContentHarness` instances.
|
|
4
|
+
*/
|
|
5
|
+
export interface SkySectionedFormSectionContentHarnessFilters extends SkyVerticalTabContentHarnessFilters {
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyVerticalTabContentHarness } from '../vertical-tabset/vertical-tab-content-harness';
|
|
3
|
+
import { SkySectionedFormSectionContentHarnessFilters } from './sectioned-form-section-content-harness-filters';
|
|
4
|
+
/**
|
|
5
|
+
* Harness for interacting with a sectioned form content in tests.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SkySectionedFormSectionContentHarness extends SkyVerticalTabContentHarness {
|
|
8
|
+
/**
|
|
9
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
10
|
+
* `SkySectionedFormSectionContentHarness` that meets certain criteria.
|
|
11
|
+
*/
|
|
12
|
+
static with(filters: SkySectionedFormSectionContentHarnessFilters): HarnessPredicate<SkySectionedFormSectionContentHarness>;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the section content is visible.
|
|
15
|
+
*/
|
|
16
|
+
isVisible(): Promise<boolean>;
|
|
17
|
+
}
|
|
@@ -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 `SkySectionedFormSectionHarness` instances.
|
|
4
|
+
*/
|
|
5
|
+
export interface SkySectionedFormSectionHarnessFilters extends SkyHarnessFilters {
|
|
6
|
+
/**
|
|
7
|
+
* Finds a section whose heading matches the given value.
|
|
8
|
+
*/
|
|
9
|
+
sectionHeading?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyVerticalTabButtonHarness } from '../vertical-tabset/vertical-tab-button-harness';
|
|
3
|
+
import { SkyVerticalTabContentHarness } from '../vertical-tabset/vertical-tab-content-harness';
|
|
4
|
+
import { SkySectionedFormSectionContentHarness } from './sectioned-form-section-content-harness';
|
|
5
|
+
import { SkySectionedFormSectionHarnessFilters } from './sectioned-form-section-harness-filters';
|
|
6
|
+
/**
|
|
7
|
+
* Harness for interacting with a sectioned form section component in tests.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SkySectionedFormSectionHarness extends SkyVerticalTabButtonHarness {
|
|
10
|
+
/**
|
|
11
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
12
|
+
* `SkySectionedFormSectionHarness` that meets certain criteria.
|
|
13
|
+
*/
|
|
14
|
+
static with(filters: SkySectionedFormSectionHarnessFilters): HarnessPredicate<SkySectionedFormSectionHarness>;
|
|
15
|
+
/**
|
|
16
|
+
* Clicks the section to activate.
|
|
17
|
+
*/
|
|
18
|
+
click(): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Gets the `SkySectionedFormSectionContentHarness` for this section.
|
|
21
|
+
*/
|
|
22
|
+
getSectionContent(): Promise<SkySectionedFormSectionContentHarness>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the section heading.
|
|
25
|
+
*/
|
|
26
|
+
getSectionHeading(): Promise<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Gets the section item count.
|
|
29
|
+
*/
|
|
30
|
+
getSectionItemCount(): Promise<number>;
|
|
31
|
+
/**
|
|
32
|
+
* Gets the harness for this tab.
|
|
33
|
+
* Replacing with getSectionContent.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
getTabContent(): Promise<SkyVerticalTabContentHarness>;
|
|
37
|
+
/**
|
|
38
|
+
* Gets the tab header count.
|
|
39
|
+
* Replacing with getSectionItemCount.
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
getTabHeaderCount(): Promise<number>;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the tab heading text.
|
|
45
|
+
* Replacing with getSectionHeading.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
getTabHeading(): Promise<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the section is active.
|
|
51
|
+
*/
|
|
52
|
+
isActive(): Promise<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the section is disabled.
|
|
55
|
+
* This isn't used on sectioned forms.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
isDisabled(): Promise<boolean>;
|
|
59
|
+
}
|
package/testing/public-api.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export { SkyTabsetFixtureTab } from './legacy/tabs/tab-fixture-tab';
|
|
2
2
|
export { SkyTabsetFixture } from './legacy/tabs/tabset-fixture';
|
|
3
|
+
export { SkySectionedFormHarness } from './modules/sectioned-form/sectioned-form-harness';
|
|
4
|
+
export { SkySectionedFormHarnessFilters } from './modules/sectioned-form/sectioned-form-harness-filters';
|
|
5
|
+
export { SkySectionedFormSectionContentHarness } from './modules/sectioned-form/sectioned-form-section-content-harness';
|
|
6
|
+
export { SkySectionedFormSectionContentHarnessFilters } from './modules/sectioned-form/sectioned-form-section-content-harness-filters';
|
|
7
|
+
export { SkySectionedFormSectionHarness } from './modules/sectioned-form/sectioned-form-section-harness';
|
|
8
|
+
export { SkySectionedFormSectionHarnessFilters } from './modules/sectioned-form/sectioned-form-section-harness-filters';
|
|
3
9
|
export { SkyTabsetHarness } from './modules/tabs/tabset-harness';
|
|
4
10
|
export { SkyTabsetHarnessFilters } from './modules/tabs/tabset-harness-filters';
|
|
5
11
|
export { SkyTabButtonHarness } from './modules/tabs/tab-button-harness';
|