// #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 { 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 { Appearance } from '../../../Types/Appearance';
import { CustomElement } from '../../Abstracts/CustomElement';
import { iconElementTemplate } from './IconElementTemplate';
import { iconElementCosmopolitanStyle } from './Themes/IconElement.Cosmopolitan';
import { iconElementJoyStyle } from './Themes/IconElement.Joy';
import { iconElementMemphisStyle } from './Themes/IconElement.Memphis';
// #endregion
/**
 * Icon - A scalable vector graphics element for displaying symbolic imagery and visual communication.
 *
 * Renders SVG icons from path data with support for theming, sizing, rotation, and various appearances.
 * Essential for user interface iconography, providing consistent visual language across applications.
 * Features built-in accessibility support and performance optimization for vector graphics.
 *
 * @name IconElement
 * @element mosaik-icon
 * @category Media
 *
 * @csspart symbol - The internal SVG symbol container element
 *
 * @cssprop {String} --icon-font-family - Font family for icon rendering
 * @cssprop {String} --icon-font-size - Base font size for icon scaling
 * @cssprop {String} --icon-font-weight - Font weight for icon strokes
 * @cssprop {String} --icon-padding-top - Top padding around icon
 * @cssprop {String} --icon-padding-right - Right padding around icon
 * @cssprop {String} --icon-padding-bottom - Bottom padding around icon
 * @cssprop {String} --icon-padding-left - Left padding around icon
 * @cssprop {String} --icon-gap - Spacing between icon and adjacent content
 * @cssprop {String} --icon-transition-duration - Animation duration for state changes
 * @cssprop {String} --icon-transition-mode - Animation timing function
 * @cssprop {String} --icon-transition-property - CSS properties to animate
 * @cssprop {Color} --icon-foreground-color - Icon color and stroke color
 * @cssprop {Color} --icon-background-color - Background color behind icon
 * @cssprop {Color} --icon-border-color - Border color around icon
 * @cssprop {String} --icon-border-width - Border width around icon
 * @cssprop {String} --icon-border-radius - Border radius for icon container
 * @cssprop {String} --icon-border-style - Border style (solid, dashed, etc.)
 * @cssprop {String} --icon-shadow - Shadow effect applied to icon
 * @cssprop {String} --icon-size - Overall size scaling for the icon
 *
 * @example
 * ```html
 * <!-- Basic icon (set icon path data via the `data` JavaScript property) -->
 * <mosaik-icon></mosaik-icon>
 *
 * <!-- Rotated icon with solid appearance -->
 * <mosaik-icon angel="180" appearance="solid"></mosaik-icon>
 *
 * <!-- Inline small icon -->
 * <span>Click here <mosaik-icon inline size="small"></mosaik-icon></span>
 * ```
 *
 * @public
 */
let IconElement = class IconElement extends Themeable(Variantable(Sizeable(Appearanceable(Disableable(CustomElement))))) {
    // #region Fields
    _data;
    _angle;
    _inline;
    _readonly;
    _grid;
    // #endregion
    // #region Ctor
    /**
     * Constructs a new instance of the `IconElement` class.
     *
     * @public
     */
    constructor() {
        super();
        this._data = '';
        this._angle = 0;
        this._inline = false;
        this._readonly = false;
        this._grid = 24;
        // 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 type.
        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 `angle` property.
     *
     * @public
     * @attr
     */
    get angle() {
        return this._angle;
    }
    set angle(value) {
        if (this._angle !== value) {
            this._angle = value;
            this.requestUpdate('angle');
        }
    }
    /**
     * Gets or sets the `inline` 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');
        }
    }
    /**
     * Gets or sets the SVG grid used for the internal viewBox size.
     * This must match the coordinate system of the icon path data
     * (e.g. 20 for Fluent 20px icons, 24 for Material Design icons).
     *
     * @public
     * @attr
     */
    get grid() {
        return this._grid;
    }
    set grid(value) {
        if (this._grid !== value) {
            this._grid = value;
            this.requestUpdate('grid');
        }
    }
};
__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, "angle", 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);
__decorate([
    Attribute({
        type: Number,
    }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], IconElement.prototype, "grid", null);
IconElement = __decorate([
    Component({
        selector: 'mosaik-icon',
        template: iconElementTemplate,
        themes: {
            joy: iconElementJoyStyle,
            memphis: iconElementMemphisStyle,
            cosmopolitan: iconElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], IconElement);
export { IconElement };
//# sourceMappingURL=IconElement.js.map