@sumaris-net/ngx-components 2.0.0-rc29 → 2.0.0-rc30

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-rc29",
4
+ "version": "2.0.0-rc30",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,13 +1,20 @@
1
1
  import { Duration, Moment, unitOfTime } from 'moment';
2
- import * as momentNS from 'moment';
2
+ import * as momentNamespace from 'moment';
3
+ import * as momentTZNamespace from '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 & {
8
+ tz: typeof momentTZNamespace;
9
+ };
6
10
  export declare class DateUtils {
11
+ private static __moment;
7
12
  static toDateISOString: typeof toDateISOString;
8
13
  static fromDateISOString: typeof fromDateISOString;
9
14
  static toDuration: typeof toDuration;
10
- static get moment(): typeof momentNS;
15
+ private static isEsModule;
16
+ static set moment(value: MomentNamespace);
17
+ static get moment(): MomentNamespace;
11
18
  static min(date1: Moment, date2: Moment): Moment;
12
19
  static max(date1: Moment, date2: Moment): Moment;
13
20
  static equals(date1: Moment | string, date2: Moment | string): boolean;
@@ -35,3 +42,5 @@ export declare function fromDateISOString(value: any): Moment | undefined;
35
42
  export declare function fromUnixTimestamp(timeInSec: number): Moment;
36
43
  export declare function fromUnixMsTimestamp(timeInMs: number): Moment;
37
44
  export declare function toDuration(value: number, unit?: moment.unitOfTime.DurationConstructor): Duration;
45
+ declare const moment: MomentNamespace;
46
+ export { moment };