gristlabs_grist-core/app/client
Alex Hall d63da496a8 (core) Value parsing for refs, parsing data entry for numbers
Summary:
Handle reference columns in ViewFieldRec.valueParser.

Extracted code for reuse from ReferenceEditor to look up values in the visible column. While I was at it, also extracted a bit of common code from ReferenceEditor and ReferenceListEditor into a new class ReferenceUtils. More refactoring could be done in this area but it's out of scope.

Changed NTextEditor to use field.valueParser, which affects numeric and reference fields. In particular this means numbers are parsed on data entry, it doesn't change anything for references.

Test Plan:
Added more CopyPaste testing to test references.

Tested entering slightly formatted numbers in NumberFormatting.

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D3094
2021-11-01 19:31:52 +02:00
..
aclui (core) flesh out "View As" feature 2021-10-08 12:00:40 -04:00
components (core) Convert CopySelection and tableUtil to typescript 2021-10-25 18:55:26 -04:00
lib (core) Value parsing for refs, parsing data entry for numbers 2021-11-01 19:31:52 +02:00
models (core) Value parsing for refs, parsing data entry for numbers 2021-11-01 19:31:52 +02:00
ui (core) annotate shares listed in UserManager for documents 2021-10-25 14:29:19 -04:00
ui2018 (core) Select previous search input when clicking the search icon 2021-11-01 01:28:08 -04:00
widgets (core) Value parsing for refs, parsing data entry for numbers 2021-11-01 19:31:52 +02:00
app.css (core) Make mobile the default mode. 2021-02-25 11:31:43 -05:00
app.js (core) Avoid loading the Grist frontend app more than once. 2021-09-07 16:40:40 -04:00
declarations.d.ts (core) Convert CopySelection and tableUtil to typescript 2021-10-25 18:55:26 -04:00
errorMain.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
exposeModulesForTests.js (core) Some cleanup: remove old unused modules. 2020-11-20 11:23:20 -05:00
logo.css (core) Cleanup removing some old unused files, fixing logo.css, and removing #grist-app. 2020-10-09 17:04:09 -04:00
tsconfig.json freshen app/client/ui2018/cssVars.ts 2020-06-23 16:16:38 -04:00