@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,26 +0,0 @@
1
- import { __rest } from "tslib";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import React from 'react';
4
- import { FORMAT, TILE_SIZE } from '../../constants';
5
- import Layer from './Layer';
6
- // Layer for rendering truck road signs
7
- // incident_icons, traffic_flow, traffic_incidents
8
- // FIXME: 'truckonlytile' is HERE Map Tile v2 and therefore deprecated
9
- const createRoadRestrictionLayer = useWebGL => api => {
10
- // "createIncidentsLayer" and "createFlowLayer" are also deprecated
11
- // using the "api.platform.getTrafficService(null, 7)" Traffic Service version 7
12
- // does not offer equivalent functions like:
13
- // return api.platform.getTrafficService(null, 7).createFlowLayer();
14
- return api.platform
15
- .getMapTileService({ type: 'base' })
16
- .createTileLayer('truckonlytile', 'normal.day', TILE_SIZE, FORMAT, {
17
- style: 'default',
18
- ppi: undefined,
19
- });
20
- };
21
- const RoadRestrictionLayer = props => {
22
- const { useWebGL } = props, remainingProps = __rest(props, ["useWebGL"]);
23
- const createLayer = createRoadRestrictionLayer(useWebGL);
24
- return _jsx(Layer, Object.assign({}, remainingProps, { createLayer: createLayer }));
25
- };
26
- export default RoadRestrictionLayer;
@@ -1,2 +0,0 @@
1
- export default TrafficLayer;
2
- declare function TrafficLayer(props: any): import("react/jsx-runtime").JSX.Element;
@@ -1,39 +0,0 @@
1
- import { __rest } from "tslib";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import React, { useEffect } from 'react';
4
- import { FORMAT, TILE_SIZE } from '../../constants';
5
- import Layer from './Layer';
6
- const createRasterTrafficLayer = api => {
7
- return api.platform
8
- .getMapTileService({ type: 'traffic' })
9
- .createTileLayer('flowtile', 'normal.day.grey', TILE_SIZE, FORMAT, {
10
- style: 'alps',
11
- });
12
- };
13
- // Here Traffic v7 API
14
- const createVectorTrafficLayer = api => {
15
- // Pre-defined opinionated rendering of traffic
16
- return api.defaultLayers.vector.traffic.map;
17
- // To control the rendering, use the style config.
18
- // Unfortunately there is no documentation on how the "pre-defined"
19
- // style looks like as it also renders incidents icons (but inactive)
20
- // const config = `
21
- // sources:
22
- // omv:
23
- // type: OMV
24
- // layers:
25
- // traffic_incidents:
26
- // data: {source: omv}
27
- // draw:
28
- // lines:
29
- // order: 340
30
- // width: 2px
31
- // color: red
32
- // `;
33
- // return api.platform.getTrafficVectorTileService().createLayer(new H.map.render.webgl.Style(config));
34
- };
35
- const TrafficLayer = props => {
36
- const { useWebGL } = props, remainingProps = __rest(props, ["useWebGL"]);
37
- return _jsx(Layer, Object.assign({}, remainingProps, { createLayer: useWebGL ? createVectorTrafficLayer : createRasterTrafficLayer }));
38
- };
39
- export default TrafficLayer;
@@ -1,2 +0,0 @@
1
- export default DefaultRasterLayer;
2
- declare function DefaultRasterLayer(props: any): null;
@@ -1,17 +0,0 @@
1
- import { useBaseLayer } from './useBaseLayer';
2
- import { MAP_TYPE_DEFAULT } from '../../../constants';
3
- // https://developer.here.com/documentation/map-tile/dev_guide/topics/resource-info.html
4
- const DefaultRasterLayer = props => {
5
- const { api, language } = props;
6
- useBaseLayer({
7
- api,
8
- language,
9
- mapType: MAP_TYPE_DEFAULT,
10
- additionalParameters: {
11
- // should not be used as Vector map does not support it it would different anyhow
12
- //style: 'alps',
13
- },
14
- });
15
- return null;
16
- };
17
- export default DefaultRasterLayer;
@@ -1,2 +0,0 @@
1
- export default DefaultVectorLayer;
2
- declare function DefaultVectorLayer(props: any): null;
@@ -1,14 +0,0 @@
1
- import { useBaseLayer } from './useBaseLayer';
2
- import { MAP_TYPE_DEFAULT } from '../../../constants';
3
- const DefaultVectorLayer = props => {
4
- const { api, language } = props;
5
- useBaseLayer({
6
- api,
7
- language,
8
- mapType: MAP_TYPE_DEFAULT,
9
- additionalParameters: {},
10
- isWebGL: true,
11
- });
12
- return null;
13
- };
14
- export default DefaultVectorLayer;
@@ -1,2 +0,0 @@
1
- export default FleetStyleLayer;
2
- declare function FleetStyleLayer(props: any): null;
@@ -1,15 +0,0 @@
1
- import { useBaseLayer } from './useBaseLayer';
2
- import { MAP_TYPE_FLEET_STYLE } from '../../../constants';
3
- const FleetStyleLayer = props => {
4
- const { api, language } = props;
5
- useBaseLayer({
6
- api,
7
- language,
8
- mapType: MAP_TYPE_FLEET_STYLE,
9
- additionalParameters: {
10
- style: 'fleet',
11
- },
12
- });
13
- return null;
14
- };
15
- export default FleetStyleLayer;
@@ -1,2 +0,0 @@
1
- export default NightLayer;
2
- declare function NightLayer(props: any): null;
@@ -1,14 +0,0 @@
1
- import { useBaseLayer } from './useBaseLayer';
2
- import { MAP_TYPE_NIGHT } from '../../../constants';
3
- // https://developer.here.com/documentation/map-tile/dev_guide/topics/resource-info.html
4
- const NightLayer = props => {
5
- const { api, language } = props;
6
- useBaseLayer({
7
- api,
8
- language,
9
- mapType: MAP_TYPE_NIGHT,
10
- additionalParameters: {},
11
- });
12
- return null;
13
- };
14
- export default NightLayer;
@@ -1,2 +0,0 @@
1
- export default SatelliteLayer;
2
- declare function SatelliteLayer(props: any): null;
@@ -1,15 +0,0 @@
1
- import { useBaseLayer } from './useBaseLayer';
2
- import { MAP_TYPE_SATELLITE } from '../../../constants';
3
- const SatelliteLayer = props => {
4
- const { api, language } = props;
5
- useBaseLayer({
6
- api,
7
- language,
8
- mapType: MAP_TYPE_SATELLITE,
9
- additionalParameters: {
10
- style: 'default',
11
- },
12
- });
13
- return null;
14
- };
15
- export default SatelliteLayer;
@@ -1,2 +0,0 @@
1
- export default TerrainLayer;
2
- declare function TerrainLayer(props: any): null;
@@ -1,15 +0,0 @@
1
- import { useBaseLayer } from './useBaseLayer';
2
- import { MAP_TYPE_TERRAIN } from '../../../constants';
3
- const TerrainLayer = props => {
4
- const { api, language } = props;
5
- useBaseLayer({
6
- api,
7
- language,
8
- mapType: MAP_TYPE_TERRAIN,
9
- additionalParameter: {
10
- style: 'default',
11
- },
12
- });
13
- return null;
14
- };
15
- export default TerrainLayer;
@@ -1,2 +0,0 @@
1
- export function getDefaultBaseLayer(defaultLayers: any, mapType: any, useWebGL: any): any;
2
- export function useBaseLayer(props: any): void;
@@ -1,47 +0,0 @@
1
- import { useState, useEffect } from 'react';
2
- import { getPPI } from '../../../mapUtils';
3
- import { MAP_TYPE_FLEET_STYLE, MAP_TYPE_SATELLITE, MAP_TYPE_TERRAIN, MAP_TYPE_NIGHT } from '../../../constants';
4
- // Obtain the default map types from the platform object:
5
- export const getDefaultBaseLayer = (defaultLayers, mapType, useWebGL) => {
6
- if (mapType === MAP_TYPE_SATELLITE) {
7
- return defaultLayers.raster.satellite.map;
8
- }
9
- if (mapType === MAP_TYPE_TERRAIN) {
10
- return defaultLayers.raster.terrain.map;
11
- }
12
- if (mapType === MAP_TYPE_FLEET_STYLE) {
13
- return defaultLayers.raster.normal.map;
14
- }
15
- if (mapType === MAP_TYPE_NIGHT) {
16
- return defaultLayers.raster.normal.mapnight;
17
- }
18
- if (useWebGL) {
19
- return defaultLayers.vector.normal.map;
20
- }
21
- return defaultLayers.raster.normal.map;
22
- };
23
- export const useBaseLayer = props => {
24
- const { api, additionalParameters = {}, language, isWebGL = false, mapType } = props;
25
- const [baseLayer, setBaseLayer] = useState(null);
26
- // When the language changes from the outside, re-create the base layer with the new locale
27
- useEffect(() => {
28
- setBaseLayer(null);
29
- }, [language]);
30
- useEffect(() => {
31
- if (!baseLayer) {
32
- const additionalParametersWithLocale = Object.assign(Object.assign({}, additionalParameters), {
33
- // Define the overall map language here so that all counties use that locale
34
- // and don't show their native label names. For more details see:
35
- // https://developer.here.com/documentation/examples/maps-js/maps/map-multi-language-support
36
- // Note: it takes the short locale like "de", "en" etc.
37
- lg: language.includes('-') ? language.split('-')[0] : language,
38
- // ppi: getPPI(),
39
- // need to be set for better performance of legacy map
40
- engineType: isWebGL ? undefined : H.map.render.RenderEngine.EngineType.P2D });
41
- const defaultLayers = api.platform.createDefaultLayers(additionalParametersWithLocale);
42
- const newBaseLayer = getDefaultBaseLayer(defaultLayers, mapType, isWebGL);
43
- api.map.setBaseLayer(newBaseLayer);
44
- setBaseLayer(newBaseLayer);
45
- }
46
- });
47
- };
@@ -1,50 +0,0 @@
1
- export function getPPI(): undefined;
2
- export function createUtils(mapApi: any): {
3
- getCenter: () => {
4
- lat: any;
5
- lng: any;
6
- };
7
- setCenter: (position: any, animate: any) => void;
8
- getZoom: () => number;
9
- setZoom: (zoom: any, zoomAnimation?: boolean) => void;
10
- getViewPort: () => {
11
- width: any;
12
- height: any;
13
- margin: any;
14
- padding: {
15
- top: any;
16
- right: any;
17
- bottom: any;
18
- left: any;
19
- };
20
- center: {
21
- x: any;
22
- y: any;
23
- };
24
- };
25
- getBounds: () => {
26
- topLeft: {
27
- lng: any;
28
- lat: any;
29
- };
30
- bottomRight: {
31
- lng: any;
32
- lat: any;
33
- };
34
- };
35
- getObjects: () => any;
36
- getLayers: () => any;
37
- getBaseLayer: () => any;
38
- getGroups: () => any[];
39
- getMarkers: () => any[];
40
- findMarkerByLatLng: (lat: any, lng: any) => any;
41
- findMarkersByLatLng: (lat: any, lng: any) => any[];
42
- getRoutePolylines: () => any[];
43
- getObjectType: (hereObject: any) => "H.map.Group" | "H.map.DomMarker" | "H.map.Marker" | "H.map.AbstractMarker" | "H.map.Polyline" | "H.map.Rect" | "H.map.Circle" | "H.map.Polygon" | "H.map.Object";
44
- getObjectTypes: import("lodash/fp").LodashMap1x1<any, "H.map.Group" | "H.map.DomMarker" | "H.map.Marker" | "H.map.AbstractMarker" | "H.map.Polyline" | "H.map.Rect" | "H.map.Circle" | "H.map.Polygon" | "H.map.Object">;
45
- getLayerType: (hereLayer: any) => "H.map.layer.BaseTileLayer" | "H.map.layer.MarkerTileLayer" | "H.map.layer.TileLayer" | "H.map.layer.CanvasLayer" | "H.map.layer.DomLayer" | "H.map.layer.ObjectLayer" | "H.map.layer.Layer";
46
- getLayerTypes: import("lodash/fp").LodashMap1x1<any, "H.map.layer.BaseTileLayer" | "H.map.layer.MarkerTileLayer" | "H.map.layer.TileLayer" | "H.map.layer.CanvasLayer" | "H.map.layer.DomLayer" | "H.map.layer.ObjectLayer" | "H.map.layer.Layer">;
47
- getMarkerIconClassName: (domMarker: any) => any;
48
- getPosition: (marker: any) => any;
49
- getLatLngAltArray: (polyline: any) => any;
50
- };
@@ -1,148 +0,0 @@
1
- import map from 'lodash/fp/map';
2
- import flatMap from 'lodash/fp/flatMap';
3
- import filter from 'lodash/fp/filter';
4
- import flow from 'lodash/fp/flow';
5
- import first from 'lodash/fp/first';
6
- import { HIGH_RES_PPI } from './constants';
7
- // Note: higher PPI image tiles result in larger label size and show more label on the map
8
- export const getPPI = () => undefined; // window.devicePixelRatio > 1 ? HIGH_RES_PPI : undefined;
9
- const latLngFilterFunction = (lat, lng) => obj => obj.getGeometry && obj.getGeometry().lat === lat && obj.getGeometry().lng === lng;
10
- const typeFilterFunction = hereType => obj => obj instanceof hereType;
11
- const markerFilterFunction = typeFilterFunction(H.map.AbstractMarker);
12
- const groupFilterFunction = typeFilterFunction(H.map.Group);
13
- const polylineFilterFunction = typeFilterFunction(H.map.Polyline);
14
- const getMarkerIconClassName = domMarker => domMarker.getIcon().c.className;
15
- const getPosition = marker => marker.getGeometry();
16
- const getLatLngAltArray = polyline => polyline.getGeometry().getLatLngAltArray();
17
- const getObjectType = hereObject => {
18
- if (hereObject instanceof H.map.Group) {
19
- return 'H.map.Group';
20
- }
21
- if (hereObject instanceof H.map.DomMarker) {
22
- return 'H.map.DomMarker';
23
- }
24
- if (hereObject instanceof H.map.Marker) {
25
- return 'H.map.Marker';
26
- }
27
- if (hereObject instanceof H.map.AbstractMarker) {
28
- return 'H.map.AbstractMarker';
29
- }
30
- if (hereObject instanceof H.map.Polyline) {
31
- return 'H.map.Polyline';
32
- }
33
- if (hereObject instanceof H.map.Rect) {
34
- return 'H.map.Rect';
35
- }
36
- if (hereObject instanceof H.map.Circle) {
37
- return 'H.map.Circle';
38
- }
39
- if (hereObject instanceof H.map.Polygon) {
40
- return 'H.map.Polygon';
41
- }
42
- return 'H.map.Object';
43
- };
44
- const getObjectTypes = map(getObjectType);
45
- const getLayerType = hereLayer => {
46
- if (hereLayer instanceof H.map.layer.BaseTileLayer) {
47
- return 'H.map.layer.BaseTileLayer';
48
- }
49
- if (hereLayer instanceof H.map.layer.MarkerTileLayer) {
50
- return 'H.map.layer.MarkerTileLayer';
51
- }
52
- if (hereLayer instanceof H.map.layer.TileLayer) {
53
- return 'H.map.layer.TileLayer';
54
- }
55
- if (hereLayer instanceof H.map.layer.CanvasLayer) {
56
- return 'H.map.layer.CanvasLayer';
57
- }
58
- if (hereLayer instanceof H.map.layer.DomLayer) {
59
- return 'H.map.layer.DomLayer';
60
- }
61
- if (hereLayer instanceof H.map.layer.ObjectLayer) {
62
- return 'H.map.layer.ObjectLayer';
63
- }
64
- return 'H.map.layer.Layer';
65
- };
66
- const getLayerTypes = map(getLayerType);
67
- export const createUtils = mapApi => {
68
- return {
69
- getCenter: () => {
70
- const center = mapApi.getCenter();
71
- return {
72
- lat: center.lat,
73
- lng: center.lng,
74
- };
75
- },
76
- setCenter: (position, animate) => {
77
- mapApi.getViewModel().setLookAtData({ position }, animate);
78
- },
79
- getZoom: () => {
80
- const { zoom } = mapApi.getViewModel().getLookAtData();
81
- return Math.round(zoom);
82
- },
83
- setZoom: (zoom, zoomAnimation = false) => {
84
- mapApi.getViewModel().setLookAtData({ zoom }, zoomAnimation);
85
- },
86
- getViewPort: () => {
87
- const viewPort = mapApi.getViewPort();
88
- return {
89
- width: viewPort.width,
90
- height: viewPort.height,
91
- margin: viewPort.margin,
92
- padding: {
93
- top: viewPort.padding.top,
94
- right: viewPort.padding.right,
95
- bottom: viewPort.padding.bottom,
96
- left: viewPort.padding.left,
97
- },
98
- center: {
99
- x: viewPort.center.x,
100
- y: viewPort.center.y,
101
- },
102
- };
103
- },
104
- getBounds: () => {
105
- const { bounds } = mapApi.getViewModel().getLookAtData();
106
- // TODO: remove old 3.0 version after all Services use the latest Map
107
- if (bounds.getTopLeft) {
108
- return {
109
- topLeft: {
110
- lng: bounds.getTopLeft().lng,
111
- lat: bounds.getTopLeft().lat,
112
- },
113
- bottomRight: {
114
- lng: bounds.getBottomRight().lng,
115
- lat: bounds.getBottomRight().lat,
116
- },
117
- };
118
- }
119
- // HERE Maps API for JavaScript 3.1
120
- const boundingBox = bounds.getBoundingBox();
121
- return {
122
- topLeft: {
123
- lng: boundingBox.getTopLeft().lng,
124
- lat: boundingBox.getTopLeft().lat,
125
- },
126
- bottomRight: {
127
- lng: boundingBox.getBottomRight().lng,
128
- lat: boundingBox.getBottomRight().lat,
129
- },
130
- };
131
- },
132
- getObjects: () => mapApi.getObjects(),
133
- getLayers: () => mapApi.getLayers().asArray(),
134
- getBaseLayer: () => mapApi.getBaseLayer(),
135
- getGroups: () => filter(groupFilterFunction)(mapApi.getObjects()),
136
- getMarkers: () => filter(markerFilterFunction)(mapApi.getObjects()),
137
- findMarkerByLatLng: (lat, lng) => flow(filter(markerFilterFunction && latLngFilterFunction(lat, lng)), first)(mapApi.getObjects()),
138
- findMarkersByLatLng: (lat, lng) => filter(markerFilterFunction && latLngFilterFunction(lat, lng))(mapApi.getObjects()),
139
- getRoutePolylines: () => flow(filter(groupFilterFunction), flatMap(group => group.getObjects()), filter(polylineFilterFunction))(mapApi.getObjects()),
140
- getObjectType,
141
- getObjectTypes,
142
- getLayerType,
143
- getLayerTypes,
144
- getMarkerIconClassName,
145
- getPosition,
146
- getLatLngAltArray,
147
- };
148
- };
File without changes
@@ -1,7 +0,0 @@
1
- "use strict";
2
- /* eslint-disable no-undef */
3
- if (H) {
4
- if (!H.geo.LineString) {
5
- H.geo.LineString = H.geo.Strip;
6
- }
7
- }
@@ -1,47 +0,0 @@
1
- export default mapProps;
2
- declare namespace mapProps {
3
- export { position };
4
- export { positions };
5
- export { icon };
6
- export { map };
7
- export { group };
8
- export { mapEvents };
9
- export { api };
10
- export { settings };
11
- export { rect };
12
- export { clusterTheme };
13
- }
14
- declare const position: PropTypes.Requireable<PropTypes.InferProps<{
15
- lat: PropTypes.Validator<number>;
16
- lng: PropTypes.Validator<number>;
17
- }>>;
18
- declare const positions: PropTypes.Requireable<(PropTypes.InferProps<{
19
- lat: PropTypes.Validator<number>;
20
- lng: PropTypes.Validator<number>;
21
- }> | null | undefined)[]>;
22
- declare const icon: PropTypes.Requireable<H.map.DomIcon>;
23
- declare const map: PropTypes.Requireable<H.Map>;
24
- declare const group: PropTypes.Requireable<H.map.Group>;
25
- declare const mapEvents: PropTypes.Requireable<H.mapevents.MapEvents>;
26
- declare const api: PropTypes.Requireable<PropTypes.InferProps<{
27
- map: PropTypes.Requireable<H.Map>;
28
- platform: PropTypes.Requireable<H.service.Platform>;
29
- defaultLayers: PropTypes.Requireable<object>;
30
- group: PropTypes.Requireable<NonNullable<H.Map | H.map.Group | null | undefined>>;
31
- }>>;
32
- declare const settings: PropTypes.Requireable<PropTypes.InferProps<{
33
- baseLayer: PropTypes.Requireable<string>;
34
- mapLayer: PropTypes.Requireable<(string | null | undefined)[]>;
35
- showCluster: PropTypes.Requireable<boolean>;
36
- }>>;
37
- declare const rect: PropTypes.Requireable<PropTypes.InferProps<{
38
- top: PropTypes.Validator<number>;
39
- bottom: PropTypes.Validator<number>;
40
- left: PropTypes.Validator<number>;
41
- right: PropTypes.Validator<number>;
42
- }>>;
43
- declare const clusterTheme: PropTypes.Requireable<PropTypes.InferProps<{
44
- getNoisePresentation: PropTypes.Validator<(...args: any[]) => any>;
45
- getClusterPresentation: PropTypes.Validator<(...args: any[]) => any>;
46
- }>>;
47
- import PropTypes from "prop-types";
@@ -1,50 +0,0 @@
1
- /* eslint-disable no-undef */
2
- import PropTypes from 'prop-types';
3
- const position = PropTypes.shape({
4
- lat: PropTypes.number.isRequired,
5
- lng: PropTypes.number.isRequired,
6
- });
7
- const positions = PropTypes.arrayOf(position);
8
- const hMapIcon = PropTypes.instanceOf(H.map.Icon);
9
- const hMapDomIcon = PropTypes.instanceOf(H.map.DomIcon);
10
- const rect = PropTypes.shape({
11
- top: PropTypes.number.isRequired,
12
- bottom: PropTypes.number.isRequired,
13
- left: PropTypes.number.isRequired,
14
- right: PropTypes.number.isRequired,
15
- });
16
- const icon = PropTypes.oneOfType([hMapIcon, hMapDomIcon, PropTypes.string, PropTypes.element]);
17
- const map = PropTypes.instanceOf(H.Map);
18
- const group = PropTypes.instanceOf(H.map.Group);
19
- const mapOrGroup = PropTypes.oneOfType([map, group]);
20
- const platform = PropTypes.instanceOf(H.service.Platform);
21
- const mapEvents = PropTypes.instanceOf(H.mapevents.MapEvents);
22
- const defaultLayers = PropTypes.object;
23
- const api = PropTypes.shape({
24
- map,
25
- platform,
26
- defaultLayers,
27
- group: mapOrGroup,
28
- });
29
- const settings = PropTypes.shape({
30
- baseLayer: PropTypes.string,
31
- mapLayer: PropTypes.arrayOf(PropTypes.string),
32
- showCluster: PropTypes.bool,
33
- });
34
- const clusterTheme = PropTypes.shape({
35
- getNoisePresentation: PropTypes.func.isRequired,
36
- getClusterPresentation: PropTypes.func.isRequired,
37
- });
38
- const mapProps = {
39
- position,
40
- positions,
41
- icon,
42
- map,
43
- group,
44
- mapEvents,
45
- api,
46
- settings,
47
- rect,
48
- clusterTheme,
49
- };
50
- export default mapProps;
@@ -1,2 +0,0 @@
1
- export function validateMinMaxZoomUnchanged(props: any, nextProps: any): void;
2
- export function getKeyOrDefault(defaultValue: any, object: any): any;
@@ -1,8 +0,0 @@
1
- import getOr from 'lodash/fp/getOr';
2
- import MapException from '../exceptions/MapException';
3
- export const validateMinMaxZoomUnchanged = (props, nextProps) => {
4
- if (props.minZoom !== nextProps.minZoom || props.maxZoom !== nextProps.maxZoom) {
5
- throw new MapException('rio-map currently does not support changing of minZoom/maxZoom property.');
6
- }
7
- };
8
- export const getKeyOrDefault = (defaultValue, object) => getOr(defaultValue, 'props.key')(object);
@@ -1,3 +0,0 @@
1
- export declare const markerColorOptions: readonly ["bg-map-marker-asset", "bg-map-marker-poi", "bg-map-marker-geofence", "bg-map-marker-route"];
2
- export type MarkerColor = (typeof markerColorOptions)[number];
3
- export declare const markerColorMapping: Record<MarkerColor, string>;
@@ -1,12 +0,0 @@
1
- export const markerColorOptions = [
2
- 'bg-map-marker-asset',
3
- 'bg-map-marker-poi',
4
- 'bg-map-marker-geofence',
5
- 'bg-map-marker-route',
6
- ];
7
- export const markerColorMapping = {
8
- 'bg-map-marker-asset': 'map-marker-type-asset',
9
- 'bg-map-marker-poi': 'map-marker-type-poi',
10
- 'bg-map-marker-geofence': 'map-marker-type-geofence',
11
- 'bg-map-marker-route': 'map-marker-type-route',
12
- };
@@ -1,2 +0,0 @@
1
- export default getMenuItems;
2
- declare function getMenuItems(items: any, closeMenu: any, onMouseEnter: any): any;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import React from 'react';
3
- import MenuItem from './MenuItem';
4
- const getMenuItems = (items, closeMenu, onMouseEnter) => {
5
- return items.map((item, index) => (_jsx(MenuItem, Object.assign({}, item, { index: index, closeMenu: closeMenu, onMouseEnter: onMouseEnter }), index)));
6
- };
7
- export default getMenuItems;