@sumaris-net/ngx-components 2.7.5-rc17 → 2.7.5-rc19

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": "2.7.5-rc17",
4
+ "version": "2.7.5-rc19",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -20,7 +20,7 @@ export declare class NewTokenModal extends AppEntityEditorModal<UserToken> imple
20
20
  tokenConfig: MatAutocompleteFieldConfig;
21
21
  tokenScopes: TokenScope[];
22
22
  existingNames: string[];
23
- private readonly clipboard;
23
+ private readonly platform;
24
24
  constructor(injector: Injector, validator: UserTokenValidatorService, accountService: AccountService);
25
25
  get valid(): boolean;
26
26
  get invalid(): boolean;
@@ -1,12 +1,14 @@
1
1
  import { PopoverController, ToastController } from '@ionic/angular';
2
2
  import { TextPopoverOptions } from '../text-popover.component';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
+ import { PlatformService } from '../../../services/platform.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class TextPopoverTestingPage {
6
7
  private popoverController;
7
8
  private toastController;
8
9
  private translate;
9
- constructor(popoverController: PopoverController, toastController: ToastController, translate: TranslateService);
10
+ private platform;
11
+ constructor(popoverController: PopoverController, toastController: ToastController, translate: TranslateService, platform: PlatformService);
10
12
  showPopover(event: Event, opts?: Partial<TextPopoverOptions>): Promise<void>;
11
13
  protected showSharePopoverWithButtons(event: UIEvent, opts?: Partial<TextPopoverOptions>): Promise<void>;
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TextPopoverTestingPage, never>;
@@ -17,6 +17,8 @@ import { Downloader, DownloadRequest } from '@ionic-native/downloader/ngx';
17
17
  import { StartableService } from '../../shared/services/startable-service.class';
18
18
  import { OpenOptions } from '@capacitor/browser';
19
19
  import { ILoggingService } from '../../shared/logging/logger.model';
20
+ import { Clipboard as CdkClipboard } from '@angular/cdk/clipboard';
21
+ import { WriteOptions } from '@capacitor/clipboard/dist/esm/definitions';
20
22
  import * as i0 from "@angular/core";
21
23
  export declare const AndroidOsEnvironment: Readonly<{
22
24
  DIRECTORY_DOWNLOADS: "Download";
@@ -25,6 +27,7 @@ export declare const AndroidOsEnvironment: Readonly<{
25
27
  export declare class PlatformService extends StartableService {
26
28
  private ionicPlatform;
27
29
  private cdkPlatform;
30
+ private cdkClipboard;
28
31
  private toastController;
29
32
  private translate;
30
33
  private dateAdapter;
@@ -44,7 +47,7 @@ export declare class PlatformService extends StartableService {
44
47
  private _capacitor;
45
48
  private _android;
46
49
  private _ios;
47
- constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, 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);
50
+ 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);
48
51
  private _downloadingJobs;
49
52
  private checkAppVersionTimer;
50
53
  is(platformName: Platforms): boolean;
@@ -79,6 +82,7 @@ export declare class PlatformService extends StartableService {
79
82
  uri: string;
80
83
  filename?: string;
81
84
  } & Partial<DownloadRequest>): Observable<string | undefined>;
85
+ copyToClipboard(data: string | WriteOptions, opts?: ShowToastOptions): Promise<void>;
82
86
  protected configureGlobalCssClass(mobile: boolean, win?: any): void;
83
87
  protected configureCapacitorPlugins(): Promise<void>;
84
88
  protected configureTranslate(): void;
@@ -90,6 +94,6 @@ export declare class PlatformService extends StartableService {
90
94
  }): Promise<void>;
91
95
  protected showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
92
96
  protected onStartupError(err: any): Promise<void>;
93
- static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, [null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
97
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
94
98
  static ɵprov: i0.ɵɵInjectableDeclaration<PlatformService>;
95
99
  }
@@ -16,7 +16,7 @@ export interface InputElement extends FocusableElement {
16
16
  }
17
17
  export declare function isInputElement(object: any): object is InputElement;
18
18
  export declare function asInputElement(object: ElementRef): InputElement | undefined;
19
- export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
19
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | 0 | -1;
20
20
  export interface CanGainFocusOptions {
21
21
  minTabindex?: number;
22
22
  maxTabindex?: number;
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectorRef, InjectionToken, OnInit } from '@angular/core';
2
- import { AlertController, IonModal, Platform, ToastController } from '@ionic/angular';
2
+ import { AlertController, IonModal, ToastController } from '@ionic/angular';
3
3
  import { BehaviorSubject } from 'rxjs';
4
4
  import { IStorage } from './storage.utils';
5
5
  import { IDebugDataService } from '../debug/debug-service.class';
@@ -8,6 +8,7 @@ import { Environment } from '../../../environments/environment.class';
8
8
  import { Log, LogUtils } from '../logging/logger.model';
9
9
  import { MomentDateAdapter } from '@angular/material-moment-adapter';
10
10
  import { LogLevel } from '../logging/log-level.model';
11
+ import { PlatformService } from '../../core/services/platform.service';
11
12
  import * as i0 from "@angular/core";
12
13
  interface StorageItemInfo {
13
14
  key: string;
@@ -16,7 +17,7 @@ interface StorageItemInfo {
16
17
  }
17
18
  export declare const APP_STORAGE_EXPLORER_PROTECTED_KEYS: InjectionToken<string[]>;
18
19
  export declare class StorageExplorerComponent implements OnInit {
19
- protected platform: Platform;
20
+ protected platform: PlatformService;
20
21
  protected toastController: ToastController;
21
22
  protected alertCtrl: AlertController;
22
23
  protected translate: TranslateService;
@@ -37,7 +38,7 @@ export declare class StorageExplorerComponent implements OnInit {
37
38
  showSendButton: boolean;
38
39
  sendDataModal: IonModal;
39
40
  viewDataModal: IonModal;
40
- constructor(platform: Platform, toastController: ToastController, alertCtrl: AlertController, translate: TranslateService, dateAdapter: MomentDateAdapter, cd: ChangeDetectorRef, storage: IStorage, environment: Environment, debugDataService: IDebugDataService, _protectedKeys: string[]);
41
+ constructor(platform: PlatformService, toastController: ToastController, alertCtrl: AlertController, translate: TranslateService, dateAdapter: MomentDateAdapter, cd: ChangeDetectorRef, storage: IStorage, environment: Environment, debugDataService: IDebugDataService, _protectedKeys: string[]);
41
42
  ngOnInit(): void;
42
43
  sendDataClick(event: Event, key: string): Promise<void>;
43
44
  viewDataClick(event: Event, key: string): Promise<void>;
@@ -26,7 +26,9 @@ export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy
26
26
  private _defaultBackHref;
27
27
  private _backHref;
28
28
  protected readonly progressBarMode$: BehaviorSubject<ProgressBarMode>;
29
+ protected showSearchBar: boolean;
29
30
  set progressBarMode(value: ProgressBarMode);
31
+ get progressBarMode(): ProgressBarMode;
30
32
  title: string;
31
33
  color: AppColors;
32
34
  class: string;
@@ -44,7 +46,6 @@ export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy
44
46
  onValidateAndClose: EventEmitter<Event>;
45
47
  onBackClick: EventEmitter<Event>;
46
48
  onSearch: EventEmitter<CustomEvent<ISearchbarSearchbarChangeEventDetail>>;
47
- showSearchBar: boolean;
48
49
  searchbar: IonSearchbar;
49
50
  menuToggle: IonMenuToggle;
50
51
  constructor(route: ActivatedRoute, router: Router, navController: NavController, routerOutlet: IonRouterOutlet, cd: ChangeDetectorRef, progressBarService: IProgressBarService);
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "2.7.5-rc14",
5
+ "version": "2.7.5-rc19",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{