@carefirst/library 5.6.2 → 6.0.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,26 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carefirst/library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"author": "FCS Dev Team",
|
|
5
5
|
"private": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@angular/common": "^
|
|
8
|
-
"@angular/core": "^
|
|
9
|
-
"@angular/forms": "^
|
|
10
|
-
"@angular/router": "^20.3.9",
|
|
7
|
+
"@angular/common": "^21.0.1",
|
|
8
|
+
"@angular/core": "^21.0.1",
|
|
9
|
+
"@angular/forms": "^21.0.1",
|
|
11
10
|
"@ionic/angular": "^8.7.5",
|
|
12
|
-
"dayjs": "^1.11.
|
|
11
|
+
"dayjs": "^1.11.19",
|
|
13
12
|
"password-validator": "^5.3.0"
|
|
14
13
|
},
|
|
15
14
|
"sideEffects": false,
|
|
16
15
|
"module": "fesm2022/carefirst-library.mjs",
|
|
17
|
-
"typings": "
|
|
16
|
+
"typings": "types/carefirst-library.d.ts",
|
|
18
17
|
"exports": {
|
|
19
18
|
"./package.json": {
|
|
20
19
|
"default": "./package.json"
|
|
21
20
|
},
|
|
22
21
|
".": {
|
|
23
|
-
"types": "./
|
|
22
|
+
"types": "./types/carefirst-library.d.ts",
|
|
24
23
|
"default": "./fesm2022/carefirst-library.mjs"
|
|
25
24
|
}
|
|
26
25
|
},
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forms Interfaces
|
|
3
|
+
* @description Various interfaces concerning Forms used throughout the app
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
|
7
|
+
|
|
8
|
+
/** =============================================
|
|
9
|
+
* @description Generic form interface generator
|
|
10
|
+
*/
|
|
11
|
+
type FCSFormBuilderContentT<T extends Record<string, unknown>> = {
|
|
12
|
+
[K in keyof T]: T[K] extends unknown[]
|
|
13
|
+
? FormArray<T[K][number] extends Record<string, unknown> ? FCSFormBuilderT<T[K][number]> : FormControl<T[K][number]>>
|
|
14
|
+
: T[K] extends Record<string, unknown>
|
|
15
|
+
? FCSFormBuilderT<T[K]>
|
|
16
|
+
: FormControl<T[K]>;
|
|
17
|
+
};
|
|
18
|
+
export type FCSFormBuilderT<T extends object> = FormGroup<FCSFormBuilderContentT<Required<T>>>;
|
|
@@ -67,7 +67,7 @@ declare class ButtonComponent implements OnChanges {
|
|
|
67
67
|
disabled?: boolean | string | undefined;
|
|
68
68
|
alert?: boolean | string | undefined;
|
|
69
69
|
action?: boolean | string | undefined;
|
|
70
|
-
white?: string | undefined;
|
|
70
|
+
white?: boolean | string | undefined;
|
|
71
71
|
snug?: boolean | string | undefined;
|
|
72
72
|
accent?: boolean | string | undefined;
|
|
73
73
|
fontSize?: 'small' | 'large';
|