gristlabs_grist-core/app
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
..
client (core) Value parsing for refs, parsing data entry for numbers 2021-11-01 19:31:52 +02:00
common (core) Value parsing for refs, parsing data entry for numbers 2021-11-01 19:31:52 +02:00
gen-server (core) fix bug where sharing doc with everyone@ as viewer made it unlisted for site viewers 2021-10-28 12:48:31 -04:00
plugin (core) Adding schema validation for records endpoint 2021-10-18 21:40:50 +02:00
server (core) Process new user info in /welcome/info post without waiting for it to be written to the collecting document 2021-10-31 13:54:31 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00