@arsedizioni/ars-utils 19.3.5 → 19.3.7
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.
|
@@ -29,7 +29,7 @@ import * as i20 from '@arsedizioni/ars-utils/core';
|
|
|
29
29
|
import { SystemUtils, BroadcastService, SafeUrlPipe, DateInterval, ThemeService, ScreenService, DateFormat, FormatPipe, SelectableModel, ArsCoreModule } from '@arsedizioni/ars-utils/core';
|
|
30
30
|
import { FlexLayoutModule, FlexModule } from '@ngbracket/ngx-layout';
|
|
31
31
|
import { takeUntil as takeUntil$1, finalize as finalize$1 } from 'rxjs/operators';
|
|
32
|
-
import { startOfToday, subDays, endOfDay, startOfMonth, endOfMonth, startOfDay } from 'date-fns';
|
|
32
|
+
import { startOfToday, subDays, endOfDay, startOfMonth, endOfMonth, addHours, startOfDay } from 'date-fns';
|
|
33
33
|
import { finalize, Subject, takeUntil } from 'rxjs';
|
|
34
34
|
import * as i4$1 from '@angular/material/divider';
|
|
35
35
|
import { MatDividerModule } from '@angular/material/divider';
|
|
@@ -1591,13 +1591,14 @@ class ClipperSearchCalendarComponent {
|
|
|
1591
1591
|
* @param date : the date to filter to or "month" to filter by the whole month.
|
|
1592
1592
|
*/
|
|
1593
1593
|
filterByDate(date) {
|
|
1594
|
+
console.log("change date:" + date?.toString());
|
|
1594
1595
|
if (date === 'month') {
|
|
1595
1596
|
if (this.calendarDate) {
|
|
1596
1597
|
this.changed.emit(new DateInterval(endOfDay(startOfMonth(this.calendarDate)), endOfMonth(this.calendarDate)));
|
|
1597
1598
|
}
|
|
1598
1599
|
}
|
|
1599
1600
|
else if (date) {
|
|
1600
|
-
this.changed.emit(new DateInterval(
|
|
1601
|
+
this.changed.emit(new DateInterval(addHours(startOfDay(date), 2), endOfDay(date)));
|
|
1601
1602
|
this.calendarDate = date;
|
|
1602
1603
|
}
|
|
1603
1604
|
else {
|