ichec-angular-core 0.3.6 → 0.3.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ichec-angular-core",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "exports": {
5
5
  "./styles/": "./styles",
6
6
  "./package.json": {
@@ -1,5 +1,6 @@
1
1
  import * as _angular_forms from '@angular/forms';
2
2
  import { FormGroup, FormControl, FormArray, FormBuilder, AbstractControl } from '@angular/forms';
3
+ import * as ichec_angular_core from 'ichec-angular-core';
3
4
  import { BehaviorSubject, Observable } from 'rxjs';
4
5
  import { HttpClient, HttpParams, HttpHeaders, HttpErrorResponse } from '@angular/common/http';
5
6
  import * as _angular_core from '@angular/core';
@@ -9,7 +10,6 @@ import { Location } from '@angular/common';
9
10
  import { ActivatedRoute } from '@angular/router';
10
11
  import { MatDialog } from '@angular/material/dialog';
11
12
  import { MatTable } from '@angular/material/table';
12
- import * as ichec_angular_core from 'ichec-angular-core';
13
13
  import { MatSort } from '@angular/material/sort';
14
14
  import { MatButtonToggleChange } from '@angular/material/button-toggle';
15
15
  import { DataSource, CollectionViewer, ListRange } from '@angular/cdk/collections';
@@ -348,9 +348,11 @@ interface IServerManifest {
348
348
  declare const REST_SERVICE_CONFIG: InjectionToken<RestServiceConfig>;
349
349
  declare class RestService<D extends Identifiable, L extends Identifiable = D, C = D, U extends Identifiable = D> {
350
350
  manifest: BehaviorSubject<IServerManifest | null>;
351
+ loggedInUser: BehaviorSubject<ichec_angular_core.IPortalMemberList | null>;
351
352
  readonly _url: string;
352
353
  readonly userQuery = "user";
353
354
  config: RestServiceConfig;
355
+ protected document: Document;
354
356
  protected _http: HttpClient;
355
357
  protected cookieService: CookieService;
356
358
  deleteItem(id: number): Observable<void>;
@@ -371,7 +373,7 @@ declare class RestService<D extends Identifiable, L extends Identifiable = D, C
371
373
  private getHeaders;
372
374
  protected get baseUrl(): string;
373
375
  private get mediaUrl();
374
- protected getRequestBase(content_type?: string, params?: HttpParams, file?: string): IRequestBase;
376
+ protected getRequestBase(content_type?: string, params?: HttpParams, file?: string, xhr?: boolean): IRequestBase;
375
377
  handleError(error: HttpErrorResponse): Observable<never>;
376
378
  }
377
379
 
@@ -391,18 +393,20 @@ declare class ResolvedPermission {
391
393
  canView: boolean;
392
394
  canDelete: boolean;
393
395
  }
396
+ interface ILogoutManifest {
397
+ url: string;
398
+ }
394
399
  declare class UserService extends ItemService<IPortalMemberDetail, IPortalMemberList, IPortalMemberCreate> {
395
400
  /**
396
401
  Service to handle IPortalMember via REST and also handle logins.
397
402
  */
398
- loggedInUser: BehaviorSubject<IPortalMemberList | null>;
399
403
  canInvite: _angular_core.WritableSignal<boolean>;
400
- private document;
401
404
  readonly _url: string;
402
405
  typename: string;
403
406
  private permissions;
404
407
  login(next?: string): void;
405
408
  logout(next?: string): void;
409
+ _logout_redirect(manifest: ILogoutManifest): void;
406
410
  canCreate(): boolean;
407
411
  getSelf(): Observable<IPortalMemberDetail | null>;
408
412
  inviteMember(invite: IMemberInvitation): Observable<IMemberInvitation>;