// #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 { Slottable } from '../../../Behaviors/Slottable';
import { TextFormattable } from '../../../Behaviors/TextFormattable';
import { Themeable } from '../../../Behaviors/Themeable';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { ScrollElement } from '../../Primitives/Scroll/ScrollElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { sheetContentElementTemplate } from './SheetContentElementTemplate';
import { sheetContentElementCosmopolitanStyle } from './Themes/SheetContentElement.Cosmopolitan';
import { sheetContentElementJoyStyle } from './Themes/SheetContentElement.Joy';
import { sheetContentElementMemphisStyle } from './Themes/SheetContentElement.Memphis';
// #endregion
/**
 * SheetContent - The main content area inside a bottom sheet.
 *
 * @description
 * Provides the scrollable body region of a sheet panel.
 * Text must be set via JavaScript (the `text` property is not an HTML attribute).
 * Place this element in the `content` slot of `mosaik-sheet`.
 *
 * @name SheetContent
 * @element mosaik-sheet-content
 * @category Overlays
 *
 * @slot - Default slot for content children.
 *
 * @csspart contentText - The contentText part.
 * @csspart scroll - The scroll part.
 *
 * @cssprop {String} --sheet-content-font-family - The content font family CSS custom property.
 * @cssprop {String} --sheet-content-font-letter-spacing - The content font letter spacing CSS custom property.
 * @cssprop {String} --sheet-content-font-line-height - The content font line height CSS custom property.
 * @cssprop {String} --sheet-content-font-size - The content font size CSS custom property.
 * @cssprop {String} --sheet-content-font-text-decoration - The content font text decoration CSS custom property.
 * @cssprop {String} --sheet-content-font-text-transform - The content font text transform CSS custom property.
 * @cssprop {String} --sheet-content-font-weight - The content font weight CSS custom property.
 * @cssprop {String} --sheet-content-gap - The content gap CSS custom property.
 * @cssprop {String} --sheet-content-padding-bottom - The content padding bottom CSS custom property.
 * @cssprop {String} --sheet-content-padding-left - The content padding left CSS custom property.
 * @cssprop {String} --sheet-content-padding-right - The content padding right CSS custom property.
 * @cssprop {String} --sheet-content-padding-top - The content padding top CSS custom property.
 * @cssprop {String} --sheet-content-shadow - The content shadow CSS custom property.
 * @cssprop {String} --sheet-content-shadow-blur - The content shadow blur CSS custom property.
 * @cssprop {String} --sheet-content-shadow-color - The content shadow color CSS custom property.
 * @cssprop {String} --sheet-content-shadow-offset-x - The content shadow offset x CSS custom property.
 * @cssprop {String} --sheet-content-shadow-offset-y - The content shadow offset y CSS custom property.
 * @cssprop {String} --sheet-content-shadow-spread - The content shadow spread CSS custom property.
 * @cssprop {String} --sheet-content-transition-duration - The content transition duration CSS custom property.
 * @cssprop {String} --sheet-content-transition-mode - The content transition mode CSS custom property.
 * @cssprop {String} --sheet-content-transition-property - The content transition property CSS custom property.
 * @cssprop {String} --sheet-content-translate - The content translate CSS custom property.
 *
 * @dependency mosaik-scroll - The Scroll element.
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Sheet content with slotted children:
 * ```html
 * <mosaik-sheet-content slot="content">
 *   <p>Sheet body content here.</p>
 * </mosaik-sheet-content>
 * ```
 *
 * @public
 */
let SheetContentElement = class SheetContentElement extends Themeable(TextFormattable(Slottable(CustomElement))) {
    // #region Fields
    _text;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._text = '';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-sheet-content';
    }
    /**
     * Gets or sets the `text` property.
     *
     * @public
     */
    get text() {
        return this._text;
    }
    set text(value) {
        if (this._text !== value) {
            this._text = value;
            this.requestUpdate('text');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], SheetContentElement.prototype, "text", null);
SheetContentElement = __decorate([
    Component({
        selector: 'mosaik-sheet-content',
        template: sheetContentElementTemplate,
        themes: {
            joy: sheetContentElementJoyStyle,
            memphis: sheetContentElementMemphisStyle,
            cosmopolitan: sheetContentElementCosmopolitanStyle
        },
        host: {
            slot: 'content'
        },
        imports: [
            ScrollElement,
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], SheetContentElement);
export { SheetContentElement };
//# sourceMappingURL=SheetContentElement.js.map