@skyux/indicators 7.0.0-beta.0 → 7.0.0-beta.2

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.
@@ -4,7 +4,7 @@ export declare class SkyHelpInlineComponent {
4
4
  /**
5
5
  * Fires when the user clicks the help inline button.
6
6
  */
7
- actionClick: EventEmitter<any>;
7
+ actionClick: EventEmitter<void>;
8
8
  onClick(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyHelpInlineComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyHelpInlineComponent, "sky-help-inline", never, {}, { "actionClick": "actionClick"; }, never, never, false>;
@@ -6,7 +6,7 @@ export declare class SkyKeyInfoComponent {
6
6
  * value or in a horizontal layout with the label beside the value.
7
7
  * @default "vertical"
8
8
  */
9
- layout: SkyKeyInfoLayoutType | string | undefined;
9
+ layout: SkyKeyInfoLayoutType | undefined;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyKeyInfoComponent, never>;
11
11
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyKeyInfoComponent, "sky-key-info", never, { "layout": "layout"; }, {}, never, ["sky-key-info-value", "sky-key-info-label", ".sky-control-help"], false>;
12
12
  }
@@ -1,5 +1,5 @@
1
1
  import { AfterViewInit, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
- import { MutationObserverService } from '@skyux/core';
2
+ import { SkyMutationObserverService } from '@skyux/core';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Highlights all matching text within the current DOM element.
@@ -10,7 +10,7 @@ export declare class SkyTextHighlightDirective implements OnChanges, AfterViewIn
10
10
  * Specifies the text to highlight.
11
11
  */
12
12
  set skyHighlight(value: string | string[] | undefined);
13
- constructor(el: ElementRef, observerSvc: MutationObserverService);
13
+ constructor(el: ElementRef, observerSvc: SkyMutationObserverService);
14
14
  ngOnChanges(changes: SimpleChanges): void;
15
15
  ngAfterViewInit(): void;
16
16
  ngOnDestroy(): void;
@@ -69,12 +69,12 @@ export declare class SkyTokensComponent implements OnDestroy {
69
69
  /**
70
70
  * Fires when users select a token in the list. This event emits the selected token.
71
71
  */
72
- tokenSelected: EventEmitter<SkyTokenSelectedEventArgs>;
72
+ tokenSelected: EventEmitter<SkyTokenSelectedEventArgs<any>>;
73
73
  /**
74
74
  * Fires when the tokens in the list change.
75
75
  * This event emits an array of the tokens in the updated list.
76
76
  */
77
- tokensChange: EventEmitter<SkyToken[]>;
77
+ tokensChange: EventEmitter<SkyToken<any>[]>;
78
78
  get activeIndex(): number;
79
79
  set activeIndex(value: number);
80
80
  trackTokenFn: TrackByFunction<SkyToken>;
@@ -1,7 +1,7 @@
1
1
  import { SkyToken } from './token';
2
- export interface SkyTokenSelectedEventArgs {
2
+ export interface SkyTokenSelectedEventArgs<T = any> {
3
3
  /**
4
4
  * Indicates the currently selected token.
5
5
  */
6
- token?: SkyToken;
6
+ token?: SkyToken<T>;
7
7
  }
@@ -1,7 +1,7 @@
1
- export interface SkyToken {
1
+ export interface SkyToken<T = any> {
2
2
  /**
3
3
  * Specifies the token's value. The `sky-tokens` component will use its `displayWith`
4
4
  * property to determine which of the value's properties to use as the token's label.
5
5
  */
6
- value: any;
6
+ value: T;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/indicators",
3
- "version": "7.0.0-beta.0",
3
+ "version": "7.0.0-beta.2",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -45,10 +45,10 @@
45
45
  "@angular/common": "^14.2.0",
46
46
  "@angular/core": "^14.2.0",
47
47
  "@angular/platform-browser": "^14.2.0",
48
- "@skyux-sdk/testing": "7.0.0-beta.0",
49
- "@skyux/core": "7.0.0-beta.0",
50
- "@skyux/i18n": "7.0.0-beta.0",
51
- "@skyux/theme": "7.0.0-beta.0"
48
+ "@skyux-sdk/testing": "7.0.0-beta.2",
49
+ "@skyux/core": "7.0.0-beta.2",
50
+ "@skyux/i18n": "7.0.0-beta.2",
51
+ "@skyux/theme": "7.0.0-beta.2"
52
52
  },
53
53
  "dependencies": {
54
54
  "tslib": "^2.3.1"
@@ -15,6 +15,10 @@ export declare class SkyTokenHarness extends ComponentHarness {
15
15
  * `SkyTokenHarness` that meets certain criteria.
16
16
  */
17
17
  static with(filters: SkyTokenHarnessFilters): HarnessPredicate<SkyTokenHarness>;
18
+ /**
19
+ * Selects the token.
20
+ */
21
+ select(): Promise<void>;
18
22
  /**
19
23
  * Dismisses the token.
20
24
  */
@@ -23,8 +27,16 @@ export declare class SkyTokenHarness extends ComponentHarness {
23
27
  * Returns the text content of the token.
24
28
  */
25
29
  getText(): Promise<string>;
30
+ /**
31
+ * Whether the token is disabled.
32
+ */
33
+ isDisabled(): Promise<boolean>;
26
34
  /**
27
35
  * Whether the token is dismissible.
28
36
  */
29
37
  isDismissible(): Promise<boolean>;
38
+ /**
39
+ * Whether the token is focused.
40
+ */
41
+ isFocused(): Promise<boolean>;
30
42
  }