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

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 (283) hide show
  1. package/.DS_Store +0 -0
  2. package/AspectRatioPlaceholder.d.ts +5 -0
  3. package/AspectRatioPlaceholder.js +2 -0
  4. package/AspectRatioPlaceholder.ts +5 -0
  5. package/ConfirmationDialog.d.ts +2 -0
  6. package/Dialog.d.ts +2 -0
  7. package/Map.d.ts +2 -1
  8. package/README.md +11 -1
  9. package/ResponsiveColumnStripe.d.ts +5 -0
  10. package/ResponsiveColumnStripe.js +2 -0
  11. package/RuleConnector.d.ts +2 -1
  12. package/RuleContainer.d.ts +3 -2
  13. package/RulesWrapper.d.ts +2 -1
  14. package/SaveDialog.d.ts +2 -0
  15. package/SimpleDialog.d.ts +2 -0
  16. package/SplitDialog.d.ts +2 -0
  17. package/components/activity/Activity.js +6 -4
  18. package/components/animatedNumber/AnimatedNumber.js +6 -4
  19. package/components/applicationHeader/AppMenu.js +6 -3
  20. package/components/applicationHeader/AppMenuDropdown.js +6 -2
  21. package/components/applicationHeader/ApplicationHeader.js +16 -8
  22. package/components/applicationHeader/MobileAppMenu.js +8 -4
  23. package/components/applicationLayout/ApplicationLayout.js +8 -8
  24. package/components/applicationLayout/ApplicationLayoutBody.js +6 -3
  25. package/components/applicationLayout/ApplicationLayoutBodyBanner.js +4 -3
  26. package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +6 -4
  27. package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +6 -4
  28. package/components/applicationLayout/ApplicationLayoutHeader.js +9 -7
  29. package/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +25 -0
  30. package/components/assetTree/AssetTree.js +6 -3
  31. package/components/assetTree/TypeCounter.js +6 -4
  32. package/components/dialog/Dialog.js +3 -1
  33. package/components/dialog/MediaDialog.js +5 -1
  34. package/components/dialog/SaveDialog.js +5 -2
  35. package/components/fade/Fade.js +5 -0
  36. package/components/filepicker/FilePicker.js +1 -1
  37. package/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
  38. package/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
  39. package/components/map/assets/icon_map_settings_construction_active.svg +1 -1
  40. package/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
  41. package/components/map/assets/icon_map_settings_layer_active.svg +1 -1
  42. package/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
  43. package/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
  44. package/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
  45. package/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
  46. package/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
  47. package/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
  48. package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
  49. package/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
  50. package/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
  51. package/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
  52. package/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
  53. package/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
  54. package/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
  55. package/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
  56. package/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
  57. package/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
  58. package/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
  59. package/components/map/components/Map.js +47 -36
  60. package/components/map/components/features/ContextMenu.js +1 -1
  61. package/components/map/components/features/Route.js +1 -9
  62. package/components/map/components/features/basics/Circle.js +11 -6
  63. package/components/map/components/features/basics/MapLayerGroup.js +8 -5
  64. package/components/map/components/features/basics/Polygon.js +6 -5
  65. package/components/map/components/features/basics/Polyline.js +39 -42
  66. package/components/map/components/features/basics/marker/DomMarker.js +9 -3
  67. package/components/map/components/features/basics/marker/Marker.js +101 -121
  68. package/components/map/components/features/basics/marker/TextMarker.js +15 -43
  69. package/components/map/components/features/layers/Layer.js +1 -1
  70. package/components/map/components/features/layers/MarkerLayer.js +7 -4
  71. package/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
  72. package/components/map/components/features/layers/TrafficLayer.js +2 -2
  73. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
  74. package/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
  75. package/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
  76. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
  77. package/components/map/icons/MapIcon.js +46 -66
  78. package/components/map/utils/hooks.js +3 -3
  79. package/components/mapMarker/ClusterMapMarker.js +16 -20
  80. package/components/mapMarker/SingleMapMarker.js +16 -30
  81. package/components/numberControl/NumberControl.js +13 -7
  82. package/components/numberInput/NumberInput.js +30 -12
  83. package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +255 -0
  84. package/components/rules/RuleContainer.js +4 -0
  85. package/components/rules/RulesWrapper.js +3 -3
  86. package/hooks/useDarkMode.js +3 -2
  87. package/hooks/useMutationObserver.js +13 -4
  88. package/hooks/useScrollPosition.js +6 -7
  89. package/index.d.ts +31 -29
  90. package/index.js +4 -0
  91. package/lib/es/AspectRatioPlaceholder.d.ts +5 -0
  92. package/lib/es/AspectRatioPlaceholder.js +13 -0
  93. package/lib/es/AspectRatioPlaceholder.ts +5 -0
  94. package/lib/es/ConfirmationDialog.d.ts +2 -0
  95. package/lib/es/Dialog.d.ts +2 -0
  96. package/lib/es/Map.d.ts +2 -1
  97. package/lib/es/ResponsiveColumnStripe.d.ts +5 -0
  98. package/lib/es/ResponsiveColumnStripe.js +13 -0
  99. package/lib/es/RuleConnector.d.ts +2 -1
  100. package/lib/es/RuleContainer.d.ts +3 -2
  101. package/lib/es/RulesWrapper.d.ts +2 -1
  102. package/lib/es/SaveDialog.d.ts +2 -0
  103. package/lib/es/SimpleDialog.d.ts +2 -0
  104. package/lib/es/SplitDialog.d.ts +2 -0
  105. package/lib/es/components/activity/Activity.js +9 -4
  106. package/lib/es/components/animatedNumber/AnimatedNumber.js +5 -3
  107. package/lib/es/components/applicationHeader/AppMenu.js +6 -3
  108. package/lib/es/components/applicationHeader/AppMenuDropdown.js +6 -2
  109. package/lib/es/components/applicationHeader/ApplicationHeader.js +15 -7
  110. package/lib/es/components/applicationHeader/MobileAppMenu.js +8 -4
  111. package/lib/es/components/applicationLayout/ApplicationLayout.js +11 -8
  112. package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +5 -2
  113. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +7 -3
  114. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +9 -4
  115. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +9 -4
  116. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +12 -7
  117. package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +33 -0
  118. package/lib/es/components/assetTree/AssetTree.js +5 -2
  119. package/lib/es/components/assetTree/TypeCounter.js +9 -4
  120. package/lib/es/components/dialog/Dialog.js +3 -1
  121. package/lib/es/components/dialog/MediaDialog.js +5 -1
  122. package/lib/es/components/dialog/SaveDialog.js +5 -2
  123. package/lib/es/components/fade/Fade.js +5 -0
  124. package/lib/es/components/filepicker/FilePicker.js +1 -1
  125. package/lib/es/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
  126. package/lib/es/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
  127. package/lib/es/components/map/assets/icon_map_settings_construction_active.svg +1 -1
  128. package/lib/es/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
  129. package/lib/es/components/map/assets/icon_map_settings_layer_active.svg +1 -1
  130. package/lib/es/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
  131. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
  132. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
  133. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
  134. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
  135. package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
  136. package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
  137. package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
  138. package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
  139. package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
  140. package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
  141. package/lib/es/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
  142. package/lib/es/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
  143. package/lib/es/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
  144. package/lib/es/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
  145. package/lib/es/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
  146. package/lib/es/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
  147. package/lib/es/components/map/components/Map.js +47 -36
  148. package/lib/es/components/map/components/features/ContextMenu.js +1 -1
  149. package/lib/es/components/map/components/features/Route.js +1 -9
  150. package/lib/es/components/map/components/features/basics/Circle.js +10 -5
  151. package/lib/es/components/map/components/features/basics/MapLayerGroup.js +8 -5
  152. package/lib/es/components/map/components/features/basics/Polygon.js +6 -5
  153. package/lib/es/components/map/components/features/basics/Polyline.js +39 -42
  154. package/lib/es/components/map/components/features/basics/marker/DomMarker.js +8 -3
  155. package/lib/es/components/map/components/features/basics/marker/Marker.js +105 -120
  156. package/lib/es/components/map/components/features/basics/marker/TextMarker.js +15 -42
  157. package/lib/es/components/map/components/features/layers/Layer.js +1 -1
  158. package/lib/es/components/map/components/features/layers/MarkerLayer.js +7 -4
  159. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
  160. package/lib/es/components/map/components/features/layers/TrafficLayer.js +2 -2
  161. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
  162. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
  163. package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
  164. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
  165. package/lib/es/components/map/icons/MapIcon.js +46 -66
  166. package/lib/es/components/map/utils/hooks.js +3 -3
  167. package/lib/es/components/mapMarker/ClusterMapMarker.js +16 -20
  168. package/lib/es/components/mapMarker/SingleMapMarker.js +16 -30
  169. package/lib/es/components/numberControl/NumberControl.js +13 -7
  170. package/lib/es/components/numberInput/NumberInput.js +31 -12
  171. package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +266 -0
  172. package/lib/es/components/rules/RuleContainer.js +4 -0
  173. package/lib/es/components/rules/RulesWrapper.js +3 -3
  174. package/lib/es/hooks/useDarkMode.js +4 -3
  175. package/lib/es/hooks/useMutationObserver.js +15 -4
  176. package/lib/es/hooks/useScrollPosition.js +6 -7
  177. package/lib/es/index.d.ts +31 -29
  178. package/lib/es/index.js +24 -0
  179. package/lib/es/styles/components/ApplicationHeader.less +2 -0
  180. package/lib/es/styles/components/Dialog.less +41 -23
  181. package/lib/es/styles/components/MapMarker.less +224 -14
  182. package/lib/es/styles/components/MapSettings.less +45 -29
  183. package/lib/es/styles/components/Notification.less +1 -1
  184. package/lib/es/styles/design/alerts.less +7 -9
  185. package/lib/es/styles/design/aspect-ratio.less +1 -0
  186. package/lib/es/styles/design/blur.less +7 -0
  187. package/lib/es/styles/design/border.less +51 -14
  188. package/lib/es/styles/design/callouts.less +12 -11
  189. package/lib/es/styles/design/colors.less +15 -6
  190. package/lib/es/styles/design/cols.less +19 -18
  191. package/lib/es/styles/design/divide.less +165 -0
  192. package/lib/es/styles/design/divider.less +90 -0
  193. package/lib/es/styles/design/responsive/_imports.less +1 -0
  194. package/lib/es/styles/design/responsive/gap.less +0 -8
  195. package/lib/es/styles/design/responsive/spacing.less +25 -0
  196. package/lib/es/styles/design/text.less +16 -2
  197. package/lib/es/styles/mapping/color-map.less +10 -0
  198. package/lib/es/styles/mapping/spacings-map.less +5 -0
  199. package/lib/es/styles/rio-uikit-core.less +2 -0
  200. package/lib/es/styles/variables/colors.json +6 -0
  201. package/lib/es/styles/variables/concated_css_variables.less +6 -0
  202. package/lib/es/styles/variables/dark_colors.less +7 -0
  203. package/lib/es/styles/variables/dark_css_variables_map.less +7 -0
  204. package/lib/es/styles/variables/light_colors.less +7 -0
  205. package/lib/es/styles/variables/light_css_variables_map.less +7 -0
  206. package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +14 -5
  207. package/lib/es/types.ts +71 -25
  208. package/lib/es/useDarkMode.d.ts +4 -0
  209. package/lib/es/useDarkMode.js +13 -0
  210. package/lib/es/useMutationObserver.d.ts +4 -0
  211. package/lib/es/useMutationObserver.js +13 -0
  212. package/lib/es/version.json +1 -1
  213. package/package.json +1 -1
  214. package/styles/components/ApplicationHeader.less +2 -0
  215. package/styles/components/Dialog.less +41 -23
  216. package/styles/components/MapMarker.less +224 -14
  217. package/styles/components/MapSettings.less +45 -29
  218. package/styles/components/Notification.less +1 -1
  219. package/styles/design/alerts.less +7 -9
  220. package/styles/design/aspect-ratio.less +1 -0
  221. package/styles/design/blur.less +7 -0
  222. package/styles/design/border.less +51 -14
  223. package/styles/design/callouts.less +12 -11
  224. package/styles/design/colors.less +15 -6
  225. package/styles/design/cols.less +19 -18
  226. package/styles/design/divide.less +165 -0
  227. package/styles/design/divider.less +90 -0
  228. package/styles/design/responsive/_imports.less +1 -0
  229. package/styles/design/responsive/gap.less +0 -8
  230. package/styles/design/responsive/spacing.less +25 -0
  231. package/styles/design/text.less +16 -2
  232. package/styles/mapping/color-map.less +10 -0
  233. package/styles/mapping/spacings-map.less +5 -0
  234. package/styles/rio-uikit-core.less +2 -0
  235. package/styles/variables/colors.json +6 -0
  236. package/styles/variables/concated_css_variables.less +6 -0
  237. package/styles/variables/dark_colors.less +7 -0
  238. package/styles/variables/dark_css_variables_map.less +7 -0
  239. package/styles/variables/light_colors.less +7 -0
  240. package/styles/variables/light_css_variables_map.less +7 -0
  241. package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +15 -6
  242. package/types.ts +71 -25
  243. package/useDarkMode.d.ts +4 -0
  244. package/useDarkMode.js +2 -0
  245. package/useMutationObserver.d.ts +4 -0
  246. package/useMutationObserver.js +2 -0
  247. package/version.json +1 -1
  248. package/components/.DS_Store +0 -0
  249. package/components/map/.DS_Store +0 -0
  250. package/components/map/components/.DS_Store +0 -0
  251. package/components/map/components/features/layers/TruckLayer.js +0 -20
  252. package/components/map/components/features/layers/baselayers/BaseLayer.js +0 -33
  253. package/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -23
  254. package/hooks/useHereMap.ts +0 -23
  255. package/hooks/useScripts.ts +0 -52
  256. package/lib/.DS_Store +0 -0
  257. package/lib/es/.DS_Store +0 -0
  258. package/lib/es/components/.DS_Store +0 -0
  259. package/lib/es/components/map/components/features/layers/TruckLayer.js +0 -28
  260. package/lib/es/components/map/components/features/layers/baselayers/BaseLayer.js +0 -41
  261. package/lib/es/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -30
  262. package/lib/es/hooks/useHereMap.ts +0 -23
  263. package/lib/es/hooks/useScripts.ts +0 -52
  264. package/lib/es/styles/.DS_Store +0 -0
  265. package/lib/es/styles/mixins/_mixins.less +0 -13
  266. package/lib/es/styles/mixins/alerts.less +0 -13
  267. package/lib/es/styles/shared/colors.json +0 -56
  268. package/lib/es/styles/shared/colors.less +0 -73
  269. package/lib/es/styles/shared/screens.less +0 -7
  270. package/lib/es/styles/shared/text.less +0 -23
  271. package/lib/es/styles/variables.less +0 -186
  272. package/lib/es/themes/.DS_Store +0 -0
  273. package/styles/.DS_Store +0 -0
  274. package/styles/mixins/_mixins.less +0 -13
  275. package/styles/mixins/alerts.less +0 -13
  276. package/styles/shared/colors.json +0 -56
  277. package/styles/shared/colors.less +0 -73
  278. package/styles/shared/screens.less +0 -7
  279. package/styles/shared/text.less +0 -23
  280. package/styles/variables.less +0 -186
  281. package/themes/.DS_Store +0 -0
  282. package/themes/Volkswagen/.DS_Store +0 -0
  283. package/themes/Website/.DS_Store +0 -0
@@ -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;
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports["default"] = exports.VolkswagenApplicationHeader = void 0;
9
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
12
  var _react = _interopRequireWildcard(require("react"));
11
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
12
14
  var _isEmpty = _interopRequireDefault(require("lodash/fp/isEmpty"));
@@ -14,21 +16,26 @@ var _classnames = _interopRequireDefault(require("classnames"));
14
16
  var _ApplicationActionBar = require("../../../../components/applicationHeader/ApplicationActionBar");
15
17
  var _useResizeObserver3 = _interopRequireDefault(require("../../../../hooks/useResizeObserver"));
16
18
  var _modulePropTypes = _interopRequireDefault(require("./modulePropTypes"));
19
+ var _excluded = ["homeRoute", "className", "appNavigator", "appNavigatorClassName", "appMenuItems", "navItems", "actionBarItems"];
17
20
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
21
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
- var VolkswagenApplicationHeader = function VolkswagenApplicationHeader(props) {
22
+ var VolkswagenApplicationHeader = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
20
23
  var homeRoute = props.homeRoute,
21
24
  className = props.className,
22
25
  appNavigator = props.appNavigator,
23
26
  appNavigatorClassName = props.appNavigatorClassName,
24
27
  appMenuItems = props.appMenuItems,
25
28
  navItems = props.navItems,
26
- actionBarItems = props.actionBarItems;
29
+ actionBarItems = props.actionBarItems,
30
+ remainingProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
27
31
  var actionBarRef = (0, _react.useRef)();
28
32
  var _useResizeObserver = (0, _useResizeObserver3["default"])(),
29
33
  _useResizeObserver2 = (0, _slicedToArray2["default"])(_useResizeObserver, 2),
30
34
  navRef = _useResizeObserver2[0],
31
35
  contentRect = _useResizeObserver2[1].contentRect;
36
+ (0, _react.useImperativeHandle)(ref, function () {
37
+ return navRef;
38
+ }, []);
32
39
 
33
40
  // const getContentRect = useCallback(key => contentRect && Math.round(contentRect[key]), [contentRect]);
34
41
  // const containerWidth = getContentRect('width') || 0;
@@ -37,9 +44,11 @@ var VolkswagenApplicationHeader = function VolkswagenApplicationHeader(props) {
37
44
  // const hasActionBarItems = !isEmpty(actionBarItems);
38
45
 
39
46
  var classNames = (0, _classnames["default"])('ApplicationHeader VolkswagenApplicationHeader', 'user-select-none', className && className);
40
- return /*#__PURE__*/_react["default"].createElement("nav", {
47
+ return /*#__PURE__*/_react["default"].createElement("nav", (0, _extends2["default"])({}, remainingProps, {
41
48
  className: classNames,
42
49
  ref: navRef
50
+ }), /*#__PURE__*/_react["default"].createElement("div", {
51
+ className: "width-100pct"
43
52
  }, /*#__PURE__*/_react["default"].createElement("div", {
44
53
  className: "brand"
45
54
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -57,8 +66,8 @@ var VolkswagenApplicationHeader = function VolkswagenApplicationHeader(props) {
57
66
  })), /*#__PURE__*/_react["default"].createElement(_ApplicationActionBar.ApplicationActionBar, {
58
67
  nodeRef: actionBarRef,
59
68
  items: actionBarItems
60
- }));
61
- };
69
+ })));
70
+ });
62
71
  exports.VolkswagenApplicationHeader = VolkswagenApplicationHeader;
63
72
  var _default = VolkswagenApplicationHeader;
64
73
  exports["default"] = _default;
package/lib/es/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;
@@ -271,7 +277,7 @@ export interface BarChartProps {
271
277
 
272
278
  export type bsStyle = 'default' | 'primary' | 'info' | 'warning' | 'danger' | 'success' | 'link';
273
279
 
274
- export type bsSizeDialog = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'fullscreen';
280
+ export type bsSizeDialog = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'fullwidth' | 'fullheight' | 'fullscreen';
275
281
 
276
282
  export type bsSize = 'xs' | 'sm' | 'lg';
277
283
 
@@ -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 --------------------------------------------------------------------------------------------------
@@ -1516,7 +1551,7 @@ export interface SelectProps {
1516
1551
  useClear?: boolean;
1517
1552
  noItemMessage?: string | React.ReactNode;
1518
1553
  showSelectedItemIcon?: boolean;
1519
- showUnselectedIdemIcons?: boolean;
1554
+ showUnselectedItemIcons?: boolean;
1520
1555
  value?: string[] | undefined;
1521
1556
  className?: string;
1522
1557
  btnClassName?: string;
@@ -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/lib/es/useDarkMode' {
2
+ import { UseDarkMode } from './types';
3
+ export default UseDarkMode;
4
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "default", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _useDarkMode2["default"];
11
+ }
12
+ });
13
+ var _useDarkMode2 = _interopRequireDefault(require("./hooks/useDarkMode"));
@@ -0,0 +1,4 @@
1
+ declare module '@rio-cloud/rio-uikit/lib/es/useMutationObserver' {
2
+ import { UseMutationObserver } from './types';
3
+ export default UseMutationObserver;
4
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "default", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _useMutationObserver2["default"];
11
+ }
12
+ });
13
+ var _useMutationObserver2 = _interopRequireDefault(require("./hooks/useMutationObserver"));
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.2-beta.9"
2
+ "version": "0.16.3-beta.1"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rio-cloud/rio-uikit",
3
- "version": "0.16.2-beta.9",
3
+ "version": "0.16.3-beta.1",
4
4
  "description": "The RIO UIKIT component library",
5
5
  "repository": "https://collaboration.msi.audi.com/stash/projects/RIOFRONT/repos/uikit-web/browse",
6
6
  "scripts": {
@@ -456,6 +456,8 @@
456
456
  }
457
457
 
458
458
  .CollapsedDropdown {
459
+ display: block;
460
+
459
461
  > .dropdown-menu {
460
462
  left: auto;
461
463
  right: 0;
@@ -1,6 +1,7 @@
1
1
  @modal-outer-margin: 30px;
2
2
  @modal-inner-padding: 20px;
3
- @modal-title-padding: 15px;
3
+ @modal-title-y-padding: 15px;
4
+ @modal-title-x-padding: 20px;
4
5
  @modal-content-bg: var(--color-white);
5
6
  @modal-content-border-color: var(--gray-light);
6
7
  @modal-backdrop-bg: var(--always-color-black);
@@ -40,6 +41,7 @@ body {
40
41
  top: 0;
41
42
  width: 100% !important;
42
43
  z-index: @zindex-modal;
44
+ backdrop-filter: blur(1px);
43
45
 
44
46
  // When fading in the modal, animate it to slide down
45
47
  &.fade .modal-dialog {
@@ -91,11 +93,6 @@ body {
91
93
  }
92
94
  }
93
95
  }
94
-
95
- // because of overflow :after styling
96
- &:after {
97
- display: none !important;
98
- }
99
96
  }
100
97
 
101
98
  .modal-footer:before {
@@ -138,7 +135,6 @@ body {
138
135
  border-bottom: 1px solid @modal-header-border-color;
139
136
  display: flex;
140
137
  justify-content: space-between;
141
- padding: @modal-title-padding;
142
138
  padding: 0;
143
139
  position: relative;
144
140
  z-index: 1;
@@ -150,15 +146,16 @@ body {
150
146
  float: left;
151
147
  font-weight: @font-light;
152
148
  justify-content: center;
153
- padding: 15px;
149
+ padding: @modal-title-y-padding @modal-title-x-padding;
154
150
  width: calc(~'100% - 60px');
155
151
  word-break: break-word;
156
152
 
157
153
  .modal-header-title {
158
154
  display: flex;
159
- order: 1;
155
+ flex-wrap: wrap;
160
156
  font-size: @font-size-xl - 2;
161
157
  line-height: @font-size-xl - 2;
158
+ order: 1;
162
159
  }
163
160
 
164
161
  .modal-header-subtitle {
@@ -254,16 +251,12 @@ body {
254
251
  width: @modal-xl;
255
252
  }
256
253
 
257
- &.modal-full {
258
- width: calc(~'100vw - @{modal-outer-margin} * 2');
259
- }
260
-
261
- &.modal-fullscreen {
254
+ &.modal-fullscreen, &.modal-full, &.modal-full-width {
262
255
  width: calc(~'100vw - @{modal-outer-margin} * 2');
263
256
  }
264
257
  }
265
258
 
266
- &.modal-fullscreen {
259
+ &.modal-fullscreen, &.modal-full-height {
267
260
  .modal-content {
268
261
  height: calc(~'100vh - (@{modal-outer-margin} * 2)'); // --vh fallback
269
262
  height: calc(~'var(--vh, 1vh) * 100 - (@{modal-outer-margin} * 2)');
@@ -278,6 +271,7 @@ body {
278
271
  .modal-body {
279
272
  flex: 1 1 0; // instead "auto" we 0 for safari
280
273
  position: relative;
274
+ overflow-y: auto;
281
275
 
282
276
  .iframe-wrapper {
283
277
  overflow: hidden;
@@ -306,10 +300,10 @@ body {
306
300
  .modal-body {
307
301
  overflow-y: auto;
308
302
 
309
- &:after {
310
- content: '';
311
- display: block;
312
- height: 30px;
303
+ &.no-overflow-gradient {
304
+ + .modal-footer:before {
305
+ display: none;
306
+ }
313
307
  }
314
308
  }
315
309
 
@@ -420,7 +414,8 @@ body {
420
414
 
421
415
  .modal-lg &,
422
416
  .modal-xl &,
423
- .modal-full & {
417
+ .modal-full &,
418
+ .modal-full-width & {
424
419
  @media (min-width: @splitWrapperBreakpoint) {
425
420
  width: 20%;
426
421
  }
@@ -453,7 +448,8 @@ body {
453
448
 
454
449
  .modal-lg &,
455
450
  .modal-xl &,
456
- .modal-full & {
451
+ .modal-full &,
452
+ .modal-full-width & {
457
453
  @media (min-width: @splitWrapperBreakpoint) {
458
454
  max-width: 80%;
459
455
  }
@@ -461,7 +457,7 @@ body {
461
457
  }
462
458
  }
463
459
 
464
- /* Animation classes for dialogs triggered by "react-transition-group" component */
460
+ // Animation classes for dialogs triggered by "react-transition-group" component
465
461
  .modal-enter {
466
462
  .modal-content {
467
463
  display: block;
@@ -498,4 +494,26 @@ body {
498
494
  .modal-backdrop {
499
495
  opacity: 0;
500
496
  }
501
- }
497
+ }
498
+
499
+ // modal-body atomic vh classes for iframes with unknown height
500
+ // .modal-body {
501
+ // &.height-100vh {
502
+ // height: calc(~"var(--vh, 1vh) * 100 - 190px") !important;
503
+
504
+ // @media (max-width: @modal-sm) {
505
+ // height: calc(~"var(--vh, 1vh) * 100 - 170px") !important;
506
+ // }
507
+ // }
508
+
509
+ // // no modal-footer version
510
+ // &:last-child {
511
+ // &.height-100vh {
512
+ // height: calc(~"var(--vh, 1vh) * 100 - 120px") !important;
513
+
514
+ // @media (max-width: @modal-sm) {
515
+ // height: calc(~"var(--vh, 1vh) * 100 - 90px") !important;
516
+ // }
517
+ // }
518
+ // }
519
+ // }