@skyux/indicators 7.0.0-beta.0 → 7.0.0-beta.10
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.
- package/documentation.json +1196 -405
- package/esm2020/lib/modules/alert/alert.component.mjs +4 -6
- package/esm2020/lib/modules/help-inline/help-inline.component.mjs +1 -1
- package/esm2020/lib/modules/key-info/key-info.component.mjs +1 -2
- package/esm2020/lib/modules/text-highlight/text-highlight.directive.mjs +4 -4
- package/esm2020/lib/modules/text-highlight/text-highlight.module.mjs +4 -4
- package/esm2020/lib/modules/tokens/token.component.mjs +28 -33
- package/esm2020/lib/modules/tokens/tokens.component.mjs +4 -3
- package/esm2020/lib/modules/tokens/types/token-selected-event-args.mjs +1 -1
- package/esm2020/lib/modules/tokens/types/token.mjs +1 -1
- package/esm2020/lib/modules/wait/wait.component.mjs +3 -3
- package/esm2020/testing/alert-fixture.mjs +16 -13
- package/esm2020/testing/tokens/token-harness.mjs +27 -6
- package/esm2020/testing/tokens/tokens-harness.mjs +1 -2
- package/fesm2015/skyux-indicators-testing.mjs +47 -19
- package/fesm2015/skyux-indicators-testing.mjs.map +1 -1
- package/fesm2015/skyux-indicators.mjs +38 -43
- package/fesm2015/skyux-indicators.mjs.map +1 -1
- package/fesm2020/skyux-indicators-testing.mjs +41 -19
- package/fesm2020/skyux-indicators-testing.mjs.map +1 -1
- package/fesm2020/skyux-indicators.mjs +37 -43
- package/fesm2020/skyux-indicators.mjs.map +1 -1
- package/lib/modules/alert/alert.component.d.ts +1 -1
- package/lib/modules/help-inline/help-inline.component.d.ts +1 -1
- package/lib/modules/key-info/key-info.component.d.ts +1 -1
- package/lib/modules/text-highlight/text-highlight.directive.d.ts +2 -2
- package/lib/modules/tokens/token.component.d.ts +12 -5
- package/lib/modules/tokens/tokens.component.d.ts +2 -2
- package/lib/modules/tokens/types/token-selected-event-args.d.ts +2 -2
- package/lib/modules/tokens/types/token.d.ts +2 -2
- package/package.json +5 -5
- package/testing/alert-fixture.d.ts +1 -3
- package/testing/tokens/token-harness.d.ts +12 -1
- package/testing/tokens/tokens-harness.d.ts +0 -1
|
@@ -11,7 +11,7 @@ export declare class SkyAlertComponent implements OnInit, OnDestroy {
|
|
|
11
11
|
* The valid options are `danger`, `info`, `success`, and `warning`.
|
|
12
12
|
* @default "warning"
|
|
13
13
|
*/
|
|
14
|
-
set alertType(value:
|
|
14
|
+
set alertType(value: SkyIndicatorIconType | undefined);
|
|
15
15
|
/**
|
|
16
16
|
* Indicates whether to include a close button for users to dismiss the alert.
|
|
17
17
|
* @default false
|
|
@@ -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<
|
|
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 |
|
|
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 {
|
|
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:
|
|
13
|
+
constructor(el: ElementRef, observerSvc: SkyMutationObserverService);
|
|
14
14
|
ngOnChanges(changes: SimpleChanges): void;
|
|
15
15
|
ngAfterViewInit(): void;
|
|
16
16
|
ngOnDestroy(): void;
|
|
@@ -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
|
-
|
|
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
|
|
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
|
}
|
|
@@ -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
|
-
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:
|
|
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.
|
|
3
|
+
"version": "7.0.0-beta.10",
|
|
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.
|
|
49
|
-
"@skyux/core": "7.0.0-beta.
|
|
50
|
-
"@skyux/i18n": "7.0.0-beta.
|
|
51
|
-
"@skyux/theme": "7.0.0-beta.
|
|
48
|
+
"@skyux-sdk/testing": "7.0.0-beta.10",
|
|
49
|
+
"@skyux/core": "7.0.0-beta.10",
|
|
50
|
+
"@skyux/i18n": "7.0.0-beta.10",
|
|
51
|
+
"@skyux/theme": "7.0.0-beta.10"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"tslib": "^2.3.1"
|
|
@@ -5,6 +5,7 @@ import { ComponentFixture } from '@angular/core/testing';
|
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
export declare class SkyAlertFixture {
|
|
8
|
+
#private;
|
|
8
9
|
/**
|
|
9
10
|
* The alert's current text.
|
|
10
11
|
*/
|
|
@@ -21,12 +22,9 @@ export declare class SkyAlertFixture {
|
|
|
21
22
|
* The alert's current type.
|
|
22
23
|
*/
|
|
23
24
|
get alertType(): string | undefined;
|
|
24
|
-
private debugEl;
|
|
25
25
|
constructor(fixture: ComponentFixture<unknown>, skyTestId: string);
|
|
26
26
|
/**
|
|
27
27
|
* Closes the alert. If the alert is not closeable, an error is thrown.
|
|
28
28
|
*/
|
|
29
29
|
close(): void;
|
|
30
|
-
private getAlertEl;
|
|
31
|
-
private getCloseBtnEl;
|
|
32
30
|
}
|
|
@@ -2,7 +2,6 @@ import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
|
2
2
|
import { SkyTokenHarnessFilters } from './token-harness-filters';
|
|
3
3
|
/**
|
|
4
4
|
* Harness for interacting with a token component in tests.
|
|
5
|
-
* @internal
|
|
6
5
|
*/
|
|
7
6
|
export declare class SkyTokenHarness extends ComponentHarness {
|
|
8
7
|
#private;
|
|
@@ -15,6 +14,10 @@ export declare class SkyTokenHarness extends ComponentHarness {
|
|
|
15
14
|
* `SkyTokenHarness` that meets certain criteria.
|
|
16
15
|
*/
|
|
17
16
|
static with(filters: SkyTokenHarnessFilters): HarnessPredicate<SkyTokenHarness>;
|
|
17
|
+
/**
|
|
18
|
+
* Selects the token.
|
|
19
|
+
*/
|
|
20
|
+
select(): Promise<void>;
|
|
18
21
|
/**
|
|
19
22
|
* Dismisses the token.
|
|
20
23
|
*/
|
|
@@ -23,8 +26,16 @@ export declare class SkyTokenHarness extends ComponentHarness {
|
|
|
23
26
|
* Returns the text content of the token.
|
|
24
27
|
*/
|
|
25
28
|
getText(): Promise<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the token is disabled.
|
|
31
|
+
*/
|
|
32
|
+
isDisabled(): Promise<boolean>;
|
|
26
33
|
/**
|
|
27
34
|
* Whether the token is dismissible.
|
|
28
35
|
*/
|
|
29
36
|
isDismissible(): Promise<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the token is focused.
|
|
39
|
+
*/
|
|
40
|
+
isFocused(): Promise<boolean>;
|
|
30
41
|
}
|
|
@@ -4,7 +4,6 @@ import { SkyTokenHarnessFilters } from './token-harness-filters';
|
|
|
4
4
|
import { SkyTokensHarnessFilters } from './tokens-harness-filters';
|
|
5
5
|
/**
|
|
6
6
|
* Harness for interacting with a tokens component in tests.
|
|
7
|
-
* @internal
|
|
8
7
|
*/
|
|
9
8
|
export declare class SkyTokensHarness extends SkyComponentHarness {
|
|
10
9
|
/**
|