@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.
@@ -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?: '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';
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,4 @@
1
+ export interface FormInputSelectOptionsI {
2
+ displayName: string | number;
3
+ value: string | number | boolean | null | undefined;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carefirst/library",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "author": "Jacques Francois Coetzee",
5
5
  "private": false,
6
6
  "peerDependencies": {
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';