@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
@@ -101,7 +101,7 @@ export const NavItems = (props) => {
101
101
  }
102
102
  };
103
103
  const renderNavItem = (navItem, isItemOffscreen) => {
104
- return (_jsx("li", Object.assign({ className: `submodule ${isItemOffscreen ? 'offscreen' : ''}`, "data-nav-item-key": navItem.key }, { children: navItem.route }), navItem.key));
104
+ return (_jsx("li", { className: `submodule ${isItemOffscreen ? 'offscreen' : ''}`, "data-nav-item-key": navItem.key, children: navItem.route }, navItem.key));
105
105
  };
106
106
  const renderNavItems = () => {
107
107
  if (!isOffscreen.current && !isEmpty(collapsedNavItems)) {
@@ -117,6 +117,6 @@ export const NavItems = (props) => {
117
117
  // the computation whether a navItem need to be shown under the collapsed dropdown or not
118
118
  // needs to be done after the component did mount to the DOM.
119
119
  const classes = classNames('SubmoduleNavigation', 'nav');
120
- return (_jsx("ul", Object.assign({ className: classes, ref: navigationRef }, { children: renderNavItems() })));
120
+ return (_jsx("ul", { className: classes, ref: navigationRef, children: renderNavItems() }));
121
121
  };
122
122
  export default NavItems;
@@ -1,4 +1,3 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
2
  /* eslint-disable import/order */
4
3
  import { forwardRef, } from 'react';
@@ -7,14 +6,13 @@ import ApplicationLayoutHeader from './ApplicationLayoutHeader';
7
6
  import ApplicationLayoutSidebar from './ApplicationLayoutSidebar';
8
7
  import ApplicationLayoutBody from './ApplicationLayoutBody';
9
8
  import { initDocumentBootstrapping } from '../../utils/init/initDocumentBootstrapping';
10
- import '../../utils/init/initConfig';
11
9
  // initializes document bootstrapping - keep the import to avoid being tree-shaken
12
10
  // noinspection JSIgnoredPromiseFromCall
13
11
  initDocumentBootstrapping();
14
12
  const ApplicationLayout = forwardRef((props, ref) => {
15
- const { className, layoutRef, children } = props, remainingProps = __rest(props, ["className", "layoutRef", "children"]);
13
+ const { className, layoutRef, children, ...remainingProps } = props;
16
14
  const classes = classNames('ApplicationLayout', className);
17
- return (_jsx("div", Object.assign({}, remainingProps, { ref: ref || layoutRef, className: classes }, { children: children })));
15
+ return (_jsx("div", { ...remainingProps, ref: ref || layoutRef, className: classes, children: children }));
18
16
  });
19
17
  ApplicationLayout.Header = ApplicationLayoutHeader;
20
18
  ApplicationLayout.Sidebar = ApplicationLayoutSidebar;
@@ -45,6 +45,6 @@ export type ApplicationLayoutBodyProps = {
45
45
  className?: string;
46
46
  };
47
47
  declare const ApplicationLayoutBody: React.ForwardRefExoticComponent<ApplicationLayoutBodyProps & {
48
- children?: React.ReactNode;
48
+ children?: React.ReactNode | undefined;
49
49
  } & React.RefAttributes<HTMLDivElement>>;
50
50
  export default ApplicationLayoutBody;
@@ -1,4 +1,3 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import React, { useState, useRef, useEffect, forwardRef, useImperativeHandle, } from 'react';
4
3
  import debounce from 'lodash/fp/debounce';
@@ -7,11 +6,14 @@ import SmoothScrollbars from '../smoothScrollbars/SmoothScrollbars';
7
6
  const RESIZE_THROTTLING = 200;
8
7
  const DEFAULT_BOTTOM_BAR_HEIGHT = 54;
9
8
  const ApplicationLayoutBody = forwardRef((props, ref) => {
10
- const { className, innerClassName, forceScrollbar = true, enableScrollToTop = true, banner, navigation, bottomBar, bottomBarHeight = DEFAULT_BOTTOM_BAR_HEIGHT, scrollResetTrigger, children } = props, remainingProps = __rest(props, ["className", "innerClassName", "forceScrollbar", "enableScrollToTop", "banner", "navigation", "bottomBar", "bottomBarHeight", "scrollResetTrigger", "children"]);
9
+ const { className, innerClassName, forceScrollbar = true, enableScrollToTop = true, banner, navigation, bottomBar, bottomBarHeight = DEFAULT_BOTTOM_BAR_HEIGHT, scrollResetTrigger, children, ...remainingProps } = props;
11
10
  const [offset, setOffset] = useState(0);
12
11
  const moduleContentRef = useRef(null);
13
12
  const layoutBodyRef = useRef(null);
14
- useImperativeHandle(ref, () => layoutBodyRef, []);
13
+ // Use imperative handle to expose the internal layout ref. Usually this is used to
14
+ // expose internal function without exposing the underlying DOM element.
15
+ // In this case however, we want access to the element to trigger functions like scrollIntoView()
16
+ useImperativeHandle(ref, () => layoutBodyRef?.current, []);
15
17
  // Reset scroll position when children are different. This fixes the issue of
16
18
  // changing body content (like in another route) and still having the same scroll position
17
19
  // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
@@ -22,8 +24,7 @@ const ApplicationLayoutBody = forwardRef((props, ref) => {
22
24
  }
23
25
  }, [scrollResetTrigger]);
24
26
  useEffect(() => {
25
- var _a;
26
- if (((_a = layoutBodyRef.current) === null || _a === void 0 ? void 0 : _a.parentNode) instanceof HTMLElement) {
27
+ if (layoutBodyRef.current?.parentNode instanceof HTMLElement) {
27
28
  layoutBodyRef.current.parentNode.style.setProperty('--ApplicationLayoutBodyBottomBarHeight', `${bottomBarHeight}px`);
28
29
  }
29
30
  }, [bottomBarHeight]);
@@ -33,16 +34,15 @@ const ApplicationLayoutBody = forwardRef((props, ref) => {
33
34
  }
34
35
  });
35
36
  const handleToTop = () => {
36
- var _a;
37
37
  if (!moduleContentRef.current) {
38
38
  return;
39
39
  }
40
40
  const scrollWrapper = moduleContentRef.current.container;
41
41
  const scrollingElement = scrollWrapper.firstElementChild;
42
- const currentScroll = (_a = scrollingElement === null || scrollingElement === void 0 ? void 0 : scrollingElement.scrollTop) !== null && _a !== void 0 ? _a : 0;
42
+ const currentScroll = scrollingElement?.scrollTop ?? 0;
43
43
  if (currentScroll > 0) {
44
44
  window.requestAnimationFrame(handleToTop);
45
- scrollingElement === null || scrollingElement === void 0 ? void 0 : scrollingElement.scrollTo(0, currentScroll - currentScroll / 5);
45
+ scrollingElement?.scrollTo(0, currentScroll - currentScroll / 5);
46
46
  scrollWrapper.classList.add('is-scrolling-to-top');
47
47
  setOffset(currentScroll);
48
48
  }
@@ -54,6 +54,6 @@ const ApplicationLayoutBody = forwardRef((props, ref) => {
54
54
  const innerClasses = classNames('module-content', innerClassName && innerClassName);
55
55
  const offsetThreshold = window.innerHeight * 0.1;
56
56
  const scrollToTopClasses = classNames('scroll-to-top', offset > offsetThreshold && 'in');
57
- return (_jsxs(React.Fragment, { children: [_jsxs("div", Object.assign({}, remainingProps, { ref: layoutBodyRef, className: classes }, { children: [_jsxs("div", Object.assign({ className: 'module-content-wrapper' }, { children: [navigation && navigation, banner && banner, _jsx(SmoothScrollbars, Object.assign({ ref: moduleContentRef, slideIn: !forceScrollbar, largeTrack: true, trackOffset: true, className: innerClasses, onScroll: handleScroll }, { children: children }))] })), enableScrollToTop && (_jsx("span", Object.assign({ className: scrollToTopClasses }, { children: _jsx("button", Object.assign({ type: 'button', className: 'btn btn-primary btn-icon-only', onClick: handleToTop }, { children: _jsx("span", { className: 'rioglyph rioglyph-arrow-up' }) })) })))] })), bottomBar && bottomBar] }));
57
+ return (_jsxs(React.Fragment, { children: [_jsxs("div", { ...remainingProps, ref: layoutBodyRef, className: classes, children: [_jsxs("div", { className: 'module-content-wrapper', children: [navigation && navigation, banner && banner, _jsx(SmoothScrollbars, { ref: moduleContentRef, slideIn: !forceScrollbar, largeTrack: true, trackOffset: true, className: innerClasses, onScroll: handleScroll, children: _jsx("div", { className: 'scrollbar-content', children: children }) })] }), enableScrollToTop && (_jsx("span", { className: scrollToTopClasses, children: _jsx("button", { type: 'button', className: 'btn btn-primary btn-icon-only', onClick: handleToTop, children: _jsx("span", { className: 'rioglyph rioglyph-arrow-up' }) }) }))] }), bottomBar && bottomBar] }));
58
58
  });
59
59
  export default ApplicationLayoutBody;
@@ -21,6 +21,6 @@ export type ApplicationLayoutBodyBannerProps = {
21
21
  className?: string;
22
22
  };
23
23
  declare const ApplicationLayoutBodyBanner: React.ForwardRefExoticComponent<ApplicationLayoutBodyBannerProps & {
24
- children?: React.ReactNode;
24
+ children?: React.ReactNode | undefined;
25
25
  } & React.RefAttributes<HTMLDivElement>>;
26
26
  export default ApplicationLayoutBodyBanner;
@@ -1,12 +1,11 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { forwardRef } from 'react';
4
3
  import classNames from 'classnames';
5
4
  const DEFAULT_TEXT_COLOR = 'text-color-white';
6
5
  const DEFAULT_BACKGROUND_COLOR = 'bg-primary';
7
6
  const ApplicationLayoutBodyBanner = forwardRef((props, ref) => {
8
- const { textColor = DEFAULT_TEXT_COLOR, backgroundColor = DEFAULT_BACKGROUND_COLOR, isSticky = true, className, children } = props, remainingProps = __rest(props, ["textColor", "backgroundColor", "isSticky", "className", "children"]);
7
+ const { textColor = DEFAULT_TEXT_COLOR, backgroundColor = DEFAULT_BACKGROUND_COLOR, isSticky = true, className, children, ...remainingProps } = props;
9
8
  const bannerClasses = classNames('ApplicationLayoutBodyBanner', textColor, backgroundColor, isSticky && 'position-sticky top-0 z-index-3', className);
10
- return (_jsx("div", Object.assign({}, remainingProps, { ref: ref, className: bannerClasses }, { children: children })));
9
+ return (_jsx("div", { ...remainingProps, ref: ref, className: bannerClasses, children: children }));
11
10
  });
12
11
  export default ApplicationLayoutBodyBanner;
@@ -1,11 +1,10 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { forwardRef, } from 'react';
4
3
  import classNames from 'classnames';
5
4
  const ApplicationLayoutBodyBottomBar = forwardRef((props, ref) => {
6
- const { className, buttonAlignment, useBodyPaddings = false, children } = props, remainingProps = __rest(props, ["className", "buttonAlignment", "useBodyPaddings", "children"]);
5
+ const { className, buttonAlignment, useBodyPaddings = false, children, ...remainingProps } = props;
7
6
  const classes = classNames('ApplicationLayoutBodyBottomBar', buttonAlignment === 'left' && 'justify-content-start', buttonAlignment === 'right' && 'justify-content-end', buttonAlignment !== 'left' && buttonAlignment !== 'right' && 'justify-content-between', useBodyPaddings && 'use-body-padding', className && className);
8
- return (_jsx("div", Object.assign({ ref: ref }, remainingProps, { className: classes }, { children: children })));
7
+ return (_jsx("div", { ref: ref, ...remainingProps, className: classes, children: children }));
9
8
  });
10
9
  ApplicationLayoutBodyBottomBar.LEFT = 'left';
11
10
  ApplicationLayoutBodyBottomBar.RIGHT = 'right';
@@ -6,6 +6,6 @@ export type ApplicationLayoutBodyNavigationProps = {
6
6
  className?: string;
7
7
  };
8
8
  declare const ApplicationLayoutBodyNavigation: React.ForwardRefExoticComponent<ApplicationLayoutBodyNavigationProps & {
9
- children?: React.ReactNode;
9
+ children?: React.ReactNode | undefined;
10
10
  } & React.RefAttributes<HTMLDivElement>>;
11
11
  export default ApplicationLayoutBodyNavigation;
@@ -1,10 +1,9 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { forwardRef } from 'react';
4
3
  import classNames from 'classnames';
5
4
  const ApplicationLayoutBodyNavigation = forwardRef((props, ref) => {
6
- const { className, children } = props, remainingProps = __rest(props, ["className", "children"]);
5
+ const { className, children, ...remainingProps } = props;
7
6
  const navigationClasses = classNames('ApplicationLayoutBodyNavigation', className);
8
- return (_jsx("div", Object.assign({ ref: ref }, remainingProps, { className: navigationClasses }, { children: children })));
7
+ return (_jsx("div", { ref: ref, ...remainingProps, className: navigationClasses, children: children }));
9
8
  });
10
9
  export default ApplicationLayoutBodyNavigation;
@@ -6,6 +6,6 @@ export type ApplicationLayoutHeaderProps = {
6
6
  className?: string;
7
7
  };
8
8
  declare const ApplicationLayoutHeader: React.ForwardRefExoticComponent<ApplicationLayoutHeaderProps & {
9
- children?: React.ReactNode;
9
+ children?: React.ReactNode | undefined;
10
10
  } & React.RefAttributes<HTMLDivElement>>;
11
11
  export default ApplicationLayoutHeader;
@@ -1,10 +1,9 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { forwardRef } from 'react';
4
3
  import classNames from 'classnames';
5
4
  const ApplicationLayoutHeader = forwardRef((props, ref) => {
6
- const { className, children } = props, remainingProps = __rest(props, ["className", "children"]);
5
+ const { className, children, ...remainingProps } = props;
7
6
  const classes = classNames('ApplicationLayoutHeader', className);
8
- return (_jsx("div", Object.assign({ ref: ref }, remainingProps, { className: classes, id: 'ApplicationLayoutHeader' }, { children: children })));
7
+ return (_jsx("div", { ref: ref, ...remainingProps, className: classes, id: 'ApplicationLayoutHeader', children: children }));
9
8
  });
10
9
  export default ApplicationLayoutHeader;
@@ -6,6 +6,6 @@ export type ApplicationLayoutSidebarProps = {
6
6
  className?: string;
7
7
  };
8
8
  declare const ApplicationLayoutSidebar: React.ForwardRefExoticComponent<ApplicationLayoutSidebarProps & {
9
- children?: React.ReactNode;
9
+ children?: React.ReactNode | undefined;
10
10
  } & React.RefAttributes<HTMLDivElement>>;
11
11
  export default ApplicationLayoutSidebar;
@@ -1,10 +1,9 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { forwardRef } from 'react';
4
3
  import classNames from 'classnames';
5
4
  const ApplicationLayoutSidebar = forwardRef((props, ref) => {
6
- const { className, children } = props, remainingProps = __rest(props, ["className", "children"]);
5
+ const { className, children, ...remainingProps } = props;
7
6
  const classes = classNames('ApplicationLayoutSidebar', className);
8
- return (_jsx("div", Object.assign({ ref: ref }, remainingProps, { className: classes }, { children: children })));
7
+ return (_jsx("div", { ref: ref, ...remainingProps, className: classes, children: children }));
9
8
  });
10
9
  export default ApplicationLayoutSidebar;
@@ -1,10 +1,9 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { forwardRef } from 'react';
4
3
  import classNames from 'classnames';
5
4
  const SubNavigation = forwardRef((props, ref) => {
6
- const { className, navItems = [] } = props, remainingProps = __rest(props, ["className", "navItems"]);
5
+ const { className, navItems = [], ...remainingProps } = props;
7
6
  const navigationClasses = classNames('SubNavigation', 'width-100pct overflow-auto', className);
8
- return (_jsx("div", Object.assign({ ref: ref }, remainingProps, { className: navigationClasses }, { children: _jsx("ul", Object.assign({ className: 'SubmoduleNavigation nav' }, { children: navItems.map(navItem => (_jsx("li", Object.assign({ className: 'submodule', "data-nav-item-key": navItem.key }, { children: navItem.route }), navItem.key))) })) })));
7
+ return (_jsx("div", { ref: ref, ...remainingProps, className: navigationClasses, children: _jsx("ul", { className: 'SubmoduleNavigation nav', children: navItems.map(navItem => (_jsx("li", { className: 'submodule', "data-nav-item-key": navItem.key, children: navItem.route }, navItem.key))) }) }));
9
8
  });
10
9
  export default SubNavigation;
@@ -1,8 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
2
  const AspectRatioPlaceholder = (props) => {
5
3
  const { width = 16, height = 9, className = '', children } = props;
6
- return (_jsx("div", Object.assign({ className: `position-relative ${className}`, style: { aspectRatio: `${width} / ${height}` } }, { children: children })));
4
+ return (_jsx("div", { className: `position-relative ${className}`, style: { aspectRatio: `${width} / ${height}` }, children: children }));
7
5
  };
8
6
  export default AspectRatioPlaceholder;
@@ -80,6 +80,6 @@ export type AssetTreeProps = {
80
80
  className?: string;
81
81
  };
82
82
  declare const AssetTree: React.MemoExoticComponent<React.ForwardRefExoticComponent<AssetTreeProps & {
83
- children?: React.ReactNode;
83
+ children?: React.ReactNode | undefined;
84
84
  } & React.RefAttributes<HTMLDivElement>>>;
85
85
  export default AssetTree;
@@ -1,4 +1,3 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import React, { memo, useState, useRef, forwardRef } from 'react';
4
3
  import classNames from 'classnames';
@@ -20,14 +19,14 @@ const TreeMode = {
20
19
  MODE_FLY: 'fly',
21
20
  MODE_FLUID: 'fluid',
22
21
  };
23
- const getSidebarBodyRef = (sidebarRef) => { var _a; return head((_a = sidebarRef === null || sidebarRef === void 0 ? void 0 : sidebarRef.current) === null || _a === void 0 ? void 0 : _a.getElementsByClassName('AssetTreeBody')); };
22
+ const getSidebarBodyRef = (sidebarRef) => head(sidebarRef?.current?.getElementsByClassName('AssetTreeBody'));
24
23
  const getCurrentCategoryElement = (children, currentCategoryId) => {
25
24
  return isArray(children) ? children.find(child => child && child.props.id === currentCategoryId) : children;
26
25
  };
27
26
  const renderTreesOffscreen = (children, categoryId) => {
28
27
  return React.Children.map(children, child => {
29
28
  const offscreenClasses = classNames('TreeOffscreenWrapper', child && child.props.id !== categoryId && 'position-offscreen pointer-events-none');
30
- return _jsx("div", Object.assign({ className: offscreenClasses }, { children: child }));
29
+ return _jsx("div", { className: offscreenClasses, children: child });
31
30
  });
32
31
  };
33
32
  // Check if the child is a React element and if it has the type TreeCategory
@@ -35,7 +34,7 @@ const isTreeCategory = (child) => {
35
34
  return React.isValidElement(child) && child.type === TreeCategory;
36
35
  };
37
36
  const AssetTree = memo(forwardRef((props, ref) => {
38
- const { className, resizable = true, width = DEFAULT_WIDTH, minWidth = DEFAULT_MIN_WIDTH, maxWidth = DEFAULT_MAX_WIDTH, height, bordered = false, currentCategoryId, isOpen = true, useOffscreen = false, fly = false, onCategoryChange = noop, onToggleTree = noop, onResizeEnd = noop, children = [] } = props, remainingProps = __rest(props, ["className", "resizable", "width", "minWidth", "maxWidth", "height", "bordered", "currentCategoryId", "isOpen", "useOffscreen", "fly", "onCategoryChange", "onToggleTree", "onResizeEnd", "children"]);
37
+ const { className, resizable = true, width = DEFAULT_WIDTH, minWidth = DEFAULT_MIN_WIDTH, maxWidth = DEFAULT_MAX_WIDTH, height, bordered = false, currentCategoryId, isOpen = true, useOffscreen = false, fly = false, onCategoryChange = noop, onToggleTree = noop, onResizeEnd = noop, children = [], ...remainingProps } = props;
39
38
  const getSidebarMode = (isFly) => (isFly ? TreeMode.MODE_FLY : TreeMode.MODE_FLUID);
40
39
  const [treeWidth, setTreeWidth] = useState(width);
41
40
  const [isResize, setIsResize] = useState(false);
@@ -101,7 +100,7 @@ const AssetTree = memo(forwardRef((props, ref) => {
101
100
  setIsResize(false);
102
101
  onResizeEnd();
103
102
  };
104
- return (_jsxs("div", Object.assign({}, remainingProps, { className: classes, style: style, ref: mergedRefs }, { children: [_jsx("div", { className: resizeLimitClasses, style: resizeLimitStyle }), _jsxs("div", Object.assign({ className: 'AssetTreeContent' }, { children: [_jsx(TreeSidebar, Object.assign({ onSelectCategory: handleSelectCategory, currentCategoryId: currentCategoryId, onClick: handleToggleTreeContent }, { children: isArray(children) ? children : [children] })), _jsx(SmoothScrollbars, Object.assign({ slideIn: true, className: 'AssetTreeBody' }, { children: useOffscreen ? renderTreesOffscreen(childrenArray, currentCategoryId) : category }))] })), resizable && isOpen && (_jsx(Resizer, { onResizeStart: handleResizeStart, onResize: handleResize, onResizeEnd: handleResizeEnd, direction: Resizer.HORIZONTAL, position: Resizer.RIGHT }))] })));
103
+ return (_jsxs("div", { ...remainingProps, className: classes, style: style, ref: mergedRefs, children: [_jsx("div", { className: resizeLimitClasses, style: resizeLimitStyle }), _jsxs("div", { className: 'AssetTreeContent', children: [_jsx(TreeSidebar, { onSelectCategory: handleSelectCategory, currentCategoryId: currentCategoryId, onClick: handleToggleTreeContent, children: isArray(children) ? children : [children] }), _jsx(SmoothScrollbars, { slideIn: true, className: 'AssetTreeBody', children: useOffscreen ? renderTreesOffscreen(childrenArray, currentCategoryId) : category })] }), resizable && isOpen && (_jsx(Resizer, { onResizeStart: handleResizeStart, onResize: handleResize, onResizeEnd: handleResizeEnd, direction: Resizer.HORIZONTAL, position: Resizer.RIGHT }))] }));
105
104
  }));
106
105
  Object.assign(AssetTree, TreeMode);
107
106
  export default AssetTree;
@@ -45,12 +45,12 @@ export type TreeItem = {
45
45
  */
46
46
  info?: string | React.ReactNode;
47
47
  /**
48
- * The type of an item which is also the name of the respective rioplyph icon without the prefix
48
+ * The type of an item which is also the name of the respective rioglyph icon without the prefix
49
49
  * `rioglyph-`.
50
50
  */
51
51
  type: string;
52
52
  /**
53
- * The sub type of an item which is also the name of the respective rioplyph icon without the prefix.
53
+ * The sub type of an item which is also the name of the respective rioglyph icon without the prefix.
54
54
  * This could be used to show a secondary paired icon like for fuel type.
55
55
  */
56
56
  subType?: string;
@@ -1,4 +1,3 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  /* eslint-disable no-use-before-define */
4
3
  import React, { useEffect, useReducer, useRef, useState } from 'react';
@@ -38,7 +37,7 @@ const filterProps = omit([
38
37
  ]);
39
38
  const customCompare = (prevProps, nextProps) => isEqual(filterProps(prevProps), filterProps(nextProps));
40
39
  const Tree = React.memo((props) => {
41
- const { groups = [], items = [], selectedGroups = [], selectedItems = [], onSelectionChange = noop, hasMultiselect = true, showRadioButtons = false, hideSearch = false, hideTreeHead, treeHeaderContent, summary, hideSummary = false, search, searchPlaceholder = 'Type here to filter by name', onSearchChange = noop, className, scrollHeight, expandedGroups, onExpandGroupsChange = noop, showEmptyGroups = true, treeOptions = [], treeOptionsTooltip, disableAnimation = false } = props, remainingProps = __rest(props, ["groups", "items", "selectedGroups", "selectedItems", "onSelectionChange", "hasMultiselect", "showRadioButtons", "hideSearch", "hideTreeHead", "treeHeaderContent", "summary", "hideSummary", "search", "searchPlaceholder", "onSearchChange", "className", "scrollHeight", "expandedGroups", "onExpandGroupsChange", "showEmptyGroups", "treeOptions", "treeOptionsTooltip", "disableAnimation"]);
40
+ const { groups = [], items = [], selectedGroups = [], selectedItems = [], onSelectionChange = noop, hasMultiselect = true, showRadioButtons = false, hideSearch = false, hideTreeHead, treeHeaderContent, summary, hideSummary = false, search, searchPlaceholder = 'Type here to filter by name', onSearchChange = noop, className, scrollHeight, expandedGroups, onExpandGroupsChange = noop, showEmptyGroups = true, treeOptions = [], treeOptionsTooltip, disableAnimation = false, ...remainingProps } = props;
42
41
  const [state, dispatch] = useReducer(treeReducer, {
43
42
  groupedItems: [],
44
43
  flatItems: [],
@@ -118,7 +117,7 @@ const Tree = React.memo((props) => {
118
117
  };
119
118
  const handleToggleNode = (nodeId) => {
120
119
  const nodeContainer = getNodeContainerDomElementById(nodeId);
121
- if (!(internalExpandedGroups === null || internalExpandedGroups === void 0 ? void 0 : internalExpandedGroups.current) || !nodeContainer) {
120
+ if (!internalExpandedGroups?.current || !nodeContainer) {
122
121
  return;
123
122
  }
124
123
  const openGroups = internalExpandedGroups.current;
@@ -136,8 +135,7 @@ const Tree = React.memo((props) => {
136
135
  onExpandGroupsChange(newExpandedNodes);
137
136
  };
138
137
  const getNodeContainerDomElementById = (nodeId) => {
139
- var _a;
140
- return (_a = treeRef === null || treeRef === void 0 ? void 0 : treeRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(`.TreeNodeContainer[data-id="${nodeId}"]`);
138
+ return treeRef?.current?.querySelector(`.TreeNodeContainer[data-id="${nodeId}"]`);
141
139
  };
142
140
  const selectAllSearchResultItems = (shouldSelect) => selectAllFlatItems(shouldSelect);
143
141
  const handleSelectAll = (shouldSelect, isStateIndeterminate) => {
@@ -167,7 +165,7 @@ const Tree = React.memo((props) => {
167
165
  : excludeFromList(selectedGroups, groupId);
168
166
  // deselect all items of a node since they will be selected inherently via the group itself
169
167
  const itemsInGroup = find((entry) => entry.id === groupId)(state.groupedItems);
170
- const itemIdsOfGroup = map((item) => item.id)(itemsInGroup === null || itemsInGroup === void 0 ? void 0 : itemsInGroup.items);
168
+ const itemIdsOfGroup = map((item) => item.id)(itemsInGroup?.items);
171
169
  const updatedSelectedItems = without(itemIdsOfGroup, selectedItems);
172
170
  // check if all groups are selected to change the state of TreeSelectAll
173
171
  const groupAmount = groups.length;
@@ -226,14 +224,13 @@ const Tree = React.memo((props) => {
226
224
  return _jsx(TreeNothingFound, {});
227
225
  }
228
226
  const result = map((group) => {
229
- var _a, _b;
230
227
  const groupId = group.id;
231
228
  const groupItems = group.items;
232
- const isOpen = (_b = (_a = internalExpandedGroups.current) === null || _a === void 0 ? void 0 : _a.includes(groupId)) !== null && _b !== void 0 ? _b : false;
229
+ const isOpen = internalExpandedGroups.current?.includes(groupId) ?? false;
233
230
  const numSelectedGroupItems = filter(containsItemById(selectedItems))(groupItems).length;
234
231
  const isGroupSelected = selectedGroups.includes(groupId);
235
232
  const isStateIndeterminate = !isGroupSelected && numSelectedGroupItems > 0;
236
- return (_jsxs(TreeNodeContainer, Object.assign({ groupId: groupId, isOpen: isOpen, disableAnimation: disableAnimation }, { children: [_jsx(TreeNode, { node: group, hasMultiselect: hasMultiselect, onToggleNode: handleToggleNode, onSelect: handleGroupSelection, isSelected: isGroupSelected, isIndeterminate: isStateIndeterminate }), _jsx(TreeLeafList, { leafList: groupItems, hasMultiselect: hasMultiselect, showRadioButtons: showRadioButtons, selectedItems: selectedItems, selectedGroups: selectedGroups, onSelectionChange: respondSelection })] }), groupId));
233
+ return (_jsxs(TreeNodeContainer, { groupId: groupId, isOpen: isOpen, disableAnimation: disableAnimation, children: [_jsx(TreeNode, { node: group, hasMultiselect: hasMultiselect, onToggleNode: handleToggleNode, onSelect: handleGroupSelection, isSelected: isGroupSelected, isIndeterminate: isStateIndeterminate }), _jsx(TreeLeafList, { leafList: groupItems, hasMultiselect: hasMultiselect, showRadioButtons: showRadioButtons, selectedItems: selectedItems, selectedGroups: selectedGroups, onSelectionChange: respondSelection })] }, groupId));
237
234
  })(groupedItems);
238
235
  return result;
239
236
  };
@@ -241,7 +238,7 @@ const Tree = React.memo((props) => {
241
238
  const { flatItems } = state;
242
239
  const hasLeafs = isEmpty(flatItems);
243
240
  const getLeafs = () => (_jsx(TreeLeafList, { leafList: flatItems, hasMultiselect: hasMultiselect, showRadioButtons: showRadioButtons, selectedItems: selectedItems, selectedGroups: selectedGroups, onSelectionChange: respondSelection }));
244
- return (_jsx(TreeNodeContainer, Object.assign({ disableAnimation: disableAnimation, isOpen: true }, { children: hasLeafs ? _jsx(TreeNothingFound, {}) : getLeafs() })));
241
+ return (_jsx(TreeNodeContainer, { disableAnimation: disableAnimation, isOpen: true, children: hasLeafs ? _jsx(TreeNothingFound, {}) : getLeafs() }));
245
242
  };
246
243
  const hasExternalGroups = notEmpty(groups);
247
244
  const hasInternalSearchValue = () => notEmpty(state.searchValue);
@@ -273,8 +270,8 @@ const Tree = React.memo((props) => {
273
270
  const showSearch = !hideSearch;
274
271
  const showSummary = !hideSummary;
275
272
  const hasCustomSearch = !isNil(search);
276
- return (_jsxs("div", Object.assign({}, remainingProps, { className: treeClassNames, ref: treeRef }, { children: [_jsxs("div", Object.assign({ className: 'TreeHeader' }, { children: [treeHeaderContent, showSearch && !hasCustomSearch && (_jsx(TreeSearch, { value: state.searchValue, onChange: handleSearchChange, placeholder: searchPlaceholder })), hasCustomSearch && search, showTreeHead && (_jsxs("div", Object.assign({ className: treeHeadClasses }, { children: [showSelectAll && (_jsx("div", Object.assign({ className: 'border border-right-only hidden-empty padding-right-10 margin-right-2' }, { children: _jsx(TreeSelectAll, { isChecked: state.allChecked, isEnabled: hasMultiselect, isIndeterminate: isIndeterminate, onSelect: handleSelectAll }) }))), _jsx("div", Object.assign({ className: 'display-flex justify-content-between align-items-start width-100pct' }, { children: showSummary
273
+ return (_jsxs("div", { ...remainingProps, className: treeClassNames, ref: treeRef, children: [_jsxs("div", { className: 'TreeHeader', children: [treeHeaderContent, showSearch && !hasCustomSearch && (_jsx(TreeSearch, { value: state.searchValue, onChange: handleSearchChange, placeholder: searchPlaceholder })), hasCustomSearch && search, showTreeHead && (_jsxs("div", { className: treeHeadClasses, children: [showSelectAll && (_jsx("div", { className: 'border border-right-only hidden-empty padding-right-10 margin-right-2', children: _jsx(TreeSelectAll, { isChecked: state.allChecked, isEnabled: hasMultiselect, isIndeterminate: isIndeterminate, onSelect: handleSelectAll }) })), _jsx("div", { className: 'display-flex justify-content-between align-items-start width-100pct', children: showSummary
277
274
  ? summary || (_jsx(TreeSummary, { children: map((typeCounter) => (_jsx(TypeCounter, { type: typeCounter, icon: `${typeCounter}`, value: state.assetCounts[typeCounter], onClick: handleFilterByType, isActive: state.typeFilter.includes(typeCounter), hasFilter: isFilterActive, enableActivity: enableActivity }, typeCounter)))(state.visibleTypeCounters) }))
278
- : null })), _jsx(TreeOptions, { treeOptions: treeOptions, treeOptionsTooltip: treeOptionsTooltip })] })))] })), _jsx(TreeRoot, Object.assign({ maxHeight: scrollHeight, disableAnimation: disableAnimation }, { children: content }))] })));
275
+ : null }), _jsx(TreeOptions, { treeOptions: treeOptions, treeOptionsTooltip: treeOptionsTooltip })] }))] }), _jsx(TreeRoot, { maxHeight: scrollHeight, disableAnimation: disableAnimation, children: content })] }));
279
276
  }, customCompare);
280
277
  export default Tree;
@@ -8,6 +8,6 @@ import RadioButton from '../radiobutton/RadioButton';
8
8
  const TreeLeaf = React.memo((props) => {
9
9
  const { item, hasMultiselect, showRadioButtons, isSelected, onSelectItem, onActiveItem } = props;
10
10
  const treeNodeClassNames = classNames('TreeLeaf', 'form-group margin-bottom-0', isSelected && 'active', item.className && item.className);
11
- return (_jsxs("div", Object.assign({ className: treeNodeClassNames, "data-key": item.id }, { children: [hasMultiselect && _jsx(Checkbox, { className: 'TreeCheckbox', checked: isSelected, onClick: onSelectItem }), !hasMultiselect && showRadioButtons && (_jsx(RadioButton, { className: 'TreeRadioButton', checked: isSelected, onChange: onSelectItem })), _jsxs("span", Object.assign({ className: 'TreeLabel TreeLabelName', onClick: onActiveItem }, { children: [!item.subType && _jsx("span", { className: `rioglyph rioglyph-${item.type}` }), item.subType && (_jsxs("span", Object.assign({ className: 'rioglyph-icon-pair' }, { children: [_jsx("span", { className: `rioglyph rioglyph-${item.type}` }), _jsx("span", { className: `rioglyph rioglyph-${item.subType}` })] }))), _jsxs("span", Object.assign({ className: 'TreeLabelNameText' }, { children: [_jsx("span", Object.assign({ className: 'TreeLabelNameTextHeadline' }, { children: isObject(item.name) ? (_jsxs(_Fragment, { children: [_jsx("span", Object.assign({ className: 'text-light margin-right-3' }, { children: item.name.firstName })), _jsx("span", { children: item.name.lastName })] })) : (item.name) })), item.info && _jsx("span", Object.assign({ className: 'TreeLabelNameTextSubline' }, { children: item.info }))] }))] }))] })));
11
+ return (_jsxs("div", { className: treeNodeClassNames, "data-key": item.id, children: [hasMultiselect && _jsx(Checkbox, { className: 'TreeCheckbox', checked: isSelected, onClick: onSelectItem }), !hasMultiselect && showRadioButtons && (_jsx(RadioButton, { className: 'TreeRadioButton', checked: isSelected, onChange: onSelectItem })), _jsxs("span", { className: 'TreeLabel TreeLabelName', onClick: onActiveItem, children: [!item.subType && _jsx("span", { className: `rioglyph rioglyph-${item.type}` }), item.subType && (_jsxs("span", { className: 'rioglyph-icon-pair', children: [_jsx("span", { className: `rioglyph rioglyph-${item.type}` }), _jsx("span", { className: `rioglyph rioglyph-${item.subType}` })] })), _jsxs("span", { className: 'TreeLabelNameText', children: [_jsx("span", { className: 'TreeLabelNameTextHeadline', children: isObject(item.name) ? (_jsxs(_Fragment, { children: [_jsx("span", { className: 'text-light margin-right-3', children: item.name.firstName }), _jsx("span", { children: item.name.lastName })] })) : (item.name) }), item.info && _jsx("span", { className: 'TreeLabelNameTextSubline', children: item.info })] })] })] }));
12
12
  });
13
13
  export default TreeLeaf;
@@ -1,6 +1,4 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
2
  import TreeLeaf from './TreeLeaf';
5
3
  import { excludeFromList } from './treeUtils';
6
4
  const TreeLeafList = (props) => {
@@ -6,6 +6,6 @@ const TreeNode = React.memo((props) => {
6
6
  const { node, hasMultiselect = false, isSelected = false, isIndeterminate = false, onToggleNode, onSelect } = props;
7
7
  const treeNodeClassNames = classNames('TreeNode', 'from-group', isSelected && 'checked', node.className && node.className);
8
8
  const hasChildren = !!node.items.length;
9
- return (_jsxs("div", Object.assign({ className: treeNodeClassNames, "data-key": node.id, onClick: () => hasChildren && onToggleNode(node.id) }, { children: [hasMultiselect && (_jsx(Checkbox, { className: 'TreeCheckbox', checked: isSelected, disabled: node.disabled, indeterminate: isIndeterminate, onClick: () => onSelect(node, isIndeterminate) })), _jsxs("span", Object.assign({ className: 'TreeLabel TreeLabelName' }, { children: [node.icon && _jsx("span", { className: `rioglyph ${node.icon}` }), _jsx("span", Object.assign({ className: 'TreeLabelNameText' }, { children: _jsx("span", Object.assign({ className: 'TreeLabelNameTextHeadline' }, { children: node.name })) })), _jsx("span", Object.assign({ className: 'TreeLabelCount label label-muted label-filled label-condensed' }, { children: node.items.length })), _jsx("span", { className: `TreeLabelExpander rioglyph rioglyph-chevron-down ${hasChildren ? '' : 'text-color-light'}` })] }))] })));
9
+ return (_jsxs("div", { className: treeNodeClassNames, "data-key": node.id, onClick: () => hasChildren && onToggleNode(node.id), children: [hasMultiselect && (_jsx(Checkbox, { className: 'TreeCheckbox', checked: isSelected, disabled: node.disabled, indeterminate: isIndeterminate, onClick: () => onSelect(node, isIndeterminate) })), _jsxs("span", { className: 'TreeLabel TreeLabelName', children: [node.icon && _jsx("span", { className: `rioglyph ${node.icon}` }), _jsx("span", { className: 'TreeLabelNameText', children: _jsx("span", { className: 'TreeLabelNameTextHeadline', children: node.name }) }), _jsx("span", { className: 'TreeLabelCount label label-muted label-filled label-condensed', children: node.items.length }), _jsx("span", { className: `TreeLabelExpander rioglyph rioglyph-chevron-down ${hasChildren ? '' : 'text-color-light'}` })] })] }));
10
10
  });
11
11
  export default TreeNode;
@@ -1,10 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
2
  import classNames from 'classnames';
5
3
  const TreeNodeContainer = (props) => {
6
4
  const { isOpen, groupId, disableAnimation, children } = props;
7
5
  const treeNodeContainerClasses = classNames('TreeNodeContainer', 'user-select-none overflow-hidden', isOpen && 'open');
8
- return (_jsx("div", Object.assign({ className: treeNodeContainerClasses, "data-id": groupId }, { children: children })));
6
+ return (_jsx("div", { className: treeNodeContainerClasses, "data-id": groupId, children: children }));
9
7
  };
10
8
  export default TreeNodeContainer;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  const TreeNothingFound = React.memo((props) => {
4
- return (_jsx("div", Object.assign({ className: `TreeTreeNothingFound display-flex justify-content-center text-size-20
5
- padding-top-25 margin-top-25 margin-bottom-25` }, { children: _jsx("span", { className: 'rioglyph rioglyph-looking-glass-man text-size-400pct text-color-light' }) })));
4
+ return (_jsx("div", { className: `TreeTreeNothingFound display-flex justify-content-center text-size-20
5
+ padding-top-25 margin-top-25 margin-bottom-25`, children: _jsx("span", { className: 'rioglyph rioglyph-looking-glass-man text-size-400pct text-color-light' }) }));
6
6
  });
7
7
  export default TreeNothingFound;
@@ -1,13 +1,10 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- // @ts-ignore-next-line importsNotUsedAsValues
4
- import 'react';
5
2
  import classNames from 'classnames';
6
3
  import noop from 'lodash/fp/noop';
7
4
  import Switch from '../switch/Switch';
8
5
  const TreeOption = (props) => {
9
- const { isChecked = false, className, label, onChange = noop } = props, remainingProps = __rest(props, ["isChecked", "className", "label", "onChange"]);
6
+ const { isChecked = false, className, label, onChange = noop, ...remainingProps } = props;
10
7
  const optionClasses = classNames('TreeOption', 'display-flex', 'justify-content-start', 'align-items-center', 'gap-10', 'cursor-pointer', className);
11
- return (_jsxs("div", Object.assign({}, remainingProps, { className: optionClasses, onClick: onChange }, { children: [_jsx("span", Object.assign({ className: 'flex-1-1' }, { children: label })), _jsx("span", Object.assign({ className: 'pointer-events-none scale-80' }, { children: _jsx(Switch, { keyName: 'TreeOption-switch', checked: isChecked }) }))] })));
8
+ return (_jsxs("div", { ...remainingProps, className: optionClasses, onClick: onChange, children: [_jsx("span", { className: 'flex-1-1', children: label }), _jsx("span", { className: 'pointer-events-none scale-80', children: _jsx(Switch, { keyName: 'TreeOption-switch', checked: isChecked }) })] }));
12
9
  };
13
10
  export default TreeOption;
@@ -1,6 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
2
  import classNames from 'classnames';
5
3
  import { isEmpty } from 'lodash';
6
4
  import ButtonDropdown from '../dropdown/ButtonDropdown';
@@ -11,10 +9,10 @@ const TreeOptions = (props) => {
11
9
  return null;
12
10
  }
13
11
  const dropdownClasses = classNames('display-flex flex-column gap-10', 'width-250', 'padding-15', className);
14
- const customDropdown = _jsx("div", Object.assign({ className: dropdownClasses }, { children: treeOptions }));
12
+ const customDropdown = _jsx("div", { className: dropdownClasses, children: treeOptions });
15
13
  const dropdown = (_jsx(ButtonDropdown, { title: _jsx("span", { className: 'rioglyph rioglyph-option-vertical', "aria-hidden": 'true' }), bsStyle: 'default', bsSize: 'sm', customDropdown: customDropdown, toggleClassName: 'hover-bg-white border-none text-color-gray hover-text-color-dark', className: 'TreeHeaderOptions height-20', pullRight: true, iconOnly: true }));
16
14
  if (treeOptionsTooltip) {
17
- return (_jsx(SimpleTooltip, Object.assign({ content: treeOptionsTooltip, placement: 'bottom-end', delay: { show: 1000, hide: 0 }, popperConfig: {
15
+ return (_jsx(SimpleTooltip, { content: treeOptionsTooltip, placement: 'bottom-end', delay: { show: 1000, hide: 0 }, popperConfig: {
18
16
  modifiers: [
19
17
  {
20
18
  name: 'offset',
@@ -27,7 +25,7 @@ const TreeOptions = (props) => {
27
25
  options: {},
28
26
  },
29
27
  ],
30
- } }, { children: _jsx("div", { children: dropdown }) })));
28
+ }, children: _jsx("div", { children: dropdown }) }));
31
29
  }
32
30
  return dropdown;
33
31
  };
@@ -1,12 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
2
  import classNames from 'classnames';
5
3
  import { useAutoAnimate } from '@formkit/auto-animate/react';
6
4
  const TreeRoot = ({ maxHeight, disableAnimation, children }) => {
7
5
  const treeRootClasses = classNames('TreeRoot', 'user-select-none', maxHeight ? 'overflow-auto' : 'overflow-hidden');
8
6
  const [parent, enableAnimations] = useAutoAnimate();
9
7
  enableAnimations(!disableAnimation);
10
- return (_jsx("div", Object.assign({ ref: parent, className: treeRootClasses, style: { maxHeight } }, { children: children })));
8
+ return (_jsx("div", { ref: parent, className: treeRootClasses, style: { maxHeight }, children: children }));
11
9
  };
12
10
  export default TreeRoot;
@@ -7,6 +7,6 @@ import ClearableInput from '../clearableInput/ClearableInput';
7
7
  const TreeSearch = React.memo((props) => {
8
8
  const { value, className, placeholder, onChange = noop } = props;
9
9
  const classes = classNames('TreeSearch', className);
10
- return (_jsx("div", Object.assign({ className: classes }, { children: _jsxs("div", Object.assign({ className: 'input-group flex-1-0' }, { children: [_jsx("span", Object.assign({ className: 'input-group-addon' }, { children: _jsx("span", { className: 'rioglyph rioglyph-search', "aria-hidden": 'true' }) })), _jsx(ClearableInput, { value: value, onChange: onChange, placeholder: placeholder })] })) })));
10
+ return (_jsx("div", { className: classes, children: _jsxs("div", { className: 'input-group flex-1-0', children: [_jsx("span", { className: 'input-group-addon', children: _jsx("span", { className: 'rioglyph rioglyph-search', "aria-hidden": 'true' }) }), _jsx(ClearableInput, { value: value, onChange: onChange, placeholder: placeholder })] }) }));
11
11
  });
12
12
  export default TreeSearch;
@@ -1,12 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
2
  import noop from 'lodash/fp/noop';
5
3
  import Checkbox from '../checkbox/Checkbox';
6
4
  const TreeSelectAll = (props) => {
7
5
  const { isDisabled, isChecked = false, isEnabled = true, isIndeterminate = false, hasSearchResults = false, // needed?
8
6
  onSelect = noop, } = props;
9
7
  const handleSelectAll = (event) => onSelect(event.target.checked, isIndeterminate);
10
- return isEnabled ? (_jsx("div", Object.assign({ className: 'TreeSelectAll display-flex align-items-center' }, { children: _jsx(Checkbox, { checked: isChecked, onClick: handleSelectAll, disabled: isDisabled, indeterminate: isIndeterminate, className: 'margin-top--1' }) }))) : null;
8
+ return isEnabled ? (_jsx("div", { className: 'TreeSelectAll display-flex align-items-center', children: _jsx(Checkbox, { checked: isChecked, onClick: handleSelectAll, disabled: isDisabled, indeterminate: isIndeterminate, className: 'margin-top--1' }) })) : null;
11
9
  };
12
10
  export default TreeSelectAll;
@@ -1,12 +1,11 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import React from 'react';
4
3
  import noop from 'lodash/fp/noop';
5
4
  import classNames from 'classnames';
6
5
  import TreeSidebarCategories from './TreeSidebarCategories';
7
6
  const TreeSidebar = React.memo((props) => {
8
- const { className, onClick = noop } = props, remainingProps = __rest(props, ["className", "onClick"]);
7
+ const { className, onClick = noop, ...remainingProps } = props;
9
8
  const classes = classNames('TreeSidebar', className);
10
- return (_jsxs("div", Object.assign({ className: classes }, { children: [_jsx("ul", Object.assign({ className: 'TreeSidebarNavigation', onClick: onClick }, { children: _jsx(TreeSidebarCategories, Object.assign({}, remainingProps)) })), _jsx("div", Object.assign({ className: 'TreeSidebarToggle', onClick: onClick }, { children: _jsx("span", { className: 'rioglyph rioglyph-chevron-left' }) }))] })));
9
+ return (_jsxs("div", { className: classes, children: [_jsx("ul", { className: 'TreeSidebarNavigation', onClick: onClick, children: _jsx(TreeSidebarCategories, { ...remainingProps }) }), _jsx("div", { className: 'TreeSidebarToggle', onClick: onClick, children: _jsx("span", { className: 'rioglyph rioglyph-chevron-left' }) })] }));
11
10
  });
12
11
  export default TreeSidebar;
@@ -1,6 +1,4 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
2
  import classNames from 'classnames';
5
3
  import noop from 'lodash/fp/noop';
6
4
  import OverlayTrigger from '../overlay/OverlayTrigger';
@@ -22,10 +20,10 @@ const TreeSidebarCategories = (props) => {
22
20
  event.stopPropagation();
23
21
  onSelectCategory(id);
24
22
  };
25
- const category = (_jsx("li", Object.assign({ onClick: handleSelectCategory, className: statusClassName }, { children: _jsx("div", Object.assign({ className: 'selection-bubble' }, { children: _jsx("span", { className: `rioglyph ${icon}` }) })) }), id));
23
+ const category = (_jsx("li", { onClick: handleSelectCategory, className: statusClassName, children: _jsx("div", { className: 'selection-bubble', children: _jsx("span", { className: `rioglyph ${icon}` }) }) }, id));
26
24
  if (label) {
27
25
  const tooltip = _jsx("span", { children: label });
28
- return (_jsx(OverlayTrigger, Object.assign({ placement: Tooltip.RIGHT, delay: { show: TOOLTIP_DELAY, hide: 0 }, overlay: _jsx(Tooltip, Object.assign({ id: 'tooltip', width: 'auto' }, { children: tooltip })) }, { children: category }), `category-tooltip-${id}`));
26
+ return (_jsx(OverlayTrigger, { placement: Tooltip.RIGHT, delay: { show: TOOLTIP_DELAY, hide: 0 }, overlay: _jsx(Tooltip, { id: 'tooltip', width: 'auto', children: tooltip }), children: category }, `category-tooltip-${id}`));
29
27
  }
30
28
  return category;
31
29
  }) }));