@skyux/indicators 8.0.0-alpha.5 → 8.0.0-alpha.7

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.
Files changed (62) hide show
  1. package/documentation.json +1149 -576
  2. package/esm2020/lib/modules/alert/alert.component.mjs +17 -17
  3. package/esm2020/lib/modules/alert/alert.module.mjs +4 -4
  4. package/esm2020/lib/modules/chevron/chevron.component.mjs +3 -3
  5. package/esm2020/lib/modules/chevron/chevron.module.mjs +4 -4
  6. package/esm2020/lib/modules/expansion-indicator/expansion-indicator.component.mjs +3 -3
  7. package/esm2020/lib/modules/expansion-indicator/expansion-indicator.module.mjs +4 -4
  8. package/esm2020/lib/modules/help-inline/help-inline.component.mjs +3 -3
  9. package/esm2020/lib/modules/help-inline/help-inline.module.mjs +4 -4
  10. package/esm2020/lib/modules/icon/icon-class-list.pipe.mjs +3 -3
  11. package/esm2020/lib/modules/icon/icon-resolver.service.mjs +3 -3
  12. package/esm2020/lib/modules/icon/icon-stack.component.mjs +4 -4
  13. package/esm2020/lib/modules/icon/icon.component.mjs +4 -4
  14. package/esm2020/lib/modules/icon/icon.module.mjs +4 -4
  15. package/esm2020/lib/modules/key-info/key-info-label.component.mjs +3 -3
  16. package/esm2020/lib/modules/key-info/key-info-value.component.mjs +3 -3
  17. package/esm2020/lib/modules/key-info/key-info.component.mjs +3 -3
  18. package/esm2020/lib/modules/key-info/key-info.module.mjs +4 -4
  19. package/esm2020/lib/modules/label/label.component.mjs +15 -15
  20. package/esm2020/lib/modules/label/label.module.mjs +4 -4
  21. package/esm2020/lib/modules/shared/sky-indicators-resources.module.mjs +4 -4
  22. package/esm2020/lib/modules/status-indicator/status-indicator.component.mjs +14 -14
  23. package/esm2020/lib/modules/status-indicator/status-indicator.module.mjs +4 -4
  24. package/esm2020/lib/modules/text-highlight/text-highlight.directive.mjs +14 -14
  25. package/esm2020/lib/modules/text-highlight/text-highlight.module.mjs +4 -4
  26. package/esm2020/lib/modules/tokens/token.component.mjs +22 -22
  27. package/esm2020/lib/modules/tokens/tokens.component.mjs +52 -52
  28. package/esm2020/lib/modules/tokens/tokens.module.mjs +4 -4
  29. package/esm2020/lib/modules/wait/wait-adapter.service.mjs +3 -3
  30. package/esm2020/lib/modules/wait/wait-page.component.mjs +3 -3
  31. package/esm2020/lib/modules/wait/wait.component.mjs +21 -21
  32. package/esm2020/lib/modules/wait/wait.module.mjs +4 -4
  33. package/esm2020/lib/modules/wait/wait.service.mjs +16 -44
  34. package/esm2020/testing/alert-fixture.mjs +6 -6
  35. package/esm2020/testing/icon/icon-harness-filters.mjs +2 -0
  36. package/esm2020/testing/icon/icon-harness.mjs +104 -0
  37. package/esm2020/testing/label-fixture.mjs +6 -6
  38. package/esm2020/testing/public-api.mjs +3 -1
  39. package/esm2020/testing/wait-fixture.mjs +6 -6
  40. package/fesm2015/skyux-indicators-testing.mjs +132 -16
  41. package/fesm2015/skyux-indicators-testing.mjs.map +1 -1
  42. package/fesm2015/skyux-indicators.mjs +248 -300
  43. package/fesm2015/skyux-indicators.mjs.map +1 -1
  44. package/fesm2020/skyux-indicators-testing.mjs +118 -16
  45. package/fesm2020/skyux-indicators-testing.mjs.map +1 -1
  46. package/fesm2020/skyux-indicators.mjs +248 -298
  47. package/fesm2020/skyux-indicators.mjs.map +1 -1
  48. package/lib/modules/icon/icon-stack.component.d.ts +1 -1
  49. package/lib/modules/icon/icon.component.d.ts +4 -2
  50. package/lib/modules/icon/types/icon-type.d.ts +1 -1
  51. package/lib/modules/icon/types/icon-variant-type.d.ts +1 -1
  52. package/lib/modules/key-info/key-info-layout-type.d.ts +1 -1
  53. package/lib/modules/label/label-type.d.ts +1 -1
  54. package/lib/modules/shared/indicator-description-type.d.ts +1 -1
  55. package/lib/modules/shared/indicator-icon-type.d.ts +1 -1
  56. package/lib/modules/wait/wait.service.d.ts +1 -5
  57. package/package.json +11 -11
  58. package/testing/icon/icon-harness-filters.d.ts +6 -0
  59. package/testing/icon/icon-harness.d.ts +38 -0
  60. package/testing/public-api.d.ts +2 -0
  61. package/esm2020/lib/modules/wait/wait-page-adapter.service.mjs +0 -26
  62. package/lib/modules/wait/wait-page-adapter.service.d.ts +0 -10
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  export declare class SkyIconStackComponent {
7
7
  /**
8
8
  * The size of the icon using
9
- * [Font Awesome sizes](https://fontawesome.com/how-to-use/on-the-web/styling/sizing-icons).
9
+ * [Font Awesome sizes](https://fontawesome.com/v4/examples/).
10
10
  */
11
11
  size: string | undefined;
12
12
  /**
@@ -18,11 +18,13 @@ export declare class SkyIconComponent {
18
18
  iconType: SkyIconType | undefined;
19
19
  /**
20
20
  * The size of the icon using
21
- * [Font Awesome sizes](https://fontawesome.com/how-to-use/on-the-web/styling/sizing-icons). Do not prefix the size with `fa-`.
21
+ * [Font Awesome sizes](https://fontawesome.com/v4/examples/). Do not prefix the size with `fa-`.
22
22
  */
23
23
  size: string | undefined;
24
24
  /**
25
- * Whether the icon has a fixed width.
25
+ * Whether to enforce a fixed width based on icon size. By default, icons of a specified size share a
26
+ * consistent height, but their widths vary and can throw off vertical alignment. Use a fixed width when
27
+ * you stack icons vertically, such as in lists.
26
28
  * @default false
27
29
  */
28
30
  fixedWidth: boolean | undefined;
@@ -1 +1 @@
1
- export declare type SkyIconType = 'fa' | 'skyux';
1
+ export type SkyIconType = 'fa' | 'skyux';
@@ -1 +1 @@
1
- export declare type SkyIconVariantType = 'line' | 'solid';
1
+ export type SkyIconVariantType = 'line' | 'solid';
@@ -1 +1 @@
1
- export declare type SkyKeyInfoLayoutType = 'horizontal' | 'vertical';
1
+ export type SkyKeyInfoLayoutType = 'horizontal' | 'vertical';
@@ -1 +1 @@
1
- export declare type SkyLabelType = 'danger' | 'info' | 'success' | 'warning';
1
+ export type SkyLabelType = 'danger' | 'info' | 'success' | 'warning';
@@ -1 +1 @@
1
- export declare type SkyIndicatorDescriptionType = 'attention' | 'caution' | 'completed' | 'custom' | 'danger' | 'error' | 'important-info' | 'important-warning' | 'none' | 'success' | 'warning';
1
+ export type SkyIndicatorDescriptionType = 'attention' | 'caution' | 'completed' | 'custom' | 'danger' | 'error' | 'important-info' | 'important-warning' | 'none' | 'success' | 'warning';
@@ -1 +1 @@
1
- export declare type SkyIndicatorIconType = 'danger' | 'info' | 'success' | 'warning';
1
+ export type SkyIndicatorIconType = 'danger' | 'info' | 'success' | 'warning';
@@ -1,11 +1,7 @@
1
- import { ApplicationRef, ComponentFactoryResolver } from '@angular/core';
2
- import { SkyAppWindowRef, SkyDynamicComponentService } from '@skyux/core';
3
1
  import { Observable } from 'rxjs';
4
- import { SkyWaitPageAdapterService } from './wait-page-adapter.service';
5
2
  import * as i0 from "@angular/core";
6
3
  export declare class SkyWaitService {
7
4
  #private;
8
- constructor(resolver: ComponentFactoryResolver, appRef: ApplicationRef, waitAdapter: SkyWaitPageAdapterService, windowSvc: SkyAppWindowRef, dynamicComponentService: SkyDynamicComponentService);
9
5
  /**
10
6
  * Starts a blocking page wait on the page.
11
7
  */
@@ -41,6 +37,6 @@ export declare class SkyWaitService {
41
37
  * asynchronous event completes.
42
38
  */
43
39
  nonBlockingWrap<T>(observable: Observable<T>): Observable<T>;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyWaitService, [null, null, null, null, { optional: true; }]>;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyWaitService, never>;
45
41
  static ɵprov: i0.ɵɵInjectableDeclaration<SkyWaitService>;
46
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/indicators",
3
- "version": "8.0.0-alpha.5",
3
+ "version": "8.0.0-alpha.7",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -40,18 +40,18 @@
40
40
  }
41
41
  },
42
42
  "peerDependencies": {
43
- "@angular/animations": "^15.1.4",
44
- "@angular/cdk": "^15.1.4",
45
- "@angular/common": "^15.1.4",
46
- "@angular/core": "^15.1.4",
47
- "@angular/platform-browser": "^15.1.4",
48
- "@skyux-sdk/testing": "8.0.0-alpha.5",
49
- "@skyux/core": "8.0.0-alpha.5",
50
- "@skyux/i18n": "8.0.0-alpha.5",
51
- "@skyux/theme": "8.0.0-alpha.5"
43
+ "@angular/animations": "^15.2.1",
44
+ "@angular/cdk": "^15.2.1",
45
+ "@angular/common": "^15.2.1",
46
+ "@angular/core": "^15.2.1",
47
+ "@angular/platform-browser": "^15.2.1",
48
+ "@skyux-sdk/testing": "8.0.0-alpha.7",
49
+ "@skyux/core": "8.0.0-alpha.7",
50
+ "@skyux/i18n": "8.0.0-alpha.7",
51
+ "@skyux/theme": "8.0.0-alpha.7"
52
52
  },
53
53
  "dependencies": {
54
- "tslib": "^2.3.1"
54
+ "tslib": "^2.5.0"
55
55
  },
56
56
  "module": "fesm2015/skyux-indicators.mjs",
57
57
  "es2020": "fesm2020/skyux-indicators.mjs",
@@ -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 SkyIconHarness instances.
4
+ */
5
+ export interface SkyIconHarnessFilters extends SkyHarnessFilters {
6
+ }
@@ -0,0 +1,38 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyComponentHarness } from '@skyux/core/testing';
3
+ import { SkyIconHarnessFilters } from './icon-harness-filters';
4
+ /**
5
+ * Harness for interacting with an icon component in tests.
6
+ */
7
+ export declare class SkyIconHarness 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
+ * `SkyIconHarness` that meets certain criteria.
16
+ */
17
+ static with(filters: SkyIconHarnessFilters): HarnessPredicate<SkyIconHarness>;
18
+ /**
19
+ * Gets the icon name.
20
+ */
21
+ getIconName(): Promise<string | undefined>;
22
+ /**
23
+ * Gets the icon size.
24
+ */
25
+ getIconSize(): Promise<string | undefined>;
26
+ /**
27
+ * Gets the icon type.
28
+ */
29
+ getIconType(): Promise<string>;
30
+ /**
31
+ * Gets if the icon is a variant.
32
+ */
33
+ getVariant(): Promise<string | undefined>;
34
+ /**
35
+ * Whether the icon has fixed width.
36
+ */
37
+ isFixedWidth(): Promise<boolean>;
38
+ }
@@ -1,5 +1,7 @@
1
1
  export * from './alert/alert-harness';
2
2
  export * from './alert/alert-harness-filters';
3
+ export * from './icon/icon-harness';
4
+ export * from './icon/icon-harness-filters';
3
5
  export * from './key-info/key-info-harness';
4
6
  export * from './key-info/key-info-harness-filters';
5
7
  export * from './label/label-harness';
@@ -1,26 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @internal
5
- */
6
- // TODO: Remove when dynamic component service is no longer optional in a future breaking change.
7
- export class SkyWaitPageAdapterService {
8
- addPageWaitEl() {
9
- document.body.appendChild(document.createElement('sky-wait-page'));
10
- }
11
- removePageWaitEl() {
12
- const waitEl = document.querySelector('sky-wait-page');
13
- if (waitEl) {
14
- document.body.removeChild(waitEl);
15
- }
16
- }
17
- }
18
- SkyWaitPageAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SkyWaitPageAdapterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19
- SkyWaitPageAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SkyWaitPageAdapterService, providedIn: 'root' });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SkyWaitPageAdapterService, decorators: [{
21
- type: Injectable,
22
- args: [{
23
- providedIn: 'root',
24
- }]
25
- }] });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FpdC1wYWdlLWFkYXB0ZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3Vy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xuZXhwb3J0IGNsYXNzIFNreVdhaXRQYWdlQWRhcHRlclNlcnZpY2Uge1xuICBwdWJsaWMgYWRkUGFnZVdhaXRFbCgpOiB2b2lkIHtcbiAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ3NreS13YWl0LXBhZ2UnKSk7XG4gIH1cblxuICBwdWJsaWMgcmVtb3ZlUGFnZVdhaXRFbCgpOiB2b2lkIHtcbiAgICBjb25zdCB3YWl0RWwgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCdza3ktd2FpdC1wYWdlJyk7XG4gICAgaWYgKHdhaXRFbCkge1xuICAgICAgZG9jdW1lbnQuYm9keS5yZW1vdmVDaGlsZCh3YWl0RWwpO1xuICAgIH1cbiAgfVxufVxuIl19
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * @internal
4
- */
5
- export declare class SkyWaitPageAdapterService {
6
- addPageWaitEl(): void;
7
- removePageWaitEl(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyWaitPageAdapterService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<SkyWaitPageAdapterService>;
10
- }