@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/bundles/sumaris-net.ngx-components.umd.js +45 -35
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +3 -0
- package/esm2015/src/app/core/icon/icon.component.js +1 -1
- package/esm2015/src/app/core/services/model/referential.model.js +2 -1
- package/esm2015/src/app/shared/file/csv.utils.js +5 -25
- package/esm2015/src/app/shared/file/file.utils.js +30 -1
- package/esm2015/src/app/shared/graph/colors.utils.js +1 -1
- package/esm2015/src/app/shared/help/help.modal.js +14 -7
- package/fesm2015/sumaris-net.ngx-components.js +45 -28
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/icon/icon.component.d.ts +3 -2
- package/src/app/core/services/model/referential.model.d.ts +2 -0
- package/src/app/shared/file/csv.utils.d.ts +1 -0
- package/src/app/shared/file/file.utils.d.ts +5 -0
- package/src/app/shared/help/help.modal.d.ts +4 -3
- package/sumaris-net.ngx-components.metadata.json +1 -1
- package/esm2015/src/app/shared/colors.utils.js +0 -2
- package/src/app/shared/colors.utils.d.ts +0 -3
package/package.json
CHANGED
|
@@ -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:
|
|
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;
|
|
@@ -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
|
-
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
close(event?: UIEvent): Promise<boolean>;
|
|
28
29
|
markAsLoaded(): void;
|
|
29
30
|
onLoadError(error?: string): void;
|
|
30
31
|
}
|