@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.
- package/.DS_Store +0 -0
- package/AspectRatioPlaceholder.d.ts +5 -0
- package/AspectRatioPlaceholder.js +2 -0
- package/AspectRatioPlaceholder.ts +5 -0
- package/ConfirmationDialog.d.ts +2 -0
- package/Dialog.d.ts +2 -0
- package/Map.d.ts +2 -1
- package/README.md +11 -1
- package/ResponsiveColumnStripe.d.ts +5 -0
- package/ResponsiveColumnStripe.js +2 -0
- package/RuleConnector.d.ts +2 -1
- package/RuleContainer.d.ts +3 -2
- package/RulesWrapper.d.ts +2 -1
- package/SaveDialog.d.ts +2 -0
- package/SimpleDialog.d.ts +2 -0
- package/SplitDialog.d.ts +2 -0
- package/components/activity/Activity.js +6 -4
- package/components/animatedNumber/AnimatedNumber.js +6 -4
- package/components/applicationHeader/AppMenu.js +6 -3
- package/components/applicationHeader/AppMenuDropdown.js +6 -2
- package/components/applicationHeader/ApplicationHeader.js +16 -8
- package/components/applicationHeader/MobileAppMenu.js +8 -4
- package/components/applicationLayout/ApplicationLayout.js +8 -8
- package/components/applicationLayout/ApplicationLayoutBody.js +6 -3
- package/components/applicationLayout/ApplicationLayoutBodyBanner.js +4 -3
- package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +6 -4
- package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +6 -4
- package/components/applicationLayout/ApplicationLayoutHeader.js +9 -7
- package/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +25 -0
- package/components/assetTree/AssetTree.js +6 -3
- package/components/assetTree/TypeCounter.js +6 -4
- package/components/dialog/Dialog.js +3 -1
- package/components/dialog/MediaDialog.js +5 -1
- package/components/dialog/SaveDialog.js +5 -2
- package/components/fade/Fade.js +5 -0
- package/components/filepicker/FilePicker.js +1 -1
- package/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
- package/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_construction_active.svg +1 -1
- package/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_layer_active.svg +1 -1
- package/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
- package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
- package/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
- package/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
- package/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
- package/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
- package/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
- package/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
- package/components/map/components/Map.js +47 -36
- package/components/map/components/features/ContextMenu.js +1 -1
- package/components/map/components/features/Route.js +1 -9
- package/components/map/components/features/basics/Circle.js +11 -6
- package/components/map/components/features/basics/MapLayerGroup.js +8 -5
- package/components/map/components/features/basics/Polygon.js +6 -5
- package/components/map/components/features/basics/Polyline.js +39 -42
- package/components/map/components/features/basics/marker/DomMarker.js +9 -3
- package/components/map/components/features/basics/marker/Marker.js +101 -121
- package/components/map/components/features/basics/marker/TextMarker.js +15 -43
- package/components/map/components/features/layers/Layer.js +1 -1
- package/components/map/components/features/layers/MarkerLayer.js +7 -4
- package/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
- package/components/map/components/features/layers/TrafficLayer.js +2 -2
- package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
- package/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
- package/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
- package/components/map/icons/MapIcon.js +46 -66
- package/components/map/utils/hooks.js +3 -3
- package/components/mapMarker/ClusterMapMarker.js +16 -20
- package/components/mapMarker/SingleMapMarker.js +16 -30
- package/components/numberControl/NumberControl.js +13 -7
- package/components/numberInput/NumberInput.js +30 -12
- package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +255 -0
- package/components/rules/RuleContainer.js +4 -0
- package/components/rules/RulesWrapper.js +3 -3
- package/hooks/useDarkMode.js +3 -2
- package/hooks/useMutationObserver.js +13 -4
- package/hooks/useScrollPosition.js +6 -7
- package/index.d.ts +31 -29
- package/index.js +4 -0
- package/lib/es/AspectRatioPlaceholder.d.ts +5 -0
- package/lib/es/AspectRatioPlaceholder.js +13 -0
- package/lib/es/AspectRatioPlaceholder.ts +5 -0
- package/lib/es/ConfirmationDialog.d.ts +2 -0
- package/lib/es/Dialog.d.ts +2 -0
- package/lib/es/Map.d.ts +2 -1
- package/lib/es/ResponsiveColumnStripe.d.ts +5 -0
- package/lib/es/ResponsiveColumnStripe.js +13 -0
- package/lib/es/RuleConnector.d.ts +2 -1
- package/lib/es/RuleContainer.d.ts +3 -2
- package/lib/es/RulesWrapper.d.ts +2 -1
- package/lib/es/SaveDialog.d.ts +2 -0
- package/lib/es/SimpleDialog.d.ts +2 -0
- package/lib/es/SplitDialog.d.ts +2 -0
- package/lib/es/components/activity/Activity.js +9 -4
- package/lib/es/components/animatedNumber/AnimatedNumber.js +5 -3
- package/lib/es/components/applicationHeader/AppMenu.js +6 -3
- package/lib/es/components/applicationHeader/AppMenuDropdown.js +6 -2
- package/lib/es/components/applicationHeader/ApplicationHeader.js +15 -7
- package/lib/es/components/applicationHeader/MobileAppMenu.js +8 -4
- package/lib/es/components/applicationLayout/ApplicationLayout.js +11 -8
- package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +5 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +7 -3
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +9 -4
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +9 -4
- package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +12 -7
- package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +33 -0
- package/lib/es/components/assetTree/AssetTree.js +5 -2
- package/lib/es/components/assetTree/TypeCounter.js +9 -4
- package/lib/es/components/dialog/Dialog.js +3 -1
- package/lib/es/components/dialog/MediaDialog.js +5 -1
- package/lib/es/components/dialog/SaveDialog.js +5 -2
- package/lib/es/components/fade/Fade.js +5 -0
- package/lib/es/components/filepicker/FilePicker.js +1 -1
- package/lib/es/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_construction_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_layer_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
- package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
- package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
- package/lib/es/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
- package/lib/es/components/map/components/Map.js +47 -36
- package/lib/es/components/map/components/features/ContextMenu.js +1 -1
- package/lib/es/components/map/components/features/Route.js +1 -9
- package/lib/es/components/map/components/features/basics/Circle.js +10 -5
- package/lib/es/components/map/components/features/basics/MapLayerGroup.js +8 -5
- package/lib/es/components/map/components/features/basics/Polygon.js +6 -5
- package/lib/es/components/map/components/features/basics/Polyline.js +39 -42
- package/lib/es/components/map/components/features/basics/marker/DomMarker.js +8 -3
- package/lib/es/components/map/components/features/basics/marker/Marker.js +105 -120
- package/lib/es/components/map/components/features/basics/marker/TextMarker.js +15 -42
- package/lib/es/components/map/components/features/layers/Layer.js +1 -1
- package/lib/es/components/map/components/features/layers/MarkerLayer.js +7 -4
- package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
- package/lib/es/components/map/components/features/layers/TrafficLayer.js +2 -2
- package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
- package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
- package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
- package/lib/es/components/map/icons/MapIcon.js +46 -66
- package/lib/es/components/map/utils/hooks.js +3 -3
- package/lib/es/components/mapMarker/ClusterMapMarker.js +16 -20
- package/lib/es/components/mapMarker/SingleMapMarker.js +16 -30
- package/lib/es/components/numberControl/NumberControl.js +13 -7
- package/lib/es/components/numberInput/NumberInput.js +31 -12
- package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +266 -0
- package/lib/es/components/rules/RuleContainer.js +4 -0
- package/lib/es/components/rules/RulesWrapper.js +3 -3
- package/lib/es/hooks/useDarkMode.js +4 -3
- package/lib/es/hooks/useMutationObserver.js +15 -4
- package/lib/es/hooks/useScrollPosition.js +6 -7
- package/lib/es/index.d.ts +31 -29
- package/lib/es/index.js +24 -0
- package/lib/es/styles/components/ApplicationHeader.less +2 -0
- package/lib/es/styles/components/Dialog.less +41 -23
- package/lib/es/styles/components/MapMarker.less +224 -14
- package/lib/es/styles/components/MapSettings.less +45 -29
- package/lib/es/styles/components/Notification.less +1 -1
- package/lib/es/styles/design/alerts.less +7 -9
- package/lib/es/styles/design/aspect-ratio.less +1 -0
- package/lib/es/styles/design/blur.less +7 -0
- package/lib/es/styles/design/border.less +51 -14
- package/lib/es/styles/design/callouts.less +12 -11
- package/lib/es/styles/design/colors.less +15 -6
- package/lib/es/styles/design/cols.less +19 -18
- package/lib/es/styles/design/divide.less +165 -0
- package/lib/es/styles/design/divider.less +90 -0
- package/lib/es/styles/design/responsive/_imports.less +1 -0
- package/lib/es/styles/design/responsive/gap.less +0 -8
- package/lib/es/styles/design/responsive/spacing.less +25 -0
- package/lib/es/styles/design/text.less +16 -2
- package/lib/es/styles/mapping/color-map.less +10 -0
- package/lib/es/styles/mapping/spacings-map.less +5 -0
- package/lib/es/styles/rio-uikit-core.less +2 -0
- package/lib/es/styles/variables/colors.json +6 -0
- package/lib/es/styles/variables/concated_css_variables.less +6 -0
- package/lib/es/styles/variables/dark_colors.less +7 -0
- package/lib/es/styles/variables/dark_css_variables_map.less +7 -0
- package/lib/es/styles/variables/light_colors.less +7 -0
- package/lib/es/styles/variables/light_css_variables_map.less +7 -0
- package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +14 -5
- package/lib/es/types.ts +71 -25
- package/lib/es/useDarkMode.d.ts +4 -0
- package/lib/es/useDarkMode.js +13 -0
- package/lib/es/useMutationObserver.d.ts +4 -0
- package/lib/es/useMutationObserver.js +13 -0
- package/lib/es/version.json +1 -1
- package/package.json +1 -1
- package/styles/components/ApplicationHeader.less +2 -0
- package/styles/components/Dialog.less +41 -23
- package/styles/components/MapMarker.less +224 -14
- package/styles/components/MapSettings.less +45 -29
- package/styles/components/Notification.less +1 -1
- package/styles/design/alerts.less +7 -9
- package/styles/design/aspect-ratio.less +1 -0
- package/styles/design/blur.less +7 -0
- package/styles/design/border.less +51 -14
- package/styles/design/callouts.less +12 -11
- package/styles/design/colors.less +15 -6
- package/styles/design/cols.less +19 -18
- package/styles/design/divide.less +165 -0
- package/styles/design/divider.less +90 -0
- package/styles/design/responsive/_imports.less +1 -0
- package/styles/design/responsive/gap.less +0 -8
- package/styles/design/responsive/spacing.less +25 -0
- package/styles/design/text.less +16 -2
- package/styles/mapping/color-map.less +10 -0
- package/styles/mapping/spacings-map.less +5 -0
- package/styles/rio-uikit-core.less +2 -0
- package/styles/variables/colors.json +6 -0
- package/styles/variables/concated_css_variables.less +6 -0
- package/styles/variables/dark_colors.less +7 -0
- package/styles/variables/dark_css_variables_map.less +7 -0
- package/styles/variables/light_colors.less +7 -0
- package/styles/variables/light_css_variables_map.less +7 -0
- package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +15 -6
- package/types.ts +71 -25
- package/useDarkMode.d.ts +4 -0
- package/useDarkMode.js +2 -0
- package/useMutationObserver.d.ts +4 -0
- package/useMutationObserver.js +2 -0
- package/version.json +1 -1
- package/components/.DS_Store +0 -0
- package/components/map/.DS_Store +0 -0
- package/components/map/components/.DS_Store +0 -0
- package/components/map/components/features/layers/TruckLayer.js +0 -20
- package/components/map/components/features/layers/baselayers/BaseLayer.js +0 -33
- package/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -23
- package/hooks/useHereMap.ts +0 -23
- package/hooks/useScripts.ts +0 -52
- package/lib/.DS_Store +0 -0
- package/lib/es/.DS_Store +0 -0
- package/lib/es/components/.DS_Store +0 -0
- package/lib/es/components/map/components/features/layers/TruckLayer.js +0 -28
- package/lib/es/components/map/components/features/layers/baselayers/BaseLayer.js +0 -41
- package/lib/es/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -30
- package/lib/es/hooks/useHereMap.ts +0 -23
- package/lib/es/hooks/useScripts.ts +0 -52
- package/lib/es/styles/.DS_Store +0 -0
- package/lib/es/styles/mixins/_mixins.less +0 -13
- package/lib/es/styles/mixins/alerts.less +0 -13
- package/lib/es/styles/shared/colors.json +0 -56
- package/lib/es/styles/shared/colors.less +0 -73
- package/lib/es/styles/shared/screens.less +0 -7
- package/lib/es/styles/shared/text.less +0 -23
- package/lib/es/styles/variables.less +0 -186
- package/lib/es/themes/.DS_Store +0 -0
- package/styles/.DS_Store +0 -0
- package/styles/mixins/_mixins.less +0 -13
- package/styles/mixins/alerts.less +0 -13
- package/styles/shared/colors.json +0 -56
- package/styles/shared/colors.less +0 -73
- package/styles/shared/screens.less +0 -7
- package/styles/shared/text.less +0 -23
- package/styles/variables.less +0 -186
- package/themes/.DS_Store +0 -0
- package/themes/Volkswagen/.DS_Store +0 -0
- package/themes/Website/.DS_Store +0 -0
package/.DS_Store
CHANGED
|
Binary file
|
package/ConfirmationDialog.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/ConfirmationDialog' {
|
|
|
7
7
|
static SIZE_LG = 'lg';
|
|
8
8
|
static SIZE_XL = 'xl';
|
|
9
9
|
static SIZE_FULL = 'full';
|
|
10
|
+
static SIZE_FULL_WIDTH = 'fullwidth';
|
|
11
|
+
static SIZE_FULL_HEIGHT = 'fullheight';
|
|
10
12
|
static SIZE_FULL_SCREEN = 'fullscreen';
|
|
11
13
|
}
|
|
12
14
|
}
|
package/Dialog.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ declare module '@rio-cloud/rio-uikit/Dialog' {
|
|
|
5
5
|
export default class Dialog extends React.Component<DialogProps> {
|
|
6
6
|
public static SIZE_FULL_SCREEN: 'fullscreen';
|
|
7
7
|
public static SIZE_FULL: 'full';
|
|
8
|
+
public static SIZE_FULL_WIDTH: 'fullwidth';
|
|
9
|
+
public static SIZE_FULL_HEIGHT: 'fullheight';
|
|
8
10
|
public static SIZE_XL: 'xl';
|
|
9
11
|
public static SIZE_LG: 'lg';
|
|
10
12
|
public static SIZE_MD: 'md';
|
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
|
}
|
package/README.md
CHANGED
|
@@ -17,6 +17,13 @@ When releasing a new version:
|
|
|
17
17
|
1. Create new `release/${VERSION}` branch and trigger pipeline with a commit
|
|
18
18
|
2. After the new uikit-demo is published, update `versionsList.json` in `master` branch.
|
|
19
19
|
|
|
20
|
+
Create a new development beta version:
|
|
21
|
+
|
|
22
|
+
1. Update the `package.json`. Example `0.16.3-beta.1`
|
|
23
|
+
2. Update the `version.json`. Example `0.16.3-beta.1`
|
|
24
|
+
3. run `npm i` or update `package-lock.json`. Example `0.16.3-beta.1`
|
|
25
|
+
4. Update the `uikit-demo/package.json`. Example `0.16.3`
|
|
26
|
+
|
|
20
27
|
## Development
|
|
21
28
|
|
|
22
29
|
To run the UIKIT and the UIKIT Demo locally for development, use:
|
|
@@ -69,14 +76,17 @@ We introduced a versions list containing all the versions for which a uikit-demo
|
|
|
69
76
|
The UIKIT needs to be published to NPM for the JavaScript components and the UIKIT CDN for the CSS files.
|
|
70
77
|
|
|
71
78
|
### Publish to NPM
|
|
79
|
+
|
|
72
80
|
Run `npm run build:npm` to compile the components via babel to the `package` folder. The UIKIT exports CommonJS and ESM files. Later ones are directly in the package root. CommonJS components are generated in `package/lib/es` due to backwards compatibility reasons as Services import those components from `lib/es`.
|
|
73
81
|
|
|
74
|
-
|
|
82
|
+
**Publish** the UIKIT **only from** the **package** folder. All required files like package.json, README and License files are copied there during the build.
|
|
75
83
|
|
|
76
84
|
### Publishing to UIKIT CDN
|
|
85
|
+
|
|
77
86
|
Run `npm run build` to build the production bundle and compile the styles to inspect locally. When comitting to the main development branch the build outcome from `dist` is published via our internal CICD pipeline.
|
|
78
87
|
|
|
79
88
|
### Beta Versions
|
|
89
|
+
|
|
80
90
|
Beta versions of the UIKIT ideally should be kept in synch in NPM and CDN. After a new beta has been released, increase the version number to avoid overwriting published stylings.
|
|
81
91
|
|
|
82
92
|
## License
|
package/RuleConnector.d.ts
CHANGED
|
@@ -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
|
-
|
|
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';
|
package/RuleContainer.d.ts
CHANGED
|
@@ -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
|
-
|
|
5
|
-
}
|
|
4
|
+
|
|
5
|
+
export default class RuleContainer extends React.Component<React.PropsWithChildren<RuleContainerProps>> {}
|
|
6
|
+
}
|
package/RulesWrapper.d.ts
CHANGED
package/SaveDialog.d.ts
CHANGED
package/SimpleDialog.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/SimpleDialog' {
|
|
|
7
7
|
static SIZE_LG = 'lg';
|
|
8
8
|
static SIZE_XL = 'xl';
|
|
9
9
|
static SIZE_FULL = 'full';
|
|
10
|
+
static SIZE_FULL_WIDTH: 'fullwidth';
|
|
11
|
+
static SIZE_FULL_HEIGHT: 'fullheight';
|
|
10
12
|
static SIZE_FULL_SCREEN = 'fullscreen';
|
|
11
13
|
}
|
|
12
14
|
}
|
package/SplitDialog.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/SplitDialog' {
|
|
|
7
7
|
static SIZE_LG = 'lg';
|
|
8
8
|
static SIZE_XL = 'xl';
|
|
9
9
|
static SIZE_FULL = 'full';
|
|
10
|
+
static SIZE_FULL_WIDTH: 'fullwidth';
|
|
11
|
+
static SIZE_FULL_HEIGHT: 'fullheight';
|
|
10
12
|
static SIZE_FULL_SCREEN = 'fullscreen';
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -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
|
|
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({
|
|
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
|
|
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({
|
|
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
|
-
|
|
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,
|
|
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
|
|
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
|
-
|
|
18
|
+
var newState = !isShown;
|
|
19
|
+
setIsShown(newState);
|
|
20
|
+
onToggleAppMenu(newState);
|
|
18
21
|
};
|
|
19
|
-
var hasAppContent = !isNil(appMenuItems)
|
|
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
|
|
15
|
-
var className =
|
|
16
|
-
layoutRef =
|
|
17
|
-
children =
|
|
18
|
-
remainigProps = _objectWithoutProperties(
|
|
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
|
|
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
|
|
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
|
|
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({
|
|
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
|
|
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({
|
|
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
|
|
8
|
-
var className =
|
|
9
|
-
children =
|
|
10
|
-
remainigProps = _objectWithoutProperties(
|
|
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({
|
|
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';
|