@skyux/indicators 6.14.0 → 6.17.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.
- package/documentation.json +1025 -780
- package/esm2020/lib/modules/alert/alert.component.mjs +81 -24
- package/esm2020/lib/modules/chevron/chevron.component.mjs +11 -12
- package/esm2020/lib/modules/expansion-indicator/expansion-indicator.component.mjs +8 -8
- package/esm2020/lib/modules/icon/icon-stack-item.mjs +1 -1
- package/esm2020/lib/modules/icon/icon-stack.component.mjs +4 -1
- package/esm2020/lib/modules/icon/icon.component.mjs +1 -1
- package/esm2020/lib/modules/key-info/key-info.component.mjs +3 -3
- package/esm2020/lib/modules/label/label.component.mjs +82 -29
- package/esm2020/lib/modules/label/label.module.mjs +19 -4
- package/esm2020/lib/modules/shared/indicator-description-type.mjs +1 -1
- package/esm2020/lib/modules/shared/sky-indicators-resources.module.mjs +26 -1
- package/esm2020/lib/modules/status-indicator/status-indicator.component.mjs +52 -44
- package/esm2020/lib/modules/text-highlight/text-highlight.directive.mjs +109 -103
- package/esm2020/testing/alert/alert-harness-filters.mjs +1 -1
- package/esm2020/testing/alert/alert-harness.mjs +3 -1
- package/esm2020/testing/alert-fixture.mjs +2 -1
- package/esm2020/testing/label-fixture.mjs +2 -1
- package/esm2020/testing/public-api.mjs +2 -1
- package/esm2020/testing/tokens/token-harness-filters.mjs +1 -1
- package/esm2020/testing/tokens/token-harness.mjs +2 -1
- package/esm2020/testing/tokens/tokens-harness-filters.mjs +1 -1
- package/esm2020/testing/tokens/tokens-harness.mjs +2 -1
- package/esm2020/testing/wait-fixture.mjs +4 -1
- package/fesm2015/skyux-indicators-testing.mjs +9 -0
- package/fesm2015/skyux-indicators-testing.mjs.map +1 -1
- package/fesm2015/skyux-indicators.mjs +388 -230
- package/fesm2015/skyux-indicators.mjs.map +1 -1
- package/fesm2020/skyux-indicators-testing.mjs +9 -0
- package/fesm2020/skyux-indicators-testing.mjs.map +1 -1
- package/fesm2020/skyux-indicators.mjs +388 -230
- package/fesm2020/skyux-indicators.mjs.map +1 -1
- package/lib/modules/alert/alert.component.d.ts +24 -11
- package/lib/modules/chevron/chevron.component.d.ts +4 -5
- package/lib/modules/expansion-indicator/expansion-indicator.component.d.ts +2 -3
- package/lib/modules/icon/icon-stack-item.d.ts +3 -0
- package/lib/modules/icon/icon-stack.component.d.ts +3 -0
- package/lib/modules/icon/icon.component.d.ts +5 -4
- package/lib/modules/label/label.component.d.ts +20 -5
- package/lib/modules/label/label.module.d.ts +4 -2
- package/lib/modules/shared/indicator-description-type.d.ts +1 -1
- package/lib/modules/status-indicator/status-indicator.component.d.ts +5 -10
- package/lib/modules/text-highlight/text-highlight.directive.d.ts +3 -14
- package/package.json +5 -5
- package/testing/alert/alert-harness-filters.d.ts +1 -0
- package/testing/alert/alert-harness.d.ts +2 -1
- package/testing/alert-fixture.d.ts +5 -4
- package/testing/label-fixture.d.ts +1 -0
- package/testing/public-api.d.ts +1 -0
- package/testing/tokens/token-harness-filters.d.ts +1 -0
- package/testing/tokens/token-harness.d.ts +1 -0
- package/testing/tokens/tokens-harness-filters.d.ts +1 -0
- package/testing/tokens/tokens-harness.d.ts +1 -0
- package/testing/wait-fixture.d.ts +3 -0
|
@@ -1,36 +1,49 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { SkyLibResourcesService } from '@skyux/i18n';
|
|
2
3
|
import { SkyIconStackItem } from '../icon/icon-stack-item';
|
|
4
|
+
import { SkyIndicatorDescriptionType } from '../shared/indicator-description-type';
|
|
3
5
|
import { SkyIndicatorIconType } from '../shared/indicator-icon-type';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SkyAlertComponent implements OnInit {
|
|
7
|
+
export declare class SkyAlertComponent implements OnInit, OnDestroy {
|
|
8
|
+
#private;
|
|
6
9
|
/**
|
|
7
10
|
* Specifies a style for the alert to determine the icon and background color.
|
|
8
11
|
* The valid options are `danger`, `info`, `success`, and `warning`.
|
|
9
12
|
* @default "warning"
|
|
10
13
|
*/
|
|
11
|
-
set alertType(value: string);
|
|
12
|
-
get alertType(): string;
|
|
14
|
+
set alertType(value: string | undefined);
|
|
13
15
|
/**
|
|
14
16
|
* Indicates whether to include a close button for users to dismiss the alert.
|
|
15
17
|
* @default false
|
|
16
18
|
*/
|
|
17
|
-
closeable: boolean;
|
|
19
|
+
closeable: boolean | undefined;
|
|
18
20
|
/**
|
|
19
21
|
* Indicates whether the alert is closed.
|
|
20
22
|
* @default false
|
|
21
23
|
*/
|
|
22
|
-
closed: boolean;
|
|
24
|
+
closed: boolean | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the predefined text to be read by screen readers for users who cannot see the alert icon.
|
|
27
|
+
* This property is optional but will be required in future versions of SKY UX.
|
|
28
|
+
*/
|
|
29
|
+
set descriptionType(value: SkyIndicatorDescriptionType | undefined);
|
|
30
|
+
/**
|
|
31
|
+
* Specifies the text to be read by screen readers for users who cannot see
|
|
32
|
+
* the indicator icon when `descriptionType` is `custom`.
|
|
33
|
+
*/
|
|
34
|
+
set customDescription(value: string | undefined);
|
|
23
35
|
/**
|
|
24
36
|
* Fires when users close the alert.
|
|
25
37
|
*/
|
|
26
38
|
closedChange: EventEmitter<boolean>;
|
|
27
|
-
alertBaseIcon: SkyIconStackItem;
|
|
28
|
-
alertTopIcon: SkyIconStackItem;
|
|
39
|
+
alertBaseIcon: SkyIconStackItem | undefined;
|
|
40
|
+
alertTopIcon: SkyIconStackItem | undefined;
|
|
29
41
|
alertTypeOrDefault: SkyIndicatorIconType;
|
|
30
|
-
|
|
42
|
+
descriptionComputed: string | undefined;
|
|
43
|
+
constructor(resources: SkyLibResourcesService);
|
|
31
44
|
ngOnInit(): void;
|
|
45
|
+
ngOnDestroy(): void;
|
|
32
46
|
close(): void;
|
|
33
|
-
private updateAlertIcon;
|
|
34
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyAlertComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyAlertComponent, "sky-alert", never, { "alertType": "alertType"; "closeable": "closeable"; "closed": "closed"; }, { "closedChange": "closedChange"; }, never, ["*"]>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyAlertComponent, "sky-alert", never, { "alertType": "alertType"; "closeable": "closeable"; "closed": "closed"; "descriptionType": "descriptionType"; "customDescription": "customDescription"; }, { "closedChange": "closedChange"; }, never, ["*"]>;
|
|
36
49
|
}
|
|
@@ -10,17 +10,16 @@ export declare class SkyChevronComponent {
|
|
|
10
10
|
* This sets the chevron's aria-controls attribute
|
|
11
11
|
* [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
|
|
12
12
|
*/
|
|
13
|
-
ariaControls: string;
|
|
13
|
+
ariaControls: string | undefined;
|
|
14
14
|
/**
|
|
15
15
|
* Specifies an ARIA label for the chevron. This sets the chevron's aria-label attribute
|
|
16
16
|
* [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
|
|
17
17
|
*/
|
|
18
|
-
ariaLabel: string;
|
|
18
|
+
ariaLabel: string | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Specifies whether the chevron points up or down.
|
|
21
21
|
*/
|
|
22
|
-
set direction(value: string);
|
|
23
|
-
get direction(): string;
|
|
22
|
+
set direction(value: string | undefined);
|
|
24
23
|
/**
|
|
25
24
|
* Indicates whether to disable the chevron button.
|
|
26
25
|
*/
|
|
@@ -30,7 +29,7 @@ export declare class SkyChevronComponent {
|
|
|
30
29
|
*/
|
|
31
30
|
directionChange: EventEmitter<string>;
|
|
32
31
|
ariaExpanded: boolean;
|
|
33
|
-
|
|
32
|
+
directionOrDefault: string;
|
|
34
33
|
chevronClick(event: Event): void;
|
|
35
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyChevronComponent, never>;
|
|
36
35
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyChevronComponent, "sky-chevron", never, { "ariaControls": "ariaControls"; "ariaLabel": "ariaLabel"; "direction": "direction"; "disabled": "disabled"; }, { "directionChange": "directionChange"; }, never, never>;
|
|
@@ -7,9 +7,8 @@ export declare class SkyExpansionIndicatorComponent {
|
|
|
7
7
|
/**
|
|
8
8
|
* Specifies whether the chevron points up or down.
|
|
9
9
|
*/
|
|
10
|
-
set direction(value: string);
|
|
11
|
-
|
|
12
|
-
private _direction;
|
|
10
|
+
set direction(value: string | undefined);
|
|
11
|
+
directionOrDefault: string;
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyExpansionIndicatorComponent, never>;
|
|
14
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyExpansionIndicatorComponent, "sky-expansion-indicator", never, { "direction": "direction"; }, {}, never, never>;
|
|
15
14
|
}
|
|
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class SkyIconComponent {
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the name of
|
|
7
|
-
* [the Font Awesome 4.7 icon](https://fontawesome.com/v4.7/icons/) to
|
|
8
|
-
* display.
|
|
7
|
+
* [the Font Awesome 4.7 icon](https://fontawesome.com/v4.7/icons/) or the SKY UX icon to
|
|
8
|
+
* display. When specifying a Font Awesome icon, do not prefix the name with `fa-`.
|
|
9
9
|
* @required
|
|
10
10
|
*/
|
|
11
11
|
icon: string | undefined;
|
|
@@ -18,16 +18,17 @@ export declare class SkyIconComponent {
|
|
|
18
18
|
iconType: SkyIconType;
|
|
19
19
|
/**
|
|
20
20
|
* Specifies the size of the icon using
|
|
21
|
-
* [Font Awesome sizes](https://fontawesome.com/how-to-use/on-the-web/styling/sizing-icons).
|
|
21
|
+
* [Font Awesome sizes](https://fontawesome.com/how-to-use/on-the-web/styling/sizing-icons). Do not prefix the size with `fa-`.
|
|
22
22
|
*/
|
|
23
23
|
size: string;
|
|
24
24
|
/**
|
|
25
25
|
* Indicates whether the icon has a fixed width.
|
|
26
|
+
* @default false
|
|
26
27
|
*/
|
|
27
28
|
fixedWidth: boolean;
|
|
28
29
|
/**
|
|
29
30
|
* Specifies the icon variant (`"line"` or `"solid"`). If the variant doesn't exist for the
|
|
30
|
-
* specified icon, the normal icon is displayed.
|
|
31
|
+
* specified icon, the normal icon is displayed. This property only applies when using SKY UX icons.
|
|
31
32
|
*/
|
|
32
33
|
variant: SkyIconVariantType;
|
|
33
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyIconComponent, never>;
|
|
@@ -1,19 +1,34 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { SkyLibResourcesService } from '@skyux/i18n';
|
|
1
3
|
import { SkyIconStackItem } from '../icon/icon-stack-item';
|
|
4
|
+
import { SkyIndicatorDescriptionType } from '../shared/indicator-description-type';
|
|
2
5
|
import { SkyLabelType } from './label-type';
|
|
3
6
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SkyLabelComponent {
|
|
7
|
+
export declare class SkyLabelComponent implements OnDestroy, OnInit {
|
|
5
8
|
#private;
|
|
6
9
|
/**
|
|
7
10
|
* The type of label to display.
|
|
8
|
-
* @
|
|
11
|
+
* @default 'info'
|
|
9
12
|
*/
|
|
10
13
|
set labelType(value: SkyLabelType | undefined);
|
|
11
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the predefined text to be read by screen readers for users who cannot see the indicator icon.
|
|
16
|
+
* This property is optional but will be required in future versions of SKY UX.
|
|
17
|
+
*/
|
|
18
|
+
set descriptionType(value: SkyIndicatorDescriptionType | undefined);
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the text to be read by screen readers for users who cannot see
|
|
21
|
+
* the indicator icon when `descriptionType` is `custom`.
|
|
22
|
+
*/
|
|
23
|
+
set customDescription(value: string | undefined);
|
|
12
24
|
baseIcon: SkyIconStackItem | undefined;
|
|
25
|
+
descriptionComputed: string | undefined;
|
|
13
26
|
icon: string | undefined;
|
|
14
27
|
labelTypeOrDefault: SkyLabelType;
|
|
15
28
|
topIcon: SkyIconStackItem | undefined;
|
|
16
|
-
|
|
29
|
+
constructor(changeDetector: ChangeDetectorRef, resources: SkyLibResourcesService);
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
17
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyLabelComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyLabelComponent, "sky-label", never, { "labelType": "labelType"; }, {}, never, ["*"]>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyLabelComponent, "sky-label", never, { "labelType": "labelType"; "descriptionType": "descriptionType"; "customDescription": "customDescription"; }, {}, never, ["*"]>;
|
|
19
34
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./label.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "
|
|
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";
|
|
5
7
|
export declare class SkyLabelModule {
|
|
6
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyLabelModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyLabelModule, [typeof i1.SkyLabelComponent], [typeof i2.CommonModule, typeof i3.SkyIconModule], [typeof i1.SkyLabelComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyLabelModule, [typeof i1.SkyLabelComponent], [typeof i2.CommonModule, typeof i3.SkyI18nModule, typeof i4.SkyIconModule, typeof i5.SkyIndicatorsResourcesModule], [typeof i1.SkyLabelComponent]>;
|
|
8
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyLabelModule>;
|
|
9
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type SkyIndicatorDescriptionType = 'completed' | 'custom' | 'error' | 'important-info' | 'none' | 'warning';
|
|
1
|
+
export declare type SkyIndicatorDescriptionType = 'attention' | 'caution' | 'completed' | 'custom' | 'danger' | 'error' | 'important-info' | 'important-warning' | 'none' | 'success' | 'warning';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { SkyLibResourcesService } from '@skyux/i18n';
|
|
3
3
|
import { SkyIconStackItem } from '../icon/icon-stack-item';
|
|
4
4
|
import { SkyIndicatorDescriptionType } from '../shared/indicator-description-type';
|
|
@@ -10,15 +10,13 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* `sky-help-inline`, in the `sky-status-indicator` element and a `sky-control-help`
|
|
11
11
|
* CSS class on that help button element.
|
|
12
12
|
*/
|
|
13
|
-
export declare class SkyStatusIndicatorComponent {
|
|
14
|
-
private
|
|
15
|
-
private resources;
|
|
13
|
+
export declare class SkyStatusIndicatorComponent implements OnInit {
|
|
14
|
+
#private;
|
|
16
15
|
/**
|
|
17
16
|
* Specifies a style for the status indicator to determine the icon.
|
|
18
17
|
* @default "warning"
|
|
19
18
|
*/
|
|
20
19
|
set indicatorType(value: SkyIndicatorIconType);
|
|
21
|
-
get indicatorType(): SkyIndicatorIconType;
|
|
22
20
|
/**
|
|
23
21
|
* Specifies the predefined text to be read by screen readers for users
|
|
24
22
|
* who cannot see the indicator icon.
|
|
@@ -35,13 +33,10 @@ export declare class SkyStatusIndicatorComponent {
|
|
|
35
33
|
descriptionComputed: string;
|
|
36
34
|
baseIcon: SkyIconStackItem;
|
|
37
35
|
icon: string;
|
|
36
|
+
indicatorTypeOrDefault: SkyIndicatorIconType;
|
|
38
37
|
topIcon: SkyIconStackItem;
|
|
39
|
-
private _indicatorType;
|
|
40
|
-
private _descriptionType;
|
|
41
|
-
private _customDescription;
|
|
42
38
|
constructor(changeDetector: ChangeDetectorRef, resources: SkyLibResourcesService);
|
|
43
|
-
|
|
44
|
-
private updateDescriptionComputed;
|
|
39
|
+
ngOnInit(): void;
|
|
45
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyStatusIndicatorComponent, never>;
|
|
46
41
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyStatusIndicatorComponent, "sky-status-indicator", never, { "indicatorType": "indicatorType"; "descriptionType": "descriptionType"; "customDescription": "customDescription"; }, {}, never, ["*", ".sky-control-help"]>;
|
|
47
42
|
}
|
|
@@ -5,26 +5,15 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* Highlights all matching text within the current DOM element.
|
|
6
6
|
*/
|
|
7
7
|
export declare class SkyTextHighlightDirective implements OnChanges, AfterViewInit, OnDestroy {
|
|
8
|
-
private
|
|
9
|
-
private observerService;
|
|
8
|
+
#private;
|
|
10
9
|
/**
|
|
11
10
|
* Specifies the text to highlight.
|
|
12
11
|
*/
|
|
13
|
-
set skyHighlight(value: string | string[]);
|
|
14
|
-
|
|
15
|
-
private observer;
|
|
16
|
-
private _skyHighlight;
|
|
17
|
-
constructor(el: ElementRef, observerService: MutationObserverService);
|
|
18
|
-
private static cleanRegex;
|
|
19
|
-
private static markNode;
|
|
20
|
-
private static markTextNodes;
|
|
21
|
-
private static removeHighlight;
|
|
12
|
+
set skyHighlight(value: string | string[] | undefined);
|
|
13
|
+
constructor(el: ElementRef, observerSvc: MutationObserverService);
|
|
22
14
|
ngOnChanges(changes: SimpleChanges): void;
|
|
23
15
|
ngAfterViewInit(): void;
|
|
24
16
|
ngOnDestroy(): void;
|
|
25
|
-
private readyForHighlight;
|
|
26
|
-
private highlight;
|
|
27
|
-
private observeDom;
|
|
28
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyTextHighlightDirective, never>;
|
|
29
18
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SkyTextHighlightDirective, "[skyHighlight]", never, { "skyHighlight": "skyHighlight"; }, {}, never>;
|
|
30
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/indicators",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.17.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@angular/common": "^13.3.2",
|
|
46
46
|
"@angular/core": "^13.3.2",
|
|
47
47
|
"@angular/platform-browser": "^13.3.2",
|
|
48
|
-
"@skyux-sdk/testing": "6.
|
|
49
|
-
"@skyux/core": "6.
|
|
50
|
-
"@skyux/i18n": "6.
|
|
51
|
-
"@skyux/theme": "6.
|
|
48
|
+
"@skyux-sdk/testing": "6.17.0",
|
|
49
|
+
"@skyux/core": "6.17.0",
|
|
50
|
+
"@skyux/i18n": "6.17.0",
|
|
51
|
+
"@skyux/theme": "6.17.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"tslib": "^2.3.1"
|
|
@@ -4,6 +4,7 @@ import { SkyIndicatorIconType } from '@skyux/indicators';
|
|
|
4
4
|
import { SkyAlertHarnessFilters } from './alert-harness-filters';
|
|
5
5
|
/**
|
|
6
6
|
* Harness for interacting with an alert component in tests.
|
|
7
|
+
* @internal
|
|
7
8
|
*/
|
|
8
9
|
export declare class SkyAlertHarness extends SkyComponentHarness {
|
|
9
10
|
#private;
|
|
@@ -16,7 +17,7 @@ export declare class SkyAlertHarness extends SkyComponentHarness {
|
|
|
16
17
|
/**
|
|
17
18
|
* Gets the current alert type.
|
|
18
19
|
*/
|
|
19
|
-
getAlertType(): Promise<SkyIndicatorIconType>;
|
|
20
|
+
getAlertType(): Promise<SkyIndicatorIconType | undefined>;
|
|
20
21
|
/**
|
|
21
22
|
* Gets the current alert text.
|
|
22
23
|
*/
|
|
@@ -2,16 +2,17 @@ import { ComponentFixture } from '@angular/core/testing';
|
|
|
2
2
|
/**
|
|
3
3
|
* Allows interaction with a SKY UX alert component.
|
|
4
4
|
* @deprecated Use `SkyAlertHarness` instead.
|
|
5
|
+
* @internal
|
|
5
6
|
*/
|
|
6
7
|
export declare class SkyAlertFixture {
|
|
7
8
|
/**
|
|
8
9
|
* The alert's current text.
|
|
9
10
|
*/
|
|
10
|
-
get text(): string;
|
|
11
|
+
get text(): string | undefined;
|
|
11
12
|
/**
|
|
12
13
|
* A flag indicating whether the alert can be closed.
|
|
13
14
|
*/
|
|
14
|
-
get closeable(): boolean;
|
|
15
|
+
get closeable(): boolean | undefined;
|
|
15
16
|
/**
|
|
16
17
|
* Returns a flag indicating whether the alert is closed.
|
|
17
18
|
*/
|
|
@@ -19,9 +20,9 @@ export declare class SkyAlertFixture {
|
|
|
19
20
|
/**
|
|
20
21
|
* The alert's current type.
|
|
21
22
|
*/
|
|
22
|
-
get alertType(): string;
|
|
23
|
+
get alertType(): string | undefined;
|
|
23
24
|
private debugEl;
|
|
24
|
-
constructor(fixture: ComponentFixture<
|
|
25
|
+
constructor(fixture: ComponentFixture<unknown>, skyTestId: string);
|
|
25
26
|
/**
|
|
26
27
|
* Closes the alert. If the alert is not closeable, an error is thrown.
|
|
27
28
|
*/
|
package/testing/public-api.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ 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
|
|
5
6
|
*/
|
|
6
7
|
export declare class SkyTokenHarness extends ComponentHarness {
|
|
7
8
|
#private;
|
|
@@ -4,6 +4,7 @@ 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
|
|
7
8
|
*/
|
|
8
9
|
export declare class SkyTokensHarness extends SkyComponentHarness {
|
|
9
10
|
static hostSelector: string;
|