@sumaris-net/ngx-components 2.0.0-rc21 → 2.0.0-rc22
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/services/local-settings.service.mjs +5 -5
- package/esm2020/src/app/core/services/platform.service.mjs +6 -7
- package/esm2020/src/app/shared/dates.mjs +19 -3
- package/esm2020/src/app/shared/material/datetime/material.date.mjs +2 -2
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +2 -2
- package/esm2020/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +2 -2
- package/esm2020/src/app/shared/material/datetime/testing/mat-date.test.mjs +3 -3
- package/esm2020/src/app/shared/material/swipe/testing/swipe.test.mjs +3 -2
- package/esm2020/src/app/shared/testing/observable.test.mjs +3 -3
- package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +9 -8
- package/esm2020/src/app/social/user-event/user-event.service.mjs +3 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +55 -40
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +55 -40
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/dates.d.ts +7 -0
package/package.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { Duration, Moment, unitOfTime } from 'moment';
|
|
2
|
+
import * as momentNamespace from 'moment';
|
|
2
3
|
import '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;
|
|
6
8
|
export declare class DateUtils {
|
|
7
9
|
static toDateISOString: typeof toDateISOString;
|
|
8
10
|
static fromDateISOString: typeof fromDateISOString;
|
|
9
11
|
static toDuration: typeof toDuration;
|
|
12
|
+
static isEsModule(value: any): value is {
|
|
13
|
+
default: MomentNamespace;
|
|
14
|
+
};
|
|
15
|
+
static __momentResolved: MomentNamespace;
|
|
16
|
+
static get moment(): MomentNamespace;
|
|
10
17
|
static min(date1: Moment, date2: Moment): Moment;
|
|
11
18
|
static max(date1: Moment, date2: Moment): Moment;
|
|
12
19
|
static equals(date1: Moment | string, date2: Moment | string): boolean;
|