@sumaris-net/ngx-components 18.2.11 → 18.2.12

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.
@@ -1064,15 +1064,7 @@ class DateUtils {
1064
1064
  return 1; // After
1065
1065
  return -1; // Before
1066
1066
  }
1067
- /**
1068
- * Calculates the absolute difference between two dates in the specified units.
1069
- *
1070
- * @param {Moment | string} date1 - The first date to compare.
1071
- * @param {Moment | string} date2 - The second date to compare.
1072
- * @param {unitOfTime.Base} [durationUnit='seconds'] - The unit of time to express the difference in (default is 'seconds').
1073
- * @return {number} The absolute difference between the two dates expressed in the specified units.
1074
- */
1075
- static diffAbs(date1, date2, durationUnit = 'seconds') {
1067
+ static durationAbs(date1, date2, durationUnit = 'seconds') {
1076
1068
  const d1 = fromDateISOString(date1);
1077
1069
  const d2 = fromDateISOString(date2);
1078
1070
  if (!d1 || !d2)
@@ -7996,7 +7988,7 @@ class MatAutocompleteField {
7996
7988
  }));
7997
7989
  // Reload items on focus
7998
7990
  if (this.reloadItemsOnFocus) {
7999
- this._subscription.add(this.focused.subscribe(() => this.reloadItems()));
7991
+ this._subscription.add(this.focused.pipe(skip(1)).subscribe(() => this.reloadItems()));
8000
7992
  }
8001
7993
  }
8002
7994
  ngAfterViewInit() {