// #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 { dialogContentElementTemplate } from './DialogContentElementTemplate';
import { dialogContentElementCosmopolitanStyle } from './Themes/DialogContentElement.Cosmopolitan';
import { dialogContentElementJoyStyle } from './Themes/DialogContentElement.Joy';
import { dialogContentElementMemphisStyle } from './Themes/DialogContentElement.Memphis';
// #endregion
/**
 * DialogContent - The main content area within a dialog.
 *
 * @description
 * Wraps the scrollable body content of a dialog.
 * Place this element in the `content` slot of `mosaik-dialog`.
 * Text content must be provided via slotted children since `text` is not an HTML attribute.
 *
 * @name DialogContent
 * @element mosaik-dialog-content
 * @category Overlays
 *
 * @slot - Default slot for content children.
 *
 * @csspart contentText - The contentText part.
 * @csspart scroll - The scroll part.
 *
 * @cssprop {String} --dialog-content-font-family - The content font family CSS custom property.
 * @cssprop {String} --dialog-content-font-letter-spacing - The content font letter spacing CSS custom property.
 * @cssprop {String} --dialog-content-font-line-height - The content font line height CSS custom property.
 * @cssprop {String} --dialog-content-font-size - The content font size CSS custom property.
 * @cssprop {String} --dialog-content-font-text-decoration - The content font text decoration CSS custom property.
 * @cssprop {String} --dialog-content-font-text-transform - The content font text transform CSS custom property.
 * @cssprop {String} --dialog-content-font-weight - The content font weight CSS custom property.
 * @cssprop {String} --dialog-content-gap - The content gap CSS custom property.
 * @cssprop {String} --dialog-content-padding-bottom - The content padding bottom CSS custom property.
 * @cssprop {String} --dialog-content-padding-left - The content padding left CSS custom property.
 * @cssprop {String} --dialog-content-padding-right - The content padding right CSS custom property.
 * @cssprop {String} --dialog-content-padding-top - The content padding top CSS custom property.
 * @cssprop {String} --dialog-content-shadow - The content shadow CSS custom property.
 * @cssprop {String} --dialog-content-shadow-blur - The content shadow blur CSS custom property.
 * @cssprop {String} --dialog-content-shadow-color - The content shadow color CSS custom property.
 * @cssprop {String} --dialog-content-shadow-offset-x - The content shadow offset x CSS custom property.
 * @cssprop {String} --dialog-content-shadow-offset-y - The content shadow offset y CSS custom property.
 * @cssprop {String} --dialog-content-shadow-spread - The content shadow spread CSS custom property.
 * @cssprop {String} --dialog-content-transition-duration - The content transition duration CSS custom property.
 * @cssprop {String} --dialog-content-transition-mode - The content transition mode CSS custom property.
 * @cssprop {String} --dialog-content-transition-property - The content transition property CSS custom property.
 * @cssprop {String} --dialog-content-translate - The content translate CSS custom property.
 *
 * @dependency mosaik-scroll - The Scroll element.
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Dialog content with text:
 * ```html
 * <mosaik-dialog-content slot="content">
 *   <p>Are you sure you want to delete this item?</p>
 * </mosaik-dialog-content>
 * ```
 *
 * @public
 */
let DialogContentElement = class DialogContentElement 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-dialog-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])
], DialogContentElement.prototype, "text", null);
DialogContentElement = __decorate([
    Component({
        selector: 'mosaik-dialog-content',
        template: dialogContentElementTemplate,
        themes: {
            joy: dialogContentElementJoyStyle,
            memphis: dialogContentElementMemphisStyle,
            cosmopolitan: dialogContentElementCosmopolitanStyle
        },
        host: {
            slot: 'content'
        },
        imports: [
            ScrollElement,
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], DialogContentElement);
export { DialogContentElement };
//# sourceMappingURL=DialogContentElement.js.map