@carefirst/library 1.3.0 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,7 @@ export declare class FormInputComponent implements OnChanges {
12
12
  min: number | string;
13
13
  max: number | string;
14
14
  labelPlacement?: (typeof inputsC.labelPlacement)[number];
15
+ placeholder?: string | undefined;
15
16
  inputmode?: (typeof inputsC.inputMode)[number];
16
17
  autoCapitalize?: (typeof inputsC.autoCapitalize)[number];
17
18
  type?: (typeof inputsC.type)[number];
@@ -20,7 +21,8 @@ export declare class FormInputComponent implements OnChanges {
20
21
  textCenter?: boolean | string | undefined;
21
22
  maxLength?: number | string;
22
23
  greyBackground?: boolean | string | undefined;
23
- value: EventEmitter<any>;
24
+ value: string | undefined;
25
+ valueChange: EventEmitter<string | undefined>;
24
26
  inputLabelPlacement: typeof this.labelPlacement;
25
27
  localInputMode: typeof this.inputmode;
26
28
  inputClear: boolean;
@@ -30,6 +32,6 @@ export declare class FormInputComponent implements OnChanges {
30
32
  inputGreyBackground: boolean;
31
33
  ngOnChanges(changes: SimpleChanges): void;
32
34
  static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "cf-form-input", never, { "label": { "alias": "label"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "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>;
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; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "placeholder": { "alias": "placeholder"; "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": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
34
36
  }
35
37
  export {};
@@ -2,14 +2,16 @@ import { EventEmitter, type OnChanges, type SimpleChanges } from '@angular/core'
2
2
  import { FormControl } from '@angular/forms';
3
3
  import type { FormInputSelectOptionsI } from '../../interfaces/input.interface';
4
4
  import * as i0 from "@angular/core";
5
- export declare class FormInputSelectComponent implements OnChanges {
5
+ export declare class FormInputSelectComponent<T> implements OnChanges {
6
6
  label: string;
7
- options: FormInputSelectOptionsI[];
7
+ options: FormInputSelectOptionsI<T>[];
8
8
  labelPlacement?: 'fixed' | 'floating' | 'stacked';
9
+ placeholder?: string | undefined;
9
10
  control?: FormControl | null;
10
- value: EventEmitter<any>;
11
+ value: FormInputSelectOptionsI<T>['value'] | undefined;
12
+ valueChange: EventEmitter<T | undefined>;
11
13
  inputLabelPlacement: typeof this.labelPlacement;
12
14
  ngOnChanges(changes: SimpleChanges): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<FormInputSelectComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<FormInputSelectComponent, "cf-form-input-select", never, { "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, { "value": "value"; }, never, never, false, never>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormInputSelectComponent<any>, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInputSelectComponent<any>, "cf-form-input-select", never, { "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "control": { "alias": "control"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
15
17
  }
@@ -4,15 +4,19 @@ import * as i0 from "@angular/core";
4
4
  export declare class FormInputTextAreaComponent implements OnChanges {
5
5
  label: string;
6
6
  labelPlacement?: 'fixed' | 'floating' | 'stacked';
7
+ placeholder?: string | undefined;
7
8
  autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
8
9
  control?: FormControl | null;
9
10
  textCenter?: boolean | string | undefined;
10
- value: EventEmitter<any>;
11
+ minHeight?: string | 'none';
12
+ maxHeight?: string | 'none';
13
+ value: string | undefined;
14
+ valueChange: EventEmitter<string | undefined>;
11
15
  inputLabelPlacement: typeof this.labelPlacement;
12
16
  inputClear: boolean;
13
17
  inputTextCenter: boolean;
14
18
  inputAutoCapitalize: typeof this.autoCapitalize;
15
19
  ngOnChanges(changes: SimpleChanges): void;
16
20
  static ɵfac: i0.ɵɵFactoryDeclaration<FormInputTextAreaComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<FormInputTextAreaComponent, "cf-form-input-text-area", never, { "label": { "alias": "label"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; "control": { "alias": "control"; "required": false; }; "textCenter": { "alias": "textCenter"; "required": false; }; }, { "value": "value"; }, never, never, false, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInputTextAreaComponent, "cf-form-input-text-area", never, { "label": { "alias": "label"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; "control": { "alias": "control"; "required": false; }; "textCenter": { "alias": "textCenter"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
18
22
  }
@@ -1,4 +1,4 @@
1
- export interface FormInputSelectOptionsI {
1
+ export interface FormInputSelectOptionsI<T> {
2
2
  displayName: string | number;
3
- value: string | number | boolean | null | undefined | object;
3
+ value: T;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carefirst/library",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "author": "Jacques Francois Coetzee",
5
5
  "private": false,
6
6
  "peerDependencies": {