@carefirst/library 1.2.6 → 1.2.7
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 +11 -6
- 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 +15 -6
- 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/package.json +1 -1
- package/public-api.d.ts +1 -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;
|
package/package.json
CHANGED
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';
|