// #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 { Disableable } from '../../../Behaviors/Disableable';
import { Labelable } from '../../../Behaviors/Labelable';
import { Sizeable } from '../../../Behaviors/Sizeable';
import { Variantable } from '../../../Behaviors/Variantable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { BadgePosition } from '../../../Types/BadgePosition';
import { CustomElement } from '../../Abstracts/CustomElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { IconElement } from '../Icon/IconElement';
import { badgeElementTemplate } from './BadgeElementTemplate';
import { badgeElementJoyStyle } from './Themes/BadgeElement.Joy';
import { badgeElementRetroStyle } from './Themes/BadgeElement.Retro';
import { badgeElementCosmopolitanStyle } from './Themes/BadgeElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * The `{@link BadgeElement}` element.
 *
 * @public
 */
let BadgeElement = class BadgeElement extends Themeable(Appearanceable(Variantable(Sizeable(Disableable(Labelable(CustomElement)))))) {
    // #region Fields
    _icon;
    _overlap;
    _standalone;
    _position;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._icon = '';
        this._overlap = false;
        this._standalone = false;
        this._position = BadgePosition.None;
    }
    // #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-badge';
    }
    /**
     * Gets or sets the `icon` property.
     *
     * @public
     */
    get icon() {
        return this._icon;
    }
    set icon(value) {
        if (this._icon !== value) {
            this._icon = value;
            this.requestUpdate('icon');
        }
    }
    /**
     * Gets or sets the `overlap` property.
     *
     * @public
     * @attr
     */
    get overlap() {
        return this._overlap;
    }
    set overlap(value) {
        if (this._overlap !== value) {
            this._overlap = value;
            this.requestUpdate('overlap');
        }
    }
    /**
     * Gets or sets the `standalone` property.
     *
     * @public
     * @attr
     */
    get standalone() {
        return this._standalone;
    }
    set standalone(value) {
        if (this._standalone !== value) {
            this._standalone = value;
            this.requestUpdate('standalone');
        }
    }
    /**
     * Gets or sets the `position` property.
     *
     * @public
     * @attr
     */
    get position() {
        return this._position;
    }
    set position(value) {
        if (this._position !== value) {
            this._position = value;
            this.requestUpdate('position');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], BadgeElement.prototype, "icon", null);
__decorate([
    Attribute({ type: Boolean, useDefault: true }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], BadgeElement.prototype, "overlap", null);
__decorate([
    Attribute({ type: Boolean, useDefault: true }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], BadgeElement.prototype, "standalone", null);
__decorate([
    Attribute({ type: BadgePosition }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], BadgeElement.prototype, "position", null);
BadgeElement = __decorate([
    Component({
        selector: 'mosaik-badge',
        template: badgeElementTemplate,
        themes: {
            joy: badgeElementJoyStyle,
            retro: badgeElementRetroStyle,
            cosmopolitan: badgeElementCosmopolitanStyle
        },
        imports: [
            TextElement,
            IconElement
        ]
    }),
    __metadata("design:paramtypes", [])
], BadgeElement);
export { BadgeElement };
//# sourceMappingURL=BadgeElement.js.map