Releases: zauberzeug/nicegui
Releases · zauberzeug/nicegui
v1.4.21
New features and enhancements
- Introduce
app.storage.tab
as a storage for the current tab (#2837, #2866 by @rodja, @Alyxion, @alexzaech, @falkoschindler) - Introduce
app.storage.client
as a storage for volatile data for the current connection (#1308, #2820 by @rodja, @amks1, @sklibanov312, @Alyxion, @falkoschindler) - Introduce
ui.matplotlib
element as an object-oriented alternative toui.pyplot
(#2553 by @tacaswell, @falkoschindler) - Refactor
ui.list
andui.menu
items (#2855 by @codingpaula, @falkoschindler) - Automatically await async results in
ui.timer
(#2856, #2859 by @bmrast, @falkoschindler) - Add
maximize()
method for maximizing a native application (#2836 by @Aues6uen11Z) - Replace
check_interval
for JavaScript requests with an asyncio event (#2482, #2827 by @pplno, @anjomro, @oidex, @afullerx, @rodja, @falkoschindler)
Bugfixes
- Fix typo in conftest.py (#2857 by @kj4tmp)
- Fix update of
ui.leaflet
after callingset_center
orset_zoom
(#2825, #2826 by @thetableman, @falkoschindler) - Fix update of invisible
ui.markdown
elements (#2779, #2803 by @me21, @aniketkumar7, @falkoschindler) - Avoid ignoring dynamic properties starting with a line break (#2845 by @falkoschindler)
Documentation
- Add audio recording example (#1610, #2861 by @rodja, @CVxTz, @falkoschindler)
- Add demos for floating action buttons (#2832 by @rodja)
- Improve the "Chat with AI" example (#2772, #2800 by @merlinarer, @rodja, @falkoschindler)
Others
- Introduce ruff as an isort replacement and code checker with a pre-commit hook (#2619 by @mbrulatout, @codingpaula, @falkoschindler)
- Enable private vulnerability reporting (#2870 by @sunriseXu, @falkoschindler)
v1.4.20
New features and enhancements
- Introduce
ui.button_group
(#2821 by @codingpaula, @falkoschindler) - Introduce
ui.dropdown_button
(#2821 by @codingpaula, @falkoschindler) - Introduce
ui.range
(#1191, #2762 by @frankvp11, @codingpaula) - Introduce
ui.clipboard
functions (#2575, #2594 by @ZeroCool940711, @falkoschindler) - Add an
on_multi_upload
callback forui.upload
(#2698, #2765 by @rcovic, @d-meehan, @falkoschindler) - Add SVG events to
ui.interactive_image
(#2745 by @frankvp11, @falkoschindler) - Allow registering events after element instantiation (#2687, #2704, #2708 by @petergaultney, @falkoschindler)
- Make libsass optional, replacing
ui.add_style
withui.add_css
,ui.add_scss
andui.add_sass
(#2796, #2809 by @psy0rz, @rodja, @falkoschindler) - Let
run.io_bound
andrun.cpu_bound
maintain type signatures of their callbacks (#2733 by @petergaultney) - Make On Air reconnect more robust (#2818 by @rodja)
- Terminate On Air connection more elegantly (#2761 by @rodja)
Bugfixes
- Fix jumping cursor for
ui.editor
(#2611, #2756 by @Gilser, @intrinsically, @falkoschindler) - Fix displayed order of
ui.select
options (#2137 by @CrystalWindSnake, @falkoschindler) - Update
ui.number
after changing its limits (#2743, #2753 by @eddie3ruff, @falkoschindler)
Documentation
- Fix instruction about how to use the autopep8 command for code contributions (#2750 by @codingpaula, @falkoschindler)
v1.4.19
New features and enhancements
- Reduce payload by extracting nicegui.js to allow browser caching (#2728 by @falkoschindler)
- Reduce payload by skipping default element properties (#2702 by @falkoschindler)
- Allow passing functions to
run_method
calls (#2556, #2671, #2705 by @ducnva, @dr-yd, @lapnd, @pikaro, @falkoschindler) - Introduce
ui.add_style
for CSS, SASS and SCSS (#2531 by @falkoschindler, @rodja) - Support colored crosshairs for
ui.interactive_image
(#2713, #2727 by @hig-dev, @falkoschindler) - Automatically enable/disable scrolling of
ui.log
(#2690, #2686 by @frosch01, @falkoschindler) - Add support for additional echart events (#2679, #2716 by @CSharpDummy, @falkoschindler)
- Add support for custom row and column templates for
ui.grid
(#2701 by @falkoschindler) - Refine type annotation for
ui.date
(#2681 by @daya0576)
Bugfixes
- Fix rendering 404 error pages for static file routes (#2568, #2570, #2722, #2746 by @Anindya088, @falkoschindler, @Lucas-lyh, @rodja)
- Fix
ui.table.from_pandas
for datetimes with timezones (#1983, #2706 by @rohitsathish, @falkoschindler) - Re-implement the
ui.log
element to avoid problems inside tabs (#1869, #2686 by @marcin-koziol, @E-H-E-H, @falkoschindler) - Fix updating the UI when calling
ui.select.set_options
(#2682 by @amks1, @falkoschindler)
Documentation
- Add a webserial example (#334, #2623 by @BlankAdventure, @rodja, @falkoschindler)
- Add a new example with global computation and progress bar (#2676, #2685 by @mahesh11T, @falkoschindler)
- Improve macOS packaging instructions (#2707 by @gotev)
- Improve the "Table with drop down selection" demo (#2695 by @JS-Aibel, @falkoschindler)
v1.4.18
New features and enhancements
- Allow disabling the auto-validation on value change (#2618, #2661 by @Ch41r05, @falkoschindler)
- Introduce
ui.navigate.reload()
(#2659 by @mbrulatout) - Enable
new_value_mode="add"
for option dictionaries (#2462, #2467 by @me21, @falkoschindler)
Bugfixes
- Remove all children when deleting an element (#2643 by @me21, @falkoschindler)
- Fix AttributeError in
ui.select
(#2641 by @CrystalWindSnake, @falkoschindler)
Documentation
v1.4.17
v1.4.16
New features and enhancements
- Introduce
ui.navigate
module to replaceui.open
(#2575, #2593 by @ZeroCool940711, @falkoschindler, @rodja) - Introduce
ui.restructured_text
element (#2561 by @ZeroCool940711, @falkoschindler) - Support other tags than div for
ui.html
(#2610 by @kleynjan) - Introduce a pure JavaScript event handler (#2383, #2536 by @WSH032, @falkoschindler, @rodja)
- Allow awaiting the "init" event of
ui.leaflet
(map) andui.scene
(3d) (#2500, #2606 by @elkarouh, @kleynjan, @falkoschindler, @rodja) - Support GLTF meshes in
ui.scene
elements (#2532 by @fabian0702, @falkoschindler) - Add On Air support for
ui.run_with
(#2526, #2546 by @csrubin, @falkoschindler)
Bugfixes
- Fix binding removal for non-hashable objects (#2540, #2544 by @kleynjan, @falkoschindler)
- Fix order of removing elements when client disconnects (#2589, #2603 by @Johannes-)
- Fix RecursionError when deleting
ui.leaflet
elements (#2587, #2609 by @thickmn, @falkoschindler) - Fix layer events and
run_layer_method
forui.leaflet
(#2500, #2557 by @elkarouh, @kleynjan, @falkoschindler) - Fix modifiers on key event for
ui.interactive_image()
(#2530 by @masrab, @falkoschindler) - Fix
.tooltip()
ignoringdefault_classes
fromui.tooltip
(#2554 by @h0uter, @falkoschindler) - Raise minimum version of
python-multipart
to avoid Content-Type Header ReDoS (#2569 by @svfoxat)
Documentation
- Show a content preview when using the search dialog (#2547 by @ZeroCool940711, @rodja, @falkoschindler)
- Use more specific page titles for individual documentation pages (#2583, #2607 by @bandit-masked, @falkoschindler)
- Add tooltips to the search and theme buttons (#2539 by @ZeroCool940711)
- Add a demo for custom icon sets (#2617, #2620 by @me21, @falkoschindler)
- Add a toggleable button demo (#2615 by @rodja)
- Add demo on how to update markdown content (#2584, #2592 by @Anindya088, @falkoschindler, @rodja)
- Add sponsor button to the website (#2572 by @rodja)
- Provide infos about our coding style (#2564 by @rodja)
v1.4.15
New features and enhancements
- Introduce
ui.list
,ui.item
,ui.item_section
andui.item_label
(#512, #2527 by @bobwatcherx, @falkoschindler, @codingpaula) - Hide misleading Tailwind CDN warnings (#337 by @kepler, @rodja @JS-Aibel, @falkoschindler)
Bugfixes
- Fix initial row ID in "Editable table" and "Editable AG Grid" examples (#2524, #2525 by @tjmuenster, @falkoschindler)
- Fix plotly event registration (#2519, #2523 by @falkoschindler, @bmaranville)
- Strip
root_path
to make ASGIServer from socketio compatible with mounting as sub-app (#2468, #2515, #2521 by @wdroz, @aersam, @rodja)
v1.4.14
New features and enhancements
- Support validation for
ui.select
(#2436, #2498 by @me21, @falkoschindler) - Introduce
media_type
parameter forui.download
(#2491, #2494 by @me21, @iron3oxide, @falkoschindler) - Relax upper bounds on some dependencies (#2485, #2506 by @sscherfke)
Bugfixes
- Fix event handler registration for
ui.plotly
(#2435, #2504, #2505, #2516 by @Wzhipeng, @bmaranville, @platinops) - Fix events with "Restricted" arguments on Firefox (#2469, #2499 by @me21, @falkoschindler)
- Shorten filepaths for static fonts to avoid a rare installation problem (#2480, #2512 by @mcohan, @falkoschindler)
Documentation
- Fix broken target links in documentation strings (#2459 by @bmaranville)
- Fix duplicate links on some reference pages (#2495 by @rodja, @falkoschindler)
v1.4.13
New features and enhancements
- Add "loaded" event which fires when the source of a
ui.interactive_image
changes (#2453 by @rodja) - Let
ui.audio
andui.video
inherit fromSourceElement
(#2444, #2449 by @KimigaiiWuyi, @falkoschindler, @rodja) - Make
ui.log
autoscroll to bottom when page is loaded (#2447 by @CrabzteR) - Add support for Material Symbols (#2434 by @codingpaula, @falkoschindler)
- Introduce layer methods for
ui.leaflet
(#2418 by @falkoschindler)
Bugfixes
- Fix
ui.number
adding decimal points when a validation error occurs (#2454 by @jekoie, @rodja, @falkoschindler) - Update
tailwind.config.darkMode
only if the value has changed, improving the initial load time of nicegui.io (#2287, #2446, #2451 by @platinops, @rodja) - Improve the error message when
storage_secret
is missing (#2438, #2445 by @me21, @rodja, @falkoschindler) - Fix
ui.notification
not changing its style based on thetype
argument (#2427 by @csrubin, @falkoschindler) - Fix "python-socketio" requirement to install optional "asyncio-client" extra (#2089, #2426 by @retsyo, @rodja)
Documentation
v1.4.12
New features and enhancements
- Add support for calling
ui.aggrid
row methods (#2357, #2413 by @E-H-E-H, @falkoschindler) - Introduce
from_pyecharts
method forui.echart
(#2403 by @CrystalWindSnake, @falkoschindler) - Allow handling
ui.mermaid
errors on the server (#2390, #2396 by @jdavidrcamacho, @falkoschindler) - Provide meta data for wrapped page-builder (#2382, #2412 by @WSH032, @rodja)
Bugfix
- Fix copy-to-clipboard button of
ui.code
when the code contains a backtick`
(#2400 by @Wzhipeng, @falkoschindler)