@sumaris-net/ngx-components 2.0.0-rc32 → 2.0.0-rc33

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-rc32",
4
+ "version": "2.0.0-rc33",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,13 +1,11 @@
1
1
  import { Duration, Moment, unitOfTime } from 'moment';
2
2
  import * as momentImported from 'moment';
3
- import 'moment-timezone';
4
3
  export declare const DATE_UNIX_TIMESTAMP = "X";
5
4
  export declare const DATE_UNIX_MS_TIMESTAMP = "x";
6
5
  export declare const MOMENT_NO_TIME_PROPERTY = "_hasNoTime";
7
- export declare type MomentDefault = typeof momentImported;
8
- export declare const moment: typeof momentImported;
9
6
  export declare class DateUtils {
10
7
  static moment: typeof momentImported;
8
+ static momentTZ: typeof momentImported;
11
9
  static toDateISOString: typeof toDateISOString;
12
10
  static fromDateISOString: typeof fromDateISOString;
13
11
  static toDuration: typeof toDuration;
@@ -1,5 +1,8 @@
1
1
  export declare function isESModule<T>(value: any | T): value is {
2
2
  default: T;
3
3
  };
4
- export declare function unwrapESModule<T>(value: T | any): T;
5
- export declare function requireCommonJS<T>(moduleName: string): T;
4
+ /**
5
+ * Workaround need for CommonJS library (eg. moment), because of packagr's issue - see https://github.com/ng-packagr/ng-packagr/issues/2215
6
+ * @param commonJSModule
7
+ */
8
+ export declare function unwrapESModule<T = any>(commonJSModule: T | any): T;