// #region Imports
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Themeable } from '../../../Behaviors/Themeable';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { timelineItemElementCosmopolitanStyle } from './Themes/TimelineItemElement.Cosmopolitan';
import { timelineItemElementJoyStyle } from './Themes/TimelineItemElement.Joy';
import { timelineItemElementMemphisStyle } from './Themes/TimelineItemElement.Memphis';
import { timelineItemElementTemplate } from './TimelineItemElementTemplate';
import { TimelineMarkerElement } from './TimelineMarkerElement';
// #endregion
/**
 * TimelineItem - Represents a single event entry within a timeline.
 *
 * @description
 * Positions its marker, primary content, and optional opposite content
 * according to the parent `TimelineElement` layout and alignment rules.
 *
 * @name TimelineItem
 * @element mosaik-timeline-item
 * @category Layouts
 *
 * @slot content - Required content slot for a `TimelineContentElement` representing the primary timeline information.
 * @slot marker - Optional marker slot. Accepts a `TimelineMarkerElement`. Defaults to an internally rendered marker when omitted.
 * @slot opposite - Optional slot for a `TimelineOppositeElement` positioned opposite the main content.
 *
 * @csspart content - The wrapper around the content slot
 * @csspart item - The root grid container of the timeline item
 * @csspart marker - The positioning wrapper around the marker slot
 * @csspart marker-default - The fallback marker element rendered when no marker is slotted
 * @csspart opposite - The wrapper around the opposite slot
 *
 * @cssprop {String} --timeline-item-content-gap - Gap between content areas
 * @cssprop {String} --timeline-item-font-family - The item font family CSS custom property.
 * @cssprop {String} --timeline-item-font-letter-spacing - The item font letter spacing CSS custom property.
 * @cssprop {String} --timeline-item-font-line-height - The item font line height CSS custom property.
 * @cssprop {String} --timeline-item-font-size - The item font size CSS custom property.
 * @cssprop {String} --timeline-item-font-text-decoration - The item font text decoration CSS custom property.
 * @cssprop {String} --timeline-item-font-text-transform - The item font text transform CSS custom property.
 * @cssprop {String} --timeline-item-font-weight - The item font weight CSS custom property.
 * @cssprop {String} --timeline-item-gap - The item gap CSS custom property.
 * @cssprop {String} --timeline-item-line-offset - Offset used for marker placement along the timeline line
 * @cssprop {Color} --timeline-item-marker-border-color - Border color of the default marker
 * @cssprop {String} --timeline-item-marker-border-width - Border width of the default marker
 * @cssprop {Color} --timeline-item-marker-color - Background color of the default marker
 * @cssprop {String} --timeline-item-marker-size - Size (width and height) of the marker area
 * @cssprop {String} --timeline-item-padding-bottom - The item padding bottom CSS custom property.
 * @cssprop {String} --timeline-item-padding-left - The item padding left CSS custom property.
 * @cssprop {String} --timeline-item-padding-right - The item padding right CSS custom property.
 * @cssprop {String} --timeline-item-padding-top - The item padding top CSS custom property.
 * @cssprop {String} --timeline-item-shadow - The item shadow CSS custom property.
 * @cssprop {String} --timeline-item-shadow-blur - The item shadow blur CSS custom property.
 * @cssprop {String} --timeline-item-shadow-color - The item shadow color CSS custom property.
 * @cssprop {String} --timeline-item-shadow-offset-x - The item shadow offset x CSS custom property.
 * @cssprop {String} --timeline-item-shadow-offset-y - The item shadow offset y CSS custom property.
 * @cssprop {String} --timeline-item-shadow-spread - The item shadow spread CSS custom property.
 * @cssprop {String} --timeline-item-transition-duration - The item transition duration CSS custom property.
 * @cssprop {String} --timeline-item-transition-mode - The item transition mode CSS custom property.
 * @cssprop {String} --timeline-item-transition-property - The item transition property CSS custom property.
 * @cssprop {String} --timeline-item-translate - The item translate CSS custom property.
 *
 * @fires connected {ConnectedEvent} - Fired when connected to DOM
 * @fires changed {PropertyChangedEvent} - Fired when a property changes
 *
 * @dependency mosaik-timeline-marker - The Timeline Marker element.
 *
 * @example
 * Timeline item with marker and content:
 * ```html
 * <mosaik-timeline-item>
 *   <mosaik-timeline-marker text="1" variant="primary" appearance="solid"></mosaik-timeline-marker>
 *   <mosaik-timeline-content>Event description</mosaik-timeline-content>
 *   <mosaik-timeline-opposite>2024-01-01</mosaik-timeline-opposite>
 * </mosaik-timeline-item>
 * ```
 *
 * @public
 */
let TimelineItemElement = class TimelineItemElement extends Themeable(CustomElement) {
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-timeline-item';
    }
};
TimelineItemElement = __decorate([
    Component({
        selector: 'mosaik-timeline-item',
        template: timelineItemElementTemplate,
        themes: {
            joy: timelineItemElementJoyStyle,
            memphis: timelineItemElementMemphisStyle,
            cosmopolitan: timelineItemElementCosmopolitanStyle
        },
        host: {
            role: 'listitem'
        },
        imports: [
            TimelineMarkerElement
        ]
    })
], TimelineItemElement);
export { TimelineItemElement };
//# sourceMappingURL=TimelineItemElement.js.map