@ohioepa/oepa-ui-lib 1.2.0 → 1.2.1

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.
Files changed (57) hide show
  1. package/esm2022/lib/account-search-input/account-search-input.component.mjs +9 -17
  2. package/esm2022/lib/account-search-input/account-search.service.mjs +31 -0
  3. package/esm2022/lib/account-search-modal/account-search-modal.component.mjs +8 -16
  4. package/esm2022/lib/address/oepa-address.service.mjs +11 -5
  5. package/esm2022/lib/common-forms.module.mjs +36 -1
  6. package/esm2022/lib/edoc-attachment/edoc-attachment.component.mjs +9 -8
  7. package/esm2022/lib/edoc-attachment/edoc-attachment.service.mjs +11 -5
  8. package/esm2022/lib/entity/entity.service.mjs +11 -5
  9. package/esm2022/lib/file-upload/file-upload.component.mjs +8 -7
  10. package/esm2022/lib/lynx-image-upload/lynx-image-upload.component.mjs +7 -6
  11. package/esm2022/lib/lynx-image-upload/lynx.service.mjs +11 -5
  12. package/esm2022/lib/multi-file-upload/multi-file-upload.component.mjs +8 -7
  13. package/esm2022/lib/oepa-account/account-service.mjs +62 -0
  14. package/esm2022/lib/oepa-file-utils/oepa-file-util.service.mjs +227 -0
  15. package/esm2022/lib/oepa-reference/oepa-reference.service.mjs +47 -0
  16. package/esm2022/lib/oepa-user-account/oepa-user-account.service.mjs +304 -0
  17. package/esm2022/lib/parameter/parameter.service.mjs +11 -5
  18. package/esm2022/lib/params-help-button/params-help-button.component.mjs +8 -8
  19. package/esm2022/lib/params-help-button/params-help.service.mjs +26 -0
  20. package/esm2022/lib/pin-modal/oepa-pin.service.mjs +11 -5
  21. package/esm2022/lib/pin-modal/pin-modal.component.mjs +2 -2
  22. package/esm2022/lib/server-timeout-modal/server-timeout-modal.component.mjs +2 -2
  23. package/esm2022/lib/shopping-cart/shopping-cart.service.mjs +11 -5
  24. package/esm2022/lib/table/p-table/p-table.component.mjs +9 -8
  25. package/esm2022/lib/table/table-export.service.mjs +14 -5
  26. package/esm2022/lib/table/table.component.mjs +13 -12
  27. package/fesm2022/ohioepa-oepa-ui-lib.mjs +886 -155
  28. package/fesm2022/ohioepa-oepa-ui-lib.mjs.map +1 -1
  29. package/lib/account-search-input/account-search-input.component.d.ts +3 -4
  30. package/lib/account-search-input/account-search.service.d.ts +12 -0
  31. package/lib/account-search-modal/account-search-modal.component.d.ts +3 -5
  32. package/lib/address/oepa-address.service.d.ts +2 -1
  33. package/lib/common-forms.module.d.ts +2 -0
  34. package/lib/edoc-attachment/edoc-attachment.component.d.ts +2 -1
  35. package/lib/edoc-attachment/edoc-attachment.service.d.ts +2 -1
  36. package/lib/entity/entity.service.d.ts +2 -1
  37. package/lib/file-upload/file-upload.component.d.ts +2 -1
  38. package/lib/lynx-image-upload/lynx-image-upload.component.d.ts +2 -1
  39. package/lib/lynx-image-upload/lynx.service.d.ts +2 -1
  40. package/lib/multi-file-upload/multi-file-upload.component.d.ts +2 -1
  41. package/lib/oepa-account/account-service.d.ts +23 -0
  42. package/lib/oepa-file-utils/oepa-file-util.service.d.ts +53 -0
  43. package/lib/oepa-reference/oepa-reference.service.d.ts +26 -0
  44. package/lib/oepa-user-account/oepa-user-account.service.d.ts +122 -0
  45. package/lib/parameter/parameter.service.d.ts +2 -1
  46. package/lib/params-help-button/params-help-button.component.d.ts +3 -3
  47. package/lib/params-help-button/params-help.service.d.ts +11 -0
  48. package/lib/pin-modal/oepa-pin.service.d.ts +2 -1
  49. package/lib/pin-modal/pin-modal.component.d.ts +2 -1
  50. package/lib/server-timeout-modal/server-timeout-modal.component.d.ts +1 -1
  51. package/lib/shopping-cart/shopping-cart.service.d.ts +2 -1
  52. package/lib/table/p-table/p-table.component.d.ts +2 -1
  53. package/lib/table/table-export.service.d.ts +2 -1
  54. package/lib/table/table.component.d.ts +1 -1
  55. package/ohioepa-oepa-ui-lib-1.2.1.tgz +0 -0
  56. package/package.json +1 -1
  57. package/ohioepa-oepa-ui-lib-1.2.0.tgz +0 -0
@@ -1,16 +1,16 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
- import { HttpClient } from '@angular/common/http';
3
2
  import { TypeaheadMatch } from 'ngx-bootstrap/typeahead';
4
3
  import { FormGroup } from '@angular/forms';
5
4
  import { Observable } from 'rxjs';
6
5
  import { BsModalService } from 'ngx-bootstrap/modal';
7
6
  import { OepaComponentIdService } from '@ohioepa/oepa-common-lib';
8
7
  import { Account } from '@ohioepa/oepa-ebiz-lib';
8
+ import { AccountSearchService } from './account-search.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class AccountSearchInputComponent implements OnInit {
11
11
  private idService;
12
12
  private modalService;
13
- private http;
13
+ private accountSearchService;
14
14
  nameSearch: string;
15
15
  nameSource: Observable<Account[]>;
16
16
  componentId: string;
@@ -24,12 +24,11 @@ export declare class AccountSearchInputComponent implements OnInit {
24
24
  errorMessageAddendum: string;
25
25
  rowLayout: boolean;
26
26
  accountSelected: EventEmitter<Account>;
27
- constructor(idService: OepaComponentIdService, modalService: BsModalService, http: HttpClient);
27
+ constructor(idService: OepaComponentIdService, modalService: BsModalService, accountSearchService: AccountSearchService);
28
28
  ngOnInit(): void;
29
29
  onAccountSelect(e: TypeaheadMatch): void;
30
30
  private loadAccountInForm;
31
31
  private searchAccounts;
32
- searchAccountsFromDB(filter: Account): Observable<Account[]>;
33
32
  advancedSearch(): void;
34
33
  static ɵfac: i0.ɵɵFactoryDeclaration<AccountSearchInputComponent, never>;
35
34
  static ɵcmp: i0.ɵɵComponentDeclaration<AccountSearchInputComponent, "oepa-account-search-input", never, { "group": { "alias": "group"; "required": false; }; "userID": { "alias": "userID"; "required": false; }; "field": { "alias": "field"; "required": false; }; "title": { "alias": "title"; "required": false; }; "searchURL": { "alias": "searchURL"; "required": false; }; "errorMessageAddendum": { "alias": "errorMessageAddendum"; "required": false; }; "rowLayout": { "alias": "rowLayout"; "required": false; }; }, { "accountSelected": "accountSelected"; }, never, never, false, never>;
@@ -0,0 +1,12 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Account } from '@ohioepa/oepa-ebiz-lib';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AccountSearchService {
6
+ private http;
7
+ private ebizRootURL;
8
+ constructor(http: HttpClient, ebizRootURL: string);
9
+ searchAccountsFromDB(searchURL: string, filter: Account): Observable<Account[]>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountSearchService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<AccountSearchService>;
12
+ }
@@ -4,14 +4,13 @@ import { BsModalRef } from 'ngx-bootstrap/modal';
4
4
  import { OepaTableRow } from '../table/oepa-table-row';
5
5
  import { OepaTableHeader } from '../table/oepa-table-header';
6
6
  import { OepaTableConfig } from '../table/oepa-table-config';
7
- import { Observable } from 'rxjs';
8
- import { HttpClient } from '@angular/common/http';
9
7
  import { Account } from '@ohioepa/oepa-ebiz-lib';
8
+ import { AccountSearchService } from '../account-search-input/account-search.service';
10
9
  import * as i0 from "@angular/core";
11
10
  export declare class AccountSearchModalComponent implements OnInit {
12
11
  private fb;
13
12
  bsModalRef: BsModalRef;
14
- private http;
13
+ private accountSearchService;
15
14
  modalFormGroup: FormGroup;
16
15
  errorMessage: string | undefined;
17
16
  inProgressMsg: string | undefined;
@@ -23,7 +22,7 @@ export declare class AccountSearchModalComponent implements OnInit {
23
22
  tableConfig: OepaTableConfig;
24
23
  searchURL: string;
25
24
  onAccountSelected: EventEmitter<Account>;
26
- constructor(fb: FormBuilder, bsModalRef: BsModalRef, http: HttpClient);
25
+ constructor(fb: FormBuilder, bsModalRef: BsModalRef, accountSearchService: AccountSearchService);
27
26
  ngOnInit(): void;
28
27
  private createForm;
29
28
  private getFilterFromForm;
@@ -34,7 +33,6 @@ export declare class AccountSearchModalComponent implements OnInit {
34
33
  resetSearch(): void;
35
34
  onRowSelect(event: any): void;
36
35
  save(): void;
37
- searchAccountsFromDB(filter: Account): Observable<Account[]>;
38
36
  static ɵfac: i0.ɵɵFactoryDeclaration<AccountSearchModalComponent, never>;
39
37
  static ɵcmp: i0.ɵɵComponentDeclaration<AccountSearchModalComponent, "oepa-account-search-modal", never, { "searchURL": { "alias": "searchURL"; "required": false; }; }, { "onAccountSelected": "onAccountSelected"; }, never, never, false, never>;
40
38
  }
@@ -6,10 +6,11 @@ import * as i0 from "@angular/core";
6
6
  */
7
7
  export declare class OepaAddressService {
8
8
  private http;
9
+ private ebizRootURL;
9
10
  private states;
10
11
  private countries;
11
12
  private statesUrl;
12
- constructor(http: HttpClient);
13
+ constructor(http: HttpClient, ebizRootURL: string);
13
14
  /**
14
15
  * Retrieve the list of applicable states. If no states have been provided
15
16
  * via the <code>setStates()</code> method, the list of states will be retrieved
@@ -1,3 +1,4 @@
1
+ import { ModuleWithProviders } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
3
  import * as i1 from "./account-search-input/account-search-input.component";
3
4
  import * as i2 from "./account-search-modal/account-search-modal.component";
@@ -86,6 +87,7 @@ import * as i84 from "primeng/table";
86
87
  import * as i85 from "@ohioepa/oepa-common-lib";
87
88
  import * as i86 from "ngx-mask";
88
89
  export declare class CommonFormsModule {
90
+ static forRoot(ebizRootURL: string): ModuleWithProviders<CommonFormsModule>;
89
91
  static ɵfac: i0.ɵɵFactoryDeclaration<CommonFormsModule, never>;
90
92
  static ɵmod: i0.ɵɵNgModuleDeclaration<CommonFormsModule, [typeof i1.AccountSearchInputComponent, typeof i2.AccountSearchModalComponent, typeof i3.ActionBtnComponent, typeof i4.ActionBtnModalComponent, typeof i5.AddressComponent, typeof i6.ZipCodeComponent, typeof i7.ArrayFilterPipe, typeof i7.ArraySortPipe, typeof i8.CheckboxComponent, typeof i9.CheckboxInputComponent, typeof i10.CommentModalComponent, typeof i11.ConfirmationModalComponent, typeof i12.ContactComponent, typeof i13.PhoneNumberComponent, typeof i14.DateInputComponent, typeof i15.DatepickerComponent, typeof i16.DaterangepickerComponent, typeof i17.DateInputModalComponent, typeof i18.DualListBoxComponent, typeof i19.EbizAddressComponent, typeof i20.EdocAttachmentComponent, typeof i21.LynxImageUploadComponent, typeof i22.FileUploadComponent, typeof i23.MultiFileUploadComponent, typeof i24.MessageComponent, typeof i25.MessageListComponent, typeof i26.TableComponent, typeof i27.PTableComponent, typeof i28.TableDataCellComponent, typeof i29.TableHeaderCellComponent, typeof i30.OepaTableSortingDirective, typeof i31.OepaTableFilteringDirective, typeof i32.NumericInputDirective, typeof i33.OepaTableCellInnerHtmlPipe, typeof i34.OepaTableCellColSpanPipe, typeof i35.OepaTableCellValuePipe, typeof i36.OepaTableCellClassnamePipe, typeof i37.OepaTableCellIconClassnamePipe, typeof i38.OepaTableCellImgSrcPipe, typeof i39.OepaTableCellNotSelectablePipe, typeof i40.OepaTableCellHiddenPipe, typeof i41.OepaTableCellInputComponentPipe, typeof i42.OEPAErrorMessageComponent, typeof i43.OEPAWaitMessageComponent, typeof i44.OrganizationCreateModalComponent, typeof i45.OrganizationSearchInputComponent, typeof i46.OrganizationSearchModalComponent, typeof i47.NotesModalComponent, typeof i48.NumericInputComponent, typeof i49.ParamsHelpButtonComponent, typeof i50.PersonCreateModalComponent, typeof i51.PersonSearchInputComponent, typeof i52.PersonSearchModalComponent, typeof i53.PinModalComponent, typeof i54.PlaceCreateModalComponent, typeof i55.PlaceSearchInputComponent, typeof i56.PlaceSearchModalComponent, typeof i57.SelectInputComponent, typeof i58.ServerTimeoutModalComponent, typeof i59.ShoppingCartViewComponent, typeof i60.ShoppingCartSummaryComponent, typeof i61.StartEndTimepickerComponent, typeof i62.TemplateConfirmationModalComponent, typeof i63.TextAreaInputComponent, typeof i64.TextInputComponent, typeof i65.TimeoutModalComponent, typeof i66.TimepickerComponent, typeof i67.YesNoComponent, typeof i68.YesNoBooleanComponent, typeof i69.YesNoOtherInputComponent], [typeof i70.CommonModule, typeof i71.FormsModule, typeof i71.ReactiveFormsModule, typeof i72.ButtonsModule, typeof i73.BsDatepickerModule, typeof i74.TimepickerModule, typeof i75.PaginationModule, typeof i76.PopoverModule, typeof i77.TooltipModule, typeof i78.BsDropdownModule, typeof i79.ModalModule, typeof i80.TypeaheadModule, typeof i81.AccordionModule, typeof i82.CollapseModule, typeof i83.TabsModule, typeof i84.TableModule, typeof i85.CommonLibModule, typeof i86.NgxMaskDirective, typeof i86.NgxMaskPipe], [typeof i1.AccountSearchInputComponent, typeof i2.AccountSearchModalComponent, typeof i3.ActionBtnComponent, typeof i4.ActionBtnModalComponent, typeof i5.AddressComponent, typeof i6.ZipCodeComponent, typeof i7.ArrayFilterPipe, typeof i7.ArraySortPipe, typeof i8.CheckboxComponent, typeof i10.CommentModalComponent, typeof i11.ConfirmationModalComponent, typeof i12.ContactComponent, typeof i13.PhoneNumberComponent, typeof i15.DatepickerComponent, typeof i16.DaterangepickerComponent, typeof i17.DateInputModalComponent, typeof i18.DualListBoxComponent, typeof i19.EbizAddressComponent, typeof i20.EdocAttachmentComponent, typeof i21.LynxImageUploadComponent, typeof i22.FileUploadComponent, typeof i23.MultiFileUploadComponent, typeof i24.MessageComponent, typeof i25.MessageListComponent, typeof i26.TableComponent, typeof i27.PTableComponent, typeof i30.OepaTableSortingDirective, typeof i31.OepaTableFilteringDirective, typeof i32.NumericInputDirective, typeof i33.OepaTableCellInnerHtmlPipe, typeof i34.OepaTableCellColSpanPipe, typeof i35.OepaTableCellValuePipe, typeof i36.OepaTableCellClassnamePipe, typeof i37.OepaTableCellIconClassnamePipe, typeof i38.OepaTableCellImgSrcPipe, typeof i42.OEPAErrorMessageComponent, typeof i43.OEPAWaitMessageComponent, typeof i44.OrganizationCreateModalComponent, typeof i45.OrganizationSearchInputComponent, typeof i46.OrganizationSearchModalComponent, typeof i47.NotesModalComponent, typeof i49.ParamsHelpButtonComponent, typeof i50.PersonCreateModalComponent, typeof i51.PersonSearchInputComponent, typeof i52.PersonSearchModalComponent, typeof i53.PinModalComponent, typeof i54.PlaceCreateModalComponent, typeof i55.PlaceSearchInputComponent, typeof i56.PlaceSearchModalComponent, typeof i58.ServerTimeoutModalComponent, typeof i59.ShoppingCartViewComponent, typeof i60.ShoppingCartSummaryComponent, typeof i61.StartEndTimepickerComponent, typeof i62.TemplateConfirmationModalComponent, typeof i63.TextAreaInputComponent, typeof i65.TimeoutModalComponent, typeof i66.TimepickerComponent, typeof i67.YesNoComponent, typeof i68.YesNoBooleanComponent, typeof i69.YesNoOtherInputComponent]>;
91
93
  static ɵinj: i0.ɵɵInjectorDeclaration<CommonFormsModule>;
@@ -1,10 +1,11 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { EDocumentAttachment } from './edocument-attachment';
4
- import { OepaComponentIdService, OepaFileUtilService } from '@ohioepa/oepa-common-lib';
4
+ import { OepaComponentIdService } from '@ohioepa/oepa-common-lib';
5
5
  import { EdocAttachmentService } from './edoc-attachment.service';
6
6
  import { BsModalService } from 'ngx-bootstrap/modal';
7
7
  import { Subject } from 'rxjs';
8
+ import { OepaFileUtilService } from '../oepa-file-utils/oepa-file-util.service';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class EdocAttachmentComponent implements OnInit {
10
11
  private idService;
@@ -5,8 +5,9 @@ import { StringResponse } from '@ohioepa/oepa-ebiz-lib';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class EdocAttachmentService {
7
7
  private http;
8
+ private ebizRootURL;
8
9
  private fileUtilUrl;
9
- constructor(http: HttpClient);
10
+ constructor(http: HttpClient, ebizRootURL: string);
10
11
  createEDocAttachment(eDocAttachment: EDocumentAttachment): Observable<StringResponse>;
11
12
  deleteEDocAttachment(eDocAttachmentID: string): Observable<any>;
12
13
  retrieveEDocAttachment(eDocAttachmentID: string): Observable<EDocumentAttachment>;
@@ -10,8 +10,9 @@ import { OEPAPlace } from '@ohioepa/oepa-ebiz-lib';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class EntityService {
12
12
  private http;
13
+ private ebizRootURL;
13
14
  private entityURL;
14
- constructor(http: HttpClient);
15
+ constructor(http: HttpClient, ebizRootURL: string);
15
16
  searchPersons(filter: OEPAPersonFilter): Observable<OEPAPerson[]>;
16
17
  matchPersons(filter: OEPAPersonFilter): Observable<OEPAPerson[]>;
17
18
  createPerson(person: OEPAPerson): Observable<string>;
@@ -1,7 +1,8 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { BsModalService } from 'ngx-bootstrap/modal';
4
- import { OepaAttachment, OepaParserReport, OepaFileUtilService, OepaComponentIdService } from '@ohioepa/oepa-common-lib';
4
+ import { OepaAttachment, OepaParserReport, OepaComponentIdService } from '@ohioepa/oepa-common-lib';
5
+ import { OepaFileUtilService } from '../oepa-file-utils/oepa-file-util.service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class FileUploadComponent implements OnInit {
7
8
  private idService;
@@ -1,8 +1,9 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { BsModalService } from 'ngx-bootstrap/modal';
4
- import { OepaFileUtilService, OepaComponentIdService } from '@ohioepa/oepa-common-lib';
4
+ import { OepaComponentIdService } from '@ohioepa/oepa-common-lib';
5
5
  import { LynxAttachment } from '@ohioepa/oepa-ebiz-lib';
6
+ import { OepaFileUtilService } from '../oepa-file-utils/oepa-file-util.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class LynxImageUploadComponent implements OnInit {
8
9
  private idService;
@@ -4,8 +4,9 @@ import { LynxProject, LynxUploadResult, LynxProjectMetadata, LynxImageMetadata,
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class LynxService {
6
6
  private http;
7
+ private ebizRootURL;
7
8
  lynxUrl: string;
8
- constructor(http: HttpClient);
9
+ constructor(http: HttpClient, ebizRootURL: string);
9
10
  retrieveProjects(): Observable<Array<LynxProject>>;
10
11
  retrieveProjectMetadata(projectID: string): Observable<LynxProjectMetadata>;
11
12
  storeImage(attachment: LynxAttachment, projectID: string): Observable<LynxUploadResult>;
@@ -1,7 +1,8 @@
1
1
  import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { BsModalService } from 'ngx-bootstrap/modal';
4
- import { OepaAttachment, OepaParserReport, OepaFileUtilService, OepaComponentIdService } from '@ohioepa/oepa-common-lib';
4
+ import { OepaAttachment, OepaParserReport, OepaComponentIdService } from '@ohioepa/oepa-common-lib';
5
+ import { OepaFileUtilService } from '../oepa-file-utils/oepa-file-util.service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class MultiFileUploadComponent implements OnInit, OnChanges {
7
8
  private idService;
@@ -0,0 +1,23 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Account, AccountSearch, AccountServiceBlock, Role, Service, Attestation } from '@ohioepa/oepa-ebiz-lib';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AccountService {
5
+ protected http: HttpClient;
6
+ private ebizRootURL;
7
+ private URL;
8
+ constructor(http: HttpClient, ebizRootURL: string);
9
+ retrieveRolesForService(serviceName: string): import("rxjs").Observable<Role[]>;
10
+ retrieveUsersForService(serviceName: string): import("rxjs").Observable<Account[]>;
11
+ searchAccounts(criteria: AccountSearch): import("rxjs").Observable<Account[]>;
12
+ retrieveServicesByServiceType(serviceType: string): import("rxjs").Observable<Service[]>;
13
+ retrieveServiceNamesByServiceType(serviceType: string): import("rxjs").Observable<string[]>;
14
+ retrieveAllServices(): import("rxjs").Observable<any[]>;
15
+ retrieveService(name: string): import("rxjs").Observable<Service>;
16
+ retrieveAttestationByType(type: string): import("rxjs").Observable<Attestation>;
17
+ updateServiceStatus(service: Service): import("rxjs").Observable<Account[]>;
18
+ searchAccountServiceAllows(criteria: AccountServiceBlock): import("rxjs").Observable<Account[]>;
19
+ createAccountServiceAllow(accountServiceAllow: AccountServiceBlock): import("rxjs").Observable<Object>;
20
+ deleteAccountServiceAllow(accountServiceAllow: AccountServiceBlock): import("rxjs").Observable<Object>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
23
+ }
@@ -0,0 +1,53 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { OepaAttachment } from '@ohioepa/oepa-common-lib';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Collection of methods for uploading/downloading and displaying files.
7
+ */
8
+ export declare class OepaFileUtilService {
9
+ private http;
10
+ private ebizRootURL;
11
+ private uploadUrl;
12
+ private fileUtilUrl;
13
+ private downloadUrl;
14
+ constructor(http: HttpClient, ebizRootURL: string);
15
+ /**
16
+ * Return a single OepaAttachment object from the contents of file.
17
+ * The file will have been saved on the server if this method succeeds.
18
+ * @param file
19
+ */
20
+ uploadFile(file: File): Observable<OepaAttachment>;
21
+ /**
22
+ * Download an attachment from the server. The location and systemFileName
23
+ * attributes of the attachment must be set and represent a valid file
24
+ * on the file system.
25
+ * @param attachment
26
+ */
27
+ downloadAttachment(attachment: OepaAttachment): Observable<any>;
28
+ /**
29
+ * Open the file represented by data in the browser.
30
+ * @param data binary file data.
31
+ * @param mimeType the file's mime type.
32
+ * @param fileName optional name for the downloaded file.
33
+ */
34
+ downloadFile(data: any, mimeType: string, fileName?: string): void;
35
+ /**
36
+ * Utility method for downloading a file with a specific name.
37
+ * @param url
38
+ * @param fileName
39
+ */
40
+ private downLoadFileWithFileName;
41
+ /**
42
+ * Helper method to see if current browser is internet explorer
43
+ */
44
+ browserIsIE(): boolean;
45
+ /**
46
+ * Determine the mime time for fileName (based on its extension).
47
+ * @param fileName
48
+ */
49
+ mimeTypeForFile(fileName: string): string;
50
+ mimeTypeForExtension(extension: string): string;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<OepaFileUtilService, never>;
52
+ static ɵprov: i0.ɵɵInjectableDeclaration<OepaFileUtilService>;
53
+ }
@@ -0,0 +1,26 @@
1
+ import { Observable } from 'rxjs';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { OEPAReference } from '@ohioepa/oepa-common-lib';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OepaReferenceService {
6
+ private http;
7
+ private ebizRootURL;
8
+ private countiesUrl;
9
+ private districtsUrl;
10
+ private doLaaTypessUrl;
11
+ constructor(http: HttpClient, ebizRootURL: string);
12
+ /**
13
+ * Retrieve counties
14
+ */
15
+ getCounties(state: string): Observable<Array<OEPAReference>>;
16
+ /**
17
+ * Retrieve districts
18
+ */
19
+ getDistricts(): Observable<Array<OEPAReference>>;
20
+ /**
21
+ * Retrieve DO/LAAs
22
+ */
23
+ getDoLaaTypes(): Observable<Array<OEPAReference>>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<OepaReferenceService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<OepaReferenceService>;
26
+ }
@@ -0,0 +1,122 @@
1
+ import { Observable } from 'rxjs';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { OepaUserAccount, ProgramPrivilege, ProgramPrivilegeRequest, Delegation } from '@ohioepa/oepa-common-lib';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * OepaUserAccountService - A collection of methods for accessing and manipulating user accounts.
7
+ */
8
+ export declare class OepaUserAccountService {
9
+ private http;
10
+ private ebizRootURL;
11
+ private hostUrl;
12
+ private accountsUrl;
13
+ private ebizAccountsUrl;
14
+ private ebizSessionUrl;
15
+ private account;
16
+ private personID;
17
+ private sessionID;
18
+ private webappsRootURL;
19
+ private logoutPath;
20
+ private idleTimerRunning;
21
+ private idleTime;
22
+ private idleThreshold;
23
+ private idleSubject;
24
+ private timeoutID;
25
+ constructor(http: HttpClient, ebizRootURL: string);
26
+ /**
27
+ * Retrieve the User Account for the user userid.
28
+ * @param userid
29
+ */
30
+ retrieveAccountForUser(userid: string): Observable<OepaUserAccount>;
31
+ /**
32
+ * Retrieve the user account for the currently logged in user.
33
+ * @returns Observable<OepaUserAccount>
34
+ */
35
+ retrieveAccountForCurrentUser(): Observable<OepaUserAccount>;
36
+ /**
37
+ * Redirect to logout screen if user is not found
38
+ */
39
+ redirectToLogout(msg?: string): void;
40
+ /**
41
+ * Retrieve the user account for the currently logged in user.
42
+ * @param sessionID person ID for internal user
43
+ * @returns Observable<OepaUserAccount>
44
+ */
45
+ retrieveAccountForInternalSession(personID: string, sessionID: string): Observable<OepaUserAccount>;
46
+ /**
47
+ * Determine whether account has the role roleName.
48
+ * @param account
49
+ * @param roleName
50
+ */
51
+ accountHasRole(account: OepaUserAccount, roleName: string): boolean;
52
+ private getRoleList;
53
+ /**
54
+ * Determine whether account has the privilege privilegeType.
55
+ * @param account
56
+ * @param privilegeType
57
+ */
58
+ accountHasPrivilege(account: OepaUserAccount, privilegeType: string): boolean;
59
+ getPrivilegeList(account: OepaUserAccount): Array<string>;
60
+ /**
61
+ * Retrieve the userAccount of the current user. The retrieveAccountForCurrentUser method
62
+ * must be invoked prior to invoking this method.
63
+ */
64
+ getCurrentUserAccount(): OepaUserAccount;
65
+ /**
66
+ * ===========================================================================================================================
67
+ * EBIZ METHODS:
68
+ * The methods below currently apply only to eBiz.
69
+ * ===========================================================================================================================
70
+ */
71
+ getWebappsRootURL(): Observable<string>;
72
+ /**
73
+ * Return array of ProgramPrivileges matching programPrivilegeRequest.
74
+ * @param programPrivilegeRequest
75
+ * @returns Observable<Array<ProgramPrivilege>>
76
+ */
77
+ searchPrivileges(programPrivilegeRequest: ProgramPrivilegeRequest, altUserID?: string): Observable<Array<ProgramPrivilege>>;
78
+ /**
79
+ * Create a new ProgramPrivilege based on contents of ProgramPrivilegeRequest.
80
+ * @param programPrivilegeRequest
81
+ * @returns Observable<ProgramPrivilege?
82
+ */
83
+ createProgramPrivilege(programPrivilegeRequest: ProgramPrivilegeRequest, altUserID?: string): Observable<ProgramPrivilege>;
84
+ /**
85
+ * Delete the ProgramPrivilege identified by programPrivilegeID.
86
+ * @param programPrivilegeID
87
+ * @returns Observable<void>
88
+ */
89
+ deleteProgramPrivilege(programPrivilegeID: string, altUserID?: string): Observable<string>;
90
+ /**
91
+ * Delegate a program privilege based on information in delegation.
92
+ * @param delegation
93
+ * @returns Observable<void>
94
+ */
95
+ delegateProgramPrivilege(delegation: Delegation, altUserID?: string): Observable<string>;
96
+ /**
97
+ * ===========================================================================================================================
98
+ * Helper METHODS:
99
+ * ===========================================================================================================================
100
+ */
101
+ /**
102
+ * Set the user account to be used for "live reload mode"
103
+ * @param userAccount
104
+ */
105
+ setLiveReloadUser(userAccount: OepaUserAccount): Observable<OepaUserAccount>;
106
+ /**
107
+ * Stores the given user in the eBiz session.
108
+ * @param accountUserID
109
+ */
110
+ storeUserInSession(accountUserID: string): Observable<OepaUserAccount>;
111
+ /**
112
+ * See if the current user should be allowed to see "demo" capabilities
113
+ */
114
+ demoCapabilitiesAllowed(): boolean;
115
+ startIdleTimer(threshold?: number): void;
116
+ resetIdleTime(): void;
117
+ private checkTimeout;
118
+ getIdleTimeout(): Observable<number>;
119
+ logMessageOnServer(message?: string): Observable<any>;
120
+ static ɵfac: i0.ɵɵFactoryDeclaration<OepaUserAccountService, never>;
121
+ static ɵprov: i0.ɵɵInjectableDeclaration<OepaUserAccountService>;
122
+ }
@@ -4,8 +4,9 @@ import { Parameter } from './parameter';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ParameterService {
6
6
  protected http: HttpClient;
7
+ private ebizRootURL;
7
8
  protected baseUrl: string;
8
- constructor(http: HttpClient);
9
+ constructor(http: HttpClient, ebizRootURL: string);
9
10
  retrieveParameterByName(parameterName: string): Observable<Parameter>;
10
11
  retrieveParameterByID(parameterID: string): Observable<Parameter>;
11
12
  createParameter(parameter: Parameter): Observable<string>;
@@ -1,14 +1,14 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
- import { HttpClient } from '@angular/common/http';
3
+ import { ParamsHelpService } from './params-help.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ParamsHelpButtonComponent implements OnInit {
6
6
  private router;
7
- private http;
7
+ private helpService;
8
8
  helpURL: string;
9
9
  title: string;
10
10
  anchorClass: string;
11
- constructor(router: Router, http: HttpClient);
11
+ constructor(router: Router, helpService: ParamsHelpService);
12
12
  ngOnInit(): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ParamsHelpButtonComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<ParamsHelpButtonComponent, "oepa-params-help-button", never, { "title": { "alias": "title"; "required": false; }; "anchorClass": { "alias": "anchorClass"; "required": false; }; }, {}, never, never, false, never>;
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ParamsHelpService {
5
+ private http;
6
+ private baseURL;
7
+ constructor(http: HttpClient, ebizRootURL: string);
8
+ retrieveHelpURL(helpURLParamName: string): Observable<string>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ParamsHelpService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ParamsHelpService>;
11
+ }
@@ -6,8 +6,9 @@ import { OepaPin } from './oepa-pin';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class OepaPinService {
8
8
  private http;
9
+ private ebizRootURL;
9
10
  private pinsUrl;
10
- constructor(http: HttpClient);
11
+ constructor(http: HttpClient, ebizRootURL: string);
11
12
  /**
12
13
  * Retrieve an attestation by id.
13
14
  * @param attestationID
@@ -2,10 +2,11 @@ import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { Observable } from 'rxjs';
4
4
  import { BsModalRef } from 'ngx-bootstrap/modal';
5
- import { OepaUserAccountService, OepaUserAccount } from '@ohioepa/oepa-common-lib';
5
+ import { OepaUserAccount } from '@ohioepa/oepa-common-lib';
6
6
  import { OepaAttestation } from './oepa-attestation';
7
7
  import { OepaSecurityQuestion } from './oepa-security-question';
8
8
  import { OepaPinService } from './oepa-pin.service';
9
+ import { OepaUserAccountService } from '../oepa-user-account/oepa-user-account.service';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class PinModalComponent implements OnInit {
11
12
  private userAccountService;
@@ -1,6 +1,6 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
- import { OepaUserAccountService } from '@ohioepa/oepa-common-lib';
3
2
  import { BsModalRef } from 'ngx-bootstrap/modal';
3
+ import { OepaUserAccountService } from '../oepa-user-account/oepa-user-account.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ServerTimeoutModalComponent implements OnInit {
6
6
  private userAccountService;
@@ -4,8 +4,9 @@ import { ShoppingCart, ShoppingCartItem } from '@ohioepa/oepa-ebiz-lib';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ShoppingCartService {
6
6
  private http;
7
+ private ebizRootURL;
7
8
  private paymentUrl;
8
- constructor(http: HttpClient);
9
+ constructor(http: HttpClient, ebizRootURL: string);
9
10
  /**
10
11
  * Retrieve a shopping cart for the current user for the provided serviceName.
11
12
  * @param serviceName
@@ -9,7 +9,7 @@ import { OepaTablePageInfo } from '../oepa-table-page-info';
9
9
  import { OepaTableCellClickEvent } from '../oepa-table-cell-click-event';
10
10
  import { OepaActionEvent } from '../../action-btn/oepa-action-event';
11
11
  import { TableExportService } from '../table-export.service';
12
- import { OepaFileUtilService, OepaTemplateInfo } from '@ohioepa/oepa-common-lib';
12
+ import { OepaTemplateInfo } from '@ohioepa/oepa-common-lib';
13
13
  import { TableService } from '../table.service';
14
14
  import { OepaTableSortCriterion } from '../oepa-table-sort-criterion';
15
15
  import { PageChangedEvent } from 'ngx-bootstrap/pagination';
@@ -17,6 +17,7 @@ import { OepaPColumn } from '../oepa-p-column';
17
17
  import { TableDataCellClickEvent } from '../table-data-cell/table-data-cell-click-event';
18
18
  import { Subject } from 'rxjs';
19
19
  import { OepaTableFilter } from '../oepa-table-filter';
20
+ import { OepaFileUtilService } from '../../oepa-file-utils/oepa-file-util.service';
20
21
  import * as i0 from "@angular/core";
21
22
  export declare class PTableComponent implements OnInit, AfterViewChecked {
22
23
  private sanitizer;
@@ -5,11 +5,12 @@ import { OepaTableConfig } from './oepa-table-config';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class TableExportService {
7
7
  private http;
8
+ private ebizRootURL;
8
9
  private downloadHTMLUrl;
9
10
  private downloadExcelUrl;
10
11
  private downloadDummyHTMLUrl;
11
12
  private downloadDummyExcelUrl;
12
- constructor(http: HttpClient);
13
+ constructor(http: HttpClient, ebizRootURL: string);
13
14
  /**
14
15
  * Return a string representing the contents of table as HTML.
15
16
  * @param table
@@ -10,11 +10,11 @@ import { OepaTablePageInfo } from './oepa-table-page-info';
10
10
  import { OepaTableCellClickEvent } from './oepa-table-cell-click-event';
11
11
  import { OepaActionEvent } from '../action-btn/oepa-action-event';
12
12
  import { TableExportService } from './table-export.service';
13
- import { OepaFileUtilService } from '@ohioepa/oepa-common-lib';
14
13
  import { OepaTemplateInfo } from '@ohioepa/oepa-common-lib';
15
14
  import { TableService } from './table.service';
16
15
  import { OepaTableSortCriterion } from './oepa-table-sort-criterion';
17
16
  import { PageChangedEvent } from 'ngx-bootstrap/pagination';
17
+ import { OepaFileUtilService } from '../oepa-file-utils/oepa-file-util.service';
18
18
  import * as i0 from "@angular/core";
19
19
  export declare class TableComponent implements OnInit {
20
20
  private sanitizer;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohioepa/oepa-ui-lib",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13"
Binary file