@carefirst/library 1.3.10 → 1.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. package/esm2022/carefirst-library.mjs +2 -0
  2. package/esm2022/lib/components/alert/alert.component.mjs +56 -0
  3. package/esm2022/lib/components/badge/badge.component.mjs +39 -0
  4. package/esm2022/lib/components/button/button.component.mjs +92 -0
  5. package/esm2022/lib/components/calendar/calendar.component.mjs +39 -0
  6. package/esm2022/lib/components/chat-bubble/chat-bubble.component.mjs +31 -0
  7. package/esm2022/lib/components/form-input/form-input.component.mjs +87 -0
  8. package/esm2022/lib/components/form-input-select/form-input-select.component.mjs +46 -0
  9. package/esm2022/lib/components/form-input-text-area/form-input-text-area.component.mjs +61 -0
  10. package/esm2022/lib/components/form-validation/form-validation.component.mjs +20 -0
  11. package/esm2022/lib/components/icon/icon.component.mjs +29 -0
  12. package/esm2022/lib/components/logo/logo.component.mjs +18 -0
  13. package/esm2022/lib/components/notification/notification.component.mjs +22 -0
  14. package/esm2022/lib/components/page/page.component.mjs +31 -0
  15. package/esm2022/lib/components/spacer/spacer.component.mjs +30 -0
  16. package/esm2022/lib/components/spinner/spinner.component.mjs +19 -0
  17. package/esm2022/lib/directives/button-loader.directive.mjs +41 -0
  18. package/esm2022/lib/interfaces/alert.interface.mjs +2 -0
  19. package/esm2022/lib/interfaces/icon.interface.mjs +52 -0
  20. package/esm2022/lib/interfaces/input.interface.mjs +2 -0
  21. package/esm2022/lib/interfaces/notification.interface.mjs +2 -0
  22. package/esm2022/lib/interfaces/spacer.interface.mjs +2 -0
  23. package/esm2022/lib/library.module.mjs +100 -0
  24. package/esm2022/lib/utils/attribute.util.mjs +34 -0
  25. package/esm2022/lib/utils/form-validators-utility.mjs +113 -0
  26. package/esm2022/public-api.mjs +24 -0
  27. package/fesm2022/carefirst-library.mjs +890 -0
  28. package/fesm2022/carefirst-library.mjs.map +1 -0
  29. package/index.d.ts +2 -0
  30. package/lib/components/alert/alert.component.d.ts +14 -0
  31. package/lib/components/badge/badge.component.d.ts +15 -0
  32. package/lib/components/button/button.component.d.ts +32 -0
  33. package/lib/components/calendar/calendar.component.d.ts +15 -0
  34. package/lib/components/chat-bubble/chat-bubble.component.d.ts +13 -0
  35. package/lib/components/form-input/form-input.component.d.ts +37 -0
  36. package/lib/components/form-input-select/form-input-select.component.d.ts +21 -0
  37. package/lib/components/form-input-text-area/form-input-text-area.component.d.ts +27 -0
  38. package/lib/components/form-validation/form-validation.component.d.ts +9 -0
  39. package/lib/components/icon/icon.component.d.ts +13 -0
  40. package/lib/components/logo/logo.component.d.ts +7 -0
  41. package/lib/components/notification/notification.component.d.ts +9 -0
  42. package/lib/components/page/page.component.d.ts +13 -0
  43. package/lib/components/spacer/spacer.component.d.ts +14 -0
  44. package/lib/components/spinner/spinner.component.d.ts +9 -0
  45. package/lib/directives/button-loader.directive.d.ts +12 -0
  46. package/lib/interfaces/alert.interface.d.ts +11 -0
  47. package/lib/interfaces/icon.interface.d.ts +4 -0
  48. package/lib/interfaces/input.interface.d.ts +4 -0
  49. package/lib/interfaces/notification.interface.d.ts +11 -0
  50. package/lib/interfaces/spacer.interface.d.ts +3 -0
  51. package/lib/library.module.d.ts +25 -0
  52. package/lib/utils/attribute.util.d.ts +4 -0
  53. package/lib/utils/form-validators-utility.d.ts +8 -0
  54. package/package.json +14 -11
  55. package/{src/public-api.ts → public-api.d.ts} +0 -18
  56. package/.eslintrc.json +0 -31
  57. package/ng-package.json +0 -8
  58. package/src/lib/components/alert/alert.component.html +0 -0
  59. package/src/lib/components/alert/alert.component.scss +0 -63
  60. package/src/lib/components/alert/alert.component.spec.ts +0 -23
  61. package/src/lib/components/alert/alert.component.ts +0 -73
  62. package/src/lib/components/badge/badge.component.html +0 -5
  63. package/src/lib/components/badge/badge.component.scss +0 -96
  64. package/src/lib/components/badge/badge.component.spec.ts +0 -23
  65. package/src/lib/components/badge/badge.component.ts +0 -61
  66. package/src/lib/components/button/button.component.html +0 -20
  67. package/src/lib/components/button/button.component.scss +0 -153
  68. package/src/lib/components/button/button.component.spec.ts +0 -21
  69. package/src/lib/components/button/button.component.ts +0 -94
  70. package/src/lib/components/calendar/calendar.component.html +0 -9
  71. package/src/lib/components/calendar/calendar.component.scss +0 -34
  72. package/src/lib/components/calendar/calendar.component.spec.ts +0 -23
  73. package/src/lib/components/calendar/calendar.component.ts +0 -53
  74. package/src/lib/components/chat-bubble/chat-bubble.component.html +0 -9
  75. package/src/lib/components/chat-bubble/chat-bubble.component.scss +0 -31
  76. package/src/lib/components/chat-bubble/chat-bubble.component.spec.ts +0 -23
  77. package/src/lib/components/chat-bubble/chat-bubble.component.ts +0 -43
  78. package/src/lib/components/form-input/form-input.component.html +0 -37
  79. package/src/lib/components/form-input/form-input.component.scss +0 -23
  80. package/src/lib/components/form-input/form-input.component.spec.ts +0 -23
  81. package/src/lib/components/form-input/form-input.component.ts +0 -95
  82. package/src/lib/components/form-input-select/form-input-select.component.html +0 -27
  83. package/src/lib/components/form-input-select/form-input-select.component.scss +0 -40
  84. package/src/lib/components/form-input-select/form-input-select.component.spec.ts +0 -23
  85. package/src/lib/components/form-input-select/form-input-select.component.ts +0 -61
  86. package/src/lib/components/form-input-text-area/form-input-text-area.component.html +0 -29
  87. package/src/lib/components/form-input-text-area/form-input-text-area.component.scss +0 -19
  88. package/src/lib/components/form-input-text-area/form-input-text-area.component.spec.ts +0 -23
  89. package/src/lib/components/form-input-text-area/form-input-text-area.component.ts +0 -76
  90. package/src/lib/components/form-validation/form-validation.component.html +0 -8
  91. package/src/lib/components/form-validation/form-validation.component.scss +0 -8
  92. package/src/lib/components/form-validation/form-validation.component.spec.ts +0 -23
  93. package/src/lib/components/form-validation/form-validation.component.ts +0 -34
  94. package/src/lib/components/icon/icon.component.html +0 -529
  95. package/src/lib/components/icon/icon.component.scss +0 -61
  96. package/src/lib/components/icon/icon.component.spec.ts +0 -21
  97. package/src/lib/components/icon/icon.component.ts +0 -40
  98. package/src/lib/components/logo/logo.component.html +0 -10
  99. package/src/lib/components/logo/logo.component.scss +0 -5
  100. package/src/lib/components/logo/logo.component.spec.ts +0 -23
  101. package/src/lib/components/logo/logo.component.ts +0 -21
  102. package/src/lib/components/notification/notification.component.html +0 -39
  103. package/src/lib/components/notification/notification.component.scss +0 -20
  104. package/src/lib/components/notification/notification.component.spec.ts +0 -21
  105. package/src/lib/components/notification/notification.component.ts +0 -23
  106. package/src/lib/components/page/page.component.html +0 -5
  107. package/src/lib/components/page/page.component.scss +0 -35
  108. package/src/lib/components/page/page.component.spec.ts +0 -21
  109. package/src/lib/components/page/page.component.ts +0 -42
  110. package/src/lib/components/spacer/spacer.component.html +0 -4
  111. package/src/lib/components/spacer/spacer.component.scss +0 -27
  112. package/src/lib/components/spacer/spacer.component.spec.ts +0 -21
  113. package/src/lib/components/spacer/spacer.component.ts +0 -43
  114. package/src/lib/components/spinner/spinner.component.html +0 -1
  115. package/src/lib/components/spinner/spinner.component.scss +0 -14
  116. package/src/lib/components/spinner/spinner.component.spec.ts +0 -23
  117. package/src/lib/components/spinner/spinner.component.ts +0 -33
  118. package/src/lib/directives/button-loader.directive.spec.ts +0 -8
  119. package/src/lib/directives/button-loader.directive.ts +0 -77
  120. package/src/lib/interfaces/alert.interface.ts +0 -20
  121. package/src/lib/interfaces/icon.interface.ts +0 -62
  122. package/src/lib/interfaces/input.interface.ts +0 -8
  123. package/src/lib/interfaces/notification.interface.ts +0 -15
  124. package/src/lib/interfaces/spacer.interface.ts +0 -6
  125. package/src/lib/library.module.ts +0 -66
  126. package/src/lib/utils/attribute.util.ts +0 -66
  127. package/src/lib/utils/form-validators-utility.ts +0 -186
  128. package/tsconfig.lib.json +0 -12
  129. package/tsconfig.lib.prod.json +0 -10
  130. package/tsconfig.spec.json +0 -14
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ /// <amd-module name="@carefirst/library" />
2
+ export * from './public-api';
@@ -0,0 +1,14 @@
1
+ import { type OnChanges, type SimpleChanges, EventEmitter } from '@angular/core';
2
+ import { AlertController } from '@ionic/angular';
3
+ import type { AlertDataI, AlertEventI } 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<AlertEventI>;
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,15 @@
1
+ import { type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import { type IconsT } from '../../interfaces/icon.interface';
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"];
5
+ type BadgeTypeT = (typeof badgeTypeC)[number];
6
+ export declare class BadgeComponent implements OnChanges {
7
+ type: BadgeTypeT;
8
+ icon?: IconsT | undefined;
9
+ inputType: typeof this.type;
10
+ inputIcon: typeof this.icon | undefined;
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ 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>;
14
+ }
15
+ export {};
@@ -0,0 +1,32 @@
1
+ import { type SimpleChanges, type OnChanges } from '@angular/core';
2
+ import { type IconsT } from '../../interfaces/icon.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ButtonComponent implements OnChanges {
5
+ type: 'primary' | 'secondary' | 'tertiary';
6
+ disabled?: boolean | string | undefined;
7
+ alert?: boolean | string | undefined;
8
+ action?: boolean | string | undefined;
9
+ snug?: boolean | string | undefined;
10
+ accent?: boolean | string | undefined;
11
+ fontSize?: 'small' | 'large';
12
+ iconStart?: IconsT | undefined;
13
+ iconEnd?: IconsT | undefined;
14
+ loading?: boolean | string | undefined;
15
+ customColor?: string | undefined;
16
+ get parentEvents(): string;
17
+ inputType: typeof this.type;
18
+ inputFontSize: typeof this.fontSize | undefined;
19
+ inputDisabled: boolean;
20
+ inputAlert: boolean;
21
+ inputAction: boolean;
22
+ inputSnug: boolean;
23
+ inputAccent: boolean;
24
+ inputIconStart: typeof this.iconStart | undefined;
25
+ inputIconEnd: typeof this.iconEnd | undefined;
26
+ inputLoading: boolean;
27
+ inputCustomColor: string;
28
+ ngOnChanges(changes: SimpleChanges): void;
29
+ checkCustomColor(color: string): string;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, 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>;
32
+ }
@@ -0,0 +1,15 @@
1
+ import { EventEmitter, 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
+ min?: string | undefined;
7
+ max?: string | undefined;
8
+ value: EventEmitter<string>;
9
+ inputTime: boolean;
10
+ inputColor: typeof this.color;
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ setValue(value: string | string[] | null | undefined): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "cf-calendar", never, { "displayTime": { "alias": "displayTime"; "required": false; }; "color": { "alias": "color"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "value": "value"; }, never, never, false, never>;
15
+ }
@@ -0,0 +1,13 @@
1
+ import { type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ChatBubbleComponent implements OnChanges {
4
+ type: 'outgoing' | 'incoming';
5
+ date: string;
6
+ message: string;
7
+ inputType: typeof this.type;
8
+ inputDate: typeof this.date;
9
+ inputMessage: typeof this.message;
10
+ ngOnChanges(changes: SimpleChanges): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChatBubbleComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChatBubbleComponent, "cf-chat-bubble", never, { "type": { "alias": "type"; "required": false; }; "date": { "alias": "date"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, {}, never, never, false, never>;
13
+ }
@@ -0,0 +1,37 @@
1
+ import { type OnChanges, type SimpleChanges, EventEmitter } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ declare const inputsC: {
5
+ readonly labelPlacement: readonly ["fixed", "floating", "stacked", "start", "end"];
6
+ readonly inputMode: readonly ["text", "email", "numeric", "tel", "decimal", "url", "search"];
7
+ readonly autoCapitalize: readonly ["off", "none", "on", "sentences", "words", "characters"];
8
+ readonly type: readonly ["date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week"];
9
+ };
10
+ export declare class FormInputComponent implements OnChanges {
11
+ label: string;
12
+ min: number | string;
13
+ max: number | string;
14
+ labelPlacement?: (typeof inputsC.labelPlacement)[number];
15
+ placeholder?: string | undefined;
16
+ inputmode?: (typeof inputsC.inputMode)[number];
17
+ autoCapitalize?: (typeof inputsC.autoCapitalize)[number];
18
+ type?: (typeof inputsC.type)[number];
19
+ noClearButton?: boolean | string | undefined;
20
+ control?: FormControl | null;
21
+ textCenter?: boolean | string | undefined;
22
+ maxLength?: number | string;
23
+ greyBackground?: boolean | string | undefined;
24
+ value: string | undefined;
25
+ valueChange: EventEmitter<string | undefined>;
26
+ inputLabelPlacement: typeof this.labelPlacement;
27
+ localInputMode: typeof this.inputmode;
28
+ inputClear: boolean;
29
+ inputTextCenter: boolean;
30
+ inputType: typeof this.type;
31
+ inputAutoCapitalize: typeof this.autoCapitalize;
32
+ inputGreyBackground: boolean;
33
+ ngOnChanges(changes: SimpleChanges): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "cf-form-input", never, { "label": { "alias": "label"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "placeholder": { "alias": "placeholder"; "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; }; "maxLength": { "alias": "maxLength"; "required": false; }; "greyBackground": { "alias": "greyBackground"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
36
+ }
37
+ export {};
@@ -0,0 +1,21 @@
1
+ import { EventEmitter, type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import type { FormInputSelectOptionsI } from '../../interfaces/input.interface';
4
+ import * as i0 from "@angular/core";
5
+ declare const inputSelectC: {
6
+ readonly labelPlacement: readonly ["fixed", "floating", "stacked", "start", "end"];
7
+ };
8
+ export declare class FormInputSelectComponent<T> implements OnChanges {
9
+ label: string;
10
+ options: FormInputSelectOptionsI<T>[];
11
+ labelPlacement?: (typeof inputSelectC.labelPlacement)[number];
12
+ placeholder?: string | undefined;
13
+ control?: FormControl | null;
14
+ value: FormInputSelectOptionsI<T>['value'] | undefined;
15
+ valueChange: EventEmitter<T | undefined>;
16
+ inputLabelPlacement: typeof this.labelPlacement;
17
+ ngOnChanges(changes: SimpleChanges): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormInputSelectComponent<any>, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInputSelectComponent<any>, "cf-form-input-select", never, { "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "control": { "alias": "control"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
20
+ }
21
+ export {};
@@ -0,0 +1,27 @@
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
+ declare const inputTextAreaC: {
5
+ readonly labelPlacement: readonly ["fixed", "floating", "stacked", "start", "end"];
6
+ readonly autoCapitalize: readonly ["off", "none", "on", "sentences", "words", "characters"];
7
+ };
8
+ export declare class FormInputTextAreaComponent implements OnChanges {
9
+ label: string;
10
+ labelPlacement?: (typeof inputTextAreaC.labelPlacement)[number];
11
+ placeholder?: string | undefined;
12
+ autoCapitalize?: (typeof inputTextAreaC.autoCapitalize)[number];
13
+ control?: FormControl | null;
14
+ textCenter?: boolean | string | undefined;
15
+ minHeight?: string | 'none';
16
+ maxHeight?: string | 'none';
17
+ value: string | undefined;
18
+ valueChange: EventEmitter<string | undefined>;
19
+ inputLabelPlacement: typeof this.labelPlacement;
20
+ inputClear: boolean;
21
+ inputTextCenter: boolean;
22
+ inputAutoCapitalize: typeof this.autoCapitalize;
23
+ ngOnChanges(changes: SimpleChanges): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormInputTextAreaComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInputTextAreaComponent, "cf-form-input-text-area", never, { "label": { "alias": "label"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; "control": { "alias": "control"; "required": false; }; "textCenter": { "alias": "textCenter"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
26
+ }
27
+ export {};
@@ -0,0 +1,9 @@
1
+ import { 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 FormValidationComponent implements OnChanges {
5
+ control: FormControl | 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,13 @@
1
+ import { type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import { type IconColorT, type IconsT } from '../../interfaces/icon.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class IconComponent implements OnChanges {
5
+ icon: IconsT;
6
+ height?: number;
7
+ iconColor?: IconColorT;
8
+ inputIcon: typeof this.icon | undefined;
9
+ inputColor: typeof this.iconColor | undefined;
10
+ ngOnChanges(changes: SimpleChanges): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "cf-icon", never, { "icon": { "alias": "icon"; "required": false; }; "height": { "alias": "height"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; }, {}, never, never, false, never>;
13
+ }
@@ -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<string | number>;
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,13 @@
1
+ import { type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PageComponent implements OnChanges {
4
+ centerH?: boolean | string | undefined;
5
+ centerV?: boolean | string | undefined;
6
+ dark?: boolean | string | undefined;
7
+ inputCenterH: boolean;
8
+ inputCenterV: boolean;
9
+ inputDark: boolean;
10
+ ngOnChanges(changes: SimpleChanges): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "cf-page", never, { "centerH": { "alias": "centerH"; "required": false; }; "centerV": { "alias": "centerV"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, never, ["*"], false, never>;
13
+ }
@@ -0,0 +1,14 @@
1
+ import { type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import type { SpacerNumberT, SpacerStringT } from '../../interfaces/spacer.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SpacerComponent implements OnChanges {
5
+ default?: SpacerStringT | SpacerNumberT | undefined;
6
+ mobile?: SpacerStringT | SpacerNumberT | undefined;
7
+ desktop?: SpacerStringT | SpacerNumberT | undefined;
8
+ inputDefault: number | undefined;
9
+ inputMobile: number | undefined;
10
+ inputDesktop: number | undefined;
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpacerComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpacerComponent, "cf-spacer", never, { "default": { "alias": "default"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "desktop": { "alias": "desktop"; "required": false; }; }, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,9 @@
1
+ import { type OnChanges, type SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SpinnerComponent implements OnChanges {
4
+ size: number | string;
5
+ inputSize: number;
6
+ ngOnChanges(changes: SimpleChanges): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "cf-spinner", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
9
+ }
@@ -0,0 +1,12 @@
1
+ import { Renderer2, TemplateRef, ViewContainerRef, ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ButtonLoaderDirective {
4
+ private templateRef;
5
+ private renderer;
6
+ private viewContainer;
7
+ private elementRef;
8
+ constructor(templateRef: TemplateRef<HTMLElement>, renderer: Renderer2, viewContainer: ViewContainerRef, elementRef: ElementRef<HTMLElement>);
9
+ set cfButtonLoader(loading: boolean);
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonLoaderDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonLoaderDirective, "[cfButtonLoader]", never, { "cfButtonLoader": { "alias": "cfButtonLoader"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,11 @@
1
+ export interface AlertDataI {
2
+ heading: string;
3
+ message: string;
4
+ alertIdentifier: string | number;
5
+ buttonTrue?: string;
6
+ buttonFalse?: string;
7
+ }
8
+ export interface AlertEventI {
9
+ identifier: string | number;
10
+ status: boolean;
11
+ }
@@ -0,0 +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", "plus"];
2
+ export type IconsT = (typeof iconsC)[number];
3
+ export declare const iconColorC: readonly ["primary", "secondary", "success", "warning", "error", "white", "accent"];
4
+ export type IconColorT = (typeof iconColorC)[number];
@@ -0,0 +1,4 @@
1
+ export interface FormInputSelectOptionsI<T> {
2
+ displayName: string | number;
3
+ value: T;
4
+ }
@@ -0,0 +1,11 @@
1
+ export interface NotificationPayloadI {
2
+ heading: string;
3
+ status: 'success' | 'warning' | 'error';
4
+ message?: string;
5
+ canClose?: true;
6
+ button?: {
7
+ buttonText: string;
8
+ buttonClickIdentifier: string | number;
9
+ buttonHeading?: string;
10
+ };
11
+ }
@@ -0,0 +1,3 @@
1
+ export declare const spacerNumberArray: readonly [4, 8, 12, 16, 24, 32, 38, 48, 72];
2
+ export type SpacerNumberT = (typeof spacerNumberArray)[number];
3
+ export type SpacerStringT = `${SpacerNumberT}`;
@@ -0,0 +1,25 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/page/page.component";
3
+ import * as i2 from "./components/button/button.component";
4
+ import * as i3 from "./components/spacer/spacer.component";
5
+ import * as i4 from "./components/icon/icon.component";
6
+ import * as i5 from "./directives/button-loader.directive";
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 "./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 "./components/chat-bubble/chat-bubble.component";
16
+ import * as i15 from "./components/badge/badge.component";
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";
21
+ export declare class CareFirstLibraryModule {
22
+ 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 ɵinj: i0.ɵɵInjectorDeclaration<CareFirstLibraryModule>;
25
+ }
@@ -0,0 +1,4 @@
1
+ import type { SimpleChanges } from '@angular/core';
2
+ export declare function checkTruthAttribute(changes: SimpleChanges, attribute: string, curVal: boolean): boolean;
3
+ export declare function validateStringValue<T>(changes: SimpleChanges, attribute: string, options: T[], curVal: T | undefined): T | undefined;
4
+ export declare function validateNumberValue(changes: SimpleChanges, attribute: string, curVal: number | undefined): number | undefined;
@@ -0,0 +1,8 @@
1
+ import type { ValidatorFn } from '@angular/forms';
2
+ export declare class CFPFormValidators {
3
+ static compareTo(controlNameToCheckAgainst: string): ValidatorFn;
4
+ static asPassword(): ValidatorFn;
5
+ static asEmail(canBeEmpty?: true): ValidatorFn;
6
+ static isIn(list: (string | number)[]): ValidatorFn;
7
+ static isSAIDNumber(canBeEmpty?: true): ValidatorFn;
8
+ }
package/package.json CHANGED
@@ -1,15 +1,8 @@
1
1
  {
2
2
  "name": "@carefirst/library",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "author": "Jacques Francois Coetzee",
5
5
  "private": false,
6
- "scripts": {
7
- "ng": "ng",
8
- "build": "ng build",
9
- "watch": "ng build --watch --configuration development",
10
- "test": "ng test",
11
- "lint": "ng lint"
12
- },
13
6
  "peerDependencies": {
14
7
  "@angular/common": "^17.x",
15
8
  "@angular/core": "^17.x",
@@ -21,7 +14,17 @@
21
14
  "tslib": "^2.3.0"
22
15
  },
23
16
  "sideEffects": false,
24
- "devDependencies": {
25
- "@ionic/angular": "^7.6.4"
17
+ "module": "fesm2022/carefirst-library.mjs",
18
+ "typings": "index.d.ts",
19
+ "exports": {
20
+ "./package.json": {
21
+ "default": "./package.json"
22
+ },
23
+ ".": {
24
+ "types": "./index.d.ts",
25
+ "esm2022": "./esm2022/carefirst-library.mjs",
26
+ "esm": "./esm2022/carefirst-library.mjs",
27
+ "default": "./fesm2022/carefirst-library.mjs"
28
+ }
26
29
  }
27
- }
30
+ }
@@ -1,23 +1,6 @@
1
- /*
2
- * Public API Surface of library
3
- */
4
-
5
- /*===============================================
6
- ===================== USAGE =====================
7
- Include in global.scss:
8
- - @import '../node_modules/@carefirst/library/public/styles/index.scss';
9
- Add to app module:
10
- - import { CareFirstLibraryModule } from '@carefirst/library';
11
- - Add "CareFirstLibraryModule" to imports
12
- ===============================================*/
13
-
14
- //--- Modules
15
1
  export * from './lib/library.module';
16
- //--- Directives
17
2
  export * from './lib/directives/button-loader.directive';
18
- // --- Utilities
19
3
  export * from './lib/utils/form-validators-utility';
20
- //--- Components
21
4
  export * from './lib/components/alert/alert.component';
22
5
  export * from './lib/components/page/page.component';
23
6
  export * from './lib/components/button/button.component';
@@ -33,7 +16,6 @@ export * from './lib/components/form-input-text-area/form-input-text-area.compon
33
16
  export * from './lib/components/chat-bubble/chat-bubble.component';
34
17
  export * from './lib/components/badge/badge.component';
35
18
  export * from './lib/components/spinner/spinner.component';
36
- //--- Interfaces
37
19
  export * as CFAlertI from './lib/interfaces/alert.interface';
38
20
  export * as CFIconI from './lib/interfaces/icon.interface';
39
21
  export * as CFSpacerI from './lib/interfaces/spacer.interface';
package/.eslintrc.json DELETED
@@ -1,31 +0,0 @@
1
- {
2
- "extends": "../../../.eslintrc.json",
3
- "ignorePatterns": ["!**/*", "node_modules/**/*"],
4
- "overrides": [
5
- {
6
- "files": ["*.ts"],
7
- "rules": {
8
- "@angular-eslint/directive-selector": [
9
- "error",
10
- {
11
- "type": "attribute",
12
- "prefix": "cf",
13
- "style": "camelCase"
14
- }
15
- ],
16
- "@angular-eslint/component-selector": [
17
- "error",
18
- {
19
- "type": "element",
20
- "prefix": "cf",
21
- "style": "kebab-case"
22
- }
23
- ]
24
- }
25
- },
26
- {
27
- "files": ["*.html"],
28
- "rules": {}
29
- }
30
- ]
31
- }
package/ng-package.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../../dist/@carefirst/library",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- },
7
- "assets": ["public/**/*"]
8
- }
File without changes
@@ -1,63 +0,0 @@
1
- //--- Screen size breakpoint
2
- $desktop-breakpoint: 768px; //--- Same as ionic md breakpoint
3
-
4
- ::ng-deep .care-first-alert {
5
- .alert-wrapper {
6
- padding: 1.6rem;
7
- border-radius: 1.6rem;
8
- background-color: var(--cf-app-background-light);
9
-
10
- > * {
11
- text-align: center;
12
- padding: 0;
13
- }
14
- .alert-title {
15
- font-weight: 900;
16
- font-size: 1.8rem;
17
- color: var(--cf-app-text-color-default);
18
- }
19
-
20
- .alert-message {
21
- font-size: 1.4rem;
22
- margin-top: 1.2rem;
23
- color: var(--cf-app-text-color-default);
24
- }
25
-
26
- @media (min-width: $desktop-breakpoint) {
27
- .alert-title {
28
- font-size: 2.8rem;
29
- }
30
-
31
- .alert-message {
32
- font-size: 1.8rem;
33
- }
34
- }
35
-
36
- .alert-button-group {
37
- margin-top: 1.6rem;
38
- display: flex;
39
- justify-content: center;
40
- gap: 4rem;
41
-
42
- @media (min-width: $desktop-breakpoint) {
43
- gap: 2rem;
44
- }
45
- }
46
-
47
- button.alert-button {
48
- font-size: 1.6rem;
49
- padding: 0.6rem 2rem;
50
- margin: 0px;
51
- }
52
-
53
- button.alert-button.alert-button-cancel {
54
- color: var(--cf-app-system-color-error);
55
- }
56
-
57
- button.alert-button.alert-button-confirm {
58
- border-radius: 0.6rem;
59
- background-color: var(--cf-app-color-primary);
60
- color: var(--cf-app-text-color-light);
61
- }
62
- }
63
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { AlertComponent } from './alert.component';
4
-
5
- describe('AlertComponent', () => {
6
- let component: AlertComponent;
7
- let fixture: ComponentFixture<AlertComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [AlertComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(AlertComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });