export const characterFields = { faeName: { type: "text", initialValue: "", showColumn: true }, mortalName: { type: "text", initialValue: "", showColumn: true }, player: { type: "autocomplete", initialValue: "", showColumn: true }, kith: { type: "autocomplete", initialValue: "", showColumn: true }, house: { type: "autocomplete", initialValue: "", showColumn: false }, bannerhouse: { type: "autocomplete", initialValue: "", showColumn: false }, seeming: { type: "autocomplete", initialValue: "", showColumn: true }, rank: { type: "autocomplete", initialValue: "", showColumn: true }, location: { type: "autocomplete", initialValue: "", showColumn: true }, position: { type: "autocomplete", initialValue: "", showColumn: true }, description: { type: "richText", initialValue: "", showColumn: false }, notes: { type: "richText", initialValue: "", showColumn: false } } export const nameFields = _pickBy(characterFields, { type: "text" }) export const categoryFields = _pickBy(characterFields, { type: "autocomplete" }) export const richTextFields = _pickBy(characterFields, { type: "richText" }) export const columnFields = _pickBy(characterFields, { showColumn: true }) export const optionsFields = _pickBy(columnFields, { type: "autocomplete" }) export const globalFilterFieldNames = _map( characterFields, ({ type }, field) => (type === "richText" ? `${field}PlainText` : field) )