@sapphire-ion/framework 1.2.5 → 1.2.8

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.
@@ -9,7 +9,7 @@ export declare class StepComponent implements OnInit {
9
9
  get index(): number;
10
10
  get fill(): boolean;
11
11
  get selected(): boolean;
12
- get _fill(): 0 | 1;
12
+ get _fill(): 1 | 0;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<StepComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<StepComponent, "step", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["ion-icon, ion-text"], false, never>;
15
15
  }
@@ -1,4 +1,4 @@
1
- import { HttpClient, HttpEvent, HttpResponse } from '@angular/common/http';
1
+ import { HttpClient, HttpEvent, HttpEventType } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ApiUrlProviderService } from './api-url-provider.service';
4
4
  import { GenericService } from '../generic.service';
@@ -12,11 +12,17 @@ export declare class StorageService {
12
12
  GetProgress(file: string): number;
13
13
  StartDownload(file: string, params?: any, post?: boolean): Download;
14
14
  private HandleDownload;
15
- static SanitizeFileName(v: any): string;
15
+ static SanitizeFileName(v: string): string;
16
16
  GetFile(fileUrl: string, params?: any, post?: boolean): Observable<HttpEvent<Blob>>;
17
- GetFileResponse(fileUrl: string, params?: any, post?: boolean): Promise<HttpResponse<Blob>>;
18
- GetFileResponseBlob(path: string): Promise<Blob>;
19
- GetFileResponseBlobBatch(lstPath: string[]): Promise<GetFileResponse[]>;
17
+ /**
18
+ * @param lstFiles
19
+ * lista de arquivos a serem baixados
20
+ * @param onUpdate
21
+ * funcao chamada a cada progresso de download
22
+ * @returns
23
+ * lista de respostas dos arquivos, como promise, quando todos estiverem completos ou deram erro, é retornada
24
+ */
25
+ GetBlobBatchLiveReponse(lstFiles: string[], onUpdate: (totalProgress: number, lstResponse: LiveResponse[], eventType?: HttpEventType) => void): Promise<LiveResponse[]>;
20
26
  static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
21
27
  static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
22
28
  }
@@ -24,6 +30,13 @@ export interface GetFileResponse {
24
30
  path: string;
25
31
  blob?: Blob;
26
32
  }
33
+ export interface LiveResponse {
34
+ path: string;
35
+ observable: Observable<HttpEvent<Blob>>;
36
+ progress: number;
37
+ blob?: Blob;
38
+ success?: boolean;
39
+ }
27
40
  export declare class Download {
28
41
  file: string;
29
42
  requestProgess: Observable<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire-ion/framework",
3
- "version": "1.2.5",
3
+ "version": "1.2.8",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^18.2.8",