// #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 { Themeable } from '../../../../Behaviors/Themeable';
import { Attribute } from '../../../../Decorators/AttributeDecorator';
import { Component } from '../../../../Decorators/ComponentDecorator';
import { Property } from '../../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../../Abstracts/CustomElement';
import { designerFrameElementTemplate } from './DesignerFrameElementTemplate';
import { designerFrameElementCosmopolitanStyle } from './Themes/DesignerFrameElement.Cosmopolitan';
import { designerFrameElementJoyStyle } from './Themes/DesignerFrameElement.Joy';
import { designerFrameElementMemphisStyle } from './Themes/DesignerFrameElement.Memphis';
// #endregion
/**
 * DesignerFrame - The actual design surface rendered inside the canvas.
 *
 * @description
 * Represents the artboard-like editable region where layers are rendered.
 * Establishes the frame-local coordinate system. Does not own zoom
 * or pan behavior (those belong to the canvas).
 *
 * @name DesignerFrame
 * @element mosaik-designer-frame
 * @category Layouts
 *
 * @slot - Default slot for layer content
 *
 * @csspart bounds - The bounds overlay region for visual guides
 * @csspart surface - The visible frame surface that contains slotted content
 *
 * @cssprop {String} --designer-frame-background-color - Background color of the frame surface
 * @cssprop {String} --designer-frame-border-color - Border color of the frame
 * @cssprop {String} --designer-frame-border-width - Border width of the frame
 * @cssprop {String} --designer-frame-bounds-color - Color of the bounds overlay
 * @cssprop {String} --designer-frame-bounds-font-size - Font size for bounds labels
 * @cssprop {String} --designer-frame-font-family - The frame font family CSS custom property.
 * @cssprop {String} --designer-frame-font-letter-spacing - The frame font letter spacing CSS custom property.
 * @cssprop {String} --designer-frame-font-line-height - The frame font line height CSS custom property.
 * @cssprop {String} --designer-frame-font-size - The frame font size CSS custom property.
 * @cssprop {String} --designer-frame-font-text-decoration - The frame font text decoration CSS custom property.
 * @cssprop {String} --designer-frame-font-text-transform - The frame font text transform CSS custom property.
 * @cssprop {String} --designer-frame-font-weight - The frame font weight CSS custom property.
 * @cssprop {String} --designer-frame-gap - The frame gap CSS custom property.
 * @cssprop {String} --designer-frame-padding-bottom - The frame padding bottom CSS custom property.
 * @cssprop {String} --designer-frame-padding-left - The frame padding left CSS custom property.
 * @cssprop {String} --designer-frame-padding-right - The frame padding right CSS custom property.
 * @cssprop {String} --designer-frame-padding-top - The frame padding top CSS custom property.
 * @cssprop {String} --designer-frame-shadow - Box shadow of the frame surface
 * @cssprop {String} --designer-frame-shadow-blur - The frame shadow blur CSS custom property.
 * @cssprop {String} --designer-frame-shadow-color - The frame shadow color CSS custom property.
 * @cssprop {String} --designer-frame-shadow-offset-x - The frame shadow offset x CSS custom property.
 * @cssprop {String} --designer-frame-shadow-offset-y - The frame shadow offset y CSS custom property.
 * @cssprop {String} --designer-frame-shadow-spread - The frame shadow spread CSS custom property.
 * @cssprop {String} --designer-frame-transition-duration - Transition duration for animated state changes
 * @cssprop {String} --designer-frame-transition-mode - Transition timing function
 * @cssprop {String} --designer-frame-transition-property - Transition properties to animate
 * @cssprop {String} --designer-frame-translate - The frame translate CSS custom property.
 *
 * @example
 * Artboard surface for placing design layers:
 * ```html
 * <mosaik-designer-frame>
 *   <div>Layer content here</div>
 * </mosaik-designer-frame>
 * ```
 *
 * @example
 * Frame with visible bounds overlay for safe area guides:
 * ```html
 * <mosaik-designer-frame show-bounds></mosaik-designer-frame>
 * ```
 *
 * @public
 */
let DesignerFrameElement = class DesignerFrameElement extends Themeable(CustomElement) {
    // #region Fields
    _bounds;
    _showBounds;
    // #endregion
    // #region Ctor
    /**
     * Constructs a new instance of the {@link DesignerFrameElement} class.
     *
     * @public
     */
    constructor() {
        super();
        this._bounds = null;
        this._showBounds = false;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-designer-frame';
    }
    /**
     * Gets or sets the `bounds` property.
     * Defines inner frame-local bounds such as safe margins or print bounds.
     *
     * @public
     */
    get bounds() {
        return this._bounds;
    }
    set bounds(value) {
        if (this._bounds !== value) {
            this._bounds = value;
            this.requestUpdate('bounds');
        }
    }
    /**
     * Gets or sets the `showBounds` property.
     * Controls whether configured bounds are visually rendered.
     *
     * @public
     * @attr
     */
    get showBounds() {
        return this._showBounds;
    }
    set showBounds(value) {
        if (this._showBounds !== value) {
            this._showBounds = value;
            this.requestUpdate('showBounds');
        }
    }
};
__decorate([
    Property({ type: Object }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], DesignerFrameElement.prototype, "bounds", null);
__decorate([
    Attribute({ type: Boolean }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], DesignerFrameElement.prototype, "showBounds", null);
DesignerFrameElement = __decorate([
    Component({
        selector: 'mosaik-designer-frame',
        template: designerFrameElementTemplate,
        themes: {
            joy: designerFrameElementJoyStyle,
            memphis: designerFrameElementMemphisStyle,
            cosmopolitan: designerFrameElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], DesignerFrameElement);
export { DesignerFrameElement };
//# sourceMappingURL=DesignerFrameElement.js.map