FIO-8072: Added conditional operators for select component with number data type #5656
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-8072
Description
Feature: Enhancements to the 'Select' component - Expanded operator options for simple conditionals with number type.
Solution: The solution maintains backward compatibility and is designed for easy extensibility. This is achieved by specifying additional properties in the
conditionOperatorsSettings
getter, which are related to the type. This approach allows us to easily manage available operators and modify the value component type. Further control over the operator and value component will be managed by the premium library. No specific handling is required for new operators as they function as expected.How has this PR been tested?
Unit Tests: Unit tests have been conducted to verify conditional rendering based on the number operator.
Integration Testing: The commit has been cherry-picked to the 4.19x branch and linked to the formio-app and premium for integration testing, confirming the feature works as expected.
Checklist: