@sumaris-net/ngx-components 2.18.0-alpha4 → 2.18.0-alpha5

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.18.0-alpha4",
4
+ "version": "2.18.0-alpha5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,11 +1,16 @@
1
1
  import * as momentImported from 'moment';
2
- import { Duration, Moment, unitOfTime } from 'moment';
2
+ import { Duration, DurationInputArg1, DurationInputArg2, Moment, MomentFormatSpecification, MomentInput, unitOfTime } from 'moment/moment';
3
+ declare type MomentFn = {
4
+ (inp?: MomentInput, strict?: boolean): Moment;
5
+ (inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
6
+ (inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
7
+ duration: (inp?: DurationInputArg1, unit?: DurationInputArg2) => Duration;
8
+ };
3
9
  export declare const DATE_UNIX_TIMESTAMP = "X";
4
10
  export declare const DATE_UNIX_MS_TIMESTAMP = "x";
5
11
  export declare const MOMENT_NO_TIME_PROPERTY = "_hasNoTime";
6
12
  export declare class DateUtils {
7
- static moment: typeof momentImported;
8
- static momentTZ: typeof momentImported;
13
+ static moment: MomentFn;
9
14
  static toDateISOString: typeof toDateISOString;
10
15
  static fromDateISOString: typeof fromDateISOString;
11
16
  static toDuration: typeof toDuration;
@@ -40,3 +45,4 @@ export declare function fromDateISOString(value: any): Moment | undefined;
40
45
  export declare function fromUnixTimestamp(timeInSec: number): momentImported.Moment;
41
46
  export declare function fromUnixMsTimestamp(timeInMs: number): momentImported.Moment;
42
47
  export declare function toDuration(value: number, unit?: unitOfTime.DurationConstructor): Duration;
48
+ export {};
@@ -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.18.0-alpha4",
5
+ "version": "2.18.0-alpha5",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{