FIO-8548: Update choices.js to 11 version #5976
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link to Jira Ticket
https://formio.atlassian.net/browse/FIO-8548
Description
Updated choices.js to version 11. Reworked the ChoicesWrapper class. Completely reworked the Select component tests.
I was able to improve the test performance for the Select component by 2 times.
![image](https://private-user-images.githubusercontent.com/24360267/402579659-69fd0372-11c5-460e-a001-d0115d9db7b1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDU4MDksIm5iZiI6MTczOTQ0NTUwOSwicGF0aCI6Ii8yNDM2MDI2Ny80MDI1Nzk2NTktNjlmZDAzNzItMTFjNS00NjBlLWEwMDEtZDAxMTVkOWRiN2IxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDExMTgyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU3ODYzYmMyOGI4YTZiOGE2YmJkY2E3ZTBhMDU2OTEwMDBmYTBhZDc5MDkzMWE5ODE0ZTc1N2I0OGM5MWEzMzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BhZYOFcBcvzKfL-stlEIZ3Ud4l_FQLvHIxGLq9RqT6w)
![image](https://private-user-images.githubusercontent.com/24360267/402579773-5471717c-bc28-4d64-9c0a-67357de173f7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDU4MDksIm5iZiI6MTczOTQ0NTUwOSwicGF0aCI6Ii8yNDM2MDI2Ny80MDI1Nzk3NzMtNTQ3MTcxN2MtYmMyOC00ZDY0LTljMGEtNjczNTdkZTE3M2Y3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDExMTgyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ0YmM0ZDZmODMwN2NmYzA1ZGIxZmE3Mzg4Njc4MTEwNDlkYWEzOTFjMzVmMmI1ODExNDhhNDU1NzM2MjQwNGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.b7nDudlMUO6uaze4AFXeRl7usIVcnUO8lC6ezX7Yt7M)
before:
after:
Dependencies
formio/Choices#3
How has this PR been tested?
Manual testing around ChoicesWrapper and fixed unit tests.
Checklist: