@dontdrinkandroot/ngx-extensions 0.3.2 → 0.5.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/src/cookie/cookie.service.mjs +135 -0
- package/esm2022/src/ddr-extensions.module.mjs +67 -0
- package/esm2022/src/http/redirect-to-login-interceptor.service.mjs +35 -0
- package/{esm2020 → esm2022}/src/http/with-credentials-interceptor.service.mjs +4 -4
- package/esm2022/src/image/lazy-image.directive.mjs +132 -0
- package/esm2022/src/jwt/jwt-interceptor.service.mjs +26 -0
- package/esm2022/src/jwt/jwt-refresh-token-interceptor.service.mjs +50 -0
- package/{esm2020 → esm2022}/src/jwt/jwt.service.mjs +5 -5
- package/esm2022/src/logger/console-logger.service.mjs +43 -0
- package/esm2022/src/methoddecorator/limit.mjs +16 -0
- package/esm2022/src/oauth/oauth2-access-token-interceptor.service.mjs +26 -0
- package/esm2022/src/oauth/oauth2-error.mjs +8 -0
- package/esm2022/src/oauth/oauth2-refresh-token-interceptor.service.mjs +24 -0
- package/{esm2020 → esm2022}/src/oauth/oauth2.module.mjs +5 -5
- package/esm2022/src/oauth/oauth2.service.mjs +125 -0
- package/esm2022/src/oauth/redirect-to-oauth2-login-interceptor.service.mjs +41 -0
- package/esm2022/src/scroll/bottom-hit.directive.mjs +60 -0
- package/esm2022/src/scroll/scroll.service.mjs +38 -0
- package/esm2022/src/storage/local-storage.service.mjs +53 -0
- package/esm2022/src/util/collection-utils.mjs +27 -0
- package/{esm2020 → esm2022}/src/util/number-utils.mjs +1 -1
- package/esm2022/src/util/string-utils.mjs +35 -0
- package/esm2022/src/util/type-utils.mjs +9 -0
- package/{esm2020 → esm2022}/src/visibility/visibility.service.mjs +5 -5
- package/{fesm2020 → fesm2022}/dontdrinkandroot-ngx-extensions.mjs +102 -100
- package/{fesm2020 → fesm2022}/dontdrinkandroot-ngx-extensions.mjs.map +1 -1
- package/package.json +9 -15
- package/src/image/lazy-image.directive.d.ts +1 -1
- package/esm2020/src/cookie/cookie.service.mjs +0 -135
- package/esm2020/src/ddr-extensions.module.mjs +0 -67
- package/esm2020/src/http/redirect-to-login-interceptor.service.mjs +0 -35
- package/esm2020/src/image/lazy-image.directive.mjs +0 -132
- package/esm2020/src/jwt/jwt-interceptor.service.mjs +0 -26
- package/esm2020/src/jwt/jwt-refresh-token-interceptor.service.mjs +0 -50
- package/esm2020/src/logger/console-logger.service.mjs +0 -43
- package/esm2020/src/methoddecorator/limit.mjs +0 -16
- package/esm2020/src/oauth/oauth2-access-token-interceptor.service.mjs +0 -26
- package/esm2020/src/oauth/oauth2-error.mjs +0 -8
- package/esm2020/src/oauth/oauth2-refresh-token-interceptor.service.mjs +0 -24
- package/esm2020/src/oauth/oauth2.service.mjs +0 -125
- package/esm2020/src/oauth/redirect-to-oauth2-login-interceptor.service.mjs +0 -41
- package/esm2020/src/scroll/bottom-hit.directive.mjs +0 -60
- package/esm2020/src/scroll/scroll.service.mjs +0 -38
- package/esm2020/src/storage/local-storage.service.mjs +0 -53
- package/esm2020/src/util/collection-utils.mjs +0 -27
- package/esm2020/src/util/string-utils.mjs +0 -35
- package/esm2020/src/util/type-utils.mjs +0 -9
- package/fesm2015/dontdrinkandroot-ngx-extensions.mjs +0 -1132
- package/fesm2015/dontdrinkandroot-ngx-extensions.mjs.map +0 -1
- /package/{esm2020 → esm2022}/dontdrinkandroot-ngx-extensions.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/src/http/url-info.mjs +0 -0
- /package/{esm2020 → esm2022}/src/jwt/jwt-token-response.mjs +0 -0
- /package/{esm2020 → esm2022}/src/logger/logger.service.mjs +0 -0
- /package/{esm2020 → esm2022}/src/methoddecorator/debounce.mjs +0 -0
- /package/{esm2020 → esm2022}/src/oauth/json-web-token.mjs +0 -0
- /package/{esm2020 → esm2022}/src/oauth/oauth2-config.mjs +0 -0
- /package/{esm2020 → esm2022}/src/oauth/token-response.mjs +0 -0
- /package/{esm2020 → esm2022}/src/storage/storage.service.mjs +0 -0
- /package/{esm2020 → esm2022}/src/typeguard/is-non-null.mjs +0 -0
- /package/{esm2020 → esm2022}/src/util/object-utils.mjs +0 -0
|
@@ -9,11 +9,11 @@ export class VisibilityService {
|
|
|
9
9
|
getVisibilityObservable() {
|
|
10
10
|
return this.visibility$;
|
|
11
11
|
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: VisibilityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: VisibilityService, providedIn: 'root' }); }
|
|
12
14
|
}
|
|
13
|
-
|
|
14
|
-
VisibilityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VisibilityService, providedIn: 'root' });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VisibilityService, decorators: [{
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: VisibilityService, decorators: [{
|
|
16
16
|
type: Injectable,
|
|
17
17
|
args: [{ providedIn: 'root' }]
|
|
18
|
-
}], ctorParameters:
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
}], ctorParameters: () => [] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlzaWJpbGl0eS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3Zpc2liaWxpdHkvdmlzaWJpbGl0eS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQWEsTUFBTSxNQUFNLENBQUM7QUFDbEQsT0FBTyxFQUFDLFlBQVksRUFBRSxvQkFBb0IsRUFBRSxHQUFHLEVBQUUsV0FBVyxFQUFFLFNBQVMsRUFBQyxNQUFNLGdCQUFnQixDQUFDOztBQUcvRixNQUFNLE9BQU8saUJBQWlCO0lBSTFCO1FBRUksSUFBSSxDQUFDLFdBQVcsR0FBRyxLQUFLLENBQ3BCLFNBQVMsQ0FBQyxRQUFRLEVBQUUsa0JBQWtCLENBQUMsRUFDdkMsU0FBUyxDQUFDLE1BQU0sRUFBRSxPQUFPLENBQUMsRUFDMUIsU0FBUyxDQUFDLE1BQU0sRUFBRSxNQUFNLENBQUMsQ0FDNUIsQ0FBQyxJQUFJLENBQ0YsWUFBWSxDQUFDLEVBQUUsQ0FBQyxFQUNoQixTQUFTLENBQUMsSUFBSSxDQUFDLEVBQ2YsR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDLFFBQVEsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxFQUM5QixvQkFBb0IsRUFBRSxFQUN0QixXQUFXLENBQUMsQ0FBQyxDQUFDLENBQ2pCLENBQUM7SUFDTixDQUFDO0lBRU0sdUJBQXVCO1FBRTFCLE9BQU8sSUFBSSxDQUFDLFdBQVcsQ0FBQztJQUM1QixDQUFDOzhHQXRCUSxpQkFBaUI7a0hBQWpCLGlCQUFpQixjQURMLE1BQU07OzJGQUNsQixpQkFBaUI7a0JBRDdCLFVBQVU7bUJBQUMsRUFBQyxVQUFVLEVBQUUsTUFBTSxFQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtJbmplY3RhYmxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7ZnJvbUV2ZW50LCBtZXJnZSwgT2JzZXJ2YWJsZX0gZnJvbSAncnhqcyc7XG5pbXBvcnQge2RlYm91bmNlVGltZSwgZGlzdGluY3RVbnRpbENoYW5nZWQsIG1hcCwgc2hhcmVSZXBsYXksIHN0YXJ0V2l0aH0gZnJvbSAncnhqcy9vcGVyYXRvcnMnO1xuXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBWaXNpYmlsaXR5U2VydmljZVxue1xuICAgIHByaXZhdGUgcmVhZG9ubHkgdmlzaWJpbGl0eSQ6IE9ic2VydmFibGU8Ym9vbGVhbj47XG5cbiAgICBjb25zdHJ1Y3RvcigpXG4gICAge1xuICAgICAgICB0aGlzLnZpc2liaWxpdHkkID0gbWVyZ2UoXG4gICAgICAgICAgICBmcm9tRXZlbnQoZG9jdW1lbnQsICd2aXNpYmlsaXR5Y2hhbmdlJyksXG4gICAgICAgICAgICBmcm9tRXZlbnQod2luZG93LCAnZm9jdXMnKSxcbiAgICAgICAgICAgIGZyb21FdmVudCh3aW5kb3csICdibHVyJylcbiAgICAgICAgKS5waXBlKFxuICAgICAgICAgICAgZGVib3VuY2VUaW1lKDUwKSxcbiAgICAgICAgICAgIHN0YXJ0V2l0aCh0cnVlKSxcbiAgICAgICAgICAgIG1hcCgoKSA9PiBkb2N1bWVudC5oYXNGb2N1cygpKSxcbiAgICAgICAgICAgIGRpc3RpbmN0VW50aWxDaGFuZ2VkKCksXG4gICAgICAgICAgICBzaGFyZVJlcGxheSgxKSxcbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0VmlzaWJpbGl0eU9ic2VydmFibGUoKTogT2JzZXJ2YWJsZTxib29sZWFuPlxuICAgIHtcbiAgICAgICAgcmV0dXJuIHRoaXMudmlzaWJpbGl0eSQ7XG4gICAgfVxufVxuIl19
|
|
@@ -170,19 +170,19 @@ class LazyImageDirective {
|
|
|
170
170
|
isHidden(element) {
|
|
171
171
|
return window.getComputedStyle(element).display === 'none';
|
|
172
172
|
}
|
|
173
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: LazyImageDirective, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
174
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.8", type: LazyImageDirective, selector: "[ddrLazyImage]", inputs: { src: ["ddrLazyImage", "src"], objectFit: "objectFit", offset: "offset" }, host: { listeners: { "window:resize": "windowResized($event)", "window:scroll": "windowScroll($event)" }, properties: { "src": "this.hostSrc", "style.width.px": "this.hostStyleWidthPx", "style.height.px": "this.hostStyleHeightPx", "style.object-fit": "this.hostStyleObjectFit" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
173
175
|
}
|
|
174
|
-
LazyImageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LazyImageDirective, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
175
|
-
LazyImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.4", type: LazyImageDirective, selector: "[ddrLazyImage]", inputs: { src: ["ddrLazyImage", "src"], objectFit: "objectFit", offset: "offset" }, host: { listeners: { "window:resize": "windowResized($event)", "window:scroll": "windowScroll($event)" }, properties: { "src": "this.hostSrc", "style.width.px": "this.hostStyleWidthPx", "style.height.px": "this.hostStyleHeightPx", "style.object-fit": "this.hostStyleObjectFit" } }, usesOnChanges: true, ngImport: i0 });
|
|
176
176
|
__decorate([
|
|
177
177
|
Debounce()
|
|
178
178
|
], LazyImageDirective.prototype, "windowResized", null);
|
|
179
179
|
__decorate([
|
|
180
180
|
Limit()
|
|
181
181
|
], LazyImageDirective.prototype, "windowScroll", null);
|
|
182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: LazyImageDirective, decorators: [{
|
|
183
183
|
type: Directive,
|
|
184
184
|
args: [{ selector: '[ddrLazyImage]' }]
|
|
185
|
-
}], ctorParameters:
|
|
185
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { src: [{
|
|
186
186
|
type: Input,
|
|
187
187
|
args: ['ddrLazyImage']
|
|
188
188
|
}], objectFit: [{
|
|
@@ -239,21 +239,21 @@ class BottomHitDirective {
|
|
|
239
239
|
this.onElementBottomHit.emit();
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: BottomHitDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
243
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.8", type: BottomHitDirective, selector: "[ddrBottomHit]", outputs: { onWindowBottomHit: "onWindowBottomHit", onElementBottomHit: "onElementBottomHit" }, host: { listeners: { "scroll": "scrolled($event)", "window:scroll": "windowScrolled($event)" } }, ngImport: i0 }); }
|
|
242
244
|
}
|
|
243
|
-
BottomHitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: BottomHitDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
244
|
-
BottomHitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.4", type: BottomHitDirective, selector: "[ddrBottomHit]", outputs: { onWindowBottomHit: "onWindowBottomHit", onElementBottomHit: "onElementBottomHit" }, host: { listeners: { "scroll": "scrolled($event)", "window:scroll": "windowScrolled($event)" } }, ngImport: i0 });
|
|
245
245
|
__decorate([
|
|
246
246
|
Limit()
|
|
247
247
|
], BottomHitDirective.prototype, "scrolled", null);
|
|
248
248
|
__decorate([
|
|
249
249
|
Limit()
|
|
250
250
|
], BottomHitDirective.prototype, "windowScrolled", null);
|
|
251
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: BottomHitDirective, decorators: [{
|
|
252
252
|
type: Directive,
|
|
253
253
|
args: [{
|
|
254
254
|
selector: '[ddrBottomHit]'
|
|
255
255
|
}]
|
|
256
|
-
}], ctorParameters:
|
|
256
|
+
}], ctorParameters: () => [], propDecorators: { onWindowBottomHit: [{
|
|
257
257
|
type: Output
|
|
258
258
|
}], onElementBottomHit: [{
|
|
259
259
|
type: Output
|
|
@@ -307,10 +307,10 @@ class ConsoleLogger extends Logger {
|
|
|
307
307
|
console.error(...data);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ConsoleLogger, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
311
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ConsoleLogger }); }
|
|
310
312
|
}
|
|
311
|
-
|
|
312
|
-
ConsoleLogger.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ConsoleLogger });
|
|
313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ConsoleLogger, decorators: [{
|
|
313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ConsoleLogger, decorators: [{
|
|
314
314
|
type: Injectable
|
|
315
315
|
}] });
|
|
316
316
|
|
|
@@ -357,43 +357,43 @@ class LocalStorageService extends StorageService {
|
|
|
357
357
|
getFullKey(key) {
|
|
358
358
|
return this.storagePrefix + '.' + key;
|
|
359
359
|
}
|
|
360
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: LocalStorageService, deps: [{ token: DDR_STORAGE_PREFIX }, { token: Logger }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
361
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: LocalStorageService }); }
|
|
360
362
|
}
|
|
361
|
-
|
|
362
|
-
LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LocalStorageService });
|
|
363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
364
364
|
type: Injectable
|
|
365
|
-
}], ctorParameters:
|
|
365
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
366
366
|
type: Inject,
|
|
367
367
|
args: [DDR_STORAGE_PREFIX]
|
|
368
|
-
}] }, { type: Logger }]
|
|
368
|
+
}] }, { type: Logger }] });
|
|
369
369
|
|
|
370
370
|
const DDR_JWT_REFRESH_TOKEN_URL = new InjectionToken('DDR_JWT_REFRESH_TOKEN_URL');
|
|
371
371
|
const DDR_LOGIN_PATH = new InjectionToken('DDR_LOGIN_PATH');
|
|
372
372
|
class DdrExtensionsModule {
|
|
373
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: DdrExtensionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
374
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.8", ngImport: i0, type: DdrExtensionsModule, declarations: [LazyImageDirective,
|
|
375
|
+
BottomHitDirective], exports: [LazyImageDirective,
|
|
376
|
+
BottomHitDirective] }); }
|
|
377
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: DdrExtensionsModule, providers: [
|
|
378
|
+
{
|
|
379
|
+
provide: DDR_LOGIN_PATH,
|
|
380
|
+
useValue: '/login'
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
provide: Logger,
|
|
384
|
+
useClass: ConsoleLogger
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
provide: DDR_STORAGE_PREFIX,
|
|
388
|
+
useValue: 'ddr'
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
provide: StorageService,
|
|
392
|
+
useClass: LocalStorageService
|
|
393
|
+
},
|
|
394
|
+
] }); }
|
|
373
395
|
}
|
|
374
|
-
|
|
375
|
-
DdrExtensionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: DdrExtensionsModule, declarations: [LazyImageDirective,
|
|
376
|
-
BottomHitDirective], exports: [LazyImageDirective,
|
|
377
|
-
BottomHitDirective] });
|
|
378
|
-
DdrExtensionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DdrExtensionsModule, providers: [
|
|
379
|
-
{
|
|
380
|
-
provide: DDR_LOGIN_PATH,
|
|
381
|
-
useValue: '/login'
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
provide: Logger,
|
|
385
|
-
useClass: ConsoleLogger
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
provide: DDR_STORAGE_PREFIX,
|
|
389
|
-
useValue: 'ddr'
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
provide: StorageService,
|
|
393
|
-
useClass: LocalStorageService
|
|
394
|
-
},
|
|
395
|
-
] });
|
|
396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DdrExtensionsModule, decorators: [{
|
|
396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: DdrExtensionsModule, decorators: [{
|
|
397
397
|
type: NgModule,
|
|
398
398
|
args: [{
|
|
399
399
|
declarations: [
|
|
@@ -427,6 +427,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
|
|
|
427
427
|
}] });
|
|
428
428
|
|
|
429
429
|
// This service is based on the `ng2-cookies` package which sadly is not a service and does
|
|
430
|
+
// not use `DOCUMENT` injection and therefore doesn't work well with AoT production builds.
|
|
431
|
+
// Package: https://github.com/BCJTI/ng2-cookies
|
|
430
432
|
class CookieService {
|
|
431
433
|
constructor(document) {
|
|
432
434
|
this.document = document;
|
|
@@ -543,18 +545,18 @@ class CookieService {
|
|
|
543
545
|
const escapedName = name.replace(/([\[\]{}()|=;+?,.*^$])/ig, '\\$1');
|
|
544
546
|
return new RegExp('(?:^' + escapedName + '|;\\s*' + escapedName + ')=(.*?)(?:;|$)', 'g');
|
|
545
547
|
}
|
|
548
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CookieService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
549
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CookieService, providedIn: 'root' }); }
|
|
546
550
|
}
|
|
547
|
-
|
|
548
|
-
CookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: CookieService, providedIn: 'root' });
|
|
549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: CookieService, decorators: [{
|
|
551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CookieService, decorators: [{
|
|
550
552
|
type: Injectable,
|
|
551
553
|
args: [{
|
|
552
554
|
providedIn: 'root'
|
|
553
555
|
}]
|
|
554
|
-
}], ctorParameters:
|
|
556
|
+
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
555
557
|
type: Inject,
|
|
556
558
|
args: [DOCUMENT]
|
|
557
|
-
}] }]
|
|
559
|
+
}] }] });
|
|
558
560
|
|
|
559
561
|
class ObjectUtils {
|
|
560
562
|
static deepCopy(value) {
|
|
@@ -623,15 +625,15 @@ class ScrollService {
|
|
|
623
625
|
}, 1);
|
|
624
626
|
}
|
|
625
627
|
}
|
|
628
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ScrollService, deps: [{ token: i1.Router }, { token: i2.ViewportScroller }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
629
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ScrollService, providedIn: 'root' }); }
|
|
626
630
|
}
|
|
627
|
-
|
|
628
|
-
ScrollService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ScrollService, providedIn: 'root' });
|
|
629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: ScrollService, decorators: [{
|
|
631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ScrollService, decorators: [{
|
|
630
632
|
type: Injectable,
|
|
631
633
|
args: [{
|
|
632
634
|
providedIn: 'root'
|
|
633
635
|
}]
|
|
634
|
-
}], ctorParameters:
|
|
636
|
+
}], ctorParameters: () => [{ type: i1.Router }, { type: i2.ViewportScroller }] });
|
|
635
637
|
|
|
636
638
|
class VisibilityService {
|
|
637
639
|
constructor() {
|
|
@@ -640,13 +642,13 @@ class VisibilityService {
|
|
|
640
642
|
getVisibilityObservable() {
|
|
641
643
|
return this.visibility$;
|
|
642
644
|
}
|
|
645
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: VisibilityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
646
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: VisibilityService, providedIn: 'root' }); }
|
|
643
647
|
}
|
|
644
|
-
|
|
645
|
-
VisibilityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VisibilityService, providedIn: 'root' });
|
|
646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: VisibilityService, decorators: [{
|
|
648
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: VisibilityService, decorators: [{
|
|
647
649
|
type: Injectable,
|
|
648
650
|
args: [{ providedIn: 'root' }]
|
|
649
|
-
}], ctorParameters:
|
|
651
|
+
}], ctorParameters: () => [] });
|
|
650
652
|
|
|
651
653
|
class WithCredentialsInterceptor {
|
|
652
654
|
/**
|
|
@@ -658,10 +660,10 @@ class WithCredentialsInterceptor {
|
|
|
658
660
|
});
|
|
659
661
|
return next.handle(cloned);
|
|
660
662
|
}
|
|
663
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: WithCredentialsInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
664
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: WithCredentialsInterceptor }); }
|
|
661
665
|
}
|
|
662
|
-
|
|
663
|
-
WithCredentialsInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: WithCredentialsInterceptor });
|
|
664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: WithCredentialsInterceptor, decorators: [{
|
|
666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: WithCredentialsInterceptor, decorators: [{
|
|
665
667
|
type: Injectable
|
|
666
668
|
}] });
|
|
667
669
|
|
|
@@ -709,15 +711,15 @@ class RedirectToLoginInterceptor {
|
|
|
709
711
|
return throwError(err);
|
|
710
712
|
}));
|
|
711
713
|
}
|
|
714
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RedirectToLoginInterceptor, deps: [{ token: i1.Router }, { token: DDR_LOGIN_PATH }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
715
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RedirectToLoginInterceptor }); }
|
|
712
716
|
}
|
|
713
|
-
|
|
714
|
-
RedirectToLoginInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RedirectToLoginInterceptor });
|
|
715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RedirectToLoginInterceptor, decorators: [{
|
|
717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RedirectToLoginInterceptor, decorators: [{
|
|
716
718
|
type: Injectable
|
|
717
|
-
}], ctorParameters:
|
|
719
|
+
}], ctorParameters: () => [{ type: i1.Router }, { type: undefined, decorators: [{
|
|
718
720
|
type: Inject,
|
|
719
721
|
args: [DDR_LOGIN_PATH]
|
|
720
|
-
}] }]
|
|
722
|
+
}] }] });
|
|
721
723
|
|
|
722
724
|
const DDR_OAUTH2_CONFIG = new InjectionToken('DDR_OAUTH2_CONFIG');
|
|
723
725
|
class OAuth2Config {
|
|
@@ -730,14 +732,17 @@ class OAuth2Config {
|
|
|
730
732
|
}
|
|
731
733
|
|
|
732
734
|
class OAuth2Error extends Error {
|
|
735
|
+
static { this.CODE_NOT_FOUND = 'code_not_found'; }
|
|
736
|
+
static { this.ACCESS_DENIED = 'access_denied'; }
|
|
733
737
|
constructor(error) {
|
|
734
738
|
super(error);
|
|
735
739
|
}
|
|
736
740
|
}
|
|
737
|
-
OAuth2Error.CODE_NOT_FOUND = 'code_not_found';
|
|
738
|
-
OAuth2Error.ACCESS_DENIED = 'access_denied';
|
|
739
741
|
|
|
740
742
|
class OAuth2Service {
|
|
743
|
+
static { this.STORAGE_KEY_CHALLENGE = 'ddr_oauth2_challenge'; }
|
|
744
|
+
static { this.STORAGE_KEY_REFRESH_TOKEN = 'ddr_oauth2_refresh_token'; }
|
|
745
|
+
static { this.STORAGE_KEY_RETURN_URL = 'ddr_oauth2_return_url'; }
|
|
741
746
|
constructor(route, httpClient, loggerService, config) {
|
|
742
747
|
this.route = route;
|
|
743
748
|
this.httpClient = httpClient;
|
|
@@ -836,18 +841,15 @@ class OAuth2Service {
|
|
|
836
841
|
getReturnUrl() {
|
|
837
842
|
return localStorage.getItem(OAuth2Service.STORAGE_KEY_RETURN_URL);
|
|
838
843
|
}
|
|
844
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2Service, deps: [{ token: i1.ActivatedRoute }, { token: i2$1.HttpClient }, { token: Logger }, { token: DDR_OAUTH2_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
845
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2Service }); }
|
|
839
846
|
}
|
|
840
|
-
|
|
841
|
-
OAuth2Service.STORAGE_KEY_REFRESH_TOKEN = 'ddr_oauth2_refresh_token';
|
|
842
|
-
OAuth2Service.STORAGE_KEY_RETURN_URL = 'ddr_oauth2_return_url';
|
|
843
|
-
OAuth2Service.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OAuth2Service, deps: [{ token: i1.ActivatedRoute }, { token: i2$1.HttpClient }, { token: Logger }, { token: DDR_OAUTH2_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
844
|
-
OAuth2Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OAuth2Service });
|
|
845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OAuth2Service, decorators: [{
|
|
847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2Service, decorators: [{
|
|
846
848
|
type: Injectable
|
|
847
|
-
}], ctorParameters:
|
|
849
|
+
}], ctorParameters: () => [{ type: i1.ActivatedRoute }, { type: i2$1.HttpClient }, { type: Logger }, { type: OAuth2Config, decorators: [{
|
|
848
850
|
type: Inject,
|
|
849
851
|
args: [DDR_OAUTH2_CONFIG]
|
|
850
|
-
}] }]
|
|
852
|
+
}] }] });
|
|
851
853
|
|
|
852
854
|
class OAuth2RefreshTokenInterceptor {
|
|
853
855
|
constructor(oAuth2Service) {
|
|
@@ -862,12 +864,12 @@ class OAuth2RefreshTokenInterceptor {
|
|
|
862
864
|
}
|
|
863
865
|
return next.handle(req);
|
|
864
866
|
}
|
|
867
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2RefreshTokenInterceptor, deps: [{ token: OAuth2Service }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
868
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2RefreshTokenInterceptor }); }
|
|
865
869
|
}
|
|
866
|
-
|
|
867
|
-
OAuth2RefreshTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OAuth2RefreshTokenInterceptor });
|
|
868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OAuth2RefreshTokenInterceptor, decorators: [{
|
|
870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2RefreshTokenInterceptor, decorators: [{
|
|
869
871
|
type: Injectable
|
|
870
|
-
}], ctorParameters:
|
|
872
|
+
}], ctorParameters: () => [{ type: OAuth2Service }] });
|
|
871
873
|
|
|
872
874
|
class RedirectToOAuth2LoginInterceptor {
|
|
873
875
|
constructor(oAuth2Service, router, oAuth2Config) {
|
|
@@ -891,15 +893,15 @@ class RedirectToOAuth2LoginInterceptor {
|
|
|
891
893
|
return throwError(err);
|
|
892
894
|
}));
|
|
893
895
|
}
|
|
896
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RedirectToOAuth2LoginInterceptor, deps: [{ token: OAuth2Service }, { token: i1.Router }, { token: DDR_OAUTH2_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
897
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RedirectToOAuth2LoginInterceptor }); }
|
|
894
898
|
}
|
|
895
|
-
|
|
896
|
-
RedirectToOAuth2LoginInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RedirectToOAuth2LoginInterceptor });
|
|
897
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: RedirectToOAuth2LoginInterceptor, decorators: [{
|
|
899
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RedirectToOAuth2LoginInterceptor, decorators: [{
|
|
898
900
|
type: Injectable
|
|
899
|
-
}], ctorParameters:
|
|
901
|
+
}], ctorParameters: () => [{ type: OAuth2Service }, { type: i1.Router }, { type: OAuth2Config, decorators: [{
|
|
900
902
|
type: Inject,
|
|
901
903
|
args: [DDR_OAUTH2_CONFIG]
|
|
902
|
-
}] }]
|
|
904
|
+
}] }] });
|
|
903
905
|
|
|
904
906
|
class OAuth2AccessTokenInterceptor {
|
|
905
907
|
constructor(oAuth2Service) {
|
|
@@ -917,12 +919,12 @@ class OAuth2AccessTokenInterceptor {
|
|
|
917
919
|
}
|
|
918
920
|
return next.handle(req);
|
|
919
921
|
}
|
|
922
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2AccessTokenInterceptor, deps: [{ token: OAuth2Service }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
923
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2AccessTokenInterceptor }); }
|
|
920
924
|
}
|
|
921
|
-
|
|
922
|
-
OAuth2AccessTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OAuth2AccessTokenInterceptor });
|
|
923
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OAuth2AccessTokenInterceptor, decorators: [{
|
|
925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2AccessTokenInterceptor, decorators: [{
|
|
924
926
|
type: Injectable
|
|
925
|
-
}], ctorParameters:
|
|
927
|
+
}], ctorParameters: () => [{ type: OAuth2Service }] });
|
|
926
928
|
|
|
927
929
|
class OAuth2Module {
|
|
928
930
|
static forRoot(config) {
|
|
@@ -952,11 +954,11 @@ class OAuth2Module {
|
|
|
952
954
|
],
|
|
953
955
|
};
|
|
954
956
|
}
|
|
957
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
958
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.8", ngImport: i0, type: OAuth2Module }); }
|
|
959
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2Module }); }
|
|
955
960
|
}
|
|
956
|
-
|
|
957
|
-
OAuth2Module.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: OAuth2Module });
|
|
958
|
-
OAuth2Module.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OAuth2Module });
|
|
959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: OAuth2Module, decorators: [{
|
|
961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: OAuth2Module, decorators: [{
|
|
960
962
|
type: NgModule
|
|
961
963
|
}] });
|
|
962
964
|
|
|
@@ -1031,15 +1033,15 @@ class JwtService {
|
|
|
1031
1033
|
getRefreshTokenStorageKey() {
|
|
1032
1034
|
return 'jwt.refresh_token';
|
|
1033
1035
|
}
|
|
1036
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: JwtService, deps: [{ token: StorageService }, { token: Logger }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1037
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: JwtService, providedIn: 'root' }); }
|
|
1034
1038
|
}
|
|
1035
|
-
|
|
1036
|
-
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtService, providedIn: 'root' });
|
|
1037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtService, decorators: [{
|
|
1039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: JwtService, decorators: [{
|
|
1038
1040
|
type: Injectable,
|
|
1039
1041
|
args: [{
|
|
1040
1042
|
providedIn: 'root'
|
|
1041
1043
|
}]
|
|
1042
|
-
}], ctorParameters:
|
|
1044
|
+
}], ctorParameters: () => [{ type: StorageService }, { type: Logger }] });
|
|
1043
1045
|
|
|
1044
1046
|
class JwtInterceptor {
|
|
1045
1047
|
constructor(jwtService) {
|
|
@@ -1057,12 +1059,12 @@ class JwtInterceptor {
|
|
|
1057
1059
|
}
|
|
1058
1060
|
return next.handle(req);
|
|
1059
1061
|
}
|
|
1062
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1063
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: JwtInterceptor }); }
|
|
1060
1064
|
}
|
|
1061
|
-
|
|
1062
|
-
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtInterceptor });
|
|
1063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtInterceptor, decorators: [{
|
|
1065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: JwtInterceptor, decorators: [{
|
|
1064
1066
|
type: Injectable
|
|
1065
|
-
}], ctorParameters:
|
|
1067
|
+
}], ctorParameters: () => [{ type: JwtService }] });
|
|
1066
1068
|
|
|
1067
1069
|
class JwtRefreshTokenInterceptor {
|
|
1068
1070
|
constructor(jwtService, httpClient, jwtRefreshTokenUrl) {
|
|
@@ -1097,15 +1099,15 @@ class JwtRefreshTokenInterceptor {
|
|
|
1097
1099
|
}
|
|
1098
1100
|
return this.refreshTokenRequest$;
|
|
1099
1101
|
}
|
|
1102
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: JwtRefreshTokenInterceptor, deps: [{ token: JwtService }, { token: i2$1.HttpClient }, { token: DDR_JWT_REFRESH_TOKEN_URL }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1103
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: JwtRefreshTokenInterceptor }); }
|
|
1100
1104
|
}
|
|
1101
|
-
|
|
1102
|
-
JwtRefreshTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtRefreshTokenInterceptor });
|
|
1103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: JwtRefreshTokenInterceptor, decorators: [{
|
|
1105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: JwtRefreshTokenInterceptor, decorators: [{
|
|
1104
1106
|
type: Injectable
|
|
1105
|
-
}], ctorParameters:
|
|
1107
|
+
}], ctorParameters: () => [{ type: JwtService }, { type: i2$1.HttpClient }, { type: undefined, decorators: [{
|
|
1106
1108
|
type: Inject,
|
|
1107
1109
|
args: [DDR_JWT_REFRESH_TOKEN_URL]
|
|
1108
|
-
}] }]
|
|
1110
|
+
}] }] });
|
|
1109
1111
|
|
|
1110
1112
|
/*
|
|
1111
1113
|
* Public API Surface of ngx-extensions
|