@sis-cc/dotstatsuite-visions 12.6.0 → 12.8.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/TableHtml5/TableHtml5.js +2 -0
- package/es/VirtualizedTree/withSpotlight.js +3 -4
- package/lib/TableHtml5/TableHtml5.js +2 -0
- package/lib/VirtualizedTree/withSpotlight.js +3 -4
- package/package.json +1 -1
- package/umd/@sis-cc/dotstatsuite-visions.js +7 -6
- package/umd/@sis-cc/dotstatsuite-visions.min.js +3 -3
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -1
|
@@ -22,6 +22,8 @@ import { defaultLabelAccessor } from './utils';
|
|
|
22
22
|
var useStyles = makeStyles(function (theme) {
|
|
23
23
|
return {
|
|
24
24
|
table: {
|
|
25
|
+
outline: '1px solid transparent',
|
|
26
|
+
transform: 'translateZ(0)',
|
|
25
27
|
borderCollapse: 'separate',
|
|
26
28
|
borderLeft: 'thin solid ' + theme.palette.grey[500],
|
|
27
29
|
borderTop: 'thin solid ' + theme.palette.grey[500],
|
|
@@ -49,12 +49,11 @@ export var spotlightFilter = function spotlightFilter(term) {
|
|
|
49
49
|
|
|
50
50
|
if (isValidItem) {
|
|
51
51
|
var highlightedLabel = highlightLabel(label);
|
|
52
|
-
console.log(highlightedLabel);
|
|
53
52
|
var parents = findParents(item);
|
|
54
53
|
result = [].concat(parents, [_extends({}, item, { highlightedLabel: highlightedLabel })]);
|
|
55
54
|
|
|
56
55
|
if (displayChildren) {
|
|
57
|
-
var children = getDescendants(
|
|
56
|
+
var children = getDescendants(getHierarchicalId(item), groupedItemsByParentId);
|
|
58
57
|
return [].concat(parents, [_extends({}, item, { highlightedLabel: highlightedLabel })], children);
|
|
59
58
|
}
|
|
60
59
|
}
|
|
@@ -64,12 +63,12 @@ export var spotlightFilter = function spotlightFilter(term) {
|
|
|
64
63
|
var matchingChildren = R.chain(recurse, childItems);
|
|
65
64
|
|
|
66
65
|
// res with any matching children
|
|
67
|
-
return R.
|
|
66
|
+
return R.uniq([].concat(result, matchingChildren));
|
|
68
67
|
}
|
|
69
68
|
return result;
|
|
70
69
|
};
|
|
71
70
|
|
|
72
|
-
return R.uniqBy(
|
|
71
|
+
return R.uniqBy(getHierarchicalId)(R.chain(recurse, groupedItemsByParentId['#ROOT'] || []));
|
|
73
72
|
};
|
|
74
73
|
};
|
|
75
74
|
|
|
@@ -58,6 +58,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
58
58
|
var useStyles = (0, _makeStyles2.default)(function (theme) {
|
|
59
59
|
return {
|
|
60
60
|
table: {
|
|
61
|
+
outline: '1px solid transparent',
|
|
62
|
+
transform: 'translateZ(0)',
|
|
61
63
|
borderCollapse: 'separate',
|
|
62
64
|
borderLeft: 'thin solid ' + theme.palette.grey[500],
|
|
63
65
|
borderTop: 'thin solid ' + theme.palette.grey[500],
|
|
@@ -64,12 +64,11 @@ var spotlightFilter = exports.spotlightFilter = function spotlightFilter(term) {
|
|
|
64
64
|
|
|
65
65
|
if (isValidItem) {
|
|
66
66
|
var highlightedLabel = highlightLabel(label);
|
|
67
|
-
console.log(highlightedLabel);
|
|
68
67
|
var parents = findParents(item);
|
|
69
68
|
result = [].concat(parents, [_extends({}, item, { highlightedLabel: highlightedLabel })]);
|
|
70
69
|
|
|
71
70
|
if (displayChildren) {
|
|
72
|
-
var children = (0, _utils.getDescendants)(
|
|
71
|
+
var children = (0, _utils.getDescendants)((0, _utils.getHierarchicalId)(item), groupedItemsByParentId);
|
|
73
72
|
return [].concat(parents, [_extends({}, item, { highlightedLabel: highlightedLabel })], children);
|
|
74
73
|
}
|
|
75
74
|
}
|
|
@@ -79,12 +78,12 @@ var spotlightFilter = exports.spotlightFilter = function spotlightFilter(term) {
|
|
|
79
78
|
var matchingChildren = R.chain(recurse, childItems);
|
|
80
79
|
|
|
81
80
|
// res with any matching children
|
|
82
|
-
return R.
|
|
81
|
+
return R.uniq([].concat(result, matchingChildren));
|
|
83
82
|
}
|
|
84
83
|
return result;
|
|
85
84
|
};
|
|
86
85
|
|
|
87
|
-
return R.uniqBy(
|
|
86
|
+
return R.uniqBy(_utils.getHierarchicalId)(R.chain(recurse, groupedItemsByParentId['#ROOT'] || []));
|
|
88
87
|
};
|
|
89
88
|
};
|
|
90
89
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @sis-cc/dotstatsuite-visions v12.
|
|
2
|
+
* @sis-cc/dotstatsuite-visions v12.8.0 - https://visions-qa.siscc.org/#o
|
|
3
3
|
* MIT Licensed
|
|
4
4
|
*/
|
|
5
5
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -9187,7 +9187,7 @@ if (true) {
|
|
|
9187
9187
|
/* 166 */
|
|
9188
9188
|
/***/ (function(module) {
|
|
9189
9189
|
|
|
9190
|
-
module.exports = {"name":"@sis-cc/dotstatsuite-visions","version":"12.
|
|
9190
|
+
module.exports = {"name":"@sis-cc/dotstatsuite-visions","version":"12.8.0","description":"Library of visual components","author":"OECD","homepage":"https://visions-qa.siscc.org/#o","license":"MIT","repository":"https://gitlab.com/sis-cc/.stat-suite/dotstatsuite-visions","main":"lib/index.js","module":"es/index.js","engines":{"node":">=14"},"files":["css","es","lib","umd"],"scripts":{"build":"nwb build-react-component --copy-files --no-demo && node scripts/doc && nwb build-demo","build:dev":"nwb build-react-component --copy-files --no-demo","clean":"nwb clean-module && nwb clean-demo","prepublishOnly":"npm run build","start":"nwb serve-react-demo","test":"jest","test:watch":"jest --watch --no-cache","lint":"eslint src/ --color","precommit":"lint-staged"},"dependencies":{"@emotion/react":"^11.13.0","@emotion/styled":"^11.13.0","@hello-pangea/dnd":"^16.6.0","@mui/icons-material":"^5.16.5","@mui/material":"^5.16.5","@mui/styles":"^5.16.5","@react-hook/size":"^2.1.1","classnames":"^2.2.6","cross-env":"^7.0.3","date-fns":"^1.30.1","isemail":"^3.2.0","numeral":"^2.0.6","prop-types":"^15.7.2","ramda":"^0.27.0","react-draggable":"^4.4.5","react-error-boundary":"^4.0.10","react-virtualized":"^9.21.2"},"peerDependencies":{"@mui/icons-material":"^5.16.5","@mui/material":"^5.16.5","react":"^18","react-dom":"^18"},"devDependencies":{"@babel/eslint-parser":"^7.5.4","@babel/plugin-syntax-dynamic-import":"^7.2.0","@cfaester/enzyme-adapter-react-18":"^0.7.0","@mui/icons-material":"^5.16.5","@mui/material":"^5.16.5","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.0.0","babel-jest":"^24.8.0","babel-preset-react-app":"^9.0.0","dox":"^0.9.0","eslint":"^8.39.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jsx-a11y":"^6.7.1","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","husky":"^2.7.0","identity-obj-proxy":"^3.0.0","jest":"^24.8.0","jss":"^10.10.0","jss-rtl":"^0.2.3","lint-staged":"^8.2.1","mutationobserver-shim":"^0.3.7","nwb":"0.23.0","prettier":"^2.8.8","pretty-quick":"^3.1.3","react":"^18","react-a11y":"^1.1.0","react-dom":"^18","react-helmet":"^5.2.1","react-scrollable-anchor":"^0.6.1","react-syntax-highlighter":"^10.2.1","sanitize-html":"2.7.0","webpack":"^5.68.0","webpack-cli":"^4.9.2","webpack-dev-server":"^4.7.4"},"jest":{"verbose":true,"coverageDirectory":"coverage","collectCoverageFrom":["src/**/*.{js,jsx,ts,tsx}","!src/ScopeList/*.{js,jsx,ts,tsx}","!src/**/*.d.ts"],"setupFilesAfterEnv":["<rootDir>/tests/setup.js"],"testMatch":["**/tests/**/*.{spec,test}.{js,jsx,ts,tsx}","!**/tests/ScopeList.test.js"],"testEnvironment":"jsdom","transform":{"^.+\\.(js|jsx|ts|tsx)$":"<rootDir>/node_modules/babel-jest"},"transformIgnorePatterns":["[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$","^.+\\.module\\.(css|sass|scss)$"],"modulePaths":[],"moduleNameMapper":{"^react-native$":"react-native-web","^.+\\.module\\.(css|sass|scss)$":"identity-obj-proxy","\\.(jpg|jpeg|png)$":"identity-obj-proxy"},"moduleFileExtensions":["web.js","js","web.ts","ts","web.tsx","tsx","json","web.jsx","jsx","node"]},"babel":{"presets":["react-app"],"plugins":["@babel/plugin-syntax-dynamic-import"]},"eslintConfig":{"env":{"browser":true,"jest":true,"node":true,"es6":true},"extends":["eslint:recommended","plugin:react/recommended","plugin:jsx-a11y/recommended"],"parser":"@babel/eslint-parser","parserOptions":{"babelOptions":{"presets":[["babel-preset-react-app",false],"babel-preset-react-app/test"]},"ecmaFeatures":{"experimentalObjectRestSpread":true,"jsx":true},"sourceType":"module"},"plugins":["prettier","react","import","react-hooks","jsx-a11y"],"rules":{"no-console":"warn","no-unused-vars":"error","react/display-name":"off","react-hooks/rules-of-hooks":"error","react-hooks/exhaustive-deps":"warn","no-use-before-define":"error"}},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,css}":["prettier --write","git add","yarn lint"]},"prettier":{"endOfLine":"lf","useTabs":false,"printWidth":100,"tabWidth":2,"singleQuote":true,"trailingComma":"all","bracketSameLine":false,"bracketSpacing":true,"parser":"babel","semi":true,"arrowParens":"avoid"}};
|
|
9191
9191
|
|
|
9192
9192
|
/***/ }),
|
|
9193
9193
|
/* 167 */
|
|
@@ -64668,6 +64668,8 @@ var TableHtml5_extends = Object.assign || function (target) { for (var i = 1; i
|
|
|
64668
64668
|
var TableHtml5_useStyles = makeStyles(function (theme) {
|
|
64669
64669
|
return {
|
|
64670
64670
|
table: {
|
|
64671
|
+
outline: '1px solid transparent',
|
|
64672
|
+
transform: 'translateZ(0)',
|
|
64671
64673
|
borderCollapse: 'separate',
|
|
64672
64674
|
borderLeft: 'thin solid ' + theme.palette.grey[500],
|
|
64673
64675
|
borderTop: 'thin solid ' + theme.palette.grey[500],
|
|
@@ -80792,12 +80794,11 @@ var withSpotlight_spotlightFilter = function spotlightFilter(term) {
|
|
|
80792
80794
|
|
|
80793
80795
|
if (isValidItem) {
|
|
80794
80796
|
var highlightedLabel = highlightLabel(label);
|
|
80795
|
-
console.log(highlightedLabel);
|
|
80796
80797
|
var parents = findParents(item);
|
|
80797
80798
|
result = [].concat(parents, [withSpotlight_extends({}, item, { highlightedLabel: highlightedLabel })]);
|
|
80798
80799
|
|
|
80799
80800
|
if (displayChildren) {
|
|
80800
|
-
var children = utils_getDescendants(
|
|
80801
|
+
var children = utils_getDescendants(utils_getHierarchicalId(item), groupedItemsByParentId);
|
|
80801
80802
|
return [].concat(parents, [withSpotlight_extends({}, item, { highlightedLabel: highlightedLabel })], children);
|
|
80802
80803
|
}
|
|
80803
80804
|
}
|
|
@@ -80807,12 +80808,12 @@ var withSpotlight_spotlightFilter = function spotlightFilter(term) {
|
|
|
80807
80808
|
var matchingChildren = es_chain(recurse, childItems);
|
|
80808
80809
|
|
|
80809
80810
|
// res with any matching children
|
|
80810
|
-
return
|
|
80811
|
+
return es_uniq([].concat(result, matchingChildren));
|
|
80811
80812
|
}
|
|
80812
80813
|
return result;
|
|
80813
80814
|
};
|
|
80814
80815
|
|
|
80815
|
-
return es_uniqBy(
|
|
80816
|
+
return es_uniqBy(utils_getHierarchicalId)(es_chain(recurse, groupedItemsByParentId['#ROOT'] || []));
|
|
80816
80817
|
};
|
|
80817
80818
|
};
|
|
80818
80819
|
|