@sumaris-net/ngx-components 18.6.21 → 18.6.23

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.6.21",
4
+ "version": "18.6.23",
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;
@@ -9,7 +9,7 @@ import { EntitiesStorage } from './storage/entities-storage.service';
9
9
  import { ShowToastOptions } from '../../shared/toast/toasts';
10
10
  import { TranslateService } from '@ngx-translate/core';
11
11
  import { AccountService } from './account.service';
12
- import { Observable } from 'rxjs';
12
+ import { BehaviorSubject, Observable } from 'rxjs';
13
13
  import { Environment } from '../../../environments/environment.class';
14
14
  import { ConfigService } from './config.service';
15
15
  import { MomentDateAdapter } from '@angular/material-moment-adapter';
@@ -47,6 +47,7 @@ export declare class PlatformService extends StartableService {
47
47
  private _capacitor;
48
48
  private _android;
49
49
  private _ios;
50
+ busySubject: BehaviorSubject<boolean>;
50
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);
51
52
  private _downloadingJobs;
52
53
  private checkAppVersionTimer;
@@ -78,6 +79,11 @@ export declare class PlatformService extends StartableService {
78
79
  width(): number;
79
80
  height(): number;
80
81
  protected ngOnStart(): Promise<any>;
82
+ /**
83
+ * Used to show a backdrop when platform is busy (e.g. from the app.component.ts)
84
+ */
85
+ markAsBusy(): void;
86
+ markAsNotBusy(): void;
81
87
  open(url: string, opts?: Omit<OpenOptions, 'url'>): Promise<void>;
82
88
  getDownloadingJob(uri: string): Observable<string>;
83
89
  download(request: {
@@ -17,7 +17,7 @@ export interface InputElement extends FocusableElement {
17
17
  }
18
18
  export declare function isInputElement(object: any): object is InputElement;
19
19
  export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
20
- export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
20
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | 0 | -1;
21
21
  export interface CanGainFocusOptions {
22
22
  minTabindex?: number;
23
23
  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.6.21",
5
+ "version": "18.6.23",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -39,6 +39,16 @@
39
39
  display: inherit;
40
40
  }
41
41
 
42
+ // --- Avoid use selection of tab labels
43
+ .mat-mdc-tab-label,
44
+ .mat-mdc-tab-link {
45
+ -webkit-user-select: none;
46
+ -moz-user-select: none;
47
+ -ms-user-select: none;
48
+ user-select: none;
49
+ }
50
+
51
+
42
52
  // --- Dark mode
43
53
  .dark {
44
54
  .mat-mdc-tab-group, .mat-mdc-tab-nav-bar {
@@ -71,3 +81,4 @@
71
81
  }
72
82
  }
73
83
  }
84
+