mirror of
https://github.com/gristlabs/grist-core.git
synced 2025-06-07 02:44:01 +00:00
Summary: Adds `common/ValueGuesser.ts` with logic for guessing column type and widget options (only for dates/datetimes) from an array of strings, and converting the strings to the guessed type in a lossless manner, so that converting back to Text gives the original values. Changes `_ensure_column_accepts_data` in Python to call an exported JS method using the new logic where possible. Test Plan: Added `test/common/ValueGuesser.ts` to unit test the core guessing logic and a DocApi end-to-end test for what happens to new columns. Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3290 |
||
---|---|---|
.. | ||
AceEditor.css | ||
AceEditor.js | ||
AceEditorCompletions.ts | ||
ActionLog.css | ||
ActionLog.ts | ||
Base.js | ||
BaseView.js | ||
CellPosition.ts | ||
ChartView.css | ||
ChartView.ts | ||
ClientScope.ts | ||
Clipboard.css | ||
Clipboard.js | ||
CodeEditorPanel.css | ||
CodeEditorPanel.js | ||
ColumnFilters.css | ||
ColumnTransform.ts | ||
Comm.ts | ||
commandList.js | ||
commands.css | ||
commands.js | ||
CopySelection.ts | ||
Cursor.ts | ||
CursorMonitor.ts | ||
CustomView.css | ||
CustomView.ts | ||
DataTables.ts | ||
DetailView.css | ||
DetailView.js | ||
DocComm.ts | ||
DocConfigTab.js | ||
Drafts.ts | ||
duplicatePage.ts | ||
EditorMonitor.ts | ||
EmbedForm.css | ||
FieldConfigTab.css | ||
FormulaTransform.ts | ||
GridView.css | ||
GridView.js | ||
GristDoc.css | ||
GristDoc.ts | ||
GristWSConnection.ts | ||
Importer.ts | ||
Layout.css | ||
Layout.js | ||
LayoutEditor.css | ||
LayoutEditor.js | ||
LayoutPreview.css | ||
LayoutPreview.js | ||
LinkingState.ts | ||
Login.css | ||
ParseOptions.ts | ||
PluginScreen.ts | ||
Preferences.css | ||
Printing.css | ||
Printing.ts | ||
RecordLayout.css | ||
RecordLayout.js | ||
RecordLayoutEditor.js | ||
RefSelect.js | ||
SearchBar.css | ||
Selector.js | ||
TypeConversion.ts | ||
TypeTransform.ts | ||
UndoStack.ts | ||
UnsavedChanges.ts | ||
ValidationPanel.css | ||
ValidationPanel.js | ||
viewCommon.css | ||
viewCommon.js | ||
ViewConfigTab.css | ||
ViewConfigTab.js | ||
ViewLayout.css | ||
ViewLayout.ts | ||
ViewLinker.css | ||
ViewPane.ts | ||
WidgetFrame.ts |