"use strict";

exports.__esModule = true;
exports.multiDocumentCellType = void 0;
var _types = require("../../types");
var _View = require("./View");
exports.MultiDocumentView = _View.MultiDocumentView;
var _Edit = require("./Edit");
exports.MultiDocumentEdit = _Edit.MultiDocumentEdit;
const multiDocumentCellType = exports.multiDocumentCellType = (0, _types.defineCellType)({
  type: 'multiDocument',
  ViewComponent: _View.MultiDocumentView,
  EditComponent: _Edit.MultiDocumentEdit,
  serialize: value => (value ?? []).join(', '),
  clearable: true,
  showEditWhenFocused: true,
  growable: 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