@carefirst/library 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ import { type OnChanges, type SimpleChanges, EventEmitter } from '@angular/core';
2
+ import { AlertController } from '@ionic/angular';
3
+ import type { AlertDataI } from '../../interfaces/alert.interface';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AlertComponent implements OnChanges {
6
+ private readonly alertController;
7
+ data: AlertDataI | undefined;
8
+ alertEvent: EventEmitter<boolean>;
9
+ constructor(alertController: AlertController);
10
+ ngOnChanges(changes: SimpleChanges): void;
11
+ showAlert(data?: AlertDataI): Promise<void>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "cf-alert", never, { "data": { "alias": "data"; "required": false; }; }, { "alertEvent": "alertEvent"; }, never, never, false, never>;
14
+ }
@@ -0,0 +1,11 @@
1
+ import { type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CalendarComponent implements OnChanges {
4
+ displayTime?: boolean | string | undefined;
5
+ color?: 'success' | 'accent';
6
+ inputTime: boolean;
7
+ inputColor: typeof this.color;
8
+ ngOnChanges(changes: SimpleChanges): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "cf-calendar", never, { "displayTime": { "alias": "displayTime"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import type { AbstractControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormValidationComponent implements OnChanges {
5
+ control: AbstractControl | null;
6
+ ngOnChanges(changes: SimpleChanges): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormValidationComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormValidationComponent, "cf-form-validation", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
9
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class LogoComponent {
3
+ type: 'horizontal' | 'vertical';
4
+ height: number;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<LogoComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<LogoComponent, "cf-logo", never, { "type": { "alias": "type"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,9 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import type { NotificationPayloadI } from '../../interfaces/notification.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NotificationComponent {
5
+ data?: NotificationPayloadI | undefined;
6
+ buttonClick: EventEmitter<true>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "cf-notification", never, { "data": { "alias": "data"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, ["*"], false, never>;
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface AlertDataI {
2
+ heading: string;
3
+ message: string;
4
+ buttonTrue: string;
5
+ buttonFalse: string;
6
+ }
@@ -1,4 +1,4 @@
1
- export declare const iconsC: readonly ["home", "cog", "profile", "scan", "person", "appointment", "clock", "calendar", "email", "phone", "sign-out", "sign-in", "close", "check-mark", "rating-star-blank", "rating-star-filled", "back-arrow", "lock", "show-password", "hide-password", "circle-check", "circle-alert", "direction-switch", "chat-bubbles", "phone-down", "mic", "no-mic", "button-forward-arrow", "button-check-box", "social-media-whatsapp", "social-media-facebook", "social-media-linkedin", "social-media-instagram", "social-media-google-mail", "instant-video-service", "instant-telephonic-service", "scheduled-video-service", "scheduled-telephonic-service", "vital-scan-service", "open-back-arrow", "open-forward-arrow", "open-up-arrow", "open-down-arrow", "single-document", "lightning"];
1
+ export declare const iconsC: readonly ["home", "cog", "profile", "scan", "person", "appointment", "clock", "calendar", "email", "phone", "sign-out", "sign-in", "close", "check-mark", "rating-star-blank", "rating-star-filled", "back-arrow", "lock", "show-password", "hide-password", "circle-check", "circle-alert", "direction-switch", "chat-bubbles", "phone-down", "mic", "no-mic", "button-forward-arrow", "button-check-box", "social-media-whatsapp", "social-media-facebook", "social-media-linkedin", "social-media-instagram", "social-media-google-mail", "instant-video-service", "instant-telephonic-service", "scheduled-video-service", "scheduled-telephonic-service", "vital-scan-service", "open-back-arrow", "open-forward-arrow", "open-up-arrow", "open-down-arrow", "single-document", "lightning", "microsoft-365"];
2
2
  export type IconsT = (typeof iconsC)[number];
3
3
  export declare const iconColorC: readonly ["primary", "secondary", "success", "warning", "error", "white"];
4
4
  export type IconColorT = (typeof iconColorC)[number];
@@ -0,0 +1,10 @@
1
+ export interface NotificationPayloadI {
2
+ heading: string;
3
+ status: 'success' | 'warning' | 'error';
4
+ message?: string;
5
+ canClose?: true;
6
+ button?: {
7
+ buttonText: string;
8
+ buttonHeading?: string;
9
+ };
10
+ }
@@ -4,10 +4,15 @@ import * as i2 from "./components/button/button.component";
4
4
  import * as i3 from "./components/spacer/spacer.component";
5
5
  import * as i4 from "./components/icon/icon.component";
6
6
  import * as i5 from "./directives/button-loader.directive";
7
- import * as i6 from "@ionic/angular";
8
- import * as i7 from "@angular/common";
7
+ import * as i6 from "./components/notification/notification.component";
8
+ import * as i7 from "./components/alert/alert.component";
9
+ import * as i8 from "./components/logo/logo.component";
10
+ import * as i9 from "./components/calendar/calendar.component";
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";
9
14
  export declare class CareFirstLibraryModule {
10
15
  static ɵfac: i0.ɵɵFactoryDeclaration<CareFirstLibraryModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<CareFirstLibraryModule, [typeof i1.PageComponent, typeof i2.ButtonComponent, typeof i3.SpacerComponent, typeof i4.IconComponent, typeof i5.ButtonLoaderDirective], [typeof i6.IonicModule, typeof i7.CommonModule], [typeof i1.PageComponent, typeof i2.ButtonComponent, typeof i3.SpacerComponent, typeof i4.IconComponent, typeof i5.ButtonLoaderDirective]>;
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]>;
12
17
  static ɵinj: i0.ɵɵInjectorDeclaration<CareFirstLibraryModule>;
13
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carefirst/library",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "author": "Jacques Francois Coetzee",
5
5
  "private": false,
6
6
  "peerDependencies": {
package/public-api.d.ts CHANGED
@@ -1,6 +1,15 @@
1
1
  export * from './lib/library.module';
2
2
  export * from './lib/directives/button-loader.directive';
3
+ export * from './lib/components/alert/alert.component';
3
4
  export * from './lib/components/page/page.component';
4
5
  export * from './lib/components/button/button.component';
5
6
  export * from './lib/components/spacer/spacer.component';
6
7
  export * from './lib/components/icon/icon.component';
8
+ export * from './lib/components/notification/notification.component';
9
+ export * from './lib/components/logo/logo.component';
10
+ export * from './lib/components/calendar/calendar.component';
11
+ export * from './lib/components/form-validation/form-validation.component';
12
+ export * as CFAlertI from './lib/interfaces/alert.interface';
13
+ export * as CFIconI from './lib/interfaces/icon.interface';
14
+ export * as CFSpacerI from './lib/interfaces/spacer.interface';
15
+ export * as CFNotificationI from './lib/interfaces/notification.interface';