@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.
- package/es/AdvancedFilterDialog/AdvancedFilterDialog.js +17 -15
- package/es/AdvancedFilterDialog/SelectionModeMenu.js +5 -5
- package/es/Alert/Alert.js +46 -45
- package/es/Alert/index.js +10 -10
- package/es/ApiQueries/ApiQueries.js +4 -4
- package/es/ApiQueries/Query.js +4 -4
- package/es/AuthDialog/index.js +9 -9
- package/es/Breadcrumbs/Breadcrumbs.js +5 -5
- package/es/Breadcrumbs/index.js +27 -27
- package/es/Button/Button.js +2 -2
- package/es/Button/index.js +49 -49
- package/es/ChartsConfig/ChartsConfig.js +5 -5
- package/es/ChartsConfig/Input.js +9 -8
- package/es/ChartsConfig/InputProxy.js +1 -1
- package/es/ChartsConfig/Title.js +2 -2
- package/es/ChartsConfig/index.js +210 -210
- package/es/Chips/CustomChip.js +6 -5
- package/es/Chips/DeleteChip.js +1 -1
- package/es/Chips/GroupedChips.js +2 -1
- package/es/Chips/index.js +65 -65
- package/es/Chips/styles.js +2 -2
- package/es/CollapseButtons/CollapseButtons.js +6 -6
- package/es/CollapseButtons/Item.js +5 -5
- package/es/CollapseButtons/Paper.js +3 -3
- package/es/CollapseButtons/index.js +87 -87
- package/es/CollapsibleTree/Collapse.js +6 -5
- package/es/CollapsibleTree/CollapsibleTree.js +11 -11
- package/es/CollapsibleTree/index.js +46 -46
- package/es/Contact/Contact.js +2 -2
- package/es/Contact/Input.js +6 -6
- package/es/Contact/Mode.js +8 -7
- package/es/DataEdit/DataEdit.js +4 -4
- package/es/DataEdit/Input.js +9 -8
- package/es/DataFooter/DataFooter.js +6 -6
- package/es/DataFooter/index.js +30 -30
- package/es/DataHeader/DataHeader.js +6 -4
- package/es/Dataflow/Dataflow.js +12 -12
- package/es/Dataflow/index.js +59 -59
- package/es/ExpansionPanel/ExpansionPanel.js +10 -9
- package/es/ExpansionPanel/styles.js +1 -1
- package/es/HierarchicalFilter/HierarchicalFilter.js +3 -3
- package/es/Icons/AccessibilityFilled.js +1 -1
- package/es/Icons/AccessibilityOutlined.js +1 -1
- package/es/Icons/AccountFilled.js +1 -1
- package/es/Icons/AccountOutlined.js +1 -1
- package/es/Icons/Api.js +1 -1
- package/es/Icons/Asterisk.js +1 -1
- package/es/Icons/Bar.js +1 -1
- package/es/Icons/CopyContent.js +1 -1
- package/es/Icons/Cross.js +1 -1
- package/es/Icons/HSymbol.js +1 -1
- package/es/Icons/Row.js +1 -1
- package/es/Icons/Scatter.js +1 -1
- package/es/Icons/StackedBar.js +1 -1
- package/es/Icons/StackedRow.js +1 -1
- package/es/Icons/Timeline.js +1 -1
- package/es/Icons/VSymbol.js +1 -1
- package/es/Icons/Warning.js +1 -1
- package/es/Icons/index.js +9 -9
- package/es/Input/Input.js +6 -6
- package/es/Input/index.js +23 -23
- package/es/InputNumber/InputNumber.js +4 -4
- package/es/InputNumber/index.js +20 -20
- package/es/LabelDivider/LabelDivider.js +2 -2
- package/es/LabelDivider/index.js +29 -29
- package/es/Loading/Loading.js +2 -2
- package/es/Logo/Logo.js +1 -1
- package/es/Logo/index.js +15 -15
- package/es/Mode/Mode.js +4 -5
- package/es/NoData/NoData.js +3 -3
- package/es/Pagination/Pagination.js +9 -9
- package/es/Pagination/index.js +28 -28
- package/es/PeriodPicker/PeriodPicker.js +1 -1
- package/es/PeriodPicker/index.js +23 -23
- package/es/PeriodPicker/styles.js +1 -1
- package/es/ScopeList/Header.js +3 -3
- package/es/ScopeList/Item.js +6 -6
- package/es/ScopeList/ScopeList.js +7 -7
- package/es/ScopeList/Selection.js +7 -7
- package/es/ScopeList/styles.js +1 -1
- package/es/Select/Select.js +4 -4
- package/es/Select/index.js +30 -30
- package/es/Share/Form.js +4 -4
- package/es/Share/Mode.js +8 -7
- package/es/Share/Share.js +3 -3
- package/es/Share/index.js +61 -61
- package/es/ShortUrls/ShortUrls.js +10 -10
- package/es/SisccFooter/SisccFooter.js +6 -5
- package/es/Spotlight/Fields.js +4 -4
- package/es/Spotlight/Spotlight.js +13 -11
- package/es/Spotlight/index.js +72 -72
- package/es/Spotlight/useStyles.js +1 -1
- package/es/TableFooter/TableFooter.js +3 -4
- package/es/TableHeader/TableHeader.js +3 -3
- package/es/TableHtml5/TableHtml5.js +2 -2
- package/es/TableHtml5/cell.js +5 -4
- package/es/TableHtml5/flags.js +5 -5
- package/es/TableHtml5/header.js +6 -5
- package/es/TableHtml5/section.js +8 -7
- package/es/TableHtml5/sectionHeader.js +6 -5
- package/es/TableHtml5/subHeader.js +7 -6
- package/es/TableLayout/Box.js +5 -4
- package/es/TableLayout/DnDItem.js +10 -9
- package/es/TableLayout/TableLayout.js +12 -11
- package/es/TablePreview/TablePreview.js +4 -4
- package/es/TablePreview/lib.js +1 -1
- package/es/TablePreview/styles.js +1 -1
- package/es/Tag/Tag.js +2 -2
- package/es/Tag/index.js +27 -27
- package/es/ToggleButton/ToggleButton.js +4 -4
- package/es/ToggleButton/index.js +47 -47
- package/es/Tooltip/Tooltip.js +3 -12
- package/es/Tooltip/index.js +33 -33
- package/es/UserRightForm/Input.js +6 -6
- package/es/UserRightForm/Permissions.js +5 -5
- package/es/UserRightForm/PermsissionsTabs.js +2 -2
- package/es/UserRightForm/UserRightForm.js +2 -3
- package/es/VerticalButton/VerticalButton.js +7 -5
- package/es/VirtualizedTree/Item.js +9 -9
- package/es/VirtualizedTree/VirtualizedTree.js +3 -3
- package/es/theme.js +82 -57
- package/lib/AdvancedFilterDialog/AdvancedFilterDialog.js +21 -17
- package/lib/AdvancedFilterDialog/SelectionModeMenu.js +5 -5
- package/lib/Alert/Alert.js +50 -46
- package/lib/ApiQueries/ApiQueries.js +7 -5
- package/lib/ApiQueries/Query.js +7 -5
- package/lib/AuthDialog/index.js +12 -10
- package/lib/Breadcrumbs/Breadcrumbs.js +8 -6
- package/lib/Button/Button.js +5 -3
- package/lib/ChartsConfig/ChartsConfig.js +16 -14
- package/lib/ChartsConfig/Input.js +12 -9
- package/lib/ChartsConfig/InputProxy.js +2 -2
- package/lib/ChartsConfig/Title.js +7 -5
- package/lib/Chips/CustomChip.js +10 -6
- package/lib/Chips/DeleteChip.js +6 -4
- package/lib/Chips/GroupedChips.js +6 -2
- package/lib/Chips/styles.js +2 -2
- package/lib/CollapseButtons/CollapseButtons.js +9 -7
- package/lib/CollapseButtons/Item.js +8 -6
- package/lib/CollapseButtons/Paper.js +6 -4
- package/lib/CollapsibleTree/Collapse.js +10 -6
- package/lib/CollapsibleTree/CollapsibleTree.js +14 -12
- package/lib/Contact/Contact.js +28 -26
- package/lib/Contact/Input.js +9 -7
- package/lib/Contact/Mode.js +12 -8
- package/lib/DataEdit/DataEdit.js +4 -4
- package/lib/DataEdit/Input.js +12 -9
- package/lib/DataFooter/DataFooter.js +10 -7
- package/lib/DataHeader/DataHeader.js +10 -4
- package/lib/Dataflow/Dataflow.js +15 -13
- package/lib/ExpansionPanel/ExpansionPanel.js +13 -11
- package/lib/ExpansionPanel/styles.js +6 -2
- package/lib/HierarchicalFilter/HierarchicalFilter.js +4 -4
- package/lib/Icons/AccessibilityFilled.js +1 -1
- package/lib/Icons/AccessibilityOutlined.js +1 -1
- package/lib/Icons/AccountFilled.js +1 -1
- package/lib/Icons/AccountOutlined.js +1 -1
- package/lib/Icons/Api.js +1 -1
- package/lib/Icons/Asterisk.js +1 -1
- package/lib/Icons/Bar.js +1 -1
- package/lib/Icons/CopyContent.js +1 -1
- package/lib/Icons/Cross.js +1 -1
- package/lib/Icons/HSymbol.js +1 -1
- package/lib/Icons/Row.js +1 -1
- package/lib/Icons/Scatter.js +1 -1
- package/lib/Icons/StackedBar.js +1 -1
- package/lib/Icons/StackedRow.js +1 -1
- package/lib/Icons/Timeline.js +1 -1
- package/lib/Icons/VSymbol.js +1 -1
- package/lib/Icons/Warning.js +1 -1
- package/lib/Input/Input.js +9 -7
- package/lib/InputNumber/InputNumber.js +7 -5
- package/lib/LabelDivider/LabelDivider.js +5 -3
- package/lib/Loading/Loading.js +5 -3
- package/lib/Logo/Logo.js +4 -2
- package/lib/Mode/Mode.js +7 -6
- package/lib/NoData/NoData.js +6 -4
- package/lib/Pagination/Pagination.js +13 -9
- package/lib/PeriodPicker/PeriodPicker.js +1 -1
- package/lib/PeriodPicker/styles.js +6 -2
- package/lib/ScopeList/Header.js +3 -3
- package/lib/ScopeList/Item.js +6 -6
- package/lib/ScopeList/ScopeList.js +8 -8
- package/lib/ScopeList/Selection.js +7 -7
- package/lib/ScopeList/styles.js +6 -2
- package/lib/Select/Select.js +9 -7
- package/lib/Share/Form.js +7 -5
- package/lib/Share/Mode.js +12 -8
- package/lib/Share/Share.js +6 -4
- package/lib/ShortUrls/ShortUrls.js +14 -12
- package/lib/SisccFooter/SisccFooter.js +10 -6
- package/lib/Spotlight/Fields.js +4 -4
- package/lib/Spotlight/Spotlight.js +13 -11
- package/lib/Spotlight/useStyles.js +6 -2
- package/lib/TableFooter/TableFooter.js +6 -5
- package/lib/TableHeader/TableHeader.js +6 -4
- package/lib/TableHtml5/TableHtml5.js +5 -3
- package/lib/TableHtml5/cell.js +9 -5
- package/lib/TableHtml5/flags.js +11 -8
- package/lib/TableHtml5/header.js +10 -6
- package/lib/TableHtml5/section.js +12 -8
- package/lib/TableHtml5/sectionHeader.js +10 -6
- package/lib/TableHtml5/subHeader.js +11 -7
- package/lib/TableLayout/Box.js +17 -13
- package/lib/TableLayout/DnDItem.js +13 -10
- package/lib/TableLayout/TableLayout.js +16 -14
- package/lib/TablePreview/TablePreview.js +4 -4
- package/lib/TablePreview/lib.js +1 -1
- package/lib/TablePreview/styles.js +6 -2
- package/lib/Tag/Tag.js +5 -3
- package/lib/ToggleButton/ToggleButton.js +7 -5
- package/lib/Tooltip/Tooltip.js +6 -13
- package/lib/UserRightForm/Input.js +9 -7
- package/lib/UserRightForm/Permissions.js +20 -18
- package/lib/UserRightForm/PermsissionsTabs.js +12 -10
- package/lib/UserRightForm/UserRightForm.js +36 -35
- package/lib/VerticalButton/VerticalButton.js +10 -6
- package/lib/VirtualizedTree/Item.js +8 -8
- package/lib/VirtualizedTree/VirtualizedTree.js +4 -4
- package/lib/theme.js +82 -57
- package/package.json +10 -5
- package/umd/@sis-cc/dotstatsuite-visions.js +60484 -53543
- package/umd/@sis-cc/dotstatsuite-visions.min.js +129 -53
- 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
|
|
4
|
-
import Paper from '@material
|
|
5
|
-
import Grid from '@material
|
|
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 {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
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
|
|
9
|
-
import
|
|
10
|
-
import Typography from '@material
|
|
11
|
-
import Divider from '@material
|
|
12
|
-
import Button from '@material
|
|
13
|
-
import IconButton from '@material
|
|
14
|
-
import KeyboardArrowDownIcon from '@
|
|
15
|
-
import KeyboardArrowUpIcon from '@
|
|
16
|
-
import CircularProgress from '@material
|
|
17
|
-
import Grid from '@material
|
|
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';
|
package/es/Contact/Contact.js
CHANGED
|
@@ -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
|
|
6
|
-
import
|
|
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';
|
package/es/Contact/Input.js
CHANGED
|
@@ -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
|
|
8
|
-
import TextField from '@material
|
|
9
|
-
import InputAdornment from '@material
|
|
10
|
-
import IconButton from '@material
|
|
11
|
-
import Done from '@
|
|
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
|
};
|
package/es/Contact/Mode.js
CHANGED
|
@@ -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
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
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) {
|
package/es/DataEdit/DataEdit.js
CHANGED
|
@@ -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
|
|
7
|
-
import Typography from '@material
|
|
8
|
-
import Checkbox from '@material
|
|
9
|
-
import FormControlLabel from '@material
|
|
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
|
|
package/es/DataEdit/Input.js
CHANGED
|
@@ -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
|
|
9
|
-
import TextField from '@material
|
|
10
|
-
import InputAdornment from '@material
|
|
11
|
-
import IconButton from '@material
|
|
12
|
-
import Done from '@
|
|
13
|
-
import RotateLeftIcon from '@
|
|
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
|
|
7
|
-
import Typography from '@material
|
|
8
|
-
import Link from '@material
|
|
9
|
-
import
|
|
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
|
-
{
|
|
136
|
+
{ sx: visuallyHidden },
|
|
137
137
|
copyright.content
|
|
138
138
|
)
|
|
139
139
|
)
|
package/es/DataFooter/index.js
CHANGED
|
@@ -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
|
|
9
|
-
import { useTheme } from '@material
|
|
10
|
-
import Info from '@
|
|
11
|
-
import Typography from '@material
|
|
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)),
|
package/es/Dataflow/Dataflow.js
CHANGED
|
@@ -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
|
|
11
|
-
import Typography from '@material
|
|
12
|
-
import Collapse from '@material
|
|
13
|
-
import Card from '@material
|
|
14
|
-
import CardHeader from '@material
|
|
15
|
-
import CardContent from '@material
|
|
16
|
-
import CardActions from '@material
|
|
17
|
-
import IconButton from '@material
|
|
18
|
-
import ExpandMore from '@
|
|
19
|
-
import ExpandLess from '@
|
|
20
|
-
import Link from '@material
|
|
21
|
-
import Divider from '@material
|
|
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';
|