Repository navigation
v5.1.0
What's Changed
new
initialonfx-bindprovides a one-time value for newly created nodes (XForms 2.0)staticonfx-instanceasserts no binds read the instance - replacing it via submission skips the model update cycle- create-nodes: support path comparisons in predicates (
a/b = 'x',@c = /expr) - the path is created and the compared value is set - create-nodes: support refs rooted at
$defaultor/*- created below the document element - create-nodes: honor bind order for node insertion, skip out-of-parent order anchors
- create-nodes: create nodes for
fx-outputand rebuild the model after creating nodes in a sub-tree - JSON lenses: resolve simple axis paths (
.,..,*,name, with numeric predicates like*[2]) - template expressions in
fx-uploadlabelare evaluated and update on attribute change - template expressions in labels of non-relevant elements are evaluated (for
fx-control-menuon-demand controls) fx-includeevaluates template expressions in inserted content immediatelydata-srcURLs with template expressions (e.g.codes.{instance('i18n')?lang}.json) are resolved correctly
fixes
- calculate must not depend on its own node - fixes
Cyclicerror on full recalculation breaking new repeat rows - rebuild keeps lens-backed (JSON) synthetic model items - controls on JSON instances (e.g. language switch) no longer lose their model item
- bind-empty-context: handle empty in-scope context in child and grandchild bindings
- create-nodes: fix default context resolution
- create-nodes: don't anchor new elements on a previous control outside the parent
- create-nodes: fix insertion for empty repeats, preserve predicate values
fx-includewaits forfx-forereadiness before handling eventsfx-insertwith multi-step refs creates missing parent stepsfx-sendpropagates_replacedInstanceUnboundfor correct update behaviorfx-submissionwithreplace="instance"on astaticinstance only refreshes UIfx-controldata-srchandles empty nodesets gracefully, re-binds on new data- stale instances in
data-srclookups are fixed
performance
- model item lookup pre-filters binds by last step name - skips binds whose ref can't match
initDatascoped to subtree for repeat items andfx-includecontentfx-repeatbuilds row template from<template>instead of cloning last materialized row
chores
- new
date-partsdemo: sub-fore editing parts of a complex node (e.g. YYYY-MM-DD date) - new
initial.htmldemo - many new and adapted tests
- updated bundle
Contributors
- @JoernT (Joern Turner)
- @DrRataplan (Martin Middel)
Full Changelog: v5.0.0...v5.1.0