- Implemented dynamic resizing for Vega Charts when the side panel's width changes. See xcube-dev/xcube#1134
-
Add
multipleproperty forSelectcomponent to enable the selection of multiple elements. Thedefaultmode is supported at the moment. -
Static information about callbacks retrieved from API is not cached reducing unnecessary processing and improving performance. (#113)
-
Callbacks will now only be invoked when there’s an actual change in state, reducing unnecessary processing and improving performance. (#112)
-
New (MUI) components
Skeleton(currently supported for Vega Charts and Tables)
-
In
chartlets.jswe no longer emit warnings and errors in common situations to avoid too much spam in the browser console. -
New (MUI) components
DataGridDialogTable
- Chore: Version bump to align CI process with GitHub release flow. No functional changes. This release ensures proper triggering of the CI pipeline for publishing and NPM.
-
Reorganised Chartlets project to better separate demo from library code. Using monorepo layout for
chartlets.jswith workspaceslibanddemothat host the packages forchartletsandchartlets-demo. -
Other code reorganisations:
- moved
component/Registryintostore - renamed module
componentintocomponents - no longer exposing
Registrytype
- moved
-
Chartlets now allows for plugins that can provide individual component implementations. The Vega-based chart and MUI components are now optional and have been moved into respective plugin modules
chartlets/plugins/vegaandchartlets/plugins/mui. To activate them, use the newplugins: PluginLike[]option ofFrameworkOptions:import { configureFramework } from "chartlets"; import mui from "chartlets/plugins/mui"; import vega from "chartlets/plugins/vega"; configureFramework({ plugins: [mui(), vega()], ... });
-
Renamed
Plotcomponent intoVegaChart. -
The new
VegaChartcomponent respects athemeproperty. If not given, it will respect the current theme mode"dark"otherwise fallback to the Vega default theme. -
The demo application now allows for switching the theme mode between dark, light, and system mode.
-
Changed the yet unused descriptor type
CbFunctionfor callback functions.- using
schemainstead oftypeproperty for callback arguments - using
returnobject withschemaproperty for callback return values
- using
-
New (MUI) components
DividerLinearProgressRadioGroupandRadioSwitchTabsSlider
-
Supporting
tooltipproperty for interactive MUI components.
- Resolved warnings that appeared when using Vega charts.
- Updated docs.
- Added component
IconButtonand enhanced other components' attributes.
- Channels such as
Input,State,Outputno longer have alinkproperty. Instead, we use a specialidformat, namely"@app"and@containerto address states other than components. (#52)
Registry.register()now requires thetypeto be passed as 1st argument becausecomponent.namewill be a mangled name in most cases.
- Exporting required
HostStoretype.
-
Introduced new interface
HostStatethat applications may implement to provide computed properties, i.e., a derived state. (#43) -
Replacing entire components if a related component
StateChangehas an emptyproperty. (#38) -
Added handy hooks
useContributionsanduseComponentChangeHandlers.
-
Improved robustness while rendering the in
Selectcomponent wrtoptionsproperty. -
Buttoncomponent now sets aclicked: booleanproperty instead ofn_clicks: int.
-
Componentchildren can now also be text nodes (of typestring). -
Typographycomponent has children instead oftext. -
A component's
childrenproperty can now be changed, even from a scalar. -
Renamed
Dropdowncomponent intoSelect(to refer to MUI component with same name). -
Selectcomponent has more flexible options.
-
Using
FrameworkOptions.getDerivedHostStatealso inhandleHostStoreChange(). -
Actions
handleComponentChange()andhandleHostStoreChange()now exit immediately, if no extensions are configured yet. -
Module
utils.objPath: RenamedtoObjPathintonormalizeObjPath, addedformatObjPath.
- Fixed TypeScript typing issues with
configureFramework<S>()andFrameworkOptions.
- Fixed TypeScript typing issues with
configureFramework<S>()andFrameworkOptions.
- Enhanced interface
FrameworkOptionsby propertygetDerivedHostState, which is a user-supplied function that can compute derived host state property.
Initial, still experimental version.