@anglr/common 23.0.0-beta.20250926125408 → 23.0.0-beta.20250926130712
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/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js +34 -21
- package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
- package/es2022/src/types/tokens.js.map +1 -1
- package/package.json +1 -1
- package/src/modules/progressIndicator/interceptors/progressInterceptor.d.ts +12 -5
- package/src/modules/progressIndicator/interceptors/progressInterceptor.d.ts.map +1 -1
- package/src/types/tokens.d.ts +2 -2
- package/src/types/tokens.d.ts.map +1 -1
- package/version.bak +1 -1
|
@@ -1,18 +1,44 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
1
|
+
import { Injectable, inject, Injector, runInInjectionContext } from '@angular/core';
|
|
2
2
|
import { HttpEventType, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
3
3
|
import { tap } from 'rxjs';
|
|
4
4
|
import { ProgressIndicatorService } from '../services/progressIndicator.service';
|
|
5
5
|
import { PROGRESS_INDICATOR_GROUP_NAME } from '../misc/tokens';
|
|
6
6
|
import { IGNORED_INTERCEPTORS } from '../../../types/tokens';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Progress interceptor used for intercepting http requests and displaying progress indicatior
|
|
10
|
+
* @param req - Request to be intercepted
|
|
11
|
+
* @param next - Next function for passing request to next interceptor
|
|
12
|
+
*/
|
|
13
|
+
export function progressInterceptor(req, next) {
|
|
14
|
+
const indicatorSvc = inject(ProgressIndicatorService);
|
|
15
|
+
return next(req)
|
|
16
|
+
.pipe(tap({
|
|
17
|
+
next: event => {
|
|
18
|
+
//interceptor is ignored
|
|
19
|
+
if (req.context.get(IGNORED_INTERCEPTORS).some(itm => itm == ProgressInterceptor || itm == progressInterceptor)) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
//request started
|
|
23
|
+
if (event.type == HttpEventType.Sent) {
|
|
24
|
+
indicatorSvc.showProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME));
|
|
25
|
+
}
|
|
26
|
+
//response received
|
|
27
|
+
else if (event.type == HttpEventType.Response) {
|
|
28
|
+
indicatorSvc.hideProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME));
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
error: () => indicatorSvc.hideProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME)),
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
9
34
|
/**
|
|
10
35
|
* ProgressInterceptor used for intercepting http requests and displaying progress indicatior
|
|
36
|
+
* @deprecated - Use new `progressInterceptor` function instead
|
|
11
37
|
*/
|
|
12
38
|
export class ProgressInterceptor {
|
|
13
39
|
//######################### constructors #########################
|
|
14
|
-
constructor(
|
|
15
|
-
this.
|
|
40
|
+
constructor(_injector) {
|
|
41
|
+
this._injector = _injector;
|
|
16
42
|
}
|
|
17
43
|
//######################### public methods - implementation of HttpInterceptor #########################
|
|
18
44
|
/**
|
|
@@ -21,30 +47,17 @@ export class ProgressInterceptor {
|
|
|
21
47
|
* @param next - Next middleware that can be called for next processing
|
|
22
48
|
*/
|
|
23
49
|
intercept(req, next) {
|
|
24
|
-
return next.handle(
|
|
25
|
-
.pipe(tap(event => {
|
|
26
|
-
//interceptor is ignored
|
|
27
|
-
if (req.context.get(IGNORED_INTERCEPTORS).some(itm => itm == ProgressInterceptor)) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
//request started
|
|
31
|
-
if (event.type == HttpEventType.Sent) {
|
|
32
|
-
this._indicatorSvc.showProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME));
|
|
33
|
-
}
|
|
34
|
-
//response received
|
|
35
|
-
else if (event.type == HttpEventType.Response) {
|
|
36
|
-
this._indicatorSvc.hideProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME));
|
|
37
|
-
}
|
|
38
|
-
}, () => this._indicatorSvc.hideProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME))));
|
|
50
|
+
return runInInjectionContext(this._injector, () => progressInterceptor(req, next.handle.bind(next)));
|
|
39
51
|
}
|
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProgressInterceptor, deps: [{ token:
|
|
52
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProgressInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
41
53
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProgressInterceptor }); }
|
|
42
54
|
}
|
|
43
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProgressInterceptor, decorators: [{
|
|
44
56
|
type: Injectable
|
|
45
|
-
}], ctorParameters: () => [{ type:
|
|
57
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
46
58
|
/**
|
|
47
59
|
* Progress interceptor provider
|
|
60
|
+
* @deprecated - Use new `progressInterceptor` function instead
|
|
48
61
|
*/
|
|
49
62
|
export const PROGRESS_INTERCEPTOR_PROVIDER = {
|
|
50
63
|
provide: HTTP_INTERCEPTORS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progressInterceptor.js","sourceRoot":"","sources":["../../../../../src/modules/progressIndicator/interceptors/progressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"progressInterceptor.js","sourceRoot":"","sources":["../../../../../src/modules/progressIndicator/interceptors/progressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAiB,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAC,MAAM,eAAe,CA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C,CAAC;AAChB,CAAC;AAED;;;GAGG;AAEH,MAAM,OAAO,mBAAmB;IAE5B,kEAAkE;IAClE,YAAoB,SAAmB;QAAnB,cAAS,GAAT,SAAS,CAAU;IAEvC,CAAC;IAED,wGAAwG;IAExG;;;;OAIG;IACI,SAAS,CAAC,GAAyB,EAAE,IAAiB;QAEzD,OAAO,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACzG,CAAC;8GAjBQ,mBAAmB;kHAAnB,mBAAmB;;2FAAnB,mBAAmB;kBAD/B,UAAU;;AAqBX;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAC1C;IACI,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,mBAAmB;IAC7B,KAAK,EAAE,IAAI;CACd,CAAC","sourcesContent":["import {Injectable, ClassProvider, inject, Injector, runInInjectionContext} from '@angular/core';\nimport {HttpEvent, HttpInterceptor, HttpHandler, HttpEventType, HTTP_INTERCEPTORS, HttpRequest, HttpHandlerFn} from '@angular/common/http';\nimport {Observable, tap} from 'rxjs';\n\nimport {ProgressIndicatorService} from '../services/progressIndicator.service';\nimport {PROGRESS_INDICATOR_GROUP_NAME} from '../misc/tokens';\nimport {IGNORED_INTERCEPTORS} from '../../../types/tokens';\n\n/**\n * Progress interceptor used for intercepting http requests and displaying progress indicatior\n * @param req - Request to be intercepted\n * @param next - Next function for passing request to next interceptor\n */\nexport function progressInterceptor(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>\n{\n const indicatorSvc = inject(ProgressIndicatorService);\n\n return next(req)\n .pipe(tap(\n {\n next: event =>\n {\n //interceptor is ignored\n if(req.context.get(IGNORED_INTERCEPTORS).some(itm => itm == ProgressInterceptor || itm == progressInterceptor))\n {\n return;\n }\n\n //request started\n if(event.type == HttpEventType.Sent)\n {\n indicatorSvc.showProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME));\n }\n //response received\n else if(event.type == HttpEventType.Response)\n {\n indicatorSvc.hideProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME));\n }\n },\n error: () => indicatorSvc.hideProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME)),\n }));\n}\n\n/**\n * ProgressInterceptor used for intercepting http requests and displaying progress indicatior\n * @deprecated - Use new `progressInterceptor` function instead\n */\n@Injectable()\nexport class ProgressInterceptor implements HttpInterceptor\n{\n //######################### constructors #########################\n constructor(private _injector: Injector)\n {\n }\n\n //######################### public methods - implementation of HttpInterceptor #########################\n\n /**\n * Intercepts http request\n * @param req - Request to be intercepted\n * @param next - Next middleware that can be called for next processing\n */\n public intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>\n {\n return runInInjectionContext(this._injector, () => progressInterceptor(req, next.handle.bind(next)));\n }\n}\n\n/**\n * Progress interceptor provider\n * @deprecated - Use new `progressInterceptor` function instead\n */\nexport const PROGRESS_INTERCEPTOR_PROVIDER: ClassProvider =\n{\n provide: HTTP_INTERCEPTORS,\n useClass: ProgressInterceptor,\n multi: true,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/types/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAQ,MAAM,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/types/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAQ,MAAM,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,gBAAgB,EAAoB,MAAM,sBAAsB,CAAC;AAGzE,OAAO,EAAC,oBAAoB,EAAC,MAAM,6DAA6D,CAAC;AAEjG,OAAO,EAAC,sBAAsB,EA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e,CAAC,CAAC;AAE/G;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA2B,IAAI,cAAc,CAAS,qBAAqB,CAAC,CAAC;AAE7G;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA6D,IAAI,gBAAgB,CAAyC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import {InjectionToken, Type, inject} from '@angular/core';\nimport {HttpContextToken, HttpInterceptorFn} from '@angular/common/http';\n\nimport type {StringLocalization} from '../services/stringLocalization';\nimport {NoStringLocalization} from '../services/stringLocalization/noStringLocalization.service';\nimport type {PermanentStorage} from '../services/permanentStorage';\nimport {MemoryTemporaryStorage} from '../services/temporaryStorage/memoryTemporaryStorage.service';\nimport type {TemporaryStorage} from '../services/temporaryStorage';\nimport type {Notifications} from '../services/notifications';\nimport type {Position} from '../services/position';\nimport {DefaultLogger} from '../modules/logger/services/logger/logger.service';\nimport {LoggerOptions} from '../modules/logger/types/loggerOptions';\nimport type {Logger} from '../modules/logger/services/logger/logger.interface';\n\n/**\n * Base url when using HTTP (example: http://localhost:8888/)\n */\nexport const HTTP_REQUEST_BASE_URL: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_BASE_URL');\n\n/**\n * Token is used to transfer http request cookie header\n */\nexport const HTTP_REQUEST_COOKIE_HEADER: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_COOKIE_HEADER');\n\n/**\n * Token is used to transfer http request authentication header\n */\nexport const HTTP_REQUEST_AUTH_HEADER: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_AUTH_HEADER');\n\n/**\n * Token used for injecting Logger implementation\n */\nexport const LOGGER: InjectionToken<Logger> = new InjectionToken<Logger>('LOGGER', {providedIn: 'root', factory: () => new DefaultLogger(inject(LoggerOptions))});\n\n/**\n * Token used for injecting StringLocalization service implementation\n */\nexport const STRING_LOCALIZATION: InjectionToken<StringLocalization> = new InjectionToken<StringLocalization>('STRING_LOCALIZATION', {providedIn: 'root', factory: () => new NoStringLocalization()});\n\n/**\n * Token used for injecting permanent storage\n */\nexport const PERMANENT_STORAGE: InjectionToken<PermanentStorage> = new InjectionToken<PermanentStorage>('PERMANENT_STORAGE');\n\n/**\n * Token used for injecting temporary storage\n */\nexport const TEMPORARY_STORAGE: InjectionToken<TemporaryStorage> = new InjectionToken<TemporaryStorage>('TEMPORARY_STORAGE', {providedIn: 'root', factory: () => new MemoryTemporaryStorage()});\n\n/**\n * Token used for injecting service that is used for positioning of one element against another\n */\nexport const POSITION: InjectionToken<Position> = new InjectionToken<Position>('POSITION');\n\n/**\n * Token used for injecting notifications service implementation\n */\nexport const NOTIFICATIONS: InjectionToken<Notifications> = new InjectionToken<Notifications>('NOTIFICATIONS');\n\n/**\n * Token used for injecting notifications scope name\n */\nexport const NOTIFICATIONS_SCOPE: InjectionToken<string> = new InjectionToken<string>('NOTIFICATIONS_SCOPE');\n\n/**\n * Http context token storing array of ignored interceptors types\n */\nexport const IGNORED_INTERCEPTORS: HttpContextToken<Array<Type<unknown>|HttpInterceptorFn>> = new HttpContextToken<Array<Type<unknown>|HttpInterceptorFn>>(() => []);\n"]}
|
package/package.json
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import { ClassProvider } from '@angular/core';
|
|
2
|
-
import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http';
|
|
1
|
+
import { ClassProvider, Injector } from '@angular/core';
|
|
2
|
+
import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpHandlerFn } from '@angular/common/http';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { ProgressIndicatorService } from '../services/progressIndicator.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Progress interceptor used for intercepting http requests and displaying progress indicatior
|
|
7
|
+
* @param req - Request to be intercepted
|
|
8
|
+
* @param next - Next function for passing request to next interceptor
|
|
9
|
+
*/
|
|
10
|
+
export declare function progressInterceptor(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
|
|
6
11
|
/**
|
|
7
12
|
* ProgressInterceptor used for intercepting http requests and displaying progress indicatior
|
|
13
|
+
* @deprecated - Use new `progressInterceptor` function instead
|
|
8
14
|
*/
|
|
9
15
|
export declare class ProgressInterceptor implements HttpInterceptor {
|
|
10
|
-
private
|
|
11
|
-
constructor(
|
|
16
|
+
private _injector;
|
|
17
|
+
constructor(_injector: Injector);
|
|
12
18
|
/**
|
|
13
19
|
* Intercepts http request
|
|
14
20
|
* @param req - Request to be intercepted
|
|
@@ -20,6 +26,7 @@ export declare class ProgressInterceptor implements HttpInterceptor {
|
|
|
20
26
|
}
|
|
21
27
|
/**
|
|
22
28
|
* Progress interceptor provider
|
|
29
|
+
* @deprecated - Use new `progressInterceptor` function instead
|
|
23
30
|
*/
|
|
24
31
|
export declare const PROGRESS_INTERCEPTOR_PROVIDER: ClassProvider;
|
|
25
32
|
//# sourceMappingURL=progressInterceptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progressInterceptor.d.ts","sourceRoot":"","sources":["progressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,
|
|
1
|
+
{"version":3,"file":"progressInterceptor.d.ts","sourceRoot":"","sources":["progressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAU,QAAQ,EAAwB,MAAM,eAAe,CAAC;AACjG,OAAO,EAAC,SAAS,EAAE,eAAe,EAAE,WAAW,EAAoC,WAAW,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAC3I,OAAO,EAAC,UAAU,EAAM,MAAM,MAAM,CAAC;;AAMrC;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CA4BlH;AAED;;;GAGG;AACH,qBACa,mBAAoB,YAAW,eAAe;IAG3C,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,QAAQ;IAMvC;;;;OAIG;IACI,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;yCAdrF,mBAAmB;6CAAnB,mBAAmB;CAkB/B;AAED;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,aAK3C,CAAC"}
|
package/src/types/tokens.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken, Type } from '@angular/core';
|
|
2
|
-
import { HttpContextToken } from '@angular/common/http';
|
|
2
|
+
import { HttpContextToken, HttpInterceptorFn } from '@angular/common/http';
|
|
3
3
|
import type { StringLocalization } from '../services/stringLocalization';
|
|
4
4
|
import type { PermanentStorage } from '../services/permanentStorage';
|
|
5
5
|
import type { TemporaryStorage } from '../services/temporaryStorage';
|
|
@@ -49,5 +49,5 @@ export declare const NOTIFICATIONS_SCOPE: InjectionToken<string>;
|
|
|
49
49
|
/**
|
|
50
50
|
* Http context token storing array of ignored interceptors types
|
|
51
51
|
*/
|
|
52
|
-
export declare const IGNORED_INTERCEPTORS: HttpContextToken<Type<unknown>
|
|
52
|
+
export declare const IGNORED_INTERCEPTORS: HttpContextToken<Array<Type<unknown> | HttpInterceptorFn>>;
|
|
53
53
|
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,IAAI,EAAS,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,E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