import { h } from '@stencil/core';
export class TableExportButton {
    constructor() {
        this.format = 'csv';
    }
    async clickHandler() {
        this.exportCtrl.create(this);
    }
    render() {
        return (h("ion-button", { "ion-button": true, onClick: () => this.clickHandler() },
            h("slot", null, this.format.toUpperCase())));
    }
    static get is() { return "gl-table-export-button"; }
    static get properties() { return {
        "author": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": true,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "author",
            "reflect": false
        },
        "filename": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "filename",
            "reflect": false
        },
        "format": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "'csv' | 'pdf'",
                "resolved": "\"csv\" | \"pdf\"",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "format",
            "reflect": false,
            "defaultValue": "'csv'"
        },
        "pageOrientation": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "'landscape' | 'portrait'",
                "resolved": "\"landscape\" | \"portrait\"",
                "references": {}
            },
            "required": false,
            "optional": true,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "page-orientation",
            "reflect": false
        },
        "pageSubtitle": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": true,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "page-subtitle",
            "reflect": false
        },
        "pageTitle": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": true,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "page-title",
            "reflect": false
        },
        "tableId": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": true,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "table-id",
            "reflect": false
        },
        "url": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": true,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "url",
            "reflect": false
        }
    }; }
    static get connectProps() { return [{
            "name": "exportCtrl",
            "connect": "gl-table-export-controller"
        }]; }
}
