@rio-cloud/rio-uikit 1.6.0 → 1.7.0

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 (851) hide show
  1. package/.DS_Store +0 -0
  2. package/AccentBar.d.ts +2 -0
  3. package/AccentBar.js +2 -0
  4. package/Avatar.d.ts +2 -0
  5. package/Avatar.js +2 -0
  6. package/AvatarGroup.d.ts +2 -0
  7. package/AvatarGroup.js +2 -0
  8. package/Banner.d.ts +2 -0
  9. package/Banner.js +2 -0
  10. package/ButtonToolbar.d.ts +2 -0
  11. package/ButtonToolbar.js +2 -0
  12. package/Card.d.ts +2 -0
  13. package/Card.js +2 -0
  14. package/DateRangePicker.js +2 -3
  15. package/FormLabel.d.ts +2 -0
  16. package/FormLabel.js +2 -0
  17. package/LabeledElement.d.ts +2 -0
  18. package/LabeledElement.js +2 -0
  19. package/StepButton.d.ts +2 -0
  20. package/StepButton.js +2 -0
  21. package/VirtualList.d.ts +2 -0
  22. package/VirtualList.js +2 -0
  23. package/components/accentBar/AccentBar.d.ts +21 -0
  24. package/components/accentBar/AccentBar.js +12 -0
  25. package/components/actionBarItem/ActionBarItem.d.ts +2 -6
  26. package/components/actionBarItem/ActionBarItem.js +6 -7
  27. package/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
  28. package/components/actionBarItem/ActionBarItemIcon.js +2 -3
  29. package/components/actionBarItem/ActionBarItemList.js +2 -6
  30. package/components/actionBarItem/ActionBarItemListItem.js +2 -5
  31. package/components/actionBarItem/ActionBarItemListSeparator.js +2 -6
  32. package/components/actionBarItem/ActionBarItemPopoverContent.js +2 -6
  33. package/components/actionBarItem/ActionBarOverlay.d.ts +1 -1
  34. package/components/actionBarItem/ActionBarOverlay.js +3 -4
  35. package/components/activity/Activity.js +2 -3
  36. package/components/animatedNumber/AnimatedNumber.d.ts +6 -6
  37. package/components/animatedNumber/AnimatedNumber.js +2 -3
  38. package/components/applicationHeader/AppMenu.js +3 -6
  39. package/components/applicationHeader/AppMenuContent.js +2 -4
  40. package/components/applicationHeader/AppMenuDropdown.js +4 -4
  41. package/components/applicationHeader/ApplicationActionBar.js +4 -7
  42. package/components/applicationHeader/ApplicationHeader.js +4 -5
  43. package/components/applicationHeader/CollapsedNavItem.js +3 -3
  44. package/components/applicationHeader/MobileAppMenu.js +2 -2
  45. package/components/applicationHeader/MobileHeaderModal.js +2 -2
  46. package/components/applicationHeader/MobileSubmoduleNavigation.js +3 -3
  47. package/components/applicationHeader/NavItems.js +2 -2
  48. package/components/applicationLayout/ApplicationLayout.js +2 -4
  49. package/components/applicationLayout/ApplicationLayoutBody.d.ts +1 -1
  50. package/components/applicationLayout/ApplicationLayoutBody.js +9 -9
  51. package/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +1 -1
  52. package/components/applicationLayout/ApplicationLayoutBodyBanner.js +2 -3
  53. package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +2 -3
  54. package/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +1 -1
  55. package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +2 -3
  56. package/components/applicationLayout/ApplicationLayoutHeader.d.ts +1 -1
  57. package/components/applicationLayout/ApplicationLayoutHeader.js +2 -3
  58. package/components/applicationLayout/ApplicationLayoutSidebar.d.ts +1 -1
  59. package/components/applicationLayout/ApplicationLayoutSidebar.js +2 -3
  60. package/components/applicationLayout/SubNavigation.js +2 -3
  61. package/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +1 -3
  62. package/components/assetTree/AssetTree.d.ts +1 -1
  63. package/components/assetTree/AssetTree.js +4 -5
  64. package/components/assetTree/Tree.d.ts +2 -2
  65. package/components/assetTree/Tree.js +9 -12
  66. package/components/assetTree/TreeLeaf.js +1 -1
  67. package/components/assetTree/TreeLeafList.js +0 -2
  68. package/components/assetTree/TreeNode.js +1 -1
  69. package/components/assetTree/TreeNodeContainer.js +1 -3
  70. package/components/assetTree/TreeNothingFound.js +2 -2
  71. package/components/assetTree/TreeOption.js +2 -5
  72. package/components/assetTree/TreeOptions.js +3 -5
  73. package/components/assetTree/TreeRoot.js +1 -3
  74. package/components/assetTree/TreeSearch.js +1 -1
  75. package/components/assetTree/TreeSelectAll.js +1 -3
  76. package/components/assetTree/TreeSidebar.js +2 -3
  77. package/components/assetTree/TreeSidebarCategories.js +2 -4
  78. package/components/assetTree/TreeSummary.js +1 -1
  79. package/components/assetTree/TreeSummaryRow.js +1 -3
  80. package/components/assetTree/TypeCounter.js +2 -3
  81. package/components/assetTree/treeReducer.js +8 -8
  82. package/components/assetTree/treeUtils.d.ts +0 -2
  83. package/components/assetTree/treeUtils.js +14 -11
  84. package/components/autosuggest/AutoSuggest.js +12 -16
  85. package/components/autosuggest/AutoSuggestAddons.js +1 -3
  86. package/components/autosuggest/DropdownSpinner.js +1 -2
  87. package/components/autosuggest/NoItemMessage.js +1 -3
  88. package/components/avatar/Avatar.d.ts +54 -0
  89. package/components/avatar/Avatar.js +27 -0
  90. package/components/avatar/AvatarContent.d.ts +10 -0
  91. package/components/avatar/AvatarContent.js +20 -0
  92. package/components/avatar/AvatarGroup.d.ts +15 -0
  93. package/components/avatar/AvatarGroup.js +23 -0
  94. package/components/banner/Banner.d.ts +66 -0
  95. package/components/banner/Banner.js +49 -0
  96. package/components/banner/BannerActions.d.ts +9 -0
  97. package/components/banner/BannerActions.js +5 -0
  98. package/components/banner/BannerContent.d.ts +25 -0
  99. package/components/banner/BannerContent.js +16 -0
  100. package/components/banner/BannerIcon.d.ts +9 -0
  101. package/components/banner/BannerIcon.js +5 -0
  102. package/components/banner/BannerPage.d.ts +9 -0
  103. package/components/banner/BannerPage.js +5 -0
  104. package/components/bottomSheet/BottomSheet.d.ts +2 -2
  105. package/components/bottomSheet/BottomSheet.js +5 -6
  106. package/components/bottomSheet/TimedBottomSheet.js +3 -4
  107. package/components/button/Button.d.ts +2 -0
  108. package/components/button/Button.js +4 -5
  109. package/components/button/ButtonToolbar.d.ts +13 -0
  110. package/components/button/ButtonToolbar.js +8 -0
  111. package/components/button/StepButton.d.ts +12 -0
  112. package/components/button/StepButton.js +8 -0
  113. package/components/button/ToggleButton.js +1 -3
  114. package/components/calendarStripe/CalendarStripe.js +1 -1
  115. package/components/card/Card.d.ts +21 -0
  116. package/components/card/Card.js +8 -0
  117. package/components/carousel/Carousel.d.ts +4 -6
  118. package/components/charts/AreaChart.js +6 -9
  119. package/components/charts/AreaGradient.js +1 -2
  120. package/components/charts/BarChart.js +13 -12
  121. package/components/charts/ChartGrid.js +1 -1
  122. package/components/charts/ChartLabel.d.ts +0 -1
  123. package/components/charts/ChartNeedle.js +13 -4
  124. package/components/charts/ComposedChart.js +13 -16
  125. package/components/charts/Legend.js +0 -2
  126. package/components/charts/LineChart.js +7 -10
  127. package/components/charts/PieChart.js +6 -9
  128. package/components/charts/RadialBarChart.js +5 -8
  129. package/components/charts/ReferenceLine.js +3 -6
  130. package/components/charts/ResponsiveContainer.js +1 -1
  131. package/components/charts/XAxis.js +2 -2
  132. package/components/charts/YAxis.d.ts +0 -1
  133. package/components/charts/chartHelper.d.ts +2 -2
  134. package/components/charts/chartHelper.js +1 -1
  135. package/components/checkbox/Checkbox.js +4 -7
  136. package/components/checkbox/CheckboxIcon.js +1 -1
  137. package/components/clearableInput/ClearableInput.js +18 -7
  138. package/components/collapse/Collapse.d.ts +1 -1
  139. package/components/collapse/Collapse.js +1 -3
  140. package/components/contentLoader/ContentLoader.js +2 -5
  141. package/components/dataTabs/DataTab.js +3 -6
  142. package/components/dataTabs/DataTabHeader.js +1 -1
  143. package/components/dataTabs/DataTabs.js +7 -9
  144. package/components/datepicker/DatePicker.d.ts +16 -16
  145. package/components/datepicker/DatePicker.js +3 -4
  146. package/components/datepicker/DateRangePicker.d.ts +55 -55
  147. package/components/datepicker/DateRangePicker.js +28 -14
  148. package/components/dialog/ConfirmationDialog.js +3 -6
  149. package/components/dialog/Dialog.d.ts +2 -2
  150. package/components/dialog/Dialog.js +13 -13
  151. package/components/dialog/DialogBody.js +2 -6
  152. package/components/dialog/DialogFooter.js +2 -5
  153. package/components/dialog/DialogHeader.js +2 -3
  154. package/components/dialog/FrameDialog.js +2 -2
  155. package/components/dialog/InfoDialog.js +2 -5
  156. package/components/dialog/MediaDialog.js +7 -9
  157. package/components/dialog/OnboardingDialog.js +2 -5
  158. package/components/dialog/ReleaseNotesDialog.js +1 -3
  159. package/components/dialog/SaveDialog.js +3 -6
  160. package/components/dialog/SimpleDialog.js +2 -5
  161. package/components/dialog/SplitDialog.js +3 -6
  162. package/components/divider/Divider.js +3 -5
  163. package/components/dropdown/ButtonDropdown.d.ts +1 -1
  164. package/components/dropdown/ButtonDropdown.js +11 -11
  165. package/components/dropdown/Caret.js +0 -2
  166. package/components/dropdown/DropdownSubmenu.js +2 -3
  167. package/components/dropdown/DropdownToggleButton.js +2 -3
  168. package/components/dropdown/SimpleButtonDropdown.js +1 -3
  169. package/components/dropdown/SingleButtonDropdown.js +1 -3
  170. package/components/dropdown/SplitButtonDropdown.js +1 -3
  171. package/components/dropdown/SplitCaretButton.js +2 -3
  172. package/components/editableContent/EditableContent.js +6 -9
  173. package/components/expander/ExpanderList.js +5 -5
  174. package/components/expander/ExpanderPanel.js +2 -3
  175. package/components/fade/Fade.js +2 -2
  176. package/components/fade/FadeExpander.js +2 -2
  177. package/components/fade/FadeUp.js +2 -3
  178. package/components/feedback/FeedbackInlineButtons.js +2 -5
  179. package/components/feedback/FeedbackRating.js +4 -6
  180. package/components/feedback/FeedbackReactions.js +4 -5
  181. package/components/filepicker/FilePicker.js +5 -6
  182. package/components/formLabel/FormLabel.d.ts +13 -0
  183. package/components/formLabel/FormLabel.js +17 -0
  184. package/components/formLabel/LabeledElement.d.ts +28 -0
  185. package/components/formLabel/LabeledElement.js +11 -0
  186. package/components/groupedItemList/GroupedItemList.js +2 -5
  187. package/components/licensePlate/LicensePlate.js +4 -6
  188. package/components/listMenu/ListMenu.d.ts +1 -0
  189. package/components/listMenu/ListMenu.js +11 -11
  190. package/components/listMenu/ListMenuGroup.d.ts +17 -0
  191. package/components/listMenu/ListMenuGroup.js +1 -3
  192. package/components/listMenu/ListMenuHeader.d.ts +3 -1
  193. package/components/listMenu/ListMenuHeader.js +3 -5
  194. package/components/loadMore/LoadMoreButton.js +2 -5
  195. package/components/loadMore/LoadMoreProgress.js +1 -1
  196. package/components/map/components/Map.js +5 -7
  197. package/components/map/components/MapContext.d.ts +0 -1
  198. package/components/map/components/MapElements.js +1 -1
  199. package/components/map/components/MapPosition.js +3 -5
  200. package/components/map/components/MapSize.js +3 -3
  201. package/components/map/components/constants.d.ts +1 -2
  202. package/components/map/components/features/ContextMenu.d.ts +0 -2
  203. package/components/map/components/features/ContextMenu.js +3 -4
  204. package/components/map/components/features/ContextMenuItem.d.ts +0 -1
  205. package/components/map/components/features/MapSettings.d.ts +0 -1
  206. package/components/map/components/features/MapSettings.js +6 -7
  207. package/components/map/components/features/MapZoom.js +6 -9
  208. package/components/map/components/features/Route.d.ts +1 -1
  209. package/components/map/components/features/Route.js +23 -4
  210. package/components/map/components/features/basics/Circle.d.ts +0 -1
  211. package/components/map/components/features/basics/Circle.js +3 -5
  212. package/components/map/components/features/basics/InfoBubble.d.ts +0 -1
  213. package/components/map/components/features/basics/InfoBubble.js +4 -6
  214. package/components/map/components/features/basics/Marker.d.ts +2 -3
  215. package/components/map/components/features/basics/Marker.js +2 -4
  216. package/components/map/components/features/basics/Polygon.d.ts +0 -1
  217. package/components/map/components/features/basics/Polygon.js +3 -5
  218. package/components/map/components/features/basics/Polyline.d.ts +0 -1
  219. package/components/map/components/features/basics/Polyline.js +18 -7
  220. package/components/map/components/features/basics/TextMarker.js +2 -5
  221. package/components/map/components/features/layers/MapLayerGroup.js +11 -7
  222. package/components/map/components/features/layers/MapOverlayLayers.js +0 -1
  223. package/components/map/components/features/layers/MarkerLayer.js +6 -6
  224. package/components/map/components/features/layers/clustering/ClusterLayer.d.ts +0 -1
  225. package/components/map/components/features/layers/clustering/ClusterLayer.js +2 -4
  226. package/components/map/components/features/layers/clustering/SimpleClusterLayer.js +2 -4
  227. package/components/map/components/features/layers/overlayLayers/IncidentsLayer.js +13 -16
  228. package/components/map/components/features/layers/overlayLayers/Layer.d.ts +0 -1
  229. package/components/map/components/features/layers/overlayLayers/Layer.js +4 -8
  230. package/components/map/components/features/layers/overlayLayers/RoadRestrictionLayer.js +2 -5
  231. package/components/map/components/features/layers/overlayLayers/TrafficLayer.js +4 -8
  232. package/components/map/components/features/settings/MapSettingsItem.js +3 -3
  233. package/components/map/components/features/settings/MapSettingsPanel.js +2 -4
  234. package/components/map/components/features/settings/MapSettingsTile.js +9 -10
  235. package/components/map/components/features/settings/ZoomButtons.js +1 -3
  236. package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +2 -5
  237. package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +2 -5
  238. package/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +8 -13
  239. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +3 -4
  240. package/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +2 -5
  241. package/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -5
  242. package/components/map/components/features/settings/buttons/MapLockMarkerButton.js +2 -5
  243. package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +0 -1
  244. package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +2 -4
  245. package/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +0 -1
  246. package/components/map/components/features/settings/items/MapLayerIncidentsItem.js +2 -4
  247. package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +0 -1
  248. package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +2 -4
  249. package/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +0 -1
  250. package/components/map/components/features/settings/items/MapLayerTrafficItem.js +2 -4
  251. package/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +2 -4
  252. package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +0 -1
  253. package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +2 -4
  254. package/components/map/icons/MapIcon.js +35 -35
  255. package/components/map/utils/clustering.d.ts +0 -1
  256. package/components/map/utils/eventHandling.d.ts +0 -1
  257. package/components/map/utils/eventHandling.js +1 -1
  258. package/components/map/utils/mapTypes.d.ts +0 -2
  259. package/components/map/utils/mapUi.d.ts +0 -1
  260. package/components/map/utils/mapUtils.d.ts +0 -1
  261. package/components/map/utils/mapUtils.js +5 -5
  262. package/components/map/utils/positions.js +2 -2
  263. package/components/map/utils/rendering.d.ts +0 -1
  264. package/components/map/utils/rendering.js +8 -10
  265. package/components/mapMarker/ClusterMapMarker.js +1 -2
  266. package/components/mapMarker/SingleMapMarker.js +4 -7
  267. package/components/menuItems/MenuItem.js +1 -1
  268. package/components/menuItems/MenuItemList.js +2 -3
  269. package/components/menuItems/MenuItems.js +1 -5
  270. package/components/navigation/AppNavigationBar.d.ts +17 -0
  271. package/components/navigation/AppNavigationBar.js +3 -4
  272. package/components/noData/NoData.js +3 -6
  273. package/components/notification/Notification.d.ts +50 -30
  274. package/components/notification/Notification.js +96 -3
  275. package/components/notification/NotificationsContainer.d.ts +2 -0
  276. package/components/notification/NotificationsContainer.js +2 -4
  277. package/components/numberControl/NumberControl.js +3 -4
  278. package/components/numberInput/NumberInput.js +4 -5
  279. package/components/onboarding/OnboardingTip.js +3 -5
  280. package/components/overlay/OverlayTrigger.js +29 -14
  281. package/components/page/Page.js +1 -3
  282. package/components/pager/Pager.js +4 -5
  283. package/components/popover/Popover.d.ts +5 -5
  284. package/components/popover/Popover.js +4 -6
  285. package/components/position/Position.js +1 -2
  286. package/components/radiobutton/RadioButton.js +3 -4
  287. package/components/releaseNotes/ReleaseNotes.js +3 -6
  288. package/components/resizer/Resizer.js +2 -3
  289. package/components/responsiveColumnStripe/ResponsiveColumnStripe.d.ts +1 -1
  290. package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +8 -12
  291. package/components/rules/RuleConnector.js +2 -5
  292. package/components/rules/RuleContainer.js +4 -6
  293. package/components/rules/RulesWrapper.js +3 -9
  294. package/components/saveableInput/SaveableInput.js +4 -6
  295. package/components/selects/BaseSelectDropdown.js +9 -9
  296. package/components/selects/ClearButton.js +1 -3
  297. package/components/selects/DropdownHeader.js +1 -3
  298. package/components/selects/Multiselect.js +7 -9
  299. package/components/selects/MultiselectToggleCounter.js +1 -3
  300. package/components/selects/MultiselectToggleFilter.js +0 -2
  301. package/components/selects/MultiselectTogglePlaceholder.js +1 -3
  302. package/components/selects/MultiselectToggleSelection.js +5 -7
  303. package/components/selects/NoItemMessage.js +1 -3
  304. package/components/selects/Select.js +5 -7
  305. package/components/selects/SelectFilter.js +0 -2
  306. package/components/selects/SelectedOption.js +6 -8
  307. package/components/selects/WithFeedbackAndAddon.js +1 -3
  308. package/components/sidebars/Sidebar.js +8 -10
  309. package/components/sidebars/SidebarBackdrop.js +0 -1
  310. package/components/sidebars/SidebarCloseButton.js +1 -2
  311. package/components/sidebars/SidebarFooter.js +1 -3
  312. package/components/sidebars/SidebarFullscreenToggle.js +2 -3
  313. package/components/slider/RangeSlider.js +2 -3
  314. package/components/slider/Slider.js +2 -3
  315. package/components/smoothScrollbars/SmoothScrollbars.d.ts +1 -1
  316. package/components/smoothScrollbars/SmoothScrollbars.js +7 -7
  317. package/components/spinner/Spinner.js +6 -9
  318. package/components/states/BaseStateProps.js +1 -2
  319. package/components/states/CustomState.js +12 -15
  320. package/components/states/EmptyState.js +2 -5
  321. package/components/states/ErrorState.js +2 -5
  322. package/components/states/ForbiddenState.js +2 -5
  323. package/components/states/MaintenanceState.js +2 -5
  324. package/components/states/NotBookedState.js +4 -7
  325. package/components/states/NotFoundState.js +2 -5
  326. package/components/states/StateButton.js +2 -4
  327. package/components/states/StateIcon.js +0 -1
  328. package/components/statsWidget/StatsWidget.d.ts +4 -4
  329. package/components/statsWidget/StatsWidget.js +3 -6
  330. package/components/statsWidget/StatsWidgetBody.js +2 -5
  331. package/components/statsWidget/StatsWidgetFooter.js +2 -5
  332. package/components/statsWidget/StatsWidgetHeader.js +2 -5
  333. package/components/statsWidget/StatsWidgetNumber.js +2 -5
  334. package/components/statsWidget/StatsWidgetSpacer.js +2 -4
  335. package/components/statsWidget/StatsWidgets.js +2 -5
  336. package/components/statusBar/StatusBar.js +3 -5
  337. package/components/statusBar/StatusBarIcon.js +2 -5
  338. package/components/statusBar/StatusBarLabel.js +2 -5
  339. package/components/statusBar/StatusBarProgressBar.js +2 -3
  340. package/components/steppedProgressBar/SteppedProgressBar.js +1 -1
  341. package/components/switch/Switch.d.ts +4 -6
  342. package/components/switch/Switch.js +2 -3
  343. package/components/table/SortArrowDown.js +0 -1
  344. package/components/table/SortArrowUp.js +0 -1
  345. package/components/table/SortArrows.js +0 -1
  346. package/components/table/TableCardsSorting.js +1 -1
  347. package/components/table/TableSearch.js +2 -4
  348. package/components/table/TableSettingsColumnButtons.js +3 -4
  349. package/components/table/TableSettingsColumnDetails.js +1 -3
  350. package/components/table/TableSettingsDialog.js +8 -6
  351. package/components/table/TableSettingsDialog.types.d.ts +0 -1
  352. package/components/table/TableSettingsDialogFooter.js +1 -3
  353. package/components/table/TableSettingsListContainer.js +1 -1
  354. package/components/table/TableSettingsListItem.js +2 -4
  355. package/components/table/TableToolbar.js +1 -3
  356. package/components/table/TableViewToggles.js +4 -5
  357. package/components/tag/Tag.js +2 -3
  358. package/components/tag/TagList.js +3 -6
  359. package/components/tagManager/CustomSuggestionItem.js +1 -3
  360. package/components/tagManager/TagManager.js +2 -3
  361. package/components/tagManager/TagManagerItemList.js +3 -4
  362. package/components/teaser/Teaser.js +11 -15
  363. package/components/teaser/TeaserContainer.js +3 -3
  364. package/components/timepicker/TimePicker.js +3 -4
  365. package/components/tooltip/SimpleTooltip.js +2 -5
  366. package/components/tooltip/Tooltip.js +2 -3
  367. package/components/video/ResponsiveVideo.js +1 -2
  368. package/components/virtualList/VirtualList.d.ts +59 -0
  369. package/components/virtualList/VirtualList.js +140 -0
  370. package/components/virtualList/VirtualListItemWrapper.d.ts +10 -0
  371. package/components/virtualList/VirtualListItemWrapper.js +13 -0
  372. package/components/virtualList/useVirtualListResizeObserver.d.ts +2 -0
  373. package/components/virtualList/useVirtualListResizeObserver.js +44 -0
  374. package/hooks/useClickOutside.d.ts +4 -3
  375. package/hooks/useClickOutside.js +10 -4
  376. package/hooks/useClipboard.js +1 -1
  377. package/hooks/useDebugInfo.js +6 -3
  378. package/hooks/useFocusTrap.js +7 -7
  379. package/hooks/useFullscreen.js +8 -9
  380. package/hooks/useHover.d.ts +2 -2
  381. package/hooks/useInterval.js +1 -1
  382. package/hooks/useKey.d.ts +1 -1
  383. package/hooks/useMutationObserver.js +1 -1
  384. package/hooks/usePostMessage.d.ts +1 -1
  385. package/hooks/useResizeObserver.js +3 -4
  386. package/hooks/useStorage.d.ts +2 -3
  387. package/hooks/useTimeout.js +2 -2
  388. package/hooks/useToggle.d.ts +13 -0
  389. package/hooks/useToggle.js +31 -0
  390. package/hooks/useUncontrollable.js +7 -4
  391. package/lib/es/AccentBar.d.ts +2 -0
  392. package/lib/es/AccentBar.js +7 -0
  393. package/lib/es/Avatar.d.ts +2 -0
  394. package/lib/es/Avatar.js +7 -0
  395. package/lib/es/AvatarGroup.d.ts +2 -0
  396. package/lib/es/AvatarGroup.js +7 -0
  397. package/lib/es/Banner.d.ts +2 -0
  398. package/lib/es/Banner.js +7 -0
  399. package/lib/es/ButtonToolbar.d.ts +2 -0
  400. package/lib/es/ButtonToolbar.js +7 -0
  401. package/lib/es/Card.d.ts +2 -0
  402. package/lib/es/Card.js +7 -0
  403. package/lib/es/Colors.js +2 -4
  404. package/lib/es/DateRangePicker.js +2 -2
  405. package/lib/es/FormLabel.d.ts +2 -0
  406. package/lib/es/FormLabel.js +7 -0
  407. package/lib/es/LabeledElement.d.ts +2 -0
  408. package/lib/es/LabeledElement.js +7 -0
  409. package/lib/es/StatsWidgets.js +2 -4
  410. package/lib/es/StepButton.d.ts +2 -0
  411. package/lib/es/{Onboarding.js → StepButton.js} +3 -3
  412. package/lib/es/TagList.js +2 -4
  413. package/lib/es/VirtualList.d.ts +2 -0
  414. package/lib/es/VirtualList.js +7 -0
  415. package/lib/es/components/accentBar/AccentBar.d.ts +21 -0
  416. package/lib/es/components/accentBar/AccentBar.js +15 -0
  417. package/lib/es/components/actionBarItem/ActionBarItem.d.ts +2 -6
  418. package/lib/es/components/actionBarItem/ActionBarItem.js +6 -6
  419. package/lib/es/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
  420. package/lib/es/components/actionBarItem/ActionBarItemIcon.js +2 -2
  421. package/lib/es/components/actionBarItem/ActionBarItemList.js +2 -5
  422. package/lib/es/components/actionBarItem/ActionBarItemListItem.js +2 -4
  423. package/lib/es/components/actionBarItem/ActionBarItemListSeparator.js +2 -5
  424. package/lib/es/components/actionBarItem/ActionBarItemPopoverContent.js +2 -5
  425. package/lib/es/components/actionBarItem/ActionBarOverlay.d.ts +1 -1
  426. package/lib/es/components/actionBarItem/ActionBarOverlay.js +3 -3
  427. package/lib/es/components/activity/Activity.js +2 -2
  428. package/lib/es/components/animatedNumber/AnimatedNumber.d.ts +6 -6
  429. package/lib/es/components/animatedNumber/AnimatedNumber.js +2 -2
  430. package/lib/es/components/applicationHeader/AppMenu.js +3 -5
  431. package/lib/es/components/applicationHeader/AppMenuContent.js +2 -4
  432. package/lib/es/components/applicationHeader/AppMenuDropdown.js +4 -4
  433. package/lib/es/components/applicationHeader/ApplicationActionBar.js +4 -7
  434. package/lib/es/components/applicationHeader/ApplicationHeader.js +4 -4
  435. package/lib/es/components/applicationHeader/CollapsedNavItem.js +3 -3
  436. package/lib/es/components/applicationHeader/MobileAppMenu.js +2 -2
  437. package/lib/es/components/applicationHeader/MobileHeaderModal.js +2 -2
  438. package/lib/es/components/applicationHeader/MobileSubmoduleNavigation.js +3 -3
  439. package/lib/es/components/applicationHeader/NavItems.js +2 -2
  440. package/lib/es/components/applicationLayout/ApplicationLayout.js +2 -3
  441. package/lib/es/components/applicationLayout/ApplicationLayoutBody.d.ts +1 -1
  442. package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +9 -8
  443. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +1 -1
  444. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +2 -2
  445. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +2 -2
  446. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +1 -1
  447. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +2 -2
  448. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.d.ts +1 -1
  449. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +2 -2
  450. package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.d.ts +1 -1
  451. package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.js +2 -2
  452. package/lib/es/components/applicationLayout/SubNavigation.js +2 -2
  453. package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +1 -3
  454. package/lib/es/components/assetTree/AssetTree.d.ts +1 -1
  455. package/lib/es/components/assetTree/AssetTree.js +4 -4
  456. package/lib/es/components/assetTree/Tree.d.ts +2 -2
  457. package/lib/es/components/assetTree/Tree.js +9 -11
  458. package/lib/es/components/assetTree/TreeLeaf.js +1 -1
  459. package/lib/es/components/assetTree/TreeLeafList.js +0 -2
  460. package/lib/es/components/assetTree/TreeNode.js +1 -1
  461. package/lib/es/components/assetTree/TreeNodeContainer.js +1 -3
  462. package/lib/es/components/assetTree/TreeNothingFound.js +2 -2
  463. package/lib/es/components/assetTree/TreeOption.js +2 -4
  464. package/lib/es/components/assetTree/TreeOptions.js +3 -5
  465. package/lib/es/components/assetTree/TreeRoot.js +1 -3
  466. package/lib/es/components/assetTree/TreeSearch.js +1 -1
  467. package/lib/es/components/assetTree/TreeSelectAll.js +1 -3
  468. package/lib/es/components/assetTree/TreeSidebar.js +2 -2
  469. package/lib/es/components/assetTree/TreeSidebarCategories.js +2 -4
  470. package/lib/es/components/assetTree/TreeSummary.js +1 -1
  471. package/lib/es/components/assetTree/TreeSummaryRow.js +1 -3
  472. package/lib/es/components/assetTree/TypeCounter.js +2 -2
  473. package/lib/es/components/assetTree/treeReducer.js +8 -8
  474. package/lib/es/components/assetTree/treeUtils.d.ts +0 -2
  475. package/lib/es/components/assetTree/treeUtils.js +14 -11
  476. package/lib/es/components/autosuggest/AutoSuggest.js +12 -15
  477. package/lib/es/components/autosuggest/AutoSuggestAddons.js +1 -3
  478. package/lib/es/components/autosuggest/DropdownSpinner.js +1 -2
  479. package/lib/es/components/autosuggest/NoItemMessage.js +1 -3
  480. package/lib/es/components/avatar/Avatar.d.ts +54 -0
  481. package/lib/es/components/avatar/Avatar.js +30 -0
  482. package/lib/es/components/avatar/AvatarContent.d.ts +10 -0
  483. package/lib/es/components/avatar/AvatarContent.js +22 -0
  484. package/lib/es/components/avatar/AvatarGroup.d.ts +15 -0
  485. package/lib/es/components/avatar/AvatarGroup.js +26 -0
  486. package/lib/es/components/banner/Banner.d.ts +66 -0
  487. package/lib/es/components/banner/Banner.js +52 -0
  488. package/lib/es/components/banner/BannerActions.d.ts +9 -0
  489. package/lib/es/components/banner/BannerActions.js +7 -0
  490. package/lib/es/components/banner/BannerContent.d.ts +25 -0
  491. package/lib/es/components/banner/BannerContent.js +19 -0
  492. package/lib/es/components/banner/BannerIcon.d.ts +9 -0
  493. package/lib/es/components/banner/BannerIcon.js +7 -0
  494. package/lib/es/components/banner/BannerPage.d.ts +9 -0
  495. package/lib/es/components/banner/BannerPage.js +7 -0
  496. package/lib/es/components/bottomSheet/BottomSheet.d.ts +2 -2
  497. package/lib/es/components/bottomSheet/BottomSheet.js +5 -5
  498. package/lib/es/components/bottomSheet/TimedBottomSheet.js +3 -3
  499. package/lib/es/components/button/Button.d.ts +2 -0
  500. package/lib/es/components/button/Button.js +4 -4
  501. package/lib/es/components/button/ButtonToolbar.d.ts +13 -0
  502. package/lib/es/components/button/ButtonToolbar.js +11 -0
  503. package/lib/es/components/button/StepButton.d.ts +12 -0
  504. package/lib/es/components/button/StepButton.js +11 -0
  505. package/lib/es/components/button/ToggleButton.js +1 -3
  506. package/lib/es/components/calendarStripe/CalendarStripe.js +1 -1
  507. package/lib/es/components/card/Card.d.ts +21 -0
  508. package/lib/es/components/card/Card.js +11 -0
  509. package/lib/es/components/carousel/Carousel.d.ts +4 -6
  510. package/lib/es/components/charts/AreaChart.js +6 -8
  511. package/lib/es/components/charts/AreaGradient.js +1 -2
  512. package/lib/es/components/charts/BarChart.js +13 -11
  513. package/lib/es/components/charts/ChartGrid.js +0 -1
  514. package/lib/es/components/charts/ChartLabel.d.ts +0 -1
  515. package/lib/es/components/charts/ChartNeedle.js +13 -4
  516. package/lib/es/components/charts/ComposedChart.js +13 -15
  517. package/lib/es/components/charts/Legend.js +0 -2
  518. package/lib/es/components/charts/LineChart.js +7 -9
  519. package/lib/es/components/charts/PieChart.js +6 -8
  520. package/lib/es/components/charts/RadialBarChart.js +5 -7
  521. package/lib/es/components/charts/ReferenceLine.js +3 -6
  522. package/lib/es/components/charts/ResponsiveContainer.js +0 -1
  523. package/lib/es/components/charts/XAxis.js +2 -2
  524. package/lib/es/components/charts/YAxis.d.ts +0 -1
  525. package/lib/es/components/charts/chartHelper.d.ts +2 -2
  526. package/lib/es/components/charts/chartHelper.js +1 -1
  527. package/lib/es/components/checkbox/Checkbox.js +4 -6
  528. package/lib/es/components/checkbox/CheckboxIcon.js +1 -1
  529. package/lib/es/components/clearableInput/ClearableInput.js +18 -6
  530. package/lib/es/components/collapse/Collapse.d.ts +1 -1
  531. package/lib/es/components/collapse/Collapse.js +1 -3
  532. package/lib/es/components/contentLoader/ContentLoader.js +2 -4
  533. package/lib/es/components/dataTabs/DataTab.js +3 -6
  534. package/lib/es/components/dataTabs/DataTabHeader.js +1 -1
  535. package/lib/es/components/dataTabs/DataTabs.js +7 -8
  536. package/lib/es/components/datepicker/DatePicker.d.ts +16 -16
  537. package/lib/es/components/datepicker/DatePicker.js +3 -3
  538. package/lib/es/components/datepicker/DateRangePicker.d.ts +55 -55
  539. package/lib/es/components/datepicker/DateRangePicker.js +28 -14
  540. package/lib/es/components/dialog/ConfirmationDialog.js +3 -5
  541. package/lib/es/components/dialog/Dialog.d.ts +2 -2
  542. package/lib/es/components/dialog/Dialog.js +12 -11
  543. package/lib/es/components/dialog/DialogBody.js +2 -5
  544. package/lib/es/components/dialog/DialogFooter.js +2 -4
  545. package/lib/es/components/dialog/DialogHeader.js +2 -2
  546. package/lib/es/components/dialog/FrameDialog.js +2 -2
  547. package/lib/es/components/dialog/InfoDialog.js +2 -4
  548. package/lib/es/components/dialog/MediaDialog.js +6 -7
  549. package/lib/es/components/dialog/OnboardingDialog.js +2 -4
  550. package/lib/es/components/dialog/ReleaseNotesDialog.js +1 -3
  551. package/lib/es/components/dialog/SaveDialog.js +3 -5
  552. package/lib/es/components/dialog/SimpleDialog.js +2 -4
  553. package/lib/es/components/dialog/SplitDialog.js +3 -5
  554. package/lib/es/components/divider/Divider.js +3 -5
  555. package/lib/es/components/dropdown/ButtonDropdown.d.ts +1 -1
  556. package/lib/es/components/dropdown/ButtonDropdown.js +11 -10
  557. package/lib/es/components/dropdown/Caret.js +0 -2
  558. package/lib/es/components/dropdown/DropdownSubmenu.js +2 -2
  559. package/lib/es/components/dropdown/DropdownToggleButton.js +2 -2
  560. package/lib/es/components/dropdown/SimpleButtonDropdown.js +1 -3
  561. package/lib/es/components/dropdown/SingleButtonDropdown.js +1 -3
  562. package/lib/es/components/dropdown/SplitButtonDropdown.js +1 -3
  563. package/lib/es/components/dropdown/SplitCaretButton.js +2 -2
  564. package/lib/es/components/editableContent/EditableContent.js +6 -8
  565. package/lib/es/components/expander/ExpanderList.js +5 -5
  566. package/lib/es/components/expander/ExpanderPanel.js +2 -2
  567. package/lib/es/components/fade/Fade.js +2 -2
  568. package/lib/es/components/fade/FadeExpander.js +2 -2
  569. package/lib/es/components/fade/FadeUp.js +2 -2
  570. package/lib/es/components/feedback/FeedbackInlineButtons.js +2 -5
  571. package/lib/es/components/feedback/FeedbackRating.js +4 -5
  572. package/lib/es/components/feedback/FeedbackReactions.js +4 -4
  573. package/lib/es/components/filepicker/FilePicker.js +5 -5
  574. package/lib/es/components/formLabel/FormLabel.d.ts +13 -0
  575. package/lib/es/components/formLabel/FormLabel.js +20 -0
  576. package/lib/es/components/formLabel/LabeledElement.d.ts +28 -0
  577. package/lib/es/components/formLabel/LabeledElement.js +14 -0
  578. package/lib/es/components/groupedItemList/GroupedItemList.js +2 -5
  579. package/lib/es/components/licensePlate/LicensePlate.js +4 -6
  580. package/lib/es/components/listMenu/ListMenu.d.ts +1 -0
  581. package/lib/es/components/listMenu/ListMenu.js +11 -10
  582. package/lib/es/components/listMenu/ListMenuGroup.d.ts +17 -0
  583. package/lib/es/components/listMenu/ListMenuGroup.js +1 -3
  584. package/lib/es/components/listMenu/ListMenuHeader.d.ts +3 -1
  585. package/lib/es/components/listMenu/ListMenuHeader.js +2 -4
  586. package/lib/es/components/loadMore/LoadMoreButton.js +2 -4
  587. package/lib/es/components/loadMore/LoadMoreProgress.js +1 -1
  588. package/lib/es/components/map/components/Map.js +5 -7
  589. package/lib/es/components/map/components/MapContext.d.ts +0 -1
  590. package/lib/es/components/map/components/MapElements.js +1 -1
  591. package/lib/es/components/map/components/MapPosition.js +3 -5
  592. package/lib/es/components/map/components/MapSize.js +3 -3
  593. package/lib/es/components/map/components/constants.d.ts +1 -2
  594. package/lib/es/components/map/components/features/ContextMenu.d.ts +0 -2
  595. package/lib/es/components/map/components/features/ContextMenu.js +3 -4
  596. package/lib/es/components/map/components/features/ContextMenuItem.d.ts +0 -1
  597. package/lib/es/components/map/components/features/MapSettings.d.ts +0 -1
  598. package/lib/es/components/map/components/features/MapSettings.js +6 -7
  599. package/lib/es/components/map/components/features/MapZoom.js +6 -9
  600. package/lib/es/components/map/components/features/Route.d.ts +1 -1
  601. package/lib/es/components/map/components/features/Route.js +24 -5
  602. package/lib/es/components/map/components/features/basics/Circle.d.ts +0 -1
  603. package/lib/es/components/map/components/features/basics/Circle.js +3 -5
  604. package/lib/es/components/map/components/features/basics/InfoBubble.d.ts +0 -1
  605. package/lib/es/components/map/components/features/basics/InfoBubble.js +4 -6
  606. package/lib/es/components/map/components/features/basics/Marker.d.ts +2 -3
  607. package/lib/es/components/map/components/features/basics/Marker.js +2 -4
  608. package/lib/es/components/map/components/features/basics/Polygon.d.ts +0 -1
  609. package/lib/es/components/map/components/features/basics/Polygon.js +3 -5
  610. package/lib/es/components/map/components/features/basics/Polyline.d.ts +0 -1
  611. package/lib/es/components/map/components/features/basics/Polyline.js +18 -7
  612. package/lib/es/components/map/components/features/basics/TextMarker.js +2 -4
  613. package/lib/es/components/map/components/features/layers/MapLayerGroup.js +11 -7
  614. package/lib/es/components/map/components/features/layers/MapOverlayLayers.js +0 -1
  615. package/lib/es/components/map/components/features/layers/MarkerLayer.js +6 -5
  616. package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.d.ts +0 -1
  617. package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +2 -4
  618. package/lib/es/components/map/components/features/layers/clustering/SimpleClusterLayer.js +2 -3
  619. package/lib/es/components/map/components/features/layers/overlayLayers/IncidentsLayer.js +13 -16
  620. package/lib/es/components/map/components/features/layers/overlayLayers/Layer.d.ts +0 -1
  621. package/lib/es/components/map/components/features/layers/overlayLayers/Layer.js +4 -8
  622. package/lib/es/components/map/components/features/layers/overlayLayers/RoadRestrictionLayer.js +2 -5
  623. package/lib/es/components/map/components/features/layers/overlayLayers/TrafficLayer.js +4 -8
  624. package/lib/es/components/map/components/features/settings/MapSettingsItem.js +3 -3
  625. package/lib/es/components/map/components/features/settings/MapSettingsPanel.js +2 -4
  626. package/lib/es/components/map/components/features/settings/MapSettingsTile.js +9 -9
  627. package/lib/es/components/map/components/features/settings/ZoomButtons.js +1 -3
  628. package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +2 -4
  629. package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +2 -4
  630. package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +8 -12
  631. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +3 -3
  632. package/lib/es/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +2 -4
  633. package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -4
  634. package/lib/es/components/map/components/features/settings/buttons/MapLockMarkerButton.js +2 -4
  635. package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +0 -1
  636. package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +2 -3
  637. package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +0 -1
  638. package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.js +2 -3
  639. package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +0 -1
  640. package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +2 -3
  641. package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +0 -1
  642. package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.js +2 -3
  643. package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +2 -3
  644. package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +0 -1
  645. package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +2 -3
  646. package/lib/es/components/map/icons/MapIcon.js +35 -35
  647. package/lib/es/components/map/utils/clustering.d.ts +0 -1
  648. package/lib/es/components/map/utils/eventHandling.d.ts +0 -1
  649. package/lib/es/components/map/utils/eventHandling.js +1 -1
  650. package/lib/es/components/map/utils/mapTypes.d.ts +0 -2
  651. package/lib/es/components/map/utils/mapUi.d.ts +0 -1
  652. package/lib/es/components/map/utils/mapUtils.d.ts +0 -1
  653. package/lib/es/components/map/utils/mapUtils.js +5 -5
  654. package/lib/es/components/map/utils/positions.js +2 -2
  655. package/lib/es/components/map/utils/rendering.d.ts +0 -1
  656. package/lib/es/components/map/utils/rendering.js +8 -10
  657. package/lib/es/components/mapMarker/ClusterMapMarker.js +1 -2
  658. package/lib/es/components/mapMarker/SingleMapMarker.js +4 -7
  659. package/lib/es/components/menuItems/MenuItem.js +1 -1
  660. package/lib/es/components/menuItems/MenuItemList.js +2 -2
  661. package/lib/es/components/menuItems/MenuItems.js +1 -5
  662. package/lib/es/components/navigation/AppNavigationBar.d.ts +17 -0
  663. package/lib/es/components/navigation/AppNavigationBar.js +3 -3
  664. package/lib/es/components/noData/NoData.js +3 -5
  665. package/lib/es/components/notification/Notification.d.ts +50 -30
  666. package/lib/es/components/notification/Notification.js +99 -4
  667. package/lib/es/components/notification/NotificationsContainer.d.ts +2 -0
  668. package/lib/es/components/notification/NotificationsContainer.js +2 -4
  669. package/lib/es/components/numberControl/NumberControl.js +3 -3
  670. package/lib/es/components/numberInput/NumberInput.js +4 -4
  671. package/lib/es/components/onboarding/OnboardingTip.js +3 -5
  672. package/lib/es/components/overlay/OverlayTrigger.js +29 -14
  673. package/lib/es/components/page/Page.js +1 -3
  674. package/lib/es/components/pager/Pager.js +4 -4
  675. package/lib/es/components/popover/Popover.d.ts +5 -5
  676. package/lib/es/components/popover/Popover.js +4 -5
  677. package/lib/es/components/position/Position.js +1 -2
  678. package/lib/es/components/radiobutton/RadioButton.js +3 -3
  679. package/lib/es/components/releaseNotes/ReleaseNotes.js +3 -5
  680. package/lib/es/components/resizer/Resizer.js +2 -2
  681. package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.d.ts +1 -1
  682. package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +8 -11
  683. package/lib/es/components/rules/RuleConnector.js +2 -4
  684. package/lib/es/components/rules/RuleContainer.js +4 -5
  685. package/lib/es/components/rules/RulesWrapper.js +3 -9
  686. package/lib/es/components/saveableInput/SaveableInput.js +4 -5
  687. package/lib/es/components/selects/BaseSelectDropdown.js +8 -8
  688. package/lib/es/components/selects/ClearButton.js +1 -3
  689. package/lib/es/components/selects/DropdownHeader.js +1 -3
  690. package/lib/es/components/selects/Multiselect.js +7 -8
  691. package/lib/es/components/selects/MultiselectToggleCounter.js +1 -3
  692. package/lib/es/components/selects/MultiselectToggleFilter.js +0 -2
  693. package/lib/es/components/selects/MultiselectTogglePlaceholder.js +1 -3
  694. package/lib/es/components/selects/MultiselectToggleSelection.js +5 -7
  695. package/lib/es/components/selects/NoItemMessage.js +1 -3
  696. package/lib/es/components/selects/Select.js +5 -6
  697. package/lib/es/components/selects/SelectFilter.js +0 -2
  698. package/lib/es/components/selects/SelectedOption.js +5 -7
  699. package/lib/es/components/selects/WithFeedbackAndAddon.js +1 -3
  700. package/lib/es/components/sidebars/Sidebar.js +8 -9
  701. package/lib/es/components/sidebars/SidebarBackdrop.js +0 -1
  702. package/lib/es/components/sidebars/SidebarCloseButton.js +1 -2
  703. package/lib/es/components/sidebars/SidebarFooter.js +1 -3
  704. package/lib/es/components/sidebars/SidebarFullscreenToggle.js +2 -3
  705. package/lib/es/components/slider/RangeSlider.js +2 -2
  706. package/lib/es/components/slider/Slider.js +2 -2
  707. package/lib/es/components/smoothScrollbars/SmoothScrollbars.d.ts +1 -1
  708. package/lib/es/components/smoothScrollbars/SmoothScrollbars.js +7 -7
  709. package/lib/es/components/spinner/Spinner.js +6 -8
  710. package/lib/es/components/states/BaseStateProps.js +0 -2
  711. package/lib/es/components/states/CustomState.js +12 -14
  712. package/lib/es/components/states/EmptyState.js +2 -4
  713. package/lib/es/components/states/ErrorState.js +2 -4
  714. package/lib/es/components/states/ForbiddenState.js +2 -4
  715. package/lib/es/components/states/MaintenanceState.js +2 -4
  716. package/lib/es/components/states/NotBookedState.js +3 -5
  717. package/lib/es/components/states/NotFoundState.js +2 -4
  718. package/lib/es/components/states/StateButton.js +2 -4
  719. package/lib/es/components/states/StateIcon.js +0 -1
  720. package/lib/es/components/statsWidget/StatsWidget.d.ts +4 -4
  721. package/lib/es/components/statsWidget/StatsWidget.js +3 -5
  722. package/lib/es/components/statsWidget/StatsWidgetBody.js +2 -4
  723. package/lib/es/components/statsWidget/StatsWidgetFooter.js +2 -4
  724. package/lib/es/components/statsWidget/StatsWidgetHeader.js +2 -4
  725. package/lib/es/components/statsWidget/StatsWidgetNumber.js +2 -4
  726. package/lib/es/components/statsWidget/StatsWidgetSpacer.js +2 -3
  727. package/lib/es/components/statsWidget/StatsWidgets.js +2 -4
  728. package/lib/es/components/statusBar/StatusBar.js +3 -5
  729. package/lib/es/components/statusBar/StatusBarIcon.js +2 -5
  730. package/lib/es/components/statusBar/StatusBarLabel.js +2 -5
  731. package/lib/es/components/statusBar/StatusBarProgressBar.js +2 -3
  732. package/lib/es/components/steppedProgressBar/SteppedProgressBar.js +1 -1
  733. package/lib/es/components/switch/Switch.d.ts +4 -6
  734. package/lib/es/components/switch/Switch.js +2 -2
  735. package/lib/es/components/table/SortArrowDown.js +0 -1
  736. package/lib/es/components/table/SortArrowUp.js +0 -1
  737. package/lib/es/components/table/SortArrows.js +0 -1
  738. package/lib/es/components/table/TableCardsSorting.js +1 -1
  739. package/lib/es/components/table/TableSearch.js +2 -3
  740. package/lib/es/components/table/TableSettingsColumnButtons.js +3 -4
  741. package/lib/es/components/table/TableSettingsColumnDetails.js +1 -3
  742. package/lib/es/components/table/TableSettingsDialog.js +8 -6
  743. package/lib/es/components/table/TableSettingsDialog.types.d.ts +0 -1
  744. package/lib/es/components/table/TableSettingsDialogFooter.js +1 -3
  745. package/lib/es/components/table/TableSettingsListContainer.js +1 -1
  746. package/lib/es/components/table/TableSettingsListItem.js +2 -4
  747. package/lib/es/components/table/TableToolbar.js +1 -3
  748. package/lib/es/components/table/TableViewToggles.js +4 -4
  749. package/lib/es/components/tag/Tag.js +2 -2
  750. package/lib/es/components/tag/TagList.js +3 -5
  751. package/lib/es/components/tagManager/CustomSuggestionItem.js +1 -3
  752. package/lib/es/components/tagManager/TagManager.js +2 -2
  753. package/lib/es/components/tagManager/TagManagerItemList.js +3 -4
  754. package/lib/es/components/teaser/Teaser.js +11 -15
  755. package/lib/es/components/teaser/TeaserContainer.js +3 -3
  756. package/lib/es/components/timepicker/TimePicker.js +3 -3
  757. package/lib/es/components/tooltip/SimpleTooltip.js +2 -4
  758. package/lib/es/components/tooltip/Tooltip.js +2 -2
  759. package/lib/es/components/video/ResponsiveVideo.js +1 -2
  760. package/lib/es/components/virtualList/VirtualList.d.ts +59 -0
  761. package/lib/es/components/virtualList/VirtualList.js +145 -0
  762. package/lib/es/components/virtualList/VirtualListItemWrapper.d.ts +10 -0
  763. package/lib/es/components/virtualList/VirtualListItemWrapper.js +16 -0
  764. package/lib/es/components/virtualList/useVirtualListResizeObserver.d.ts +2 -0
  765. package/lib/es/components/virtualList/useVirtualListResizeObserver.js +46 -0
  766. package/lib/es/hooks/useClickOutside.d.ts +4 -3
  767. package/lib/es/hooks/useClickOutside.js +11 -5
  768. package/lib/es/hooks/useClipboard.js +1 -1
  769. package/lib/es/hooks/useDebugInfo.js +6 -3
  770. package/lib/es/hooks/useFocusTrap.js +7 -7
  771. package/lib/es/hooks/useFullscreen.js +8 -8
  772. package/lib/es/hooks/useHover.d.ts +2 -2
  773. package/lib/es/hooks/useInterval.js +1 -1
  774. package/lib/es/hooks/useKey.d.ts +1 -1
  775. package/lib/es/hooks/useMutationObserver.js +1 -1
  776. package/lib/es/hooks/usePostMessage.d.ts +1 -1
  777. package/lib/es/hooks/useResizeObserver.js +3 -4
  778. package/lib/es/hooks/useStorage.d.ts +2 -3
  779. package/lib/es/hooks/useTimeout.js +2 -2
  780. package/lib/es/hooks/useToggle.d.ts +13 -0
  781. package/lib/es/hooks/useToggle.js +33 -0
  782. package/lib/es/hooks/useUncontrollable.js +10 -8
  783. package/lib/es/styles/variables/colors/colors.json +7 -1
  784. package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.d.ts +7 -7
  785. package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +2 -2
  786. package/lib/es/useAfterMount.js +2 -4
  787. package/lib/es/useClipboard.js +2 -4
  788. package/lib/es/useDarkMode.js +2 -4
  789. package/lib/es/useDebugInfo.js +2 -4
  790. package/lib/es/useEffectOnce.js +2 -4
  791. package/lib/es/useElementSize.js +2 -4
  792. package/lib/es/useEsc.js +2 -4
  793. package/lib/es/useEvent.js +2 -4
  794. package/lib/es/useFocusTrap.js +2 -4
  795. package/lib/es/useFullscreen.js +2 -4
  796. package/lib/es/useHover.js +2 -4
  797. package/lib/es/useInterval.js +2 -4
  798. package/lib/es/useKey.js +2 -4
  799. package/lib/es/useToggle.d.ts +2 -0
  800. package/lib/es/useToggle.js +7 -0
  801. package/lib/es/utils/colorScheme.js +2 -3
  802. package/lib/es/utils/darkModeCDN.js +1 -1
  803. package/lib/es/utils/deviceUtils.js +5 -6
  804. package/lib/es/utils/init/checkForReleaseVersion.d.ts +1 -0
  805. package/lib/es/utils/init/checkForReleaseVersion.js +21 -0
  806. package/lib/es/utils/init/doNotUseTailwind.d.ts +1 -0
  807. package/lib/es/utils/init/doNotUseTailwind.js +57 -0
  808. package/lib/es/utils/init/initCSS.js +1 -2
  809. package/lib/es/utils/init/initDocumentBootstrapping.js +23 -27
  810. package/lib/es/utils/init/styledLogs.d.ts +3 -0
  811. package/lib/es/utils/init/styledLogs.js +7 -0
  812. package/lib/es/utils/init/usedUikitVersion.d.ts +1 -0
  813. package/lib/es/utils/init/usedUikitVersion.js +11 -0
  814. package/lib/es/utils/init/weAreHiring.d.ts +1 -0
  815. package/lib/es/utils/init/weAreHiring.js +10 -0
  816. package/lib/es/utils/mergeRefs.d.ts +2 -2
  817. package/lib/es/utils/mergeRefs.js +0 -2
  818. package/lib/es/utils/routeUtils.d.ts +1 -1
  819. package/lib/es/utils/routeUtils.js +3 -3
  820. package/lib/es/utils/urlFeatureToggles.d.ts +0 -1
  821. package/lib/es/utils/urlFeatureToggles.js +1 -2
  822. package/lib/es/version.json +1 -1
  823. package/package.json +39 -39
  824. package/styles/variables/colors/colors.json +7 -1
  825. package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.d.ts +7 -7
  826. package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +2 -3
  827. package/useToggle.d.ts +2 -0
  828. package/useToggle.js +2 -0
  829. package/utils/colorScheme.js +2 -3
  830. package/utils/darkModeCDN.js +1 -1
  831. package/utils/deviceUtils.js +5 -6
  832. package/utils/init/checkForReleaseVersion.d.ts +1 -0
  833. package/utils/init/checkForReleaseVersion.js +17 -0
  834. package/utils/init/doNotUseTailwind.d.ts +1 -0
  835. package/utils/init/doNotUseTailwind.js +53 -0
  836. package/utils/init/initCSS.js +1 -2
  837. package/utils/init/initDocumentBootstrapping.js +24 -28
  838. package/utils/init/styledLogs.d.ts +3 -0
  839. package/utils/init/styledLogs.js +3 -0
  840. package/utils/init/usedUikitVersion.d.ts +1 -0
  841. package/utils/init/usedUikitVersion.js +7 -0
  842. package/utils/init/weAreHiring.d.ts +1 -0
  843. package/utils/init/weAreHiring.js +6 -0
  844. package/utils/mergeRefs.d.ts +2 -2
  845. package/utils/mergeRefs.js +0 -2
  846. package/utils/routeUtils.d.ts +1 -1
  847. package/utils/routeUtils.js +3 -3
  848. package/utils/urlFeatureToggles.d.ts +0 -1
  849. package/utils/urlFeatureToggles.js +1 -2
  850. package/version.json +1 -1
  851. package/lib/es/Onboarding.d.ts +0 -2
@@ -1,12 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
2
  import classNames from 'classnames';
5
3
  import ListMenuHeader from './ListMenuHeader';
6
4
  const ListMenuGroup = ({ menuGroup, className }) => {
7
5
  if (!menuGroup.navItems.length) {
8
6
  return null;
9
7
  }
10
- return (_jsxs("ul", Object.assign({ className: `ListMenuGroup ${className}` }, { children: [_jsx(ListMenuHeader, Object.assign({}, menuGroup)), menuGroup.navItems.map(item => (_jsx("li", Object.assign({ className: classNames({ disabled: item.disabled, subitem: item.isSubItem }) }, { children: item.item }), item.key)))] })));
8
+ return (_jsxs("ul", { className: `ListMenuGroup ${className}`, children: [_jsx(ListMenuHeader, { ...menuGroup }), menuGroup.navItems.map(item => (_jsx("li", { className: classNames({ disabled: item.disabled, subitem: item.isSubItem }), children: item.item }, item.key)))] }));
11
9
  };
12
10
  export default ListMenuGroup;
@@ -1,8 +1,10 @@
1
1
  import { type ReactNode } from 'react';
2
2
  type ListMenuHeaderProps = {
3
3
  group?: string | ReactNode;
4
+ badge?: string | ReactNode;
5
+ badgeType?: 'muted' | 'success' | 'info' | 'warning' | 'danger';
4
6
  groupNavItem?: string | ReactNode;
5
7
  className?: string;
6
8
  };
7
- declare const ListMenuHeader: ({ group, groupNavItem, className }: ListMenuHeaderProps) => import("react/jsx-runtime").JSX.Element | null;
9
+ declare const ListMenuHeader: ({ group, badge, badgeType, groupNavItem, className }: ListMenuHeaderProps) => import("react/jsx-runtime").JSX.Element | null;
8
10
  export default ListMenuHeader;
@@ -1,10 +1,8 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
- const ListMenuHeader = ({ group, groupNavItem, className = '' }) => {
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const ListMenuHeader = ({ group, badge, badgeType = 'muted', groupNavItem, className = '' }) => {
5
3
  if (!group && !groupNavItem) {
6
4
  return null;
7
5
  }
8
- return (_jsx("li", Object.assign({ className: 'ListMenuHeader' }, { children: groupNavItem ? groupNavItem : _jsx("span", Object.assign({ className: className }, { children: group })) })));
6
+ return (_jsxs("li", { className: 'ListMenuHeader', children: [groupNavItem ? groupNavItem : _jsx("span", { className: className, children: group }), badge && _jsx("span", { className: `badge badge-${badgeType}`, children: badge })] }));
9
7
  };
10
8
  export default ListMenuHeader;
@@ -1,13 +1,10 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- // @ts-ignore-next-line importsNotUsedAsValues
4
- import 'react';
5
2
  import classNames from 'classnames';
6
3
  import { LoadMoreProgress } from './LoadMoreProgress';
7
4
  export const LoadMoreButton = (props) => {
8
- const { loaded = 0, total = 100, onLoadMore = () => { }, loadMoreMessage = '', noMoreMessage = '', isInteractive = true, progressBarStyle, className = '' } = props, remainingProps = __rest(props, ["loaded", "total", "onLoadMore", "loadMoreMessage", "noMoreMessage", "isInteractive", "progressBarStyle", "className"]);
5
+ const { loaded = 0, total = 100, onLoadMore = () => { }, loadMoreMessage = '', noMoreMessage = '', isInteractive = true, progressBarStyle, className = '', ...remainingProps } = props;
9
6
  const wrapperClassNames = classNames('LoadMoreButton', 'align-items-center', 'display-flex', 'justify-content-center', 'margin-top-25', 'margin-bottom-25', 'non-printable', className);
10
7
  const hasMoreToLoad = loaded > 0 && total > 0 && loaded < total;
11
- return (_jsx("div", Object.assign({}, remainingProps, { className: wrapperClassNames }, { children: _jsxs("div", Object.assign({ className: 'min-width-150' }, { children: [_jsx(LoadMoreProgress, { loaded: loaded, total: total, progressBarStyle: progressBarStyle }), _jsxs("div", Object.assign({ className: 'display-flex justify-content-center' }, { children: [hasMoreToLoad && isInteractive && (_jsxs("button", Object.assign({ className: 'btn btn-link padding-right-20 margin-top--5', type: 'button', onClick: onLoadMore }, { children: [_jsx("span", { className: 'rioglyph rioglyph-arrow-down' }), loadMoreMessage] }))), hasMoreToLoad && !isInteractive && (_jsx("span", Object.assign({ className: 'padding-top-4 padding-bottom-10' }, { children: loadMoreMessage }))), !hasMoreToLoad && _jsx("span", Object.assign({ className: 'padding-top-4 padding-bottom-10' }, { children: noMoreMessage }))] }))] })) })));
8
+ return (_jsx("div", { ...remainingProps, className: wrapperClassNames, children: _jsxs("div", { className: 'min-width-150', children: [_jsx(LoadMoreProgress, { loaded: loaded, total: total, progressBarStyle: progressBarStyle }), _jsxs("div", { className: 'display-flex justify-content-center', children: [hasMoreToLoad && isInteractive && (_jsxs("button", { className: 'btn btn-link padding-right-20 margin-top--5', type: 'button', onClick: onLoadMore, children: [_jsx("span", { className: 'rioglyph rioglyph-arrow-down' }), loadMoreMessage] })), hasMoreToLoad && !isInteractive && (_jsx("span", { className: 'padding-top-4 padding-bottom-10', children: loadMoreMessage })), !hasMoreToLoad && _jsx("span", { className: 'padding-top-4 padding-bottom-10', children: noMoreMessage })] })] }) }));
12
9
  };
13
10
  export default LoadMoreButton;
@@ -14,6 +14,6 @@ export const LoadMoreProgress = ({ loaded = 0, total = 0, progressBarStyle = STY
14
14
  const progressBarClassName = classNames('progress-bar', progressBarStyle === STYLE.GRAY &&
15
15
  width !== '100%' &&
16
16
  'border border-right-only border-color-white border-width-2');
17
- return (_jsxs(React.Fragment, { children: [_jsxs("div", Object.assign({ className: 'text-center margin-bottom-3' }, { children: [_jsx("span", Object.assign({ className: 'text-medium' }, { children: loaded })), _jsx("span", Object.assign({ className: 'margin-left-5 margin-right-5' }, { children: "/" })), _jsx("span", Object.assign({ className: 'text-medium' }, { children: total }))] })), _jsx("div", Object.assign({ className: progressClassName }, { children: _jsx("div", { className: progressBarClassName, style: { width } }) }))] }));
17
+ return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: 'text-center margin-bottom-3', children: [_jsx("span", { className: 'text-medium', children: loaded }), _jsx("span", { className: 'margin-left-5 margin-right-5', children: "/" }), _jsx("span", { className: 'text-medium', children: total })] }), _jsx("div", { className: progressClassName, children: _jsx("div", { className: progressBarClassName, style: { width } }) })] }));
18
18
  };
19
19
  export default LoadMoreProgress;
@@ -28,7 +28,7 @@ const Map = (props) => {
28
28
  const language = lang.split('-')[0];
29
29
  useEffect(() => {
30
30
  let allMapObjects = [];
31
- if (api === null || api === void 0 ? void 0 : api.map) {
31
+ if (api?.map) {
32
32
  allMapObjects = api.map.getObjects();
33
33
  console.debug('re-initialize here map');
34
34
  }
@@ -160,12 +160,10 @@ const Map = (props) => {
160
160
  // due to the nature of the AssetTree with it's hundreds DOM nodes, applying the CSS selectors
161
161
  // takes time.
162
162
  const handleMapInteractionStart = () => {
163
- var _a;
164
- (_a = document.querySelector('.AssetTree')) === null || _a === void 0 ? void 0 : _a.classList.add('pointer-events-none');
163
+ document.querySelector('.AssetTree')?.classList.add('pointer-events-none');
165
164
  };
166
165
  const handleMapInteractionEnd = () => {
167
- var _a;
168
- (_a = document.querySelector('.AssetTree')) === null || _a === void 0 ? void 0 : _a.classList.remove('pointer-events-none');
166
+ document.querySelector('.AssetTree')?.classList.remove('pointer-events-none');
169
167
  };
170
168
  const style = {};
171
169
  if (height) {
@@ -175,7 +173,7 @@ const Map = (props) => {
175
173
  style.width = width;
176
174
  }
177
175
  const autoHeightClass = isEmpty(style) ? 'height-100pct' : '';
178
- return (_jsx("div", Object.assign({ className: `Map position-relative map-type-${baseLayer.toLowerCase()} ${autoHeightClass}`, style: style, ref: mapRef, onTouchStart: handleMapInteractionStart, onTouchEnd: handleMapInteractionEnd, onMouseEnter: handleMapInteractionStart, onMouseOut: handleMapInteractionEnd, onBlur: handleMapInteractionEnd }, { children: isMapInitialized && api && (_jsxs(MapContext.Provider, Object.assign({ value: {
176
+ return (_jsx("div", { className: `Map position-relative map-type-${baseLayer.toLowerCase()} ${autoHeightClass}`, style: style, ref: mapRef, onTouchStart: handleMapInteractionStart, onTouchEnd: handleMapInteractionEnd, onMouseEnter: handleMapInteractionStart, onMouseOut: handleMapInteractionEnd, onBlur: handleMapInteractionEnd, children: isMapInitialized && api && (_jsxs(MapContext.Provider, { value: {
179
177
  api,
180
178
  language,
181
179
  enableWebGL,
@@ -190,7 +188,7 @@ const Map = (props) => {
190
188
  mapSettingsTooltip,
191
189
  onIncidentsChange,
192
190
  devicePixelRatio,
193
- } }, { children: [_jsx(MapPosition, { api: api, boundingBox: boundingBox, center: center, zoomAnimation: zoomAnimation }), _jsx(MapSize, { api: api }), _jsx(MapZoom, { zoom: zoom, hideZoomButtons: disableBehavior, onZoomIn: onZoomIn, onZoomOut: onZoomOut, zoomAnimation: zoomAnimation }), mapSettings && mapSettings, _jsx(MapOverlayLayers, { layers: activeLayers }), _jsx(MapElements, Object.assign({ api: api }, { children: children }))] }))) })));
191
+ }, children: [_jsx(MapPosition, { api: api, boundingBox: boundingBox, center: center, zoomAnimation: zoomAnimation }), _jsx(MapSize, { api: api }), _jsx(MapZoom, { zoom: zoom, hideZoomButtons: disableBehavior, onZoomIn: onZoomIn, onZoomOut: onZoomOut, zoomAnimation: zoomAnimation }), mapSettings && mapSettings, _jsx(MapOverlayLayers, { layers: activeLayers }), _jsx(MapElements, { api: api, children: children })] })) }));
194
192
  };
195
193
  Map.TYPE_DEFAULT = MAP_TYPE_DEFAULT;
196
194
  Map.TYPE_FLEET_STYLE = MAP_TYPE_FLEET_STYLE;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { MapApi, MapIncidents, MapLayer, MapType } from '../utils/mapTypes';
3
2
  export type MapContextType = {
4
3
  api: MapApi;
@@ -15,6 +15,6 @@ const MapElements = (props) => {
15
15
  if (!children) {
16
16
  return null;
17
17
  }
18
- return (_jsx("div", Object.assign({ className: 'MapElements' }, { children: isFunction(children) ? children(api) : enrichChildrenWithApi(children, api) })));
18
+ return (_jsx("div", { className: 'MapElements', children: isFunction(children) ? children(api) : enrichChildrenWithApi(children, api) }));
19
19
  };
20
20
  export default MapElements;
@@ -3,22 +3,20 @@ const MapPosition = (props) => {
3
3
  const { api, boundingBox, center, zoomAnimation = false } = props;
4
4
  // Update BoundingBox from outside
5
5
  useEffect(() => {
6
- var _a;
7
6
  if (api && boundingBox) {
8
7
  const { top, left, bottom, right } = boundingBox;
9
- (_a = api.map) === null || _a === void 0 ? void 0 : _a.getViewModel().setLookAtData({ bounds: new H.geo.Rect(top, left, bottom, right) }, zoomAnimation);
8
+ api.map?.getViewModel().setLookAtData({ bounds: new H.geo.Rect(top, left, bottom, right) }, zoomAnimation);
10
9
  }
11
10
  }, [boundingBox]);
12
11
  // Update Lat & Lng from outside if value is different
13
12
  useEffect(() => {
14
- var _a, _b;
15
13
  if (!(api && center)) {
16
14
  return;
17
15
  }
18
- const currentMapCenter = (_a = api.utils) === null || _a === void 0 ? void 0 : _a.getCenter();
16
+ const currentMapCenter = api.utils?.getCenter();
19
17
  if (currentMapCenter) {
20
18
  if (currentMapCenter.lat !== center.lat || currentMapCenter.lng !== center.lng) {
21
- (_b = api.utils) === null || _b === void 0 ? void 0 : _b.setCenter(center, zoomAnimation);
19
+ api.utils?.setCenter(center, zoomAnimation);
22
20
  }
23
21
  }
24
22
  }, [center]);
@@ -4,14 +4,14 @@ import useEvent from '../../../useEvent';
4
4
  const RESIZE_THROTTLE = 1100; // 100 more than the ApplicationLayout handler
5
5
  const MapSize = ({ api }) => {
6
6
  useEffect(() => {
7
- const resizeMap = () => { var _a; return (_a = api === null || api === void 0 ? void 0 : api.map) === null || _a === void 0 ? void 0 : _a.getViewPort().resize(); };
7
+ const resizeMap = () => api?.map?.getViewPort().resize();
8
8
  window.addEventListener('resize', resizeMap, { passive: true });
9
9
  return () => {
10
10
  window.removeEventListener('resize', resizeMap);
11
11
  };
12
- }, [api === null || api === void 0 ? void 0 : api.map]);
12
+ }, [api?.map]);
13
13
  // Add a orientationchange listener to make sure that the map occupies the whole container on mobile
14
- useEvent('orientationchange', throttle(RESIZE_THROTTLE, () => { var _a; return (_a = api === null || api === void 0 ? void 0 : api.map) === null || _a === void 0 ? void 0 : _a.getViewPort().resize(); }), { passive: true }, window);
14
+ useEvent('orientationchange', throttle(RESIZE_THROTTLE, () => api?.map?.getViewPort().resize()), { passive: true }, window);
15
15
  return null;
16
16
  };
17
17
  export default MapSize;
@@ -1,4 +1,3 @@
1
- /// <reference types="heremaps" />
2
1
  import type { MapType } from '../utils/mapTypes';
3
2
  export declare const MAP_TYPE_DEFAULT: MapType;
4
3
  export declare const MAP_TYPE_FLEET_STYLE: MapType;
@@ -13,6 +12,6 @@ export declare const TILE_SIZE = 256;
13
12
  export declare const TILE_TYPE = "maptile";
14
13
  export declare const NO_CREDENTIALS_ERROR_MESSAGE = "Cannot instantiate the Map. Missing credentials property.";
15
14
  export declare const ENGINE_TYPE_HARP: any;
16
- export declare const ENGINE_TYPE_P2D: H.Map.EngineType;
15
+ export declare const ENGINE_TYPE_P2D = H.Map.EngineType.P2D;
17
16
  export declare const DEFAULT_TILE_SIZE = 512;
18
17
  export declare const DEFAULT_RASTER_LAYER_FORMAT = "png";
@@ -1,5 +1,3 @@
1
- /// <reference types="heremaps" />
2
- /// <reference types="react" />
3
1
  import type { ContextMenuItemProps as ContextMenuItem } from './ContextMenuItem';
4
2
  import type { Position } from '../../utils/mapTypes';
5
3
  export declare const isContextMenuEvent: (event: H.mapevents.ContextMenuEvent) => boolean;
@@ -71,8 +71,7 @@ export const isContextMenuEvent = (event) => event.type === 'contextmenu';
71
71
  // source_layer: "buildings", "landuse", "pois", "roads", "water", "places"
72
72
  // source_name: 'H-107';
73
73
  export const isMapTarget = (event, map) => {
74
- var _a, _b, _c;
75
- return event.target === map || ((_c = (_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.source_name) === null || _c === void 0 ? void 0 : _c.startsWith('H-'));
74
+ return event.target === map || event.target?.data?.source_name?.startsWith('H-');
76
75
  };
77
76
  const ContextMenu = (props) => {
78
77
  const { onOpen = noop, menuItems, contextMenuEvent, targetPosition } = props;
@@ -85,7 +84,7 @@ const ContextMenu = (props) => {
85
84
  useLayoutEffect(() => {
86
85
  if (menuItems && hereMap) {
87
86
  // @ts-ignore next-line FIXME: event.items is defined in the API but the imported types are wrong
88
- const hasNoEventItems = isEmpty(contextMenuEvent === null || contextMenuEvent === void 0 ? void 0 : contextMenuEvent.items);
87
+ const hasNoEventItems = isEmpty(contextMenuEvent?.items);
89
88
  // Add the context menu item to the target event and not to the map event itself
90
89
  // as every element on the map need to have context menu items added to the event they
91
90
  // are triggered from
@@ -113,7 +112,7 @@ const ContextMenu = (props) => {
113
112
  // it is a number
114
113
  const viewportX = event.viewportX;
115
114
  // Get geo coordinates from the screen coordinates.
116
- const coord = targetPositionRef.current || (hereMap === null || hereMap === void 0 ? void 0 : hereMap.screenToGeo(viewportX, event.viewportY));
115
+ const coord = targetPositionRef.current || hereMap?.screenToGeo(viewportX, event.viewportY);
117
116
  if (coord) {
118
117
  onOpen(coord);
119
118
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="heremaps" />
2
1
  import type { Position } from '../../utils/mapTypes';
3
2
  export type ContextMenuItemProps = {
4
3
  label: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type MapSettingsProps = {
3
2
  options?: JSX.Element[];
4
3
  className?: string;
@@ -13,32 +13,31 @@ const MapSettings = (props) => {
13
13
  const { options, className = '' } = props;
14
14
  const { baseLayer, activeLayers, showCluster, onMapTypeChange, onMapLayerChange, onShowClusterChange } = useMapContext();
15
15
  const mapSettingsClasses = classNames('MapSettingsWrapper', className);
16
- return (_jsx("div", Object.assign({ className: mapSettingsClasses }, { children: map(option => {
17
- var _a, _b, _c, _d;
16
+ return (_jsx("div", { className: mapSettingsClasses, children: map(option => {
18
17
  if (isMapTypeSettings(option)) {
19
18
  return React.cloneElement(option, {
20
- key: (_a = option === null || option === void 0 ? void 0 : option.key) !== null && _a !== void 0 ? _a : crypto.randomUUID(),
19
+ key: option?.key ?? crypto.randomUUID(),
21
20
  mapType: baseLayer,
22
21
  onMapTypeChange,
23
22
  });
24
23
  }
25
24
  if (isMapLayerSettings(option)) {
26
25
  return React.cloneElement(option, {
27
- key: (_b = option === null || option === void 0 ? void 0 : option.key) !== null && _b !== void 0 ? _b : crypto.randomUUID(),
26
+ key: option?.key ?? crypto.randomUUID(),
28
27
  activeBuiltinLayers: activeLayers,
29
28
  onMapLayerChange,
30
29
  });
31
30
  }
32
31
  if (isMapClusterSettings(option)) {
33
32
  return React.cloneElement(option, {
34
- key: (_c = option === null || option === void 0 ? void 0 : option.key) !== null && _c !== void 0 ? _c : crypto.randomUUID(),
33
+ key: option?.key ?? crypto.randomUUID(),
35
34
  showCluster,
36
35
  onShowClusterChange,
37
36
  });
38
37
  }
39
38
  return React.cloneElement(option, {
40
- key: (_d = option === null || option === void 0 ? void 0 : option.key) !== null && _d !== void 0 ? _d : `MapSettingsOption_${crypto.randomUUID()}`,
39
+ key: option?.key ?? `MapSettingsOption_${crypto.randomUUID()}`,
41
40
  });
42
- }, options) })));
41
+ }, options) }));
43
42
  };
44
43
  export default MapSettings;
@@ -7,28 +7,25 @@ const MapZoom = (props) => {
7
7
  const { api } = useMapContext();
8
8
  // Update Zoom from outside if value is different
9
9
  useEffect(() => {
10
- var _a, _b;
11
10
  if (!api) {
12
11
  return;
13
12
  }
14
- const currentMapZoom = (_a = api.utils) === null || _a === void 0 ? void 0 : _a.getZoom();
13
+ const currentMapZoom = api.utils?.getZoom();
15
14
  if (zoom && currentMapZoom !== zoom) {
16
- (_b = api.utils) === null || _b === void 0 ? void 0 : _b.setZoom(zoom, zoomAnimation);
15
+ api.utils?.setZoom(zoom, zoomAnimation);
17
16
  }
18
17
  }, [zoom]);
19
18
  const handleZoomIn = () => {
20
- var _a, _b, _c;
21
- const currentZoom = (_b = (_a = api === null || api === void 0 ? void 0 : api.utils) === null || _a === void 0 ? void 0 : _a.getZoom()) !== null && _b !== void 0 ? _b : 0;
19
+ const currentZoom = api?.utils?.getZoom() ?? 0;
22
20
  const newZoom = currentZoom + 1;
23
21
  onZoomIn(newZoom);
24
- (_c = api === null || api === void 0 ? void 0 : api.utils) === null || _c === void 0 ? void 0 : _c.setZoom(newZoom, zoomAnimation);
22
+ api?.utils?.setZoom(newZoom, zoomAnimation);
25
23
  };
26
24
  const handleZoomOut = () => {
27
- var _a, _b, _c;
28
- const currentZoom = (_b = (_a = api === null || api === void 0 ? void 0 : api.utils) === null || _a === void 0 ? void 0 : _a.getZoom()) !== null && _b !== void 0 ? _b : 0;
25
+ const currentZoom = api?.utils?.getZoom() ?? 0;
29
26
  const newZoom = currentZoom - 1;
30
27
  onZoomOut(newZoom);
31
- (_c = api === null || api === void 0 ? void 0 : api.utils) === null || _c === void 0 ? void 0 : _c.setZoom(newZoom, zoomAnimation);
28
+ api?.utils?.setZoom(newZoom, zoomAnimation);
32
29
  };
33
30
  if (hideZoomButtons) {
34
31
  return null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type ArrowStyle } from './basics/Polyline';
3
2
  import type { Position } from '../../utils/mapTypes';
4
3
  import type { EventListenerMap } from '../../utils/eventHandling';
@@ -13,6 +12,7 @@ export declare const ROUTE_COLOR_DANGER = "#e22837";
13
12
  export declare const ROUTE_COLOR_WARNING = "#ff8e3c";
14
13
  export declare const ROUTE_COLOR_SUCCESS = "#5cb85c";
15
14
  export declare const ROUTE_COLOR_WHITE = "rgba(255, 255, 255, 1)";
15
+ export declare const ARROW_COLOR_WARNING = "rgba(167, 83, 25, 1)";
16
16
  export type RouteStyle = {
17
17
  width?: number;
18
18
  color?: string;
@@ -18,6 +18,7 @@ export const ROUTE_COLOR_DANGER = '#e22837';
18
18
  export const ROUTE_COLOR_WARNING = '#ff8e3c';
19
19
  export const ROUTE_COLOR_SUCCESS = '#5cb85c';
20
20
  export const ROUTE_COLOR_WHITE = 'rgba(255, 255, 255, 1)';
21
+ export const ARROW_COLOR_WARNING = 'rgba(167, 83, 25, 1)';
21
22
  const DEFAULT_WIDTH = 5;
22
23
  const DEFAULT_BORDER_WIDTH = 2;
23
24
  const defaultStyle = {
@@ -27,7 +28,10 @@ const defaultStyle = {
27
28
  borderColor: DEFAULT_BORDER_STROKE_COLOR,
28
29
  isBorderIncludedInWidth: false,
29
30
  };
30
- const alternativeRouteStyle = Object.assign(Object.assign({}, defaultStyle), { color: DEFAULT_LINE_STROKE_COLOR_ALTERNATIVE });
31
+ const alternativeRouteStyle = {
32
+ ...defaultStyle,
33
+ color: DEFAULT_LINE_STROKE_COLOR_ALTERNATIVE,
34
+ };
31
35
  const Route = (props) => {
32
36
  const { style, isReduced = false, isRouteAlternative = false, positions, startIcon, middleIcon, endIcon, arrowStyle = {}, hasArrows = true, markers = [], customData, eventListenerMap, } = props;
33
37
  const [lineString, setLineString] = useState();
@@ -58,14 +62,29 @@ const Route = (props) => {
58
62
  setLineString(lineStringData);
59
63
  };
60
64
  const updateStyle = (updatedStyle, isReducedStyle, isRouteAlternativeStyle) => {
61
- const mergedStyle = Object.assign(Object.assign({}, (isRouteAlternativeStyle ? alternativeRouteStyle : defaultStyle)), updatedStyle);
65
+ const mergedStyle = {
66
+ ...(isRouteAlternativeStyle ? alternativeRouteStyle : defaultStyle),
67
+ ...updatedStyle,
68
+ };
62
69
  const { color, width = DEFAULT_WIDTH, borderColor, borderWidth: mergedBorderWidth = 0, isBorderIncludedInWidth, lineDash, } = mergedStyle;
63
70
  setBorderWidth(isReducedStyle ? 0 : mergedBorderWidth);
64
71
  if (isBorderIncludedInWidth && mergedBorderWidth >= width) {
65
72
  throw new MapException(TO_LESS_LINE_WIDTH_EXCEPTION_MSG);
66
73
  }
67
- setRouteStyle(new H.map.SpatialStyle(Object.assign({ strokeColor: isReducedStyle ? DEFAULT_LINE_STROKE_COLOR_REDUCED : color, lineWidth: isReducedStyle ? mergedBorderWidth + width : width, lineCap: 'round', lineJoin: 'bevel' }, (lineDash && lineDash))));
68
- setBorderStyle(new H.map.SpatialStyle(Object.assign({ strokeColor: isReduced ? DEFAULT_BORDER_STROKE_COLOR_REDUCED : borderColor, lineWidth: mergedBorderWidth + width, lineCap: 'round', lineJoin: 'bevel' }, (lineDash && lineDash))));
74
+ setRouteStyle(new H.map.SpatialStyle({
75
+ strokeColor: isReducedStyle ? DEFAULT_LINE_STROKE_COLOR_REDUCED : color,
76
+ lineWidth: isReducedStyle ? mergedBorderWidth + width : width,
77
+ lineCap: 'round',
78
+ lineJoin: 'bevel',
79
+ ...(lineDash && { lineDash }),
80
+ }));
81
+ setBorderStyle(new H.map.SpatialStyle({
82
+ strokeColor: isReduced ? DEFAULT_BORDER_STROKE_COLOR_REDUCED : borderColor,
83
+ lineWidth: mergedBorderWidth + width,
84
+ lineCap: 'round',
85
+ lineJoin: 'bevel',
86
+ ...(lineDash && { lineDash }),
87
+ }));
69
88
  };
70
89
  if (!lineString) {
71
90
  return null;
@@ -1,4 +1,3 @@
1
- /// <reference types="heremaps" />
2
1
  import type { Position } from '../../../utils/mapTypes';
3
2
  import type { EventListenerMap } from '../../../utils/eventHandling';
4
3
  export type CirclePosition = Position & Record<string, any>;
@@ -9,14 +9,12 @@ const Circle = (props) => {
9
9
  // The map instance may change due to rendering changes like webgl vs raster.
10
10
  // In this case, add the circle to the new map instance otherwise it will be gone.
11
11
  useEffect(() => {
12
- var _a;
13
12
  const newCircle = new H.map.Circle(position, radius, { style, precision });
14
13
  setCircle(newCircle);
15
- (_a = api.map) === null || _a === void 0 ? void 0 : _a.addObject(newCircle);
14
+ api.map?.addObject(newCircle);
16
15
  return () => {
17
- var _a, _b;
18
- if ((_a = api.map) === null || _a === void 0 ? void 0 : _a.getObjects().includes(newCircle)) {
19
- (_b = api.map) === null || _b === void 0 ? void 0 : _b.removeObject(newCircle);
16
+ if (api.map?.getObjects().includes(newCircle)) {
17
+ api.map?.removeObject(newCircle);
20
18
  }
21
19
  newCircle.dispose();
22
20
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { MapApi, Position } from '../../../utils/mapTypes';
3
2
  export type InfoBubbleProps = {
4
3
  api: MapApi | undefined;
@@ -13,13 +13,12 @@ const InfoBubble = (props) => {
13
13
  }
14
14
  };
15
15
  useEffect(() => {
16
- var _a, _b;
17
16
  let infoBubble;
18
- if ((api === null || api === void 0 ? void 0 : api.map) && (api === null || api === void 0 ? void 0 : api.ui)) {
17
+ if (api?.map && api?.ui) {
19
18
  // Fix the position so the info bubble doesn't overlap the marker
20
19
  const screenPosition = api.map.geoToScreen(position);
21
- screenPosition.x += (_a = markerOffset === null || markerOffset === void 0 ? void 0 : markerOffset.x) !== null && _a !== void 0 ? _a : DEFAULT_OFFSET_X;
22
- screenPosition.y += (_b = markerOffset === null || markerOffset === void 0 ? void 0 : markerOffset.y) !== null && _b !== void 0 ? _b : DEFAULT_OFFSET_Y;
20
+ screenPosition.x += markerOffset?.x ?? DEFAULT_OFFSET_X;
21
+ screenPosition.y += markerOffset?.y ?? DEFAULT_OFFSET_Y;
23
22
  infoBubble = new H.ui.InfoBubble(api.map.screenToGeo(screenPosition.x, screenPosition.y), {
24
23
  onStateChange: handleStateChange,
25
24
  content: React.isValidElement(content)
@@ -29,10 +28,9 @@ const InfoBubble = (props) => {
29
28
  api.ui.addBubble(infoBubble);
30
29
  }
31
30
  return () => {
32
- var _a;
33
31
  if (infoBubble) {
34
32
  try {
35
- (_a = api === null || api === void 0 ? void 0 : api.ui) === null || _a === void 0 ? void 0 : _a.removeBubble(infoBubble);
33
+ api?.ui?.removeBubble(infoBubble);
36
34
  }
37
35
  catch (error) {
38
36
  // silence error that is cased when switching map types and the bubble cannot be removed
@@ -1,11 +1,10 @@
1
- /// <reference types="heremaps" />
2
1
  import React from 'react';
3
2
  import { type EventListenerMap } from '../../../utils/eventHandling';
4
3
  import type { Position } from '../../../utils/mapTypes';
5
4
  export type MarkerIcon = string | React.ReactElement;
6
- export declare const isHMapIcon: (icon: MarkerIcon | H.map.DomIcon | undefined) => boolean;
5
+ export declare const isHMapIcon: (icon: MarkerIcon | H.map.DomIcon | undefined) => icon is H.map.Icon;
7
6
  export declare const isDomMakerNeeded: (icon: MarkerIcon | H.map.DomIcon | undefined) => boolean;
8
- export declare const getOrCreateIcon: (icon: MarkerIcon | H.map.DomIcon | undefined) => H.map.DomIcon;
7
+ export declare const getOrCreateIcon: (icon: MarkerIcon | H.map.DomIcon | undefined) => H.map.DomIcon | H.map.Icon;
9
8
  export type MarkerProps = {
10
9
  position: Position;
11
10
  icon?: MarkerIcon;
@@ -20,7 +20,6 @@ export const getOrCreateIcon = (icon) => {
20
20
  return new H.map.DomIcon(renderedIcon);
21
21
  };
22
22
  const setupMarker = (props, api) => {
23
- var _a;
24
23
  const { position, customData, icon, draggable, eventListenerMap } = props;
25
24
  const MarkerConstructor = isDomMakerNeeded(icon) ? H.map.DomMarker : H.map.Marker;
26
25
  const marker = new MarkerConstructor(position, {
@@ -28,14 +27,13 @@ const setupMarker = (props, api) => {
28
27
  });
29
28
  marker.setData(customData);
30
29
  marker.draggable = !!draggable;
31
- (_a = api.map) === null || _a === void 0 ? void 0 : _a.addObject(marker);
30
+ api.map?.addObject(marker);
32
31
  addEventListenerMap(marker, eventListenerMap, api.map);
33
32
  return marker;
34
33
  };
35
34
  const destroyMarker = (marker, api) => {
36
- var _a;
37
35
  removeEventListenerMap(marker);
38
- if ((_a = api.map) === null || _a === void 0 ? void 0 : _a.getObjects().includes(marker)) {
36
+ if (api.map?.getObjects().includes(marker)) {
39
37
  api.map.removeObject(marker);
40
38
  }
41
39
  marker.dispose();
@@ -1,4 +1,3 @@
1
- /// <reference types="heremaps" />
2
1
  import type { Position } from '../../../utils/mapTypes';
3
2
  import type { EventListenerMap } from '../../../utils/eventHandling';
4
3
  export { colorMapColdplay, colorMapWarmup, colorMapGray, colorMapBrand, colorMapStatus, colorMapMarker, colorMapRating, colorMapHighlight, } from './polygonColors';
@@ -18,14 +18,12 @@ const Polygon = (props) => {
18
18
  const { api } = useMapContext();
19
19
  const [polygon, setPolygon] = useState();
20
20
  useEffect(() => {
21
- var _a;
22
21
  const newPolygon = new H.map.Polygon(createGeometry(points), { style });
23
- (_a = api.map) === null || _a === void 0 ? void 0 : _a.addObject(newPolygon);
22
+ api.map?.addObject(newPolygon);
24
23
  setPolygon(newPolygon);
25
24
  return () => {
26
- var _a, _b;
27
- if ((_a = api.map) === null || _a === void 0 ? void 0 : _a.getObjects().includes(newPolygon)) {
28
- (_b = api.map) === null || _b === void 0 ? void 0 : _b.removeObject(newPolygon);
25
+ if (api.map?.getObjects().includes(newPolygon)) {
26
+ api.map?.removeObject(newPolygon);
29
27
  }
30
28
  newPolygon.dispose();
31
29
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="heremaps" />
2
1
  import { type EventListenerMap } from '../../../utils/eventHandling';
3
2
  export declare const MISSING_GEOMETRY_PROPS_EXCEPTION_MSG = "Error in Polyline: Polyline without geometry makes no sense";
4
3
  export declare const WRONG_GEOMETRY_PROPS_EXCEPTION_MSG = "Error in Polyline: property geometry must be of type H.geo.LineString";
@@ -17,7 +17,6 @@ const Polyline = (props) => {
17
17
  throw new MapException(WRONG_GEOMETRY_PROPS_EXCEPTION_MSG);
18
18
  }
19
19
  useEffect(() => {
20
- var _a;
21
20
  const lineGroup = new H.map.Group({ data: customData });
22
21
  const line = new H.map.Polyline(geometry, { style });
23
22
  if (hasArrows) {
@@ -25,14 +24,27 @@ const Polyline = (props) => {
25
24
  if (isVectorBased(enableWebGL, baseLayer)) {
26
25
  // WebGL way - Create a patterned polyline
27
26
  routeArrows = new H.map.Polyline(geometry, {
28
- style: Object.assign({ strokeColor: 'rgba(42, 55, 64, 1)', lineWidth: 5, lineDash: [1.8, 4],
27
+ style: {
28
+ strokeColor: 'rgba(42, 55, 64, 1)',
29
+ lineWidth: 5,
30
+ lineDash: [1.8, 4],
29
31
  // @ts-ignore-next-line - the types are outdated here
30
- lineDashImage: H.map.SpatialStyle.DashImage.ARROW }, arrowStyle),
32
+ lineDashImage: H.map.SpatialStyle.DashImage.ARROW,
33
+ ...arrowStyle,
34
+ },
31
35
  });
32
36
  }
33
37
  else {
34
38
  // Pixel map way - Create a patterned polyline
35
- const defaultArrowStyle = Object.assign({ lineWidth: 2, fillColor: 'rgba(42, 55, 64, 1)', strokeColor: 'rgba(0, 0, 0, 0.8)', lineDash: [0, 4], lineTailCap: 'arrow-tail', lineHeadCap: 'arrow-head' }, arrowStyle);
39
+ const defaultArrowStyle = {
40
+ lineWidth: 2,
41
+ fillColor: 'rgba(42, 55, 64, 1)',
42
+ strokeColor: 'rgba(0, 0, 0, 0.8)',
43
+ lineDash: [0, 4],
44
+ lineTailCap: 'arrow-tail',
45
+ lineHeadCap: 'arrow-head',
46
+ ...arrowStyle,
47
+ };
36
48
  const arrowLineStyle = new H.map.SpatialStyle({
37
49
  lineWidth: 10,
38
50
  strokeColor: 'rgba(255, 255, 255, 0)',
@@ -46,16 +58,15 @@ const Polyline = (props) => {
46
58
  else {
47
59
  lineGroup.addObjects([line]);
48
60
  }
49
- (_a = api.map) === null || _a === void 0 ? void 0 : _a.addObject(lineGroup);
61
+ api.map?.addObject(lineGroup);
50
62
  setPolyline(lineGroup);
51
63
  return () => {
52
- var _a;
53
64
  removeEventListenerMap(lineGroup);
54
65
  lineGroup.forEach(singleLine => {
55
66
  lineGroup.removeObject(singleLine);
56
67
  singleLine.dispose();
57
68
  });
58
- if ((_a = api.map) === null || _a === void 0 ? void 0 : _a.getObjects().includes(lineGroup)) {
69
+ if (api.map?.getObjects().includes(lineGroup)) {
59
70
  api.map.removeObject(lineGroup);
60
71
  }
61
72
  lineGroup.dispose();
@@ -1,12 +1,9 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
- // @ts-ignore-next-line importsNotUsedAsValues
4
- import 'react';
5
2
  import Marker from './Marker';
6
3
  export const emptyTextException = 'Error in TextMarker: TextMarker without text makes no sense';
7
4
  export const wrongTypeException = 'Error in TextMarker: property text must be string type';
8
5
  const TextMarker = (props) => {
9
- const { text } = props, remainingProps = __rest(props, ["text"]);
10
- return (_jsx(Marker, Object.assign({}, remainingProps, { icon: _jsx("div", Object.assign({ className: 'bg-white padding-x-10 padding-y-5 rounded border border-color-light shadow-default user-select-none cursor-default' }, { children: text })) })));
6
+ const { text, ...remainingProps } = props;
7
+ return (_jsx(Marker, { ...remainingProps, icon: _jsx("div", { className: 'bg-white padding-x-10 padding-y-5 rounded border border-color-light shadow-default user-select-none cursor-default', children: text }) }));
11
8
  };
12
9
  export default TextMarker;