@carefirst/library 1.3.10 → 1.3.11

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 +87 -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 +885 -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 +30 -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
@@ -0,0 +1,22 @@
1
+ import { Component, Input, Output, EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@ionic/angular";
4
+ import * as i2 from "@angular/common";
5
+ import * as i3 from "../button/button.component";
6
+ import * as i4 from "../spacer/spacer.component";
7
+ import * as i5 from "../icon/icon.component";
8
+ export class NotificationComponent {
9
+ data;
10
+ buttonClick = new EventEmitter();
11
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: NotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
12
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: NotificationComponent, selector: "cf-notification", inputs: { data: "data" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<div *ngIf=\"data\">\n <cf-spacer mobile=\"16\" desktop=\"32\"></cf-spacer>\n <ion-grid>\n <ion-row class=\"ion-justify-content-center\">\n <ion-col size=\"12\" size-md=\"6\">\n <div [ngClass]=\"data.status\" id=\"notification-container\">\n <ion-grid>\n <ion-row>\n <ion-col class=\"ion-align-self-center ion-text-start\">\n <p class=\"body-medium bold\">{{ data.heading }}</p>\n </ion-col>\n <ion-col size=\"auto\">\n <cf-icon icon=\"close\" *ngIf=\"data.canClose\" (click)=\"data = undefined\" [height]=\"10\" [iconColor]=\"data.status\"></cf-icon>\n </ion-col>\n <ion-col *ngIf=\"data.message\" size=\"12\">\n <cf-spacer default=\"8\"></cf-spacer>\n <p class=\"body-small\">{{ data.message }}</p>\n </ion-col>\n <ion-col *ngIf=\"data.button?.buttonHeading\">\n <cf-spacer default=\"8\"></cf-spacer>\n <p class=\"body-medium bold\">{{ data.button?.buttonHeading }}</p>\n </ion-col>\n <ion-col size=\"12\">\n <ng-content></ng-content>\n </ion-col>\n <ion-col size=\"12\" *ngIf=\"data.button\">\n <cf-spacer default=\"8\"></cf-spacer>\n <cf-btn type=\"primary\" fontSize=\"large\" action snug (click)=\"buttonClick.emit(data.button.buttonClickIdentifier)\">{{\n data.button.buttonText\n }}</cf-btn>\n </ion-col>\n </ion-row>\n </ion-grid>\n </div>\n </ion-col>\n </ion-row>\n </ion-grid>\n <cf-spacer mobile=\"16\" desktop=\"32\"></cf-spacer>\n</div>\n", styles: ["#notification-container{border-radius:4px;text-align:start;padding:12px}#notification-container.success{border:1.5px solid var(--cf-app-system-color-success);background-color:var(--cf-app-system-color-light-success)}#notification-container.warning{border:1.5px solid var(--cf-app-system-color-warning);background-color:var(--cf-app-system-color-light-warning)}#notification-container.error{border:1.5px solid var(--cf-app-system-color-error);background-color:var(--cf-app-system-color-light-error)}\n"], dependencies: [{ kind: "component", type: i1.IonCol, selector: "ion-col", inputs: ["offset", "offsetLg", "offsetMd", "offsetSm", "offsetXl", "offsetXs", "pull", "pullLg", "pullMd", "pullSm", "pullXl", "pullXs", "push", "pushLg", "pushMd", "pushSm", "pushXl", "pushXs", "size", "sizeLg", "sizeMd", "sizeSm", "sizeXl", "sizeXs"] }, { kind: "component", type: i1.IonGrid, selector: "ion-grid", inputs: ["fixed"] }, { kind: "component", type: i1.IonRow, selector: "ion-row" }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ButtonComponent, selector: "cf-btn", inputs: ["type", "disabled", "alert", "action", "snug", "fontSize", "iconStart", "iconEnd", "loading", "customColor"] }, { kind: "component", type: i4.SpacerComponent, selector: "cf-spacer", inputs: ["default", "mobile", "desktop"] }, { kind: "component", type: i5.IconComponent, selector: "cf-icon", inputs: ["icon", "height", "iconColor"] }] });
13
+ }
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: NotificationComponent, decorators: [{
15
+ type: Component,
16
+ args: [{ selector: 'cf-notification', template: "<div *ngIf=\"data\">\n <cf-spacer mobile=\"16\" desktop=\"32\"></cf-spacer>\n <ion-grid>\n <ion-row class=\"ion-justify-content-center\">\n <ion-col size=\"12\" size-md=\"6\">\n <div [ngClass]=\"data.status\" id=\"notification-container\">\n <ion-grid>\n <ion-row>\n <ion-col class=\"ion-align-self-center ion-text-start\">\n <p class=\"body-medium bold\">{{ data.heading }}</p>\n </ion-col>\n <ion-col size=\"auto\">\n <cf-icon icon=\"close\" *ngIf=\"data.canClose\" (click)=\"data = undefined\" [height]=\"10\" [iconColor]=\"data.status\"></cf-icon>\n </ion-col>\n <ion-col *ngIf=\"data.message\" size=\"12\">\n <cf-spacer default=\"8\"></cf-spacer>\n <p class=\"body-small\">{{ data.message }}</p>\n </ion-col>\n <ion-col *ngIf=\"data.button?.buttonHeading\">\n <cf-spacer default=\"8\"></cf-spacer>\n <p class=\"body-medium bold\">{{ data.button?.buttonHeading }}</p>\n </ion-col>\n <ion-col size=\"12\">\n <ng-content></ng-content>\n </ion-col>\n <ion-col size=\"12\" *ngIf=\"data.button\">\n <cf-spacer default=\"8\"></cf-spacer>\n <cf-btn type=\"primary\" fontSize=\"large\" action snug (click)=\"buttonClick.emit(data.button.buttonClickIdentifier)\">{{\n data.button.buttonText\n }}</cf-btn>\n </ion-col>\n </ion-row>\n </ion-grid>\n </div>\n </ion-col>\n </ion-row>\n </ion-grid>\n <cf-spacer mobile=\"16\" desktop=\"32\"></cf-spacer>\n</div>\n", styles: ["#notification-container{border-radius:4px;text-align:start;padding:12px}#notification-container.success{border:1.5px solid var(--cf-app-system-color-success);background-color:var(--cf-app-system-color-light-success)}#notification-container.warning{border:1.5px solid var(--cf-app-system-color-warning);background-color:var(--cf-app-system-color-light-warning)}#notification-container.error{border:1.5px solid var(--cf-app-system-color-error);background-color:var(--cf-app-system-color-light-error)}\n"] }]
17
+ }], propDecorators: { data: [{
18
+ type: Input
19
+ }], buttonClick: [{
20
+ type: Output
21
+ }] } });
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhcmVmaXJzdC9saWJyYXJ5L3Ny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jbGFzcz1cImJvZHktbWVkaXVtIGJvbGRcIj57eyBkYXRhLmJ1dHRvbj8uYnV0dG9uSGVhZGluZyB9fTwvcD5cbiAgICAgICAgICAgICAgPC9pb24tY29sPlxuICAgICAgICAgICAgICA8aW9uLWNvbCBzaXplPVwiMTJcIj5cbiAgICAgICAgICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gICAgICAgICAgICAgIDwvaW9uLWNvbD5cbiAgICAgICAgICAgICAgPGlvbi1jb2wgc2l6ZT1cIjEyXCIgKm5nSWY9XCJkYXRhLmJ1dHRvblwiPlxuICAgICAgICAgICAgICAgIDxjZi1zcGFjZXIgZGVmYXVsdD1cIjhcIj48L2NmLXNwYWNlcj5cbiAgICAgICAgICAgICAgICA8Y2YtYnRuIHR5cGU9XCJwcmltYXJ5XCIgZm9udFNpemU9XCJsYXJnZVwiIGFjdGlvbiBzbnVnIChjbGljayk9XCJidXR0b25DbGljay5lbWl0KGRhdGEuYnV0dG9uLmJ1dHRvbkNsaWNrSWRlbnRpZmllcilcIj57e1xuICAgICAgICAgICAgICAgICAgZGF0YS5idXR0b24uYnV0dG9uVGV4dFxuICAgICAgICAgICAgICAgIH19PC9jZi1idG4+XG4gICAgICAgICAgICAgIDwvaW9uLWNvbD5cbiAgICAgICAgICAgIDwvaW9uLXJvdz5cbiAgICAgICAgICA8L2lvbi1ncmlkPlxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvaW9uLWNvbD5cbiAgICA8L2lvbi1yb3c+XG4gIDwvaW9uLWdyaWQ+XG4gIDxjZi1zcGFjZXIgbW9iaWxlPVwiMTZcIiBkZXNrdG9wPVwiMzJcIj48L2NmLXNwYWNlcj5cbjwvZGl2PlxuIl19
@@ -0,0 +1,31 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { checkTruthAttribute } from '../../utils/attribute.util';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@ionic/angular";
5
+ import * as i2 from "@angular/common";
6
+ export class PageComponent {
7
+ centerH;
8
+ centerV;
9
+ dark;
10
+ inputCenterH = false;
11
+ inputCenterV = false;
12
+ inputDark = false;
13
+ ngOnChanges(changes) {
14
+ this.inputCenterH = checkTruthAttribute(changes, 'centerH', this.inputCenterH);
15
+ this.inputCenterV = checkTruthAttribute(changes, 'centerV', this.inputCenterV);
16
+ this.inputDark = checkTruthAttribute(changes, 'dark', this.inputDark);
17
+ }
18
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: PageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: PageComponent, selector: "cf-page", inputs: { centerH: "centerH", centerV: "centerV", dark: "dark" }, usesOnChanges: true, ngImport: i0, template: "<ion-content class=\"ion-page cf-page\" [ngClass]=\"{ 'bg-dark': inputDark }\">\n <div class=\"page\" [ngClass]=\"{ 'center-h': inputCenterH, 'center-v': inputCenterV }\">\n <ng-content></ng-content>\n </div>\n</ion-content>\n", styles: ["ion-content.cf-page::part(scroll){padding-inline:var(--cf-page-inline-padding, 16px);background-color:var(--cf-app-background-light)}ion-content.cf-page.bg-dark::part(scroll){background-color:var(--cf-app-background-dark)}ion-content.cf-page>div.page{height:100%;max-width:var(--cf-page-max-width, 1300px);margin-inline:auto;overflow:hidden}ion-content.cf-page>div.page.center-h,ion-content.cf-page>div.page.center-v{display:flex;flex-direction:column}ion-content.cf-page>div.page.center-h{align-items:center;text-align:center}ion-content.cf-page>div.page.center-v{justify-content:center}\n"], dependencies: [{ kind: "component", type: i1.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
20
+ }
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: PageComponent, decorators: [{
22
+ type: Component,
23
+ args: [{ selector: 'cf-page', template: "<ion-content class=\"ion-page cf-page\" [ngClass]=\"{ 'bg-dark': inputDark }\">\n <div class=\"page\" [ngClass]=\"{ 'center-h': inputCenterH, 'center-v': inputCenterV }\">\n <ng-content></ng-content>\n </div>\n</ion-content>\n", styles: ["ion-content.cf-page::part(scroll){padding-inline:var(--cf-page-inline-padding, 16px);background-color:var(--cf-app-background-light)}ion-content.cf-page.bg-dark::part(scroll){background-color:var(--cf-app-background-dark)}ion-content.cf-page>div.page{height:100%;max-width:var(--cf-page-max-width, 1300px);margin-inline:auto;overflow:hidden}ion-content.cf-page>div.page.center-h,ion-content.cf-page>div.page.center-v{display:flex;flex-direction:column}ion-content.cf-page>div.page.center-h{align-items:center;text-align:center}ion-content.cf-page>div.page.center-v{justify-content:center}\n"] }]
24
+ }], propDecorators: { centerH: [{
25
+ type: Input
26
+ }], centerV: [{
27
+ type: Input
28
+ }], dark: [{
29
+ type: Input
30
+ }] } });
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXJlZmlyc3QvbGlicmFyeS9zcmMvbGliL2NvbXBvbmVudHMvcGFnZS9wYWdlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhcmVmaXJzdC9saWJyYXJ5L3NyYy9saWIvY29tcG9uZW50cy9wYWdlL3BhZ2UuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQXNDLE1BQU0sZUFBZSxDQUFDO0FBQ3JGLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDRCQUE0QixDQUFDOzs7O0FBT2pFLE1BQU0s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tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICogQG5hbWUgICAgICAgICAgbmdPbkNoYW5nZXNcbiAgICogQGRlc2NyaXB0aW9uICAgVXBkYXRlIHZhcmlvdXMgdmFsdWVzIG9uIGlucHV0IGNoYW5nZXNcbiAgICogQHJldHVybnMgICAgICAge3ZvaWR9XG4gICAqL1xuICBuZ09uQ2hhbmdlcyhjaGFuZ2VzOiBTaW1wbGVDaGFuZ2VzKTogdm9pZCB7XG4gICAgLy8tLS0gQ2VudGVyIEhcbiAgICB0aGlzLmlucHV0Q2VudGVySCA9IGNoZWNrVHJ1dGhBdHRyaWJ1dGUoY2hhbmdlcywgJ2NlbnRlckgnLCB0aGlzLmlucHV0Q2VudGVySCk7XG4gICAgLy8tLS0gQ2VudGVyIFZcbiAgICB0aGlzLmlucHV0Q2VudGVyViA9IGNoZWNrVHJ1dGhBdHRyaWJ1dGUoY2hhbmdlcywgJ2NlbnRlclYnLCB0aGlzLmlucHV0Q2VudGVyVik7XG4gICAgLy8tLS0gRGFya1xuICAgIHRoaXMuaW5wdXREYXJrID0gY2hlY2tUcnV0aEF0dHJpYnV0ZShjaGFuZ2VzLCAnZGFyaycsIHRoaXMuaW5wdXREYXJrKTtcbiAgfVxufVxuIiwiPGlvbi1jb250ZW50IGNsYXNzPVwiaW9uLXBhZ2UgY2YtcGFnZVwiIFtuZ0NsYXNzXT1cInsgJ2JnLWRhcmsnOiBpbnB1dERhcmsgfVwiPlxuICA8ZGl2IGNsYXNzPVwicGFnZVwiIFtuZ0NsYXNzXT1cInsgJ2NlbnRlci1oJzogaW5wdXRDZW50ZXJILCAnY2VudGVyLXYnOiBpbnB1dENlbnRlclYgfVwiPlxuICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgPC9kaXY+XG48L2lvbi1jb250ZW50PlxuIl19
@@ -0,0 +1,30 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { validateNumberValue } from '../../utils/attribute.util';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ export class SpacerComponent {
6
+ default;
7
+ mobile;
8
+ desktop;
9
+ inputDefault = undefined;
10
+ inputMobile = undefined;
11
+ inputDesktop = undefined;
12
+ ngOnChanges(changes) {
13
+ this.inputDefault = validateNumberValue(changes, 'default', this.inputDefault);
14
+ this.inputMobile = validateNumberValue(changes, 'mobile', this.inputMobile);
15
+ this.inputDesktop = validateNumberValue(changes, 'desktop', this.inputDesktop);
16
+ }
17
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: SpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: SpacerComponent, selector: "cf-spacer", inputs: { default: "default", mobile: "mobile", desktop: "desktop" }, usesOnChanges: true, ngImport: i0, template: "<!-- Mobile Only OR Default -->\n<div *ngIf=\"inputMobile || inputDefault\" class=\"mobile-only\" [ngStyle]=\"{ height: (inputMobile || inputDefault || 0) + 'px' }\"> </div>\n<!-- Desktop Only OR Default-->\n<div *ngIf=\"inputDesktop || inputDefault\" class=\"desktop-only\" [ngStyle]=\"{ height: (inputDesktop || inputDefault || 0) + 'px' }\"> </div>\n", styles: ["@media not (min-width: 768px){div.mobile-only{display:block}div.desktop-only{display:none}}@media (min-width: 768px){div.mobile-only{display:none}div.desktop-only{display:block}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
19
+ }
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: SpacerComponent, decorators: [{
21
+ type: Component,
22
+ args: [{ selector: 'cf-spacer', template: "<!-- Mobile Only OR Default -->\n<div *ngIf=\"inputMobile || inputDefault\" class=\"mobile-only\" [ngStyle]=\"{ height: (inputMobile || inputDefault || 0) + 'px' }\"> </div>\n<!-- Desktop Only OR Default-->\n<div *ngIf=\"inputDesktop || inputDefault\" class=\"desktop-only\" [ngStyle]=\"{ height: (inputDesktop || inputDefault || 0) + 'px' }\"> </div>\n", styles: ["@media not (min-width: 768px){div.mobile-only{display:block}div.desktop-only{display:none}}@media (min-width: 768px){div.mobile-only{display:none}div.desktop-only{display:block}}\n"] }]
23
+ }], propDecorators: { default: [{
24
+ type: Input
25
+ }], mobile: [{
26
+ type: Input
27
+ }], desktop: [{
28
+ type: Input
29
+ }] } });
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhY2VyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhcmVmaXJzdC9saWJyYXJ5L3NyYy9saWIvY29tcG9uZW50cy9zcGFjZXIvc3BhY2VyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhcmVmaXJzdC9saWJyYXJ5L3NyYy9saWIvY29tcG9uZW50cy9zcGFjZXIvc3BhY2VyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVVBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFzQyxNQUFNLGVBQWUsQ0FBQztBQUNyRixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQzs7O0FBUWpFLE1BQU0sT0FBTyxlQUFlO0lBQ2pCLE9BQU8sQ0FBNkM7SUFDcEQsTUFBTSxDQUE2QztJQUNuRCxPQUFPLENBQTZDO0lBRzdELFlBQVksR0FBdUIsU0FBUyxDQUFDO0lBQzdDLFdBQVcsR0FBdUIsU0FBUyxDQUFDO0lBQzVDLFlBQVksR0FBdUIsU0FBUyxDQUFD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W25nU3R5bGVdPVwieyBoZWlnaHQ6IChpbnB1dERlc2t0b3AgfHwgaW5wdXREZWZhdWx0IHx8IDApICsgJ3B4JyB9XCI+IDwvZGl2PlxuIl19
@@ -0,0 +1,19 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { validateNumberValue } from '../../utils/attribute.util';
3
+ import * as i0 from "@angular/core";
4
+ export class SpinnerComponent {
5
+ size = 20;
6
+ inputSize = 20;
7
+ ngOnChanges(changes) {
8
+ this.inputSize = validateNumberValue(changes, 'size', this.inputSize) || this.inputSize;
9
+ }
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: SpinnerComponent, selector: "cf-spinner", inputs: { size: "size" }, usesOnChanges: true, ngImport: i0, template: "<div id=\"spinner\" [style]=\"'font-size: ' + inputSize + 'px'\"></div>\n", styles: ["#spinner{width:1em;height:1em;border:.15em solid var(--cf-app-system-color-outline);border-radius:50%;border-top-color:var(--cf-app-color-accent);animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}\n"] });
12
+ }
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: SpinnerComponent, decorators: [{
14
+ type: Component,
15
+ args: [{ selector: 'cf-spinner', template: "<div id=\"spinner\" [style]=\"'font-size: ' + inputSize + 'px'\"></div>\n", styles: ["#spinner{width:1em;height:1em;border:.15em solid var(--cf-app-system-color-outline);border-radius:50%;border-top-color:var(--cf-app-color-accent);animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}\n"] }]
16
+ }], propDecorators: { size: [{
17
+ type: Input
18
+ }] } });
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bpbm5lci5jb21wb25lbnQu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vLS0tIFNpemVcbiAgICB0aGlzLmlucHV0U2l6ZSA9IHZhbGlkYXRlTnVtYmVyVmFsdWUoY2hhbmdlcywgJ3NpemUnLCB0aGlzLmlucHV0U2l6ZSkgfHwgdGhpcy5pbnB1dFNpemU7XG4gIH1cbn1cbiIsIjxkaXYgaWQ9XCJzcGlubmVyXCIgW3N0eWxlXT1cIidmb250LXNpemU6ICcgKyBpbnB1dFNpemUgKyAncHgnXCI+PC9kaXY+XG4iXX0=
@@ -0,0 +1,41 @@
1
+ import { Component, Directive, Input, Renderer2, TemplateRef, ViewContainerRef, ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class ButtonLoaderDirective {
4
+ templateRef;
5
+ renderer;
6
+ viewContainer;
7
+ elementRef;
8
+ constructor(templateRef, renderer, viewContainer, elementRef) {
9
+ this.templateRef = templateRef;
10
+ this.renderer = renderer;
11
+ this.viewContainer = viewContainer;
12
+ this.elementRef = elementRef;
13
+ }
14
+ set cfButtonLoader(loading) {
15
+ this.viewContainer.clear();
16
+ this.viewContainer.createEmbeddedView(this.templateRef);
17
+ if (loading) {
18
+ this.viewContainer.createComponent(SpinnerComponent);
19
+ this.renderer.setStyle(this.elementRef.nativeElement.parentElement, 'position', 'relative');
20
+ }
21
+ }
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: ButtonLoaderDirective, deps: [{ token: i0.TemplateRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
23
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.9", type: ButtonLoaderDirective, selector: "[cfButtonLoader]", inputs: { cfButtonLoader: "cfButtonLoader" }, ngImport: i0 });
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: ButtonLoaderDirective, decorators: [{
26
+ type: Directive,
27
+ args: [{
28
+ selector: '[cfButtonLoader]',
29
+ }]
30
+ }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }], propDecorators: { cfButtonLoader: [{
31
+ type: Input
32
+ }] } });
33
+ class SpinnerComponent {
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: SpinnerComponent, selector: "ng-component", ngImport: i0, template: '<div class="loading-spinner"></div>', isInline: true, styles: ["@keyframes spinner{to{transform:rotate(360deg)}}.loading-spinner{position:absolute;top:calc(50% - 1em);left:calc(50% - 1em);width:2em;height:2em;border-radius:50%;border:3px solid var(--cf-app-system-color-outline);border-top-color:var(--cf-app-color-accent);animation:spinner 1s linear infinite}\n"] });
36
+ }
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: SpinnerComponent, decorators: [{
38
+ type: Component,
39
+ args: [{ template: '<div class="loading-spinner"></div>', styles: ["@keyframes spinner{to{transform:rotate(360deg)}}.loading-spinner{position:absolute;top:calc(50% - 1em);left:calc(50% - 1em);width:2em;height:2em;border-radius:50%;border:3px solid var(--cf-app-system-color-outline);border-top-color:var(--cf-app-color-accent);animation:spinner 1s linear infinite}\n"] }]
40
+ }] });
41
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWxvYWRlci5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXJlZmlyc3QvbGlicmFyeS9zcmMvbGliL2RpcmVjdGl2ZXMvYnV0dG9uLWxvYWRlci5kaXJlY3RpdmUudHMiXSwibmFtZXMiO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5lYXIgaW5maW5pdGU7XG4gICAgICB9XG4gICAgYCxcbiAgXSxcbn0pXG5jbGFzcyBTcGlubmVyQ29tcG9uZW50IHt9XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2FyZWZpcnN0L2xpYnJhcnkvc3JjL2xpYi9pbnRlcmZhY2VzL2FsZXJ0LmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuICogQGludGVyZmFjZSAgICAgQWxlcnREYXRhSVxuICogQGRlc2NyaXB0aW9uICAgRGVmaW5lcyB0aGUgcHJvcGVydGllcyBuZWVkZWQgdG8gc2hvdyBhIGNhcmUgZmlyc3QgYWxlcnRcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBBbGVydERhdGFJIHtcbiAgaGVhZGluZzogc3RyaW5nO1xuICBtZXNzYWdlOiBzdHJpbmc7XG4gIGFsZXJ0SWRlbnRpZmllcjogc3RyaW5nIHwgbnVtYmVyO1xuICBidXR0b25UcnVlPzogc3RyaW5nOyAvLy0tLSBEZWZhdWx0IHRvICdPSydcbiAgYnV0dG9uRmFsc2U/OiBzdHJpbmc7IC8vLS0tIERlZmF1bHQgdG8gJ0NhbmNlbCdcbn1cblxuLyoqPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuICogQGludGVyZmFjZSAgICAgQWxlcnRFdmVudElcbiAqIEBkZXNjcmlwdGlvbiAgIERlZmluZXMgdGhlIHN0cnVjdHVyZSBvZiB0aGUgcmV0dXJuZWQgZXZlbnQgZnJvbSB0aGUgYWxlcnQgd2hlbiBhIGJ1dHRvbiBpcyBjbGlja2VkXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgQWxlcnRFdmVudEkge1xuICBpZGVudGlmaWVyOiBzdHJpbmcgfCBudW1iZXI7XG4gIHN0YXR1czogYm9vbGVhbjtcbn1cbiJdfQ==
@@ -0,0 +1,52 @@
1
+ export const iconsC = [
2
+ 'home',
3
+ 'cog',
4
+ 'profile',
5
+ 'scan',
6
+ 'person',
7
+ 'appointment',
8
+ 'clock',
9
+ 'calendar',
10
+ 'email',
11
+ 'phone',
12
+ 'sign-out',
13
+ 'sign-in',
14
+ 'close',
15
+ 'check-mark',
16
+ 'rating-star-blank',
17
+ 'rating-star-filled',
18
+ 'back-arrow',
19
+ 'lock',
20
+ 'show-password',
21
+ 'hide-password',
22
+ 'circle-check',
23
+ 'circle-alert',
24
+ 'direction-switch',
25
+ 'chat-bubbles',
26
+ 'phone-down',
27
+ 'mic',
28
+ 'no-mic',
29
+ 'button-forward-arrow',
30
+ 'button-check-box',
31
+ 'social-media-whatsapp',
32
+ 'social-media-facebook',
33
+ 'social-media-linkedin',
34
+ 'social-media-instagram',
35
+ 'social-media-google-mail',
36
+ 'instant-video-service',
37
+ 'instant-telephonic-service',
38
+ 'scheduled-video-service',
39
+ 'scheduled-telephonic-service',
40
+ 'vital-scan-service',
41
+ 'open-back-arrow',
42
+ 'open-forward-arrow',
43
+ 'open-up-arrow',
44
+ 'open-down-arrow',
45
+ 'single-document',
46
+ 'lightning',
47
+ 'microsoft-365',
48
+ 'user-dependent',
49
+ 'plus',
50
+ ];
51
+ export const iconColorC = ['primary', 'secondary', 'success', 'warning', 'error', 'white', 'accent'];
52
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXJlZm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mZhY2VzL2lucHV0LmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuICogQGludGVyZmFjZSAgICAgRm9ybUlucHV0U2VsZWN0T3B0aW9uc0lcbiAqIEBkZXNjcmlwdGlvbiAgIFN0cnVjdHVyZSBmb3IgdGhlIGlucHV0IHNlbGVjdCBvcHRpb25zXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgRm9ybUlucHV0U2VsZWN0T3B0aW9uc0k8VD4ge1xuICBkaXNwbGF5TmFtZTogc3RyaW5nIHwgbnVtYmVyO1xuICB2YWx1ZTogVDtcbn1cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhcmVmaXJzdC9saWJyYXJ5L3NyYy9saWIvaW50ZXJmYWNlcy9ub3RpZmljYXRpb24uaW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKio9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4gKiBAaW50ZXJmYWNlICAgICBOb3RpZmljYXRpb25QYXlsb2FkSVxuICogQGRlc2NyaXB0aW9uICAgU2V0dXAgbmVlZGVkIHRvIHNob3cgYSBub3RpZmljYXRpb25cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBOb3RpZmljYXRpb25QYXlsb2FkSSB7XG4gIGhlYWRpbmc6IHN0cmluZztcbiAgc3RhdHVzOiAnc3VjY2VzcycgfCAnd2FybmluZycgfCAnZXJyb3In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mlwdGlvbiAgIEF2YWlsYWJsZSBTcGFjZXIgVmFsdWVzXG4gKi9cbmV4cG9ydCBjb25zdCBzcGFjZXJOdW1iZXJBcnJheSA9IFs0LCA4LCAxMiwgMTYsIDI0LCAzMiwgMzgsIDQ4LCA3Ml0gYXMgY29uc3Q7XG5leHBvcnQgdHlwZSBTcGFjZXJOdW1iZXJUID0gKHR5cGVvZiBzcGFjZXJOdW1iZXJBcnJheSlbbnVtYmVyXTtcbmV4cG9ydCB0eXBlIFNwYWNlclN0cmluZ1QgPSBgJHtTcGFjZXJOdW1iZXJUfWA7XG4iXX0=
@@ -0,0 +1,100 @@
1
+ import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { IonicModule } from '@ionic/angular';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import { ButtonLoaderDirective } from './directives/button-loader.directive';
6
+ import { PageComponent } from './components/page/page.component';
7
+ import { ButtonComponent } from './components/button/button.component';
8
+ import { SpacerComponent } from './components/spacer/spacer.component';
9
+ import { IconComponent } from './components/icon/icon.component';
10
+ import { NotificationComponent } from './components/notification/notification.component';
11
+ import { AlertComponent } from './components/alert/alert.component';
12
+ import { LogoComponent } from './components/logo/logo.component';
13
+ import { CalendarComponent } from './components/calendar/calendar.component';
14
+ import { FormValidationComponent } from './components/form-validation/form-validation.component';
15
+ import { FormInputComponent } from './components/form-input/form-input.component';
16
+ import { FormInputSelectComponent } from './components/form-input-select/form-input-select.component';
17
+ import { FormInputTextAreaComponent } from './components/form-input-text-area/form-input-text-area.component';
18
+ import { ChatBubbleComponent } from './components/chat-bubble/chat-bubble.component';
19
+ import { BadgeComponent } from './components/badge/badge.component';
20
+ import { SpinnerComponent } from './components/spinner/spinner.component';
21
+ import * as i0 from "@angular/core";
22
+ export class CareFirstLibraryModule {
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: CareFirstLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
24
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: CareFirstLibraryModule, declarations: [PageComponent,
25
+ ButtonComponent,
26
+ SpacerComponent,
27
+ IconComponent,
28
+ ButtonLoaderDirective,
29
+ NotificationComponent,
30
+ AlertComponent,
31
+ LogoComponent,
32
+ CalendarComponent,
33
+ FormValidationComponent,
34
+ FormInputComponent,
35
+ FormInputSelectComponent,
36
+ FormInputTextAreaComponent,
37
+ ChatBubbleComponent,
38
+ BadgeComponent,
39
+ SpinnerComponent], imports: [IonicModule, CommonModule, ReactiveFormsModule], exports: [PageComponent,
40
+ ButtonComponent,
41
+ SpacerComponent,
42
+ IconComponent,
43
+ ButtonLoaderDirective,
44
+ NotificationComponent,
45
+ AlertComponent,
46
+ LogoComponent,
47
+ CalendarComponent,
48
+ FormValidationComponent,
49
+ FormInputComponent,
50
+ FormInputSelectComponent,
51
+ FormInputTextAreaComponent,
52
+ ChatBubbleComponent,
53
+ BadgeComponent,
54
+ SpinnerComponent] });
55
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: CareFirstLibraryModule, imports: [IonicModule, CommonModule, ReactiveFormsModule] });
56
+ }
57
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: CareFirstLibraryModule, decorators: [{
58
+ type: NgModule,
59
+ args: [{
60
+ declarations: [
61
+ PageComponent,
62
+ ButtonComponent,
63
+ SpacerComponent,
64
+ IconComponent,
65
+ ButtonLoaderDirective,
66
+ NotificationComponent,
67
+ AlertComponent,
68
+ LogoComponent,
69
+ CalendarComponent,
70
+ FormValidationComponent,
71
+ FormInputComponent,
72
+ FormInputSelectComponent,
73
+ FormInputTextAreaComponent,
74
+ ChatBubbleComponent,
75
+ BadgeComponent,
76
+ SpinnerComponent,
77
+ ],
78
+ imports: [IonicModule, CommonModule, ReactiveFormsModule],
79
+ exports: [
80
+ PageComponent,
81
+ ButtonComponent,
82
+ SpacerComponent,
83
+ IconComponent,
84
+ ButtonLoaderDirective,
85
+ NotificationComponent,
86
+ AlertComponent,
87
+ LogoComponent,
88
+ CalendarComponent,
89
+ FormValidationComponent,
90
+ FormInputComponent,
91
+ FormInputSelectComponent,
92
+ FormInputTextAreaComponent,
93
+ ChatBubbleComponent,
94
+ BadgeComponent,
95
+ SpinnerComponent,
96
+ ],
97
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
98
+ }]
99
+ }] });
100
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlicmFyeS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXJlZmlyc3QvbGlicmFyeS9zcmMvbGliL2xpYnJhcnkubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRS9DLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3QyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVyRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQUU3RSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDakUsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQ3ZFLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQUN2RSxPQUFPLEVBQUUs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FRleHRBcmVhQ29tcG9uZW50LFxuICAgIENoYXRCdWJibGVDb21wb25lbnQsXG4gICAgQmFkZ2VDb21wb25lbnQsXG4gICAgU3Bpbm5lckNvbXBvbmVudCxcbiAgXSxcbiAgc2NoZW1hczogW0NVU1RPTV9FTEVNRU5UU19TQ0hFTUFdLFxufSlcbmV4cG9ydCBjbGFzcyBDYXJlRmlyc3RMaWJyYXJ5TW9kdWxlIHt9XG4iXX0=
@@ -0,0 +1,34 @@
1
+ export function checkTruthAttribute(changes, attribute, curVal) {
2
+ if (!(attribute in changes))
3
+ return curVal;
4
+ const valueChanged = changes[attribute]?.currentValue;
5
+ if (typeof valueChanged === 'boolean') {
6
+ return valueChanged;
7
+ }
8
+ else if (typeof valueChanged === 'string' && ['true', ''].includes(valueChanged)) {
9
+ return true;
10
+ }
11
+ return false;
12
+ }
13
+ export function validateStringValue(changes, attribute, options, curVal) {
14
+ if (!(attribute in changes))
15
+ return curVal;
16
+ const valueChanged = changes[attribute]?.currentValue;
17
+ if (valueChanged && options.includes(valueChanged)) {
18
+ return valueChanged;
19
+ }
20
+ return undefined;
21
+ }
22
+ export function validateNumberValue(changes, attribute, curVal) {
23
+ if (!(attribute in changes))
24
+ return curVal;
25
+ const valueChanged = changes[attribute]?.currentValue;
26
+ if (typeof valueChanged === 'number' && valueChanged >= 0) {
27
+ return valueChanged;
28
+ }
29
+ else if (typeof valueChanged === 'string' && +valueChanged >= 0) {
30
+ return +valueChanged;
31
+ }
32
+ return undefined;
33
+ }
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXR0cmlidXRlLnV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXJlZmlyc3QvbGlicmFyeS9zcmMvbGliL3V0aWxzL2F0dHJpYnV0ZS51dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1CQS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BwYXJhbSAgICAgICAgIHtTaW1wbGVDaGFuZ2VzfSBjaGFuZ2VzXG4gKiBAcGFyYW0gICAgICAgICB7c3RyaW5nfSBhdHRyaWJ1dGVcbiAqIEBwYXJhbSAgICAgICAgIHtudW1iZXIgfCB1bmRlZmluZWR9IGN1clZhbFxuICogQHJldHVybnMgICAgICAge251bWJlciB8IHVuZGVmaW5lZH0gUmV0dXJucyBjb3JyZWN0IG51bWJlciB2YWx1ZSBvciB1bmRlZmluZWQgaWYgZWl0aGVyIG5vdCBhdmFpbGFibGUgb3Igbm90IGEgbnVtYmVyXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB2YWxpZGF0ZU51bWJlclZhbHVlKGNoYW5nZXM6IFNpbXBsZUNoYW5nZXMsIGF0dHJpYnV0ZTogc3RyaW5nLCBjdXJWYWw6IG51bWJlciB8IHVuZGVmaW5lZCk6IG51bWJlciB8IHVuZGVmaW5lZCB7XG4gIGlmICghKGF0dHJpYnV0ZSBpbiBjaGFuZ2VzKSkgcmV0dXJuIGN1clZhbDtcbiAgY29uc3QgdmFsdWVDaGFuZ2VkID0gY2hhbmdlc1thdHRyaWJ1dGVdPy5jdXJyZW50VmFsdWU7XG4gIGlmICh0eXBlb2YgdmFsdWVDaGFuZ2VkID09PSAnbnVtYmVyJyAmJiB2YWx1ZUNoYW5nZWQgPj0gMCkge1xuICAgIHJldHVybiB2YWx1ZUNoYW5nZWQ7XG4gIH0gZWxzZSBpZiAodHlwZW9mIHZhbHVlQ2hhbmdlZCA9PT0gJ3N0cmluZycgJiYgK3ZhbHVlQ2hhbmdlZCA+PSAwKSB7XG4gICAgcmV0dXJuICt2YWx1ZUNoYW5nZWQ7XG4gIH1cbiAgcmV0dXJuIHVuZGVmaW5lZDtcbn1cbiJdfQ==
@@ -0,0 +1,113 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ import passwordValidator from 'password-validator';
3
+ import dayjs from 'dayjs';
4
+ import customParseFormat from 'dayjs/plugin/customParseFormat';
5
+ dayjs.extend(customParseFormat);
6
+ export class CFPFormValidators {
7
+ static compareTo(controlNameToCheckAgainst) {
8
+ return (control) => {
9
+ const controlToCheckTo = control?.parent?.get(controlNameToCheckAgainst) || null;
10
+ if (!controlToCheckTo?.value)
11
+ return { errorMessage: `Password Required` };
12
+ else if (!control.value)
13
+ return { errorMessage: `Password confirmation required` };
14
+ else if (control.value && control?.value !== controlToCheckTo?.value)
15
+ return { errorMessage: `Passwords do not match` };
16
+ return null;
17
+ };
18
+ }
19
+ static asPassword() {
20
+ return (control) => {
21
+ const schema = new passwordValidator();
22
+ schema
23
+ .is()
24
+ .min(8, 'Minimum of 8 characters')
25
+ .is()
26
+ .max(30, 'Maximum of 30 characters')
27
+ .has()
28
+ .uppercase(undefined, 'At least one UPPERCASE character')
29
+ .has()
30
+ .lowercase(undefined, 'At least one lowercase character')
31
+ .has()
32
+ .digits(undefined, 'At least one digit')
33
+ .has()
34
+ .symbols(undefined, 'At least one special character');
35
+ const inValid = schema.validate(control.value, { details: true });
36
+ const returnResponse = {};
37
+ inValid.forEach((error) => {
38
+ returnResponse['password-' + error.validation] = error.message;
39
+ });
40
+ return inValid.length ? returnResponse : null;
41
+ };
42
+ }
43
+ static asEmail(canBeEmpty) {
44
+ return (control) => {
45
+ let setErrors = null;
46
+ const emailRegEx = new RegExp('^[\\w-.]+@[\\w]+\\.[\\w]+');
47
+ if (canBeEmpty && (control.value === null || control.value === '')) {
48
+ return null;
49
+ }
50
+ if (!(control.value && emailRegEx.test(control.value))) {
51
+ setErrors = { errorMessage: `Not a valid email address` };
52
+ }
53
+ return setErrors;
54
+ };
55
+ }
56
+ static isIn(list) {
57
+ return (control) => {
58
+ if (!list.includes(control.value))
59
+ return { errorMessage: 'Control value not part of eligible values' };
60
+ return null;
61
+ };
62
+ }
63
+ static isSAIDNumber(canBeEmpty) {
64
+ return (control) => {
65
+ const validateDate = () => {
66
+ if (typeof control.value !== 'string' || control.value.length < 6)
67
+ return false;
68
+ const month = control.value.slice(2, 4);
69
+ const day = control.value.slice(4, 6);
70
+ if (+month < 0 && +month > 13)
71
+ return false;
72
+ if (+day < 0 && +day > 31)
73
+ return false;
74
+ if (!dayjs(control.value.slice(0, 6), 'YYMMDD', true).isValid())
75
+ return false;
76
+ return true;
77
+ };
78
+ const checksum = () => {
79
+ if (typeof control.value !== 'string' || control.value.length !== 13)
80
+ return false;
81
+ let nSum = 0;
82
+ let isSecond = false;
83
+ for (let i = control.value.length - 1; i >= 0; i--) {
84
+ const val = control.value[i];
85
+ if (!val)
86
+ return false;
87
+ let d = val.charCodeAt(0) - '0'.charCodeAt(0);
88
+ if (isSecond == true)
89
+ d = d * 2;
90
+ nSum += Math.floor(d / 10);
91
+ nSum += d % 10;
92
+ isSecond = !isSecond;
93
+ }
94
+ return nSum % 10 == 0;
95
+ };
96
+ let error = null;
97
+ if (canBeEmpty && (!control.value || control.value?.length === 0))
98
+ return null;
99
+ else if (typeof control.value !== 'string')
100
+ error = 'Invalid RSA ID Number';
101
+ else if (control.value.length !== 13)
102
+ error = `Length required: ${13 - control.value.length}`;
103
+ else if (!validateDate())
104
+ error = `Invalid date of birth`;
105
+ else if (!['0', '1'].includes(control.value.slice(10, 11)))
106
+ error = `Invalid citizenship value`;
107
+ else if (!checksum())
108
+ error = `Invalid RSA ID number checksum`;
109
+ return error ? { errorMessage: error } : null;
110
+ };
111
+ }
112
+ }
113
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS12YWxpZGF0b3JzLXV0aWxpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXJlZmlyc3QvbGlicmFyeS9zcmMvbGliL3V0aWxzL2Zvcm0tdmFsaWRhdG9ycy11dGlsaXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVVBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxnQkFBZ0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