@rio-cloud/rio-uikit 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/.DS_Store +0 -0
  2. package/DropdownHeader.d.ts +2 -0
  3. package/DropdownHeader.js +2 -0
  4. package/FeedbackInlineButtons.d.ts +2 -0
  5. package/FeedbackInlineButtons.js +2 -0
  6. package/FeedbackRating.d.ts +2 -0
  7. package/FeedbackRating.js +2 -0
  8. package/FeedbackReactions.d.ts +2 -0
  9. package/FeedbackReactions.js +2 -0
  10. package/MapAdditionalLayerSettings.d.ts +2 -0
  11. package/MapAdditionalLayerSettings.js +2 -0
  12. package/MapSettingsDropdownHeader.d.ts +2 -0
  13. package/MapSettingsDropdownHeader.js +2 -0
  14. package/SmoothScrollbars.d.ts +2 -0
  15. package/SmoothScrollbars.js +2 -0
  16. package/components/.DS_Store +0 -0
  17. package/components/actionBarItem/ActionBarItemListItem.js +2 -2
  18. package/components/assetTree/AssetTree.js +2 -1
  19. package/components/assetTree/Tree.d.ts +4 -0
  20. package/components/assetTree/Tree.js +2 -2
  21. package/components/assetTree/TreeOptions.d.ts +1 -0
  22. package/components/assetTree/TreeOptions.js +16 -2
  23. package/components/assetTree/TreeSidebarCategories.js +1 -1
  24. package/components/calendarStripe/CalendarStripe.js +2 -2
  25. package/components/feedback/FeedbackInlineButtons.d.ts +13 -0
  26. package/components/feedback/FeedbackInlineButtons.js +9 -0
  27. package/components/feedback/FeedbackRating.d.ts +65 -0
  28. package/components/feedback/FeedbackRating.js +23 -0
  29. package/components/feedback/FeedbackReactions.d.ts +71 -0
  30. package/components/feedback/FeedbackReactions.js +26 -0
  31. package/components/listMenu/ListMenu.d.ts +5 -1
  32. package/components/listMenu/ListMenu.js +2 -2
  33. package/components/map/.DS_Store +0 -0
  34. package/components/map/components/.DS_Store +0 -0
  35. package/components/map/components/features/basics/Marker.js +1 -1
  36. package/components/map/components/features/settings/MapSettingsItem.d.ts +1 -0
  37. package/components/map/components/features/settings/MapSettingsItem.js +14 -11
  38. package/components/map/components/features/settings/MapSettingsTile.d.ts +3 -2
  39. package/components/map/components/features/settings/MapSettingsTile.js +40 -5
  40. package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.d.ts +9 -0
  41. package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +15 -0
  42. package/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +3 -0
  43. package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +8 -2
  44. package/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +15 -9
  45. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +6 -0
  46. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +20 -2
  47. package/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -2
  48. package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +2 -0
  49. package/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +2 -0
  50. package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +2 -0
  51. package/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +2 -0
  52. package/components/map/components/features/settings/items/MapSettingsDropdownHeader.d.ts +4 -0
  53. package/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +9 -0
  54. package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +2 -0
  55. package/components/map/icons/MapIcon.d.ts +1 -2
  56. package/components/map/icons/MapIcon.js +3 -1
  57. package/components/map/utils/mapTypes.d.ts +1 -1
  58. package/components/map/utils/mapTypes.js +12 -4
  59. package/components/mapMarker/ClusterMapMarker.d.ts +8 -0
  60. package/components/mapMarker/ClusterMapMarker.js +5 -4
  61. package/components/mapMarker/SingleMapMarker.d.ts +40 -5
  62. package/components/mapMarker/SingleMapMarker.js +19 -6
  63. package/components/selects/DropdownHeader.d.ts +1 -0
  64. package/components/selects/DropdownHeader.js +2 -2
  65. package/components/selects/Multiselect.js +2 -2
  66. package/components/selects/MultiselectToggleFilter.js +1 -1
  67. package/components/states/CustomState.js +21 -8
  68. package/components/states/StateButton.d.ts +8 -1
  69. package/components/states/StateButton.js +5 -4
  70. package/hooks/useAfterMount.js +8 -4
  71. package/lib/.DS_Store +0 -0
  72. package/lib/es/.DS_Store +0 -0
  73. package/lib/es/DropdownHeader.d.ts +2 -0
  74. package/lib/es/DropdownHeader.js +7 -0
  75. package/lib/es/FeedbackInlineButtons.d.ts +2 -0
  76. package/lib/es/FeedbackInlineButtons.js +7 -0
  77. package/lib/es/FeedbackRating.d.ts +2 -0
  78. package/lib/es/FeedbackRating.js +7 -0
  79. package/lib/es/FeedbackReactions.d.ts +2 -0
  80. package/lib/es/FeedbackReactions.js +7 -0
  81. package/lib/es/MapAdditionalLayerSettings.d.ts +2 -0
  82. package/lib/es/MapAdditionalLayerSettings.js +7 -0
  83. package/lib/es/MapSettingsDropdownHeader.d.ts +2 -0
  84. package/lib/es/MapSettingsDropdownHeader.js +7 -0
  85. package/lib/es/SmoothScrollbars.d.ts +2 -0
  86. package/lib/es/SmoothScrollbars.js +7 -0
  87. package/lib/es/components/.DS_Store +0 -0
  88. package/lib/es/components/actionBarItem/ActionBarItemListItem.js +2 -2
  89. package/lib/es/components/assetTree/AssetTree.js +2 -1
  90. package/lib/es/components/assetTree/Tree.d.ts +4 -0
  91. package/lib/es/components/assetTree/Tree.js +2 -2
  92. package/lib/es/components/assetTree/TreeOptions.d.ts +1 -0
  93. package/lib/es/components/assetTree/TreeOptions.js +16 -2
  94. package/lib/es/components/assetTree/TreeSidebarCategories.js +1 -1
  95. package/lib/es/components/calendarStripe/CalendarStripe.js +1 -1
  96. package/lib/es/components/feedback/FeedbackInlineButtons.d.ts +13 -0
  97. package/lib/es/components/feedback/FeedbackInlineButtons.js +11 -0
  98. package/lib/es/components/feedback/FeedbackRating.d.ts +65 -0
  99. package/lib/es/components/feedback/FeedbackRating.js +25 -0
  100. package/lib/es/components/feedback/FeedbackReactions.d.ts +71 -0
  101. package/lib/es/components/feedback/FeedbackReactions.js +28 -0
  102. package/lib/es/components/listMenu/ListMenu.d.ts +5 -1
  103. package/lib/es/components/listMenu/ListMenu.js +2 -2
  104. package/lib/es/components/map/components/features/basics/Marker.js +1 -1
  105. package/lib/es/components/map/components/features/settings/MapSettingsItem.d.ts +1 -0
  106. package/lib/es/components/map/components/features/settings/MapSettingsItem.js +13 -10
  107. package/lib/es/components/map/components/features/settings/MapSettingsTile.d.ts +3 -2
  108. package/lib/es/components/map/components/features/settings/MapSettingsTile.js +39 -4
  109. package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.d.ts +9 -0
  110. package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +17 -0
  111. package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +3 -0
  112. package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +8 -2
  113. package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +14 -8
  114. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +6 -0
  115. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +20 -2
  116. package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +1 -1
  117. package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +2 -0
  118. package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +2 -0
  119. package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +2 -0
  120. package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +2 -0
  121. package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.d.ts +4 -0
  122. package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +11 -0
  123. package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +2 -0
  124. package/lib/es/components/map/icons/MapIcon.d.ts +1 -2
  125. package/lib/es/components/map/icons/MapIcon.js +3 -1
  126. package/lib/es/components/map/utils/mapTypes.d.ts +1 -1
  127. package/lib/es/components/map/utils/mapTypes.js +12 -4
  128. package/lib/es/components/mapMarker/ClusterMapMarker.d.ts +8 -0
  129. package/lib/es/components/mapMarker/ClusterMapMarker.js +5 -4
  130. package/lib/es/components/mapMarker/SingleMapMarker.d.ts +40 -5
  131. package/lib/es/components/mapMarker/SingleMapMarker.js +18 -5
  132. package/lib/es/components/selects/DropdownHeader.d.ts +1 -0
  133. package/lib/es/components/selects/DropdownHeader.js +2 -2
  134. package/lib/es/components/selects/Multiselect.js +1 -1
  135. package/lib/es/components/selects/MultiselectToggleFilter.js +1 -1
  136. package/lib/es/components/states/CustomState.js +20 -7
  137. package/lib/es/components/states/StateButton.d.ts +8 -1
  138. package/lib/es/components/states/StateButton.js +5 -4
  139. package/lib/es/hooks/useAfterMount.js +8 -4
  140. package/lib/es/styles/variables/colors/colors.json +8 -10
  141. package/lib/es/utils/deviceUtils.d.ts +1 -0
  142. package/lib/es/utils/deviceUtils.js +3 -1
  143. package/lib/es/version.json +1 -1
  144. package/package.json +30 -27
  145. package/styles/variables/colors/colors.json +8 -10
  146. package/utils/deviceUtils.d.ts +1 -0
  147. package/utils/deviceUtils.js +1 -0
  148. package/version.json +1 -1
  149. package/BrowserWarning.d.ts +0 -5
  150. package/BrowserWarning.js +0 -2
  151. package/DomMarker.d.ts +0 -5
  152. package/DomMarker.js +0 -2
  153. package/EnhancedMapEvent.d.ts +0 -11
  154. package/GroupSelectionUtil.d.ts +0 -2
  155. package/GroupSelectionUtil.js +0 -2
  156. package/IncidentsLayer.d.ts +0 -4
  157. package/IncidentsLayer.js +0 -2
  158. package/TrafficLayer.d.ts +0 -4
  159. package/TrafficLayer.js +0 -2
  160. package/TruckLayer.d.ts +0 -4
  161. package/TruckLayer.js +0 -2
  162. package/components/assetTree/excludeFromList.d.ts +0 -1
  163. package/components/assetTree/excludeFromList.js +0 -1
  164. package/components/browserWarning/BrowserIcons.d.ts +0 -2
  165. package/components/browserWarning/BrowserIcons.js +0 -5
  166. package/components/browserWarning/BrowserWarning.d.ts +0 -15
  167. package/components/browserWarning/BrowserWarning.js +0 -46
  168. package/components/browserWarning/BrowserWarningMessageDE.d.ts +0 -4
  169. package/components/browserWarning/BrowserWarningMessageDE.js +0 -6
  170. package/components/browserWarning/BrowserWarningMessageEN.d.ts +0 -4
  171. package/components/browserWarning/BrowserWarningMessageEN.js +0 -6
  172. package/components/carousel/CarouselCaption.d.ts +0 -13
  173. package/components/carousel/CarouselCaption.js +0 -18
  174. package/components/carousel/CarouselItem.d.ts +0 -36
  175. package/components/carousel/CarouselItem.js +0 -85
  176. package/components/dialog/baseDialogPropTypes.d.ts +0 -14
  177. package/components/dialog/baseDialogPropTypes.js +0 -13
  178. package/components/driverName/DriverName.d.ts +0 -18
  179. package/components/driverName/DriverName.js +0 -18
  180. package/components/dropdown/menuItemsPropTypes.d.ts +0 -9
  181. package/components/dropdown/menuItemsPropTypes.js +0 -8
  182. package/components/map/components/MapSettingContext.d.ts +0 -15
  183. package/components/map/components/MapSettingContext.js +0 -5
  184. package/components/map/components/context.d.ts +0 -2
  185. package/components/map/components/context.js +0 -3
  186. package/components/map/components/features/basics/MapLayerGroup.d.ts +0 -23
  187. package/components/map/components/features/basics/MapLayerGroup.js +0 -45
  188. package/components/map/components/features/basics/marker/DomMarker.d.ts +0 -33
  189. package/components/map/components/features/basics/marker/DomMarker.js +0 -55
  190. package/components/map/components/features/basics/marker/Marker.d.ts +0 -21
  191. package/components/map/components/features/basics/marker/Marker.js +0 -116
  192. package/components/map/components/features/basics/marker/TextMarker.d.ts +0 -17
  193. package/components/map/components/features/basics/marker/TextMarker.js +0 -28
  194. package/components/map/components/features/layers/IncidentsLayer.d.ts +0 -2
  195. package/components/map/components/features/layers/IncidentsLayer.js +0 -25
  196. package/components/map/components/features/layers/Layer.d.ts +0 -15
  197. package/components/map/components/features/layers/Layer.js +0 -23
  198. package/components/map/components/features/layers/RoadRestrictionLayer.d.ts +0 -2
  199. package/components/map/components/features/layers/RoadRestrictionLayer.js +0 -26
  200. package/components/map/components/features/layers/TrafficLayer.d.ts +0 -2
  201. package/components/map/components/features/layers/TrafficLayer.js +0 -39
  202. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.d.ts +0 -2
  203. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +0 -17
  204. package/components/map/components/features/layers/baselayers/DefaultVectorLayer.d.ts +0 -2
  205. package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +0 -14
  206. package/components/map/components/features/layers/baselayers/FleetStyleLayer.d.ts +0 -2
  207. package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +0 -15
  208. package/components/map/components/features/layers/baselayers/NightLayer.d.ts +0 -2
  209. package/components/map/components/features/layers/baselayers/NightLayer.js +0 -14
  210. package/components/map/components/features/layers/baselayers/SatelliteLayer.d.ts +0 -2
  211. package/components/map/components/features/layers/baselayers/SatelliteLayer.js +0 -15
  212. package/components/map/components/features/layers/baselayers/TerrainLayer.d.ts +0 -2
  213. package/components/map/components/features/layers/baselayers/TerrainLayer.js +0 -15
  214. package/components/map/components/features/layers/baselayers/useBaseLayer.d.ts +0 -2
  215. package/components/map/components/features/layers/baselayers/useBaseLayer.js +0 -47
  216. package/components/map/components/mapUtils.d.ts +0 -50
  217. package/components/map/components/mapUtils.js +0 -148
  218. package/components/map/herePolyfill.d.ts +0 -0
  219. package/components/map/herePolyfill.js +0 -7
  220. package/components/map/utils/proptypes.d.ts +0 -47
  221. package/components/map/utils/proptypes.js +0 -50
  222. package/components/map/utils/validation.d.ts +0 -2
  223. package/components/map/utils/validation.js +0 -8
  224. package/components/mapMarker/MarkerColor.d.ts +0 -3
  225. package/components/mapMarker/MarkerColor.js +0 -12
  226. package/components/menuItems/getMenuItems.d.ts +0 -2
  227. package/components/menuItems/getMenuItems.js +0 -7
  228. package/components/selects/BaseDropdownMenu.d.ts +0 -83
  229. package/components/selects/BaseDropdownMenu.js +0 -255
  230. package/components/selects/WithFeedback.d.ts +0 -27
  231. package/components/selects/WithFeedback.js +0 -12
  232. package/components/states/baseStatePropTypes.d.ts +0 -26
  233. package/components/states/baseStatePropTypes.js +0 -26
  234. package/components/table/tableSettingsPropTypes.d.ts +0 -8
  235. package/components/table/tableSettingsPropTypes.js +0 -6
  236. package/lib/es/BrowserWarning.d.ts +0 -5
  237. package/lib/es/BrowserWarning.js +0 -6
  238. package/lib/es/DomMarker.d.ts +0 -5
  239. package/lib/es/DomMarker.js +0 -6
  240. package/lib/es/EnhancedMapEvent.d.ts +0 -11
  241. package/lib/es/GroupSelectionUtil.d.ts +0 -2
  242. package/lib/es/GroupSelectionUtil.js +0 -5
  243. package/lib/es/IncidentsLayer.d.ts +0 -4
  244. package/lib/es/IncidentsLayer.js +0 -6
  245. package/lib/es/TrafficLayer.d.ts +0 -4
  246. package/lib/es/TrafficLayer.js +0 -6
  247. package/lib/es/TruckLayer.d.ts +0 -4
  248. package/lib/es/TruckLayer.js +0 -6
  249. package/lib/es/components/assetTree/autoAnimateFrames.d.ts +0 -1
  250. package/lib/es/components/assetTree/autoAnimateFrames.js +0 -55
  251. package/lib/es/components/assetTree/excludeFromList.d.ts +0 -1
  252. package/lib/es/components/assetTree/excludeFromList.js +0 -5
  253. package/lib/es/components/browserWarning/BrowserIcons.d.ts +0 -2
  254. package/lib/es/components/browserWarning/BrowserIcons.js +0 -11
  255. package/lib/es/components/browserWarning/BrowserWarning.d.ts +0 -15
  256. package/lib/es/components/browserWarning/BrowserWarning.js +0 -49
  257. package/lib/es/components/browserWarning/BrowserWarningMessageDE.d.ts +0 -4
  258. package/lib/es/components/browserWarning/BrowserWarningMessageDE.js +0 -9
  259. package/lib/es/components/browserWarning/BrowserWarningMessageEN.d.ts +0 -4
  260. package/lib/es/components/browserWarning/BrowserWarningMessageEN.js +0 -9
  261. package/lib/es/components/carousel/CarouselCaption.d.ts +0 -13
  262. package/lib/es/components/carousel/CarouselCaption.js +0 -20
  263. package/lib/es/components/carousel/CarouselItem.d.ts +0 -36
  264. package/lib/es/components/carousel/CarouselItem.js +0 -87
  265. package/lib/es/components/charts/Sector.d.ts +0 -0
  266. package/lib/es/components/charts/Sector.js +0 -1
  267. package/lib/es/components/dialog/baseDialogPropTypes.d.ts +0 -14
  268. package/lib/es/components/dialog/baseDialogPropTypes.js +0 -16
  269. package/lib/es/components/driverName/DriverName.d.ts +0 -18
  270. package/lib/es/components/driverName/DriverName.js +0 -23
  271. package/lib/es/components/dropdown/menuItemsPropTypes.d.ts +0 -9
  272. package/lib/es/components/dropdown/menuItemsPropTypes.js +0 -11
  273. package/lib/es/components/map/components/MapSettingContext.d.ts +0 -15
  274. package/lib/es/components/map/components/MapSettingContext.js +0 -8
  275. package/lib/es/components/map/components/context.d.ts +0 -2
  276. package/lib/es/components/map/components/context.js +0 -6
  277. package/lib/es/components/map/components/features/basics/MapLayerGroup.d.ts +0 -23
  278. package/lib/es/components/map/components/features/basics/MapLayerGroup.js +0 -48
  279. package/lib/es/components/map/components/features/basics/marker/DomMarker.d.ts +0 -33
  280. package/lib/es/components/map/components/features/basics/marker/DomMarker.js +0 -58
  281. package/lib/es/components/map/components/features/basics/marker/Marker.d.ts +0 -21
  282. package/lib/es/components/map/components/features/basics/marker/Marker.js +0 -123
  283. package/lib/es/components/map/components/features/basics/marker/TextMarker.d.ts +0 -17
  284. package/lib/es/components/map/components/features/basics/marker/TextMarker.js +0 -31
  285. package/lib/es/components/map/components/features/layers/IncidentsLayer.d.ts +0 -2
  286. package/lib/es/components/map/components/features/layers/IncidentsLayer.js +0 -27
  287. package/lib/es/components/map/components/features/layers/Layer.d.ts +0 -15
  288. package/lib/es/components/map/components/features/layers/Layer.js +0 -26
  289. package/lib/es/components/map/components/features/layers/MapBaseLayer.d.ts +0 -8
  290. package/lib/es/components/map/components/features/layers/MapBaseLayer.js +0 -35
  291. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.d.ts +0 -2
  292. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +0 -28
  293. package/lib/es/components/map/components/features/layers/TrafficLayer.d.ts +0 -2
  294. package/lib/es/components/map/components/features/layers/TrafficLayer.js +0 -41
  295. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.d.ts +0 -4
  296. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +0 -36
  297. package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.d.ts +0 -4
  298. package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +0 -16
  299. package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.d.ts +0 -4
  300. package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +0 -17
  301. package/lib/es/components/map/components/features/layers/baselayers/NightLayer.d.ts +0 -4
  302. package/lib/es/components/map/components/features/layers/baselayers/NightLayer.js +0 -16
  303. package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.d.ts +0 -4
  304. package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +0 -34
  305. package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.d.ts +0 -4
  306. package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +0 -17
  307. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.d.ts +0 -11
  308. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +0 -76
  309. package/lib/es/components/map/components/mapUtils.d.ts +0 -50
  310. package/lib/es/components/map/components/mapUtils.js +0 -154
  311. package/lib/es/components/map/herePolyfill.d.ts +0 -0
  312. package/lib/es/components/map/herePolyfill.js +0 -7
  313. package/lib/es/components/map/utils/proptypes.d.ts +0 -47
  314. package/lib/es/components/map/utils/proptypes.js +0 -53
  315. package/lib/es/components/map/utils/validation.d.ts +0 -2
  316. package/lib/es/components/map/utils/validation.js +0 -14
  317. package/lib/es/components/mapMarker/MarkerColor.d.ts +0 -3
  318. package/lib/es/components/mapMarker/MarkerColor.js +0 -15
  319. package/lib/es/components/menuItems/getMenuItems.d.ts +0 -2
  320. package/lib/es/components/menuItems/getMenuItems.js +0 -10
  321. package/lib/es/components/selects/BaseDropdownMenu.d.ts +0 -83
  322. package/lib/es/components/selects/BaseDropdownMenu.js +0 -260
  323. package/lib/es/components/selects/WithFeedback.d.ts +0 -27
  324. package/lib/es/components/selects/WithFeedback.js +0 -15
  325. package/lib/es/components/states/baseStatePropTypes.d.ts +0 -26
  326. package/lib/es/components/states/baseStatePropTypes.js +0 -30
  327. package/lib/es/components/table/tableSettingsPropTypes.d.ts +0 -8
  328. package/lib/es/components/table/tableSettingsPropTypes.js +0 -10
  329. package/lib/es/mapIndex.d.ts +0 -38
  330. package/lib/es/mapIndex.js +0 -77
  331. package/lib/es/styles/variables/colors.json +0 -74
  332. package/lib/es/themes/Volkswagen/components/applicationHeader/modulePropTypes.d.ts +0 -6
  333. package/lib/es/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +0 -8
  334. package/lib/es/types.d.ts +0 -71
  335. package/lib/es/types.js +0 -2
  336. package/lib/es/utils/GroupSelectionUtil.d.ts +0 -1
  337. package/lib/es/utils/GroupSelectionUtil.js +0 -85
  338. package/lib/es/utils/addEventListener.d.ts +0 -3
  339. package/lib/es/utils/addEventListener.js +0 -17
  340. package/lib/es/utils/addFocusListener.d.ts +0 -3
  341. package/lib/es/utils/addFocusListener.js +0 -24
  342. package/lib/es/utils/getOffsetTopWholeScreen.d.ts +0 -1
  343. package/lib/es/utils/getOffsetTopWholeScreen.js +0 -9
  344. package/lib/es/utils/init.d.ts +0 -2
  345. package/lib/es/utils/init.js +0 -121
  346. package/lib/es/utils/logPropError.d.ts +0 -3
  347. package/lib/es/utils/logPropError.js +0 -28
  348. package/lib/es/utils/ownerDocument.d.ts +0 -1
  349. package/lib/es/utils/ownerDocument.js +0 -12
  350. package/mapIndex.d.ts +0 -38
  351. package/mapIndex.js +0 -42
  352. package/styles/variables/colors.json +0 -74
  353. package/themes/Volkswagen/components/applicationHeader/modulePropTypes.d.ts +0 -6
  354. package/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +0 -5
  355. package/types.d.ts +0 -71
  356. package/types.js +0 -1
  357. package/utils/GroupSelectionUtil.d.ts +0 -1
  358. package/utils/GroupSelectionUtil.js +0 -80
  359. package/utils/addEventListener.d.ts +0 -3
  360. package/utils/addEventListener.js +0 -13
  361. package/utils/addFocusListener.d.ts +0 -3
  362. package/utils/addFocusListener.js +0 -21
  363. package/utils/getOffsetTopWholeScreen.d.ts +0 -1
  364. package/utils/getOffsetTopWholeScreen.js +0 -6
  365. package/utils/init.d.ts +0 -2
  366. package/utils/init.js +0 -117
  367. package/utils/logPropError.d.ts +0 -3
  368. package/utils/logPropError.js +0 -23
  369. package/utils/ownerDocument.d.ts +0 -1
  370. package/utils/ownerDocument.js +0 -8
@@ -1,83 +0,0 @@
1
- export class BaseDropdownMenu extends React.Component<any, any, any> {
2
- constructor(props: any);
3
- state: {
4
- dropup: boolean;
5
- pullRight: any;
6
- focusedItemIndex: any;
7
- keyboardUsed: any;
8
- itemDOMValues: never[];
9
- };
10
- handleOptionChange(event: any): void;
11
- handleKeydown(event: any): void;
12
- componentDidMount(): void;
13
- UNSAFE_componentWillReceiveProps(nextProps: any): void;
14
- focusOption(direction: any): void;
15
- getDropdownDOMNode(): Element | Text | null;
16
- getOptionNodes(): any;
17
- setItemDOMValues(): {
18
- id: any;
19
- text: any;
20
- }[] | undefined;
21
- getFocusedOptionNode(): any;
22
- selectOptionOnEnter(event: any): void;
23
- render(): import("react/jsx-runtime").JSX.Element | null;
24
- refDropdownMenu: HTMLUListElement | null | undefined;
25
- renderMenuOption(option: any, index: any): import("react/jsx-runtime").JSX.Element;
26
- getSelectedFocusedItemIndex(): any;
27
- isAutoDropActive(): boolean;
28
- openMenu(nextProps: any): void;
29
- onDocumentKeydownListener: {
30
- remove(): void;
31
- } | undefined;
32
- closeMenu(): void;
33
- }
34
- export namespace BaseDropdownMenu {
35
- namespace defaultProps {
36
- export const isOpen: boolean;
37
- export function updateDOMValues(): void;
38
- export function onOpen(): void;
39
- export function onSelect(): void;
40
- export function onClose(): void;
41
- export const options: never[];
42
- export const autoDropDirection: boolean;
43
- export const pullRight: boolean;
44
- export const useActiveClass: boolean;
45
- export const keyboardUsed: boolean;
46
- export { DEFAULT_FOCUSED_ITEM_INDEX as focusedItemIndex };
47
- }
48
- namespace propTypes {
49
- const options_1: PropTypes.Requireable<(PropTypes.InferProps<{
50
- id: PropTypes.Validator<string>;
51
- label: PropTypes.Validator<any>;
52
- icon: PropTypes.Requireable<object>;
53
- selected: PropTypes.Requireable<boolean>;
54
- disabled: PropTypes.Requireable<boolean>;
55
- header: PropTypes.Requireable<boolean>;
56
- }> | null | undefined)[]>;
57
- export { options_1 as options };
58
- const isOpen_1: PropTypes.Requireable<boolean>;
59
- export { isOpen_1 as isOpen };
60
- const updateDOMValues_1: PropTypes.Requireable<(...args: any[]) => any>;
61
- export { updateDOMValues_1 as updateDOMValues };
62
- const onOpen_1: PropTypes.Requireable<(...args: any[]) => any>;
63
- export { onOpen_1 as onOpen };
64
- const onSelect_1: PropTypes.Requireable<(...args: any[]) => any>;
65
- export { onSelect_1 as onSelect };
66
- const onClose_1: PropTypes.Requireable<(...args: any[]) => any>;
67
- export { onClose_1 as onClose };
68
- export const placeholder: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
69
- export const dropup: PropTypes.Requireable<boolean>;
70
- const pullRight_1: PropTypes.Requireable<boolean>;
71
- export { pullRight_1 as pullRight };
72
- const autoDropDirection_1: PropTypes.Requireable<boolean>;
73
- export { autoDropDirection_1 as autoDropDirection };
74
- export const noItemMessage: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
75
- export const focusedItemIndex: PropTypes.Validator<number>;
76
- export const dropdownClassName: PropTypes.Requireable<string>;
77
- export const requestItemDOMValues: PropTypes.Requireable<boolean>;
78
- }
79
- }
80
- import React from "react";
81
- declare const DEFAULT_FOCUSED_ITEM_INDEX: -1;
82
- import PropTypes from "prop-types";
83
- export {};
@@ -1,255 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { Component } from 'react';
3
- import PropTypes from 'prop-types';
4
- import ReactDOM from 'react-dom';
5
- import classNames from 'classnames';
6
- import isEqual from 'lodash/fp/isEqual';
7
- import ownerDocument from '../../utils/ownerDocument';
8
- import addEventListener from '../../utils/addEventListener';
9
- import getDropDirection from '../../utils/getDropDirection';
10
- import { scrollItemIntoView, UP, DOWN } from '../../utils/scrollItemIntoView';
11
- import DropdownHeader from './DropdownHeader';
12
- // const UP = 'up';
13
- // const DOWN = 'down';
14
- const DATA_ATTRIBUTE_ID = 'data-item-id';
15
- const DATA_ATTRIBUTE_INDEX = 'data-item-index';
16
- const DEFAULT_FOCUSED_ITEM_INDEX = -1;
17
- const HIGHLIGHT_CLASS = 'focus';
18
- export class BaseDropdownMenu extends Component {
19
- constructor(props) {
20
- super(props);
21
- this.state = {
22
- dropup: false,
23
- pullRight: props.pullRight,
24
- focusedItemIndex: this.props.focusedItemIndex,
25
- keyboardUsed: this.props.keyboardUsed,
26
- itemDOMValues: [],
27
- };
28
- this.handleOptionChange = this.handleOptionChange.bind(this);
29
- this.handleKeydown = this.handleKeydown.bind(this);
30
- }
31
- componentDidMount() {
32
- // all available items need to be rendered in order to know their DOM value
33
- // which will be used for filtering in the parent component
34
- const itemDOMValues = this.setItemDOMValues();
35
- this.setState(() => ({
36
- itemDOMValues,
37
- }));
38
- this.props.updateDOMValues(itemDOMValues);
39
- }
40
- // eslint-disable-next-line camelcase
41
- UNSAFE_componentWillReceiveProps(nextProps) {
42
- if (nextProps) {
43
- if (!this.props.isOpen && nextProps.isOpen) {
44
- this.openMenu(nextProps);
45
- }
46
- else if (this.props.isOpen && !nextProps.isOpen) {
47
- this.closeMenu();
48
- }
49
- if (!isEqual(nextProps.options, this.props.options)) {
50
- this.setState(() => ({
51
- options: nextProps.options,
52
- }));
53
- // Workaround to put the update of DOM values into a setTimeout to have the component
54
- // re-rendered to fetch the DOM items.
55
- // This should be refactored when reworking the component as functional component
56
- setTimeout(() => {
57
- // Only update the DOM values if it is explicitly requested
58
- // otherwise it will reduce the dom values to the filtered options
59
- if (nextProps.requestItemDOMValues) {
60
- const items = this.setItemDOMValues();
61
- this.props.updateDOMValues(items);
62
- this.setState(() => ({
63
- itemDOMValues: items ? items : this.state.itemDOMValues,
64
- }));
65
- }
66
- }, 0);
67
- }
68
- }
69
- }
70
- handleKeydown(event) {
71
- switch (event.keyCode) {
72
- case 27: {
73
- // close on esc key or on tab
74
- this.closeMenu();
75
- break;
76
- }
77
- case 9: {
78
- // close on tab
79
- this.closeMenu();
80
- break;
81
- }
82
- case 13: {
83
- // select on enter
84
- this.selectOptionOnEnter(event);
85
- break;
86
- }
87
- case 38: {
88
- // prevent scrolling the page when dropdown menu is open
89
- event.preventDefault();
90
- // select above on arrow up key
91
- this.focusOption(UP);
92
- scrollItemIntoView(UP, this.getDropdownDOMNode(), this.getFocusedOptionNode());
93
- break;
94
- }
95
- case 40: {
96
- // prevent scrolling the page when dropdown menu is open
97
- event.preventDefault();
98
- // select below on arrow down key
99
- this.focusOption(DOWN);
100
- scrollItemIntoView(DOWN, this.getDropdownDOMNode(), this.getFocusedOptionNode());
101
- break;
102
- }
103
- default:
104
- break;
105
- }
106
- }
107
- focusOption(direction) {
108
- let nextFocusedItem = 0;
109
- const focusedItemIndex = this.state.focusedItemIndex;
110
- switch (direction) {
111
- case UP: {
112
- nextFocusedItem = focusedItemIndex === 0 ? focusedItemIndex : focusedItemIndex - 1;
113
- break;
114
- }
115
- case DOWN: {
116
- nextFocusedItem =
117
- focusedItemIndex === this.props.options.length - 1 ? focusedItemIndex : focusedItemIndex + 1;
118
- break;
119
- }
120
- default:
121
- break;
122
- }
123
- this.setState(() => ({
124
- focusedItemIndex: nextFocusedItem,
125
- keyboardUsed: true,
126
- }));
127
- }
128
- getDropdownDOMNode() {
129
- return ReactDOM.findDOMNode(this.refDropdownMenu);
130
- }
131
- getOptionNodes() {
132
- const node = ReactDOM.findDOMNode(this.refDropdownMenu);
133
- if (!node) {
134
- return [];
135
- }
136
- return node.getElementsByTagName('a') || [];
137
- }
138
- setItemDOMValues() {
139
- if (this.refDropdownMenu) {
140
- const optionNodes = this.getOptionNodes();
141
- const itemDOMValues = [...optionNodes].map(item => {
142
- return {
143
- id: item.getAttribute(DATA_ATTRIBUTE_ID),
144
- text: item.textContent,
145
- };
146
- });
147
- return itemDOMValues;
148
- }
149
- }
150
- getFocusedOptionNode() {
151
- const optionNodes = this.getOptionNodes();
152
- return [...optionNodes].find(item => item.className.includes(HIGHLIGHT_CLASS));
153
- }
154
- selectOptionOnEnter(event) {
155
- event.preventDefault();
156
- // When no filter result was found, avoid selecting anything
157
- if (!this.props.options.length) {
158
- return;
159
- }
160
- const match = this.getFocusedOptionNode();
161
- if (match) {
162
- const selectedItem = this.props.options.find(option => option.id === match.getAttribute(DATA_ATTRIBUTE_ID));
163
- this.props.onSelect(event, selectedItem);
164
- }
165
- }
166
- render() {
167
- const { pullRight, noItemMessage, dropdownClassName } = this.props;
168
- const isPullRight = this.isAutoDropActive() ? this.state.pullRight : pullRight;
169
- const dropdownMenuClasses = classNames('dropdown-menu', isPullRight && 'pull-right', dropdownClassName);
170
- // Dont show dropdown, when no match are found when filtering unless there is a not found message
171
- if (!this.props.options.length) {
172
- // In case a message is provided when nothing matched, show it
173
- if (noItemMessage) {
174
- return (_jsx("ul", Object.assign({ className: dropdownMenuClasses }, { children: _jsx("li", Object.assign({ className: 'no-item-message disabled', disabled: true }, { children: _jsx("a", Object.assign({ role: 'button' }, { children: _jsx("i", { children: noItemMessage }) })) })) })));
175
- }
176
- return null;
177
- }
178
- return (_jsx("ul", Object.assign({ className: dropdownMenuClasses, ref: node => (this.refDropdownMenu = node) }, { children: this.props.options.map((option, index) => this.renderMenuOption(option, index)) })));
179
- }
180
- renderMenuOption(option, index) {
181
- if (option.header) {
182
- return (_jsx(DropdownHeader, { id: option.id, icon: option.icon, label: option.label, type: 'dropdown' }, option.id));
183
- }
184
- // Show focused style only when keyboard is in use
185
- const anchorClassNames = this.state.keyboardUsed && this.state.focusedItemIndex === index ? HIGHLIGHT_CLASS : '';
186
- const wrapperClassNames = classNames(option.disabled && 'disabled', this.props.useActiveClass && option.selected && 'active');
187
- return (_jsx("li", Object.assign({ className: wrapperClassNames }, { children: _jsxs("a", Object.assign({ role: 'button', className: anchorClassNames, "data-item-id": option.id, "data-item-index": index, onClick: !option.disabled ? this.handleOptionChange : undefined }, { children: [_jsxs("span", { children: [option.icon && _jsx("span", Object.assign({ className: 'margin-right-5' }, { children: option.icon })), option.label] }), _jsx("input", { type: 'hidden', value: option.id })] })) }), option.id));
188
- }
189
- getSelectedFocusedItemIndex() {
190
- return event.currentTarget.getAttribute(DATA_ATTRIBUTE_INDEX) || -1;
191
- }
192
- handleOptionChange(event) {
193
- event.preventDefault();
194
- const optionId = event.currentTarget.getElementsByTagName('input')[0].value;
195
- const selectedItem = this.props.options.find(option => option.id === optionId);
196
- this.props.onSelect(event, selectedItem);
197
- }
198
- isAutoDropActive() {
199
- return !(!this.props.autoDropDirection || this.props.dropup || this.props.pullRight);
200
- }
201
- openMenu(nextProps) {
202
- const { options, onOpen } = this.props;
203
- const doc = ownerDocument(this);
204
- this.onDocumentKeydownListener = addEventListener(doc, 'keydown', this.handleKeydown);
205
- const dropDirection = options.length && this.isAutoDropActive()
206
- ? getDropDirection(this.refDropdownMenu.parentNode, this.refDropdownMenu)
207
- : {};
208
- this.setState(() => (Object.assign({ isOpen: nextProps.isOpen, keyboardUsed: nextProps.keyboardUsed }, dropDirection)));
209
- // Tell the parent whether it's dropup or not as it might need to set the respective class
210
- // to the wrapping element
211
- onOpen(dropDirection.dropup);
212
- }
213
- closeMenu() {
214
- if (this.onDocumentKeydownListener) {
215
- this.onDocumentKeydownListener.remove();
216
- }
217
- this.props.onClose();
218
- }
219
- }
220
- BaseDropdownMenu.defaultProps = {
221
- isOpen: false,
222
- updateDOMValues: () => { },
223
- onOpen: () => { },
224
- onSelect: () => { },
225
- onClose: () => { },
226
- options: [],
227
- autoDropDirection: false,
228
- pullRight: false,
229
- useActiveClass: false,
230
- keyboardUsed: false,
231
- focusedItemIndex: DEFAULT_FOCUSED_ITEM_INDEX,
232
- };
233
- BaseDropdownMenu.propTypes = {
234
- options: PropTypes.arrayOf(PropTypes.shape({
235
- id: PropTypes.string.isRequired /* Identify an option */,
236
- label: PropTypes.any.isRequired /* A label to show in body */,
237
- icon: PropTypes.object /* An icon to show in body */,
238
- selected: PropTypes.bool,
239
- disabled: PropTypes.bool,
240
- header: PropTypes.bool,
241
- })),
242
- isOpen: PropTypes.bool,
243
- updateDOMValues: PropTypes.func,
244
- onOpen: PropTypes.func,
245
- onSelect: PropTypes.func,
246
- onClose: PropTypes.func,
247
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
248
- dropup: PropTypes.bool,
249
- pullRight: PropTypes.bool,
250
- autoDropDirection: PropTypes.bool,
251
- noItemMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
252
- focusedItemIndex: PropTypes.number.isRequired,
253
- dropdownClassName: PropTypes.string,
254
- requestItemDOMValues: PropTypes.bool,
255
- };
@@ -1,27 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- export type WithFeedbackProps = {
3
- /**
4
- * Defines the size of the select to be rendered
5
- *
6
- * @default 'md'
7
- */
8
- bsSize?: 'sm' | 'md' | 'lg';
9
- /**
10
- * Option to add an icon as a leading input addon to the select component
11
- */
12
- inputAddon?: string;
13
- /**
14
- * Input error message.
15
- */
16
- errorMessage?: string | React.ReactNode;
17
- /**
18
- * Input warning message.
19
- */
20
- warningMessage?: string | React.ReactNode;
21
- /**
22
- * Feedback message width.
23
- */
24
- messageWhiteSpace?: 'normal' | 'nowrap' | 'pre-line';
25
- };
26
- declare const WithFeedback: (props: PropsWithChildren<WithFeedbackProps>) => import("react/jsx-runtime").JSX.Element;
27
- export default WithFeedback;
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
- import classNames from 'classnames';
5
- const WithFeedback = (props) => {
6
- const { bsSize, inputAddon, errorMessage, warningMessage, messageWhiteSpace, children } = props;
7
- const inputGroupClassNames = classNames('input-group', bsSize === 'sm' && 'input-group-sm', bsSize === 'lg' && 'input-group-lg');
8
- const formGroupClassName = classNames('form-group margin-bottom-0', 'has-feedback', errorMessage && 'has-error', warningMessage && 'has-warning');
9
- const hasFeedbackMessage = errorMessage || warningMessage;
10
- return (_jsx("div", Object.assign({ className: formGroupClassName }, { children: _jsxs("div", Object.assign({ className: inputGroupClassNames }, { children: [inputAddon && (_jsx("div", Object.assign({ className: 'input-group-addon' }, { children: _jsx("span", { className: inputAddon }) }))), _jsxs("div", Object.assign({ className: 'form-control-feedback-wrapper' }, { children: [children, hasFeedbackMessage && (_jsxs(_Fragment, { children: [errorMessage && _jsx("span", { className: 'form-control-feedback rioglyph rioglyph-error-sign' }), warningMessage && (_jsx("span", { className: 'form-control-feedback rioglyph rioglyph-warning-sign' })), _jsx("span", Object.assign({ className: `help-block white-space-${messageWhiteSpace}` }, { children: _jsx("span", { children: errorMessage || warningMessage }) }))] }))] }))] })) })));
11
- };
12
- export default WithFeedback;
@@ -1,26 +0,0 @@
1
- export const ALIGN_LEFT: "left";
2
- export const ALIGN_CENTER: "center";
3
- export const ALIGN_RIGHT: "right";
4
- export namespace baseStatePropTypes {
5
- const icon: PropTypes.Requireable<string>;
6
- const icons: PropTypes.Requireable<(PropTypes.InferProps<{
7
- name: PropTypes.Validator<string>;
8
- color: PropTypes.Requireable<string>;
9
- className: PropTypes.Requireable<string>;
10
- }> | null | undefined)[]>;
11
- const image: PropTypes.Requireable<PropTypes.ReactNodeLike>;
12
- const headline: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
13
- const message: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
14
- const buttons: PropTypes.Requireable<(PropTypes.InferProps<{
15
- text: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
16
- className: PropTypes.Requireable<string>;
17
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
18
- href: PropTypes.Requireable<string>;
19
- }> | null | undefined)[]>;
20
- const fullWidth: PropTypes.Requireable<boolean>;
21
- const condensed: PropTypes.Requireable<boolean>;
22
- const alignment: PropTypes.Requireable<string>;
23
- const outerClassName: PropTypes.Requireable<string>;
24
- const innerClassName: PropTypes.Requireable<string>;
25
- }
26
- import PropTypes from "prop-types";
@@ -1,26 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- export const ALIGN_LEFT = 'left';
3
- export const ALIGN_CENTER = 'center';
4
- export const ALIGN_RIGHT = 'right';
5
- export const baseStatePropTypes = {
6
- icon: PropTypes.string,
7
- icons: PropTypes.arrayOf(PropTypes.shape({
8
- name: PropTypes.string.isRequired,
9
- color: PropTypes.string,
10
- className: PropTypes.string,
11
- })),
12
- image: PropTypes.node,
13
- headline: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
14
- message: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
15
- buttons: PropTypes.arrayOf(PropTypes.shape({
16
- text: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired,
17
- className: PropTypes.string,
18
- onClick: PropTypes.func,
19
- href: PropTypes.string,
20
- })),
21
- fullWidth: PropTypes.bool,
22
- condensed: PropTypes.bool,
23
- alignment: PropTypes.oneOf([ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT]),
24
- outerClassName: PropTypes.string,
25
- innerClassName: PropTypes.string,
26
- };
@@ -1,8 +0,0 @@
1
- export const columnsDetailsPropTypes: PropTypes.Requireable<{
2
- [x: string]: PropTypes.InferProps<{
3
- width: PropTypes.Requireable<number>;
4
- defaultWidth: PropTypes.Requireable<number>;
5
- maxWidth: PropTypes.Requireable<number>;
6
- }> | null | undefined;
7
- }>;
8
- import PropTypes from "prop-types";
@@ -1,6 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- export const columnsDetailsPropTypes = PropTypes.objectOf(PropTypes.shape({
3
- width: PropTypes.number,
4
- defaultWidth: PropTypes.number,
5
- maxWidth: PropTypes.number,
6
- }));
@@ -1,5 +0,0 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/BrowserWarning' {
2
- import React from 'react';
3
- import { BrowserWarningProps } from './types';
4
- export default class BrowserWarning extends React.Component<BrowserWarningProps> {}
5
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = void 0;
4
- const tslib_1 = require("tslib");
5
- const BrowserWarning_1 = tslib_1.__importDefault(require("./components/browserWarning/BrowserWarning"));
6
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return BrowserWarning_1.default; } });
@@ -1,5 +0,0 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/DomMarker' {
2
- import React from 'react';
3
- import { DomMarkerProps } from './types';
4
- export default class DomMarker extends React.Component<DomMarkerProps> {}
5
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = void 0;
4
- const tslib_1 = require("tslib");
5
- const DomMarker_1 = tslib_1.__importDefault(require("./components/map/components/features/basics/marker/DomMarker"));
6
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return DomMarker_1.default; } });
@@ -1,11 +0,0 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/EnhancedMapEvent' {
2
- export default class EnhancedMapEvent {
3
- viewportX: number;
4
- viewportY: number;
5
- map: object;
6
- calculateGeoCoords: () => {
7
- lat: number;
8
- lng: number;
9
- };
10
- }
11
- }
@@ -1,2 +0,0 @@
1
- export { _getNewGroupedSelected as getNewGroupedSelected };
2
- import { getNewGroupedSelected as _getNewGroupedSelected } from "./utils/GroupSelectionUtil";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNewGroupedSelected = void 0;
4
- const GroupSelectionUtil_1 = require("./utils/GroupSelectionUtil");
5
- Object.defineProperty(exports, "getNewGroupedSelected", { enumerable: true, get: function () { return GroupSelectionUtil_1.getNewGroupedSelected; } });
@@ -1,4 +0,0 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/IncidentsLayer' {
2
- import React from 'react';
3
- export default class IncidentsLayer extends React.Component<any> {}
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = void 0;
4
- const tslib_1 = require("tslib");
5
- const IncidentsLayer_1 = tslib_1.__importDefault(require("./components/map/components/features/layers/overlayLayers/IncidentsLayer"));
6
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return IncidentsLayer_1.default; } });
@@ -1,4 +0,0 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/TrafficLayer' {
2
- import React from 'react';
3
- export default class TrafficLayer extends React.Component<any> {}
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = void 0;
4
- const tslib_1 = require("tslib");
5
- const TrafficLayer_1 = tslib_1.__importDefault(require("./components/map/components/features/layers/TrafficLayer"));
6
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return TrafficLayer_1.default; } });
@@ -1,4 +0,0 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/TruckLayer' {
2
- import React from 'react';
3
- export default class TruckLayer extends React.Component<any> {}
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = void 0;
4
- const tslib_1 = require("tslib");
5
- const RoadRestrictionLayer_1 = tslib_1.__importDefault(require("./components/map/components/features/layers/RoadRestrictionLayer"));
6
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return RoadRestrictionLayer_1.default; } });
@@ -1 +0,0 @@
1
- export declare const autoAnimateFrames: (el: any, action: any, oldCoords: any, newCoords: any) => KeyframeEffect;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.autoAnimateFrames = void 0;
4
- const auto_animate_1 = require("@formkit/auto-animate");
5
- const autoAnimateFrames = (el, action, oldCoords, newCoords) => {
6
- let keyframes;
7
- // supply a different set of keyframes for each action
8
- if (action === 'add') {
9
- keyframes = [
10
- { transform: 'scale(0)', opacity: 0 },
11
- { transform: 'scale(1.15)', opacity: 1 },
12
- { transform: 'scale(1)', opacity: 1 },
13
- ];
14
- }
15
- // keyframes can have as many "steps" as you prefer
16
- // and you can use the 'offset' key to tune the timing
17
- if (action === 'remove') {
18
- keyframes = [
19
- { transform: 'scale(1)', opacity: 1 },
20
- { transform: 'scale(1.15)', opacity: 1 },
21
- { transform: 'scale(0.75)', opacity: 0.1 },
22
- { transform: 'scale(0.5)', opacity: 0 },
23
- ];
24
- }
25
- if (action === 'remain') {
26
- // for items that remain, calculate the delta
27
- // from their old position to their new position
28
- const deltaX = oldCoords.left - newCoords.left;
29
- const deltaY = oldCoords.top - newCoords.top;
30
- // use the getTransitionSizes() helper function to
31
- // get the old and new widths of the elements
32
- const [widthFrom, widthTo, heightFrom, heightTo] = (0, auto_animate_1.getTransitionSizes)(el, oldCoords, newCoords);
33
- // set up our steps with our positioning keyframes
34
- const start = { transform: `translate(${deltaX}px, ${deltaY}px)` };
35
- const mid = { transform: `translate(${deltaX * -0.15}px, ${deltaY * -0.15}px)` };
36
- const end = { transform: 'translate(0, 0)' };
37
- // if the dimensions changed, animate them too.
38
- if (widthFrom !== widthTo) {
39
- start.width = `${widthFrom}px`;
40
- mid.width = `${widthFrom >= widthTo ? widthTo / 1.05 : widthTo * 1.05}px`;
41
- end.width = `${widthTo}px`;
42
- }
43
- if (heightFrom !== heightTo) {
44
- start.height = `${heightFrom}px`;
45
- mid.height = `${heightFrom >= heightTo ? heightTo / 1.05 : heightTo * 1.05}px`;
46
- end.height = `${heightTo}px`;
47
- }
48
- keyframes = [start, mid, end];
49
- }
50
- // return our KeyframeEffect() and pass
51
- // it the chosen keyframes.
52
- // @ts-ignore
53
- return new KeyframeEffect(el, keyframes, { duration: 600, easing: 'ease-out' });
54
- };
55
- exports.autoAnimateFrames = autoAnimateFrames;
@@ -1 +0,0 @@
1
- export function excludeFromList(list: any, itemId: any): any;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.excludeFromList = void 0;
4
- const excludeFromList = (list, itemId) => list.filter(item => item !== itemId);
5
- exports.excludeFromList = excludeFromList;
@@ -1,2 +0,0 @@
1
- export function ChromeIcon(): import("react/jsx-runtime").JSX.Element;
2
- export function FirefoxIcon(): import("react/jsx-runtime").JSX.Element;