@carefirst/library 1.0.10 → 1.2.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.
- package/esm2022/lib/components/alert/alert.component.mjs +54 -0
- package/esm2022/lib/components/button/button.component.mjs +3 -3
- package/esm2022/lib/components/calendar/calendar.component.mjs +25 -0
- package/esm2022/lib/components/form-input/form-input.component.mjs +73 -0
- package/esm2022/lib/components/form-input-select/form-input-select.component.mjs +43 -0
- package/esm2022/lib/components/form-input-text-area/form-input-text-area.component.mjs +51 -0
- package/esm2022/lib/components/form-validation/form-validation.component.mjs +20 -0
- package/esm2022/lib/components/logo/logo.component.mjs +18 -0
- package/esm2022/lib/components/notification/notification.component.mjs +22 -0
- package/esm2022/lib/interfaces/alert.interface.mjs +2 -0
- package/esm2022/lib/interfaces/notification.interface.mjs +2 -0
- package/esm2022/lib/library.module.mjs +67 -6
- package/esm2022/public-api.mjs +13 -1
- package/fesm2022/carefirst-library.mjs +350 -13
- package/fesm2022/carefirst-library.mjs.map +1 -1
- package/lib/components/alert/alert.component.d.ts +14 -0
- package/lib/components/calendar/calendar.component.d.ts +11 -0
- package/lib/components/form-input/form-input.component.d.ts +27 -0
- package/lib/components/form-input-select/form-input-select.component.d.ts +19 -0
- package/lib/components/form-input-text-area/form-input-text-area.component.d.ts +20 -0
- package/lib/components/form-validation/form-validation.component.d.ts +9 -0
- package/lib/components/logo/logo.component.d.ts +7 -0
- package/lib/components/notification/notification.component.d.ts +9 -0
- package/lib/interfaces/alert.interface.d.ts +6 -0
- package/lib/interfaces/notification.interface.d.ts +10 -0
- package/lib/library.module.d.ts +12 -3
- package/package.json +1 -1
- package/public/styles/forms.scss +10 -0
- package/public-api.d.ts +12 -0
@@ -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,27 @@
|
|
1
|
+
import { type OnChanges, type SimpleChanges, EventEmitter } from '@angular/core';
|
2
|
+
import { FormControl } from '@angular/forms';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class FormInputComponent implements OnChanges {
|
5
|
+
label: string;
|
6
|
+
disabled?: boolean | string | undefined;
|
7
|
+
labelPlacement?: 'fixed' | 'floating' | 'stacked';
|
8
|
+
inputMode?: 'email' | 'numeric' | 'tel' | 'decimal' | 'url' | 'search' | 'none';
|
9
|
+
autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
10
|
+
type?: 'number' | 'date' | 'text';
|
11
|
+
noClearButton?: boolean | string | undefined;
|
12
|
+
control?: FormControl | null;
|
13
|
+
textCenter?: boolean | string | undefined;
|
14
|
+
min?: number | string;
|
15
|
+
max?: number | string;
|
16
|
+
value: EventEmitter<any>;
|
17
|
+
inputLabelPlacement: typeof this.labelPlacement;
|
18
|
+
localInputMode: typeof this.inputMode;
|
19
|
+
inputClear: boolean;
|
20
|
+
inputDisabled: boolean;
|
21
|
+
inputTextCenter: boolean;
|
22
|
+
inputType: typeof this.type;
|
23
|
+
inputAutoCapitalize: typeof this.autoCapitalize;
|
24
|
+
ngOnChanges(changes: SimpleChanges): void;
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, never>;
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "cf-form-input", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "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; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "value": "value"; }, never, never, false, never>;
|
27
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { EventEmitter, type OnChanges, type SimpleChanges } from '@angular/core';
|
2
|
+
import { FormControl } from '@angular/forms';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class FormInputSelectComponent implements OnChanges {
|
5
|
+
label: string;
|
6
|
+
options: {
|
7
|
+
displayName: string | number;
|
8
|
+
value: string | number | boolean | null | undefined;
|
9
|
+
}[];
|
10
|
+
disabled?: boolean | string | undefined;
|
11
|
+
labelPlacement?: 'fixed' | 'floating' | 'stacked';
|
12
|
+
control?: FormControl | null;
|
13
|
+
value: EventEmitter<any>;
|
14
|
+
inputLabelPlacement: typeof this.labelPlacement;
|
15
|
+
inputDisabled: boolean;
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputSelectComponent, never>;
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputSelectComponent, "cf-form-input-select", never, { "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, { "value": "value"; }, never, never, false, never>;
|
19
|
+
}
|
@@ -0,0 +1,20 @@
|
|
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
|
+
export declare class FormInputTextAreaComponent implements OnChanges {
|
5
|
+
label: string;
|
6
|
+
disabled?: boolean | string | undefined;
|
7
|
+
labelPlacement?: 'fixed' | 'floating' | 'stacked';
|
8
|
+
autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
9
|
+
control?: FormControl | null;
|
10
|
+
textCenter?: boolean | string | undefined;
|
11
|
+
value: EventEmitter<any>;
|
12
|
+
inputLabelPlacement: typeof this.labelPlacement;
|
13
|
+
inputClear: boolean;
|
14
|
+
inputDisabled: boolean;
|
15
|
+
inputTextCenter: boolean;
|
16
|
+
inputAutoCapitalize: typeof this.autoCapitalize;
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputTextAreaComponent, never>;
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputTextAreaComponent, "cf-form-input-text-area", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; "control": { "alias": "control"; "required": false; }; "textCenter": { "alias": "textCenter"; "required": false; }; }, { "value": "value"; }, never, never, false, never>;
|
20
|
+
}
|
@@ -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,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
|
+
}
|
package/lib/library.module.d.ts
CHANGED
@@ -4,10 +4,19 @@ 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 "
|
8
|
-
import * as i7 from "
|
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 "@ionic/angular";
|
16
|
+
import * as i15 from "@angular/common";
|
17
|
+
import * as i16 from "@angular/forms";
|
9
18
|
export declare class CareFirstLibraryModule {
|
10
19
|
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
|
20
|
+
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.IonicModule, typeof i15.CommonModule, typeof i16.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]>;
|
12
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<CareFirstLibraryModule>;
|
13
22
|
}
|
package/package.json
CHANGED
package/public/styles/forms.scss
CHANGED
@@ -26,6 +26,16 @@ ion-radio {
|
|
26
26
|
}
|
27
27
|
}
|
28
28
|
|
29
|
+
ion-input.text-center,
|
30
|
+
ion-textarea.text-center,
|
31
|
+
ion-select.text-center,
|
32
|
+
ion-radio.text-center {
|
33
|
+
text-align: center;
|
34
|
+
label {
|
35
|
+
text-align: center;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
29
39
|
/*===============================================
|
30
40
|
================ Select Popovers ================
|
31
41
|
===============================================*/
|
package/public-api.d.ts
CHANGED
@@ -1,6 +1,18 @@
|
|
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 * from './lib/components/form-input/form-input.component';
|
13
|
+
export * from './lib/components/form-input-select/form-input-select.component';
|
14
|
+
export * from './lib/components/form-input-text-area/form-input-text-area.component';
|
15
|
+
export * as CFAlertI from './lib/interfaces/alert.interface';
|
16
|
+
export * as CFIconI from './lib/interfaces/icon.interface';
|
17
|
+
export * as CFSpacerI from './lib/interfaces/spacer.interface';
|
18
|
+
export * as CFNotificationI from './lib/interfaces/notification.interface';
|