// #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 {Color} --dot-foreground-color - Foreground/border color of the dot
 * @cssprop {String} --dot-size - Size of the dot
 * @cssprop {String} --dot-border-width - Border width for empty and half fill states
 *
 * @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 `{@link is}` property.
     * The `{@link 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