@arsedizioni/ars-utils 20.3.32 → 20.3.34

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.
@@ -1099,8 +1099,9 @@ declare class ClipperService implements OnDestroy {
1099
1099
  confirmIdentity(code: string, flags?: number): rxjs.Observable<ApiResult<ClipperLoginResult>>;
1100
1100
  /**
1101
1101
  * Perform logout
1102
+ * @param forget: true to dispose all user informations
1102
1103
  */
1103
- logout(): rxjs.Observable<any>;
1104
+ logout(forget?: boolean): rxjs.Observable<any>;
1104
1105
  /**
1105
1106
  * Reset login refresh timer and login state
1106
1107
  */
@@ -13,7 +13,7 @@ import { MatCalendar, MatCalendarCellClassFunction } from '@angular/material/dat
13
13
  import { ScrollDispatcher } from '@angular/cdk/scrolling';
14
14
  import { MatExpansionPanel } from '@angular/material/expansion';
15
15
  import { MatInput } from '@angular/material/input';
16
- import { MatMenuTrigger, MatMenu } from '@angular/material/menu';
16
+ import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
17
17
  import { MatSelectionList } from '@angular/material/list';
18
18
  import { MatDialogRef } from '@angular/material/dialog';
19
19
  import { DialogService } from '@arsedizioni/ars-utils/ui';
@@ -791,7 +791,6 @@ declare enum ClipperSearchResultItemDisplayMode {
791
791
  Stripe = 3
792
792
  }
793
793
  declare class ClipperSearchResultItemComponent implements OnInit {
794
- readonly contextMenuTrigger: _angular_core.Signal<MatMenuTrigger>;
795
794
  private unsubscribe;
796
795
  protected screenService: ScreenService;
797
796
  protected broadcastService: BroadcastService;
@@ -810,12 +809,7 @@ declare class ClipperSearchResultItemComponent implements OnInit {
810
809
  readonly displayMode: _angular_core.InputSignal<ClipperSearchResultItemDisplayMode>;
811
810
  protected readonly displayModesEnum: typeof ClipperSearchResultItemDisplayMode;
812
811
  protected readonly modelsEnum: typeof ClipperModel;
813
- protected contextMenuPosition: {
814
- x: string;
815
- y: string;
816
- };
817
812
  ngOnInit(): void;
818
- onContextMenu(e: MouseEvent, item: ClipperDocumentInfo): void;
819
813
  /**
820
814
  * Checks if current item is selected
821
815
  * @returns true if current item is selected
@@ -1039,7 +1033,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
1039
1033
  private changeDetector;
1040
1034
  private clipperService;
1041
1035
  readonly useSelections: _angular_core.InputSignal<boolean>;
1042
- readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1036
+ readonly selectionSource: _angular_core.InputSignal<"none" | "selection" | "bag">;
1043
1037
  protected selection: () => ClipperDocumentInfo[];
1044
1038
  readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
1045
1039
  readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
@@ -2351,9 +2351,10 @@ class ClipperService {
2351
2351
  }
2352
2352
  /**
2353
2353
  * Perform logout
2354
+ * @param forget: true to dispose all user informations
2354
2355
  */
2355
- logout() {
2356
- return this.httpClient.post(this._serviceUri + '/logout', {}).pipe(finalize(() => {
2356
+ logout(forget = false) {
2357
+ return this.httpClient.post(this._serviceUri + '/logout/?forget=' + forget, {}).pipe(finalize(() => {
2357
2358
  this.removeKeepAlive();
2358
2359
  this.clear(true);
2359
2360
  // Clean up
@@ -3125,10 +3126,10 @@ class ClipperService {
3125
3126
  downloadArchiveFile(id, otp) {
3126
3127
  return this.httpClient.get(this._serviceUri + '/archive/files/download/?id=' + id + '&otp=' + (otp ?? ''), { responseType: 'blob' });
3127
3128
  }
3128
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ClipperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3129
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ClipperService, providedIn: 'root' }); }
3129
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ClipperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3130
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ClipperService, providedIn: 'root' }); }
3130
3131
  }
3131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ClipperService, decorators: [{
3132
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ClipperService, decorators: [{
3132
3133
  type: Injectable,
3133
3134
  args: [{
3134
3135
  providedIn: 'root',
@@ -3221,19 +3222,19 @@ class ClipperAuthInterceptor {
3221
3222
  }
3222
3223
  return request;
3223
3224
  }
3224
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ClipperAuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3225
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ClipperAuthInterceptor }); }
3225
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ClipperAuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3226
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ClipperAuthInterceptor }); }
3226
3227
  }
3227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ClipperAuthInterceptor, decorators: [{
3228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ClipperAuthInterceptor, decorators: [{
3228
3229
  type: Injectable
3229
3230
  }] });
3230
3231
 
3231
3232
  class ArsClipperCommonModule {
3232
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ArsClipperCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3233
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: ArsClipperCommonModule }); }
3234
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ArsClipperCommonModule }); }
3233
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ArsClipperCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3234
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: ArsClipperCommonModule }); }
3235
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ArsClipperCommonModule }); }
3235
3236
  }
3236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ArsClipperCommonModule, decorators: [{
3237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: ArsClipperCommonModule, decorators: [{
3237
3238
  type: NgModule
3238
3239
  }] });
3239
3240