@skyux/forms 12.2.0 → 12.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/forms",
3
- "version": "12.2.0",
3
+ "version": "12.4.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -21,14 +21,14 @@
21
21
  "@angular/core": "^19.2.1",
22
22
  "@angular/forms": "^19.2.1",
23
23
  "@angular/platform-browser": "^19.2.1",
24
- "@skyux-sdk/testing": "12.2.0",
25
- "@skyux/core": "12.2.0",
26
- "@skyux/help-inline": "12.2.0",
27
- "@skyux/i18n": "12.2.0",
28
- "@skyux/icon": "12.2.0",
29
- "@skyux/indicators": "12.2.0",
30
- "@skyux/popovers": "12.2.0",
31
- "@skyux/theme": "12.2.0"
24
+ "@skyux-sdk/testing": "12.4.0",
25
+ "@skyux/core": "12.4.0",
26
+ "@skyux/help-inline": "12.4.0",
27
+ "@skyux/i18n": "12.4.0",
28
+ "@skyux/icon": "12.4.0",
29
+ "@skyux/indicators": "12.4.0",
30
+ "@skyux/popovers": "12.4.0",
31
+ "@skyux/theme": "12.4.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "tslib": "^2.8.1"
@@ -0,0 +1,6 @@
1
+ import { SkyHarnessFilters } from '@skyux/core/testing';
2
+ /**
3
+ * A set of criteria that can be used to filter a list of `SkyToggleSwitchHarness` instances.
4
+ */
5
+ export interface SkyToggleSwitchHarnessFilters extends SkyHarnessFilters {
6
+ }
@@ -0,0 +1,67 @@
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { SkyComponentHarness } from '@skyux/core/testing';
3
+ import { SkyToggleSwitchHarnessFilters } from './toggle-switch-harness-filters';
4
+ /**
5
+ * Harness for interacting with a toggle switch component in tests.
6
+ */
7
+ export declare class SkyToggleSwitchHarness 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
+ * `SkyToggleSwitchHarness` that meets certain criteria.
16
+ */
17
+ static with(filters: SkyToggleSwitchHarnessFilters): HarnessPredicate<SkyToggleSwitchHarness>;
18
+ /**
19
+ * Blurs the toggle switch.
20
+ */
21
+ blur(): Promise<void>;
22
+ /**
23
+ * Clicks the help inline button.
24
+ */
25
+ clickHelpInline(): Promise<void>;
26
+ /**
27
+ * Puts the toggle switch in a checked state.
28
+ */
29
+ check(): Promise<void>;
30
+ /**
31
+ * Focuses the toggle switch.
32
+ */
33
+ focus(): Promise<void>;
34
+ /**
35
+ * Gets the help popover content.
36
+ */
37
+ getHelpPopoverContent(): Promise<string | undefined>;
38
+ /**
39
+ * Gets the help popover title.
40
+ */
41
+ getHelpPopoverTitle(): Promise<string | undefined>;
42
+ /**
43
+ * Whether the label is hidden. Only supported when using the `labelText` input to set the label.
44
+ */
45
+ getLabelHidden(): Promise<boolean>;
46
+ /**
47
+ * Gets the toggle switch's label text. If the label is set via `labelText` and `labelHidden` is true,
48
+ * the text will still be returned.
49
+ */
50
+ getLabelText(): Promise<string | undefined>;
51
+ /**
52
+ * Whether the toggle switch is checked.
53
+ */
54
+ isChecked(): Promise<boolean>;
55
+ /**
56
+ * Whether the toggle switch is disabled.
57
+ */
58
+ isDisabled(): Promise<boolean>;
59
+ /**
60
+ * Whether the toggle switch is focused.
61
+ */
62
+ isFocused(): Promise<boolean>;
63
+ /**
64
+ * Puts the toggle switch in an unchecked state.
65
+ */
66
+ uncheck(): Promise<void>;
67
+ }
@@ -0,0 +1,16 @@
1
+ import { ComponentHarness } from '@angular/cdk/testing';
2
+ /**
3
+ * Harness for interacting with a toggle switch label component in tests.
4
+ * @internal
5
+ */
6
+ export declare class SkyToggleSwitchLabelHarness extends ComponentHarness {
7
+ #private;
8
+ /**
9
+ * @internal
10
+ */
11
+ static hostSelector: string;
12
+ /**
13
+ * Gets the text content of the toggle switch label.
14
+ */
15
+ getText(): Promise<string>;
16
+ }
@@ -27,3 +27,5 @@ export { SkyRadioGroupHarnessFilters } from './modules/radio/radio-group-harness
27
27
  export { SkyRadioHarness } from './modules/radio/radio-harness';
28
28
  export { SkyRadioHarnessFilters } from './modules/radio/radio-harness-filters';
29
29
  export { SkyRadioLabelHarness } from './modules/radio/radio-label-harness';
30
+ export { SkyToggleSwitchHarness } from './modules/toggle-switch/toggle-switch-harness';
31
+ export { SkyToggleSwitchHarnessFilters } from './modules/toggle-switch/toggle-switch-harness-filters';