@carefirst/library 1.3.11 → 1.3.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,20 @@
1
1
  import { type OnChanges, type SimpleChanges } from '@angular/core';
2
2
  import { type IconsT } from '../../interfaces/icon.interface';
3
3
  import * as i0 from "@angular/core";
4
- declare const badgeTypeC: readonly ["primary", "alert", "accent", "warning", "disabled", "feedback-success", "feedback-error", "feedback-warning", "feedback-busy"];
4
+ declare const badgeTypeC: readonly ["primary", "white", "success", "alert", "accent", "warning", "disabled", "feedback-success", "feedback-error", "feedback-warning", "feedback-busy"];
5
5
  type BadgeTypeT = (typeof badgeTypeC)[number];
6
6
  export declare class BadgeComponent implements OnChanges {
7
7
  type: BadgeTypeT;
8
8
  icon?: IconsT | undefined;
9
+ small?: boolean | string | undefined;
10
+ large?: boolean | string | undefined;
9
11
  inputType: typeof this.type;
10
12
  inputIcon: typeof this.icon | undefined;
13
+ fontsize: number;
14
+ inputSmall: boolean;
15
+ inputLarge: boolean;
11
16
  ngOnChanges(changes: SimpleChanges): void;
12
17
  static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "cf-badge", never, { "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, ["*"], false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "cf-badge", never, { "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "small": { "alias": "small"; "required": false; }; "large": { "alias": "large"; "required": false; }; }, {}, never, ["*"], false, never>;
14
19
  }
15
20
  export {};
@@ -7,6 +7,7 @@ export declare class ButtonComponent implements OnChanges {
7
7
  alert?: boolean | string | undefined;
8
8
  action?: boolean | string | undefined;
9
9
  snug?: boolean | string | undefined;
10
+ accent?: boolean | string | undefined;
10
11
  fontSize?: 'small' | 'large';
11
12
  iconStart?: IconsT | undefined;
12
13
  iconEnd?: IconsT | undefined;
@@ -19,6 +20,7 @@ export declare class ButtonComponent implements OnChanges {
19
20
  inputAlert: boolean;
20
21
  inputAction: boolean;
21
22
  inputSnug: boolean;
23
+ inputAccent: boolean;
22
24
  inputIconStart: typeof this.iconStart | undefined;
23
25
  inputIconEnd: typeof this.iconEnd | undefined;
24
26
  inputLoading: boolean;
@@ -26,5 +28,5 @@ export declare class ButtonComponent implements OnChanges {
26
28
  ngOnChanges(changes: SimpleChanges): void;
27
29
  checkCustomColor(color: string): string;
28
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "cf-btn", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "alert": { "alias": "alert"; "required": false; }; "action": { "alias": "action"; "required": false; }; "snug": { "alias": "snug"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "iconStart": { "alias": "iconStart"; "required": false; }; "iconEnd": { "alias": "iconEnd"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "customColor": { "alias": "customColor"; "required": false; }; }, {}, never, ["*"], false, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "cf-btn", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "alert": { "alias": "alert"; "required": false; }; "action": { "alias": "action"; "required": false; }; "snug": { "alias": "snug"; "required": false; }; "accent": { "alias": "accent"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "iconStart": { "alias": "iconStart"; "required": false; }; "iconEnd": { "alias": "iconEnd"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "customColor": { "alias": "customColor"; "required": false; }; }, {}, never, ["*"], false, never>;
30
32
  }
@@ -0,0 +1,31 @@
1
+ import { EventEmitter, type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import type { InputCustomEvent, IonInput } from '@ionic/angular';
3
+ import type { CfCodeInputUserFeedbackMessagesI } from '../../interfaces/verification-code.interface';
4
+ import * as i0 from "@angular/core";
5
+ export declare class VerificationCodeComponent implements OnChanges {
6
+ userFeedbackMessages?: CfCodeInputUserFeedbackMessagesI;
7
+ valueToVerify: string;
8
+ code: string;
9
+ outcome: EventEmitter<string>;
10
+ resendClickEvent: EventEmitter<true>;
11
+ myInput1?: IonInput;
12
+ myInput2?: IonInput;
13
+ myInput3?: IonInput;
14
+ myInput4?: IonInput;
15
+ myInput5?: IonInput;
16
+ validationCodeError: boolean;
17
+ verificationCodeInputArr: (number | null)[];
18
+ loading: boolean;
19
+ codeSentCount: number;
20
+ validationCode: string | undefined;
21
+ constructor();
22
+ ionViewDidEnter(): void;
23
+ ngOnChanges(changes: SimpleChanges): void;
24
+ resendVerificationCode(): void;
25
+ formulateAndCheckVerificationCode(event: InputCustomEvent, index: number): void;
26
+ private resetAllInputFields;
27
+ private setFocusToNext;
28
+ private clearCodeInput;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerificationCodeComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<VerificationCodeComponent, "cf-verification-code", never, { "userFeedbackMessages": { "alias": "userFeedbackMessages"; "required": false; }; "valueToVerify": { "alias": "valueToVerify"; "required": false; }; "code": { "alias": "code"; "required": false; }; }, { "outcome": "outcome"; "resendClickEvent": "resendClickEvent"; }, never, never, false, never>;
31
+ }
@@ -0,0 +1,8 @@
1
+ export interface CfCodeInputUserFeedbackMessagesI {
2
+ standardResend?: string[];
3
+ limitReached?: string[];
4
+ error?: {
5
+ errorMessage?: string[];
6
+ resend?: string[];
7
+ };
8
+ }
@@ -15,11 +15,12 @@ import * as i13 from "./components/form-input-text-area/form-input-text-area.com
15
15
  import * as i14 from "./components/chat-bubble/chat-bubble.component";
16
16
  import * as i15 from "./components/badge/badge.component";
17
17
  import * as i16 from "./components/spinner/spinner.component";
18
- import * as i17 from "@ionic/angular";
19
- import * as i18 from "@angular/common";
20
- import * as i19 from "@angular/forms";
18
+ import * as i17 from "./components/verification-code/verification-code.component";
19
+ import * as i18 from "@ionic/angular";
20
+ import * as i19 from "@angular/common";
21
+ import * as i20 from "@angular/forms";
21
22
  export declare class CareFirstLibraryModule {
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<CareFirstLibraryModule, never>;
23
- 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.ChatBubbleComponent, typeof i15.BadgeComponent, typeof i16.SpinnerComponent], [typeof i17.IonicModule, typeof i18.CommonModule, typeof i19.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, typeof i14.ChatBubbleComponent, typeof i15.BadgeComponent, typeof i16.SpinnerComponent]>;
24
+ 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.ChatBubbleComponent, typeof i15.BadgeComponent, typeof i16.SpinnerComponent, typeof i17.VerificationCodeComponent], [typeof i18.IonicModule, typeof i19.CommonModule, typeof i20.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, typeof i14.ChatBubbleComponent, typeof i15.BadgeComponent, typeof i16.SpinnerComponent, typeof i17.VerificationCodeComponent]>;
24
25
  static ɵinj: i0.ɵɵInjectorDeclaration<CareFirstLibraryModule>;
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carefirst/library",
3
- "version": "1.3.11",
3
+ "version": "1.3.13",
4
4
  "author": "Jacques Francois Coetzee",
5
5
  "private": false,
6
6
  "peerDependencies": {
package/public-api.d.ts CHANGED
@@ -16,8 +16,10 @@ export * from './lib/components/form-input-text-area/form-input-text-area.compon
16
16
  export * from './lib/components/chat-bubble/chat-bubble.component';
17
17
  export * from './lib/components/badge/badge.component';
18
18
  export * from './lib/components/spinner/spinner.component';
19
+ export * from './lib/components/verification-code/verification-code.component';
19
20
  export * as CFAlertI from './lib/interfaces/alert.interface';
20
21
  export * as CFIconI from './lib/interfaces/icon.interface';
21
22
  export * as CFSpacerI from './lib/interfaces/spacer.interface';
22
23
  export * as CFNotificationI from './lib/interfaces/notification.interface';
23
24
  export * as CFInputI from './lib/interfaces/input.interface';
25
+ export * as CFCodeInputI from './lib/interfaces/verification-code.interface';