"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GridInfoModule = void 0;
const tslib_1 = require("tslib");
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
    constructor(api) {
        super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, 'grid-info', 'GridInfoPopup', 'Display information about the Grid, the Options selected and all columns', api);
    }
    getViewAccessLevel() {
        return 'Full';
    }
    createColumnMenuItems(column) {
        if (this.isModuleAvailable()) {
            return [
                this.createMainMenuItemShowPopup({
                    Name: 'grid-info-show',
                    Label: 'Grid Info',
                    ComponentName: this.moduleInfo.Popup,
                    Icon: this.moduleInfo.Glyph,
                }),
            ];
        }
    }
    createContextMenuItems(menuContext) {
        if (this.isModuleAvailable()) {
            return [
                this.createMainMenuItemShowPopup({
                    Name: 'grid-info-show',
                    Label: 'Grid Info',
                    ComponentName: this.moduleInfo.Popup,
                    Icon: this.moduleInfo.Glyph,
                }),
            ];
        }
    }
}
exports.GridInfoModule = GridInfoModule;
