@skyux/indicators 7.2.0 → 7.4.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.
@@ -1,11 +1,11 @@
1
1
  import { ApplicationRef, ComponentFactoryResolver } from '@angular/core';
2
- import { SkyAppWindowRef } from '@skyux/core';
2
+ import { SkyAppWindowRef, SkyDynamicComponentService } from '@skyux/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { SkyWaitPageAdapterService } from './wait-page-adapter.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SkyWaitService {
7
7
  #private;
8
- constructor(resolver: ComponentFactoryResolver, appRef: ApplicationRef, waitAdapter: SkyWaitPageAdapterService, windowSvc: SkyAppWindowRef);
8
+ constructor(resolver: ComponentFactoryResolver, appRef: ApplicationRef, waitAdapter: SkyWaitPageAdapterService, windowSvc: SkyAppWindowRef, dynamicComponentService: SkyDynamicComponentService);
9
9
  /**
10
10
  * Starts a blocking page wait on the page.
11
11
  */
@@ -41,6 +41,6 @@ export declare class SkyWaitService {
41
41
  * asynchronous event completes.
42
42
  */
43
43
  nonBlockingWrap<T>(observable: Observable<T>): Observable<T>;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyWaitService, never>;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyWaitService, [null, null, null, null, { optional: true; }]>;
45
45
  static ɵprov: i0.ɵɵInjectableDeclaration<SkyWaitService>;
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/indicators",
3
- "version": "7.2.0",
3
+ "version": "7.4.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -45,10 +45,10 @@
45
45
  "@angular/common": "^14.2.11",
46
46
  "@angular/core": "^14.2.11",
47
47
  "@angular/platform-browser": "^14.2.11",
48
- "@skyux-sdk/testing": "7.2.0",
49
- "@skyux/core": "7.2.0",
50
- "@skyux/i18n": "7.2.0",
51
- "@skyux/theme": "7.2.0"
48
+ "@skyux-sdk/testing": "7.4.0",
49
+ "@skyux/core": "7.4.0",
50
+ "@skyux/i18n": "7.4.0",
51
+ "@skyux/theme": "7.4.0"
52
52
  },
53
53
  "dependencies": {
54
54
  "tslib": "^2.3.1"
@@ -8,6 +8,8 @@ export * from './tokens/token-harness';
8
8
  export * from './tokens/token-harness-filters';
9
9
  export * from './tokens/tokens-harness';
10
10
  export * from './tokens/tokens-harness-filters';
11
+ export * from './wait/wait-harness';
12
+ export * from './wait/wait-harness-filters';
11
13
  export * from './alert-fixture';
12
14
  export * from './label-fixture';
13
15
  export * from './wait-fixture';
@@ -0,0 +1,6 @@
1
+ import { SkyHarnessFilters } from '@skyux/core/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of SkyAlertHarness instances.
4
+ */
5
+ export interface SkyWaitHarnessFilters extends SkyHarnessFilters {
6
+ }
@@ -0,0 +1,34 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyComponentHarness } from '@skyux/core/testing';
3
+ import { SkyWaitHarnessFilters } from './wait-harness-filters';
4
+ /**
5
+ * Harness for interacting with a wait component in tests.
6
+ */
7
+ export declare class SkyWaitHarness extends SkyComponentHarness {
8
+ #private;
9
+ /**
10
+ * @internal
11
+ */
12
+ static hostSelector: string;
13
+ /**
14
+ * Gets a `HarnessPredicate` that can be used to search for a
15
+ * `SkyWaitHarness` that meets certain criteria.
16
+ */
17
+ static with(filters: SkyWaitHarnessFilters): HarnessPredicate<SkyWaitHarness>;
18
+ /**
19
+ * Gets the ARIA label for the wait component or throws an error if not waiting.
20
+ */
21
+ getAriaLabel(): Promise<string>;
22
+ /**
23
+ * Gets the waiting state of the wait component.
24
+ */
25
+ isWaiting(): Promise<boolean>;
26
+ /**
27
+ * Gets the full page state of the wait component.
28
+ */
29
+ isFullPage(): Promise<boolean>;
30
+ /**
31
+ * Gets the blocking state of the wait component.
32
+ */
33
+ isNonBlocking(): Promise<boolean>;
34
+ }