@carefirst/library 1.2.2 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,14 @@
1
1
  import { type OnChanges, type SimpleChanges, EventEmitter } from '@angular/core';
2
2
  import { AlertController } from '@ionic/angular';
3
- import type { AlertDataI } from '../../interfaces/alert.interface';
3
+ import type { AlertDataI, AlertEventI } from '../../interfaces/alert.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AlertComponent implements OnChanges {
6
6
  private readonly alertController;
7
7
  data: AlertDataI | undefined;
8
- alertEvent: EventEmitter<boolean>;
8
+ alertEvent: EventEmitter<AlertEventI>;
9
9
  constructor(alertController: AlertController);
10
10
  ngOnChanges(changes: SimpleChanges): void;
11
- showAlert(data?: AlertDataI): Promise<void>;
11
+ showAlert(data: AlertDataI): Promise<void>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "cf-alert", never, { "data": { "alias": "data"; "required": false; }; }, { "alertEvent": "alertEvent"; }, never, never, false, never>;
14
14
  }
@@ -3,7 +3,7 @@ import type { NotificationPayloadI } from '../../interfaces/notification.interfa
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class NotificationComponent {
5
5
  data?: NotificationPayloadI | undefined;
6
- buttonClick: EventEmitter<true>;
6
+ buttonClick: EventEmitter<string | number>;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
8
8
  static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "cf-notification", never, { "data": { "alias": "data"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, ["*"], false, never>;
9
9
  }
@@ -1,6 +1,11 @@
1
1
  export interface AlertDataI {
2
2
  heading: string;
3
3
  message: string;
4
+ alertIdentifier: string | number;
4
5
  buttonTrue?: string;
5
6
  buttonFalse?: string;
6
7
  }
8
+ export interface AlertEventI {
9
+ identifier: string | number;
10
+ status: boolean;
11
+ }
@@ -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", "microsoft-365", "user-dependent"];
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", "user-dependent", "plus"];
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];
@@ -5,6 +5,7 @@ export interface NotificationPayloadI {
5
5
  canClose?: true;
6
6
  button?: {
7
7
  buttonText: string;
8
+ buttonClickIdentifier: string | number;
8
9
  buttonHeading?: string;
9
10
  };
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carefirst/library",
3
- "version": "1.2.2",
3
+ "version": "1.2.5",
4
4
  "author": "Jacques Francois Coetzee",
5
5
  "private": false,
6
6
  "peerDependencies": {