"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("../polyfills/tslib.js");
var webmapgl_core_js_1 = require("../webmapgl.core.js");
var chunk_cf921ba9_js_1 = require("./chunk-cf921ba9.js");
var TableColumnVisibilityButton = function () { function t() { this.label = chunk_cf921ba9_js_1.a("webmapgl.table-column-visibility.label"); } return t.prototype.openModal = function (t) { return tslib_1.__awaiter(this, void 0, void 0, function () { var e, n; return tslib_1.__generator(this, function (i) { switch (i.label) {
    case 0: return e = { component: document.createElement("gl-table-column-visibility"), componentOptions: { tableId: this.tableId }, event: t }, [4, this.modalCtrl.create(e)];
    case 1: return [4, (n = i.sent()).present()];
    case 2: return i.sent(), [2, n];
} }); }); }, t.prototype.render = function () { var t = this; return webmapgl_core_js_1.h("ion-button", { onClick: function (e) { return t.openModal(e); } }, this.label); }, Object.defineProperty(t, "is", { get: function () { return "gl-table-column-visibility-button"; }, enumerable: !0, configurable: !0 }), Object.defineProperty(t, "properties", { get: function () { return { label: { type: String, attr: "label" }, modalCtrl: { connect: "ion-modal-controller" }, tableId: { type: String, attr: "table-id" } }; }, enumerable: !0, configurable: !0 }), t; }();
exports.GlTableColumnVisibilityButton = TableColumnVisibilityButton;
