@rio-cloud/rio-uikit 0.16.4-beta.3 → 0.16.4-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (449) hide show
  1. package/components/actionBarItem/ActionBarItemIcon.d.ts +1 -1
  2. package/components/activity/Activity.d.ts +26 -0
  3. package/components/animatedNumber/AnimatedNumber.d.ts +8 -0
  4. package/lib/es/AppNavigationBar.d.ts +2 -5
  5. package/lib/es/Area.d.ts +2 -5
  6. package/lib/es/AreaChart.d.ts +2 -5
  7. package/lib/es/AreaGradient.d.ts +2 -5
  8. package/lib/es/AssetTree.d.ts +2 -5
  9. package/lib/es/AutoSuggest.d.ts +2 -6
  10. package/lib/es/AutoSuggest.js +3 -2
  11. package/lib/es/Bar.d.ts +2 -8
  12. package/lib/es/BarChart.d.ts +2 -5
  13. package/lib/es/BrowserWarning.d.ts +2 -5
  14. package/lib/es/Button.d.ts +2 -27
  15. package/lib/es/ButtonDropdown.d.ts +2 -5
  16. package/lib/es/CalendarStripe.d.ts +2 -5
  17. package/lib/es/Carousel.d.ts +2 -11
  18. package/lib/es/ChartNeedle.d.ts +2 -5
  19. package/lib/es/ChartTooltip.d.ts +2 -5
  20. package/lib/es/Checkbox.d.ts +2 -5
  21. package/lib/es/Checkbox.js +3 -2
  22. package/lib/es/Circle.d.ts +2 -5
  23. package/lib/es/ClearableInput.d.ts +2 -5
  24. package/lib/es/ClearableInput.js +3 -2
  25. package/lib/es/ClusterLayer.d.ts +2 -5
  26. package/lib/es/ClusterMapMarker.d.ts +2 -5
  27. package/lib/es/ClusterUtils.d.ts +2 -5
  28. package/lib/es/Collapse.d.ts +2 -5
  29. package/lib/es/ColorScheme.d.ts +3 -4
  30. package/lib/es/Colors.d.ts +2 -21
  31. package/lib/es/ConfirmationDialog.d.ts +2 -14
  32. package/lib/es/ContentLoader.d.ts +2 -8
  33. package/lib/es/ContentLoader.js +3 -2
  34. package/lib/es/ContextMenu.d.ts +2 -5
  35. package/lib/es/ContextMenuItem.d.ts +2 -5
  36. package/lib/es/CustomState.d.ts +2 -5
  37. package/lib/es/DataTab.d.ts +2 -5
  38. package/lib/es/DataTabs.d.ts +2 -5
  39. package/lib/es/DatePicker.d.ts +2 -5
  40. package/lib/es/DateRangePicker.d.ts +2 -5
  41. package/lib/es/DeviceUtils.d.ts +13 -13
  42. package/lib/es/Dialog.d.ts +2 -15
  43. package/lib/es/DomMarker.d.ts +2 -5
  44. package/lib/es/DropdownSubmenu.d.ts +2 -5
  45. package/lib/es/EditableContent.d.ts +2 -0
  46. package/lib/es/EditableContent.js +7 -0
  47. package/lib/es/EmptyState.d.ts +2 -5
  48. package/lib/es/ErrorState.d.ts +2 -5
  49. package/lib/es/EventUtils.d.ts +2 -36
  50. package/lib/es/ExpanderList.d.ts +2 -5
  51. package/lib/es/ExpanderPanel.d.ts +2 -5
  52. package/lib/es/Fade.d.ts +2 -14
  53. package/lib/es/FilePicker.d.ts +2 -9
  54. package/lib/es/ForbiddenState.d.ts +2 -5
  55. package/lib/es/ImagePreloader.d.ts +2 -5
  56. package/lib/es/IncidentsLayer.d.ts +2 -4
  57. package/lib/es/InfoDialog.d.ts +2 -5
  58. package/lib/es/Legend.d.ts +2 -5
  59. package/lib/es/Line.d.ts +2 -5
  60. package/lib/es/LineChart.d.ts +2 -5
  61. package/lib/es/ListMenu.d.ts +2 -6
  62. package/lib/es/MaintenanceState.d.ts +2 -5
  63. package/lib/es/Map.d.ts +2 -12
  64. package/lib/es/MapBoundingBoxButton.d.ts +2 -5
  65. package/lib/es/MapCenterMarkerButton.d.ts +2 -5
  66. package/lib/es/MapClusterSettings.d.ts +2 -5
  67. package/lib/es/MapCustomerPoiSettingsItem.d.ts +2 -5
  68. package/lib/es/MapLayerGroup.d.ts +2 -5
  69. package/lib/es/MapLayerIncidentsItem.d.ts +2 -5
  70. package/lib/es/MapLayerRoadRestrictionsItem.d.ts +2 -5
  71. package/lib/es/MapLayerSettings.d.ts +2 -5
  72. package/lib/es/MapLayerTrafficItem.d.ts +2 -5
  73. package/lib/es/MapLockMarkerButton.d.ts +2 -5
  74. package/lib/es/MapSettings.d.ts +2 -5
  75. package/lib/es/MapSettingsItem.d.ts +2 -5
  76. package/lib/es/MapSettingsPanel.d.ts +2 -5
  77. package/lib/es/MapSettingsTile.d.ts +2 -5
  78. package/lib/es/MapTypeSettings.d.ts +2 -5
  79. package/lib/es/MapWorkshopPoiSettingsItem.d.ts +2 -5
  80. package/lib/es/Marker.d.ts +2 -5
  81. package/lib/es/MarkerLayer.d.ts +2 -5
  82. package/lib/es/MediaDialog.d.ts +2 -9
  83. package/lib/es/MenuItem.d.ts +2 -5
  84. package/lib/es/Multiselect.d.ts +2 -12
  85. package/lib/es/NotBookedState.d.ts +2 -5
  86. package/lib/es/NotFoundState.d.ts +2 -5
  87. package/lib/es/Notification.d.ts +2 -9
  88. package/lib/es/NotificationsContainer.d.ts +2 -5
  89. package/lib/es/NumberControl.d.ts +2 -8
  90. package/lib/es/NumberControl.js +3 -2
  91. package/lib/es/NumberInput.d.ts +2 -8
  92. package/lib/es/NumberInput.js +3 -2
  93. package/lib/es/OnboardingTip.d.ts +2 -30
  94. package/lib/es/Pager.d.ts +2 -11
  95. package/lib/es/Pager.js +3 -2
  96. package/lib/es/PieChart.d.ts +2 -5
  97. package/lib/es/Polygon.d.ts +2 -5
  98. package/lib/es/Polyline.d.ts +2 -5
  99. package/lib/es/Popover.d.ts +2 -11
  100. package/lib/es/Position.d.ts +2 -5
  101. package/lib/es/PositionUtils.d.ts +2 -8
  102. package/lib/es/RadialBarChart.d.ts +2 -5
  103. package/lib/es/RadioButton.d.ts +2 -5
  104. package/lib/es/RangeSlider.d.ts +2 -5
  105. package/lib/es/ReleaseNotes.d.ts +2 -5
  106. package/lib/es/ReleaseNotesDialog.d.ts +2 -5
  107. package/lib/es/ReleaseNotesDialog.js +3 -2
  108. package/lib/es/Resizer.d.ts +2 -13
  109. package/lib/es/Resizer.js +3 -2
  110. package/lib/es/ResponsiveColumnStripe.d.ts +2 -5
  111. package/lib/es/Route.d.ts +2 -5
  112. package/lib/es/RuleConnector.d.ts +2 -10
  113. package/lib/es/RuleContainer.d.ts +2 -6
  114. package/lib/es/RulesWrapper.d.ts +2 -6
  115. package/lib/es/SaveDialog.d.ts +2 -14
  116. package/lib/es/Select.d.ts +2 -5
  117. package/lib/es/Sidebar.d.ts +2 -11
  118. package/lib/es/SimpleButtonDropdown.d.ts +2 -5
  119. package/lib/es/SimpleClusterLayer.d.ts +2 -5
  120. package/lib/es/SimpleDialog.d.ts +2 -14
  121. package/lib/es/SingleButtonDropdown.d.ts +2 -5
  122. package/lib/es/SingleMapMarker.d.ts +2 -5
  123. package/lib/es/Slider.d.ts +2 -5
  124. package/lib/es/SortArrowDown.d.ts +2 -5
  125. package/lib/es/SortArrowUp.d.ts +2 -5
  126. package/lib/es/SortArrows.d.ts +2 -5
  127. package/lib/es/SortDirection.d.ts +2 -11
  128. package/lib/es/SortUtils.d.ts +3 -16
  129. package/lib/es/Spinner.d.ts +2 -5
  130. package/lib/es/Spinner.js +3 -2
  131. package/lib/es/SplitButtonDropdown.d.ts +2 -5
  132. package/lib/es/SplitDialog.d.ts +2 -14
  133. package/lib/es/StatsWidget.d.ts +2 -10
  134. package/lib/es/StatsWidget.js +3 -2
  135. package/lib/es/StatsWidgetNumber.d.ts +2 -5
  136. package/lib/es/StatsWidgetNumber.js +3 -2
  137. package/lib/es/StatsWidgetSpacer.d.ts +2 -5
  138. package/lib/es/StatsWidgetSpacer.js +3 -2
  139. package/lib/es/StatsWidgets.d.ts +1 -5
  140. package/lib/es/StatsWidgets.js +5 -3
  141. package/lib/es/StatusBar.d.ts +2 -5
  142. package/lib/es/StatusBar.js +3 -2
  143. package/lib/es/SteppedProgressBar.d.ts +2 -9
  144. package/lib/es/SubNavigation.d.ts +2 -5
  145. package/lib/es/Switch.d.ts +2 -8
  146. package/lib/es/Switch.js +3 -2
  147. package/lib/es/TableCardsSorting.d.ts +2 -5
  148. package/lib/es/TableSearch.d.ts +2 -5
  149. package/lib/es/TableSettingsDialog.d.ts +2 -5
  150. package/lib/es/TableToolbar.d.ts +2 -5
  151. package/lib/es/TableViewToggles.d.ts +2 -12
  152. package/lib/es/Tag.d.ts +2 -5
  153. package/lib/es/TagList.d.ts +2 -5
  154. package/lib/es/TagManager.d.ts +2 -5
  155. package/lib/es/Teaser.d.ts +2 -5
  156. package/lib/es/TeaserContainer.d.ts +2 -5
  157. package/lib/es/TextMarker.d.ts +2 -5
  158. package/lib/es/TimePicker.d.ts +2 -5
  159. package/lib/es/ToggleButton.d.ts +2 -5
  160. package/lib/es/TrafficLayer.d.ts +2 -4
  161. package/lib/es/Tree.d.ts +2 -5
  162. package/lib/es/TreeCategory.d.ts +2 -5
  163. package/lib/es/TreeOption.d.ts +2 -5
  164. package/lib/es/TreeSearch.d.ts +2 -5
  165. package/lib/es/TreeSummary.d.ts +2 -5
  166. package/lib/es/TruckLayer.d.ts +2 -4
  167. package/lib/es/TypeCounter.d.ts +2 -5
  168. package/lib/es/VolkswagenApplicationHeader.d.ts +2 -5
  169. package/lib/es/components/actionBarItem/ActionBarItem.d.ts +21 -0
  170. package/lib/es/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
  171. package/lib/es/components/actionBarItem/ActionBarItemList.d.ts +4 -1
  172. package/lib/es/components/actionBarItem/ActionBarItemListItem.d.ts +19 -2
  173. package/lib/es/components/actionBarItem/ActionBarItemListSeparator.d.ts +4 -1
  174. package/lib/es/components/actionBarItem/ActionBarItemPopoverContent.d.ts +7 -1
  175. package/lib/es/components/activity/Activity.d.ts +27 -0
  176. package/lib/es/components/animatedNumber/AnimatedNumber.d.ts +8 -0
  177. package/lib/es/components/applicationHeader/AppMenu.d.ts +1 -1
  178. package/lib/es/components/applicationHeader/AppMenu.js +2 -2
  179. package/lib/es/components/applicationHeader/AppMenuContent.d.ts +1 -1
  180. package/lib/es/components/applicationHeader/AppMenuDropdown.d.ts +1 -1
  181. package/lib/es/components/applicationHeader/ApplicationActionBar.d.ts +1 -1
  182. package/lib/es/components/applicationHeader/ApplicationHeader.d.ts +52 -1
  183. package/lib/es/components/applicationHeader/MobileAppMenu.d.ts +1 -1
  184. package/lib/es/components/applicationHeader/MobileHeaderModal.d.ts +1 -1
  185. package/lib/es/components/applicationHeader/MobileSubmoduleNavigation.d.ts +1 -1
  186. package/lib/es/components/applicationHeader/NavItems.d.ts +1 -1
  187. package/lib/es/components/applicationLayout/ApplicationLayout.d.ts +7 -1
  188. package/lib/es/components/applicationLayout/ApplicationLayoutBody.d.ts +29 -2
  189. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +15 -0
  190. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.d.ts +15 -0
  191. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +3 -0
  192. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.d.ts +3 -0
  193. package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.d.ts +3 -0
  194. package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.d.ts +4 -1
  195. package/lib/es/components/assetTree/Tree.js +1 -2
  196. package/lib/es/components/assetTree/TreeLeafList.d.ts +1 -1
  197. package/lib/es/components/assetTree/TreeNodeContainer.d.ts +1 -1
  198. package/lib/es/components/assetTree/TreeNothingFound.d.ts +1 -1
  199. package/lib/es/components/assetTree/TreeOption.d.ts +1 -1
  200. package/lib/es/components/assetTree/TreeOption.js +2 -2
  201. package/lib/es/components/assetTree/TreeOptions.d.ts +1 -1
  202. package/lib/es/components/assetTree/TreeOptions.js +2 -2
  203. package/lib/es/components/assetTree/TreeRoot.d.ts +1 -1
  204. package/lib/es/components/assetTree/TreeSelectAll.d.ts +1 -1
  205. package/lib/es/components/assetTree/TreeSummary.js +1 -1
  206. package/lib/es/components/assetTree/TypeCounter.js +2 -2
  207. package/lib/es/components/autosuggest/AutoSuggest.d.ts +200 -115
  208. package/lib/es/components/autosuggest/AutoSuggest.js +144 -258
  209. package/lib/es/components/autosuggest/AutoSuggestAddons.d.ts +8 -0
  210. package/lib/es/components/autosuggest/AutoSuggestAddons.js +9 -0
  211. package/lib/es/components/autosuggest/DropdownSpinner.d.ts +4 -0
  212. package/lib/es/components/autosuggest/DropdownSpinner.js +8 -0
  213. package/lib/es/components/autosuggest/NoItemMessage.d.ts +5 -0
  214. package/lib/es/components/autosuggest/NoItemMessage.js +7 -0
  215. package/lib/es/components/bottomSheet/BottomSheet.d.ts +6 -6
  216. package/lib/es/components/browserWarning/BrowserIcons.d.ts +2 -2
  217. package/lib/es/components/browserWarning/BrowserWarning.d.ts +1 -1
  218. package/lib/es/components/browserWarning/BrowserWarningMessageDE.d.ts +1 -1
  219. package/lib/es/components/browserWarning/BrowserWarningMessageEN.d.ts +1 -1
  220. package/lib/es/components/button/Button.d.ts +1 -1
  221. package/lib/es/components/button/ToggleButton.d.ts +1 -1
  222. package/lib/es/components/carousel/CarouselCaption.d.ts +1 -1
  223. package/lib/es/components/carousel/CarouselItem.d.ts +1 -1
  224. package/lib/es/components/charts/AreaChart.d.ts +2 -2
  225. package/lib/es/components/charts/AreaGradient.d.ts +1 -1
  226. package/lib/es/components/charts/BarChart.d.ts +2 -2
  227. package/lib/es/components/charts/ChartNeedle.d.ts +1 -1
  228. package/lib/es/components/charts/LineChart.d.ts +2 -2
  229. package/lib/es/components/charts/PieChart.d.ts +3 -3
  230. package/lib/es/components/charts/RadialBarChart.d.ts +2 -2
  231. package/lib/es/components/checkbox/Checkbox.d.ts +126 -56
  232. package/lib/es/components/checkbox/Checkbox.js +25 -65
  233. package/lib/es/components/checkbox/CheckboxIcon.d.ts +9 -0
  234. package/lib/es/components/checkbox/CheckboxIcon.js +15 -0
  235. package/lib/es/components/clearableInput/ClearableInput.d.ts +95 -58
  236. package/lib/es/components/clearableInput/ClearableInput.js +47 -97
  237. package/lib/es/components/collapse/Collapse.d.ts +1 -1
  238. package/lib/es/components/contentLoader/ContentLoader.d.ts +54 -32
  239. package/lib/es/components/contentLoader/ContentLoader.js +36 -33
  240. package/lib/es/components/dataTabs/DataTabs.d.ts +1 -1
  241. package/lib/es/components/datepicker/DateRangePicker.d.ts +6 -6
  242. package/lib/es/components/dialog/ConfirmationDialog.d.ts +1 -1
  243. package/lib/es/components/dialog/Dialog.js +14 -3
  244. package/lib/es/components/dialog/DialogBody.d.ts +1 -1
  245. package/lib/es/components/dialog/DialogFooter.d.ts +1 -1
  246. package/lib/es/components/dialog/DialogHeader.d.ts +1 -1
  247. package/lib/es/components/dialog/InfoDialog.d.ts +1 -1
  248. package/lib/es/components/dialog/MediaDialog.d.ts +6 -6
  249. package/lib/es/components/dialog/ReleaseNotesDialog.d.ts +1 -1
  250. package/lib/es/components/dialog/SaveDialog.d.ts +1 -1
  251. package/lib/es/components/dialog/SimpleDialog.d.ts +1 -1
  252. package/lib/es/components/dialog/SplitDialog.d.ts +1 -1
  253. package/lib/es/components/driverName/DriverName.d.ts +1 -1
  254. package/lib/es/components/dropdown/ButtonDropdown.d.ts +1 -1
  255. package/lib/es/components/dropdown/Caret.d.ts +1 -1
  256. package/lib/es/components/dropdown/DropdownSubmenu.d.ts +1 -1
  257. package/lib/es/components/dropdown/SimpleButtonDropdown.d.ts +1 -1
  258. package/lib/es/components/dropdown/SingleButtonDropdown.d.ts +1 -1
  259. package/lib/es/components/dropdown/SplitButtonDropdown.d.ts +1 -1
  260. package/lib/es/components/editableContent/EditableContent.d.ts +86 -0
  261. package/lib/es/components/editableContent/EditableContent.js +112 -0
  262. package/lib/es/components/expander/ExpanderList.d.ts +3 -3
  263. package/lib/es/components/expander/ExpanderPanel.d.ts +1 -1
  264. package/lib/es/components/fade/Fade.d.ts +1 -1
  265. package/lib/es/components/filepicker/FilePicker.d.ts +1 -1
  266. package/lib/es/components/listMenu/ListMenu.d.ts +1 -1
  267. package/lib/es/components/loadMore/LoadMoreButton.d.ts +31 -3
  268. package/lib/es/components/loadMore/LoadMoreProgress.d.ts +1 -1
  269. package/lib/es/components/map/components/Map.d.ts +1 -1
  270. package/lib/es/components/map/components/features/MapSettings.d.ts +1 -1
  271. package/lib/es/components/map/components/features/Route.d.ts +1 -1
  272. package/lib/es/components/map/components/features/basics/MapLayerGroup.d.ts +1 -1
  273. package/lib/es/components/map/components/features/basics/marker/TextMarker.d.ts +1 -1
  274. package/lib/es/components/map/components/features/layers/IncidentsLayer.d.ts +1 -1
  275. package/lib/es/components/map/components/features/layers/MarkerLayer.d.ts +1 -1
  276. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.d.ts +1 -1
  277. package/lib/es/components/map/components/features/layers/TrafficLayer.d.ts +1 -1
  278. package/lib/es/components/map/components/features/layers/clustering/SimpleClusterLayer.d.ts +1 -1
  279. package/lib/es/components/map/components/features/settings/MapSettingsItem.d.ts +1 -1
  280. package/lib/es/components/map/components/features/settings/MapSettingsPanel.d.ts +1 -1
  281. package/lib/es/components/map/components/features/settings/MapSettingsTile.d.ts +1 -1
  282. package/lib/es/components/map/components/features/settings/ZoomButtons.d.ts +1 -1
  283. package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +1 -1
  284. package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.d.ts +1 -1
  285. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +1 -1
  286. package/lib/es/components/map/components/features/settings/buttons/MapBoundingBoxButton.d.ts +1 -1
  287. package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.d.ts +1 -1
  288. package/lib/es/components/map/components/features/settings/buttons/MapLockMarkerButton.d.ts +1 -1
  289. package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +1 -1
  290. package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +1 -1
  291. package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +1 -1
  292. package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +1 -1
  293. package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +1 -1
  294. package/lib/es/components/mapMarker/ClusterMapMarker.d.ts +1 -1
  295. package/lib/es/components/mapMarker/SingleMapMarker.d.ts +1 -1
  296. package/lib/es/components/menuItems/MenuItem.d.ts +13 -24
  297. package/lib/es/components/menuItems/MenuItem.js +8 -23
  298. package/lib/es/components/navigation/AppNavigationBar.js +1 -1
  299. package/lib/es/components/noData/NoData.d.ts +27 -2
  300. package/lib/es/components/notification/NotificationsContainer.d.ts +1 -1
  301. package/lib/es/components/numberControl/NumberControl.d.ts +4 -2
  302. package/lib/es/components/numberControl/NumberControl.js +22 -34
  303. package/lib/es/components/numberInput/NumberInput.d.ts +76 -9
  304. package/lib/es/components/numberInput/NumberInput.js +80 -47
  305. package/lib/es/components/overlay/OverlayTrigger.d.ts +4 -16
  306. package/lib/es/components/overlay/OverlayTrigger.js +4 -2
  307. package/lib/es/components/pager/Pager.d.ts +52 -24
  308. package/lib/es/components/pager/Pager.js +10 -20
  309. package/lib/es/components/position/Position.d.ts +1 -1
  310. package/lib/es/components/radiobutton/RadioButton.d.ts +1 -1
  311. package/lib/es/components/radiobutton/RadioButton.js +3 -3
  312. package/lib/es/components/releaseNotes/ReleaseNotes.d.ts +34 -8
  313. package/lib/es/components/releaseNotes/ReleaseNotes.js +8 -18
  314. package/lib/es/components/resizer/Resizer.d.ts +57 -64
  315. package/lib/es/components/resizer/Resizer.js +109 -109
  316. package/lib/es/components/rules/RuleConnector.d.ts +1 -1
  317. package/lib/es/components/rules/RuleContainer.d.ts +1 -1
  318. package/lib/es/components/rules/RulesWrapper.d.ts +1 -1
  319. package/lib/es/components/saveableInput/SaveableInput.d.ts +34 -2
  320. package/lib/es/components/selects/BaseDropdownMenu.d.ts +2 -2
  321. package/lib/es/components/selects/DropdownHeader.d.ts +1 -1
  322. package/lib/es/components/selects/Multiselect.d.ts +7 -7
  323. package/lib/es/components/selects/Select.d.ts +7 -7
  324. package/lib/es/components/sidebars/Sidebar.d.ts +1 -1
  325. package/lib/es/components/slider/RangeSlider.d.ts +1 -1
  326. package/lib/es/components/slider/Slider.d.ts +1 -1
  327. package/lib/es/components/spinner/Spinner.d.ts +47 -27
  328. package/lib/es/components/spinner/Spinner.js +12 -31
  329. package/lib/es/components/states/CustomState.d.ts +1 -1
  330. package/lib/es/components/states/EmptyState.d.ts +1 -1
  331. package/lib/es/components/states/ErrorState.d.ts +1 -1
  332. package/lib/es/components/states/ForbiddenState.d.ts +1 -1
  333. package/lib/es/components/states/MaintenanceState.d.ts +1 -1
  334. package/lib/es/components/states/NotBookedState.d.ts +1 -1
  335. package/lib/es/components/states/NotFoundState.d.ts +1 -1
  336. package/lib/es/components/statsWidget/StatsWidget.d.ts +25 -21
  337. package/lib/es/components/statsWidget/StatsWidget.js +8 -16
  338. package/lib/es/components/statsWidget/StatsWidgetBody.d.ts +13 -12
  339. package/lib/es/components/statsWidget/StatsWidgetBody.js +6 -13
  340. package/lib/es/components/statsWidget/StatsWidgetFooter.d.ts +9 -2
  341. package/lib/es/components/statsWidget/StatsWidgetFooter.js +6 -5
  342. package/lib/es/components/statsWidget/StatsWidgetHeader.d.ts +8 -1
  343. package/lib/es/components/statsWidget/StatsWidgetHeader.js +5 -4
  344. package/lib/es/components/statsWidget/StatsWidgetNumber.d.ts +30 -20
  345. package/lib/es/components/statsWidget/StatsWidgetNumber.js +6 -19
  346. package/lib/es/components/statsWidget/StatsWidgetSpacer.d.ts +7 -1
  347. package/lib/es/components/statsWidget/StatsWidgetSpacer.js +4 -4
  348. package/lib/es/components/statsWidget/StatsWidgets.d.ts +8 -7
  349. package/lib/es/components/statsWidget/StatsWidgets.js +5 -8
  350. package/lib/es/components/statusBar/StatusBar.d.ts +32 -54
  351. package/lib/es/components/statusBar/StatusBar.js +51 -127
  352. package/lib/es/components/statusBar/StatusBar.types.d.ts +85 -0
  353. package/lib/es/components/statusBar/StatusBar.types.js +2 -0
  354. package/lib/es/components/statusBar/StatusBarConstants.d.ts +8 -0
  355. package/lib/es/components/statusBar/StatusBarConstants.js +16 -0
  356. package/lib/es/components/statusBar/StatusBarIcon.d.ts +7 -0
  357. package/lib/es/components/statusBar/StatusBarIcon.js +19 -0
  358. package/lib/es/components/statusBar/StatusBarLabel.d.ts +8 -0
  359. package/lib/es/components/statusBar/StatusBarLabel.js +23 -0
  360. package/lib/es/components/statusBar/StatusBarProgressBar.d.ts +8 -0
  361. package/lib/es/components/statusBar/StatusBarProgressBar.js +21 -0
  362. package/lib/es/components/steppedProgressBar/SteppedProgressBar.d.ts +1 -1
  363. package/lib/es/components/switch/Switch.d.ts +50 -28
  364. package/lib/es/components/switch/Switch.js +11 -27
  365. package/lib/es/components/table/SortArrows.d.ts +3 -3
  366. package/lib/es/components/table/TableCardsSorting.d.ts +1 -1
  367. package/lib/es/components/table/TableSearch.d.ts +1 -1
  368. package/lib/es/components/table/TableSettingsColumnButtons.d.ts +1 -1
  369. package/lib/es/components/table/TableSettingsColumnDetails.d.ts +1 -1
  370. package/lib/es/components/table/TableSettingsDialog.d.ts +4 -4
  371. package/lib/es/components/table/TableSettingsDialogFooter.d.ts +1 -1
  372. package/lib/es/components/table/TableSettingsListContainer.d.ts +1 -1
  373. package/lib/es/components/table/TableSettingsListItem.d.ts +1 -1
  374. package/lib/es/components/table/TableToolbar.d.ts +1 -1
  375. package/lib/es/components/table/TableViewToggles.d.ts +1 -1
  376. package/lib/es/components/tag/Tag.d.ts +1 -1
  377. package/lib/es/components/tag/TagList.d.ts +1 -1
  378. package/lib/es/components/tagManager/CustomSuggestionItem.d.ts +1 -1
  379. package/lib/es/components/tagManager/TagManager.d.ts +1 -1
  380. package/lib/es/components/tagManager/TagManagerItemList.d.ts +1 -1
  381. package/lib/es/components/teaser/Teaser.d.ts +8 -8
  382. package/lib/es/components/teaser/TeaserContainer.d.ts +1 -1
  383. package/lib/es/components/timepicker/TimePicker.d.ts +1 -1
  384. package/lib/es/components/tooltip/SimpleTooltip.d.ts +1 -1
  385. package/lib/es/components/video/ResponsiveVideo.d.ts +25 -5
  386. package/lib/es/components/video/ResponsiveVideo.js +4 -2
  387. package/lib/es/framer-motion.d.ts +1 -1
  388. package/lib/es/hooks/useEsc.d.ts +2 -1
  389. package/lib/es/hooks/useEsc.js +2 -2
  390. package/lib/es/hooks/useEvent.d.ts +2 -1
  391. package/lib/es/hooks/useEvent.js +9 -4
  392. package/lib/es/hooks/useFocusTrap.d.ts +16 -0
  393. package/lib/es/hooks/useFocusTrap.js +64 -0
  394. package/lib/es/hooks/useHover.d.ts +3 -0
  395. package/lib/es/hooks/useHover.js +31 -0
  396. package/lib/es/hooks/useKey.d.ts +3 -1
  397. package/lib/es/hooks/useKey.js +8 -4
  398. package/lib/es/hooks/usePrevious.d.ts +21 -1
  399. package/lib/es/hooks/usePrevious.js +30 -11
  400. package/lib/es/index.d.ts +35 -31
  401. package/lib/es/index.js +58 -35
  402. package/lib/es/types.d.ts +1 -239
  403. package/lib/es/types.js +1 -19
  404. package/lib/es/useAfterMount.d.ts +2 -4
  405. package/lib/es/useClickOutside.d.ts +2 -4
  406. package/lib/es/useClipboard.d.ts +2 -4
  407. package/lib/es/useDarkMode.d.ts +2 -4
  408. package/lib/es/useDebugInfo.d.ts +2 -4
  409. package/lib/es/useEffectOnce.d.ts +2 -4
  410. package/lib/es/useElementSize.d.ts +2 -4
  411. package/lib/es/useEsc.d.ts +1 -4
  412. package/lib/es/useEsc.js +5 -3
  413. package/lib/es/useEvent.d.ts +1 -4
  414. package/lib/es/useEvent.js +5 -3
  415. package/lib/es/useFocusTrap.d.ts +1 -0
  416. package/lib/es/useFocusTrap.js +8 -0
  417. package/lib/es/useFullscreen.d.ts +2 -4
  418. package/lib/es/useHover.d.ts +1 -0
  419. package/lib/es/useHover.js +8 -0
  420. package/lib/es/useInterval.d.ts +2 -4
  421. package/lib/es/useKey.d.ts +1 -4
  422. package/lib/es/useKey.js +5 -3
  423. package/lib/es/useLocalStorage.d.ts +2 -4
  424. package/lib/es/useMutationObserver.d.ts +2 -4
  425. package/lib/es/useOnScreen.d.ts +2 -4
  426. package/lib/es/useOnlineStatus.d.ts +2 -4
  427. package/lib/es/usePrevious.d.ts +2 -4
  428. package/lib/es/usePrevious.js +3 -2
  429. package/lib/es/useRenderCount.d.ts +2 -4
  430. package/lib/es/useResizeObserver.d.ts +2 -4
  431. package/lib/es/useScrollPosition.d.ts +2 -4
  432. package/lib/es/useSessionStorage.d.ts +2 -4
  433. package/lib/es/useStateWithValidation.d.ts +2 -4
  434. package/lib/es/useTimeout.d.ts +2 -4
  435. package/lib/es/useWindowResize.d.ts +2 -4
  436. package/lib/es/utils/buttonEffect.js +6 -2
  437. package/lib/es/utils/colorScheme.d.ts +1 -1
  438. package/lib/es/utils/darkModeCDN.d.ts +1 -1
  439. package/lib/es/utils/getDropDirection.d.ts +2 -4
  440. package/lib/es/utils/getDropDirection.js +12 -8
  441. package/lib/es/utils/init.d.ts +2 -2
  442. package/lib/es/utils/init.js +29 -6
  443. package/lib/es/utils/logDeprecatedWarnings.d.ts +8 -2
  444. package/lib/es/utils/logDeprecatedWarnings.js +2 -3
  445. package/lib/es/utils/useDropDirection.d.ts +12 -0
  446. package/lib/es/utils/useDropDirection.js +26 -0
  447. package/lib/es/version.json +1 -1
  448. package/package.json +1 -1
  449. package/version.json +1 -1
@@ -2,11 +2,36 @@ import { type ReactNode } from 'react';
2
2
  import type { TooltipWidth } from '../tooltip/Tooltip';
3
3
  import { type Placement } from '../../values/Placement';
4
4
  export type NoDataProps = {
5
+ /**
6
+ * The actual translated "No data" text.
7
+ */
5
8
  text: string | ReactNode;
6
- className?: string;
9
+ /**
10
+ * Additional explanation shown inside a tooltip.
11
+ */
7
12
  tooltip?: string | ReactNode;
13
+ /**
14
+ * Sets the direction the Tooltip is positioned towards.
15
+ *
16
+ * Possible values are:
17
+ * `auto-start`, `auto`, `auto-end`,
18
+ * `top-start`, `top`, `top-end`,
19
+ * `bottom-start`, `bottom`, `bottom-end`,
20
+ * `right-start`, `right`, `right-end`,
21
+ * `left-start`, `left`, `left-end`
22
+ */
8
23
  tooltipPlacement?: Placement;
24
+ /**
25
+ * The width of the tooltip.
26
+ *
27
+ * Possible values are:
28
+ * `auto`, `100`, `150`, `200`, `250`, `300`, `350`, `400`, `450`, `500`
29
+ */
9
30
  tooltipWidth?: TooltipWidth;
31
+ /**
32
+ * Additional class names to be added to the wrapping element.
33
+ */
34
+ className?: string;
10
35
  };
11
- declare const NoData: (props: NoDataProps) => JSX.Element;
36
+ declare const NoData: (props: NoDataProps) => import("react/jsx-runtime").JSX.Element;
12
37
  export default NoData;
@@ -1,7 +1,7 @@
1
1
  export default NotificationsContainer;
2
2
  declare function NotificationsContainer({ stacked }: {
3
3
  stacked: any;
4
- }): JSX.Element;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
5
  declare namespace NotificationsContainer {
6
6
  namespace defaultProps {
7
7
  const stacked: boolean;
@@ -1,3 +1,5 @@
1
+ import React from 'react';
2
+ import { type NumberInputProps } from '../numberInput/NumberInput';
3
+ export type NumberControlProps = NumberInputProps;
4
+ declare const NumberControl: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
1
5
  export default NumberControl;
2
- declare const NumberControl: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
3
- import React from "react";
@@ -2,30 +2,31 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = tslib_1.__importStar(require("react"));
6
- const prop_types_1 = tslib_1.__importDefault(require("prop-types"));
5
+ const react_1 = require("react");
7
6
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
8
7
  const NumberInput_1 = tslib_1.__importStar(require("../numberInput/NumberInput"));
9
8
  const INITIAL_TICK = 700;
10
9
  const TICK_TIME = 50;
11
10
  const DEFAULT_DIGIT_PRECISION = 3;
12
11
  const NumberControl = (0, react_1.forwardRef)((props, ref) => {
13
- const { min = NumberInput_1.defaultProps.min, max = NumberInput_1.defaultProps.max, step = NumberInput_1.defaultProps.step, value, onChange, onValueChanged = () => { }, disabled, bsSize, className, unit, inputAddon, digitPrecision = DEFAULT_DIGIT_PRECISION, placeholder } = props, remainingProps = tslib_1.__rest(props, ["min", "max", "step", "value", "onChange", "onValueChanged", "disabled", "bsSize", "className", "unit", "inputAddon", "digitPrecision", "placeholder"]);
12
+ const { min = NumberInput_1.DEFAULT_MIN, max = NumberInput_1.DEFAULT_MAX, step = NumberInput_1.DEFAULT_STEP, value, onChange, onValueChanged = () => { }, disabled, bsSize, className, unit, inputAddon, digitPrecision = DEFAULT_DIGIT_PRECISION, placeholder } = props, remainingProps = tslib_1.__rest(props, ["min", "max", "step", "value", "onChange", "onValueChanged", "disabled", "bsSize", "className", "unit", "inputAddon", "digitPrecision", "placeholder"]);
14
13
  // Note, "onChange" should replace "onValueChanged" in the future but it's widely used
15
14
  const callback = onChange || onValueChanged;
16
- const timeout = (0, react_1.useRef)();
15
+ const timeout = (0, react_1.useRef)(null);
17
16
  const [isHoldingDownInc, setIsHoldingDownInc] = (0, react_1.useState)(false);
18
17
  const [isHoldingDownDec, setIsHoldingDownDec] = (0, react_1.useState)(false);
19
18
  const [internalValue, setInternalValue] = (0, react_1.useState)(value);
20
- const initialTimeout = callback => {
21
- clearTimeout(timeout.current);
19
+ const initialTimeout = (callbackFn) => {
20
+ if (timeout.current !== null) {
21
+ clearTimeout(timeout.current);
22
+ }
22
23
  timeout.current = setTimeout(() => {
23
- callback();
24
+ callbackFn();
24
25
  }, INITIAL_TICK);
25
26
  };
26
- const recursiveTimeout = callback => {
27
+ const recursiveTimeout = (callbackFn) => {
27
28
  timeout.current = setTimeout(() => {
28
- callback();
29
+ callbackFn();
29
30
  }, TICK_TIME);
30
31
  };
31
32
  // Update internal state if external value has changed
@@ -43,7 +44,7 @@ const NumberControl = (0, react_1.forwardRef)((props, ref) => {
43
44
  (0, react_1.useEffect)(() => {
44
45
  // Call increment function for a loop when button is holding down
45
46
  if (isHoldingDownInc && !disabled) {
46
- initialTimeout(incrementRecusively);
47
+ initialTimeout(incrementRecursively);
47
48
  }
48
49
  // Call decrement function for a loop when button is holding down
49
50
  if (isHoldingDownDec && !disabled) {
@@ -52,7 +53,7 @@ const NumberControl = (0, react_1.forwardRef)((props, ref) => {
52
53
  }, [isHoldingDownInc, isHoldingDownDec]);
53
54
  const incrementInternalValue = () => {
54
55
  setInternalValue(val => {
55
- const currentValue = (0, NumberInput_1.convertNonIntegerToDefault)(val);
56
+ const currentValue = (0, NumberInput_1.convertNonIntegerToDefault)(val, NumberInput_1.DEFAULT_VALUE);
56
57
  const newValue = Number((currentValue + step).toFixed(digitPrecision));
57
58
  const newValueLimited = newValue <= max ? newValue : val;
58
59
  return newValueLimited;
@@ -60,15 +61,15 @@ const NumberControl = (0, react_1.forwardRef)((props, ref) => {
60
61
  };
61
62
  const decrementInternalValue = () => {
62
63
  setInternalValue(val => {
63
- const currentValue = (0, NumberInput_1.convertNonIntegerToDefault)(val);
64
+ const currentValue = (0, NumberInput_1.convertNonIntegerToDefault)(val, NumberInput_1.DEFAULT_VALUE);
64
65
  const newValue = Number((currentValue - step).toFixed(digitPrecision));
65
66
  const newValueLimited = newValue >= min ? newValue : val;
66
67
  return newValueLimited;
67
68
  });
68
69
  };
69
- const incrementRecusively = () => {
70
+ const incrementRecursively = () => {
70
71
  incrementInternalValue();
71
- recursiveTimeout(incrementRecusively);
72
+ recursiveTimeout(incrementRecursively);
72
73
  };
73
74
  const decrementRecursively = () => {
74
75
  decrementInternalValue();
@@ -91,37 +92,24 @@ const NumberControl = (0, react_1.forwardRef)((props, ref) => {
91
92
  decrementInternalValue();
92
93
  };
93
94
  const handleStopHolding = () => {
94
- clearTimeout(timeout.current);
95
+ if (timeout.current !== null) {
96
+ clearTimeout(timeout.current);
97
+ }
95
98
  setIsHoldingDownInc(false);
96
99
  setIsHoldingDownDec(false);
97
100
  };
98
- const handleUpdatedNumberInputValue = value => {
101
+ const handleUpdatedNumberInputValue = (newValue) => {
99
102
  // Set the internal value when the value of the actual input has changed,
100
103
  // for instance the user has typed in a number manually and to
101
104
  // use this number as base to increase or decrease from.
102
105
  // Ignore empty value in case the user has removed it
103
- if (value !== undefined && !(isHoldingDownDec && isHoldingDownInc)) {
104
- setInternalValue(Number(value));
106
+ if (newValue !== undefined && !(isHoldingDownDec && isHoldingDownInc)) {
107
+ setInternalValue(Number(newValue));
105
108
  }
106
- callback(value);
109
+ callback(newValue);
107
110
  };
108
111
  const classes = (0, classnames_1.default)('NumberControl', 'form-group', className);
109
112
  const inputGroupClassNames = (0, classnames_1.default)('input-group', bsSize === 'sm' && 'input-group-sm', bsSize === 'lg' && 'input-group-lg');
110
113
  return ((0, jsx_runtime_1.jsx)("div", Object.assign({}, remainingProps, { className: classes }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: inputGroupClassNames }, { children: [inputAddon && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'input-group-addon' }, { children: (0, jsx_runtime_1.jsx)("span", { className: inputAddon }) }))), (0, jsx_runtime_1.jsx)(NumberInput_1.default, { ref: ref, min: min, max: max, value: internalValue, step: step, disabled: disabled, onChange: handleUpdatedNumberInputValue, digitPrecision: digitPrecision, placeholder: placeholder }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'input-group-addon' }, { children: [unit && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'margin-right-5' }, { children: unit })), (0, jsx_runtime_1.jsx)("div", Object.assign({ onMouseDown: handleMouseDownOnDecrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'decrement-button', className: 'decrementButton text-color-gray hover-text-color-dark' }, { children: (0, jsx_runtime_1.jsx)("div", { className: 'rioglyph rioglyph-minus scale-90' }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ onMouseDown: handleMouseDownOnIncrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'increment-button', className: 'incrementButton text-color-gray hover-text-color-dark margin-left-5' }, { children: (0, jsx_runtime_1.jsx)("div", { className: 'rioglyph rioglyph-plus scale-90' }) }))] }))] })) })));
111
114
  });
112
- NumberControl.propTypes = {
113
- min: prop_types_1.default.number,
114
- max: prop_types_1.default.number,
115
- value: prop_types_1.default.number,
116
- step: prop_types_1.default.number,
117
- disabled: prop_types_1.default.bool,
118
- onChange: prop_types_1.default.func,
119
- onValueChanged: prop_types_1.default.func,
120
- bsSize: prop_types_1.default.string,
121
- className: prop_types_1.default.string,
122
- unit: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]),
123
- inputAddon: prop_types_1.default.string,
124
- digitPrecision: prop_types_1.default.number,
125
- placeholder: prop_types_1.default.string,
126
- };
127
115
  exports.default = NumberControl;
@@ -1,10 +1,77 @@
1
- export namespace defaultProps {
2
- export const min: number;
3
- export const max: number;
4
- export { DEFAULT_STEP as step };
5
- }
6
- export function convertNonIntegerToDefault(value: any): any;
1
+ import React from 'react';
2
+ export declare const DEFAULT_VALUE = 0;
3
+ export declare const DEFAULT_STEP = 1;
4
+ export declare const DEFAULT_MIN = 0;
5
+ export declare const DEFAULT_MAX: number;
6
+ export declare const convertNonIntegerToDefault: (value: number | undefined, fallback: number) => number;
7
+ export type NumberInputProps = {
8
+ /**
9
+ * The minimum value of the input.
10
+ * @default 0
11
+ */
12
+ min?: number;
13
+ /**
14
+ * The maximum value of the input.
15
+ * @default Number.MAX_VALUE
16
+ */
17
+ max?: number;
18
+ /**
19
+ * The initial value of the input. Used to control the component from the outside.
20
+ * @default 0
21
+ */
22
+ value?: number;
23
+ /**
24
+ * The size of increment or decrement (only works with number type).
25
+ * @default 1
26
+ */
27
+ step?: number;
28
+ /**
29
+ * Enables or disabled the input.
30
+ * @default false
31
+ */
32
+ disabled?: boolean;
33
+ /**
34
+ * Callback function triggered when the input value changes.
35
+ *
36
+ * When the value is removed by the user, the input is kept empty but it
37
+ * triggers the callback without any value since the user has finished his input.
38
+ * @param value
39
+ * @returns
40
+ */
41
+ onChange?: (value?: number) => void;
42
+ /**
43
+ * Note: "onChange" should replace "onValueChanged" in the future but it's still widely used
44
+ * @deprecated Please use `onChange`
45
+ * @param value
46
+ * @returns
47
+ */
48
+ onValueChanged?: (value?: number) => void;
49
+ /**
50
+ * Defines the size of the input to be rendered.
51
+ * @default 'md'
52
+ */
53
+ bsSize?: 'sm' | 'md' | 'lg';
54
+ /**
55
+ * A unit for this value. This will be shown in a dedicated input addon.
56
+ */
57
+ unit?: string | React.ReactNode;
58
+ /**
59
+ * A rioglyph icon tio be shown in front of the input.
60
+ */
61
+ inputAddon?: string;
62
+ /**
63
+ * The input placeholder if no value is given.
64
+ */
65
+ placeholder?: string;
66
+ /**
67
+ * Number of digits after the comma the value should be fixed to.
68
+ * @default 3
69
+ */
70
+ digitPrecision?: number;
71
+ /**
72
+ * Additional classes to be set on the component.
73
+ */
74
+ className?: string;
75
+ };
76
+ declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
7
77
  export default NumberInput;
8
- declare const DEFAULT_STEP: 1;
9
- declare const NumberInput: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
10
- import React from "react";
@@ -1,29 +1,47 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertNonIntegerToDefault = exports.defaultProps = void 0;
3
+ exports.convertNonIntegerToDefault = exports.DEFAULT_MAX = exports.DEFAULT_MIN = exports.DEFAULT_STEP = exports.DEFAULT_VALUE = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const react_1 = tslib_1.__importStar(require("react"));
7
- const prop_types_1 = tslib_1.__importDefault(require("prop-types"));
6
+ const react_1 = require("react");
8
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
8
+ const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
9
9
  const useAfterMount_1 = tslib_1.__importDefault(require("../../hooks/useAfterMount"));
10
10
  const DEFAULT_DIGIT_PRECISION = 3;
11
- const DEFAULT_VALUE = 0;
12
- const DEFAULT_STEP = 1;
11
+ exports.DEFAULT_VALUE = 0;
12
+ exports.DEFAULT_STEP = 1;
13
+ exports.DEFAULT_MIN = 0;
14
+ exports.DEFAULT_MAX = Number.MAX_VALUE;
15
+ const validKeys = [
16
+ '0',
17
+ '1',
18
+ '2',
19
+ '3',
20
+ '4',
21
+ '5',
22
+ '6',
23
+ '7',
24
+ '8',
25
+ '9',
26
+ '.',
27
+ ',',
28
+ '-',
29
+ 'Backspace',
30
+ 'Tab',
31
+ 'ArrowLeft',
32
+ 'ArrowRight',
33
+ 'ArrowDown',
34
+ 'ArrowUp',
35
+ ];
13
36
  // Note: even if limits are set and input type is number, many browsers allow to enter invalid data
14
37
  // like entering characters or values outside the boundaries, hence we have to check the input here
15
38
  // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number
16
- exports.defaultProps = {
17
- min: 0,
18
- max: Number.MAX_VALUE,
19
- step: DEFAULT_STEP,
20
- };
21
39
  const getValueFromProps = (val, min, max, placeholder) => {
22
40
  // Show placeholders if given instead of 0
23
41
  if (val === undefined && placeholder) {
24
42
  return '';
25
43
  }
26
- return clampNumber(Number(val), min, max) || DEFAULT_VALUE;
44
+ return clampNumber(Number(val), min, max) || exports.DEFAULT_VALUE;
27
45
  };
28
46
  const clampNumber = (value, min, max) => {
29
47
  if (value < min) {
@@ -34,20 +52,23 @@ const clampNumber = (value, min, max) => {
34
52
  }
35
53
  return value;
36
54
  };
37
- const convertNonIntegerToDefault = value => {
38
- let currentValue = value;
39
- if (!Number.isFinite(currentValue)) {
40
- currentValue = DEFAULT_VALUE;
41
- }
42
- return currentValue;
55
+ const convertNonIntegerToDefault = (value, fallback) => {
56
+ return typeof value === 'number' && Number.isFinite(value) ? value : fallback;
43
57
  };
44
58
  exports.convertNonIntegerToDefault = convertNonIntegerToDefault;
45
- const NumberInput = react_1.default.forwardRef((props, ref) => {
46
- const { unit, inputAddon, className, bsSize, disabled, onChange, onValueChanged = () => { }, min: propMin, max: propMax, value: propValue, step = DEFAULT_STEP, digitPrecision = DEFAULT_DIGIT_PRECISION, placeholder } = props, remainingProps = tslib_1.__rest(props, ["unit", "inputAddon", "className", "bsSize", "disabled", "onChange", "onValueChanged", "min", "max", "value", "step", "digitPrecision", "placeholder"]);
59
+ const isMultipleKeyInput = (key, event, previousKeyRef) => {
60
+ return event.key === key && previousKeyRef.current.includes(key);
61
+ };
62
+ const isInvalidAfter = (key, possiblePreviousKeys, event, previousKeyRef) => {
63
+ return event.key === key && possiblePreviousKeys.includes(previousKeyRef.current);
64
+ };
65
+ const NumberInput = (0, react_1.forwardRef)((props, ref) => {
66
+ const { min: propMin, max: propMax, value: propValue, step = exports.DEFAULT_STEP, disabled = false, onChange, onValueChanged = noop_1.default, bsSize = 'md', unit, inputAddon, placeholder, digitPrecision = DEFAULT_DIGIT_PRECISION, className = '' } = props, remainingProps = tslib_1.__rest(props, ["min", "max", "value", "step", "disabled", "onChange", "onValueChanged", "bsSize", "unit", "inputAddon", "placeholder", "digitPrecision", "className"]);
67
+ const previousKeyRef = (0, react_1.useRef)('');
47
68
  // Note, "onChange" should replace "onValueChanged" in the future but it's widely used
48
69
  const callback = onChange || onValueChanged;
49
- const min = Number.isFinite(propMin) ? propMin : exports.defaultProps.min;
50
- const max = Number.isFinite(propMax) ? propMax : exports.defaultProps.max;
70
+ const min = (0, exports.convertNonIntegerToDefault)(propMin, exports.DEFAULT_MIN);
71
+ const max = (0, exports.convertNonIntegerToDefault)(propMax, exports.DEFAULT_MAX);
51
72
  const value = getValueFromProps(propValue, min, max, placeholder);
52
73
  // Define local state and define initial values
53
74
  const [state, setState] = (0, react_1.useState)({
@@ -63,7 +84,7 @@ const NumberInput = react_1.default.forwardRef((props, ref) => {
63
84
  isValid: true,
64
85
  });
65
86
  }, [propValue, clampNumber]);
66
- const applyValue = newValue => {
87
+ const applyValue = (newValue) => {
67
88
  if (newValue === '-' || newValue === '') {
68
89
  setState({
69
90
  value: newValue,
@@ -83,48 +104,60 @@ const NumberInput = react_1.default.forwardRef((props, ref) => {
83
104
  // Only call back the caller for valid values
84
105
  isValid && callback(newValidValue);
85
106
  };
86
- const handleOnChange = event => {
107
+ const handleOnChange = (event) => {
108
+ console.log(event.target.value);
87
109
  applyValue(event.target.value);
88
110
  };
89
- // Prevent entering exponent to avoide side effects
111
+ // Prevent entering exponent to avoid side effects
90
112
  // See https://bugzilla.mozilla.org/show_bug.cgi?id=1398528
91
- const handleKeyDown = event => {
92
- if (event.key === 'e' || event.key === 'E') {
113
+ // Also preventing letter inputs or multiple consecutive characters
114
+ // that is possible by Firefox and Safari
115
+ const handleKeyDown = (event) => {
116
+ // Allow for key combination like "ctrl + a"
117
+ if (event.ctrlKey || event.altKey || event.metaKey) {
118
+ return;
119
+ }
120
+ // Check for multiple dots, commas or dashes (consecutive)
121
+ if (isMultipleKeyInput('.', event, previousKeyRef) ||
122
+ isMultipleKeyInput(',', event, previousKeyRef) ||
123
+ isMultipleKeyInput('-', event, previousKeyRef) ||
124
+ isInvalidAfter(',', ['.', '-'], event, previousKeyRef) ||
125
+ isInvalidAfter('.', [',', '-'], event, previousKeyRef) ||
126
+ isInvalidAfter('-', ['.', ','], event, previousKeyRef) ||
127
+ event.key === 'Process' ||
128
+ event.key === 'Dead' ||
129
+ event.shiftKey) {
93
130
  event.preventDefault();
94
131
  }
132
+ // Filter out everything that is not a number
133
+ if (!validKeys.includes(event.key)) {
134
+ event.preventDefault();
135
+ }
136
+ previousKeyRef.current = event.key;
95
137
  };
96
- const handleBlur = event => {
138
+ const handleBlur = () => {
97
139
  // When the value is removed, keep the input empty but trigger the outside callback
98
140
  // since the user has finished his input
99
141
  const lastEnteredValue = state.enteredValue;
100
142
  if (lastEnteredValue === '') {
101
- callback(lastEnteredValue);
143
+ callback();
102
144
  return;
103
145
  }
104
146
  // Otherwise, validate the input, round it according to digitPrecision,
105
- // and clamp the value if the entered value exeeds the limitations
106
- const convertedEnteredValue = (0, exports.convertNonIntegerToDefault)(Number(lastEnteredValue));
107
- const validNumber = clampNumber(Number(convertedEnteredValue).toFixed(digitPrecision), min, max);
147
+ // and clamp the value if the entered value exceeds the limitations
148
+ const convertedEnteredValue = (0, exports.convertNonIntegerToDefault)(Number(lastEnteredValue), exports.DEFAULT_VALUE);
149
+ const validNumber = clampNumber(Number(convertedEnteredValue.toFixed(digitPrecision)), min, max);
108
150
  applyValue(validNumber);
109
151
  };
152
+ const handleWheel = (event) => {
153
+ const target = event.target;
154
+ if (target instanceof HTMLInputElement) {
155
+ target.blur();
156
+ }
157
+ };
110
158
  const inputGroupClassNames = (0, classnames_1.default)('input-group', bsSize === 'sm' && 'input-group-sm', bsSize === 'lg' && 'input-group-lg');
111
159
  const inputClassNames = (0, classnames_1.default)('form-control', 'no-controls', bsSize === 'sm' && 'input-sm', bsSize === 'lg' && 'input-lg', className);
112
- const input = ((0, jsx_runtime_1.jsx)("input", Object.assign({}, remainingProps, { type: 'number', step: step, min: min, max: max, value: state.isValid ? state.value : state.enteredValue, className: inputClassNames, disabled: disabled, onBlur: handleBlur, onChange: handleOnChange, onKeyDown: handleKeyDown, ref: ref, "aria-label": 'number-input', placeholder: placeholder, onWheel: event => event.target.blur() })));
160
+ const input = ((0, jsx_runtime_1.jsx)("input", Object.assign({}, remainingProps, { type: 'number', step: step, min: min, max: max, value: state.isValid ? state.value : state.enteredValue, className: inputClassNames, disabled: disabled, onBlur: handleBlur, onChange: handleOnChange, onKeyDown: handleKeyDown, ref: ref, "aria-label": 'number-input', placeholder: placeholder, onWheel: handleWheel })));
113
161
  return unit || inputAddon ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: inputGroupClassNames }, { children: [inputAddon && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'input-group-addon' }, { children: (0, jsx_runtime_1.jsx)("span", { className: inputAddon }) }))), input, unit && (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'input-group-addon' }, { children: unit }))] }))) : (input);
114
162
  });
115
- NumberInput.propTypes = {
116
- min: prop_types_1.default.number,
117
- max: prop_types_1.default.number,
118
- value: prop_types_1.default.number,
119
- step: prop_types_1.default.number,
120
- disabled: prop_types_1.default.bool,
121
- onChange: prop_types_1.default.func,
122
- onValueChanged: prop_types_1.default.func,
123
- bsSize: prop_types_1.default.oneOf(['sm', 'lg', 'small', 'large']),
124
- className: prop_types_1.default.string,
125
- unit: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]),
126
- inputAddon: prop_types_1.default.string,
127
- digitPrecision: prop_types_1.default.number,
128
- placeholder: prop_types_1.default.string,
129
- };
130
163
  exports.default = NumberInput;
@@ -1,20 +1,8 @@
1
- import { type PropsWithChildren, type ReactNode } from 'react';
2
- import type { delayProp } from '../../types';
3
- import { type Placement } from '../../values/Placement';
4
- import { type Trigger } from '../../values/Trigger';
5
- export type OverlayTriggerProps = {
6
- trigger?: Trigger;
7
- delay?: number | delayProp;
8
- placement: Placement;
9
- show?: boolean;
10
- defaultShow?: boolean;
11
- onToggle?: VoidFunction;
12
- overlay: ReactNode;
13
- popperConfig?: object;
14
- rootClose?: boolean;
15
- };
1
+ import { type PropsWithChildren } from 'react';
2
+ import { type OverlayTriggerProps as BSOverlayTriggerProps } from 'react-bootstrap/OverlayTrigger';
3
+ export type OverlayTriggerProps = Omit<BSOverlayTriggerProps, 'children'>;
16
4
  declare const OverlayTrigger: {
17
- (props: PropsWithChildren<OverlayTriggerProps>): JSX.Element;
5
+ (props: PropsWithChildren<OverlayTriggerProps>): import("react/jsx-runtime").JSX.Element;
18
6
  TRIGGER_CLICK: "click";
19
7
  TRIGGER_HOVER: "hover";
20
8
  TRIGGER_FOCUS: "focus";
@@ -5,12 +5,14 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  // @ts-ignore-next-line importsNotUsedAsValues
6
6
  require("react");
7
7
  const OverlayTrigger_1 = tslib_1.__importDefault(require("react-bootstrap/OverlayTrigger"));
8
+ const omit_1 = tslib_1.__importDefault(require("lodash/omit"));
8
9
  const Placement_1 = require("../../values/Placement");
9
10
  const Trigger_1 = require("../../values/Trigger");
10
11
  const OverlayTrigger = (props) => {
11
- const { rootClose = true } = props, remainingProps = tslib_1.__rest(props, ["rootClose"]);
12
+ const usedProps = Object.assign({ rootClose: true }, (0, omit_1.default)(props, 'children'));
13
+ const { children } = props;
12
14
  // @ts-ignore
13
- return (0, jsx_runtime_1.jsx)(OverlayTrigger_1.default, Object.assign({ rootClose: rootClose }, remainingProps));
15
+ return (0, jsx_runtime_1.jsx)(OverlayTrigger_1.default, Object.assign({}, usedProps, { children: children }));
14
16
  };
15
17
  OverlayTrigger.TRIGGER_CLICK = Trigger_1.TRIGGER.CLICK;
16
18
  OverlayTrigger.TRIGGER_HOVER = Trigger_1.TRIGGER.HOVER;
@@ -1,25 +1,53 @@
1
+ import React from 'react';
2
+ import type { ObjectValues } from '../../utils/ObjectValues';
3
+ export declare const PagerVariant: {
4
+ readonly VARIANT_FULL: "full";
5
+ readonly VARIANT_COMPACT: "compact";
6
+ };
7
+ export type PagerProps = {
8
+ /**
9
+ * The title or name of the section next/previous section.
10
+ */
11
+ title: string | React.ReactNode;
12
+ /**
13
+ * The optional label for the full variant.
14
+ */
15
+ label?: string | React.ReactNode;
16
+ /**
17
+ * Set right alignment for "previous" pager content to be aligned
18
+ * to the right side of the pager and the arrow on the left side.
19
+ * @default false
20
+ */
21
+ alignRight?: boolean;
22
+ /**
23
+ * Define how large the component should be rendered.
24
+ *
25
+ * Possible values are:
26
+ * `Pager.VARIANT_FULL`, `Pager.VARIANT_COMPACT` or
27
+ * `full`, `compact`.
28
+ *
29
+ * @default `full`
30
+ */
31
+ variant?: ObjectValues<typeof PagerVariant>;
32
+ /**
33
+ * Sets the pager disabled.
34
+ * @default false
35
+ */
36
+ disabled?: boolean;
37
+ /**
38
+ * Callback function for when the component is clicked.
39
+ * @param event
40
+ * @returns
41
+ */
42
+ onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
43
+ /**
44
+ * Additional classes for the wrapper element.
45
+ */
46
+ className?: string;
47
+ };
48
+ declare const Pager: {
49
+ (props: PagerProps): import("react/jsx-runtime").JSX.Element;
50
+ VARIANT_FULL: "full";
51
+ VARIANT_COMPACT: "compact";
52
+ };
1
53
  export default Pager;
2
- declare function Pager(props: any): JSX.Element;
3
- declare namespace Pager {
4
- const VARIANT_FULL: string;
5
- const VARIANT_COMPACT: string;
6
- namespace defaultProps {
7
- import variant = Pager.VARIANT_FULL;
8
- export { variant };
9
- export const alignRight: boolean;
10
- export const disabled: boolean;
11
- }
12
- namespace propTypes {
13
- export const title: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
14
- export const label: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
15
- const alignRight_1: PropTypes.Requireable<boolean>;
16
- export { alignRight_1 as alignRight };
17
- const variant_1: PropTypes.Requireable<string>;
18
- export { variant_1 as variant };
19
- const disabled_1: PropTypes.Requireable<boolean>;
20
- export { disabled_1 as disabled };
21
- export const onClick: PropTypes.Requireable<(...args: any[]) => any>;
22
- export const className: PropTypes.Requireable<string>;
23
- }
24
- }
25
- import PropTypes from "prop-types";
@@ -1,12 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PagerVariant = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = tslib_1.__importStar(require("react"));
6
- const prop_types_1 = tslib_1.__importDefault(require("prop-types"));
6
+ const react_1 = require("react");
7
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
8
- const Pager = props => {
9
- const { title, label, alignRight, variant, disabled, onClick, className } = props, remainingProps = tslib_1.__rest(props, ["title", "label", "alignRight", "variant", "disabled", "onClick", "className"]);
8
+ exports.PagerVariant = {
9
+ VARIANT_FULL: 'full',
10
+ VARIANT_COMPACT: 'compact',
11
+ };
12
+ const Pager = (props) => {
13
+ const { title, label, alignRight = false, variant = exports.PagerVariant.VARIANT_FULL, disabled = false, onClick, className } = props, remainingProps = tslib_1.__rest(props, ["title", "label", "alignRight", "variant", "disabled", "onClick", "className"]);
10
14
  const [isHover, setIsHover] = (0, react_1.useState)(false);
11
15
  const handleEnter = () => !disabled && setIsHover(true);
12
16
  const handleLeave = () => setIsHover(false);
@@ -26,20 +30,6 @@ const Pager = props => {
26
30
  const titleClassesFull = (0, classnames_1.default)(titleClassesBase, alignRight && 'text-right', 'text-size-16 text-medium');
27
31
  return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, remainingProps, { className: wrapperClassesFull, onMouseEnter: handleEnter, onMouseLeave: handleLeave, onClick: onClick }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `display-flex flex-1-1 flex-column ${alignRight ? 'align-items-end' : ''}` }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'text-color-gray line-height-16' }, { children: label })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: titleClassesFull }, { children: title }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'text-size-12' }, { children: (0, jsx_runtime_1.jsx)("span", { className: iconClassesFull }) }))] })));
28
32
  };
29
- Pager.VARIANT_FULL = 'full';
30
- Pager.VARIANT_COMPACT = 'compact';
31
- Pager.defaultProps = {
32
- variant: Pager.VARIANT_FULL,
33
- alignRight: false,
34
- disabled: false,
35
- };
36
- Pager.propTypes = {
37
- title: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]).isRequired,
38
- label: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]),
39
- alignRight: prop_types_1.default.bool,
40
- variant: prop_types_1.default.oneOf([Pager.VARIANT_FULL, Pager.VARIANT_COMPACT, 'full', 'compact']),
41
- disabled: prop_types_1.default.bool,
42
- onClick: prop_types_1.default.func,
43
- className: prop_types_1.default.string,
44
- };
33
+ Pager.VARIANT_FULL = exports.PagerVariant.VARIANT_FULL;
34
+ Pager.VARIANT_COMPACT = exports.PagerVariant.VARIANT_COMPACT;
45
35
  exports.default = Pager;
@@ -1,5 +1,5 @@
1
1
  export default Position;
2
- declare function Position(props: any): JSX.Element;
2
+ declare function Position(props: any): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace Position {
4
4
  namespace propTypes {
5
5
  const latitude: PropTypes.Validator<number>;
@@ -1,5 +1,5 @@
1
1
  export default RadioButton;
2
- declare function RadioButton(props: any): JSX.Element;
2
+ declare function RadioButton(props: any): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace RadioButton {
4
4
  const ICON_LABEL_VERTICAL: string;
5
5
  const ICON_LABEL_HORIZONTAL: string;