@sumaris-net/ngx-components 2.8.3-beta24 → 2.8.3-beta25
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,5 +1,5 @@
|
|
|
1
|
-
import { Duration, Moment, unitOfTime } from 'moment';
|
|
2
1
|
import * as momentImported from 'moment';
|
|
2
|
+
import { Duration, Moment, unitOfTime } from 'moment';
|
|
3
3
|
export declare const DATE_UNIX_TIMESTAMP = "X";
|
|
4
4
|
export declare const DATE_UNIX_MS_TIMESTAMP = "x";
|
|
5
5
|
export declare const MOMENT_NO_TIME_PROPERTY = "_hasNoTime";
|
|
@@ -13,6 +13,7 @@ export declare class DateUtils {
|
|
|
13
13
|
static max(date1: Moment | string, date2: Moment | string): Moment;
|
|
14
14
|
static equals(date1: Moment | string, date2: Moment | string): boolean;
|
|
15
15
|
static isSame(date1: Moment | string, date2: Moment | string, granularity?: unitOfTime.StartOf): boolean;
|
|
16
|
+
static compare(date1: Moment | string, date2: Moment | string, granularity?: unitOfTime.StartOf): number;
|
|
16
17
|
/**
|
|
17
18
|
* Create a copy of a date, without time fields (always return a new Moment object, or undefined).
|
|
18
19
|
* Same implementation as the Java class Dates.resetTime() (see any SUMARiS like Pod)
|
|
@@ -36,6 +37,6 @@ export declare class DateUtils {
|
|
|
36
37
|
}
|
|
37
38
|
export declare function toDateISOString(value: any): string | undefined;
|
|
38
39
|
export declare function fromDateISOString(value: any): Moment | undefined;
|
|
39
|
-
export declare function fromUnixTimestamp(timeInSec: number): Moment;
|
|
40
|
-
export declare function fromUnixMsTimestamp(timeInMs: number): Moment;
|
|
40
|
+
export declare function fromUnixTimestamp(timeInSec: number): momentImported.Moment;
|
|
41
|
+
export declare function fromUnixMsTimestamp(timeInMs: number): momentImported.Moment;
|
|
41
42
|
export declare function toDuration(value: number, unit?: unitOfTime.DurationConstructor): Duration;
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.8.3-
|
|
5
|
+
"version": "2.8.3-beta25",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|