import { Css } from '@ema/core';
export class CardFooter {
    constructor() {
        this.background = 'none';
        this.color = 'inherit';
        this.padding = '10px 20px';
    }
    componentDidLoad() {
        this.postRender();
    }
    componentDidUpdate() {
        this.postRender();
    }
    postRender() {
        setTimeout(() => {
            Css.setVar('ema-card-footer-background', this.background, this.el.querySelector('.ema-card-footer'));
            Css.setVar('ema-card-footer-color', this.color, this.el.querySelector('.ema-card-footer'));
            Css.setVar('ema-card-footer-padding', this.padding, this.el.querySelector('.ema-card-footer'));
        });
    }
    render() {
        return (h("div", { class: "ema-card-footer" },
            h("slot", null)));
    }
    static get is() { return "ema-card-footer"; }
    static get properties() { return {
        "background": {
            "type": String,
            "attr": "background"
        },
        "color": {
            "type": String,
            "attr": "color"
        },
        "el": {
            "elementRef": true
        },
        "padding": {
            "type": String,
            "attr": "padding"
        }
    }; }
    static get style() { return "/**style-placeholder:ema-card-footer:**/"; }
}
