import date from "./date";
import link from "./link";
import number from "./number";
import numberRange from "./numberRange";
import select from "./select";
import text from "./text";
import image from "./image";
import rangePicker from "./rangePicker";
import search from "./search";
import pSwitch from "./pSwitch";
import treeSelect from "./treeSelect";
import oldRangePicker from "./oldRangePicker";
export var fieldMaps = {
  text: text,
  link: link,
  number: number,
  date: date,
  select: select,
  image: image,
  rangePicker: rangePicker,
  search: search,
  pSwitch: pSwitch,
  numberRange: numberRange,
  treeSelect: treeSelect,
  oldRangePicker: oldRangePicker
};
export var fieldList = Object.values(fieldMaps).map(function (d) {
  return d.field;
});
export var getFieldByType = function getFieldByType(type) {
  return fieldMaps[type];
};
export default {
  text: text,
  link: link,
  number: number,
  date: date,
  select: select,
  image: image,
  rangePicker: rangePicker,
  search: search,
  pSwitch: pSwitch,
  numberRange: numberRange,
  treeSelect: treeSelect,
  oldRangePicker: oldRangePicker
};