CxJS

Changelog

[email protected]

Fixes

  • Relaxed LookupFieldConfig type constraints to improve subclass extensibility
  • Changed generic type defaults from unknown to any for better compatibility with existing code
  • Added LookupFieldUniversalConfig export for extending LookupField in subclasses

[email protected]

Features

  • Complete TypeScript rewrite with full type safety
  • New typed model system with createModel
  • Improved JSX syntax - <cx> wrapper no longer required
  • Modern build tooling support (Vite, esbuild, SWC)
  • Split HTML and React elements for better type inference

See Breaking Changes for migration details.


[email protected]

Features

  • Date only (2025-01-01) strings are now parsed as local time, instead of UTC.
  • encodeDate function can be used to format date objects as date only strings, i.e. 2025-01-01. This function can be set as encoding for the DateField, MonthField, Calendar, and MonthPicker components.
  • MonthField and MonthPicker now include a flag inclusiveTo which allow month ranges to end with the last day of the month, instead of the first day of the next month.

[email protected]

Features

  • Add SnapPointFinder convertX and convertY functions

[email protected]

Fixes

  • Fix on validate arguments for multiple lookups

[email protected]

Features

  • New formats: capitalize and titleCase.

[email protected]

Features


[email protected]

Features

  • Swimlane component

[email protected]

Features

  • Set caption style and class even when caption is defined as items/children.

Fixes

  • Fix grid grouping text property description.

[email protected]

Features

  • Improve selection of dropzone based on distance to the center.
  • Allow grid column caption to be specified as false.
  • Support dynamic chart height based on the number of categories.

Fixes

  • Avoid rendering shape prop.
  • Fix grid rendering when column caption is defined via items only.

[email protected]

Features

  • Allow grid column caption to be specified as false.
  • Support dynamic chart height based on the number of categories.

Fixes

  • Fix grid rendering when column caption is defined via items only.

[email protected]

Features

  • Introduce new feature for grid: merging cells.

[email protected]

Features

  • Introducing the new zeropad format.

[email protected]

Fixes

  • Corrected distortion in pie-chart shapes caused by mathematical errors.
  • Resolved grid resize issues by implementing element existence checks prior to resizing.

[email protected]

Fixes

  • Addressed a bug where RangeMarkers were not functioning correctly when used alongside SWC.

[email protected]

Features

  • Enhanced dropInsertionIndex positioning within the grid
  • Introduced CultureScope widget
  • Introduced RangeMarker widget
  • Added functionality for adjusting pie chart gaps

Fixes

  • Types for ColumnGraph and LineGraph

[email protected]

Features

  • Swimlanes widget
  • Allow aggregates via aggregateAlias inside Grid

Fixes

  • Fix getCursorPos properly resolves position within iframes in Firefox
  • Fix drag and drop within iframes

[email protected]

Features

  • Support specifying borderRadius on PieChart slices.

[email protected]

Features

  • Documentation updates and additions
  • Currency formatting features
  • Field configurations and enhancements
  • Localization examples and updates
  • Row reordering, drag-and-drop for CodeSnippet
  • Configuration props for data views
  • Copy button tooltip and display enhancements

[email protected]

Features

  • Support tooltips and additional configuration on field icons

[email protected]

Features

  • Allow using the fmt function inside expressions and string templates. For example, this template works: {[fmt({amount}, "currency;${currency};0;2")]}
  • Add number formatting flags, i.e. n;0;2;+ca; - + to show sign for positive number, c for compact number formatting, a for accounting mode (brackets for negative numbers)
  • Add Culture.setNumberCulture and Culture.setDateTimeCulture methods which enable using different cultures for numbers and date formatting.

[email protected]

Features

  • Allow Validator to render children, i.e. ValidationError

[email protected]

Fixes

  • Expose SimpleSelection

[email protected]

Fixes

  • Allow up to eight typed parameters in triggers and computables
  • Allow entering negative decimal numbers in NumberFields with reactOn=“change”

[email protected]

Fixes

  • Fix quoteStr handling of special characters (used for multiline string templates)

[email protected]

Features

  • Allow Grid to render children, i.e. loading mask

Fixes

  • Make AccessorChain<T> assignable to AccessorChain<any>

[email protected]

Features


[email protected]

Fixes

  • Typing for Dropdown.relatedElement
  • Typing for List.keyField

[email protected]

Features

  • Add the constrain property to limit NumberField inputs

Fixes

  • Typing for Url.setBaseFromScript
  • Typing for the bind function
  • Typing for the LineGraph
  • Propagate colSpan to grid column footers

[email protected]

Features

  • Add the dayData property for calendar day styling

Fixes

  • Add typing for LookupField bindings
  • Improve typing for openContextMenu

[email protected]

Features

  • Add LookupField onCreateVisibleOptionsFilter callback docs and example

[email protected]

Fixes

  • Properly sort by the second column if the values in first column are null

[email protected]

Features

  • Add the onTrackMappedRecords callback for easier manipulation of sorted and filtered grid data
  • Document onGetGrouping

Fixes

  • Recalculate the widget on store change to correctly propagate the new store to widget’s children

[email protected]

Fixes

  • Prevent late autofocus for touch devices

[email protected]

Fixes

  • Add text ellipsis to all form fields
  • Fix problems with datetime field dropdowns

[email protected]

Fixes

  • Various typing improvements

[email protected]

Fixes

  • Allow onContextMenu on all HTML elements in TypeScript
  • Properly handle context menus within windows and dropdowns
  • Allow get/set props in TypeScript
  • Allow accessor chains for the Sandbox.storage prop
  • Orient vertical Sliders to be bottom up, instead of top to bottom with the invert flag to control the behavior

[email protected]

Fixes

  • Render overlay backdrop before the body and allow propagation of mousedown event to allow integration of other libraries (i.e. prosemirror) which catch events on the document level.

[email protected]

Features

  • TreeAdapter now supports preserving expanded state through a flag restoreExpandedNodesOnLoad
  • Added an example for stateful tree grids

[email protected]

Features

  • TreeAdapter now support the flag hideRootNodes
  • Added the function findTreePath to cx/data.

Fixes

  • Typings for MenuItem
  • Typings for PieSlice
  • Skip focusing disabled LookupField options
  • Typings for Window

[email protected]

Fixes

  • Fix for onCellEdited firing twice
  • Fix for grid cell editing not working in the first column
  • Allow accessor chains for value and text props in lookup fields

[email protected]

Features

  • Allow tooltips in grid headers

[email protected]

Fixes

  • Fix MenuItem typing

[email protected]

Fixes

  • Fix typings for the Repeater widget

[email protected]

Fixes

  • Fix bugs related to startWithMonday in Calendar widgets
  • Typing improvements
  • Fix detection of touch events inside modal windows