@sumaris-net/ngx-components 18.2.12 → 18.2.13

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": "18.2.12",
4
+ "version": "18.2.13",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -19,7 +19,15 @@ export declare class DateUtils {
19
19
  static equals(date1: Moment | string, date2: Moment | string): boolean;
20
20
  static isSame(date1: Moment | string, date2: Moment | string, granularity?: unitOfTime.StartOf): boolean;
21
21
  static compare(date1: Moment | string, date2: Moment | string, granularity?: unitOfTime.StartOf): number;
22
- static durationAbs(date1: Moment | string, date2: Moment | string, durationUnit?: unitOfTime.Base): number;
22
+ /**
23
+ * Calculates the absolute difference between two dates in the specified units.
24
+ *
25
+ * @param {Moment | string} date1 - The first date to compare.
26
+ * @param {Moment | string} date2 - The second date to compare.
27
+ * @param {unitOfTime.Base} [durationUnit='seconds'] - The unit of time to express the difference in (default is 'seconds').
28
+ * @return {number} The absolute difference between the two dates expressed in the specified units.
29
+ */
30
+ static diffAbs(date1: Moment | string, date2: Moment | string, durationUnit?: unitOfTime.Base): number;
23
31
  /**
24
32
  * Create a copy of a date, without time fields (always return a new Moment object, or undefined).
25
33
  * Same implementation as the Java class Dates.resetTime() (see any SUMARiS like Pod)
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "18.2.12",
5
+ "version": "18.2.13",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{