@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/types.d.ts DELETED
@@ -1,71 +0,0 @@
1
- import type React from 'react';
2
- import type { Moment } from 'moment';
3
- export interface DateRangePickerCustomPresets {
4
- startValue: Moment;
5
- endValue: Moment;
6
- text: string | JSX.Element;
7
- onSelect?: Function;
8
- }
9
- export interface DateRangePickerProps {
10
- startValue?: Moment;
11
- endValue?: Moment;
12
- defaultStartValue?: Moment;
13
- defaultEndValue?: Moment;
14
- minValue?: Moment | null;
15
- maxValue?: Moment | null;
16
- onRangeChange?: (start: Moment, end: Moment) => void;
17
- locale: string;
18
- textDefault?: string | React.ReactNode;
19
- textToday?: string | React.ReactNode;
20
- textLastWeek?: string | React.ReactNode;
21
- textLastMonth?: string | React.ReactNode;
22
- textLastYear?: string | React.ReactNode;
23
- textCustom?: string | React.ReactNode;
24
- textApply?: string | React.ReactNode;
25
- textCancel?: string | React.ReactNode;
26
- textFrom?: string | React.ReactNode;
27
- textTo?: string | React.ReactNode;
28
- className?: string;
29
- dropdownClass?: string;
30
- dropdownMenuClass?: string;
31
- hasTimePicker?: boolean;
32
- customRangeOnly?: boolean;
33
- customPresets?: DateRangePickerCustomPresets[];
34
- dropup?: boolean;
35
- pullRight?: boolean;
36
- autoDropDirection?: boolean;
37
- }
38
- export interface TableSettingsDialogColumnDetails {
39
- width?: number;
40
- defaultWidth?: number;
41
- maxWidth?: number;
42
- }
43
- export interface TableSettingsDialogProps {
44
- show: boolean;
45
- title: React.ReactNode;
46
- subtitle?: React.ReactNode;
47
- className?: string;
48
- defaultColumnOrder: string[];
49
- defaultHiddenColumns?: string[];
50
- columnOrder: string[];
51
- hiddenColumns?: string[];
52
- columnLabels: any;
53
- disabledColumns: string[];
54
- columnsDetails?: TableSettingsDialogColumnDetails;
55
- defaultColumnDetails?: TableSettingsDialogColumnDetails;
56
- autoLabel?: string | React.ReactNode;
57
- applyButtonText?: string | React.ReactNode;
58
- cancelButtonText?: string | React.ReactNode;
59
- closeButtonText?: string | React.ReactNode;
60
- resetButtonText: string | React.ReactNode;
61
- onColumnChange: Function;
62
- onColumnDetailsChange?: Function;
63
- onDiscard?: Function;
64
- onApply?: Function;
65
- onHide: Function;
66
- columnSearchValue?: string;
67
- onSearchChange?: Function;
68
- searchPlaceholder: React.ReactNode;
69
- notFoundMessage?: string;
70
- immediateChange?: boolean;
71
- }
package/types.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export function getNewGroupedSelected(selected: any, selectedOld: any, compactData: any, openRows: any, extendedData: any, keyField: any, groupHeadKeyField: any): any;
@@ -1,80 +0,0 @@
1
- import isEmpty from 'lodash/fp/isEmpty';
2
- import isEqual from 'lodash/fp/isEqual';
3
- import findIndex from 'lodash/fp/findIndex';
4
- const getIndexOfCompareItem = (array, compareItem) => {
5
- return findIndex(item => isEqual(item, compareItem))(array);
6
- };
7
- const getSelectedArrays = selected => {
8
- const selectedArrays = [];
9
- selected.forEach(item => {
10
- if (Array.isArray(item)) {
11
- selectedArrays.push(item);
12
- }
13
- });
14
- return selectedArrays;
15
- };
16
- const getShownIds = (compactData, openRows, extendedData, keyField, groupHeadKeyField) => {
17
- const shownIds = [];
18
- compactData.forEach(item => {
19
- const entityReference = item[groupHeadKeyField];
20
- if (getIndexOfCompareItem(openRows, entityReference) !== -1) {
21
- extendedData[entityReference].forEach(extendedItem => {
22
- shownIds.push(extendedItem[keyField]);
23
- });
24
- }
25
- shownIds.push(item[keyField]);
26
- });
27
- return shownIds;
28
- };
29
- const getDeSelectedItems = (selected, selectedOld, compactData, openRows, extendedData, keyField, groupHeadKeyField) => {
30
- const deSelectedIds = selectedOld.filter(item => getIndexOfCompareItem(selected, item) === -1);
31
- const fullDeSelected = [];
32
- const selectedArrays = getSelectedArrays(selected);
33
- const shownIds = getShownIds(compactData, openRows, extendedData, keyField, groupHeadKeyField);
34
- deSelectedIds.forEach(id => {
35
- if (Array.isArray(id)) {
36
- id.forEach(oneId => fullDeSelected.push(oneId));
37
- fullDeSelected.push(id);
38
- }
39
- else if (shownIds.indexOf(id) !== -1) {
40
- selectedArrays.forEach(array => {
41
- if (array.indexOf(id) !== -1) {
42
- fullDeSelected.push(array);
43
- }
44
- });
45
- fullDeSelected.push(id);
46
- }
47
- });
48
- return fullDeSelected;
49
- };
50
- const getCompactArrays = (compactData, keyField) => {
51
- return compactData.map(item => item[keyField]);
52
- };
53
- export const getNewGroupedSelected = (selected, selectedOld, compactData, openRows, extendedData, keyField, groupHeadKeyField) => {
54
- if (isEmpty(selected)) {
55
- return selected;
56
- }
57
- const fullSelected = [];
58
- const deSelected = getDeSelectedItems(selected, selectedOld, compactData, extendedData, openRows, keyField, groupHeadKeyField);
59
- selected.forEach(item => {
60
- if (getIndexOfCompareItem(deSelected, item) === -1 && getIndexOfCompareItem(fullSelected, item) === -1) {
61
- if (Array.isArray(item)) {
62
- item.forEach(id => {
63
- if (fullSelected.indexOf(id) === -1) {
64
- fullSelected.push(id);
65
- }
66
- });
67
- }
68
- fullSelected.push(item);
69
- }
70
- });
71
- if (isEmpty(deSelected)) {
72
- getCompactArrays(compactData, keyField).forEach(fileIds => {
73
- if (!fileIds.some(id => fullSelected.indexOf(id) === -1) &&
74
- getIndexOfCompareItem(fullSelected, fileIds) === -1) {
75
- fullSelected.push(fileIds);
76
- }
77
- });
78
- }
79
- return fullSelected;
80
- };
@@ -1,3 +0,0 @@
1
- export default function _default(node: any, event: any, handler: any, capture: any): {
2
- remove(): void;
3
- };
@@ -1,13 +0,0 @@
1
- /*
2
- * FROM: https://github.com/react-bootstrap/react-overlays/blob/master/src/utils/addEventListener.js
3
- */
4
- import addEventListener from 'dom-helpers/addEventListener';
5
- import removeEventListener from 'dom-helpers/removeEventListener';
6
- export default function (node, event, handler, capture) {
7
- addEventListener(node, event, handler, capture);
8
- return {
9
- remove() {
10
- removeEventListener(node, event, handler, capture);
11
- },
12
- };
13
- }
@@ -1,3 +0,0 @@
1
- export default function addFocusListener(handler: any): {
2
- remove: () => any;
3
- };
@@ -1,21 +0,0 @@
1
- /*
2
- * FROM: https://github.com/react-bootstrap/react-overlays/blob/master/src/utils/addFocusListener.js
3
- *
4
- * Firefox doesn't have a focusin event so using capture is easiest way to get bubbling
5
- * IE8 can't do addEventListener, but does have onfocusin, so we use that in ie8
6
- *
7
- * We only allow one Listener at a time to avoid stack overflows
8
- */
9
- export default function addFocusListener(handler) {
10
- const useFocusin = !document.addEventListener;
11
- let remove;
12
- if (useFocusin) {
13
- document.attachEvent('onfocusin', handler);
14
- remove = () => document.detachEvent('onfocusin', handler);
15
- }
16
- else {
17
- document.addEventListener('focus', handler, true);
18
- remove = () => document.removeEventListener('focus', handler, true);
19
- }
20
- return { remove };
21
- }
@@ -1 +0,0 @@
1
- export default function getOffsetTopWholeScreen(currentTarget: any): any;
@@ -1,6 +0,0 @@
1
- export default function getOffsetTopWholeScreen(currentTarget) {
2
- if (currentTarget.offsetParent) {
3
- return getOffsetTopWholeScreen(currentTarget.offsetParent) + currentTarget.offsetTop;
4
- }
5
- return currentTarget.offsetTop;
6
- }
package/utils/init.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const initDocumentBootstrapping: (document: Document) => void;
2
- export declare const autoInitDocumentBootstrapping: void;
package/utils/init.js DELETED
@@ -1,117 +0,0 @@
1
- import { __awaiter } from "tslib";
2
- import 'lodash/fp/throttle';
3
- import process from 'process';
4
- import { inIframe } from './deviceUtils';
5
- import { getColorScheme, listenForSchemeChange } from './colorScheme';
6
- import versionJson from '../version.json';
7
- const uikitVersion = versionJson.version;
8
- // Note: using import.meta.env.DEV does not work here due to backward compatibility with webpack and jest setups
9
- const isProdEnv = () => process.env.NODE_ENV === 'production' || location.protocol.startsWith('https');
10
- const isTestEnv = () => process.env.NODE_ENV === 'test';
11
- const isLocalhost = () => { var _a; return ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.hostname) === 'localhost'; };
12
- const debug = (message) => !isTestEnv() && console.debug(message);
13
- const log = (message) => !isTestEnv() && console.log(message);
14
- const logStyled = (message) => console.log('%c%s', 'color: #697a8b;', message);
15
- const printPoweredByRIO = () => {
16
- logStyled('- - - - - - - - - - - - - - - - - -');
17
- const message = [`RIO UIKIT Version ${uikitVersion}\nhttps://uikit.developers.rio.cloud`];
18
- if (isProdEnv() && !inIframe()) {
19
- message.push('\n\n You are a Developer? RIO is hiring! | https://rio.cloud/en/career');
20
- }
21
- logStyled(message.join(''));
22
- logStyled('- - - - - - - - - - - - - - - - - -');
23
- };
24
- const checkForReleaseVersion = () => __awaiter(void 0, void 0, void 0, function* () {
25
- if (!isProdEnv()) {
26
- return;
27
- }
28
- const remoteVersionsListUrl = 'https://uikit.developers.rio.cloud/versionsList.json';
29
- try {
30
- const response = yield fetch(remoteVersionsListUrl, { method: 'get' });
31
- // console.log(response);
32
- const data = yield response.json();
33
- if (data.latest_release !== uikitVersion) {
34
- console.log(`🆕 UIKIT version ${data.latest_release} is the latest released version! Your are using ${uikitVersion}`);
35
- }
36
- }
37
- catch (error) {
38
- // console.warn(error);
39
- console.warn(`Failed to fetch versionsList from ${remoteVersionsListUrl}`);
40
- }
41
- });
42
- const checkMatchingUkitVersions = () => {
43
- const cssLinks = [...document.querySelectorAll('link[rel="stylesheet"]')];
44
- cssLinks.forEach(cssLink => {
45
- const { href } = cssLink;
46
- if (href.includes('uikit.developers.rio.cloud')) {
47
- const [, uikitVersionCSS] = new URL(href).pathname.split('/');
48
- if (!href.includes(uikitVersion)) {
49
- console.warn([
50
- 'You are using different UIKIT JS and CSS versions.\n',
51
- `Your current JS version is ${uikitVersion} and `,
52
- `your current CSS version is ${uikitVersionCSS}.\n`,
53
- 'If this is not on purpose, please fix it. Otherwise, this may lead to UI bugs.',
54
- ].join(''));
55
- }
56
- }
57
- else if (href.includes('cdn.rio.cloud/libs/rio-uikit')) {
58
- console.error('You are still using an old "cdn.rio.cloud" css import. This will lead to mayor UI bugs!');
59
- }
60
- });
61
- };
62
- const experimentalLoadUikitCSS = () => {
63
- var _a;
64
- if ((_a = document.title) === null || _a === void 0 ? void 0 : _a.includes('UIKIT Demo')) {
65
- return;
66
- }
67
- // check for existing uikit CSS in document head
68
- debug('Check for UIKIT CSS in document head');
69
- const hasUikitCssLink = !!document.head.querySelector('link[href*="rio-uikit.css"]') ||
70
- !!document.head.querySelector('link[href*="rio-uikit-core.css"]');
71
- const isUikitDemoPage = !!document.head.querySelector('style[data-vite-dev-id*="uikit.less"]');
72
- const hasUikitThemeCssLink = !!document.head.querySelector('link[href*="man-uikit.css"]') ||
73
- !!document.head.querySelector('link[href*="vw-uikit.css"]') ||
74
- !!document.head.querySelector('link[href*="scania-uikit.css"]') ||
75
- !!document.head.querySelector('link[href*="traton-uikit.css"]') ||
76
- !!document.head.querySelector('link[href*="rio-website.css"]');
77
- if (hasUikitCssLink || isUikitDemoPage || hasUikitThemeCssLink) {
78
- debug('Existing UIKIT CSS found in document head');
79
- return;
80
- }
81
- // If nothing is set, add a link tag to fetch the CSS from the UIKIT CDN.
82
- // Note: there is no way to differentiate between core + responsive or full CSS
83
- debug('No UIKIT CSS found. Add link tag to document head');
84
- const link = document.createElement('link');
85
- link.rel = 'stylesheet';
86
- link.type = 'text/css';
87
- link.href = `https://uikit.developers.rio.cloud/${uikitVersion}/rio-uikit.css`;
88
- link.onload = () => console.debug(`Loaded CSS link ${link.href}`);
89
- link.onerror = () => console.error(`Failed to load ${link.href}`);
90
- document.head.appendChild(link);
91
- };
92
- export const initDocumentBootstrapping = (document) => {
93
- if (!document || !document.documentElement) {
94
- return;
95
- }
96
- if (!isTestEnv()) {
97
- console.group('UIKIT');
98
- console.log(`Init document bootstrapping for ${document.location.href}`);
99
- }
100
- experimentalLoadUikitCSS();
101
- const html = document.documentElement;
102
- if (!window.CSS || !window.CSS.supports || !window.CSS.supports('gap: 1px')) {
103
- html.classList.add('css-no-gap');
104
- }
105
- if (inIframe()) {
106
- html.classList.add('window-iframe');
107
- }
108
- if (!isTestEnv()) {
109
- getColorScheme();
110
- listenForSchemeChange();
111
- printPoweredByRIO();
112
- checkForReleaseVersion();
113
- checkMatchingUkitVersions();
114
- console.groupEnd();
115
- }
116
- };
117
- export const autoInitDocumentBootstrapping = (document => initDocumentBootstrapping(document))(document);
@@ -1,3 +0,0 @@
1
- export const BASE_URL: "https://uikit.developers.rio.cloud/";
2
- export function logPropError(errorProps: any[] | undefined, props: any, componentName: any, removeVersion: any, additionalText: any): void;
3
- export default logPropError;
@@ -1,23 +0,0 @@
1
- import has from 'lodash/fp/has';
2
- export const BASE_URL = 'https://uikit.developers.rio.cloud/';
3
- // Logs prop errors.
4
- export const logPropError = (errorProps = [], props, componentName, removeVersion, additionalText) => {
5
- errorProps.forEach(errorProp => {
6
- // Check whether the deprected prop is used by checking the component props
7
- if (has(errorProp.prop, props)) {
8
- /* eslint-disable no-console */
9
- console.error([
10
- 'RIO UIKIT: ',
11
- errorProp.propCaption ? errorProp.propCaption : 'Prop ',
12
- `"${errorProp.prop}"`,
13
- componentName ? ` of "${componentName}"` : '',
14
- ' has been removed',
15
- removeVersion ? ` in v${removeVersion}` : '',
16
- errorProp.replacement ? `. Please use "${errorProp.replacement}" instead` : '',
17
- errorProp.url ? ` as documented in ${BASE_URL}${errorProp.url}. ` : '.',
18
- additionalText ? ` ${additionalText}` : '',
19
- ].join(''));
20
- }
21
- });
22
- };
23
- export default logPropError;
@@ -1 +0,0 @@
1
- export default function _default(componentOrElement: any): any;
@@ -1,8 +0,0 @@
1
- /*
2
- * FROM https://github.com/react-bootstrap/react-overlays/blob/master/src/utils/ownerDocument.js
3
- */
4
- import ReactDOM from 'react-dom';
5
- import ownerDocument from 'dom-helpers/ownerDocument';
6
- export default function (componentOrElement) {
7
- return componentOrElement && ownerDocument(ReactDOM.findDOMNode(componentOrElement));
8
- }