@skyux/core 11.15.1 → 11.17.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.
- package/documentation.json +2408 -1407
- package/esm2022/index.mjs +6 -1
- package/esm2022/lib/modules/adapter-service/adapter.service.mjs +12 -27
- package/esm2022/lib/modules/breakpoint-observer/breakpoint-observer.mjs +2 -0
- package/esm2022/lib/modules/breakpoint-observer/breakpoint-observer.token.mjs +7 -0
- package/esm2022/lib/modules/breakpoint-observer/breakpoint-utils.mjs +38 -0
- package/esm2022/lib/modules/breakpoint-observer/breakpoint.mjs +5 -0
- package/esm2022/lib/modules/breakpoint-observer/container-breakpoint-observer.mjs +64 -0
- package/esm2022/lib/modules/breakpoint-observer/media-breakpoint-observer.mjs +58 -0
- package/esm2022/lib/modules/breakpoint-observer/provide-breakpoint-observer.mjs +24 -0
- package/esm2022/lib/modules/breakpoint-observer/responsive-host.directive.mjs +55 -0
- package/esm2022/lib/modules/media-query/media-breakpoints.mjs +5 -1
- package/esm2022/lib/modules/media-query/media-query-listener.mjs +1 -1
- package/esm2022/lib/modules/media-query/media-query.service.mjs +34 -77
- package/esm2022/lib/modules/resize-observer/resize-observer-media-query.service.mjs +18 -3
- package/esm2022/testing/media-query/breakpoint-observer-testing.mjs +26 -0
- package/esm2022/testing/media-query/media-query-testing-controller.mjs +22 -0
- package/esm2022/testing/media-query/provide-media-query-testing.mjs +26 -0
- package/esm2022/testing/mock-media-query.service.mjs +3 -1
- package/esm2022/testing/public-api.mjs +6 -3
- package/esm2022/testing/resize-observer-mock.mjs +11 -1
- package/esm2022/testing/shared/input-harness.mjs +63 -0
- package/esm2022/version.mjs +1 -1
- package/fesm2022/skyux-core-testing.mjs +213 -74
- package/fesm2022/skyux-core-testing.mjs.map +1 -1
- package/fesm2022/skyux-core.mjs +422 -236
- package/fesm2022/skyux-core.mjs.map +1 -1
- package/index.d.ts +8 -1
- package/lib/modules/adapter-service/adapter.service.d.ts +5 -3
- package/lib/modules/breakpoint-observer/breakpoint-observer.d.ts +9 -0
- package/lib/modules/breakpoint-observer/breakpoint-observer.token.d.ts +7 -0
- package/lib/modules/breakpoint-observer/breakpoint-utils.d.ts +17 -0
- package/lib/modules/breakpoint-observer/breakpoint.d.ts +8 -0
- package/lib/modules/breakpoint-observer/container-breakpoint-observer.d.ts +18 -0
- package/lib/modules/breakpoint-observer/media-breakpoint-observer.d.ts +18 -0
- package/lib/modules/breakpoint-observer/provide-breakpoint-observer.d.ts +7 -0
- package/lib/modules/breakpoint-observer/responsive-host.directive.d.ts +32 -0
- package/lib/modules/media-query/media-breakpoints.d.ts +4 -0
- package/lib/modules/media-query/media-query-listener.d.ts +1 -0
- package/lib/modules/media-query/media-query.service.d.ts +16 -6
- package/lib/modules/resize-observer/resize-observer-media-query.service.d.ts +10 -2
- package/package.json +2 -2
- package/testing/media-query/breakpoint-observer-testing.d.ts +15 -0
- package/testing/media-query/media-query-testing-controller.d.ts +15 -0
- package/testing/media-query/provide-media-query-testing.d.ts +5 -0
- package/testing/mock-media-query.service.d.ts +1 -0
- package/testing/public-api.d.ts +5 -2
- package/testing/resize-observer-mock.d.ts +9 -0
- package/testing/shared/input-harness.d.ts +36 -0
@@ -1,11 +1,13 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { NgZone, Injectable, NgModule, inject } from '@angular/core';
|
3
|
-
import { SkyMediaQueryService, SkyMediaBreakpoints, SkyUIConfigService, SkyHelpService } from '@skyux/core';
|
4
|
-
import { BehaviorSubject, of } from 'rxjs';
|
3
|
+
import { SkyMediaQueryService, SkyMediaBreakpoints, SkyUIConfigService, SkyHelpService, SkyContainerBreakpointObserver, SkyMediaBreakpointObserver, SKY_BREAKPOINT_OBSERVER } from '@skyux/core';
|
4
|
+
import { BehaviorSubject, of, ReplaySubject } from 'rxjs';
|
5
5
|
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
6
6
|
|
7
|
+
/* eslint-disable @nx/enforce-module-boundaries */
|
7
8
|
/**
|
8
9
|
* @internal
|
10
|
+
* @deprecated Use `provideSkyMediaQueryTesting()` coupled with `SkyMediaQueryTestingController`.
|
9
11
|
*/
|
10
12
|
class MockSkyMediaQueryService extends SkyMediaQueryService {
|
11
13
|
static { this.xs = '(max-width: 767px)'; }
|
@@ -131,6 +133,157 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
131
133
|
}]
|
132
134
|
}] });
|
133
135
|
|
136
|
+
function formatHelpKeyForError(helpKey) {
|
137
|
+
return helpKey === undefined ? 'undefined' : `'${helpKey}'`;
|
138
|
+
}
|
139
|
+
/**
|
140
|
+
* Provides methods for validating global help in unit tests.
|
141
|
+
*/
|
142
|
+
class SkyHelpTestingController {
|
143
|
+
#helpSvc = inject(SkyHelpService);
|
144
|
+
/**
|
145
|
+
* Validates the current help key and throws an error if the current help key does not match the expected help key.
|
146
|
+
* @param expectedHelpKey The expected help key.
|
147
|
+
*/
|
148
|
+
expectCurrentHelpKey(expectedHelpKey) {
|
149
|
+
const currentHelpKey = this.#helpSvc.getCurrentHelpKey();
|
150
|
+
if (currentHelpKey !== expectedHelpKey) {
|
151
|
+
throw new Error(`Expected current help key to be ${formatHelpKeyForError(expectedHelpKey)}, but the current help key is ${formatHelpKeyForError(currentHelpKey)}.`);
|
152
|
+
}
|
153
|
+
}
|
154
|
+
/**
|
155
|
+
* Close the current help.
|
156
|
+
*/
|
157
|
+
closeHelp() {
|
158
|
+
this.#helpSvc.closeHelp();
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
/**
|
163
|
+
* @internal
|
164
|
+
*/
|
165
|
+
class SkyHelpTestingService extends SkyHelpService {
|
166
|
+
get widgetReadyStateChange() {
|
167
|
+
return of(true);
|
168
|
+
}
|
169
|
+
#currentHelpKey;
|
170
|
+
#currentPageHelpKey;
|
171
|
+
openHelp(args) {
|
172
|
+
this.#currentHelpKey = args?.helpKey;
|
173
|
+
}
|
174
|
+
updateHelp(args) {
|
175
|
+
if ('pageDefaultHelpKey' in args) {
|
176
|
+
this.#currentPageHelpKey = args.pageDefaultHelpKey;
|
177
|
+
}
|
178
|
+
if ('helpKey' in args) {
|
179
|
+
this.#currentHelpKey = args.helpKey;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
getCurrentHelpKey() {
|
183
|
+
return this.#currentHelpKey || this.#currentPageHelpKey;
|
184
|
+
}
|
185
|
+
closeHelp() {
|
186
|
+
this.#currentHelpKey = undefined;
|
187
|
+
}
|
188
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
189
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingService }); }
|
190
|
+
}
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingService, decorators: [{
|
192
|
+
type: Injectable
|
193
|
+
}] });
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Mocks SkyHelpService to enable testing of global help.
|
197
|
+
*/
|
198
|
+
class SkyHelpTestingModule {
|
199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
200
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingModule }); }
|
201
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingModule, providers: [
|
202
|
+
{
|
203
|
+
provide: SkyHelpService,
|
204
|
+
useClass: SkyHelpTestingService,
|
205
|
+
},
|
206
|
+
SkyHelpTestingController,
|
207
|
+
] }); }
|
208
|
+
}
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingModule, decorators: [{
|
210
|
+
type: NgModule,
|
211
|
+
args: [{
|
212
|
+
providers: [
|
213
|
+
{
|
214
|
+
provide: SkyHelpService,
|
215
|
+
useClass: SkyHelpTestingService,
|
216
|
+
},
|
217
|
+
SkyHelpTestingController,
|
218
|
+
],
|
219
|
+
}]
|
220
|
+
}] });
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Overrides the media and container breakpoint observers for testing.
|
224
|
+
* @internal
|
225
|
+
*/
|
226
|
+
class SkyBreakpointObserverTesting {
|
227
|
+
get breakpointChange() {
|
228
|
+
return this.#breakpointChangeObs;
|
229
|
+
}
|
230
|
+
#breakpointChange = new ReplaySubject(1);
|
231
|
+
#breakpointChangeObs = this.#breakpointChange.asObservable();
|
232
|
+
destroy() {
|
233
|
+
this.#breakpointChange.complete();
|
234
|
+
}
|
235
|
+
setBreakpoint(breakpoint) {
|
236
|
+
this.#breakpointChange.next(breakpoint);
|
237
|
+
}
|
238
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyBreakpointObserverTesting, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
239
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyBreakpointObserverTesting }); }
|
240
|
+
}
|
241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyBreakpointObserverTesting, decorators: [{
|
242
|
+
type: Injectable
|
243
|
+
}] });
|
244
|
+
|
245
|
+
/**
|
246
|
+
* A controller to be injected into tests, which mocks the
|
247
|
+
* `SkyMediaQueryService` and handles interactions with breakpoints.
|
248
|
+
*/
|
249
|
+
class SkyMediaQueryTestingController {
|
250
|
+
#observer = inject(SkyBreakpointObserverTesting);
|
251
|
+
/**
|
252
|
+
* Emits the provided breakpoint to all subscribers.
|
253
|
+
*/
|
254
|
+
setBreakpoint(breakpoint) {
|
255
|
+
this.#observer.setBreakpoint(breakpoint);
|
256
|
+
}
|
257
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyMediaQueryTestingController, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
258
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyMediaQueryTestingController }); }
|
259
|
+
}
|
260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyMediaQueryTestingController, decorators: [{
|
261
|
+
type: Injectable
|
262
|
+
}] });
|
263
|
+
|
264
|
+
/**
|
265
|
+
* Adds mocks to allow interactions with breakpoints in tests.
|
266
|
+
*/
|
267
|
+
function provideSkyMediaQueryTesting() {
|
268
|
+
return [
|
269
|
+
SkyMediaQueryService,
|
270
|
+
SkyBreakpointObserverTesting,
|
271
|
+
SkyMediaQueryTestingController,
|
272
|
+
{
|
273
|
+
provide: SkyContainerBreakpointObserver,
|
274
|
+
useExisting: SkyBreakpointObserverTesting,
|
275
|
+
},
|
276
|
+
{
|
277
|
+
provide: SkyMediaBreakpointObserver,
|
278
|
+
useExisting: SkyBreakpointObserverTesting,
|
279
|
+
},
|
280
|
+
{
|
281
|
+
provide: SKY_BREAKPOINT_OBSERVER,
|
282
|
+
useExisting: SkyBreakpointObserverTesting,
|
283
|
+
},
|
284
|
+
];
|
285
|
+
}
|
286
|
+
|
134
287
|
/**
|
135
288
|
* @internal
|
136
289
|
*/
|
@@ -203,6 +356,10 @@ class SkyOverlayHarness extends SkyQueryableComponentHarness {
|
|
203
356
|
}
|
204
357
|
}
|
205
358
|
|
359
|
+
/* istanbul ignore file: these are used in @skyux/core */
|
360
|
+
/**
|
361
|
+
* @internal
|
362
|
+
*/
|
206
363
|
const mockResizeObserverEntry = {
|
207
364
|
target: {},
|
208
365
|
borderBoxSize: [],
|
@@ -221,12 +378,18 @@ const mockResizeObserverEntry = {
|
|
221
378
|
devicePixelContentBoxSize: [],
|
222
379
|
};
|
223
380
|
const defaultCallback = (entries, observer) => { };
|
381
|
+
/**
|
382
|
+
* @internal
|
383
|
+
*/
|
224
384
|
const mockResizeObserverHandle = {
|
225
385
|
callback: defaultCallback,
|
226
386
|
emit: (entries, observer) => {
|
227
387
|
mockResizeObserverHandle.callback(entries, observer);
|
228
388
|
},
|
229
389
|
};
|
390
|
+
/**
|
391
|
+
* @internal
|
392
|
+
*/
|
230
393
|
function mockResizeObserver() {
|
231
394
|
window.requestAnimationFrame = (callback) => {
|
232
395
|
callback();
|
@@ -250,95 +413,71 @@ class SkyHarnessUtility {
|
|
250
413
|
}
|
251
414
|
}
|
252
415
|
|
253
|
-
function formatHelpKeyForError(helpKey) {
|
254
|
-
return helpKey === undefined ? 'undefined' : `'${helpKey}'`;
|
255
|
-
}
|
256
416
|
/**
|
257
|
-
*
|
417
|
+
* Harness used to interact with native input elements in tests.
|
418
|
+
* @internal
|
258
419
|
*/
|
259
|
-
class
|
260
|
-
#helpSvc = inject(SkyHelpService);
|
420
|
+
class SkyInputHarness extends ComponentHarness {
|
261
421
|
/**
|
262
|
-
*
|
263
|
-
* @param expectedHelpKey The expected help key.
|
422
|
+
* Blurs the input.
|
264
423
|
*/
|
265
|
-
|
266
|
-
|
267
|
-
if (currentHelpKey !== expectedHelpKey) {
|
268
|
-
throw new Error(`Expected current help key to be ${formatHelpKeyForError(expectedHelpKey)}, but the current help key is ${formatHelpKeyForError(currentHelpKey)}.`);
|
269
|
-
}
|
424
|
+
async blur() {
|
425
|
+
return (await this.host()).blur();
|
270
426
|
}
|
271
427
|
/**
|
272
|
-
*
|
428
|
+
* Clears the input value.
|
273
429
|
*/
|
274
|
-
|
275
|
-
this
|
430
|
+
async clear() {
|
431
|
+
return (await this.host()).clear();
|
276
432
|
}
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
class SkyHelpTestingService extends SkyHelpService {
|
283
|
-
get widgetReadyStateChange() {
|
284
|
-
return of(true);
|
433
|
+
/**
|
434
|
+
* Focuses the input.
|
435
|
+
*/
|
436
|
+
async focus() {
|
437
|
+
return (await this.host()).focus();
|
285
438
|
}
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
439
|
+
/**
|
440
|
+
* Gets the value of the input.
|
441
|
+
*/
|
442
|
+
async getValue() {
|
443
|
+
return (await this.host()).getProperty('value');
|
290
444
|
}
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
}
|
445
|
+
/**
|
446
|
+
* Whether the input is disabled.
|
447
|
+
*/
|
448
|
+
async isDisabled() {
|
449
|
+
const disabled = await (await this.host()).getAttribute('disabled');
|
450
|
+
return disabled !== null;
|
298
451
|
}
|
299
|
-
|
300
|
-
|
452
|
+
/**
|
453
|
+
* Whether the input is focused.
|
454
|
+
*/
|
455
|
+
async isFocused() {
|
456
|
+
return (await this.host()).isFocused();
|
301
457
|
}
|
302
|
-
|
303
|
-
|
458
|
+
/**
|
459
|
+
* Sets the value of the input. The value will be set by simulating key
|
460
|
+
* presses that correspond to the given value.
|
461
|
+
*/
|
462
|
+
async setValue(value) {
|
463
|
+
const inputEl = await this.host();
|
464
|
+
await inputEl.clear();
|
465
|
+
// We don't want to send keys for the value if the value is an empty
|
466
|
+
// string in order to clear the value. Sending keys with an empty string
|
467
|
+
// still results in unnecessary focus events.
|
468
|
+
if (value) {
|
469
|
+
await inputEl.sendKeys(value);
|
470
|
+
}
|
471
|
+
// Some input types won't respond to key presses (e.g. `color`) so to be sure that the
|
472
|
+
// value is set, we also set the property after the keyboard sequence. Note that we don't
|
473
|
+
// want to do it before, because it can cause the value to be entered twice.
|
474
|
+
await inputEl.setInputValue(value);
|
304
475
|
}
|
305
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
306
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingService }); }
|
307
|
-
}
|
308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingService, decorators: [{
|
309
|
-
type: Injectable
|
310
|
-
}] });
|
311
|
-
|
312
|
-
/**
|
313
|
-
* Mocks SkyHelpService to enable testing of global help.
|
314
|
-
*/
|
315
|
-
class SkyHelpTestingModule {
|
316
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
317
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingModule }); }
|
318
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingModule, providers: [
|
319
|
-
{
|
320
|
-
provide: SkyHelpService,
|
321
|
-
useClass: SkyHelpTestingService,
|
322
|
-
},
|
323
|
-
SkyHelpTestingController,
|
324
|
-
] }); }
|
325
476
|
}
|
326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SkyHelpTestingModule, decorators: [{
|
327
|
-
type: NgModule,
|
328
|
-
args: [{
|
329
|
-
providers: [
|
330
|
-
{
|
331
|
-
provide: SkyHelpService,
|
332
|
-
useClass: SkyHelpTestingService,
|
333
|
-
},
|
334
|
-
SkyHelpTestingController,
|
335
|
-
],
|
336
|
-
}]
|
337
|
-
}] });
|
338
477
|
|
339
478
|
/**
|
340
479
|
* Generated bundle index. Do not edit.
|
341
480
|
*/
|
342
481
|
|
343
|
-
export { MockSkyMediaQueryService, MockSkyUIConfigService, SkyComponentHarness, SkyCoreTestingModule, SkyHarnessUtility, SkyHelpTestingController, SkyHelpTestingModule, SkyOverlayHarness, SkyQueryableComponentHarness, mockResizeObserver, mockResizeObserverEntry, mockResizeObserverHandle };
|
482
|
+
export { MockSkyMediaQueryService, MockSkyUIConfigService, SkyComponentHarness, SkyCoreTestingModule, SkyHarnessUtility, SkyHelpTestingController, SkyHelpTestingModule, SkyInputHarness, SkyMediaQueryTestingController, SkyOverlayHarness, SkyQueryableComponentHarness, mockResizeObserver, mockResizeObserverEntry, mockResizeObserverHandle, provideSkyMediaQueryTesting };
|
344
483
|
//# sourceMappingURL=skyux-core-testing.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"skyux-core-testing.mjs","sources":["../../../../../libs/components/core/testing/src/mock-media-query.service.ts","../../../../../libs/components/core/testing/src/mock-ui-config.service.ts","../../../../../libs/components/core/testing/src/core-testing.module.ts","../../../../../libs/components/core/testing/src/shared/component-harness.ts","../../../../../libs/components/core/testing/src/shared/queryable-component-harness.ts","../../../../../libs/components/core/testing/src/overlay/overlay-harness.ts","../../../../../libs/components/core/testing/src/resize-observer-mock.ts","../../../../../libs/components/core/testing/src/shared/harness-utility.ts","../../../../../libs/components/core/testing/src/help/help-testing-controller.ts","../../../../../libs/components/core/testing/src/help/help-testing.service.ts","../../../../../libs/components/core/testing/src/help/help-testing.module.ts","../../../../../libs/components/core/testing/src/skyux-core-testing.ts"],"sourcesContent":["import { Injectable, NgZone } from '@angular/core';\nimport {\n SkyMediaBreakpoints,\n SkyMediaQueryListener,\n SkyMediaQueryService,\n} from '@skyux/core';\n\nimport { BehaviorSubject, Subscription } from 'rxjs';\n\n/**\n * @internal\n */\n@Injectable()\nexport class MockSkyMediaQueryService extends SkyMediaQueryService {\n public static override xs = '(max-width: 767px)';\n public static override sm = '(min-width: 768px) and (max-width: 991px)';\n public static override md = '(min-width: 992px) and (max-width: 1199px)';\n public static override lg = '(min-width: 1200px)';\n\n public override get current(): SkyMediaBreakpoints {\n return this.currentBreakpoints;\n }\n\n public override set current(breakpoints: SkyMediaBreakpoints) {\n this.currentBreakpoints = breakpoints;\n }\n\n public currentMockSubject = new BehaviorSubject<SkyMediaBreakpoints>(\n this.current,\n );\n\n protected currentBreakpoints = SkyMediaBreakpoints.md;\n\n constructor() {\n super(\n new NgZone({\n enableLongStackTrace: true,\n }),\n );\n }\n\n public override subscribe(listener: SkyMediaQueryListener): Subscription {\n return this.currentMockSubject.subscribe({\n next: (breakpoints: SkyMediaBreakpoints) => {\n listener(breakpoints);\n },\n });\n }\n\n public fire(args: SkyMediaBreakpoints): void {\n this.currentBreakpoints = args;\n this.currentMockSubject.next(this.currentBreakpoints);\n }\n\n /* istanbul ignore next */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n public override destroy(): void {}\n}\n","import { Injectable } from '@angular/core';\nimport { SkyUIConfigService } from '@skyux/core';\n\nimport { Observable, of as observableOf } from 'rxjs';\n\n/**\n * @internal\n */\n@Injectable()\nexport class MockSkyUIConfigService extends SkyUIConfigService {\n public override getConfig(key: string, defaultConfig?: any): Observable<any> {\n switch (key) {\n case 'defaultSettings':\n return observableOf(defaultConfig);\n case 'badData':\n return observableOf({ invalidProperty: 'invalidData' });\n default: {\n return observableOf({\n settings: {\n userSettings: {\n singleColumn: {\n tiles: [\n {\n id: 'tile-1',\n isCollapsed: true,\n },\n {\n id: 'tile-2',\n isCollapsed: true,\n },\n ],\n },\n multiColumn: [\n {\n tiles: [\n {\n id: 'tile-2',\n isCollapsed: true,\n },\n ],\n },\n {\n tiles: [\n {\n id: 'tile-1',\n isCollapsed: true,\n },\n ],\n },\n ],\n },\n defaultSettings: ['tile-1', 'tile-2'],\n },\n });\n }\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { SkyMediaQueryService, SkyUIConfigService } from '@skyux/core';\n\nimport { MockSkyMediaQueryService } from './mock-media-query.service';\nimport { MockSkyUIConfigService } from './mock-ui-config.service';\n\n/**\n * @internal\n */\n@NgModule({\n providers: [\n { provide: SkyMediaQueryService, useClass: MockSkyMediaQueryService },\n {\n provide: SkyUIConfigService,\n useClass: MockSkyUIConfigService,\n },\n ],\n})\nexport class SkyCoreTestingModule {}\n","import {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n} from '@angular/cdk/testing';\n\nimport { SkyHarnessFilters } from './harness-filters';\n\n/**\n * @internal\n */\nexport abstract class SkyComponentHarness extends ComponentHarness {\n protected static getDataSkyIdPredicate<T extends SkyComponentHarness>(\n this: ComponentHarnessConstructor<T>,\n filters: SkyHarnessFilters,\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, filters).addOption(\n 'dataSkyId',\n filters.dataSkyId,\n (harness, text) =>\n HarnessPredicate.stringMatches(harness.#getSkyId(), text),\n );\n }\n\n async #getSkyId(): Promise<string | null> {\n return (await this.host()).getAttribute('data-sky-id');\n }\n}\n","import {\n ComponentHarness,\n HarnessQuery,\n TestElement,\n} from '@angular/cdk/testing';\n\nimport { SkyComponentHarness } from './component-harness';\n\n/**\n * @internal\n */\nexport abstract class SkyQueryableComponentHarness extends SkyComponentHarness {\n /**\n * Returns a child harness or throws an error if not found.\n */\n public async queryHarness<T extends ComponentHarness>(\n query: HarnessQuery<T>,\n ): Promise<T> {\n return this.locatorFor(query)();\n }\n\n /**\n * Returns a child harness or null if not found.\n */\n public async queryHarnessOrNull<T extends ComponentHarness>(\n query: HarnessQuery<T>,\n ): Promise<T | null> {\n return this.locatorForOptional(query)();\n }\n\n /**\n * Returns child harnesses.\n */\n public async queryHarnesses<T extends ComponentHarness>(\n harness: HarnessQuery<T>,\n ): Promise<T[]> {\n return this.locatorForAll(harness)();\n }\n\n /**\n * Returns a child test element or throws an error if not found.\n */\n public async querySelector(selector: string): Promise<TestElement | null> {\n return this.locatorFor(selector)();\n }\n\n /**\n * Returns a child test element or null if not found.\n */\n public async querySelectorOrNull(\n selector: string,\n ): Promise<TestElement | null> {\n return this.locatorForOptional(selector)();\n }\n\n /**\n * Returns child test elements.\n */\n public async querySelectorAll(selector: string): Promise<TestElement[]> {\n return this.locatorForAll(selector)();\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\n\nimport { SkyQueryableComponentHarness } from '../shared/queryable-component-harness';\n\nimport { SkyOverlayHarnessFilters } from './overlay-harness-filters';\n\n/**\n * Harness for interacting with an overlay component in tests.\n * @internal\n */\nexport class SkyOverlayHarness extends SkyQueryableComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-overlay';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyOverlayHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyOverlayHarnessFilters,\n ): HarnessPredicate<SkyOverlayHarness> {\n return new HarnessPredicate(SkyOverlayHarness, filters);\n }\n}\n","export const mockResizeObserverEntry: ResizeObserverEntry = {\n target: {} as Element,\n borderBoxSize: [],\n contentBoxSize: [],\n contentRect: {\n width: 20,\n height: 20,\n x: 20,\n y: 20,\n top: 20,\n bottom: 20,\n left: 20,\n right: 20,\n toJSON: () => 'true',\n } as DOMRectReadOnly,\n devicePixelContentBoxSize: [],\n};\n\nconst defaultCallback: ResizeObserverCallback = (\n entries: ResizeObserverEntry[],\n observer: ResizeObserver,\n) => {};\n\nexport const mockResizeObserverHandle = {\n callback: defaultCallback,\n emit: (entries: ResizeObserverEntry[], observer?: ResizeObserver) => {\n mockResizeObserverHandle.callback(entries, observer!);\n },\n};\n\nexport function mockResizeObserver() {\n (window as any).requestAnimationFrame = (callback: () => void): number => {\n callback();\n return 0;\n };\n (window as any).cancelAnimationFrame = (_: number): void => undefined;\n window.ResizeObserver = class {\n constructor(callback: ResizeObserverCallback) {\n mockResizeObserverHandle.callback = callback;\n }\n\n public disconnect() {}\n\n public observe(target: Element, options?: ResizeObserverOptions) {}\n\n public unobserve(element: HTMLElement) {}\n };\n}\n","import { TestElement } from '@angular/cdk/testing';\n\nexport class SkyHarnessUtility {\n public static async getBackgroundImageUrl(\n el: TestElement,\n ): Promise<string | undefined> {\n const backgroundImage = await el.getCssValue('background-image');\n\n return /url\\(('|\")([^'\"]+)('|\")\\)/gi.exec(backgroundImage)?.[2];\n }\n}\n","import { inject } from '@angular/core';\n// eslint-disable-next-line @nx/enforce-module-boundaries\nimport { SkyHelpService } from '@skyux/core';\n\nimport { SkyHelpTestingService } from './help-testing.service';\n\nfunction formatHelpKeyForError(helpKey: string | undefined): string {\n return helpKey === undefined ? 'undefined' : `'${helpKey}'`;\n}\n\n/**\n * Provides methods for validating global help in unit tests.\n */\nexport class SkyHelpTestingController {\n #helpSvc = inject(SkyHelpService) as SkyHelpTestingService;\n\n /**\n * Validates the current help key and throws an error if the current help key does not match the expected help key.\n * @param expectedHelpKey The expected help key.\n */\n public expectCurrentHelpKey(expectedHelpKey: string | undefined): void {\n const currentHelpKey = this.#helpSvc.getCurrentHelpKey();\n\n if (currentHelpKey !== expectedHelpKey) {\n throw new Error(\n `Expected current help key to be ${formatHelpKeyForError(expectedHelpKey)}, but the current help key is ${formatHelpKeyForError(currentHelpKey)}.`,\n );\n }\n }\n\n /**\n * Close the current help.\n */\n public closeHelp(): void {\n this.#helpSvc.closeHelp();\n }\n}\n","import { Injectable } from '@angular/core';\n// eslint-disable-next-line @nx/enforce-module-boundaries\nimport {\n SkyHelpOpenArgs,\n SkyHelpService,\n SkyHelpUpdateArgs,\n} from '@skyux/core';\n\nimport { Observable, of } from 'rxjs';\n\n/**\n * @internal\n */\n@Injectable()\nexport class SkyHelpTestingService extends SkyHelpService {\n public override get widgetReadyStateChange(): Observable<boolean> {\n return of(true);\n }\n\n #currentHelpKey: string | undefined;\n #currentPageHelpKey: string | undefined;\n\n public override openHelp(args?: SkyHelpOpenArgs): void {\n this.#currentHelpKey = args?.helpKey;\n }\n\n public override updateHelp(args: SkyHelpUpdateArgs): void {\n if ('pageDefaultHelpKey' in args) {\n this.#currentPageHelpKey = args.pageDefaultHelpKey;\n }\n\n if ('helpKey' in args) {\n this.#currentHelpKey = args.helpKey;\n }\n }\n\n public getCurrentHelpKey(): string | undefined {\n return this.#currentHelpKey || this.#currentPageHelpKey;\n }\n\n public closeHelp(): void {\n this.#currentHelpKey = undefined;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { SkyHelpService } from '@skyux/core';\n\nimport { SkyHelpTestingController } from './help-testing-controller';\nimport { SkyHelpTestingService } from './help-testing.service';\n\n/**\n * Mocks SkyHelpService to enable testing of global help.\n */\n@NgModule({\n providers: [\n {\n provide: SkyHelpService,\n useClass: SkyHelpTestingService,\n },\n SkyHelpTestingController,\n ],\n})\nexport class SkyHelpTestingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["observableOf"],"mappings":";;;;;;AASA;;AAEG;AAEG,MAAO,wBAAyB,SAAQ,oBAAoB,CAAA;aACzC,IAAE,CAAA,EAAA,GAAG,oBAAH,CAAwB,EAAA;aAC1B,IAAE,CAAA,EAAA,GAAG,2CAAH,CAA+C,EAAA;aACjD,IAAE,CAAA,EAAA,GAAG,4CAAH,CAAgD,EAAA;aAClD,IAAE,CAAA,EAAA,GAAG,qBAAH,CAAyB,EAAA;AAElD,IAAA,IAAoB,OAAO,GAAA;QACzB,OAAO,IAAI,CAAC,kBAAkB,CAAC;KAChC;IAED,IAAoB,OAAO,CAAC,WAAgC,EAAA;AAC1D,QAAA,IAAI,CAAC,kBAAkB,GAAG,WAAW,CAAC;KACvC;AAQD,IAAA,WAAA,GAAA;QACE,KAAK,CACH,IAAI,MAAM,CAAC;AACT,YAAA,oBAAoB,EAAE,IAAI;AAC3B,SAAA,CAAC,CACH,CAAC;QAXG,IAAkB,CAAA,kBAAA,GAAG,IAAI,eAAe,CAC7C,IAAI,CAAC,OAAO,CACb,CAAC;AAEQ,QAAA,IAAA,CAAA,kBAAkB,GAAG,mBAAmB,CAAC,EAAE,CAAC;KAQrD;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CAAA;8GAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAApB,oBAAoB,EAAA,CAAA,CAAA,EAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EARpB,SAAA,EAAA;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,cAAc;AACvB,gBAAA,QAAQ,EAAE,qBAAqB;AAChC,aAAA;YACD,wBAAwB;AACzB,SAAA,EAAA,CAAA,CAAA,EAAA;;2FAEU,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAThC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,cAAc;AACvB,4BAAA,QAAQ,EAAE,qBAAqB;AAChC,yBAAA;wBACD,wBAAwB;AACzB,qBAAA;AACF,iBAAA,CAAA;;;ACjBD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"skyux-core-testing.mjs","sources":["../../../../../libs/components/core/testing/src/mock-media-query.service.ts","../../../../../libs/components/core/testing/src/mock-ui-config.service.ts","../../../../../libs/components/core/testing/src/core-testing.module.ts","../../../../../libs/components/core/testing/src/help/help-testing-controller.ts","../../../../../libs/components/core/testing/src/help/help-testing.service.ts","../../../../../libs/components/core/testing/src/help/help-testing.module.ts","../../../../../libs/components/core/testing/src/media-query/breakpoint-observer-testing.ts","../../../../../libs/components/core/testing/src/media-query/media-query-testing-controller.ts","../../../../../libs/components/core/testing/src/media-query/provide-media-query-testing.ts","../../../../../libs/components/core/testing/src/shared/component-harness.ts","../../../../../libs/components/core/testing/src/shared/queryable-component-harness.ts","../../../../../libs/components/core/testing/src/overlay/overlay-harness.ts","../../../../../libs/components/core/testing/src/resize-observer-mock.ts","../../../../../libs/components/core/testing/src/shared/harness-utility.ts","../../../../../libs/components/core/testing/src/shared/input-harness.ts","../../../../../libs/components/core/testing/src/skyux-core-testing.ts"],"sourcesContent":["/* eslint-disable @nx/enforce-module-boundaries */\nimport { Injectable, NgZone } from '@angular/core';\nimport {\n SkyMediaBreakpoints,\n SkyMediaQueryListener,\n SkyMediaQueryService,\n} from '@skyux/core';\n\nimport { BehaviorSubject, Subscription } from 'rxjs';\n\n/**\n * @internal\n * @deprecated Use `provideSkyMediaQueryTesting()` coupled with `SkyMediaQueryTestingController`.\n */\n@Injectable()\nexport class MockSkyMediaQueryService extends SkyMediaQueryService {\n public static override xs = '(max-width: 767px)';\n public static override sm = '(min-width: 768px) and (max-width: 991px)';\n public static override md = '(min-width: 992px) and (max-width: 1199px)';\n public static override lg = '(min-width: 1200px)';\n\n public override get current(): SkyMediaBreakpoints {\n return this.currentBreakpoints;\n }\n\n public override set current(breakpoints: SkyMediaBreakpoints) {\n this.currentBreakpoints = breakpoints;\n }\n\n public currentMockSubject = new BehaviorSubject<SkyMediaBreakpoints>(\n this.current,\n );\n\n protected currentBreakpoints = SkyMediaBreakpoints.md;\n\n constructor() {\n super(\n new NgZone({\n enableLongStackTrace: true,\n }),\n );\n }\n\n public override subscribe(listener: SkyMediaQueryListener): Subscription {\n return this.currentMockSubject.subscribe({\n next: (breakpoints: SkyMediaBreakpoints) => {\n listener(breakpoints);\n },\n });\n }\n\n public fire(args: SkyMediaBreakpoints): void {\n this.currentBreakpoints = args;\n this.currentMockSubject.next(this.currentBreakpoints);\n }\n\n /* istanbul ignore next */\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n public override destroy(): void {}\n}\n","import { Injectable } from '@angular/core';\nimport { SkyUIConfigService } from '@skyux/core';\n\nimport { Observable, of as observableOf } from 'rxjs';\n\n/**\n * @internal\n */\n@Injectable()\nexport class MockSkyUIConfigService extends SkyUIConfigService {\n public override getConfig(key: string, defaultConfig?: any): Observable<any> {\n switch (key) {\n case 'defaultSettings':\n return observableOf(defaultConfig);\n case 'badData':\n return observableOf({ invalidProperty: 'invalidData' });\n default: {\n return observableOf({\n settings: {\n userSettings: {\n singleColumn: {\n tiles: [\n {\n id: 'tile-1',\n isCollapsed: true,\n },\n {\n id: 'tile-2',\n isCollapsed: true,\n },\n ],\n },\n multiColumn: [\n {\n tiles: [\n {\n id: 'tile-2',\n isCollapsed: true,\n },\n ],\n },\n {\n tiles: [\n {\n id: 'tile-1',\n isCollapsed: true,\n },\n ],\n },\n ],\n },\n defaultSettings: ['tile-1', 'tile-2'],\n },\n });\n }\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { SkyMediaQueryService, SkyUIConfigService } from '@skyux/core';\n\nimport { MockSkyMediaQueryService } from './mock-media-query.service';\nimport { MockSkyUIConfigService } from './mock-ui-config.service';\n\n/**\n * @internal\n */\n@NgModule({\n providers: [\n { provide: SkyMediaQueryService, useClass: MockSkyMediaQueryService },\n {\n provide: SkyUIConfigService,\n useClass: MockSkyUIConfigService,\n },\n ],\n})\nexport class SkyCoreTestingModule {}\n","import { inject } from '@angular/core';\n// eslint-disable-next-line @nx/enforce-module-boundaries\nimport { SkyHelpService } from '@skyux/core';\n\nimport { SkyHelpTestingService } from './help-testing.service';\n\nfunction formatHelpKeyForError(helpKey: string | undefined): string {\n return helpKey === undefined ? 'undefined' : `'${helpKey}'`;\n}\n\n/**\n * Provides methods for validating global help in unit tests.\n */\nexport class SkyHelpTestingController {\n #helpSvc = inject(SkyHelpService) as SkyHelpTestingService;\n\n /**\n * Validates the current help key and throws an error if the current help key does not match the expected help key.\n * @param expectedHelpKey The expected help key.\n */\n public expectCurrentHelpKey(expectedHelpKey: string | undefined): void {\n const currentHelpKey = this.#helpSvc.getCurrentHelpKey();\n\n if (currentHelpKey !== expectedHelpKey) {\n throw new Error(\n `Expected current help key to be ${formatHelpKeyForError(expectedHelpKey)}, but the current help key is ${formatHelpKeyForError(currentHelpKey)}.`,\n );\n }\n }\n\n /**\n * Close the current help.\n */\n public closeHelp(): void {\n this.#helpSvc.closeHelp();\n }\n}\n","import { Injectable } from '@angular/core';\n// eslint-disable-next-line @nx/enforce-module-boundaries\nimport {\n SkyHelpOpenArgs,\n SkyHelpService,\n SkyHelpUpdateArgs,\n} from '@skyux/core';\n\nimport { Observable, of } from 'rxjs';\n\n/**\n * @internal\n */\n@Injectable()\nexport class SkyHelpTestingService extends SkyHelpService {\n public override get widgetReadyStateChange(): Observable<boolean> {\n return of(true);\n }\n\n #currentHelpKey: string | undefined;\n #currentPageHelpKey: string | undefined;\n\n public override openHelp(args?: SkyHelpOpenArgs): void {\n this.#currentHelpKey = args?.helpKey;\n }\n\n public override updateHelp(args: SkyHelpUpdateArgs): void {\n if ('pageDefaultHelpKey' in args) {\n this.#currentPageHelpKey = args.pageDefaultHelpKey;\n }\n\n if ('helpKey' in args) {\n this.#currentHelpKey = args.helpKey;\n }\n }\n\n public getCurrentHelpKey(): string | undefined {\n return this.#currentHelpKey || this.#currentPageHelpKey;\n }\n\n public closeHelp(): void {\n this.#currentHelpKey = undefined;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { SkyHelpService } from '@skyux/core';\n\nimport { SkyHelpTestingController } from './help-testing-controller';\nimport { SkyHelpTestingService } from './help-testing.service';\n\n/**\n * Mocks SkyHelpService to enable testing of global help.\n */\n@NgModule({\n providers: [\n {\n provide: SkyHelpService,\n useClass: SkyHelpTestingService,\n },\n SkyHelpTestingController,\n ],\n})\nexport class SkyHelpTestingModule {}\n","import { Injectable } from '@angular/core';\nimport { SkyBreakpoint, SkyBreakpointObserver } from '@skyux/core';\n\nimport { Observable, ReplaySubject } from 'rxjs';\n\n/**\n * Overrides the media and container breakpoint observers for testing.\n * @internal\n */\n@Injectable()\nexport class SkyBreakpointObserverTesting implements SkyBreakpointObserver {\n public get breakpointChange(): Observable<SkyBreakpoint> {\n return this.#breakpointChangeObs;\n }\n\n #breakpointChange = new ReplaySubject<SkyBreakpoint>(1);\n #breakpointChangeObs = this.#breakpointChange.asObservable();\n\n public destroy(): void {\n this.#breakpointChange.complete();\n }\n\n public setBreakpoint(breakpoint: SkyBreakpoint): void {\n this.#breakpointChange.next(breakpoint);\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { SkyBreakpoint } from '@skyux/core';\n\nimport { SkyBreakpointObserverTesting } from './breakpoint-observer-testing';\n\n/**\n * A controller to be injected into tests, which mocks the\n * `SkyMediaQueryService` and handles interactions with breakpoints.\n */\n@Injectable()\nexport class SkyMediaQueryTestingController {\n readonly #observer = inject(SkyBreakpointObserverTesting);\n\n /**\n * Emits the provided breakpoint to all subscribers.\n */\n public setBreakpoint(breakpoint: SkyBreakpoint): void {\n this.#observer.setBreakpoint(breakpoint);\n }\n}\n","/* eslint-disable @nx/enforce-module-boundaries */\nimport { Provider } from '@angular/core';\nimport {\n SKY_BREAKPOINT_OBSERVER,\n SkyContainerBreakpointObserver,\n SkyMediaBreakpointObserver,\n SkyMediaQueryService,\n} from '@skyux/core';\n\nimport { SkyBreakpointObserverTesting } from './breakpoint-observer-testing';\nimport { SkyMediaQueryTestingController } from './media-query-testing-controller';\n\n/**\n * Adds mocks to allow interactions with breakpoints in tests.\n */\nexport function provideSkyMediaQueryTesting(): Provider[] {\n return [\n SkyMediaQueryService,\n SkyBreakpointObserverTesting,\n SkyMediaQueryTestingController,\n {\n provide: SkyContainerBreakpointObserver,\n useExisting: SkyBreakpointObserverTesting,\n },\n {\n provide: SkyMediaBreakpointObserver,\n useExisting: SkyBreakpointObserverTesting,\n },\n {\n provide: SKY_BREAKPOINT_OBSERVER,\n useExisting: SkyBreakpointObserverTesting,\n },\n ];\n}\n","import {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n} from '@angular/cdk/testing';\n\nimport { SkyHarnessFilters } from './harness-filters';\n\n/**\n * @internal\n */\nexport abstract class SkyComponentHarness extends ComponentHarness {\n protected static getDataSkyIdPredicate<T extends SkyComponentHarness>(\n this: ComponentHarnessConstructor<T>,\n filters: SkyHarnessFilters,\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, filters).addOption(\n 'dataSkyId',\n filters.dataSkyId,\n (harness, text) =>\n HarnessPredicate.stringMatches(harness.#getSkyId(), text),\n );\n }\n\n async #getSkyId(): Promise<string | null> {\n return (await this.host()).getAttribute('data-sky-id');\n }\n}\n","import {\n ComponentHarness,\n HarnessQuery,\n TestElement,\n} from '@angular/cdk/testing';\n\nimport { SkyComponentHarness } from './component-harness';\n\n/**\n * @internal\n */\nexport abstract class SkyQueryableComponentHarness extends SkyComponentHarness {\n /**\n * Returns a child harness or throws an error if not found.\n */\n public async queryHarness<T extends ComponentHarness>(\n query: HarnessQuery<T>,\n ): Promise<T> {\n return this.locatorFor(query)();\n }\n\n /**\n * Returns a child harness or null if not found.\n */\n public async queryHarnessOrNull<T extends ComponentHarness>(\n query: HarnessQuery<T>,\n ): Promise<T | null> {\n return this.locatorForOptional(query)();\n }\n\n /**\n * Returns child harnesses.\n */\n public async queryHarnesses<T extends ComponentHarness>(\n harness: HarnessQuery<T>,\n ): Promise<T[]> {\n return this.locatorForAll(harness)();\n }\n\n /**\n * Returns a child test element or throws an error if not found.\n */\n public async querySelector(selector: string): Promise<TestElement | null> {\n return this.locatorFor(selector)();\n }\n\n /**\n * Returns a child test element or null if not found.\n */\n public async querySelectorOrNull(\n selector: string,\n ): Promise<TestElement | null> {\n return this.locatorForOptional(selector)();\n }\n\n /**\n * Returns child test elements.\n */\n public async querySelectorAll(selector: string): Promise<TestElement[]> {\n return this.locatorForAll(selector)();\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\n\nimport { SkyQueryableComponentHarness } from '../shared/queryable-component-harness';\n\nimport { SkyOverlayHarnessFilters } from './overlay-harness-filters';\n\n/**\n * Harness for interacting with an overlay component in tests.\n * @internal\n */\nexport class SkyOverlayHarness extends SkyQueryableComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-overlay';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyOverlayHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyOverlayHarnessFilters,\n ): HarnessPredicate<SkyOverlayHarness> {\n return new HarnessPredicate(SkyOverlayHarness, filters);\n }\n}\n","/* istanbul ignore file: these are used in @skyux/core */\n\n/**\n * @internal\n */\nexport const mockResizeObserverEntry: ResizeObserverEntry = {\n target: {} as Element,\n borderBoxSize: [],\n contentBoxSize: [],\n contentRect: {\n width: 20,\n height: 20,\n x: 20,\n y: 20,\n top: 20,\n bottom: 20,\n left: 20,\n right: 20,\n toJSON: () => 'true',\n } as DOMRectReadOnly,\n devicePixelContentBoxSize: [],\n};\n\nconst defaultCallback: ResizeObserverCallback = (\n entries: ResizeObserverEntry[],\n observer: ResizeObserver,\n) => {};\n\n/**\n * @internal\n */\nexport const mockResizeObserverHandle = {\n callback: defaultCallback,\n emit: (entries: ResizeObserverEntry[], observer?: ResizeObserver) => {\n mockResizeObserverHandle.callback(entries, observer!);\n },\n};\n\n/**\n * @internal\n */\nexport function mockResizeObserver() {\n (window as any).requestAnimationFrame = (callback: () => void): number => {\n callback();\n return 0;\n };\n (window as any).cancelAnimationFrame = (_: number): void => undefined;\n window.ResizeObserver = class {\n constructor(callback: ResizeObserverCallback) {\n mockResizeObserverHandle.callback = callback;\n }\n\n public disconnect() {}\n\n public observe(target: Element, options?: ResizeObserverOptions) {}\n\n public unobserve(element: HTMLElement) {}\n };\n}\n","import { TestElement } from '@angular/cdk/testing';\n\nexport class SkyHarnessUtility {\n public static async getBackgroundImageUrl(\n el: TestElement,\n ): Promise<string | undefined> {\n const backgroundImage = await el.getCssValue('background-image');\n\n return /url\\(('|\")([^'\"]+)('|\")\\)/gi.exec(backgroundImage)?.[2];\n }\n}\n","import { ComponentHarness } from '@angular/cdk/testing';\n\n/**\n * Harness used to interact with native input elements in tests.\n * @internal\n */\nexport class SkyInputHarness extends ComponentHarness {\n /**\n * Blurs the input.\n */\n public async blur(): Promise<void> {\n return (await this.host()).blur();\n }\n\n /**\n * Clears the input value.\n */\n public async clear(): Promise<void> {\n return (await this.host()).clear();\n }\n\n /**\n * Focuses the input.\n */\n public async focus(): Promise<void> {\n return (await this.host()).focus();\n }\n\n /**\n * Gets the value of the input.\n */\n public async getValue(): Promise<string> {\n return (await this.host()).getProperty('value');\n }\n\n /**\n * Whether the input is disabled.\n */\n public async isDisabled(): Promise<boolean> {\n const disabled = await (await this.host()).getAttribute('disabled');\n return disabled !== null;\n }\n\n /**\n * Whether the input is focused.\n */\n public async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n\n /**\n * Sets the value of the input. The value will be set by simulating key\n * presses that correspond to the given value.\n */\n public async setValue(value: string): Promise<void> {\n const inputEl = await this.host();\n await inputEl.clear();\n\n // We don't want to send keys for the value if the value is an empty\n // string in order to clear the value. Sending keys with an empty string\n // still results in unnecessary focus events.\n if (value) {\n await inputEl.sendKeys(value);\n }\n\n // Some input types won't respond to key presses (e.g. `color`) so to be sure that the\n // value is set, we also set the property after the keyboard sequence. Note that we don't\n // want to do it before, because it can cause the value to be entered twice.\n await inputEl.setInputValue(value);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["observableOf"],"mappings":";;;;;;AAAA;AAUA;;;AAGG;AAEG,MAAO,wBAAyB,SAAQ,oBAAoB,CAAA;aACzC,IAAE,CAAA,EAAA,GAAG,oBAAH,CAAwB,EAAA;aAC1B,IAAE,CAAA,EAAA,GAAG,2CAAH,CAA+C,EAAA;aACjD,IAAE,CAAA,EAAA,GAAG,4CAAH,CAAgD,EAAA;aAClD,IAAE,CAAA,EAAA,GAAG,qBAAH,CAAyB,EAAA;AAElD,IAAA,IAAoB,OAAO,GAAA;QACzB,OAAO,IAAI,CAAC,kBAAkB,CAAC;KAChC;IAED,IAAoB,OAAO,CAAC,WAAgC,EAAA;AAC1D,QAAA,IAAI,CAAC,kBAAkB,GAAG,WAAW,CAAC;KACvC;AAQD,IAAA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