@@ -44,15 +44,42 @@ export const PlaylistEndTiming = withTiming<IEndTimingProps, {}>()(function Play
4444
4545 return (
4646 < React . Fragment >
47+ { ! hideDiff ? (
48+ timingDurations ? (
49+ < span
50+ className = { ClassNames ( 'timing-clock heavy-light ' , {
51+ heavy : overUnderClock < 0 ,
52+ light : overUnderClock >= 0 ,
53+ } ) }
54+ role = "timer"
55+ >
56+ { ! hideDiffLabel && < span className = "timing-clock-label right" > { t ( 'Diff' ) } </ span > }
57+ { RundownUtils . formatDiffToTimecode ( overUnderClock , true , false , true , true , true , undefined , true , true ) }
58+ </ span >
59+ ) : null
60+ ) : null }
61+
62+ { ! loop &&
63+ ! hideCountdown &&
64+ ( expectedEnd ? (
65+ < span className = "timing-clock countdown plan-end" role = "timer" >
66+ { RundownUtils . formatDiffToTimecode ( now - expectedEnd , true , true , true ) }
67+ </ span >
68+ ) : expectedStart && expectedDuration ? (
69+ < span className = "timing-clock countdown plan-end" role = "timer" >
70+ { RundownUtils . formatDiffToTimecode ( getCurrentTime ( ) - ( expectedStart + expectedDuration ) , true , true , true ) }
71+ </ span >
72+ ) : null ) }
73+
4774 { ! hidePlannedEnd ? (
4875 expectedEnd ? (
4976 ! rundownPlaylist . startedPlayback ? (
50- < span className = "timing-clock plan-end right visual-last-child" role = "timer" >
77+ < span className = "timing-clock plan-end visual-last-child" role = "timer" >
5178 { ! hidePlannedEndLabel && < span className = "timing-clock-label right" > { endLabel ?? t ( 'Planned End' ) } </ span > }
5279 < Moment interval = { 0 } format = "HH:mm:ss" date = { expectedEnd } />
5380 </ span >
5481 ) : (
55- < span className = "timing-clock plan-end right visual-last-child" role = "timer" >
82+ < span className = "timing-clock plan-end visual-last-child" role = "timer" >
5683 { ! hidePlannedEndLabel && (
5784 < span className = "timing-clock-label right" > { endLabel ?? t ( 'Expected End' ) } </ span >
5885 ) }
@@ -62,7 +89,7 @@ export const PlaylistEndTiming = withTiming<IEndTimingProps, {}>()(function Play
6289 ) : timingDurations ? (
6390 isLoopRunning ( rundownPlaylist ) ? (
6491 timingDurations . partCountdown && rundownPlaylist . activationId && rundownPlaylist . currentPartInfo ? (
65- < span className = "timing-clock plan-end right visual-last-child" role = "timer" >
92+ < span className = "timing-clock plan-end visual-last-child" role = "timer" >
6693 { ! hidePlannedEndLabel && < span className = "timing-clock-label right" > { t ( 'Next Loop at' ) } </ span > }
6794 < Moment
6895 interval = { 0 }
@@ -72,7 +99,7 @@ export const PlaylistEndTiming = withTiming<IEndTimingProps, {}>()(function Play
7299 </ span >
73100 ) : null
74101 ) : (
75- < span className = "timing-clock plan-end right visual-last-child" role = "timer" >
102+ < span className = "timing-clock plan-end visual-last-child" role = "timer" >
76103 { ! hidePlannedEndLabel && (
77104 < span className = "timing-clock-label right" > { endLabel ?? t ( 'Expected End' ) } </ span >
78105 ) }
@@ -85,31 +112,6 @@ export const PlaylistEndTiming = withTiming<IEndTimingProps, {}>()(function Play
85112 )
86113 ) : null
87114 ) : null }
88- { ! loop &&
89- ! hideCountdown &&
90- ( expectedEnd ? (
91- < span className = "timing-clock countdown plan-end right" role = "timer" >
92- { RundownUtils . formatDiffToTimecode ( now - expectedEnd , true , true , true ) }
93- </ span >
94- ) : expectedStart && expectedDuration ? (
95- < span className = "timing-clock countdown plan-end right" role = "timer" >
96- { RundownUtils . formatDiffToTimecode ( getCurrentTime ( ) - ( expectedStart + expectedDuration ) , true , true , true ) }
97- </ span >
98- ) : null ) }
99- { ! hideDiff ? (
100- timingDurations ? (
101- < span
102- className = { ClassNames ( 'timing-clock heavy-light right' , {
103- heavy : overUnderClock < 0 ,
104- light : overUnderClock >= 0 ,
105- } ) }
106- role = "timer"
107- >
108- { ! hideDiffLabel && < span className = "timing-clock-label right" > { t ( 'Diff' ) } </ span > }
109- { RundownUtils . formatDiffToTimecode ( overUnderClock , true , false , true , true , true , undefined , true , true ) }
110- </ span >
111- ) : null
112- ) : null }
113115 </ React . Fragment >
114116 )
115117} )
0 commit comments