@sumaris-net/ngx-components 18.24.8 → 18.24.9

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.8",
4
+ "version": "18.24.9",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -46,7 +46,7 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
46
46
  download(event: Event, link: InstallAppLink): Promise<void>;
47
47
  openFile(event: Event, link: InstallAppLink): Promise<void>;
48
48
  tryOnline(): Promise<void>;
49
- getPlatformName(platform: 'android' | 'ios' | 'electron'): "" | "desktop" | "Android" | "iOS";
49
+ getPlatformName(platform: 'android' | 'ios' | 'electron'): "desktop" | "" | "Android" | "iOS";
50
50
  asLink(value: any): InstallAppLink;
51
51
  private checkNeedInstallOrUpdate;
52
52
  private getCompatibleInstallLinks;
@@ -40,6 +40,7 @@ export declare class PlatformService extends StartableService {
40
40
  private audioProvider;
41
41
  protected environment: Environment;
42
42
  private downloader;
43
+ protected appBaseHref: string;
43
44
  private _logger;
44
45
  private _mobile;
45
46
  private _desktop;
@@ -48,7 +49,7 @@ export declare class PlatformService extends StartableService {
48
49
  private _android;
49
50
  private _ios;
50
51
  busySubject: BehaviorSubject<boolean>;
51
- constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, cdkClipboard: CdkClipboard, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, audioProvider: AudioProvider, environment: Environment, loggingService: ILoggingService, downloader: Downloader);
52
+ constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, cdkClipboard: CdkClipboard, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, audioProvider: AudioProvider, environment: Environment, loggingService: ILoggingService, downloader: Downloader, appBaseHref: string);
52
53
  private _downloadingJobs;
53
54
  private checkAppVersionTimer;
54
55
  is(platformName: Platforms): boolean;
@@ -121,6 +122,6 @@ export declare class PlatformService extends StartableService {
121
122
  silent?: boolean;
122
123
  }): Promise<void>;
123
124
  protected onStartupError(err: any): Promise<void>;
124
- static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
125
126
  static ɵprov: i0.ɵɵInjectableDeclaration<PlatformService>;
126
127
  }
@@ -13,6 +13,8 @@ export interface UploadFilePopoverOptions<T> {
13
13
  fileExtension?: string;
14
14
  maxParallelUpload?: number;
15
15
  autoHideDropArea?: boolean;
16
+ importButtonText?: string;
17
+ cancelButtonText?: string;
16
18
  }
17
19
  export declare class UploadFilePopover implements UploadFilePopoverOptions<any> {
18
20
  protected popoverController: PopoverController;
@@ -27,6 +29,8 @@ export declare class UploadFilePopover implements UploadFilePopoverOptions<any>
27
29
  deleteFn: FileDeleteFn<any>;
28
30
  maxParallelUpload: number;
29
31
  autoHideDropArea: boolean;
32
+ okButtonText: string;
33
+ cancelButtonText: string;
30
34
  importing: boolean;
31
35
  error: string;
32
36
  get files(): UploadFile<any>[];
@@ -37,5 +41,5 @@ export declare class UploadFilePopover implements UploadFilePopoverOptions<any>
37
41
  cancel(): Promise<boolean>;
38
42
  protected resetError(): void;
39
43
  static ɵfac: i0.ɵɵFactoryDeclaration<UploadFilePopover, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<UploadFilePopover, "app-upload-file-popover", never, { "fileExtension": { "alias": "fileExtension"; "required": false; }; "title": { "alias": "title"; "required": false; }; "uniqueFile": { "alias": "uniqueFile"; "required": false; }; "instantUpload": { "alias": "instantUpload"; "required": false; }; "uploadFn": { "alias": "uploadFn"; "required": false; }; "deleteFn": { "alias": "deleteFn"; "required": false; }; "maxParallelUpload": { "alias": "maxParallelUpload"; "required": false; }; "autoHideDropArea": { "alias": "autoHideDropArea"; "required": false; }; }, {}, never, never, false, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadFilePopover, "app-upload-file-popover", never, { "fileExtension": { "alias": "fileExtension"; "required": false; }; "title": { "alias": "title"; "required": false; }; "uniqueFile": { "alias": "uniqueFile"; "required": false; }; "instantUpload": { "alias": "instantUpload"; "required": false; }; "uploadFn": { "alias": "uploadFn"; "required": false; }; "deleteFn": { "alias": "deleteFn"; "required": false; }; "maxParallelUpload": { "alias": "maxParallelUpload"; "required": false; }; "autoHideDropArea": { "alias": "autoHideDropArea"; "required": false; }; "okButtonText": { "alias": "okButtonText"; "required": false; }; "cancelButtonText": { "alias": "cancelButtonText"; "required": false; }; }, {}, never, never, false, never>;
41
45
  }
@@ -4,23 +4,11 @@ export declare class VersionUtils {
4
4
  static isSame: typeof isSameVersion;
5
5
  }
6
6
  /**
7
- * Compare two software version numbers (e.g. 1.7.1)
8
- * Returns:
9
- *
10
- * 0 if they're identical
11
- * negative if v1 < v2
12
- * positive if v1 > v2
13
- * Nan if they in the wrong format
14
- *
15
- * E.g.:
16
- *
17
- * assert(version_number_compare("1.7.1", "1.6.10") > 0);
18
- * assert(version_number_compare("1.7.1", "1.7.10") < 0);
19
- *
20
- * "Unit tests": http://jsfiddle.net/ripper234/Xv9WL/28/
21
- *
22
- * Taken from http://stackoverflow.com/a/6832721/11236
7
+ * Compares two Semantic Versioning 2.0.0 strings
8
+ * @param {string} v1 - First version string
9
+ * @param {string} v2 - Second version string
10
+ * @returns {number} -1 if v1 < v2, 0 if equal, 1 if v1 > v2
23
11
  */
24
- export declare function compareVersionNumbers(v1: any, v2: any): number;
12
+ export declare function compareVersionNumbers(v1: string, v2: string, comparePrerelease?: boolean): number;
25
13
  export declare function isVersionCompatible(minVersion: any, actualVersion: any): boolean;
26
14
  export declare function isSameVersion(v1: any, v2: any): boolean;
@@ -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.8",
5
+ "version": "18.24.9",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{