Skip to content

Feat/jexl expressions and visibility#12

Merged
guynikan merged 5 commits intomainfrom
feat/jexl-expressions-and-visibility
Jan 26, 2026
Merged

Feat/jexl expressions and visibility#12
guynikan merged 5 commits intomainfrom
feat/jexl-expressions-and-visibility

Conversation

@guynikan
Copy link
Copy Markdown
Owner

No description provided.

- Update variable-resolver to use formValues instead of formState
- Update middleware types and context to use formValues
- Update React factories and hooks to use formValues
- Update examples and tests to use formValues
- Update form schemas to use $formValues in expressions
- Integrate JEXL evalSync for evaluating boolean and comparison expressions
- Support operators: ===, !==, ==, !=, >=, <=, >, <, &&, ||
- Convert JS operators (===, !==) to JEXL operators (==, !=)
- Preserve type (boolean/number) for single template expressions
- Add comprehensive tests for JEXL expression evaluation
- Add visibility check in renderer-orchestrator after template processing
- Components with x-ui.visible === false are not rendered
- Default visibility is true (undefined or any other value)
- Supports template expressions for dynamic visibility control
- Extract x-ui.visible from FormField wrapper or input component
- Priority: input x-ui.visible > FormField x-ui.visible > default (true)
- Update FieldNode interface to include visible property
- Default value is true when not specified
- Add visible property to x-ui schema for fields and sections
- Support template expressions for dynamic visibility
@guynikan guynikan merged commit e9d7b28 into main Jan 26, 2026
1 check passed
@guynikan guynikan deleted the feat/jexl-expressions-and-visibility branch January 26, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant