@skyux/core 10.2.0 → 10.3.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 +1069 -1068
- package/esm2022/index.mjs +2 -1
- package/esm2022/lib/modules/forms-utility/forms-utility.mjs +29 -0
- package/esm2022/version.mjs +1 -1
- package/fesm2022/skyux-core.mjs +31 -2
- package/fesm2022/skyux-core.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/modules/forms-utility/forms-utility.d.ts +15 -0
- package/package.json +3 -2
package/index.d.ts
CHANGED
@@ -28,6 +28,7 @@ export { SkyDynamicComponentLocation } from './lib/modules/dynamic-component/dyn
|
|
28
28
|
export { SkyDynamicComponentOptions } from './lib/modules/dynamic-component/dynamic-component-options';
|
29
29
|
export { SkyDynamicComponentModule } from './lib/modules/dynamic-component/dynamic-component.module';
|
30
30
|
export { SkyDynamicComponentLegacyService, SkyDynamicComponentService, } from './lib/modules/dynamic-component/dynamic-component.service';
|
31
|
+
export { SkyFormsUtility } from './lib/modules/forms-utility/forms-utility';
|
31
32
|
export { SkyAppFormat } from './lib/modules/format/app-format';
|
32
33
|
export { SkyIdModule } from './lib/modules/id/id.module';
|
33
34
|
export { SkyIdService } from './lib/modules/id/id.service';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { NgControl } from '@angular/forms';
|
2
|
+
/**
|
3
|
+
* @internal
|
4
|
+
*/
|
5
|
+
export declare class SkyFormsUtility {
|
6
|
+
/** Coerces a data-bound value (typically a string) to a boolean. */
|
7
|
+
static coerceBooleanProperty(value: any): boolean;
|
8
|
+
/**
|
9
|
+
* Gets the required state of the checkbox.
|
10
|
+
* Currently, Angular doesn't offer a way to get this easily, so we have to create an empty
|
11
|
+
* control using the current validator to see if it throws a `required` validation error.
|
12
|
+
* https://github.com/angular/angular/issues/13461#issuecomment-340368046
|
13
|
+
*/
|
14
|
+
static hasRequiredValidation(ngControl: NgControl): boolean;
|
15
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@skyux/core",
|
3
|
-
"version": "10.
|
3
|
+
"version": "10.3.0",
|
4
4
|
"author": "Blackbaud, Inc.",
|
5
5
|
"keywords": [
|
6
6
|
"blackbaud",
|
@@ -39,9 +39,10 @@
|
|
39
39
|
"@angular/cdk": "^17.3.1",
|
40
40
|
"@angular/common": "^17.3.1",
|
41
41
|
"@angular/core": "^17.3.1",
|
42
|
+
"@angular/forms": "^17.3.1",
|
42
43
|
"@angular/platform-browser": "^17.3.1",
|
43
44
|
"@angular/router": "^17.3.1",
|
44
|
-
"@skyux/i18n": "10.
|
45
|
+
"@skyux/i18n": "10.3.0"
|
45
46
|
},
|
46
47
|
"dependencies": {
|
47
48
|
"tslib": "^2.6.2"
|