// #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 { Appearanceable } from '../../../Behaviors/Appearanceable';
import { Busyable } from '../../../Behaviors/Busyable';
import { Disableable } from '../../../Behaviors/Disableable';
import { Sizeable } from '../../../Behaviors/Sizeable';
import { Themeable } from '../../../Behaviors/Themeable';
import { Variantable } from '../../../Behaviors/Variantable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { PipElement } from '../../Primitives/Pip/PipElement';
import { ProgressRingElement } from '../../Ranges/ProgressRing/ProgressRingElement';
import { timelineMarkerElementCosmopolitanStyle } from './Themes/TimelineMarkerElement.Cosmopolitan';
import { timelineMarkerElementJoyStyle } from './Themes/TimelineMarkerElement.Joy';
import { timelineMarkerElementMemphisStyle } from './Themes/TimelineMarkerElement.Memphis';
import { timelineMarkerElementTemplate } from './TimelineMarkerElementTemplate';
// #endregion
/**
 * TimelineMarker - Represents the visual marker of a timeline item.
 *
 * @description
 * Renders a `PipElement` internally that displays text, icons, or symbols
 * as the timeline marker indicator. All visual properties (variant, appearance,
 * size) are forwarded to the inner pip. Accepts custom content via the default
 * slot to override the built-in pip. Supports a busy state that shows a
 * `ProgressRingElement` spinner over the marker.
 *
 * @name TimelineMarker
 * @element mosaik-timeline-marker
 * @category Layouts
 *
 * @slot - Default slot for custom marker content. Overrides the internal pip when provided.
 *
 * @csspart pip - The internal pip element used as default marker indicator
 * @csspart progressRing - The indeterminate progress ring shown during busy state
 *
 * @cssprop {String} --timeline-marker-font-family - The marker font family CSS custom property.
 * @cssprop {String} --timeline-marker-font-letter-spacing - The marker font letter spacing CSS custom property.
 * @cssprop {String} --timeline-marker-font-line-height - The marker font line height CSS custom property.
 * @cssprop {String} --timeline-marker-font-size - The marker font size CSS custom property.
 * @cssprop {String} --timeline-marker-font-text-decoration - The marker font text decoration CSS custom property.
 * @cssprop {String} --timeline-marker-font-text-transform - The marker font text transform CSS custom property.
 * @cssprop {String} --timeline-marker-font-weight - The marker font weight CSS custom property.
 * @cssprop {String} --timeline-marker-gap - The marker gap CSS custom property.
 * @cssprop {String} --timeline-marker-marker-border-color - Border color of the marker
 * @cssprop {String} --timeline-marker-marker-border-width - Border width of the marker
 * @cssprop {String} --timeline-marker-marker-color - Background color of the marker
 * @cssprop {String} --timeline-marker-marker-size - Width and height of the marker
 * @cssprop {String} --timeline-marker-padding-bottom - The marker padding bottom CSS custom property.
 * @cssprop {String} --timeline-marker-padding-left - The marker padding left CSS custom property.
 * @cssprop {String} --timeline-marker-padding-right - The marker padding right CSS custom property.
 * @cssprop {String} --timeline-marker-padding-top - The marker padding top CSS custom property.
 * @cssprop {String} --timeline-marker-progress-ring-width - Stroke width of the busy progress ring
 * @cssprop {String} --timeline-marker-shadow - The marker shadow CSS custom property.
 * @cssprop {String} --timeline-marker-shadow-blur - The marker shadow blur CSS custom property.
 * @cssprop {String} --timeline-marker-shadow-color - The marker shadow color CSS custom property.
 * @cssprop {String} --timeline-marker-shadow-offset-x - The marker shadow offset x CSS custom property.
 * @cssprop {String} --timeline-marker-shadow-offset-y - The marker shadow offset y CSS custom property.
 * @cssprop {String} --timeline-marker-shadow-spread - The marker shadow spread CSS custom property.
 * @cssprop {String} --timeline-marker-transition-duration - The marker transition duration CSS custom property.
 * @cssprop {String} --timeline-marker-transition-mode - The marker transition mode CSS custom property.
 * @cssprop {String} --timeline-marker-transition-property - The marker transition property CSS custom property.
 * @cssprop {String} --timeline-marker-translate - The marker translate CSS custom property.
 *
 * @fires connected {ConnectedEvent} - Fired when connected to DOM
 * @fires changed {PropertyChangedEvent} - Fired when a property changes
 *
 * @dependency mosaik-pip - The Pip element.
 * @dependency mosaik-progress-ring - The Progress Ring element.
 *
 * @example
 * Default marker (renders a pip):
 * ```html
 * <mosaik-timeline-marker text="1" variant="primary" appearance="solid"></mosaik-timeline-marker>
 * ```
 *
 * @example
 * Busy marker with spinner:
 * ```html
 * <mosaik-timeline-marker is-busy variant="primary"></mosaik-timeline-marker>
 * ```
 *
 * @example
 * Marker with custom slotted content:
 * ```html
 * <mosaik-timeline-marker>
 *   <span>✓</span>
 * </mosaik-timeline-marker>
 * ```
 *
 * @public
 */
let TimelineMarkerElement = class TimelineMarkerElement extends Themeable(Appearanceable(Variantable(Sizeable(Busyable(Disableable(CustomElement)))))) {
    // #region Fields
    _text;
    _icon;
    _iconSize;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._text = '';
        this._icon = '';
        this._iconSize = null;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-timeline-marker';
    }
    /**
     * Gets or sets the text content displayed inside the marker pip.
     * Can be a digit, letter, or symbol (e.g., `"1"`, `"A"`, `"✓"`).
     * Ignored when `icon` is set.
     * The default value is an empty string.
     *
     * @public
     * @attr
     */
    get text() {
        return this._text;
    }
    set text(value) {
        if (this._text !== value) {
            this._text = value;
            this.requestUpdate('text');
        }
    }
    /**
     * Gets or sets the icon SVG path data displayed inside the marker pip.
     * When set, the icon takes precedence over `text`.
     * The default value is an empty string (no icon).
     *
     * @public
     */
    get icon() {
        return this._icon;
    }
    set icon(value) {
        if (this._icon !== value) {
            this._icon = value;
            this.requestUpdate('icon');
        }
    }
    /**
     * Gets or sets the size of the icon inside the marker pip.
     * When `null`, the icon size adapts to the pip's own size.
     * The default value is `null`.
     *
     * @public
     * @attr icon-size
     */
    get iconSize() {
        return this._iconSize;
    }
    set iconSize(value) {
        if (this._iconSize !== value) {
            this._iconSize = value;
            this.requestUpdate('iconSize');
        }
    }
};
__decorate([
    Attribute({
        type: String
    }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], TimelineMarkerElement.prototype, "text", null);
__decorate([
    Property({
        type: String
    }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], TimelineMarkerElement.prototype, "icon", null);
__decorate([
    Attribute({
        type: String
    }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], TimelineMarkerElement.prototype, "iconSize", null);
TimelineMarkerElement = __decorate([
    Component({
        selector: 'mosaik-timeline-marker',
        template: timelineMarkerElementTemplate,
        themes: {
            joy: timelineMarkerElementJoyStyle,
            memphis: timelineMarkerElementMemphisStyle,
            cosmopolitan: timelineMarkerElementCosmopolitanStyle
        },
        host: {
            slot: 'marker'
        },
        imports: [
            PipElement,
            ProgressRingElement
        ]
    }),
    __metadata("design:paramtypes", [])
], TimelineMarkerElement);
export { TimelineMarkerElement };
//# sourceMappingURL=TimelineMarkerElement.js.map