// #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;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Themeable } from '../../../Behaviors/Themeable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { timelineElementTemplate } from './TimelineElementTemplate';
import { TimelineItemElement } from './TimelineItemElement';
import { TimelineMarkerElement } from './TimelineMarkerElement';
import { TimelineContentElement } from './TimelineContentElement';
import { TimelineOppositeElement } from './TimelineOppositeElement';
import { CustomElement } from '../../Abstracts/CustomElement';
import { timelineElementCosmopolitanStyle } from './Themes/TimelineElement.Cosmopolitan';
import { timelineElementJoyStyle } from './Themes/TimelineElement.Joy';
import { timelineElementMemphisStyle } from './Themes/TimelineElement.Memphis';
import { Orientable } from '../../../Behaviors/Orientable';
import { Orientation } from '../../../Types/Orientation';
import { TimelineAlignment } from '../../../Types/TimelineAlignment';
// #endregion
/**
 * Timeline - A semantic container for ordered timeline items.
 *
 * @description
 * Provides layout direction, alignment context, and renders the timeline line
 * while exposing a single slot for {@link TimelineItemElement} children.
 *
 * @element mosaik-timeline
 * @category Layouts
 *
 * @slot - Default slot for {@link TimelineItemElement} children.
 *
 * @csspart line - The visual connector line running through the timeline.
 *
 * @cssprop --timeline-gap - Gap between timeline items.
 * @cssprop --timeline-line-color - Color of the timeline connector line.
 * @cssprop --timeline-line-thickness - Thickness of the timeline connector line.
 * @cssprop --timeline-line-offset - Offset position of the timeline line.
 * @cssprop --timeline-foreground-color - Foreground/text color.
 * @cssprop --timeline-font-family - Font family for timeline text.
 * @cssprop --timeline-font-size - Font size for timeline text.
 * @cssprop --timeline-font-weight - Font weight for timeline text.
 * @cssprop --timeline-font-line-height - Line height for timeline text.
 * @cssprop --timeline-marker-size - Size of the timeline marker.
 * @cssprop --timeline-marker-color - Background color of the marker.
 * @cssprop --timeline-marker-border-color - Border color of the marker.
 * @cssprop --timeline-marker-border-width - Border width of the marker.
 *
 * @public
 */
let TimelineElement = class TimelineElement extends Themeable(Orientable(CustomElement)) {
    // #region Fields
    _align;
    // #endregion
    // #region Ctor
    /**
     * Constructs a new instance of the `TimelineElement` class.
     *
     * @public
     */
    constructor() {
        super();
        // TODO: REMARK: This is a workaround for the issue with the docs generation.
        // If we set the orientation property like this `this.orientation = Orientation.Vertical;` the
        // docs generation will generates a wrong type.
        Object.assign(this, { orientation: Orientation.Vertical });
        this._align = TimelineAlignment.Start;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-timeline';
    }
    /**
     * Gets or sets the `align` property.
     *
     * @public
     * @attr
     */
    get align() {
        return this._align;
    }
    set align(value) {
        if (this._align !== value) {
            this._align = value;
            this.requestUpdate('align');
        }
    }
};
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], TimelineElement.prototype, "align", null);
TimelineElement = __decorate([
    Component({
        selector: 'mosaik-timeline',
        template: timelineElementTemplate,
        themes: {
            joy: timelineElementJoyStyle,
            memphis: timelineElementMemphisStyle,
            cosmopolitan: timelineElementCosmopolitanStyle
        },
        host: {
            role: 'list'
        },
        imports: [
            TimelineItemElement,
            TimelineMarkerElement,
            TimelineContentElement,
            TimelineOppositeElement
        ]
    }),
    __metadata("design:paramtypes", [])
], TimelineElement);
export { TimelineElement };
//# sourceMappingURL=TimelineElement.js.map