formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.83k stars 1.04k forks source link

FIO-8072: Added conditional operators for select component with number data type #5656

Open roma-formio opened 1 week ago

roma-formio commented 1 week ago

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 conditionOperatorsSettingsgetter, 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: