@skyux/forms 10.6.1 → 10.7.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 +3130 -2841
- package/esm2022/index.mjs +2 -1
- package/esm2022/lib/modules/character-counter/character-counter-indicator.component.mjs +3 -3
- package/esm2022/lib/modules/character-counter/character-counter-screen-reader.pipe.mjs +3 -3
- package/esm2022/lib/modules/character-counter/character-counter.directive.mjs +3 -3
- package/esm2022/lib/modules/character-counter/character-counter.module.mjs +4 -4
- package/esm2022/lib/modules/checkbox/checkbox-group.component.mjs +3 -3
- package/esm2022/lib/modules/checkbox/checkbox-label-text-label.component.mjs +3 -3
- package/esm2022/lib/modules/checkbox/checkbox-label.component.mjs +3 -3
- package/esm2022/lib/modules/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/lib/modules/checkbox/checkbox.module.mjs +4 -4
- package/esm2022/lib/modules/field-group/field-group.component.mjs +3 -3
- package/esm2022/lib/modules/field-group/field-group.module.mjs +4 -4
- package/esm2022/lib/modules/file-attachment/file-attachment-label.component.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/file-attachment.component.mjs +12 -7
- package/esm2022/lib/modules/file-attachment/file-attachment.service.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/file-attachments.module.mjs +11 -7
- package/esm2022/lib/modules/file-attachment/file-drop.component.mjs +18 -6
- package/esm2022/lib/modules/file-attachment/file-item.component.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/file-item.service.mjs +3 -3
- package/esm2022/lib/modules/file-attachment/file-size.pipe.mjs +3 -3
- package/esm2022/lib/modules/form-error/form-error.component.mjs +3 -3
- package/esm2022/lib/modules/form-error/form-error.module.mjs +4 -4
- package/esm2022/lib/modules/form-error/form-errors.component.mjs +3 -3
- package/esm2022/lib/modules/form-error/form-errors.module.mjs +4 -4
- package/esm2022/lib/modules/input-box/input-box-adapter.service.mjs +3 -3
- package/esm2022/lib/modules/input-box/input-box-control.directive.mjs +3 -3
- package/esm2022/lib/modules/input-box/input-box-help-inline.component.mjs +3 -3
- package/esm2022/lib/modules/input-box/input-box-hint-text.pipe.mjs +5 -5
- package/esm2022/lib/modules/input-box/input-box-host.service.mjs +10 -4
- package/esm2022/lib/modules/input-box/input-box.component.mjs +12 -7
- package/esm2022/lib/modules/input-box/input-box.module.mjs +8 -6
- package/esm2022/lib/modules/radio/radio-group-id.service.mjs +3 -3
- package/esm2022/lib/modules/radio/radio-group.component.mjs +3 -3
- package/esm2022/lib/modules/radio/radio-label.component.mjs +3 -3
- package/esm2022/lib/modules/radio/radio.component.mjs +3 -3
- package/esm2022/lib/modules/radio/radio.module.mjs +4 -4
- package/esm2022/lib/modules/selection-box/selection-box-adapter.service.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box-description.component.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box-grid.component.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box-header.component.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box.component.mjs +3 -3
- package/esm2022/lib/modules/selection-box/selection-box.module.mjs +4 -4
- package/esm2022/lib/modules/shared/sky-forms-resources.module.mjs +4 -4
- package/esm2022/lib/modules/toggle-switch/toggle-switch-label.component.mjs +3 -3
- package/esm2022/lib/modules/toggle-switch/toggle-switch.component.mjs +3 -3
- package/esm2022/lib/modules/toggle-switch/toggle-switch.module.mjs +4 -4
- package/fesm2022/skyux-forms.mjs +194 -160
- package/fesm2022/skyux-forms.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/modules/file-attachment/file-attachment.component.d.ts +15 -2
- package/lib/modules/file-attachment/file-attachments.module.d.ts +2 -1
- package/lib/modules/file-attachment/file-drop.component.d.ts +11 -1
- package/lib/modules/input-box/input-box-host.service.d.ts +1 -0
- package/lib/modules/input-box/input-box.component.d.ts +2 -0
- package/lib/modules/input-box/input-box.module.d.ts +1 -1
- package/package.json +13 -12
package/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export { SkyFormErrorsComponent as λ21 } from './lib/modules/form-error/form-er
|
|
|
41
41
|
export { SkyFormErrorComponent as λ22 } from './lib/modules/form-error/form-error.component';
|
|
42
42
|
export { SkyInputBoxControlDirective as λ20 } from './lib/modules/input-box/input-box-control.directive';
|
|
43
43
|
export { SkyInputBoxComponent as λ10 } from './lib/modules/input-box/input-box.component';
|
|
44
|
+
export { SkyInputBoxHintTextPipe as λ26 } from './lib/modules/input-box/input-box-hint-text.pipe';
|
|
44
45
|
export { SkyRadioGroupComponent as λ11 } from './lib/modules/radio/radio-group.component';
|
|
45
46
|
export { SkyRadioLabelComponent as λ12 } from './lib/modules/radio/radio-label.component';
|
|
46
47
|
export { SkyRadioComponent as λ13 } from './lib/modules/radio/radio.component';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { NgControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
import { SkyThemeService } from '@skyux/theme';
|
|
4
4
|
import { SkyFileAttachmentLabelComponent } from './file-attachment-label.component';
|
|
@@ -28,6 +28,19 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
|
|
|
28
28
|
*/
|
|
29
29
|
set disabled(value: boolean | undefined);
|
|
30
30
|
get disabled(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The content of the help popover. When specified along with `labelText`, a [help inline](https://developer.blackbaud.com/skyux/components/help-inline)
|
|
33
|
+
* button is added to the input box label. The help inline button displays a [popover](https://developer.blackbaud.com/skyux/components/popover)
|
|
34
|
+
* when clicked using the specified content and optional title.
|
|
35
|
+
* @preview
|
|
36
|
+
*/
|
|
37
|
+
helpPopoverContent: string | TemplateRef<unknown> | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The title of the help popover. This property only applies when `helpPopoverContent` is
|
|
40
|
+
* also specified.
|
|
41
|
+
* @preview
|
|
42
|
+
*/
|
|
43
|
+
helpPopoverTitle: string | undefined;
|
|
31
44
|
/**
|
|
32
45
|
* The text to display as the file attachment's label.
|
|
33
46
|
* @preview
|
|
@@ -114,6 +127,6 @@ export declare class SkyFileAttachmentComponent implements AfterViewInit, AfterC
|
|
|
114
127
|
setDisabledState(isDisabled: boolean): void;
|
|
115
128
|
emitClick(): void;
|
|
116
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentComponent, [null, null, null, { optional: true; self: true; }, { optional: true; }]>;
|
|
117
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentComponent, "sky-file-attachment", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "minFileSize": { "alias": "minFileSize"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "fileChange": "fileChange"; "fileClick": "fileClick"; }, ["labelComponents"], ["sky-form-error", "sky-file-attachment-label"], false, never>;
|
|
130
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileAttachmentComponent, "sky-file-attachment", never, { "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "minFileSize": { "alias": "minFileSize"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "fileChange": "fileChange"; "fileClick": "fileClick"; }, ["labelComponents"], ["sky-form-error", "sky-file-attachment-label"], false, never>;
|
|
118
131
|
static ngAcceptInputType_labelHidden: unknown;
|
|
119
132
|
}
|
|
@@ -12,8 +12,9 @@ import * as i10 from "../form-error/form-errors.module";
|
|
|
12
12
|
import * as i11 from "@skyux/indicators";
|
|
13
13
|
import * as i12 from "@skyux/core";
|
|
14
14
|
import * as i13 from "@skyux/theme";
|
|
15
|
+
import * as i14 from "@skyux/help-inline";
|
|
15
16
|
export declare class SkyFileAttachmentsModule {
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileAttachmentsModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFileAttachmentsModule, [typeof i1.SkyFileAttachmentComponent, typeof i2.SkyFileAttachmentLabelComponent, typeof i3.SkyFileDropComponent, typeof i4.SkyFileItemComponent, typeof i5.SkyFileSizePipe], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.SkyFormsResourcesModule, typeof i9.SkyFormErrorModule, typeof i10.SkyFormErrorsModule, typeof i11.SkyIconModule, typeof i12.SkyIdModule, typeof i13.SkyThemeModule, typeof i12.SkyTrimModule], [typeof i1.SkyFileAttachmentComponent, typeof i2.SkyFileAttachmentLabelComponent, typeof i3.SkyFileDropComponent, typeof i4.SkyFileItemComponent, typeof i5.SkyFileSizePipe, typeof i9.SkyFormErrorModule]>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyFileAttachmentsModule, [typeof i1.SkyFileAttachmentComponent, typeof i2.SkyFileAttachmentLabelComponent, typeof i3.SkyFileDropComponent, typeof i4.SkyFileItemComponent, typeof i5.SkyFileSizePipe], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.SkyFormsResourcesModule, typeof i9.SkyFormErrorModule, typeof i10.SkyFormErrorsModule, typeof i11.SkyIconModule, typeof i12.SkyIdModule, typeof i13.SkyThemeModule, typeof i12.SkyTrimModule, typeof i14.SkyHelpInlineModule], [typeof i1.SkyFileAttachmentComponent, typeof i2.SkyFileAttachmentLabelComponent, typeof i3.SkyFileDropComponent, typeof i4.SkyFileItemComponent, typeof i5.SkyFileSizePipe, typeof i9.SkyFormErrorModule]>;
|
|
18
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyFileAttachmentsModule>;
|
|
19
20
|
}
|
|
@@ -94,6 +94,15 @@ export declare class SkyFileDropComponent implements OnDestroy {
|
|
|
94
94
|
* @preview
|
|
95
95
|
*/
|
|
96
96
|
hintText: string | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Whether uploading a file or link is required.
|
|
99
|
+
* When you set this property to `true`, the component adds `aria-required` and `required`
|
|
100
|
+
* attributes to the input elements so that screen readers announce an invalid state until the input element
|
|
101
|
+
* is complete.
|
|
102
|
+
* For more information about the `aria-required` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-required).
|
|
103
|
+
* @preview
|
|
104
|
+
*/
|
|
105
|
+
required: boolean;
|
|
97
106
|
inputEl: ElementRef | undefined;
|
|
98
107
|
rejectedOver: boolean;
|
|
99
108
|
acceptedOver: boolean;
|
|
@@ -111,6 +120,7 @@ export declare class SkyFileDropComponent implements OnDestroy {
|
|
|
111
120
|
addLink(event: Event): void;
|
|
112
121
|
onLinkBlur(): void;
|
|
113
122
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyFileDropComponent, never>;
|
|
114
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileDropComponent, "sky-file-drop", never, { "fileUploadAriaLabel": { "alias": "fileUploadAriaLabel"; "required": false; }; "linkUploadAriaLabel": { "alias": "linkUploadAriaLabel"; "required": false; }; "minFileSize": { "alias": "minFileSize"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "noClick": { "alias": "noClick"; "required": false; }; "allowLinks": { "alias": "allowLinks"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; }, { "filesChanged": "filesChanged"; "linkInputBlur": "linkInputBlur"; "linkChanged": "linkChanged"; }, never, ["*"], false, never>;
|
|
123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyFileDropComponent, "sky-file-drop", never, { "fileUploadAriaLabel": { "alias": "fileUploadAriaLabel"; "required": false; }; "linkUploadAriaLabel": { "alias": "linkUploadAriaLabel"; "required": false; }; "minFileSize": { "alias": "minFileSize"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; "acceptedTypes": { "alias": "acceptedTypes"; "required": false; }; "noClick": { "alias": "noClick"; "required": false; }; "allowLinks": { "alias": "allowLinks"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelHidden": { "alias": "labelHidden"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "filesChanged": "filesChanged"; "linkInputBlur": "linkInputBlur"; "linkChanged": "linkChanged"; }, never, ["*"], false, never>;
|
|
115
124
|
static ngAcceptInputType_labelHidden: unknown;
|
|
125
|
+
static ngAcceptInputType_required: unknown;
|
|
116
126
|
}
|
|
@@ -14,6 +14,7 @@ export declare class SkyInputBoxHostService {
|
|
|
14
14
|
populate(args: SkyInputBoxPopulateArgs): void;
|
|
15
15
|
setHintText(hintText: string | undefined): void;
|
|
16
16
|
setHintTextHidden(hide: boolean): void;
|
|
17
|
+
setHintTextScreenReaderOnly(hide: boolean): void;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyInputBoxHostService, never>;
|
|
18
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<SkyInputBoxHostService>;
|
|
19
20
|
}
|
|
@@ -68,6 +68,7 @@ export declare class SkyInputBoxComponent implements OnInit, AfterContentChecked
|
|
|
68
68
|
hostIconsInsetTemplate: TemplateRef<unknown> | undefined;
|
|
69
69
|
hostIconsInsetLeftTemplate: TemplateRef<unknown> | undefined;
|
|
70
70
|
protected hintTextHidden: boolean;
|
|
71
|
+
protected hintTextScreenReaderOnly: boolean;
|
|
71
72
|
protected hostHintText: string | undefined;
|
|
72
73
|
readonly controlId: string;
|
|
73
74
|
readonly errorId: string;
|
|
@@ -93,6 +94,7 @@ export declare class SkyInputBoxComponent implements OnInit, AfterContentChecked
|
|
|
93
94
|
populate(args: SkyInputBoxPopulateArgs): void;
|
|
94
95
|
setHintTextHidden(hide: boolean): void;
|
|
95
96
|
setHostHintText(value: string | undefined): void;
|
|
97
|
+
setHintTextScreenReaderOnly(hide: boolean): void;
|
|
96
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyInputBoxComponent, never>;
|
|
97
99
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyInputBoxComponent, "sky-input-box", never, { "hasErrors": { "alias": "hasErrors"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "characterLimit": { "alias": "characterLimit"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "helpPopoverTitle": { "alias": "helpPopoverTitle"; "required": false; }; "helpPopoverContent": { "alias": "helpPopoverContent"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; }, {}, ["formControl", "formControlByName", "ngModel", "inputRef"], [".sky-control-label", ".sky-control-help", "sky-character-counter-indicator", "input,select,.sky-form-control:not(textarea),sky-text-editor", "textarea", ".sky-input-group-btn.sky-input-box-btn-left", ".sky-input-group-btn:not(.sky-input-box-btn-left):not(.sky-input-box-btn-inset)", ".sky-input-group-btn.sky-input-box-btn-inset", ".sky-input-group-icon.sky-input-box-icon-inset", ".sky-input-group-icon.sky-input-box-icon-inset-left", "sky-form-error", ".sky-error-label,.sky-error-indicator"], false, never>;
|
|
98
100
|
}
|
|
@@ -11,6 +11,6 @@ import * as i9 from "./input-box-hint-text.pipe";
|
|
|
11
11
|
import * as i10 from "@skyux/theme";
|
|
12
12
|
export declare class SkyInputBoxModule {
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyInputBoxModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyInputBoxModule, [typeof i1.SkyInputBoxComponent], [typeof i2.CommonModule, typeof i3.SkyCharacterCounterModule, typeof i4.SkyFormErrorsModule, typeof i5.SkyFormErrorModule, typeof i6.SkyFormsResourcesModule, typeof i7.SkyInputBoxControlDirective, typeof i8.SkyInputBoxHelpInlineComponent, typeof i9.SkyInputBoxHintTextPipe, typeof i10.SkyThemeModule], [typeof i1.SkyInputBoxComponent, typeof i7.SkyInputBoxControlDirective, typeof i5.SkyFormErrorModule]>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyInputBoxModule, [typeof i1.SkyInputBoxComponent], [typeof i2.CommonModule, typeof i3.SkyCharacterCounterModule, typeof i4.SkyFormErrorsModule, typeof i5.SkyFormErrorModule, typeof i6.SkyFormsResourcesModule, typeof i7.SkyInputBoxControlDirective, typeof i8.SkyInputBoxHelpInlineComponent, typeof i9.SkyInputBoxHintTextPipe, typeof i10.SkyThemeModule], [typeof i9.SkyInputBoxHintTextPipe, typeof i1.SkyInputBoxComponent, typeof i7.SkyInputBoxControlDirective, typeof i5.SkyFormErrorModule]>;
|
|
15
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkyInputBoxModule>;
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/forms",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -36,17 +36,18 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@angular/cdk": "^17.3.
|
|
40
|
-
"@angular/common": "^17.3.
|
|
41
|
-
"@angular/core": "^17.3.
|
|
42
|
-
"@angular/forms": "^17.3.
|
|
43
|
-
"@angular/platform-browser": "^17.3.
|
|
44
|
-
"@skyux-sdk/testing": "10.
|
|
45
|
-
"@skyux/core": "10.
|
|
46
|
-
"@skyux/
|
|
47
|
-
"@skyux/
|
|
48
|
-
"@skyux/
|
|
49
|
-
"@skyux/
|
|
39
|
+
"@angular/cdk": "^17.3.4",
|
|
40
|
+
"@angular/common": "^17.3.4",
|
|
41
|
+
"@angular/core": "^17.3.4",
|
|
42
|
+
"@angular/forms": "^17.3.4",
|
|
43
|
+
"@angular/platform-browser": "^17.3.4",
|
|
44
|
+
"@skyux-sdk/testing": "10.7.0",
|
|
45
|
+
"@skyux/core": "10.7.0",
|
|
46
|
+
"@skyux/help-inline": "10.7.0",
|
|
47
|
+
"@skyux/i18n": "10.7.0",
|
|
48
|
+
"@skyux/indicators": "10.7.0",
|
|
49
|
+
"@skyux/popovers": "10.7.0",
|
|
50
|
+
"@skyux/theme": "10.7.0"
|
|
50
51
|
},
|
|
51
52
|
"dependencies": {
|
|
52
53
|
"tslib": "^2.6.2"
|