@rio-cloud/rio-uikit 0.16.1 → 0.16.2-beta.3
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/ColorScheme.d.ts +4 -0
- package/ColorScheme.js +2 -0
- package/Colors.js +1 -1
- package/TruckLayer.js +1 -1
- package/components/assetTree/Tree.js +1 -1
- package/components/charts/chartHelper.js +1 -1
- package/components/map/components/Map.js +147 -130
- package/components/map/components/constants.js +4 -1
- package/components/map/components/features/layers/RoadRestrictionLayer.js +26 -0
- package/components/map/components/features/layers/TrafficLayer.js +19 -6
- package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +20 -0
- package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +14 -0
- package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +13 -17
- package/components/map/components/features/layers/baselayers/SatelliteLayer.js +13 -17
- package/components/map/components/features/layers/baselayers/TerrainLayer.js +13 -17
- package/components/map/components/features/layers/baselayers/useBaseLayer.js +41 -0
- package/components/map/components/mapUtils.js +4 -1
- package/components/mapMarker/ClusterMapMarker.js +2 -2
- package/components/mapMarker/SingleMapMarker.js +2 -2
- package/components/sidebars/Sidebar.js +2 -2
- package/hooks/useHereMap.ts +23 -0
- package/hooks/useScripts.ts +52 -0
- package/hooks/useScrollPosition.js +72 -0
- package/index.js +4 -1
- package/lib/es/ColorScheme.d.ts +4 -0
- package/lib/es/ColorScheme.js +18 -0
- package/lib/es/Colors.js +1 -1
- package/lib/es/TruckLayer.js +2 -2
- package/lib/es/components/assetTree/Tree.js +1 -1
- package/lib/es/components/charts/chartHelper.js +1 -1
- package/lib/es/components/map/components/Map.js +145 -125
- package/lib/es/components/map/components/constants.js +3 -0
- package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +34 -0
- package/lib/es/components/map/components/features/layers/TrafficLayer.js +18 -6
- package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +26 -0
- package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +21 -0
- package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +13 -18
- package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +13 -18
- package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +13 -18
- package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +49 -0
- package/lib/es/components/map/components/mapUtils.js +6 -3
- package/lib/es/components/mapMarker/ClusterMapMarker.js +2 -2
- package/lib/es/components/mapMarker/SingleMapMarker.js +2 -2
- package/lib/es/components/sidebars/Sidebar.js +2 -2
- package/lib/es/hooks/useHereMap.ts +23 -0
- package/lib/es/hooks/useScripts.ts +52 -0
- package/lib/es/hooks/useScrollPosition.js +80 -0
- package/lib/es/index.js +24 -1
- package/lib/es/mapIndex.js +2 -2
- package/lib/es/styles/components/Activity.less +9 -10
- package/lib/es/styles/components/ApplicationHeader.less +24 -29
- package/lib/es/styles/components/ApplicationLayout.less +7 -7
- package/lib/es/styles/components/AssetTree.less +30 -28
- package/lib/es/styles/components/AutoSuggest.less +2 -2
- package/lib/es/styles/components/BottomSheet.less +1 -2
- package/lib/es/styles/components/Carousel.less +13 -9
- package/lib/es/styles/components/Checkbox.less +15 -16
- package/lib/es/styles/components/ClearableInput.less +3 -3
- package/lib/es/styles/components/Counter.less +12 -12
- package/lib/es/styles/components/DataTabs.less +2 -2
- package/lib/es/styles/components/DatePicker.less +27 -27
- package/lib/es/styles/components/Dialog.less +15 -11
- package/lib/es/styles/components/Dropdown.less +11 -11
- package/lib/es/styles/components/Expander.less +7 -7
- package/lib/es/styles/components/ListMenu.less +8 -8
- package/lib/es/styles/components/MapHere.less +3 -2
- package/lib/es/styles/components/MapMarker.less +16 -17
- package/lib/es/styles/components/MapSettings.less +5 -5
- package/lib/es/styles/components/NoData.less +1 -1
- package/lib/es/styles/components/Notification.less +12 -12
- package/lib/es/styles/components/RadioButton.less +11 -12
- package/lib/es/styles/components/Resizer.less +1 -1
- package/lib/es/styles/components/Select.less +16 -26
- package/lib/es/styles/components/Sidebar.less +29 -21
- package/lib/es/styles/components/Slider.less +18 -18
- package/lib/es/styles/components/Spinner.less +6 -6
- package/lib/es/styles/components/StatsWidget.less +5 -5
- package/lib/es/styles/components/SteppedProgressBar.less +32 -29
- package/lib/es/styles/components/SupportMarker.less +1 -1
- package/lib/es/styles/components/Switch.less +8 -8
- package/lib/es/styles/components/TableSettingsDialog.less +7 -7
- package/lib/es/styles/components/TableToolbar.less +1 -1
- package/lib/es/styles/components/Tag.less +10 -10
- package/lib/es/styles/components/Timeline.less +3 -3
- package/lib/es/styles/components/Tooltip.less +10 -10
- package/lib/es/styles/design/badges.less +10 -10
- package/lib/es/styles/design/border.less +1 -1
- package/lib/es/styles/design/breadcrumbs.less +2 -2
- package/lib/es/styles/design/button-groups.less +25 -1
- package/lib/es/styles/design/buttons.less +53 -109
- package/lib/es/styles/design/callouts.less +3 -3
- package/lib/es/styles/design/code.less +4 -6
- package/lib/es/styles/design/colors.less +20 -20
- package/lib/es/styles/design/form-input-groups.less +4 -4
- package/lib/es/styles/design/form-inputs.less +33 -31
- package/lib/es/styles/design/images.less +2 -2
- package/lib/es/styles/design/labels.less +11 -11
- package/lib/es/styles/design/list-group.less +14 -12
- package/lib/es/styles/design/navs.less +27 -27
- package/lib/es/styles/design/normalize.less +0 -9
- package/lib/es/styles/design/pagination.less +10 -10
- package/lib/es/styles/design/panels.less +10 -10
- package/lib/es/styles/design/popovers.less +8 -8
- package/lib/es/styles/design/progress-bars.less +8 -8
- package/lib/es/styles/design/shadows.less +14 -7
- package/lib/es/styles/design/tables.less +68 -106
- package/lib/es/styles/design/text.less +5 -19
- package/lib/es/styles/design/theme.less +10 -10
- package/lib/es/styles/design/thumbnails.less +2 -2
- package/lib/es/styles/design/type.less +4 -4
- package/lib/es/styles/design/wells.less +1 -1
- package/lib/es/styles/mapping/color-map.less +65 -64
- package/lib/es/styles/mixins/_imports.less +14 -0
- package/lib/es/styles/mixins/buttons.less +24 -56
- package/lib/es/styles/mixins/forms.less +19 -55
- package/lib/es/styles/mixins/hsl.less +19 -0
- package/lib/es/styles/mixins/panels.less +2 -2
- package/lib/es/styles/print/print.less +7 -7
- package/lib/es/styles/rio-uikit-core.less +2 -2
- package/lib/es/styles/rio-uikit-print-utilities.less +2 -2
- package/lib/es/styles/rio-uikit-responsive-utilities.less +2 -2
- package/lib/es/styles/variables/_index.less +196 -0
- package/lib/es/styles/variables/colors.json +67 -0
- package/lib/es/styles/variables/concated_css_variables.less +66 -0
- package/lib/es/styles/variables/dark_colors.less +88 -0
- package/lib/es/styles/variables/dark_css_variables.less +28 -0
- package/lib/es/styles/variables/dark_css_variables_map.less +96 -0
- package/lib/es/styles/variables/light_colors.less +92 -0
- package/lib/es/styles/variables/light_css_variables.less +17 -0
- package/lib/es/styles/variables/light_css_variables_map.less +100 -0
- package/lib/es/styles/variables/screens.less +7 -0
- package/lib/es/styles/variables/text.less +23 -0
- package/lib/es/themes/BuyButton/styles/rio-buyButton.less +13 -8
- package/lib/es/themes/MAN/styles/man-uikit.less +3 -0
- package/lib/es/themes/SCANIA/styles/scania-uikit.less +3 -0
- package/lib/es/themes/Volkswagen/styles/vw-uikit.less +21 -30
- package/lib/es/themes/Website/styles/rio-website.less +145 -120
- package/lib/es/themes/Xmas/styles/rio-xmas.less +59 -29
- package/lib/es/types.ts +6 -1
- package/lib/es/useScrollPosition.d.ts +4 -0
- package/lib/es/useScrollPosition.js +13 -0
- package/lib/es/utils/colorScheme.js +59 -0
- package/lib/es/utils/init.js +2 -0
- package/lib/es/version.json +1 -1
- package/mapIndex.js +1 -1
- package/package.json +4 -3
- package/styles/components/Activity.less +9 -10
- package/styles/components/ApplicationHeader.less +24 -29
- package/styles/components/ApplicationLayout.less +7 -7
- package/styles/components/AssetTree.less +30 -28
- package/styles/components/AutoSuggest.less +2 -2
- package/styles/components/BottomSheet.less +1 -2
- package/styles/components/Carousel.less +13 -9
- package/styles/components/Checkbox.less +15 -16
- package/styles/components/ClearableInput.less +3 -3
- package/styles/components/Counter.less +12 -12
- package/styles/components/DataTabs.less +2 -2
- package/styles/components/DatePicker.less +27 -27
- package/styles/components/Dialog.less +15 -11
- package/styles/components/Dropdown.less +11 -11
- package/styles/components/Expander.less +7 -7
- package/styles/components/ListMenu.less +8 -8
- package/styles/components/MapHere.less +3 -2
- package/styles/components/MapMarker.less +16 -17
- package/styles/components/MapSettings.less +5 -5
- package/styles/components/NoData.less +1 -1
- package/styles/components/Notification.less +12 -12
- package/styles/components/RadioButton.less +11 -12
- package/styles/components/Resizer.less +1 -1
- package/styles/components/Select.less +16 -26
- package/styles/components/Sidebar.less +29 -21
- package/styles/components/Slider.less +18 -18
- package/styles/components/Spinner.less +6 -6
- package/styles/components/StatsWidget.less +5 -5
- package/styles/components/SteppedProgressBar.less +32 -29
- package/styles/components/SupportMarker.less +1 -1
- package/styles/components/Switch.less +8 -8
- package/styles/components/TableSettingsDialog.less +7 -7
- package/styles/components/TableToolbar.less +1 -1
- package/styles/components/Tag.less +10 -10
- package/styles/components/Timeline.less +3 -3
- package/styles/components/Tooltip.less +10 -10
- package/styles/design/badges.less +10 -10
- package/styles/design/border.less +1 -1
- package/styles/design/breadcrumbs.less +2 -2
- package/styles/design/button-groups.less +25 -1
- package/styles/design/buttons.less +53 -109
- package/styles/design/callouts.less +3 -3
- package/styles/design/code.less +4 -6
- package/styles/design/colors.less +20 -20
- package/styles/design/form-input-groups.less +4 -4
- package/styles/design/form-inputs.less +33 -31
- package/styles/design/images.less +2 -2
- package/styles/design/labels.less +11 -11
- package/styles/design/list-group.less +14 -12
- package/styles/design/navs.less +27 -27
- package/styles/design/normalize.less +0 -9
- package/styles/design/pagination.less +10 -10
- package/styles/design/panels.less +10 -10
- package/styles/design/popovers.less +8 -8
- package/styles/design/progress-bars.less +8 -8
- package/styles/design/shadows.less +14 -7
- package/styles/design/tables.less +68 -106
- package/styles/design/text.less +5 -19
- package/styles/design/theme.less +10 -10
- package/styles/design/thumbnails.less +2 -2
- package/styles/design/type.less +4 -4
- package/styles/design/wells.less +1 -1
- package/styles/mapping/color-map.less +65 -64
- package/styles/mixins/_imports.less +14 -0
- package/styles/mixins/buttons.less +24 -56
- package/styles/mixins/forms.less +19 -55
- package/styles/mixins/hsl.less +19 -0
- package/styles/mixins/panels.less +2 -2
- package/styles/print/print.less +7 -7
- package/styles/rio-uikit-core.less +2 -2
- package/styles/rio-uikit-print-utilities.less +2 -2
- package/styles/rio-uikit-responsive-utilities.less +2 -2
- package/styles/variables/_index.less +196 -0
- package/styles/variables/colors.json +67 -0
- package/styles/variables/concated_css_variables.less +66 -0
- package/styles/variables/dark_colors.less +88 -0
- package/styles/variables/dark_css_variables.less +28 -0
- package/styles/variables/dark_css_variables_map.less +96 -0
- package/styles/variables/light_colors.less +92 -0
- package/styles/variables/light_css_variables.less +17 -0
- package/styles/variables/light_css_variables_map.less +100 -0
- package/styles/variables/screens.less +7 -0
- package/styles/variables/text.less +23 -0
- package/themes/BuyButton/styles/rio-buyButton.less +13 -8
- package/themes/MAN/styles/man-uikit.less +3 -0
- package/themes/SCANIA/styles/scania-uikit.less +3 -0
- package/themes/Volkswagen/styles/vw-uikit.less +21 -30
- package/themes/Website/styles/rio-website.less +145 -120
- package/themes/Xmas/styles/rio-xmas.less +59 -29
- package/types.ts +6 -1
- package/useScrollPosition.d.ts +4 -0
- package/useScrollPosition.js +2 -0
- package/utils/colorScheme.js +50 -0
- package/utils/init.js +2 -0
- package/version.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _useScrollPosition2["default"];
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _useScrollPosition2 = _interopRequireDefault(require("./hooks/useScrollPosition"));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.setColorScheme = exports.getColorScheme = void 0;
|
|
8
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
+
var COOKIE_NAME = 'uikit-color-scheme';
|
|
10
|
+
var THEME_DATA_ATTRIBUTE = 'data-theme';
|
|
11
|
+
var PATH = '/';
|
|
12
|
+
var DOMAIN = '.rio.cloud';
|
|
13
|
+
var EXPIRATION_DATE = 'Thu, 18 Dec 2030 12:00:00 UTC';
|
|
14
|
+
var getColorScheme = function getColorScheme() {
|
|
15
|
+
return readColorSchemeFromCookie();
|
|
16
|
+
};
|
|
17
|
+
exports.getColorScheme = getColorScheme;
|
|
18
|
+
var setColorScheme = function setColorScheme(scheme) {
|
|
19
|
+
return writeColorSchemeToCookie(scheme);
|
|
20
|
+
};
|
|
21
|
+
exports.setColorScheme = setColorScheme;
|
|
22
|
+
var readColorSchemeFromCookie = function readColorSchemeFromCookie() {
|
|
23
|
+
var decodedCookie = decodeURIComponent(document.cookie);
|
|
24
|
+
console.log(decodedCookie);
|
|
25
|
+
var _decodedCookie$split$ = decodedCookie.split(';').filter(function (entry) {
|
|
26
|
+
return entry.includes(COOKIE_NAME);
|
|
27
|
+
}),
|
|
28
|
+
_decodedCookie$split$2 = (0, _slicedToArray2["default"])(_decodedCookie$split$, 1),
|
|
29
|
+
uikitCname = _decodedCookie$split$2[0];
|
|
30
|
+
if (!uikitCname) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
var _uikitCname$split = uikitCname.split('='),
|
|
34
|
+
_uikitCname$split2 = (0, _slicedToArray2["default"])(_uikitCname$split, 2),
|
|
35
|
+
colorScheme = _uikitCname$split2[1];
|
|
36
|
+
console.log("readColorSchemeFromCookie: ".concat(colorScheme));
|
|
37
|
+
if (!colorScheme) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
var html = document.documentElement;
|
|
41
|
+
if (colorScheme === 'default' || colorScheme === 'system') {
|
|
42
|
+
html.removeAttribute(THEME_DATA_ATTRIBUTE);
|
|
43
|
+
return colorScheme;
|
|
44
|
+
}
|
|
45
|
+
if (colorScheme === 'light' || colorScheme === 'dark') {
|
|
46
|
+
html.setAttribute(THEME_DATA_ATTRIBUTE, colorScheme);
|
|
47
|
+
return colorScheme;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// This should be done by a RIO service like User Profile SPA using a theme switcher component from the uikit
|
|
52
|
+
// where this function is referenced
|
|
53
|
+
var writeColorSchemeToCookie = function writeColorSchemeToCookie(scheme) {
|
|
54
|
+
var isDevEnv = import.meta.env.DEV;
|
|
55
|
+
var newCookieValues = encodeURIComponent(scheme);
|
|
56
|
+
var cookie = "".concat(COOKIE_NAME, "=").concat(newCookieValues, ";domain=").concat(isDevEnv ? 'localhost' : DOMAIN, ";expires=").concat(EXPIRATION_DATE, ";path=").concat(PATH);
|
|
57
|
+
console.log("writeColorSchemeToCookie: ".concat(cookie));
|
|
58
|
+
document.cookie = cookie;
|
|
59
|
+
};
|
package/lib/es/utils/init.js
CHANGED
|
@@ -11,6 +11,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
var _throttle = _interopRequireDefault(require("lodash/fp/throttle"));
|
|
12
12
|
var _process = _interopRequireDefault(require("process"));
|
|
13
13
|
var _deviceUtils = require("./deviceUtils");
|
|
14
|
+
var _colorScheme = require("./colorScheme");
|
|
14
15
|
var _version = _interopRequireDefault(require("../version.json"));
|
|
15
16
|
var uikitVersion = _version["default"].version;
|
|
16
17
|
|
|
@@ -129,6 +130,7 @@ var initDocumentBootstrapping = function initDocumentBootstrapping(document) {
|
|
|
129
130
|
html.classList.add('window-iframe');
|
|
130
131
|
}
|
|
131
132
|
if (!isTestEnv()) {
|
|
133
|
+
(0, _colorScheme.getColorScheme)();
|
|
132
134
|
printPoweredByRIO();
|
|
133
135
|
checkForReleaseVersion();
|
|
134
136
|
checkMatchingUkitVersions();
|
package/lib/es/version.json
CHANGED
package/mapIndex.js
CHANGED
|
@@ -16,7 +16,7 @@ import { default as _ClusterLayer } from './components/map/components/features/l
|
|
|
16
16
|
import { default as _SimpleClusterLayer } from './components/map/components/features/layers/clustering/SimpleClusterLayer';
|
|
17
17
|
import { default as _MarkerLayer } from './components/map/components/features/layers/MarkerLayer';
|
|
18
18
|
import { default as _TrafficLayer } from './components/map/components/features/layers/TrafficLayer';
|
|
19
|
-
import { default as _TruckLayer } from './components/map/components/features/layers/
|
|
19
|
+
import { default as _TruckLayer } from './components/map/components/features/layers/RoadRestrictionLayer';
|
|
20
20
|
import { default as _IncidentsLayer } from './components/map/components/features/layers/IncidentsLayer';
|
|
21
21
|
import { default as _Circle } from './components/map/components/features/basics/Circle';
|
|
22
22
|
import { default as _MapSettings } from './components/map/components/features/MapSettings';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rio-cloud/rio-uikit",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2-beta.3",
|
|
4
4
|
"description": "The RIO UIKIT component library",
|
|
5
5
|
"repository": "https://collaboration.msi.audi.com/stash/projects/RIOFRONT/repos/uikit-web/browse",
|
|
6
6
|
"scripts": {
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
"@vitest/coverage-c8": "0.24.3",
|
|
69
69
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
|
|
70
70
|
"autoprefixer": "10.4.12",
|
|
71
|
-
"base64-font-loader": "0.0.4",
|
|
72
71
|
"copyfiles": "2.4.1",
|
|
73
72
|
"dotenv": "16.0.3",
|
|
74
73
|
"enzyme": "3.11.0",
|
|
@@ -86,8 +85,10 @@
|
|
|
86
85
|
"jsdom-global": "3.0.2",
|
|
87
86
|
"less": "4.1.3",
|
|
88
87
|
"license-checker": "25.0.1",
|
|
88
|
+
"postcss": "^8.4.19",
|
|
89
89
|
"postcss-preset-env": "7.8.2",
|
|
90
90
|
"postcss-short": "5.0.0",
|
|
91
|
+
"postcss-variable-compress": "^2.0.1",
|
|
91
92
|
"prettier": "2.7.1",
|
|
92
93
|
"react": "17.0.2",
|
|
93
94
|
"react-dom": "17.0.2",
|
|
@@ -127,6 +128,6 @@
|
|
|
127
128
|
"react-popper": "2.3.0",
|
|
128
129
|
"react-responsive": "9.0.0",
|
|
129
130
|
"react-transition-group": "4.4.5",
|
|
130
|
-
"recharts": "2.1.
|
|
131
|
+
"recharts": "^2.1.14"
|
|
131
132
|
}
|
|
132
133
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.activity {
|
|
2
2
|
align-items: center;
|
|
3
3
|
border-radius: @border-radius-round;
|
|
4
|
-
color:
|
|
4
|
+
color: var(--color-white);
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
font-weight: @font-normal;
|
|
7
7
|
|
|
@@ -23,34 +23,33 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&.activity-available {
|
|
26
|
-
background:
|
|
27
|
-
|
|
26
|
+
background-color: .hslb(@color-status-available-hsl, '-', '5%')[@result];
|
|
28
27
|
.activity-icon {
|
|
29
|
-
background:
|
|
28
|
+
background: var(--color-status-available);
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
&.activity-driving {
|
|
34
|
-
background:
|
|
33
|
+
background-color: .hslb(@color-status-driving-hsl, '-', '5%')[@result];
|
|
35
34
|
|
|
36
35
|
.activity-icon {
|
|
37
|
-
background:
|
|
36
|
+
background: var(--color-status-driving);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
&.activity-resting {
|
|
42
|
-
background:
|
|
41
|
+
background-color: .hslb(@color-status-resting-hsl, '-', '5%')[@result];
|
|
43
42
|
|
|
44
43
|
.activity-icon {
|
|
45
|
-
background:
|
|
44
|
+
background: var(--color-status-resting);
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
&.activity-working {
|
|
50
|
-
background:
|
|
49
|
+
background-color: .hslb(@color-status-working-hsl, '-', '5%')[@result];
|
|
51
50
|
|
|
52
51
|
.activity-icon {
|
|
53
|
-
background:
|
|
52
|
+
background: var(--color-status-working);
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.ApplicationHeader {
|
|
2
|
-
background-color:
|
|
2
|
+
background-color: var(--color-white);
|
|
3
3
|
border: none;
|
|
4
4
|
display: flex;
|
|
5
5
|
float: none !important;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
right: 0;
|
|
15
15
|
bottom: 0;
|
|
16
16
|
height: 1px;
|
|
17
|
-
background-color
|
|
17
|
+
background-color:var(--gray-light);
|
|
18
18
|
z-index: 1;
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
|
|
49
49
|
.CollapsedDropdown > .dropdown-menu {
|
|
50
50
|
> .ApplicationActionBar {
|
|
51
|
-
background-color:
|
|
52
|
-
//border-bottom: 1px solid
|
|
53
|
-
border-top: 1px solid
|
|
51
|
+
background-color: var(--gray-lightest);
|
|
52
|
+
//border-bottom: 1px solid var(--gray-lighter);
|
|
53
|
+
border-top: 1px solid var(--gray-lighter);
|
|
54
54
|
justify-content: flex-end;
|
|
55
55
|
position: relative;
|
|
56
56
|
width: 100%;
|
|
57
57
|
|
|
58
58
|
.ActionBarItemIcon .badge {
|
|
59
|
-
border-color:
|
|
59
|
+
border-color: var(--gray-lightest);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
|
|
83
83
|
.navbar-brand {
|
|
84
84
|
background-color: transparent !important;
|
|
85
|
-
background-image:
|
|
85
|
+
background-image: var(--brand-icon-rio) !important;
|
|
86
86
|
background-size: cover;
|
|
87
87
|
display: block;
|
|
88
88
|
height: @ApplicationLayoutHeaderHeighticon-height;
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
width: @ApplicationLayoutHeaderHeight;
|
|
93
93
|
|
|
94
94
|
&:after {
|
|
95
|
-
background:
|
|
95
|
+
background: var(--color-black);
|
|
96
96
|
bottom: 0;
|
|
97
97
|
content: '';
|
|
98
98
|
display: block;
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
&.home-icon {
|
|
107
|
-
background-image:
|
|
107
|
+
background-image: var(--brand-icon-home) !important;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
> a,
|
|
@@ -116,28 +116,23 @@
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.ApplicationActionBar {
|
|
119
|
-
background-color:
|
|
119
|
+
background-color: var(--color-white);
|
|
120
120
|
cursor: auto;
|
|
121
121
|
display: flex;
|
|
122
122
|
|
|
123
|
-
// position: absolute;
|
|
124
|
-
// right: 0;
|
|
125
|
-
// top: 0;
|
|
126
|
-
|
|
127
123
|
> .navigationItem {
|
|
128
124
|
align-items: center;
|
|
129
|
-
color:
|
|
125
|
+
color: var(--gray);
|
|
130
126
|
cursor: pointer;
|
|
131
127
|
display: flex;
|
|
132
|
-
fill:
|
|
128
|
+
fill: var(--gray-darkest);
|
|
133
129
|
height: @ApplicationLayoutHeaderHeightWithoutBorder;
|
|
134
130
|
justify-content: center;
|
|
135
131
|
position: relative;
|
|
136
|
-
//text-align: center;
|
|
137
132
|
|
|
138
133
|
&:hover .icon {
|
|
139
|
-
color:
|
|
140
|
-
fill:
|
|
134
|
+
color: var(--color-black);
|
|
135
|
+
fill: var(--color-black);
|
|
141
136
|
}
|
|
142
137
|
|
|
143
138
|
> .ActionBarItem {
|
|
@@ -203,7 +198,7 @@
|
|
|
203
198
|
|
|
204
199
|
&Icon {
|
|
205
200
|
margin-top: 2px;
|
|
206
|
-
color:
|
|
201
|
+
color: var(--gray-darkest);
|
|
207
202
|
font-size: 16px;
|
|
208
203
|
}
|
|
209
204
|
|
|
@@ -239,8 +234,8 @@
|
|
|
239
234
|
max-width: calc(~'100% - @{ApplicationLayoutHeaderHeight}');
|
|
240
235
|
|
|
241
236
|
// NOTE: enforce it with important so all services look similar
|
|
242
|
-
background-color:
|
|
243
|
-
color:
|
|
237
|
+
// background-color: var(--color-white) !important;
|
|
238
|
+
color: var(--color-black) !important;
|
|
244
239
|
|
|
245
240
|
.dropdown {
|
|
246
241
|
width: 300px;
|
|
@@ -271,7 +266,7 @@
|
|
|
271
266
|
|
|
272
267
|
// Style the separator between main dropdown and submodules
|
|
273
268
|
&:after {
|
|
274
|
-
background-color:
|
|
269
|
+
background-color: var(--gray-lighter);
|
|
275
270
|
bottom: 15px;
|
|
276
271
|
content: '';
|
|
277
272
|
display: block;
|
|
@@ -328,7 +323,7 @@
|
|
|
328
323
|
overflow-y: auto;
|
|
329
324
|
|
|
330
325
|
> li > a {
|
|
331
|
-
color:
|
|
326
|
+
color: var(--color-black);
|
|
332
327
|
font-size: 14px;
|
|
333
328
|
font-weight: @font-medium;
|
|
334
329
|
padding: 5px @ApplicationLayoutHeaderHeightpadding-horizontal;
|
|
@@ -397,7 +392,7 @@
|
|
|
397
392
|
|
|
398
393
|
> a {
|
|
399
394
|
background-color: transparent;
|
|
400
|
-
color:
|
|
395
|
+
color: var(--gray);
|
|
401
396
|
cursor: pointer;
|
|
402
397
|
font-size: 14px;
|
|
403
398
|
margin: 0 15px;
|
|
@@ -419,7 +414,7 @@
|
|
|
419
414
|
&.disabled,
|
|
420
415
|
&:disabled {
|
|
421
416
|
> a {
|
|
422
|
-
color:
|
|
417
|
+
color: var(--gray-light)
|
|
423
418
|
}
|
|
424
419
|
}
|
|
425
420
|
|
|
@@ -430,11 +425,11 @@
|
|
|
430
425
|
&:hover > a {
|
|
431
426
|
&:not(.disabled):not(:disabled) {
|
|
432
427
|
background-color: transparent;
|
|
433
|
-
box-shadow: inset 0 -4px 0
|
|
434
|
-
color:
|
|
428
|
+
box-shadow: inset 0 -4px 0 var(--color-black), 0 0px 0 var(--color-black);
|
|
429
|
+
color: var(--color-black);
|
|
435
430
|
|
|
436
431
|
&:after {
|
|
437
|
-
background-color:
|
|
432
|
+
background-color: var(--color-black);
|
|
438
433
|
height: 3px;
|
|
439
434
|
width: 100%;
|
|
440
435
|
z-index: 1;
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
.ApplicationLayoutBodyNavigation {
|
|
57
57
|
&:not(.unstyled) {
|
|
58
58
|
align-items: center;
|
|
59
|
-
background:
|
|
60
|
-
border-bottom: 1px solid
|
|
59
|
+
background: var(--color-white);
|
|
60
|
+
border-bottom: 1px solid var(--gray-light);
|
|
61
61
|
display: flex;
|
|
62
62
|
justify-content: space-between;
|
|
63
63
|
// padding: 0 @ApplicationLayoutBodyPadding*0.25 0 @ApplicationLayoutBodyPadding*0.5;
|
|
@@ -85,14 +85,14 @@
|
|
|
85
85
|
|
|
86
86
|
&:hover,
|
|
87
87
|
&:focus {
|
|
88
|
-
box-shadow: inset 0px -2px 0px 0px
|
|
88
|
+
box-shadow: inset 0px -2px 0px 0px var(--color-black);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
&.active,
|
|
93
93
|
&:active {
|
|
94
94
|
> a, > span, > div {
|
|
95
|
-
box-shadow: inset 0px -3px 0px 0px
|
|
95
|
+
box-shadow: inset 0px -3px 0px 0px var(--color-black);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -175,10 +175,10 @@
|
|
|
175
175
|
|
|
176
176
|
.ApplicationLayoutBodyBottomBar {
|
|
177
177
|
align-items: center;
|
|
178
|
-
background-color:
|
|
179
|
-
border-top: 1px solid
|
|
178
|
+
background-color: var(--color-white);
|
|
179
|
+
border-top: 1px solid var(--gray-light);
|
|
180
180
|
display: flex;
|
|
181
|
-
height: @
|
|
181
|
+
height: @ApplicationLayoutBodyBottomBarHeight;
|
|
182
182
|
padding: 10px;
|
|
183
183
|
|
|
184
184
|
&.use-body-padding {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
@asset-tree-shadow-color:
|
|
1
|
+
@asset-tree-shadow-color: .hsla(@always-color-black-hsl, 0.1)[@result];
|
|
2
2
|
@asset-tree-collapsed-width: 50px;
|
|
3
|
+
@asset-tree-sidebar-bg: @always-color-black;
|
|
4
|
+
@asset-tree-sidebar-icon-color: @always-color-white;
|
|
3
5
|
|
|
4
6
|
// font-weight hotfix old tree
|
|
5
7
|
.ObjectTree {
|
|
@@ -9,7 +11,7 @@
|
|
|
9
11
|
.AssetTree {
|
|
10
12
|
position: relative;
|
|
11
13
|
height: 100%;
|
|
12
|
-
background-color:
|
|
14
|
+
background-color: var(--color-white);
|
|
13
15
|
|
|
14
16
|
&Content {
|
|
15
17
|
display: flex;
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
.TreeSidebar {
|
|
20
|
-
background: @
|
|
22
|
+
background: @asset-tree-sidebar-bg;
|
|
21
23
|
display: flex;
|
|
22
24
|
flex-direction: column;
|
|
23
25
|
min-width: @asset-tree-collapsed-width;
|
|
@@ -31,7 +33,7 @@
|
|
|
31
33
|
width: @asset-tree-collapsed-width;
|
|
32
34
|
|
|
33
35
|
.rioglyph {
|
|
34
|
-
color: @color
|
|
36
|
+
color: @asset-tree-sidebar-icon-color;
|
|
35
37
|
font-size: 18px;
|
|
36
38
|
height: @asset-tree-collapsed-width;
|
|
37
39
|
line-height: @asset-tree-collapsed-width;
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
|
|
71
73
|
li {
|
|
72
74
|
align-items: center;
|
|
73
|
-
color: @color
|
|
75
|
+
color: @asset-tree-sidebar-icon-color;
|
|
74
76
|
cursor: pointer;
|
|
75
77
|
display: flex;
|
|
76
78
|
font-size: 30px;
|
|
@@ -93,7 +95,7 @@
|
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
&.active {
|
|
96
|
-
color: @color
|
|
98
|
+
color: @asset-tree-sidebar-icon-color;
|
|
97
99
|
|
|
98
100
|
&:before, &:after {
|
|
99
101
|
border-color: transparent;
|
|
@@ -109,12 +111,12 @@
|
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
&:before {
|
|
112
|
-
border-right-color: @
|
|
114
|
+
border-right-color: @asset-tree-sidebar-bg;
|
|
113
115
|
right: 1px;
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
&:after {
|
|
117
|
-
border-right-color:
|
|
119
|
+
border-right-color: var(--color-white);
|
|
118
120
|
right: 0;
|
|
119
121
|
}
|
|
120
122
|
|
|
@@ -125,9 +127,9 @@
|
|
|
125
127
|
|
|
126
128
|
&.selected {
|
|
127
129
|
.selection-bubble:after {
|
|
128
|
-
background:
|
|
130
|
+
background: var(--brand-primary);
|
|
129
131
|
border-radius: @border-radius-round;
|
|
130
|
-
border: 2px solid
|
|
132
|
+
border: 2px solid var(--color-black);
|
|
131
133
|
content: '';
|
|
132
134
|
height: 14px;
|
|
133
135
|
position: absolute;
|
|
@@ -144,7 +146,7 @@
|
|
|
144
146
|
position: absolute;
|
|
145
147
|
height: 100%;
|
|
146
148
|
width: 0;
|
|
147
|
-
border: 1px dashed
|
|
149
|
+
border: 1px dashed var(--gray-darkest);
|
|
148
150
|
opacity: 0.2;
|
|
149
151
|
pointer-events: none;
|
|
150
152
|
}
|
|
@@ -153,12 +155,12 @@
|
|
|
153
155
|
.ApplicationLayoutSidebar:not(.right) & {
|
|
154
156
|
float: left;
|
|
155
157
|
left: 0;
|
|
156
|
-
box-shadow: 1px 0 0 0
|
|
158
|
+
box-shadow: 1px 0 0 0 var(--gray-light);
|
|
157
159
|
}
|
|
158
160
|
|
|
159
161
|
.ApplicationLayoutSidebar.right & {
|
|
160
162
|
float: right;
|
|
161
|
-
box-shadow: -1px 0 0 0
|
|
163
|
+
box-shadow: -1px 0 0 0 var(--gray-light);
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
|
|
@@ -179,25 +181,25 @@
|
|
|
179
181
|
|
|
180
182
|
html:not(.ua-desktop) & {
|
|
181
183
|
.TreeSidebar {
|
|
182
|
-
background:
|
|
183
|
-
box-shadow: inset -1px 0
|
|
184
|
+
background: var(--gray-lightest);
|
|
185
|
+
box-shadow: inset -1px 0 var(--gray-light);
|
|
184
186
|
}
|
|
185
187
|
|
|
186
188
|
&.closed {
|
|
187
189
|
.TreeSidebar {
|
|
188
|
-
background:
|
|
190
|
+
background: var(--color-white);
|
|
189
191
|
}
|
|
190
192
|
}
|
|
191
193
|
|
|
192
194
|
.TreeSidebarToggle {
|
|
193
195
|
.rioglyph {
|
|
194
|
-
color:
|
|
196
|
+
color: var(--color-black);
|
|
195
197
|
}
|
|
196
198
|
}
|
|
197
199
|
|
|
198
200
|
.TreeSidebarNavigation {
|
|
199
201
|
li {
|
|
200
|
-
color:
|
|
202
|
+
color: var(--color-black);
|
|
201
203
|
|
|
202
204
|
.rioglyph {
|
|
203
205
|
opacity: 0.5;
|
|
@@ -205,11 +207,11 @@
|
|
|
205
207
|
|
|
206
208
|
&.active {
|
|
207
209
|
&:before {
|
|
208
|
-
border-right-color:
|
|
210
|
+
border-right-color: var(--gray-light);
|
|
209
211
|
}
|
|
210
212
|
|
|
211
213
|
&:after {
|
|
212
|
-
border-right-color:
|
|
214
|
+
border-right-color: var(--color-white);
|
|
213
215
|
}
|
|
214
216
|
|
|
215
217
|
.rioglyph {
|
|
@@ -219,7 +221,7 @@
|
|
|
219
221
|
|
|
220
222
|
&.selected {
|
|
221
223
|
.selection-bubble:after {
|
|
222
|
-
border: 2px solid
|
|
224
|
+
border: 2px solid var(--gray-lightest);
|
|
223
225
|
}
|
|
224
226
|
}
|
|
225
227
|
}
|
|
@@ -229,11 +231,11 @@
|
|
|
229
231
|
|
|
230
232
|
// TREE
|
|
231
233
|
.TreeHeader {
|
|
232
|
-
background:
|
|
234
|
+
background: var(--color-white);
|
|
233
235
|
position: sticky;
|
|
234
236
|
top: 0;
|
|
235
237
|
z-index: 1;
|
|
236
|
-
border-bottom: 1px solid
|
|
238
|
+
border-bottom: 1px solid var(--gray-light);
|
|
237
239
|
|
|
238
240
|
.TreeHead {
|
|
239
241
|
min-height: 50px;
|
|
@@ -304,13 +306,13 @@
|
|
|
304
306
|
|
|
305
307
|
.TreeNode,
|
|
306
308
|
.TreeLeaf {
|
|
307
|
-
background:
|
|
308
|
-
border-bottom: 1px solid
|
|
309
|
+
background: var(--color-white);
|
|
310
|
+
border-bottom: 1px solid var(--gray-lighter);
|
|
309
311
|
display: flex;
|
|
310
312
|
padding: 0 10px 0 15px;
|
|
311
313
|
|
|
312
314
|
&:hover {
|
|
313
|
-
background-color:
|
|
315
|
+
background-color: var(--gray-lightest);
|
|
314
316
|
}
|
|
315
317
|
|
|
316
318
|
&.active {
|
|
@@ -365,7 +367,7 @@
|
|
|
365
367
|
|
|
366
368
|
.TreeLabelNameTextSubline {
|
|
367
369
|
font-size: 12px;
|
|
368
|
-
color:
|
|
370
|
+
color: var(--gray);
|
|
369
371
|
}
|
|
370
372
|
}
|
|
371
373
|
|
|
@@ -384,7 +386,7 @@
|
|
|
384
386
|
}
|
|
385
387
|
|
|
386
388
|
.TreeLabelExpander {
|
|
387
|
-
color:
|
|
389
|
+
color: var(--gray-dark);
|
|
388
390
|
position: absolute;
|
|
389
391
|
right: 5px;
|
|
390
392
|
top: 50%;
|