mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
enable context menu on all string field and only number field
This commit is contained in:
@@ -6,6 +6,8 @@ import EmailIcon from "@mui/icons-material/MailOutlined";
|
||||
import BasicCell from "../_BasicCell/BasicCellValue";
|
||||
import TextEditor from "@src/components/Table/editors/TextEditor";
|
||||
import { filterOperators } from "../ShortText/Filter";
|
||||
import BasicContextMenuActions from "../_BasicCell/BasicCellContextMenuActions";
|
||||
|
||||
const SideDrawerField = lazy(
|
||||
() =>
|
||||
import("./SideDrawerField" /* webpackChunkName: "SideDrawerField-Email" */)
|
||||
@@ -20,6 +22,7 @@ export const config: IFieldConfig = {
|
||||
initializable: true,
|
||||
icon: <EmailIcon />,
|
||||
description: "Email address. Not validated.",
|
||||
contextMenuActions: BasicContextMenuActions,
|
||||
TableCell: withBasicCell(BasicCell),
|
||||
TableEditor: TextEditor,
|
||||
SideDrawerField,
|
||||
|
||||
@@ -6,6 +6,7 @@ import LongTextIcon from "@mui/icons-material/Notes";
|
||||
import BasicCell from "./BasicCell";
|
||||
import TextEditor from "@src/components/Table/editors/TextEditor";
|
||||
import { filterOperators } from "../ShortText/Filter";
|
||||
import BasicContextMenuActions from "../_BasicCell/BasicCellContextMenuActions";
|
||||
|
||||
const SideDrawerField = lazy(
|
||||
() =>
|
||||
@@ -23,6 +24,7 @@ export const config: IFieldConfig = {
|
||||
initializable: true,
|
||||
icon: <LongTextIcon />,
|
||||
description: "Text displayed on multiple lines.",
|
||||
contextMenuActions: BasicContextMenuActions,
|
||||
TableCell: withBasicCell(BasicCell),
|
||||
TableEditor: TextEditor,
|
||||
SideDrawerField,
|
||||
|
||||
@@ -6,6 +6,7 @@ import NumberIcon from "@src/assets/icons/Number";
|
||||
import BasicCell from "./BasicCell";
|
||||
import TextEditor from "@src/components/Table/editors/TextEditor";
|
||||
import { filterOperators } from "./Filter";
|
||||
import BasicContextMenuActions from "../_BasicCell/BasicCellContextMenuActions";
|
||||
const SideDrawerField = lazy(
|
||||
() =>
|
||||
import("./SideDrawerField" /* webpackChunkName: "SideDrawerField-Number" */)
|
||||
@@ -20,6 +21,7 @@ export const config: IFieldConfig = {
|
||||
initializable: true,
|
||||
icon: <NumberIcon />,
|
||||
description: "Numeric value.",
|
||||
contextMenuActions: BasicContextMenuActions,
|
||||
TableCell: withBasicCell(BasicCell),
|
||||
TableEditor: TextEditor,
|
||||
SideDrawerField,
|
||||
|
||||
@@ -6,6 +6,7 @@ import PhoneIcon from "@mui/icons-material/PhoneOutlined";
|
||||
import BasicCell from "../_BasicCell/BasicCellValue";
|
||||
import TextEditor from "@src/components/Table/editors/TextEditor";
|
||||
import { filterOperators } from "../ShortText/Filter";
|
||||
import BasicContextMenuActions from "../_BasicCell/BasicCellContextMenuActions";
|
||||
|
||||
const SideDrawerField = lazy(
|
||||
() =>
|
||||
@@ -21,6 +22,7 @@ export const config: IFieldConfig = {
|
||||
initializable: true,
|
||||
icon: <PhoneIcon />,
|
||||
description: "Phone number stored as text. Not validated.",
|
||||
contextMenuActions: BasicContextMenuActions,
|
||||
TableCell: withBasicCell(BasicCell),
|
||||
TableEditor: TextEditor,
|
||||
SideDrawerField,
|
||||
|
||||
@@ -5,6 +5,7 @@ import withHeavyCell from "../_withTableCell/withHeavyCell";
|
||||
import RichTextIcon from "@mui/icons-material/TextFormat";
|
||||
import BasicCell from "../_BasicCell/BasicCellNull";
|
||||
import withSideDrawerEditor from "@src/components/Table/editors/withSideDrawerEditor";
|
||||
import BasicContextMenuActions from "../_BasicCell/BasicCellContextMenuActions";
|
||||
|
||||
const TableCell = lazy(
|
||||
() => import("./TableCell" /* webpackChunkName: "TableCell-RichText" */)
|
||||
@@ -25,6 +26,7 @@ export const config: IFieldConfig = {
|
||||
initializable: true,
|
||||
icon: <RichTextIcon />,
|
||||
description: "HTML edited with a rich text editor.",
|
||||
contextMenuActions: BasicContextMenuActions,
|
||||
TableCell: withHeavyCell(BasicCell, TableCell),
|
||||
TableEditor: withSideDrawerEditor(TableCell),
|
||||
SideDrawerField,
|
||||
|
||||
@@ -6,6 +6,7 @@ import UrlIcon from "@mui/icons-material/Link";
|
||||
import TableCell from "./TableCell";
|
||||
import TextEditor from "@src/components/Table/editors/TextEditor";
|
||||
import { filterOperators } from "../ShortText/Filter";
|
||||
import BasicContextMenuActions from "../_BasicCell/BasicCellContextMenuActions";
|
||||
|
||||
const SideDrawerField = lazy(
|
||||
() =>
|
||||
@@ -21,6 +22,7 @@ export const config: IFieldConfig = {
|
||||
initializable: true,
|
||||
icon: <UrlIcon />,
|
||||
description: "Web address. Not validated.",
|
||||
contextMenuActions: BasicContextMenuActions,
|
||||
TableCell: withBasicCell(TableCell),
|
||||
TableEditor: TextEditor,
|
||||
SideDrawerField,
|
||||
|
||||
Reference in New Issue
Block a user