@skyux/forms 12.27.0 → 13.0.0-alpha.1
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/fesm2022/skyux-forms-testing.mjs.map +1 -1
- package/fesm2022/skyux-forms.mjs +159 -159
- package/fesm2022/skyux-forms.mjs.map +1 -1
- package/index.d.ts +1800 -61
- package/package.json +14 -14
- package/testing/index.d.ts +1117 -3
- package/lib/modules/character-counter/character-counter-indicator.component.d.ts +0 -12
- package/lib/modules/character-counter/character-counter-screen-reader.pipe.d.ts +0 -8
- package/lib/modules/character-counter/character-counter.directive.d.ts +0 -29
- package/lib/modules/character-counter/character-counter.module.d.ts +0 -12
- package/lib/modules/checkbox/checkbox-change.d.ts +0 -9
- package/lib/modules/checkbox/checkbox-group-heading-level.d.ts +0 -1
- package/lib/modules/checkbox/checkbox-group-heading-style.d.ts +0 -1
- package/lib/modules/checkbox/checkbox-group.component.d.ts +0 -76
- package/lib/modules/checkbox/checkbox-label-text-label.component.d.ts +0 -12
- package/lib/modules/checkbox/checkbox-label.component.d.ts +0 -11
- package/lib/modules/checkbox/checkbox.component.d.ts +0 -195
- package/lib/modules/checkbox/checkbox.module.d.ts +0 -19
- package/lib/modules/field-group/field-group-heading-level.d.ts +0 -1
- package/lib/modules/field-group/field-group-heading-style.d.ts +0 -1
- package/lib/modules/field-group/field-group.component.d.ts +0 -61
- package/lib/modules/field-group/field-group.module.d.ts +0 -7
- package/lib/modules/file-attachment/file-attachment/file-attachment-change.d.ts +0 -7
- package/lib/modules/file-attachment/file-attachment/file-attachment-click.d.ts +0 -7
- package/lib/modules/file-attachment/file-attachment/file-attachment-join-ids.pipe.d.ts +0 -11
- package/lib/modules/file-attachment/file-attachment/file-attachment-label.component.d.ts +0 -17
- package/lib/modules/file-attachment/file-attachment/file-attachment.component.d.ts +0 -153
- package/lib/modules/file-attachment/file-attachment/file-attachment.module.d.ts +0 -9
- package/lib/modules/file-attachment/file-attachment/file-attachment.service.d.ts +0 -17
- package/lib/modules/file-attachment/file-attachments.module.d.ts +0 -11
- package/lib/modules/file-attachment/file-drop/file-drop-change.d.ts +0 -11
- package/lib/modules/file-attachment/file-drop/file-drop.component.d.ts +0 -162
- package/lib/modules/file-attachment/file-drop/file-drop.module.d.ts +0 -9
- package/lib/modules/file-attachment/file-drop/file-item.component.d.ts +0 -33
- package/lib/modules/file-attachment/file-drop/file-link.d.ts +0 -6
- package/lib/modules/file-attachment/shared/file-item-error-type.d.ts +0 -4
- package/lib/modules/file-attachment/shared/file-item.d.ts +0 -20
- package/lib/modules/file-attachment/shared/file-item.service.d.ts +0 -13
- package/lib/modules/file-attachment/shared/file-size.pipe.d.ts +0 -13
- package/lib/modules/file-attachment/shared/file-validate-function.d.ts +0 -5
- package/lib/modules/form-error/form-error.component.d.ts +0 -25
- package/lib/modules/form-error/form-error.module.d.ts +0 -7
- package/lib/modules/form-error/form-errors-enabled-token.d.ts +0 -5
- package/lib/modules/form-error/form-errors.component.d.ts +0 -30
- package/lib/modules/form-error/form-errors.module.d.ts +0 -11
- package/lib/modules/input-box/input-box-adapter.service.d.ts +0 -28
- package/lib/modules/input-box/input-box-control.directive.d.ts +0 -11
- package/lib/modules/input-box/input-box-hint-text.pipe.d.ts +0 -10
- package/lib/modules/input-box/input-box-host.service.d.ts +0 -40
- package/lib/modules/input-box/input-box-populate-args.d.ts +0 -12
- package/lib/modules/input-box/input-box.component.d.ts +0 -118
- package/lib/modules/input-box/input-box.module.d.ts +0 -16
- package/lib/modules/radio/radio-group-id.service.d.ts +0 -24
- package/lib/modules/radio/radio-group.component.d.ts +0 -157
- package/lib/modules/radio/radio-label.component.d.ts +0 -13
- package/lib/modules/radio/radio.component.d.ts +0 -169
- package/lib/modules/radio/radio.module.d.ts +0 -18
- package/lib/modules/radio/types/radio-change.d.ts +0 -9
- package/lib/modules/radio/types/radio-group-heading-level.d.ts +0 -1
- package/lib/modules/radio/types/radio-group-heading-style.d.ts +0 -1
- package/lib/modules/radio/types/radio-type.d.ts +0 -4
- package/lib/modules/required-state/required-state.directive.d.ts +0 -17
- package/lib/modules/selection-box/selection-box-adapter.service.d.ts +0 -46
- package/lib/modules/selection-box/selection-box-description.component.d.ts +0 -8
- package/lib/modules/selection-box/selection-box-grid.component.d.ts +0 -29
- package/lib/modules/selection-box/selection-box-header.component.d.ts +0 -8
- package/lib/modules/selection-box/selection-box.component.d.ts +0 -29
- package/lib/modules/selection-box/selection-box.module.d.ts +0 -12
- package/lib/modules/selection-box/types/selection-box-grid-align-items-type.d.ts +0 -4
- package/lib/modules/selection-box/types/selection-box-grid-align-items.d.ts +0 -14
- package/lib/modules/shared/sky-forms-resources.module.d.ts +0 -10
- package/lib/modules/toggle-switch/toggle-switch-label.component.d.ts +0 -12
- package/lib/modules/toggle-switch/toggle-switch.component.d.ts +0 -81
- package/lib/modules/toggle-switch/toggle-switch.module.d.ts +0 -12
- package/lib/modules/toggle-switch/types/toggle-switch-change.d.ts +0 -6
- package/testing/legacy/checkbox-fixture.d.ts +0 -38
- package/testing/legacy/radio-fixture.d.ts +0 -26
- package/testing/modules/character-counter/character-counter-indicator-harness-filters.d.ts +0 -6
- package/testing/modules/character-counter/character-counter-indicator-harness.d.ts +0 -31
- package/testing/modules/checkbox/checkbox-group-harness-filters.d.ts +0 -6
- package/testing/modules/checkbox/checkbox-group-harness.d.ts +0 -73
- package/testing/modules/checkbox/checkbox-harness-filters.d.ts +0 -6
- package/testing/modules/checkbox/checkbox-harness.d.ts +0 -103
- package/testing/modules/checkbox/checkbox-label-harness.d.ts +0 -16
- package/testing/modules/checkbox/checkbox-label-text-label.harness.d.ts +0 -16
- package/testing/modules/field-group/field-group-harness-filters.d.ts +0 -6
- package/testing/modules/field-group/field-group-harness.d.ts +0 -56
- package/testing/modules/file-attachment/file-attachment/file-attachment-harness-filters.d.ts +0 -6
- package/testing/modules/file-attachment/file-attachment/file-attachment-harness.d.ts +0 -101
- package/testing/modules/file-attachment/file-drop/file-drop-harness-filters.d.ts +0 -6
- package/testing/modules/file-attachment/file-drop/file-drop-harness.d.ts +0 -124
- package/testing/modules/file-attachment/file-drop/file-drop-link-upload-harness.d.ts +0 -28
- package/testing/modules/file-attachment/file-drop/file-drop-link-upload-input-harness.d.ts +0 -14
- package/testing/modules/file-attachment/file-drop/file-item-harness-filters.d.ts +0 -10
- package/testing/modules/file-attachment/file-drop/file-item-harness.d.ts +0 -28
- package/testing/modules/file-attachment/shared/provide-file-attachment-testing.d.ts +0 -11
- package/testing/modules/form-error/form-error-harness.d.ts +0 -23
- package/testing/modules/form-error/form-error-harness.filters.d.ts +0 -6
- package/testing/modules/form-error/form-errors-harness.d.ts +0 -24
- package/testing/modules/form-error/form-errors-harness.filters.d.ts +0 -6
- package/testing/modules/input-box/input-box-harness-filters.d.ts +0 -6
- package/testing/modules/input-box/input-box-harness.d.ts +0 -108
- package/testing/modules/radio/radio-group-harness-filters.d.ts +0 -6
- package/testing/modules/radio/radio-group-harness.d.ts +0 -69
- package/testing/modules/radio/radio-harness-filters.d.ts +0 -6
- package/testing/modules/radio/radio-harness.d.ts +0 -79
- package/testing/modules/radio/radio-label-harness.d.ts +0 -16
- package/testing/modules/selection-box/selection-box-description-harness.d.ts +0 -15
- package/testing/modules/selection-box/selection-box-grid-harness-filters.d.ts +0 -6
- package/testing/modules/selection-box/selection-box-grid-harness.d.ts +0 -27
- package/testing/modules/selection-box/selection-box-harness-filters.d.ts +0 -6
- package/testing/modules/selection-box/selection-box-harness.d.ts +0 -36
- package/testing/modules/selection-box/selection-box-header-harness.d.ts +0 -15
- package/testing/modules/toggle-switch/toggle-switch-harness-filters.d.ts +0 -6
- package/testing/modules/toggle-switch/toggle-switch-harness.d.ts +0 -67
- package/testing/modules/toggle-switch/toggle-switch-label-harness.d.ts +0 -16
- package/testing/public-api.d.ts +0 -35
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
-
import { SkyFieldGroupHeadingLevel, SkyFieldGroupHeadingStyle } from '@skyux/forms';
|
|
4
|
-
import { SkyFieldGroupHarnessFilters } from './field-group-harness-filters';
|
|
5
|
-
/**
|
|
6
|
-
* Harness for interacting with a field group component in tests.
|
|
7
|
-
*/
|
|
8
|
-
export declare class SkyFieldGroupHarness extends SkyComponentHarness {
|
|
9
|
-
#private;
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
static hostSelector: string;
|
|
14
|
-
/**
|
|
15
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
16
|
-
* `SkyFieldGroupHarness` that meets certain criteria.
|
|
17
|
-
*/
|
|
18
|
-
static with(filters: SkyFieldGroupHarnessFilters): HarnessPredicate<SkyFieldGroupHarness>;
|
|
19
|
-
/**
|
|
20
|
-
* Gets the field group's heading text. If `headingHidden` is true,
|
|
21
|
-
* the text will still be returned.
|
|
22
|
-
*/
|
|
23
|
-
getHeadingText(): Promise<string | undefined>;
|
|
24
|
-
/**
|
|
25
|
-
* Gets the field group's hint text.
|
|
26
|
-
*/
|
|
27
|
-
getHintText(): Promise<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Whether the heading is hidden.
|
|
30
|
-
*/
|
|
31
|
-
getHeadingHidden(): Promise<boolean>;
|
|
32
|
-
/**
|
|
33
|
-
* Whether the field group is stacked.
|
|
34
|
-
*/
|
|
35
|
-
getStacked(): Promise<boolean>;
|
|
36
|
-
/**
|
|
37
|
-
* The semantic heading level used for the field group.
|
|
38
|
-
*/
|
|
39
|
-
getHeadingLevel(): Promise<SkyFieldGroupHeadingLevel>;
|
|
40
|
-
/**
|
|
41
|
-
* The heading style used for the field group.
|
|
42
|
-
*/
|
|
43
|
-
getHeadingStyle(): Promise<SkyFieldGroupHeadingStyle>;
|
|
44
|
-
/**
|
|
45
|
-
* Clicks the help inline button.
|
|
46
|
-
*/
|
|
47
|
-
clickHelpInline(): Promise<void>;
|
|
48
|
-
/**
|
|
49
|
-
* Gets the help popover content.
|
|
50
|
-
*/
|
|
51
|
-
getHelpPopoverContent(): Promise<string | undefined>;
|
|
52
|
-
/**
|
|
53
|
-
* Gets the help popover title.
|
|
54
|
-
*/
|
|
55
|
-
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
56
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
-
import { SkyFileAttachmentHarnessFilters } from './file-attachment-harness-filters';
|
|
4
|
-
/**
|
|
5
|
-
* Harness for interacting with a file attachment component in tests.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkyFileAttachmentHarness 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
|
-
* `SkyFileAttachmentHarness` that meets certain criteria.
|
|
16
|
-
*/
|
|
17
|
-
static with(filters: SkyFileAttachmentHarnessFilters): HarnessPredicate<SkyFileAttachmentHarness>;
|
|
18
|
-
/**
|
|
19
|
-
* Clicks the attach file button if it is visible.
|
|
20
|
-
*/
|
|
21
|
-
clickAttachFileButton(): Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Clicks the help inline button.
|
|
24
|
-
*/
|
|
25
|
-
clickHelpInline(): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Clicks the replace file button in default theme.
|
|
28
|
-
*/
|
|
29
|
-
clickReplaceFileButton(): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Clicks the attached file to download it.
|
|
32
|
-
*/
|
|
33
|
-
clickAttachedFile(): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Clicks the attached file's delete button.
|
|
36
|
-
*/
|
|
37
|
-
clickAttachedFileDeleteButton(): Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Gets the accepted file types.
|
|
40
|
-
*/
|
|
41
|
-
getAcceptedTypes(): Promise<string | null>;
|
|
42
|
-
/**
|
|
43
|
-
* Gets the help inline popover content.
|
|
44
|
-
*/
|
|
45
|
-
getHelpPopoverContent(): Promise<string | undefined>;
|
|
46
|
-
/**
|
|
47
|
-
* Gets the help inline popover title.
|
|
48
|
-
*/
|
|
49
|
-
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
50
|
-
/**
|
|
51
|
-
* Gets the hint text.
|
|
52
|
-
*/
|
|
53
|
-
getHintText(): Promise<string>;
|
|
54
|
-
/**
|
|
55
|
-
* Gets the file attachment label.
|
|
56
|
-
*/
|
|
57
|
-
getLabelText(): Promise<string>;
|
|
58
|
-
/**
|
|
59
|
-
* Whether a custom error has fired.
|
|
60
|
-
*/
|
|
61
|
-
hasCustomError(errorName: string): Promise<boolean>;
|
|
62
|
-
/**
|
|
63
|
-
* Whether the wrong file type error has fired.
|
|
64
|
-
*/
|
|
65
|
-
hasFileTypeError(): Promise<boolean>;
|
|
66
|
-
/**
|
|
67
|
-
* Whether the max file size error has fired.
|
|
68
|
-
*/
|
|
69
|
-
hasMaxFileSizeError(): Promise<boolean>;
|
|
70
|
-
/**
|
|
71
|
-
* Whether the min file size error has fired.
|
|
72
|
-
*/
|
|
73
|
-
hasMinFileSizeError(): Promise<boolean>;
|
|
74
|
-
/**
|
|
75
|
-
* Whether the required error has fired.
|
|
76
|
-
*/
|
|
77
|
-
hasRequiredError(): Promise<boolean>;
|
|
78
|
-
/**
|
|
79
|
-
* Whether file attachment is disabled.
|
|
80
|
-
*/
|
|
81
|
-
isDisabled(): Promise<boolean>;
|
|
82
|
-
/**
|
|
83
|
-
* Whether file attachment is required.
|
|
84
|
-
*/
|
|
85
|
-
isRequired(): Promise<boolean>;
|
|
86
|
-
/**
|
|
87
|
-
* Whether file attachment has stacked enabled.
|
|
88
|
-
*/
|
|
89
|
-
isStacked(): Promise<boolean>;
|
|
90
|
-
/**
|
|
91
|
-
* Attaches a file.
|
|
92
|
-
* Be sure to include `provideSkyFileReaderTesting` as a provider when calling this function in tests.
|
|
93
|
-
* @example
|
|
94
|
-
* ```typescript
|
|
95
|
-
* TestBed.configureTestingModule({
|
|
96
|
-
* providers: [provideSkyFileReaderTesting()]
|
|
97
|
-
* });
|
|
98
|
-
* ```
|
|
99
|
-
*/
|
|
100
|
-
attachFile(file: File): Promise<void>;
|
|
101
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
-
import { SkyFileDropHarnessFilters } from './file-drop-harness-filters';
|
|
4
|
-
/**
|
|
5
|
-
* Harness for interacting with a file drop component in tests.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkyFileDropHarness 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
|
-
* `SkyFileDropHarness` that meets certain criteria.
|
|
16
|
-
*/
|
|
17
|
-
static with(filters: SkyFileDropHarnessFilters): HarnessPredicate<SkyFileDropHarness>;
|
|
18
|
-
/**
|
|
19
|
-
* Clicks the file drop target.
|
|
20
|
-
*/
|
|
21
|
-
clickFileDropTarget(): Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Clicks the help inline button.
|
|
24
|
-
*/
|
|
25
|
-
clickHelpInline(): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Clicks the link upload `Done` button'.
|
|
28
|
-
*/
|
|
29
|
-
clickLinkUploadDoneButton(): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Enters text into the link upload input.
|
|
32
|
-
*/
|
|
33
|
-
enterLinkUploadText(link: string): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Gets the accepted file types.
|
|
36
|
-
*/
|
|
37
|
-
getAcceptedTypes(): Promise<string | null>;
|
|
38
|
-
/**
|
|
39
|
-
* Gets the aria-label for the file upload button.
|
|
40
|
-
*/
|
|
41
|
-
getFileUploadAriaLabel(): Promise<string | null>;
|
|
42
|
-
/**
|
|
43
|
-
* Gets the help inline popover content.
|
|
44
|
-
*/
|
|
45
|
-
getHelpPopoverContent(): Promise<string | undefined>;
|
|
46
|
-
/**
|
|
47
|
-
* Gets the help inline popover title.
|
|
48
|
-
*/
|
|
49
|
-
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
50
|
-
/**
|
|
51
|
-
* Gets the hint text.
|
|
52
|
-
*/
|
|
53
|
-
getHintText(): Promise<string>;
|
|
54
|
-
/**
|
|
55
|
-
* Gets the label text.
|
|
56
|
-
*/
|
|
57
|
-
getLabelText(): Promise<string>;
|
|
58
|
-
/**
|
|
59
|
-
* Gets the link upload aria-label.
|
|
60
|
-
*/
|
|
61
|
-
getLinkUploadAriaLabel(): Promise<string | null>;
|
|
62
|
-
/**
|
|
63
|
-
* Gets the link upload hint text.
|
|
64
|
-
*/
|
|
65
|
-
getLinkUploadHintText(): Promise<string | undefined>;
|
|
66
|
-
/**
|
|
67
|
-
* Whether a custom form error has fired.
|
|
68
|
-
*/
|
|
69
|
-
hasCustomError(errorName: string): Promise<boolean>;
|
|
70
|
-
/**
|
|
71
|
-
* Whether the file type error has fired.
|
|
72
|
-
*/
|
|
73
|
-
hasFileTypeError(): Promise<boolean>;
|
|
74
|
-
/**
|
|
75
|
-
* Whether the max file size error has fired.
|
|
76
|
-
*/
|
|
77
|
-
hasMaxFileSizeError(): Promise<boolean>;
|
|
78
|
-
/**
|
|
79
|
-
* Whether the min file size error has fired.
|
|
80
|
-
*/
|
|
81
|
-
hasMinFileSizeError(): Promise<boolean>;
|
|
82
|
-
/**
|
|
83
|
-
* Whether the required error has fired.
|
|
84
|
-
*/
|
|
85
|
-
hasRequiredError(): Promise<boolean>;
|
|
86
|
-
/**
|
|
87
|
-
* Whether the validate error from the customer validation has fired.
|
|
88
|
-
*/
|
|
89
|
-
hasValidateFnError(): Promise<boolean>;
|
|
90
|
-
/**
|
|
91
|
-
* Whether label text is hidden.
|
|
92
|
-
*/
|
|
93
|
-
isLabelHidden(): Promise<boolean>;
|
|
94
|
-
/**
|
|
95
|
-
* Whether file drop is required.
|
|
96
|
-
*/
|
|
97
|
-
isRequired(): Promise<boolean>;
|
|
98
|
-
/**
|
|
99
|
-
* Whether file drop has stacked enabled.
|
|
100
|
-
*/
|
|
101
|
-
isStacked(): Promise<boolean>;
|
|
102
|
-
/**
|
|
103
|
-
* Loads a single file.
|
|
104
|
-
* Be sure to include `provideSkyFileReaderTesting` as a provider when calling this function in tests.
|
|
105
|
-
* @example
|
|
106
|
-
* ```typescript
|
|
107
|
-
* TestBed.configureTestingModule({
|
|
108
|
-
* providers: [provideSkyFileReaderTesting()]
|
|
109
|
-
* });
|
|
110
|
-
* ``
|
|
111
|
-
*/
|
|
112
|
-
loadFile(file: File): Promise<void>;
|
|
113
|
-
/**
|
|
114
|
-
* Loads multiple files.
|
|
115
|
-
* Be sure to include `provideSkyFileReaderTesting` as a provider when calling this function in tests.
|
|
116
|
-
* @example
|
|
117
|
-
* ```typescript
|
|
118
|
-
* TestBed.configureTestingModule({
|
|
119
|
-
* providers: [provideSkyFileReaderTesting()]
|
|
120
|
-
* });
|
|
121
|
-
* ``
|
|
122
|
-
*/
|
|
123
|
-
loadFiles(files: File[] | null): Promise<void>;
|
|
124
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
2
|
-
/**
|
|
3
|
-
* Harness for interacting with file drop component's link upload feature in tests.
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare class SkyFileDropLinkUploadHarness extends SkyComponentHarness {
|
|
7
|
-
#private;
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
static hostSelector: string;
|
|
12
|
-
/**
|
|
13
|
-
* Clicks the `Done` button
|
|
14
|
-
*/
|
|
15
|
-
clickDoneButton(): Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* Enters text into the link upload input.
|
|
18
|
-
*/
|
|
19
|
-
enterText(link: string): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* Gets the link upload aria-label.
|
|
22
|
-
*/
|
|
23
|
-
getAriaLabel(): Promise<string | null>;
|
|
24
|
-
/**
|
|
25
|
-
* Gets the hint text.
|
|
26
|
-
*/
|
|
27
|
-
getHintText(): Promise<string | undefined>;
|
|
28
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SkyInputHarness } from '@skyux/core/testing';
|
|
2
|
-
/**
|
|
3
|
-
* Harness to interact with the file drop link upload input harness.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SkyFileDropLinkUploadInputHarness extends SkyInputHarness {
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
static hostSelector: string;
|
|
10
|
-
/**
|
|
11
|
-
* Gets the input aria-label
|
|
12
|
-
*/
|
|
13
|
-
getAriaLabel(): Promise<string | null>;
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SkyHarnessFilters } from '@skyux/core/testing';
|
|
2
|
-
/**
|
|
3
|
-
* A set of criteria that can be used to filter a list of `SkyFileItemHarness` instances.
|
|
4
|
-
*/
|
|
5
|
-
export interface SkyFileItemHarnessFilters extends SkyHarnessFilters {
|
|
6
|
-
/**
|
|
7
|
-
* Finds files whose file name matches this value.
|
|
8
|
-
*/
|
|
9
|
-
fileName: string;
|
|
10
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyFileItemHarnessFilters } from './file-item-harness-filters';
|
|
3
|
-
/**
|
|
4
|
-
* Harness for interacting with a file item component in tests.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SkyFileItemHarness extends ComponentHarness {
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
static hostSelector: string;
|
|
11
|
-
/**
|
|
12
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
13
|
-
* `SkyFileItemHarness` that meets certain criteria.
|
|
14
|
-
*/
|
|
15
|
-
static with(filters: SkyFileItemHarnessFilters): HarnessPredicate<SkyFileItemHarness>;
|
|
16
|
-
/**
|
|
17
|
-
* Clicks the delete button.
|
|
18
|
-
*/
|
|
19
|
-
clickDeleteButton(): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* Gets the file name.
|
|
22
|
-
*/
|
|
23
|
-
getFileName(): Promise<string>;
|
|
24
|
-
/**
|
|
25
|
-
* Gets the file size.
|
|
26
|
-
*/
|
|
27
|
-
getFileSize(): Promise<string>;
|
|
28
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Provides mocks for file attachment testing.
|
|
4
|
-
* @example
|
|
5
|
-
* ```typescript
|
|
6
|
-
* TestBed.configureTestingModule({
|
|
7
|
-
* providers: [provideSkyFileAttachmentTesting()]
|
|
8
|
-
* });
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export declare function provideSkyFileAttachmentTesting(): Provider[];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
-
import { SkyFormErrorHarnessFilters } from './form-error-harness.filters';
|
|
4
|
-
export declare class SkyFormErrorHarness extends SkyComponentHarness {
|
|
5
|
-
#private;
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
static hostSelector: string;
|
|
10
|
-
/**
|
|
11
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
12
|
-
* `SkyFormErrorHarness` that meets certain criteria
|
|
13
|
-
*/
|
|
14
|
-
static with(filters: SkyFormErrorHarnessFilters): HarnessPredicate<SkyFormErrorHarness>;
|
|
15
|
-
/**
|
|
16
|
-
* Gets the error name.
|
|
17
|
-
*/
|
|
18
|
-
getErrorName(): Promise<string | null>;
|
|
19
|
-
/**
|
|
20
|
-
* Gets the error text.
|
|
21
|
-
*/
|
|
22
|
-
getErrorText(): Promise<string | null>;
|
|
23
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
-
import { SkyFormErrorsHarnessFilters } from './form-errors-harness.filters';
|
|
4
|
-
export declare class SkyFormErrorsHarness extends SkyComponentHarness {
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
static hostSelector: string;
|
|
9
|
-
/**
|
|
10
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
11
|
-
* `SkyFormErrorsHarness` that meets certain criteria
|
|
12
|
-
*/
|
|
13
|
-
static with(filters: SkyFormErrorsHarnessFilters): HarnessPredicate<SkyFormErrorsHarness>;
|
|
14
|
-
/**
|
|
15
|
-
* Gets a list of all errors fired.
|
|
16
|
-
*/
|
|
17
|
-
getFormErrors(): Promise<{
|
|
18
|
-
errorName: string | null;
|
|
19
|
-
}[]>;
|
|
20
|
-
/**
|
|
21
|
-
* Whether an error with the given name has fired.
|
|
22
|
-
*/
|
|
23
|
-
hasError(errorName: string): Promise<boolean>;
|
|
24
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyQueryableComponentHarness } from '@skyux/core/testing';
|
|
3
|
-
import { SkyStatusIndicatorHarness } from '@skyux/indicators/testing';
|
|
4
|
-
import { SkyPopoverHarness } from '@skyux/popovers/testing';
|
|
5
|
-
import { SkyCharacterCounterIndicatorHarness } from '../character-counter/character-counter-indicator-harness';
|
|
6
|
-
import { SkyInputBoxHarnessFilters } from './input-box-harness-filters';
|
|
7
|
-
/**
|
|
8
|
-
* Harness for interacting with an input box component in tests.
|
|
9
|
-
*/
|
|
10
|
-
export declare class SkyInputBoxHarness extends SkyQueryableComponentHarness {
|
|
11
|
-
#private;
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
static hostSelector: string;
|
|
16
|
-
/**
|
|
17
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
18
|
-
* `SkyInputBoxHarness` that meets certain criteria.
|
|
19
|
-
*/
|
|
20
|
-
static with(filters: SkyInputBoxHarnessFilters): HarnessPredicate<SkyInputBoxHarness>;
|
|
21
|
-
/**
|
|
22
|
-
* Clicks the help inline button.
|
|
23
|
-
*/
|
|
24
|
-
clickHelpInline(): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Gets the character counter indicator for the input box or throws an error if
|
|
27
|
-
* a character limit is not specified.
|
|
28
|
-
*/
|
|
29
|
-
getCharacterCounter(): Promise<SkyCharacterCounterIndicatorHarness>;
|
|
30
|
-
/**
|
|
31
|
-
* Gets a list of status indicator harnesses for errors not automatically
|
|
32
|
-
* handled by input box.
|
|
33
|
-
*/
|
|
34
|
-
getCustomErrors(): Promise<SkyStatusIndicatorHarness[]>;
|
|
35
|
-
/**
|
|
36
|
-
* Whether the custom error is triggered.
|
|
37
|
-
*/
|
|
38
|
-
hasCustomFormError(errorName: string): Promise<boolean>;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the required field is empty.
|
|
41
|
-
*/
|
|
42
|
-
hasRequiredError(): Promise<boolean>;
|
|
43
|
-
/**
|
|
44
|
-
* Whether the field has more characters than allowed.
|
|
45
|
-
*/
|
|
46
|
-
hasMaxLengthError(): Promise<boolean>;
|
|
47
|
-
/**
|
|
48
|
-
* Whether the field has fewer characters than allowed.
|
|
49
|
-
*/
|
|
50
|
-
hasMinLengthError(): Promise<boolean>;
|
|
51
|
-
/**
|
|
52
|
-
* Whether the field is set to an invalid email address.
|
|
53
|
-
*/
|
|
54
|
-
hasEmailError(): Promise<boolean>;
|
|
55
|
-
/**
|
|
56
|
-
* Whether the field is set to an invalid URL.
|
|
57
|
-
*/
|
|
58
|
-
hasUrlError(): Promise<boolean>;
|
|
59
|
-
/**
|
|
60
|
-
* Whether the field is set to an invalid date.
|
|
61
|
-
*/
|
|
62
|
-
hasInvalidDateError(): Promise<boolean>;
|
|
63
|
-
/**
|
|
64
|
-
* Whether the field is set to an invalid minimum date.
|
|
65
|
-
*/
|
|
66
|
-
hasMinDateError(): Promise<boolean>;
|
|
67
|
-
/**
|
|
68
|
-
* Whether the field is set to an invalid maximum date.
|
|
69
|
-
*/
|
|
70
|
-
hasMaxDateError(): Promise<boolean>;
|
|
71
|
-
/**
|
|
72
|
-
* Whether the field is set to an invalid phone number.
|
|
73
|
-
*/
|
|
74
|
-
hasPhoneFieldError(): Promise<boolean>;
|
|
75
|
-
/**
|
|
76
|
-
* Whether the field is set to an invalid time.
|
|
77
|
-
*/
|
|
78
|
-
hasTimeError(): Promise<boolean>;
|
|
79
|
-
/**
|
|
80
|
-
* Indicates whether the input box has disabled styles applied.
|
|
81
|
-
*/
|
|
82
|
-
getDisabled(): Promise<boolean>;
|
|
83
|
-
/**
|
|
84
|
-
* Gets the text for the input box label.
|
|
85
|
-
*/
|
|
86
|
-
getLabelText(): Promise<string>;
|
|
87
|
-
/**
|
|
88
|
-
* Gets the help popover for the input box or throws an error if
|
|
89
|
-
* the help popover is not configured.
|
|
90
|
-
*/
|
|
91
|
-
getHelpPopover(): Promise<SkyPopoverHarness>;
|
|
92
|
-
/**2
|
|
93
|
-
* Gets the help popover content.
|
|
94
|
-
*/
|
|
95
|
-
getHelpPopoverContent(): Promise<string | undefined>;
|
|
96
|
-
/**
|
|
97
|
-
* Gets the help popover title.
|
|
98
|
-
*/
|
|
99
|
-
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
100
|
-
/**
|
|
101
|
-
* Gets the hint text for the input box.
|
|
102
|
-
*/
|
|
103
|
-
getHintText(): Promise<string>;
|
|
104
|
-
/**
|
|
105
|
-
* Indicates whether the input box has stacked styles applied.
|
|
106
|
-
*/
|
|
107
|
-
getStacked(): Promise<boolean>;
|
|
108
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
-
import { SkyRadioGroupHeadingLevel, SkyRadioGroupHeadingStyle } from '@skyux/forms';
|
|
4
|
-
import { SkyRadioGroupHarnessFilters } from './radio-group-harness-filters';
|
|
5
|
-
import { SkyRadioHarness } from './radio-harness';
|
|
6
|
-
/**
|
|
7
|
-
* Harness for interacting with a radio group component in tests.
|
|
8
|
-
*/
|
|
9
|
-
export declare class SkyRadioGroupHarness extends SkyComponentHarness {
|
|
10
|
-
#private;
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
static hostSelector: string;
|
|
15
|
-
/**
|
|
16
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
17
|
-
* `SkyRadioGroupHarness` that meets certain criteria.
|
|
18
|
-
*/
|
|
19
|
-
static with(filters: SkyRadioGroupHarnessFilters): HarnessPredicate<SkyRadioGroupHarness>;
|
|
20
|
-
/**
|
|
21
|
-
* Clicks the help inline button.
|
|
22
|
-
*/
|
|
23
|
-
clickHelpInline(): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Whether the heading is hidden.
|
|
26
|
-
*/
|
|
27
|
-
getHeadingHidden(): Promise<boolean>;
|
|
28
|
-
/**
|
|
29
|
-
* The semantic heading level used for the radio group. Returns undefined if heading level is not set.
|
|
30
|
-
*/
|
|
31
|
-
getHeadingLevel(): Promise<SkyRadioGroupHeadingLevel | undefined>;
|
|
32
|
-
/**
|
|
33
|
-
* The heading style used for the radio group.
|
|
34
|
-
*/
|
|
35
|
-
getHeadingStyle(): Promise<SkyRadioGroupHeadingStyle>;
|
|
36
|
-
/**
|
|
37
|
-
* Gets the radio group's heading text. If `headingHidden` is true,
|
|
38
|
-
* the text will still be returned.
|
|
39
|
-
*/
|
|
40
|
-
getHeadingText(): Promise<string | undefined>;
|
|
41
|
-
/**
|
|
42
|
-
* Gets the help popover content.
|
|
43
|
-
*/
|
|
44
|
-
getHelpPopoverContent(): Promise<string | undefined>;
|
|
45
|
-
/**
|
|
46
|
-
* Gets the help popover title.
|
|
47
|
-
*/
|
|
48
|
-
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
49
|
-
/**
|
|
50
|
-
* Gets the radio group's hint text.
|
|
51
|
-
*/
|
|
52
|
-
getHintText(): Promise<string>;
|
|
53
|
-
/**
|
|
54
|
-
* Gets an array of harnesses for the radio buttons in the radio group.
|
|
55
|
-
*/
|
|
56
|
-
getRadioButtons(): Promise<SkyRadioHarness[]>;
|
|
57
|
-
/**
|
|
58
|
-
* Whether the radio group is required.
|
|
59
|
-
*/
|
|
60
|
-
getRequired(): Promise<boolean>;
|
|
61
|
-
/**
|
|
62
|
-
* Whether the radio group is stacked.
|
|
63
|
-
*/
|
|
64
|
-
getStacked(): Promise<boolean>;
|
|
65
|
-
/**
|
|
66
|
-
* Whether the radio group has errors.
|
|
67
|
-
*/
|
|
68
|
-
hasError(errorName: string): Promise<boolean>;
|
|
69
|
-
}
|