"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataSetInternalApi = void 0;
const ApiBase_1 = require("../Implementation/ApiBase");
class DataSetInternalApi extends ApiBase_1.ApiBase {
    /**
     * Fires the DataSet Selected Event
     * @param dataSet Data Set which has been selected
     */
    fireDataSetSelectedEvent(dataSet) {
        if (this.isAdapTableReady()) {
            const dataSetSelectedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { dataSet });
            this.getEventApi().emit('DataSetSelected', dataSetSelectedInfo);
        }
    }
}
exports.DataSetInternalApi = DataSetInternalApi;
