@carefirst/library 1.2.5 → 1.2.7
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/esm2022/lib/components/alert/alert.component.mjs +3 -3
- package/esm2022/lib/components/button/button.component.mjs +3 -3
- package/esm2022/lib/components/calendar/calendar.component.mjs +3 -3
- package/esm2022/lib/components/form-input/form-input.component.mjs +14 -9
- package/esm2022/lib/components/form-input-select/form-input-select.component.mjs +4 -4
- package/esm2022/lib/components/form-input-text-area/form-input-text-area.component.mjs +3 -3
- package/esm2022/lib/components/form-validation/form-validation.component.mjs +5 -5
- package/esm2022/lib/components/icon/icon.component.mjs +3 -3
- package/esm2022/lib/components/logo/logo.component.mjs +3 -3
- package/esm2022/lib/components/notification/notification.component.mjs +3 -3
- package/esm2022/lib/components/page/page.component.mjs +5 -5
- package/esm2022/lib/components/spacer/spacer.component.mjs +3 -3
- package/esm2022/lib/directives/button-loader.directive.mjs +6 -6
- package/esm2022/lib/interfaces/input.interface.mjs +2 -0
- package/esm2022/lib/library.module.mjs +4 -4
- package/esm2022/lib/utils/form-validators-utility.mjs +113 -0
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/carefirst-library.mjs +174 -54
- package/fesm2022/carefirst-library.mjs.map +1 -1
- package/lib/components/form-input/form-input.component.d.ts +11 -4
- package/lib/components/form-input-select/form-input-select.component.d.ts +2 -4
- package/lib/interfaces/input.interface.d.ts +4 -0
- package/lib/utils/form-validators-utility.d.ts +8 -0
- package/package.json +6 -5
- package/public-api.d.ts +2 -0
@@ -1,13 +1,19 @@
|
|
1
1
|
import { type OnChanges, type SimpleChanges, EventEmitter } from '@angular/core';
|
2
2
|
import { FormControl } from '@angular/forms';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
+
declare const inputsC: {
|
5
|
+
readonly labelPlacement: readonly ["fixed", "floating", "stacked"];
|
6
|
+
readonly inputMode: readonly ["email", "numeric", "tel", "decimal", "url", "search", "none"];
|
7
|
+
readonly autoCapitalize: readonly ["off", "none", "on", "sentences", "words", "characters"];
|
8
|
+
readonly type: readonly ["number", "date", "text", "password"];
|
9
|
+
};
|
4
10
|
export declare class FormInputComponent implements OnChanges {
|
5
11
|
label: string;
|
6
12
|
disabled?: boolean | string | undefined;
|
7
|
-
labelPlacement?:
|
8
|
-
inputMode?:
|
9
|
-
autoCapitalize?:
|
10
|
-
type?:
|
13
|
+
labelPlacement?: (typeof inputsC.labelPlacement)[number];
|
14
|
+
inputMode?: (typeof inputsC.inputMode)[number];
|
15
|
+
autoCapitalize?: (typeof inputsC.autoCapitalize)[number];
|
16
|
+
type?: (typeof inputsC.type)[number];
|
11
17
|
noClearButton?: boolean | string | undefined;
|
12
18
|
control?: FormControl | null;
|
13
19
|
textCenter?: boolean | string | undefined;
|
@@ -25,3 +31,4 @@ export declare class FormInputComponent implements OnChanges {
|
|
25
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, never>;
|
26
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "cf-form-input", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "inputMode": { "alias": "inputMode"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; "type": { "alias": "type"; "required": false; }; "noClearButton": { "alias": "noClearButton"; "required": false; }; "control": { "alias": "control"; "required": false; }; "textCenter": { "alias": "textCenter"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "value": "value"; }, never, never, false, never>;
|
27
33
|
}
|
34
|
+
export {};
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { EventEmitter, type OnChanges, type SimpleChanges } from '@angular/core';
|
2
2
|
import { FormControl } from '@angular/forms';
|
3
|
+
import type { FormInputSelectOptionsI } from '../../interfaces/input.interface';
|
3
4
|
import * as i0 from "@angular/core";
|
4
5
|
export declare class FormInputSelectComponent implements OnChanges {
|
5
6
|
label: string;
|
6
|
-
options:
|
7
|
-
displayName: string | number;
|
8
|
-
value: string | number | boolean | null | undefined;
|
9
|
-
}[];
|
7
|
+
options: FormInputSelectOptionsI[];
|
10
8
|
disabled?: boolean | string | undefined;
|
11
9
|
labelPlacement?: 'fixed' | 'floating' | 'stacked';
|
12
10
|
control?: FormControl | null;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { ValidatorFn } from '@angular/forms';
|
2
|
+
export declare class CFPFormValidators {
|
3
|
+
static compareTo(controlNameToCheckAgainst: string): ValidatorFn;
|
4
|
+
static asPassword(): ValidatorFn;
|
5
|
+
static asEmail(canBeEmpty?: true): ValidatorFn;
|
6
|
+
static isIn(list: (string | number)[]): ValidatorFn;
|
7
|
+
static isSAIDNumber(canBeEmpty?: true): ValidatorFn;
|
8
|
+
}
|
package/package.json
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carefirst/library",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.7",
|
4
4
|
"author": "Jacques Francois Coetzee",
|
5
5
|
"private": false,
|
6
6
|
"peerDependencies": {
|
7
|
-
"@angular/common": "^
|
8
|
-
"@angular/core": "^
|
9
|
-
"@ionic/angular": "^7.
|
10
|
-
"dayjs": "^1.11.10"
|
7
|
+
"@angular/common": "^17.x",
|
8
|
+
"@angular/core": "^17.x",
|
9
|
+
"@ionic/angular": "^7.6.4",
|
10
|
+
"dayjs": "^1.11.10",
|
11
|
+
"password-validator": "^5.3.0"
|
11
12
|
},
|
12
13
|
"dependencies": {
|
13
14
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
export * from './lib/library.module';
|
2
2
|
export * from './lib/directives/button-loader.directive';
|
3
|
+
export * from './lib/utils/form-validators-utility';
|
3
4
|
export * from './lib/components/alert/alert.component';
|
4
5
|
export * from './lib/components/page/page.component';
|
5
6
|
export * from './lib/components/button/button.component';
|
@@ -16,3 +17,4 @@ export * as CFAlertI from './lib/interfaces/alert.interface';
|
|
16
17
|
export * as CFIconI from './lib/interfaces/icon.interface';
|
17
18
|
export * as CFSpacerI from './lib/interfaces/spacer.interface';
|
18
19
|
export * as CFNotificationI from './lib/interfaces/notification.interface';
|
20
|
+
export * as CFInputI from './lib/interfaces/input.interface';
|