import * as i0 from '@angular/core'; import * as i1 from '@skyux/lists'; import { ComponentFixture } from '@angular/core/testing'; import { HarnessPredicate, BaseHarnessFilters } from '@angular/cdk/testing'; import { SkyHarnessFilters, SkyComponentHarness, SkyQueryableComponentHarness } from '@skyux/core/testing'; import { SkyKeyInfoHarness } from '@skyux/indicators/testing'; import { SkyInlineFormHarness } from '@skyux/inline-form/testing'; import { SkyDropdownHarnessFilters, SkyDropdownHarness, SkyDropdownItemHarness } from '@skyux/popovers/testing'; /** * @internal */ declare class SkyFilterTestingModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Provides information for and interaction with a SKY UX infinite scroll component. * By using the fixture API, a test insulates itself against updates to the internals * of a component, such as changing its DOM structure. * @deprecated Use `SkyInfiniteScrollHarness` instead. * @internal */ declare class SkyInfiniteScrollFixture { #private; constructor(fixture: ComponentFixture, skyTestId: string); get loadMoreButtonIsVisible(): boolean; clickLoadMoreButton(): Promise; } /** * @internal */ declare class SkyInfiniteScrollTestingModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @internal */ interface SkyPagingFixtureButton { id: string; isActive: boolean; isEnabled: boolean; } /** * Provides information for and interaction with a SKY UX paging component. * By using the fixture API, a test insulates itself against updates to the internals * of a component, such as changing its DOM structure. * @deprecated Use `SkyPagingHarness` instead. * @internal */ declare class SkyPagingFixture { #private; /** * The id of the active page, if available. */ get activePageId(): string; /** * Properties of the page links displayed in the paging component. */ get pageLinks(): SkyPagingFixtureButton[]; constructor(fixture: ComponentFixture, skyTestId: string); /** * Selects the specified page by id, if it is enabled. */ selectPage(id: string | number): Promise; /** * Clicks the next page button, if it is enabled. */ selectNextPage(): Promise; /** * Clicks the previous page button, if it is enabled. */ selectPreviousPage(): Promise; } /** * @internal */ interface SkySortFixtureMenu { buttonText: string; isOpen: boolean; } /** * @internal */ interface SkySortFixtureMenuItem { index: number; isActive: boolean; text?: string; } /** * Provides information for and interaction with a SKY UX sort component. * By using the fixture API, a test insulates itself against updates to the internals * of a component, such as changing its DOM structure. * @deprecated Use `SkySortHarness` instead. * @internal */ declare class SkySortFixture { #private; /** * The active sort menu item, if one exists. Menu items are only available when the menu dropdown * is open. If the menu dropdown is closed, this property will be undefined. */ get activeMenuItem(): SkySortFixtureMenuItem | undefined; /** * The sort menu's properties. */ get menu(): SkySortFixtureMenu; /** * The properties of each sort menu item. Menu items are only available when the menu dropdown * is open. If the menu dropdown is closed, this property will be undefined. */ get menuItems(): SkySortFixtureMenuItem[] | undefined; constructor(fixture: ComponentFixture, skyTestId: string); /** * Closes the sort dropdown menu if it isn't closed already. */ closeMenu(): Promise; /** * Opens the sort dropdown menu if it isn't open already. */ openMenu(): Promise; /** * Ensures the sort menu is open and selects the menu item with the specified index, if it exists. * @param menuItemIndex The index of the menu item to select. */ selectMenuItemByIndex(menuItemIndex: number): Promise; /** * Ensures the sort menu is open and selects the menu item with the specified text, * if a matching item is available. * @param menuItemText The text of the menu item to select. */ selectMenuItemByText(menuItemText: string | undefined): Promise; } /** * A set of criteria that can be used to filter a list of `SkyFilterButtonHarness` instances. */ interface SkyFilterButtonHarnessFilters extends SkyHarnessFilters { } /** * Harness for interacting with a filter button component in tests. */ declare class SkyFilterButtonHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyFilterButtonHarness` that meets certain criteria. */ static with(filters: SkyFilterButtonHarnessFilters): HarnessPredicate; /** * Clicks the filter button. */ clickFilterButton(): Promise; /** * Gets the filter button's aria-controls attribute. */ getAriaControls(): Promise; /** * Gets the filter button's aria-expanded attribute. */ getAriaExpanded(): Promise; /** * Gets the filter button's aria-label. */ getAriaLabel(): Promise; /** * Gets the filter button's id. */ getButtonId(): Promise; /** * Gets the text that appears on the filter button. */ getButtonText(): Promise; /** * Whether the filter button is active. */ isActive(): Promise; /** * Whether the filter button is disabled. */ isDisabled(): Promise; } /** * A set of criteria that can be used to filter a list of `SkyFilterInlineHarness` instances. */ interface SkyFilterInlineHarnessFilters extends SkyHarnessFilters { } /** * A set of criteria that can be used to filter a list of `SkyFilterInlineItemHarness` instances. */ interface SkyFilterInlineItemHarnessFilters extends SkyHarnessFilters { } /** * Harness to interact with a filter inline item component in tests. */ declare class SkyFilterInlineItemHarness extends SkyQueryableComponentHarness { /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyFilterInlineItemHarness` that meets certain criteria. */ static with(filters: SkyFilterInlineItemHarnessFilters): HarnessPredicate; } /** * Harness to interact with a filter inline component in tests. */ declare class SkyFilterInlineHarness extends SkyComponentHarness { /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyFilterInlineHarness` that meets certain criteria. */ static with(filters: SkyFilterInlineHarnessFilters): HarnessPredicate; /** * Gets a specific filter inline item based on the filter criteria. * @param filter The filter criteria. */ getItem(filter: SkyFilterInlineItemHarnessFilters): Promise; /** * Gets an array of filter inline items based on the filter criteria. * If no filter is provided, returns all filter inline items. * @param filters The optional filter criteria. */ getItems(filters?: SkyFilterInlineItemHarnessFilters): Promise; } /** * A set of criteria that can be used to filter a list of `SkyFilterSummaryHarness` instances. * @deprecated Use [filter bar](https://developer.blackbaud.com/skyux/components/filter-bar) instead. */ interface SkyFilterSummaryHarnessFilters extends SkyHarnessFilters { } /** * A set of criteria that can be used to filter a list of `SkyFilterSummaryItemHarness` instances. * @deprecated Use [filter bar](https://developer.blackbaud.com/skyux/components/filter-bar) instead. */ interface SkyFilterSummaryItemHarnessFilters extends SkyHarnessFilters { } /** * Harness to interact with a filter summary item component in tests. * @deprecated Use [filter bar](https://developer.blackbaud.com/skyux/components/filter-bar) instead. */ declare class SkyFilterSummaryItemHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyFilterSummaryItemHarness` that meets certain criteria. */ static with(filters: SkyFilterSummaryItemHarnessFilters): HarnessPredicate; /** * Clicks the filter summary item. */ clickItem(): Promise; /** * Dismisses the filter summary item. */ dismiss(): Promise; /** * Whether the filter summary item is dismissible. */ isDismissible(): Promise; } /** * Harness to interact with a filter summary component in tests. * @deprecated Use [filter bar](https://developer.blackbaud.com/skyux/components/filter-bar) instead. */ declare class SkyFilterSummaryHarness extends SkyComponentHarness { /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyFilterSummaryHarness` that meets certain criteria. */ static with(filters: SkyFilterSummaryHarnessFilters): HarnessPredicate; /** * Gets a specific filter summary item based on the filter criteria. * @param filter The filter criteria. */ getItem(filter: SkyFilterSummaryItemHarnessFilters): Promise; /** * Gets an array of filter summary items based on the filter criteria. * If no filter is provided, returns all filter summary items. * @param filters The optional filter criteria. */ getItems(filters?: SkyFilterSummaryItemHarnessFilters): Promise; } /** * A set of criteria that can be used to filter a list of `SkyInfiniteScrollHarness` instances. */ interface SkyInfiniteScrollHarnessFilters extends SkyHarnessFilters { } /** * Harness for interacting with an infinite scroll component in tests. */ declare class SkyInfiniteScrollHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyInfiniteScrollHarness` that meets certain criteria. */ static with(filters: SkyInfiniteScrollHarnessFilters): HarnessPredicate; /** * Whether the infinite scroll is enabled. */ isEnabled(): Promise; /** * Whether the infinite scroll is loading. */ isLoading(): Promise; /** * Clicks the "Load more" button. */ loadMore(): Promise; } /** * A set of criteria that can be used to filter a list of SkyListSummaryHarness instances. */ interface SkyListSummaryHarnessFilters extends SkyHarnessFilters { } /** * A set of criteria that can be used to filter a list of SkyListSummaryItemHarness instances. */ interface SkyListSummaryItemHarnessFilters extends SkyHarnessFilters { /** * Only find instances whose label text matches the given value. */ labelText?: string | RegExp; /** * Only find instances whose value text matches the given value. */ valueText?: string | RegExp; } /** * Harness for interacting with a list summary item component in tests. */ declare class SkyListSummaryItemHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyListSummaryItemHarness` that meets certain criteria. */ static with(filters: SkyListSummaryItemHarnessFilters): HarnessPredicate; /** * Gets the current value text. */ getValueText(): Promise; /** * Gets the current label text. */ getLabelText(): Promise; /** * Gets the key info harness for advanced interactions. */ getKeyInfo(): Promise; /** * Clicks the help inline button to show the help popover. */ clickHelpInline(): Promise; /** * Gets the help popover content text. */ getHelpPopoverContent(): Promise; /** * Gets the help popover title text. */ getHelpPopoverTitle(): Promise; } /** * Harness for interacting with a list summary component in tests. */ declare class SkyListSummaryHarness extends SkyQueryableComponentHarness { /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyListSummaryHarness` that meets certain criteria. */ static with(filters: SkyListSummaryHarnessFilters): HarnessPredicate; /** * Gets a specific list summary item based on the filter criteria. * @param filter The filter criteria. */ getSummaryItem(filter: SkyListSummaryItemHarnessFilters): Promise; /** * Gets an array of list summary items based on the filter criteria. * If no filter is provided, returns all summary items. * @param filters The optional filter criteria. */ getSummaryItems(filters?: SkyListSummaryItemHarnessFilters): Promise; } /** * Harness to interact with a paging content component in tests. */ declare class SkyPagingContentHarness extends SkyQueryableComponentHarness { /** * @internal */ static hostSelector: string; } /** * A set of criteria that can be used to filter a list of `SkyPagingHarness` instances. */ interface SkyPagingHarnessFilters extends SkyHarnessFilters { } /** * Harness for interacting with a paging component in tests. */ declare class SkyPagingHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyPagingHarness` that meets certain criteria. */ static with(filters: SkyPagingHarnessFilters): HarnessPredicate; /** * Clicks the next button. */ clickNextButton(): Promise; /** * Clicks the page button with the requested number. Throws an error if that button is not present. */ clickPageButton(pageNumber: number): Promise; /** * Clicks the previous button. */ clickPreviousButton(): Promise; /** * Gets the current page number. */ getCurrentPage(): Promise; /** * Gets the paging content. */ getPagingContent(): Promise; getPagingLabel(): Promise; } /** * A set of criteria that can be used to filter a list of `SkyRepeaterHarness` instances. */ interface SkyRepeaterHarnessFilters extends SkyHarnessFilters { } /** * A set of criteria that can be used to filter a list of `SkyRepeaterItemHarness` instances. */ interface SkyRepeaterItemHarnessFilters extends SkyHarnessFilters { /** * Only find instances whose content matches the given value. */ contentText?: string | RegExp; /** * Only find instances whose title matches the given value. */ titleText?: string | RegExp; } /** * Harness for interacting with a repeater item component in tests. */ declare class SkyRepeaterItemHarness extends SkyQueryableComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyRepeaterItemHarness` that meets certain criteria. */ static with(filters: SkyRepeaterItemHarnessFilters): HarnessPredicate; /** * Clicks on the repeater item. */ click(): Promise; /** * Collapses the repeater item, or does nothing if already collapsed. */ collapse(): Promise; /** * Deselects the repeater item. */ deselect(): Promise; /** * Expands the repeater item, or does nothing if already expanded. */ expand(): Promise; /** * Gets a harness for the dropdown inside the context menu. */ getContextMenuDropdown(filters?: SkyDropdownHarnessFilters): Promise; /** * Gets the text of the repeater item content. */ getContentText(): Promise; /** * Gets the inline form harness. */ getInlineForm(): Promise; /** * Gets the item name. */ getItemName(): Promise; /** * Gets the text of the repeater item title. */ getTitleText(): Promise; /** * Whether the repeater item is collapsible. */ isCollapsible(): Promise; /** * Whether a selectable repeater item is disabled. */ isDisabled(): Promise; /** * Whether the repeater item is expanded, or throws an error informing of the lack of collapsibility. */ isExpanded(): Promise; /** * Whether the repeater item is reorderable. */ isReorderable(): Promise; /** * Whether a repeater item has selection enabled. */ isSelectable(): Promise; /** * Whether a selectable repeater item is selected. Throws an error if the item is not selectable. */ isSelected(): Promise; /** * Selects the repeater item. */ select(): Promise; /** * Moves the repeater item to the top of the list */ sendToTop(): Promise; } /** * Harness for interacting with a repeater component in tests. */ declare class SkyRepeaterHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyRepeaterHarness` that meets certain criteria. */ static with(filters: SkyRepeaterHarnessFilters): HarnessPredicate; /** * Gets a specific repeater item based on the filter criteria. * @param filter The filter criteria. */ getRepeaterItem(filter: SkyRepeaterItemHarnessFilters): Promise; /** * Gets an array of repeater items based on the filter criteria. * If no filter is provided, returns all repeater items. * @param filters The optional filter criteria. */ getRepeaterItems(filters?: SkyRepeaterItemHarnessFilters): Promise; /** * Gets the aria-label for the repeater list */ getAriaLabel(): Promise; } /** * Harness to query inside a repeater item context menu component in tests. * @internal */ declare class SkyRepeaterItemContextMenuHarness extends SkyQueryableComponentHarness { /** * @internal */ static hostSelector: string; } /** * A set of criteria that can be used to filter a list of `SkySortHarness` instances. */ interface SkySortHarnessFilters extends SkyHarnessFilters { } /** * A set of criteria that can be used to filter a list of `SkySortItemHarness` instances. */ interface SkySortItemHarnessFilters extends BaseHarnessFilters { /** * Only find instances whose text content matches the given value. */ text?: string; } /** * Harness for interacting with a sort item component in tests. */ declare class SkySortItemHarness extends SkyDropdownItemHarness { /** * Gets a `HarnessPredicate` that can be used to search for a * `SkySortItemHarness` that meets certain criteria. */ static with(filters: SkySortItemHarnessFilters): HarnessPredicate; /** * Clicks the sort item. */ click(): Promise; /** * Gets the sort item role. * This can't be set on sort items and should not be exposed. * @internal */ getAriaRole(): Promise; /** * Gets the sort item text. */ getText(): Promise; /** * Whether the sort item is active. */ isActive(): Promise; } /** * Harness for interacting with a sort component in tests. */ declare class SkySortHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkySortHarness` that meets certain criteria. */ static with(filters: SkySortHarnessFilters): HarnessPredicate; /** * Clicks the sort component. */ click(): Promise; /** * Gets the aria-label value. */ getAriaLabel(): Promise; /** * Gets the text that appears on the sort button. */ getButtonText(): Promise; /** * Gets a specific sort item based on the filter criteria. * @param filters The filter criteria. */ getItem(filters: SkySortItemHarnessFilters): Promise; /** * Gets an array of sort items based on the filter criteria. * If no filter is provided, returns all sort items. * @param filters The optional filter criteria. */ getItems(filters?: SkySortItemHarnessFilters): Promise; } export { SkyFilterButtonHarness, SkyFilterInlineHarness, SkyFilterInlineItemHarness, SkyFilterSummaryHarness, SkyFilterSummaryItemHarness, SkyFilterTestingModule, SkyInfiniteScrollFixture, SkyInfiniteScrollHarness, SkyInfiniteScrollTestingModule, SkyListSummaryHarness, SkyListSummaryItemHarness, SkyPagingContentHarness, SkyPagingFixture, SkyPagingHarness, SkyRepeaterHarness, SkyRepeaterItemContextMenuHarness, SkyRepeaterItemHarness, SkySortFixture, SkySortHarness, SkySortItemHarness }; export type { SkyFilterButtonHarnessFilters, SkyFilterInlineHarnessFilters, SkyFilterInlineItemHarnessFilters, SkyFilterSummaryHarnessFilters, SkyFilterSummaryItemHarnessFilters, SkyInfiniteScrollHarnessFilters, SkyListSummaryHarnessFilters, SkyListSummaryItemHarnessFilters, SkyPagingFixtureButton, SkyPagingHarnessFilters, SkyRepeaterHarnessFilters, SkyRepeaterItemHarnessFilters, SkySortFixtureMenu, SkySortFixtureMenuItem, SkySortHarnessFilters, SkySortItemHarnessFilters };