"use strict";

exports.__esModule = true;
exports.documentCellType = void 0;
var _types = require("../../types");
var _View = require("./View");
exports.DocumentView = _View.DocumentView;
var _Edit = require("./Edit");
exports.DocumentEdit = _Edit.DocumentEdit;
const documentCellType = exports.documentCellType = (0, _types.defineCellType)({
  type: 'document',
  ViewComponent: _View.DocumentView,
  EditComponent: _Edit.DocumentEdit,
  serialize: value => value ?? '',
  clearable: true,
  showEditWhenFocused: true,
  // Returning undefined blocks all key presses from starting type-to-edit, but
  // the presence of the function sets the :typeToEdit CSS modifier which keeps
  // the selection borders visible while the cell is in edit mode (double border).
  onTypeToEdit: () => undefined
});
//# sourceMappingURL=index.js.map