@sumaris-net/ngx-components 1.0.10 → 1.1.0

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.0.10",
4
+ "version": "1.1.0",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,4 +1,4 @@
1
- import { Duration, Moment } from 'moment';
1
+ import { Duration, Moment, unitOfTime } from 'moment';
2
2
  export declare const DATE_UNIX_TIMESTAMP = "X";
3
3
  export declare const DATE_UNIX_MS_TIMESTAMP = "x";
4
4
  export declare class DateUtils {
@@ -7,6 +7,8 @@ export declare class DateUtils {
7
7
  toDuration: typeof toDuration;
8
8
  static min(date1: Moment, date2: Moment): Moment;
9
9
  static max(date1: Moment, date2: Moment): Moment;
10
+ static equals(date1: Moment | string, date2: Moment | string): boolean;
11
+ static isSame(date1: Moment | string, date2: Moment | string, granularity?: unitOfTime.StartOf): boolean;
10
12
  }
11
13
  export declare function toDateISOString(value: any): string | undefined;
12
14
  export declare function fromDateISOString(value: any): Moment | undefined;