Skip to content

Commit 493d660

Browse files
committed
Merge branch 'main' into clarasb-101_select_component_add_multiple
2 parents e1677bf + edd3136 commit 493d660

File tree

8 files changed

+98
-84
lines changed

8 files changed

+98
-84
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CI](https://github.com/bcdev/chartlets/actions/workflows/frontend-ci.yml/badge.svg)](https://github.com/bcdev/chartlets/actions/workflows/frontend-ci.yml)
44
[![codecov](https://codecov.io/gh/bcdev/chartlets/graph/badge.svg?token=zJBPMFvnpg&flag=frontend)](https://codecov.io/gh/bcdev/chartlets)
5-
[![npm](https://badge.fury.io/js/chartlets.svg)](https://npmjs.org/package/chartlets)
5+
[![NPM Version](https://img.shields.io/npm/v/chartlets)](https://www.npmjs.com/package/chartlets)
66

77
[![CI](https://github.com/bcdev/chartlets/actions/workflows/backend-ci.yml/badge.svg)](https://github.com/bcdev/chartlets/actions/workflows/backend-ci.yml)
88
[![codecov](https://codecov.io/gh/bcdev/chartlets/graph/badge.svg?token=zJBPMFvnpg&flag=backend)](https://codecov.io/gh/bcdev/chartlets)

chartlets.js/CHANGES.md

Lines changed: 55 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,145 +1,154 @@
11
## Version 0.1.4 (in development)
22

3-
* Add `multiple` property for `Select` component to enable the
3+
- Add `multiple` property for `Select` component to enable the
44
of multiple elements.
55

6-
## Version 0.1.0 (in development)
6+
## Version 0.1.3 (from 2025/01/28)
77

8-
* Reorganised Chartlets project to better separate demo from library code.
8+
- **Chore:** Version bump to align CI process with GitHub release flow.
9+
No functional changes. This release ensures proper triggering of the CI
10+
pipeline for publishing and NPM.
11+
12+
## Version 0.1.0 (from 2025/01/14)
13+
14+
- Reorganised Chartlets project to better separate demo from library code.
915
Using monorepo layout for `chartlets.js` with workspaces `lib` and `demo`
1016
that host the packages for `chartlets` and `chartlets-demo`.
1117

12-
* Other code reorganisations:
13-
- moved `component/Registry` into `store`
14-
- renamed module `component` into `components`
18+
- Other code reorganisations:
19+
20+
- moved `component/Registry` into `store`
21+
- renamed module `component` into `components`
1522
- no longer exposing `Registry` type
1623

17-
* Chartlets now allows for plugins that can provide individual component
24+
- Chartlets now allows for plugins that can provide individual component
1825
implementations.
19-
The Vega-based chart and MUI components are now optional and have been
26+
The Vega-based chart and MUI components are now optional and have been
2027
moved into respective plugin modules `chartlets/plugins/vega` and
2128
`chartlets/plugins/mui`.
22-
To activate them, use the new `plugins: PluginLike[]` option
29+
To activate them, use the new `plugins: PluginLike[]` option
2330
of `FrameworkOptions`:
31+
2432
```TypeScript
2533
import { configureFramework } from "chartlets";
2634
import mui from "chartlets/plugins/mui";
2735
import vega from "chartlets/plugins/vega";
28-
29-
configureFramework({ plugins: [mui(), vega()], ... });
36+
37+
configureFramework({ plugins: [mui(), vega()], ... });
3038
```
3139

32-
* Renamed `Plot` component into `VegaChart`.
40+
- Renamed `Plot` component into `VegaChart`.
3341

34-
* The new `VegaChart` component respects a `theme` property. If not given,
42+
- The new `VegaChart` component respects a `theme` property. If not given,
3543
it will respect the current theme mode `"dark"` otherwise fallback to the
36-
Vega default theme.
44+
Vega default theme.
3745

38-
* The demo application now allows for switching the theme mode between
46+
- The demo application now allows for switching the theme mode between
3947
dark, light, and system mode.
4048

41-
* Changed the yet unused descriptor type `CbFunction` for callback functions.
49+
- Changed the yet unused descriptor type `CbFunction` for callback functions.
50+
4251
- using `schema` instead of `type` property for callback arguments
4352
- using `return` object with `schema` property for callback return values
4453

45-
* New (MUI) components
54+
- New (MUI) components
55+
4656
- `Divider`
4757
- `LinearProgress`
4858
- `RadioGroup` and `Radio`
4959
- `Switch`
5060
- `Tabs`
5161
- `Slider`
5262

53-
* Supporting `tooltip` property for interactive MUI components.
63+
- Supporting `tooltip` property for interactive MUI components.
5464

5565
## Version 0.0.29 (from 2024/11/26)
5666

57-
* Resolved warnings that appeared when using Vega charts.
67+
- Resolved warnings that appeared when using Vega charts.
5868

5969
## Version 0.0.28 (from 2024/11/26)
6070

61-
* Updated docs.
71+
- Updated docs.
6272

6373
## Version 0.0.27 (from 2024/11/25)
6474

65-
* Added component `IconButton` and enhanced other components' attributes.
75+
- Added component `IconButton` and enhanced other components' attributes.
6676

6777
## Version 0.0.26 (from 2024/11/23)
6878

69-
* Channels such as `Input`, `State`, `Output` no longer have a `link` property.
79+
- Channels such as `Input`, `State`, `Output` no longer have a `link` property.
7080
Instead, we use a special `id` format, namely `"@app"` and `@container`
7181
to address states other than components. (#52)
7282

7383
## Version 0.0.25 (from 2024/11/23)
7484

75-
* `Registry.register()` now requires the `type`
85+
- `Registry.register()` now requires the `type`
7686
to be passed as 1st argument because `component.name` will
7787
be a mangled name in most cases.
7888

7989
## Version 0.0.24 (from 2024/11/23)
8090

81-
* Exporting required `HostStore` type.
91+
- Exporting required `HostStore` type.
8292

8393
## Version 0.0.23 (from 2024/11/23)
8494

85-
* Introduced new interface `HostState` that applications may implement
95+
- Introduced new interface `HostState` that applications may implement
8696
to provide computed properties, i.e., a derived state. (#43)
8797

88-
* Replacing entire components if a related component `StateChange`
98+
- Replacing entire components if a related component `StateChange`
8999
has an empty `property`. (#38)
90100

91-
* Added handy hooks `useContributions` and `useComponentChangeHandlers`.
92-
101+
- Added handy hooks `useContributions` and `useComponentChangeHandlers`.
93102

94103
## Version 0.0.22 (from 2024/11/19)
95104

96-
* Improved robustness while rendering the in `Select` component
105+
- Improved robustness while rendering the in `Select` component
97106
wrt `options` property.
98107

99-
* `Button` component now sets a `clicked: boolean` property instead
108+
- `Button` component now sets a `clicked: boolean` property instead
100109
of `n_clicks: int`.
101110

102111
## Version 0.0.21 (from 2024/11/19)
103112

104-
* `Component` children can now also be text nodes (of type `string`).
113+
- `Component` children can now also be text nodes (of type `string`).
105114

106-
* `Typography` component has children instead of `text`.
115+
- `Typography` component has children instead of `text`.
107116

108-
* A component's `children` property can now be changed, even from a
117+
- A component's `children` property can now be changed, even from a
109118
scalar.
110119

111-
* Renamed `Dropdown` component into `Select`
120+
- Renamed `Dropdown` component into `Select`
112121
(to refer to MUI component with same name).
113122

114-
* `Select` component has more flexible options.
123+
- `Select` component has more flexible options.
115124

116125
## Version 0.0.20 (from 2024/11/19)
117126

118-
* Using `FrameworkOptions.getDerivedHostState` also in
127+
- Using `FrameworkOptions.getDerivedHostState` also in
119128
`handleHostStoreChange()`.
120129

121-
* Actions `handleComponentChange()` and `handleHostStoreChange()`
130+
- Actions `handleComponentChange()` and `handleHostStoreChange()`
122131
now exit immediately, if no extensions are configured yet.
123132

124-
* Module `utils.objPath`: Renamed `toObjPath` into `normalizeObjPath`,
133+
- Module `utils.objPath`: Renamed `toObjPath` into `normalizeObjPath`,
125134
added `formatObjPath`.
126135

127136
## Version 0.0.19 (from 2024/11/18)
128137

129-
* Fixed TypeScript typing issues with `configureFramework<S>()` and
138+
- Fixed TypeScript typing issues with `configureFramework<S>()` and
130139
`FrameworkOptions`.
131-
140+
132141
## Version 0.0.18 (from 2024/11/18)
133142

134-
* Fixed TypeScript typing issues with `configureFramework<S>()` and
135-
`FrameworkOptions`.
143+
- Fixed TypeScript typing issues with `configureFramework<S>()` and
144+
`FrameworkOptions`.
136145

137146
## Version 0.0.17 (from 2024/11/18)
138147

139-
* Enhanced interface `FrameworkOptions` by property `getDerivedHostState`,
148+
- Enhanced interface `FrameworkOptions` by property `getDerivedHostState`,
140149
which is a user-supplied function that can compute derived
141-
host state property.
142-
150+
host state property.
151+
143152
## Version 0.0.16 (from 2024/11/12)
144153

145-
Initial, still experimental version.
154+
Initial, still experimental version.

chartlets.js/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CI](https://github.com/bcdev/chartlets/actions/workflows/frontend-ci.yml/badge.svg)](https://github.com/bcdev/chartlets/actions/workflows/frontend-ci.yml)
44
[![codecov](https://codecov.io/gh/bcdev/chartlets/graph/badge.svg?token=zJBPMFvnpg&flag=frontend)](https://codecov.io/gh/bcdev/chartlets)
5-
[![npm](https://badge.fury.io/js/chartlets.svg)](https://npmjs.org/package/chartlets)
5+
[![NPM Version](https://img.shields.io/npm/v/chartlets)](https://www.npmjs.com/package/chartlets)
66
![](https://img.shields.io/badge/Linting-TypeScript%20%26%20Prettier-blue?logo=typescript&logoColor=white)
77

88
Chartlets is a software framework that allows websites developed with

chartlets.js/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chartlets.js/packages/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chartlets-demo",
3-
"version": "0.1.0",
3+
"version": "0.1.3",
44
"description": "Demonstrator for the Chartlets framework.",
55
"type": "module",
66
"files": [

chartlets.js/packages/lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chartlets",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "An experimental library for integrating interactive charts into existing JavaScript applications.",
55
"type": "module",
66
"files": [

chartlets.py/CHANGES.md

Lines changed: 36 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,80 @@
11
## Version 0.1.4 (in development)
22

3-
* Add `multiple` property for `Select` component to enable the
3+
- Add `multiple` property for `Select` component to enable the
44
of multiple elements.
5-
5+
6+
## Version 0.1.3 (from 2025/01/28)
7+
8+
- **Chore:** Version bump to align CI process with GitHub release flow.
9+
No functional changes. This release ensures proper triggering of the CI
10+
pipeline for publishing to PyPI.
11+
612
## Version 0.1.0 (from 2025/01/14)
713

8-
* Reorganised Chartlets project to better separate demo from library code.
9-
Created separate folder `demo` in `chartlets.py` that contains
14+
- Reorganised Chartlets project to better separate demo from library code.
15+
Created separate folder `demo` in `chartlets.py` that contains
1016
a demo `server` package and example configuration.
1117
Also simplified demo server code:
18+
1219
- Moved `panel` module one level up
13-
- Removed `util` module which was no longer required
20+
- Removed `util` module which was no longer required
1421

15-
* Allow for different chart providers. `VegaChart` can be configured only if
22+
- Allow for different chart providers. `VegaChart` can be configured only if
1623
`altair` package is installed.
17-
18-
* Renamed `Plot` into `VegaChart`, which now also respects a `theme` property.
24+
- Renamed `Plot` into `VegaChart`, which now also respects a `theme` property.
25+
26+
- Changed schema of the yet unused descriptor for callback functions.
1927

20-
* Changed schema of the yet unused descriptor for callback functions.
2128
- using `schema` instead of `type` property for callback arguments
2229
- using `return` object with `schema` property for callback return values
2330

24-
* Added `tooltip` property to interactive components.
31+
- Added `tooltip` property to interactive components.
2532

26-
* New components
33+
- New components
2734
- `Divider`
2835
- `RadioGroup` and `Radio`
2936
- `Switch`
3037
- `Slider`
3138
- `Tabs` and `Tab`
32-
3339

3440
## Version 0.0.29 (from 2024/11/26)
3541

36-
* Fixed a bug that prevents using annotations of type `dict` or `dict[str, T]`.
42+
- Fixed a bug that prevents using annotations of type `dict` or `dict[str, T]`.
3743
in callback functions.
38-
* Introduced a callback function in `my_panel.py` to handle click events.
44+
- Introduced a callback function in `my_panel.py` to handle click events.
3945
Demonstrates how to dynamically change the color of a clicked bar.
4046

41-
4247
## Version 0.0.28 (from 2024/11/26)
4348

44-
* Updated docs.
49+
- Updated docs.
4550

46-
* Added component `IconButton` and enhanced other components' attributes.
51+
- Added component `IconButton` and enhanced other components' attributes.
4752

48-
* Channels such as `Input`, `State`, `Output` no longer have a `link` property.
49-
Instead, we use a special `id` format, namely `"@app"` and `@container`
50-
to address states other than components.
51-
This way, the call syntax `Input(id, property)` is the same for all states,
52-
e.g., `Input("@app", "selectedDatasetId")`, instead of
53+
- Channels such as `Input`, `State`, `Output` no longer have a `link` property.
54+
Instead, we use a special `id` format, namely `"@app"` and `@container`
55+
to address states other than components.
56+
This way, the call syntax `Input(id, property)` is the same for all states,
57+
e.g., `Input("@app", "selectedDatasetId")`, instead of
5358
`Input(source="app", property="selectedDatasetId")`. (#52)
5459

55-
* Added progress components `CircularProgress`, `CircularProgressWithLabel`,
60+
- Added progress components `CircularProgress`, `CircularProgressWithLabel`,
5661
`LinearProgress`, `LinearProgressWithLabel`.
5762

58-
* Replacing components is now possible by using an
63+
- Replacing components is now possible by using an
5964
`Output` with `property` set to an empty string. (#38)
6065

61-
* `Component` children can now also be text nodes (of type `string`).
66+
- `Component` children can now also be text nodes (of type `string`).
6267

63-
* `Typography` component has children instead of `text`.
68+
- `Typography` component has children instead of `text`.
6469

65-
* Renamed `Dropdown` component into `Select`
70+
- Renamed `Dropdown` component into `Select`
6671
(to refer to MUI component with same name).
6772

68-
* `Select` component has more flexible options.
73+
- `Select` component has more flexible options.
6974

70-
* Dealing with callbacks parameter and return types
75+
- Dealing with callbacks parameter and return types
7176
that are just `list` and not, e.g., `list[str]`.
72-
77+
7378
## Version 0.0.16 (from 2024/11/12)
7479

75-
Initial, still experimental version.
80+
Initial, still experimental version.

chartlets.py/chartlets/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.1.0"
1+
version = "0.1.3"

0 commit comments

Comments
 (0)