@sis-cc/dotstatsuite-visions 10.1.0 → 10.3.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/ChartsConfig/ChartsConfig.js +1 -1
- package/es/VirtualizedTree/VirtualizedTree.js +9 -2
- package/lib/ChartsConfig/ChartsConfig.js +1 -1
- package/lib/VirtualizedTree/VirtualizedTree.js +9 -2
- package/package.json +1 -1
- package/umd/@sis-cc/dotstatsuite-visions.js +12 -5
- package/umd/@sis-cc/dotstatsuite-visions.min.js +9 -9
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -1
|
@@ -190,7 +190,7 @@ var ChartConfig = function ChartConfig(_ref) {
|
|
|
190
190
|
onChange: function onChange(id) {
|
|
191
191
|
return baseline.onChange(R.pipe(R.props([id]), R.without(baseline.value))(xbaselineOptions));
|
|
192
192
|
},
|
|
193
|
-
value:
|
|
193
|
+
value: R.pipe(R.propOr([], 'value'), R.head, R.prop('value'))(baseline),
|
|
194
194
|
items: baselineOptions,
|
|
195
195
|
isClearable: true,
|
|
196
196
|
label: R.prop('baseline', labels),
|
|
@@ -167,20 +167,24 @@ var VirtualizedTree = function VirtualizedTree(props) {
|
|
|
167
167
|
};
|
|
168
168
|
var eventsCallbacks = function eventsCallbacks(id, index) {
|
|
169
169
|
return {
|
|
170
|
-
onMouseUp: isMouseDown ? function () {
|
|
170
|
+
onMouseUp: isMouseDown ? function (e) {
|
|
171
|
+
e.preventDefault();
|
|
171
172
|
apply();
|
|
172
173
|
if (!R.isEmpty(selectIds)) {
|
|
173
174
|
setLastItemId(id);
|
|
174
175
|
}
|
|
176
|
+
setIsMouseDown(false);
|
|
175
177
|
} : null,
|
|
176
178
|
onMouseDown: function onMouseDown(e) {
|
|
179
|
+
e.preventDefault();
|
|
177
180
|
if (e.ctrlKey || e.shiftKey) {
|
|
178
181
|
return;
|
|
179
182
|
}
|
|
180
|
-
multiSelect(id);
|
|
181
183
|
setIsMouseDown(true);
|
|
184
|
+
multiSelect(id);
|
|
182
185
|
},
|
|
183
186
|
onMouseEnter: isMouseDown ? function (e) {
|
|
187
|
+
e.preventDefault();
|
|
184
188
|
if (e.ctrlKey || e.shiftKey) {
|
|
185
189
|
return;
|
|
186
190
|
}
|
|
@@ -188,12 +192,15 @@ var VirtualizedTree = function VirtualizedTree(props) {
|
|
|
188
192
|
} : null,
|
|
189
193
|
onClick: function onClick(e) {
|
|
190
194
|
e.preventDefault();
|
|
195
|
+
setIsMouseDown(false);
|
|
196
|
+
setLastItemId(id);
|
|
191
197
|
if (e.ctrlKey) {
|
|
192
198
|
multiSelect(id);
|
|
193
199
|
} else if (e.shiftKey) {
|
|
194
200
|
shiftSelect(index);
|
|
195
201
|
}
|
|
196
202
|
}
|
|
203
|
+
// ondblclick: () => null
|
|
197
204
|
};
|
|
198
205
|
};
|
|
199
206
|
var onKeyUp = function onKeyUp(e) {
|
|
@@ -243,7 +243,7 @@ var ChartConfig = function ChartConfig(_ref) {
|
|
|
243
243
|
onChange: function onChange(id) {
|
|
244
244
|
return baseline.onChange(R.pipe(R.props([id]), R.without(baseline.value))(xbaselineOptions));
|
|
245
245
|
},
|
|
246
|
-
value: (
|
|
246
|
+
value: R.pipe(R.propOr([], 'value'), R.head, R.prop('value'))(baseline),
|
|
247
247
|
items: baselineOptions,
|
|
248
248
|
isClearable: true,
|
|
249
249
|
label: R.prop('baseline', labels),
|
|
@@ -205,20 +205,24 @@ var VirtualizedTree = function VirtualizedTree(props) {
|
|
|
205
205
|
};
|
|
206
206
|
var eventsCallbacks = function eventsCallbacks(id, index) {
|
|
207
207
|
return {
|
|
208
|
-
onMouseUp: isMouseDown ? function () {
|
|
208
|
+
onMouseUp: isMouseDown ? function (e) {
|
|
209
|
+
e.preventDefault();
|
|
209
210
|
apply();
|
|
210
211
|
if (!R.isEmpty(selectIds)) {
|
|
211
212
|
setLastItemId(id);
|
|
212
213
|
}
|
|
214
|
+
setIsMouseDown(false);
|
|
213
215
|
} : null,
|
|
214
216
|
onMouseDown: function onMouseDown(e) {
|
|
217
|
+
e.preventDefault();
|
|
215
218
|
if (e.ctrlKey || e.shiftKey) {
|
|
216
219
|
return;
|
|
217
220
|
}
|
|
218
|
-
multiSelect(id);
|
|
219
221
|
setIsMouseDown(true);
|
|
222
|
+
multiSelect(id);
|
|
220
223
|
},
|
|
221
224
|
onMouseEnter: isMouseDown ? function (e) {
|
|
225
|
+
e.preventDefault();
|
|
222
226
|
if (e.ctrlKey || e.shiftKey) {
|
|
223
227
|
return;
|
|
224
228
|
}
|
|
@@ -226,12 +230,15 @@ var VirtualizedTree = function VirtualizedTree(props) {
|
|
|
226
230
|
} : null,
|
|
227
231
|
onClick: function onClick(e) {
|
|
228
232
|
e.preventDefault();
|
|
233
|
+
setIsMouseDown(false);
|
|
234
|
+
setLastItemId(id);
|
|
229
235
|
if (e.ctrlKey) {
|
|
230
236
|
multiSelect(id);
|
|
231
237
|
} else if (e.shiftKey) {
|
|
232
238
|
shiftSelect(index);
|
|
233
239
|
}
|
|
234
240
|
}
|
|
241
|
+
// ondblclick: () => null
|
|
235
242
|
};
|
|
236
243
|
};
|
|
237
244
|
var onKeyUp = function onKeyUp(e) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @sis-cc/dotstatsuite-visions v10.
|
|
2
|
+
* @sis-cc/dotstatsuite-visions v10.3.0 - https://visions-qa.siscc.org/#o
|
|
3
3
|
* MIT Licensed
|
|
4
4
|
*/
|
|
5
5
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -6673,7 +6673,7 @@ function removeClassName(el
|
|
|
6673
6673
|
/* 120 */
|
|
6674
6674
|
/***/ (function(module) {
|
|
6675
6675
|
|
|
6676
|
-
module.exports = {"name":"@sis-cc/dotstatsuite-visions","version":"10.
|
|
6676
|
+
module.exports = {"name":"@sis-cc/dotstatsuite-visions","version":"10.3.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":{"@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"}};
|
|
6677
6677
|
|
|
6678
6678
|
/***/ }),
|
|
6679
6679
|
/* 121 */
|
|
@@ -39794,7 +39794,7 @@ var ChartsConfig_ChartConfig = function ChartConfig(_ref) {
|
|
|
39794
39794
|
onChange: function onChange(id) {
|
|
39795
39795
|
return baseline.onChange(pipe(es_props([id]), es_without(baseline.value))(xbaselineOptions));
|
|
39796
39796
|
},
|
|
39797
|
-
value:
|
|
39797
|
+
value: pipe(es_propOr([], 'value'), es_head, es_prop('value'))(baseline),
|
|
39798
39798
|
items: baselineOptions,
|
|
39799
39799
|
isClearable: true,
|
|
39800
39800
|
label: es_prop('baseline', labels),
|
|
@@ -70975,20 +70975,24 @@ var VirtualizedTree_VirtualizedTree = function VirtualizedTree(props) {
|
|
|
70975
70975
|
};
|
|
70976
70976
|
var eventsCallbacks = function eventsCallbacks(id, index) {
|
|
70977
70977
|
return {
|
|
70978
|
-
onMouseUp: isMouseDown ? function () {
|
|
70978
|
+
onMouseUp: isMouseDown ? function (e) {
|
|
70979
|
+
e.preventDefault();
|
|
70979
70980
|
apply();
|
|
70980
70981
|
if (!es_isEmpty(selectIds)) {
|
|
70981
70982
|
setLastItemId(id);
|
|
70982
70983
|
}
|
|
70984
|
+
setIsMouseDown(false);
|
|
70983
70985
|
} : null,
|
|
70984
70986
|
onMouseDown: function onMouseDown(e) {
|
|
70987
|
+
e.preventDefault();
|
|
70985
70988
|
if (e.ctrlKey || e.shiftKey) {
|
|
70986
70989
|
return;
|
|
70987
70990
|
}
|
|
70988
|
-
multiSelect(id);
|
|
70989
70991
|
setIsMouseDown(true);
|
|
70992
|
+
multiSelect(id);
|
|
70990
70993
|
},
|
|
70991
70994
|
onMouseEnter: isMouseDown ? function (e) {
|
|
70995
|
+
e.preventDefault();
|
|
70992
70996
|
if (e.ctrlKey || e.shiftKey) {
|
|
70993
70997
|
return;
|
|
70994
70998
|
}
|
|
@@ -70996,12 +71000,15 @@ var VirtualizedTree_VirtualizedTree = function VirtualizedTree(props) {
|
|
|
70996
71000
|
} : null,
|
|
70997
71001
|
onClick: function onClick(e) {
|
|
70998
71002
|
e.preventDefault();
|
|
71003
|
+
setIsMouseDown(false);
|
|
71004
|
+
setLastItemId(id);
|
|
70999
71005
|
if (e.ctrlKey) {
|
|
71000
71006
|
multiSelect(id);
|
|
71001
71007
|
} else if (e.shiftKey) {
|
|
71002
71008
|
shiftSelect(index);
|
|
71003
71009
|
}
|
|
71004
71010
|
}
|
|
71011
|
+
// ondblclick: () => null
|
|
71005
71012
|
};
|
|
71006
71013
|
};
|
|
71007
71014
|
var onKeyUp = function onKeyUp(e) {
|