@sumaris-net/ngx-components 2.4.30 → 2.4.32
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/doc/changelog.md +10 -0
- package/esm2020/src/app/shared/dates.mjs +1 -1
- package/esm2020/src/app/shared/file/json.utils.mjs +19 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +14 -0
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +14 -0
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/dates.d.ts +1 -1
- package/src/app/shared/file/json.utils.d.ts +5 -0
package/package.json
CHANGED
|
@@ -36,4 +36,4 @@ export declare function toDateISOString(value: any): string | undefined;
|
|
|
36
36
|
export declare function fromDateISOString(value: any): Moment | undefined;
|
|
37
37
|
export declare function fromUnixTimestamp(timeInSec: number): Moment;
|
|
38
38
|
export declare function fromUnixMsTimestamp(timeInMs: number): Moment;
|
|
39
|
-
export declare function toDuration(value: number, unit?:
|
|
39
|
+
export declare function toDuration(value: number, unit?: unitOfTime.DurationConstructor): Duration;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { FileEvent } from '../upload-file/upload-file.model';
|
|
1
3
|
export declare class JsonUtils {
|
|
2
4
|
static exportToFile(content: any, opts?: {
|
|
3
5
|
filename?: string;
|
|
@@ -8,4 +10,7 @@ export declare class JsonUtils {
|
|
|
8
10
|
filename?: string;
|
|
9
11
|
type?: string;
|
|
10
12
|
}): File;
|
|
13
|
+
static parseFile<T = any>(file: File, opts?: {
|
|
14
|
+
encoding?: string;
|
|
15
|
+
}): Observable<FileEvent<T>>;
|
|
11
16
|
}
|