import Input from "./Input/index.js";
import Checkbox from "./Checkbox/index.js";
import ColorPicker from "./ColorPicker/index.js";
import DatePicker from "./DatePicker/index.js";
import Radio from "./Radio/index.js";
import SelectWithDataSource from "./Select/index.js";
import InputNumber from "./InputNumber/index.js";
import TimePicker from "./TimePicker/index.js";
import DateRangePicker from "./DateRangePicker/index.js";
import Upload from "./Upload/index.js";
import Translation from "./Translation/index.js";
import IconSelect from "./IconSelect/index.js";
import RecordListWrapperWithDataSource from "./RecordListWrapper/index.js";
import FormItemTabs from "./Tabs/index.js";
//#region src/components/dataSourceComponents/fields/index.ts
const formFieldMap = {
	FormItemCheckbox: Checkbox,
	FormItemColorPicker: ColorPicker,
	FormItemDatePicker: DatePicker,
	FormItemInput: Input,
	FormItemRadio: Radio,
	FormItemSelect: SelectWithDataSource,
	FormItemInputNumber: InputNumber,
	FormItemPercent: InputNumber,
	FormItemTimePicker: TimePicker,
	"FormItemInput.JSON": Input.JSON,
	"FormItemInput.Phone": Input.Phone,
	"FormItemInput.Mobile": Input.Mobile,
	"FormItemInput.Email": Input.Email,
	"FormItemInput.URL": Input.URL,
	"FormItemInput.Password": Input.Password,
	"FormItemRadio.Group": Radio.Group,
	"FormItemCheckbox.Group": Checkbox.Group,
	FormItemDateRangePicker: DateRangePicker,
	FormItemUpload: Upload,
	FormItemTranslation: Translation,
	FormItemIconSelect: IconSelect,
	FormItemRecordListWrapper: RecordListWrapperWithDataSource,
	FormItemTabs
};
const getFieldComponent = (fieldComponent) => {
	return formFieldMap[fieldComponent];
};
//#endregion
export { formFieldMap, getFieldComponent };
