Releases: zauberzeug/nicegui
Releases · zauberzeug/nicegui
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)
v1.4.11
New features and enhancements
- Greatly improve performance when removing bindings, e.g. when leaving a page (#2335, #2373, #2374 by @ruiheng, @falkoschindler)
- Add ability to dismiss a
ui.notification
(#2379, #2380 by @zilch42, @rodja) - Allow calling
ui.open
without a socket connection (#2348, #2376 by @BlackF0rest, @falkoschindler) - Keep version in pyproject.toml up to date (#2345 by @iron3oxide, @falkoschindler, @rodja)
Bugfix
- Fix copy button for
ui.code()
in Safari (#2377 by @Wzhipeng, @falkoschindler)
v1.4.10
Enhancements
- Optimize binding propagation (#2290, #2311 by @rodja, @falkoschindler)
- Put .local/bin in PATH so pip installed programs like pytest are executable (#2305 by @rodja)
- Update fetch_tailwind.py with refactored Tailwind CSS integrations (#2317 by @RJohnPaul, @falkoschindler)
Bugfixes
- Update dependencies and socketio path behavior (#2354, #2360 by @Smug246, @rodja)
- Fix updating of error message for validation elements (#2333, #2342 by @iron3oxide, @falkoschindler)
- Fix a problem with storage not working in python 3.8 (#2319, #2322 by @CrystalWindSnake)
Documentation
- Add an explanation for
run.cpu_bound
(#2221, #2363 by @johancj, @rodja) - Improve binding documentation (#2201, #2323 by @ed2050, @natankeddem, @falkoschindler)
- Introduce pyserial example (#2309, #2320 by @StroemJaeger, @falkoschindler)
- Improve documentation about async/await (#2306 by @rodja)
v1.4.9
New features and enhancements
- Dynamically hide
ui.code
's copy button (#2283, #2288 by @frankhuurman, @falkoschindler) - Introduce
caption
andgroup
parameter forui.expansion
(#2281 by @thetableman) - Loosen uvicorn dependency to allow latest versions (#2267 by @rodja)
- Allow HTTP range requests with NiceGUI On Air for serving media files (#2250 by @rodja)
- Allow setting head and body HTML when client is already connected (#2140, #2191 by @retsyo, @falkoschindler)
- Support validation functions with dynamic error messages (#2133, #2150 by @steweg, @adosikas, @falkoschindler)
Bugfixes
- Catch exception when migrating storage files (#2276 by @gavinpotter, @falkoschindler)
- Keep updates and messages in outbox until client is connected (#2272 by @falkoschindler, @rodja, @codingpaula)
- Introduce
ui.refreshable_method
to avoid mypy error (#2174, #2268 by @falkoschindler, @meirdev)
v1.4.8
New Feature
- Introduce new testing module and a new pytest example (#2200, #2245 by @hofaflo, @falkoschindler)
Bugfix
- Fix incompatibility issue by upgrade to newer FastAPI (#2247, #2249 by @leakedby, @rodja, @DavidLeBonk, @falkoschindler)
Documentation
- Add an example showing an integration of the FullCalendar library (#2054 by @frankvp11, @falkoschindler)
Development
- Pytests for ui.scene fail locally (#643 by @tobb10001, @falkoschindler)
v1.4.7
New features and enhancements
- Introduce
ui.space
to fill all available space inside of a flexbox (#2225 by @falkoschindler) - Introduce
run_chart_method
forui.echart
(#1900, #2232 by @mq-evan, @natankeddem, @falkoschindler) - Introduce
run_editor_method
forui.json_editor
(#2162 by @natankeddem, @rodja, @falkoschindler) - Add support for Plotly events (#748, #1598, #1818, #2231 by @YH20220622, @cramatt, @kripnerl, @natankeddem, @aljosahafner, @falkoschindler)
- Make text of
ui.expansion
bindable (#2199, #2211 by @frankhuurman, @falkoschindler) - Allow using
ui.interactive_image
without an image (#1712, #2218 by @falkoschindler) - Simplify emitting and receiving global events with
ui.on
(#2203 by @falkoschindler) ValdationElement.validate
now returns abool
(#2220, #2227 by @ghbm-itk)- Improve warning message for nesting of top level layout elements (#1970, #2212 by @iron3oxide, @falkoschindler)
- Migrate storage from system's default encoding to UTF-8 (#2163, #2233 by @SHDocter, @falkoschindler)
- Replace
ui.query
's inheritance fromui.element
with aggregation (#2217 by @falkoschindler) - Improve initialization order of
ValueElement
s (#2222 by @steweg)
Bugfixes
- Fix problem with loading video from URL in Windows (#2159 by @the-code-rider, @falkoschindler)
- Fix import error for optional dependency "pandas" (#2226 by @rodja, @falkoschindler)
- Fix initialization problem with an emtpy
ui.scene
(#1285 by @falkoschindler) - Fix shared
validation
dictionary ofValidationElement
s (#2235 by @ghbm-itk, @falkoschindler)
Documentation
- Add class methods to documentation (#2204 by @falkoschindler)
- Add a demo for vertical tabs (#2219 by @youyou015, @falkoschindler)
- Extend the docstring for
ui.notification
(#2224 by @thetableman)
v1.4.6
New features and enhancements
- Introduce
ui.leaflet
element for interactive maps (#1217 by @falkoschindler, @rodja) - Introduce
ui.notification
element (#515, #1994, #2031 by @pythonormen, @abel1502, @thaije, @falkoschindler) - Introduce
ui.page_title
(#1436, #2182 by @liang-jacky, @iron3oxide, @ed2050, @falkoschindler) - Reduce the CSS specificity for ui.link to simplify overriding its style (#2134, #2198 by @frankhuurman, @falkoschindler)
- Improve tooltip documentation; make text optional (#1596, #2184 by @thetableman, @falkoschindler)
- Introduce CSS variables for default padding and gap (#2171, #2183 by @petergaultney, @falkoschindler)
- Improve reconnect when accessing via On Air (#2147 by @rodja)
- Handle broken JSON data in persistent storage (#2145 by @rodja)
- Add py.typed file so that mypy will check types against imports from NiceGUI (#2128, #2142 by @petergaultney)
- Add
update_rows()
method forui.table
(#2132 by @steweg, @falkoschindler) - Allow setting head and body HTML for all pages (#2126, #2127 by @DaelonSuzuka, @falkoschindler)
- Provide minimal Highcharts docs and warning (#2122 by @rodja)
- Improve access to pagination updates for
ui.table
(#2081, #2192 by @ghbm-itk, @falkoschindler, @rodja)
Bugfixes
- Allow setting
ui.input
's "autocomplete" prop (#2181 by @rjzhou, @falkoschindler) - Reset filter when opening
ui.select
withmultiple=False
(#2076, #2131, #2175 by @thetableman, @snowbollaanm, @steweg, @falkoschindler) - Update markdown2 dependency to avoid bug in version 2.4.11 (#2153, #2154 by @thetableman, @falkoschindler)
- Fix CSS for HTML content in
ui.editor
andui.markdown
(#2029, #2045 by @thetableman, @ljcleo, @falkoschindler)
v1.4.5
Bugfixes
- avoid implicit dependency to pillow
v1.4.4
New features and enhancements
- Allow specifying the port-,port,-%3A) in native mode (#1457, #2110 by @retsyo, @rodja, @falkoschindler)
- Let
ui.open
accept a NiceGUI element as link target (#2105, #2108 by @retsyo) - Warn about late returns in
@ui.page
builder, which were silently dropped before (#2088 by @rodja) - Support PIL images as image source in
ui.image
andui.interactive_image
(#2067, #2069 by @nghia-vo, @falkoschindler) - Allow muting the default welcome message (#2062 by @nghia-vo, @falkoschindler)
- Show an error when trying to run with multiple workers (#2055 by @ruiheng, @falkoschindler)
- Add support for in-memory data to
ui.download
(#2050 by @Skilles, @falkoschindler)
Bugfixes
- Fix transmission of dollar sign (#2079 by @retsyo, @falkoschindler)
- Fix update of
ui.echart
options when number of series changes (#1900, #2068 by @mq-evan, @natankeddem, @falkoschindler)
Documentation
- Refactor documentation, improve search index (#2039, #2084 by @falkoschindler)
- Improve style of emphasized phrases (#2112 by @rodja, @falkoschindler)
- Improve layout of main overview page (#2111 by @rodja, @falkoschindler)
- Fix broken links in search results (#2019, #2103 by @phoskee, @retsyo, @falkoschindler)
- Add section about common pitfalls with packaging on Mac OS (#1495, #2109 by @yxlwfds, @youyou015, @sakelariev, @meslahik, @falkoschindler)