@sumaris-net/ngx-components 2.6.28 → 2.6.30

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.6.28",
4
+ "version": "2.6.30",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -24,6 +24,11 @@
24
24
  "localforage": "~1.10.0",
25
25
  "rxjs": "^7.5.7"
26
26
  },
27
+ "optionalDependencies": {
28
+ "@ionic-native/audio-management": "^5.36.0",
29
+ "@ionic-native/core": "^5.36.0",
30
+ "@ionic-native/downloader": "^5.36.0"
31
+ },
27
32
  "repository": {
28
33
  "type": "git",
29
34
  "url": "https://gitlab.ifremer.fr/sih-public/sumaris/ngx-sumaris-components.git"
@@ -26,7 +26,6 @@ export declare const APP_LOCAL_SETTINGS: InjectionToken<Partial<LocalSettings>>;
26
26
  export declare const APP_LOCAL_SETTINGS_OPTIONS: InjectionToken<LocalSettingsOptions>;
27
27
  export declare class LocalSettingsService extends StartableService<LocalSettings> {
28
28
  private translate;
29
- private platform;
30
29
  private storage;
31
30
  protected readonly environment: Environment;
32
31
  private readonly defaultSettings;
@@ -41,7 +40,7 @@ export declare class LocalSettingsService extends StartableService<LocalSettings
41
40
  get mobile(): boolean;
42
41
  set mobile(value: boolean);
43
42
  get pageHistory(): HistoryPageReference[];
44
- constructor(translate: TranslateService, platform: Platform, storage: Storage, environment: Environment, defaultSettings: LocalSettings, options: LocalSettingsOptions);
43
+ constructor(platform: Platform, translate: TranslateService, storage: Storage, environment: Environment, defaultSettings: LocalSettings, options: LocalSettingsOptions);
45
44
  ngOnStart(): Promise<LocalSettings>;
46
45
  isUsageMode(mode: UsageMode): boolean;
47
46
  isOnFieldMode(value?: UsageMode): boolean;
@@ -4,7 +4,7 @@ import { TableDataSource, TableElement } from '@e-is/ngx-material-table';
4
4
  import { Environment } from '../../../../environments/environment.class';
5
5
  import { ImageService } from '../image.service';
6
6
  import { Image } from '../image.model';
7
- import { AlertController, IonModal, IonPopover, Platform, PopoverController } from '@ionic/angular';
7
+ import { AlertController, IonModal, IonPopover, Platform } from '@ionic/angular';
8
8
  import { CollectionViewer, ListRange } from '@angular/cdk/collections';
9
9
  import { TranslateService } from '@ngx-translate/core';
10
10
  import { AppColors } from '../../types';
@@ -21,24 +21,23 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
21
21
  protected image: ImageService;
22
22
  protected platform: Platform;
23
23
  protected alterCtrl: AlertController;
24
- protected popoverCtrl: PopoverController;
25
24
  protected translate: TranslateService;
26
25
  protected cd: ChangeDetectorRef;
27
26
  protected _destroySubject: Subject<void>;
28
27
  protected _renderChangeSubscription: Subscription;
29
28
  protected _subscription: Subscription;
30
29
  protected _dataSource: TableDataSource<T>;
31
- protected _data: TableElement<T>[];
30
+ protected _data$: BehaviorSubject<readonly TableElement<T>[] | TableElement<T>[]>;
32
31
  protected _colSize: number;
33
32
  protected _selectedRowIndex: number;
34
33
  protected _presentingElement: Element;
35
34
  protected _titleForm: FormGroup;
36
35
  protected _titleAutofocus: boolean;
37
36
  protected _slidesSubscription: Subscription;
38
- protected swiperModules: ((opts: any) => void)[];
39
37
  protected _swiper: Swiper;
40
- zoomActive: boolean;
41
- zoomScale: number;
38
+ protected swiperModules: ((opts: any) => void)[];
39
+ protected zoomActive: boolean;
40
+ protected zoomScale: number;
42
41
  viewChange: BehaviorSubject<ListRange>;
43
42
  cardColor: string | PredefinedColors;
44
43
  debug: boolean;
@@ -55,7 +54,7 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
55
54
  set dataSource(dataSource: TableDataSource<T>);
56
55
  get dataSource(): TableDataSource<T>;
57
56
  get enabled(): boolean;
58
- get rows(): TableElement<T>[];
57
+ get rows(): TableElement<T>[] | ReadonlyArray<TableElement<T>>;
59
58
  get rowCount(): number;
60
59
  get activeIndex(): number;
61
60
  zoomModal: IonModal;
@@ -65,7 +64,8 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
65
64
  rows: TableElement<T>[];
66
65
  }>>;
67
66
  onAfterAddRows: EventEmitter<TableElement<T>[]>;
68
- constructor(image: ImageService, platform: Platform, alterCtrl: AlertController, popoverCtrl: PopoverController, translate: TranslateService, cd: ChangeDetectorRef, environment?: Environment);
67
+ onAfterEditRow: EventEmitter<TableElement<T>>;
68
+ constructor(image: ImageService, platform: Platform, alterCtrl: AlertController, translate: TranslateService, cd: ChangeDetectorRef, environment?: Environment);
69
69
  ngOnInit(): void;
70
70
  ngAfterContentChecked(): void;
71
71
  ngOnDestroy(): void;
@@ -93,6 +93,6 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
93
93
  interactive?: boolean;
94
94
  }): Promise<boolean>;
95
95
  protected markForCheck(): void;
96
- static ɵfac: i0.ɵɵFactoryDeclaration<AppImageGalleryComponent<any>, [null, null, null, null, null, null, { optional: true; }]>;
97
- static ɵcmp: i0.ɵɵComponentDeclaration<AppImageGalleryComponent<any>, "app-image-gallery", never, { "cardColor": "cardColor"; "debug": "debug"; "disabled": "disabled"; "readOnly": "readOnly"; "mobile": "mobile"; "mode": "mode"; "confirmBeforeDelete": "confirmBeforeDelete"; "showToolbar": "showToolbar"; "showFabButton": "showFabButton"; "showTitle": "showTitle"; "showAddCardButton": "showAddCardButton"; "addButtonColor": "addButtonColor"; "dataSource": "dataSource"; }, { "onBeforeDeleteRows": "onBeforeDeleteRows"; "onAfterAddRows": "onAfterAddRows"; }, never, never, false>;
96
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppImageGalleryComponent<any>, [null, null, null, null, null, { optional: true; }]>;
97
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppImageGalleryComponent<any>, "app-image-gallery", never, { "cardColor": "cardColor"; "debug": "debug"; "disabled": "disabled"; "readOnly": "readOnly"; "mobile": "mobile"; "mode": "mode"; "confirmBeforeDelete": "confirmBeforeDelete"; "showToolbar": "showToolbar"; "showFabButton": "showFabButton"; "showTitle": "showTitle"; "showAddCardButton": "showAddCardButton"; "addButtonColor": "addButtonColor"; "dataSource": "dataSource"; }, { "onBeforeDeleteRows": "onBeforeDeleteRows"; "onAfterAddRows": "onAfterAddRows"; "onAfterEditRow": "onAfterEditRow"; }, never, never, false>;
98
98
  }
@@ -7,8 +7,9 @@ import * as i5 from "../../material/material.module";
7
7
  import * as i6 from "../../pipes/pipes.module";
8
8
  import * as i7 from "../../directives/directives.module";
9
9
  import * as i8 from "@ngx-translate/core";
10
+ import * as i9 from "@rx-angular/template/for";
10
11
  export declare class ImageGalleryModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageGalleryModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<ImageGalleryModule, [typeof i1.AppImageGalleryComponent], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedMaterialModule, typeof i6.SharedPipesModule, typeof i7.SharedDirectivesModule, typeof i8.TranslateModule], [typeof i3.IonicModule, typeof i8.TranslateModule, typeof i1.AppImageGalleryComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ImageGalleryModule, [typeof i1.AppImageGalleryComponent], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedMaterialModule, typeof i6.SharedPipesModule, typeof i7.SharedDirectivesModule, typeof i8.TranslateModule, typeof i9.ForModule], [typeof i3.IonicModule, typeof i8.TranslateModule, typeof i1.AppImageGalleryComponent]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<ImageGalleryModule>;
14
15
  }
@@ -5,8 +5,9 @@ import * as i3 from "@ionic/angular";
5
5
  import * as i4 from "../image-gallery.module";
6
6
  import * as i5 from "@ngx-translate/core";
7
7
  import * as i6 from "@angular/router";
8
+ import * as i7 from "../../../debug/debug.module";
8
9
  export declare class ImageGalleryTestingModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageGalleryTestingModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<ImageGalleryTestingModule, [typeof i1.GalleryTestPage], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ImageGalleryModule, typeof i5.TranslateModule, typeof i6.RouterModule, typeof i5.TranslateModule], [typeof i6.RouterModule, typeof i1.GalleryTestPage]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ImageGalleryTestingModule, [typeof i1.GalleryTestPage], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ImageGalleryModule, typeof i5.TranslateModule, typeof i6.RouterModule, typeof i5.TranslateModule, typeof i7.SharedDebugModule], [typeof i6.RouterModule, typeof i1.GalleryTestPage]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<ImageGalleryTestingModule>;
12
13
  }
@@ -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.6.28",
5
+ "version": "2.6.30",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{