@skyux/indicators 8.0.0-alpha.2 → 8.0.0-alpha.21

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 (86) hide show
  1. package/documentation.json +3435 -2037
  2. package/esm2020/lib/modules/alert/alert.component.mjs +38 -20
  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-aria-expanded.pipe.mjs +16 -0
  9. package/esm2020/lib/modules/help-inline/help-inline.component.mjs +14 -7
  10. package/esm2020/lib/modules/help-inline/help-inline.module.mjs +7 -6
  11. package/esm2020/lib/modules/icon/icon-class-list.pipe.mjs +14 -15
  12. package/esm2020/lib/modules/icon/icon-resolver.service.mjs +41 -25
  13. package/esm2020/lib/modules/icon/icon-stack.component.mjs +10 -6
  14. package/esm2020/lib/modules/icon/icon.component.mjs +10 -6
  15. package/esm2020/lib/modules/icon/icon.module.mjs +6 -7
  16. package/esm2020/lib/modules/icon/types/icon-resolved.mjs +2 -0
  17. package/esm2020/lib/modules/key-info/key-info-label.component.mjs +3 -3
  18. package/esm2020/lib/modules/key-info/key-info-value.component.mjs +3 -3
  19. package/esm2020/lib/modules/key-info/key-info.component.mjs +3 -3
  20. package/esm2020/lib/modules/key-info/key-info.module.mjs +4 -4
  21. package/esm2020/lib/modules/label/label.component.mjs +37 -21
  22. package/esm2020/lib/modules/label/label.module.mjs +4 -4
  23. package/esm2020/lib/modules/shared/sky-indicators-resources.module.mjs +9 -5
  24. package/esm2020/lib/modules/status-indicator/status-indicator.component.mjs +14 -16
  25. package/esm2020/lib/modules/status-indicator/status-indicator.module.mjs +4 -4
  26. package/esm2020/lib/modules/text-highlight/text-highlight.directive.mjs +10 -12
  27. package/esm2020/lib/modules/text-highlight/text-highlight.module.mjs +4 -4
  28. package/esm2020/lib/modules/tokens/token.component.mjs +9 -10
  29. package/esm2020/lib/modules/tokens/tokens.component.mjs +55 -56
  30. package/esm2020/lib/modules/tokens/tokens.module.mjs +4 -4
  31. package/esm2020/lib/modules/wait/wait-adapter.service.mjs +3 -3
  32. package/esm2020/lib/modules/wait/wait-page.component.mjs +3 -3
  33. package/esm2020/lib/modules/wait/wait.component.mjs +64 -33
  34. package/esm2020/lib/modules/wait/wait.module.mjs +4 -4
  35. package/esm2020/lib/modules/wait/wait.service.mjs +16 -44
  36. package/esm2020/testing/alert-fixture.mjs +6 -6
  37. package/esm2020/testing/chevron/chevron-harness.mjs +44 -0
  38. package/esm2020/testing/help-inline/help-inline-harness-filters.mjs +2 -0
  39. package/esm2020/testing/help-inline/help-inline-harness.mjs +31 -0
  40. package/esm2020/testing/icon/icon-harness-filters.mjs +2 -0
  41. package/esm2020/testing/icon/icon-harness.mjs +90 -0
  42. package/esm2020/testing/label-fixture.mjs +6 -6
  43. package/esm2020/testing/public-api.mjs +6 -1
  44. package/esm2020/testing/wait/wait-harness-filters.mjs +1 -1
  45. package/esm2020/testing/wait-fixture.mjs +6 -6
  46. package/fesm2015/skyux-indicators-testing.mjs +199 -16
  47. package/fesm2015/skyux-indicators-testing.mjs.map +1 -1
  48. package/fesm2015/skyux-indicators.mjs +375 -327
  49. package/fesm2015/skyux-indicators.mjs.map +1 -1
  50. package/fesm2020/skyux-indicators-testing.mjs +175 -16
  51. package/fesm2020/skyux-indicators-testing.mjs.map +1 -1
  52. package/fesm2020/skyux-indicators.mjs +374 -323
  53. package/fesm2020/skyux-indicators.mjs.map +1 -1
  54. package/lib/modules/alert/alert.component.d.ts +5 -4
  55. package/lib/modules/help-inline/help-inline-aria-expanded.pipe.d.ts +7 -0
  56. package/lib/modules/help-inline/help-inline.component.d.ts +20 -1
  57. package/lib/modules/help-inline/help-inline.module.d.ts +7 -6
  58. package/lib/modules/icon/icon-class-list.pipe.d.ts +2 -3
  59. package/lib/modules/icon/icon-resolver.service.d.ts +5 -4
  60. package/lib/modules/icon/icon-stack.component.d.ts +3 -1
  61. package/lib/modules/icon/icon.component.d.ts +6 -2
  62. package/lib/modules/icon/icon.module.d.ts +1 -2
  63. package/lib/modules/icon/types/icon-resolved.d.ts +7 -0
  64. package/lib/modules/icon/types/icon-type.d.ts +1 -1
  65. package/lib/modules/icon/types/icon-variant-type.d.ts +1 -1
  66. package/lib/modules/key-info/key-info-layout-type.d.ts +1 -1
  67. package/lib/modules/label/label-type.d.ts +1 -1
  68. package/lib/modules/label/label.component.d.ts +5 -4
  69. package/lib/modules/shared/indicator-description-type.d.ts +1 -1
  70. package/lib/modules/shared/indicator-icon-type.d.ts +1 -1
  71. package/lib/modules/status-indicator/status-indicator.component.d.ts +1 -3
  72. package/lib/modules/text-highlight/text-highlight.directive.d.ts +1 -3
  73. package/lib/modules/tokens/token.component.d.ts +0 -1
  74. package/lib/modules/tokens/tokens.component.d.ts +2 -2
  75. package/lib/modules/wait/wait.component.d.ts +19 -13
  76. package/lib/modules/wait/wait.service.d.ts +1 -5
  77. package/package.json +11 -11
  78. package/testing/chevron/chevron-harness.d.ts +23 -0
  79. package/testing/help-inline/help-inline-harness-filters.d.ts +6 -0
  80. package/testing/help-inline/help-inline-harness.d.ts +22 -0
  81. package/testing/icon/icon-harness-filters.d.ts +6 -0
  82. package/testing/icon/icon-harness.d.ts +38 -0
  83. package/testing/public-api.d.ts +5 -0
  84. package/testing/wait/wait-harness-filters.d.ts +1 -1
  85. package/esm2020/lib/modules/wait/wait-page-adapter.service.mjs +0 -26
  86. package/lib/modules/wait/wait-page-adapter.service.d.ts +0 -10
@@ -1,10 +1,9 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { SkyLibResourcesService } from '@skyux/i18n';
1
+ import { AfterViewChecked, EventEmitter, OnDestroy, OnInit } from '@angular/core';
3
2
  import { SkyIconStackItem } from '../icon/icon-stack-item';
4
3
  import { SkyIndicatorDescriptionType } from '../shared/indicator-description-type';
5
4
  import { SkyIndicatorIconType } from '../shared/indicator-icon-type';
6
5
  import * as i0 from "@angular/core";
7
- export declare class SkyAlertComponent implements OnInit, OnDestroy {
6
+ export declare class SkyAlertComponent implements AfterViewChecked, OnInit, OnDestroy {
8
7
  #private;
9
8
  /**
10
9
  * The style for the alert, which determines the icon and background color.
@@ -27,11 +26,13 @@ export declare class SkyAlertComponent implements OnInit, OnDestroy {
27
26
  * This property is optional but will be required in future versions of SKY UX.
28
27
  */
29
28
  set descriptionType(value: SkyIndicatorDescriptionType | undefined);
29
+ get descriptionType(): SkyIndicatorDescriptionType | undefined;
30
30
  /**
31
31
  * The text to be read by screen readers for users who cannot see
32
32
  * the indicator icon when `descriptionType` is `custom`.
33
33
  */
34
34
  set customDescription(value: string | undefined);
35
+ get customDescription(): string | undefined;
35
36
  /**
36
37
  * Fires when users close the alert.
37
38
  */
@@ -40,8 +41,8 @@ export declare class SkyAlertComponent implements OnInit, OnDestroy {
40
41
  alertTopIcon: SkyIconStackItem | undefined;
41
42
  alertTypeOrDefault: SkyIndicatorIconType;
42
43
  descriptionComputed: string | undefined;
43
- constructor(resources: SkyLibResourcesService);
44
44
  ngOnInit(): void;
45
+ ngAfterViewChecked(): void;
45
46
  ngOnDestroy(): void;
46
47
  close(): void;
47
48
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAlertComponent, never>;
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SkyHelpInlineAriaExpandedPipe implements PipeTransform {
4
+ transform(ariaExpanded: boolean | undefined, ariaControls: string | undefined): boolean | null;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyHelpInlineAriaExpandedPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<SkyHelpInlineAriaExpandedPipe, "skyHelpInlineAriaExpanded", false>;
7
+ }
@@ -1,11 +1,30 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SkyHelpInlineComponent {
4
+ /**
5
+ * The ID of the element that the help inline button controls.
6
+ * This property [supports accessibility rules for disclosures](https://www.w3.org/TR/wai-aria-practices-1.1/#disclosure).
7
+ * For more information about the `aria-controls` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-controls).
8
+ */
9
+ ariaControls: string | undefined;
10
+ /**
11
+ * Whether an element controlled by the help inline button is expanded. When set to `true`, the property will only be applied to the HTML element when the `ariaControls` input is also set.
12
+ * This property [supports accessibility rules for disclosures](https://www.w3.org/TR/wai-aria-practices-1.1/#disclosure).
13
+ * For more information about the `aria-expanded` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-expanded).
14
+ */
15
+ ariaExpanded: boolean | undefined;
16
+ /**
17
+ * The ARIA label for help inline button. This sets the button's `aria-label` to provide a text equivalent for screen readers
18
+ * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
19
+ * For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
20
+ * @default "Show help content"
21
+ */
22
+ ariaLabel: string | undefined;
4
23
  /**
5
24
  * Fires when the user clicks the help inline button.
6
25
  */
7
26
  actionClick: EventEmitter<void>;
8
27
  onClick(): void;
9
28
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyHelpInlineComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyHelpInlineComponent, "sky-help-inline", never, {}, { "actionClick": "actionClick"; }, never, never, false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyHelpInlineComponent, "sky-help-inline", never, { "ariaControls": "ariaControls"; "ariaExpanded": "ariaExpanded"; "ariaLabel": "ariaLabel"; }, { "actionClick": "actionClick"; }, never, never, false, never>;
11
30
  }
@@ -1,12 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./help-inline.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@skyux/i18n";
5
- import * as i4 from "../icon/icon.module";
6
- import * as i5 from "../shared/sky-indicators-resources.module";
7
- import * as i6 from "@skyux/theme";
3
+ import * as i2 from "./help-inline-aria-expanded.pipe";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@skyux/i18n";
6
+ import * as i5 from "../icon/icon.module";
7
+ import * as i6 from "../shared/sky-indicators-resources.module";
8
+ import * as i7 from "@skyux/theme";
8
9
  export declare class SkyHelpInlineModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyHelpInlineModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyHelpInlineModule, [typeof i1.SkyHelpInlineComponent], [typeof i2.CommonModule, typeof i3.SkyI18nModule, typeof i4.SkyIconModule, typeof i5.SkyIndicatorsResourcesModule, typeof i6.SkyThemeModule], [typeof i1.SkyHelpInlineComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyHelpInlineModule, [typeof i1.SkyHelpInlineComponent, typeof i2.SkyHelpInlineAriaExpandedPipe], [typeof i3.CommonModule, typeof i4.SkyI18nModule, typeof i5.SkyIconModule, typeof i6.SkyIndicatorsResourcesModule, typeof i7.SkyThemeModule], [typeof i1.SkyHelpInlineComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyHelpInlineModule>;
12
13
  }
@@ -1,5 +1,5 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { SkyIconResolverService } from './icon-resolver.service';
2
+ import { SkyThemeSettings } from '@skyux/theme';
3
3
  import { SkyIconVariantType } from './types/icon-variant-type';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
@@ -7,8 +7,7 @@ import * as i0 from "@angular/core";
7
7
  */
8
8
  export declare class SkyIconClassListPipe implements PipeTransform {
9
9
  #private;
10
- constructor(resolver: SkyIconResolverService);
11
- transform(icon: string, iconType?: string, size?: string, fixedWidth?: boolean, variant?: SkyIconVariantType): string[];
10
+ transform(icon: string, themeSettings?: SkyThemeSettings, iconType?: string, size?: string, fixedWidth?: boolean, variant?: SkyIconVariantType): string[];
12
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyIconClassListPipe, never>;
13
12
  static ɵpipe: i0.ɵɵPipeDeclaration<SkyIconClassListPipe, "skyIconClassList", false>;
14
13
  }
@@ -1,13 +1,14 @@
1
- import { SkyThemeIconManifestService } from '@skyux/theme';
2
- import { SkyIconVariantType } from './types/icon-variant-type';
1
+ import { SkyThemeSettings } from '@skyux/theme';
2
+ import { SkyIconResolved } from './types/icon-resolved';
3
+ import type { SkyIconVariantType } from './types/icon-variant-type';
3
4
  import * as i0 from "@angular/core";
4
5
  /**
5
6
  * @internal
6
7
  */
7
8
  export declare class SkyIconResolverService {
8
9
  #private;
9
- constructor(manifestSvc: SkyThemeIconManifestService);
10
- resolveIcon(iconName: string, variant?: SkyIconVariantType): string;
10
+ constructor();
11
+ resolveIcon(icon: string, variant?: SkyIconVariantType, iconType?: string, themeSettings?: SkyThemeSettings): SkyIconResolved;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyIconResolverService, never>;
12
13
  static ɵprov: i0.ɵɵInjectableDeclaration<SkyIconResolverService>;
13
14
  }
@@ -1,3 +1,4 @@
1
+ import { SkyThemeService } from '@skyux/theme';
1
2
  import { SkyIconStackItem } from './icon-stack-item';
2
3
  import * as i0 from "@angular/core";
3
4
  /**
@@ -6,7 +7,7 @@ import * as i0 from "@angular/core";
6
7
  export declare class SkyIconStackComponent {
7
8
  /**
8
9
  * The size of the icon using
9
- * [Font Awesome sizes](https://fontawesome.com/how-to-use/on-the-web/styling/sizing-icons).
10
+ * [Font Awesome sizes](https://fontawesome.com/v4/examples/).
10
11
  */
11
12
  size: string | undefined;
12
13
  /**
@@ -17,6 +18,7 @@ export declare class SkyIconStackComponent {
17
18
  * The icon to display at the top of the stack.
18
19
  */
19
20
  topIcon: SkyIconStackItem | undefined;
21
+ protected themeSvc: SkyThemeService | null;
20
22
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyIconStackComponent, never>;
21
23
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyIconStackComponent, "sky-icon-stack", never, { "size": "size"; "baseIcon": "baseIcon"; "topIcon": "topIcon"; }, {}, never, never, false, never>;
22
24
  }
@@ -1,3 +1,4 @@
1
+ import { SkyThemeService } from '@skyux/theme';
1
2
  import { SkyIconType } from './types/icon-type';
2
3
  import { SkyIconVariantType } from './types/icon-variant-type';
3
4
  import * as i0 from "@angular/core";
@@ -18,11 +19,13 @@ export declare class SkyIconComponent {
18
19
  iconType: SkyIconType | undefined;
19
20
  /**
20
21
  * 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-`.
22
+ * [Font Awesome sizes](https://fontawesome.com/v4/examples/). Do not prefix the size with `fa-`.
22
23
  */
23
24
  size: string | undefined;
24
25
  /**
25
- * Whether the icon has a fixed width.
26
+ * Whether to enforce a fixed width based on icon size. By default, icons of a specified size share a
27
+ * consistent height, but their widths vary and can throw off vertical alignment. Use a fixed width when
28
+ * you stack icons vertically, such as in lists.
26
29
  * @default false
27
30
  */
28
31
  fixedWidth: boolean | undefined;
@@ -31,6 +34,7 @@ export declare class SkyIconComponent {
31
34
  * specified icon, the normal icon is displayed. This property only applies when using SKY UX icons.
32
35
  */
33
36
  variant: SkyIconVariantType | undefined;
37
+ protected themeSvc: SkyThemeService | null;
34
38
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyIconComponent, never>;
35
39
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyIconComponent, "sky-icon", never, { "icon": "icon"; "iconType": "iconType"; "size": "size"; "fixedWidth": "fixedWidth"; "variant": "variant"; }, {}, never, never, false, never>;
36
40
  }
@@ -3,9 +3,8 @@ import * as i1 from "./icon-class-list.pipe";
3
3
  import * as i2 from "./icon.component";
4
4
  import * as i3 from "./icon-stack.component";
5
5
  import * as i4 from "@angular/common";
6
- import * as i5 from "@skyux/theme";
7
6
  export declare class SkyIconModule {
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyIconModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyIconModule, [typeof i1.SkyIconClassListPipe, typeof i2.SkyIconComponent, typeof i3.SkyIconStackComponent], [typeof i4.CommonModule, typeof i5.SkyThemeIconManifestModule], [typeof i2.SkyIconComponent, typeof i3.SkyIconStackComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyIconModule, [typeof i1.SkyIconClassListPipe, typeof i2.SkyIconComponent, typeof i3.SkyIconStackComponent], [typeof i4.CommonModule], [typeof i2.SkyIconComponent, typeof i3.SkyIconStackComponent]>;
10
9
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyIconModule>;
11
10
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export interface SkyIconResolved {
5
+ icon: string;
6
+ iconType: string;
7
+ }
@@ -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,10 +1,9 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { SkyLibResourcesService } from '@skyux/i18n';
1
+ import { AfterViewChecked, OnDestroy, OnInit } from '@angular/core';
3
2
  import { SkyIconStackItem } from '../icon/icon-stack-item';
4
3
  import { SkyIndicatorDescriptionType } from '../shared/indicator-description-type';
5
4
  import { SkyLabelType } from './label-type';
6
5
  import * as i0 from "@angular/core";
7
- export declare class SkyLabelComponent implements OnDestroy, OnInit {
6
+ export declare class SkyLabelComponent implements AfterViewChecked, OnDestroy, OnInit {
8
7
  #private;
9
8
  /**
10
9
  * The type of label to display.
@@ -16,18 +15,20 @@ export declare class SkyLabelComponent implements OnDestroy, OnInit {
16
15
  * This property is optional but will be required in future versions of SKY UX.
17
16
  */
18
17
  set descriptionType(value: SkyIndicatorDescriptionType | undefined);
18
+ get descriptionType(): SkyIndicatorDescriptionType | undefined;
19
19
  /**
20
20
  * The text to be read by screen readers for users who cannot see
21
21
  * the indicator icon when `descriptionType` is `custom`.
22
22
  */
23
23
  set customDescription(value: string | undefined);
24
+ get customDescription(): string | undefined;
24
25
  baseIcon: SkyIconStackItem | undefined;
25
26
  descriptionComputed: string | undefined;
26
27
  icon: string | undefined;
27
28
  labelTypeOrDefault: SkyLabelType;
28
29
  topIcon: SkyIconStackItem | undefined;
29
- constructor(changeDetector: ChangeDetectorRef, resources: SkyLibResourcesService);
30
30
  ngOnInit(): void;
31
+ ngAfterViewChecked(): void;
31
32
  ngOnDestroy(): void;
32
33
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyLabelComponent, never>;
33
34
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyLabelComponent, "sky-label", never, { "labelType": "labelType"; "descriptionType": "descriptionType"; "customDescription": "customDescription"; }, {}, never, ["*"], false, never>;
@@ -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,5 +1,4 @@
1
- import { ChangeDetectorRef, OnInit } from '@angular/core';
2
- import { SkyLibResourcesService } from '@skyux/i18n';
1
+ import { OnInit } from '@angular/core';
3
2
  import { SkyIconStackItem } from '../icon/icon-stack-item';
4
3
  import { SkyIndicatorDescriptionType } from '../shared/indicator-description-type';
5
4
  import { SkyIndicatorIconType } from '../shared/indicator-icon-type';
@@ -35,7 +34,6 @@ export declare class SkyStatusIndicatorComponent implements OnInit {
35
34
  icon: string | undefined;
36
35
  indicatorTypeOrDefault: SkyIndicatorIconType;
37
36
  topIcon: SkyIconStackItem | undefined;
38
- constructor(changeDetector: ChangeDetectorRef, resources: SkyLibResourcesService);
39
37
  ngOnInit(): void;
40
38
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyStatusIndicatorComponent, never>;
41
39
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyStatusIndicatorComponent, "sky-status-indicator", never, { "indicatorType": "indicatorType"; "descriptionType": "descriptionType"; "customDescription": "customDescription"; }, {}, never, ["*", ".sky-control-help"], false, never>;
@@ -1,5 +1,4 @@
1
- import { AfterViewInit, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
- import { SkyMutationObserverService } from '@skyux/core';
1
+ import { AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  /**
5
4
  * Highlights all matching text within the current DOM element.
@@ -10,7 +9,6 @@ export declare class SkyTextHighlightDirective implements OnChanges, AfterViewIn
10
9
  * The text to highlight.
11
10
  */
12
11
  set skyHighlight(value: string | string[] | undefined);
13
- constructor(el: ElementRef, observerSvc: SkyMutationObserverService);
14
12
  ngOnChanges(changes: SimpleChanges): void;
15
13
  ngAfterViewInit(): void;
16
14
  ngOnDestroy(): void;
@@ -47,7 +47,6 @@ export declare class SkyTokenComponent {
47
47
  tokenActive: boolean;
48
48
  closeActive: boolean;
49
49
  tabIndex: number;
50
- constructor(elementRef: ElementRef);
51
50
  protected onFocusIn(): void;
52
51
  protected onFocusOut(event: FocusEvent): void;
53
52
  dismissToken(event: Event): void;
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, EventEmitter, OnDestroy, QueryList, TrackByFunction } from '@angular/core';
1
+ import { EventEmitter, OnDestroy, QueryList, TrackByFunction } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { SkyTokenComponent } from './token.component';
4
4
  import { SkyToken } from './types/token';
@@ -84,7 +84,7 @@ export declare class SkyTokensComponent implements OnDestroy {
84
84
  set activeIndex(value: number);
85
85
  trackTokenFn: TrackByFunction<SkyToken>;
86
86
  tokenComponents: QueryList<SkyTokenComponent> | undefined;
87
- constructor(changeDetector: ChangeDetectorRef);
87
+ constructor();
88
88
  ngOnDestroy(): void;
89
89
  onTokenClick(token: SkyToken): void;
90
90
  animationDone(): void;
@@ -1,18 +1,15 @@
1
- import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { SkyLibResourcesService } from '@skyux/i18n';
1
+ import { OnDestroy, OnInit } from '@angular/core';
3
2
  import { BehaviorSubject } from 'rxjs';
4
- import { SkyWaitAdapterService } from './wait-adapter.service';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class SkyWaitComponent implements OnInit, OnDestroy {
7
5
  #private;
8
6
  /**
9
- * The ARIA label for the wait icon while an element or page loads.
10
- * This sets the icon's `aria-label` attribute
11
- * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
12
- * The default value varies based on whether the wait is for an element or a page
13
- * and whether it is a blocking wait. For example, the default for a page-blocking
14
- * wait is "Page loading. Please wait."
15
- * For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
7
+ * The ARIA label for the wait icon.
8
+ * This sets the icon's `aria-label` attribute to provide a text equivalent for screen readers
9
+ * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility) when an element or page loads and when users tab to a wait icon.
10
+ * The default value varies based on whether the wait is for an element or a page and whether it is a blocking wait. For example, the default for a page-level blocking wait is "Page loading. Please wait."
11
+ * For element-level waits, we recommend that consumers overwrite the default to describe the specific element.
12
+ * "For more information, see the Design tab and the [WAI-ARIA `aria-label` definition](https://www.w3.org/TR/wai-aria/#aria-label).
16
13
  */
17
14
  set ariaLabel(value: string | undefined);
18
15
  /**
@@ -36,10 +33,19 @@ export declare class SkyWaitComponent implements OnInit, OnDestroy {
36
33
  */
37
34
  set isNonBlocking(value: boolean | undefined);
38
35
  get isNonBlocking(): boolean | undefined;
36
+ /**
37
+ * Screen reader text [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility) when the wait toggles off.
38
+ * The default varies based on whether the wait is for an element or a page.
39
+ * For example, the default for a page-level wait is "Page loading complete."
40
+ * For element-level waits, we recommend that consumers overwrite the default to describe the specific element.
41
+ * For more information, see the Design tab and the [WCAG documentation on status messages](https://www.w3.org/WAI/WCAG21/Understanding/status-messages.html).
42
+ */
43
+ set screenReaderCompletedText(value: string | undefined);
39
44
  ariaLabelStream: BehaviorSubject<string>;
40
- constructor(elRef: ElementRef, adapterService: SkyWaitAdapterService, resourceSvc: SkyLibResourcesService);
45
+ ariaLiveText: string;
46
+ screenReaderCompletedTextStream: BehaviorSubject<string>;
41
47
  ngOnInit(): void;
42
48
  ngOnDestroy(): void;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyWaitComponent, [null, null, { optional: true; }]>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyWaitComponent, "sky-wait", never, { "ariaLabel": "ariaLabel"; "isWaiting": "isWaiting"; "isFullPage": "isFullPage"; "isNonBlocking": "isNonBlocking"; }, {}, never, never, false, never>;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyWaitComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyWaitComponent, "sky-wait", never, { "ariaLabel": "ariaLabel"; "isWaiting": "isWaiting"; "isFullPage": "isFullPage"; "isNonBlocking": "isNonBlocking"; "screenReaderCompletedText": "screenReaderCompletedText"; }, {}, never, never, false, never>;
45
51
  }
@@ -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.2",
3
+ "version": "8.0.0-alpha.21",
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.2",
49
- "@skyux/core": "8.0.0-alpha.2",
50
- "@skyux/i18n": "8.0.0-alpha.2",
51
- "@skyux/theme": "8.0.0-alpha.2"
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.21",
49
+ "@skyux/core": "8.0.0-alpha.21",
50
+ "@skyux/i18n": "8.0.0-alpha.21",
51
+ "@skyux/theme": "8.0.0-alpha.21"
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,23 @@
1
+ import { SkyComponentHarness } from '@skyux/core/testing';
2
+ /**
3
+ * Harness for interacting with a chevron component in tests.
4
+ */
5
+ export declare class SkyChevronHarness extends SkyComponentHarness {
6
+ #private;
7
+ /**
8
+ * @internal
9
+ */
10
+ static hostSelector: string;
11
+ /**
12
+ * Gets the chevron direction.
13
+ */
14
+ getDirection(): Promise<string>;
15
+ /**
16
+ * Whether the chevron is disabled.
17
+ */
18
+ isDisabled(): Promise<boolean>;
19
+ /**
20
+ * Toggles the chevron.
21
+ */
22
+ toggle(): Promise<void>;
23
+ }
@@ -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 SkyHelpInlineHarness instances.
4
+ */
5
+ export interface SkyHelpInlineHarnessFilters extends SkyHarnessFilters {
6
+ }
@@ -0,0 +1,22 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyComponentHarness } from '@skyux/core/testing';
3
+ import { SkyHelpInlineHarnessFilters } from './help-inline-harness-filters';
4
+ /**
5
+ * Harness for interacting with a help inline component in tests.
6
+ */
7
+ export declare class SkyHelpInlineHarness 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
+ * `SkyInlineHelpHarness` that meets certain criteria
16
+ */
17
+ static with(filters: SkyHelpInlineHarnessFilters): HarnessPredicate<SkyHelpInlineHarness>;
18
+ /**
19
+ * Clicks the help inline icon button
20
+ */
21
+ click(): Promise<void>;
22
+ }
@@ -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,10 @@
1
1
  export * from './alert/alert-harness';
2
2
  export * from './alert/alert-harness-filters';
3
+ export * from './chevron/chevron-harness';
4
+ export * from './help-inline/help-inline-harness';
5
+ export * from './help-inline/help-inline-harness-filters';
6
+ export * from './icon/icon-harness';
7
+ export * from './icon/icon-harness-filters';
3
8
  export * from './key-info/key-info-harness';
4
9
  export * from './key-info/key-info-harness-filters';
5
10
  export * from './label/label-harness';
@@ -1,6 +1,6 @@
1
1
  import { SkyHarnessFilters } from '@skyux/core/testing';
2
2
  /**
3
- * A set of criteria that can be used to filter a list of SkyAlertHarness instances.
3
+ * A set of criteria that can be used to filter a list of SkyWaitHarness instances.
4
4
  */
5
5
  export interface SkyWaitHarnessFilters extends SkyHarnessFilters {
6
6
  /**
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FpdC1wYWdlLWFkYXB0ZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9pbmRpY2F0b3JzL3NyYy9saWIvbW9kdWxlcy93YWl0L3dhaXQtcGFnZS1hZGFwdGVyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFFM0M7O0dBRUc7QUFDSCxpR0FBaUc7QUFJakcsTUFBTSxPQUFPLHlCQUF5QjtJQUM3QixhQUFhO1FBQ2xCLFFBQVEsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLFFBQVEsQ0FBQyxhQUFhLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQztJQUNyRSxDQUFDO0lBRU0sZ0JBQWdCO1FBQ3JCLE1BQU0sTUFBTSxHQUFHLFFBQVEsQ0FBQyxhQUFhLENBQUMsZUFBZSxDQUFDLENBQUM7UUFDdkQsSUFBSSxNQUFNLEVBQUU7WUFDVixRQUFRLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQUMsQ0FBQztTQUNuQztJQUNILENBQUM7O3NIQVZVLHlCQUF5QjswSEFBekIseUJBQXlCLGNBRnhCLE1BQU07MkZBRVAseUJBQXlCO2tCQUhyQyxVQUFVO21CQUFDO29CQUNWLFVBQVUsRUFBRSxNQUFNO2lCQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBAaW50ZXJuYWxcbiAqL1xuLy8gVE9ETzogUmVtb3ZlIHdoZW4gZHluYW1pYyBjb21wb25lbnQgc2VydmljZSBpcyBubyBsb25nZXIgb3B0aW9uYWwgaW4gYSBmdXR1cmUgYnJlYWtpbmcgY2hhbmdlLlxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIFNreVdhaXRQYWdlQWRhcHRlclNlcnZpY2Uge1xuICBwdWJsaWMgYWRkUGFnZVdhaXRFbCgpOiB2b2lkIHtcbiAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ3NreS13YWl0LXBhZ2UnKSk7XG4gIH1cblxuICBwdWJsaWMgcmVtb3ZlUGFnZVdhaXRFbCgpOiB2b2lkIHtcbiAgICBjb25zdCB3YWl0RWwgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCdza3ktd2FpdC1wYWdlJyk7XG4gICAgaWYgKHdhaXRFbCkge1xuICAgICAgZG9jdW1lbnQuYm9keS5yZW1vdmVDaGlsZCh3YWl0RWwpO1xuICAgIH1cbiAgfVxufVxuIl19
@@ -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
- }