@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
@@ -58,15 +58,15 @@ const createUtils = (mapApi) => {
58
58
  getBounds: () => {
59
59
  const { bounds } = mapApi.getViewModel().getLookAtData();
60
60
  // HERE Maps API for JavaScript 3.1
61
- const boundingBox = bounds === null || bounds === void 0 ? void 0 : bounds.getBoundingBox();
61
+ const boundingBox = bounds?.getBoundingBox();
62
62
  return {
63
63
  topLeft: {
64
- lng: boundingBox === null || boundingBox === void 0 ? void 0 : boundingBox.getTopLeft().lng,
65
- lat: boundingBox === null || boundingBox === void 0 ? void 0 : boundingBox.getTopLeft().lat,
64
+ lng: boundingBox?.getTopLeft().lng,
65
+ lat: boundingBox?.getTopLeft().lat,
66
66
  },
67
67
  bottomRight: {
68
- lng: boundingBox === null || boundingBox === void 0 ? void 0 : boundingBox.getBottomRight().lng,
69
- lat: boundingBox === null || boundingBox === void 0 ? void 0 : boundingBox.getBottomRight().lat,
68
+ lng: boundingBox?.getBottomRight().lng,
69
+ lat: boundingBox?.getBottomRight().lat,
70
70
  },
71
71
  };
72
72
  },
@@ -62,8 +62,8 @@ const ease = (startCoord = { lat: 0, lng: 0 }, endCoord = { lat: 1, lng: 1 }, du
62
62
  let currentSinValue = 0;
63
63
  const step = () => {
64
64
  currentSinValue += sinValueIncrement;
65
- currentValueLat += valueIncrementLat * Math.pow(Math.sin(currentSinValue), 2) * 2;
66
- currentValueLng += valueIncrementLng * Math.pow(Math.sin(currentSinValue), 2) * 2;
65
+ currentValueLat += valueIncrementLat * Math.sin(currentSinValue) ** 2 * 2;
66
+ currentValueLng += valueIncrementLng * Math.sin(currentSinValue) ** 2 * 2;
67
67
  if (currentSinValue < Math.PI) {
68
68
  onStep({ lat: currentValueLat, lng: currentValueLng });
69
69
  raf(step);
@@ -1,4 +1,3 @@
1
- /// <reference types="heremaps" />
2
1
  import type { MapCredentials, MapType } from './mapTypes';
3
2
  export declare const getPPI: () => 100 | 200;
4
3
  export declare const isVectorBased: (enableWebGL: boolean, baseLayer: MapType) => boolean;
@@ -11,14 +11,12 @@ exports.getPPI = getPPI;
11
11
  const isVectorBased = (enableWebGL, baseLayer) => enableWebGL && baseLayer !== constants_1.MAP_TYPE_TERRAIN && baseLayer !== constants_1.MAP_TYPE_FLEET_STYLE;
12
12
  exports.isVectorBased = isVectorBased;
13
13
  // See Migration guide: https://developer.here.com/documentation/maps/3.1.37.0/dev_guide/topics/migration.html
14
- const getPlatform = (credentials) => {
15
- var _a;
16
- // Initiate and authenticate your connection to the HERE platform:
17
- return new H.service.Platform({
18
- apikey: (_a = credentials.apikey) !== null && _a !== void 0 ? _a : '',
19
- useHTTPS: location.protocol === 'https:' ? true : false,
20
- });
21
- };
14
+ const getPlatform = (credentials) =>
15
+ // Initiate and authenticate your connection to the HERE platform:
16
+ new H.service.Platform({
17
+ apikey: credentials.apikey ?? '',
18
+ useHTTPS: location.protocol === 'https:' ? true : false,
19
+ });
22
20
  exports.getPlatform = getPlatform;
23
21
  const getBaseTileLayer = (rasterTileService, engineType) => {
24
22
  // @ts-ignore-next-line "H.service.rasterTile" is newer that the types
@@ -31,7 +29,7 @@ const getBaseTileLayer = (rasterTileService, engineType) => {
31
29
  exports.getBaseTileLayer = getBaseTileLayer;
32
30
  const getBaseRasterTileService = (platform, style, features, lang) => {
33
31
  // @ts-ignore-next-line "getRasterTileService" is newer that the types
34
- return platform === null || platform === void 0 ? void 0 : platform.getRasterTileService({
32
+ return platform?.getRasterTileService({
35
33
  format: constants_1.DEFAULT_RASTER_LAYER_FORMAT,
36
34
  queryParams: {
37
35
  // https://www.here.com/docs/bundle/raster-tile-api-migration-guide/page/README.html#5-language
@@ -81,7 +79,7 @@ const getBaseLayer = ({ baseLayerName, defaultLayers, enableWebGL, platform, eng
81
79
  // );
82
80
  // const layer = new H.map.layer.TileLayer(provider, { max: 22 });
83
81
  return {
84
- baseLayer: defaultLayers === null || defaultLayers === void 0 ? void 0 : defaultLayers.vector.normal.map,
82
+ baseLayer: defaultLayers?.vector.normal.map,
85
83
  // baseLayer: layer,
86
84
  // overlayLayer: envLayer,
87
85
  };
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- require("react");
6
5
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
7
6
  const mapTypes_1 = require("../map/utils/mapTypes");
8
7
  const ClusterMapMarker = (props) => {
@@ -10,6 +9,6 @@ const ClusterMapMarker = (props) => {
10
9
  const clusterClasses = (0, classnames_1.default)('rio-map-cluster-circle', active && 'active', cursor);
11
10
  const classes = (0, classnames_1.default)(active && 'active', 'rio-map-marker', 'rio-map-marker-center-center', !clickable && 'not-clickable');
12
11
  const markerBackgroundColor = `var(${mapTypes_1.markerColorMapping[markerColor]})`;
13
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes, style: { color: markerBackgroundColor }, "data-marker-type": markerColor.replace('bg-', 'cluster-') }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'rio-map-marker-translate' }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'rio-map-cluster' }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: clusterClasses }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'rio-map-cluster-content' }, { children: [iconName && (0, jsx_runtime_1.jsx)("div", { className: `rio-map-icon rioglyph rioglyph-${iconName}` }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'rio-map-count' }, { children: count }))] })) })), exceptionCount > 0 && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'rio-map-bubble exception' }, { children: exceptionCount })), warningCount > 0 && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'rio-map-bubble warning' }, { children: warningCount }))] })) })) })));
12
+ return ((0, jsx_runtime_1.jsx)("div", { className: classes, style: { color: markerBackgroundColor }, "data-marker-type": markerColor.replace('bg-', 'cluster-'), children: (0, jsx_runtime_1.jsx)("div", { className: 'rio-map-marker-translate', children: (0, jsx_runtime_1.jsxs)("div", { className: 'rio-map-cluster', children: [(0, jsx_runtime_1.jsx)("div", { className: clusterClasses, children: (0, jsx_runtime_1.jsxs)("div", { className: 'rio-map-cluster-content', children: [iconName && ((0, jsx_runtime_1.jsx)("span", { className: 'rio-map-icon', children: (0, jsx_runtime_1.jsx)("span", { className: `rioglyph rioglyph-${iconName}` }) })), (0, jsx_runtime_1.jsx)("div", { className: 'rio-map-count', children: count })] }) }), exceptionCount > 0 && (0, jsx_runtime_1.jsx)("div", { className: 'rio-map-bubble exception', children: exceptionCount }), warningCount > 0 && (0, jsx_runtime_1.jsx)("div", { className: 'rio-map-bubble warning', children: warningCount })] }) }) }));
14
13
  };
15
14
  exports.default = ClusterMapMarker;
@@ -2,8 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- // @ts-ignore-next-line importsNotUsedAsValues
6
- require("react");
7
5
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
8
6
  const mapTypes_1 = require("../map/utils/mapTypes");
9
7
  const DEFAULT_BEARING = 60;
@@ -12,12 +10,11 @@ const MapStateIndicator = (props) => {
12
10
  if (!moving && !stateIconName) {
13
11
  return null;
14
12
  }
15
- const stateClassName = (0, classnames_1.default)('rio-map-direction', // TODO: backwards-compatible - remove in future releases
16
- 'rio-map-marker-state', 'rioglyph', `rioglyph-${stateIconName || 'direction'}`);
13
+ const iconClassName = (0, classnames_1.default)('rioglyph', `rioglyph-${stateIconName || 'direction'}`);
17
14
  const style = stateIconName ? {} : { transform: `rotate(${bearing}deg)` };
18
- return (0, jsx_runtime_1.jsx)("div", { className: stateClassName, style: style });
15
+ return ((0, jsx_runtime_1.jsx)("div", { className: `rio-map-icon rio-map-marker-state ${stateIconName ? '' : 'rio-map-direction'}`, children: (0, jsx_runtime_1.jsx)("span", { className: iconClassName, style: style }) }));
19
16
  };
20
- const getIcons = (iconNames = []) => iconNames.map((name, index) => ((0, jsx_runtime_1.jsx)("div", { className: `rio-map-icon rioglyph rioglyph-${name}` }, `rio-map-icon-${name}-${index}`)));
17
+ const getIcons = (iconNames = []) => iconNames.map((name, index) => ((0, jsx_runtime_1.jsx)("div", { className: 'rio-map-icon', children: (0, jsx_runtime_1.jsx)("span", { className: `rioglyph rioglyph-${name}` }) }, `rio-map-icon-${name}-${index}`)));
21
18
  const SingleMapMarker = (props) => {
22
19
  const { bearing = DEFAULT_BEARING, name, warningCount = 0, exceptionCount = 0, active = false, clickable = true, fixed = false, moving = false, pinging = false, anchorIconName, stateIconName, iconNames, markerColor = 'bg-map-marker-asset', textColor, anchorSize, markerOnHover = false, anchorOnly = !name && !iconNames, cursor = 'cursor-pointer', className, style, } = props;
23
20
  const largeAnchor = anchorSize === 'lg';
@@ -25,6 +22,6 @@ const SingleMapMarker = (props) => {
25
22
  const anchorClasses = (0, classnames_1.default)('rio-map-anchor', largeAnchor ? 'rio-map-anchor-lg' : '', cursor);
26
23
  const singleClasses = (0, classnames_1.default)('rio-map-single', fixed && 'fixed', moving && 'moving', textColor, markerOnHover && 'visible-on-hover', active && 'active', pinging && 'pinging', cursor);
27
24
  const markerBackgroundColor = `var(${mapTypes_1.markerColorMapping[markerColor]})`;
28
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes, style: Object.assign(Object.assign({}, style), { color: markerBackgroundColor }), "data-marker-type": markerColor.replace('bg-', 'single-') }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'rio-map-marker-translate' }, { children: [!anchorOnly && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: singleClasses }, { children: [(0, jsx_runtime_1.jsx)(MapStateIndicator, { moving: moving, bearing: bearing, stateIconName: stateIconName }), getIcons(iconNames), name && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'rio-map-name' }, { children: name })), exceptionCount > 0 && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'rio-map-bubble exception' }, { children: exceptionCount })), warningCount > 0 && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'rio-map-bubble warning' }, { children: warningCount }))] })), (0, jsx_runtime_1.jsx)("div", { className: 'rio-map-anchor-arrow' })] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: anchorClasses }, { children: anchorIconName && largeAnchor && (0, jsx_runtime_1.jsx)("span", { className: `rioglyph rioglyph-${anchorIconName}` }) }))] })) })));
25
+ return ((0, jsx_runtime_1.jsx)("div", { className: classes, style: { ...style, color: markerBackgroundColor }, "data-marker-type": markerColor.replace('bg-', 'single-'), children: (0, jsx_runtime_1.jsxs)("div", { className: 'rio-map-marker-translate', children: [!anchorOnly && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: singleClasses, children: [(0, jsx_runtime_1.jsx)(MapStateIndicator, { moving: moving, bearing: bearing, stateIconName: stateIconName }), getIcons(iconNames), name && (0, jsx_runtime_1.jsx)("div", { className: 'rio-map-name', children: name }), exceptionCount > 0 && (0, jsx_runtime_1.jsx)("div", { className: 'rio-map-bubble exception', children: exceptionCount }), warningCount > 0 && (0, jsx_runtime_1.jsx)("div", { className: 'rio-map-bubble warning', children: warningCount })] }), (0, jsx_runtime_1.jsx)("div", { className: 'rio-map-anchor-arrow' })] })), (0, jsx_runtime_1.jsx)("div", { className: anchorClasses, children: anchorIconName && largeAnchor && (0, jsx_runtime_1.jsx)("span", { className: `rioglyph rioglyph-${anchorIconName}` }) })] }) }));
29
26
  };
30
27
  exports.default = SingleMapMarker;
@@ -31,6 +31,6 @@ const MenuItem = (props) => {
31
31
  if (header) {
32
32
  return (0, jsx_runtime_1.jsx)(DropdownHeader_1.default, { label: value, center: false });
33
33
  }
34
- return ((0, jsx_runtime_1.jsx)("li", Object.assign({ role: role, className: classes, onClick: handleSelectItem, onMouseEnter: handleItemMouseEnter, "data-item-index": index }, { children: (0, jsx_runtime_1.jsx)("a", Object.assign({ role: 'menuitem' }, { children: value })) })));
34
+ return ((0, jsx_runtime_1.jsx)("li", { role: role, className: classes, onClick: handleSelectItem, onMouseEnter: handleItemMouseEnter, "data-item-index": index, children: (0, jsx_runtime_1.jsx)("a", { role: 'menuitem', children: value }) }));
35
35
  };
36
36
  exports.default = MenuItem;
@@ -5,8 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
7
7
  const MenuItemList = (0, react_1.forwardRef)((props, ref) => {
8
- const { pullRight, className, children } = props, remainingProps = tslib_1.__rest(props, ["pullRight", "className", "children"]);
8
+ const { pullRight, className, children, ...remainingProps } = props;
9
9
  const dropdownMenuClasses = (0, classnames_1.default)('dropdown-menu', pullRight && 'pull-right', className);
10
- return ((0, jsx_runtime_1.jsx)("ul", Object.assign({}, remainingProps, { className: dropdownMenuClasses, ref: ref, role: 'menu' }, { children: children })));
10
+ return ((0, jsx_runtime_1.jsx)("ul", { ...remainingProps, className: dropdownMenuClasses, ref: ref, role: 'menu', children: children }));
11
11
  });
12
12
  exports.default = MenuItemList;
@@ -2,13 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- require("react");
6
5
  const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
7
6
  const MenuItem_1 = tslib_1.__importDefault(require("./MenuItem"));
8
7
  const MenuItems = ({ items, closeMenu = noop_1.default, onMouseEnter = noop_1.default }) => {
9
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: items.map((item, index) => {
10
- var _a, _b;
11
- return ((0, jsx_runtime_1.jsx)(MenuItem_1.default, Object.assign({}, item, { index: (_a = item.index) !== null && _a !== void 0 ? _a : index, closeMenu: closeMenu, onMouseEnter: onMouseEnter }), (_b = item.index) !== null && _b !== void 0 ? _b : index));
12
- }) }));
8
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: items.map((item, index) => ((0, jsx_runtime_1.jsx)(MenuItem_1.default, { ...item, index: item.index ?? index, closeMenu: closeMenu, onMouseEnter: onMouseEnter }, item.index ?? index))) }));
13
9
  };
14
10
  exports.default = MenuItems;
@@ -4,10 +4,27 @@ export type AppNavigationBarProps = {
4
4
  * The title for the content that is shown.
5
5
  */
6
6
  title?: string | ReactNode;
7
+ /**
8
+ * Defines the size of the title. Possible values are 'md' and 'lg'.
9
+ *
10
+ * @default 'md'
11
+ */
12
+ titleSize?: 'md' | 'lg';
13
+ /**
14
+ * Adds a subtitle below the title.
15
+ */
16
+ subtitle?: string | ReactNode;
7
17
  /**
8
18
  * Right side area for additional options of buttons like filter etc. that is relevant for the shown content..
9
19
  */
10
20
  right?: ReactNode;
21
+ backButtonText?: string | ReactNode;
22
+ /**
23
+ * Add a light bottom border to the wrapper element.
24
+ *
25
+ * @default false
26
+ */
27
+ border?: boolean;
11
28
  /**
12
29
  * Callback function for when the back navigation button is clicked.
13
30
  */
@@ -8,8 +8,8 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
8
8
  const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
9
9
  const Button_1 = tslib_1.__importDefault(require("../button/Button"));
10
10
  exports.AppNavigationBar = (0, react_1.forwardRef)((props, ref) => {
11
- const { className, title, right = (0, jsx_runtime_1.jsx)("span", {}), onNavigateBack = noop_1.default } = props, remainingProps = tslib_1.__rest(props, ["className", "title", "right", "onNavigateBack"]);
12
- const navigationClasses = (0, classnames_1.default)('AppNavigationBar', 'width-100pct display-flex align-items-center justify-content-between height-45 user-select-none padding-x-10', className);
13
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ ref: ref }, remainingProps, { className: navigationClasses }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'display-flex align-items-center gap-5' }, { children: [(0, jsx_runtime_1.jsx)(Button_1.default, { bsStyle: 'muted', className: 'text-color-darkest', iconOnly: true, iconName: 'rioglyph-arrow-left', onClick: onNavigateBack }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'text-medium text-color-darker' }, { children: title }))] })), (0, jsx_runtime_1.jsx)("div", { children: right })] })));
11
+ const { className, title, right = (0, jsx_runtime_1.jsx)("span", {}), backButtonText = '', titleSize = 'md', subtitle, border = false, onNavigateBack = noop_1.default, ...remainingProps } = props;
12
+ const navigationClasses = (0, classnames_1.default)('AppNavigationBar', 'width-100pct height-45 user-select-none padding-x-10', 'display-grid grid-stack align-items-center', titleSize === 'md' && 'text-size-14', titleSize === 'lg' && 'text-size-16', border && 'border border-bottom-only border-color-lighter', className);
13
+ return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, ...remainingProps, className: navigationClasses, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'grid-stack-item display-flex align-items-center justify-content-between', children: [(0, jsx_runtime_1.jsx)(Button_1.default, { bsStyle: 'muted', className: 'text-color-darkest', iconOnly: !backButtonText, iconName: 'rioglyph-arrow-left', onClick: onNavigateBack, children: backButtonText }), (0, jsx_runtime_1.jsx)("div", { className: 'btn-toolbar gap-2', children: right })] }), (0, jsx_runtime_1.jsxs)("div", { className: 'grid-stack-item text-center text-medium text-color-darker margin-x-25 padding-x-5 ellipsis-1', children: [(0, jsx_runtime_1.jsx)("div", { className: 'ellipsis-1', children: title }), subtitle && (0, jsx_runtime_1.jsx)("div", { className: 'text-size-12 line-height-12 text-normal margin-top--2', children: subtitle })] })] }));
14
14
  });
15
15
  exports.default = exports.AppNavigationBar;
@@ -2,17 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- // @ts-ignore-next-line importsNotUsedAsValues
6
- require("react");
7
5
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
8
6
  const SimpleTooltip_1 = tslib_1.__importDefault(require("../tooltip/SimpleTooltip"));
9
7
  const Placement_1 = require("../../values/Placement");
10
8
  const NoData = (props) => {
11
- const { text, className = '', tooltip, tooltipPlacement = Placement_1.PLACEMENT.BOTTOM, tooltipWidth = 'auto' } = props, remainingProps = tslib_1.__rest(props, ["text", "className", "tooltip", "tooltipPlacement", "tooltipWidth"]);
9
+ const { text, className = '', tooltip, tooltipPlacement = Placement_1.PLACEMENT.BOTTOM, tooltipWidth = 'auto', ...remainingProps } = props;
12
10
  const noDataClasses = (0, classnames_1.default)('NoData', className);
13
11
  if (tooltip) {
14
- return ((0, jsx_runtime_1.jsxs)("span", Object.assign({}, remainingProps, { className: noDataClasses }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'pointer-events-none user-select-none' }, { children: text })), (0, jsx_runtime_1.jsx)(SimpleTooltip_1.default, Object.assign({ content: tooltip, placement: tooltipPlacement, width: tooltipWidth }, { children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-info-sign margin-left-5' }) }))] })));
12
+ return ((0, jsx_runtime_1.jsxs)("span", { ...remainingProps, className: noDataClasses, children: [(0, jsx_runtime_1.jsx)("span", { className: 'pointer-events-none user-select-none', children: text }), (0, jsx_runtime_1.jsx)(SimpleTooltip_1.default, { content: tooltip, placement: tooltipPlacement, width: tooltipWidth, children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-info-sign margin-left-5' }) })] }));
15
13
  }
16
- return ((0, jsx_runtime_1.jsx)("span", Object.assign({}, remainingProps, { className: noDataClasses }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'pointer-events-none user-select-none' }, { children: text })) })));
14
+ return ((0, jsx_runtime_1.jsx)("span", { ...remainingProps, className: noDataClasses, children: (0, jsx_runtime_1.jsx)("span", { className: 'pointer-events-none user-select-none', children: text }) }));
17
15
  };
18
16
  exports.default = NoData;
@@ -1,32 +1,52 @@
1
1
  import React from 'react';
2
- type TriggerFunction = (
3
- /**
4
- * The message to be shown.
5
- */
6
- message: string | React.ReactNode,
7
- /**
8
- * The title to be shown.
9
- */
10
- title?: string | React.ReactNode,
11
- /**
12
- * The popup timeout in milliseconds.
13
- *
14
- * If you do not want it to automatically disappear you can define a very high timeOut.
15
- */
16
- timeOut?: number,
17
- /**
18
- * A function that gets invoked when the notification is clicked.
19
- */
20
- callback?: VoidFunction,
21
- /**
22
- * If true, the message gets inserted at the top of the notification stack.
23
- */
24
- priority?: boolean) => void;
25
- type NotificationTypeStub = {
26
- success: TriggerFunction;
27
- info: TriggerFunction;
28
- warning: TriggerFunction;
29
- error: TriggerFunction;
2
+ export declare const DEFAULT_NOTIFICATION_TIMEOUT_IN_MS = 5000;
3
+ export declare const NOTIFICATION_TIMEOUT_INFINITE = 999999;
4
+ export type NotificationOptions = {
5
+ /**
6
+ * The title to be shown.
7
+ */
8
+ title?: string | React.ReactNode;
9
+ /**
10
+ * The timeout in milliseconds after which the notification disappears.
11
+ *
12
+ * If you don`t want it to automatically disappear, set a very high number.
13
+ */
14
+ timeout?: number;
15
+ /**
16
+ * A function that gets invoked when the notification is clicked.
17
+ */
18
+ callback?: VoidFunction;
19
+ /**
20
+ * If true, the message gets inserted at the top of the notification stack.
21
+ *
22
+ * @default false
23
+ * @deprecated
24
+ */
25
+ priority?: boolean;
26
+ /**
27
+ * Flag to enable a close button.
28
+ *
29
+ * @default false
30
+ */
31
+ closeButton?: boolean;
32
+ /**
33
+ * Flag to disable close on clicking on the notification.
34
+ *
35
+ * @default true
36
+ */
37
+ closeOnClick?: boolean;
38
+ /**
39
+ * Flag to show a progress bar. By default it is not shown.
40
+ *
41
+ * @default true
42
+ */
43
+ hideProgressBar?: boolean;
30
44
  };
31
- declare const _default: NotificationTypeStub;
32
- export default _default;
45
+ declare const Notification: {
46
+ default: (message: string | React.ReactNode, optionsOrTitle?: string | React.ReactNode | NotificationOptions, timeout?: number, callback?: VoidFunction, priority?: boolean) => import("react-toastify").Id;
47
+ success: (message: string | React.ReactNode, optionsOrTitle?: string | React.ReactNode | NotificationOptions, timeout?: number, callback?: VoidFunction, priority?: boolean) => import("react-toastify").Id;
48
+ info: (message: string | React.ReactNode, optionsOrTitle?: string | React.ReactNode | NotificationOptions, timeout?: number, callback?: VoidFunction, priority?: boolean) => import("react-toastify").Id;
49
+ warning: (message: string | React.ReactNode, optionsOrTitle?: string | React.ReactNode | NotificationOptions, timeout?: number, callback?: VoidFunction, priority?: boolean) => import("react-toastify").Id;
50
+ error: (message: string | React.ReactNode, optionsOrTitle?: string | React.ReactNode | NotificationOptions, timeout?: number, callback?: VoidFunction, priority?: boolean) => import("react-toastify").Id;
51
+ };
52
+ export default Notification;
@@ -1,7 +1,102 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NOTIFICATION_TIMEOUT_INFINITE = exports.DEFAULT_NOTIFICATION_TIMEOUT_IN_MS = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
3
6
  // @ts-ignore-next-line importsNotUsedAsValues
4
- require("react");
5
- // @ts-ignore-next-line 7016
6
- const react_notifications_1 = require("react-notifications");
7
- exports.default = react_notifications_1.NotificationManager;
7
+ const react_1 = tslib_1.__importDefault(require("react"));
8
+ const react_toastify_1 = require("react-toastify");
9
+ exports.DEFAULT_NOTIFICATION_TIMEOUT_IN_MS = 5_000;
10
+ exports.NOTIFICATION_TIMEOUT_INFINITE = 999_999;
11
+ const baseOptions = {
12
+ position: 'top-right',
13
+ hideProgressBar: true,
14
+ pauseOnHover: true,
15
+ draggable: true,
16
+ theme: 'colored',
17
+ transition: react_toastify_1.Slide,
18
+ };
19
+ const ToastMessage = (props) => {
20
+ const { title, message } = props;
21
+ return ((0, jsx_runtime_1.jsx)("div", { className: 'notification', children: (0, jsx_runtime_1.jsxs)("div", { className: 'notification-message', role: 'alert', children: [title && (0, jsx_runtime_1.jsx)("h4", { className: 'title', children: title }), (0, jsx_runtime_1.jsx)("div", { className: 'message', children: message })] }) }));
22
+ };
23
+ const normalizeArgs = (optionsOrTitle, timeout, callback, priority) => {
24
+ // Handle the new options object format
25
+ if (optionsOrTitle && typeof optionsOrTitle === 'object' && !react_1.default.isValidElement(optionsOrTitle)) {
26
+ return { ...optionsOrTitle };
27
+ }
28
+ // Handle legacy format with multiple arguments
29
+ return {
30
+ title: typeof optionsOrTitle === 'string' ? optionsOrTitle : undefined,
31
+ timeout,
32
+ callback,
33
+ priority,
34
+ };
35
+ };
36
+ const mapOptions = (options) => {
37
+ const { timeout, callback, priority, // does not work like that with react-toastify, so we ignore it
38
+ iconClassName, closeButton = false, hideProgressBar = true, closeOnClick = true, } = options;
39
+ return {
40
+ ...baseOptions,
41
+ autoClose: timeout || exports.DEFAULT_NOTIFICATION_TIMEOUT_IN_MS,
42
+ onClick: callback,
43
+ hideProgressBar,
44
+ closeOnClick,
45
+ // replace the default built-in icons
46
+ icon: (0, jsx_runtime_1.jsx)("span", { className: `rioglyph ${iconClassName}` }),
47
+ // in case a close button is requested, ignore the auto-injected "closeToast" prop
48
+ // as otherwise it will be passed onto the underlying DOM element
49
+ closeButton: closeButton
50
+ ? ({ closeToast: ignoreCloseToast }) => ((0, jsx_runtime_1.jsx)("button", { className: 'notification-close', type: 'button', children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-remove' }) }))
51
+ : false,
52
+ };
53
+ };
54
+ const Notification = (() => {
55
+ const notify = (type, message, optionsOrTitle, timeout, callback, priority) => {
56
+ // Normalize arguments
57
+ const { title, timeout: time, callback: cb, priority: prio, closeButton, closeOnClick, hideProgressBar, } = normalizeArgs(optionsOrTitle, timeout, callback, priority);
58
+ // Map icon class names based on type
59
+ const iconClassNames = {
60
+ default: '',
61
+ success: 'rioglyph-ok text-size-18',
62
+ info: 'rioglyph-info-sign text-size-20',
63
+ warn: 'rioglyph-exclamation-sign text-size-20',
64
+ error: 'rioglyph-error-sign text-size-20',
65
+ };
66
+ if (type === 'default') {
67
+ return (0, react_toastify_1.toast)((0, jsx_runtime_1.jsx)(ToastMessage, { message: message, title: title }), mapOptions({
68
+ timeout: time,
69
+ callback: cb,
70
+ priority: prio,
71
+ closeButton,
72
+ closeOnClick,
73
+ hideProgressBar,
74
+ iconClassName: iconClassNames[type],
75
+ }));
76
+ }
77
+ // Call the appropriate toast function
78
+ return react_toastify_1.toast[type]((0, jsx_runtime_1.jsx)(ToastMessage, { message: message, title: title }), mapOptions({
79
+ timeout: time,
80
+ callback: cb,
81
+ priority: prio,
82
+ closeButton,
83
+ closeOnClick,
84
+ hideProgressBar,
85
+ iconClassName: iconClassNames[type],
86
+ }));
87
+ };
88
+ // Wrappers for specific types
89
+ const defaultNotification = (message, optionsOrTitle, timeout, callback, priority) => notify('default', message, optionsOrTitle, timeout, callback, priority);
90
+ const info = (message, optionsOrTitle, timeout, callback, priority) => notify('info', message, optionsOrTitle, timeout, callback, priority);
91
+ const success = (message, optionsOrTitle, timeout, callback, priority) => notify('success', message, optionsOrTitle, timeout, callback, priority);
92
+ const warning = (message, optionsOrTitle, timeout, callback, priority) => notify('warn', message, optionsOrTitle, timeout, callback, priority);
93
+ const error = (message, optionsOrTitle, timeout, callback, priority) => notify('error', message, optionsOrTitle, timeout, callback, priority);
94
+ return {
95
+ default: defaultNotification,
96
+ success,
97
+ info,
98
+ warning,
99
+ error,
100
+ };
101
+ })();
102
+ exports.default = Notification;
@@ -1,6 +1,8 @@
1
1
  export type NotificationsContainerProps = {
2
2
  /**
3
3
  * Defines whether the notification are stacked.
4
+ *
5
+ * @deprecated
4
6
  */
5
7
  stacked?: boolean;
6
8
  };
@@ -2,12 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- require("react");
6
5
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
7
- // @ts-ignore-next-line 7016
8
- const react_notifications_1 = require("react-notifications");
6
+ const react_toastify_1 = require("react-toastify");
9
7
  const NotificationsContainer = ({ stacked }) => {
10
8
  const wrapperClasses = (0, classnames_1.default)('notification-container-wrapper', stacked && 'stacked');
11
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: wrapperClasses }, { children: (0, jsx_runtime_1.jsx)(react_notifications_1.NotificationContainer, {}) })));
9
+ return ((0, jsx_runtime_1.jsx)("div", { className: wrapperClasses, children: (0, jsx_runtime_1.jsx)(react_toastify_1.ToastContainer, { className: 'notification-container', stacked: false, limit: 5 }) }));
12
10
  };
13
11
  exports.default = NotificationsContainer;
@@ -10,7 +10,7 @@ const INITIAL_TICK = 700;
10
10
  const TICK_TIME = 50;
11
11
  const DEFAULT_DIGIT_PRECISION = 3;
12
12
  const NumberControl = (0, react_1.forwardRef)((props, ref) => {
13
- const { id, min = NumberInput_1.DEFAULT_MIN, max = NumberInput_1.DEFAULT_MAX, step = NumberInput_1.DEFAULT_STEP, value, onChange, onValueChanged = () => { }, onKeyDown = noop_1.default, disabled, bsSize, className, unit, inputAddon, errorMessage, warningMessage, messageWhiteSpace, digitPrecision = DEFAULT_DIGIT_PRECISION, placeholder, noDefault } = props, remainingProps = tslib_1.__rest(props, ["id", "min", "max", "step", "value", "onChange", "onValueChanged", "onKeyDown", "disabled", "bsSize", "className", "unit", "inputAddon", "errorMessage", "warningMessage", "messageWhiteSpace", "digitPrecision", "placeholder", "noDefault"]);
13
+ const { id, min = NumberInput_1.DEFAULT_MIN, max = NumberInput_1.DEFAULT_MAX, step = NumberInput_1.DEFAULT_STEP, value, onChange, onValueChanged = () => { }, onKeyDown = noop_1.default, disabled, bsSize, className, unit, inputAddon, errorMessage, warningMessage, messageWhiteSpace, digitPrecision = DEFAULT_DIGIT_PRECISION, placeholder, noDefault, ...remainingProps } = props;
14
14
  // Note, "onChange" should replace "onValueChanged" in the future but it's widely used
15
15
  const callback = onChange || onValueChanged;
16
16
  const timeout = (0, react_1.useRef)(null);
@@ -110,7 +110,7 @@ const NumberControl = (0, react_1.forwardRef)((props, ref) => {
110
110
  callback(newValue);
111
111
  };
112
112
  const classes = (0, classnames_1.default)('NumberControl', className);
113
- const controls = ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'display-flex padding-left-10', onMouseOut: handleStopHolding, onBlur: handleStopHolding }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ onMouseDown: handleMouseDownOnDecrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'decrement-button', className: 'decrementButton text-color-gray hover-text-color-dark' }, { children: (0, jsx_runtime_1.jsx)("div", { className: 'rioglyph rioglyph-minus scale-90' }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ onMouseDown: handleMouseDownOnIncrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'increment-button', className: 'incrementButton text-color-gray hover-text-color-dark margin-left-5' }, { children: (0, jsx_runtime_1.jsx)("div", { className: 'rioglyph rioglyph-plus scale-90' }) }))] })));
114
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({}, remainingProps, { className: classes }, { children: (0, jsx_runtime_1.jsx)(NumberInput_1.default, { id: id, ref: ref, min: min, max: max, value: internalValue, step: step, bsSize: bsSize, disabled: disabled, inputAddon: inputAddon, errorMessage: errorMessage, warningMessage: warningMessage, messageWhiteSpace: messageWhiteSpace, controls: controls, unit: unit, onChange: handleUpdatedNumberInputValue, onKeyDown: onKeyDown, digitPrecision: digitPrecision, placeholder: placeholder, noDefault: noDefault }) })));
113
+ const controls = ((0, jsx_runtime_1.jsxs)("div", { className: 'display-flex padding-left-10', onMouseOut: handleStopHolding, onBlur: handleStopHolding, children: [(0, jsx_runtime_1.jsx)("div", { onMouseDown: handleMouseDownOnDecrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'decrement-button', className: 'decrementButton display-flex align-items-center text-color-gray hover-text-color-dark cursor-pointer', children: (0, jsx_runtime_1.jsx)("div", { className: 'rioglyph rioglyph-minus scale-90' }) }), (0, jsx_runtime_1.jsx)("div", { onMouseDown: handleMouseDownOnIncrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'increment-button', className: 'incrementButton display-flex align-items-center text-color-gray hover-text-color-dark cursor-pointer margin-left-5', children: (0, jsx_runtime_1.jsx)("div", { className: 'rioglyph rioglyph-plus scale-90' }) })] }));
114
+ return ((0, jsx_runtime_1.jsx)("div", { ...remainingProps, className: classes, children: (0, jsx_runtime_1.jsx)(NumberInput_1.default, { id: id, ref: ref, min: min, max: max, value: internalValue, step: step, bsSize: bsSize, disabled: disabled, inputAddon: inputAddon, errorMessage: errorMessage, warningMessage: warningMessage, messageWhiteSpace: messageWhiteSpace, controls: controls, unit: unit, onChange: handleUpdatedNumberInputValue, onKeyDown: onKeyDown, digitPrecision: digitPrecision, placeholder: placeholder, noDefault: noDefault }) }));
115
115
  });
116
116
  exports.default = NumberControl;
@@ -63,7 +63,7 @@ const isInvalidAfter = (key, possiblePreviousKeys, event, previousKeyRef) => {
63
63
  return event.key === key && possiblePreviousKeys.includes(previousKeyRef.current);
64
64
  };
65
65
  const NumberInput = (0, react_1.forwardRef)((props, ref) => {
66
- const { id, min: propMin, max: propMax, value: propValue, step = exports.DEFAULT_STEP, disabled = false, noDefault = false, onChange, onValueChanged = noop_1.default, onKeyDown = noop_1.default, bsSize = 'md', unit, inputAddon, errorMessage, warningMessage, messageWhiteSpace = 'normal', controls, placeholder, digitPrecision = DEFAULT_DIGIT_PRECISION, className = '' } = props, remainingProps = tslib_1.__rest(props, ["id", "min", "max", "value", "step", "disabled", "noDefault", "onChange", "onValueChanged", "onKeyDown", "bsSize", "unit", "inputAddon", "errorMessage", "warningMessage", "messageWhiteSpace", "controls", "placeholder", "digitPrecision", "className"]);
66
+ const { id, min: propMin, max: propMax, value: propValue, step = exports.DEFAULT_STEP, disabled = false, noDefault = false, onChange, onValueChanged = noop_1.default, onKeyDown = noop_1.default, bsSize = 'md', unit, inputAddon, errorMessage, warningMessage, messageWhiteSpace = 'normal', controls, placeholder, digitPrecision = DEFAULT_DIGIT_PRECISION, className = '', ...remainingProps } = props;
67
67
  const previousKeyRef = (0, react_1.useRef)('');
68
68
  const callback = onChange || onValueChanged;
69
69
  const min = (0, exports.convertNonIntegerToDefault)(propMin, exports.DEFAULT_MIN);
@@ -161,9 +161,9 @@ const NumberInput = (0, react_1.forwardRef)((props, ref) => {
161
161
  const inputGroupClassNames = (0, classnames_1.default)('input-group', bsSize === 'sm' && 'input-group-sm', bsSize === 'lg' && 'input-group-lg');
162
162
  const inputClassNames = (0, classnames_1.default)('form-control', 'no-controls', bsSize === 'sm' && 'input-sm', bsSize === 'lg' && 'input-lg', className);
163
163
  const hasFeedback = errorMessage || warningMessage;
164
- const input = ((0, jsx_runtime_1.jsx)("input", Object.assign({}, remainingProps, { id: id, type: 'number', step: step, min: min, max: max, value: state.isValid ? state.value : state.enteredValue, className: inputClassNames, disabled: disabled, onBlur: handleBlur,
164
+ const input = ((0, jsx_runtime_1.jsx)("input", { ...remainingProps, id: id, type: 'number', step: step, min: min, max: max, value: state.isValid ? state.value : state.enteredValue, className: inputClassNames, disabled: disabled, onBlur: handleBlur,
165
165
  // onChange={state.value ? handleOnChange : undefined}
166
- onChange: handleOnChange, onKeyDown: handleKeyDown, ref: ref, "aria-label": 'number-input', placeholder: placeholder, onWheel: handleWheel })));
167
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: inputGroupClassNames }, { children: [inputAddon && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'input-group-addon' }, { children: (0, jsx_runtime_1.jsx)("span", { className: inputAddon }) }))), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'form-control-feedback-wrapper' }, { children: [input, hasFeedback && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [errorMessage && (0, jsx_runtime_1.jsx)("span", { className: 'form-control-feedback rioglyph rioglyph-error-sign' }), warningMessage && (0, jsx_runtime_1.jsx)("span", { className: 'form-control-feedback rioglyph rioglyph-warning-sign' }), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: `help-block white-space-${messageWhiteSpace}` }, { children: (0, jsx_runtime_1.jsx)("span", { children: errorMessage || warningMessage }) }))] }))] })), (unit || controls) && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `input-group-addon ${disabled ? 'disabled pointer-events-none' : ''}` }, { children: [unit && unit, controls && controls] })))] })));
166
+ onChange: handleOnChange, onKeyDown: handleKeyDown, ref: ref, "aria-label": 'number-input', placeholder: placeholder, onWheel: handleWheel }));
167
+ return ((0, jsx_runtime_1.jsxs)("div", { className: inputGroupClassNames, children: [inputAddon && ((0, jsx_runtime_1.jsx)("div", { className: 'input-group-addon', children: (0, jsx_runtime_1.jsx)("span", { className: inputAddon }) })), (0, jsx_runtime_1.jsxs)("div", { className: 'form-control-feedback-wrapper', children: [input, hasFeedback && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [errorMessage && (0, jsx_runtime_1.jsx)("span", { className: 'form-control-feedback rioglyph rioglyph-error-sign' }), warningMessage && (0, jsx_runtime_1.jsx)("span", { className: 'form-control-feedback rioglyph rioglyph-warning-sign' }), (0, jsx_runtime_1.jsx)("span", { className: `help-block white-space-${messageWhiteSpace}`, children: (0, jsx_runtime_1.jsx)("span", { children: errorMessage || warningMessage }) })] }))] }), (unit || controls) && ((0, jsx_runtime_1.jsxs)("div", { className: `input-group-addon ${disabled ? 'disabled pointer-events-none' : ''}`, children: [unit && unit, controls && controls] }))] }));
168
168
  });
169
169
  exports.default = NumberInput;
@@ -2,8 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- // @ts-ignore-next-line importsNotUsedAsValues
6
- require("react");
7
5
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
8
6
  const noop_1 = tslib_1.__importDefault(require("lodash/noop"));
9
7
  const Button_1 = tslib_1.__importDefault(require("../button/Button"));
@@ -14,9 +12,9 @@ const Placement_1 = require("../../values/Placement");
14
12
  const OnboardingTip = (props) => {
15
13
  const { id, show = false, placement = Placement_1.PLACEMENT.BOTTOM, title, content, onHide = noop_1.default, children, textAlignment = TextAlignment_1.TEXT_ALIGNMENT.LEFT, useInDialog = false, showCloseIcon = true, clickflow = false, previousButton, nextButton, className = '', width, preventOverflow = true, popperConfig, } = props;
16
14
  // DEPRECATED in favor of driver.js - see useOnboardingTour hook
17
- const clickFlowWithButtons = ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'display-flex flex-column gap-25' }, { children: [(0, jsx_runtime_1.jsx)("div", { children: content }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `btn-toolbar justify-content-between ${showCloseIcon ? 'margin-right--25' : ''}` }, { children: [previousButton ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'position-relative' }, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'bg-black opacity-10 rounded display-absolute inset-0' }), (0, jsx_runtime_1.jsxs)(Button_1.default, Object.assign({ bsStyle: Button_1.default.SECONDARY, variant: Button_1.default.VARIANT_OUTLINE, className: 'border-none text-color-white', onClick: previousButton.onClick }, { children: [previousButton.iconName && ((0, jsx_runtime_1.jsx)("span", { className: `rioglyph ${previousButton.iconName} text-color-white` })), (0, jsx_runtime_1.jsx)("span", { children: previousButton.text })] }))] }))) : ((0, jsx_runtime_1.jsx)("div", {})), nextButton ? ((0, jsx_runtime_1.jsxs)(Button_1.default, Object.assign({ bsStyle: Button_1.default.SECONDARY, variant: Button_1.default.VARIANT_OUTLINE, className: 'border-color-white text-color-white', onClick: nextButton.onClick, iconRight: true }, { children: [(0, jsx_runtime_1.jsx)("span", { children: nextButton.text }), nextButton.iconName && (0, jsx_runtime_1.jsx)("span", { className: `rioglyph ${nextButton.iconName} text-color-white` })] }))) : ((0, jsx_runtime_1.jsx)("div", {}))] }))] })));
15
+ const clickFlowWithButtons = ((0, jsx_runtime_1.jsxs)("div", { className: 'display-flex flex-column gap-25', children: [(0, jsx_runtime_1.jsx)("div", { children: content }), (0, jsx_runtime_1.jsxs)("div", { className: `btn-toolbar justify-content-between ${showCloseIcon ? 'margin-right--25' : ''}`, children: [previousButton ? ((0, jsx_runtime_1.jsxs)("div", { className: 'position-relative', children: [(0, jsx_runtime_1.jsx)("div", { className: 'bg-black opacity-10 rounded display-absolute inset-0' }), (0, jsx_runtime_1.jsxs)(Button_1.default, { bsStyle: Button_1.default.SECONDARY, variant: Button_1.default.VARIANT_OUTLINE, className: 'border-none text-color-white', onClick: previousButton.onClick, children: [previousButton.iconName && ((0, jsx_runtime_1.jsx)("span", { className: `rioglyph ${previousButton.iconName} text-color-white` })), (0, jsx_runtime_1.jsx)("span", { children: previousButton.text })] })] })) : ((0, jsx_runtime_1.jsx)("div", {})), nextButton ? ((0, jsx_runtime_1.jsxs)(Button_1.default, { bsStyle: Button_1.default.SECONDARY, variant: Button_1.default.VARIANT_OUTLINE, className: 'border-color-white text-color-white', onClick: nextButton.onClick, iconRight: true, children: [(0, jsx_runtime_1.jsx)("span", { children: nextButton.text }), nextButton.iconName && (0, jsx_runtime_1.jsx)("span", { className: `rioglyph ${nextButton.iconName} text-color-white` })] })) : ((0, jsx_runtime_1.jsx)("div", {}))] })] }));
18
16
  const tooltipWrapperClasses = (0, classnames_1.default)(useInDialog && 'z-index-max', className && className, clickflow && 'onboarding-clickflow');
19
- const overlay = ((0, jsx_runtime_1.jsx)(Tooltip_1.default, Object.assign({ className: tooltipWrapperClasses, tooltipStyle: Tooltip_1.default.STYLE_ONBOARDING, id: id, onClick: onHide, width: width, textAlignment: textAlignment, allowOnTouch: true }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'display-flex' }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'display-flex flex-column flex-1-1' }, { children: [title && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'tooltip-title' }, { children: title })), content && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'tooltip-content' }, { children: clickflow ? clickFlowWithButtons : content }))] })), showCloseIcon && (0, jsx_runtime_1.jsx)("span", { className: 'tooltip-close rioglyph rioglyph-remove' })] })) })));
17
+ const overlay = ((0, jsx_runtime_1.jsx)(Tooltip_1.default, { className: tooltipWrapperClasses, tooltipStyle: Tooltip_1.default.STYLE_ONBOARDING, id: id, onClick: onHide, width: width, textAlignment: textAlignment, allowOnTouch: true, children: (0, jsx_runtime_1.jsxs)("div", { className: 'display-flex', children: [(0, jsx_runtime_1.jsxs)("div", { className: 'display-flex flex-column flex-1-1', children: [title && (0, jsx_runtime_1.jsx)("div", { className: 'tooltip-title', children: title }), content && (0, jsx_runtime_1.jsx)("div", { className: 'tooltip-content', children: clickflow ? clickFlowWithButtons : content })] }), showCloseIcon && (0, jsx_runtime_1.jsx)("span", { className: 'tooltip-close rioglyph rioglyph-remove' })] }) }));
20
18
  const actualPopperConfig = popperConfig || {
21
19
  strategy: 'fixed',
22
20
  modifiers: [
@@ -29,7 +27,7 @@ const OnboardingTip = (props) => {
29
27
  { name: 'arrow', options: {} },
30
28
  ],
31
29
  };
32
- const trigger = ((0, jsx_runtime_1.jsx)(OverlayTrigger_1.default, Object.assign({ placement: placement, trigger: 'click', overlay: overlay, onToggle: onHide, show: show, rootClose: false, popperConfig: actualPopperConfig }, { children: children })));
30
+ const trigger = ((0, jsx_runtime_1.jsx)(OverlayTrigger_1.default, { placement: placement, trigger: 'click', overlay: overlay, onToggle: onHide, show: show, rootClose: false, popperConfig: actualPopperConfig, children: children }));
33
31
  return show ? trigger : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
34
32
  };
35
33
  OnboardingTip.AUTO_START = Placement_1.PLACEMENT.AUTO_START;