@arsedizioni/ars-utils 19.0.13 → 19.0.15
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/core/core.module.d.ts +1 -7
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +14 -12
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +243 -467
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +13 -10
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +12 -10
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/package.json +9 -9
package/core/core.module.d.ts
CHANGED
|
@@ -9,21 +9,15 @@ import * as i7 from "./pipes/replace.pipe";
|
|
|
9
9
|
import * as i8 from "./pipes/format.pipe";
|
|
10
10
|
import * as i9 from "./directives/copyClipboardDirective";
|
|
11
11
|
import * as i10 from "./directives/autoFocusDirective";
|
|
12
|
-
export declare class ArsDateFnsModule {
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ArsDateFnsModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArsDateFnsModule, never, never, never>;
|
|
15
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ArsDateFnsModule>;
|
|
16
|
-
}
|
|
17
12
|
export declare class ArsCoreModule {
|
|
18
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArsCoreModule, never>;
|
|
19
14
|
static ɵmod: i0.ɵɵNgModuleDeclaration<ArsCoreModule, never, [typeof i1.FileSizeValidatorDirective, typeof i1.ValidIfDirective, typeof i1.ValidatorDirective, typeof i1.EqualsValidatorDirective, typeof i1.GuidValidatorDirective, typeof i1.EmailsValidatorDirective, typeof i1.UrlValidatorDirective, typeof i1.NotFutureValidatorDirective, typeof i1.PasswordValidatorDirective, typeof i2.DateIntervalChangeDirective, typeof i1.SqlDateValidatorDirective, typeof i3.SearchFilterPipe, typeof i4.SearchCallbackPipe, typeof i5.SafeHtmlPipe, typeof i6.SafeUrlPipe, typeof i7.ReplacePipe, typeof i8.FormatPipe, typeof i9.CopyClipboardDirective, typeof i10.AutoFocusDirective], [typeof i1.FileSizeValidatorDirective, typeof i1.ValidIfDirective, typeof i1.ValidatorDirective, typeof i1.EqualsValidatorDirective, typeof i1.GuidValidatorDirective, typeof i1.EmailsValidatorDirective, typeof i1.UrlValidatorDirective, typeof i1.NotFutureValidatorDirective, typeof i1.PasswordValidatorDirective, typeof i2.DateIntervalChangeDirective, typeof i1.SqlDateValidatorDirective, typeof i3.SearchFilterPipe, typeof i4.SearchCallbackPipe, typeof i5.SafeHtmlPipe, typeof i6.SafeUrlPipe, typeof i7.ReplacePipe, typeof i8.FormatPipe, typeof i9.CopyClipboardDirective, typeof i10.AutoFocusDirective]>;
|
|
20
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArsCoreModule>;
|
|
21
16
|
}
|
|
22
|
-
export * from './system';
|
|
23
17
|
export * from './definitions';
|
|
24
|
-
export * from './dateFnsAdapter';
|
|
25
18
|
export * from './selectable';
|
|
26
19
|
export * from './services/broadcast.service';
|
|
27
20
|
export * from './services/environment.service';
|
|
28
21
|
export * from './services/screen.service';
|
|
29
22
|
export * from './services/theme.service';
|
|
23
|
+
export * from './system';
|
|
@@ -3098,8 +3098,8 @@ class ClipperAuthInterceptor {
|
|
|
3098
3098
|
.pipe(finalize$1(() => this.dialogService.clearBusy()), catchError$1(error => {
|
|
3099
3099
|
if (error.url.startsWith(this.clipperService.serviceUri)) {
|
|
3100
3100
|
if (error instanceof HttpErrorResponse &&
|
|
3101
|
-
|
|
3102
|
-
|
|
3101
|
+
error.status === 401 &&
|
|
3102
|
+
!request.url.includes("/login")) {
|
|
3103
3103
|
return this.handle401Error(request, next);
|
|
3104
3104
|
}
|
|
3105
3105
|
const errorStatus = parseInt(error.status ?? "0");
|
|
@@ -3154,16 +3154,18 @@ class ClipperAuthInterceptor {
|
|
|
3154
3154
|
* @param token: the token or null to use curre3nt
|
|
3155
3155
|
*/
|
|
3156
3156
|
addTokenToRequest(request, token = null) {
|
|
3157
|
-
if (
|
|
3158
|
-
if (
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3157
|
+
if (!this.clipperService.loggedIn()) {
|
|
3158
|
+
if (request.url.startsWith(this.clipperService.serviceUri)) {
|
|
3159
|
+
if (!token)
|
|
3160
|
+
token = this.clipperService.getToken();
|
|
3161
|
+
if (token) {
|
|
3162
|
+
return request.clone({
|
|
3163
|
+
setHeaders: {
|
|
3164
|
+
Authorization: 'Bearer ' + token,
|
|
3165
|
+
'ngsw-bypass': 'ngsw-bypass'
|
|
3166
|
+
},
|
|
3167
|
+
});
|
|
3168
|
+
}
|
|
3167
3169
|
}
|
|
3168
3170
|
}
|
|
3169
3171
|
return request;
|