@sumaris-net/ngx-components 2.0.0-rc21 → 2.0.0-rc23

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": "2.0.0-rc21",
4
+ "version": "2.0.0-rc23",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,12 +1,17 @@
1
1
  import { Duration, Moment, unitOfTime } from 'moment';
2
+ import * as momentNamespace from 'moment';
2
3
  import 'moment-timezone';
3
4
  export declare const DATE_UNIX_TIMESTAMP = "X";
4
5
  export declare const DATE_UNIX_MS_TIMESTAMP = "x";
5
6
  export declare const MOMENT_NO_TIME_PROPERTY = "_hasNoTime";
7
+ export declare type MomentNamespace = typeof momentNamespace;
6
8
  export declare class DateUtils {
9
+ private static __momentResolved;
7
10
  static toDateISOString: typeof toDateISOString;
8
11
  static fromDateISOString: typeof fromDateISOString;
9
12
  static toDuration: typeof toDuration;
13
+ private static isEsModule;
14
+ static get moment(): MomentNamespace;
10
15
  static min(date1: Moment, date2: Moment): Moment;
11
16
  static max(date1: Moment, date2: Moment): Moment;
12
17
  static equals(date1: Moment | string, date2: Moment | string): boolean;
@@ -34,3 +39,5 @@ export declare function fromDateISOString(value: any): Moment | undefined;
34
39
  export declare function fromUnixTimestamp(timeInSec: number): Moment;
35
40
  export declare function fromUnixMsTimestamp(timeInMs: number): Moment;
36
41
  export declare function toDuration(value: number, unit?: moment.unitOfTime.DurationConstructor): Duration;
42
+ declare const moment: typeof momentNamespace;
43
+ export { moment };