// #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 { 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 { Size } from '../../../Types/Size';
import { CustomElement } from '../../Abstracts/CustomElement';
import { IconElement } from '../../Media/Icon/IconElement';
import { TextElement } from '../Text/TextElement';
import { ribbonElementTemplate } from './RibbonElementTemplate';
import { ribbonElementJoyStyle } from './Themes/RibbonElement.Joy';
import { ribbonElementMemphisStyle } from './Themes/RibbonElement.Memphis';
import { ribbonElementCosmopolitanStyle } from './Themes/RibbonElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Ribbon - A decorative label component for highlighting status, features, or promotional content.
 *
 * @description
 * The Ribbon component displays a prominent label with optional icon, typically used to draw attention
 * to special features, new content, status indicators, or promotional badges. It supports multiple size
 * variants, color variants for different semantic meanings (success, warning, error, info), and can be
 * disabled for inactive states. Ribbons are commonly positioned at corners or edges of cards, images,
 * and containers to create eye-catching visual accents.
 *
 * @name Ribbon
 * @element mosaik-ribbon
 * @category Primitives
 *
 * @csspart root - The root container element for the ribbon
 * @csspart text - The text display element
 *
 * @cssprop {String} --ribbon-background-color - Background color of the ribbon
 * @cssprop {String} --ribbon-border-color - Border color of the ribbon outline
 * @cssprop {String} --ribbon-border-radius - Corner rounding radius
 * @cssprop {String} --ribbon-border-style - Border line style
 * @cssprop {String} --ribbon-border-width - Border thickness
 * @cssprop {String} --ribbon-font - Combined font shorthand property
 * @cssprop {String} --ribbon-font-family - Font family for ribbon text
 * @cssprop {String} --ribbon-font-size - Font size for ribbon text
 * @cssprop {String} --ribbon-font-weight - Font weight for ribbon text
 * @cssprop {String} --ribbon-font-letter-spacing - Letter spacing for ribbon text
 * @cssprop {String} --ribbon-foreground-color - Text and icon color
 * @cssprop {String} --ribbon-gap - Spacing between icon and text
 * @cssprop {String} --ribbon-padding-top - Top padding inside the ribbon
 * @cssprop {String} --ribbon-padding-right - Right padding inside the ribbon
 * @cssprop {String} --ribbon-padding-bottom - Bottom padding inside the ribbon
 * @cssprop {String} --ribbon-padding-left - Left padding inside the ribbon
 * @cssprop {String} --ribbon-shadow - Drop shadow or elevation effect
 * @cssprop {String} --ribbon-transition-duration - Duration of visual transitions
 * @cssprop {String} --ribbon-transition-mode - Timing function for transitions
 * @cssprop {String} --ribbon-transition-property - CSS properties to transition
 *
 * @dependency {TextElement} - Text rendering component for ribbon labels
 * @dependency {IconElement} - Icon display component for ribbon graphics
 *
 * @example
 * Basic ribbon with label:
 * ```html
 * <mosaik-ribbon label="New" variant="primary"></mosaik-ribbon>
 * ```
 *
 * @example
 * Ribbon with icon:
 * ```html
 * <mosaik-ribbon label="Featured" icon="star-icon" variant="success"></mosaik-ribbon>
 * ```
 *
 * @example
 * Sale badge on product card:
 * ```html
 * <div class="product-card" style="position: relative;">
 *   <img src="product.jpg" alt="Product">
 *   <mosaik-ribbon
 *     label="50% OFF"
 *     variant="error"
 *     size="large"
 *     style="position: absolute; top: 10px; right: 10px;">
 *   </mosaik-ribbon>
 * </div>
 * ```
 *
 * @example
 * Status indicator:
 * ```html
 * <mosaik-ribbon label="Beta" variant="warning" size="small"></mosaik-ribbon>
 * ```
 *
 * @example
 * Disabled ribbon:
 * ```html
 * <mosaik-ribbon label="Expired" disabled></mosaik-ribbon>
 * ```
 *
 * @public
 */
let RibbonElement = class RibbonElement extends Themeable(Sizeable(Variantable(Disableable(Labelable(CustomElement))))) {
    // #region Fields
    _icon;
    _iconSize;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._icon = '';
        this._iconSize = null;
    }
    // #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-ribbon';
    }
    /**
     * 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 `iconSize` property.
     *
     * @public
     */
    get iconSize() {
        return this._iconSize;
    }
    set iconSize(value) {
        if (this._iconSize !== value) {
            this._iconSize = value;
            this.requestUpdate('iconSize');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], RibbonElement.prototype, "icon", null);
__decorate([
    Attribute({ type: Size }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], RibbonElement.prototype, "iconSize", null);
RibbonElement = __decorate([
    Component({
        selector: 'mosaik-ribbon',
        template: ribbonElementTemplate,
        themes: {
            joy: ribbonElementJoyStyle,
            memphis: ribbonElementMemphisStyle,
            cosmopolitan: ribbonElementCosmopolitanStyle
        },
        imports: [
            TextElement,
            IconElement
        ]
    }),
    __metadata("design:paramtypes", [])
], RibbonElement);
export { RibbonElement };
//# sourceMappingURL=RibbonElement.js.map