@rio-cloud/rio-uikit 0.16.3-beta.2 → 0.16.3-beta.5

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 (63) hide show
  1. package/Colors.d.ts +1 -1
  2. package/IncidentsLayer.d.ts +1 -1
  3. package/README.md +1 -1
  4. package/RuleContainer.d.ts +1 -1
  5. package/RulesWrapper.d.ts +1 -1
  6. package/SortDirection.d.ts +1 -1
  7. package/TrafficLayer.d.ts +1 -1
  8. package/TruckLayer.d.ts +1 -1
  9. package/components/actionBarItem/ActionBarItem.js +6 -2
  10. package/components/assetTree/Tree.js +2 -1
  11. package/components/bottomSheet/BottomSheet.js +22 -19
  12. package/components/fade/Fade.js +23 -7
  13. package/components/map/components/features/basics/marker/DomMarker.js +1 -1
  14. package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +28 -28
  15. package/hooks/useDebugInfo.js +1 -1
  16. package/hooks/usePrevious.js +18 -0
  17. package/index.js +1 -0
  18. package/lib/.DS_Store +0 -0
  19. package/lib/es/Colors.d.ts +1 -1
  20. package/lib/es/IncidentsLayer.d.ts +1 -1
  21. package/lib/es/RuleContainer.d.ts +1 -1
  22. package/lib/es/RulesWrapper.d.ts +1 -1
  23. package/lib/es/SortDirection.d.ts +1 -1
  24. package/lib/es/TrafficLayer.d.ts +1 -1
  25. package/lib/es/TruckLayer.d.ts +1 -1
  26. package/lib/es/components/actionBarItem/ActionBarItem.js +6 -2
  27. package/lib/es/components/assetTree/Tree.js +2 -1
  28. package/lib/es/components/bottomSheet/BottomSheet.js +22 -19
  29. package/lib/es/components/fade/Fade.js +26 -7
  30. package/lib/es/components/map/components/features/basics/marker/DomMarker.js +1 -1
  31. package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +28 -28
  32. package/lib/es/hooks/useDebugInfo.js +1 -1
  33. package/lib/es/hooks/usePrevious.js +25 -0
  34. package/lib/es/index.js +8 -0
  35. package/lib/es/styles/components/ApplicationHeader.less +27 -12
  36. package/lib/es/styles/components/BottomSheet.less +10 -1
  37. package/lib/es/styles/components/Dialog.less +38 -44
  38. package/lib/es/styles/components/Sidebar.less +10 -1
  39. package/lib/es/styles/design/popovers.less +1 -1
  40. package/lib/es/styles/design/utilities.less +8 -0
  41. package/lib/es/styles/variables/colors.json +72 -72
  42. package/lib/es/themes/Website/styles/rio-website.less +2 -1
  43. package/lib/es/types.ts +7 -2
  44. package/lib/es/usePrevious.d.ts +4 -0
  45. package/lib/es/usePrevious.js +13 -0
  46. package/lib/es/utils/cssuseragent.js +66 -66
  47. package/lib/es/utils/searchNormalized.js +14 -0
  48. package/lib/es/version.json +2 -2
  49. package/package.json +35 -26
  50. package/styles/components/ApplicationHeader.less +27 -12
  51. package/styles/components/BottomSheet.less +10 -1
  52. package/styles/components/Dialog.less +38 -44
  53. package/styles/components/Sidebar.less +10 -1
  54. package/styles/design/popovers.less +1 -1
  55. package/styles/design/utilities.less +8 -0
  56. package/styles/variables/colors.json +72 -72
  57. package/themes/Website/styles/rio-website.less +2 -1
  58. package/types.ts +7 -2
  59. package/usePrevious.d.ts +4 -0
  60. package/usePrevious.js +2 -0
  61. package/utils/cssuseragent.js +66 -66
  62. package/utils/searchNormalized.js +6 -0
  63. package/version.json +2 -2
@@ -1,73 +1,73 @@
1
1
  {
2
- "always-color-white": "#ffffff",
3
- "always-color-black": "#000000",
4
- "color-white": "#ffffff",
5
- "color-black": "#000000",
6
- "gray-darkest": "#2a3740",
7
- "gray-darker": "#4C5667",
8
- "gray-dark": "#697A8B",
9
- "gray": "#A7AFBB",
10
- "gray-light": "#D0D8DE",
11
- "gray-lighter": "#E5EBF0",
12
- "gray-lightest": "#f6f8f9",
13
- "brand-primary": "#30b4c0",
14
- "brand-secondary": "#b23672",
15
- "brand-primary-decent": "#f4fbfc",
16
- "brand-secondary-decent": "#fbf5f8",
17
- "brand-info": "#4B80A6",
18
- "brand-success": "#5cb85c",
19
- "brand-warning": "#ff8e3c",
20
- "brand-danger": "#d90000",
21
- "brand-info-decent": "#f5f8fb",
22
- "brand-success-decent": "#f6fbf5",
23
- "brand-warning-decent": "#fdf5f0",
24
- "brand-danger-decent": "#fdf3f3",
25
- "color-code": "#f3f3f4",
26
- "color-status-available": "#239b7d",
27
- "color-status-driving": "#3690ae",
28
- "color-status-resting": "#626b72",
29
- "color-status-working": "#94488b",
30
- "color-map-marker-active": "#ffffff",
31
- "color-map-marker-asset": "#2a3740",
32
- "color-map-marker-poi": "#b23672",
33
- "color-map-marker-geofence": "#5a4876",
34
- "color-map-marker-route": "#3690ae",
35
- "color-map-marker-text": "#ffffff",
36
- "color-map-marker-active-night": "#ededed",
37
- "color-map-marker-asset-night": "#6e757a",
38
- "color-map-marker-poi-night": "#b23672",
39
- "color-map-marker-geofence-night": "#79619f",
40
- "color-map-marker-route-night": "#3b9fc1",
41
- "color-map-marker-text-night": "#ededed",
42
- "color-rating-1": "#d90000",
43
- "color-rating-2": "#ff8e3c",
44
- "color-rating-3": "#f8c575",
45
- "color-rating-4": "#5cb85c",
46
- "color-rating-5": "#4b924c",
47
- "color-highlight-darkest": "#114146",
48
- "color-highlight-darker": "#1c686e",
49
- "color-highlight-dark": "#268e97",
50
- "color-highlight": "#30b4c0",
51
- "color-highlight-light": "#8ddbe3",
52
- "color-highlight-lighter": "#cef0f3",
53
- "color-highlight-lightest": "#ebf9fa",
54
- "color-highlight-decent": "#f3fbfc",
55
- "color-coldplay-wine": "#520D4E",
56
- "color-coldplay-aubergine": "#5a4876",
57
- "color-coldplay-kashmir": "#536E8B",
58
- "color-coldplay-fountain": "#67abc5",
59
- "color-coldplay-turquoise": "#4ECCC1",
60
- "color-coldplay-bermuda": "#79D4B3",
61
- "color-coldplay-moos": "#A1DAA3",
62
- "color-coldplay-primrose": "#C7E291",
63
- "color-coldplay-khaki": "#F0EB83",
64
- "color-warmup-crimson": "#31144F",
65
- "color-warmup-victoria": "#493D6D",
66
- "color-warmup-cadillac": "#7E3E72",
67
- "color-warmup-raspberry": "#B23672",
68
- "color-warmup-cerise": "#E72472",
69
- "color-warmup-charm": "#C9778D",
70
- "color-warmup-salmon": "#F19588",
71
- "color-warmup-cherokee": "#F5BB89",
72
- "color-warmup-corn": "#FDE082"
73
- }
2
+ "always-color-white": "#ffffff",
3
+ "always-color-black": "#000000",
4
+ "color-white": "#ffffff",
5
+ "color-black": "#000000",
6
+ "gray-darkest": "#2a3740",
7
+ "gray-darker": "#4C5667",
8
+ "gray-dark": "#697A8B",
9
+ "gray": "#A7AFBB",
10
+ "gray-light": "#D0D8DE",
11
+ "gray-lighter": "#E5EBF0",
12
+ "gray-lightest": "#f6f8f9",
13
+ "brand-primary": "#30b4c0",
14
+ "brand-secondary": "#b23672",
15
+ "brand-primary-decent": "#f4fbfc",
16
+ "brand-secondary-decent": "#fbf5f8",
17
+ "brand-info": "#4B80A6",
18
+ "brand-success": "#5cb85c",
19
+ "brand-warning": "#ff8e3c",
20
+ "brand-danger": "#d90000",
21
+ "brand-info-decent": "#f5f8fb",
22
+ "brand-success-decent": "#f6fbf5",
23
+ "brand-warning-decent": "#fdf5f0",
24
+ "brand-danger-decent": "#fdf3f3",
25
+ "color-code": "#f3f3f4",
26
+ "color-status-available": "#239b7d",
27
+ "color-status-driving": "#3690ae",
28
+ "color-status-resting": "#626b72",
29
+ "color-status-working": "#94488b",
30
+ "color-map-marker-active": "#ffffff",
31
+ "color-map-marker-asset": "#2a3740",
32
+ "color-map-marker-poi": "#b23672",
33
+ "color-map-marker-geofence": "#5a4876",
34
+ "color-map-marker-route": "#3690ae",
35
+ "color-map-marker-text": "#ffffff",
36
+ "color-map-marker-active-night": "#ededed",
37
+ "color-map-marker-asset-night": "#6e757a",
38
+ "color-map-marker-poi-night": "#b23672",
39
+ "color-map-marker-geofence-night": "#79619f",
40
+ "color-map-marker-route-night": "#3b9fc1",
41
+ "color-map-marker-text-night": "#ededed",
42
+ "color-rating-1": "#d90000",
43
+ "color-rating-2": "#ff8e3c",
44
+ "color-rating-3": "#f8c575",
45
+ "color-rating-4": "#5cb85c",
46
+ "color-rating-5": "#4b924c",
47
+ "color-highlight-darkest": "#114146",
48
+ "color-highlight-darker": "#1c686e",
49
+ "color-highlight-dark": "#268e97",
50
+ "color-highlight": "#30b4c0",
51
+ "color-highlight-light": "#8ddbe3",
52
+ "color-highlight-lighter": "#cef0f3",
53
+ "color-highlight-lightest": "#ebf9fa",
54
+ "color-highlight-decent": "#f3fbfc",
55
+ "color-coldplay-wine": "#520D4E",
56
+ "color-coldplay-aubergine": "#5a4876",
57
+ "color-coldplay-kashmir": "#536E8B",
58
+ "color-coldplay-fountain": "#67abc5",
59
+ "color-coldplay-turquoise": "#4ECCC1",
60
+ "color-coldplay-bermuda": "#79D4B3",
61
+ "color-coldplay-moos": "#A1DAA3",
62
+ "color-coldplay-primrose": "#C7E291",
63
+ "color-coldplay-khaki": "#F0EB83",
64
+ "color-warmup-crimson": "#31144F",
65
+ "color-warmup-victoria": "#493D6D",
66
+ "color-warmup-cadillac": "#7E3E72",
67
+ "color-warmup-raspberry": "#B23672",
68
+ "color-warmup-cerise": "#E72472",
69
+ "color-warmup-charm": "#C9778D",
70
+ "color-warmup-salmon": "#F19588",
71
+ "color-warmup-cherokee": "#F5BB89",
72
+ "color-warmup-corn": "#FDE082"
73
+ }
@@ -369,8 +369,9 @@ body .module-content {
369
369
  display: none;
370
370
  left: 0;
371
371
  position: absolute;
372
- top: 100%;
372
+ top: calc(100% - 1px);
373
373
  width: auto;
374
+ z-index: 1;
374
375
 
375
376
  li {
376
377
  float: none;
package/lib/es/types.ts CHANGED
@@ -16,8 +16,11 @@ export interface ActionBarItemPopoverProps {
16
16
 
17
17
  export interface ActionBarItemProps {
18
18
  id?: string;
19
- className?: string;
20
19
  title?: string | React.ReactNode;
20
+ className?: string;
21
+ hidePopoverOnClick?: boolean;
22
+ popoverWidth?: 100 | 150 | 200 | 250 | 300 | 350 | 400 | 450 | 500;
23
+ mobileDialogBodyClassName?: string;
21
24
  }
22
25
 
23
26
  export interface ActionBarItemListProps {
@@ -297,7 +300,7 @@ export interface BottomSheetProps {
297
300
  showCloseButton?: boolean;
298
301
  showMaximizeButton?: boolean;
299
302
  onHeightChange?: Function;
300
- detatch?: boolean;
303
+ detach?: boolean;
301
304
  useBackdrop?: boolean;
302
305
  onBackdropClick?: Function;
303
306
  bodyRef?: React.MutableRefObject<object>;
@@ -2236,6 +2239,8 @@ export type UseWindowResize = (callback: () => void, timeout?: number) => void;
2236
2239
 
2237
2240
  export type UseDarkMode = () => boolean;
2238
2241
 
2242
+ export type UsePrevious = <T>(state: T | undefined | null) => T | undefined | null;
2243
+
2239
2244
  export type UseMutationObserver = (
2240
2245
  targetElement: HTMLElement | React.MutableRefObject<object> | null | undefined,
2241
2246
  callback: MutationCallback | undefined,
@@ -0,0 +1,4 @@
1
+ declare module '@rio-cloud/rio-uikit/lib/es/usePrevious' {
2
+ import { UsePrevious } from './types';
3
+ export default UsePrevious;
4
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "default", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _usePrevious2["default"];
11
+ }
12
+ });
13
+ var _usePrevious2 = _interopRequireDefault(require("./hooks/usePrevious"));
@@ -4,90 +4,90 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.cssua = void 0;
7
- /**
8
- * CssUserAgent (cssua.js) v2.1.31
9
- * http://cssuseragent.org
10
- *
11
- * Copyright (c)2006-2015 Stephen M. McKamey.
12
- * Licensed under The MIT License.
7
+ /**
8
+ * CssUserAgent (cssua.js) v2.1.31
9
+ * http://cssuseragent.org
10
+ *
11
+ * Copyright (c)2006-2015 Stephen M. McKamey.
12
+ * Licensed under The MIT License.
13
13
  */
14
14
  /*jshint smarttabs:true, regexp:false, browser:true */
15
15
 
16
- /**
17
- * @param html {Object} root DOM element
18
- * @param userAgent {string} browser userAgent string
19
- * @return {Object}
16
+ /**
17
+ * @param html {Object} root DOM element
18
+ * @param userAgent {string} browser userAgent string
19
+ * @return {Object}
20
20
  */
21
21
  var cssua = function cssua(html, userAgent, sa) {
22
22
  'use strict';
23
23
 
24
- /**
25
- * @const
26
- * @type {string}
24
+ /**
25
+ * @const
26
+ * @type {string}
27
27
  */
28
28
  var PREFIX = ' ua-';
29
29
 
30
- /**
31
- * @const
32
- * @type {RegExp}
30
+ /**
31
+ * @const
32
+ * @type {RegExp}
33
33
  */
34
34
  var R_Platform = /\s*([\-\w ]+)[\s\/\:]([\d_]+\b(?:[\-\._\/]\w+)*)/;
35
35
 
36
- /**
37
- * @const
38
- * @type {RegExp}
36
+ /**
37
+ * @const
38
+ * @type {RegExp}
39
39
  */
40
40
  var R_Version = /([\w\-\.]+[\s\/][v]?[\d_]+\b(?:[\-\._\/]\w+)*)/g;
41
41
 
42
- /**
43
- * @const
44
- * @type {RegExp}
42
+ /**
43
+ * @const
44
+ * @type {RegExp}
45
45
  */
46
46
  var R_BlackBerry = /\b(?:(blackberry\w*|bb10)|(rim tablet os))(?:\/(\d+\.\d+(?:\.\w+)*))?/;
47
47
 
48
- /**
49
- * @const
50
- * @type {RegExp}
48
+ /**
49
+ * @const
50
+ * @type {RegExp}
51
51
  */
52
52
  var R_Silk = /\bsilk-accelerated=true\b/;
53
53
 
54
- /**
55
- * @const
56
- * @type {RegExp}
54
+ /**
55
+ * @const
56
+ * @type {RegExp}
57
57
  */
58
58
  var R_FluidApp = /\bfluidapp\b/;
59
59
 
60
- /**
61
- * @const
62
- * @type {RegExp}
60
+ /**
61
+ * @const
62
+ * @type {RegExp}
63
63
  */
64
64
  var R_desktop = /(\bwindows\b|\bmacintosh\b|\blinux\b|\bunix\b)/;
65
65
 
66
- /**
67
- * @const
68
- * @type {RegExp}
66
+ /**
67
+ * @const
68
+ * @type {RegExp}
69
69
  */
70
70
  var R_mobile = /(\bandroid\b|\bipad\b|\bipod\b|\bwindows phone\b|\bwpdesktop\b|\bxblwp7\b|\bzunewp7\b|\bwindows ce\b|\bblackberry\w*|\bbb10\b|\brim tablet os\b|\bmeego|\bwebos\b|\bpalm|\bsymbian|\bj2me\b|\bdocomo\b|\bpda\b|\bchtml\b|\bmidp\b|\bcldc\b|\w*?mobile\w*?|\w*?phone\w*?)/;
71
71
 
72
- /**
73
- * @const
74
- * @type {RegExp}
72
+ /**
73
+ * @const
74
+ * @type {RegExp}
75
75
  */
76
76
  var R_game = /(\bxbox\b|\bplaystation\b|\bnintendo\s+\w+)/;
77
77
 
78
- /**
79
- * The root CssUserAgent
80
- * @type {Object}
78
+ /**
79
+ * The root CssUserAgent
80
+ * @type {Object}
81
81
  */
82
82
  var cssua = {
83
83
  parse:
84
- /**
85
- * @param uaStr {string}
86
- * @return {Object}
84
+ /**
85
+ * @param uaStr {string}
86
+ * @return {Object}
87
87
  */
88
88
  function parse(uaStr, sa) {
89
- /**
90
- * @type {Object}
89
+ /**
90
+ * @type {Object}
91
91
  */
92
92
  var ua = {};
93
93
  if (sa) {
@@ -240,21 +240,21 @@ var cssua = function cssua(html, userAgent, sa) {
240
240
  return ua;
241
241
  },
242
242
  format:
243
- /**
244
- * @param ua {Object}
245
- * @return {string}
243
+ /**
244
+ * @param ua {Object}
245
+ * @return {string}
246
246
  */
247
247
  function format(ua) {
248
- /**
249
- * @param b {string} browser key
250
- * @param v {string} browser value
251
- * @return {string} formatted CSS classes
248
+ /**
249
+ * @param b {string} browser key
250
+ * @param v {string} browser value
251
+ * @return {string} formatted CSS classes
252
252
  */
253
253
  function format(b, v) {
254
254
  b = b.split('.').join('-');
255
255
 
256
- /**
257
- * @type {string}
256
+ /**
257
+ * @type {string}
258
258
  */
259
259
  var css = PREFIX + b;
260
260
  if (typeof v === 'string') {
@@ -271,8 +271,8 @@ var cssua = function cssua(html, userAgent, sa) {
271
271
  return css;
272
272
  }
273
273
 
274
- /**
275
- * @type {string}
274
+ /**
275
+ * @type {string}
276
276
  */
277
277
  var uaCss = '';
278
278
  for (var b in ua) {
@@ -285,10 +285,10 @@ var cssua = function cssua(html, userAgent, sa) {
285
285
  return uaCss;
286
286
  },
287
287
  encode:
288
- /**
289
- * Encodes parsed userAgent object as a compact URI-Encoded key-value collection
290
- * @param ua {Object}
291
- * @return {string}
288
+ /**
289
+ * Encodes parsed userAgent object as a compact URI-Encoded key-value collection
290
+ * @param ua {Object}
291
+ * @return {string}
292
292
  */
293
293
  function encode(ua) {
294
294
  var query = '';
@@ -304,15 +304,15 @@ var cssua = function cssua(html, userAgent, sa) {
304
304
  }
305
305
  };
306
306
 
307
- /**
308
- * @const
309
- * @type {Object}
307
+ /**
308
+ * @const
309
+ * @type {Object}
310
310
  */
311
311
  cssua.userAgent = cssua.ua = cssua.parse(userAgent, sa);
312
312
 
313
- /**
314
- * @const
315
- * @type {string}
313
+ /**
314
+ * @const
315
+ * @type {string}
316
316
  */
317
317
  var ua = cssua.format(cssua.ua) + ' js';
318
318
 
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.searchNormalized = exports.normalizeForSearch = void 0;
7
+ var normalizeForSearch = function normalizeForSearch(input) {
8
+ return input.replaceAll(/\s+/g, ' ').toLowerCase();
9
+ };
10
+ exports.normalizeForSearch = normalizeForSearch;
11
+ var searchNormalized = function searchNormalized(input, search) {
12
+ return normalizeForSearch(input).includes(normalizeForSearch(search));
13
+ };
14
+ exports.searchNormalized = searchNormalized;
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.3-beta.2"
3
- }
2
+ "version": "0.16.3-beta.5"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rio-cloud/rio-uikit",
3
- "version": "0.16.3-beta.2",
3
+ "version": "0.16.3-beta.5",
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": {
@@ -22,6 +22,9 @@
22
22
  "build:style-xmas": "vite build --mode style-xmas",
23
23
  "fixEsmImports": "node tools/fixEsmImportsInDeclarations.mjs",
24
24
  "fixCssMinified": "node tools/fixCssMinified.mjs",
25
+ "format-code": "npm run format-code:uikit && npm run format-code:demo",
26
+ "format-code:uikit": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,md}\"",
27
+ "format-code:demo": "prettier --write \"uikit-demo/src/**/*.{js,jsx,ts,tsx,json,md}\"",
25
28
  "copy-to-package": "copyfiles package.json README.md LICENSE package",
26
29
  "test": "vitest run",
27
30
  "test:ci": "vitest run --reporter=junit --outputFile.junit=./results/jest/junit.xml",
@@ -42,62 +45,64 @@
42
45
  "**/*.*"
43
46
  ],
44
47
  "devDependencies": {
45
- "@babel/cli": "7.20.7",
46
- "@babel/core": "7.20.12",
48
+ "@babel/cli": "7.21.0",
49
+ "@babel/core": "7.21.0",
47
50
  "@babel/eslint-parser": "7.19.1",
48
51
  "@babel/plugin-proposal-class-properties": "7.18.6",
49
52
  "@babel/plugin-proposal-object-rest-spread": "7.20.7",
50
53
  "@babel/plugin-syntax-dynamic-import": "7.8.3",
51
- "@babel/plugin-transform-modules-commonjs": "7.20.11",
54
+ "@babel/plugin-transform-modules-commonjs": "7.21.2",
52
55
  "@babel/plugin-transform-react-display-name": "7.18.6",
53
- "@babel/plugin-transform-react-jsx": "7.20.7",
54
- "@babel/plugin-transform-runtime": "7.19.6",
56
+ "@babel/plugin-transform-react-jsx": "7.21.0",
57
+ "@babel/plugin-transform-runtime": "7.21.0",
55
58
  "@babel/preset-env": "7.20.2",
56
59
  "@babel/preset-react": "7.18.6",
57
- "@babel/runtime": "7.20.7",
60
+ "@babel/runtime": "7.21.0",
58
61
  "@testing-library/jest-dom": "5.16.5",
59
62
  "@testing-library/react": "12.1.5",
60
63
  "@testing-library/user-event": "13.5.0",
61
64
  "@types/lodash": "4.14.191",
62
- "@types/react": "18.0.26",
65
+ "@types/react": "18.0.28",
63
66
  "@types/react-redux": "7.1.25",
64
67
  "@types/resize-observer-browser": "0.1.7",
65
- "@typescript-eslint/eslint-plugin": "5.48.1",
66
- "@typescript-eslint/parser": "5.48.1",
67
- "@vitejs/plugin-react": "3.0.1",
68
- "@vitest/coverage-c8": "0.27.1",
68
+ "@typescript-eslint/eslint-plugin": "5.54.0",
69
+ "@typescript-eslint/parser": "5.54.0",
70
+ "@vitejs/plugin-react": "3.1.0",
71
+ "@vitest/coverage-c8": "0.29.2",
69
72
  "@wojtekmaj/enzyme-adapter-react-17": "0.8.0",
70
73
  "autoprefixer": "10.4.13",
71
74
  "copyfiles": "2.4.1",
72
75
  "dotenv": "16.0.3",
73
76
  "enzyme": "3.11.0",
74
77
  "enzyme-adapter-react-16": "1.15.7",
75
- "eslint": "8.31.0",
76
- "eslint-config-prettier": "8.6.0",
77
- "eslint-plugin-compat": "4.0.2",
78
+ "eslint": "8.35.0",
79
+ "eslint-config-prettier": "8.7.0",
80
+ "eslint-plugin-compat": "4.1.2",
78
81
  "eslint-plugin-getsentry": "2.0.0",
79
- "eslint-plugin-import": "2.26.0",
82
+ "eslint-plugin-import": "2.27.5",
80
83
  "eslint-plugin-prefer-arrow": "1.2.3",
81
84
  "eslint-plugin-prettier": "4.2.1",
82
- "eslint-plugin-react": "7.32.0",
85
+ "eslint-plugin-react": "7.32.2",
83
86
  "eslint-plugin-react-hooks": "4.6.0",
84
- "jsdom": "20.0.1",
87
+ "jsdom": "21.1.0",
85
88
  "jsdom-global": "3.0.2",
86
89
  "less": "4.1.3",
87
90
  "license-checker": "25.0.1",
88
91
  "postcss": "^8.4.21",
89
- "postcss-preset-env": "7.8.3",
92
+ "postcss-preset-env": "8.0.1",
90
93
  "postcss-short": "5.0.0",
91
94
  "postcss-variable-compress": "^2.0.1",
92
- "prettier": "2.8.2",
95
+ "pre-commit": "^1.2.2",
96
+ "prettier": "2.8.4",
93
97
  "react": "17.0.2",
94
98
  "react-dom": "17.0.2",
95
- "react-intl": "6.2.5",
99
+ "react-intl": "6.2.10",
96
100
  "rollup-plugin-copy": "^3.4.0",
97
101
  "strip-ansi": "7.0.1",
98
102
  "ttf2woff2": "5.0.0",
99
- "vite": "4.0.4",
100
- "vitest": "^0.24.3",
103
+ "typescript": "4.9.5",
104
+ "vite": "4.1.4",
105
+ "vitest": "0.29.2",
101
106
  "webfont": "11.2.26",
102
107
  "webfonts-generator": "github:rio-cloud/webfonts-generator"
103
108
  },
@@ -106,11 +111,12 @@
106
111
  "react-dom": ">=17.0.0"
107
112
  },
108
113
  "dependencies": {
109
- "@dnd-kit/core": "6.0.7",
114
+ "@dnd-kit/core": "6.0.8",
110
115
  "@dnd-kit/modifiers": "6.0.1",
111
116
  "@dnd-kit/sortable": "7.0.2",
112
117
  "@popperjs/core": "2.11.6",
113
118
  "classnames": "2.3.2",
119
+ "dom-helpers": "5.2.1",
114
120
  "events": "3.3.0",
115
121
  "framer-motion": "4.1.17",
116
122
  "lodash": "4.17.21",
@@ -128,6 +134,9 @@
128
134
  "react-popper": "2.3.0",
129
135
  "react-responsive": "9.0.2",
130
136
  "react-transition-group": "4.4.5",
131
- "recharts": "2.3.1"
132
- }
137
+ "recharts": "2.4.3"
138
+ },
139
+ "pre-commit": [
140
+ "format-code"
141
+ ]
133
142
  }
@@ -313,24 +313,39 @@
313
313
 
314
314
  .dropdown-menu {
315
315
  -webkit-overflow-scrolling: touch;
316
- border: none;
317
316
  border-radius: 0 0 @border-radius-default @border-radius-default;
317
+ border: none;
318
+ margin-right: 3px; // to be in line with the top element
318
319
  max-height: ~'calc(100vh - @{ApplicationLayoutHeaderHeight} - 20px)'; // --vh fallback
319
320
  max-height: ~'calc(var(--vh, 1vh) * 100 - @{ApplicationLayoutHeaderHeight} - 20px)';
320
- max-width: calc(~'100% - 3px');
321
- width: 100%;
322
321
  overflow-x: hidden;
323
322
  overflow-y: auto;
323
+ // max-width: calc(~'100% - 3px');
324
+ // width: 100%;
324
325
 
325
- > li > a {
326
- color: var(--color-black);
327
- font-size: 14px;
328
- font-weight: @font-medium;
329
- padding: 5px @ApplicationLayoutHeaderHeightpadding-horizontal;
330
- text-transform: uppercase;
326
+ > li {
327
+ > a {
328
+ color: var(--color-black);
329
+ font-size: 14px;
330
+ font-weight: @font-medium;
331
+ padding: 5px @ApplicationLayoutHeaderHeightpadding-horizontal;
332
+ text-transform: uppercase;
331
333
 
332
- &.inactive {
333
- pointer-events: none;
334
+ &.inactive {
335
+ pointer-events: none;
336
+ }
337
+ }
338
+
339
+ iframe {
340
+ &.iFrameResizer,
341
+ &[id*="iFrameResizer"] {
342
+ &[style*="height: 1px"],
343
+ &[style*="width: 1337px"] {
344
+ width: calc(~"100vw - 100px") !important;
345
+ max-width: 1550px !important;
346
+ min-width: 300px !important;
347
+ }
348
+ }
334
349
  }
335
350
  }
336
351
  }
@@ -457,7 +472,7 @@
457
472
 
458
473
  .CollapsedDropdown {
459
474
  display: block;
460
-
475
+
461
476
  > .dropdown-menu {
462
477
  left: auto;
463
478
  right: 0;
@@ -9,5 +9,14 @@
9
9
  position: absolute;
10
10
  inset: 0;
11
11
  z-index: @z-index-bottom-sheet - 1;
12
- background: .hsla(@always-color-black-hsl, 0.5)[@result];
12
+ background-color: .hsla(@color-black-hsl, 0.5)[@result];
13
+
14
+ [data-theme*="dark"] & {
15
+ background-color: .hsla(@gray-darkest-hsl, 0.3)[@result];
16
+ }
17
+
18
+ @supports ((-webkit-backdrop-filter: blur()) or (backdrop-filter: blur())) {
19
+ opacity: 0.99;
20
+ backdrop-filter: blur(1px);
21
+ }
13
22
  }