@sumaris-net/ngx-components 2.8.3-beta24 → 2.8.3-beta26

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.8.3-beta24",
4
+ "version": "2.8.3-beta26",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -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;
@@ -9,6 +9,7 @@ export declare function isNotEmptyArray<T>(obj: T[] | null | undefined): boolean
9
9
  export declare function firstArrayValue<T>(obj: T[] | null | undefined): T | undefined;
10
10
  export declare function lastArrayValue<T>(obj: T[] | null | undefined): T | undefined;
11
11
  export declare function isEmptyArray<T>(obj: T[] | null | undefined): boolean;
12
+ export declare function arrayResize<T>(array: T[] | null | undefined, newSize: number, defaultValue?: T): T[];
12
13
  export declare function isNotNilBoolean(obj: any | null | undefined): obj is boolean;
13
14
  export declare function isNotNilString(obj: any | null | undefined): obj is string;
14
15
  export declare function isBlankString(obj: any | null | undefined): obj is string;
@@ -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-beta22",
5
+ "version": "2.8.3-beta26",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{