versacall-dashboards-library-react 2.0.32 → 2.0.34
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.
|
@@ -390,7 +390,14 @@ class DashboardsMainFreehand extends _react.Component {
|
|
|
390
390
|
left: "".concat(cell.x, "%"),
|
|
391
391
|
zIndex: cell.z
|
|
392
392
|
},
|
|
393
|
-
onClick: event =>
|
|
393
|
+
onClick: event => {
|
|
394
|
+
this.updateSelected(["".concat(index)]);
|
|
395
|
+
|
|
396
|
+
if (!showEditor && cell.actionType && this.props.onCellAction) {
|
|
397
|
+
event.stopPropagation();
|
|
398
|
+
this.props.onCellAction(event, index, cell);
|
|
399
|
+
}
|
|
400
|
+
},
|
|
394
401
|
onKeyPress: event => this.updateSelected(["".concat(index)])
|
|
395
402
|
}, /*#__PURE__*/_react.default.createElement(_DashboardsCell.default, {
|
|
396
403
|
cell: cell,
|
|
@@ -433,7 +440,8 @@ DashboardsMainFreehand.propTypes = {
|
|
|
433
440
|
viewers: _propTypes.default.arrayOf(_propTypes.default.shape()),
|
|
434
441
|
widgets: _propTypes.default.arrayOf(_propTypes.default.shape()),
|
|
435
442
|
variables: _propTypes.default.arrayOf(_propTypes.default.shape()),
|
|
436
|
-
freehandDashboard: _propTypes.default.shape().isRequired
|
|
443
|
+
freehandDashboard: _propTypes.default.shape().isRequired,
|
|
444
|
+
onCellAction: _propTypes.default.func
|
|
437
445
|
};
|
|
438
446
|
DashboardsMainFreehand.defaultProps = {
|
|
439
447
|
styles: [],
|
|
@@ -449,7 +457,8 @@ DashboardsMainFreehand.defaultProps = {
|
|
|
449
457
|
row: 0,
|
|
450
458
|
column: 0,
|
|
451
459
|
cells: []
|
|
452
|
-
}
|
|
460
|
+
},
|
|
461
|
+
onCellAction: null
|
|
453
462
|
};
|
|
454
463
|
|
|
455
464
|
var _default = (0, _reactIntl.injectIntl)((0, _versacallCoreLibraryReact.withCore)(DashboardsMainFreehand));
|
|
@@ -46,7 +46,8 @@ function replaceText(text, variables) {
|
|
|
46
46
|
|
|
47
47
|
if (dependencies.length > 0) {
|
|
48
48
|
variables.filter(variable => dependencies.includes(variable.name)).forEach(variable => {
|
|
49
|
-
newText = newText.replace(new RegExp(
|
|
49
|
+
// newText = newText.replace(new RegExp(`~${variable.name}`), `${variable.calculated !== '' ? variable.calculated : variable.value}`);
|
|
50
|
+
newText = newText.split("~".concat(variable.name)).join("".concat(variable.calculated !== '' ? variable.calculated : variable.value));
|
|
50
51
|
missingDependencies = missingDependencies.filter(missingDependency => missingDependency !== variable.name);
|
|
51
52
|
});
|
|
52
53
|
}
|
package/package.json
CHANGED
|
@@ -1,83 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"versacall": {
|
|
3
|
-
"title": "Versacall Dashboards Library React",
|
|
4
|
-
"applicationType": "react-library",
|
|
5
|
-
"build":
|
|
6
|
-
},
|
|
7
|
-
"name": "versacall-dashboards-library-react",
|
|
8
|
-
"version": "2.0.
|
|
9
|
-
"description": "Versacall Dashboards Library",
|
|
10
|
-
"main": "dist/index.js",
|
|
11
|
-
"module": "dist/index.js",
|
|
12
|
-
"files": [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"@babel/
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"eslint-
|
|
42
|
-
"eslint-
|
|
43
|
-
"eslint-plugin-
|
|
44
|
-
"eslint-plugin-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"react
|
|
50
|
-
"react-
|
|
51
|
-
"react-
|
|
52
|
-
"react-
|
|
53
|
-
"react-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"eslint-
|
|
65
|
-
"eslint-
|
|
66
|
-
"eslint-plugin-
|
|
67
|
-
"eslint-plugin-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"react
|
|
73
|
-
"react-
|
|
74
|
-
"react-
|
|
75
|
-
"react-
|
|
76
|
-
"react-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"versacall": {
|
|
3
|
+
"title": "Versacall Dashboards Library React",
|
|
4
|
+
"applicationType": "react-library",
|
|
5
|
+
"build": 34
|
|
6
|
+
},
|
|
7
|
+
"name": "versacall-dashboards-library-react",
|
|
8
|
+
"version": "2.0.34",
|
|
9
|
+
"description": "Versacall Dashboards Library",
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"module": "dist/index.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/versacall/versacall-dashboards-library-react.git"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"start": "react-scripts start",
|
|
21
|
+
"build": "react-scripts build",
|
|
22
|
+
"test": "react-scripts test",
|
|
23
|
+
"eject": "react-scripts eject",
|
|
24
|
+
"compile": "del-cli dist/ && cross-env NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"cross-env": "^5.2.0",
|
|
28
|
+
"del-cli": "^1.1.0",
|
|
29
|
+
"react-color": "^2.17.3",
|
|
30
|
+
"react-nestable-fork": "^1.3.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@babel/cli": "^7.2.3",
|
|
34
|
+
"@babel/preset-env": "^7.3.4",
|
|
35
|
+
"@babel/preset-react": "^7.0.0",
|
|
36
|
+
"@material-ui/core": "^4.12.1",
|
|
37
|
+
"@material-ui/icons": "^4.11.2",
|
|
38
|
+
"axios": "^0.21.1",
|
|
39
|
+
"deepmerge": "^3.2.0",
|
|
40
|
+
"emitter-io": "^1.39.0",
|
|
41
|
+
"eslint-config-airbnb": "^17.1.0",
|
|
42
|
+
"eslint-config-airbnb-base": "^13.1.0",
|
|
43
|
+
"eslint-plugin-import": "^2.16.0",
|
|
44
|
+
"eslint-plugin-jsx-a11y": "^6.2.1",
|
|
45
|
+
"eslint-plugin-react": "^7.12.4",
|
|
46
|
+
"eslint-plugin-reactintl": "^0.1.3",
|
|
47
|
+
"js-cookie": "^2.2.0",
|
|
48
|
+
"prop-types": "^15.7.2",
|
|
49
|
+
"react": "^16.8.4",
|
|
50
|
+
"react-beautiful-dnd": "^13.1.0",
|
|
51
|
+
"react-dom": "^16.8.4",
|
|
52
|
+
"react-intl": "^2.8.0",
|
|
53
|
+
"react-router-dom": "^4.3.1",
|
|
54
|
+
"react-scripts": "2.1.8",
|
|
55
|
+
"react-testing-library": "^6.0.1",
|
|
56
|
+
"versacall-core-library-react": "^2.0.63"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"@material-ui/core": "^4.12.1",
|
|
60
|
+
"@material-ui/icons": "^4.11.2",
|
|
61
|
+
"axios": "^0.21.1",
|
|
62
|
+
"deepmerge": "^3.2.0",
|
|
63
|
+
"emitter-io": "^1.39.0",
|
|
64
|
+
"eslint-config-airbnb": "^17.1.0",
|
|
65
|
+
"eslint-config-airbnb-base": "^13.1.0",
|
|
66
|
+
"eslint-plugin-import": "^2.16.0",
|
|
67
|
+
"eslint-plugin-jsx-a11y": "^6.2.1",
|
|
68
|
+
"eslint-plugin-react": "^7.12.4",
|
|
69
|
+
"eslint-plugin-reactintl": "^0.1.3",
|
|
70
|
+
"js-cookie": "^2.2.0",
|
|
71
|
+
"prop-types": "^15.7.2",
|
|
72
|
+
"react": "^16.8.4",
|
|
73
|
+
"react-beautiful-dnd": "^13.0.0",
|
|
74
|
+
"react-dom": "^16.8.4",
|
|
75
|
+
"react-intl": "^2.8.0",
|
|
76
|
+
"react-router-dom": "^4.3.1",
|
|
77
|
+
"react-scripts": "2.1.8",
|
|
78
|
+
"react-testing-library": "^6.0.1",
|
|
79
|
+
"versacall-core-library-react": "^2.0.26"
|
|
80
|
+
},
|
|
81
|
+
"eslintConfig": {
|
|
82
|
+
"extends": "react-app"
|
|
83
|
+
},
|
|
84
|
+
"browserslist": [
|
|
85
|
+
">0.2%",
|
|
86
|
+
"not dead",
|
|
87
|
+
"not ie <= 11",
|
|
88
|
+
"not op_mini all"
|
|
89
|
+
]
|
|
90
|
+
}
|