@dexma/ui-components 5.7.1 → 5.7.4
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,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexma/ui-components",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.4",
|
|
4
4
|
"description": "DEXMA UI Components (React)",
|
|
5
5
|
"main": "dist/main.bundle.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"clean-build": "rm -rf dist",
|
|
8
8
|
"build:development": "npm run clean-build && webpack --mode development",
|
|
9
9
|
"build:icons": "node scripts/buildIconConfig.js",
|
|
10
|
-
"build": "npm run build:icons && npm run clean-build && webpack --mode production",
|
|
10
|
+
"build": "npm run patch && npm run build:icons && npm run clean-build && webpack --mode production",
|
|
11
11
|
"build-storybook": "build-storybook -c src/.storybook -o docs",
|
|
12
12
|
"storybook": "npm run build:icons && start-storybook -p 9999 -c src/.storybook --docs",
|
|
13
13
|
"prettier": "prettier --write '{src,test}/{,**/{,*.}}*.js'",
|
|
@@ -16,7 +16,7 @@
|
|
|
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
18
|
"semantic-release": "semantic-release",
|
|
19
|
-
"
|
|
19
|
+
"patch": "patch-package"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"tag": "latest"
|
|
@@ -1,125 +0,0 @@
|
|
|
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
|
-
}));
|