@skyux/indicators 7.0.0-beta.8 → 7.0.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.
Files changed (46) hide show
  1. package/documentation.json +535 -498
  2. package/esm2020/lib/modules/alert/alert.component.mjs +4 -5
  3. package/esm2020/lib/modules/alert/alert.module.mjs +5 -5
  4. package/esm2020/lib/modules/chevron/chevron.component.mjs +4 -4
  5. package/esm2020/lib/modules/chevron/chevron.module.mjs +5 -5
  6. package/esm2020/lib/modules/expansion-indicator/expansion-indicator.component.mjs +4 -4
  7. package/esm2020/lib/modules/expansion-indicator/expansion-indicator.module.mjs +5 -5
  8. package/esm2020/lib/modules/help-inline/help-inline.component.mjs +5 -5
  9. package/esm2020/lib/modules/help-inline/help-inline.module.mjs +5 -5
  10. package/esm2020/lib/modules/icon/icon-class-list.pipe.mjs +4 -5
  11. package/esm2020/lib/modules/icon/icon-resolver.service.mjs +4 -5
  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 +5 -5
  15. package/esm2020/lib/modules/key-info/key-info-label.component.mjs +4 -4
  16. package/esm2020/lib/modules/key-info/key-info-value.component.mjs +4 -4
  17. package/esm2020/lib/modules/key-info/key-info.component.mjs +4 -4
  18. package/esm2020/lib/modules/key-info/key-info.module.mjs +5 -5
  19. package/esm2020/lib/modules/label/label.component.mjs +5 -6
  20. package/esm2020/lib/modules/label/label.module.mjs +5 -5
  21. package/esm2020/lib/modules/shared/sky-indicators-resources.module.mjs +5 -5
  22. package/esm2020/lib/modules/status-indicator/status-indicator.component.mjs +5 -6
  23. package/esm2020/lib/modules/status-indicator/status-indicator.module.mjs +5 -5
  24. package/esm2020/lib/modules/text-highlight/text-highlight.directive.mjs +5 -6
  25. package/esm2020/lib/modules/text-highlight/text-highlight.module.mjs +5 -5
  26. package/esm2020/lib/modules/tokens/token.component.mjs +29 -34
  27. package/esm2020/lib/modules/tokens/tokens.component.mjs +17 -6
  28. package/esm2020/lib/modules/tokens/tokens.module.mjs +5 -5
  29. package/esm2020/lib/modules/wait/wait-adapter.service.mjs +5 -5
  30. package/esm2020/lib/modules/wait/wait-page-adapter.service.mjs +4 -4
  31. package/esm2020/lib/modules/wait/wait-page.component.mjs +4 -4
  32. package/esm2020/lib/modules/wait/wait.component.mjs +5 -6
  33. package/esm2020/lib/modules/wait/wait.module.mjs +5 -5
  34. package/esm2020/lib/modules/wait/wait.service.mjs +5 -7
  35. package/esm2020/testing/tokens/token-harness.mjs +8 -7
  36. package/fesm2015/skyux-indicators-testing.mjs +7 -6
  37. package/fesm2015/skyux-indicators-testing.mjs.map +1 -1
  38. package/fesm2015/skyux-indicators.mjs +147 -139
  39. package/fesm2015/skyux-indicators.mjs.map +1 -1
  40. package/fesm2020/skyux-indicators-testing.mjs +7 -6
  41. package/fesm2020/skyux-indicators-testing.mjs.map +1 -1
  42. package/fesm2020/skyux-indicators.mjs +146 -139
  43. package/fesm2020/skyux-indicators.mjs.map +1 -1
  44. package/lib/modules/tokens/token.component.d.ts +12 -5
  45. package/lib/modules/tokens/tokens.component.d.ts +7 -1
  46. package/package.json +10 -10
@@ -1,5 +1,4 @@
1
1
  import { ElementRef, EventEmitter } from '@angular/core';
2
- import { SkyLibResourcesService } from '@skyux/i18n';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class SkyTokenComponent {
5
4
  #private;
@@ -16,8 +15,7 @@ export declare class SkyTokenComponent {
16
15
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
17
16
  * @default "Remove item"
18
17
  */
19
- set ariaLabel(value: string | undefined);
20
- get ariaLabel(): string;
18
+ ariaLabel: string | undefined;
21
19
  /**
22
20
  * Indicates whether users can remove the token from the list by selecting the close button.
23
21
  * @default true
@@ -30,6 +28,11 @@ export declare class SkyTokenComponent {
30
28
  * @default true
31
29
  */
32
30
  set focusable(value: boolean | undefined);
31
+ /**
32
+ * Used by the tokens component to set the appropriate role for each token.
33
+ * @internal
34
+ */
35
+ role: string | undefined;
33
36
  /**
34
37
  * Fires when users click the close button.
35
38
  */
@@ -38,14 +41,18 @@ export declare class SkyTokenComponent {
38
41
  * Fires when users place focus on the token by navigating to it with the `Tab` key.
39
42
  */
40
43
  tokenFocus: EventEmitter<void>;
44
+ private actionButtonRef;
45
+ isFocused: boolean;
41
46
  tokenActive: boolean;
42
47
  closeActive: boolean;
43
48
  tabIndex: number;
44
- constructor(elementRef: ElementRef, resourcesSvc: SkyLibResourcesService);
49
+ constructor(elementRef: ElementRef);
50
+ protected onFocusIn(): void;
51
+ protected onFocusOut(event: FocusEvent): void;
45
52
  dismissToken(event: Event): void;
46
53
  focusElement(): void;
47
54
  setTokenActive(tokenActive: boolean): void;
48
55
  setCloseActive(closeActive: boolean): void;
49
56
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyTokenComponent, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyTokenComponent, "sky-token", never, { "disabled": "disabled"; "ariaLabel": "ariaLabel"; "dismissible": "dismissible"; "focusable": "focusable"; }, { "dismiss": "dismiss"; "tokenFocus": "tokenFocus"; }, never, ["*"], false>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyTokenComponent, "sky-token", never, { "disabled": "disabled"; "ariaLabel": "ariaLabel"; "dismissible": "dismissible"; "focusable": "focusable"; "role": "role"; }, { "dismiss": "dismiss"; "tokenFocus": "tokenFocus"; }, never, ["*"], false>;
51
58
  }
@@ -75,6 +75,11 @@ export declare class SkyTokensComponent implements OnDestroy {
75
75
  * This event emits an array of the tokens in the updated list.
76
76
  */
77
77
  tokensChange: EventEmitter<SkyToken<any>[]>;
78
+ /**
79
+ * Fires when all animations on the tokens are complete.
80
+ * @internal
81
+ */
82
+ tokensRendered: EventEmitter<void>;
78
83
  get activeIndex(): number;
79
84
  set activeIndex(value: number);
80
85
  trackTokenFn: TrackByFunction<SkyToken>;
@@ -82,9 +87,10 @@ export declare class SkyTokensComponent implements OnDestroy {
82
87
  constructor(changeDetector: ChangeDetectorRef);
83
88
  ngOnDestroy(): void;
84
89
  onTokenClick(token: SkyToken): void;
90
+ animationDone(): void;
85
91
  onTokenKeyDown(event: KeyboardEvent): void;
86
92
  selectToken(token: SkyToken): void;
87
93
  removeToken(token: SkyToken): void;
88
94
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyTokensComponent, never>;
89
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyTokensComponent, "sky-tokens", never, { "disabled": "disabled"; "dismissible": "dismissible"; "displayWith": "displayWith"; "trackWith": "trackWith"; "focusable": "focusable"; "tokens": "tokens"; "messageStream": "messageStream"; }, { "focusIndexOverRange": "focusIndexOverRange"; "focusIndexUnderRange": "focusIndexUnderRange"; "tokenSelected": "tokenSelected"; "tokensChange": "tokensChange"; }, never, ["*"], false>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyTokensComponent, "sky-tokens", never, { "disabled": "disabled"; "dismissible": "dismissible"; "displayWith": "displayWith"; "trackWith": "trackWith"; "focusable": "focusable"; "tokens": "tokens"; "messageStream": "messageStream"; }, { "focusIndexOverRange": "focusIndexOverRange"; "focusIndexUnderRange": "focusIndexUnderRange"; "tokenSelected": "tokenSelected"; "tokensChange": "tokensChange"; "tokensRendered": "tokensRendered"; }, never, ["*"], false>;
90
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/indicators",
3
- "version": "7.0.0-beta.8",
3
+ "version": "7.0.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -40,15 +40,15 @@
40
40
  }
41
41
  },
42
42
  "peerDependencies": {
43
- "@angular/animations": "^14.2.0",
44
- "@angular/cdk": "^14.2.0",
45
- "@angular/common": "^14.2.0",
46
- "@angular/core": "^14.2.0",
47
- "@angular/platform-browser": "^14.2.0",
48
- "@skyux-sdk/testing": "7.0.0-beta.8",
49
- "@skyux/core": "7.0.0-beta.8",
50
- "@skyux/i18n": "7.0.0-beta.8",
51
- "@skyux/theme": "7.0.0-beta.8"
43
+ "@angular/animations": "^14.2.11",
44
+ "@angular/cdk": "^14.2.7",
45
+ "@angular/common": "^14.2.11",
46
+ "@angular/core": "^14.2.11",
47
+ "@angular/platform-browser": "^14.2.11",
48
+ "@skyux-sdk/testing": "7.0.0",
49
+ "@skyux/core": "7.0.0",
50
+ "@skyux/i18n": "7.0.0",
51
+ "@skyux/theme": "7.0.0"
52
52
  },
53
53
  "dependencies": {
54
54
  "tslib": "^2.3.1"