react-weekly-planning 1.0.3 → 1.0.5
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.
- package/README.md +1 -3
- package/definitions/index.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,9 +101,7 @@ Props for the Calendar component.
|
|
|
101
101
|
| `sumHoursHeadStyle` | React.CSSProperties \| undefined | Additional styles for the sum hours header. |
|
|
102
102
|
| `sumHoursHeadClassName` | string | Additional class names for the sum hours header. |
|
|
103
103
|
| `handleAddTask` | handleAddTask?: (currentGroup: GroupFeildsType, dayInfo: dayInfoType) => void; | Handler function for adding a new task. |
|
|
104
|
-
| `addTaskRender` | addTaskRender?: ({currentGroup,dayInfo}:{
|
|
105
|
-
currentGroup: GroupFeildsType;dayInfo: dayInfoType;
|
|
106
|
-
}) => React.ReactNode; | Custom render function for adding a task. |
|
|
104
|
+
| `addTaskRender` | addTaskRender?: ({currentGroup,dayInfo}:{currentGroup: GroupFeildsType;dayInfo: dayInfoType}) => React.ReactNode;| Custom render function for adding a task. |
|
|
107
105
|
| `tasks` | TasksType | Array of tasks to be displayed in the calendar. |
|
|
108
106
|
| `handleDragTask` | (event: React.DragEvent<HTMLDivElement>, currentTask: TaskFeildsType) => void | Handler function for dragging a task. |
|
|
109
107
|
| `handleDropTask` | (event: React.DragEvent<HTMLTableDataCellElement>, taskStart: number, taskEnd: number, taskDate: Date, groupId: string, dayIndex: number, newTask: TaskFeildsType, newTasks: TasksType) => void | Handler function for dropping a task. |
|
package/definitions/index.ts
CHANGED
|
@@ -33,7 +33,7 @@ type GroupRiquiredFieldsType = {
|
|
|
33
33
|
/**
|
|
34
34
|
* Additional fields for a group.
|
|
35
35
|
*/
|
|
36
|
-
type GroupAdditionalFieldsType = Record<any,
|
|
36
|
+
type GroupAdditionalFieldsType = Record<any,any>;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Fields for a group, including both required and additional fields.
|
|
@@ -376,7 +376,7 @@ export type SumHoursHeadContainerPropsType = {
|
|
|
376
376
|
/**
|
|
377
377
|
* Additional fields for a task.
|
|
378
378
|
*/
|
|
379
|
-
type TaskAdditionalFieldsType = Record<any,
|
|
379
|
+
type TaskAdditionalFieldsType = Record<any, any>;
|
|
380
380
|
|
|
381
381
|
/**
|
|
382
382
|
* Fields for a task, including both required and additional fields.
|