Commit graph

12 commits

Author SHA1 Message Date
Thijs Louisse
29b729ed84 fix(ui): [input-amount] make sure that previous locale is not used for parsing on user-edit with <= 2 decimals 2025-01-30 15:53:09 +01:00
Thijs Louisse
d5258d56fd
fix(ui): [form-core] enhance formatter and parser meta; reset _isPasting on task instead of microtask
Co-authored-by: gerjanvangeest <Gerjan.van.Geest@ing.com>
2025-01-15 16:33:02 +01:00
gerjanvangeest
35e66052b6
fix(input-amount): parse amount always on locale once the amount is formatted (#2439)
* fix(input-amount): parse amount always  on locale once the amount is formatted

* chore: add unit test

* chore: add some description

* chore: update playwright script to install dependencies

* Update .github/workflows/verify-pr.yml

* chore: set formatOptions temp and cleanup for programmatic api

* feat(form-core): add "user-edit" mode to formatOptions while editing existing value of a form control

* chore: enhance code readability and robustness

---------

Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>
2025-01-15 09:59:02 +01:00
gerjanvangeest
e8e9c07ec5
fix(input-amount): returns Unparseable as a modelValue if a wrong value has been entered (#2242)
* fix(input-amount): returns Unparseable as a modelValue if a wrong value has been entered

* fix(input-amount): do not break when a large amount has been entered

* Update docs/components/input-amount/overview.md

Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>

* Update packages/ui/components/input-amount/test/parsers.test.js

Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>

---------

Co-authored-by: Thijs Louisse <thijs.louisse@ing.com>
2024-04-10 11:20:48 +02:00
gerjanvangeest
1ea5730aa5
fix(localize): align currency symbol usage for all browsers (#2011) 2023-06-13 14:57:26 +02:00
gerjanvangeest
88e6ca03ca
fix(localize): parseNumbers as heuristic if there is only 1 separator and 2 or less decimals e.g. 12.34 (#1976) 2023-05-17 12:07:00 +02:00
Thijs Louisse
6712934782 feat(@lion/ui): getLocalizeManager method, for side-effect-free localize 2023-02-01 16:06:30 +01:00
gvangeest
0efce8e18b fix(localize): parse negative numbers correctly 2023-01-25 11:06:17 +01:00
Thijs Louisse
a0fefee88b chore: update tests for new en-PH Intl standards USD + JPY 2022-12-09 15:54:28 +01:00
gvangeest
da057efcf0 fix(localize): fix and simplify parseMode check 2022-11-09 09:58:46 +01:00
Thomas Allmer
c1982965c3 feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
Thomas Allmer
8114bae86f chore: rename ui/src to components 2022-10-31 16:55:07 +01:00