hrm_ui_lib 3.1.65 → 3.1.66

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,2 +1 @@
1
1
  export declare const filterSearchData: (data: TSelectOptions, searchString: string) => TSelectOptions;
2
- export declare const getCurrentWeekWorkdaysRange: () => [Date, Date];
@@ -9,12 +9,3 @@ export const filterSearchData = (data, searchString) => {
9
9
  }
10
10
  return data.filter(({ label }) => containsSearchString(label, searchString));
11
11
  };
12
- export const getCurrentWeekWorkdaysRange = () => {
13
- const today = new Date();
14
- const start = new Date(today);
15
- const end = new Date(today);
16
- const day = today.getDay();
17
- const diffToMonday = day === 0 ? -6 : 1 - day;
18
- start.setDate(today.getDate() + diffToMonday);
19
- return [start, end];
20
- };
@@ -0,0 +1 @@
1
+ export declare const getCurrentWeekWorkdaysRange: () => [Date, Date];
@@ -1 +1,9 @@
1
- "use strict";
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hrm_ui_lib",
3
- "version": "3.1.65",
3
+ "version": "3.1.66",
4
4
  "description": "UI library for Dino",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",