@c8y/ngx-components 1023.96.0 → 1023.97.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/alarms/index.d.ts.map +1 -1
  2. package/context-dashboard/device/view/index.d.ts +24 -1
  3. package/context-dashboard/device/view/index.d.ts.map +1 -1
  4. package/context-dashboard/index.d.ts +9 -3
  5. package/context-dashboard/index.d.ts.map +1 -1
  6. package/echart/index.d.ts.map +1 -1
  7. package/fesm2022/c8y-ngx-components-alarms.mjs +12 -5
  8. package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
  9. package/fesm2022/c8y-ngx-components-context-dashboard-device-view.mjs +21 -3
  10. package/fesm2022/c8y-ngx-components-context-dashboard-device-view.mjs.map +1 -1
  11. package/fesm2022/c8y-ngx-components-context-dashboard-devicemanagement.mjs +2 -2
  12. package/fesm2022/c8y-ngx-components-context-dashboard-devicemanagement.mjs.map +1 -1
  13. package/fesm2022/c8y-ngx-components-context-dashboard.mjs +25 -15
  14. package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  15. package/fesm2022/c8y-ngx-components-echart.mjs +52 -36
  16. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  17. package/fesm2022/c8y-ngx-components-map.mjs +15 -0
  18. package/fesm2022/c8y-ngx-components-map.mjs.map +1 -1
  19. package/fesm2022/c8y-ngx-components-upgrade.mjs +12 -1
  20. package/fesm2022/c8y-ngx-components-upgrade.mjs.map +1 -1
  21. package/fesm2022/c8y-ngx-components-widgets-implementations-quick-links.mjs +33 -9
  22. package/fesm2022/c8y-ngx-components-widgets-implementations-quick-links.mjs.map +1 -1
  23. package/fesm2022/c8y-ngx-components.mjs +30 -5
  24. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  25. package/index.d.ts +5 -0
  26. package/index.d.ts.map +1 -1
  27. package/locales/de.po +57 -3
  28. package/locales/es.po +57 -3
  29. package/locales/fr.po +57 -3
  30. package/locales/ja_JP.po +57 -3
  31. package/locales/ko.po +57 -3
  32. package/locales/locales.pot +9 -0
  33. package/locales/nl.po +57 -3
  34. package/locales/pl.po +57 -3
  35. package/locales/pt_BR.po +57 -3
  36. package/locales/zh_CN.po +57 -3
  37. package/locales/zh_TW.po +57 -3
  38. package/map/index.d.ts.map +1 -1
  39. package/package.json +1 -1
  40. package/upgrade/index.d.ts +1 -0
  41. package/upgrade/index.d.ts.map +1 -1
  42. package/widgets/implementations/quick-links/index.d.ts +3 -1
  43. package/widgets/implementations/quick-links/index.d.ts.map +1 -1
@@ -1041,6 +1041,21 @@ class MapComponent {
1041
1041
  }
1042
1042
  ngOnDestroy() {
1043
1043
  this.unsubscribeAllListeners();
1044
+ // Destroy the Leaflet map so its global window 'resize' listener and the _leaflet_events
1045
+ // registry are removed. Without this, Leaflet keeps the map alive — and through it this
1046
+ // component and the whole dashboard — after the widget is torn down (e.g. "Reset widgets"),
1047
+ // leaking the entire c8y-context-dashboard tree. (initMap() already uses map.remove() the
1048
+ // same way when re-initializing.)
1049
+ if (this.map) {
1050
+ // If the map is torn down while a pan/drag gesture is still in progress (e.g. a live
1051
+ // refresh re-inits the map, or the user navigates away mid-drag), Leaflet's L.Draggable
1052
+ // never runs finishDrag(), so its document/window drag listeners and the static
1053
+ // Draggable._dragging keep referencing the map container — retaining the whole detached
1054
+ // dashboard tree. Disabling dragging first runs finishDrag() and removes them.
1055
+ this.map.dragging?.disable();
1056
+ this.map.remove();
1057
+ this.map = null;
1058
+ }
1044
1059
  this.destroy$.next();
1045
1060
  this.destroy$.complete();
1046
1061
  }