@carefirst/library 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,27 @@
1
+ import { type OnChanges, type SimpleChanges, EventEmitter } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormInputComponent implements OnChanges {
5
+ label: string;
6
+ 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';
11
+ noClearButton?: boolean | string | undefined;
12
+ control?: FormControl | null;
13
+ textCenter?: boolean | string | undefined;
14
+ min?: number | string;
15
+ max?: number | string;
16
+ value: EventEmitter<any>;
17
+ inputLabelPlacement: typeof this.labelPlacement;
18
+ localInputMode: typeof this.inputMode;
19
+ inputClear: boolean;
20
+ inputDisabled: boolean;
21
+ inputTextCenter: boolean;
22
+ inputType: typeof this.type;
23
+ inputAutoCapitalize: typeof this.autoCapitalize;
24
+ ngOnChanges(changes: SimpleChanges): void;
25
+ 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>;
27
+ }
@@ -0,0 +1,19 @@
1
+ import { EventEmitter, type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormInputSelectComponent implements OnChanges {
5
+ label: string;
6
+ options: {
7
+ displayName: string | number;
8
+ value: string | number | boolean | null | undefined;
9
+ }[];
10
+ disabled?: boolean | string | undefined;
11
+ labelPlacement?: 'fixed' | 'floating' | 'stacked';
12
+ control?: FormControl | null;
13
+ value: EventEmitter<any>;
14
+ inputLabelPlacement: typeof this.labelPlacement;
15
+ inputDisabled: boolean;
16
+ ngOnChanges(changes: SimpleChanges): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormInputSelectComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInputSelectComponent, "cf-form-input-select", never, { "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, { "value": "value"; }, never, never, false, never>;
19
+ }
@@ -0,0 +1,20 @@
1
+ import { EventEmitter, type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import type { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormInputTextAreaComponent implements OnChanges {
5
+ label: string;
6
+ disabled?: boolean | string | undefined;
7
+ labelPlacement?: 'fixed' | 'floating' | 'stacked';
8
+ autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
9
+ control?: FormControl | null;
10
+ textCenter?: boolean | string | undefined;
11
+ value: EventEmitter<any>;
12
+ inputLabelPlacement: typeof this.labelPlacement;
13
+ inputClear: boolean;
14
+ inputDisabled: boolean;
15
+ inputTextCenter: boolean;
16
+ inputAutoCapitalize: typeof this.autoCapitalize;
17
+ ngOnChanges(changes: SimpleChanges): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormInputTextAreaComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInputTextAreaComponent, "cf-form-input-text-area", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "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>;
20
+ }
@@ -1,8 +1,8 @@
1
1
  import { type OnChanges, type SimpleChanges } from '@angular/core';
2
- import type { AbstractControl } from '@angular/forms';
2
+ import type { FormControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FormValidationComponent implements OnChanges {
5
- control: AbstractControl | null;
5
+ control: FormControl | null;
6
6
  ngOnChanges(changes: SimpleChanges): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<FormValidationComponent, never>;
8
8
  static ɵcmp: i0.ɵɵComponentDeclaration<FormValidationComponent, "cf-form-validation", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
@@ -9,10 +9,14 @@ import * as i7 from "./components/alert/alert.component";
9
9
  import * as i8 from "./components/logo/logo.component";
10
10
  import * as i9 from "./components/calendar/calendar.component";
11
11
  import * as i10 from "./components/form-validation/form-validation.component";
12
- import * as i11 from "@ionic/angular";
13
- import * as i12 from "@angular/common";
12
+ import * as i11 from "./components/form-input/form-input.component";
13
+ import * as i12 from "./components/form-input-select/form-input-select.component";
14
+ import * as i13 from "./components/form-input-text-area/form-input-text-area.component";
15
+ import * as i14 from "@ionic/angular";
16
+ import * as i15 from "@angular/common";
17
+ import * as i16 from "@angular/forms";
14
18
  export declare class CareFirstLibraryModule {
15
19
  static ɵfac: i0.ɵɵFactoryDeclaration<CareFirstLibraryModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<CareFirstLibraryModule, [typeof i1.PageComponent, typeof i2.ButtonComponent, typeof i3.SpacerComponent, typeof i4.IconComponent, typeof i5.ButtonLoaderDirective, typeof i6.NotificationComponent, typeof i7.AlertComponent, typeof i8.LogoComponent, typeof i9.CalendarComponent, typeof i10.FormValidationComponent], [typeof i11.IonicModule, typeof i12.CommonModule], [typeof i1.PageComponent, typeof i2.ButtonComponent, typeof i3.SpacerComponent, typeof i4.IconComponent, typeof i5.ButtonLoaderDirective, typeof i6.NotificationComponent, typeof i7.AlertComponent, typeof i8.LogoComponent, typeof i9.CalendarComponent, typeof i10.FormValidationComponent]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CareFirstLibraryModule, [typeof i1.PageComponent, typeof i2.ButtonComponent, typeof i3.SpacerComponent, typeof i4.IconComponent, typeof i5.ButtonLoaderDirective, typeof i6.NotificationComponent, typeof i7.AlertComponent, typeof i8.LogoComponent, typeof i9.CalendarComponent, typeof i10.FormValidationComponent, typeof i11.FormInputComponent, typeof i12.FormInputSelectComponent, typeof i13.FormInputTextAreaComponent], [typeof i14.IonicModule, typeof i15.CommonModule, typeof i16.ReactiveFormsModule], [typeof i1.PageComponent, typeof i2.ButtonComponent, typeof i3.SpacerComponent, typeof i4.IconComponent, typeof i5.ButtonLoaderDirective, typeof i6.NotificationComponent, typeof i7.AlertComponent, typeof i8.LogoComponent, typeof i9.CalendarComponent, typeof i10.FormValidationComponent, typeof i11.FormInputComponent, typeof i12.FormInputSelectComponent, typeof i13.FormInputTextAreaComponent]>;
17
21
  static ɵinj: i0.ɵɵInjectorDeclaration<CareFirstLibraryModule>;
18
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carefirst/library",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "author": "Jacques Francois Coetzee",
5
5
  "private": false,
6
6
  "peerDependencies": {
@@ -26,6 +26,16 @@ ion-radio {
26
26
  }
27
27
  }
28
28
 
29
+ ion-input.text-center,
30
+ ion-textarea.text-center,
31
+ ion-select.text-center,
32
+ ion-radio.text-center {
33
+ text-align: center;
34
+ label {
35
+ text-align: center;
36
+ }
37
+ }
38
+
29
39
  /*===============================================
30
40
  ================ Select Popovers ================
31
41
  ===============================================*/
package/public-api.d.ts CHANGED
@@ -9,6 +9,9 @@ export * from './lib/components/notification/notification.component';
9
9
  export * from './lib/components/logo/logo.component';
10
10
  export * from './lib/components/calendar/calendar.component';
11
11
  export * from './lib/components/form-validation/form-validation.component';
12
+ export * from './lib/components/form-input/form-input.component';
13
+ export * from './lib/components/form-input-select/form-input-select.component';
14
+ export * from './lib/components/form-input-text-area/form-input-text-area.component';
12
15
  export * as CFAlertI from './lib/interfaces/alert.interface';
13
16
  export * as CFIconI from './lib/interfaces/icon.interface';
14
17
  export * as CFSpacerI from './lib/interfaces/spacer.interface';