@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.
@@ -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?: 'fixed' | 'floating' | 'stacked';
8
- inputMode?: 'email' | 'numeric' | 'tel' | 'decimal' | 'url' | 'search' | 'none';
9
- autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
10
- type?: 'number' | 'date' | 'text';
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
- min?: number | string;
15
- max?: number | string;
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; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "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; }; "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;
@@ -0,0 +1,6 @@
1
+ export interface FormInputSelectOptionsI {
2
+ displayName: string | number;
3
+ value: {
4
+ [key: string]: unknown;
5
+ } | string | number | boolean | null | undefined;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carefirst/library",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "author": "Jacques Francois Coetzee",
5
5
  "private": false,
6
6
  "peerDependencies": {
@@ -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';