// #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 { 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 { Appearance } from '../../../Types/Appearance';
import { CustomElement } from '../../Abstracts/CustomElement';
import { iconElementTemplate } from './IconElementTemplate';
import { iconElementJoyStyle } from './Themes/IconElement.Joy';
import { iconElementRetroStyle } from './Themes/IconElement.Retro';
import { iconElementCosmopolitanStyle } from './Themes/IconElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Icon - A graphical representation of an action, object, or concept often used for visual communication.
 *
 * @element mosaik-icon
 *
 * @csspart symbol - The symbol part.
 *
 * @public
 */
let IconElement = class IconElement extends Themeable(Variantable(Sizeable(Appearanceable(Disableable(CustomElement))))) {
    // #region Fields
    _data;
    _angel;
    _inline;
    _readonly;
    // #endregion
    // #region Ctor
    /**
     * Constructs a new instance of the `IconElement` class.
     *
     * @public
     */
    constructor() {
        super();
        this._data = '';
        this._angel = 0;
        this._inline = false;
        this._readonly = false;
        // TODO: REMARK: This is a workaround for the issue with the docs generation.
        // If we set the orientation property like this `this.appearance = Appearance.Plain;` the
        // docs generation will generates a wrong tpye.
        Object.assign(this, { appearance: Appearance.Plain });
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
    */
    static get is() {
        return 'mosaik-icon';
    }
    /**
     * Gets or sets the `data` property.
     *
     * @public
     */
    get data() {
        return this._data;
    }
    set data(value) {
        if (this._data !== value) {
            this._data = value;
            this.requestUpdate('data');
        }
    }
    /**
     * Gets or sets the `angel` property.
     *
     * @public
     * @attr
     */
    get angel() {
        return this._angel;
    }
    set angel(value) {
        if (this._angel !== value) {
            this._angel = value;
            this.requestUpdate('angel');
        }
    }
    /**
     * Gets or sets the `inile` property.
     *
     * @public
     * @attr
     */
    get inline() {
        return this._inline;
    }
    set inline(value) {
        if (this._inline !== value) {
            this._inline = value;
            this.requestUpdate('inline');
        }
    }
    /**
     * Gets or sets the `readonly` property.
     *
     * @public
     * @attr
     */
    get readonly() {
        return this._readonly;
    }
    set readonly(value) {
        if (this._readonly !== value) {
            this._readonly = value;
            this.requestUpdate('readonly');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], IconElement.prototype, "data", null);
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], IconElement.prototype, "angel", null);
__decorate([
    Attribute({
        type: Boolean,
        useDefault: true
    }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], IconElement.prototype, "inline", null);
__decorate([
    Attribute({
        type: Boolean,
        useDefault: true
    }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], IconElement.prototype, "readonly", null);
IconElement = __decorate([
    Component({
        selector: 'mosaik-icon',
        template: iconElementTemplate,
        themes: {
            joy: iconElementJoyStyle,
            retro: iconElementRetroStyle,
            cosmopolitan: iconElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], IconElement);
export { IconElement };
//# sourceMappingURL=IconElement.js.map