@sumaris-net/ngx-components 18.24.10 → 18.24.12

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "18.24.10",
4
+ "version": "18.24.12",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -39,6 +39,7 @@ export declare class CryptoService {
39
39
  */
40
40
  static sha512(message: string): string;
41
41
  static encodeBase64(message: string): string;
42
+ static decodeBase64(message: string): Uint8Array;
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<CryptoService, never>;
43
44
  static ɵprov: i0.ɵɵInjectableDeclaration<CryptoService>;
44
45
  }
@@ -33,4 +33,10 @@ export declare class ImagesUtils {
33
33
  static readAndResizeFromUrl(fileUrl: string, opts?: ImageResizeOptions): Promise<string>;
34
34
  static resizeBase64(dataUrl: string, opts?: ImageResizeOptions): Promise<string>;
35
35
  protected static createImageOnLoadResizeFn(resolve: any, reject: any, opts?: ImageResizeOptions): (event: any) => void;
36
+ static getBase64MimeType(base64: string): string | undefined;
37
+ static getMimeTypeFileExtension(mimeType: string): string | undefined;
38
+ static writeBase64ToFile(base64: string, opts?: {
39
+ type?: string;
40
+ filename?: string;
41
+ }): File;
36
42
  }
@@ -24,6 +24,7 @@ export declare class ImageService extends StartableService {
24
24
  multiple?: boolean;
25
25
  autoHideDropArea?: boolean;
26
26
  style?: 'camera' | 'upload-popover' | 'auto';
27
+ uploadButtonText?: string;
27
28
  } & Omit<ImageOptions, 'resultType'>): Promise<Image[] | undefined>;
28
29
  protected addUploadedImages(event?: Event, opts?: {
29
30
  maxHeight?: number;
@@ -31,6 +32,7 @@ export declare class ImageService extends StartableService {
31
32
  quality?: number;
32
33
  multiple?: boolean;
33
34
  autoHideDropArea?: boolean;
35
+ uploadButtonText?: string;
34
36
  }): Promise<Image[] | undefined>;
35
37
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageService, [null, null, null, null, { optional: true; }]>;
36
38
  static ɵprov: i0.ɵɵInjectableDeclaration<ImageService>;
@@ -18,7 +18,7 @@ export interface InputElement extends FocusableElement {
18
18
  }
19
19
  export declare function isInputElement(object: any): object is InputElement;
20
20
  export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
21
- export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
21
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | 0 | -1;
22
22
  export interface CanGainFocusOptions {
23
23
  minTabindex?: number;
24
24
  maxTabindex?: number;
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "18.24.10",
5
+ "version": "18.24.12",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{