@sumaris-net/ngx-components 1.20.6 → 1.20.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": "1.20.6",
4
+ "version": "1.20.9",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,9 +1,10 @@
1
- import { AppColors } from '../../shared/colors.utils';
2
1
  import { IconRef } from '../../shared/types';
2
+ import { PredefinedColors } from '@ionic/core';
3
+ import { ThemePalette } from '@angular/material/core';
3
4
  export declare class AppIconComponent {
4
5
  icon: string;
5
6
  matIcon: string;
6
7
  matSvgIcon: string;
7
- color: AppColors;
8
+ color: PredefinedColors | ThemePalette;
8
9
  set ref(value: IconRef);
9
10
  }
@@ -12,6 +12,7 @@ export declare const StatusById: Readonly<import("../../../shared/types").KeyVal
12
12
  export declare interface IReferentialRef<T extends IEntity<T, ID> = IEntity<any, any>, ID = number> extends IEntity<T, ID> {
13
13
  label: string;
14
14
  name: string;
15
+ description?: string;
15
16
  levelId?: number;
16
17
  statusId: number;
17
18
  entityName: string;
@@ -56,6 +57,7 @@ export declare class ReferentialRef<T extends ReferentialRef<any, ID> = Referent
56
57
  static fromObject: (source: any, opts?: any) => ReferentialRef;
57
58
  label: string;
58
59
  name: string;
60
+ description: string;
59
61
  statusId: number;
60
62
  levelId: number;
61
63
  entityName: string;
@@ -6,6 +6,7 @@ export declare class CsvUtils {
6
6
  headers?: string[];
7
7
  separator?: string;
8
8
  encoding?: string;
9
+ type?: string;
9
10
  }): void;
10
11
  static parseFile(file: File, opts?: {
11
12
  separator?: string;
@@ -10,4 +10,9 @@ export declare class FilesUtils {
10
10
  static UTF8_BOM_CHAR: Uint8Array;
11
11
  static showUploadPopover<T>(popoverController: PopoverController, event: UIEvent, opts: UploadFilePopoverOptions<T>): Promise<OverlayEventDetail<UploadFile<T>[]>>;
12
12
  static readAsText(file: File, encoding?: string): Observable<FileEvent<string>>;
13
+ static writeTextToFile(content: string, opts?: {
14
+ filename?: string;
15
+ encoding?: string;
16
+ type?: string;
17
+ }): void;
13
18
  }
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, Injector } from '@angular/core';
1
+ import { ChangeDetectorRef, Injector, OnInit } from '@angular/core';
2
2
  import { ModalController } from '@ionic/angular';
3
3
  import { PlatformService } from '../../core/services/platform.service';
4
4
  import { LocalSettingsService } from '../../core/services/local-settings.service';
@@ -9,7 +9,7 @@ export interface AppHelpModalOptions {
9
9
  docUrl?: string;
10
10
  showError?: boolean;
11
11
  }
12
- export declare class AppHelpModal implements AppHelpModalOptions {
12
+ export declare class AppHelpModal implements AppHelpModalOptions, OnInit {
13
13
  protected injector: Injector;
14
14
  protected viewCtrl: ModalController;
15
15
  protected platform: PlatformService;
@@ -24,7 +24,8 @@ export declare class AppHelpModal implements AppHelpModalOptions {
24
24
  docUrl: string;
25
25
  showError: boolean;
26
26
  constructor(injector: Injector, viewCtrl: ModalController, platform: PlatformService, settings: LocalSettingsService, translate: TranslateService, cd: ChangeDetectorRef);
27
- close(event?: UIEvent): Promise<void>;
27
+ ngOnInit(): void;
28
+ close(event?: UIEvent): Promise<boolean>;
28
29
  markAsLoaded(): void;
29
30
  onLoadError(error?: string): void;
30
31
  }