@arsedizioni/ars-utils 19.3.6 → 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';
|
|
@@ -1560,9 +1560,7 @@ class ClipperSearchCalendarComponent {
|
|
|
1560
1560
|
return '';
|
|
1561
1561
|
};
|
|
1562
1562
|
this.calendarDateFilter = (cellDate) => {
|
|
1563
|
-
|
|
1564
|
-
const value = this.canFilter() && this.calendarSpecialDays != null && this.calendarSpecialDays[cellDate.getDate() - 1] > 0;
|
|
1565
|
-
return value;
|
|
1563
|
+
return this.canFilter() && this.calendarSpecialDays != null && this.calendarSpecialDays[cellDate.getDate() - 1] > 0;
|
|
1566
1564
|
};
|
|
1567
1565
|
this.canFilter = input(false);
|
|
1568
1566
|
}
|
|
@@ -1593,13 +1591,14 @@ class ClipperSearchCalendarComponent {
|
|
|
1593
1591
|
* @param date : the date to filter to or "month" to filter by the whole month.
|
|
1594
1592
|
*/
|
|
1595
1593
|
filterByDate(date) {
|
|
1594
|
+
console.log("change date:" + date?.toString());
|
|
1596
1595
|
if (date === 'month') {
|
|
1597
1596
|
if (this.calendarDate) {
|
|
1598
1597
|
this.changed.emit(new DateInterval(endOfDay(startOfMonth(this.calendarDate)), endOfMonth(this.calendarDate)));
|
|
1599
1598
|
}
|
|
1600
1599
|
}
|
|
1601
1600
|
else if (date) {
|
|
1602
|
-
this.changed.emit(new DateInterval(
|
|
1601
|
+
this.changed.emit(new DateInterval(addHours(startOfDay(date), 2), endOfDay(date)));
|
|
1603
1602
|
this.calendarDate = date;
|
|
1604
1603
|
}
|
|
1605
1604
|
else {
|