@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/esm2020/src/app/core/graphql/graphql.service.mjs +8 -4
- package/esm2020/src/app/shared/dates.mjs +5 -3
- package/esm2020/src/app/shared/modules.mjs +8 -8
- package/fesm2015/sumaris-net.ngx-components.mjs +18 -13
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +18 -13
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/dates.d.ts +1 -3
- package/src/app/shared/modules.d.ts +5 -2
package/package.json
CHANGED
|
@@ -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
|
-
|
|
5
|
-
|
|
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;
|