@sis-cc/dotstatsuite-visions 10.11.0 → 10.12.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/es/HierarchicalFilter/HierarchicalFilter.js +9 -4
- package/es/VirtualizedTree/Item.js +1 -2
- package/lib/HierarchicalFilter/HierarchicalFilter.js +9 -4
- package/lib/VirtualizedTree/Item.js +1 -2
- package/package.json +1 -1
- package/umd/@sis-cc/dotstatsuite-visions.js +12 -8
- package/umd/@sis-cc/dotstatsuite-visions.min.js +3 -3
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -1
|
@@ -14,10 +14,15 @@ import { useTheme } from '@material-ui/core';
|
|
|
14
14
|
import { getIsRtl } from '../utils';
|
|
15
15
|
|
|
16
16
|
var getCounter = function getCounter(items, disableAccessor, tagAccessor) {
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
var selectedItemsIds = R.reduce(function (acc, item) {
|
|
18
|
+
if (R.prop('isSelected', item)) {
|
|
19
|
+
return R.append(item.id, acc);
|
|
20
|
+
}
|
|
21
|
+
return acc;
|
|
22
|
+
}, [], items);
|
|
23
|
+
var itemsIds = R.pluck('id', items);
|
|
24
|
+
var count = R.pipe(R.uniq, R.length)(selectedItemsIds);
|
|
25
|
+
var total = R.pipe(R.uniq, R.length)(itemsIds);
|
|
21
26
|
if (R.is(Function, tagAccessor)) {
|
|
22
27
|
return tagAccessor(count, total);
|
|
23
28
|
}
|
|
@@ -93,8 +93,7 @@ var Item = function Item(_ref) {
|
|
|
93
93
|
primary: React.createElement(
|
|
94
94
|
'div',
|
|
95
95
|
{
|
|
96
|
-
className: cx(classes.labelContainer, (_cx2 = {}, _cx2[classes.rtlLabelContainer] = isRtl, _cx2))
|
|
97
|
-
style: { pointerEvents: 'none' }
|
|
96
|
+
className: cx(classes.labelContainer, (_cx2 = {}, _cx2[classes.rtlLabelContainer] = isRtl, _cx2))
|
|
98
97
|
},
|
|
99
98
|
React.createElement(
|
|
100
99
|
Icon,
|
|
@@ -43,10 +43,15 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
43
43
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
44
44
|
|
|
45
45
|
var getCounter = function getCounter(items, disableAccessor, tagAccessor) {
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
var selectedItemsIds = R.reduce(function (acc, item) {
|
|
47
|
+
if (R.prop('isSelected', item)) {
|
|
48
|
+
return R.append(item.id, acc);
|
|
49
|
+
}
|
|
50
|
+
return acc;
|
|
51
|
+
}, [], items);
|
|
52
|
+
var itemsIds = R.pluck('id', items);
|
|
53
|
+
var count = R.pipe(R.uniq, R.length)(selectedItemsIds);
|
|
54
|
+
var total = R.pipe(R.uniq, R.length)(itemsIds);
|
|
50
55
|
if (R.is(Function, tagAccessor)) {
|
|
51
56
|
return tagAccessor(count, total);
|
|
52
57
|
}
|
|
@@ -133,8 +133,7 @@ var Item = function Item(_ref) {
|
|
|
133
133
|
primary: _react2.default.createElement(
|
|
134
134
|
'div',
|
|
135
135
|
{
|
|
136
|
-
className: (0, _classnames2.default)(classes.labelContainer, (_cx2 = {}, _cx2[classes.rtlLabelContainer] = isRtl, _cx2))
|
|
137
|
-
style: { pointerEvents: 'none' }
|
|
136
|
+
className: (0, _classnames2.default)(classes.labelContainer, (_cx2 = {}, _cx2[classes.rtlLabelContainer] = isRtl, _cx2))
|
|
138
137
|
},
|
|
139
138
|
_react2.default.createElement(
|
|
140
139
|
_SvgIcon2.default,
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @sis-cc/dotstatsuite-visions v10.
|
|
2
|
+
* @sis-cc/dotstatsuite-visions v10.12.1 - https://visions-qa.siscc.org/#o
|
|
3
3
|
* MIT Licensed
|
|
4
4
|
*/
|
|
5
5
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -6699,7 +6699,7 @@ function removeClassName(el
|
|
|
6699
6699
|
/* 121 */
|
|
6700
6700
|
/***/ (function(module) {
|
|
6701
6701
|
|
|
6702
|
-
module.exports = {"name":"@sis-cc/dotstatsuite-visions","version":"10.
|
|
6702
|
+
module.exports = {"name":"@sis-cc/dotstatsuite-visions","version":"10.12.1","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":{"@react-hook/size":"^2.1.1","classnames":"^2.2.6","date-fns":"^1.30.1","isemail":"^3.2.0","numeral":"^2.0.6","prop-types":"^15.7.2","ramda":"^0.27.0","react-beautiful-dnd":"^13.0.0","react-draggable":"^4.4.5","react-error-boundary":"^4.0.10","react-virtualized":"^9.21.2"},"peerDependencies":{"@material-ui/core":"^4","@material-ui/icons":"^4","@sis-cc/dotstatsuite-sdmxjs":"^8.x","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","@material-ui/core":"^4","@material-ui/icons":"^4","@sis-cc/dotstatsuite-sdmxjs":"*","@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"}};
|
|
6703
6703
|
|
|
6704
6704
|
/***/ }),
|
|
6705
6705
|
/* 122 */
|
|
@@ -70641,8 +70641,7 @@ var VirtualizedTree_Item_Item = function Item(_ref) {
|
|
|
70641
70641
|
primary: react_default.a.createElement(
|
|
70642
70642
|
'div',
|
|
70643
70643
|
{
|
|
70644
|
-
className: classnames_default()(classes.labelContainer, (_cx2 = {}, _cx2[classes.rtlLabelContainer] = isRtl, _cx2))
|
|
70645
|
-
style: { pointerEvents: 'none' }
|
|
70644
|
+
className: classnames_default()(classes.labelContainer, (_cx2 = {}, _cx2[classes.rtlLabelContainer] = isRtl, _cx2))
|
|
70646
70645
|
},
|
|
70647
70646
|
react_default.a.createElement(
|
|
70648
70647
|
SvgIcon["a" /* default */],
|
|
@@ -72384,10 +72383,15 @@ var HierarchicalFilter_extends = Object.assign || function (target) { for (var i
|
|
|
72384
72383
|
|
|
72385
72384
|
|
|
72386
72385
|
var HierarchicalFilter_getCounter = function getCounter(items, disableAccessor, tagAccessor) {
|
|
72387
|
-
var
|
|
72388
|
-
|
|
72389
|
-
|
|
72390
|
-
|
|
72386
|
+
var selectedItemsIds = es_reduce(function (acc, item) {
|
|
72387
|
+
if (es_prop('isSelected', item)) {
|
|
72388
|
+
return es_append(item.id, acc);
|
|
72389
|
+
}
|
|
72390
|
+
return acc;
|
|
72391
|
+
}, [], items);
|
|
72392
|
+
var itemsIds = es_pluck('id', items);
|
|
72393
|
+
var count = pipe(es_uniq, es_length)(selectedItemsIds);
|
|
72394
|
+
var total = pipe(es_uniq, es_length)(itemsIds);
|
|
72391
72395
|
if (es_is(Function, tagAccessor)) {
|
|
72392
72396
|
return tagAccessor(count, total);
|
|
72393
72397
|
}
|