@skyux/lists 12.0.0-alpha.13 → 12.0.0-alpha.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/lists",
3
- "version": "12.0.0-alpha.13",
3
+ "version": "12.0.0-alpha.15",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -20,16 +20,16 @@
20
20
  "@angular/common": "^19.2.1",
21
21
  "@angular/core": "^19.2.1",
22
22
  "@angular/platform-browser": "^19.2.1",
23
- "@skyux-sdk/testing": "12.0.0-alpha.13",
24
- "@skyux/animations": "12.0.0-alpha.13",
25
- "@skyux/core": "12.0.0-alpha.13",
26
- "@skyux/forms": "12.0.0-alpha.13",
27
- "@skyux/i18n": "12.0.0-alpha.13",
28
- "@skyux/icon": "12.0.0-alpha.13",
29
- "@skyux/indicators": "12.0.0-alpha.13",
30
- "@skyux/inline-form": "12.0.0-alpha.13",
31
- "@skyux/popovers": "12.0.0-alpha.13",
32
- "@skyux/theme": "12.0.0-alpha.13"
23
+ "@skyux-sdk/testing": "12.0.0-alpha.15",
24
+ "@skyux/animations": "12.0.0-alpha.15",
25
+ "@skyux/core": "12.0.0-alpha.15",
26
+ "@skyux/forms": "12.0.0-alpha.15",
27
+ "@skyux/i18n": "12.0.0-alpha.15",
28
+ "@skyux/icon": "12.0.0-alpha.15",
29
+ "@skyux/indicators": "12.0.0-alpha.15",
30
+ "@skyux/inline-form": "12.0.0-alpha.15",
31
+ "@skyux/popovers": "12.0.0-alpha.15",
32
+ "@skyux/theme": "12.0.0-alpha.15"
33
33
  },
34
34
  "dependencies": {
35
35
  "@types/dragula": "2.1.36",
@@ -1,7 +1,6 @@
1
1
  import { SkyHarnessFilters } from '@skyux/core/testing';
2
2
  /**
3
3
  * A set of criteria that can be used to filter a list of `SkyInfiniteScrollHarness` instances.
4
- * @internal
5
4
  */
6
5
  export interface SkyInfiniteScrollHarnessFilters extends SkyHarnessFilters {
7
6
  }
@@ -2,7 +2,6 @@ import { SkyComponentHarness } from '@skyux/core/testing';
2
2
  import { SkyInfiniteScrollHarnessFilters } from './infinite-scroll-harness-filters';
3
3
  /**
4
4
  * Harness for interacting with an infinite scroll component in tests.
5
- * @internal
6
5
  */
7
6
  export declare class SkyInfiniteScrollHarness extends SkyComponentHarness {
8
7
  #private;
@@ -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 `SkySortHarness` instances.
4
+ */
5
+ export interface SkySortHarnessFilters extends SkyHarnessFilters {
6
+ }
@@ -0,0 +1,40 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyComponentHarness } from '@skyux/core/testing';
3
+ import { SkySortHarnessFilters } from './sort-harness-filters';
4
+ import { SkySortItemHarness } from './sort-item-harness';
5
+ import { SkySortItemHarnessFilters } from './sort-item-harness-filters';
6
+ /**
7
+ * Harness for interacting with a sort component in tests.
8
+ */
9
+ export declare class SkySortHarness extends SkyComponentHarness {
10
+ #private;
11
+ /**
12
+ * @internal
13
+ */
14
+ static hostSelector: string;
15
+ /**
16
+ * Gets a `HarnessPredicate` that can be used to search for a
17
+ * `SkySortHarness` that meets certain criteria.
18
+ */
19
+ static with(filters: SkySortHarnessFilters): HarnessPredicate<SkySortHarness>;
20
+ /**
21
+ * Clicks the sort component.
22
+ */
23
+ click(): Promise<void>;
24
+ /**
25
+ * Gets the aria-label value.
26
+ */
27
+ getAriaLabel(): Promise<string | null>;
28
+ /**
29
+ * Gets the text that appears on the sort button.
30
+ */
31
+ getButtonText(): Promise<string>;
32
+ /**
33
+ * Gets a harness for a specific sort item that meets certain criteria.
34
+ */
35
+ getItem(filters: SkySortItemHarnessFilters): Promise<SkySortItemHarness>;
36
+ /**
37
+ * Gets an array of all sort items.
38
+ */
39
+ getItems(filters?: SkySortItemHarnessFilters): Promise<SkySortItemHarness[]>;
40
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseHarnessFilters } from '@angular/cdk/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of `SkySortItemHarness` instances.
4
+ */
5
+ export interface SkySortItemHarnessFilters extends BaseHarnessFilters {
6
+ /**
7
+ * Only find instances whose text content matches the given value.
8
+ */
9
+ text?: string;
10
+ }
@@ -0,0 +1,31 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyDropdownItemHarness } from '@skyux/popovers/testing';
3
+ import { SkySortItemHarnessFilters } from './sort-item-harness-filters';
4
+ /**
5
+ * Harness for interacting with a sort item component in tests.
6
+ */
7
+ export declare class SkySortItemHarness extends SkyDropdownItemHarness {
8
+ /**
9
+ * Gets a `HarnessPredicate` that can be used to search for a
10
+ * `SkySortItemHarness` that meets certain criteria.
11
+ */
12
+ static with(filters: SkySortItemHarnessFilters): HarnessPredicate<SkySortItemHarness>;
13
+ /**
14
+ * Clicks the sort item.
15
+ */
16
+ click(): Promise<void>;
17
+ /**
18
+ * Gets the sort item role.
19
+ * This can't be set on sort items and should not be exposed.
20
+ * @internal
21
+ */
22
+ getAriaRole(): Promise<string | null>;
23
+ /**
24
+ * Gets the sort item text.
25
+ */
26
+ getText(): Promise<string | null>;
27
+ /**
28
+ * Whether the sort item is active.
29
+ */
30
+ isActive(): Promise<boolean>;
31
+ }
@@ -25,6 +25,10 @@ export { SkySortFixture } from './legacy/sort/sort-fixture';
25
25
  export { SkySortFixtureMenu } from './legacy/sort/sort-fixture-menu';
26
26
  export { SkySortFixtureMenuItem } from './legacy/sort/sort-fixture-menu-item';
27
27
  export { SkySortTestingModule } from './legacy/sort/sort-testing.module';
28
+ export { SkySortHarness } from './modules/sort/sort-harness';
29
+ export { SkySortHarnessFilters } from './modules/sort/sort-harness-filters';
30
+ export { SkySortItemHarness } from './modules/sort/sort-item-harness';
31
+ export { SkySortItemHarnessFilters } from './modules/sort/sort-item-harness-filters';
28
32
  export { SkyInfiniteScrollFixture } from './legacy/infinite-scroll/infinite-scroll-fixture';
29
33
  export { SkyInfiniteScrollTestingModule } from './legacy/infinite-scroll/infinite-scroll-testing.module';
30
34
  export { SkyInfiniteScrollHarness } from './modules/infinite-scroll/infinite-scroll-harness';