@sumaris-net/ngx-components 1.14.1 → 1.14.2
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/bundles/sumaris-net.ngx-components.umd.js +27 -4
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +2 -0
- package/esm2015/src/app/shared/dates.js +24 -1
- package/fesm2015/sumaris-net.ngx-components.js +23 -0
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +2 -1
- package/src/app/shared/dates.d.ts +7 -0
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": "1.14.
|
|
4
|
+
"version": "1.14.2",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"cordova-android": "9.1.0",
|
|
13
13
|
"lodash.clonedeep": "^4.5.0",
|
|
14
|
+
"moment-timezone": "^0.5.34",
|
|
14
15
|
"tslib": "^2.2.0"
|
|
15
16
|
},
|
|
16
17
|
"peerDependencies": {
|
|
@@ -9,6 +9,13 @@ export declare class DateUtils {
|
|
|
9
9
|
static max(date1: Moment, date2: Moment): Moment;
|
|
10
10
|
static equals(date1: Moment | string, date2: Moment | string): boolean;
|
|
11
11
|
static isSame(date1: Moment | string, date2: Moment | string, granularity?: unitOfTime.StartOf): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Create a copy of a date, without time fields (always return a new Moment object, or undefined).
|
|
14
|
+
* Same implementation as the Java class Dates.resetTime() (see any SUMARiS like Pod)
|
|
15
|
+
* @param value
|
|
16
|
+
* @param timezone a timezone (see https://momentjs.com/timezone/)
|
|
17
|
+
*/
|
|
18
|
+
static resetTime(value: Moment | string, timezone?: string): Moment | undefined;
|
|
12
19
|
}
|
|
13
20
|
export declare function toDateISOString(value: any): string | undefined;
|
|
14
21
|
export declare function fromDateISOString(value: any): Moment | undefined;
|