* Improved swiping and keyboard and screen reader support in the IoT Hub screenshot and attribute widget carousels
ngx-hm-carousel is unmaintained, needed a patch to run on Angular 20 and pulled in
hammerjs (globally imported only for it) and @nghedgehog/core. It is replaced with an
in-house carousel that keeps the library's selectors, inputs, content templates and
currentIndex and is exposed under the same 'ngx-hm-carousel' module id, so custom
widgets keep working.
Swipe and mouse drag use Pointer Events; the carousel is focusable and switches slides
with the arrow keys, slides are labelled and off-screen slides are inert. The prev/next
buttons of the attribute widget preview got accessible names.
* Fixed IoT Hub screenshot carousel autoplay staying paused and showing a focus ring after closing the full-screen viewer
- A mouse click no longer focuses the carousel (it stays focusable from the keyboard), so the
full-screen viewer does not return focus to it with a focus ring.
- Autoplay pauses on focus only when it is keyboard focus (:focus-visible); moving the
mouse out of the carousel resumes it.
- Prev/next areas and dots react only to the carousel's own elements, not to elements
with the same classes inside slides.
- Slide role, aria-roledescription and aria-label set by the slide author are kept.
- Pinch-zoom stays available on touch screens over the carousel.
- The slides container is looked up by [ngx-hm-carousel-container].
- Removed inputs and templates the new carousel ignores ([data], default [infinite] and
[show-num], #carousel, empty prev/next/dot templates) and the styles that hid them.
* Removed leftover IoT Hub carousel styles of the replaced library and tidied carousel comments
* Updated the license header of the modified IoT Hub item dialog template
* UI: Load Ace modes, snippets and themes on demand
The first editor used to load all 14 modes, 11 snippet files and 2 themes
up front (901 KB, 29 requests). Ace now loads only what an editor uses
through config.setModuleLoader; a JSON editor loads 534 KB in 5 requests.
- Once a module is defined, its loader is removed, so Ace resolves it
synchronously again, as before.
- getAce() accepts modules to preload for editors that read the session
mode synchronously after setMode; js-func preloads javascript and tbel.
- mode-c_cpp and snippets/protobuf are no longer loaded: no editor uses
the C/C++ mode, mode-protobuf bundles its own copy, and the protobuf
mode takes its snippets from snippets/c_cpp.
* UI: Load the SystemJS modules map lazily and cut eager imports of home code
- The SystemJS modules map, which imports most of the application, now
loads only when a widget or rule node loads an extension module. Pages
and dashboards no longer carry it.
- WidgetService, DashboardUtilsService and HomeService no longer import
the widget config component, the dashboard component models and the
router tabs component, which kept them in the login bundle:
the basic config base class is passed to
registerBasicWidgetConfigComponents, the gridster limits moved to
shared dashboard models (re-exported from the old place), and router
tabs are detected by a flag instead of instanceof.
- BlobEntitiesComponent reads the header actions panel from the widget
context instead of injecting WidgetComponent. That import closed the
only NgModule import cycle (SharedHomeComponentsModule ->
WidgetComponentsModule), which crashed startup with "Cannot read
properties of undefined (reading 'ngModule')" when the module init
order changed.
* UI: Take dashboard screenshots with modern-screenshot, loaded on demand
The dashboard image dialog used html2canvas, which is no longer
maintained. It shifted and cropped the captured area and failed on
dashboards that use the CSS color() function (charts, gauges, maps).
- modern-screenshot (MIT, no dependencies, 10 KB gzip instead of 44 KB)
renders the dashboard through the browser itself, so the thumbnail
matches the page. It loads only when a screenshot is taken.
- The whole dashboard is captured and the selected area is cut out of
the canvas; the development notice is still stamped before the image
is serialised.
- Elements marked with data-html2canvas-ignore are still left out, and
videos with no source are skipped, since the capture would wait for
them forever.
* UI: Import entity type models directly in entity chips instead of the shared public API barrel
The barrel re-exports report-component.models, which imports the time series
chart models and with them echarts and zrender. Any eager import path to
entity chips would pull ~1.7 MB of chart code into the startup bundle, as
happened in PE through the AI audit log dialog.
* Serve pre-compressed UI files from web-ui instead of compressing per request
compression 1.8 (pulled in by a CVE fix in 4.2.2.5 / 4.3.1.5) prefers brotli,
and browsers always offer it over HTTPS. Brotli-compressing the 8.5 MB main
chunk on every cache miss fragments native memory that glibc never returns,
so web-ui RSS grows with each traffic burst until the container is OOMKilled.
- ui-ngx: write .gz copies for every compressible file of the production build
in a post-build step. The esbuild plugin it replaces missed global styles,
scripts, polyfills, ace workers and assets/.
- web-ui: serve those copies with Content-Encoding: gzip and drop the
compression middleware and its dependency.
* Run UI compression as a Maven step and ignore aborted downloads in web-ui
- build:prod is a plain ng build again; "yarn run compress" runs as its own
frontend-maven-plugin execution right after it.
- web-ui: like express.static, ignore ECONNABORTED and socket write errors
instead of logging a stack trace for every cancelled download, and fall
back to the original file if its .gz copy is missing.
* Serve pre-built brotli copies of UI files
- compress-build.js also writes <file>.br (brotli quality 10). It is 21.5%
smaller than gzip -9 on the UI bundle (main chunk 0.96 MiB vs 1.47 MiB).
Quality 11 saves only 2% more and takes 3x longer.
- It now uses every available core and starts with the largest files:
7 s for .br and .gz together on 6 cores, against 25 s for quality 11
on the default 4 libuv threads.
- web-ui serves .br when the client accepts it and .gz otherwise. The
server's order wins, because browsers list gzip before br.
* Ignore stale pre-compressed copies and warn when there are none
- web-ui skips a .br/.gz copy that is older than its original or has no
original. Otherwise a file edited after the build, such as a customized
locale, would keep being served from its old copy.
- Log a warning when the web folder has no pre-compressed files at all,
for example a UI built without "yarn run compress".
- compress-build.js runs at most 8 threads.
- Shorter comments; the pom comment duplicated the script header.
* Respect Accept-Encoding q-values and detect edited originals by size
- Pick the encoding with negotiator (already in the tree through express,
now a direct dependency). The highest q wins as RFC 9110 says, and the
server's br-first order only breaks ties. Before, "gzip;q=1, br;q=0.1"
still got br.
- Check a copy against the uncompressed size gzip stores in its trailer
instead of comparing mtimes. Touching or copying the build without
preserving timestamps no longer disables compression, and a customized
file of a different size still gets served fresh.
* Trust pre-compressed copies as built, like nginx, Caddy and Fastify do
The web folder is a build artifact that is not edited by hand, so checking
copies against their originals at startup only added code.
* Load negotiator.d.ts in yarn start and start-prod
ts-node only compiles files that are imported, so it ignored the ambient
declaration and failed with TS7016. tsc, the Docker image and production
were not affected.
core.state.ts imported ngrx-store-freeze statically, so the production bundle contained it and deep-freeze-strict, although only development builds used it and package.json lists it as a development dependency. The runtime checks strictStateImmutability and strictActionImmutability of the store, set in core.module.ts, freeze the state and the actions in development mode already.
* [WIP] implement two finger map zoom in mobile
* feat: add useGestureHandling map option for cooperative scroll/touch zoom
* Removed wrongly added package-lock.json and restored previous yarn url targets
* Made gestures mode dependant on the Zoom actions:scroll (visible only when scroll is enabled), changed from simple slider to a more styled pill slider toggle, added a tooltip where put configuration explanation
* feat: configure gesture handling overlay duration and translated text
* refactor: register gesture handling plugin in leaflet-tb and extract options to base map class
* fix: address gesture handling review — remove duplicate registration, decouple mobile toggle from scroll zoom
* fix: correct gesture hint text, drop unused MapZoomAction, pin leaflet-gesture-handling
* chore: restamp license headers for modified CE files
5.5.4-TB is the ThingsBoard echarts fork's license-compliant release (thingsboard/echarts#3, #4). It brings zrender 5.5.1-TB, and the package metadata of both forks now points at the ThingsBoard repositories, so the UI SBOM links to the code that ships.
Ace 1.44 replaced the JSHint-based JavaScript worker with a new analyzer and
removed its changeOptions command. js-func.component relies on it to declare
function arguments as globals, so with 1.45.2 every JavaScript function editor
reported its arguments as "is not defined" and marked valid functions as invalid.
Updated exceljs-hardened to 5.1.0, which drops uuid 8.3.2 and the archiver chain
with the vulnerable brace-expansion, flag-icons to 7.6.0 and @fullcalendar/* to 6.1.22.
- msa/js-executor, msa/web-ui: replace nodemon with node --watch and remove it,
dropping chokidar 3 and braces (CVE-2026-93687)
- ui-ngx: migrate from deprecated @angular-devkit/build-angular to @angular/build,
dropping the webpack toolchain incl. webpack-dev-middleware (CVE-2026-76844)
- ui-ngx: bump Angular CLI/build tooling to 20.3.40, make the
@modelcontextprotocol/sdk 1.32.1 resolution global, remove unused less resolution
- ui-ngx: bump @svgdotjs/svg.js to 3.2.8 (prototype pollution fix), svg.filter.js
to 3.0.10, svg.panzoom.js to 2.1.3, @messageformat/core to 3.4.1, eslint to 9.39.5
- ui-ngx: fix invalid JSON in locale.constant-ro_RO.json (trailing comma)
Fixes the XSS sanitizer bypass in DOM.sanitize() (GHSA-jrc7-96c5-q579,
maplibre-gl <= 6.4.0).
- v6 removed the internal map.transform: sync the GL map with Leaflet
through the public jumpTo() and detect resizes from the container size
- v6 is ESM-only and the worker must be registered via setWorkerUrl():
copy maplibre-gl-worker.mjs and its maplibre-gl-shared.mjs dependency
to assets/maplibre-gl/
* Add API key support for CARTO basemap layers
* Move CARTO basemaps to a dedicated map provider and drop legacy HERE v2 credentials
- Add MapProvider.carto with its own layer types, settings and TbCartoMapLayer;
the API key is optional since CARTO serves tiles without one.
- Read CARTO layers stored under the OpenStreetMap provider as CARTO layers
(normalized in the layer factory and in the map layers settings form),
so existing widgets migrate on the next settings save without an upgrade script.
- Reset the API key when switching to CARTO instead of keeping the previous provider's key.
- Remove the useV3 toggle and app_id/app_code fields from legacy HERE settings;
leaflet-providers 4.x only supports HERE v3 with an API key.
---------
Co-authored-by: Vladyslav Prykhodko <vlad.pryhodko@icloud.com>