@rio-cloud/rio-uikit 0.16.2-beta.8 → 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 (270) 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/clearableInput/ClearableInput.js +2 -1
  26. package/components/datepicker/DatePicker.js +8 -4
  27. package/components/dialog/MediaDialog.js +5 -1
  28. package/components/dialog/SaveDialog.js +5 -2
  29. package/components/fade/Fade.js +5 -0
  30. package/components/filepicker/FilePicker.js +1 -1
  31. package/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
  32. package/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
  33. package/components/map/assets/icon_map_settings_construction_active.svg +1 -1
  34. package/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
  35. package/components/map/assets/icon_map_settings_layer_active.svg +1 -1
  36. package/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
  37. package/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
  38. package/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
  39. package/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
  40. package/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
  41. package/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
  42. package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
  43. package/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
  44. package/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
  45. package/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
  46. package/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
  47. package/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
  48. package/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
  49. package/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
  50. package/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
  51. package/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
  52. package/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
  53. package/components/map/components/Map.js +47 -36
  54. package/components/map/components/features/ContextMenu.js +1 -1
  55. package/components/map/components/features/Route.js +1 -10
  56. package/components/map/components/features/basics/Circle.js +11 -6
  57. package/components/map/components/features/basics/MapLayerGroup.js +8 -5
  58. package/components/map/components/features/basics/Polygon.js +6 -5
  59. package/components/map/components/features/basics/Polyline.js +42 -40
  60. package/components/map/components/features/basics/marker/DomMarker.js +9 -3
  61. package/components/map/components/features/basics/marker/Marker.js +101 -121
  62. package/components/map/components/features/basics/marker/TextMarker.js +15 -43
  63. package/components/map/components/features/layers/Layer.js +1 -1
  64. package/components/map/components/features/layers/MarkerLayer.js +7 -4
  65. package/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
  66. package/components/map/components/features/layers/TrafficLayer.js +2 -2
  67. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
  68. package/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
  69. package/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
  70. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
  71. package/components/map/icons/MapIcon.js +46 -66
  72. package/components/map/utils/hooks.js +3 -3
  73. package/components/mapMarker/ClusterMapMarker.js +16 -20
  74. package/components/mapMarker/SingleMapMarker.js +16 -30
  75. package/components/numberControl/NumberControl.js +13 -7
  76. package/components/numberInput/NumberInput.js +30 -12
  77. package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +255 -0
  78. package/components/rules/RuleContainer.js +4 -0
  79. package/components/rules/RulesWrapper.js +3 -3
  80. package/hooks/useDarkMode.js +3 -2
  81. package/hooks/useMutationObserver.js +13 -4
  82. package/hooks/useScrollPosition.js +6 -7
  83. package/index.d.ts +29 -29
  84. package/index.js +4 -0
  85. package/lib/es/AspectRatioPlaceholder.js +13 -0
  86. package/lib/es/AspectRatioPlaceholder.ts +5 -0
  87. package/lib/es/Map.d.ts +2 -1
  88. package/lib/es/ResponsiveColumnStripe.d.ts +5 -0
  89. package/lib/es/ResponsiveColumnStripe.js +13 -0
  90. package/lib/es/RuleConnector.d.ts +2 -1
  91. package/lib/es/RuleContainer.d.ts +3 -2
  92. package/lib/es/RulesWrapper.d.ts +2 -1
  93. package/lib/es/components/activity/Activity.js +9 -4
  94. package/lib/es/components/animatedNumber/AnimatedNumber.js +5 -3
  95. package/lib/es/components/applicationHeader/AppMenu.js +6 -3
  96. package/lib/es/components/applicationHeader/AppMenuDropdown.js +6 -2
  97. package/lib/es/components/applicationHeader/ApplicationHeader.js +15 -7
  98. package/lib/es/components/applicationHeader/MobileAppMenu.js +8 -4
  99. package/lib/es/components/applicationLayout/ApplicationLayout.js +11 -8
  100. package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +5 -2
  101. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +7 -3
  102. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +9 -4
  103. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +9 -4
  104. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +12 -7
  105. package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +33 -0
  106. package/lib/es/components/assetTree/AssetTree.js +5 -2
  107. package/lib/es/components/assetTree/TypeCounter.js +9 -4
  108. package/lib/es/components/clearableInput/ClearableInput.js +2 -1
  109. package/lib/es/components/datepicker/DatePicker.js +7 -3
  110. package/lib/es/components/dialog/MediaDialog.js +5 -1
  111. package/lib/es/components/dialog/SaveDialog.js +5 -2
  112. package/lib/es/components/fade/Fade.js +5 -0
  113. package/lib/es/components/filepicker/FilePicker.js +1 -1
  114. package/lib/es/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
  115. package/lib/es/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
  116. package/lib/es/components/map/assets/icon_map_settings_construction_active.svg +1 -1
  117. package/lib/es/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
  118. package/lib/es/components/map/assets/icon_map_settings_layer_active.svg +1 -1
  119. package/lib/es/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
  120. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
  121. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
  122. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
  123. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
  124. package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
  125. package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
  126. package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
  127. package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
  128. package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
  129. package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
  130. package/lib/es/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
  131. package/lib/es/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
  132. package/lib/es/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
  133. package/lib/es/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
  134. package/lib/es/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
  135. package/lib/es/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
  136. package/lib/es/components/map/components/Map.js +47 -36
  137. package/lib/es/components/map/components/features/ContextMenu.js +1 -1
  138. package/lib/es/components/map/components/features/Route.js +1 -10
  139. package/lib/es/components/map/components/features/basics/Circle.js +10 -5
  140. package/lib/es/components/map/components/features/basics/MapLayerGroup.js +8 -5
  141. package/lib/es/components/map/components/features/basics/Polygon.js +6 -5
  142. package/lib/es/components/map/components/features/basics/Polyline.js +42 -42
  143. package/lib/es/components/map/components/features/basics/marker/DomMarker.js +8 -3
  144. package/lib/es/components/map/components/features/basics/marker/Marker.js +105 -120
  145. package/lib/es/components/map/components/features/basics/marker/TextMarker.js +15 -42
  146. package/lib/es/components/map/components/features/layers/Layer.js +1 -1
  147. package/lib/es/components/map/components/features/layers/MarkerLayer.js +7 -4
  148. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
  149. package/lib/es/components/map/components/features/layers/TrafficLayer.js +2 -2
  150. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
  151. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
  152. package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
  153. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
  154. package/lib/es/components/map/icons/MapIcon.js +46 -66
  155. package/lib/es/components/map/utils/hooks.js +3 -3
  156. package/lib/es/components/mapMarker/ClusterMapMarker.js +16 -20
  157. package/lib/es/components/mapMarker/SingleMapMarker.js +16 -30
  158. package/lib/es/components/numberControl/NumberControl.js +13 -7
  159. package/lib/es/components/numberInput/NumberInput.js +31 -12
  160. package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +266 -0
  161. package/lib/es/components/rules/RuleContainer.js +4 -0
  162. package/lib/es/components/rules/RulesWrapper.js +3 -3
  163. package/lib/es/hooks/useDarkMode.js +4 -3
  164. package/lib/es/hooks/useMutationObserver.js +15 -4
  165. package/lib/es/hooks/useScrollPosition.js +6 -7
  166. package/lib/es/index.d.ts +29 -29
  167. package/lib/es/index.js +24 -0
  168. package/lib/es/styles/components/Dialog.less +13 -10
  169. package/lib/es/styles/components/MapMarker.less +224 -14
  170. package/lib/es/styles/components/MapSettings.less +45 -29
  171. package/lib/es/styles/components/Notification.less +1 -1
  172. package/lib/es/styles/design/alerts.less +7 -9
  173. package/lib/es/styles/design/aspect-ratio.less +1 -0
  174. package/lib/es/styles/design/blur.less +7 -0
  175. package/lib/es/styles/design/border.less +51 -14
  176. package/lib/es/styles/design/callouts.less +12 -11
  177. package/lib/es/styles/design/colors.less +15 -6
  178. package/lib/es/styles/design/cols.less +19 -18
  179. package/lib/es/styles/design/divide.less +165 -0
  180. package/lib/es/styles/design/divider.less +90 -0
  181. package/lib/es/styles/design/responsive/_imports.less +1 -0
  182. package/lib/es/styles/design/responsive/gap.less +0 -8
  183. package/lib/es/styles/design/responsive/spacing.less +25 -0
  184. package/lib/es/styles/design/text.less +16 -2
  185. package/lib/es/styles/mapping/color-map.less +10 -0
  186. package/lib/es/styles/mapping/spacings-map.less +5 -0
  187. package/lib/es/styles/rio-uikit-core.less +2 -0
  188. package/lib/es/styles/variables/colors.json +6 -0
  189. package/lib/es/styles/variables/concated_css_variables.less +6 -0
  190. package/lib/es/styles/variables/dark_colors.less +7 -0
  191. package/lib/es/styles/variables/dark_css_variables_map.less +7 -0
  192. package/lib/es/styles/variables/light_colors.less +7 -0
  193. package/lib/es/styles/variables/light_css_variables_map.less +7 -0
  194. package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +14 -5
  195. package/lib/es/types.ts +69 -23
  196. package/lib/es/useDarkMode.d.ts +4 -0
  197. package/lib/es/useDarkMode.js +13 -0
  198. package/lib/es/useMutationObserver.d.ts +4 -0
  199. package/lib/es/useMutationObserver.js +13 -0
  200. package/lib/es/version.json +1 -1
  201. package/package.json +2 -2
  202. package/styles/components/Dialog.less +13 -10
  203. package/styles/components/MapMarker.less +224 -14
  204. package/styles/components/MapSettings.less +45 -29
  205. package/styles/components/Notification.less +1 -1
  206. package/styles/design/alerts.less +7 -9
  207. package/styles/design/aspect-ratio.less +1 -0
  208. package/styles/design/blur.less +7 -0
  209. package/styles/design/border.less +51 -14
  210. package/styles/design/callouts.less +12 -11
  211. package/styles/design/colors.less +15 -6
  212. package/styles/design/cols.less +19 -18
  213. package/styles/design/divide.less +165 -0
  214. package/styles/design/divider.less +90 -0
  215. package/styles/design/responsive/_imports.less +1 -0
  216. package/styles/design/responsive/gap.less +0 -8
  217. package/styles/design/responsive/spacing.less +25 -0
  218. package/styles/design/text.less +16 -2
  219. package/styles/mapping/color-map.less +10 -0
  220. package/styles/mapping/spacings-map.less +5 -0
  221. package/styles/rio-uikit-core.less +2 -0
  222. package/styles/variables/colors.json +6 -0
  223. package/styles/variables/concated_css_variables.less +6 -0
  224. package/styles/variables/dark_colors.less +7 -0
  225. package/styles/variables/dark_css_variables_map.less +7 -0
  226. package/styles/variables/light_colors.less +7 -0
  227. package/styles/variables/light_css_variables_map.less +7 -0
  228. package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +15 -6
  229. package/types.ts +69 -23
  230. package/useDarkMode.d.ts +4 -0
  231. package/useDarkMode.js +2 -0
  232. package/useMutationObserver.d.ts +4 -0
  233. package/useMutationObserver.js +2 -0
  234. package/version.json +1 -1
  235. package/components/.DS_Store +0 -0
  236. package/components/map/.DS_Store +0 -0
  237. package/components/map/components/.DS_Store +0 -0
  238. package/components/map/components/features/layers/TruckLayer.js +0 -20
  239. package/components/map/components/features/layers/baselayers/BaseLayer.js +0 -33
  240. package/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -23
  241. package/hooks/useHereMap.ts +0 -23
  242. package/hooks/useScripts.ts +0 -52
  243. package/lib/.DS_Store +0 -0
  244. package/lib/es/.DS_Store +0 -0
  245. package/lib/es/components/.DS_Store +0 -0
  246. package/lib/es/components/map/components/features/layers/TruckLayer.js +0 -28
  247. package/lib/es/components/map/components/features/layers/baselayers/BaseLayer.js +0 -41
  248. package/lib/es/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -30
  249. package/lib/es/hooks/useHereMap.ts +0 -23
  250. package/lib/es/hooks/useScripts.ts +0 -52
  251. package/lib/es/styles/.DS_Store +0 -0
  252. package/lib/es/styles/mixins/_mixins.less +0 -13
  253. package/lib/es/styles/mixins/alerts.less +0 -13
  254. package/lib/es/styles/shared/colors.json +0 -56
  255. package/lib/es/styles/shared/colors.less +0 -73
  256. package/lib/es/styles/shared/screens.less +0 -7
  257. package/lib/es/styles/shared/text.less +0 -23
  258. package/lib/es/styles/variables.less +0 -186
  259. package/lib/es/themes/.DS_Store +0 -0
  260. package/styles/.DS_Store +0 -0
  261. package/styles/mixins/_mixins.less +0 -13
  262. package/styles/mixins/alerts.less +0 -13
  263. package/styles/shared/colors.json +0 -56
  264. package/styles/shared/colors.less +0 -73
  265. package/styles/shared/screens.less +0 -7
  266. package/styles/shared/text.less +0 -23
  267. package/styles/variables.less +0 -186
  268. package/themes/.DS_Store +0 -0
  269. package/themes/Volkswagen/.DS_Store +0 -0
  270. package/themes/Website/.DS_Store +0 -0
package/.DS_Store CHANGED
Binary file
@@ -0,0 +1,2 @@
1
+ import { default as _AspectRatioPlaceholder } from './components/aspectRatioPlaceholder/AspectRatioPlaceholder';
2
+ export { _AspectRatioPlaceholder as default };
@@ -0,0 +1,5 @@
1
+ declare module '@rio-cloud/rio-uikit/lib/es/AspectRatioPlaceholder' {
2
+ import React from 'react';
3
+ import { AspectRatioPlaceholderProps } from './types';
4
+ export default class AspectRatioPlaceholder extends React.Component<AspectRatioPlaceholderProps> {}
5
+ }
package/Map.d.ts CHANGED
@@ -3,9 +3,10 @@ import { MapProps } from './types';
3
3
 
4
4
  export { BoundingBox } from './types';
5
5
 
6
- export default class Map extends React.Component<MapProps> {
6
+ export default class Map extends React.Component<React.PropsWithChildren<MapProps>> {
7
7
  static TYPE_DEFAULT = 'DEFAULT';
8
8
  static TYPE_FLEET_STYLE = 'FLEET_STYLE';
9
9
  static TYPE_SATELLITE = 'SATELLITE';
10
10
  static TYPE_TERRAIN = 'TERRAIN';
11
+ static TYPE_NIGHT = 'NIGHT';
11
12
  }
@@ -0,0 +1,5 @@
1
+ declare module '@rio-cloud/rio-uikit/ResponsiveColumnStripe' {
2
+ import React from 'react';
3
+ import { ResponsiveColumnStripeProps } from './types';
4
+ export default class ResponsiveColumnStripe extends React.Component<ResponsiveColumnStripeProps> {}
5
+ }
@@ -0,0 +1,2 @@
1
+ import { default as _ResponsiveColumnStripe } from './components/responsiveColumnStripe/ResponsiveColumnStripe';
2
+ export { _ResponsiveColumnStripe as default };
@@ -1,7 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/RuleConnector' {
2
2
  import React from 'react';
3
3
  import { RuleConnectorProps } from './types';
4
- export default class RuleConnector extends React.Component<RuleConnectorProps> {
4
+
5
+ export default class RuleConnector extends React.Component<React.PropsWithChildren<RuleConnectorProps>> {
5
6
  static START = 'start';
6
7
  static CENTER = 'center';
7
8
  static END = 'end';
@@ -1,5 +1,6 @@
1
1
  declare module '@rio-cloud/rio-uikit/RuleContainer' {
2
2
  import React from 'react';
3
3
  import { RuleContainerProps } from './types';
4
- export default class RuleContainer extends React.Component<RuleContainerProps> {}
5
- }
4
+
5
+ export default class RuleContainer extends React.Component<React.PropsWithChildren<RuleContainerProps>> {}
6
+ }
package/RulesWrapper.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  declare module '@rio-cloud/rio-uikit/RulesWrapper' {
2
2
  import React from 'react';
3
3
  import { RulesWrapperProps } from './types';
4
+
4
5
  export default class RulesWrapper extends React.Component<RulesWrapperProps> {}
5
- }
6
+ }
@@ -3,10 +3,10 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _Activity$icons;
5
5
  var _excluded = ["activity", "duration", "isOutdated", "bsSize", "onClick", "className"];
6
- import React from 'react';
6
+ import React, { forwardRef } from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import classNames from 'classnames';
9
- var Activity = function Activity(props) {
9
+ var Activity = /*#__PURE__*/forwardRef(function (props, ref) {
10
10
  var activity = props.activity,
11
11
  duration = props.duration,
12
12
  isOutdated = props.isOutdated,
@@ -19,7 +19,9 @@ var Activity = function Activity(props) {
19
19
  }
20
20
  var icon = Activity.icons[activity];
21
21
  var wrapperClassNames = classNames('activity', "activity-".concat(activity), isOutdated && 'opacity-50', bsSize && "activity-".concat(bsSize), className && className);
22
- return /*#__PURE__*/React.createElement("div", _extends({}, remainingProps, {
22
+ return /*#__PURE__*/React.createElement("div", _extends({
23
+ ref: ref
24
+ }, remainingProps, {
23
25
  className: wrapperClassNames,
24
26
  onClick: onClick
25
27
  }), /*#__PURE__*/React.createElement("span", {
@@ -29,7 +31,7 @@ var Activity = function Activity(props) {
29
31
  })), duration && /*#__PURE__*/React.createElement("span", {
30
32
  className: "activity-text"
31
33
  }, duration));
32
- };
34
+ });
33
35
  Activity.AVAILABLE = 'available';
34
36
  Activity.DRIVING = 'driving';
35
37
  Activity.RESTING = 'resting';
@@ -2,11 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["start", "end", "prefix", "unit", "speed", "decreasing", "onEnd", "className"];
5
- import React, { useState, useEffect } from 'react';
5
+ import React, { useState, useEffect, forwardRef } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import useInterval from '../../hooks/useInterval';
8
8
  var TIMER = 10;
9
- export var AnimatedNumber = function AnimatedNumber(props) {
9
+ export var AnimatedNumber = /*#__PURE__*/forwardRef(function (props, ref) {
10
10
  var start = props.start,
11
11
  end = props.end,
12
12
  prefix = props.prefix,
@@ -34,10 +34,12 @@ export var AnimatedNumber = function AnimatedNumber(props) {
34
34
  onEnd();
35
35
  }
36
36
  });
37
- return /*#__PURE__*/React.createElement("span", _extends({}, remainingProps, {
37
+ return /*#__PURE__*/React.createElement("span", _extends({
38
+ ref: ref
39
+ }, remainingProps, {
38
40
  className: className
39
41
  }), "".concat(prefix).concat(value).concat(unit));
40
- };
42
+ });
41
43
  AnimatedNumber.defaultProps = {
42
44
  prefix: '',
43
45
  unit: '',
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["label", "appMenuItems", "appNavigatorClassName", "appNavigator"];
3
+ var _excluded = ["label", "appMenuItems", "appNavigatorClassName", "appNavigator", "onToggleAppMenu"];
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classname from 'classnames';
@@ -33,6 +33,7 @@ export var AppMenu = function AppMenu(props) {
33
33
  appMenuItems = props.appMenuItems,
34
34
  appNavigatorClassName = props.appNavigatorClassName,
35
35
  appNavigator = props.appNavigator,
36
+ onToggleAppMenu = props.onToggleAppMenu,
36
37
  remainigProps = _objectWithoutProperties(props, _excluded);
37
38
  var hasItems = !!(appMenuItems && appMenuItems.length || appNavigator);
38
39
  var classNames = classname('ModuleNavigation AppMenu', 'user-select-none', {
@@ -42,7 +43,8 @@ export var AppMenu = function AppMenu(props) {
42
43
  className: classNames
43
44
  }), /*#__PURE__*/React.createElement(AppMenuDropdown, {
44
45
  title: label,
45
- caret: hasItems
46
+ caret: hasItems,
47
+ onToggleAppMenu: onToggleAppMenu
46
48
  }, /*#__PURE__*/React.createElement(MenuContent, props)));
47
49
  };
48
50
  AppMenu.defaultProps = {
@@ -52,5 +54,6 @@ AppMenu.propTypes = {
52
54
  // Support a list of items for services without the app navigator like internal MDM services
53
55
  appMenuItems: PropTypes.arrayOf(modulePropTypes),
54
56
  appNavigator: PropTypes.element,
55
- appNavigatorClassName: PropTypes.string
57
+ appNavigatorClassName: PropTypes.string,
58
+ onToggleAppMenu: PropTypes.func
56
59
  };
@@ -42,6 +42,7 @@ var AppMenuDropdownOpener = /*#__PURE__*/React.forwardRef(function (props, ref)
42
42
  export var AppMenuDropdown = function AppMenuDropdown(props) {
43
43
  var title = props.title,
44
44
  caret = props.caret,
45
+ onToggleAppMenu = props.onToggleAppMenu,
45
46
  children = props.children;
46
47
  var _useState = useState(false),
47
48
  _useState2 = _slicedToArray(_useState, 2),
@@ -51,7 +52,9 @@ export var AppMenuDropdown = function AppMenuDropdown(props) {
51
52
  return setIsOpen(false);
52
53
  });
53
54
  var handleDropdownClick = function handleDropdownClick() {
54
- return setIsOpen(!isOpen);
55
+ var newState = !isOpen;
56
+ setIsOpen(newState);
57
+ onToggleAppMenu(newState);
55
58
  };
56
59
  var openWithChildren = !isEmpty(children) && isOpen;
57
60
  return /*#__PURE__*/React.createElement(AppMenuDropdownOpener, {
@@ -69,5 +72,6 @@ AppMenuDropdown.defaultProps = {
69
72
  };
70
73
  AppMenuDropdown.propTypes = {
71
74
  title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
72
- caret: PropTypes.bool
75
+ caret: PropTypes.bool,
76
+ onToggleAppMenu: PropTypes.func
73
77
  };
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["homeRoute", "showHomeIcon", "label", "className", "appNavigator", "appNavigatorClassName", "appMenuItems", "navItems", "actionBarItems"];
5
- import React, { useState, useRef, useEffect, useCallback } from 'react';
4
+ var _excluded = ["homeRoute", "showHomeIcon", "label", "className", "appNavigator", "appNavigatorClassName", "appMenuItems", "navItems", "actionBarItems", "onToggleAppMenu"];
5
+ import React, { useState, useRef, forwardRef, useCallback, useImperativeHandle } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import debounce from 'lodash/fp/debounce';
8
8
  import isEmpty from 'lodash/fp/isEmpty';
@@ -16,7 +16,7 @@ import modulePropTypes from './modulePropTypes';
16
16
  import { MobileAppMenu } from './MobileAppMenu';
17
17
  var SCREEN_SM = 768; // @screen-sm: 768px;
18
18
 
19
- export var ApplicationHeader = function ApplicationHeader(props) {
19
+ export var ApplicationHeader = /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  var homeRoute = props.homeRoute,
21
21
  showHomeIcon = props.showHomeIcon,
22
22
  label = props.label,
@@ -26,12 +26,16 @@ export var ApplicationHeader = function ApplicationHeader(props) {
26
26
  appMenuItems = props.appMenuItems,
27
27
  navItems = props.navItems,
28
28
  actionBarItems = props.actionBarItems,
29
+ onToggleAppMenu = props.onToggleAppMenu,
29
30
  remainigProps = _objectWithoutProperties(props, _excluded);
30
31
  var actionBarRef = useRef();
31
32
  var _useResizeObserver = useResizeObserver(),
32
33
  _useResizeObserver2 = _slicedToArray(_useResizeObserver, 2),
33
34
  navRef = _useResizeObserver2[0],
34
35
  contentRect = _useResizeObserver2[1].contentRect;
36
+ useImperativeHandle(ref, function () {
37
+ return navRef;
38
+ }, []);
35
39
  var getContentRect = useCallback(function (key) {
36
40
  return contentRect && Math.round(contentRect[key]);
37
41
  }, [contentRect]);
@@ -46,7 +50,8 @@ export var ApplicationHeader = function ApplicationHeader(props) {
46
50
  showHomeIcon: showHomeIcon,
47
51
  homeRoute: homeRoute,
48
52
  appMenuItems: appMenuItems,
49
- appNavigator: appNavigator
53
+ appNavigator: appNavigator,
54
+ onToggleAppMenu: onToggleAppMenu
50
55
  }), /*#__PURE__*/React.createElement("div", {
51
56
  className: "flex-1-1-0 display-flex gap-10"
52
57
  }, /*#__PURE__*/React.createElement(MobileSubmoduleNavigation, {
@@ -66,7 +71,8 @@ export var ApplicationHeader = function ApplicationHeader(props) {
66
71
  key: "AppMenu",
67
72
  appMenuItems: appMenuItems,
68
73
  appNavigator: appNavigator,
69
- appNavigatorClassName: appNavigatorClassName
74
+ appNavigatorClassName: appNavigatorClassName,
75
+ onToggleAppMenu: onToggleAppMenu
70
76
  }), isEmpty(navItems) && /*#__PURE__*/React.createElement("ul", {
71
77
  className: "SubmoduleNavigation nav"
72
78
  }), !isEmpty(navItems) && /*#__PURE__*/React.createElement(NavItems, {
@@ -78,7 +84,7 @@ export var ApplicationHeader = function ApplicationHeader(props) {
78
84
  nodeRef: actionBarRef,
79
85
  items: actionBarItems
80
86
  })));
81
- };
87
+ });
82
88
  var Divider = function Divider() {
83
89
  return /*#__PURE__*/React.createElement("div", {
84
90
  className: "divider display-flex align-items-center"
@@ -90,7 +96,8 @@ export default ApplicationHeader;
90
96
  ApplicationHeader.defaultProps = {
91
97
  homeRoute: '',
92
98
  showHomeIcon: true,
93
- actionBarItems: []
99
+ actionBarItems: [],
100
+ onToggleAppMenu: function onToggleAppMenu() {}
94
101
  };
95
102
  ApplicationHeader.propTypes = {
96
103
  label: PropTypes.node,
@@ -101,5 +108,6 @@ ApplicationHeader.propTypes = {
101
108
  appNavigator: PropTypes.node,
102
109
  appNavigatorClassName: PropTypes.string,
103
110
  navItems: PropTypes.arrayOf(modulePropTypes),
104
- actionBarItems: PropTypes.arrayOf(PropTypes.node)
111
+ actionBarItems: PropTypes.arrayOf(PropTypes.node),
112
+ onToggleAppMenu: PropTypes.func
105
113
  };
@@ -8,15 +8,18 @@ export var MobileAppMenu = function MobileAppMenu(props) {
8
8
  var appMenuItems = props.appMenuItems,
9
9
  appNavigator = props.appNavigator,
10
10
  showHomeIcon = props.showHomeIcon,
11
- homeRoute = props.homeRoute;
11
+ homeRoute = props.homeRoute,
12
+ onToggleAppMenu = props.onToggleAppMenu;
12
13
  var _useState = useState(false),
13
14
  _useState2 = _slicedToArray(_useState, 2),
14
15
  isShown = _useState2[0],
15
16
  setIsShown = _useState2[1];
16
17
  var handleToggleNavigation = function handleToggleNavigation() {
17
- return setIsShown(!isShown);
18
+ var newState = !isShown;
19
+ setIsShown(newState);
20
+ onToggleAppMenu(newState);
18
21
  };
19
- var hasAppContent = !isNil(appMenuItems) || !isNil(appNavigator);
22
+ var hasAppContent = !(isNil(appMenuItems) && isNil(appNavigator));
20
23
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
21
24
  className: "navbar-header min-width-50 padding-5 overflow-hidden position-relative display-flex align-items-center",
22
25
  onClick: handleToggleNavigation
@@ -47,5 +50,6 @@ MobileAppMenu.propTypes = {
47
50
  homeRoute: PropTypes.node,
48
51
  showHomeIcon: PropTypes.bool,
49
52
  appMenuItems: PropTypes.arrayOf(modulePropTypes),
50
- appNavigator: PropTypes.element
53
+ appNavigator: PropTypes.element,
54
+ onToggleAppMenu: PropTypes.func
51
55
  };
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["className", "layoutRef", "children"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
7
  import ApplicationLayoutHeader from './ApplicationLayoutHeader';
@@ -11,17 +11,17 @@ import ApplicationLayoutBody from './ApplicationLayoutBody';
11
11
  // initializes document bootstrapping - keep the import to avoid being tree-shaked
12
12
  import { initDocumentBootstrapping } from '../../utils/init';
13
13
  initDocumentBootstrapping;
14
- export var ApplicationLayout = function ApplicationLayout(_ref) {
15
- var className = _ref.className,
16
- layoutRef = _ref.layoutRef,
17
- children = _ref.children,
18
- remainigProps = _objectWithoutProperties(_ref, _excluded);
14
+ export var ApplicationLayout = /*#__PURE__*/forwardRef(function (props, ref) {
15
+ var className = props.className,
16
+ layoutRef = props.layoutRef,
17
+ children = props.children,
18
+ remainigProps = _objectWithoutProperties(props, _excluded);
19
19
  var classes = classNames('ApplicationLayout', className);
20
20
  return /*#__PURE__*/React.createElement("div", _extends({}, remainigProps, {
21
- ref: layoutRef,
21
+ ref: ref || layoutRef,
22
22
  className: classes
23
23
  }), children);
24
- };
24
+ });
25
25
  ApplicationLayout.Header = ApplicationLayoutHeader;
26
26
  ApplicationLayout.Sidebar = ApplicationLayoutSidebar;
27
27
  ApplicationLayout.Body = ApplicationLayoutBody;
@@ -2,12 +2,12 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["className", "innerClassName", "forceScrollbar", "enableScrollToTop", "banner", "navigation", "bottomBar", "bottomBarHeight", "children"];
5
- import React, { useState, useRef, useEffect } from 'react';
5
+ import React, { useState, useRef, useEffect, forwardRef, useImperativeHandle } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import debounce from 'lodash/fp/debounce';
8
8
  import classNames from 'classnames';
9
9
  var RESIZE_THROTTELING = 200;
10
- export var ApplicationLayoutBody = function ApplicationLayoutBody(props) {
10
+ export var ApplicationLayoutBody = /*#__PURE__*/forwardRef(function (props, ref) {
11
11
  var className = props.className,
12
12
  innerClassName = props.innerClassName,
13
13
  forceScrollbar = props.forceScrollbar,
@@ -24,6 +24,9 @@ export var ApplicationLayoutBody = function ApplicationLayoutBody(props) {
24
24
  setOffset = _useState2[1];
25
25
  var moduleContentRef = useRef();
26
26
  var layoutBodyRef = useRef();
27
+ useImperativeHandle(ref, function () {
28
+ return layoutBodyRef;
29
+ }, []);
27
30
  useEffect(function () {
28
31
  if (layoutBodyRef.current) {
29
32
  layoutBodyRef.current.parentNode.style = "--ApplicationLayoutBodyBottomBarHeight: ".concat(bottomBarHeight, "px");
@@ -66,7 +69,7 @@ export var ApplicationLayoutBody = function ApplicationLayoutBody(props) {
66
69
  }, /*#__PURE__*/React.createElement("span", {
67
70
  className: "rioglyph rioglyph-arrow-up"
68
71
  })))), bottomBar && bottomBar);
69
- };
72
+ });
70
73
  ApplicationLayoutBody.defaultProps = {
71
74
  className: '',
72
75
  enableScrollToTop: true,
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["textColor", "backgroundColor", "isSticky", "className", "children"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- export var ApplicationLayoutBodyBanner = function ApplicationLayoutBodyBanner(props) {
7
+ export var ApplicationLayoutBodyBanner = /*#__PURE__*/forwardRef(function (props, ref) {
8
8
  var textColor = props.textColor,
9
9
  backgroundColor = props.backgroundColor,
10
10
  isSticky = props.isSticky,
@@ -13,9 +13,10 @@ export var ApplicationLayoutBodyBanner = function ApplicationLayoutBodyBanner(pr
13
13
  remainingProps = _objectWithoutProperties(props, _excluded);
14
14
  var bannerClasses = classNames('ApplicationLayoutBodyBanner', textColor, backgroundColor, isSticky && 'position-sticky top-0 z-index-3', className);
15
15
  return /*#__PURE__*/React.createElement("div", _extends({}, remainingProps, {
16
+ ref: ref,
16
17
  className: bannerClasses
17
18
  }), children);
18
- };
19
+ });
19
20
  ApplicationLayoutBodyBanner.defaultProps = {
20
21
  textColor: 'text-color-white',
21
22
  backgroundColor: 'bg-primary',
@@ -1,20 +1,22 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["className", "buttonAlignment", "useBodyPaddings", "children"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- export var ApplicationLayoutBodyBottomBar = function ApplicationLayoutBodyBottomBar(_ref) {
7
+ export var ApplicationLayoutBodyBottomBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
8
8
  var className = _ref.className,
9
9
  buttonAlignment = _ref.buttonAlignment,
10
10
  useBodyPaddings = _ref.useBodyPaddings,
11
11
  children = _ref.children,
12
12
  remainigProps = _objectWithoutProperties(_ref, _excluded);
13
13
  var classes = classNames('ApplicationLayoutBodyBottomBar', buttonAlignment === 'left' && 'justify-content-start', buttonAlignment === 'right' && 'justify-content-end', buttonAlignment !== 'left' && buttonAlignment !== 'right' && 'justify-content-between', useBodyPaddings && 'use-body-padding', className && className);
14
- return /*#__PURE__*/React.createElement("div", _extends({}, remainigProps, {
14
+ return /*#__PURE__*/React.createElement("div", _extends({
15
+ ref: ref
16
+ }, remainigProps, {
15
17
  className: classes
16
18
  }), children);
17
- };
19
+ });
18
20
  ApplicationLayoutBodyBottomBar.LEFT = 'left';
19
21
  ApplicationLayoutBodyBottomBar.RIGHT = 'right';
20
22
  ApplicationLayoutBodyBottomBar.defaultProps = {
@@ -1,18 +1,20 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["className", "children"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- export var ApplicationLayoutBodyNavigation = function ApplicationLayoutBodyNavigation(props) {
7
+ export var ApplicationLayoutBodyNavigation = /*#__PURE__*/forwardRef(function (props, ref) {
8
8
  var className = props.className,
9
9
  children = props.children,
10
10
  remainingProps = _objectWithoutProperties(props, _excluded);
11
11
  var navigationClasses = classNames('ApplicationLayoutBodyNavigation', className);
12
- return /*#__PURE__*/React.createElement("div", _extends({}, remainingProps, {
12
+ return /*#__PURE__*/React.createElement("div", _extends({
13
+ ref: ref
14
+ }, remainingProps, {
13
15
  className: navigationClasses
14
16
  }), children);
15
- };
17
+ });
16
18
  ApplicationLayoutBodyNavigation.propTypes = {
17
19
  className: PropTypes.string
18
20
  };
@@ -1,19 +1,21 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["className", "children"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- export var ApplicationLayoutHeader = function ApplicationLayoutHeader(_ref) {
8
- var className = _ref.className,
9
- children = _ref.children,
10
- remainigProps = _objectWithoutProperties(_ref, _excluded);
7
+ export var ApplicationLayoutHeader = /*#__PURE__*/forwardRef(function (props, ref) {
8
+ var className = props.className,
9
+ children = props.children,
10
+ remainigProps = _objectWithoutProperties(props, _excluded);
11
11
  var classes = classNames('ApplicationLayoutHeader', className);
12
- return /*#__PURE__*/React.createElement("div", _extends({}, remainigProps, {
12
+ return /*#__PURE__*/React.createElement("div", _extends({
13
+ ref: ref
14
+ }, remainigProps, {
13
15
  className: classes,
14
16
  id: "ApplicationLayoutHeader"
15
17
  }), children);
16
- };
18
+ });
17
19
  ApplicationLayoutHeader.propTypes = {
18
20
  className: PropTypes.string
19
21
  };
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ var AspectRatioPlaceholder = function AspectRatioPlaceholder(props) {
4
+ var width = props.width,
5
+ height = props.height,
6
+ _props$className = props.className,
7
+ className = _props$className === void 0 ? '' : _props$className,
8
+ children = props.children;
9
+ return /*#__PURE__*/React.createElement("div", {
10
+ className: "position-relative ".concat(className),
11
+ style: {
12
+ aspectRatio: "".concat(width, " / ").concat(height)
13
+ }
14
+ }, children);
15
+ };
16
+ AspectRatioPlaceholder.defaultProps = {
17
+ width: 16,
18
+ height: 9
19
+ };
20
+ AspectRatioPlaceholder.propTypes = {
21
+ width: PropTypes.number,
22
+ height: PropTypes.number,
23
+ className: PropTypes.string
24
+ };
25
+ export default AspectRatioPlaceholder;
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["className", "resizable", "width", "maxWidth", "minWidth", "height", "bordered", "currentCategoryId", "isOpen", "useOffscreen", "fly", "onCategoryChange", "onToggleTree", "onResizeEnd", "children"];
5
- import React, { memo, useState, useEffect, useRef } from 'react';
5
+ import React, { memo, useState, useEffect, useRef, forwardRef, useImperativeHandle } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import classNames from 'classnames';
8
8
  import head from 'lodash/fp/head';
@@ -38,7 +38,7 @@ var renderTreesOffscreen = function renderTreesOffscreen(children, categoryId) {
38
38
  }, child);
39
39
  });
40
40
  };
41
- var AssetTree = /*#__PURE__*/memo(function (props) {
41
+ var AssetTree = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (props, ref) {
42
42
  var className = props.className,
43
43
  resizable = props.resizable,
44
44
  width = props.width,
@@ -71,6 +71,9 @@ var AssetTree = /*#__PURE__*/memo(function (props) {
71
71
  sidebarMode = _useState6[0],
72
72
  setSidebarMode = _useState6[1];
73
73
  var sidebarRef = useRef();
74
+ useImperativeHandle(ref, function () {
75
+ return sidebarRef;
76
+ }, []);
74
77
 
75
78
  // Update internal state when props change
76
79
  useEffect(function () {
@@ -150,7 +153,7 @@ var AssetTree = /*#__PURE__*/memo(function (props) {
150
153
  direction: Resizer.HORIZONTAL,
151
154
  position: Resizer.RIGHT
152
155
  }));
153
- });
156
+ }));
154
157
  AssetTree.displayName = 'AssetTree';
155
158
  AssetTree.MODE_FLY = 'fly';
156
159
  AssetTree.MODE_FLUID = 'fluid';
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["icon", "value", "isActive", "hasFilter", "enableActivity", "onClick", "type", "hideOnZero"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- var TypeCounter = function TypeCounter(props) {
7
+ var TypeCounter = /*#__PURE__*/forwardRef(function (props, ref) {
8
8
  var icon = props.icon,
9
9
  value = props.value,
10
10
  isActive = props.isActive,
@@ -22,7 +22,9 @@ var TypeCounter = function TypeCounter(props) {
22
22
  if (hideOnZero && !value) {
23
23
  return null;
24
24
  }
25
- return /*#__PURE__*/React.createElement("div", _extends({}, remainingProps, {
25
+ return /*#__PURE__*/React.createElement("div", _extends({
26
+ ref: ref
27
+ }, remainingProps, {
26
28
  className: wrapperClassName,
27
29
  onClick: handleClick
28
30
  }), /*#__PURE__*/React.createElement("span", {
@@ -30,7 +32,7 @@ var TypeCounter = function TypeCounter(props) {
30
32
  }), /*#__PURE__*/React.createElement("span", {
31
33
  className: counterClassNames
32
34
  }, value || 0));
33
- };
35
+ });
34
36
  TypeCounter.defaultProps = {
35
37
  hideOnZero: false
36
38
  };
@@ -136,7 +136,8 @@ var ClearableInput = /*#__PURE__*/function (_React$Component) {
136
136
  value: inputValue,
137
137
  onChange: this.handleChange,
138
138
  onKeyPress: this.handleKeyPress,
139
- ref: inputRef,
139
+ // ref={this.props.innerRef} is the equivalent of forwardRef
140
+ ref: inputRef || this.props.innerRef,
140
141
  autoComplete: autoComplete
141
142
  });
142
143
  return /*#__PURE__*/React.createElement("div", {
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  import _typeof from "@babel/runtime/helpers/typeof";
5
5
  var _excluded = ["dropup", "alignRight", "onChange", "className", "mandatory", "dateValidation"];
6
- import React, { useState } from 'react';
6
+ import React, { useState, forwardRef } from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import classNames from 'classnames';
9
9
 
@@ -14,7 +14,7 @@ var Datetime = RDT["default"] ? RDT["default"] : RDT;
14
14
  var isValidDate = function isValidDate(date) {
15
15
  return _typeof(date) === 'object';
16
16
  };
17
- var DatePicker = function DatePicker(props) {
17
+ var DatePicker = /*#__PURE__*/forwardRef(function (props, ref) {
18
18
  var dropup = props.dropup,
19
19
  alignRight = props.alignRight,
20
20
  onChange = props.onChange,
@@ -35,11 +35,15 @@ var DatePicker = function DatePicker(props) {
35
35
  onChange(date, isValid);
36
36
  };
37
37
  var classes = classNames('DatePicker', 'form-group', hasError && 'has-error', dropup && 'dropup', alignRight && 'align-right', className && className);
38
- return /*#__PURE__*/React.createElement(Datetime, _extends({}, remainingProp, {
38
+
39
+ // TODO: add support for setting ref to the input. Maybe add a "inputRef" prop to react-datetime
40
+ return /*#__PURE__*/React.createElement(Datetime, _extends({
41
+ ref: ref
42
+ }, remainingProp, {
39
43
  onChange: handleChange,
40
44
  className: classes
41
45
  }));
42
- };
46
+ });
43
47
  DatePicker.defaultProps = {
44
48
  closeOnSelect: true,
45
49
  dropup: false,