@carefirst/library 1.2.6 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/components/form-input/form-input.component.mjs +25 -12
- package/esm2022/lib/components/form-input-select/form-input-select.component.mjs +1 -1
- package/esm2022/lib/interfaces/input.interface.mjs +2 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/carefirst-library.mjs +29 -12
- package/fesm2022/carefirst-library.mjs.map +1 -1
- package/lib/components/form-input/form-input.component.d.ts +17 -7
- package/lib/components/form-input-select/form-input-select.component.d.ts +2 -4
- package/lib/interfaces/input.interface.d.ts +6 -0
- package/package.json +1 -1
- package/public/styles/forms.scss +4 -0
- package/public-api.d.ts +1 -0
@@ -1,18 +1,26 @@
|
|
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;
|
12
|
+
min: number | string;
|
13
|
+
max: number | string;
|
6
14
|
disabled?: boolean | string | undefined;
|
7
|
-
labelPlacement?:
|
8
|
-
inputMode?:
|
9
|
-
autoCapitalize?:
|
10
|
-
type?:
|
15
|
+
labelPlacement?: (typeof inputsC.labelPlacement)[number];
|
16
|
+
inputMode?: (typeof inputsC.inputMode)[number];
|
17
|
+
autoCapitalize?: (typeof inputsC.autoCapitalize)[number];
|
18
|
+
type?: (typeof inputsC.type)[number];
|
11
19
|
noClearButton?: boolean | string | undefined;
|
12
20
|
control?: FormControl | null;
|
13
21
|
textCenter?: boolean | string | undefined;
|
14
|
-
|
15
|
-
|
22
|
+
maxLength?: number | string;
|
23
|
+
greyBackground?: boolean | string | undefined;
|
16
24
|
value: EventEmitter<any>;
|
17
25
|
inputLabelPlacement: typeof this.labelPlacement;
|
18
26
|
localInputMode: typeof this.inputMode;
|
@@ -21,7 +29,9 @@ export declare class FormInputComponent implements OnChanges {
|
|
21
29
|
inputTextCenter: boolean;
|
22
30
|
inputType: typeof this.type;
|
23
31
|
inputAutoCapitalize: typeof this.autoCapitalize;
|
32
|
+
inputGreyBackground: boolean;
|
24
33
|
ngOnChanges(changes: SimpleChanges): void;
|
25
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, never>;
|
26
|
-
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; }; "
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "cf-form-input", never, { "label": { "alias": "label"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "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; }; "maxLength": { "alias": "maxLength"; "required": false; }; "greyBackground": { "alias": "greyBackground"; "required": false; }; }, { "value": "value"; }, never, never, false, never>;
|
27
36
|
}
|
37
|
+
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;
|
package/package.json
CHANGED
package/public/styles/forms.scss
CHANGED
@@ -36,6 +36,10 @@ ion-radio.text-center {
|
|
36
36
|
}
|
37
37
|
}
|
38
38
|
|
39
|
+
ion-input.grey-background {
|
40
|
+
--background: var(--cf-app-system-color-outline);
|
41
|
+
}
|
42
|
+
|
39
43
|
/*===============================================
|
40
44
|
================ Select Popovers ================
|
41
45
|
===============================================*/
|
package/public-api.d.ts
CHANGED
@@ -17,3 +17,4 @@ export * as CFAlertI from './lib/interfaces/alert.interface';
|
|
17
17
|
export * as CFIconI from './lib/interfaces/icon.interface';
|
18
18
|
export * as CFSpacerI from './lib/interfaces/spacer.interface';
|
19
19
|
export * as CFNotificationI from './lib/interfaces/notification.interface';
|
20
|
+
export * as CFInputI from './lib/interfaces/input.interface';
|