@skyux/lists 11.44.0 → 11.45.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/documentation.json +2448 -588
- package/esm2022/testing/modules/paging/page-control-harness-filters.mjs +2 -0
- package/esm2022/testing/modules/paging/page-control-harness.mjs +31 -0
- package/esm2022/testing/modules/paging/paging-content-harness.mjs +11 -0
- package/esm2022/testing/modules/paging/paging-harness-filters.mjs +2 -0
- package/esm2022/testing/modules/paging/paging-harness.mjs +85 -0
- package/esm2022/testing/public-api.mjs +3 -1
- package/fesm2022/skyux-lists-testing.mjs +124 -2
- package/fesm2022/skyux-lists-testing.mjs.map +1 -1
- package/package.json +11 -11
- package/testing/modules/paging/page-control-harness-filters.d.ts +11 -0
- package/testing/modules/paging/page-control-harness.d.ts +22 -0
- package/testing/modules/paging/paging-content-harness.d.ts +10 -0
- package/testing/modules/paging/paging-harness-filters.d.ts +6 -0
- package/testing/modules/paging/paging-harness.d.ts +40 -0
- package/testing/public-api.d.ts +3 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyPageControlHarnessFilters } from './page-control-harness-filters';
|
|
3
|
+
/**
|
|
4
|
+
* Harness to interact with a page control element in tests.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare class SkyPageControlHarness extends ComponentHarness {
|
|
8
|
+
#private;
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
static hostSelector: string;
|
|
13
|
+
static with(filters: SkyPageControlHarnessFilters): HarnessPredicate<SkyPageControlHarness>;
|
|
14
|
+
/**
|
|
15
|
+
* Clicks the page button.
|
|
16
|
+
*/
|
|
17
|
+
clickButton(): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the page button text.
|
|
20
|
+
*/
|
|
21
|
+
getText(): Promise<string>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SkyQueryableComponentHarness } from '@skyux/core/testing';
|
|
2
|
+
/**
|
|
3
|
+
* Harness to interact with a paging content component in tests.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SkyPagingContentHarness extends SkyQueryableComponentHarness {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
static hostSelector: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkyPagingContentHarness } from './paging-content-harness';
|
|
4
|
+
import { SkyPagingHarnessFilters } from './paging-harness-filters';
|
|
5
|
+
/**
|
|
6
|
+
* Harness for interacting with a paging component in tests.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SkyPagingHarness 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
|
+
* `SkyPagingHarness` that meets certain criteria.
|
|
17
|
+
*/
|
|
18
|
+
static with(filters: SkyPagingHarnessFilters): HarnessPredicate<SkyPagingHarness>;
|
|
19
|
+
/**
|
|
20
|
+
* Clicks the next button.
|
|
21
|
+
*/
|
|
22
|
+
clickNextButton(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Clicks the page button with the requested number. Throws an error if that button is not present.
|
|
25
|
+
*/
|
|
26
|
+
clickPageButton(pageNumber: number): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Clicks the previous button.
|
|
29
|
+
*/
|
|
30
|
+
clickPreviousButton(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Gets the current page number.
|
|
33
|
+
*/
|
|
34
|
+
getCurrentPage(): Promise<number>;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the paging content.
|
|
37
|
+
*/
|
|
38
|
+
getPagingContent(): Promise<SkyPagingContentHarness>;
|
|
39
|
+
getPagingLabel(): Promise<string>;
|
|
40
|
+
}
|
package/testing/public-api.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export { SkyFilterTestingModule } from './legacy/filter/filter-testing.module';
|
|
|
4
4
|
export { SkyPagingFixture } from './legacy/paging/paging-fixture';
|
|
5
5
|
export { SkyPagingFixtureButton } from './legacy/paging/paging-fixture-button';
|
|
6
6
|
export { SkyPagingTestingModule } from './legacy/paging/paging-testing.module';
|
|
7
|
+
export { SkyPagingContentHarness } from './modules/paging/paging-content-harness';
|
|
8
|
+
export { SkyPagingHarness } from './modules/paging/paging-harness';
|
|
9
|
+
export { SkyPagingHarnessFilters } from './modules/paging/paging-harness-filters';
|
|
7
10
|
export { SkyRepeaterHarness } from './modules/repeater/repeater-harness';
|
|
8
11
|
export { SkyRepeaterHarnessFilters } from './modules/repeater/repeater-harness-filters';
|
|
9
12
|
export { SkyRepeaterItemHarness } from './modules/repeater/repeater-item-harness';
|