@ohioepa/oepa-ui-lib 1.2.1 → 1.2.3
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/common-forms.module.mjs +2 -2
- package/esm2022/lib/oepa-account/{account-service.mjs → account.service.mjs} +1 -1
- package/esm2022/lib/util/oepa-custom-encoder.mjs +15 -0
- package/esm2022/lib/util/oepa-http-interceptor.mjs +64 -0
- package/esm2022/public-api.mjs +8 -1
- package/fesm2022/ohioepa-oepa-ui-lib.mjs +76 -4
- package/fesm2022/ohioepa-oepa-ui-lib.mjs.map +1 -1
- package/lib/util/oepa-custom-encoder.d.ts +7 -0
- package/lib/util/oepa-http-interceptor.d.ts +21 -0
- package/ohioepa-oepa-ui-lib-1.2.3.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
- package/ohioepa-oepa-ui-lib-1.2.1.tgz +0 -0
- /package/lib/oepa-account/{account-service.d.ts → account.service.d.ts} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpParameterCodec } from "@angular/common/http";
|
|
2
|
+
export declare class CustomEncoder implements HttpParameterCodec {
|
|
3
|
+
encodeKey(key: string): string;
|
|
4
|
+
encodeValue(value: string): string;
|
|
5
|
+
decodeKey(key: string): string;
|
|
6
|
+
decodeValue(value: string): string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
3
|
+
import { OepaUserAccountService } from '../oepa-user-account/oepa-user-account.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class OepaHttpInterceptor implements HttpInterceptor {
|
|
6
|
+
private userAccountService;
|
|
7
|
+
readonly defaultTimeout: number;
|
|
8
|
+
constructor(userAccountService: OepaUserAccountService);
|
|
9
|
+
/**
|
|
10
|
+
* Add a timestamp as a query parameter to all http requests
|
|
11
|
+
* @param req
|
|
12
|
+
* @param next
|
|
13
|
+
*/
|
|
14
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
15
|
+
/**
|
|
16
|
+
* Shorten error message in the event of a JSON parse error
|
|
17
|
+
*/
|
|
18
|
+
private shortenErrorMessage;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OepaHttpInterceptor, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OepaHttpInterceptor>;
|
|
21
|
+
}
|
|
Binary file
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -108,4 +108,11 @@ export * from './lib/table/oepa-table-cell-icon-classname.pipe';
|
|
|
108
108
|
export * from './lib/table/oepa-table-cell-img-src.pipe';
|
|
109
109
|
export * from './lib/zip-code/zip-code.component';
|
|
110
110
|
export * from './lib/oepa-forms.service';
|
|
111
|
+
export * from './lib/oepa-file-utils/oepa-file-util.service';
|
|
112
|
+
export * from './lib/oepa-user-account/oepa-user-account.service';
|
|
113
|
+
export * from './lib/parameter/parameter';
|
|
114
|
+
export * from './lib/parameter/parameter.service';
|
|
115
|
+
export * from './lib/oepa-account/account.service';
|
|
111
116
|
export * from './lib/oepa-images';
|
|
117
|
+
export * from './lib/util/oepa-custom-encoder';
|
|
118
|
+
export * from './lib/util/oepa-http-interceptor';
|
|
Binary file
|
|
File without changes
|