// #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 { Disableable } from '../../../Behaviors/Disableable';
import { Sizeable } from '../../../Behaviors/Sizeable';
import { Themeable } from '../../../Behaviors/Themeable';
import { Variantable } from '../../../Behaviors/Variantable';
import { addInheritanceConsumerController } from '../../../Controllers/InheritanceConsumerController';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { DotFill } from '../../../Types/DotFill';
import { CustomElement } from '../../Abstracts/CustomElement';
import { dotElementTemplate } from './DotElementTemplate';
import { DOT_GROUP_INHERITANCE_CONTEXT } from './DotGroupInheritanceContext';
import { IDotElementProps } from './IDotElementProps';
import { dotElementCosmopolitanStyle } from './Themes/DotElement.Cosmopolitan';
import { dotElementJoyStyle } from './Themes/DotElement.Joy';
import { dotElementMemphisStyle } from './Themes/DotElement.Memphis';
// #endregion
/**
 * Dot - A small point or marker often used to indicate status or position.
 *
 * @description
 * The Dot component is a versatile status indicator that supports different fill states
 * (empty, half, full) to represent various states or progress levels.
 *
 * @element mosaik-dot
 * @category Primitives
 *
 * @csspart container - The main dot container element
 * @csspart fill - The inner fill element that shows the fill state
 *
 * @cssprop {Color} --dot-background-color - Background color of the dot
 * @cssprop {String} --dot-border-color - The border color CSS custom property.
 * @cssprop {String} --dot-border-radius - The border radius CSS custom property.
 * @cssprop {String} --dot-border-style - The border style CSS custom property.
 * @cssprop {String} --dot-border-width - Border width for empty and half fill states
 * @cssprop {String} --dot-font-family - The font family CSS custom property.
 * @cssprop {String} --dot-font-letter-spacing - The font letter spacing CSS custom property.
 * @cssprop {String} --dot-font-line-height - The font line height CSS custom property.
 * @cssprop {String} --dot-font-size - The font size CSS custom property.
 * @cssprop {String} --dot-font-text-decoration - The font text decoration CSS custom property.
 * @cssprop {String} --dot-font-text-transform - The font text transform CSS custom property.
 * @cssprop {String} --dot-font-weight - The font weight CSS custom property.
 * @cssprop {Color} --dot-foreground-color - Foreground/border color of the dot
 * @cssprop {String} --dot-gap - The gap CSS custom property.
 * @cssprop {String} --dot-padding-bottom - The padding bottom CSS custom property.
 * @cssprop {String} --dot-padding-left - The padding left CSS custom property.
 * @cssprop {String} --dot-padding-right - The padding right CSS custom property.
 * @cssprop {String} --dot-padding-top - The padding top CSS custom property.
 * @cssprop {String} --dot-shadow - The shadow CSS custom property.
 * @cssprop {String} --dot-shadow-blur - The shadow blur CSS custom property.
 * @cssprop {String} --dot-shadow-color - The shadow color CSS custom property.
 * @cssprop {String} --dot-shadow-offset-x - The shadow offset x CSS custom property.
 * @cssprop {String} --dot-shadow-offset-y - The shadow offset y CSS custom property.
 * @cssprop {String} --dot-shadow-spread - The shadow spread CSS custom property.
 * @cssprop {String} --dot-size - Size of the dot
 * @cssprop {String} --dot-transition-duration - The transition duration CSS custom property.
 * @cssprop {String} --dot-transition-mode - The transition mode CSS custom property.
 * @cssprop {String} --dot-transition-property - The transition property CSS custom property.
 * @cssprop {String} --dot-translate - The translate CSS custom property.
 *
 * @example
 * Basic dot status indicator:
 * ```html
 * <mosaik-dot fill="full" variant="success"></mosaik-dot>
 * ```
 *
 * @example
 * Different fill states:
 * ```html
 * <mosaik-dot fill="full" variant="primary"></mosaik-dot>
 * <mosaik-dot fill="half" variant="warning"></mosaik-dot>
 * <mosaik-dot fill="empty" variant="error"></mosaik-dot>
 * ```
 *
 * @public
 */
let DotElement = class DotElement extends Themeable(Sizeable(Variantable(Disableable(CustomElement)))) {
    // #region Fields
    _inheritance = addInheritanceConsumerController(this, {
        context: DOT_GROUP_INHERITANCE_CONTEXT
    });
    _fill;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._fill = IDotElementProps.DEFAULTS.fill;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-dot';
    }
    /**
     * Gets or sets the `size` property.
     * When used inside a DotGroup, inherits the group's size unless explicitly set.
     *
     * @public
     * @override
     */
    get size() {
        return this._inheritance.get('size', super.size);
    }
    set size(value) {
        this._inheritance.markExplicit('size');
        super.size = value;
    }
    /**
     * Gets or sets the fill state of the dot.
     * The default value is `full`, which means the dot is completely filled.
     *
     * Possible values are:
     * * `full` (default) - completely filled
     * * `half` - filled from left to right (50%)
     * * `empty` - only border, no fill
     *
     * @public
     * @attr
     */
    get fill() {
        return this._fill;
    }
    set fill(value) {
        if (this._fill !== value) {
            this._fill = value;
            this.requestUpdate('fill');
        }
    }
};
__decorate([
    Attribute({ type: DotFill }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], DotElement.prototype, "fill", null);
DotElement = __decorate([
    Component({
        selector: 'mosaik-dot',
        template: dotElementTemplate,
        themes: {
            joy: dotElementJoyStyle,
            memphis: dotElementMemphisStyle,
            cosmopolitan: dotElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], DotElement);
export { DotElement };
//# sourceMappingURL=DotElement.js.map