@sis-cc/dotstatsuite-visions 10.28.0 → 10.28.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/DataFooter/DataFooter.js +16 -30
- package/es/DataHeader/DataHeader.js +32 -36
- package/es/HierarchicalFilter/HierarchicalFilter.js +1 -3
- package/es/Logo/Logo.js +12 -11
- package/es/ScopeList/Item.js +2 -1
- package/es/ScopeList/ScopeList.js +1 -1
- package/es/ScopeList/styles.js +1 -9
- package/es/ToggleButton/ToggleButton.js +11 -14
- package/es/VirtualizedTree/Item.js +4 -1
- package/lib/DataFooter/DataFooter.js +16 -30
- package/lib/DataHeader/DataHeader.js +32 -36
- package/lib/HierarchicalFilter/HierarchicalFilter.js +1 -3
- package/lib/Logo/Logo.js +12 -11
- package/lib/ScopeList/Item.js +2 -1
- package/lib/ScopeList/ScopeList.js +1 -1
- package/lib/ScopeList/styles.js +1 -9
- package/lib/ToggleButton/ToggleButton.js +11 -14
- package/lib/VirtualizedTree/Item.js +4 -1
- package/package.json +1 -1
- package/umd/@sis-cc/dotstatsuite-visions.js +111 -138
- package/umd/@sis-cc/dotstatsuite-visions.min.js +9 -9
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -1
package/lib/Logo/Logo.js
CHANGED
|
@@ -26,10 +26,6 @@ var useStyles = (0, _styles.makeStyles)(function () {
|
|
|
26
26
|
},
|
|
27
27
|
logo: {
|
|
28
28
|
maxWidth: '100%',
|
|
29
|
-
maxHeight: function maxHeight(_ref) {
|
|
30
|
-
var _maxHeight = _ref.maxHeight;
|
|
31
|
-
return _maxHeight;
|
|
32
|
-
},
|
|
33
29
|
imageRendering: 'crisp-edges'
|
|
34
30
|
},
|
|
35
31
|
// https://caniuse.com/mdn-css_properties_image-rendering_crisp-edges
|
|
@@ -39,17 +35,22 @@ var useStyles = (0, _styles.makeStyles)(function () {
|
|
|
39
35
|
};
|
|
40
36
|
});
|
|
41
37
|
|
|
42
|
-
var Logo = function Logo(
|
|
43
|
-
var logo =
|
|
44
|
-
|
|
45
|
-
maxHeight =
|
|
46
|
-
children =
|
|
38
|
+
var Logo = function Logo(_ref) {
|
|
39
|
+
var logo = _ref.logo,
|
|
40
|
+
_ref$maxHeight = _ref.maxHeight,
|
|
41
|
+
maxHeight = _ref$maxHeight === undefined ? 150 : _ref$maxHeight,
|
|
42
|
+
children = _ref.children;
|
|
47
43
|
|
|
48
|
-
var classes = useStyles(
|
|
44
|
+
var classes = useStyles();
|
|
49
45
|
return _react2.default.createElement(
|
|
50
46
|
'div',
|
|
51
47
|
{ className: classes.container },
|
|
52
|
-
_react2.default.createElement('img', {
|
|
48
|
+
_react2.default.createElement('img', {
|
|
49
|
+
className: (0, _classnames2.default)(classes.logo, classes.alternativeBrowserLogo),
|
|
50
|
+
style: { maxHeight: maxHeight },
|
|
51
|
+
src: logo,
|
|
52
|
+
alt: 'logo'
|
|
53
|
+
}),
|
|
53
54
|
children
|
|
54
55
|
);
|
|
55
56
|
};
|
package/lib/ScopeList/Item.js
CHANGED
|
@@ -207,7 +207,8 @@ var Item = function Item(_ref) {
|
|
|
207
207
|
onMouseEnter: R.is(Function, changeMouseSelection) ? changeMouseSelection(null, { isUp: true }) : null,
|
|
208
208
|
style: _extends({}, R.evolve(containerStyles, style), {
|
|
209
209
|
left: isRtl && 0,
|
|
210
|
-
right: R.not(isRtl) && 0
|
|
210
|
+
right: R.not(isRtl) && 0,
|
|
211
|
+
outline: accessibility ? undefined : 'none'
|
|
211
212
|
}),
|
|
212
213
|
className: classes.containerArrow,
|
|
213
214
|
tabIndex: 0,
|
|
@@ -117,7 +117,7 @@ var ScopeList = function ScopeList(props) {
|
|
|
117
117
|
setScrollTop = _useState2[1];
|
|
118
118
|
|
|
119
119
|
var ref = (0, _react.useRef)();
|
|
120
|
-
var classes = (0, _styles.useStyles)(
|
|
120
|
+
var classes = (0, _styles.useStyles)();
|
|
121
121
|
var theme = (0, _core.useTheme)();
|
|
122
122
|
|
|
123
123
|
var _useState3 = (0, _react.useState)(false),
|
package/lib/ScopeList/styles.js
CHANGED
|
@@ -33,11 +33,7 @@ var useStyles = exports.useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
33
33
|
margin: 0,
|
|
34
34
|
userSelect: 'none',
|
|
35
35
|
cursor: 'pointer',
|
|
36
|
-
color: theme.palette.primary.main
|
|
37
|
-
outline: function outline(_ref) {
|
|
38
|
-
var accessibility = _ref.accessibility;
|
|
39
|
-
return accessibility ? undefined : 'none';
|
|
40
|
-
}
|
|
36
|
+
color: theme.palette.primary.main
|
|
41
37
|
},
|
|
42
38
|
listItemHover: {
|
|
43
39
|
'&:hover': {
|
|
@@ -132,10 +128,6 @@ var useStyles = exports.useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
132
128
|
color: theme.palette.primary.main,
|
|
133
129
|
height: '100%',
|
|
134
130
|
display: 'flex',
|
|
135
|
-
outline: function outline(_ref2) {
|
|
136
|
-
var accessibility = _ref2.accessibility;
|
|
137
|
-
return accessibility ? undefined : 'none';
|
|
138
|
-
},
|
|
139
131
|
'&:hover, &:focus': {
|
|
140
132
|
backgroundColor: theme.palette.primary.main,
|
|
141
133
|
color: theme.palette.common.white
|
|
@@ -53,10 +53,6 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
label: {
|
|
56
|
-
textTransform: function textTransform(_ref) {
|
|
57
|
-
var _textTransform = _ref.textTransform;
|
|
58
|
-
return _textTransform;
|
|
59
|
-
},
|
|
60
56
|
textAlign: 'left',
|
|
61
57
|
fontSize: '0.9375rem',
|
|
62
58
|
lineHeight: '1.0'
|
|
@@ -68,19 +64,19 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
68
64
|
};
|
|
69
65
|
});
|
|
70
66
|
|
|
71
|
-
var ToggleButton = function ToggleButton(
|
|
67
|
+
var ToggleButton = function ToggleButton(_ref) {
|
|
72
68
|
var _cx;
|
|
73
69
|
|
|
74
|
-
var isOpen =
|
|
75
|
-
label =
|
|
76
|
-
toggle =
|
|
77
|
-
testId =
|
|
78
|
-
|
|
79
|
-
tabindex =
|
|
80
|
-
|
|
81
|
-
textTransform =
|
|
70
|
+
var isOpen = _ref.isOpen,
|
|
71
|
+
label = _ref.label,
|
|
72
|
+
toggle = _ref.toggle,
|
|
73
|
+
testId = _ref.testId,
|
|
74
|
+
_ref$tabindex = _ref.tabindex,
|
|
75
|
+
tabindex = _ref$tabindex === undefined ? 0 : _ref$tabindex,
|
|
76
|
+
_ref$textTransform = _ref.textTransform,
|
|
77
|
+
textTransform = _ref$textTransform === undefined ? 'capitalize' : _ref$textTransform;
|
|
82
78
|
|
|
83
|
-
var classes = useStyles(
|
|
79
|
+
var classes = useStyles();
|
|
84
80
|
return _react2.default.createElement(
|
|
85
81
|
_Button2.default,
|
|
86
82
|
{
|
|
@@ -90,6 +86,7 @@ var ToggleButton = function ToggleButton(_ref2) {
|
|
|
90
86
|
'data-testid': testId,
|
|
91
87
|
classes: { root: classes.root, label: classes.label },
|
|
92
88
|
className: (0, _classnames2.default)((_cx = {}, _cx[classes.selected] = isOpen, _cx)),
|
|
89
|
+
style: { textTransform: textTransform },
|
|
93
90
|
fullWidth: true,
|
|
94
91
|
variant: 'text',
|
|
95
92
|
onClick: R.is(Function)(toggle) ? toggle : null
|
|
@@ -139,7 +139,10 @@ var Item = function Item(_ref) {
|
|
|
139
139
|
onMouseDown: isDisabled || open ? null : eventsListeners.onMouseDown,
|
|
140
140
|
onMouseEnter: isDisabled || open ? null : eventsListeners.onMouseEnter,
|
|
141
141
|
title: isGreyed ? R.propOr('', 'disableItemLabel')(labels) + ' ' + label : label,
|
|
142
|
-
style: {
|
|
142
|
+
style: {
|
|
143
|
+
opacity: isDisabled && isGreyed ? '0.5' : '1',
|
|
144
|
+
outline: accessibility ? undefined : 'none'
|
|
145
|
+
},
|
|
143
146
|
primary: _react2.default.createElement(
|
|
144
147
|
'div',
|
|
145
148
|
{
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @sis-cc/dotstatsuite-visions v10.28.
|
|
2
|
+
* @sis-cc/dotstatsuite-visions v10.28.1 - https://visions-qa.siscc.org/#o
|
|
3
3
|
* MIT Licensed
|
|
4
4
|
*/
|
|
5
5
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -6697,7 +6697,7 @@ function removeClassName(el
|
|
|
6697
6697
|
/* 119 */
|
|
6698
6698
|
/***/ (function(module) {
|
|
6699
6699
|
|
|
6700
|
-
module.exports = {"name":"@sis-cc/dotstatsuite-visions","version":"10.28.
|
|
6700
|
+
module.exports = {"name":"@sis-cc/dotstatsuite-visions","version":"10.28.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"}};
|
|
6701
6701
|
|
|
6702
6702
|
/***/ }),
|
|
6703
6703
|
/* 120 */
|
|
@@ -46640,6 +46640,37 @@ Dataflow_Dataflow.propTypes = {
|
|
|
46640
46640
|
*/
|
|
46641
46641
|
|
|
46642
46642
|
|
|
46643
|
+
// CONCATENATED MODULE: ./node_modules/ramda/es/lt.js
|
|
46644
|
+
|
|
46645
|
+
/**
|
|
46646
|
+
* Returns `true` if the first argument is less than the second; `false`
|
|
46647
|
+
* otherwise.
|
|
46648
|
+
*
|
|
46649
|
+
* @func
|
|
46650
|
+
* @memberOf R
|
|
46651
|
+
* @since v0.1.0
|
|
46652
|
+
* @category Relation
|
|
46653
|
+
* @sig Ord a => a -> a -> Boolean
|
|
46654
|
+
* @param {*} a
|
|
46655
|
+
* @param {*} b
|
|
46656
|
+
* @return {Boolean}
|
|
46657
|
+
* @see R.gt
|
|
46658
|
+
* @example
|
|
46659
|
+
*
|
|
46660
|
+
* R.lt(2, 1); //=> false
|
|
46661
|
+
* R.lt(2, 2); //=> false
|
|
46662
|
+
* R.lt(2, 3); //=> true
|
|
46663
|
+
* R.lt('a', 'z'); //=> true
|
|
46664
|
+
* R.lt('z', 'a'); //=> false
|
|
46665
|
+
*/
|
|
46666
|
+
|
|
46667
|
+
var lt =
|
|
46668
|
+
/*#__PURE__*/
|
|
46669
|
+
_curry2(function lt(a, b) {
|
|
46670
|
+
return a < b;
|
|
46671
|
+
});
|
|
46672
|
+
|
|
46673
|
+
/* harmony default export */ var es_lt = (lt);
|
|
46643
46674
|
// CONCATENATED MODULE: ./node_modules/ramda/es/cond.js
|
|
46644
46675
|
|
|
46645
46676
|
|
|
@@ -46715,37 +46746,6 @@ var T = function () {
|
|
|
46715
46746
|
};
|
|
46716
46747
|
|
|
46717
46748
|
/* harmony default export */ var es_T = (T);
|
|
46718
|
-
// CONCATENATED MODULE: ./node_modules/ramda/es/lt.js
|
|
46719
|
-
|
|
46720
|
-
/**
|
|
46721
|
-
* Returns `true` if the first argument is less than the second; `false`
|
|
46722
|
-
* otherwise.
|
|
46723
|
-
*
|
|
46724
|
-
* @func
|
|
46725
|
-
* @memberOf R
|
|
46726
|
-
* @since v0.1.0
|
|
46727
|
-
* @category Relation
|
|
46728
|
-
* @sig Ord a => a -> a -> Boolean
|
|
46729
|
-
* @param {*} a
|
|
46730
|
-
* @param {*} b
|
|
46731
|
-
* @return {Boolean}
|
|
46732
|
-
* @see R.gt
|
|
46733
|
-
* @example
|
|
46734
|
-
*
|
|
46735
|
-
* R.lt(2, 1); //=> false
|
|
46736
|
-
* R.lt(2, 2); //=> false
|
|
46737
|
-
* R.lt(2, 3); //=> true
|
|
46738
|
-
* R.lt('a', 'z'); //=> true
|
|
46739
|
-
* R.lt('z', 'a'); //=> false
|
|
46740
|
-
*/
|
|
46741
|
-
|
|
46742
|
-
var lt =
|
|
46743
|
-
/*#__PURE__*/
|
|
46744
|
-
_curry2(function lt(a, b) {
|
|
46745
|
-
return a < b;
|
|
46746
|
-
});
|
|
46747
|
-
|
|
46748
|
-
/* harmony default export */ var es_lt = (lt);
|
|
46749
46749
|
// EXTERNAL MODULE: ./node_modules/@material-ui/icons/Info.js
|
|
46750
46750
|
var Info = __webpack_require__(184);
|
|
46751
46751
|
var Info_default = /*#__PURE__*/__webpack_require__.n(Info);
|
|
@@ -47526,11 +47526,7 @@ var DataHeader_useStyles = styles_makeStyles(function (theme) {
|
|
|
47526
47526
|
return {
|
|
47527
47527
|
header: {
|
|
47528
47528
|
alignItems: 'center',
|
|
47529
|
-
display: 'flex'
|
|
47530
|
-
justifyContent: function justifyContent(_ref) {
|
|
47531
|
-
var isWidthLess = _ref.isWidthLess;
|
|
47532
|
-
return isWidthLess(T4_BREAKPOINTS.xs2) ? 'flex-end' : 'space-between';
|
|
47533
|
-
}
|
|
47529
|
+
display: 'flex'
|
|
47534
47530
|
},
|
|
47535
47531
|
container: DataHeader_extends({
|
|
47536
47532
|
display: 'flex',
|
|
@@ -47544,12 +47540,7 @@ var DataHeader_useStyles = styles_makeStyles(function (theme) {
|
|
|
47544
47540
|
display: 'inline-block',
|
|
47545
47541
|
width: '100%',
|
|
47546
47542
|
lineHeight: 1.5
|
|
47547
|
-
}, es_pathOr({}, ['mixins', 'dataHeader', 'title'], theme),
|
|
47548
|
-
fontSize: function fontSize(_ref2) {
|
|
47549
|
-
var isWidthLess = _ref2.isWidthLess;
|
|
47550
|
-
return es_cond([[es_always(isWidthLess(T4_BREAKPOINTS.xs3)), es_always(12)], [es_always(isWidthLess(T4_BREAKPOINTS.sm)), es_always(14)], [es_always(isWidthLess(T4_BREAKPOINTS.md2)), es_always(16)], [es_T, es_identity]])(18);
|
|
47551
|
-
}
|
|
47552
|
-
}),
|
|
47543
|
+
}, es_pathOr({}, ['mixins', 'dataHeader', 'title'], theme)),
|
|
47553
47544
|
wrapperSubtitle: {
|
|
47554
47545
|
alignItems: 'center',
|
|
47555
47546
|
display: 'flex',
|
|
@@ -47560,18 +47551,9 @@ var DataHeader_useStyles = styles_makeStyles(function (theme) {
|
|
|
47560
47551
|
subtitle: DataHeader_extends({
|
|
47561
47552
|
lineHeight: 1.6,
|
|
47562
47553
|
color: theme.palette.grey[600]
|
|
47563
|
-
}, es_pathOr({}, ['mixins', 'dataHeader', 'subtitle'], theme),
|
|
47564
|
-
fontSize: function fontSize(_ref3) {
|
|
47565
|
-
var isWidthLess = _ref3.isWidthLess;
|
|
47566
|
-
return es_cond([[es_always(isWidthLess(T4_BREAKPOINTS.xs3)), es_always(12)], [es_always(isWidthLess(T4_BREAKPOINTS.sm)), es_always(13)]])(14);
|
|
47567
|
-
}
|
|
47568
|
-
}),
|
|
47554
|
+
}, es_pathOr({}, ['mixins', 'dataHeader', 'subtitle'], theme)),
|
|
47569
47555
|
disclaimer: DataHeader_extends({
|
|
47570
47556
|
padding: theme.spacing(0.5),
|
|
47571
|
-
fontSize: function fontSize(_ref4) {
|
|
47572
|
-
var isWidthLess = _ref4.isWidthLess;
|
|
47573
|
-
return es_cond([[es_always(isWidthLess(T4_BREAKPOINTS.xs3)), es_always(12)], [es_always(isWidthLess(T4_BREAKPOINTS.sm)), es_always(13)]])(14);
|
|
47574
|
-
},
|
|
47575
47557
|
lineHeight: 1.5
|
|
47576
47558
|
}, es_pathOr({}, ['mixins', 'dataHeader', 'disclaimer'], theme)),
|
|
47577
47559
|
infoIcon: {
|
|
@@ -47613,19 +47595,19 @@ var DataHeader_useStyles = styles_makeStyles(function (theme) {
|
|
|
47613
47595
|
};
|
|
47614
47596
|
});
|
|
47615
47597
|
|
|
47616
|
-
var DataHeader_DataHeader = function DataHeader(
|
|
47598
|
+
var DataHeader_DataHeader = function DataHeader(_ref) {
|
|
47617
47599
|
var _cx;
|
|
47618
47600
|
|
|
47619
|
-
var children =
|
|
47620
|
-
title =
|
|
47621
|
-
|
|
47622
|
-
subtitle =
|
|
47623
|
-
combinations =
|
|
47624
|
-
disclaimer =
|
|
47625
|
-
sideProps =
|
|
47626
|
-
SideIcon =
|
|
47627
|
-
|
|
47628
|
-
isSticky =
|
|
47601
|
+
var children = _ref.children,
|
|
47602
|
+
title = _ref.title,
|
|
47603
|
+
_ref$subtitle = _ref.subtitle,
|
|
47604
|
+
subtitle = _ref$subtitle === undefined ? [] : _ref$subtitle,
|
|
47605
|
+
combinations = _ref.combinations,
|
|
47606
|
+
disclaimer = _ref.disclaimer,
|
|
47607
|
+
sideProps = _ref.sideProps,
|
|
47608
|
+
SideIcon = _ref.SideIcon,
|
|
47609
|
+
_ref$isSticky = _ref.isSticky,
|
|
47610
|
+
isSticky = _ref$isSticky === undefined ? false : _ref$isSticky;
|
|
47629
47611
|
|
|
47630
47612
|
var target = react_default.a.useRef(null);
|
|
47631
47613
|
|
|
@@ -47634,7 +47616,7 @@ var DataHeader_DataHeader = function DataHeader(_ref5) {
|
|
|
47634
47616
|
|
|
47635
47617
|
var isWidthUp = es_gte(width);
|
|
47636
47618
|
var isWidthLess = es_lt(width);
|
|
47637
|
-
var classes = DataHeader_useStyles(
|
|
47619
|
+
var classes = DataHeader_useStyles();
|
|
47638
47620
|
|
|
47639
47621
|
var reducedContent = utils_getReducedContent({
|
|
47640
47622
|
isWidthLess: isWidthLess,
|
|
@@ -47646,13 +47628,21 @@ var DataHeader_DataHeader = function DataHeader(_ref5) {
|
|
|
47646
47628
|
|
|
47647
47629
|
var theme = useTheme_useTheme();
|
|
47648
47630
|
var iconColor = es_path(['mixins', 'dataHeader', 'icon', 'color'], theme);
|
|
47649
|
-
|
|
47631
|
+
var fontSizeTitle = es_cond([[es_always(isWidthLess(T4_BREAKPOINTS.xs3)), es_always(12)], [es_always(isWidthLess(T4_BREAKPOINTS.sm)), es_always(14)], [es_always(isWidthLess(T4_BREAKPOINTS.md2)), es_always(16)], [es_T, es_identity]])(18);
|
|
47632
|
+
var fontSizeSubtitle = es_cond([[es_always(isWidthLess(T4_BREAKPOINTS.xs3)), es_always(12)], [es_always(isWidthLess(T4_BREAKPOINTS.sm)), es_always(13)]])(14);
|
|
47650
47633
|
var subtitleLength = es_length(subtitle);
|
|
47651
47634
|
var combinationsLength = es_length(combinations);
|
|
47652
47635
|
|
|
47653
47636
|
return react_default.a.createElement(
|
|
47654
47637
|
'div',
|
|
47655
|
-
{
|
|
47638
|
+
{
|
|
47639
|
+
className: classes.header,
|
|
47640
|
+
style: {
|
|
47641
|
+
justifyContent: isWidthLess(T4_BREAKPOINTS.xs2) ? 'flex-end' : 'space-between'
|
|
47642
|
+
},
|
|
47643
|
+
ref: target,
|
|
47644
|
+
'data-testid': 'data-header'
|
|
47645
|
+
},
|
|
47656
47646
|
react_default.a.createElement(
|
|
47657
47647
|
'div',
|
|
47658
47648
|
{ className: classnames_default()(classes.container, (_cx = {}, _cx[classes.sticky] = isSticky, _cx)) },
|
|
@@ -47661,6 +47651,7 @@ var DataHeader_DataHeader = function DataHeader(_ref5) {
|
|
|
47661
47651
|
{
|
|
47662
47652
|
variant: 'h1',
|
|
47663
47653
|
className: classes.title,
|
|
47654
|
+
style: { fontSize: fontSizeTitle },
|
|
47664
47655
|
'data-testid': 'data-header-title',
|
|
47665
47656
|
'aria-label': title.label
|
|
47666
47657
|
},
|
|
@@ -47681,6 +47672,7 @@ var DataHeader_DataHeader = function DataHeader(_ref5) {
|
|
|
47681
47672
|
{
|
|
47682
47673
|
key: 'subtitle-' + index,
|
|
47683
47674
|
className: classes.subtitle,
|
|
47675
|
+
style: { fontSize: fontSizeSubtitle },
|
|
47684
47676
|
'data-testid': 'data-header-subtitle',
|
|
47685
47677
|
'aria-label': sub.header
|
|
47686
47678
|
},
|
|
@@ -47728,7 +47720,11 @@ var DataHeader_DataHeader = function DataHeader(_ref5) {
|
|
|
47728
47720
|
),
|
|
47729
47721
|
isWidthUp(T4_BREAKPOINTS.xs3) && disclaimer && react_default.a.createElement(
|
|
47730
47722
|
esm_Typography_Typography,
|
|
47731
|
-
{
|
|
47723
|
+
{
|
|
47724
|
+
'data-testid': 'data-header-disclaimer',
|
|
47725
|
+
className: classes.disclaimer,
|
|
47726
|
+
style: { fontSize: fontSizeSubtitle }
|
|
47727
|
+
},
|
|
47732
47728
|
disclaimer
|
|
47733
47729
|
)
|
|
47734
47730
|
),
|
|
@@ -47887,25 +47883,11 @@ var DataFooter_useStyles = styles_makeStyles(function (theme) {
|
|
|
47887
47883
|
flexGrow: 1
|
|
47888
47884
|
},
|
|
47889
47885
|
copyright: {
|
|
47890
|
-
padding:
|
|
47891
|
-
var isWidthUp = _ref.isWidthUp,
|
|
47892
|
-
isSourced = _ref.isSourced;
|
|
47893
|
-
|
|
47894
|
-
if (isWidthUp(T4_BREAKPOINTS.sm) && isSourced) return 0;
|
|
47895
|
-
return theme.spacing(0, 1, 0, 1);
|
|
47896
|
-
}
|
|
47886
|
+
padding: 0
|
|
47897
47887
|
},
|
|
47898
47888
|
source: {
|
|
47899
47889
|
padding: theme.spacing(0, 1, 0, 1)
|
|
47900
47890
|
},
|
|
47901
|
-
typo: {
|
|
47902
|
-
fontSize: function fontSize(_ref2) {
|
|
47903
|
-
var isWidthUp = _ref2.isWidthUp;
|
|
47904
|
-
|
|
47905
|
-
if (isWidthUp(T4_BREAKPOINTS.lg)) return 14;
|
|
47906
|
-
return 12;
|
|
47907
|
-
}
|
|
47908
|
-
},
|
|
47909
47891
|
logo: {
|
|
47910
47892
|
height: HEIGHT / 2,
|
|
47911
47893
|
display: 'flex'
|
|
@@ -47917,15 +47899,15 @@ var DataFooter_useStyles = styles_makeStyles(function (theme) {
|
|
|
47917
47899
|
};
|
|
47918
47900
|
});
|
|
47919
47901
|
|
|
47920
|
-
var DataFooter_DataFooter = function DataFooter(
|
|
47902
|
+
var DataFooter_DataFooter = function DataFooter(_ref) {
|
|
47921
47903
|
var _cx;
|
|
47922
47904
|
|
|
47923
|
-
var logo =
|
|
47924
|
-
source =
|
|
47925
|
-
copyright =
|
|
47926
|
-
legend =
|
|
47927
|
-
|
|
47928
|
-
isSticky =
|
|
47905
|
+
var logo = _ref.logo,
|
|
47906
|
+
source = _ref.source,
|
|
47907
|
+
copyright = _ref.copyright,
|
|
47908
|
+
legend = _ref.legend,
|
|
47909
|
+
_ref$isSticky = _ref.isSticky,
|
|
47910
|
+
isSticky = _ref$isSticky === undefined ? false : _ref$isSticky;
|
|
47929
47911
|
|
|
47930
47912
|
var target = react_default.a.useRef(null);
|
|
47931
47913
|
|
|
@@ -47935,12 +47917,13 @@ var DataFooter_DataFooter = function DataFooter(_ref3) {
|
|
|
47935
47917
|
var isWidthUp = es_gt(width);
|
|
47936
47918
|
var isSourced = source && source.label && source.link;
|
|
47937
47919
|
var isCopyrighted = copyright && copyright.label && copyright.content;
|
|
47938
|
-
var classes = DataFooter_useStyles(
|
|
47920
|
+
var classes = DataFooter_useStyles();
|
|
47939
47921
|
|
|
47940
47922
|
var _useKeyboardEscapeHan = useKeybordEscapeHandler(),
|
|
47941
47923
|
open = _useKeyboardEscapeHan.open,
|
|
47942
47924
|
setOpen = _useKeyboardEscapeHan.setOpen;
|
|
47943
47925
|
|
|
47926
|
+
var typoSize = isWidthUp(T4_BREAKPOINTS.lg) ? 14 : 12;
|
|
47944
47927
|
if (!isWidthUp(T4_BREAKPOINTS.xs)) return react_default.a.createElement(esm_Grid_Grid, { ref: target });
|
|
47945
47928
|
|
|
47946
47929
|
return react_default.a.createElement(
|
|
@@ -47972,7 +47955,10 @@ var DataFooter_DataFooter = function DataFooter(_ref3) {
|
|
|
47972
47955
|
},
|
|
47973
47956
|
react_default.a.createElement(
|
|
47974
47957
|
esm_Grid_Grid,
|
|
47975
|
-
{
|
|
47958
|
+
{
|
|
47959
|
+
item: true,
|
|
47960
|
+
className: isWidthUp(T4_BREAKPOINTS.sm) && isSourced ? classes.copyright : classes.source
|
|
47961
|
+
},
|
|
47976
47962
|
isCopyrighted && react_default.a.createElement(
|
|
47977
47963
|
react["Fragment"],
|
|
47978
47964
|
null,
|
|
@@ -48002,11 +47988,7 @@ var DataFooter_DataFooter = function DataFooter(_ref3) {
|
|
|
48002
47988
|
},
|
|
48003
47989
|
react_default.a.createElement(
|
|
48004
47990
|
esm_Typography_Typography,
|
|
48005
|
-
{
|
|
48006
|
-
variant: 'body2',
|
|
48007
|
-
className: classes.typo,
|
|
48008
|
-
style: { cursor: 'pointer' }
|
|
48009
|
-
},
|
|
47991
|
+
{ variant: 'body2', style: { cursor: 'pointer', fontSize: typoSize } },
|
|
48010
47992
|
copyright.label
|
|
48011
47993
|
)
|
|
48012
47994
|
),
|
|
@@ -48022,7 +48004,7 @@ var DataFooter_DataFooter = function DataFooter(_ref3) {
|
|
|
48022
48004
|
{ item: true, className: classes.source },
|
|
48023
48005
|
react_default.a.createElement(
|
|
48024
48006
|
esm_Typography_Typography,
|
|
48025
|
-
{ variant: 'body2',
|
|
48007
|
+
{ variant: 'body2', style: { fontSize: typoSize } },
|
|
48026
48008
|
react_default.a.createElement(
|
|
48027
48009
|
esm_Link_Link,
|
|
48028
48010
|
{ href: source.link, rel: 'noopener noreferrer', target: '_blank', variant: 'body2' },
|
|
@@ -49529,10 +49511,6 @@ var Logo_useStyles = styles_makeStyles(function () {
|
|
|
49529
49511
|
},
|
|
49530
49512
|
logo: {
|
|
49531
49513
|
maxWidth: '100%',
|
|
49532
|
-
maxHeight: function maxHeight(_ref) {
|
|
49533
|
-
var _maxHeight = _ref.maxHeight;
|
|
49534
|
-
return _maxHeight;
|
|
49535
|
-
},
|
|
49536
49514
|
imageRendering: 'crisp-edges'
|
|
49537
49515
|
},
|
|
49538
49516
|
// https://caniuse.com/mdn-css_properties_image-rendering_crisp-edges
|
|
@@ -49542,17 +49520,22 @@ var Logo_useStyles = styles_makeStyles(function () {
|
|
|
49542
49520
|
};
|
|
49543
49521
|
});
|
|
49544
49522
|
|
|
49545
|
-
var Logo_Logo = function Logo(
|
|
49546
|
-
var logo =
|
|
49547
|
-
|
|
49548
|
-
maxHeight =
|
|
49549
|
-
children =
|
|
49523
|
+
var Logo_Logo = function Logo(_ref) {
|
|
49524
|
+
var logo = _ref.logo,
|
|
49525
|
+
_ref$maxHeight = _ref.maxHeight,
|
|
49526
|
+
maxHeight = _ref$maxHeight === undefined ? 150 : _ref$maxHeight,
|
|
49527
|
+
children = _ref.children;
|
|
49550
49528
|
|
|
49551
|
-
var classes = Logo_useStyles(
|
|
49529
|
+
var classes = Logo_useStyles();
|
|
49552
49530
|
return react_default.a.createElement(
|
|
49553
49531
|
'div',
|
|
49554
49532
|
{ className: classes.container },
|
|
49555
|
-
react_default.a.createElement('img', {
|
|
49533
|
+
react_default.a.createElement('img', {
|
|
49534
|
+
className: classnames_default()(classes.logo, classes.alternativeBrowserLogo),
|
|
49535
|
+
style: { maxHeight: maxHeight },
|
|
49536
|
+
src: logo,
|
|
49537
|
+
alt: 'logo'
|
|
49538
|
+
}),
|
|
49556
49539
|
children
|
|
49557
49540
|
);
|
|
49558
49541
|
};
|
|
@@ -67265,10 +67248,6 @@ var ToggleButton_useStyles = styles_makeStyles(function (theme) {
|
|
|
67265
67248
|
}
|
|
67266
67249
|
},
|
|
67267
67250
|
label: {
|
|
67268
|
-
textTransform: function textTransform(_ref) {
|
|
67269
|
-
var _textTransform = _ref.textTransform;
|
|
67270
|
-
return _textTransform;
|
|
67271
|
-
},
|
|
67272
67251
|
textAlign: 'left',
|
|
67273
67252
|
fontSize: '0.9375rem',
|
|
67274
67253
|
lineHeight: '1.0'
|
|
@@ -67280,19 +67259,19 @@ var ToggleButton_useStyles = styles_makeStyles(function (theme) {
|
|
|
67280
67259
|
};
|
|
67281
67260
|
});
|
|
67282
67261
|
|
|
67283
|
-
var ToggleButton_ToggleButton = function ToggleButton(
|
|
67262
|
+
var ToggleButton_ToggleButton = function ToggleButton(_ref) {
|
|
67284
67263
|
var _cx;
|
|
67285
67264
|
|
|
67286
|
-
var isOpen =
|
|
67287
|
-
label =
|
|
67288
|
-
toggle =
|
|
67289
|
-
testId =
|
|
67290
|
-
|
|
67291
|
-
tabindex =
|
|
67292
|
-
|
|
67293
|
-
textTransform =
|
|
67294
|
-
|
|
67295
|
-
var classes = ToggleButton_useStyles(
|
|
67265
|
+
var isOpen = _ref.isOpen,
|
|
67266
|
+
label = _ref.label,
|
|
67267
|
+
toggle = _ref.toggle,
|
|
67268
|
+
testId = _ref.testId,
|
|
67269
|
+
_ref$tabindex = _ref.tabindex,
|
|
67270
|
+
tabindex = _ref$tabindex === undefined ? 0 : _ref$tabindex,
|
|
67271
|
+
_ref$textTransform = _ref.textTransform,
|
|
67272
|
+
textTransform = _ref$textTransform === undefined ? 'capitalize' : _ref$textTransform;
|
|
67273
|
+
|
|
67274
|
+
var classes = ToggleButton_useStyles();
|
|
67296
67275
|
return react_default.a.createElement(
|
|
67297
67276
|
esm_Button_Button,
|
|
67298
67277
|
{
|
|
@@ -67302,6 +67281,7 @@ var ToggleButton_ToggleButton = function ToggleButton(_ref2) {
|
|
|
67302
67281
|
'data-testid': testId,
|
|
67303
67282
|
classes: { root: classes.root, label: classes.label },
|
|
67304
67283
|
className: classnames_default()((_cx = {}, _cx[classes.selected] = isOpen, _cx)),
|
|
67284
|
+
style: { textTransform: textTransform },
|
|
67305
67285
|
fullWidth: true,
|
|
67306
67286
|
variant: 'text',
|
|
67307
67287
|
onClick: es_is(Function)(toggle) ? toggle : null
|
|
@@ -70945,7 +70925,10 @@ var VirtualizedTree_Item_Item = function Item(_ref) {
|
|
|
70945
70925
|
onMouseDown: isDisabled || open ? null : eventsListeners.onMouseDown,
|
|
70946
70926
|
onMouseEnter: isDisabled || open ? null : eventsListeners.onMouseEnter,
|
|
70947
70927
|
title: isGreyed ? es_propOr('', 'disableItemLabel')(labels) + ' ' + label : label,
|
|
70948
|
-
style: {
|
|
70928
|
+
style: {
|
|
70929
|
+
opacity: isDisabled && isGreyed ? '0.5' : '1',
|
|
70930
|
+
outline: accessibility ? undefined : 'none'
|
|
70931
|
+
},
|
|
70949
70932
|
primary: react_default.a.createElement(
|
|
70950
70933
|
'div',
|
|
70951
70934
|
{
|
|
@@ -71073,11 +71056,7 @@ var ScopeList_styles_useStyles = styles_makeStyles(function (theme) {
|
|
|
71073
71056
|
margin: 0,
|
|
71074
71057
|
userSelect: 'none',
|
|
71075
71058
|
cursor: 'pointer',
|
|
71076
|
-
color: theme.palette.primary.main
|
|
71077
|
-
outline: function outline(_ref) {
|
|
71078
|
-
var accessibility = _ref.accessibility;
|
|
71079
|
-
return accessibility ? undefined : 'none';
|
|
71080
|
-
}
|
|
71059
|
+
color: theme.palette.primary.main
|
|
71081
71060
|
},
|
|
71082
71061
|
listItemHover: {
|
|
71083
71062
|
'&:hover': {
|
|
@@ -71172,10 +71151,6 @@ var ScopeList_styles_useStyles = styles_makeStyles(function (theme) {
|
|
|
71172
71151
|
color: theme.palette.primary.main,
|
|
71173
71152
|
height: '100%',
|
|
71174
71153
|
display: 'flex',
|
|
71175
|
-
outline: function outline(_ref2) {
|
|
71176
|
-
var accessibility = _ref2.accessibility;
|
|
71177
|
-
return accessibility ? undefined : 'none';
|
|
71178
|
-
},
|
|
71179
71154
|
'&:hover, &:focus': {
|
|
71180
71155
|
backgroundColor: theme.palette.primary.main,
|
|
71181
71156
|
color: theme.palette.common.white
|
|
@@ -72723,7 +72698,6 @@ var HierarchicalFilter_HierarchicalFilter = function HierarchicalFilter(props) {
|
|
|
72723
72698
|
activePanelId = props.activePanelId,
|
|
72724
72699
|
Tag = props.Tag,
|
|
72725
72700
|
testId = props.testId,
|
|
72726
|
-
accessibility = props.accessibility,
|
|
72727
72701
|
_props$expansionPanel = props.expansionPanelProps,
|
|
72728
72702
|
expansionPanelProps = _props$expansionPanel === undefined ? {} : _props$expansionPanel,
|
|
72729
72703
|
_props$labelRenderer = props.labelRenderer,
|
|
@@ -72743,7 +72717,7 @@ var HierarchicalFilter_HierarchicalFilter = function HierarchicalFilter(props) {
|
|
|
72743
72717
|
_props$simpleSelectio = props.simpleSelectionMode,
|
|
72744
72718
|
simpleSelectionMode = _props$simpleSelectio === undefined ? false : _props$simpleSelectio;
|
|
72745
72719
|
|
|
72746
|
-
var classes = ScopeList_styles_useStyles(
|
|
72720
|
+
var classes = ScopeList_styles_useStyles();
|
|
72747
72721
|
var theme = useTheme_useTheme();
|
|
72748
72722
|
var isRtl = utils_getIsRtl(theme);
|
|
72749
72723
|
var Chip = es_isNil(Tag) ? src_Tag_Tag : Tag;
|
|
@@ -72827,7 +72801,6 @@ var HierarchicalFilter_HierarchicalFilter = function HierarchicalFilter(props) {
|
|
|
72827
72801
|
|
|
72828
72802
|
HierarchicalFilter_HierarchicalFilter.propTypes = {
|
|
72829
72803
|
id: prop_types_default.a.string,
|
|
72830
|
-
accessibility: prop_types_default.a.bool,
|
|
72831
72804
|
activePanelId: prop_types_default.a.string,
|
|
72832
72805
|
changeSelection: prop_types_default.a.func,
|
|
72833
72806
|
onChangeActivePanel: prop_types_default.a.func,
|