@skyux/filter-bar 12.40.0 → 13.0.0-alpha.12
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-filter-bar-testing.mjs.map +1 -1
- package/fesm2022/skyux-filter-bar.mjs +24 -26
- package/fesm2022/skyux-filter-bar.mjs.map +1 -1
- package/index.d.ts +207 -11
- package/package.json +10 -10
- package/testing/index.d.ts +95 -3
- package/lib/modules/filter-bar/filter-bar.component.d.ts +0 -24
- package/lib/modules/filter-bar/filter-bar.module.d.ts +0 -8
- package/lib/modules/filter-bar/filter-bar.service.d.ts +0 -28
- package/lib/modules/filter-bar/filter-item-modal.component.d.ts +0 -45
- package/lib/modules/filter-bar/filter-item.token.d.ts +0 -7
- package/lib/modules/filter-bar/models/filter-bar-filter-item.d.ts +0 -14
- package/lib/modules/filter-bar/models/filter-bar-filter-value.d.ts +0 -13
- package/lib/modules/filter-bar/models/filter-bar-item.d.ts +0 -19
- package/lib/modules/filter-bar/models/filter-item-modal-context.d.ts +0 -24
- package/lib/modules/filter-bar/models/filter-item-modal-instance.d.ts +0 -20
- package/lib/modules/filter-bar/models/filter-item-modal-opened-args.d.ts +0 -14
- package/lib/modules/filter-bar/models/filter-item-modal-saved-args.d.ts +0 -10
- package/lib/modules/filter-bar/models/filter-item-modal-size.d.ts +0 -1
- package/lib/modules/filter-bar/models/filter-item-modal.d.ts +0 -10
- package/lib/modules/filter-bar/models/filter-item.d.ts +0 -26
- package/lib/modules/shared/sky-filter-bar-resources.module.d.ts +0 -10
- package/testing/modules/filter-bar/filter-bar-harness-filters.d.ts +0 -6
- package/testing/modules/filter-bar/filter-bar-harness.d.ts +0 -48
- package/testing/modules/filter-bar/filter-item-harness-filters.d.ts +0 -14
- package/testing/modules/filter-bar/filter-item-harness.d.ts +0 -30
- package/testing/public-api.d.ts +0 -4
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
-
import { SkySelectionModalHarness } from '@skyux/lookup/testing';
|
|
4
|
-
import { SkyFilterBarHarnessFilters } from './filter-bar-harness-filters';
|
|
5
|
-
import { SkyFilterItemHarness } from './filter-item-harness';
|
|
6
|
-
import { SkyFilterItemHarnessFilters } from './filter-item-harness-filters';
|
|
7
|
-
/**
|
|
8
|
-
* Harness for interacting with a filter bar component in tests.
|
|
9
|
-
*/
|
|
10
|
-
export declare class SkyFilterBarHarness 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
|
-
* `SkyFilterBarHarness` that meets certain criteria.
|
|
19
|
-
*/
|
|
20
|
-
static with(filters: SkyFilterBarHarnessFilters): HarnessPredicate<SkyFilterBarHarness>;
|
|
21
|
-
/**
|
|
22
|
-
* Clicks the clear filters button.
|
|
23
|
-
*/
|
|
24
|
-
clickClearFilters(): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Gets a specific filter item based on the filter criteria.
|
|
27
|
-
* @param filter The filter criteria.
|
|
28
|
-
*/
|
|
29
|
-
getItem(filter: SkyFilterItemHarnessFilters): Promise<SkyFilterItemHarness>;
|
|
30
|
-
/**
|
|
31
|
-
* Gets an array of filter items based on the filter criteria.
|
|
32
|
-
* If no filter is provided, returns all filter items.
|
|
33
|
-
* @param filters The optional filter criteria.
|
|
34
|
-
*/
|
|
35
|
-
getItems(filters?: SkyFilterItemHarnessFilters): Promise<SkyFilterItemHarness[]>;
|
|
36
|
-
/**
|
|
37
|
-
* Checks if the filter bar has active filters.
|
|
38
|
-
*/
|
|
39
|
-
hasActiveFilters(): Promise<boolean>;
|
|
40
|
-
/**
|
|
41
|
-
* Checks if the filter picker button is visible.
|
|
42
|
-
*/
|
|
43
|
-
hasFilterPicker(): Promise<boolean>;
|
|
44
|
-
/**
|
|
45
|
-
* Clicks the filter picker button and returns a harness for the selection modal that it opened.
|
|
46
|
-
*/
|
|
47
|
-
openFilterPicker(): Promise<SkySelectionModalHarness>;
|
|
48
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
/**
|
|
3
|
-
* A set of criteria that can be used to filter a list of `SkyFilterItemHarness` instances.
|
|
4
|
-
*/
|
|
5
|
-
export interface SkyFilterItemHarnessFilters extends BaseHarnessFilters {
|
|
6
|
-
/**
|
|
7
|
-
* Finds a filter item whose filter id matches the given value.
|
|
8
|
-
*/
|
|
9
|
-
filterId?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Finds a filter item whose label text matches the given value.
|
|
12
|
-
*/
|
|
13
|
-
labelText?: string;
|
|
14
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
-
import { SkyFilterItemHarnessFilters } from './filter-item-harness-filters';
|
|
4
|
-
/**
|
|
5
|
-
* Harness to interact with a filter item component in tests.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkyFilterItemHarness extends SkyComponentHarness {
|
|
8
|
-
#private;
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
static hostSelector: string;
|
|
13
|
-
/**
|
|
14
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
15
|
-
* `SkyFilterBarItemHarness` that meets certain criteria.
|
|
16
|
-
*/
|
|
17
|
-
static with(filters: SkyFilterItemHarnessFilters): HarnessPredicate<SkyFilterItemHarness>;
|
|
18
|
-
/**
|
|
19
|
-
* Clicks the filter item to open its modal.
|
|
20
|
-
*/
|
|
21
|
-
click(): Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Gets the filter item value.
|
|
24
|
-
*/
|
|
25
|
-
getFilterValue(): Promise<string | undefined>;
|
|
26
|
-
/**
|
|
27
|
-
* Gets the filter item label.
|
|
28
|
-
*/
|
|
29
|
-
getLabelText(): Promise<string>;
|
|
30
|
-
}
|
package/testing/public-api.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { SkyFilterBarHarness } from './modules/filter-bar/filter-bar-harness';
|
|
2
|
-
export { SkyFilterBarHarnessFilters } from './modules/filter-bar/filter-bar-harness-filters';
|
|
3
|
-
export { SkyFilterItemHarness } from './modules/filter-bar/filter-item-harness';
|
|
4
|
-
export { SkyFilterItemHarnessFilters } from './modules/filter-bar/filter-item-harness-filters';
|