@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.
Files changed (117) hide show
  1. package/fesm2022/skyux-forms-testing.mjs.map +1 -1
  2. package/fesm2022/skyux-forms.mjs +159 -159
  3. package/fesm2022/skyux-forms.mjs.map +1 -1
  4. package/index.d.ts +1800 -61
  5. package/package.json +14 -14
  6. package/testing/index.d.ts +1117 -3
  7. package/lib/modules/character-counter/character-counter-indicator.component.d.ts +0 -12
  8. package/lib/modules/character-counter/character-counter-screen-reader.pipe.d.ts +0 -8
  9. package/lib/modules/character-counter/character-counter.directive.d.ts +0 -29
  10. package/lib/modules/character-counter/character-counter.module.d.ts +0 -12
  11. package/lib/modules/checkbox/checkbox-change.d.ts +0 -9
  12. package/lib/modules/checkbox/checkbox-group-heading-level.d.ts +0 -1
  13. package/lib/modules/checkbox/checkbox-group-heading-style.d.ts +0 -1
  14. package/lib/modules/checkbox/checkbox-group.component.d.ts +0 -76
  15. package/lib/modules/checkbox/checkbox-label-text-label.component.d.ts +0 -12
  16. package/lib/modules/checkbox/checkbox-label.component.d.ts +0 -11
  17. package/lib/modules/checkbox/checkbox.component.d.ts +0 -195
  18. package/lib/modules/checkbox/checkbox.module.d.ts +0 -19
  19. package/lib/modules/field-group/field-group-heading-level.d.ts +0 -1
  20. package/lib/modules/field-group/field-group-heading-style.d.ts +0 -1
  21. package/lib/modules/field-group/field-group.component.d.ts +0 -61
  22. package/lib/modules/field-group/field-group.module.d.ts +0 -7
  23. package/lib/modules/file-attachment/file-attachment/file-attachment-change.d.ts +0 -7
  24. package/lib/modules/file-attachment/file-attachment/file-attachment-click.d.ts +0 -7
  25. package/lib/modules/file-attachment/file-attachment/file-attachment-join-ids.pipe.d.ts +0 -11
  26. package/lib/modules/file-attachment/file-attachment/file-attachment-label.component.d.ts +0 -17
  27. package/lib/modules/file-attachment/file-attachment/file-attachment.component.d.ts +0 -153
  28. package/lib/modules/file-attachment/file-attachment/file-attachment.module.d.ts +0 -9
  29. package/lib/modules/file-attachment/file-attachment/file-attachment.service.d.ts +0 -17
  30. package/lib/modules/file-attachment/file-attachments.module.d.ts +0 -11
  31. package/lib/modules/file-attachment/file-drop/file-drop-change.d.ts +0 -11
  32. package/lib/modules/file-attachment/file-drop/file-drop.component.d.ts +0 -162
  33. package/lib/modules/file-attachment/file-drop/file-drop.module.d.ts +0 -9
  34. package/lib/modules/file-attachment/file-drop/file-item.component.d.ts +0 -33
  35. package/lib/modules/file-attachment/file-drop/file-link.d.ts +0 -6
  36. package/lib/modules/file-attachment/shared/file-item-error-type.d.ts +0 -4
  37. package/lib/modules/file-attachment/shared/file-item.d.ts +0 -20
  38. package/lib/modules/file-attachment/shared/file-item.service.d.ts +0 -13
  39. package/lib/modules/file-attachment/shared/file-size.pipe.d.ts +0 -13
  40. package/lib/modules/file-attachment/shared/file-validate-function.d.ts +0 -5
  41. package/lib/modules/form-error/form-error.component.d.ts +0 -25
  42. package/lib/modules/form-error/form-error.module.d.ts +0 -7
  43. package/lib/modules/form-error/form-errors-enabled-token.d.ts +0 -5
  44. package/lib/modules/form-error/form-errors.component.d.ts +0 -30
  45. package/lib/modules/form-error/form-errors.module.d.ts +0 -11
  46. package/lib/modules/input-box/input-box-adapter.service.d.ts +0 -28
  47. package/lib/modules/input-box/input-box-control.directive.d.ts +0 -11
  48. package/lib/modules/input-box/input-box-hint-text.pipe.d.ts +0 -10
  49. package/lib/modules/input-box/input-box-host.service.d.ts +0 -40
  50. package/lib/modules/input-box/input-box-populate-args.d.ts +0 -12
  51. package/lib/modules/input-box/input-box.component.d.ts +0 -118
  52. package/lib/modules/input-box/input-box.module.d.ts +0 -16
  53. package/lib/modules/radio/radio-group-id.service.d.ts +0 -24
  54. package/lib/modules/radio/radio-group.component.d.ts +0 -157
  55. package/lib/modules/radio/radio-label.component.d.ts +0 -13
  56. package/lib/modules/radio/radio.component.d.ts +0 -169
  57. package/lib/modules/radio/radio.module.d.ts +0 -18
  58. package/lib/modules/radio/types/radio-change.d.ts +0 -9
  59. package/lib/modules/radio/types/radio-group-heading-level.d.ts +0 -1
  60. package/lib/modules/radio/types/radio-group-heading-style.d.ts +0 -1
  61. package/lib/modules/radio/types/radio-type.d.ts +0 -4
  62. package/lib/modules/required-state/required-state.directive.d.ts +0 -17
  63. package/lib/modules/selection-box/selection-box-adapter.service.d.ts +0 -46
  64. package/lib/modules/selection-box/selection-box-description.component.d.ts +0 -8
  65. package/lib/modules/selection-box/selection-box-grid.component.d.ts +0 -29
  66. package/lib/modules/selection-box/selection-box-header.component.d.ts +0 -8
  67. package/lib/modules/selection-box/selection-box.component.d.ts +0 -29
  68. package/lib/modules/selection-box/selection-box.module.d.ts +0 -12
  69. package/lib/modules/selection-box/types/selection-box-grid-align-items-type.d.ts +0 -4
  70. package/lib/modules/selection-box/types/selection-box-grid-align-items.d.ts +0 -14
  71. package/lib/modules/shared/sky-forms-resources.module.d.ts +0 -10
  72. package/lib/modules/toggle-switch/toggle-switch-label.component.d.ts +0 -12
  73. package/lib/modules/toggle-switch/toggle-switch.component.d.ts +0 -81
  74. package/lib/modules/toggle-switch/toggle-switch.module.d.ts +0 -12
  75. package/lib/modules/toggle-switch/types/toggle-switch-change.d.ts +0 -6
  76. package/testing/legacy/checkbox-fixture.d.ts +0 -38
  77. package/testing/legacy/radio-fixture.d.ts +0 -26
  78. package/testing/modules/character-counter/character-counter-indicator-harness-filters.d.ts +0 -6
  79. package/testing/modules/character-counter/character-counter-indicator-harness.d.ts +0 -31
  80. package/testing/modules/checkbox/checkbox-group-harness-filters.d.ts +0 -6
  81. package/testing/modules/checkbox/checkbox-group-harness.d.ts +0 -73
  82. package/testing/modules/checkbox/checkbox-harness-filters.d.ts +0 -6
  83. package/testing/modules/checkbox/checkbox-harness.d.ts +0 -103
  84. package/testing/modules/checkbox/checkbox-label-harness.d.ts +0 -16
  85. package/testing/modules/checkbox/checkbox-label-text-label.harness.d.ts +0 -16
  86. package/testing/modules/field-group/field-group-harness-filters.d.ts +0 -6
  87. package/testing/modules/field-group/field-group-harness.d.ts +0 -56
  88. package/testing/modules/file-attachment/file-attachment/file-attachment-harness-filters.d.ts +0 -6
  89. package/testing/modules/file-attachment/file-attachment/file-attachment-harness.d.ts +0 -101
  90. package/testing/modules/file-attachment/file-drop/file-drop-harness-filters.d.ts +0 -6
  91. package/testing/modules/file-attachment/file-drop/file-drop-harness.d.ts +0 -124
  92. package/testing/modules/file-attachment/file-drop/file-drop-link-upload-harness.d.ts +0 -28
  93. package/testing/modules/file-attachment/file-drop/file-drop-link-upload-input-harness.d.ts +0 -14
  94. package/testing/modules/file-attachment/file-drop/file-item-harness-filters.d.ts +0 -10
  95. package/testing/modules/file-attachment/file-drop/file-item-harness.d.ts +0 -28
  96. package/testing/modules/file-attachment/shared/provide-file-attachment-testing.d.ts +0 -11
  97. package/testing/modules/form-error/form-error-harness.d.ts +0 -23
  98. package/testing/modules/form-error/form-error-harness.filters.d.ts +0 -6
  99. package/testing/modules/form-error/form-errors-harness.d.ts +0 -24
  100. package/testing/modules/form-error/form-errors-harness.filters.d.ts +0 -6
  101. package/testing/modules/input-box/input-box-harness-filters.d.ts +0 -6
  102. package/testing/modules/input-box/input-box-harness.d.ts +0 -108
  103. package/testing/modules/radio/radio-group-harness-filters.d.ts +0 -6
  104. package/testing/modules/radio/radio-group-harness.d.ts +0 -69
  105. package/testing/modules/radio/radio-harness-filters.d.ts +0 -6
  106. package/testing/modules/radio/radio-harness.d.ts +0 -79
  107. package/testing/modules/radio/radio-label-harness.d.ts +0 -16
  108. package/testing/modules/selection-box/selection-box-description-harness.d.ts +0 -15
  109. package/testing/modules/selection-box/selection-box-grid-harness-filters.d.ts +0 -6
  110. package/testing/modules/selection-box/selection-box-grid-harness.d.ts +0 -27
  111. package/testing/modules/selection-box/selection-box-harness-filters.d.ts +0 -6
  112. package/testing/modules/selection-box/selection-box-harness.d.ts +0 -36
  113. package/testing/modules/selection-box/selection-box-header-harness.d.ts +0 -15
  114. package/testing/modules/toggle-switch/toggle-switch-harness-filters.d.ts +0 -6
  115. package/testing/modules/toggle-switch/toggle-switch-harness.d.ts +0 -67
  116. package/testing/modules/toggle-switch/toggle-switch-label-harness.d.ts +0 -16
  117. package/testing/public-api.d.ts +0 -35
@@ -1,46 +0,0 @@
1
- import { ElementRef, RendererFactory2 } from '@angular/core';
2
- import { SkyCoreAdapterService, SkyMediaBreakpoints } from '@skyux/core';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @internal
6
- */
7
- export declare class SkySelectionBoxAdapterService {
8
- #private;
9
- constructor(coreAdapterService: SkyCoreAdapterService, rendererFactory: RendererFactory2);
10
- /**
11
- * Sets focus on the specified element.
12
- */
13
- focus(el: ElementRef): void;
14
- /**
15
- * Returns a child element with the `.sky-switch` class.
16
- * Useful for getting SKY UX-themed radio buttons or checkboxes.
17
- */
18
- getControl(el: ElementRef): HTMLElement;
19
- /**
20
- * Returns a breakpoint based on the width.
21
- * @param width Width of the element in pixels.
22
- */
23
- getBreakpointForWidth(width: number | undefined): SkyMediaBreakpoints;
24
- /**
25
- * Returns the width of the `parentNode` of the provided `element`.
26
- */
27
- getParentWidth(element: ElementRef): number | undefined;
28
- /**
29
- * Returns `true` if the `childEl` is a descendant of the `parentEl`.
30
- */
31
- isDescendant(parentEl: ElementRef, childEl: HTMLElement): boolean;
32
- /**
33
- * Sets the `tabIndex` of all focusable children of the `element` to the provided `tabIndex`.
34
- */
35
- setChildrenTabIndex(element: ElementRef, tabIndex: number): void;
36
- /**
37
- * Adds a responsive CSS class on the provided element based on its current width.
38
- */
39
- setResponsiveClass(element: ElementRef, breakpoint: SkyMediaBreakpoints): void;
40
- /**
41
- * Sets the `tabIndex` of the `element` to the provided `tabIndex`.
42
- */
43
- setTabIndex(element: ElementRef, tabIndex: number): void;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionBoxAdapterService, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<SkySelectionBoxAdapterService>;
46
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Specifies the description to display in a selection box.
4
- */
5
- export declare class SkySelectionBoxDescriptionComponent {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionBoxDescriptionComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<SkySelectionBoxDescriptionComponent, "sky-selection-box-description", never, {}, {}, never, ["*"], false, never>;
8
- }
@@ -1,29 +0,0 @@
1
- import { ElementRef, NgZone, OnDestroy, OnInit, QueryList } from '@angular/core';
2
- import { SkyCoreAdapterService, SkyMutationObserverService } from '@skyux/core';
3
- import { SkyThemeService } from '@skyux/theme';
4
- import { SkySelectionBoxAdapterService } from './selection-box-adapter.service';
5
- import { SkySelectionBoxComponent } from './selection-box.component';
6
- import { SkySelectionBoxGridAlignItemsType } from './types/selection-box-grid-align-items-type';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * Creates a grid layout for an array of selection boxes.
10
- */
11
- export declare class SkySelectionBoxGridComponent implements OnDestroy, OnInit {
12
- #private;
13
- /**
14
- * @internal
15
- * How to display the selection boxes in the grid.
16
- * @default 'center'
17
- */
18
- set alignItems(value: SkySelectionBoxGridAlignItemsType | undefined);
19
- get alignItems(): SkySelectionBoxGridAlignItemsType;
20
- selectionBoxes: QueryList<SkySelectionBoxComponent> | undefined;
21
- set containerElementRef(value: ElementRef | undefined);
22
- get containerElementRef(): ElementRef | undefined;
23
- constructor(coreAdapterService: SkyCoreAdapterService, selectionBoxAdapter: SkySelectionBoxAdapterService, hostElRef: ElementRef, mutationObserverSvc: SkyMutationObserverService, ngZone: NgZone, themeSvc?: SkyThemeService);
24
- ngOnInit(): void;
25
- ngOnDestroy(): void;
26
- onWindowResize(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionBoxGridComponent, [null, null, null, null, null, { optional: true; }]>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<SkySelectionBoxGridComponent, "sky-selection-box-grid", never, { "alignItems": { "alias": "alignItems"; "required": false; }; }, {}, ["selectionBoxes"], ["sky-selection-box"], false, never>;
29
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Specifies the header to display in a selection box.
4
- */
5
- export declare class SkySelectionBoxHeaderComponent {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionBoxHeaderComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<SkySelectionBoxHeaderComponent, "sky-selection-box-header", never, {}, {}, never, ["*"], false, never>;
8
- }
@@ -1,29 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
2
- import { SkyCheckboxComponent } from '../checkbox/checkbox.component';
3
- import { SkyRadioComponent } from '../radio/radio.component';
4
- import { SkySelectionBoxAdapterService } from './selection-box-adapter.service';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Creates a button to present users with a choice or question before proceeding with a one-time process.
8
- */
9
- export declare class SkySelectionBoxComponent implements OnDestroy {
10
- #private;
11
- /**
12
- * The radio button or checkbox to display in the selection box.
13
- * @required
14
- */
15
- set control(value: SkyCheckboxComponent | SkyRadioComponent | undefined);
16
- get control(): SkyCheckboxComponent | SkyRadioComponent | undefined;
17
- set checked(value: boolean);
18
- get checked(): boolean;
19
- set disabled(value: boolean);
20
- get disabled(): boolean;
21
- controlEl: ElementRef | undefined;
22
- set selectionBoxEl(value: ElementRef | undefined);
23
- get selectionBoxEl(): ElementRef | undefined;
24
- constructor(changeDetector: ChangeDetectorRef, selectionBoxAdapterService: SkySelectionBoxAdapterService);
25
- ngOnDestroy(): void;
26
- onKeydown(event: KeyboardEvent): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionBoxComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<SkySelectionBoxComponent, "sky-selection-box", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, ["sky-icon", "sky-selection-box-header", "sky-selection-box-description", "sky-radio", "sky-checkbox"], false, never>;
29
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./selection-box-grid.component";
3
- import * as i2 from "./selection-box.component";
4
- import * as i3 from "./selection-box-description.component";
5
- import * as i4 from "./selection-box-header.component";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@skyux/theme";
8
- export declare class SkySelectionBoxModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionBoxModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkySelectionBoxModule, [typeof i1.SkySelectionBoxGridComponent, typeof i2.SkySelectionBoxComponent, typeof i3.SkySelectionBoxDescriptionComponent, typeof i4.SkySelectionBoxHeaderComponent], [typeof i5.CommonModule, typeof i6.SkyThemeModule], [typeof i1.SkySelectionBoxGridComponent, typeof i2.SkySelectionBoxComponent, typeof i3.SkySelectionBoxDescriptionComponent, typeof i4.SkySelectionBoxHeaderComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<SkySelectionBoxModule>;
12
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * @internal
3
- */
4
- export type SkySelectionBoxGridAlignItemsType = 'center' | 'left';
@@ -1,14 +0,0 @@
1
- /**
2
- * @internal
3
- * @deprecated Use `SkySelectionBoxGridAlignItemsType` instead.
4
- */
5
- export declare const enum SkySelectionBoxGridAlignItems {
6
- /**
7
- * Center-aligns the selection boxes.
8
- */
9
- Center = "center",
10
- /**
11
- * Left-aligns the selection boxes.
12
- */
13
- Left = "left"
14
- }
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@skyux/i18n";
3
- /**
4
- * Import into any component library module that needs to use resource strings.
5
- */
6
- export declare class SkyFormsResourcesModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyFormsResourcesModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFormsResourcesModule, never, never, [typeof i1.SkyI18nModule]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<SkyFormsResourcesModule>;
10
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Specifies the label to display beside the toggle switch. To display a help button beside the label, include a help
4
- * button element, such as `sky-help-inline`, in the `sky-toggle-switch` element and a `sky-control-help` CSS class on
5
- * that help button element.
6
- * @deprecated Use the `labelText` input on the toggle switch component instead.
7
- */
8
- export declare class SkyToggleSwitchLabelComponent {
9
- constructor();
10
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyToggleSwitchLabelComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyToggleSwitchLabelComponent, "sky-toggle-switch-label", never, {}, {}, never, ["*"], false, never>;
12
- }
@@ -1,81 +0,0 @@
1
- import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList, TemplateRef } from '@angular/core';
2
- import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
- import { SkyIdService } from '@skyux/core';
4
- import { SkyToggleSwitchLabelComponent } from './toggle-switch-label.component';
5
- import { SkyToggleSwitchChange } from './types/toggle-switch-change';
6
- import * as i0 from "@angular/core";
7
- export declare class SkyToggleSwitchComponent implements AfterContentInit, OnDestroy, ControlValueAccessor, Validator {
8
- #private;
9
- /**
10
- * The ARIA label for the toggle switch. This sets the `aria-label`
11
- * attribute to provide a text equivalent for screen readers [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
12
- * Use a context-sensitive label, such as "Activate annual fundraiser" for a toggle switch that activates and deactivates an annual fundraiser. Context is especially important if multiple toggle switches are in close proximity.
13
- * When the `sky-toggle-switch-label` component displays a visible label, this property is only necessary if that label requires extra context.
14
- * For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
15
- * @deprecated Use the `labelText` input instead.
16
- */
17
- set ariaLabel(value: string | undefined);
18
- get ariaLabel(): string | undefined;
19
- /**
20
- * Whether the toggle switch is selected.
21
- * @default false
22
- */
23
- set checked(value: boolean | undefined);
24
- get checked(): boolean;
25
- /**
26
- * Whether to disable the toggle switch on template-driven forms. Don't use this input on reactive forms because they may overwrite the input or leave the control out of sync.
27
- * To set the disabled state on reactive forms, use the `FormControl` instead.
28
- */
29
- disabled: boolean | undefined;
30
- /**
31
- * The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
32
- * button is added to the toggle switch. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
33
- * when clicked using the specified content and optional title. This property only applies when `labelText` is also specified.
34
- */
35
- helpPopoverContent: string | TemplateRef<unknown> | undefined;
36
- /**
37
- * The title of the help popover. This property only applies when `helpPopoverContent` is
38
- * also specified.
39
- */
40
- helpPopoverTitle: string | undefined;
41
- /**
42
- * The tab index for the toggle switch. If not defined, the index is set to the position
43
- * of the toggle switch on load.
44
- */
45
- tabIndex: number | undefined;
46
- /**
47
- * The text to display as the toggle switch's label.
48
- */
49
- labelText: string | undefined;
50
- /**
51
- * Whether to hide `labelText` from view.
52
- */
53
- labelHidden: boolean;
54
- /**
55
- * A help key that identifies the global help content to display. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
56
- * button is placed beside the toggle switch label. Clicking the button invokes [global help](https://developer.blackbaud.com/skyux/learn/develop/global-help)
57
- * as configured by the application. This property only applies when `labelText` is also specified.
58
- */
59
- helpKey: string | undefined;
60
- /**
61
- * Fires when the checked state of a toggle switch changes.
62
- */
63
- toggleChange: EventEmitter<SkyToggleSwitchChange>;
64
- hasLabelComponent: boolean;
65
- labelId: string;
66
- enableIndicatorAnimation: boolean;
67
- labelComponents: QueryList<SkyToggleSwitchLabelComponent> | undefined;
68
- constructor(changeDetector: ChangeDetectorRef, idService: SkyIdService);
69
- ngAfterContentInit(): void;
70
- ngOnDestroy(): void;
71
- writeValue(value: boolean): void;
72
- validate(control: AbstractControl): ValidationErrors | null;
73
- registerOnChange(fn: (value: any) => void): void;
74
- registerOnTouched(fn: any): void;
75
- setDisabledState(disabled: boolean): void;
76
- onButtonClick(event: any): void;
77
- onButtonBlur(): void;
78
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyToggleSwitchComponent, never>;
79
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyToggleSwitchComponent, "sky-toggle-switch", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "helpKey": { "alias": "helpKey"; "required": false; }; }, { "toggleChange": "toggleChange"; }, ["labelComponents"], ["sky-toggle-switch-label", ".sky-control-help"], false, never>;
80
- static ngAcceptInputType_labelHidden: unknown;
81
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./toggle-switch-label.component";
3
- import * as i2 from "./toggle-switch.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "@skyux/help-inline";
7
- import * as i6 from "@skyux/core";
8
- export declare class SkyToggleSwitchModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyToggleSwitchModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyToggleSwitchModule, [typeof i1.SkyToggleSwitchLabelComponent, typeof i2.SkyToggleSwitchComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.SkyHelpInlineModule, typeof i6.SkyIdModule, typeof i6.SkyTrimModule], [typeof i1.SkyToggleSwitchLabelComponent, typeof i2.SkyToggleSwitchComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<SkyToggleSwitchModule>;
12
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Indicates whether the toggle switch is selected.
3
- */
4
- export interface SkyToggleSwitchChange {
5
- checked: boolean;
6
- }
@@ -1,38 +0,0 @@
1
- import { ComponentFixture } from '@angular/core/testing';
2
- /**
3
- * Allows interaction with a SKY UX checkbox component.
4
- * @internal
5
- * @deprecated Use `SkyCheckboxHarness` instead.
6
- */
7
- export declare class SkyCheckboxFixture {
8
- #private;
9
- constructor(fixture: ComponentFixture<any>, skyTestId: string);
10
- /**
11
- * A flag indicating whether the checkbox is currently selected.
12
- */
13
- get selected(): boolean;
14
- /**
15
- * The checkbox's label
16
- */
17
- get labelText(): string | undefined;
18
- /**
19
- * The checkbox's icon type
20
- */
21
- get iconType(): string | undefined;
22
- /**
23
- * The checkbox's type.
24
- */
25
- get checkboxType(): string | undefined;
26
- /**
27
- * A flag indicating whether the checkbox is currently disabled.
28
- */
29
- get disabled(): boolean;
30
- /**
31
- * Selects the checkbox.
32
- */
33
- select(): void;
34
- /**
35
- * Deselects the checkbox.
36
- */
37
- deselect(): void;
38
- }
@@ -1,26 +0,0 @@
1
- import { ComponentFixture } from '@angular/core/testing';
2
- /**
3
- * Allows interaction with a SKY UX radio buttons within a radio group.
4
- * @deprecated Use `SkyRadioHarness` instead.
5
- * @internal
6
- */
7
- export declare class SkyRadioFixture {
8
- #private;
9
- constructor(fixture: ComponentFixture<any>, skyTestId: string);
10
- /**
11
- * The selected radio button value.
12
- */
13
- get value(): string;
14
- /**
15
- * Set the selected radio button value.
16
- */
17
- set value(value: string);
18
- /**
19
- * A flag indicating if every radio button in the radio group is disabled.
20
- */
21
- get disabled(): boolean;
22
- /**
23
- * Set the disabled value for all radio buttons.
24
- */
25
- set disabled(value: boolean);
26
- }
@@ -1,6 +0,0 @@
1
- import { SkyHarnessFilters } from '@skyux/core/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of SkyCharacterCounterIndicatorHarness instances.
4
- */
5
- export interface SkyCharacterCounterIndicatorHarnessFilters extends SkyHarnessFilters {
6
- }
@@ -1,31 +0,0 @@
1
- import { HarnessPredicate } from '@angular/cdk/testing';
2
- import { SkyComponentHarness } from '@skyux/core/testing';
3
- import { SkyCharacterCounterIndicatorHarnessFilters } from './character-counter-indicator-harness-filters';
4
- /**
5
- * Harness for interacting with a character counter indicator component in tests.
6
- */
7
- export declare class SkyCharacterCounterIndicatorHarness 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
- * `SkyCharacterCounterIndicatorHarness` that meets certain criteria.
16
- */
17
- static with(filters: SkyCharacterCounterIndicatorHarnessFilters): HarnessPredicate<SkyCharacterCounterIndicatorHarness>;
18
- /**
19
- * Gets the current character count.
20
- */
21
- getCharacterCount(): Promise<number>;
22
- /**
23
- * Gets the character counter limit.
24
- */
25
- getCharacterCountLimit(): Promise<number>;
26
- /**
27
- * Indicates whether the character counter is in an error state because the current character
28
- * count is greater than the limit.
29
- */
30
- isOverLimit(): Promise<boolean>;
31
- }
@@ -1,6 +0,0 @@
1
- import { SkyHarnessFilters } from '@skyux/core/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of `SkyCheckboxGroupHarness` instances.
4
- */
5
- export interface SkyCheckboxGroupHarnessFilters extends SkyHarnessFilters {
6
- }
@@ -1,73 +0,0 @@
1
- import { HarnessPredicate } from '@angular/cdk/testing';
2
- import { SkyComponentHarness } from '@skyux/core/testing';
3
- import { SkyCheckboxGroupHeadingLevel, SkyCheckboxGroupHeadingStyle } from '@skyux/forms';
4
- import { SkyCheckboxGroupHarnessFilters } from './checkbox-group-harness-filters';
5
- import { SkyCheckboxHarness } from './checkbox-harness';
6
- /**
7
- * Harness for interacting with a checkbox group component in tests.
8
- */
9
- export declare class SkyCheckboxGroupHarness 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
- * `SkyCheckboxGroupHarness` that meets certain criteria.
18
- */
19
- static with(filters: SkyCheckboxGroupHarnessFilters): HarnessPredicate<SkyCheckboxGroupHarness>;
20
- /**
21
- * Clicks the help inline button.
22
- */
23
- clickHelpInline(): Promise<void>;
24
- /**
25
- * Gets an array of harnesses for the checkboxes in the checkbox group.
26
- */
27
- getCheckboxes(): Promise<SkyCheckboxHarness[]>;
28
- /**
29
- * Gets the help popover content.
30
- */
31
- getHelpPopoverContent(): Promise<string | undefined>;
32
- /**
33
- * Gets the help popover title.
34
- */
35
- getHelpPopoverTitle(): Promise<string | undefined>;
36
- /**
37
- * Gets the checkbox 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 checkbox group's hint text.
43
- */
44
- getHintText(): Promise<string>;
45
- /**
46
- * Whether the heading is hidden.
47
- */
48
- getHeadingHidden(): Promise<boolean>;
49
- /**
50
- * The semantic heading level used for the checkbox group. Returns undefined if heading level is not set.
51
- */
52
- getHeadingLevel(): Promise<SkyCheckboxGroupHeadingLevel | undefined>;
53
- /**
54
- * The heading style used for the checkbox group.
55
- */
56
- getHeadingStyle(): Promise<SkyCheckboxGroupHeadingStyle>;
57
- /**
58
- * Whether the checkbox group is required.
59
- */
60
- getRequired(): Promise<boolean>;
61
- /**
62
- * Whether the checkbox group is stacked.
63
- */
64
- getStacked(): Promise<boolean>;
65
- /**
66
- * Whether all the checkboxes in a required group are unchecked.
67
- */
68
- hasRequiredError(): Promise<boolean>;
69
- /**
70
- * Whether the checkbox group has errors.
71
- */
72
- hasError(errorName: string): Promise<boolean>;
73
- }
@@ -1,6 +0,0 @@
1
- import { SkyHarnessFilters } from '@skyux/core/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of `SkyCheckboxHarness` instances.
4
- */
5
- export interface SkyCheckboxHarnessFilters extends SkyHarnessFilters {
6
- }
@@ -1,103 +0,0 @@
1
- import { HarnessPredicate } from '@angular/cdk/testing';
2
- import { SkyComponentHarness } from '@skyux/core/testing';
3
- import { SkyCheckboxHarnessFilters } from './checkbox-harness-filters';
4
- /**
5
- * Harness for interacting with a checkbox component in tests.
6
- */
7
- export declare class SkyCheckboxHarness 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
- * `SkyCheckboxHarness` that meets certain criteria.
16
- */
17
- static with(filters: SkyCheckboxHarnessFilters): HarnessPredicate<SkyCheckboxHarness>;
18
- /**
19
- * Blurs the checkbox.
20
- */
21
- blur(): Promise<void>;
22
- /**
23
- * Clicks the help inline button.
24
- */
25
- clickHelpInline(): Promise<void>;
26
- /**
27
- * Puts the checkbox in a checked state by toggling it if it is currently unchecked, or doing nothing if it is already checked.
28
- */
29
- check(): Promise<void>;
30
- /**
31
- * Focuses the checkbox.
32
- */
33
- focus(): Promise<void>;
34
- /**
35
- * Gets the checkbox's aria-label.
36
- */
37
- getAriaLabel(): Promise<string | null>;
38
- /**
39
- * Gets the checkbox's aria-labelledby.
40
- */
41
- getAriaLabelledby(): Promise<string | null>;
42
- /**
43
- * Gets the help popover content.
44
- */
45
- getHelpPopoverContent(): Promise<string | undefined>;
46
- /**
47
- * Gets the help popover title.
48
- */
49
- getHelpPopoverTitle(): Promise<string | undefined>;
50
- /**
51
- * Gets the checkbox's label text. If the label is set via `labelText` and `labelHidden` is true,
52
- * the text will still be returned.
53
- */
54
- getLabelText(): Promise<string | undefined>;
55
- /**
56
- * Whether the label is hidden. Only supported when using the `labelText` input to set the label.
57
- */
58
- getLabelHidden(): Promise<boolean>;
59
- /**
60
- * Gets the checkbox's hint text.
61
- */
62
- getHintText(): Promise<string>;
63
- /**
64
- * Gets the checkbox's name.
65
- */
66
- getName(): Promise<string | null>;
67
- /**
68
- * Gets the checkbox's value.
69
- */
70
- getValue(): Promise<string | null>;
71
- /**
72
- * Whether the checkbox displays custom error.
73
- */
74
- hasCustomError(errorName: string): Promise<boolean>;
75
- /**
76
- * Whether the checkbox displays an error that it is required.
77
- */
78
- hasRequiredError(): Promise<boolean>;
79
- /**
80
- * Whether the checkbox is checked.
81
- */
82
- isChecked(): Promise<boolean>;
83
- /**
84
- * Whether the checkbox is disabled.
85
- */
86
- isDisabled(): Promise<boolean>;
87
- /**
88
- * Whether the checkbox is focused.
89
- */
90
- isFocused(): Promise<boolean>;
91
- /**
92
- * Whether the checkbox is required.
93
- */
94
- isRequired(): Promise<boolean>;
95
- /**
96
- * Whether the checkbox is stacked.
97
- */
98
- isStacked(): Promise<boolean>;
99
- /**
100
- * Puts the checkbox in an unchecked state by toggling it if it is currently checked, or doing nothing if it is already unchecked.
101
- */
102
- uncheck(): Promise<void>;
103
- }
@@ -1,16 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- /**
3
- * Harness for interacting with a checkbox label component in tests.
4
- * @internal
5
- */
6
- export declare class SkyCheckboxLabelHarness extends ComponentHarness {
7
- #private;
8
- /**
9
- * @internal
10
- */
11
- static hostSelector: string;
12
- /**
13
- * Gets the text content of the checkbox label.
14
- */
15
- getText(): Promise<string>;
16
- }
@@ -1,16 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- /**
3
- * Harness for interacting with a `labelText` checkbox label component in tests.
4
- * @internal
5
- */
6
- export declare class SkyCheckboxLabelTextLabelHarness extends ComponentHarness {
7
- #private;
8
- /**
9
- * @internal
10
- */
11
- static hostSelector: string;
12
- /**
13
- * Gets the text content of the `labelText` checkbox label.
14
- */
15
- getText(): Promise<string | undefined>;
16
- }
@@ -1,6 +0,0 @@
1
- import { SkyHarnessFilters } from '@skyux/core/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of `SkyFieldGroupHarness` instances.
4
- */
5
- export interface SkyFieldGroupHarnessFilters extends SkyHarnessFilters {
6
- }