@solidpepper/solidpepper-service 1.0.0 → 1.0.1

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/index.d.ts CHANGED
@@ -2,10 +2,10 @@ import { HttpClient } from '@angular/common/http';
2
2
  import * as rxjs from 'rxjs';
3
3
  import { Observable } from 'rxjs';
4
4
  import * as i0 from '@angular/core';
5
- import { NgZone, PipeTransform, OnInit, OnChanges, ElementRef, Renderer2, SimpleChanges } from '@angular/core';
5
+ import { NgZone, TemplateRef, ViewContainerRef, PipeTransform, OnInit, OnChanges, ElementRef, Renderer2, SimpleChanges } from '@angular/core';
6
6
  import { Router } from '@angular/router';
7
7
  import { TranslateService as TranslateService$1 } from '@ngx-translate/core';
8
- import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
8
+ import { MatDialog } from '@angular/material/dialog';
9
9
  import * as signalR from '@aspnet/signalr';
10
10
  import * as _angular_material_sidenav from '@angular/material/sidenav';
11
11
  import { MatSidenav } from '@angular/material/sidenav';
@@ -258,13 +258,13 @@ declare class AuthService {
258
258
  private http;
259
259
  private _settingsService;
260
260
  private _companies;
261
- private modalService;
261
+ private dialog;
262
262
  private _webSocket;
263
263
  private tokenPotential;
264
264
  private accountSetting;
265
265
  private authenticateObjectWithRight;
266
266
  closeModal: string;
267
- constructor(myRoute: Router, http: HttpClient, _settingsService: SettingsService, _companies: CompaniesService, modalService: NgbModal, _webSocket: websocketService);
267
+ constructor(myRoute: Router, http: HttpClient, _settingsService: SettingsService, _companies: CompaniesService, dialog: MatDialog, _webSocket: websocketService);
268
268
  getAccountSetting(): any;
269
269
  setAccountSetting(accountSetting: any): void;
270
270
  sendToken(token: string): void;
@@ -279,9 +279,8 @@ declare class AuthService {
279
279
  }): void;
280
280
  getRightFromApi(): rxjs.Observable<Object>;
281
281
  getRighFromAngularService(rightName: string | number): any;
282
- triggerModal(content: any): Promise<any>;
282
+ triggerModal(content: TemplateRef<any>, viewContainerRef?: ViewContainerRef): Promise<any>;
283
283
  closeAllModal(): void;
284
- private getDismissReason;
285
284
  isLoggedIn(): boolean;
286
285
  getPermissions(): string;
287
286
  checkErrorApiCall(error: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidpepper/solidpepper-service",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Services d'accès aux APIs Solidpepper",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.0",