hrm_ui_lib 3.1.66 → 3.1.67
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.
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCurrentWeekWorkdaysRange: () => [Date, Date];
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const today = new Date();
|
|
3
|
-
const start = new Date(today);
|
|
4
|
-
const end = new Date(today);
|
|
5
|
-
const day = today.getDay();
|
|
6
|
-
const diffToMonday = day === 0 ? -6 : 1 - day;
|
|
7
|
-
start.setDate(today.getDate() + diffToMonday);
|
|
8
|
-
return [start, end];
|
|
9
|
-
};
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCurrentWeekWorkdaysRange: () => [Date, Date];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const getCurrentWeekWorkdaysRange = () => {
|
|
2
|
+
const today = new Date();
|
|
3
|
+
const start = new Date(today);
|
|
4
|
+
const end = new Date(today);
|
|
5
|
+
const day = today.getDay();
|
|
6
|
+
const diffToMonday = day === 0 ? -6 : 1 - day;
|
|
7
|
+
start.setDate(today.getDate() + diffToMonday);
|
|
8
|
+
return [start, end];
|
|
9
|
+
};
|