import { ApiBase } from '../Implementation/ApiBase';
export class DataSetInternalApi extends ApiBase {
    showDataSetForm(dataSet) {
        if (dataSet.form) {
            this.getAdaptableInternalApi().showPopupForm({
                Id: 'data-set-form',
                Form: dataSet.form,
                prepareContext: (context) => {
                    return new Promise((resolve) => {
                        const preparedContext = {
                            ...context,
                            dataSet,
                        };
                        resolve(preparedContext);
                    });
                },
            });
        }
    }
}
