@sumaris-net/ngx-components 18.2.12 → 18.2.14
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/doc/changelog.md +2 -2
- package/esm2022/src/app/core/services/account.service.mjs +4 -4
- package/esm2022/src/app/core/services/local-settings.service.mjs +10 -8
- package/esm2022/src/app/shared/dates.mjs +10 -2
- package/fesm2022/sumaris-net.ngx-components.mjs +21 -11
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/dates.d.ts +9 -1
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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)
|
|
@@ -16,7 +16,7 @@ export interface InputElement extends FocusableElement {
|
|
|
16
16
|
}
|
|
17
17
|
export declare function isInputElement(object: any): object is InputElement;
|
|
18
18
|
export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
|
|
19
|
-
export declare function tabindexComparator(a: InputElement, b: InputElement):
|
|
19
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | -1 | 0;
|
|
20
20
|
export interface CanGainFocusOptions {
|
|
21
21
|
minTabindex?: number;
|
|
22
22
|
maxTabindex?: number;
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.
|
|
5
|
+
"version": "18.2.14",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|