@@ -29,7 +29,7 @@ import { PlaceHolderItem } from "./PlaceholderItem"
29
29
30
30
interface TimeLineTableSimplifiedProps <
31
31
G extends TimeTableGroup ,
32
- I extends TimeSlotBooking
32
+ I extends TimeSlotBooking ,
33
33
> {
34
34
/* Entries define the groups, and the items in the groups */
35
35
entries : TimeTableEntry < G , I > [ ]
@@ -51,7 +51,7 @@ interface TimeLineTableSimplifiedProps<
51
51
*/
52
52
export default function TimeLineTableSimplified <
53
53
G extends TimeTableGroup ,
54
- I extends TimeSlotBooking
54
+ I extends TimeSlotBooking ,
55
55
> ( {
56
56
entries,
57
57
onGroupClick,
@@ -118,7 +118,7 @@ function GroupHeaderTableCell<G extends TimeTableGroup>({
118
118
backgroundColor :
119
119
groupNumber % 2 === 0
120
120
? token ( "elevation.surface" )
121
- : token ( "elevation.surface.pressed " ) ,
121
+ : token ( "elevation.surface.hovered " ) ,
122
122
} }
123
123
>
124
124
{ renderGroup ? renderGroup ( { group } ) : < Group group = { group } /> }
@@ -162,7 +162,7 @@ function TableCell({
162
162
: token ( "color.background.neutral.pressed" )
163
163
: groupNumber % 2 === 0
164
164
? token ( "elevation.surface" )
165
- : token ( "elevation.surface.overlay " ) ,
165
+ : token ( "elevation.surface.hovered " ) ,
166
166
cursor :
167
167
isWeekendDay && disableWeekendInteractions
168
168
? "not-allowed"
@@ -207,7 +207,7 @@ function PlaceholderTableCell<G extends TimeTableGroup>({
207
207
const timeSlotSelectedIndex =
208
208
selectedTimeSlots && selectedTimeSlots . group === group
209
209
? selectedTimeSlots . timeSlots . findIndex (
210
- ( it ) => it === timeSlotNumber
210
+ ( it ) => it === timeSlotNumber ,
211
211
)
212
212
: - 1
213
213
const isWeekendDay = timeSlot . day ( ) === 0 || timeSlot . day ( ) === 6
@@ -242,7 +242,7 @@ function PlaceholderTableCell<G extends TimeTableGroup>({
242
242
: token ( "color.background.neutral.pressed" )
243
243
: groupNumber % 2 === 0
244
244
? token ( "elevation.surface" )
245
- : token ( "elevation.surface.overlay " ) ,
245
+ : token ( "elevation.surface.hovered " ) ,
246
246
verticalAlign : "top" ,
247
247
cursor : "pointer" ,
248
248
}
@@ -308,7 +308,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
308
308
groupRowMax = { rowCount } // group header spans all rows of the group
309
309
renderGroup = { renderGroup }
310
310
onGroupClick = { onGroupHeaderClick }
311
- />
311
+ /> ,
312
312
)
313
313
314
314
// and interaction row
@@ -323,7 +323,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
323
323
group = { group }
324
324
groupNumber = { groupNumber }
325
325
timeSlotNumber = { timeSlotNumber }
326
- />
326
+ /> ,
327
327
)
328
328
}
329
329
trs . push (
@@ -334,7 +334,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
334
334
} }
335
335
>
336
336
{ tds }
337
- </ tr >
337
+ </ tr > ,
338
338
)
339
339
340
340
// and the normal rows
@@ -356,7 +356,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
356
356
timeSlotNumber ++
357
357
) {
358
358
const itemsOfTimeSlot = itemsWithStart . filter (
359
- ( it ) => it && it . startSlot === timeSlotNumber
359
+ ( it ) => it && it . startSlot === timeSlotNumber ,
360
360
) as { item : I ; startSlot : number ; endSlot : number } [ ]
361
361
const itemsWithRenderProps = itemsOfTimeSlot
362
362
. map ( ( it ) => {
@@ -365,7 +365,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
365
365
it . startSlot ,
366
366
it . endSlot ,
367
367
slotsArray ,
368
- timeSteps
368
+ timeSteps ,
369
369
)
370
370
return { left, width, item : it . item }
371
371
} )
@@ -420,7 +420,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
420
420
>
421
421
{ itemsToRender }
422
422
</ div >
423
- </ TableCell >
423
+ </ TableCell > ,
424
424
)
425
425
}
426
426
@@ -432,7 +432,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
432
432
} }
433
433
>
434
434
{ tds }
435
- </ tr >
435
+ </ tr > ,
436
436
)
437
437
}
438
438
return trs
@@ -462,7 +462,7 @@ let mouseLeftTS: number | null = null
462
462
*/
463
463
function useMouseHandlers < G extends TimeTableGroup > (
464
464
timeSlotNumber : number ,
465
- group : G
465
+ group : G ,
466
466
) {
467
467
const { selectedTimeSlots, toggleTimeSlotCB } = useSelectedTimeSlots ( )
468
468
const { multiSelectionMode, setMultiSelectionMode } =
@@ -654,7 +654,7 @@ function getLeftAndWidth(
654
654
startSlot : number ,
655
655
endSlot : number ,
656
656
slotsArray : Dayjs [ ] ,
657
- timeSteps : number
657
+ timeSteps : number ,
658
658
) {
659
659
let left = item . startDate . diff ( slotsArray [ startSlot ] , "minute" ) / timeSteps
660
660
if ( left < 0 ) {
@@ -691,7 +691,7 @@ function getLeftAndWidth(
691
691
startSlot ,
692
692
endSlot ,
693
693
slotsArray ,
694
- timeSteps
694
+ timeSteps ,
695
695
)
696
696
}
697
697
0 commit comments