'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const __chunk_1 = require('./chunk-2755df65.js');
require('./chunk-f5b13333.js');
const __chunk_3 = require('./chunk-451ee4a2.js');

/** Class representing a card. */
class Card {
    constructor(hostRef) {
        __chunk_1.registerInstance(this, hostRef);
    }
    // todo: ??
    // @Prop() collapsible: boolean = false;
    // @Prop() collapsed: boolean = false;
    // @Prop() transparent: boolean = false;
    /**
     * Renders the card.
     * @return {html} The rendered html.
     */
    render() {
        return (__chunk_1.h("div", null, __chunk_1.h("slot", null)));
    }
    static get style() { return ":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}ema-card{color:var(--ema-color);display:block;min-height:50px;min-width:230px;-webkit-box-shadow:var(--ema-box-shadow);box-shadow:var(--ema-box-shadow);border-radius:var(--ema-border-radius,3px);background:var(--ema-background,#fff)}"; }
}

class CardContent {
    constructor(hostRef) {
        __chunk_1.registerInstance(this, hostRef);
        this.background = 'none';
        this.color = 'inherit';
        this.padding = '10px 20px';
    }
    componentDidLoad() {
        this.postRender();
    }
    componentDidUpdate() {
        this.postRender();
    }
    postRender() {
        setTimeout(() => {
            __chunk_3.Css.setVar('ema-card-content-background', this.background, this.el.querySelector('.ema-card-content'));
            __chunk_3.Css.setVar('ema-card-content-color', this.color, this.el.querySelector('.ema-card-content'));
            __chunk_3.Css.setVar('ema-card-content-padding', this.padding, this.el.querySelector('.ema-card-content'));
        });
    }
    render() {
        return (__chunk_1.h("div", { class: "ema-card-content" }, __chunk_1.h("slot", null)));
    }
    get el() { return __chunk_1.getElement(this); }
    static get style() { return ":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}.ema-card-content{min-height:25px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background:var(--ema-card-content-background,inherit);color:var(--ema-card-content-color,inherit);padding:var(--ema-card-content-padding,inherit)}"; }
}

class CardHeader {
    constructor(hostRef) {
        __chunk_1.registerInstance(this, hostRef);
        this.background = 'none';
        this.color = 'inherit';
        this.padding = '10px 20px';
    }
    componentDidLoad() {
        this.postRender();
    }
    componentDidUpdate() {
        this.postRender();
    }
    postRender() {
        setTimeout(() => {
            __chunk_3.Css.setVar('ema-card-header-background', this.background, this.el.querySelector('.ema-card-header'));
            __chunk_3.Css.setVar('ema-card-header-color', this.color, this.el.querySelector('.ema-card-header'));
            __chunk_3.Css.setVar('ema-card-header-padding', this.padding, this.el.querySelector('.ema-card-header'));
        });
    }
    render() {
        return (__chunk_1.h("div", { class: "ema-card-header" }, __chunk_1.h("slot", null)));
    }
    get el() { return __chunk_1.getElement(this); }
    static get style() { return ":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}.ema-card-header{min-height:25px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background:var(--ema-card-header-background,inherit);color:var(--ema-card-header-color,inherit);padding:var(--ema-card-header-padding,inherit)}.ema-card-header-title{margin:5px 0}.ema-card-header-subtitle{margin:5px 0;font-size:80%}"; }
}

exports.ema_card = Card;
exports.ema_card_content = CardContent;
exports.ema_card_header = CardHeader;
