@skyux/lists 12.27.0 → 13.0.0-alpha.1
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-lists-testing.mjs +16 -16
- package/fesm2022/skyux-lists-testing.mjs.map +1 -1
- package/fesm2022/skyux-lists.mjs +88 -88
- package/fesm2022/skyux-lists.mjs.map +1 -1
- package/index.d.ts +627 -22
- package/package.json +15 -15
- package/testing/index.d.ts +640 -3
- package/lib/modules/filter/filter-button.component.d.ts +0 -59
- package/lib/modules/filter/filter-inline-item.component.d.ts +0 -8
- package/lib/modules/filter/filter-inline.component.d.ts +0 -8
- package/lib/modules/filter/filter-summary-item.component.d.ts +0 -27
- package/lib/modules/filter/filter-summary.component.d.ts +0 -8
- package/lib/modules/filter/filter.module.d.ts +0 -16
- package/lib/modules/infinite-scroll/infinite-scroll-dom-adapter.service.d.ts +0 -26
- package/lib/modules/infinite-scroll/infinite-scroll.component.d.ts +0 -37
- package/lib/modules/infinite-scroll/infinite-scroll.module.d.ts +0 -9
- package/lib/modules/paging/paging-content.component.d.ts +0 -5
- package/lib/modules/paging/paging.component.d.ts +0 -55
- package/lib/modules/paging/paging.module.d.ts +0 -13
- package/lib/modules/paging/types/paging-content-change-args.d.ts +0 -13
- package/lib/modules/repeater/repeater-adapter.service.d.ts +0 -17
- package/lib/modules/repeater/repeater-auto-scroll-options.d.ts +0 -9
- package/lib/modules/repeater/repeater-auto-scroll.service.d.ts +0 -11
- package/lib/modules/repeater/repeater-auto-scroller.d.ts +0 -6
- package/lib/modules/repeater/repeater-expand-mode-type.d.ts +0 -1
- package/lib/modules/repeater/repeater-item-content.component.d.ts +0 -8
- package/lib/modules/repeater/repeater-item-context-menu.component.d.ts +0 -9
- package/lib/modules/repeater/repeater-item-roles.type.d.ts +0 -5
- package/lib/modules/repeater/repeater-item-title.component.d.ts +0 -8
- package/lib/modules/repeater/repeater-item.component.d.ts +0 -134
- package/lib/modules/repeater/repeater-role.type.d.ts +0 -1
- package/lib/modules/repeater/repeater.component.d.ts +0 -74
- package/lib/modules/repeater/repeater.module.d.ts +0 -20
- package/lib/modules/repeater/repeater.service.d.ts +0 -32
- package/lib/modules/shared/sky-lists-resources.module.d.ts +0 -10
- package/lib/modules/sort/sort-item.component.d.ts +0 -24
- package/lib/modules/sort/sort-menu-heading.component.d.ts +0 -5
- package/lib/modules/sort/sort.component.d.ts +0 -29
- package/lib/modules/sort/sort.module.d.ts +0 -15
- package/lib/modules/sort/sort.service.d.ts +0 -11
- package/testing/legacy/filter/filter-fixture-button.d.ts +0 -21
- package/testing/legacy/filter/filter-fixture-summary.d.ts +0 -12
- package/testing/legacy/filter/filter-testing.module.d.ts +0 -10
- package/testing/legacy/filter/lists-filter-fixture-button.d.ts +0 -6
- package/testing/legacy/infinite-scroll/infinite-scroll-fixture.d.ts +0 -14
- package/testing/legacy/infinite-scroll/infinite-scroll-testing.module.d.ts +0 -10
- package/testing/legacy/paging/paging-fixture-button.d.ts +0 -8
- package/testing/legacy/paging/paging-fixture.d.ts +0 -32
- package/testing/legacy/paging/paging-testing.module.d.ts +0 -10
- package/testing/legacy/sort/sort-fixture-menu-item.d.ts +0 -8
- package/testing/legacy/sort/sort-fixture-menu.d.ts +0 -7
- package/testing/legacy/sort/sort-fixture.d.ts +0 -46
- package/testing/legacy/sort/sort-testing.module.d.ts +0 -11
- package/testing/modules/filter/filter-button-harness-filters.d.ts +0 -6
- package/testing/modules/filter/filter-button-harness.d.ts +0 -50
- package/testing/modules/filter/filter-inline-harness-filters.d.ts +0 -6
- package/testing/modules/filter/filter-inline-harness.d.ts +0 -27
- package/testing/modules/filter/filter-inline-item-harness-filters.d.ts +0 -6
- package/testing/modules/filter/filter-inline-item-harness.d.ts +0 -17
- package/testing/modules/filter/filter-summary-harness-filters.d.ts +0 -6
- package/testing/modules/filter/filter-summary-harness.d.ts +0 -27
- package/testing/modules/filter/filter-summary-item-harness-filters.d.ts +0 -6
- package/testing/modules/filter/filter-summary-item-harness.d.ts +0 -30
- package/testing/modules/infinite-scroll/infinite-scroll-harness-filters.d.ts +0 -6
- package/testing/modules/infinite-scroll/infinite-scroll-harness.d.ts +0 -30
- package/testing/modules/paging/page-control-harness-filters.d.ts +0 -11
- package/testing/modules/paging/page-control-harness.d.ts +0 -22
- package/testing/modules/paging/paging-content-harness.d.ts +0 -10
- package/testing/modules/paging/paging-harness-filters.d.ts +0 -6
- package/testing/modules/paging/paging-harness.d.ts +0 -40
- package/testing/modules/repeater/repeater-harness-filters.d.ts +0 -6
- package/testing/modules/repeater/repeater-harness.d.ts +0 -23
- package/testing/modules/repeater/repeater-item-harness-filters.d.ts +0 -14
- package/testing/modules/repeater/repeater-item-harness.d.ts +0 -70
- package/testing/modules/sort/sort-harness-filters.d.ts +0 -6
- package/testing/modules/sort/sort-harness.d.ts +0 -40
- package/testing/modules/sort/sort-item-harness-filters.d.ts +0 -10
- package/testing/modules/sort/sort-item-harness.d.ts +0 -31
- package/testing/public-api.d.ts +0 -35
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/lists",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0-alpha.1",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
},
|
|
17
17
|
"homepage": "https://github.com/blackbaud/skyux#readme",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/cdk": "^
|
|
20
|
-
"@angular/common": "^
|
|
21
|
-
"@angular/core": "^
|
|
22
|
-
"@angular/platform-browser": "^
|
|
23
|
-
"@skyux-sdk/testing": "
|
|
24
|
-
"@skyux/animations": "
|
|
25
|
-
"@skyux/core": "
|
|
26
|
-
"@skyux/forms": "
|
|
27
|
-
"@skyux/i18n": "
|
|
28
|
-
"@skyux/icon": "
|
|
29
|
-
"@skyux/indicators": "
|
|
30
|
-
"@skyux/inline-form": "
|
|
31
|
-
"@skyux/popovers": "
|
|
32
|
-
"@skyux/theme": "
|
|
19
|
+
"@angular/cdk": "^20.0.4",
|
|
20
|
+
"@angular/common": "^20.0.5",
|
|
21
|
+
"@angular/core": "^20.0.5",
|
|
22
|
+
"@angular/platform-browser": "^20.0.5",
|
|
23
|
+
"@skyux-sdk/testing": "13.0.0-alpha.1",
|
|
24
|
+
"@skyux/animations": "13.0.0-alpha.1",
|
|
25
|
+
"@skyux/core": "13.0.0-alpha.1",
|
|
26
|
+
"@skyux/forms": "13.0.0-alpha.1",
|
|
27
|
+
"@skyux/i18n": "13.0.0-alpha.1",
|
|
28
|
+
"@skyux/icon": "13.0.0-alpha.1",
|
|
29
|
+
"@skyux/indicators": "13.0.0-alpha.1",
|
|
30
|
+
"@skyux/inline-form": "13.0.0-alpha.1",
|
|
31
|
+
"@skyux/popovers": "13.0.0-alpha.1",
|
|
32
|
+
"@skyux/theme": "13.0.0-alpha.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@types/dragula": "2.1.36",
|
package/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,642 @@
|
|
|
1
|
+
import { ComponentFixture } from '@angular/core/testing';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import * as i1 from '@skyux/lists';
|
|
4
|
+
import { HarnessPredicate, BaseHarnessFilters } from '@angular/cdk/testing';
|
|
5
|
+
import { SkyHarnessFilters, SkyComponentHarness, SkyQueryableComponentHarness } from '@skyux/core/testing';
|
|
6
|
+
import * as i1$1 from '@angular/platform-browser/animations';
|
|
7
|
+
import { SkyDropdownItemHarness } from '@skyux/popovers/testing';
|
|
8
|
+
|
|
9
|
+
type SkyListsFilterFixtureButton = {
|
|
10
|
+
ariaControls: string | undefined;
|
|
11
|
+
ariaExpanded: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
id: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
|
-
*
|
|
17
|
+
* Provides information for and interaction with a SKY UX filter button component.
|
|
18
|
+
* By using the fixture API, a test insulates itself against updates to the internals
|
|
19
|
+
* of a component, such as changing its DOM structure.
|
|
20
|
+
* @internal
|
|
3
21
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
22
|
+
declare class SkyFilterFixtureButton {
|
|
23
|
+
#private;
|
|
24
|
+
constructor(fixture: ComponentFixture<unknown>, skyTestId: string);
|
|
25
|
+
/**
|
|
26
|
+
* Click the button to apply the filter.
|
|
27
|
+
*/
|
|
28
|
+
clickFilterButton(): Promise<void>;
|
|
29
|
+
get button(): SkyListsFilterFixtureButton;
|
|
30
|
+
/**
|
|
31
|
+
* Get the button text.
|
|
32
|
+
*/
|
|
33
|
+
get buttonText(): string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Provides information for and interaction with a SKY UX filter summary component.
|
|
38
|
+
* By using the fixture API, a test insulates itself against updates to the internals
|
|
39
|
+
* of a component, such as changing its DOM structure.
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
declare class SkyFilterFixtureSummary {
|
|
43
|
+
#private;
|
|
44
|
+
constructor(fixture: ComponentFixture<unknown>, skyTestId: string);
|
|
45
|
+
filterCloseClick(index: number): Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
declare class SkyFilterTestingModule {
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFilterTestingModule, never>;
|
|
53
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFilterTestingModule, never, never, [typeof i1.SkyFilterModule]>;
|
|
54
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SkyFilterTestingModule>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* A set of criteria that can be used to filter a list of `SkyFilterButtonHarness` instances.
|
|
59
|
+
*/
|
|
60
|
+
interface SkyFilterButtonHarnessFilters extends SkyHarnessFilters {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Harness for interacting with a filter button component in tests.
|
|
65
|
+
*/
|
|
66
|
+
declare class SkyFilterButtonHarness extends SkyComponentHarness {
|
|
67
|
+
#private;
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
static hostSelector: string;
|
|
72
|
+
/**
|
|
73
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
74
|
+
* `SkyFilterButtonHarness` that meets certain criteria.
|
|
75
|
+
*/
|
|
76
|
+
static with(filters: SkyFilterButtonHarnessFilters): HarnessPredicate<SkyFilterButtonHarness>;
|
|
77
|
+
/**
|
|
78
|
+
* Clicks the filter button.
|
|
79
|
+
*/
|
|
80
|
+
clickFilterButton(): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Gets the filter button's aria-controls attribute.
|
|
83
|
+
*/
|
|
84
|
+
getAriaControls(): Promise<string | null>;
|
|
85
|
+
/**
|
|
86
|
+
* Gets the filter button's aria-expanded attribute.
|
|
87
|
+
*/
|
|
88
|
+
getAriaExpanded(): Promise<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* Gets the filter button's aria-label.
|
|
91
|
+
*/
|
|
92
|
+
getAriaLabel(): Promise<string | null>;
|
|
93
|
+
/**
|
|
94
|
+
* Gets the filter button's id.
|
|
95
|
+
*/
|
|
96
|
+
getButtonId(): Promise<string | null>;
|
|
97
|
+
/**
|
|
98
|
+
* Gets the text that appears on the filter button.
|
|
99
|
+
*/
|
|
100
|
+
getButtonText(): Promise<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Whether the filter button is active.
|
|
103
|
+
*/
|
|
104
|
+
isActive(): Promise<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* Whether the filter button is disabled.
|
|
107
|
+
*/
|
|
108
|
+
isDisabled(): Promise<boolean>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* A set of criteria that can be used to filter a list of `SkyFilterInlineHarness` instances.
|
|
113
|
+
*/
|
|
114
|
+
interface SkyFilterInlineHarnessFilters extends SkyHarnessFilters {
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* A set of criteria that can be used to filter a list of `SkyFilterInlineItemHarness` instances.
|
|
119
|
+
*/
|
|
120
|
+
interface SkyFilterInlineItemHarnessFilters extends SkyHarnessFilters {
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Harness to interact with a filter inline item component in tests.
|
|
125
|
+
*/
|
|
126
|
+
declare class SkyFilterInlineItemHarness extends SkyQueryableComponentHarness {
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
130
|
+
static hostSelector: string;
|
|
131
|
+
/**
|
|
132
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
133
|
+
* `SkyFilterInlineItemHarness` that meets certain criteria.
|
|
134
|
+
*/
|
|
135
|
+
static with(filters: SkyFilterInlineItemHarnessFilters): HarnessPredicate<SkyFilterInlineItemHarness>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Harness to interact with a filter inline component in tests.
|
|
140
|
+
*/
|
|
141
|
+
declare class SkyFilterInlineHarness extends SkyComponentHarness {
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
static hostSelector: string;
|
|
146
|
+
/**
|
|
147
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
148
|
+
* `SkyFilterInlineHarness` that meets certain criteria.
|
|
149
|
+
*/
|
|
150
|
+
static with(filters: SkyFilterInlineHarnessFilters): HarnessPredicate<SkyFilterInlineHarness>;
|
|
151
|
+
/**
|
|
152
|
+
* Gets a harness for a specific toolbar item that meets certain criteria.
|
|
153
|
+
*/
|
|
154
|
+
getItem(filter: SkyFilterInlineItemHarnessFilters): Promise<SkyFilterInlineItemHarness>;
|
|
155
|
+
/**
|
|
156
|
+
* Gets an array of all toolbar items.
|
|
157
|
+
*/
|
|
158
|
+
getItems(filters?: SkyFilterInlineItemHarnessFilters): Promise<SkyFilterInlineItemHarness[]>;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* A set of criteria that can be used to filter a list of `SkyFilterSummaryHarness` instances.
|
|
163
|
+
*/
|
|
164
|
+
interface SkyFilterSummaryHarnessFilters extends SkyHarnessFilters {
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* A set of criteria that can be used to filter a list of `SkyFilterSummaryItemHarness` instances.
|
|
169
|
+
*/
|
|
170
|
+
interface SkyFilterSummaryItemHarnessFilters extends SkyHarnessFilters {
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Harness to interact with a filter summary item component in tests.
|
|
175
|
+
*/
|
|
176
|
+
declare class SkyFilterSummaryItemHarness extends SkyComponentHarness {
|
|
177
|
+
#private;
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
*/
|
|
181
|
+
static hostSelector: string;
|
|
182
|
+
/**
|
|
183
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
184
|
+
* `SkyFilterSummaryItemHarness` that meets certain criteria.
|
|
185
|
+
*/
|
|
186
|
+
static with(filters: SkyFilterSummaryItemHarnessFilters): HarnessPredicate<SkyFilterSummaryItemHarness>;
|
|
187
|
+
/**
|
|
188
|
+
* Clicks the filter summary item.
|
|
189
|
+
*/
|
|
190
|
+
clickItem(): Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* Dismisses the filter summary item.
|
|
193
|
+
*/
|
|
194
|
+
dismiss(): Promise<void>;
|
|
195
|
+
/**
|
|
196
|
+
* Whether the filter summary item is dismissible.
|
|
197
|
+
*/
|
|
198
|
+
isDismissible(): Promise<boolean>;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Harness to interact with a filter summary component in tests.
|
|
203
|
+
*/
|
|
204
|
+
declare class SkyFilterSummaryHarness extends SkyComponentHarness {
|
|
205
|
+
/**
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
static hostSelector: string;
|
|
209
|
+
/**
|
|
210
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
211
|
+
* `SkyFilterSummaryHarness` that meets certain criteria.
|
|
212
|
+
*/
|
|
213
|
+
static with(filters: SkyFilterSummaryHarnessFilters): HarnessPredicate<SkyFilterSummaryHarness>;
|
|
214
|
+
/**
|
|
215
|
+
* Gets a harness for a specific toolbar item that meets certain criteria.
|
|
216
|
+
*/
|
|
217
|
+
getItem(filter: SkyFilterSummaryItemHarnessFilters): Promise<SkyFilterSummaryItemHarness>;
|
|
218
|
+
/**
|
|
219
|
+
* Gets an array of all toolbar items.
|
|
220
|
+
*/
|
|
221
|
+
getItems(filters?: SkyFilterSummaryItemHarnessFilters): Promise<SkyFilterSummaryItemHarness[]>;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @internal
|
|
226
|
+
*/
|
|
227
|
+
interface SkyPagingFixtureButton {
|
|
228
|
+
id: string;
|
|
229
|
+
isActive: boolean;
|
|
230
|
+
isEnabled: boolean;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Provides information for and interaction with a SKY UX paging component.
|
|
235
|
+
* By using the fixture API, a test insulates itself against updates to the internals
|
|
236
|
+
* of a component, such as changing its DOM structure.
|
|
237
|
+
* @internal
|
|
238
|
+
*/
|
|
239
|
+
declare class SkyPagingFixture {
|
|
240
|
+
#private;
|
|
241
|
+
/**
|
|
242
|
+
* The id of the active page, if available.
|
|
243
|
+
*/
|
|
244
|
+
get activePageId(): string;
|
|
245
|
+
/**
|
|
246
|
+
* Properties of the page links displayed in the paging component.
|
|
247
|
+
*/
|
|
248
|
+
get pageLinks(): SkyPagingFixtureButton[];
|
|
249
|
+
constructor(fixture: ComponentFixture<unknown>, skyTestId: string);
|
|
250
|
+
/**
|
|
251
|
+
* Selects the specified page by id, if it is enabled.
|
|
252
|
+
*/
|
|
253
|
+
selectPage(id: string | number): Promise<void>;
|
|
254
|
+
/**
|
|
255
|
+
* Clicks the next page button, if it is enabled.
|
|
256
|
+
*/
|
|
257
|
+
selectNextPage(): Promise<void>;
|
|
258
|
+
/**
|
|
259
|
+
* Clicks the previous page button, if it is enabled.
|
|
260
|
+
*/
|
|
261
|
+
selectPreviousPage(): Promise<void>;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
declare class SkyPagingTestingModule {
|
|
268
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyPagingTestingModule, never>;
|
|
269
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyPagingTestingModule, never, never, [typeof i1.SkyPagingModule]>;
|
|
270
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SkyPagingTestingModule>;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Harness to interact with a paging content component in tests.
|
|
275
|
+
*/
|
|
276
|
+
declare class SkyPagingContentHarness extends SkyQueryableComponentHarness {
|
|
277
|
+
/**
|
|
278
|
+
* @internal
|
|
279
|
+
*/
|
|
280
|
+
static hostSelector: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* A set of criteria that can be used to filter a list of `SkyPagingHarness` instances.
|
|
285
|
+
*/
|
|
286
|
+
interface SkyPagingHarnessFilters extends SkyHarnessFilters {
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Harness for interacting with a paging component in tests.
|
|
291
|
+
*/
|
|
292
|
+
declare class SkyPagingHarness extends SkyComponentHarness {
|
|
293
|
+
#private;
|
|
294
|
+
/**
|
|
295
|
+
* @internal
|
|
296
|
+
*/
|
|
297
|
+
static hostSelector: string;
|
|
298
|
+
/**
|
|
299
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
300
|
+
* `SkyPagingHarness` that meets certain criteria.
|
|
301
|
+
*/
|
|
302
|
+
static with(filters: SkyPagingHarnessFilters): HarnessPredicate<SkyPagingHarness>;
|
|
303
|
+
/**
|
|
304
|
+
* Clicks the next button.
|
|
305
|
+
*/
|
|
306
|
+
clickNextButton(): Promise<void>;
|
|
307
|
+
/**
|
|
308
|
+
* Clicks the page button with the requested number. Throws an error if that button is not present.
|
|
309
|
+
*/
|
|
310
|
+
clickPageButton(pageNumber: number): Promise<void>;
|
|
311
|
+
/**
|
|
312
|
+
* Clicks the previous button.
|
|
313
|
+
*/
|
|
314
|
+
clickPreviousButton(): Promise<void>;
|
|
315
|
+
/**
|
|
316
|
+
* Gets the current page number.
|
|
317
|
+
*/
|
|
318
|
+
getCurrentPage(): Promise<number>;
|
|
319
|
+
/**
|
|
320
|
+
* Gets the paging content.
|
|
321
|
+
*/
|
|
322
|
+
getPagingContent(): Promise<SkyPagingContentHarness>;
|
|
323
|
+
getPagingLabel(): Promise<string>;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* A set of criteria that can be used to filter a list of `SkyRepeaterHarness` instances.
|
|
328
|
+
*/
|
|
329
|
+
interface SkyRepeaterHarnessFilters extends SkyHarnessFilters {
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* A set of criteria that can be used to filter a list of `SkyRepeaterItemHarness` instances.
|
|
334
|
+
*/
|
|
335
|
+
interface SkyRepeaterItemHarnessFilters extends SkyHarnessFilters {
|
|
336
|
+
/**
|
|
337
|
+
* Only find instances whose content matches the given value.
|
|
338
|
+
*/
|
|
339
|
+
contentText?: string | RegExp;
|
|
340
|
+
/**
|
|
341
|
+
* Only find instances whose title matches the given value.
|
|
342
|
+
*/
|
|
343
|
+
titleText?: string | RegExp;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Harness for interacting with a repeater item component in tests.
|
|
348
|
+
*/
|
|
349
|
+
declare class SkyRepeaterItemHarness extends SkyQueryableComponentHarness {
|
|
350
|
+
#private;
|
|
351
|
+
/**
|
|
352
|
+
* @internal
|
|
353
|
+
*/
|
|
354
|
+
static hostSelector: string;
|
|
355
|
+
/**
|
|
356
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
357
|
+
* `SkyRepeaterItemHarness` that meets certain criteria.
|
|
358
|
+
*/
|
|
359
|
+
static with(filters: SkyRepeaterItemHarnessFilters): HarnessPredicate<SkyRepeaterItemHarness>;
|
|
360
|
+
/**
|
|
361
|
+
* Clicks on the repeater item.
|
|
362
|
+
*/
|
|
363
|
+
click(): Promise<void>;
|
|
364
|
+
/**
|
|
365
|
+
* Whether the repeater item is selectable.
|
|
366
|
+
*/
|
|
367
|
+
isSelectable(): Promise<boolean>;
|
|
368
|
+
/**
|
|
369
|
+
* Whether the repeater item is selected.
|
|
370
|
+
*/
|
|
371
|
+
isSelected(): Promise<boolean>;
|
|
372
|
+
/**
|
|
373
|
+
* Selects the repeater item.
|
|
374
|
+
*/
|
|
375
|
+
select(): Promise<void>;
|
|
376
|
+
/**
|
|
377
|
+
* Deselects the repeater item.
|
|
378
|
+
*/
|
|
379
|
+
deselect(): Promise<void>;
|
|
380
|
+
/**
|
|
381
|
+
* Gets the text of the repeater item content.
|
|
382
|
+
*/
|
|
383
|
+
getContentText(): Promise<string>;
|
|
384
|
+
/**
|
|
385
|
+
* Gets the text of the repeater item title.
|
|
386
|
+
*/
|
|
387
|
+
getTitleText(): Promise<string>;
|
|
388
|
+
/**
|
|
389
|
+
* Whether the repeater item is collapsible.
|
|
390
|
+
*/
|
|
391
|
+
isCollapsible(): Promise<boolean>;
|
|
392
|
+
/**
|
|
393
|
+
* Whether the repeater item is expanded, or throws an error informing of the lack of collapsibility.
|
|
394
|
+
*/
|
|
395
|
+
isExpanded(): Promise<boolean>;
|
|
396
|
+
/**
|
|
397
|
+
* Expands the repeater item, or does nothing if already expanded.
|
|
398
|
+
*/
|
|
399
|
+
expand(): Promise<void>;
|
|
400
|
+
/**
|
|
401
|
+
* Collapses the repeater item, or does nothing if already collapsed.
|
|
402
|
+
*/
|
|
403
|
+
collapse(): Promise<void>;
|
|
404
|
+
/**
|
|
405
|
+
* Whether the repeater item is reorderable.
|
|
406
|
+
*/
|
|
407
|
+
isReorderable(): Promise<boolean>;
|
|
408
|
+
/**
|
|
409
|
+
* Moves the repeater item to the top of the list
|
|
410
|
+
*/
|
|
411
|
+
sendToTop(): Promise<void>;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Harness for interacting with a repeater component in tests.
|
|
416
|
+
*/
|
|
417
|
+
declare class SkyRepeaterHarness extends SkyComponentHarness {
|
|
418
|
+
/**
|
|
419
|
+
* @internal
|
|
420
|
+
*/
|
|
421
|
+
static hostSelector: string;
|
|
422
|
+
/**
|
|
423
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
424
|
+
* `SkyRepeaterHarness` that meets certain criteria.
|
|
425
|
+
*/
|
|
426
|
+
static with(filters: SkyRepeaterHarnessFilters): HarnessPredicate<SkyRepeaterHarness>;
|
|
427
|
+
/**
|
|
428
|
+
* Gets a list of child repeater items.
|
|
429
|
+
*/
|
|
430
|
+
getRepeaterItems(filters?: SkyRepeaterItemHarnessFilters): Promise<SkyRepeaterItemHarness[]>;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @internal
|
|
435
|
+
*/
|
|
436
|
+
interface SkySortFixtureMenu {
|
|
437
|
+
buttonText: string;
|
|
438
|
+
isOpen: boolean;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* @internal
|
|
443
|
+
*/
|
|
444
|
+
interface SkySortFixtureMenuItem {
|
|
445
|
+
index: number;
|
|
446
|
+
isActive: boolean;
|
|
447
|
+
text?: string;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Provides information for and interaction with a SKY UX sort component.
|
|
452
|
+
* By using the fixture API, a test insulates itself against updates to the internals
|
|
453
|
+
* of a component, such as changing its DOM structure.
|
|
454
|
+
* @internal
|
|
455
|
+
*/
|
|
456
|
+
declare class SkySortFixture {
|
|
457
|
+
#private;
|
|
458
|
+
/**
|
|
459
|
+
* The active sort menu item, if one exists. Menu items are only available when the menu dropdown
|
|
460
|
+
* is open. If the menu dropdown is closed, this property will be undefined.
|
|
461
|
+
*/
|
|
462
|
+
get activeMenuItem(): SkySortFixtureMenuItem | undefined;
|
|
463
|
+
/**
|
|
464
|
+
* The sort menu's properties.
|
|
465
|
+
*/
|
|
466
|
+
get menu(): SkySortFixtureMenu;
|
|
467
|
+
/**
|
|
468
|
+
* The properties of each sort menu item. Menu items are only available when the menu dropdown
|
|
469
|
+
* is open. If the menu dropdown is closed, this property will be undefined.
|
|
470
|
+
*/
|
|
471
|
+
get menuItems(): SkySortFixtureMenuItem[] | undefined;
|
|
472
|
+
constructor(fixture: ComponentFixture<unknown>, skyTestId: string);
|
|
473
|
+
/**
|
|
474
|
+
* Closes the sort dropdown menu if it isn't closed already.
|
|
475
|
+
*/
|
|
476
|
+
closeMenu(): Promise<void>;
|
|
477
|
+
/**
|
|
478
|
+
* Opens the sort dropdown menu if it isn't open already.
|
|
479
|
+
*/
|
|
480
|
+
openMenu(): Promise<void>;
|
|
481
|
+
/**
|
|
482
|
+
* Ensures the sort menu is open and selects the menu item with the specified index, if it exists.
|
|
483
|
+
* @param menuItemIndex The index of the menu item to select.
|
|
484
|
+
*/
|
|
485
|
+
selectMenuItemByIndex(menuItemIndex: number): Promise<void>;
|
|
486
|
+
/**
|
|
487
|
+
* Ensures the sort menu is open and selects the menu item with the specified text,
|
|
488
|
+
* if a matching item is available.
|
|
489
|
+
* @param menuItemText The text of the menu item to select.
|
|
490
|
+
*/
|
|
491
|
+
selectMenuItemByText(menuItemText: string | undefined): Promise<void>;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* @internal
|
|
496
|
+
*/
|
|
497
|
+
declare class SkySortTestingModule {
|
|
498
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkySortTestingModule, never>;
|
|
499
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkySortTestingModule, never, [typeof i1$1.NoopAnimationsModule], [typeof i1.SkySortModule]>;
|
|
500
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SkySortTestingModule>;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* A set of criteria that can be used to filter a list of `SkySortHarness` instances.
|
|
505
|
+
*/
|
|
506
|
+
interface SkySortHarnessFilters extends SkyHarnessFilters {
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* A set of criteria that can be used to filter a list of `SkySortItemHarness` instances.
|
|
511
|
+
*/
|
|
512
|
+
interface SkySortItemHarnessFilters extends BaseHarnessFilters {
|
|
513
|
+
/**
|
|
514
|
+
* Only find instances whose text content matches the given value.
|
|
515
|
+
*/
|
|
516
|
+
text?: string;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Harness for interacting with a sort item component in tests.
|
|
521
|
+
*/
|
|
522
|
+
declare class SkySortItemHarness extends SkyDropdownItemHarness {
|
|
523
|
+
/**
|
|
524
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
525
|
+
* `SkySortItemHarness` that meets certain criteria.
|
|
526
|
+
*/
|
|
527
|
+
static with(filters: SkySortItemHarnessFilters): HarnessPredicate<SkySortItemHarness>;
|
|
528
|
+
/**
|
|
529
|
+
* Clicks the sort item.
|
|
530
|
+
*/
|
|
531
|
+
click(): Promise<void>;
|
|
532
|
+
/**
|
|
533
|
+
* Gets the sort item role.
|
|
534
|
+
* This can't be set on sort items and should not be exposed.
|
|
535
|
+
* @internal
|
|
536
|
+
*/
|
|
537
|
+
getAriaRole(): Promise<string | null>;
|
|
538
|
+
/**
|
|
539
|
+
* Gets the sort item text.
|
|
540
|
+
*/
|
|
541
|
+
getText(): Promise<string | null>;
|
|
542
|
+
/**
|
|
543
|
+
* Whether the sort item is active.
|
|
544
|
+
*/
|
|
545
|
+
isActive(): Promise<boolean>;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Harness for interacting with a sort component in tests.
|
|
550
|
+
*/
|
|
551
|
+
declare class SkySortHarness extends SkyComponentHarness {
|
|
552
|
+
#private;
|
|
553
|
+
/**
|
|
554
|
+
* @internal
|
|
555
|
+
*/
|
|
556
|
+
static hostSelector: string;
|
|
557
|
+
/**
|
|
558
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
559
|
+
* `SkySortHarness` that meets certain criteria.
|
|
560
|
+
*/
|
|
561
|
+
static with(filters: SkySortHarnessFilters): HarnessPredicate<SkySortHarness>;
|
|
562
|
+
/**
|
|
563
|
+
* Clicks the sort component.
|
|
564
|
+
*/
|
|
565
|
+
click(): Promise<void>;
|
|
566
|
+
/**
|
|
567
|
+
* Gets the aria-label value.
|
|
568
|
+
*/
|
|
569
|
+
getAriaLabel(): Promise<string | null>;
|
|
570
|
+
/**
|
|
571
|
+
* Gets the text that appears on the sort button.
|
|
572
|
+
*/
|
|
573
|
+
getButtonText(): Promise<string>;
|
|
574
|
+
/**
|
|
575
|
+
* Gets a harness for a specific sort item that meets certain criteria.
|
|
576
|
+
*/
|
|
577
|
+
getItem(filters: SkySortItemHarnessFilters): Promise<SkySortItemHarness>;
|
|
578
|
+
/**
|
|
579
|
+
* Gets an array of all sort items.
|
|
580
|
+
*/
|
|
581
|
+
getItems(filters?: SkySortItemHarnessFilters): Promise<SkySortItemHarness[]>;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Provides information for and interaction with a SKY UX infinite scroll component.
|
|
586
|
+
* By using the fixture API, a test insulates itself against updates to the internals
|
|
587
|
+
* of a component, such as changing its DOM structure.
|
|
588
|
+
* @deprecated Use `SkyInfiniteScrollHarness` instead.
|
|
589
|
+
* @internal
|
|
590
|
+
*/
|
|
591
|
+
declare class SkyInfiniteScrollFixture {
|
|
592
|
+
#private;
|
|
593
|
+
constructor(fixture: ComponentFixture<unknown>, skyTestId: string);
|
|
594
|
+
get loadMoreButtonIsVisible(): boolean;
|
|
595
|
+
clickLoadMoreButton(): Promise<void>;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* @internal
|
|
600
|
+
*/
|
|
601
|
+
declare class SkyInfiniteScrollTestingModule {
|
|
602
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyInfiniteScrollTestingModule, never>;
|
|
603
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyInfiniteScrollTestingModule, never, never, [typeof i1.SkyInfiniteScrollModule]>;
|
|
604
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SkyInfiniteScrollTestingModule>;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* A set of criteria that can be used to filter a list of `SkyInfiniteScrollHarness` instances.
|
|
609
|
+
*/
|
|
610
|
+
interface SkyInfiniteScrollHarnessFilters extends SkyHarnessFilters {
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Harness for interacting with an infinite scroll component in tests.
|
|
615
|
+
*/
|
|
616
|
+
declare class SkyInfiniteScrollHarness extends SkyComponentHarness {
|
|
617
|
+
#private;
|
|
618
|
+
/**
|
|
619
|
+
* @internal
|
|
620
|
+
*/
|
|
621
|
+
static hostSelector: string;
|
|
622
|
+
/**
|
|
623
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
624
|
+
* `SkyInfiniteScrollHarness` that meets certain criteria.
|
|
625
|
+
*/
|
|
626
|
+
static with(filters: SkyInfiniteScrollHarnessFilters): HarnessPredicate<SkyInfiniteScrollHarness>;
|
|
627
|
+
/**
|
|
628
|
+
* Whether the infinite scroll is enabled.
|
|
629
|
+
*/
|
|
630
|
+
isEnabled(): Promise<boolean>;
|
|
631
|
+
/**
|
|
632
|
+
* Whether the infinite scroll is loading.
|
|
633
|
+
*/
|
|
634
|
+
isLoading(): Promise<boolean>;
|
|
635
|
+
/**
|
|
636
|
+
* Clicks the "Load more" button.
|
|
637
|
+
*/
|
|
638
|
+
loadMore(): Promise<void>;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
export { SkyFilterButtonHarness, SkyFilterFixtureButton, SkyFilterFixtureSummary, SkyFilterInlineHarness, SkyFilterInlineItemHarness, SkyFilterSummaryHarness, SkyFilterSummaryItemHarness, SkyFilterTestingModule, SkyInfiniteScrollFixture, SkyInfiniteScrollHarness, SkyInfiniteScrollTestingModule, SkyPagingContentHarness, SkyPagingFixture, SkyPagingHarness, SkyPagingTestingModule, SkyRepeaterHarness, SkyRepeaterItemHarness, SkySortFixture, SkySortHarness, SkySortItemHarness, SkySortTestingModule };
|
|
642
|
+
export type { SkyFilterButtonHarnessFilters, SkyFilterInlineHarnessFilters, SkyFilterInlineItemHarnessFilters, SkyFilterSummaryHarnessFilters, SkyFilterSummaryItemHarnessFilters, SkyInfiniteScrollHarnessFilters, SkyPagingFixtureButton, SkyPagingHarnessFilters, SkyRepeaterHarnessFilters, SkyRepeaterItemHarnessFilters, SkySortFixtureMenu, SkySortFixtureMenuItem, SkySortHarnessFilters, SkySortItemHarnessFilters };
|