'use strict';

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

const __chunk_1 = require('./chunk-c92d86f4.js');

class DatatableFooter {
    constructor(hostRef) {
        __chunk_1.registerInstance(this, hostRef);
    }
    componentWillLoad() {
        this.actions = Array.from(this.host.querySelectorAll('materials-datatable-action'));
    }
    render() {
        return (__chunk_1.h("div", { class: "container" }, this.actions && this.actions.length > 0 ? this.actions.map(a => {
            return a.display && __chunk_1.h("materials-button", { raised: true, color: a.color, icon: a.icon, onClick: (e) => a.press(e) }, a.label);
        })
            :
                __chunk_1.h("slot", null)));
    }
    get host() { return __chunk_1.getElement(this); }
    static get style() { return ".container{min-height:42px;background-color:var(--mdc-theme-datatable-header,#fff);color:var(--mdc-theme-on-datatable-header,#212121);font-family:Roboto,Arial,sans-serif;font-size:15px;padding-left:8px;padding-top:8px}"; }
}

exports.materials_datatable_footer = DatatableFooter;
