// #region Imports
import { html } from '../../../../Dom/Html';
import { repeat } from '../../../Directives/Directives';
import { partMap } from '../../../Directives/part-map/PartMapDirective';
// #endregion
/**
 * The template function for the {@link SchedulerTimescaleElement}.
 *
 * @internal
 */
export function schedulerTimescaleElementTemplate(e) {
    return html `
        <div part="time-panel">
            ${repeat(e.timeSlots, (slot) => slot.time, (slot) => html `
            <div part=${partMap({ 'time-row': true, 'is-hour': slot.isHour, 'is-last-of-hour': slot.isLastOfHour })}>
                <div part="time-cell">
                    ${slot.isHour ? html `<span part="time-label">${slot.label}</span>` : null}
                </div>
            </div>
            `)}
        </div>
    `;
}
//# sourceMappingURL=SchedulerTimescaleElementTemplate.js.map