@skyux/lists 6.13.0 → 6.16.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.
Files changed (26) hide show
  1. package/esm2020/lib/modules/infinite-scroll/infinite-scroll.component.mjs +3 -3
  2. package/esm2020/testing/infinite-scroll/infinite-scroll-fixture.mjs +2 -1
  3. package/esm2020/testing/infinite-scroll/infinite-scroll-harness-filters.mjs +2 -0
  4. package/esm2020/testing/infinite-scroll/infinite-scroll-harness.mjs +51 -0
  5. package/esm2020/testing/public-api.mjs +7 -1
  6. package/esm2020/testing/repeater/repeater-harness-filters.mjs +2 -0
  7. package/esm2020/testing/repeater/repeater-harness.mjs +22 -0
  8. package/esm2020/testing/repeater/repeater-item-harness-filters.mjs +2 -0
  9. package/esm2020/testing/repeater/repeater-item-harness.mjs +73 -0
  10. package/fesm2015/skyux-lists-testing.mjs +164 -2
  11. package/fesm2015/skyux-lists-testing.mjs.map +1 -1
  12. package/fesm2015/skyux-lists.mjs +2 -2
  13. package/fesm2015/skyux-lists.mjs.map +1 -1
  14. package/fesm2020/skyux-lists-testing.mjs +144 -1
  15. package/fesm2020/skyux-lists-testing.mjs.map +1 -1
  16. package/fesm2020/skyux-lists.mjs +2 -2
  17. package/fesm2020/skyux-lists.mjs.map +1 -1
  18. package/package.json +10 -10
  19. package/testing/infinite-scroll/infinite-scroll-fixture.d.ts +1 -0
  20. package/testing/infinite-scroll/infinite-scroll-harness-filters.d.ts +6 -0
  21. package/testing/infinite-scroll/infinite-scroll-harness.d.ts +26 -0
  22. package/testing/public-api.d.ts +6 -0
  23. package/testing/repeater/repeater-harness-filters.d.ts +6 -0
  24. package/testing/repeater/repeater-harness.d.ts +20 -0
  25. package/testing/repeater/repeater-item-harness-filters.d.ts +14 -0
  26. package/testing/repeater/repeater-item-harness.d.ts +39 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/lists",
3
- "version": "6.13.0",
3
+ "version": "6.16.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -44,15 +44,15 @@
44
44
  "@angular/common": "^13.3.2",
45
45
  "@angular/core": "^13.3.2",
46
46
  "@angular/platform-browser": "^13.3.2",
47
- "@skyux-sdk/testing": "6.13.0",
48
- "@skyux/animations": "6.13.0",
49
- "@skyux/core": "6.13.0",
50
- "@skyux/forms": "6.13.0",
51
- "@skyux/i18n": "6.13.0",
52
- "@skyux/indicators": "6.13.0",
53
- "@skyux/inline-form": "6.13.0",
54
- "@skyux/popovers": "6.13.0",
55
- "@skyux/theme": "6.13.0"
47
+ "@skyux-sdk/testing": "6.16.0",
48
+ "@skyux/animations": "6.16.0",
49
+ "@skyux/core": "6.16.0",
50
+ "@skyux/forms": "6.16.0",
51
+ "@skyux/i18n": "6.16.0",
52
+ "@skyux/indicators": "6.16.0",
53
+ "@skyux/inline-form": "6.16.0",
54
+ "@skyux/popovers": "6.16.0",
55
+ "@skyux/theme": "6.16.0"
56
56
  },
57
57
  "dependencies": {
58
58
  "dragula": "3.7.3",
@@ -3,6 +3,7 @@ import { ComponentFixture } from '@angular/core/testing';
3
3
  * Provides information for and interaction with a SKY UX infinite scroll component.
4
4
  * By using the fixture API, a test insulates itself against updates to the internals
5
5
  * of a component, such as changing its DOM structure.
6
+ * @deprecated Use `SkyInfiniteScrollHarness` instead.
6
7
  */
7
8
  export declare class SkyInfiniteScrollFixture {
8
9
  private fixture;
@@ -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 `SkyInfiniteScrollHarness` instances.
4
+ */
5
+ export interface SkyInfiniteScrollHarnessFilters extends SkyHarnessFilters {
6
+ }
@@ -0,0 +1,26 @@
1
+ import { SkyComponentHarness } from '@skyux/core/testing';
2
+ import { SkyInfiniteScrollHarnessFilters } from './infinite-scroll-harness-filters';
3
+ /**
4
+ * Harness for interacting with an infinite scroll component in tests.
5
+ */
6
+ export declare class SkyInfiniteScrollHarness extends SkyComponentHarness {
7
+ #private;
8
+ static hostSelector: string;
9
+ /**
10
+ * Gets a `HarnessPredicate` that can be used to search for a
11
+ * `SkyInfiniteScrollHarness` that meets certain criteria.
12
+ */
13
+ static with(filters: SkyInfiniteScrollHarnessFilters): import("@angular/cdk/testing").HarnessPredicate<SkyInfiniteScrollHarness>;
14
+ /**
15
+ * Whether the infinite scroll is enabled.
16
+ */
17
+ isEnabled(): Promise<boolean>;
18
+ /**
19
+ * Whether the infinite scroll is loading.
20
+ */
21
+ isLoading(): Promise<boolean>;
22
+ /**
23
+ * Clicks the "Load more" button.
24
+ */
25
+ loadMore(): Promise<void>;
26
+ }
@@ -4,9 +4,15 @@ export * from './filter/filter-fixture-button';
4
4
  export * from './paging/paging-testing.module';
5
5
  export * from './paging/paging-fixture';
6
6
  export * from './paging/paging-fixture-button';
7
+ export * from './repeater/repeater-harness';
8
+ export * from './repeater/repeater-harness-filters';
9
+ export * from './repeater/repeater-item-harness';
10
+ export * from './repeater/repeater-item-harness-filters';
7
11
  export * from './sort/sort-testing.module';
8
12
  export * from './sort/sort-fixture';
9
13
  export * from './sort/sort-fixture-menu';
10
14
  export * from './sort/sort-fixture-menu-item';
11
15
  export * from './infinite-scroll/infinite-scroll-testing.module';
12
16
  export * from './infinite-scroll/infinite-scroll-fixture';
17
+ export * from './infinite-scroll/infinite-scroll-harness';
18
+ export * from './infinite-scroll/infinite-scroll-harness-filters';
@@ -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 `SkyRepeaterHarness` instances.
4
+ */
5
+ export interface SkyRepeaterHarnessFilters extends SkyHarnessFilters {
6
+ }
@@ -0,0 +1,20 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyComponentHarness } from '@skyux/core/testing';
3
+ import { SkyRepeaterHarnessFilters } from './repeater-harness-filters';
4
+ import { SkyRepeaterItemHarness } from './repeater-item-harness';
5
+ import { SkyRepeaterItemHarnessFilters } from './repeater-item-harness-filters';
6
+ /**
7
+ * Harness for interacting with a repeater component in tests.
8
+ */
9
+ export declare class SkyRepeaterHarness extends SkyComponentHarness {
10
+ static hostSelector: string;
11
+ /**
12
+ * Gets a `HarnessPredicate` that can be used to search for a
13
+ * `SkyRepeaterHarness` that meets certain criteria.
14
+ */
15
+ static with(filters: SkyRepeaterHarnessFilters): HarnessPredicate<SkyRepeaterHarness>;
16
+ /**
17
+ * Gets a list of child repeater items.
18
+ */
19
+ getRepeaterItems(filters?: SkyRepeaterItemHarnessFilters): Promise<SkyRepeaterItemHarness[]>;
20
+ }
@@ -0,0 +1,14 @@
1
+ import { SkyHarnessFilters } from '@skyux/core/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of `SkyRepeaterItemHarness` instances.
4
+ */
5
+ export interface SkyRepeaterItemHarnessFilters extends SkyHarnessFilters {
6
+ /**
7
+ * Only find instances whose content matches the given value.
8
+ */
9
+ contentText?: string | RegExp;
10
+ /**
11
+ * Only find instances whose title matches the given value.
12
+ */
13
+ titleText?: string | RegExp;
14
+ }
@@ -0,0 +1,39 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyComponentHarness } from '@skyux/core/testing';
3
+ import { SkyRepeaterItemHarnessFilters } from './repeater-item-harness-filters';
4
+ /**
5
+ * Harness for interacting with a repeater item component in tests.
6
+ */
7
+ export declare class SkyRepeaterItemHarness extends SkyComponentHarness {
8
+ #private;
9
+ static hostSelector: string;
10
+ /**
11
+ * Gets a `HarnessPredicate` that can be used to search for a
12
+ * `SkyRepeaterItemHarness` that meets certain criteria.
13
+ */
14
+ static with(filters: SkyRepeaterItemHarnessFilters): HarnessPredicate<SkyRepeaterItemHarness>;
15
+ /**
16
+ * Whether the repeater item is selectable.
17
+ */
18
+ isSelectable(): Promise<boolean>;
19
+ /**
20
+ * Whether the repeater item is selected.
21
+ */
22
+ isSelected(): Promise<boolean>;
23
+ /**
24
+ * Selects the repeater item.
25
+ */
26
+ select(): Promise<void>;
27
+ /**
28
+ * Deselects the repeater item.
29
+ */
30
+ deselect(): Promise<void>;
31
+ /**
32
+ * Gets the text of the repeater item content.
33
+ */
34
+ getContentText(): Promise<string>;
35
+ /**
36
+ * Gets the text of the repeater item title.
37
+ */
38
+ getTitleText(): Promise<string>;
39
+ }