@dexma/ui-components 5.7.0 → 5.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexma/ui-components",
3
- "version": "5.7.0",
3
+ "version": "5.7.1",
4
4
  "description": "DEXMA UI Components (React)",
5
5
  "main": "dist/main.bundle.js",
6
6
  "scripts": {
@@ -15,7 +15,8 @@
15
15
  "eslint:fix": "eslint --fix '{src,test}/{,**/{,*.}}*.js'",
16
16
  "format": "npm run eslint:fix && npm run prettier",
17
17
  "test": "NODE_ENV=test jest --json --outputFile=test/jest-test-results.json",
18
- "semantic-release": "semantic-release"
18
+ "semantic-release": "semantic-release",
19
+ "postinstall": "patch-package"
19
20
  },
20
21
  "publishConfig": {
21
22
  "tag": "latest"
@@ -97,8 +98,8 @@
97
98
  "deep-equal": "^1.0.1",
98
99
  "enzyme": "^3.11.0",
99
100
  "enzyme-adapter-react-16": "^1.11.2",
100
- "eslint": "^5.15.3",
101
- "eslint-config-airbnb": "^17.1.0",
101
+ "eslint": "^6.0.0",
102
+ "eslint-config-airbnb": "^18.1.0",
102
103
  "eslint-config-prettier": "^4.1.0",
103
104
  "eslint-plugin-import": "^2.16.0",
104
105
  "eslint-plugin-jsx-a11y": "^6.2.1",
@@ -116,6 +117,7 @@
116
117
  "mini-css-extract-plugin": "^0.5.0",
117
118
  "moment": "^2.29.1",
118
119
  "optimize-css-assets-webpack-plugin": "^5.0.1",
120
+ "patch-package": "^6.4.7",
119
121
  "path": "^0.12.7",
120
122
  "polished": "^3.4.0",
121
123
  "postcss-loader": "^3.0.0",
@@ -177,5 +179,9 @@
177
179
  "dependencies": {
178
180
  "highcharts-react-official": "^3.1.0",
179
181
  "highcharts-rounded-corners": "^1.0.6"
182
+ },
183
+ "volta": {
184
+ "node": "16.16.0",
185
+ "npm": "8.11.0"
180
186
  }
181
187
  }
@@ -0,0 +1,125 @@
1
+ diff --git a/node_modules/highcharts-rounded-corners/rounded-corners.js b/node_modules/highcharts-rounded-corners/rounded-corners.js
2
+ index 365c2f4..6203aa9 100644
3
+ --- a/node_modules/highcharts-rounded-corners/rounded-corners.js
4
+ +++ b/node_modules/highcharts-rounded-corners/rounded-corners.js
5
+ @@ -23,66 +23,68 @@
6
+
7
+ proceed.call(this);
8
+
9
+ - H.each(this.points, function (point) {
10
+ - var shapeArgs = point.shapeArgs,
11
+ - w = shapeArgs.width,
12
+ - h = shapeArgs.height,
13
+ - x = shapeArgs.x,
14
+ - y = shapeArgs.y;
15
+ + if (this.points) {
16
+ + H.each(this.points, function (point) {
17
+ + var shapeArgs = point.shapeArgs,
18
+ + w = shapeArgs.width,
19
+ + h = shapeArgs.height,
20
+ + x = shapeArgs.x,
21
+ + y = shapeArgs.y;
22
+
23
+ - // Get the radius
24
+ - var rTopLeft = rel(options.borderRadiusTopLeft || 0, w),
25
+ - rTopRight = rel(options.borderRadiusTopRight || 0, w),
26
+ - rBottomRight = rel(options.borderRadiusBottomRight || 0, w),
27
+ - rBottomLeft = rel(options.borderRadiusBottomLeft || 0, w);
28
+ + // Get the radius
29
+ + var rTopLeft = rel(options.borderRadiusTopLeft || 0, w),
30
+ + rTopRight = rel(options.borderRadiusTopRight || 0, w),
31
+ + rBottomRight = rel(options.borderRadiusBottomRight || 0, w),
32
+ + rBottomLeft = rel(options.borderRadiusBottomLeft || 0, w);
33
+
34
+ - if (rTopLeft || rTopRight || rBottomRight || rBottomLeft) {
35
+ - var maxR = Math.min(w, h) / 2
36
+ + if (rTopLeft || rTopRight || rBottomRight || rBottomLeft) {
37
+ + var maxR = Math.min(w, h) / 2
38
+
39
+ - if (rTopLeft > maxR) {
40
+ - rTopLeft = maxR;
41
+ - }
42
+ + if (rTopLeft > maxR) {
43
+ + rTopLeft = maxR;
44
+ + }
45
+
46
+ - if (rTopRight > maxR) {
47
+ - rTopRight = maxR;
48
+ - }
49
+ + if (rTopRight > maxR) {
50
+ + rTopRight = maxR;
51
+ + }
52
+
53
+ - if (rBottomRight > maxR) {
54
+ - rBottomRight = maxR;
55
+ - }
56
+ + if (rBottomRight > maxR) {
57
+ + rBottomRight = maxR;
58
+ + }
59
+
60
+ - if (rBottomLeft > maxR) {
61
+ - rBottomLeft = maxR;
62
+ - }
63
+ + if (rBottomLeft > maxR) {
64
+ + rBottomLeft = maxR;
65
+ + }
66
+
67
+ - // Preserve the box for data labels
68
+ - point.dlBox = point.shapeArgs;
69
+ + // Preserve the box for data labels
70
+ + point.dlBox = point.shapeArgs;
71
+
72
+ - point.shapeType = 'path';
73
+ - point.shapeArgs = {
74
+ - d: [
75
+ - 'M', x + rTopLeft, y + topMargin,
76
+ - // top side
77
+ - 'L', x + w - rTopRight, y + topMargin,
78
+ - // top right corner
79
+ - 'C', x + w - rTopRight / 2, y, x + w, y + rTopRight / 2, x + w, y + rTopRight,
80
+ - // right side
81
+ - 'L', x + w, y + h - rBottomRight,
82
+ - // bottom right corner
83
+ - 'C', x + w, y + h - rBottomRight / 2, x + w - rBottomRight / 2, y + h, x + w - rBottomRight, y + h + bottomMargin,
84
+ - // bottom side
85
+ - 'L', x + rBottomLeft, y + h + bottomMargin,
86
+ - // bottom left corner
87
+ - 'C', x + rBottomLeft / 2, y + h, x, y + h - rBottomLeft / 2, x, y + h - rBottomLeft,
88
+ - // left side
89
+ - 'L', x, y + rTopLeft,
90
+ - // top left corner
91
+ - 'C', x, y + rTopLeft / 2, x + rTopLeft / 2, y, x + rTopLeft, y,
92
+ - 'Z'
93
+ - ]
94
+ - };
95
+ - }
96
+ + point.shapeType = 'path';
97
+ + point.shapeArgs = {
98
+ + d: [
99
+ + 'M', x + rTopLeft, y + topMargin,
100
+ + // top side
101
+ + 'L', x + w - rTopRight, y + topMargin,
102
+ + // top right corner
103
+ + 'C', x + w - rTopRight / 2, y, x + w, y + rTopRight / 2, x + w, y + rTopRight,
104
+ + // right side
105
+ + 'L', x + w, y + h - rBottomRight,
106
+ + // bottom right corner
107
+ + 'C', x + w, y + h - rBottomRight / 2, x + w - rBottomRight / 2, y + h, x + w - rBottomRight, y + h + bottomMargin,
108
+ + // bottom side
109
+ + 'L', x + rBottomLeft, y + h + bottomMargin,
110
+ + // bottom left corner
111
+ + 'C', x + rBottomLeft / 2, y + h, x, y + h - rBottomLeft / 2, x, y + h - rBottomLeft,
112
+ + // left side
113
+ + 'L', x, y + rTopLeft,
114
+ + // top left corner
115
+ + 'C', x, y + rTopLeft / 2, x + rTopLeft / 2, y, x + rTopLeft, y,
116
+ + 'Z'
117
+ + ]
118
+ + };
119
+ + }
120
+
121
+ - });
122
+ + });
123
+ + }
124
+ });
125
+ }));