Releases: zauberzeug/nicegui
Releases · zauberzeug/nicegui
v1.4.35
New features and enhancements
- Improvements to
ui.tree
:- Allow filtering nodes (#3436, #3481, #3482 by @MohAid, @falkoschindler)
- Allow selecting and ticking nodes programmatically (#3436, #3476 by @MohAid, @arunaseva, @falkoschindler)
- Improvements to
ui.scene
:- Allow updating a point cloud (#3468 by @voigta, @falkoschindler)
- Allow specifying the list of click events (#3451, #3463 by @h0uter, @falkoschindler)
- Allow subscribing to the "drag" event (#3450, #3466 by @h0uter, @frankvp11, @falkoschindler)
- Introduce
get_camera
to get the current camera parameters (#3459, #3465 by @thaije, @falkoschindler)
- Support
ui.select
elements for user simulation tests (#3486, #3487 by @marcuslimdw, @rodja, @falkoschindler) - Provide two additional pytest plugins to make
user
andscreen
able to load independently (#3510, #3511 by @marcuslimdw, @rodja) - Add dependabot configuration and bump dependencies (#3393, #3453, #3489, #3490, #3491, #3492, #3493, #3495, #3496, #3497, #3498, #3501, #3502, #3503, #3504, #3505 by @gaby, @falkoschindler, @dependabot)
Bugfix
- Fix JavaScript error caused by new
ui.notify
(#3454, #3457 by @falkoschindler)
Documentation
- Fix demos awaiting JavaScript responses (#3472, #3517 by @v479038280, @python-and-fiction, @falkoschindler)
- Add documentation for the
create_user
fixture (#3512 by @rodja)
v1.4.34
Bugfix
- Fix missing dependency in Docker image (@falkoschindler, @codingpaula)
v1.4.31
New features and enhancements
- Introduce a new integration test framework (#1931, #2496, #3121, #3413 by @rodja, @ed2050, @MarcDelahousse, @codingpaula, @falkoschindler):
- a new
user
fixture cuts away the browser and replaces it by a lightweight simulation entirely in Python; a test for a login page can now be written like this:async def test_login(): await user.open('/') user.find('Username').type('user1') user.find('Password').type('pass1').trigger('keydown.enter') await user.should_see('Hello user1!') user.find('logout').click() await user.should_see('Log in')
- a new
ElementFilter
allows to find and manipulate UI elements during tests and in production - a new pytest plugin allows to use both NiceGUI fixtures
screen
anduser
viapytest_plugins = ['nicegui.testing.plugin']
- a new
- Remove icecream dependency (#3439 by @falkoschindler)
- Provide tests for
run.io_bound
andrun.cpu_bound
(#2234 by @rodja, @falkoschindler)
Documentation
- Add more links to the documentation (#3434 by @rodja)
- Improve the documentation overview (#3409 by @rodja)
- Say browser session cookie is "signed", not "encrypted" (#3424 by @NickCrews)
- Restrict access to all routes in the "Authentication" example (#3403, #3417 by @Daniel-Fei, @falkoschindler, @rodja)
v1.4.30
New features and enhancements
- Introduce
get_computed_prop
method for any UI element; provide computed, filtered and sorted rows forui.table
(#3395 by @srobertson86, @falkoschindler) - Support
app.shutdown()
even forui.run(reload=True)
(#3320 by @NiklasNeugebauer, @python-and-fiction, @falkoschindler) - Allow pretty-printing storage JSON files (#3367, #3396 by @sseshan7, @falkoschindler)
Bugfixes
- Update
ui.number
after sanitization (#3324, #3389 by @eddie3ruff, @python-and-fiction, @falkoschindler) - Fix value updates in
ui.editor
after client-side changes (#1088, #3217, #3346 by @tjongsma, @falkoschindler, @frankvp11, @python-and-fiction)
Documentation
- Improve notes about contributing (#3390 by @codingpaula, @falkoschindler)
- Add info about failing pre-commit hook (#3362 by @rodja)
- Fix parameter description for input validation (#3350 by @python-and-fiction, @falkoschindler)
- Extend tooltip documentation (#3322, #3331, #3338 by @FSchmidt-FUNKE, @python-and-fiction, @rodja, @falkoschindler)
v1.4.29
New features and enhancements
- Support named slots in
Element.move()
(#3319 by @NiklasNeugebauer, @falkoschindler) - Add pytest-watcher dependency to the devcontainer (#3327 by @rodja)
Bugfixes
- Enforce amd64 platform for devcontainer to fix chromedriver on Mac (#3328 by @rodja)
- Fix misleading error message if storage secret is set (#2520, #3273, #3310 by @dr-yd, @kwmartin, @Bacoknight, @Dan1001, @erdincka, @j4nSolo, @MaiHoangViet1809, @bin-san, @python-and-fiction, @falkoschindler, @rodja)
- Ignore
CancelledError
incheck_for_late_return_value
(#3268, #3296 by @CatamountJack, @falkoschindler)
Documentation
- Add documentation about
BindableProperty
for better binding performance (#1975, #3325, #3333 by @eponymic, @v479038280, @python-and-fiction, @falkoschindler) - Fix link to Quasar's Tab Panels (#3329 by @rodja)
- Add
ui.teleport
demo for placing charts in table cells (#3309 by @frankvp11, @falkoschindler) - Provide info on how to run the docs locally (#3304, #3305 by @DeflateAwning, @python-and-fiction, @rodja)
v1.4.28
New features and enhancements
- Add
request
object to theclient
(#1695, #2399, #3286 by @DoPaminexL, @rodja, @falkoschindler) - Introduce
ui.skeleton
(#3082, #3202 by @patrickwasp, @frankvp11, @falkoschindler) - Added support for 3D graphing for
ui.echart
(#3184, #3195 by @natankeddem, @falkoschindler) - Add
min
,max
andstep
properties toui.range
(#3167, #3191, #3242, #3260 by @bojh, @falkoschindler, @Ezbaze) - Allow changing grid parameters of
ui.scene
(#3254, #3257 by @v479038280, @python-and-fiction, @falkoschindler)
Bugfixes
- Fix SVG of
ui.pyplot
not filling its container (#3277, #3289 by @Guilhermwn, @python-and-fiction, @falkoschindler) - Fix change event value of
ui.number
differing fromvalue
property (#3110, #3142, #3281 by @CrystalWindSnake, @Lucas-lyh, @frankvp11, @falkoschindler)
Documentation
- Add demos for using
ui.refreshable
with local scope (#2535, #3219, #3233, #3279 by @Ezbaze, @ruisilvestre-snapp, @arunmp25, @falkoschindler, @rodja) - Add demo for
ui.upload
with large files (#3220, #3235 by @Rjdrenth) - Add demo on how to use
ui.teleport
for fancy radio options (#3224, #3230 by @pierrecdn, @rodja) - Improve date picker demo with input element and add similar demo for time picker (#3155, #3226 by @tmlmt)
- Add details and examples in docs for running apps with https (#3155, #3213 by @tmlmt, @rodja)
v1.4.27
New features and enhancements
- Introduce
ui.teleport
element to inject NiceGUI elements into regular html. (#3148, #3159 by @CrystalWindSnake, @falkoschindler) - Introduce
align_items
parameter forui.row
,ui.column
andui.card
(#3174, #3175 by @tz301, @falkoschindler) - Introduce
config
parameter forui.mermaid
(#3164 by @kyloe, @falkoschindler) - Improve error message for source elements with missing files (#3162 by @CrystalWindSnake, @falkoschindler)
- Allow commas and equal signs in unquoted prop strings (#3128, #3130, #3193 by @miccs0, @ed2050, @falkoschindler)
Bugfixes
- Fix type annotation in NPM import script (#3186 by @natankeddem)
- Fix JavaScript error due to wrong variable in download function (#3173 by @123swk123, @falkoschindler)
- Encode auto-generated URLs to support filenames with hashtags
#
(#3124, #3138 by @gotev, @afullerx) - Bump pywebview to 5.0 to support
settings
attribute (#3135 by @miek770, @falkoschindler) - Fix
ui.codemirror
ignoring path prefixes (#3122, #3126 by @amks1, @falkoschindler)
Documentation
v1.4.26
New features and enhancements
- Make
ui.code
a ContentElement to support binding (#3077, #3089 by @JeanBaptiste-dlb, @falkoschindler) - Warn about communication attempts with disconnected clients (#3028, #3123 by @Thermaltech, @falkoschindler, @rodja)
- Pass lifespan state when running NiceGUI with an existing FastAPI app (#3094, #3097 by @RomainEconomics)
- Only ignore specific missing imports with mypy (#3113 by @codingpaula)
- Use local files for testing
ui.interactive_image
(#3118 by @falkoschindler)
Bugfixes
- Prevent
ui.leaflet
from flickering after callingflyTo()
(#3035, #3125 by @backbord, @afullerx, @falkoschindler) - Add plotly package to Docker image (#3098 by @psy0rz, @rodja)
Documentation
- Fix "NGINX Subpath" example by adding
proxy_redirect
(#2977, #3108 by @falkoschindler, @Lucas-lyh) - Update reference to
table_documentation.py
(#3099 by @emmanuel-ferdman) - Add example to subscribe to audio events (#3090 by @rodja)
- Remove documentation for non-existing
on_pointer
parameter inui.interactive_image
(#3078 by @MLaurenceFournier) - Add comment about caching in "Custom Vue Component" example (#3074 by @MLaurenceFournier, @falkoschindler)
- Fix "Local File Picker" and "Editable AG Grid" example after restricting JavaScript on the auto-index page (#3072 by @epmb1n, @mattloose, @jweite-amazon, @falkoschindler)
v1.4.25
Bugfixes
- Fix animations being interrupted when initializing
ui.echarts
(#2932, #3056 by @CrystalWindSnake, @falkoschindler) - Fix autocomplete for
ui.input
on mobile (#3055 by @falkoschindler) - Fix accessibility issue with connection popup being always visible to screen readers (#3050 by @paulGeoghegan, @falkoschindler)
- Avoid data loss when deep-copying
app.storage
(#3023, #3046 by @natankeddem, @falkoschindler) - Add missing comma (#3032 by @sfermigier)
- Handle
options
andvalue
pointing to the same object inui.select
(#3014 by @natankeddem, @falkoschindler) - Raise exception when awaiting JavaScript on auto-index page to avoid aftereffects with multiple connected clients (#2951, #2983 by @CrystalWindSnake, @frankvp11, @falkoschindler)
- Fix
ui.aggrid
not resizing correctly with its parent container (#2850, #2852 by @tz301, @vickorian, @wasabismile, @falkoschindler)
v1.4.24
New features and enhancements
- Introduce
ui.codemirror
element (#2760, #2775, #2913 by @frankvp11, @chrschorn, @rodja, @falkoschindler) - Introduce
ui.chip
element (#2942 by @chrschorn, @falkoschindler) - Introduce
ui.scene_view
component (#2608, #2947 by @fabian0702, @falkoschindler) - Add
background_color
parameter toui.scene
(#2963 by @chrschorn, @falkoschindler) - Improve performance of 3D scenes by initializing all objects at once (#3009, #3022 by @kovalp, @falkoschindler)
- Improve devcontainer experience (#2964 by @chrschorn)
- Support Quasar's
col-*
classes inui.row
(#2881, #3008 by @me21, @falkoschindler)
Bugfixes
- Fix layout issues with
ui.plotly
and reduce unnecessary re-rendering of UI elements (#2917, #2957 by @drummerboy2543, @bmaranville, @falkoschindler) - Avoid sending UI content twice (#2926 by @Wramberg, @falkoschindler)
- Use a more robust method to check for a client connection (#2915 by @CVxTz, @rodja, @ZAn-next, @falkoschindler)
Documentation
- Add more documentation for
ui.keyboard
and its event arguments (#2974, #3010 by @ed2050, @falkoschindler) - Fix exception in the "Infinite scroll" example when the client disconnects (#2966 by @psy0rz, @falkoschindler)
- Fix a broken link on the
ui.page
documentation (#2990 by @Dronakurl, @falkoschindler)