@@ -382,10 +382,6 @@ class AtomicCalendarRevive extends LitElement {
382382 const eventDuration = event . endDateTime . diff ( event . startDateTime , 'minutes' ) ;
383383 const eventProgress = dayjs ( ) . diff ( event . startDateTime , 'minutes' ) ;
384384 const eventPercentProgress = ( eventProgress * 100 ) / eventDuration / 100 ;
385- /**progressBar = html`<mwc-linear-progress
386- class="progress-bar"
387-
388- progress="${eventPercentProgress}"></mwc-linear-progress>`;*/
389385 progressBar = html `< progress
390386 style ="--progress-bar: ${ this . _config . progressBarColor } ; --progress-bar-bg: ${ this . _config
391387 . progressBarBackgroundColor } ; "
@@ -420,13 +416,18 @@ class AtomicCalendarRevive extends LitElement {
420416 : '' ;
421417
422418 const lastEventStyle = i == arr . length - 1 ? 'padding-bottom: 8px;' : '' ;
419+
420+ const showDatePer = this . _config . showDatePerEvent
421+ ? true
422+ : i === 0 ? true : false ;
423+
423424 // check and set the date format
424425 const eventDateFormat =
425426 this . _config . europeanDate == true
426- ? html `${ i === 0 ? event . startTimeToShow . format ( 'DD' ) + ' ' : '' } ${ i === 0 && this . _config . showMonth
427+ ? html `${ showDatePer ? event . startTimeToShow . format ( 'DD' ) + ' ' : '' } ${ showDatePer && this . _config . showMonth
427428 ? event . startTimeToShow . format ( 'MMM' )
428429 : '' } `
429- : html `${ i === 0 && this . _config . showMonth ? event . startTimeToShow . format ( 'MMM' ) + ' ' : '' } ${ i === 0
430+ : html `${ showDatePer && this . _config . showMonth ? event . startTimeToShow . format ( 'MMM' ) + ' ' : '' } ${ showDatePer
430431 ? event . startTimeToShow . format ( 'DD' )
431432 : '' } `;
432433
@@ -436,7 +437,7 @@ class AtomicCalendarRevive extends LitElement {
436437 const eventLeft = this . _config . showEventDate == true
437438 ? html `< td class ="event-left " style ="color: ${ this . _config . dateColor } ;font-size: ${ this . _config . dateSize } %; ">
438439 < div class =${ dayClassTodayEvent } >
439- ${ i === 0 && this . _config . showWeekDay ? event . startTimeToShow . format ( 'ddd' ) : '' }
440+ ${ showDatePer && this . _config . showWeekDay ? event . startTimeToShow . format ( 'ddd' ) : '' }
440441 </ div > < div class =${ dayClassTodayEvent } > ${ eventDateFormat } </ div >
441442 </ td > `
442443 : html `` ;
0 commit comments