// #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 { Alignable } from '../../../Behaviors/Alignable';
import { Insetable } from '../../../Behaviors/Insetable';
import { Themeable } from '../../../Behaviors/Themeable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { pageContentElementTemplate } from './PageContentElementTemplate';
import { pageContentElementJoyStyle } from './Themes/PageContentElement.Joy';
import { pageContentElementMemphisStyle } from './Themes/PageContentElement.Memphis';
import { pageContentElementCosmopolitanStyle } from './Themes/PageContentElement.Cosmopolitan';
// #endregion
/**
 * Page Content - The main content area of a page where the primary information or functionality is presented.
 *
 * @element mosaik-page-content
 *
 * @slot - The default slot for placing child elements.
 *
 * @example
 * ```html
 * <mosaik-page-content>
 *   <p>Main page content goes here.</p>
 * </mosaik-page-content>
 * ```
 *
 * @public
 */
let PageContentElement = class PageContentElement extends Themeable(Insetable(Alignable(CustomElement))) {
    // #region Fields
    _fullWidth;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._fullWidth = false;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-page-content';
    }
    /**
     * Gets or sets the `fullWidth` property.
     * When true, the content expands to fill the full viewport width,
     * breaking out of the page's max-width constraint.
     *
     * The actual sizing is handled via CSS custom properties set by the parent PageElement.
     *
     * @public
     * @attr
     */
    get fullWidth() {
        return this._fullWidth;
    }
    set fullWidth(value) {
        if (this._fullWidth !== value) {
            this._fullWidth = value;
            this.requestUpdate('fullWidth');
        }
    }
};
__decorate([
    Attribute({
        type: Boolean,
        useDefault: true
    }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], PageContentElement.prototype, "fullWidth", null);
PageContentElement = __decorate([
    Component({
        selector: 'mosaik-page-content',
        template: pageContentElementTemplate,
        themes: {
            joy: pageContentElementJoyStyle,
            memphis: pageContentElementMemphisStyle,
            cosmopolitan: pageContentElementCosmopolitanStyle
        },
        host: {
            slot: 'content'
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], PageContentElement);
export { PageContentElement };
//# sourceMappingURL=PageContentElement.js.map