@rio-cloud/rio-uikit 0.16.2-beta.9 → 0.16.2

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 (266) hide show
  1. package/.DS_Store +0 -0
  2. package/AspectRatioPlaceholder.js +2 -0
  3. package/AspectRatioPlaceholder.ts +5 -0
  4. package/Map.d.ts +2 -1
  5. package/ResponsiveColumnStripe.d.ts +5 -0
  6. package/ResponsiveColumnStripe.js +2 -0
  7. package/RuleConnector.d.ts +2 -1
  8. package/RuleContainer.d.ts +3 -2
  9. package/RulesWrapper.d.ts +2 -1
  10. package/components/activity/Activity.js +6 -4
  11. package/components/animatedNumber/AnimatedNumber.js +6 -4
  12. package/components/applicationHeader/AppMenu.js +6 -3
  13. package/components/applicationHeader/AppMenuDropdown.js +6 -2
  14. package/components/applicationHeader/ApplicationHeader.js +16 -8
  15. package/components/applicationHeader/MobileAppMenu.js +8 -4
  16. package/components/applicationLayout/ApplicationLayout.js +8 -8
  17. package/components/applicationLayout/ApplicationLayoutBody.js +6 -3
  18. package/components/applicationLayout/ApplicationLayoutBodyBanner.js +4 -3
  19. package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +6 -4
  20. package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +6 -4
  21. package/components/applicationLayout/ApplicationLayoutHeader.js +9 -7
  22. package/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +25 -0
  23. package/components/assetTree/AssetTree.js +6 -3
  24. package/components/assetTree/TypeCounter.js +6 -4
  25. package/components/dialog/MediaDialog.js +5 -1
  26. package/components/dialog/SaveDialog.js +5 -2
  27. package/components/fade/Fade.js +5 -0
  28. package/components/filepicker/FilePicker.js +1 -1
  29. package/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
  30. package/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
  31. package/components/map/assets/icon_map_settings_construction_active.svg +1 -1
  32. package/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
  33. package/components/map/assets/icon_map_settings_layer_active.svg +1 -1
  34. package/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
  35. package/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
  36. package/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
  37. package/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
  38. package/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
  39. package/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
  40. package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
  41. package/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
  42. package/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
  43. package/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
  44. package/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
  45. package/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
  46. package/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
  47. package/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
  48. package/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
  49. package/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
  50. package/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
  51. package/components/map/components/Map.js +47 -36
  52. package/components/map/components/features/ContextMenu.js +1 -1
  53. package/components/map/components/features/Route.js +1 -9
  54. package/components/map/components/features/basics/Circle.js +11 -6
  55. package/components/map/components/features/basics/MapLayerGroup.js +8 -5
  56. package/components/map/components/features/basics/Polygon.js +6 -5
  57. package/components/map/components/features/basics/Polyline.js +39 -42
  58. package/components/map/components/features/basics/marker/DomMarker.js +9 -3
  59. package/components/map/components/features/basics/marker/Marker.js +101 -121
  60. package/components/map/components/features/basics/marker/TextMarker.js +15 -43
  61. package/components/map/components/features/layers/Layer.js +1 -1
  62. package/components/map/components/features/layers/MarkerLayer.js +7 -4
  63. package/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
  64. package/components/map/components/features/layers/TrafficLayer.js +2 -2
  65. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
  66. package/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
  67. package/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
  68. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
  69. package/components/map/icons/MapIcon.js +46 -66
  70. package/components/map/utils/hooks.js +3 -3
  71. package/components/mapMarker/ClusterMapMarker.js +16 -20
  72. package/components/mapMarker/SingleMapMarker.js +16 -30
  73. package/components/numberControl/NumberControl.js +13 -7
  74. package/components/numberInput/NumberInput.js +30 -12
  75. package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +255 -0
  76. package/components/rules/RuleContainer.js +4 -0
  77. package/components/rules/RulesWrapper.js +3 -3
  78. package/hooks/useDarkMode.js +3 -2
  79. package/hooks/useMutationObserver.js +13 -4
  80. package/hooks/useScrollPosition.js +6 -7
  81. package/index.d.ts +29 -29
  82. package/index.js +4 -0
  83. package/lib/es/AspectRatioPlaceholder.js +13 -0
  84. package/lib/es/AspectRatioPlaceholder.ts +5 -0
  85. package/lib/es/Map.d.ts +2 -1
  86. package/lib/es/ResponsiveColumnStripe.d.ts +5 -0
  87. package/lib/es/ResponsiveColumnStripe.js +13 -0
  88. package/lib/es/RuleConnector.d.ts +2 -1
  89. package/lib/es/RuleContainer.d.ts +3 -2
  90. package/lib/es/RulesWrapper.d.ts +2 -1
  91. package/lib/es/components/activity/Activity.js +9 -4
  92. package/lib/es/components/animatedNumber/AnimatedNumber.js +5 -3
  93. package/lib/es/components/applicationHeader/AppMenu.js +6 -3
  94. package/lib/es/components/applicationHeader/AppMenuDropdown.js +6 -2
  95. package/lib/es/components/applicationHeader/ApplicationHeader.js +15 -7
  96. package/lib/es/components/applicationHeader/MobileAppMenu.js +8 -4
  97. package/lib/es/components/applicationLayout/ApplicationLayout.js +11 -8
  98. package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +5 -2
  99. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +7 -3
  100. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +9 -4
  101. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +9 -4
  102. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +12 -7
  103. package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +33 -0
  104. package/lib/es/components/assetTree/AssetTree.js +5 -2
  105. package/lib/es/components/assetTree/TypeCounter.js +9 -4
  106. package/lib/es/components/dialog/MediaDialog.js +5 -1
  107. package/lib/es/components/dialog/SaveDialog.js +5 -2
  108. package/lib/es/components/fade/Fade.js +5 -0
  109. package/lib/es/components/filepicker/FilePicker.js +1 -1
  110. package/lib/es/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
  111. package/lib/es/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
  112. package/lib/es/components/map/assets/icon_map_settings_construction_active.svg +1 -1
  113. package/lib/es/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
  114. package/lib/es/components/map/assets/icon_map_settings_layer_active.svg +1 -1
  115. package/lib/es/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
  116. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
  117. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
  118. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
  119. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
  120. package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
  121. package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
  122. package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
  123. package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
  124. package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
  125. package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
  126. package/lib/es/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
  127. package/lib/es/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
  128. package/lib/es/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
  129. package/lib/es/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
  130. package/lib/es/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
  131. package/lib/es/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
  132. package/lib/es/components/map/components/Map.js +47 -36
  133. package/lib/es/components/map/components/features/ContextMenu.js +1 -1
  134. package/lib/es/components/map/components/features/Route.js +1 -9
  135. package/lib/es/components/map/components/features/basics/Circle.js +10 -5
  136. package/lib/es/components/map/components/features/basics/MapLayerGroup.js +8 -5
  137. package/lib/es/components/map/components/features/basics/Polygon.js +6 -5
  138. package/lib/es/components/map/components/features/basics/Polyline.js +39 -42
  139. package/lib/es/components/map/components/features/basics/marker/DomMarker.js +8 -3
  140. package/lib/es/components/map/components/features/basics/marker/Marker.js +105 -120
  141. package/lib/es/components/map/components/features/basics/marker/TextMarker.js +15 -42
  142. package/lib/es/components/map/components/features/layers/Layer.js +1 -1
  143. package/lib/es/components/map/components/features/layers/MarkerLayer.js +7 -4
  144. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
  145. package/lib/es/components/map/components/features/layers/TrafficLayer.js +2 -2
  146. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
  147. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
  148. package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
  149. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
  150. package/lib/es/components/map/icons/MapIcon.js +46 -66
  151. package/lib/es/components/map/utils/hooks.js +3 -3
  152. package/lib/es/components/mapMarker/ClusterMapMarker.js +16 -20
  153. package/lib/es/components/mapMarker/SingleMapMarker.js +16 -30
  154. package/lib/es/components/numberControl/NumberControl.js +13 -7
  155. package/lib/es/components/numberInput/NumberInput.js +31 -12
  156. package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +266 -0
  157. package/lib/es/components/rules/RuleContainer.js +4 -0
  158. package/lib/es/components/rules/RulesWrapper.js +3 -3
  159. package/lib/es/hooks/useDarkMode.js +4 -3
  160. package/lib/es/hooks/useMutationObserver.js +15 -4
  161. package/lib/es/hooks/useScrollPosition.js +6 -7
  162. package/lib/es/index.d.ts +29 -29
  163. package/lib/es/index.js +24 -0
  164. package/lib/es/styles/components/Dialog.less +13 -10
  165. package/lib/es/styles/components/MapMarker.less +224 -14
  166. package/lib/es/styles/components/MapSettings.less +45 -29
  167. package/lib/es/styles/components/Notification.less +1 -1
  168. package/lib/es/styles/design/alerts.less +7 -9
  169. package/lib/es/styles/design/aspect-ratio.less +1 -0
  170. package/lib/es/styles/design/blur.less +7 -0
  171. package/lib/es/styles/design/border.less +51 -14
  172. package/lib/es/styles/design/callouts.less +12 -11
  173. package/lib/es/styles/design/colors.less +15 -6
  174. package/lib/es/styles/design/cols.less +19 -18
  175. package/lib/es/styles/design/divide.less +165 -0
  176. package/lib/es/styles/design/divider.less +90 -0
  177. package/lib/es/styles/design/responsive/_imports.less +1 -0
  178. package/lib/es/styles/design/responsive/gap.less +0 -8
  179. package/lib/es/styles/design/responsive/spacing.less +25 -0
  180. package/lib/es/styles/design/text.less +16 -2
  181. package/lib/es/styles/mapping/color-map.less +10 -0
  182. package/lib/es/styles/mapping/spacings-map.less +5 -0
  183. package/lib/es/styles/rio-uikit-core.less +2 -0
  184. package/lib/es/styles/variables/colors.json +6 -0
  185. package/lib/es/styles/variables/concated_css_variables.less +6 -0
  186. package/lib/es/styles/variables/dark_colors.less +7 -0
  187. package/lib/es/styles/variables/dark_css_variables_map.less +7 -0
  188. package/lib/es/styles/variables/light_colors.less +7 -0
  189. package/lib/es/styles/variables/light_css_variables_map.less +7 -0
  190. package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +14 -5
  191. package/lib/es/types.ts +69 -23
  192. package/lib/es/useDarkMode.d.ts +4 -0
  193. package/lib/es/useDarkMode.js +13 -0
  194. package/lib/es/useMutationObserver.d.ts +4 -0
  195. package/lib/es/useMutationObserver.js +13 -0
  196. package/lib/es/version.json +1 -1
  197. package/package.json +1 -1
  198. package/styles/components/Dialog.less +13 -10
  199. package/styles/components/MapMarker.less +224 -14
  200. package/styles/components/MapSettings.less +45 -29
  201. package/styles/components/Notification.less +1 -1
  202. package/styles/design/alerts.less +7 -9
  203. package/styles/design/aspect-ratio.less +1 -0
  204. package/styles/design/blur.less +7 -0
  205. package/styles/design/border.less +51 -14
  206. package/styles/design/callouts.less +12 -11
  207. package/styles/design/colors.less +15 -6
  208. package/styles/design/cols.less +19 -18
  209. package/styles/design/divide.less +165 -0
  210. package/styles/design/divider.less +90 -0
  211. package/styles/design/responsive/_imports.less +1 -0
  212. package/styles/design/responsive/gap.less +0 -8
  213. package/styles/design/responsive/spacing.less +25 -0
  214. package/styles/design/text.less +16 -2
  215. package/styles/mapping/color-map.less +10 -0
  216. package/styles/mapping/spacings-map.less +5 -0
  217. package/styles/rio-uikit-core.less +2 -0
  218. package/styles/variables/colors.json +6 -0
  219. package/styles/variables/concated_css_variables.less +6 -0
  220. package/styles/variables/dark_colors.less +7 -0
  221. package/styles/variables/dark_css_variables_map.less +7 -0
  222. package/styles/variables/light_colors.less +7 -0
  223. package/styles/variables/light_css_variables_map.less +7 -0
  224. package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +15 -6
  225. package/types.ts +69 -23
  226. package/useDarkMode.d.ts +4 -0
  227. package/useDarkMode.js +2 -0
  228. package/useMutationObserver.d.ts +4 -0
  229. package/useMutationObserver.js +2 -0
  230. package/version.json +1 -1
  231. package/components/.DS_Store +0 -0
  232. package/components/map/.DS_Store +0 -0
  233. package/components/map/components/.DS_Store +0 -0
  234. package/components/map/components/features/layers/TruckLayer.js +0 -20
  235. package/components/map/components/features/layers/baselayers/BaseLayer.js +0 -33
  236. package/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -23
  237. package/hooks/useHereMap.ts +0 -23
  238. package/hooks/useScripts.ts +0 -52
  239. package/lib/.DS_Store +0 -0
  240. package/lib/es/.DS_Store +0 -0
  241. package/lib/es/components/.DS_Store +0 -0
  242. package/lib/es/components/map/components/features/layers/TruckLayer.js +0 -28
  243. package/lib/es/components/map/components/features/layers/baselayers/BaseLayer.js +0 -41
  244. package/lib/es/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -30
  245. package/lib/es/hooks/useHereMap.ts +0 -23
  246. package/lib/es/hooks/useScripts.ts +0 -52
  247. package/lib/es/styles/.DS_Store +0 -0
  248. package/lib/es/styles/mixins/_mixins.less +0 -13
  249. package/lib/es/styles/mixins/alerts.less +0 -13
  250. package/lib/es/styles/shared/colors.json +0 -56
  251. package/lib/es/styles/shared/colors.less +0 -73
  252. package/lib/es/styles/shared/screens.less +0 -7
  253. package/lib/es/styles/shared/text.less +0 -23
  254. package/lib/es/styles/variables.less +0 -186
  255. package/lib/es/themes/.DS_Store +0 -0
  256. package/styles/.DS_Store +0 -0
  257. package/styles/mixins/_mixins.less +0 -13
  258. package/styles/mixins/alerts.less +0 -13
  259. package/styles/shared/colors.json +0 -56
  260. package/styles/shared/colors.less +0 -73
  261. package/styles/shared/screens.less +0 -7
  262. package/styles/shared/text.less +0 -23
  263. package/styles/variables.less +0 -186
  264. package/themes/.DS_Store +0 -0
  265. package/themes/Volkswagen/.DS_Store +0 -0
  266. package/themes/Website/.DS_Store +0 -0
@@ -1,5 +1,10 @@
1
1
  // These values must always be kept in sync with those of the demo page
2
2
  // uikit-demo/src/utils/spacings.js
3
+ @spacings--px: {
4
+ -1: -1px;
5
+ -2: -2px;
6
+ -3: -3px;
7
+ }
3
8
 
4
9
  @spacings-px: {
5
10
  1: 1px;
@@ -42,6 +42,8 @@
42
42
  @import (less) './design/aspect-ratio.less';
43
43
  @import (less) './design/colors.less';
44
44
  @import (less) './design/border.less';
45
+ @import (less) './design/blur.less';
46
+ @import (less) './design/divider.less';
45
47
  @import (less) './design/cursors.less';
46
48
  @import (less) './design/custom.less';
47
49
  @import (less) './design/ellipsis.less';
@@ -33,6 +33,12 @@
33
33
  "color-map-marker-geofence": "#5a4876",
34
34
  "color-map-marker-route": "#3690ae",
35
35
  "color-map-marker-text": "#ffffff",
36
+ "color-map-marker-active-night": "#ededed",
37
+ "color-map-marker-asset-night": "#6e757a",
38
+ "color-map-marker-poi-night": "#b23672",
39
+ "color-map-marker-geofence-night": "#79619f",
40
+ "color-map-marker-route-night": "#3b9fc1",
41
+ "color-map-marker-text-night": "#ededed",
36
42
  "color-rating-1": "#d90000",
37
43
  "color-rating-2": "#ff8e3c",
38
44
  "color-rating-3": "#f8c575",
@@ -33,6 +33,12 @@
33
33
  @color-map-marker-geofence-hsl: var(--color-map-marker-geofence-h), var(--color-map-marker-geofence-s), var(--color-map-marker-geofence-l);
34
34
  @color-map-marker-route-hsl: var(--color-map-marker-route-h), var(--color-map-marker-route-s), var(--color-map-marker-route-l);
35
35
  @color-map-marker-text-hsl: var(--color-map-marker-text-h), var(--color-map-marker-text-s), var(--color-map-marker-text-l);
36
+ @color-map-marker-active-night-hsl: var(--color-map-marker-active-night-h), var(--color-map-marker-active-night-s), var(--color-map-marker-active-night-l);
37
+ @color-map-marker-asset-night-hsl: var(--color-map-marker-asset-night-h), var(--color-map-marker-asset-night-s), var(--color-map-marker-asset-night-l);
38
+ @color-map-marker-poi-night-hsl: var(--color-map-marker-poi-night-h), var(--color-map-marker-poi-night-s), var(--color-map-marker-poi-night-l);
39
+ @color-map-marker-geofence-night-hsl: var(--color-map-marker-geofence-night-h), var(--color-map-marker-geofence-night-s), var(--color-map-marker-geofence-night-l);
40
+ @color-map-marker-route-night-hsl: var(--color-map-marker-route-night-h), var(--color-map-marker-route-night-s), var(--color-map-marker-route-night-l);
41
+ @color-map-marker-text-night-hsl: var(--color-map-marker-text-night-h), var(--color-map-marker-text-night-s), var(--color-map-marker-text-night-l);
36
42
  @color-highlight-darkest-hsl: var(--color-highlight-darkest-h), var(--color-highlight-darkest-s), var(--color-highlight-darkest-l);
37
43
  @color-highlight-darker-hsl: var(--color-highlight-darker-h), var(--color-highlight-darker-s), var(--color-highlight-darker-l);
38
44
  @color-highlight-dark-hsl: var(--color-highlight-dark-h), var(--color-highlight-dark-s), var(--color-highlight-dark-l);
@@ -48,6 +48,13 @@
48
48
  @dark-color-map-marker-route: @color-map-marker-route;
49
49
  @dark-color-map-marker-text: @color-map-marker-text;
50
50
 
51
+ @dark-color-map-marker-active-night: @color-map-marker-active-night;
52
+ @dark-color-map-marker-asset-night: @color-map-marker-asset-night;
53
+ @dark-color-map-marker-poi-night: @color-map-marker-poi-night;
54
+ @dark-color-map-marker-geofence-night: @color-map-marker-geofence-night;
55
+ @dark-color-map-marker-route-night: @color-map-marker-route-night;
56
+ @dark-color-map-marker-text-night: @color-map-marker-text-night;
57
+
51
58
  // Color - Rating // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
52
59
  @dark-color-rating-1: @color-rating-1;
53
60
  @dark-color-rating-2: @color-rating-2;
@@ -49,6 +49,13 @@
49
49
  // color-map-marker-route: @dark-color-map-marker-route;
50
50
  // color-map-marker-text: @dark-color-map-marker-text;
51
51
 
52
+ // color-map-marker-active-night: @dark-color-map-marker-active-night;
53
+ // color-map-marker-asset-night: @dark-color-map-marker-asset-night;
54
+ // color-map-marker-poi-night: @dark-color-map-marker-poi-night;
55
+ // color-map-marker-geofence-night: @dark-color-map-marker-geofence-night;
56
+ // color-map-marker-route-night: @dark-color-map-marker-route-night;
57
+ // color-map-marker-text-night: @dark-color-map-marker-text-night;
58
+
52
59
  // Color - Highlight
53
60
  color-highlight-darkest: @dark-color-highlight-darkest;
54
61
  color-highlight-darker: @dark-color-highlight-darker;
@@ -52,6 +52,13 @@
52
52
  @color-map-marker-route: #3690ae;
53
53
  @color-map-marker-text: #ffffff;
54
54
 
55
+ @color-map-marker-active-night: #ededed;
56
+ @color-map-marker-asset-night: #6e757a;
57
+ @color-map-marker-poi-night: #b23672;
58
+ @color-map-marker-geofence-night: #79619f;
59
+ @color-map-marker-route-night: #3b9fc1;
60
+ @color-map-marker-text-night: #ededed;
61
+
55
62
  // Color - Rating
56
63
  @color-rating-1: #d90000;
57
64
  @color-rating-2: #ff8e3c;
@@ -53,6 +53,13 @@
53
53
  color-map-marker-route: @color-map-marker-route;
54
54
  color-map-marker-text: @color-map-marker-text;
55
55
 
56
+ color-map-marker-active-night: @color-map-marker-active-night;
57
+ color-map-marker-asset-night: @color-map-marker-asset-night;
58
+ color-map-marker-poi-night: @color-map-marker-poi-night;
59
+ color-map-marker-geofence-night: @color-map-marker-geofence-night;
60
+ color-map-marker-route-night: @color-map-marker-route-night;
61
+ color-map-marker-text-night: @color-map-marker-text-night;
62
+
56
63
  // Color - Highlight
57
64
  color-highlight-darkest: @color-highlight-darkest;
58
65
  color-highlight-darker: @color-highlight-darker;
@@ -1,24 +1,31 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
1
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import React, { useState, useRef, useEffect, useCallback } from 'react';
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["homeRoute", "className", "appNavigator", "appNavigatorClassName", "appMenuItems", "navItems", "actionBarItems"];
5
+ import React, { useState, useRef, forwardRef, useCallback, useImperativeHandle } from 'react';
3
6
  import PropTypes from 'prop-types';
4
7
  import isEmpty from 'lodash/fp/isEmpty';
5
8
  import classname from 'classnames';
6
9
  import { ApplicationActionBar } from '../../../../components/applicationHeader/ApplicationActionBar';
7
10
  import useResizeObserver from '../../../../hooks/useResizeObserver';
8
11
  import modulePropTypes from './modulePropTypes';
9
- export var VolkswagenApplicationHeader = function VolkswagenApplicationHeader(props) {
12
+ export var VolkswagenApplicationHeader = /*#__PURE__*/forwardRef(function (props, ref) {
10
13
  var homeRoute = props.homeRoute,
11
14
  className = props.className,
12
15
  appNavigator = props.appNavigator,
13
16
  appNavigatorClassName = props.appNavigatorClassName,
14
17
  appMenuItems = props.appMenuItems,
15
18
  navItems = props.navItems,
16
- actionBarItems = props.actionBarItems;
19
+ actionBarItems = props.actionBarItems,
20
+ remainingProps = _objectWithoutProperties(props, _excluded);
17
21
  var actionBarRef = useRef();
18
22
  var _useResizeObserver = useResizeObserver(),
19
23
  _useResizeObserver2 = _slicedToArray(_useResizeObserver, 2),
20
24
  navRef = _useResizeObserver2[0],
21
25
  contentRect = _useResizeObserver2[1].contentRect;
26
+ useImperativeHandle(ref, function () {
27
+ return navRef;
28
+ }, []);
22
29
 
23
30
  // const getContentRect = useCallback(key => contentRect && Math.round(contentRect[key]), [contentRect]);
24
31
  // const containerWidth = getContentRect('width') || 0;
@@ -27,9 +34,11 @@ export var VolkswagenApplicationHeader = function VolkswagenApplicationHeader(pr
27
34
  // const hasActionBarItems = !isEmpty(actionBarItems);
28
35
 
29
36
  var classNames = classname('ApplicationHeader VolkswagenApplicationHeader', 'user-select-none', className && className);
30
- return /*#__PURE__*/React.createElement("nav", {
37
+ return /*#__PURE__*/React.createElement("nav", _extends({}, remainingProps, {
31
38
  className: classNames,
32
39
  ref: navRef
40
+ }), /*#__PURE__*/React.createElement("div", {
41
+ className: "width-100pct"
33
42
  }, /*#__PURE__*/React.createElement("div", {
34
43
  className: "brand"
35
44
  }, /*#__PURE__*/React.createElement("div", {
@@ -47,8 +56,8 @@ export var VolkswagenApplicationHeader = function VolkswagenApplicationHeader(pr
47
56
  })), /*#__PURE__*/React.createElement(ApplicationActionBar, {
48
57
  nodeRef: actionBarRef,
49
58
  items: actionBarItems
50
- }));
51
- };
59
+ })));
60
+ });
52
61
  export default VolkswagenApplicationHeader;
53
62
  VolkswagenApplicationHeader.defaultProps = {
54
63
  homeRoute: '',
package/types.ts CHANGED
@@ -74,8 +74,7 @@ export interface ApplicationHeaderProps {
74
74
  appMenuItems?: ModulePropTypes[];
75
75
  navItems?: ModulePropTypes[];
76
76
  actionBarItems: React.ReactNode[];
77
- onMount?: Function;
78
- onUnmount?: Function;
77
+ onToggleAppMenu?: (isOpen: boolean) => void;
79
78
  className?: string;
80
79
  }
81
80
 
@@ -155,6 +154,13 @@ export interface AreaGradient {
155
154
  color?: string;
156
155
  }
157
156
 
157
+ export interface AspectRatioPlaceholderProps {
158
+ height?: number;
159
+ width?: number;
160
+ className?: string;
161
+ children?: React.ReactNode | string;
162
+ }
163
+
158
164
  export interface AssetTreeProps {
159
165
  fly?: boolean;
160
166
  resizable?: boolean;
@@ -412,6 +418,8 @@ export interface ClusterLayerProps {
412
418
  maxZoom?: string | number;
413
419
  clusterTheme?: ClusterTheme;
414
420
  eventListenerMap: EventListenerMap;
421
+ clusterStrategy?: 'FASTGRID' | 'GRID' | 'DYNAMICGRID';
422
+ eps?: number;
415
423
  }
416
424
 
417
425
  export interface ClusterMapMarkerProps {
@@ -420,8 +428,7 @@ export interface ClusterMapMarkerProps {
420
428
  exceptionCount?: number;
421
429
  active?: boolean;
422
430
  clickable?: boolean;
423
- iconNames?: string;
424
- colorClass?: string;
431
+ iconName?: string;
425
432
  markerColor?: markerColor;
426
433
  }
427
434
 
@@ -832,6 +839,7 @@ export enum MapType {
832
839
  TYPE_FLEET_STYLE = 'FLEET_STYLE',
833
840
  TYPE_SATELLITE = 'SATELLITE',
834
841
  TYPE_TERRAIN = 'TERRAIN',
842
+ TYPE_NIGHT = 'NIGHT',
835
843
  }
836
844
 
837
845
  export interface MapProps {
@@ -857,10 +865,12 @@ export interface MapProps {
857
865
  | MapType.TYPE_FLEET_STYLE
858
866
  | MapType.TYPE_SATELLITE
859
867
  | MapType.TYPE_TERRAIN
868
+ | MapType.TYPE_NIGHT
860
869
  | 'DEFAULT'
861
870
  | 'FLEET_STYLE'
862
871
  | 'SATELLITE'
863
- | 'TERRAIN';
872
+ | 'TERRAIN'
873
+ | 'NIGHT';
864
874
  mapLayer?: string[];
865
875
  showCluster?: boolean;
866
876
  showScaleBar?: boolean;
@@ -872,6 +882,9 @@ export interface MapProps {
872
882
  getApi?: Function;
873
883
  mapSettingsTooltip?: string | React.ReactNode;
874
884
  mapSettings?: React.ReactNode;
885
+ enableWebGL?: boolean;
886
+ enableDevicePixelRatio?: boolean;
887
+ children?: any;
875
888
  }
876
889
 
877
890
  export interface MapBoundingBoxButtonProps {
@@ -965,6 +978,7 @@ export interface MapSettingsTileProps {
965
978
 
966
979
  export interface MapTypeSettingsProps {
967
980
  mapType?: string;
981
+ enableNightMap?: boolean;
968
982
  onMapTypeChange?: () => string;
969
983
  }
970
984
 
@@ -984,6 +998,8 @@ export interface MarkerProps {
984
998
  export interface MarkerLayerProps {
985
999
  simpleTheme?: ClusterTheme;
986
1000
  clusterDissolvable?: boolean;
1001
+ clusterStrategy?: 'FASTGRID' | 'GRID' | 'DYNAMICGRID';
1002
+ eps?: number;
987
1003
  }
988
1004
 
989
1005
  export interface MenuItem {
@@ -1084,6 +1100,7 @@ export interface NumberControlProps {
1084
1100
  value?: number;
1085
1101
  step?: number;
1086
1102
  disabled?: boolean;
1103
+ onChange?: (value: number) => void;
1087
1104
  onValueChanged?: (value: number) => void;
1088
1105
  bsSize?: 'sm' | 'lg';
1089
1106
  className?: string;
@@ -1100,12 +1117,14 @@ export interface NumberInputProps {
1100
1117
  value?: number;
1101
1118
  step?: number;
1102
1119
  disabled?: boolean;
1120
+ onChange?: (value: number) => void;
1103
1121
  onValueChanged?: (value: number) => void;
1104
1122
  bsSize?: 'sm' | 'lg';
1105
1123
  className?: string;
1106
1124
  unit?: string | React.ReactNode;
1107
1125
  inputAddon?: string;
1108
1126
  placeholder?: string;
1127
+ digitPrecision?: number;
1109
1128
  ref?: React.MutableRefObject<object>;
1110
1129
  }
1111
1130
 
@@ -1355,6 +1374,22 @@ export interface RangeSliderProps {
1355
1374
  disabled?: boolean;
1356
1375
  }
1357
1376
 
1377
+ export interface ResponsiveColumnStripeProps {
1378
+ minColumnWith?: number;
1379
+ minColumns?: number;
1380
+ maxColumns?: number;
1381
+ className?: string;
1382
+ buttonClassName?: string;
1383
+ columnsWrapperClassName?: string;
1384
+ onNextClick?: (pageNumber: number, columnsPerPage: number) => void;
1385
+ onPreviousClick?: (pageNumber: number, columnsPerPage: number) => void;
1386
+ stretchLastItems?: boolean;
1387
+ asType?: string;
1388
+ activePage?: number;
1389
+ disableAnimation?: boolean;
1390
+ children?: React.ReactNode;
1391
+ }
1392
+
1358
1393
  export interface ReleaseNotesProps {
1359
1394
  releaseNotes: {
1360
1395
  [key: string]: {
@@ -1459,25 +1494,25 @@ export interface RouteProps {
1459
1494
  export interface RulesWrapperProps {}
1460
1495
 
1461
1496
  export interface RuleContainerProps {
1462
- show: boolean;
1463
- unchecked: boolean;
1464
- background: string;
1465
- borderColor: string;
1466
- hideConnector: boolean;
1467
- customConnector: string | JSX.Element;
1468
- className: string;
1497
+ show?: boolean;
1498
+ unchecked?: boolean;
1499
+ background?: string;
1500
+ borderColor?: string;
1501
+ hideConnector?: boolean;
1502
+ customConnector?: string | JSX.Element;
1503
+ className?: string;
1469
1504
  }
1470
1505
 
1471
1506
  export interface RuleConnectorProps {
1472
- placement: 'start' | 'center' | 'end';
1473
- icon: string;
1474
- hidden: boolean;
1475
- background: string;
1476
- pageBackground: string;
1477
- contentClassName: string;
1478
- hasBorder: boolean;
1479
- borderColor: string;
1480
- className: string;
1507
+ placement?: 'start' | 'center' | 'end';
1508
+ icon?: string;
1509
+ hidden?: boolean;
1510
+ background?: string;
1511
+ pageBackground?: string;
1512
+ contentClassName?: string;
1513
+ hasBorder?: boolean;
1514
+ borderColor?: string;
1515
+ className?: string;
1481
1516
  }
1482
1517
 
1483
1518
  // S --------------------------------------------------------------------------------------------------
@@ -1594,7 +1629,6 @@ export interface SingleMapMarkerProps {
1594
1629
  moving?: boolean;
1595
1630
  clickable?: boolean;
1596
1631
  iconNames?: string[];
1597
- colorClass?: string;
1598
1632
  markerColor?: markerColor;
1599
1633
  }
1600
1634
 
@@ -2200,6 +2234,18 @@ export type UseTimeout = (callback: () => void, delay?: number) => React.Mutable
2200
2234
 
2201
2235
  export type UseWindowResize = (callback: () => void, timeout?: number) => void;
2202
2236
 
2237
+ export type UseDarkMode = () => boolean;
2238
+
2239
+ export type UseMutationObserver = (
2240
+ targetElement: HTMLElement | React.MutableRefObject<object> | null | undefined,
2241
+ callback: MutationCallback | undefined,
2242
+ options?: {
2243
+ attributes?: boolean;
2244
+ childList?: boolean;
2245
+ subtree?: boolean;
2246
+ }
2247
+ ) => void;
2248
+
2203
2249
  export type UseScrollPosition = (
2204
2250
  target: Window | HTMLBodyElement | React.ReactElement | React.MutableRefObject<object> | undefined
2205
- ) => number;
2251
+ ) => number;
@@ -0,0 +1,4 @@
1
+ declare module '@rio-cloud/rio-uikit/useDarkMode' {
2
+ import { UseDarkMode } from './types';
3
+ export default UseDarkMode;
4
+ }
package/useDarkMode.js ADDED
@@ -0,0 +1,2 @@
1
+ import { default as _useDarkMode } from './hooks/useDarkMode';
2
+ export { _useDarkMode as default };
@@ -0,0 +1,4 @@
1
+ declare module '@rio-cloud/rio-uikit/useMutationObserver' {
2
+ import { UseMutationObserver } from './types';
3
+ export default UseMutationObserver;
4
+ }
@@ -0,0 +1,2 @@
1
+ import { default as _useMutationObserver } from './hooks/useMutationObserver';
2
+ export { _useMutationObserver as default };
package/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.2-beta.9"
2
+ "version": "0.16.2"
3
3
  }
Binary file
Binary file
Binary file
@@ -1,20 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- /* eslint-disable camelcase */
3
-
4
- import React from 'react';
5
- import { FORMAT, TILE_SIZE } from '../../constants';
6
- import Layer from './Layer';
7
- var createTruckLayer = function createTruckLayer(api, language) {
8
- return api.platform.getMapTileService({
9
- type: 'base'
10
- }).createTileLayer('truckonlytile', 'normal.day', TILE_SIZE, FORMAT, {
11
- style: 'default',
12
- lg: language
13
- });
14
- };
15
- var TruckLayer = function TruckLayer(props) {
16
- return /*#__PURE__*/React.createElement(Layer, _extends({}, props, {
17
- createLayer: createTruckLayer
18
- }));
19
- };
20
- export default TruckLayer;
@@ -1,33 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import { useState, useEffect } from 'react';
3
- import PropTypes from 'prop-types';
4
- import mapProps from '../../../../utils/proptypes';
5
- import { mapToLongLocale } from '../../../../utils/localization';
6
- var BaseLayer = function BaseLayer(props) {
7
- var api = props.api,
8
- createBaseLayer = props.createBaseLayer,
9
- language = props.language,
10
- showTraffic = props.showTraffic;
11
- var _useState = useState(),
12
- _useState2 = _slicedToArray(_useState, 2),
13
- baseLayer = _useState2[0],
14
- setBaseLayer = _useState2[1];
15
- useEffect(function () {
16
- if (!baseLayer) {
17
- var lang = mapToLongLocale(language);
18
- var newBaseLayer = createBaseLayer(api, lang, showTraffic);
19
- setBaseLayer(newBaseLayer);
20
- setTimeout(function () {
21
- return api.map.setBaseLayer(newBaseLayer);
22
- }, 100);
23
- }
24
- });
25
- return null;
26
- };
27
- BaseLayer.propTypes = {
28
- api: mapProps.api,
29
- createBaseLayer: PropTypes.func.isRequired,
30
- showTraffic: PropTypes.bool,
31
- language: PropTypes.string
32
- };
33
- export default BaseLayer;
@@ -1,23 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import React from 'react';
3
- import { FORMAT, TILE_SIZE } from '../../../constants';
4
- import BaseLayer from './BaseLayer';
5
-
6
- // old Fleetadmin map type = 'normal.day.grey'
7
-
8
- var createDefaultLayer = function createDefaultLayer(api, language, showTraffic) {
9
- var type = showTraffic ? 'traffic' : 'base';
10
- var tileType = showTraffic ? 'traffictile' : 'maptile';
11
- return api.platform.getMapTileService({
12
- type: type
13
- }).createTileLayer(tileType, 'normal.day', TILE_SIZE, FORMAT, {
14
- style: 'alps',
15
- lg: language
16
- });
17
- };
18
- var DefaultLayer = function DefaultLayer(props) {
19
- return /*#__PURE__*/React.createElement(BaseLayer, _extends({}, props, {
20
- createBaseLayer: createDefaultLayer
21
- }));
22
- };
23
- export default DefaultLayer;
@@ -1,23 +0,0 @@
1
- import { useScripts } from './useScripts';
2
-
3
- const DEFAULT_BASE_URL = 'https://js.api.here.com/v3/3.1.20.0/';
4
-
5
- const HERE_EXTERNALS = [
6
- 'mapsjs-core.js',
7
- 'mapsjs-core-legacy.js',
8
- 'mapsjs-service.js',
9
- 'mapsjs-service-legacy.js',
10
- 'mapsjs-mapevents.js',
11
- 'mapsjs-ui.js',
12
- 'mapsjs-clustering.js',
13
- ];
14
-
15
- const getExternals = (scriptList: string[], baseUrl: string): string[] =>
16
- scriptList.map((script) => `${baseUrl}${script}`);
17
-
18
- const sanitizeBaseUrl = (url: string) => (url.endsWith('/') ? url : `${url}/`);
19
-
20
- export const useHereMap = (baseUrl?: string) => {
21
- const hereScripts = getExternals(HERE_EXTERNALS, sanitizeBaseUrl(baseUrl || DEFAULT_BASE_URL));
22
- return useScripts(hereScripts, false);
23
- };
@@ -1,52 +0,0 @@
1
- import { useEffect, useState } from 'react';
2
-
3
- const hasScriptsInHead = (src: string) => document.head.querySelectorAll(`script[src*="${src}"]`).length > 0;
4
-
5
- export const useScripts = (scripts: string[], loadAsync: boolean = false) => {
6
- const [isLoading, setIsLoading] = useState<boolean>(false);
7
- const [hasLoaded, setHasLoaded] = useState<boolean>(false);
8
- const [error, setError] = useState<Error | undefined>();
9
-
10
- const promises = new Set();
11
-
12
- useEffect(() => {
13
- const [firstScript] = scripts;
14
-
15
- if (hasScriptsInHead(firstScript)) {
16
- setHasLoaded(true);
17
- return;
18
- }
19
-
20
- setIsLoading(true);
21
-
22
- scripts.map((external) => {
23
- promises.add(
24
- new Promise<void>((resolve, reject) => {
25
- const script = document.createElement('script');
26
- script.async = loadAsync;
27
- script.src = external;
28
-
29
- script.onload = () => {
30
- console.debug(`loaded ${external}`);
31
- resolve();
32
- };
33
-
34
- script.onerror = () => {
35
- console.debug(`failed to load ${external}`);
36
- setError(new Error(`failed to load ${external}`));
37
- reject();
38
- };
39
-
40
- document.head.appendChild(script);
41
- })
42
- );
43
- });
44
-
45
- Promise.all([...promises]).then(() => {
46
- setIsLoading(false);
47
- setHasLoaded(true);
48
- });
49
- }, []);
50
-
51
- return { isLoading, error, hasLoaded };
52
- };
package/lib/.DS_Store DELETED
Binary file
package/lib/es/.DS_Store DELETED
Binary file
Binary file
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _react = _interopRequireDefault(require("react"));
10
- var _constants = require("../../constants");
11
- var _Layer = _interopRequireDefault(require("./Layer"));
12
- /* eslint-disable camelcase */
13
-
14
- var createTruckLayer = function createTruckLayer(api, language) {
15
- return api.platform.getMapTileService({
16
- type: 'base'
17
- }).createTileLayer('truckonlytile', 'normal.day', _constants.TILE_SIZE, _constants.FORMAT, {
18
- style: 'default',
19
- lg: language
20
- });
21
- };
22
- var TruckLayer = function TruckLayer(props) {
23
- return /*#__PURE__*/_react["default"].createElement(_Layer["default"], (0, _extends2["default"])({}, props, {
24
- createLayer: createTruckLayer
25
- }));
26
- };
27
- var _default = TruckLayer;
28
- exports["default"] = _default;
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
- var _react = require("react");
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
11
- var _proptypes = _interopRequireDefault(require("../../../../utils/proptypes"));
12
- var _localization = require("../../../../utils/localization");
13
- var BaseLayer = function BaseLayer(props) {
14
- var api = props.api,
15
- createBaseLayer = props.createBaseLayer,
16
- language = props.language,
17
- showTraffic = props.showTraffic;
18
- var _useState = (0, _react.useState)(),
19
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
20
- baseLayer = _useState2[0],
21
- setBaseLayer = _useState2[1];
22
- (0, _react.useEffect)(function () {
23
- if (!baseLayer) {
24
- var lang = (0, _localization.mapToLongLocale)(language);
25
- var newBaseLayer = createBaseLayer(api, lang, showTraffic);
26
- setBaseLayer(newBaseLayer);
27
- setTimeout(function () {
28
- return api.map.setBaseLayer(newBaseLayer);
29
- }, 100);
30
- }
31
- });
32
- return null;
33
- };
34
- BaseLayer.propTypes = {
35
- api: _proptypes["default"].api,
36
- createBaseLayer: _propTypes["default"].func.isRequired,
37
- showTraffic: _propTypes["default"].bool,
38
- language: _propTypes["default"].string
39
- };
40
- var _default = BaseLayer;
41
- exports["default"] = _default;