@byuhbll/components 4.0.0-alpha.27 → 4.0.0-alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { FormBuilder } from '@angular/forms';
3
+ export interface ContactPayload {
4
+ email?: string;
5
+ message: string;
6
+ name?: string;
7
+ status?: '' | 'Undergraduate' | 'Graduate' | 'Faculty' | 'Staff' | 'Library Employee' | 'Other';
8
+ }
9
+ export declare const createContactForm: (fb: FormBuilder) => import("@angular/forms").FormGroup<{
10
+ name: import("@angular/forms").FormControl<string>;
11
+ email: import("@angular/forms").FormControl<string>;
12
+ message: import("@angular/forms").FormControl<string>;
13
+ status: import("@angular/forms").FormControl<"" | "Other" | "Undergraduate" | "Graduate" | "Faculty" | "Staff" | "Library Employee" | undefined>;
14
+ }>;
15
+ export declare const submitEmail: (payload: ContactPayload, http: HttpClient, apiBaseUrl: string) => import("rxjs").Observable<unknown>;
16
+ export declare const submitFeedback: (payload: ContactPayload, http: HttpClient, apiBaseUrl: string) => import("rxjs").Observable<unknown>;
@@ -1,16 +1,14 @@
1
+ import { ContactPayload } from '../contact-utils';
1
2
  import * as i0 from "@angular/core";
2
- export interface Email {
3
- email: string;
4
- message: string;
5
- name: string;
6
- status: string;
7
- }
8
3
  export declare class HbllFooterComponent {
9
4
  private readonly fb;
10
5
  private readonly http;
11
6
  mainsitebaseurl: string;
12
7
  libraryapibaseuri: string;
13
- set emailtext(text: string);
8
+ set emailname(name: string);
9
+ set emailemail(email: string);
10
+ set emailmessage(message: string);
11
+ set emailstatus(status: ContactPayload['status']);
14
12
  protected date: Date;
15
13
  protected isSubmitted: boolean;
16
14
  protected isLoading: boolean;
@@ -19,11 +17,11 @@ export declare class HbllFooterComponent {
19
17
  protected emailForm: import("@angular/forms").FormGroup<{
20
18
  name: import("@angular/forms").FormControl<string>;
21
19
  email: import("@angular/forms").FormControl<string>;
22
- comment: import("@angular/forms").FormControl<string>;
23
- status: import("@angular/forms").FormControl<string>;
20
+ message: import("@angular/forms").FormControl<string>;
21
+ status: import("@angular/forms").FormControl<"" | "Other" | "Undergraduate" | "Graduate" | "Faculty" | "Staff" | "Library Employee" | undefined>;
24
22
  }>;
25
23
  protected sendEmail: () => void;
26
24
  protected handleClose: () => void;
27
25
  static ɵfac: i0.ɵɵFactoryDeclaration<HbllFooterComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<HbllFooterComponent, "lib-hbll-footer", never, { "mainsitebaseurl": { "alias": "mainsitebaseurl"; "required": false; }; "libraryapibaseuri": { "alias": "libraryapibaseuri"; "required": false; }; "emailtext": { "alias": "emailtext"; "required": false; }; }, {}, never, never, true, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<HbllFooterComponent, "lib-hbll-footer", never, { "mainsitebaseurl": { "alias": "mainsitebaseurl"; "required": false; }; "libraryapibaseuri": { "alias": "libraryapibaseuri"; "required": false; }; "emailname": { "alias": "emailname"; "required": false; }; "emailemail": { "alias": "emailemail"; "required": false; }; "emailmessage": { "alias": "emailmessage"; "required": false; }; "emailstatus": { "alias": "emailstatus"; "required": false; }; }, {}, never, never, true, never>;
29
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byuhbll/components",
3
- "version": "4.0.0-alpha.27",
3
+ "version": "4.0.0-alpha.29",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0"
@@ -1,6 +1,7 @@
1
1
  * {
2
2
  box-sizing: border-box;
3
3
  text-decoration: none;
4
+ font-size: 1em;
4
5
  &:not(.material-symbols-outlined) {
5
6
  font-family: inherit;
6
7
  }