@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
package/.DS_Store CHANGED
Binary file
@@ -0,0 +1,2 @@
1
+ export { default } from './components/selects/DropdownHeader';
2
+ export * from './components/selects/DropdownHeader';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/selects/DropdownHeader';
2
+ export * from './components/selects/DropdownHeader';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/feedback/FeedbackInlineButtons';
2
+ export * from './components/feedback/FeedbackInlineButtons';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/feedback/FeedbackInlineButtons';
2
+ export * from './components/feedback/FeedbackInlineButtons';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/feedback/FeedbackRating';
2
+ export * from './components/feedback/FeedbackRating';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/feedback/FeedbackRating';
2
+ export * from './components/feedback/FeedbackRating';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/feedback/FeedbackReactions';
2
+ export * from './components/feedback/FeedbackReactions';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/feedback/FeedbackReactions';
2
+ export * from './components/feedback/FeedbackReactions';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings';
2
+ export * from './components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings';
2
+ export * from './components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/map/components/features/settings/items/MapSettingsDropdownHeader';
2
+ export * from './components/map/components/features/settings/items/MapSettingsDropdownHeader';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/map/components/features/settings/items/MapSettingsDropdownHeader';
2
+ export * from './components/map/components/features/settings/items/MapSettingsDropdownHeader';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/smoothScrollbars/SmoothScrollbars';
2
+ export * from './components/smoothScrollbars/SmoothScrollbars';
@@ -0,0 +1,2 @@
1
+ export { default } from './components/smoothScrollbars/SmoothScrollbars';
2
+ export * from './components/smoothScrollbars/SmoothScrollbars';
Binary file
@@ -5,9 +5,9 @@ import 'react';
5
5
  import classNames from 'classnames';
6
6
  const ActionBarItemListItem = (props) => {
7
7
  const { hasLink, icon, onClick, className, children } = props, remainingProps = __rest(props, ["hasLink", "icon", "onClick", "className", "children"]);
8
- const classes = classNames('ActionBarItemListItem', className);
8
+ const classes = classNames('ActionBarItemListItem', hasLink && 'has-link', className);
9
9
  const iconClasses = classNames('ActionBarItemListItemIcon', 'rioglyph', icon);
10
10
  const btnClasses = classNames('ActionBarItemListItemButton');
11
- return (_jsxs("li", Object.assign({}, remainingProps, { className: classes }, { children: [icon && _jsx("span", { className: iconClasses }), hasLink && !onClick && _jsx("span", { children: children }), onClick && (_jsx("div", Object.assign({ className: btnClasses, onClick: onClick }, { children: children }))), !hasLink && !onClick && children] })));
11
+ return (_jsxs("li", Object.assign({}, remainingProps, { className: classes, onClick: onClick }, { children: [icon && _jsx("span", { className: iconClasses }), hasLink && !onClick && _jsx("span", { children: children }), onClick && _jsx("div", Object.assign({ className: btnClasses }, { children: children })), !hasLink && !onClick && children] })));
12
12
  };
13
13
  export default ActionBarItemListItem;
@@ -47,9 +47,10 @@ const AssetTree = memo(forwardRef((props, ref) => {
47
47
  if (previousWidth !== width) {
48
48
  setTreeWidth(width);
49
49
  }
50
- const previousMode = usePrevious(fly);
50
+ const [previousMode, setPreviousMode] = useState(fly);
51
51
  if (previousMode !== fly) {
52
52
  setSidebarMode(getSidebarMode(fly));
53
+ setPreviousMode(fly);
53
54
  }
54
55
  const childrenArray = React.Children.toArray(children);
55
56
  // check for children type of TreeCategory and throw error in case
@@ -181,6 +181,10 @@ export type TreeProps = {
181
181
  * Component to offer customization options for the tree.
182
182
  */
183
183
  treeOptions?: React.ReactNode[];
184
+ /**
185
+ * Tooltip content for the tree options dropdown.
186
+ */
187
+ treeOptionsTooltip?: React.ReactNode;
184
188
  /**
185
189
  * Disables animation when filtering or using search
186
190
  *
@@ -38,7 +38,7 @@ const filterProps = omit([
38
38
  ]);
39
39
  const customCompare = (prevProps, nextProps) => isEqual(filterProps(prevProps), filterProps(nextProps));
40
40
  const Tree = React.memo((props) => {
41
- const { groups = [], items = [], selectedGroups = [], selectedItems = [], onSelectionChange = noop, hasMultiselect = true, showRadioButtons = false, hideSearch = false, hideTreeHead, summary, hideSummary = false, search, searchPlaceholder = 'Type here to filter by name', onSearchChange = noop, className, scrollHeight, expandedGroups, onExpandGroupsChange = noop, showEmptyGroups = true, treeOptions = [], disableAnimation = false } = props, remainingProps = __rest(props, ["groups", "items", "selectedGroups", "selectedItems", "onSelectionChange", "hasMultiselect", "showRadioButtons", "hideSearch", "hideTreeHead", "summary", "hideSummary", "search", "searchPlaceholder", "onSearchChange", "className", "scrollHeight", "expandedGroups", "onExpandGroupsChange", "showEmptyGroups", "treeOptions", "disableAnimation"]);
41
+ const { groups = [], items = [], selectedGroups = [], selectedItems = [], onSelectionChange = noop, hasMultiselect = true, showRadioButtons = false, hideSearch = false, hideTreeHead, summary, hideSummary = false, search, searchPlaceholder = 'Type here to filter by name', onSearchChange = noop, className, scrollHeight, expandedGroups, onExpandGroupsChange = noop, showEmptyGroups = true, treeOptions = [], treeOptionsTooltip, disableAnimation = false } = props, remainingProps = __rest(props, ["groups", "items", "selectedGroups", "selectedItems", "onSelectionChange", "hasMultiselect", "showRadioButtons", "hideSearch", "hideTreeHead", "summary", "hideSummary", "search", "searchPlaceholder", "onSearchChange", "className", "scrollHeight", "expandedGroups", "onExpandGroupsChange", "showEmptyGroups", "treeOptions", "treeOptionsTooltip", "disableAnimation"]);
42
42
  const [state, dispatch] = useReducer(treeReducer, {
43
43
  groupedItems: [],
44
44
  flatItems: [],
@@ -275,6 +275,6 @@ const Tree = React.memo((props) => {
275
275
  const hasCustomSearch = !isNil(search);
276
276
  return (_jsxs("div", Object.assign({}, remainingProps, { className: treeClassNames, ref: treeRef }, { children: [_jsxs("div", Object.assign({ className: 'TreeHeader' }, { children: [showSearch && !hasCustomSearch && (_jsx(TreeSearch, { value: state.searchValue, onChange: handleSearchChange, placeholder: searchPlaceholder })), hasCustomSearch && search, showTreeHead && (_jsxs("div", Object.assign({ className: treeHeadClasses }, { children: [showSelectAll && (_jsx("div", Object.assign({ className: 'border border-right-only hidden-empty padding-right-10 margin-right-2' }, { children: _jsx(TreeSelectAll, { isChecked: state.allChecked, isEnabled: hasMultiselect, isIndeterminate: isIndeterminate, onSelect: handleSelectAll }) }))), _jsx("div", Object.assign({ className: 'display-flex justify-content-between align-items-start width-100pct' }, { children: showSummary
277
277
  ? summary || (_jsx(TreeSummary, { children: map((typeCounter) => (_jsx(TypeCounter, { type: typeCounter, icon: `${typeCounter}`, value: state.assetCounts[typeCounter], onClick: handleFilterByType, isActive: state.typeFilter.includes(typeCounter), hasFilter: isFilterActive, enableActivity: enableActivity }, typeCounter)))(state.visibleTypeCounters) }))
278
- : null })), _jsx(TreeOptions, { treeOptions: treeOptions })] })))] })), _jsx(TreeRoot, Object.assign({ maxHeight: scrollHeight, disableAnimation: disableAnimation }, { children: content }))] })));
278
+ : null })), _jsx(TreeOptions, { treeOptions: treeOptions, treeOptionsTooltip: treeOptionsTooltip })] })))] })), _jsx(TreeRoot, Object.assign({ maxHeight: scrollHeight, disableAnimation: disableAnimation }, { children: content }))] })));
279
279
  }, customCompare);
280
280
  export default Tree;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  export type TreeOptionsProps = {
3
3
  treeOptions?: React.ReactNode[];
4
+ treeOptionsTooltip?: React.ReactNode;
4
5
  className?: string;
5
6
  };
6
7
  declare const TreeOptions: (props: TreeOptionsProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -4,13 +4,27 @@ import 'react';
4
4
  import classNames from 'classnames';
5
5
  import { isEmpty } from 'lodash';
6
6
  import ButtonDropdown from '../dropdown/ButtonDropdown';
7
+ import SimpleTooltip from '../tooltip/SimpleTooltip';
7
8
  const TreeOptions = (props) => {
8
- const { treeOptions = [], className } = props;
9
+ const { treeOptions = [], treeOptionsTooltip, className } = props;
9
10
  if (isEmpty(treeOptions)) {
10
11
  return null;
11
12
  }
12
13
  const dropdownClasses = classNames('display-flex flex-column gap-10', 'width-250', 'padding-15', className);
13
14
  const customDropdown = _jsx("div", Object.assign({ className: dropdownClasses }, { children: treeOptions }));
14
- return (_jsx(ButtonDropdown, { title: _jsx("span", { className: 'rioglyph rioglyph-option-vertical', "aria-hidden": 'true' }), bsStyle: 'default', bsSize: 'sm', customDropdown: customDropdown, toggleClassName: 'hover-bg-white border-none text-color-gray hover-text-color-dark', className: 'TreeHeaderOptions', pullRight: true, iconOnly: true }));
15
+ const dropdown = (_jsx(ButtonDropdown, { title: _jsx("span", { className: 'rioglyph rioglyph-option-vertical', "aria-hidden": 'true' }), bsStyle: 'default', bsSize: 'sm', customDropdown: customDropdown, toggleClassName: 'hover-bg-white border-none text-color-gray hover-text-color-dark', className: 'TreeHeaderOptions', pullRight: true, iconOnly: true }));
16
+ if (treeOptionsTooltip) {
17
+ return (_jsx(SimpleTooltip, Object.assign({ content: treeOptionsTooltip, placement: 'bottom', delay: { show: 1000, hide: 0 }, popperConfig: {
18
+ modifiers: [
19
+ {
20
+ name: 'offset',
21
+ options: {
22
+ offset: [-20, 10],
23
+ },
24
+ },
25
+ ],
26
+ } }, { children: dropdown })));
27
+ }
28
+ return dropdown;
15
29
  };
16
30
  export default TreeOptions;
@@ -25,7 +25,7 @@ const TreeSidebarCategories = (props) => {
25
25
  const category = (_jsx("li", Object.assign({ onClick: handleSelectCategory, className: statusClassName }, { children: _jsx("div", Object.assign({ className: 'selection-bubble' }, { children: _jsx("span", { className: `rioglyph ${icon}` }) })) }), id));
26
26
  if (label) {
27
27
  const tooltip = _jsx("span", { children: label });
28
- return (_jsx(OverlayTrigger, Object.assign({ placement: Tooltip.RIGHT, delay: TOOLTIP_DELAY, overlay: _jsx(Tooltip, Object.assign({ id: 'tooltip', width: 'auto' }, { children: tooltip })) }, { children: category }), `category-tooltip-${id}`));
28
+ return (_jsx(OverlayTrigger, Object.assign({ placement: Tooltip.RIGHT, delay: { show: TOOLTIP_DELAY, hide: 0 }, overlay: _jsx(Tooltip, Object.assign({ id: 'tooltip', width: 'auto' }, { children: tooltip })) }, { children: category }), `category-tooltip-${id}`));
29
29
  }
30
30
  return category;
31
31
  }) }));
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { forwardRef, useLayoutEffect, useRef, useState } from 'react';
2
+ import React, { forwardRef, useEffect, useRef, useState } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { AnimatePresence, motion } from 'framer-motion';
5
5
  import noop from 'lodash/noop';
@@ -54,7 +54,7 @@ const CalendarStripe = forwardRef((props, ref) => {
54
54
  useAfterMount(() => {
55
55
  setEnableInitialAnimation(true);
56
56
  }, []);
57
- useLayoutEffect(() => {
57
+ useEffect(() => {
58
58
  if (!columnWrapperRef.current) {
59
59
  return;
60
60
  }
@@ -0,0 +1,13 @@
1
+ import React, { type ComponentProps } from 'react';
2
+ type FeedbackInlineButtonsProps = ComponentProps<'div'> & {
3
+ /**
4
+ * Optional headline inlined with the buttons.
5
+ */
6
+ headline?: React.ReactNode;
7
+ /**
8
+ * List of buttons to be shown.
9
+ */
10
+ buttons?: React.ReactNode[];
11
+ };
12
+ declare const FeedbackInlineButtons: (props: FeedbackInlineButtonsProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default FeedbackInlineButtons;
@@ -0,0 +1,9 @@
1
+ import { __rest } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ // @ts-ignore-next-line importsNotUsedAsValues
4
+ import 'react';
5
+ const FeedbackInlineButtons = (props) => {
6
+ const { buttons = [], headline } = props, remainingProps = __rest(props, ["buttons", "headline"]);
7
+ return (_jsxs("div", Object.assign({}, remainingProps, { className: 'display-flex flex-wrap align-items-center column-gap-15 row-gap-5 user-select-none' }, { children: [headline && _jsx("div", Object.assign({ className: 'text-color-dark' }, { children: headline })), _jsx("div", Object.assign({ className: 'btn-toolbar gap-5' }, { children: buttons.map(button => button) }))] })));
8
+ };
9
+ export default FeedbackInlineButtons;
@@ -0,0 +1,65 @@
1
+ import React, { type ComponentProps } from 'react';
2
+ import type { BUTTON_SIZE, BUTTON_STYLE, BUTTON_VARIANT } from '../button/Button';
3
+ type FeedbackRatingProps = ComponentProps<'div'> & {
4
+ /**
5
+ * Optional headline
6
+ */
7
+ headline?: React.ReactNode;
8
+ /**
9
+ * The amount of toggle buttons used to rate.
10
+ *
11
+ * @default 1
12
+ */
13
+ count: number;
14
+ /**
15
+ * Defines whether the buttons are round.
16
+ *
17
+ * @default false
18
+ */
19
+ circleButtons?: boolean;
20
+ /**
21
+ * Optional class names applied to all the buttons.
22
+ * If you need more control on styling individual buttons, see `buttonStyles`.
23
+ */
24
+ buttonClassName?: string;
25
+ /**
26
+ * Array of button labels that will be used instead of the index.
27
+ * There needs to be a label for each button defined.
28
+ */
29
+ buttonLabels?: React.ReactNode[];
30
+ /**
31
+ * Array of button styles to individually define the button size, style and variant.
32
+ * There needs to be a item for each button defined.
33
+ */
34
+ buttonStyles?: {
35
+ bsSize?: BUTTON_SIZE;
36
+ bsStyle?: BUTTON_STYLE;
37
+ variant?: BUTTON_VARIANT;
38
+ className?: string;
39
+ }[];
40
+ /**
41
+ * Left aligned label to name the lowest rating option.
42
+ */
43
+ leftLabel?: React.ReactNode;
44
+ /**
45
+ * Right aligned label to name the highest rating option.
46
+ */
47
+ rightLabel?: React.ReactNode;
48
+ /**
49
+ * Additional icon placed in front of the rating buttons.
50
+ */
51
+ leadingIcon?: React.ReactNode;
52
+ /**
53
+ * Additional icon placed after the rating buttons.
54
+ */
55
+ trailingIcon?: React.ReactNode;
56
+ /**
57
+ * Callback triggered when the rating changes.
58
+ *
59
+ * @param rating The rating value. Undefined, when a toggle is unchecked.
60
+ * @returns
61
+ */
62
+ onRatingChanged?: (rating: number | undefined) => void;
63
+ };
64
+ declare const FeedbackRating: (props: FeedbackRatingProps) => import("react/jsx-runtime").JSX.Element;
65
+ export default FeedbackRating;
@@ -0,0 +1,23 @@
1
+ import { __rest } from "tslib";
2
+ import { createElement as _createElement } from "react";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { useState } from 'react';
5
+ import classNames from 'classnames';
6
+ import ToggleButton from '../button/ToggleButton';
7
+ const FeedbackRating = (props) => {
8
+ const { headline, count = 1, circleButtons = false, buttonLabels, buttonStyles, buttonClassName = '', leftLabel, rightLabel, leadingIcon, trailingIcon, onRatingChanged = () => { } } = props, remainingProps = __rest(props, ["headline", "count", "circleButtons", "buttonLabels", "buttonStyles", "buttonClassName", "leftLabel", "rightLabel", "leadingIcon", "trailingIcon", "onRatingChanged"]);
9
+ const [rating, setRating] = useState();
10
+ const handleRating = (value) => {
11
+ setRating(value);
12
+ onRatingChanged(value);
13
+ };
14
+ const hasSubLabels = !!leftLabel || !!rightLabel;
15
+ const buttonWrapperClasses = classNames('display-flex gap-10', hasSubLabels ? 'align-items-start' : 'align-items-center', 'text-size-14', 'margin-bottom-25');
16
+ const leadingTrailingIconClasses = classNames('display-flex align-items-center', 'text-size-200pct', hasSubLabels && 'padding-top-3');
17
+ return (_jsxs("div", Object.assign({}, remainingProps, { className: 'FeedbackRating' }, { children: [headline && _jsx("div", Object.assign({ className: 'text-medium text-size-16 margin-bottom-10' }, { children: headline })), _jsxs("div", Object.assign({ className: buttonWrapperClasses }, { children: [leadingIcon && _jsx("div", Object.assign({ className: leadingTrailingIconClasses }, { children: leadingIcon })), _jsxs("div", { children: [_jsx("div", Object.assign({ className: 'display-flex flex-wrap gap-10' }, { children: Array.from({ length: count }, (_, index) => {
18
+ var _a, _b;
19
+ const indexNumber = index + 1;
20
+ return (_createElement(ToggleButton, Object.assign({}, buttonStyles === null || buttonStyles === void 0 ? void 0 : buttonStyles[index], { key: indexNumber, active: rating === indexNumber, onClick: (toggled) => handleRating(toggled ? indexNumber : undefined), className: `${circleButtons ? 'rounded-circle aspect-ratio-1' : ''} ${buttonClassName} ${(_a = buttonStyles === null || buttonStyles === void 0 ? void 0 : buttonStyles[index].className) !== null && _a !== void 0 ? _a : ''}` }), (_b = buttonLabels === null || buttonLabels === void 0 ? void 0 : buttonLabels[index]) !== null && _b !== void 0 ? _b : indexNumber));
21
+ }) })), hasSubLabels && (_jsxs("div", Object.assign({ className: 'display-flex justify-content-between margin-top-5 gap-25' }, { children: [leftLabel ? _jsx("label", Object.assign({ className: 'word-wrap text-color-dark' }, { children: leftLabel })) : _jsx("div", {}), rightLabel ? _jsx("label", Object.assign({ className: 'word-wrap text-color-dark' }, { children: rightLabel })) : _jsx("div", {})] })))] }), trailingIcon && _jsx("div", Object.assign({ className: leadingTrailingIconClasses }, { children: trailingIcon }))] }))] })));
22
+ };
23
+ export default FeedbackRating;
@@ -0,0 +1,71 @@
1
+ import React, { type ComponentProps } from 'react';
2
+ type FeedbackReactionsProps = ComponentProps<'div'> & {
3
+ /**
4
+ * Optional headline inlined with the buttons.
5
+ */
6
+ headline?: React.ReactNode;
7
+ /**
8
+ * Size of the reaction buttons.
9
+ *
10
+ * @default 'md'
11
+ */
12
+ size?: 'sm' | 'md';
13
+ /**
14
+ * Position of the reaction button labels.
15
+ *
16
+ * @default 'bottom'
17
+ */
18
+ labelPosition?: 'right' | 'bottom';
19
+ /**
20
+ * Label for the up button.
21
+ */
22
+ labelUp?: React.ReactNode;
23
+ /**
24
+ * Label for the down button.
25
+ */
26
+ labelDown?: React.ReactNode;
27
+ /**
28
+ * Custom fill color for the up button.
29
+ *
30
+ * @default 'bg-lightest'
31
+ */
32
+ colorFillUp?: string;
33
+ /**
34
+ * Custom fill color for the down button.
35
+ *
36
+ * @default 'bg-lightest'
37
+ */
38
+ colorFillDown?: string;
39
+ /**
40
+ * Custom hover color for the up button.
41
+ *
42
+ * @default 'primary'
43
+ */
44
+ colorHoverUp?: string;
45
+ /**
46
+ * Custom hover color for the down button.
47
+ *
48
+ * @default 'primary'
49
+ */
50
+ colorHoverDown?: string;
51
+ /**
52
+ * Callback function triggered on up vote.
53
+ */
54
+ onVoteUp?: VoidFunction;
55
+ /**
56
+ * Callback function triggered on down vote.
57
+ */
58
+ onVoteDown?: VoidFunction;
59
+ /**
60
+ * Additional classes applied to the individual reaction item (button and label).
61
+ */
62
+ itemClassName?: string;
63
+ /**
64
+ * Defines whether the reaction icon is animated.
65
+ *
66
+ * @default false
67
+ */
68
+ animated?: boolean;
69
+ };
70
+ declare const FeedbackReactions: (props: FeedbackReactionsProps) => import("react/jsx-runtime").JSX.Element;
71
+ export default FeedbackReactions;
@@ -0,0 +1,26 @@
1
+ import { __rest } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useRef } from 'react';
4
+ import classNames from 'classnames';
5
+ import { motion } from 'framer-motion';
6
+ import useHover from '../../hooks/useHover';
7
+ const FeedbackReactions = (props) => {
8
+ const { headline, animated, labelUp, labelDown, labelPosition = 'bottom', size = 'md', colorFillUp = '', colorFillDown = '', colorHoverUp = 'primary', colorHoverDown = 'primary', onVoteUp = () => { }, onVoteDown = () => { }, itemClassName } = props, remainingProps = __rest(props, ["headline", "animated", "labelUp", "labelDown", "labelPosition", "size", "colorFillUp", "colorFillDown", "colorHoverUp", "colorHoverDown", "onVoteUp", "onVoteDown", "itemClassName"]);
9
+ const hasLabels = !!labelUp || !!labelDown;
10
+ const wrapperClassName = classNames(hasLabels ? 'display-grid grid-cols-2' : 'display-flex', 'gap-15', 'padding-top-5', 'user-select-none');
11
+ return (_jsxs("div", Object.assign({}, remainingProps, { className: wrapperClassName }, { children: [_jsx(FeedbackItem, { size: size, fillColor: colorFillDown, hoverColor: colorHoverDown, animated: animated, iconName: 'thumbs-down', text: labelDown, labelPosition: labelPosition, onClick: onVoteDown, className: itemClassName }), _jsx(FeedbackItem, { size: size, fillColor: colorFillUp, hoverColor: colorHoverUp, animated: animated, iconName: 'thumbs-up', text: labelUp, labelPosition: labelPosition, onClick: onVoteUp, className: itemClassName })] })));
12
+ };
13
+ const FeedbackItem = (props) => {
14
+ const { size, text, iconName, onClick, fillColor, hoverColor, animated = false, labelPosition = 'bottom', className, } = props;
15
+ const ref = useRef(null);
16
+ const isHover = useHover(ref);
17
+ const iconClasses = classNames(size === 'sm' ? 'width-40' : 'width-50', 'aspect-ratio-1', 'border rounded-circle', fillColor ? `bg-${fillColor} text-color-white` : 'bg-lightest', isHover ? `border-color-${hoverColor} text-color-${hoverColor}` : 'border-color-lightest', 'display-grid place-items-center', 'text-size-14');
18
+ const wrapperClassName = classNames('display-flex', 'gap-10', labelPosition === 'bottom' ? 'flex-column' : '', 'align-items-center', 'text-center', 'cursor-pointer', className);
19
+ const isUp = iconName.includes('up');
20
+ return (_jsxs("div", Object.assign({ ref: ref, className: wrapperClassName, onClick: onClick }, { children: [_jsx("div", Object.assign({ className: iconClasses }, { children: _jsx(motion.span, { initial: { y: 0, rotate: 0 }, animate: animated && isHover ? { y: [0, isUp ? -3 : 3, 0], rotate: [0, isUp ? -10 : 10, 0] } : { y: 0 }, transition: {
21
+ duration: 0.6,
22
+ repeat: isHover ? Number.POSITIVE_INFINITY : 0,
23
+ repeatType: 'loop',
24
+ }, className: `rioglyph rioglyph-${iconName} text-size-200pct` }) })), _jsx("div", Object.assign({ className: `text-wrap-balance line-height-125rel text-medium ${isHover ? `text-color-${hoverColor}` : 'text-color-darker'}` }, { children: text }))] })));
25
+ };
26
+ export default FeedbackReactions;
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  import { type ListMenuNavItem, type ListMenuItem } from './ListMenuGroup';
3
3
  export type ListMenuProps<T extends ListMenuNavItem> = {
4
4
  /**
@@ -52,6 +52,10 @@ export type ListMenuProps<T extends ListMenuNavItem> = {
52
52
  * Additional classes to be set on the menu group element.
53
53
  */
54
54
  groupClassName?: string;
55
+ /**
56
+ * Additional addon for the input group.
57
+ */
58
+ trailingInputAddon?: React.ReactNode;
55
59
  /**
56
60
  * Additional classes to be set on the wrapper element.
57
61
  */
@@ -16,7 +16,7 @@ const MOBILE_MAX_WIDTH = 580;
16
16
  const filterMenuItems = (items, value, filterKey) => items.map(item => (Object.assign(Object.assign({}, item), { navItems: item.navItems.filter(navItem => navItem[filterKey].toLowerCase().includes(value.toLowerCase())) })));
17
17
  const hasMenuItems = (items) => items.find(({ navItems }) => !isEmpty(navItems));
18
18
  const ListMenu = (props) => {
19
- const { menuItems, focusFilter = false, enableFilter = false, filterPlaceholder, notFoundMessage, className = '', groupClassName = '', responsive = true, autoClose = true, filterKey = 'key' } = props, remainingProps = __rest(props, ["menuItems", "focusFilter", "enableFilter", "filterPlaceholder", "notFoundMessage", "className", "groupClassName", "responsive", "autoClose", "filterKey"]);
19
+ const { menuItems, focusFilter = false, enableFilter = false, filterPlaceholder, notFoundMessage, className = '', groupClassName = '', responsive = true, autoClose = true, filterKey = 'key', trailingInputAddon } = props, remainingProps = __rest(props, ["menuItems", "focusFilter", "enableFilter", "filterPlaceholder", "notFoundMessage", "className", "groupClassName", "responsive", "autoClose", "filterKey", "trailingInputAddon"]);
20
20
  const [filterValue, setFilterValue] = useState('');
21
21
  const [isMobileMode, setIsMobileMode] = useState(false);
22
22
  const [isExpanderOpen, setIsExpanderOpen] = useState(false);
@@ -67,7 +67,7 @@ const ListMenu = (props) => {
67
67
  }
68
68
  };
69
69
  const formClassNames = classNames('form-group', 'margin-bottom-5', 'padding-left-15', 'padding-right-15', 'padding-bottom-15', 'position-sticky', 'top-0');
70
- const listMenu = (_jsxs("div", Object.assign({}, remainingProps, { className: `ListMenu ${className}`, ref: listRef }, { children: [enableFilter && (_jsx("div", Object.assign({ className: formClassNames }, { children: _jsxs("div", Object.assign({ className: 'input-group width-100pct' }, { children: [_jsx("span", Object.assign({ className: 'input-group-addon' }, { children: _jsx("span", { className: 'rioglyph rioglyph-search', "aria-hidden": 'true' }) })), _jsx(ClearableInput, { value: filterValue, inputRef: inputRef, placeholder: filterPlaceholder, onChange: handleFilterChange, onClear: handleClear })] })) }))), !hasMenuItems(filteredMenuItems) && (_jsx("div", Object.assign({ className: 'padding-top-25 text-center text-color-gray' }, { children: notFoundMessage }))), filteredMenuItems.map(menuGroup => (_jsx(ListMenuGroup, { className: groupClassName, menuGroup: menuGroup }, crypto.randomUUID())))] })));
70
+ const listMenu = (_jsxs("div", Object.assign({}, remainingProps, { className: `ListMenu ${className}`, ref: listRef }, { children: [enableFilter && (_jsx("div", Object.assign({ className: formClassNames }, { children: _jsxs("div", Object.assign({ className: 'input-group width-100pct' }, { children: [_jsx("span", Object.assign({ className: 'input-group-addon' }, { children: _jsx("span", { className: 'rioglyph rioglyph-search', "aria-hidden": 'true' }) })), _jsx(ClearableInput, { value: filterValue, inputRef: inputRef, placeholder: filterPlaceholder, onChange: handleFilterChange, onClear: handleClear }), trailingInputAddon && trailingInputAddon] })) }))), !hasMenuItems(filteredMenuItems) && (_jsx("div", Object.assign({ className: 'padding-top-25 text-center text-color-gray' }, { children: notFoundMessage }))), filteredMenuItems.map(menuGroup => (_jsx(ListMenuGroup, { className: groupClassName, menuGroup: menuGroup }, crypto.randomUUID())))] })));
71
71
  if (responsive && isMobileMode) {
72
72
  return (_jsx(ExpanderPanel, Object.assign({ title: mobileHeader, bsStyle: 'default', open: isExpanderOpen, onToggle: () => setIsExpanderOpen(!isExpanderOpen), unmountOnExit: false, className: 'shadow-default' }, { children: _jsx("div", Object.assign({ onClick: handleExpanderBodyClick }, { children: listMenu })) })));
73
73
  }
Binary file
Binary file
@@ -24,7 +24,7 @@ const setupMarker = (props, api) => {
24
24
  const { position, customData, icon, draggable, eventListenerMap } = props;
25
25
  const MarkerConstructor = isDomMakerNeeded(icon) ? H.map.DomMarker : H.map.Marker;
26
26
  const marker = new MarkerConstructor(position, {
27
- icon: getOrCreateIcon(icon),
27
+ icon: icon && getOrCreateIcon(icon),
28
28
  });
29
29
  marker.setData(customData);
30
30
  marker.draggable = !!draggable;
@@ -4,6 +4,7 @@ export type MapSettingsItemProps = {
4
4
  inactiveIcon?: JSX.Element;
5
5
  isActive?: boolean;
6
6
  className?: string;
7
+ label?: string | JSX.Element;
7
8
  onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
8
9
  };
9
10
  declare const MapSettingsItem: (props: MapSettingsItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,17 +1,20 @@
1
- import { jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import classNames from 'classnames';
4
4
  import noop from 'lodash/fp/noop';
5
5
  const MapSettingsItem = (props) => {
6
- const { onClick = noop, activeIcon, inactiveIcon, isActive = false, className = '' } = props;
7
- const activeIconClassNames = classNames('MapSettingsTileIcon', 'hover-scale-110', isActive ? 'display-block' : 'display-none', (activeIcon === null || activeIcon === void 0 ? void 0 : activeIcon.props.className) || '');
8
- const inactiveIconClassNames = classNames('MapSettingsTileIcon', 'hover-scale-110', isActive ? 'display-none' : 'display-block', (inactiveIcon === null || inactiveIcon === void 0 ? void 0 : inactiveIcon.props.className) || '');
9
- return (_jsxs("div", Object.assign({ className: `MapSettingsItem ${className}`, onClick: onClick }, { children: [activeIcon &&
10
- React.cloneElement(activeIcon, {
11
- className: activeIconClassNames,
12
- }), inactiveIcon &&
13
- React.cloneElement(inactiveIcon, {
14
- className: inactiveIconClassNames,
15
- })] })));
6
+ const { onClick = noop, activeIcon, inactiveIcon, isActive = false, label, className = '' } = props;
7
+ const activeIconClassNames = classNames('MapSettingsTileIcon', !label && 'hover-scale-110', isActive ? 'display-block' : 'display-none', (activeIcon === null || activeIcon === void 0 ? void 0 : activeIcon.props.className) || '');
8
+ const inactiveIconClassNames = classNames('MapSettingsTileIcon', !label && 'hover-scale-110', isActive ? 'display-none' : 'display-block', (inactiveIcon === null || inactiveIcon === void 0 ? void 0 : inactiveIcon.props.className) || '');
9
+ const defaultIcon = activeIcon &&
10
+ React.cloneElement(activeIcon, {
11
+ className: activeIconClassNames,
12
+ });
13
+ const highlightedIcon = inactiveIcon &&
14
+ React.cloneElement(inactiveIcon, {
15
+ className: inactiveIconClassNames,
16
+ });
17
+ const mapSettingsItemClassNames = classNames('MapSettingsItem', 'display-flex align-items-center gap-10', 'text-color-darker', label && 'margin--5', className);
18
+ return (_jsxs("div", Object.assign({ className: mapSettingsItemClassNames, onClick: onClick }, { children: [label && (_jsxs(_Fragment, { children: [_jsxs("div", Object.assign({ className: 'margin-left--5' }, { children: [highlightedIcon, defaultIcon] })), _jsx("div", Object.assign({ className: 'flex-1-1 line-height-16 padding-right-5' }, { children: label }))] })), !label && (_jsxs(_Fragment, { children: [highlightedIcon, defaultIcon] }))] })));
16
19
  };
17
20
  export default MapSettingsItem;
@@ -3,8 +3,9 @@ export type MapSettingsTileProps = {
3
3
  onToggle?: () => void;
4
4
  tooltip?: React.ReactNode;
5
5
  panel?: React.ReactNode;
6
- activeIcon?: JSX.Element;
7
- inactiveIcon?: JSX.Element;
6
+ items?: JSX.Element[] | undefined;
7
+ activeIcon?: JSX.Element | undefined;
8
+ inactiveIcon?: JSX.Element | undefined;
8
9
  isActive?: boolean;
9
10
  buttonClassName?: string;
10
11
  className?: string;
@@ -1,17 +1,23 @@
1
1
  import { __rest } from "tslib";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React, { useState } from 'react';
4
4
  import { AnimatePresence } from 'framer-motion';
5
5
  import classNames from 'classnames';
6
6
  import noop from 'lodash/fp/noop';
7
+ import { usePopper } from 'react-popper';
7
8
  import OverlayTrigger from '../../../../overlay/OverlayTrigger';
8
9
  import Tooltip from '../../../../tooltip/Tooltip';
9
10
  import useClickOutside from '../../../../../hooks/useClickOutside';
11
+ import MenuItemList from '../../../../menuItems/MenuItemList';
12
+ import MenuItem from '../../../../menuItems/MenuItem';
13
+ import { isMobileScreen } from '../../../../../utils/deviceUtils';
14
+ const TOOLTIP_SHOW_TIMEOUT_IN_MS = 800;
15
+ const TOOLTIP_HIDE_TIMEOUT_IN_MS = 100;
10
16
  const getComponentWithTooltip = (component, tooltip) => {
11
- return (_jsx(OverlayTrigger, Object.assign({ placement: Tooltip.TOP, delay: { show: 1200, hide: 100 }, overlay: _jsx(Tooltip, Object.assign({ id: 'tooltip', width: 'auto' }, { children: tooltip })) }, { children: component })));
17
+ return (_jsx(OverlayTrigger, Object.assign({ placement: Tooltip.TOP, delay: { show: TOOLTIP_SHOW_TIMEOUT_IN_MS, hide: TOOLTIP_HIDE_TIMEOUT_IN_MS }, overlay: _jsx(Tooltip, Object.assign({ id: 'tooltip', width: 'auto' }, { children: tooltip })) }, { children: component })));
12
18
  };
13
19
  const MapSettingsTile = (props) => {
14
- const { onToggle = noop, activeIcon, inactiveIcon, isActive = false, panel, className, buttonClassName, tooltip } = props, remainingProps = __rest(props, ["onToggle", "activeIcon", "inactiveIcon", "isActive", "panel", "className", "buttonClassName", "tooltip"]);
20
+ const { onToggle = noop, activeIcon, inactiveIcon, isActive = false, panel, items, className, buttonClassName, tooltip } = props, remainingProps = __rest(props, ["onToggle", "activeIcon", "inactiveIcon", "isActive", "panel", "items", "className", "buttonClassName", "tooltip"]);
15
21
  const [isOpen, setIsOpen] = useState(false);
16
22
  const handleToggle = () => {
17
23
  const newState = !isOpen;
@@ -27,8 +33,32 @@ const MapSettingsTile = (props) => {
27
33
  }
28
34
  };
29
35
  const buttonRef = useClickOutside(handleClosePanel);
36
+ const [toggleRef, setToggleRef] = useState(null);
37
+ const [refDropdownMenu, setRefDropdownMenu] = useState(null);
38
+ const { styles, attributes } = usePopper(toggleRef, refDropdownMenu, {
39
+ placement: 'top-end',
40
+ modifiers: isMobileScreen()
41
+ ? [
42
+ {
43
+ name: 'offset',
44
+ options: {
45
+ offset: [-60, -60],
46
+ },
47
+ },
48
+ ]
49
+ : [],
50
+ });
51
+ const dropdownWrapperRef = useClickOutside((event) => {
52
+ if (toggleRef === null || toggleRef === void 0 ? void 0 : toggleRef.contains(event.target)) {
53
+ return;
54
+ }
55
+ if (isOpen) {
56
+ setIsOpen(false);
57
+ onToggle(false);
58
+ }
59
+ });
30
60
  const wrapperClasses = classNames('MapSettingsTile', className);
31
- const buttonClasses = classNames('MapSettingsButton', buttonClassName);
61
+ const buttonClasses = classNames('MapSettingsButton', isOpen && 'active', buttonClassName);
32
62
  const activeIconClassNames = classNames('MapSettingsTileIcon', 'hover-scale-110', isActive ? 'display-block' : 'display-none', (activeIcon === null || activeIcon === void 0 ? void 0 : activeIcon.props.className) || '');
33
63
  const inactiveIconClassNames = classNames('MapSettingsTileIcon', 'hover-scale-110', isActive ? 'display-none' : 'display-block', (inactiveIcon === null || inactiveIcon === void 0 ? void 0 : inactiveIcon.props.className) || '');
34
64
  const button = (_jsxs("div", Object.assign({ className: buttonClasses, onClick: handleToggle }, { children: [activeIcon &&
@@ -38,6 +68,11 @@ const MapSettingsTile = (props) => {
38
68
  React.cloneElement(inactiveIcon, {
39
69
  className: inactiveIconClassNames,
40
70
  })] })));
41
- return (_jsxs("div", Object.assign({ className: wrapperClasses, ref: buttonRef }, remainingProps, { children: [tooltip ? getComponentWithTooltip(button, tooltip) : button, _jsx("div", Object.assign({ className: 'overflow-hidden' }, { children: _jsx(AnimatePresence, { children: isOpen && panel && panel }) }))] })));
71
+ return (_jsxs("div", Object.assign({ className: wrapperClasses, ref: buttonRef }, remainingProps, { children: [!items && (_jsxs(_Fragment, { children: [tooltip && !isOpen ? getComponentWithTooltip(button, tooltip) : button, _jsx("div", Object.assign({ className: 'overflow-hidden' }, { children: _jsx(AnimatePresence, { children: isOpen && panel && panel }) }))] })), items && (_jsxs("div", Object.assign({ className: 'MapSettingsTile-inner position-relative', ref: setToggleRef }, { children: [tooltip && !isOpen ? getComponentWithTooltip(button, tooltip) : button, _jsx(AnimatePresence, { children: _jsx("div", Object.assign({ className: 'dropdown', ref: dropdownWrapperRef }, { children: isOpen && items && (_jsx(MenuItemList, Object.assign({ className: 'margin-bottom-10 shadow-smooth border-none', ref: setRefDropdownMenu, style: Object.assign(Object.assign({}, styles.popper), { minWidth: '180px' }) }, attributes.popper, { children: items === null || items === void 0 ? void 0 : items.map((item, index) => {
72
+ if (item.type.name === 'MapSettingsDropdownHeader') {
73
+ return item;
74
+ }
75
+ return _jsx(MenuItem, { value: item }, index);
76
+ }) }))) })) })] })))] })));
42
77
  };
43
78
  export default MapSettingsTile;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export type MapAdditionalLayerSettingsProps = {
3
+ activeBuiltinLayers?: string[];
4
+ activeLayers?: string[];
5
+ layers?: JSX.Element[];
6
+ tooltip?: string | React.ReactNode;
7
+ };
8
+ declare const MapAdditionalLayerSettings: (props: MapAdditionalLayerSettingsProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default MapAdditionalLayerSettings;