@rio-cloud/rio-uikit 0.16.1-beta.21 → 0.16.1-beta.23

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 (728) hide show
  1. package/.DS_Store +0 -0
  2. package/DeviceUtils.js +1 -1
  3. package/GroupSelectionUtil.js +1 -1
  4. package/README.md +15 -0
  5. package/SortDirection.js +1 -1
  6. package/SortUtils.js +1 -1
  7. package/VolkswagenApplicationHeader.js +1 -1
  8. package/components/.DS_Store +0 -0
  9. package/components/actionBarItem/ActionBarItem.js +31 -49
  10. package/components/actionBarItem/ActionBarItemIcon.js +2 -3
  11. package/components/actionBarItem/ActionBarItemList.js +2 -3
  12. package/components/actionBarItem/ActionBarItemListItem.js +5 -6
  13. package/components/actionBarItem/ActionBarItemListSeparator.js +1 -2
  14. package/components/actionBarItem/ActionBarItemPopoverContent.js +2 -3
  15. package/components/actionBarItem/ActionBarOverlay.js +9 -14
  16. package/components/activity/Activity.js +6 -12
  17. package/components/animatedNumber/AnimatedNumber.js +11 -14
  18. package/components/applicationHeader/AppMenu.js +10 -12
  19. package/components/applicationHeader/AppMenuDropdown.js +8 -17
  20. package/components/applicationHeader/ApplicationActionBar.js +4 -5
  21. package/components/applicationHeader/ApplicationHeader.js +12 -17
  22. package/components/applicationHeader/MobileAppMenu.js +6 -9
  23. package/components/applicationHeader/MobileHeaderModal.js +5 -5
  24. package/components/applicationHeader/MobileSubmoduleNavigation.js +5 -8
  25. package/components/applicationHeader/NavItems.js +35 -44
  26. package/components/applicationLayout/ApplicationLayout.js +5 -5
  27. package/components/applicationLayout/ApplicationLayoutBody.js +12 -18
  28. package/components/applicationLayout/ApplicationLayoutBodyBanner.js +5 -6
  29. package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +4 -5
  30. package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +2 -3
  31. package/components/applicationLayout/ApplicationLayoutHeader.js +2 -3
  32. package/components/applicationLayout/ApplicationLayoutSidebar.js +2 -3
  33. package/components/applicationLayout/SubNavigation.js +3 -4
  34. package/components/assetTree/AssetTree.js +29 -51
  35. package/components/assetTree/Tree.js +56 -140
  36. package/components/assetTree/TreeCategory.js +0 -2
  37. package/components/assetTree/TreeLeaf.js +5 -5
  38. package/components/assetTree/TreeLeafList.js +5 -10
  39. package/components/assetTree/TreeNode.js +5 -5
  40. package/components/assetTree/TreeNodeContainer.js +2 -4
  41. package/components/assetTree/TreeOption.js +4 -7
  42. package/components/assetTree/TreeOptions.js +3 -7
  43. package/components/assetTree/TreeRoot.js +1 -3
  44. package/components/assetTree/TreeSearch.js +3 -3
  45. package/components/assetTree/TreeSelectAll.js +4 -8
  46. package/components/assetTree/TreeSidebar.js +4 -11
  47. package/components/assetTree/TreeSummary.js +6 -8
  48. package/components/assetTree/TypeCounter.js +8 -14
  49. package/components/autosuggest/AutoSuggest.js +31 -72
  50. package/components/bottomSheet/BottomSheet.js +20 -29
  51. package/components/browserWarning/BrowserWarning.js +9 -14
  52. package/components/browserWarning/BrowserWarningMessageDE.js +0 -2
  53. package/components/browserWarning/BrowserWarningMessageEN.js +0 -2
  54. package/components/button/Button.js +29 -29
  55. package/components/button/ToggleButton.js +0 -2
  56. package/components/carousel/Carousel.js +4 -1
  57. package/components/carousel/CarouselCaption.js +6 -15
  58. package/components/carousel/CarouselItem.js +9 -27
  59. package/components/charts/Area.js +0 -1
  60. package/components/charts/AreaChart.js +19 -23
  61. package/components/charts/AreaGradient.js +1 -3
  62. package/components/charts/Bar.js +0 -1
  63. package/components/charts/BarChart.js +21 -28
  64. package/components/charts/ChartNeedle.js +9 -15
  65. package/components/charts/ChartTooltip.js +0 -1
  66. package/components/charts/Legend.js +0 -1
  67. package/components/charts/Line.js +0 -1
  68. package/components/charts/LineChart.js +21 -24
  69. package/components/charts/PieChart.js +25 -29
  70. package/components/charts/RadialBarChart.js +26 -30
  71. package/components/charts/chartHelper.js +0 -5
  72. package/components/checkbox/Checkbox.js +26 -41
  73. package/components/clearableInput/ClearableInput.js +25 -42
  74. package/components/collapse/Collapse.js +6 -22
  75. package/components/contentLoader/ContentLoader.js +7 -17
  76. package/components/dataTabs/DataTab.js +6 -9
  77. package/components/dataTabs/DataTabs.js +20 -32
  78. package/components/datepicker/DatePicker.js +9 -16
  79. package/components/datepicker/DateRangePicker.js +104 -122
  80. package/components/dialog/ConfirmationDialog.js +10 -8
  81. package/components/dialog/Dialog.js +22 -35
  82. package/components/dialog/DialogBody.js +2 -5
  83. package/components/dialog/DialogFooter.js +2 -5
  84. package/components/dialog/DialogHeader.js +5 -8
  85. package/components/dialog/InfoDialog.js +2 -7
  86. package/components/dialog/MediaDialog.js +11 -30
  87. package/components/dialog/ReleaseNotesDialog.js +1 -7
  88. package/components/dialog/SaveDialog.js +7 -11
  89. package/components/dialog/SimpleDialog.js +3 -7
  90. package/components/dialog/SplitDialog.js +3 -8
  91. package/components/driverName/DriverName.js +2 -3
  92. package/components/dropdown/ButtonDropdown.js +32 -52
  93. package/components/dropdown/Caret.js +0 -2
  94. package/components/dropdown/DropdownSubmenu.js +4 -7
  95. package/components/dropdown/DropdownToggleButton.js +8 -11
  96. package/components/dropdown/SimpleButtonDropdown.js +0 -2
  97. package/components/dropdown/SingleButtonDropdown.js +0 -2
  98. package/components/dropdown/SplitButtonDropdown.js +0 -2
  99. package/components/dropdown/SplitCaretButton.js +3 -4
  100. package/components/expander/ExpanderList.js +15 -35
  101. package/components/expander/ExpanderPanel.js +22 -27
  102. package/components/fade/Fade.js +14 -19
  103. package/components/filepicker/FilePicker.js +17 -36
  104. package/components/listMenu/ListMenu.js +34 -65
  105. package/components/loadMore/LoadMoreButton.js +6 -7
  106. package/components/loadMore/LoadMoreProgress.js +1 -3
  107. package/components/map/.DS_Store +0 -0
  108. package/components/map/components/Map.js +56 -97
  109. package/components/map/components/features/ContextMenu.js +38 -48
  110. package/components/map/components/features/ContextMenuItem.js +2 -4
  111. package/components/map/components/features/MapSettings.js +6 -14
  112. package/components/map/components/features/Route.js +29 -51
  113. package/components/map/components/features/basics/Circle.js +9 -15
  114. package/components/map/components/features/basics/MapLayerGroup.js +9 -20
  115. package/components/map/components/features/basics/Polygon.js +6 -14
  116. package/components/map/components/features/basics/Polyline.js +15 -22
  117. package/components/map/components/features/basics/marker/DomMarker.js +2 -16
  118. package/components/map/components/features/basics/marker/Marker.js +9 -31
  119. package/components/map/components/features/basics/marker/TextMarker.js +6 -17
  120. package/components/map/components/features/layers/IncidentsLayer.js +0 -4
  121. package/components/map/components/features/layers/Layer.js +3 -5
  122. package/components/map/components/features/layers/MarkerLayer.js +5 -13
  123. package/components/map/components/features/layers/TrafficLayer.js +0 -4
  124. package/components/map/components/features/layers/TruckLayer.js +1 -4
  125. package/components/map/components/features/layers/baselayers/BaseLayer.js +6 -10
  126. package/components/map/components/features/layers/baselayers/DefaultLayer.js +3 -3
  127. package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +0 -3
  128. package/components/map/components/features/layers/baselayers/SatelliteLayer.js +0 -3
  129. package/components/map/components/features/layers/baselayers/TerrainLayer.js +0 -3
  130. package/components/map/components/features/layers/clustering/ClusterLayer.js +12 -19
  131. package/components/map/components/features/layers/clustering/SimpleClusterLayer.js +1 -8
  132. package/components/map/components/features/settings/MapSettingsItem.js +4 -6
  133. package/components/map/components/features/settings/MapSettingsPanel.js +1 -3
  134. package/components/map/components/features/settings/MapSettingsTile.js +11 -18
  135. package/components/map/components/features/settings/ZoomButtons.js +1 -3
  136. package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +3 -7
  137. package/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +4 -7
  138. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +2 -10
  139. package/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +2 -5
  140. package/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -5
  141. package/components/map/components/features/settings/buttons/MapLockMarkerButton.js +2 -5
  142. package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +2 -6
  143. package/components/map/components/features/settings/items/MapLayerIncidentsItem.js +3 -7
  144. package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +3 -7
  145. package/components/map/components/features/settings/items/MapLayerTrafficItem.js +3 -7
  146. package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +2 -6
  147. package/components/map/components/mapUtils.js +1 -26
  148. package/components/map/icons/MapIcon.js +9 -7
  149. package/components/map/utils/clustering.js +0 -9
  150. package/components/map/utils/eventHandling.js +0 -21
  151. package/components/map/utils/hooks.js +1 -3
  152. package/components/map/utils/localization.js +0 -8
  153. package/components/map/utils/positions.js +0 -12
  154. package/components/mapMarker/ClusterMapMarker.js +7 -14
  155. package/components/mapMarker/SingleMapMarker.js +13 -23
  156. package/components/menuItems/MenuItem.js +8 -17
  157. package/components/menuItems/MenuItems.js +3 -4
  158. package/components/menuItems/getMenuItems.js +0 -2
  159. package/components/navigation/AppNavigationBar.js +4 -5
  160. package/components/noData/NoData.js +5 -10
  161. package/components/notification/Notification.js +3 -1
  162. package/components/notification/NotificationsContainer.js +0 -2
  163. package/components/numberControl/NumberControl.js +30 -49
  164. package/components/numberInput/NumberInput.js +29 -39
  165. package/components/onboarding/OnboardingTip.js +17 -15
  166. package/components/overlay/OverlayTrigger.js +1 -2
  167. package/components/pager/Pager.js +13 -19
  168. package/components/popover/Popover.js +6 -7
  169. package/components/position/Position.js +2 -7
  170. package/components/preloader/ImagePreloader.js +12 -24
  171. package/components/radiobutton/RadioButton.js +25 -35
  172. package/components/releaseNotes/ReleaseNotes.js +3 -11
  173. package/components/resizer/Resizer.js +6 -26
  174. package/components/selects/BaseDropdownMenu.js +29 -61
  175. package/components/selects/DropdownHeader.js +2 -4
  176. package/components/selects/Multiselect.js +43 -63
  177. package/components/selects/Select.js +42 -57
  178. package/components/sidebars/Sidebar.js +46 -70
  179. package/components/slider/RangeSlider.js +40 -72
  180. package/components/slider/Slider.js +17 -26
  181. package/components/spinner/Spinner.js +9 -18
  182. package/components/states/CustomState.js +20 -30
  183. package/components/states/EmptyState.js +0 -2
  184. package/components/states/ErrorState.js +0 -2
  185. package/components/states/ForbiddenState.js +0 -2
  186. package/components/states/MaintenanceState.js +0 -2
  187. package/components/states/NotBookedState.js +2 -5
  188. package/components/states/NotFoundState.js +0 -2
  189. package/components/statsWidget/StatsWidget.js +4 -7
  190. package/components/statsWidget/StatsWidgetBody.js +3 -6
  191. package/components/statsWidget/StatsWidgetFooter.js +2 -5
  192. package/components/statsWidget/StatsWidgetHeader.js +2 -5
  193. package/components/statsWidget/StatsWidgetNumber.js +5 -8
  194. package/components/statsWidget/StatsWidgetSpacer.js +1 -4
  195. package/components/statsWidget/StatsWidgets.js +2 -5
  196. package/components/statusBar/StatusBar.js +19 -45
  197. package/components/steppedProgressBar/SteppedProgressBar.js +9 -16
  198. package/components/supportMarker/toggleSupportMarker.js +0 -4
  199. package/components/switch/Switch.js +12 -14
  200. package/components/table/TableCardsSorting.js +2 -13
  201. package/components/table/TableSearch.js +0 -2
  202. package/components/table/TableSettingsColumnButtons.js +7 -7
  203. package/components/table/TableSettingsColumnDetails.js +8 -12
  204. package/components/table/TableSettingsDialog.js +57 -94
  205. package/components/table/TableSettingsDialogFooter.js +12 -12
  206. package/components/table/TableSettingsListContainer.js +5 -9
  207. package/components/table/TableSettingsListItem.js +30 -36
  208. package/components/table/TableToolbar.js +1 -3
  209. package/components/table/TableViewToggles.js +16 -21
  210. package/components/tag/Tag.js +13 -15
  211. package/components/tag/TagList.js +4 -7
  212. package/components/tagManager/CustomSuggestionItem.js +1 -3
  213. package/components/tagManager/TagManager.js +27 -48
  214. package/components/tagManager/TagManagerItemList.js +1 -3
  215. package/components/teaser/Teaser.js +21 -42
  216. package/components/teaser/TeaserContainer.js +0 -11
  217. package/components/timepicker/TimePicker.js +10 -28
  218. package/components/tooltip/SimpleTooltip.js +5 -8
  219. package/components/tooltip/Tooltip.js +12 -18
  220. package/components/video/ResponsiveVideo.js +3 -5
  221. package/hooks/useAfterMount.js +0 -1
  222. package/hooks/useClickOutside.js +1 -1
  223. package/hooks/useClipboard.js +12 -18
  224. package/hooks/useDebugInfo.js +0 -5
  225. package/hooks/useElementSize.js +7 -15
  226. package/hooks/useFullscreen.js +27 -42
  227. package/hooks/useInterval.js +3 -2
  228. package/hooks/useOnMount.js +0 -1
  229. package/hooks/useOnScreen.js +4 -9
  230. package/hooks/useOnlineStatus.js +3 -4
  231. package/hooks/useResizeObserver.js +8 -14
  232. package/hooks/useStateWithValidation.js +8 -10
  233. package/hooks/useStorage.js +12 -18
  234. package/hooks/useTimeout.js +3 -2
  235. package/hooks/useWindowResize.js +0 -2
  236. package/index.js +2 -12
  237. package/lib/.DS_Store +0 -0
  238. package/lib/es/.DS_Store +0 -0
  239. package/lib/es/ActionBarItem.js +0 -2
  240. package/lib/es/ActionBarItemList.js +0 -2
  241. package/lib/es/ActionBarItemListItem.js +0 -2
  242. package/lib/es/ActionBarItemListSeparator.js +0 -2
  243. package/lib/es/Activity.js +0 -2
  244. package/lib/es/AnimatedNumber.js +0 -2
  245. package/lib/es/AppNavigationBar.js +0 -2
  246. package/lib/es/ApplicationHeader.js +0 -2
  247. package/lib/es/ApplicationLayout.js +0 -2
  248. package/lib/es/ApplicationLayoutBodyBanner.js +0 -2
  249. package/lib/es/ApplicationLayoutBodyBottomBar.js +0 -2
  250. package/lib/es/ApplicationLayoutBodyNavigation.js +0 -2
  251. package/lib/es/Area.js +0 -2
  252. package/lib/es/AreaChart.js +0 -2
  253. package/lib/es/AreaGradient.js +0 -2
  254. package/lib/es/AssetTree.js +0 -2
  255. package/lib/es/AutoSuggest.js +0 -2
  256. package/lib/es/Bar.js +0 -2
  257. package/lib/es/BarChart.js +0 -2
  258. package/lib/es/BottomSheet.js +0 -2
  259. package/lib/es/BrowserWarning.js +0 -2
  260. package/lib/es/Button.js +0 -2
  261. package/lib/es/ButtonDropdown.js +0 -2
  262. package/lib/es/Carousel.js +0 -2
  263. package/lib/es/ChartNeedle.js +0 -2
  264. package/lib/es/ChartTooltip.js +0 -2
  265. package/lib/es/Checkbox.js +0 -2
  266. package/lib/es/Circle.js +0 -2
  267. package/lib/es/ClearableInput.js +0 -2
  268. package/lib/es/ClusterLayer.js +0 -2
  269. package/lib/es/ClusterMapMarker.js +0 -2
  270. package/lib/es/ClusterUtils.js +0 -1
  271. package/lib/es/Collapse.js +0 -2
  272. package/lib/es/Colors.js +0 -2
  273. package/lib/es/ConfirmationDialog.js +0 -2
  274. package/lib/es/ContentLoader.js +0 -2
  275. package/lib/es/ContextMenu.js +0 -2
  276. package/lib/es/ContextMenuItem.js +0 -2
  277. package/lib/es/CustomState.js +0 -2
  278. package/lib/es/DataTab.js +0 -2
  279. package/lib/es/DataTabs.js +0 -2
  280. package/lib/es/DatePicker.js +0 -2
  281. package/lib/es/DateRangePicker.js +0 -2
  282. package/lib/es/DeviceUtils.js +1 -2
  283. package/lib/es/Dialog.js +0 -2
  284. package/lib/es/DomMarker.js +0 -2
  285. package/lib/es/DropdownSubmenu.js +0 -2
  286. package/lib/es/EmptyState.js +0 -2
  287. package/lib/es/ErrorState.js +0 -2
  288. package/lib/es/EventUtils.js +0 -1
  289. package/lib/es/ExpanderList.js +0 -2
  290. package/lib/es/ExpanderPanel.js +0 -2
  291. package/lib/es/Fade.js +0 -2
  292. package/lib/es/FilePicker.js +0 -2
  293. package/lib/es/ForbiddenState.js +0 -2
  294. package/lib/es/GroupSelectionUtil.js +1 -2
  295. package/lib/es/ImagePreloader.js +0 -2
  296. package/lib/es/IncidentsLayer.js +0 -2
  297. package/lib/es/InfoDialog.js +0 -2
  298. package/lib/es/Legend.js +0 -2
  299. package/lib/es/Line.js +0 -2
  300. package/lib/es/LineChart.js +0 -2
  301. package/lib/es/ListMenu.js +0 -2
  302. package/lib/es/LoadMoreButton.js +0 -2
  303. package/lib/es/MaintenanceState.js +0 -2
  304. package/lib/es/Map.js +0 -2
  305. package/lib/es/MapBoundingBoxButton.js +0 -2
  306. package/lib/es/MapCenterMarkerButton.js +0 -2
  307. package/lib/es/MapClusterSettings.js +0 -2
  308. package/lib/es/MapCustomerPoiSettingsItem.js +0 -2
  309. package/lib/es/MapLayerGroup.js +0 -2
  310. package/lib/es/MapLayerIncidentsItem.js +0 -2
  311. package/lib/es/MapLayerRoadRestrictionsItem.js +0 -2
  312. package/lib/es/MapLayerSettings.js +0 -2
  313. package/lib/es/MapLayerTrafficItem.js +0 -2
  314. package/lib/es/MapLockMarkerButton.js +0 -2
  315. package/lib/es/MapSettings.js +0 -2
  316. package/lib/es/MapSettingsItem.js +0 -2
  317. package/lib/es/MapSettingsPanel.js +0 -2
  318. package/lib/es/MapSettingsTile.js +0 -2
  319. package/lib/es/MapTypeSettings.js +0 -2
  320. package/lib/es/MapWorkshopPoiSettingsItem.js +0 -2
  321. package/lib/es/Marker.js +0 -2
  322. package/lib/es/MarkerLayer.js +0 -2
  323. package/lib/es/MediaDialog.js +0 -2
  324. package/lib/es/MenuItem.js +0 -2
  325. package/lib/es/Multiselect.js +0 -2
  326. package/lib/es/NoData.js +0 -2
  327. package/lib/es/NotBookedState.js +0 -2
  328. package/lib/es/NotFoundState.js +0 -2
  329. package/lib/es/Notification.js +0 -2
  330. package/lib/es/NotificationsContainer.js +0 -2
  331. package/lib/es/NumberControl.js +0 -2
  332. package/lib/es/NumberInput.js +0 -2
  333. package/lib/es/OnboardingTip.js +0 -2
  334. package/lib/es/OverlayTrigger.js +0 -2
  335. package/lib/es/Pager.js +0 -2
  336. package/lib/es/PieChart.js +0 -2
  337. package/lib/es/Polygon.js +0 -2
  338. package/lib/es/Polyline.js +0 -2
  339. package/lib/es/Popover.js +0 -2
  340. package/lib/es/Position.js +0 -2
  341. package/lib/es/PositionUtils.js +0 -1
  342. package/lib/es/RadialBarChart.js +0 -2
  343. package/lib/es/RadioButton.js +0 -2
  344. package/lib/es/RangeSlider.js +0 -2
  345. package/lib/es/ReleaseNotes.js +0 -2
  346. package/lib/es/ReleaseNotesDialog.js +0 -2
  347. package/lib/es/Resizer.js +0 -2
  348. package/lib/es/ResponsiveVideo.js +0 -2
  349. package/lib/es/Route.js +0 -2
  350. package/lib/es/SaveDialog.js +0 -2
  351. package/lib/es/Select.js +0 -2
  352. package/lib/es/Sidebar.js +0 -2
  353. package/lib/es/SimpleButtonDropdown.js +0 -2
  354. package/lib/es/SimpleClusterLayer.js +0 -2
  355. package/lib/es/SimpleDialog.js +0 -2
  356. package/lib/es/SimpleTooltip.js +0 -2
  357. package/lib/es/SingleButtonDropdown.js +0 -2
  358. package/lib/es/SingleMapMarker.js +0 -2
  359. package/lib/es/Slider.js +0 -2
  360. package/lib/es/SortArrowDown.js +0 -1
  361. package/lib/es/SortArrowUp.js +0 -1
  362. package/lib/es/SortArrows.js +0 -1
  363. package/lib/es/SortDirection.js +1 -2
  364. package/lib/es/SortUtils.js +1 -2
  365. package/lib/es/Spinner.js +0 -2
  366. package/lib/es/SplitButtonDropdown.js +0 -2
  367. package/lib/es/SplitDialog.js +0 -2
  368. package/lib/es/StatsWidget.js +0 -2
  369. package/lib/es/StatsWidgetNumber.js +0 -2
  370. package/lib/es/StatsWidgetSpacer.js +0 -2
  371. package/lib/es/StatsWidgets.js +0 -2
  372. package/lib/es/StatusBar.js +0 -2
  373. package/lib/es/SteppedProgressBar.js +0 -2
  374. package/lib/es/SubNavigation.js +0 -2
  375. package/lib/es/SupportMarker.js +0 -2
  376. package/lib/es/Switch.js +0 -2
  377. package/lib/es/TableCardsSorting.js +0 -2
  378. package/lib/es/TableSearch.js +0 -2
  379. package/lib/es/TableSettingsDialog.js +0 -2
  380. package/lib/es/TableToolbar.js +0 -2
  381. package/lib/es/TableViewToggles.js +0 -2
  382. package/lib/es/Tag.js +0 -2
  383. package/lib/es/TagList.js +0 -2
  384. package/lib/es/TagManager.js +0 -2
  385. package/lib/es/Teaser.js +0 -2
  386. package/lib/es/TeaserContainer.js +0 -2
  387. package/lib/es/TextMarker.js +0 -2
  388. package/lib/es/TimePicker.js +0 -2
  389. package/lib/es/ToggleButton.js +0 -2
  390. package/lib/es/Tooltip.js +0 -2
  391. package/lib/es/TrafficLayer.js +0 -2
  392. package/lib/es/Tree.js +0 -2
  393. package/lib/es/TreeCategory.js +0 -2
  394. package/lib/es/TreeOption.js +0 -2
  395. package/lib/es/TreeSearch.js +0 -2
  396. package/lib/es/TreeSummary.js +0 -2
  397. package/lib/es/TruckLayer.js +0 -2
  398. package/lib/es/TypeCounter.js +0 -2
  399. package/lib/es/VolkswagenApplicationHeader.js +1 -3
  400. package/lib/es/components/.DS_Store +0 -0
  401. package/lib/es/components/actionBarItem/ActionBarItem.js +31 -75
  402. package/lib/es/components/actionBarItem/ActionBarItemIcon.js +2 -11
  403. package/lib/es/components/actionBarItem/ActionBarItemList.js +2 -11
  404. package/lib/es/components/actionBarItem/ActionBarItemListItem.js +5 -14
  405. package/lib/es/components/actionBarItem/ActionBarItemListSeparator.js +1 -10
  406. package/lib/es/components/actionBarItem/ActionBarItemPopoverContent.js +2 -12
  407. package/lib/es/components/actionBarItem/ActionBarOverlay.js +9 -24
  408. package/lib/es/components/activity/Activity.js +6 -19
  409. package/lib/es/components/animatedNumber/AnimatedNumber.js +11 -28
  410. package/lib/es/components/applicationHeader/AppMenu.js +10 -21
  411. package/lib/es/components/applicationHeader/AppMenuDropdown.js +8 -29
  412. package/lib/es/components/applicationHeader/ApplicationActionBar.js +4 -11
  413. package/lib/es/components/applicationHeader/ApplicationHeader.js +12 -38
  414. package/lib/es/components/applicationHeader/MobileAppMenu.js +6 -21
  415. package/lib/es/components/applicationHeader/MobileHeaderModal.js +5 -15
  416. package/lib/es/components/applicationHeader/MobileSubmoduleNavigation.js +5 -21
  417. package/lib/es/components/applicationHeader/NavItems.js +35 -58
  418. package/lib/es/components/applicationHeader/modulePropTypes.js +0 -4
  419. package/lib/es/components/applicationLayout/ApplicationLayout.js +3 -16
  420. package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +12 -33
  421. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +5 -14
  422. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +4 -13
  423. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +2 -11
  424. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +2 -11
  425. package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.js +2 -13
  426. package/lib/es/components/applicationLayout/SubNavigation.js +3 -14
  427. package/lib/es/components/assetTree/AssetTree.js +29 -69
  428. package/lib/es/components/assetTree/Tree.js +56 -184
  429. package/lib/es/components/assetTree/TreeCategory.js +0 -4
  430. package/lib/es/components/assetTree/TreeLeaf.js +5 -14
  431. package/lib/es/components/assetTree/TreeLeafList.js +5 -17
  432. package/lib/es/components/assetTree/TreeNode.js +5 -12
  433. package/lib/es/components/assetTree/TreeNodeContainer.js +2 -8
  434. package/lib/es/components/assetTree/TreeNothingFound.js +0 -5
  435. package/lib/es/components/assetTree/TreeOption.js +4 -14
  436. package/lib/es/components/assetTree/TreeOptions.js +3 -15
  437. package/lib/es/components/assetTree/TreeRoot.js +1 -7
  438. package/lib/es/components/assetTree/TreeSearch.js +3 -10
  439. package/lib/es/components/assetTree/TreeSelectAll.js +4 -12
  440. package/lib/es/components/assetTree/TreeSidebar.js +4 -20
  441. package/lib/es/components/assetTree/TreeSummary.js +6 -14
  442. package/lib/es/components/assetTree/TypeCounter.js +8 -20
  443. package/lib/es/components/autosuggest/AutoSuggest.js +31 -101
  444. package/lib/es/components/bottomSheet/BottomSheet.js +20 -45
  445. package/lib/es/components/browserWarning/BrowserIcons.js +1 -6
  446. package/lib/es/components/browserWarning/BrowserWarning.js +9 -27
  447. package/lib/es/components/browserWarning/BrowserWarningMessageDE.js +0 -5
  448. package/lib/es/components/browserWarning/BrowserWarningMessageEN.js +0 -5
  449. package/lib/es/components/button/Button.js +29 -41
  450. package/lib/es/components/button/ToggleButton.js +0 -6
  451. package/lib/es/components/carousel/Carousel.js +0 -3
  452. package/lib/es/components/carousel/CarouselCaption.js +5 -22
  453. package/lib/es/components/carousel/CarouselItem.js +8 -39
  454. package/lib/es/components/charts/Area.js +0 -2
  455. package/lib/es/components/charts/AreaChart.js +19 -30
  456. package/lib/es/components/charts/AreaGradient.js +1 -6
  457. package/lib/es/components/charts/Bar.js +0 -2
  458. package/lib/es/components/charts/BarChart.js +21 -34
  459. package/lib/es/components/charts/ChartNeedle.js +8 -17
  460. package/lib/es/components/charts/ChartTooltip.js +0 -2
  461. package/lib/es/components/charts/Legend.js +0 -2
  462. package/lib/es/components/charts/Line.js +0 -2
  463. package/lib/es/components/charts/LineChart.js +20 -30
  464. package/lib/es/components/charts/PieChart.js +25 -39
  465. package/lib/es/components/charts/RadialBarChart.js +26 -39
  466. package/lib/es/components/charts/chartHelper.js +0 -14
  467. package/lib/es/components/checkbox/Checkbox.js +26 -50
  468. package/lib/es/components/clearableInput/ClearableInput.js +25 -54
  469. package/lib/es/components/collapse/Collapse.js +6 -39
  470. package/lib/es/components/contentLoader/ContentLoader.js +7 -24
  471. package/lib/es/components/dataTabs/DataTab.js +6 -16
  472. package/lib/es/components/dataTabs/DataTabs.js +20 -45
  473. package/lib/es/components/datepicker/DatePicker.js +9 -30
  474. package/lib/es/components/datepicker/DateRangePicker.js +103 -145
  475. package/lib/es/components/dialog/ConfirmationDialog.js +9 -15
  476. package/lib/es/components/dialog/Dialog.js +22 -57
  477. package/lib/es/components/dialog/DialogBody.js +2 -11
  478. package/lib/es/components/dialog/DialogFooter.js +2 -11
  479. package/lib/es/components/dialog/DialogHeader.js +5 -13
  480. package/lib/es/components/dialog/InfoDialog.js +2 -13
  481. package/lib/es/components/dialog/MediaDialog.js +9 -48
  482. package/lib/es/components/dialog/ReleaseNotesDialog.js +1 -12
  483. package/lib/es/components/dialog/SaveDialog.js +6 -19
  484. package/lib/es/components/dialog/SimpleDialog.js +2 -13
  485. package/lib/es/components/dialog/SplitDialog.js +3 -17
  486. package/lib/es/components/dialog/baseDialogPropTypes.js +0 -3
  487. package/lib/es/components/driverName/DriverName.js +2 -12
  488. package/lib/es/components/dropdown/ButtonDropdown.js +32 -78
  489. package/lib/es/components/dropdown/Caret.js +0 -4
  490. package/lib/es/components/dropdown/DropdownSubmenu.js +4 -16
  491. package/lib/es/components/dropdown/DropdownToggleButton.js +8 -18
  492. package/lib/es/components/dropdown/SimpleButtonDropdown.js +0 -6
  493. package/lib/es/components/dropdown/SingleButtonDropdown.js +0 -5
  494. package/lib/es/components/dropdown/SplitButtonDropdown.js +0 -6
  495. package/lib/es/components/dropdown/SplitCaretButton.js +3 -13
  496. package/lib/es/components/dropdown/menuItemsPropTypes.js +0 -4
  497. package/lib/es/components/expander/ExpanderList.js +15 -47
  498. package/lib/es/components/expander/ExpanderPanel.js +22 -39
  499. package/lib/es/components/fade/Fade.js +14 -28
  500. package/lib/es/components/filepicker/FilePicker.js +17 -47
  501. package/lib/es/components/listMenu/ListMenu.js +32 -82
  502. package/lib/es/components/loadMore/LoadMoreButton.js +6 -16
  503. package/lib/es/components/loadMore/LoadMoreProgress.js +1 -8
  504. package/lib/es/components/map/components/Map.js +53 -123
  505. package/lib/es/components/map/components/context.js +0 -2
  506. package/lib/es/components/map/components/features/ContextMenu.js +39 -53
  507. package/lib/es/components/map/components/features/ContextMenuItem.js +3 -6
  508. package/lib/es/components/map/components/features/MapSettings.js +6 -30
  509. package/lib/es/components/map/components/features/Route.js +29 -65
  510. package/lib/es/components/map/components/features/basics/Circle.js +10 -21
  511. package/lib/es/components/map/components/features/basics/MapLayerGroup.js +9 -28
  512. package/lib/es/components/map/components/features/basics/Polygon.js +7 -21
  513. package/lib/es/components/map/components/features/basics/Polyline.js +16 -30
  514. package/lib/es/components/map/components/features/basics/marker/DomMarker.js +2 -23
  515. package/lib/es/components/map/components/features/basics/marker/Marker.js +9 -46
  516. package/lib/es/components/map/components/features/basics/marker/TextMarker.js +4 -24
  517. package/lib/es/components/map/components/features/layers/IncidentsLayer.js +1 -7
  518. package/lib/es/components/map/components/features/layers/Layer.js +3 -10
  519. package/lib/es/components/map/components/features/layers/MarkerLayer.js +4 -25
  520. package/lib/es/components/map/components/features/layers/TrafficLayer.js +1 -8
  521. package/lib/es/components/map/components/features/layers/TruckLayer.js +1 -8
  522. package/lib/es/components/map/components/features/layers/baselayers/BaseLayer.js +6 -16
  523. package/lib/es/components/map/components/features/layers/baselayers/DefaultLayer.js +1 -8
  524. package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +0 -8
  525. package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +0 -8
  526. package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +0 -8
  527. package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +13 -25
  528. package/lib/es/components/map/components/features/layers/clustering/SimpleClusterLayer.js +1 -15
  529. package/lib/es/components/map/components/features/settings/MapSettingsItem.js +4 -11
  530. package/lib/es/components/map/components/features/settings/MapSettingsPanel.js +1 -7
  531. package/lib/es/components/map/components/features/settings/MapSettingsTile.js +11 -33
  532. package/lib/es/components/map/components/features/settings/ZoomButtons.js +1 -8
  533. package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +3 -17
  534. package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +4 -20
  535. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +2 -23
  536. package/lib/es/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +2 -12
  537. package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -12
  538. package/lib/es/components/map/components/features/settings/buttons/MapLockMarkerButton.js +2 -12
  539. package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +2 -14
  540. package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.js +3 -16
  541. package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +3 -16
  542. package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.js +3 -16
  543. package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +2 -14
  544. package/lib/es/components/map/components/mapUtils.js +2 -34
  545. package/lib/es/components/map/exceptions/MapException.js +0 -2
  546. package/lib/es/components/map/icons/MapIcon.js +10 -11
  547. package/lib/es/components/map/utils/clustering.js +1 -11
  548. package/lib/es/components/map/utils/eventHandling.js +0 -27
  549. package/lib/es/components/map/utils/hooks.js +1 -10
  550. package/lib/es/components/map/utils/localization.js +0 -9
  551. package/lib/es/components/map/utils/positions.js +0 -13
  552. package/lib/es/components/map/utils/proptypes.js +1 -18
  553. package/lib/es/components/map/utils/validation.js +0 -7
  554. package/lib/es/components/mapMarker/ClusterMapMarker.js +7 -18
  555. package/lib/es/components/mapMarker/SingleMapMarker.js +13 -27
  556. package/lib/es/components/menuItems/MenuItem.js +8 -24
  557. package/lib/es/components/menuItems/MenuItems.js +3 -11
  558. package/lib/es/components/menuItems/getMenuItems.js +0 -6
  559. package/lib/es/components/navigation/AppNavigationBar.js +4 -16
  560. package/lib/es/components/noData/NoData.js +5 -17
  561. package/lib/es/components/notification/Notification.js +0 -2
  562. package/lib/es/components/notification/NotificationsContainer.js +0 -7
  563. package/lib/es/components/numberControl/NumberControl.js +30 -61
  564. package/lib/es/components/numberInput/NumberInput.js +29 -56
  565. package/lib/es/components/onboarding/OnboardingTip.js +16 -28
  566. package/lib/es/components/overlay/OverlayTrigger.js +1 -14
  567. package/lib/es/components/pager/Pager.js +13 -30
  568. package/lib/es/components/popover/Popover.js +6 -16
  569. package/lib/es/components/position/Position.js +2 -10
  570. package/lib/es/components/preloader/ImagePreloader.js +12 -31
  571. package/lib/es/components/radiobutton/RadioButton.js +25 -44
  572. package/lib/es/components/releaseNotes/ReleaseNotes.js +3 -18
  573. package/lib/es/components/resizer/Resizer.js +6 -38
  574. package/lib/es/components/selects/BaseDropdownMenu.js +26 -79
  575. package/lib/es/components/selects/DropdownHeader.js +2 -7
  576. package/lib/es/components/selects/Multiselect.js +43 -81
  577. package/lib/es/components/selects/Select.js +42 -80
  578. package/lib/es/components/sidebars/Sidebar.js +46 -87
  579. package/lib/es/components/slider/RangeSlider.js +40 -83
  580. package/lib/es/components/slider/Slider.js +17 -37
  581. package/lib/es/components/spinner/Spinner.js +9 -25
  582. package/lib/es/components/states/CustomState.js +20 -43
  583. package/lib/es/components/states/EmptyState.js +0 -6
  584. package/lib/es/components/states/ErrorState.js +0 -6
  585. package/lib/es/components/states/ForbiddenState.js +0 -6
  586. package/lib/es/components/states/MaintenanceState.js +0 -6
  587. package/lib/es/components/states/NotBookedState.js +2 -15
  588. package/lib/es/components/states/NotFoundState.js +0 -6
  589. package/lib/es/components/states/baseStatePropTypes.js +0 -3
  590. package/lib/es/components/statsWidget/StatsWidget.js +4 -16
  591. package/lib/es/components/statsWidget/StatsWidgetBody.js +3 -12
  592. package/lib/es/components/statsWidget/StatsWidgetFooter.js +2 -10
  593. package/lib/es/components/statsWidget/StatsWidgetHeader.js +2 -10
  594. package/lib/es/components/statsWidget/StatsWidgetNumber.js +5 -14
  595. package/lib/es/components/statsWidget/StatsWidgetSpacer.js +1 -9
  596. package/lib/es/components/statsWidget/StatsWidgets.js +2 -11
  597. package/lib/es/components/statusBar/StatusBar.js +19 -55
  598. package/lib/es/components/steppedProgressBar/SteppedProgressBar.js +9 -27
  599. package/lib/es/components/supportMarker/toggleSupportMarker.js +0 -8
  600. package/lib/es/components/switch/Switch.js +12 -21
  601. package/lib/es/components/table/SortArrows.js +0 -9
  602. package/lib/es/components/table/TableCardsSorting.js +2 -26
  603. package/lib/es/components/table/TableSearch.js +0 -7
  604. package/lib/es/components/table/TableSettingsColumnButtons.js +7 -13
  605. package/lib/es/components/table/TableSettingsColumnDetails.js +8 -19
  606. package/lib/es/components/table/TableSettingsDialog.js +57 -117
  607. package/lib/es/components/table/TableSettingsDialogFooter.js +12 -18
  608. package/lib/es/components/table/TableSettingsListContainer.js +6 -22
  609. package/lib/es/components/table/TableSettingsListItem.js +31 -51
  610. package/lib/es/components/table/TableToolbar.js +1 -7
  611. package/lib/es/components/table/TableViewToggles.js +14 -38
  612. package/lib/es/components/table/tableSettingsPropTypes.js +0 -4
  613. package/lib/es/components/tag/Tag.js +13 -21
  614. package/lib/es/components/tag/TagList.js +4 -15
  615. package/lib/es/components/tagManager/CustomSuggestionItem.js +1 -7
  616. package/lib/es/components/tagManager/TagManager.js +27 -66
  617. package/lib/es/components/tagManager/TagManagerItemList.js +1 -9
  618. package/lib/es/components/teaser/Teaser.js +20 -51
  619. package/lib/es/components/teaser/TeaserContainer.js +0 -15
  620. package/lib/es/components/timepicker/TimePicker.js +10 -43
  621. package/lib/es/components/tooltip/SimpleTooltip.js +5 -17
  622. package/lib/es/components/tooltip/Tooltip.js +12 -32
  623. package/lib/es/components/video/ResponsiveVideo.js +3 -9
  624. package/lib/es/framer-motion.js +0 -2
  625. package/lib/es/hooks/useAfterMount.js +0 -3
  626. package/lib/es/hooks/useClickOutside.js +1 -3
  627. package/lib/es/hooks/useClipboard.js +12 -23
  628. package/lib/es/hooks/useDebugInfo.js +0 -10
  629. package/lib/es/hooks/useEffectOnce.js +0 -2
  630. package/lib/es/hooks/useElementSize.js +7 -18
  631. package/lib/es/hooks/useEsc.js +0 -3
  632. package/lib/es/hooks/useEvent.js +0 -2
  633. package/lib/es/hooks/useFullscreen.js +25 -49
  634. package/lib/es/hooks/useInterval.js +1 -3
  635. package/lib/es/hooks/useKey.js +0 -2
  636. package/lib/es/hooks/useOnMount.js +0 -3
  637. package/lib/es/hooks/useOnScreen.js +5 -13
  638. package/lib/es/hooks/useOnlineStatus.js +4 -9
  639. package/lib/es/hooks/useRenderCount.js +1 -2
  640. package/lib/es/hooks/useResizeObserver.js +8 -17
  641. package/lib/es/hooks/useStateWithValidation.js +8 -14
  642. package/lib/es/hooks/useStorage.js +13 -23
  643. package/lib/es/hooks/useTimeout.js +1 -3
  644. package/lib/es/hooks/useWindowResize.js +0 -5
  645. package/lib/es/index.js +2 -140
  646. package/lib/es/mapIndex.js +0 -38
  647. package/lib/es/routeUtils.js +1 -2
  648. package/lib/es/styles/.DS_Store +0 -0
  649. package/lib/es/styles/design/buttons.less +8 -23
  650. package/lib/es/styles/design/fonts.less +65 -65
  651. package/lib/es/styles/design/form-inputs.less +1 -1
  652. package/lib/es/styles/design/navs.less +0 -1
  653. package/lib/es/styles/mixins/buttons.less +3 -6
  654. package/lib/es/styles/variables.less +1 -1
  655. package/lib/es/themes/.DS_Store +0 -0
  656. package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +12 -25
  657. package/lib/es/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +0 -4
  658. package/lib/es/themes/Volkswagen/styles/vw-uikit.less +3 -3
  659. package/lib/es/themes/Website/styles/rio-website.less +5 -5
  660. package/lib/es/useAfterMount.js +0 -2
  661. package/lib/es/useClickOutside.js +0 -2
  662. package/lib/es/useClipboard.js +0 -2
  663. package/lib/es/useDebugInfo.js +0 -2
  664. package/lib/es/useEffectOnce.js +0 -2
  665. package/lib/es/useElementSize.js +0 -2
  666. package/lib/es/useEsc.js +0 -2
  667. package/lib/es/useEvent.js +0 -2
  668. package/lib/es/useFullscreen.js +0 -2
  669. package/lib/es/useInterval.js +0 -2
  670. package/lib/es/useKey.js +0 -2
  671. package/lib/es/useLocalStorage.js +0 -1
  672. package/lib/es/useOnMount.js +0 -2
  673. package/lib/es/useOnScreen.js +0 -2
  674. package/lib/es/useOnlineStatus.js +0 -2
  675. package/lib/es/useRenderCount.js +0 -2
  676. package/lib/es/useResizeObserver.js +0 -2
  677. package/lib/es/useSessionStorage.js +0 -1
  678. package/lib/es/useStateWithValidation.js +0 -2
  679. package/lib/es/useTimeout.js +0 -2
  680. package/lib/es/useWindowResize.js +0 -2
  681. package/lib/es/utils/GroupSelectionUtil.js +0 -16
  682. package/lib/es/utils/SortUtils.js +0 -12
  683. package/lib/es/utils/addEventListener.js +1 -4
  684. package/lib/es/utils/addFocusListener.js +0 -5
  685. package/lib/es/utils/arrayMove.js +1 -5
  686. package/lib/es/utils/buttonEffect.js +5 -16
  687. package/lib/es/utils/cssuseragent.js +327 -0
  688. package/lib/es/utils/deviceUtils.js +15 -30
  689. package/lib/es/utils/getDropDirection.js +2 -3
  690. package/lib/es/utils/getOffsetTopWholeScreen.js +0 -2
  691. package/lib/es/utils/init.js +8 -47
  692. package/lib/es/utils/logDeprecatedWarnings.js +2 -6
  693. package/lib/es/utils/logPropError.js +2 -6
  694. package/lib/es/utils/ownerDocument.js +1 -4
  695. package/lib/es/utils/portalRoot.js +0 -2
  696. package/lib/es/utils/routeUtils.js +11 -29
  697. package/lib/es/utils/scrollItemIntoView.js +2 -8
  698. package/lib/es/version.json +1 -1
  699. package/mapIndex.js +1 -0
  700. package/package.json +66 -122
  701. package/routeUtils.js +1 -1
  702. package/styles/.DS_Store +0 -0
  703. package/styles/design/buttons.less +8 -23
  704. package/styles/design/fonts.less +65 -65
  705. package/styles/design/form-inputs.less +1 -1
  706. package/styles/design/navs.less +0 -1
  707. package/styles/mixins/buttons.less +3 -6
  708. package/styles/variables.less +1 -1
  709. package/themes/.DS_Store +0 -0
  710. package/themes/Volkswagen/.DS_Store +0 -0
  711. package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +12 -11
  712. package/themes/Volkswagen/styles/vw-uikit.less +3 -3
  713. package/themes/Website/styles/rio-website.less +5 -5
  714. package/utils/GroupSelectionUtil.js +0 -12
  715. package/utils/SortUtils.js +0 -7
  716. package/utils/addFocusListener.js +0 -4
  717. package/utils/arrayMove.js +1 -4
  718. package/utils/buttonEffect.js +5 -13
  719. package/utils/cssuseragent.js +320 -0
  720. package/utils/deviceUtils.js +16 -18
  721. package/utils/getDropDirection.js +2 -2
  722. package/utils/getOffsetTopWholeScreen.js +0 -1
  723. package/utils/init.js +7 -35
  724. package/utils/logDeprecatedWarnings.js +3 -2
  725. package/utils/logPropError.js +2 -1
  726. package/utils/routeUtils.js +11 -17
  727. package/utils/scrollItemIntoView.js +2 -7
  728. package/version.json +1 -1
@@ -1,20 +1,15 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
-
3
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
-
5
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
-
7
4
  import React from 'react';
8
-
9
5
  var ChartNeedle = function ChartNeedle(props) {
10
6
  var width = props.width,
11
- height = props.height,
12
- x = props.x,
13
- y = props.y,
14
- rotation = props.rotation,
15
- className = props.className,
16
- style = props.style;
17
-
7
+ height = props.height,
8
+ x = props.x,
9
+ y = props.y,
10
+ rotation = props.rotation,
11
+ className = props.className,
12
+ style = props.style;
18
13
  var needleStyle = _objectSpread({
19
14
  width: width,
20
15
  height: height,
@@ -26,7 +21,6 @@ var ChartNeedle = function ChartNeedle(props) {
26
21
  borderTopRightRadius: '100%',
27
22
  display: 'inline-block'
28
23
  }, style);
29
-
30
24
  return /*#__PURE__*/React.createElement("div", {
31
25
  className: 'position-relative'
32
26
  }, /*#__PURE__*/React.createElement("div", {
@@ -34,14 +28,14 @@ var ChartNeedle = function ChartNeedle(props) {
34
28
  style: needleStyle
35
29
  }));
36
30
  };
37
-
38
31
  ChartNeedle.defaultProps = {
39
32
  width: '5px',
40
33
  height: '65px',
41
34
  x: '-50%',
42
35
  y: '-100%',
43
36
  rotation: 0,
44
- className: '' // style
45
-
37
+ className: ''
38
+ // style
46
39
  };
40
+
47
41
  export default ChartNeedle;
@@ -1,6 +1,5 @@
1
1
  var ChartTooltip = function ChartTooltip() {
2
2
  return null;
3
3
  };
4
-
5
4
  ChartTooltip.defaultProps = {};
6
5
  export default ChartTooltip;
@@ -1,7 +1,6 @@
1
1
  var Legend = function Legend() {
2
2
  return null;
3
3
  };
4
-
5
4
  Legend.defaultProps = {
6
5
  iconType: 'square',
7
6
  iconSize: '12',
@@ -1,7 +1,6 @@
1
1
  var Line = function Line() {
2
2
  return null;
3
3
  };
4
-
5
4
  Line.defaultProps = {
6
5
  dataKey: 'value',
7
6
  dataUnit: '',
@@ -1,30 +1,28 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["width", "height", "data", "dataUnit", "dataKey", "lines", "xAxisOptions", "yAxisOptions", "gridOptions", "showXAxis", "showYAxis", "showGrid", "legend", "tooltip", "brush"],
4
- _excluded2 = ["strokeColor"];
4
+ _excluded2 = ["strokeColor"];
5
5
  import React from 'react';
6
6
  import { LineChart as RechartsLineChart, Line as RechartsLine, Legend as RechartsLegend, XAxis, YAxis, Brush, Tooltip as RechartsTooltip, CartesianGrid, ResponsiveContainer } from 'recharts';
7
7
  import { getColor, mapGridOptions } from './chartHelper';
8
8
  import ChartTooltip from './ChartTooltip';
9
-
10
9
  var LineChart = function LineChart(props) {
11
10
  var width = props.width,
12
- height = props.height,
13
- data = props.data,
14
- dataUnit = props.dataUnit,
15
- dataKey = props.dataKey,
16
- lines = props.lines,
17
- xAxisOptions = props.xAxisOptions,
18
- yAxisOptions = props.yAxisOptions,
19
- gridOptions = props.gridOptions,
20
- showXAxis = props.showXAxis,
21
- showYAxis = props.showYAxis,
22
- showGrid = props.showGrid,
23
- legend = props.legend,
24
- tooltip = props.tooltip,
25
- brush = props.brush,
26
- remainingProps = _objectWithoutProperties(props, _excluded);
27
-
11
+ height = props.height,
12
+ data = props.data,
13
+ dataUnit = props.dataUnit,
14
+ dataKey = props.dataKey,
15
+ lines = props.lines,
16
+ xAxisOptions = props.xAxisOptions,
17
+ yAxisOptions = props.yAxisOptions,
18
+ gridOptions = props.gridOptions,
19
+ showXAxis = props.showXAxis,
20
+ showYAxis = props.showYAxis,
21
+ showGrid = props.showGrid,
22
+ legend = props.legend,
23
+ tooltip = props.tooltip,
24
+ brush = props.brush,
25
+ remainingProps = _objectWithoutProperties(props, _excluded);
28
26
  return /*#__PURE__*/React.createElement(ResponsiveContainer, {
29
27
  width: "100%",
30
28
  height: "100%"
@@ -52,9 +50,8 @@ var LineChart = function LineChart(props) {
52
50
  } : legend.props.wrapperStyle
53
51
  }, legend.props)), lines.map(function (line) {
54
52
  var _line$props = line.props,
55
- strokeColor = _line$props.strokeColor,
56
- remainingLineProps = _objectWithoutProperties(_line$props, _excluded2);
57
-
53
+ strokeColor = _line$props.strokeColor,
54
+ remainingLineProps = _objectWithoutProperties(_line$props, _excluded2);
58
55
  return /*#__PURE__*/React.createElement(RechartsLine, _extends({
59
56
  key: line.key,
60
57
  stroke: getColor(strokeColor)
@@ -63,7 +60,6 @@ var LineChart = function LineChart(props) {
63
60
  stroke: getColor('gray')
64
61
  })));
65
62
  };
66
-
67
63
  LineChart.defaultProps = {
68
64
  width: 480,
69
65
  height: 200,
@@ -78,7 +74,8 @@ LineChart.defaultProps = {
78
74
  showYAxis: false,
79
75
  showGrid: false,
80
76
  brush: false,
81
- tooltip: /*#__PURE__*/React.createElement(ChartTooltip, null) // legend,
82
-
77
+ tooltip: /*#__PURE__*/React.createElement(ChartTooltip, null)
78
+ // legend,
83
79
  };
80
+
84
81
  export default LineChart;
@@ -8,35 +8,33 @@ import { getFromDefaultColors, getColor } from './chartHelper';
8
8
  import Legend from './Legend';
9
9
  import ChartTooltip from './ChartTooltip';
10
10
  var RADIAN = Math.PI / 180;
11
-
12
11
  var PieChart = function PieChart(props) {
13
12
  var width = props.width,
14
- height = props.height,
15
- innerRadius = props.innerRadius,
16
- outerRadius = props.outerRadius,
17
- data = props.data,
18
- dataKey = props.dataKey,
19
- dataUnit = props.dataUnit,
20
- nameKey = props.nameKey,
21
- color = props.color,
22
- filled = props.filled,
23
- labels = props.labels,
24
- innerLabels = props.innerLabels,
25
- paddingAngle = props.paddingAngle,
26
- legend = props.legend,
27
- tooltip = props.tooltip,
28
- pieOptions = props.pieOptions,
29
- remainingProps = _objectWithoutProperties(props, _excluded);
30
-
13
+ height = props.height,
14
+ innerRadius = props.innerRadius,
15
+ outerRadius = props.outerRadius,
16
+ data = props.data,
17
+ dataKey = props.dataKey,
18
+ dataUnit = props.dataUnit,
19
+ nameKey = props.nameKey,
20
+ color = props.color,
21
+ filled = props.filled,
22
+ labels = props.labels,
23
+ innerLabels = props.innerLabels,
24
+ paddingAngle = props.paddingAngle,
25
+ legend = props.legend,
26
+ tooltip = props.tooltip,
27
+ pieOptions = props.pieOptions,
28
+ remainingProps = _objectWithoutProperties(props, _excluded);
31
29
  var renderInnerLabel = function renderInnerLabel(_ref) {
32
30
  var cx = _ref.cx,
33
- cy = _ref.cy,
34
- midAngle = _ref.midAngle,
35
- innerRadius = _ref.innerRadius,
36
- outerRadius = _ref.outerRadius,
37
- percent = _ref.percent,
38
- index = _ref.index,
39
- value = _ref.value;
31
+ cy = _ref.cy,
32
+ midAngle = _ref.midAngle,
33
+ innerRadius = _ref.innerRadius,
34
+ outerRadius = _ref.outerRadius,
35
+ percent = _ref.percent,
36
+ index = _ref.index,
37
+ value = _ref.value;
40
38
  var radius = innerRadius + (outerRadius - innerRadius) * 0.5;
41
39
  var x = cx + radius * Math.cos(-midAngle * RADIAN);
42
40
  var y = cy + radius * Math.sin(-midAngle * RADIAN);
@@ -48,11 +46,9 @@ var PieChart = function PieChart(props) {
48
46
  dominantBaseline: "central"
49
47
  }, "".concat(value, " ").concat(dataUnit));
50
48
  };
51
-
52
49
  var renderLabels = function renderLabels(entry) {
53
50
  return "".concat(isFunction(dataKey) ? dataKey(entry) : entry[dataKey], " ").concat(dataUnit);
54
51
  };
55
-
56
52
  var pieLabel = labels && (innerLabels ? renderInnerLabel : renderLabels);
57
53
  return /*#__PURE__*/React.createElement(ResponsiveContainer, {
58
54
  width: width,
@@ -68,7 +64,8 @@ var PieChart = function PieChart(props) {
68
64
  isAnimationActive: true,
69
65
  nameKey: nameKey,
70
66
  dataKey: dataKey,
71
- label: pieLabel // cx={Math.max(outerRadius, width / 3)}
67
+ label: pieLabel
68
+ // cx={Math.max(outerRadius, width / 3)}
72
69
  // cy={height / 2}
73
70
  ,
74
71
  innerRadius: filled ? 0 : innerRadius,
@@ -87,7 +84,6 @@ var PieChart = function PieChart(props) {
87
84
  }
88
85
  }, tooltip.props))));
89
86
  };
90
-
91
87
  PieChart.defaultProps = {
92
88
  width: '100%',
93
89
  height: 250,
@@ -1,43 +1,40 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["width", "height", "data", "dataKey", "startAngle", "endAngle", "innerRadius", "outerRadius", "clockWise", "legend", "textOptions", "radialBarOptions", "showBarLabel", "cornerRadius", "background", "range", "tooltip"],
4
- _excluded2 = ["text", "size", "weight", "color"];
4
+ _excluded2 = ["text", "size", "weight", "color"];
5
5
  import React from 'react';
6
6
  import { RadialBarChart as RechartsRadialBarChart, RadialBar as RechartsRadialBar, Legend as RechartsLegend, PolarAngleAxis, Cell, Tooltip as RechartsTooltip, ResponsiveContainer } from 'recharts';
7
7
  import isFunction from 'lodash/fp/isFunction';
8
8
  import { getColor, getFromDefaultColors, CURSOR_BACKGROUND_COLOR } from './chartHelper';
9
9
  import Legend from './Legend';
10
-
11
10
  var RadialBarChart = function RadialBarChart(props) {
12
11
  var width = props.width,
13
- height = props.height,
14
- data = props.data,
15
- dataKey = props.dataKey,
16
- startAngle = props.startAngle,
17
- endAngle = props.endAngle,
18
- innerRadius = props.innerRadius,
19
- outerRadius = props.outerRadius,
20
- clockWise = props.clockWise,
21
- legend = props.legend,
22
- textOptions = props.textOptions,
23
- radialBarOptions = props.radialBarOptions,
24
- showBarLabel = props.showBarLabel,
25
- cornerRadius = props.cornerRadius,
26
- background = props.background,
27
- range = props.range,
28
- tooltip = props.tooltip,
29
- remainingProps = _objectWithoutProperties(props, _excluded);
30
-
12
+ height = props.height,
13
+ data = props.data,
14
+ dataKey = props.dataKey,
15
+ startAngle = props.startAngle,
16
+ endAngle = props.endAngle,
17
+ innerRadius = props.innerRadius,
18
+ outerRadius = props.outerRadius,
19
+ clockWise = props.clockWise,
20
+ legend = props.legend,
21
+ textOptions = props.textOptions,
22
+ radialBarOptions = props.radialBarOptions,
23
+ showBarLabel = props.showBarLabel,
24
+ cornerRadius = props.cornerRadius,
25
+ background = props.background,
26
+ range = props.range,
27
+ tooltip = props.tooltip,
28
+ remainingProps = _objectWithoutProperties(props, _excluded);
31
29
  var _ref = textOptions || {},
32
- text = _ref.text,
33
- _ref$size = _ref.size,
34
- size = _ref$size === void 0 ? '500%' : _ref$size,
35
- _ref$weight = _ref.weight,
36
- weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
37
- _ref$color = _ref.color,
38
- color = _ref$color === void 0 ? 'gray-darkest' : _ref$color,
39
- remainingTextOptions = _objectWithoutProperties(_ref, _excluded2);
40
-
30
+ text = _ref.text,
31
+ _ref$size = _ref.size,
32
+ size = _ref$size === void 0 ? '500%' : _ref$size,
33
+ _ref$weight = _ref.weight,
34
+ weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
35
+ _ref$color = _ref.color,
36
+ color = _ref$color === void 0 ? 'gray-darkest' : _ref$color,
37
+ remainingTextOptions = _objectWithoutProperties(_ref, _excluded2);
41
38
  var textStyle = {
42
39
  fontSize: size,
43
40
  fontWeight: weight,
@@ -93,7 +90,6 @@ var RadialBarChart = function RadialBarChart(props) {
93
90
  }
94
91
  }, tooltip.props))));
95
92
  };
96
-
97
93
  RadialBarChart.defaultProps = {
98
94
  width: 400,
99
95
  height: 200,
@@ -1,9 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
-
3
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
-
5
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
-
7
4
  import colors from '../../styles/shared/colors.json';
8
5
  var brightColors = ['color-warmup-corn', 'color-coldplay-khaki'];
9
6
  export var defaultChartColors = Object.keys(colors).reverse().filter(function (key) {
@@ -22,9 +19,7 @@ export var mapGridOptions = function mapGridOptions(gridOptions) {
22
19
  if (!gridOptions) {
23
20
  return;
24
21
  }
25
-
26
22
  var mappedGridOptions = _objectSpread({}, gridOptions);
27
-
28
23
  var stroke = mappedGridOptions.stroke;
29
24
  mappedGridOptions.stroke = stroke && !stroke.startsWith('#') ? getColor(stroke) : stroke;
30
25
  return mappedGridOptions;
@@ -4,12 +4,11 @@ var _excluded = ["checked", "children", "className", "custom", "defaultChecked",
4
4
  import React, { useRef, useEffect } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classname from 'classnames';
7
-
8
7
  var CheckboxIcon = function CheckboxIcon(props) {
9
8
  var icon = props.icon,
10
- iconSize = props.iconSize,
11
- iconLabelPosition = props.iconLabelPosition,
12
- text = props.text;
9
+ iconSize = props.iconSize,
10
+ iconLabelPosition = props.iconLabelPosition,
11
+ text = props.text;
13
12
  var iconStyles = {
14
13
  width: "".concat(iconSize, "px"),
15
14
  height: "".concat(iconSize, "px"),
@@ -25,79 +24,66 @@ var CheckboxIcon = function CheckboxIcon(props) {
25
24
  className: "checkbox-label"
26
25
  }, text));
27
26
  };
28
-
29
27
  var Checkbox = function Checkbox(props) {
30
28
  var checked = props.checked,
31
- children = props.children,
32
- className = props.className,
33
- custom = props.custom,
34
- defaultChecked = props.defaultChecked,
35
- disabled = props.disabled,
36
- error = props.error,
37
- icon = props.icon,
38
- iconLabelPosition = props.iconLabelPosition,
39
- iconSize = props.iconSize,
40
- _props$id = props.id,
41
- id = _props$id === void 0 ? props.name : _props$id,
42
- indeterminate = props.indeterminate,
43
- inline = props.inline,
44
- inputRef = props.inputRef,
45
- label = props.label,
46
- name = props.name,
47
- onChange = props.onChange,
48
- onClick = props.onClick,
49
- required = props.required,
50
- right = props.right,
51
- size = props.size,
52
- tabIndex = props.tabIndex,
53
- remainingProps = _objectWithoutProperties(props, _excluded);
54
-
29
+ children = props.children,
30
+ className = props.className,
31
+ custom = props.custom,
32
+ defaultChecked = props.defaultChecked,
33
+ disabled = props.disabled,
34
+ error = props.error,
35
+ icon = props.icon,
36
+ iconLabelPosition = props.iconLabelPosition,
37
+ iconSize = props.iconSize,
38
+ _props$id = props.id,
39
+ id = _props$id === void 0 ? props.name : _props$id,
40
+ indeterminate = props.indeterminate,
41
+ inline = props.inline,
42
+ inputRef = props.inputRef,
43
+ label = props.label,
44
+ name = props.name,
45
+ onChange = props.onChange,
46
+ onClick = props.onClick,
47
+ required = props.required,
48
+ right = props.right,
49
+ size = props.size,
50
+ tabIndex = props.tabIndex,
51
+ remainingProps = _objectWithoutProperties(props, _excluded);
55
52
  var labelRef = useRef();
56
-
57
53
  var getInput = function getInput() {
58
54
  return labelRef.current.firstChild;
59
55
  };
60
-
61
56
  useEffect(function () {
62
57
  var input = getInput();
63
58
  input.indeterminate = indeterminate;
64
59
  }, [indeterminate]);
65
-
66
60
  var handleToggleKeyDown = function handleToggleKeyDown(event) {
67
61
  switch (event.keyCode) {
68
62
  case 32:
69
63
  // toggle on space
70
64
  toggle(event);
71
65
  break;
72
-
73
66
  case 13:
74
67
  // open on enter
75
68
  toggle(event);
76
69
  break;
77
-
78
70
  default:
79
71
  break;
80
72
  }
81
73
  };
82
-
83
74
  var toggle = function toggle(event) {
84
75
  event.preventDefault();
85
-
86
76
  if (disabled) {
87
77
  return;
88
78
  }
89
-
90
79
  var input = getInput();
91
-
92
80
  if (input.indeterminate) {
93
81
  input.indeterminate = false;
94
82
  }
95
-
96
83
  input.checked = !input.checked;
97
84
  onClick(event);
98
85
  onChange(event);
99
86
  };
100
-
101
87
  var text = label || children;
102
88
  var labelClassnames = classname('checkbox', inline && 'checkbox-inline', size === 'large' && 'checkbox-large', right && 'checkbox-right', className);
103
89
  var inputClassnames = classname(error && 'error', size === 'large' && 'large', indeterminate && 'indeterminate', className);
@@ -131,7 +117,6 @@ var Checkbox = function Checkbox(props) {
131
117
  className: "checkbox-text"
132
118
  }, /*#__PURE__*/React.createElement("span", null, text)), renderCustomContent && children);
133
119
  };
134
-
135
120
  Checkbox.ICON_LABEL_VERTICAL = 'vertical';
136
121
  Checkbox.ICON_LABEL_HORIZONTAL = 'horizontal';
137
122
  Checkbox.defaultProps = {
@@ -7,15 +7,10 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  var _excluded = ["children", "className", "inputClassName", "type", "hasError", "inputRef", "autoComplete"];
10
-
11
10
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
-
13
11
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
14
-
15
12
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
16
-
17
13
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
18
-
19
14
  import React from 'react';
20
15
  import PropTypes from 'prop-types';
21
16
  import omit from 'lodash/fp/omit';
@@ -24,17 +19,12 @@ import isEmpty from 'lodash/fp/isEmpty';
24
19
  import classNames from 'classnames';
25
20
  export var DEFAULT_TYPE = 'text';
26
21
  export var SUPPORTED_TYPES = ['text', 'password', 'email'];
27
-
28
22
  var ClearableInput = /*#__PURE__*/function (_React$Component) {
29
23
  _inherits(ClearableInput, _React$Component);
30
-
31
24
  var _super = _createSuper(ClearableInput);
32
-
33
25
  function ClearableInput(props) {
34
26
  var _this;
35
-
36
27
  _classCallCheck(this, ClearableInput);
37
-
38
28
  _this = _super.call(this, props);
39
29
  var initialValue = props.value || props.defaultValue || '';
40
30
  _this.state = {
@@ -47,32 +37,33 @@ var ClearableInput = /*#__PURE__*/function (_React$Component) {
47
37
  _this.handleKeyPress = _this.handleKeyPress.bind(_assertThisInitialized(_this));
48
38
  _this.clearInputValue = _this.clearInputValue.bind(_assertThisInitialized(_this));
49
39
  return _this;
50
- } // only gets triggered on user interaction.
51
-
40
+ }
52
41
 
42
+ // only gets triggered on user interaction.
53
43
  _createClass(ClearableInput, [{
54
44
  key: "handleChange",
55
45
  value: function handleChange(event) {
56
46
  var isControlled = this.state.isControlled;
57
47
  var onChange = this.props.onChange;
58
48
  var value = event.target.value;
59
-
60
49
  if (isControlled) {
61
50
  onChange(value, event);
62
51
  } else {
63
52
  this.changeInternalValue(value, event);
64
53
  onChange(value, event);
65
54
  }
66
- } // Will be triggered on every key press but also when pressing 'Enter' for example
55
+ }
67
56
 
57
+ // Will be triggered on every key press but also when pressing 'Enter' for example
68
58
  }, {
69
59
  key: "handleKeyPress",
70
60
  value: function handleKeyPress(event) {
71
61
  var onKeyPress = this.props.onKeyPress;
72
62
  onKeyPress(event);
73
- } // important for when used as a controlled component (value from outside).
74
- // eslint-disable-next-line camelcase
63
+ }
75
64
 
65
+ // important for when used as a controlled component (value from outside).
66
+ // eslint-disable-next-line camelcase
76
67
  }, {
77
68
  key: "UNSAFE_componentWillReceiveProps",
78
69
  value: function UNSAFE_componentWillReceiveProps(nextProps) {
@@ -82,21 +73,19 @@ var ClearableInput = /*#__PURE__*/function (_React$Component) {
82
73
  key: "hasValue",
83
74
  value: function hasValue(value) {
84
75
  return !isEmpty("".concat(value));
85
- } // handles new input value and saves it in the state.
86
- // the value stored in the state is used for rendering.
76
+ }
87
77
 
78
+ // handles new input value and saves it in the state.
79
+ // the value stored in the state is used for rendering.
88
80
  }, {
89
81
  key: "changeInternalValue",
90
82
  value: function changeInternalValue() {
91
83
  var _this2 = this;
92
-
93
84
  var newValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
94
-
95
85
  // this is there to prevent that onChange and UNSAFE_componentWillReceiveProps set state at the same time
96
86
  if (this.state.inputValue === newValue) {
97
87
  return;
98
88
  }
99
-
100
89
  this.setState(function () {
101
90
  return {
102
91
  inputValue: newValue,
@@ -108,42 +97,39 @@ var ClearableInput = /*#__PURE__*/function (_React$Component) {
108
97
  key: "clearInputValue",
109
98
  value: function clearInputValue(event) {
110
99
  var _this$props = this.props,
111
- onChange = _this$props.onChange,
112
- onClear = _this$props.onClear;
100
+ onChange = _this$props.onChange,
101
+ onClear = _this$props.onClear;
113
102
  this.changeInternalValue('', event);
114
103
  onChange('', event);
115
-
116
104
  if (onClear) {
117
105
  onClear(event);
118
106
  }
119
- } // it is always the value from the state which is used for rendering.
107
+ }
108
+
109
+ // it is always the value from the state which is used for rendering.
120
110
  // reason: make it possible to use the component as a controlled or uncontrolled component.
121
111
  // https://facebook.github.io/react/docs/uncontrolled-components.html
122
-
123
112
  }, {
124
113
  key: "render",
125
114
  value: function render() {
126
115
  var filteredProps = omit(['value', 'defaultValue', 'onClear']);
127
-
128
116
  var _this$props2 = this.props,
129
- children = _this$props2.children,
130
- className = _this$props2.className,
131
- inputClassName = _this$props2.inputClassName,
132
- type = _this$props2.type,
133
- hasError = _this$props2.hasError,
134
- inputRef = _this$props2.inputRef,
135
- autoComplete = _this$props2.autoComplete,
136
- customProps = _objectWithoutProperties(_this$props2, _excluded);
137
-
117
+ children = _this$props2.children,
118
+ className = _this$props2.className,
119
+ inputClassName = _this$props2.inputClassName,
120
+ type = _this$props2.type,
121
+ hasError = _this$props2.hasError,
122
+ inputRef = _this$props2.inputRef,
123
+ autoComplete = _this$props2.autoComplete,
124
+ customProps = _objectWithoutProperties(_this$props2, _excluded);
138
125
  var _this$state = this.state,
139
- showClear = _this$state.showClear,
140
- inputValue = _this$state.inputValue;
126
+ showClear = _this$state.showClear,
127
+ inputValue = _this$state.inputValue;
141
128
  var classes = classNames('ClearableInput', 'input-group', hasError && 'has-error', className && className);
142
129
  var inputClassNames = classNames('form-control', inputClassName, showClear && 'withClearButton');
143
130
  var clearButtonClassNames = classNames('clearButton', !showClear && 'hide');
144
131
  var convertedType = type && type.toLowerCase();
145
132
  var inputType = SUPPORTED_TYPES.indexOf(convertedType) !== -1 ? convertedType : DEFAULT_TYPE;
146
-
147
133
  var inputProps = _objectSpread(_objectSpread({}, filteredProps(customProps)), {}, {
148
134
  className: inputClassNames,
149
135
  type: inputType,
@@ -153,7 +139,6 @@ var ClearableInput = /*#__PURE__*/function (_React$Component) {
153
139
  ref: inputRef,
154
140
  autoComplete: autoComplete
155
141
  });
156
-
157
142
  return /*#__PURE__*/React.createElement("div", {
158
143
  className: classes
159
144
  }, children ? children(inputProps) : /*#__PURE__*/React.createElement("input", inputProps), /*#__PURE__*/React.createElement("span", {
@@ -164,10 +149,8 @@ var ClearableInput = /*#__PURE__*/function (_React$Component) {
164
149
  })));
165
150
  }
166
151
  }]);
167
-
168
152
  return ClearableInput;
169
153
  }(React.Component);
170
-
171
154
  ClearableInput.defaultProps = {
172
155
  type: DEFAULT_TYPE,
173
156
  className: '',