@sis-cc/dotstatsuite-visions 11.0.0 → 11.2.0
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/es/AdvancedFilterDialog/AdvancedFilterDialog.js +1 -1
- package/es/HierarchicalFilter/HierarchicalFilter.js +1 -1
- package/es/NoData/NoData.js +1 -5
- package/es/Spotlight/Fields.js +3 -6
- package/es/TableLayout/Box.js +1 -1
- package/es/TableLayout/DnDItem.js +1 -1
- package/es/TableLayout/TableLayout.js +1 -1
- package/lib/AdvancedFilterDialog/AdvancedFilterDialog.js +1 -1
- package/lib/HierarchicalFilter/HierarchicalFilter.js +1 -1
- package/lib/NoData/NoData.js +1 -5
- package/lib/Spotlight/Fields.js +3 -6
- package/lib/TableLayout/Box.js +2 -2
- package/lib/TableLayout/DnDItem.js +2 -2
- package/lib/TableLayout/TableLayout.js +2 -2
- package/package.json +2 -2
- package/umd/@sis-cc/dotstatsuite-visions.js +5791 -6873
- package/umd/@sis-cc/dotstatsuite-visions.min.js +39 -12
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -1
|
@@ -550,7 +550,7 @@ AdvancedFilterDialog.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
550
550
|
isOpen: PropTypes.bool,
|
|
551
551
|
items: PropTypes.array,
|
|
552
552
|
labels: PropTypes.shape({
|
|
553
|
-
placeholder: PropTypes.string,
|
|
553
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
554
554
|
disableItemLabel: PropTypes.string,
|
|
555
555
|
singleSelection: PropTypes.string,
|
|
556
556
|
childrenSelection: PropTypes.string,
|
|
@@ -157,7 +157,7 @@ HierarchicalFilter.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
157
157
|
label: PropTypes.string,
|
|
158
158
|
labels: PropTypes.shape({
|
|
159
159
|
disableItemLabel: PropTypes.string,
|
|
160
|
-
placeholder: PropTypes.
|
|
160
|
+
placeholder: PropTypes.func
|
|
161
161
|
}),
|
|
162
162
|
labelRenderer: PropTypes.func,
|
|
163
163
|
Tag: PropTypes.func,
|
package/es/NoData/NoData.js
CHANGED
|
@@ -30,7 +30,7 @@ var NoData = function NoData(_ref) {
|
|
|
30
30
|
React.createElement(
|
|
31
31
|
Typography,
|
|
32
32
|
{ variant: 'subtitle1', noWrap: true, align: 'center' },
|
|
33
|
-
icon
|
|
33
|
+
icon || React.createElement(Error, { color: 'primary', fontSize: 'large' })
|
|
34
34
|
),
|
|
35
35
|
React.createElement(
|
|
36
36
|
Typography,
|
|
@@ -45,8 +45,4 @@ NoData.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
45
45
|
message: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
|
|
46
46
|
} : {};
|
|
47
47
|
|
|
48
|
-
NoData.defaultProps = {
|
|
49
|
-
icon: React.createElement(Error, { color: 'primary', fontSize: 'large' })
|
|
50
|
-
};
|
|
51
|
-
|
|
52
48
|
export default NoData;
|
package/es/Spotlight/Fields.js
CHANGED
|
@@ -8,7 +8,8 @@ import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown';
|
|
|
8
8
|
import Check from '@material-ui/icons/Check';
|
|
9
9
|
|
|
10
10
|
export var Field = function Field(_ref) {
|
|
11
|
-
var spotlight = _ref.spotlight,
|
|
11
|
+
var _ref$spotlight = _ref.spotlight,
|
|
12
|
+
spotlight = _ref$spotlight === undefined ? {} : _ref$spotlight,
|
|
12
13
|
onChangeField = _ref.onChangeField,
|
|
13
14
|
isRtl = _ref.isRtl,
|
|
14
15
|
classes = _ref.classes;
|
|
@@ -96,8 +97,4 @@ Field.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
96
97
|
}),
|
|
97
98
|
onChangeField: PropTypes.func.isRequired,
|
|
98
99
|
isRtl: PropTypes.bool
|
|
99
|
-
} : {};
|
|
100
|
-
|
|
101
|
-
Field.defaultProps = {
|
|
102
|
-
spotlight: {}
|
|
103
|
-
};
|
|
100
|
+
} : {};
|
package/es/TableLayout/Box.js
CHANGED
|
@@ -5,7 +5,7 @@ import Typography from '@material-ui/core/Typography';
|
|
|
5
5
|
import Grid from '@material-ui/core/Grid';
|
|
6
6
|
import { makeStyles } from '@material-ui/core/styles';
|
|
7
7
|
import cx from 'classnames';
|
|
8
|
-
import { Droppable } from '
|
|
8
|
+
import { Droppable } from '@hello-pangea/dnd';
|
|
9
9
|
import DnDItem from './DnDItem';
|
|
10
10
|
import { getLight, getDark } from '../utils';
|
|
11
11
|
import { BOX } from './constants';
|
|
@@ -8,7 +8,7 @@ import { makeStyles } from '@material-ui/core/styles';
|
|
|
8
8
|
import Typography from '@material-ui/core/Typography';
|
|
9
9
|
import Select from '@material-ui/core/Select';
|
|
10
10
|
import MenuItem from '@material-ui/core/MenuItem';
|
|
11
|
-
import { Draggable } from '
|
|
11
|
+
import { Draggable } from '@hello-pangea/dnd';
|
|
12
12
|
import { getLight, getDark } from '../utils';
|
|
13
13
|
import { BOX, wcagId } from './constants';
|
|
14
14
|
|
|
@@ -13,7 +13,7 @@ import ViewQuilt from '@material-ui/icons/ViewQuiltOutlined';
|
|
|
13
13
|
import Undo from '@material-ui/icons/Undo';
|
|
14
14
|
import Done from '@material-ui/icons/Done';
|
|
15
15
|
import { makeStyles } from '@material-ui/core/styles';
|
|
16
|
-
import { DragDropContext } from '
|
|
16
|
+
import { DragDropContext } from '@hello-pangea/dnd';
|
|
17
17
|
import { withBlank } from '../utils';
|
|
18
18
|
import TablePreview from '../TablePreview';
|
|
19
19
|
import Box from './Box';
|
|
@@ -620,7 +620,7 @@ AdvancedFilterDialog.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
620
620
|
isOpen: _propTypes2.default.bool,
|
|
621
621
|
items: _propTypes2.default.array,
|
|
622
622
|
labels: _propTypes2.default.shape({
|
|
623
|
-
placeholder: _propTypes2.default.string,
|
|
623
|
+
placeholder: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]),
|
|
624
624
|
disableItemLabel: _propTypes2.default.string,
|
|
625
625
|
singleSelection: _propTypes2.default.string,
|
|
626
626
|
childrenSelection: _propTypes2.default.string,
|
|
@@ -186,7 +186,7 @@ HierarchicalFilter.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
186
186
|
label: _propTypes2.default.string,
|
|
187
187
|
labels: _propTypes2.default.shape({
|
|
188
188
|
disableItemLabel: _propTypes2.default.string,
|
|
189
|
-
placeholder: _propTypes2.default.
|
|
189
|
+
placeholder: _propTypes2.default.func
|
|
190
190
|
}),
|
|
191
191
|
labelRenderer: _propTypes2.default.func,
|
|
192
192
|
Tag: _propTypes2.default.func,
|
package/lib/NoData/NoData.js
CHANGED
|
@@ -48,7 +48,7 @@ var NoData = function NoData(_ref) {
|
|
|
48
48
|
_react2.default.createElement(
|
|
49
49
|
_Typography2.default,
|
|
50
50
|
{ variant: 'subtitle1', noWrap: true, align: 'center' },
|
|
51
|
-
icon
|
|
51
|
+
icon || _react2.default.createElement(_Error2.default, { color: 'primary', fontSize: 'large' })
|
|
52
52
|
),
|
|
53
53
|
_react2.default.createElement(
|
|
54
54
|
_Typography2.default,
|
|
@@ -63,9 +63,5 @@ NoData.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
63
63
|
message: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element])
|
|
64
64
|
} : {};
|
|
65
65
|
|
|
66
|
-
NoData.defaultProps = {
|
|
67
|
-
icon: _react2.default.createElement(_Error2.default, { color: 'primary', fontSize: 'large' })
|
|
68
|
-
};
|
|
69
|
-
|
|
70
66
|
exports.default = NoData;
|
|
71
67
|
module.exports = exports['default'];
|
package/lib/Spotlight/Fields.js
CHANGED
|
@@ -40,7 +40,8 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
40
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
41
41
|
|
|
42
42
|
var Field = exports.Field = function Field(_ref) {
|
|
43
|
-
var spotlight = _ref.spotlight,
|
|
43
|
+
var _ref$spotlight = _ref.spotlight,
|
|
44
|
+
spotlight = _ref$spotlight === undefined ? {} : _ref$spotlight,
|
|
44
45
|
onChangeField = _ref.onChangeField,
|
|
45
46
|
isRtl = _ref.isRtl,
|
|
46
47
|
classes = _ref.classes;
|
|
@@ -128,8 +129,4 @@ Field.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
128
129
|
}),
|
|
129
130
|
onChangeField: _propTypes2.default.func.isRequired,
|
|
130
131
|
isRtl: _propTypes2.default.bool
|
|
131
|
-
} : {};
|
|
132
|
-
|
|
133
|
-
Field.defaultProps = {
|
|
134
|
-
spotlight: {}
|
|
135
|
-
};
|
|
132
|
+
} : {};
|
package/lib/TableLayout/Box.js
CHANGED
|
@@ -29,7 +29,7 @@ var _classnames = require('classnames');
|
|
|
29
29
|
|
|
30
30
|
var _classnames2 = _interopRequireDefault(_classnames);
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _dnd = require('@hello-pangea/dnd');
|
|
33
33
|
|
|
34
34
|
var _DnDItem = require('./DnDItem');
|
|
35
35
|
|
|
@@ -108,7 +108,7 @@ var Box = function Box(_ref2) {
|
|
|
108
108
|
)
|
|
109
109
|
),
|
|
110
110
|
_react2.default.createElement(
|
|
111
|
-
|
|
111
|
+
_dnd.Droppable,
|
|
112
112
|
{ droppableId: dropZoneLabel },
|
|
113
113
|
function (provided, snapshot) {
|
|
114
114
|
var _cx;
|
|
@@ -35,7 +35,7 @@ var _MenuItem = require('@material-ui/core/MenuItem');
|
|
|
35
35
|
|
|
36
36
|
var _MenuItem2 = _interopRequireDefault(_MenuItem);
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _dnd = require('@hello-pangea/dnd');
|
|
39
39
|
|
|
40
40
|
var _utils = require('../utils');
|
|
41
41
|
|
|
@@ -108,7 +108,7 @@ var DnDItem = function DnDItem(_ref2) {
|
|
|
108
108
|
var classes = useStyles();
|
|
109
109
|
var selectItem = R.prop(item.id)(itemButtonProps);
|
|
110
110
|
return _react2.default.createElement(
|
|
111
|
-
|
|
111
|
+
_dnd.Draggable,
|
|
112
112
|
{ key: item.id, draggableId: item.id, index: index, isDragDisabled: R.not(canDrag) },
|
|
113
113
|
function (provided) {
|
|
114
114
|
var _cx, _cx2;
|
|
@@ -55,7 +55,7 @@ var _Done2 = _interopRequireDefault(_Done);
|
|
|
55
55
|
|
|
56
56
|
var _styles = require('@material-ui/core/styles');
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _dnd = require('@hello-pangea/dnd');
|
|
59
59
|
|
|
60
60
|
var _utils = require('../utils');
|
|
61
61
|
|
|
@@ -297,7 +297,7 @@ var TableLayout = function TableLayout(_ref) {
|
|
|
297
297
|
labels.wcagDragExplanation
|
|
298
298
|
),
|
|
299
299
|
_react2.default.createElement(
|
|
300
|
-
|
|
300
|
+
_dnd.DragDropContext,
|
|
301
301
|
{
|
|
302
302
|
onDragEnd: onDragEnd(currentLayout),
|
|
303
303
|
onDragStart: onDragStart,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sis-cc/dotstatsuite-visions",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Library of visual components",
|
|
5
5
|
"author": "OECD",
|
|
6
6
|
"homepage": "https://visions-qa.siscc.org/#o",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"numeral": "^2.0.6",
|
|
37
37
|
"prop-types": "^15.7.2",
|
|
38
38
|
"ramda": "^0.27.0",
|
|
39
|
-
"
|
|
39
|
+
"@hello-pangea/dnd": "^16.6.0",
|
|
40
40
|
"react-draggable": "^4.4.5",
|
|
41
41
|
"react-error-boundary": "^4.0.10",
|
|
42
42
|
"react-virtualized": "^9.21.2"
|