gristlabs_grist-core/app/client
Dmitry S 93a2d26182 (core) Fix a bug with editing numbers in some locales.
Summary:
Adds a new test for formatting and fix several related bugs it uncovered:
1. When editing a number with "," decimal separator, ensure it opens in
   the editor with "," (rather than ".", the original bug motivating this).
2. When guessing number format, set maxDecimals when it's needed
   (otherwise, e.g. "$1.234", or "4.5%" weren't guessed as numeric)
3. When guessing number format, ignore whitespace when deciding if
   guessed format is correct (otherwise percents can't be guessed in
   locales which add "%" with a non-breaking space before it).

Test Plan: Added a test case that exercises all fixed behaviors.

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D4177
2024-02-02 22:48:05 -05:00
..
aclui (core) Avoid reporting unhelpful ResizeObserver error 2023-10-27 15:26:20 -04:00
components (core) Polish Record Cards 2024-01-30 13:25:50 -05:00
lib (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
models (core) Polish Record Cards 2024-01-30 13:25:50 -05:00
ui (core) Hiding creator panel when raw data page is active. 2024-01-31 10:30:57 +01:00
ui2018 (core) Polish Record Cards 2024-01-30 13:25:50 -05:00
widgets (core) Fix a bug with editing numbers in some locales. 2024-02-02 22:48:05 -05:00
apiconsole.ts (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
app.css (core) Polish tutorial popups 2023-04-20 12:20:03 -04:00
app.js (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
billingMain.ts (core) Polish forms 2024-01-24 02:18:03 -08:00
browserCheck.ts (core) On mobile, only show a warning for older and unknown browsers rather than for all 2023-06-01 11:15:21 -04:00
declarations.d.ts (core) Polish Record Cards 2024-01-30 13:25:50 -05:00
DefaultHooks.ts add hooks for tweaking how downloads happen (for grist-static) (#665) 2023-09-09 14:50:32 -04:00
errorMain.ts (core) Polish forms 2024-01-24 02:18:03 -08:00
exposeModulesForTests.js (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
Hooks.ts support other SQLite wrappers, and various hooks needed by grist-static (#516) 2023-05-23 15:17:28 -04: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 (core) Migrate to SRP and add change password dialog 2022-03-16 21:35:06 -07:00