@sis-cc/dotstatsuite-visions 11.4.1 → 12.0.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.
Files changed (224) hide show
  1. package/es/AdvancedFilterDialog/AdvancedFilterDialog.js +17 -15
  2. package/es/AdvancedFilterDialog/SelectionModeMenu.js +5 -5
  3. package/es/Alert/Alert.js +46 -45
  4. package/es/Alert/index.js +10 -10
  5. package/es/ApiQueries/ApiQueries.js +4 -4
  6. package/es/ApiQueries/Query.js +4 -4
  7. package/es/AuthDialog/index.js +9 -9
  8. package/es/Breadcrumbs/Breadcrumbs.js +5 -5
  9. package/es/Breadcrumbs/index.js +27 -27
  10. package/es/Button/Button.js +2 -2
  11. package/es/Button/index.js +49 -49
  12. package/es/ChartsConfig/ChartsConfig.js +5 -5
  13. package/es/ChartsConfig/Input.js +9 -8
  14. package/es/ChartsConfig/InputProxy.js +1 -1
  15. package/es/ChartsConfig/Title.js +2 -2
  16. package/es/ChartsConfig/index.js +210 -210
  17. package/es/Chips/CustomChip.js +6 -5
  18. package/es/Chips/DeleteChip.js +1 -1
  19. package/es/Chips/GroupedChips.js +2 -1
  20. package/es/Chips/index.js +65 -65
  21. package/es/Chips/styles.js +2 -2
  22. package/es/CollapseButtons/CollapseButtons.js +6 -6
  23. package/es/CollapseButtons/Item.js +5 -5
  24. package/es/CollapseButtons/Paper.js +3 -3
  25. package/es/CollapseButtons/index.js +87 -87
  26. package/es/CollapsibleTree/Collapse.js +6 -5
  27. package/es/CollapsibleTree/CollapsibleTree.js +11 -11
  28. package/es/CollapsibleTree/index.js +46 -46
  29. package/es/Contact/Contact.js +2 -2
  30. package/es/Contact/Input.js +6 -6
  31. package/es/Contact/Mode.js +8 -7
  32. package/es/DataEdit/DataEdit.js +4 -4
  33. package/es/DataEdit/Input.js +9 -8
  34. package/es/DataFooter/DataFooter.js +6 -6
  35. package/es/DataFooter/index.js +30 -30
  36. package/es/DataHeader/DataHeader.js +6 -4
  37. package/es/Dataflow/Dataflow.js +12 -12
  38. package/es/Dataflow/index.js +59 -59
  39. package/es/ExpansionPanel/ExpansionPanel.js +10 -9
  40. package/es/ExpansionPanel/styles.js +1 -1
  41. package/es/HierarchicalFilter/HierarchicalFilter.js +3 -3
  42. package/es/Icons/AccessibilityFilled.js +1 -1
  43. package/es/Icons/AccessibilityOutlined.js +1 -1
  44. package/es/Icons/AccountFilled.js +1 -1
  45. package/es/Icons/AccountOutlined.js +1 -1
  46. package/es/Icons/Api.js +1 -1
  47. package/es/Icons/Asterisk.js +1 -1
  48. package/es/Icons/Bar.js +1 -1
  49. package/es/Icons/CopyContent.js +1 -1
  50. package/es/Icons/Cross.js +1 -1
  51. package/es/Icons/HSymbol.js +1 -1
  52. package/es/Icons/Row.js +1 -1
  53. package/es/Icons/Scatter.js +1 -1
  54. package/es/Icons/StackedBar.js +1 -1
  55. package/es/Icons/StackedRow.js +1 -1
  56. package/es/Icons/Timeline.js +1 -1
  57. package/es/Icons/VSymbol.js +1 -1
  58. package/es/Icons/Warning.js +1 -1
  59. package/es/Icons/index.js +9 -9
  60. package/es/Input/Input.js +6 -6
  61. package/es/Input/index.js +23 -23
  62. package/es/InputNumber/InputNumber.js +4 -4
  63. package/es/InputNumber/index.js +20 -20
  64. package/es/LabelDivider/LabelDivider.js +2 -2
  65. package/es/LabelDivider/index.js +29 -29
  66. package/es/Loading/Loading.js +2 -2
  67. package/es/Logo/Logo.js +1 -1
  68. package/es/Logo/index.js +15 -15
  69. package/es/Mode/Mode.js +4 -5
  70. package/es/NoData/NoData.js +3 -3
  71. package/es/Pagination/Pagination.js +9 -9
  72. package/es/Pagination/index.js +28 -28
  73. package/es/PeriodPicker/PeriodPicker.js +1 -1
  74. package/es/PeriodPicker/index.js +23 -23
  75. package/es/PeriodPicker/styles.js +1 -1
  76. package/es/ScopeList/Header.js +3 -3
  77. package/es/ScopeList/Item.js +6 -6
  78. package/es/ScopeList/ScopeList.js +7 -7
  79. package/es/ScopeList/Selection.js +7 -7
  80. package/es/ScopeList/styles.js +1 -1
  81. package/es/Select/Select.js +4 -4
  82. package/es/Select/index.js +30 -30
  83. package/es/Share/Form.js +4 -4
  84. package/es/Share/Mode.js +8 -7
  85. package/es/Share/Share.js +3 -3
  86. package/es/Share/index.js +61 -61
  87. package/es/ShortUrls/ShortUrls.js +10 -10
  88. package/es/SisccFooter/SisccFooter.js +6 -5
  89. package/es/Spotlight/Fields.js +4 -4
  90. package/es/Spotlight/Spotlight.js +13 -11
  91. package/es/Spotlight/index.js +72 -72
  92. package/es/Spotlight/useStyles.js +1 -1
  93. package/es/TableFooter/TableFooter.js +3 -4
  94. package/es/TableHeader/TableHeader.js +3 -3
  95. package/es/TableHtml5/TableHtml5.js +2 -2
  96. package/es/TableHtml5/cell.js +5 -4
  97. package/es/TableHtml5/flags.js +5 -5
  98. package/es/TableHtml5/header.js +6 -5
  99. package/es/TableHtml5/section.js +8 -7
  100. package/es/TableHtml5/sectionHeader.js +6 -5
  101. package/es/TableHtml5/subHeader.js +7 -6
  102. package/es/TableLayout/Box.js +5 -4
  103. package/es/TableLayout/DnDItem.js +10 -9
  104. package/es/TableLayout/TableLayout.js +12 -11
  105. package/es/TablePreview/TablePreview.js +4 -4
  106. package/es/TablePreview/lib.js +1 -1
  107. package/es/TablePreview/styles.js +1 -1
  108. package/es/Tag/Tag.js +2 -2
  109. package/es/Tag/index.js +27 -27
  110. package/es/ToggleButton/ToggleButton.js +4 -4
  111. package/es/ToggleButton/index.js +47 -47
  112. package/es/Tooltip/Tooltip.js +3 -12
  113. package/es/Tooltip/index.js +33 -33
  114. package/es/UserRightForm/Input.js +6 -6
  115. package/es/UserRightForm/Permissions.js +5 -5
  116. package/es/UserRightForm/PermsissionsTabs.js +2 -2
  117. package/es/UserRightForm/UserRightForm.js +2 -3
  118. package/es/VerticalButton/VerticalButton.js +7 -5
  119. package/es/VirtualizedTree/Item.js +9 -9
  120. package/es/VirtualizedTree/VirtualizedTree.js +3 -3
  121. package/es/theme.js +82 -57
  122. package/lib/AdvancedFilterDialog/AdvancedFilterDialog.js +21 -17
  123. package/lib/AdvancedFilterDialog/SelectionModeMenu.js +5 -5
  124. package/lib/Alert/Alert.js +50 -46
  125. package/lib/ApiQueries/ApiQueries.js +7 -5
  126. package/lib/ApiQueries/Query.js +7 -5
  127. package/lib/AuthDialog/index.js +12 -10
  128. package/lib/Breadcrumbs/Breadcrumbs.js +8 -6
  129. package/lib/Button/Button.js +5 -3
  130. package/lib/ChartsConfig/ChartsConfig.js +16 -14
  131. package/lib/ChartsConfig/Input.js +12 -9
  132. package/lib/ChartsConfig/InputProxy.js +2 -2
  133. package/lib/ChartsConfig/Title.js +7 -5
  134. package/lib/Chips/CustomChip.js +10 -6
  135. package/lib/Chips/DeleteChip.js +6 -4
  136. package/lib/Chips/GroupedChips.js +6 -2
  137. package/lib/Chips/styles.js +2 -2
  138. package/lib/CollapseButtons/CollapseButtons.js +9 -7
  139. package/lib/CollapseButtons/Item.js +8 -6
  140. package/lib/CollapseButtons/Paper.js +6 -4
  141. package/lib/CollapsibleTree/Collapse.js +10 -6
  142. package/lib/CollapsibleTree/CollapsibleTree.js +14 -12
  143. package/lib/Contact/Contact.js +28 -26
  144. package/lib/Contact/Input.js +9 -7
  145. package/lib/Contact/Mode.js +12 -8
  146. package/lib/DataEdit/DataEdit.js +4 -4
  147. package/lib/DataEdit/Input.js +12 -9
  148. package/lib/DataFooter/DataFooter.js +10 -7
  149. package/lib/DataHeader/DataHeader.js +10 -4
  150. package/lib/Dataflow/Dataflow.js +15 -13
  151. package/lib/ExpansionPanel/ExpansionPanel.js +13 -11
  152. package/lib/ExpansionPanel/styles.js +6 -2
  153. package/lib/HierarchicalFilter/HierarchicalFilter.js +4 -4
  154. package/lib/Icons/AccessibilityFilled.js +1 -1
  155. package/lib/Icons/AccessibilityOutlined.js +1 -1
  156. package/lib/Icons/AccountFilled.js +1 -1
  157. package/lib/Icons/AccountOutlined.js +1 -1
  158. package/lib/Icons/Api.js +1 -1
  159. package/lib/Icons/Asterisk.js +1 -1
  160. package/lib/Icons/Bar.js +1 -1
  161. package/lib/Icons/CopyContent.js +1 -1
  162. package/lib/Icons/Cross.js +1 -1
  163. package/lib/Icons/HSymbol.js +1 -1
  164. package/lib/Icons/Row.js +1 -1
  165. package/lib/Icons/Scatter.js +1 -1
  166. package/lib/Icons/StackedBar.js +1 -1
  167. package/lib/Icons/StackedRow.js +1 -1
  168. package/lib/Icons/Timeline.js +1 -1
  169. package/lib/Icons/VSymbol.js +1 -1
  170. package/lib/Icons/Warning.js +1 -1
  171. package/lib/Input/Input.js +9 -7
  172. package/lib/InputNumber/InputNumber.js +7 -5
  173. package/lib/LabelDivider/LabelDivider.js +5 -3
  174. package/lib/Loading/Loading.js +5 -3
  175. package/lib/Logo/Logo.js +4 -2
  176. package/lib/Mode/Mode.js +7 -6
  177. package/lib/NoData/NoData.js +6 -4
  178. package/lib/Pagination/Pagination.js +13 -9
  179. package/lib/PeriodPicker/PeriodPicker.js +1 -1
  180. package/lib/PeriodPicker/styles.js +6 -2
  181. package/lib/ScopeList/Header.js +3 -3
  182. package/lib/ScopeList/Item.js +6 -6
  183. package/lib/ScopeList/ScopeList.js +8 -8
  184. package/lib/ScopeList/Selection.js +7 -7
  185. package/lib/ScopeList/styles.js +6 -2
  186. package/lib/Select/Select.js +9 -7
  187. package/lib/Share/Form.js +7 -5
  188. package/lib/Share/Mode.js +12 -8
  189. package/lib/Share/Share.js +6 -4
  190. package/lib/ShortUrls/ShortUrls.js +14 -12
  191. package/lib/SisccFooter/SisccFooter.js +10 -6
  192. package/lib/Spotlight/Fields.js +4 -4
  193. package/lib/Spotlight/Spotlight.js +13 -11
  194. package/lib/Spotlight/useStyles.js +6 -2
  195. package/lib/TableFooter/TableFooter.js +6 -5
  196. package/lib/TableHeader/TableHeader.js +6 -4
  197. package/lib/TableHtml5/TableHtml5.js +5 -3
  198. package/lib/TableHtml5/cell.js +9 -5
  199. package/lib/TableHtml5/flags.js +11 -8
  200. package/lib/TableHtml5/header.js +10 -6
  201. package/lib/TableHtml5/section.js +12 -8
  202. package/lib/TableHtml5/sectionHeader.js +10 -6
  203. package/lib/TableHtml5/subHeader.js +11 -7
  204. package/lib/TableLayout/Box.js +17 -13
  205. package/lib/TableLayout/DnDItem.js +13 -10
  206. package/lib/TableLayout/TableLayout.js +16 -14
  207. package/lib/TablePreview/TablePreview.js +4 -4
  208. package/lib/TablePreview/lib.js +1 -1
  209. package/lib/TablePreview/styles.js +6 -2
  210. package/lib/Tag/Tag.js +5 -3
  211. package/lib/ToggleButton/ToggleButton.js +7 -5
  212. package/lib/Tooltip/Tooltip.js +6 -13
  213. package/lib/UserRightForm/Input.js +9 -7
  214. package/lib/UserRightForm/Permissions.js +20 -18
  215. package/lib/UserRightForm/PermsissionsTabs.js +12 -10
  216. package/lib/UserRightForm/UserRightForm.js +36 -35
  217. package/lib/VerticalButton/VerticalButton.js +10 -6
  218. package/lib/VirtualizedTree/Item.js +8 -8
  219. package/lib/VirtualizedTree/VirtualizedTree.js +4 -4
  220. package/lib/theme.js +82 -57
  221. package/package.json +10 -5
  222. package/umd/@sis-cc/dotstatsuite-visions.js +60484 -53543
  223. package/umd/@sis-cc/dotstatsuite-visions.min.js +129 -53
  224. package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -1
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { makeStyles } from '@material-ui/core/styles';
4
- import Paper from '@material-ui/core/Paper';
5
- import Grid from '@material-ui/core/Grid';
3
+ import makeStyles from '@mui/styles/makeStyles';
4
+ import Paper from '@mui/material/Paper';
5
+ import Grid from '@mui/material/Grid';
6
6
  import cx from 'classnames';
7
7
 
8
8
  var useStyles = makeStyles(function (theme) {
@@ -1,90 +1,90 @@
1
- /**
2
- * Collapse Buttons show one or many buttons with Children and Sub-Children
3
- * Buttons are drawn in row of three
4
- * Children are drawn also in row of three and the sub-children are drawn in line separated by comma
5
- * justify properties can take all variant define in "justifyContent" https://material-ui.com/api/grid/
6
- * | 'flex-start'
7
- * | 'center'
8
- * | 'flex-end'
9
- * | 'space-between'
10
- * | 'space-around'
11
- * | 'space-evenly'
12
- *
13
- * textTransform: 'none' | 'capitalize' | 'uppercase' | 'lowercase'
14
- *
15
- * to manage layout you have three properties
16
- * nbColumns: numbers of column you want to have
17
- * gridButtonsProps: mainly to manage breakpoints in the differents layout of buttons but you can change all the grid properties. (nbColumns is use with the "sm" breakpoint)
18
- * breakpoint: is a function with theme arg. Allow you to change the mobile view, (default theme => theme.breakpoints.down('sm'))
19
- *
20
- * @memberOf VISIONS
21
- * @name CollapseButtons
22
- * @tag component
23
- * @api public
24
- * @props
25
- * CollapseButtons.propTypes = {
26
- * testId: PropTypes.string,
27
- * selectedItemId: PropTypes.string,
28
- * items: PropTypes.arrayOf(
29
- * PropTypes.shape({
30
- * id: PropTypes.string.isRequired,
31
- * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
32
- * svgPath: PropTypes.string,
33
- * values: PropTypes.arrayOf(
34
- * PropTypes.shape({
35
- * id: PropTypes.string.isRequired,
36
- * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
37
- * subtopics: PropTypes.arrayOf(
38
- * PropTypes.oneOfType([
39
- * PropTypes.shape({
40
- * id: PropTypes.string.isRequired,
41
- * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
42
- * }),
43
- * PropTypes.string,
44
- * ]),
45
- * ),
46
- * }),
47
- * ),
48
- * }),
49
- * ),
50
- * action: PropTypes.func,
51
- * nbColumns: PropTypes.number,
52
- * isSecondLevelClikable: PropTypes.bool,
53
- * breakpoint: PropTypes.func,
54
- * gridButtonsProps: PropTypes.object,
55
- * justify: PropTypes.string,
56
- * textTransform: PropTypes.string,
57
- * };
58
- * @theme
59
- * // button (See ToggleButton Component)
60
- *
61
- * // item (an item is the list of labels that is shown after clicking on "Topic")
62
- * {
63
- * palette: {
64
- * primary: {
65
- * main: // item main label and sub label's hover. global override: outerPalette.primaryMain
66
- * }
67
- * tertiary: {
68
- * light: // hover background color items (e.g. Economie)
69
- * },
70
- * secondary: {
71
- * light: // use secondary light if tertiary is null
72
- * }
73
- * grey: {
74
- * 600: // svg icon color
75
- * 800: // sub label color. globale override: outerPalette.textLight
76
- * }
77
- * },
78
- * typography: {
79
- * body2: // font main label
80
- * body1: // font sub label
81
- * }
82
- * }
83
- * @testId
84
- * root: [testId]_[props.items.id]
85
- * input: [testId]_[props.items.id]_value_[props.items.values.id]
86
- *
87
- * @demoReady
1
+ /**
2
+ * Collapse Buttons show one or many buttons with Children and Sub-Children
3
+ * Buttons are drawn in row of three
4
+ * Children are drawn also in row of three and the sub-children are drawn in line separated by comma
5
+ * justify properties can take all variant define in "justifyContent" https://material-ui.com/api/grid/
6
+ * | 'flex-start'
7
+ * | 'center'
8
+ * | 'flex-end'
9
+ * | 'space-between'
10
+ * | 'space-around'
11
+ * | 'space-evenly'
12
+ *
13
+ * textTransform: 'none' | 'capitalize' | 'uppercase' | 'lowercase'
14
+ *
15
+ * to manage layout you have three properties
16
+ * nbColumns: numbers of column you want to have
17
+ * gridButtonsProps: mainly to manage breakpoints in the differents layout of buttons but you can change all the grid properties. (nbColumns is use with the "sm" breakpoint)
18
+ * breakpoint: is a function with theme arg. Allow you to change the mobile view, (default theme => theme.breakpoints.down('sm'))
19
+ *
20
+ * @memberOf VISIONS
21
+ * @name CollapseButtons
22
+ * @tag component
23
+ * @api public
24
+ * @props
25
+ * CollapseButtons.propTypes = {
26
+ * testId: PropTypes.string,
27
+ * selectedItemId: PropTypes.string,
28
+ * items: PropTypes.arrayOf(
29
+ * PropTypes.shape({
30
+ * id: PropTypes.string.isRequired,
31
+ * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
32
+ * svgPath: PropTypes.string,
33
+ * values: PropTypes.arrayOf(
34
+ * PropTypes.shape({
35
+ * id: PropTypes.string.isRequired,
36
+ * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
37
+ * subtopics: PropTypes.arrayOf(
38
+ * PropTypes.oneOfType([
39
+ * PropTypes.shape({
40
+ * id: PropTypes.string.isRequired,
41
+ * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
42
+ * }),
43
+ * PropTypes.string,
44
+ * ]),
45
+ * ),
46
+ * }),
47
+ * ),
48
+ * }),
49
+ * ),
50
+ * action: PropTypes.func,
51
+ * nbColumns: PropTypes.number,
52
+ * isSecondLevelClikable: PropTypes.bool,
53
+ * breakpoint: PropTypes.func,
54
+ * gridButtonsProps: PropTypes.object,
55
+ * justify: PropTypes.string,
56
+ * textTransform: PropTypes.string,
57
+ * };
58
+ * @theme
59
+ * // button (See ToggleButton Component)
60
+ *
61
+ * // item (an item is the list of labels that is shown after clicking on "Topic")
62
+ * {
63
+ * palette: {
64
+ * primary: {
65
+ * main: // item main label and sub label's hover. global override: outerPalette.primaryMain
66
+ * }
67
+ * tertiary: {
68
+ * light: // hover background color items (e.g. Economie)
69
+ * },
70
+ * secondary: {
71
+ * light: // use secondary light if tertiary is null
72
+ * }
73
+ * grey: {
74
+ * 600: // svg icon color
75
+ * 800: // sub label color. globale override: outerPalette.textLight
76
+ * }
77
+ * },
78
+ * typography: {
79
+ * body2: // font main label
80
+ * body1: // font sub label
81
+ * }
82
+ * }
83
+ * @testId
84
+ * root: [testId]_[props.items.id]
85
+ * input: [testId]_[props.items.id]_value_[props.items.values.id]
86
+ *
87
+ * @demoReady
88
88
  */
89
89
 
90
90
  export { default } from './CollapseButtons';
@@ -4,11 +4,12 @@ import React, { useEffect } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import cx from 'classnames';
6
6
  import { pathOr } from 'ramda';
7
- import { makeStyles, useTheme } from '@material-ui/core/styles';
8
- import Collapse from '@material-ui/core/Collapse';
9
- import Button from '@material-ui/core/Button';
10
- import KeyboardArrowDownIcon from '@material-ui/icons/KeyboardArrowDown';
11
- import KeyboardArrowUpIcon from '@material-ui/icons/KeyboardArrowUp';
7
+ import { useTheme } from '@mui/material/styles';
8
+ import makeStyles from '@mui/styles/makeStyles';
9
+ import Collapse from '@mui/material/Collapse';
10
+ import Button from '@mui/material/Button';
11
+ import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
12
+ import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
12
13
 
13
14
  var VARIANT_ICON = 'icon';
14
15
  export var VARIANT_BOLD = 'bold';
@@ -5,16 +5,16 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
5
5
  import React, { useState, Fragment, useEffect } from 'react';
6
6
  import * as R from 'ramda';
7
7
  import PropTypes from 'prop-types';
8
- import Container from '@material-ui/core/Container';
9
- import { makeStyles } from '@material-ui/core/styles';
10
- import Typography from '@material-ui/core/Typography';
11
- import Divider from '@material-ui/core/Divider';
12
- import Button from '@material-ui/core/Button';
13
- import IconButton from '@material-ui/core/IconButton';
14
- import KeyboardArrowDownIcon from '@material-ui/icons/KeyboardArrowDown';
15
- import KeyboardArrowUpIcon from '@material-ui/icons/KeyboardArrowUp';
16
- import CircularProgress from '@material-ui/core/CircularProgress';
17
- import Grid from '@material-ui/core/Grid';
8
+ import Container from '@mui/material/Container';
9
+ import makeStyles from '@mui/styles/makeStyles';
10
+ import Typography from '@mui/material/Typography';
11
+ import Divider from '@mui/material/Divider';
12
+ import Button from '@mui/material/Button';
13
+ import IconButton from '@mui/material/IconButton';
14
+ import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
15
+ import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
16
+ import CircularProgress from '@mui/material/CircularProgress';
17
+ import Grid from '@mui/material/Grid';
18
18
  import Collapse, { VARIANT_BOLD } from './Collapse';
19
19
  import cx from 'classnames';
20
20
 
@@ -121,7 +121,7 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
121
121
  children,
122
122
  React.createElement(
123
123
  IconButton,
124
- { color: 'primary', onClick: onClick },
124
+ { color: 'primary', onClick: onClick, size: 'large' },
125
125
  icon
126
126
  )
127
127
  )
@@ -1,49 +1,49 @@
1
- /**
2
- * CollapsibleTree is a component that show you a tree structure with a button to expand/collapse each node.
3
- * defaultDepthLevel is the maximum level that will be open by "collapse all" button value could be 0|1. set to 1 by default.
4
- *
5
- * @memberOf VISIONS
6
- * @name CollapsibleTree
7
- * @tag component
8
- * @api public
9
- * @props
10
- * CollapsibleTree.propTypes = {
11
- * data: PropTypes.arrayOf(PropTypes.shape({
12
- * id: PropTypes.string.isRequired,
13
- * label: PropTypes.string,
14
- * children: PropTypes.arrayOf(PropTypes.shape({
15
- * id: PropTypes.string.isRequired,
16
- * label: PropTypes.string,
17
- * children: PropTypes.arrayOf(PropTypes.shape({
18
- * id: PropTypes.string.isRequired,
19
- * label: PropTypes.string,
20
- * value: PropTypes.string,
21
- * })),
22
- * }))
23
- * })),
24
- * defaultDepthLevel: PropTypes.number,
25
- * testId: PropTypes.string,
26
- * labels: PropTypes.shape({
27
- * collapseAll: PropTypes.string,
28
- * expandAll: PropTypes.string,
29
- * noValue: PropTypes.string,
30
- * }),
31
- *};
32
- * @theme
33
- * {
34
- * palette: {
35
- * primary: {
36
- * main: // color label button
37
- * },
38
- * }
39
- * mixins: {
40
- * CollapsibleTree: {
41
- * title: {
42
- * // font, color, of titles
43
- * },
44
- * }
45
- * @demoReady
46
- *
1
+ /**
2
+ * CollapsibleTree is a component that show you a tree structure with a button to expand/collapse each node.
3
+ * defaultDepthLevel is the maximum level that will be open by "collapse all" button value could be 0|1. set to 1 by default.
4
+ *
5
+ * @memberOf VISIONS
6
+ * @name CollapsibleTree
7
+ * @tag component
8
+ * @api public
9
+ * @props
10
+ * CollapsibleTree.propTypes = {
11
+ * data: PropTypes.arrayOf(PropTypes.shape({
12
+ * id: PropTypes.string.isRequired,
13
+ * label: PropTypes.string,
14
+ * children: PropTypes.arrayOf(PropTypes.shape({
15
+ * id: PropTypes.string.isRequired,
16
+ * label: PropTypes.string,
17
+ * children: PropTypes.arrayOf(PropTypes.shape({
18
+ * id: PropTypes.string.isRequired,
19
+ * label: PropTypes.string,
20
+ * value: PropTypes.string,
21
+ * })),
22
+ * }))
23
+ * })),
24
+ * defaultDepthLevel: PropTypes.number,
25
+ * testId: PropTypes.string,
26
+ * labels: PropTypes.shape({
27
+ * collapseAll: PropTypes.string,
28
+ * expandAll: PropTypes.string,
29
+ * noValue: PropTypes.string,
30
+ * }),
31
+ *};
32
+ * @theme
33
+ * {
34
+ * palette: {
35
+ * primary: {
36
+ * main: // color label button
37
+ * },
38
+ * }
39
+ * mixins: {
40
+ * CollapsibleTree: {
41
+ * title: {
42
+ * // font, color, of titles
43
+ * },
44
+ * }
45
+ * @demoReady
46
+ *
47
47
  */
48
48
 
49
49
  export { default } from './CollapsibleTree';
@@ -2,8 +2,8 @@ import React, { useEffect, useState } from 'react';
2
2
  import cx from 'classnames';
3
3
  import PropTypes from 'prop-types';
4
4
  import * as R from 'ramda';
5
- import { Grid, Paper, TextareaAutosize, Checkbox, FormControlLabel, Typography } from '@material-ui/core';
6
- import { makeStyles } from '@material-ui/core/styles';
5
+ import { Grid, Paper, TextareaAutosize, Checkbox, FormControlLabel, Typography } from '@mui/material';
6
+ import makeStyles from '@mui/styles/makeStyles';
7
7
  import { validate as getIsValidEmail } from 'isemail';
8
8
  import Mode from './Mode';
9
9
  import Input from './Input';
@@ -4,11 +4,11 @@ import React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import * as R from 'ramda';
6
6
  import cx from 'classnames';
7
- import { makeStyles } from '@material-ui/core/styles';
8
- import TextField from '@material-ui/core/TextField';
9
- import InputAdornment from '@material-ui/core/InputAdornment';
10
- import IconButton from '@material-ui/core/IconButton';
11
- import Done from '@material-ui/icons/Done';
7
+ import makeStyles from '@mui/styles/makeStyles';
8
+ import TextField from '@mui/material/TextField';
9
+ import InputAdornment from '@mui/material/InputAdornment';
10
+ import IconButton from '@mui/material/IconButton';
11
+ import Done from '@mui/icons-material/Done';
12
12
  import { withInput } from '../Input/with-input';
13
13
 
14
14
  var useStyles = makeStyles(function () {
@@ -36,7 +36,7 @@ var RightIcon = function RightIcon(_ref2) {
36
36
  IconButton,
37
37
  { color: 'primary', onClick: function onClick() {
38
38
  return onSubmit();
39
- } },
39
+ }, size: 'small' },
40
40
  React.createElement(Icon, null)
41
41
  );
42
42
  };
@@ -3,13 +3,14 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3
3
  import React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import * as R from 'ramda';
6
- import Card from '@material-ui/core/Card';
7
- import { makeStyles, useTheme } from '@material-ui/core/styles';
8
- import CardContent from '@material-ui/core/CardContent';
9
- import Typography from '@material-ui/core/Typography';
10
- import RadioGroup from '@material-ui/core/RadioGroup';
11
- import FormControlLabel from '@material-ui/core/FormControlLabel';
12
- import Radio from '@material-ui/core/Radio';
6
+ import Card from '@mui/material/Card';
7
+ import { useTheme } from '@mui/material/styles';
8
+ import makeStyles from '@mui/styles/makeStyles';
9
+ import CardContent from '@mui/material/CardContent';
10
+ import Typography from '@mui/material/Typography';
11
+ import RadioGroup from '@mui/material/RadioGroup';
12
+ import FormControlLabel from '@mui/material/FormControlLabel';
13
+ import Radio from '@mui/material/Radio';
13
14
  import { Tooltip, Warning as WarningIcon } from '../';
14
15
 
15
16
  var useStyles = makeStyles(function (theme) {
@@ -3,10 +3,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3
3
  import React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import * as R from 'ramda';
6
- import Grid from '@material-ui/core/Grid';
7
- import Typography from '@material-ui/core/Typography';
8
- import Checkbox from '@material-ui/core/Checkbox';
9
- import FormControlLabel from '@material-ui/core/FormControlLabel';
6
+ import Grid from '@mui/material/Grid';
7
+ import Typography from '@mui/material/Typography';
8
+ import Checkbox from '@mui/material/Checkbox';
9
+ import FormControlLabel from '@mui/material/FormControlLabel';
10
10
  import Input from './Input';
11
11
  import { withBlank } from '../utils';
12
12
 
@@ -5,12 +5,12 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
5
5
  import React, { useEffect, useState } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import * as R from 'ramda';
8
- import { makeStyles } from '@material-ui/core/styles';
9
- import TextField from '@material-ui/core/TextField';
10
- import InputAdornment from '@material-ui/core/InputAdornment';
11
- import IconButton from '@material-ui/core/IconButton';
12
- import Done from '@material-ui/icons/Done';
13
- import RotateLeftIcon from '@material-ui/icons/RotateLeft';
8
+ import makeStyles from '@mui/styles/makeStyles';
9
+ import TextField from '@mui/material/TextField';
10
+ import InputAdornment from '@mui/material/InputAdornment';
11
+ import IconButton from '@mui/material/IconButton';
12
+ import Done from '@mui/icons-material/Done';
13
+ import RotateLeftIcon from '@mui/icons-material/RotateLeft';
14
14
 
15
15
  var useStyles = makeStyles(function () {
16
16
  return {
@@ -46,7 +46,7 @@ var RightIcon = function RightIcon(_ref2) {
46
46
  IconButton,
47
47
  { color: 'primary', onClick: function onClick() {
48
48
  return onSubmit();
49
- } },
49
+ }, size: 'large' },
50
50
  React.createElement(Icon, null)
51
51
  );
52
52
  };
@@ -113,7 +113,8 @@ var MyInput = function MyInput(_ref3) {
113
113
  id: resetId,
114
114
  'aria-label': resetLabel,
115
115
  onKeyPress: onEnterLabel,
116
- onClick: handleReset
116
+ onClick: handleReset,
117
+ size: 'large'
117
118
  },
118
119
  React.createElement(RotateLeftIcon, { fontSize: 'small' })
119
120
  )
@@ -3,10 +3,11 @@ import PropTypes from 'prop-types';
3
3
  import cx from 'classnames';
4
4
  import * as R from 'ramda';
5
5
  import useSize from '@react-hook/size';
6
- import Grid from '@material-ui/core/Grid';
7
- import Typography from '@material-ui/core/Typography';
8
- import Link from '@material-ui/core/Link';
9
- import { makeStyles } from '@material-ui/core/styles';
6
+ import Grid from '@mui/material/Grid';
7
+ import Typography from '@mui/material/Typography';
8
+ import Link from '@mui/material/Link';
9
+ import makeStyles from '@mui/styles/makeStyles';
10
+ import { visuallyHidden } from '@mui/utils';
10
11
  import { Tooltip } from '../';
11
12
  import { T4_BREAKPOINTS } from '../theme';
12
13
  import useKeyboardEscapeHandler from '../hooks/useKeybordEscapeHandler';
@@ -115,7 +116,6 @@ var DataFooter = function DataFooter(_ref) {
115
116
  'aria-hidden': false,
116
117
  placement: 'top',
117
118
  enterNextDelay: 100,
118
- interactive: true,
119
119
  arrow: true,
120
120
  open: open,
121
121
  onOpen: function onOpen() {
@@ -133,7 +133,7 @@ var DataFooter = function DataFooter(_ref) {
133
133
  ),
134
134
  React.createElement(
135
135
  Typography,
136
- { variant: 'srOnly' },
136
+ { sx: visuallyHidden },
137
137
  copyright.content
138
138
  )
139
139
  )
@@ -1,33 +1,33 @@
1
- /**
2
- * DataFooter is the footer of the datavis component (tables, charts, maps).
3
- *
4
- * Responsive rules:
5
- * - no footer below 120px
6
- * - no legend below 370px
7
- * - no source below 370px, adaptative fontSize when displayed
8
- * - copyright, adaptative fontSize when displayed
9
- * - invariant logo, 21px (half min height of the footer)
10
- *
11
- * @memberOf VISIONS
12
- * @name DataFooter
13
- * @tag component
14
- * @api public
15
- * @props
16
- * logo: PropTypes.string.isRequired,
17
- * source: PropTypes.shape({
18
- * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
19
- * link: PropTypes.string,
20
- * }),
21
- * copyright: PropTypes.shape({
22
- * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
23
- * content: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
24
- * }),
25
- * legend: PropTypes.element,
26
- * isSticky: PropTypes.bool,
27
- * @theme
28
- * // tooltip (see Tooltip Component)
29
- * @demoReady
30
- *
1
+ /**
2
+ * DataFooter is the footer of the datavis component (tables, charts, maps).
3
+ *
4
+ * Responsive rules:
5
+ * - no footer below 120px
6
+ * - no legend below 370px
7
+ * - no source below 370px, adaptative fontSize when displayed
8
+ * - copyright, adaptative fontSize when displayed
9
+ * - invariant logo, 21px (half min height of the footer)
10
+ *
11
+ * @memberOf VISIONS
12
+ * @name DataFooter
13
+ * @tag component
14
+ * @api public
15
+ * @props
16
+ * logo: PropTypes.string.isRequired,
17
+ * source: PropTypes.shape({
18
+ * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
19
+ * link: PropTypes.string,
20
+ * }),
21
+ * copyright: PropTypes.shape({
22
+ * label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
23
+ * content: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
24
+ * }),
25
+ * legend: PropTypes.element,
26
+ * isSticky: PropTypes.bool,
27
+ * @theme
28
+ * // tooltip (see Tooltip Component)
29
+ * @demoReady
30
+ *
31
31
  */
32
32
 
33
33
  export { default } from './DataFooter';
@@ -5,10 +5,10 @@ import PropTypes from 'prop-types';
5
5
  import * as R from 'ramda';
6
6
  import useSize from '@react-hook/size';
7
7
  import cx from 'classnames';
8
- import { makeStyles } from '@material-ui/core/styles';
9
- import { useTheme } from '@material-ui/core/styles';
10
- import Info from '@material-ui/icons/Info';
11
- import Typography from '@material-ui/core/Typography';
8
+ import makeStyles from '@mui/styles/makeStyles';
9
+ import { useTheme } from '@mui/material/styles';
10
+ import Info from '@mui/icons-material/Info';
11
+ import Typography from '@mui/material/Typography';
12
12
  import { T4_BREAKPOINTS } from '../theme';
13
13
  import Title from './Title';
14
14
  import Flags from './Flags';
@@ -42,6 +42,8 @@ var useStyles = makeStyles(function (theme) {
42
42
  lineHeight: 1.3
43
43
  },
44
44
  subtitle: _extends({
45
+ display: 'flex',
46
+ alignItems: 'center',
45
47
  lineHeight: 1.6,
46
48
  color: theme.palette.grey[600]
47
49
  }, R.pathOr({}, ['mixins', 'dataHeader', 'subtitle'], theme)),
@@ -7,18 +7,18 @@ import PropTypes from 'prop-types';
7
7
  import * as R from 'ramda';
8
8
  import cx from 'classnames';
9
9
  import useSize from '@react-hook/size';
10
- import { makeStyles } from '@material-ui/core/styles';
11
- import Typography from '@material-ui/core/Typography';
12
- import Collapse from '@material-ui/core/Collapse';
13
- import Card from '@material-ui/core/Card';
14
- import CardHeader from '@material-ui/core/CardHeader';
15
- import CardContent from '@material-ui/core/CardContent';
16
- import CardActions from '@material-ui/core/CardActions';
17
- import IconButton from '@material-ui/core/IconButton';
18
- import ExpandMore from '@material-ui/icons/ExpandMore';
19
- import ExpandLess from '@material-ui/icons/ExpandLess';
20
- import Link from '@material-ui/core/Link';
21
- import Divider from '@material-ui/core/Divider';
10
+ import makeStyles from '@mui/styles/makeStyles';
11
+ import Typography from '@mui/material/Typography';
12
+ import Collapse from '@mui/material/Collapse';
13
+ import Card from '@mui/material/Card';
14
+ import CardHeader from '@mui/material/CardHeader';
15
+ import CardContent from '@mui/material/CardContent';
16
+ import CardActions from '@mui/material/CardActions';
17
+ import IconButton from '@mui/material/IconButton';
18
+ import ExpandMore from '@mui/icons-material/ExpandMore';
19
+ import ExpandLess from '@mui/icons-material/ExpandLess';
20
+ import Link from '@mui/material/Link';
21
+ import Divider from '@mui/material/Divider';
22
22
  import Tooltip from '../Tooltip/Tooltip';
23
23
  import { withBlank } from '../utils';
24
24
  import { isLast } from '../Chips/utils';