@brggroup/share-lib 0.0.18 → 0.0.19
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.
|
@@ -30,7 +30,7 @@ import * as i5 from 'ng-zorro-antd/form';
|
|
|
30
30
|
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
31
31
|
import * as i5$1 from 'ng-zorro-antd/date-picker';
|
|
32
32
|
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
|
|
33
|
-
import { startOfWeek,
|
|
33
|
+
import { startOfWeek, endOfWeek, subWeeks, startOfMonth, endOfMonth, subMonths } from 'date-fns';
|
|
34
34
|
import * as i6 from 'ng-zorro-antd/input-number';
|
|
35
35
|
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
36
36
|
import * as i6$1 from 'ng-zorro-antd/input';
|
|
@@ -1795,11 +1795,11 @@ class ExtendDateRangePicker {
|
|
|
1795
1795
|
_ngModel;
|
|
1796
1796
|
today = new Date();
|
|
1797
1797
|
ranges = {
|
|
1798
|
+
'Tuần này': [startOfWeek(this.today, { weekStartsOn: 1 }), endOfWeek(this.today, { weekStartsOn: 1 })],
|
|
1798
1799
|
'Tuần trước': [
|
|
1799
1800
|
startOfWeek(subWeeks(this.today, 1), { weekStartsOn: 1 }),
|
|
1800
1801
|
endOfWeek(subWeeks(this.today, 1), { weekStartsOn: 1 }),
|
|
1801
1802
|
],
|
|
1802
|
-
'Tuần này': [startOfWeek(this.today, { weekStartsOn: 1 }), endOfWeek(this.today, { weekStartsOn: 1 })],
|
|
1803
1803
|
'Tháng này': [startOfMonth(this.today), endOfMonth(this.today)],
|
|
1804
1804
|
'Tháng trước': [startOfMonth(subMonths(this.today, 1)), endOfMonth(subMonths(this.today, 1))],
|
|
1805
1805
|
};
|