var BooleanFilterHelper = (function () {
    function BooleanFilterHelper() {
        this.FILTER_NONE = 'none';
        this.FILTER_TRUE = 'true';
        this.FILTER_FALSE = 'false';
        this.FILTER_NAMES = ['No Filter', 'Yes', 'No'];
        this.FILTER_ICONS = ['digi-filter', 'digi-valid', 'digi-cross'];
        this.FILTER_VALUES = [this.FILTER_NONE, this.FILTER_TRUE, this.FILTER_FALSE];
    }
    BooleanFilterHelper.prototype.setFilterNames = function (filterNames) {
        this.FILTER_NAMES = filterNames;
    };
    BooleanFilterHelper.prototype.getFilterName = function (filterIndex) {
        return this.FILTER_NAMES[filterIndex];
    };
    BooleanFilterHelper.prototype.getFilterNone = function () {
        return this.FILTER_NONE;
    };
    BooleanFilterHelper.prototype.setFilterIcons = function (filterIcons) {
        this.FILTER_ICONS = filterIcons;
    };
    BooleanFilterHelper.prototype.getFilterIcon = function (iconIndex) {
        return this.FILTER_ICONS[iconIndex];
    };
    BooleanFilterHelper.prototype.getFilterValue = function (valueIndex) {
        return this.FILTER_VALUES[valueIndex];
    };
    BooleanFilterHelper.prototype.getFilterValueIndex = function (filterValue) {
        return this.FILTER_VALUES.findIndex(function (x) { return x == filterValue; });
    };
    BooleanFilterHelper.prototype.setupContentGui = function (groupName) {
        return "\n      <div class=\"floating-filter__body__boolean\">\n        <ui-radio name=\"".concat(groupName, "\" model.one-time=\"1\" checked.bind=\"selectedIndex\"><span>").concat(this.FILTER_NAMES[1], "</span></ui-radio>\n        <ui-radio name=\"").concat(groupName, "\" model.one-time=\"2\" checked.bind=\"selectedIndex\"><span>").concat(this.FILTER_NAMES[2], "</span></ui-radio>\n      </div>");
    };
    BooleanFilterHelper.prototype.getValue = function (selectedIndex) {
        if (this.FILTER_VALUES[selectedIndex] == this.FILTER_TRUE) {
            return true;
        }
        else if (this.FILTER_VALUES[selectedIndex] == this.FILTER_FALSE) {
            return false;
        }
        return null;
    };
    BooleanFilterHelper.prototype.getModelAsString = function (selectedIndex) {
        return this.FILTER_NAMES[selectedIndex];
    };
    BooleanFilterHelper.prototype.setupContentGuiSideFilter = function () {
        return "\n        <div class=\"col s12 m12 l12\">\n        <ui-field class=\"filter-segmented-control\" label.bind=\"params.colDef.headerName\">\n            <ui-segmented-control name.bind=\"groupName\">\n            <ui-segmented-option model.one-time=\"1\" checked.bind=\"selectedIndex\" t=\"[label]common:general.yes\">\n            </ui-segmented-option>\n            <ui-segmented-option model.one-time=\"2\" checked.bind=\"selectedIndex\" t=\"[label]common:general.no\">\n            </ui-segmented-option>\n            </ui-segmented-control>\n        </ui-field>\n        </div>";
    };
    return BooleanFilterHelper;
}());
export { BooleanFilterHelper };

//# sourceMappingURL=boolean-filter-helper.js.map
