@sis-cc/dotstatsuite-visions 11.4.2 → 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 +5 -7
- 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 +8 -8
- 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 +60498 -53550
- package/umd/@sis-cc/dotstatsuite-visions.min.js +129 -53
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -1
|
@@ -2,14 +2,14 @@ import React, { Fragment } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import * as R from 'ramda';
|
|
5
|
-
import ArrowForward from '@
|
|
6
|
-
import { useTheme } from '@material
|
|
7
|
-
import ArrowBack from '@
|
|
8
|
-
import Search from '@
|
|
9
|
-
import Paper from '@material
|
|
10
|
-
import IconButton from '@material
|
|
11
|
-
import InputBase from '@material
|
|
12
|
-
import Divider from '@material
|
|
5
|
+
import ArrowForward from '@mui/icons-material/ArrowForward';
|
|
6
|
+
import { useTheme } from '@mui/material/styles';
|
|
7
|
+
import ArrowBack from '@mui/icons-material/ArrowBack';
|
|
8
|
+
import Search from '@mui/icons-material/Search';
|
|
9
|
+
import Paper from '@mui/material/Paper';
|
|
10
|
+
import IconButton from '@mui/material/IconButton';
|
|
11
|
+
import InputBase from '@mui/material/InputBase';
|
|
12
|
+
import Divider from '@mui/material/Divider';
|
|
13
13
|
import { Field } from './Fields';
|
|
14
14
|
import { useStyles } from './useStyles';
|
|
15
15
|
import { useSpotlight } from './useSpotlight';
|
|
@@ -60,7 +60,7 @@ var Spotlight = function Spotlight(_ref) {
|
|
|
60
60
|
{ className: classes.root, elevation: 0 },
|
|
61
61
|
React.createElement(
|
|
62
62
|
IconButton,
|
|
63
|
-
{ className: classes.leftIcon, disabled: true, 'aria-label': 'search' },
|
|
63
|
+
{ className: classes.leftIcon, disabled: true, 'aria-label': 'search', size: 'large' },
|
|
64
64
|
React.createElement(Search, null)
|
|
65
65
|
),
|
|
66
66
|
React.createElement(InputBase, {
|
|
@@ -88,7 +88,8 @@ var Spotlight = function Spotlight(_ref) {
|
|
|
88
88
|
{
|
|
89
89
|
'aria-label': 'Clear',
|
|
90
90
|
onClick: onClearTerm,
|
|
91
|
-
className: cx(classes.rightIcon, classes.clear)
|
|
91
|
+
className: cx(classes.rightIcon, classes.clear),
|
|
92
|
+
size: 'large'
|
|
92
93
|
},
|
|
93
94
|
React.createElement(Cross, null)
|
|
94
95
|
) : null,
|
|
@@ -115,7 +116,8 @@ var Spotlight = function Spotlight(_ref) {
|
|
|
115
116
|
color: 'primary',
|
|
116
117
|
className: classes.rightIcon,
|
|
117
118
|
'aria-label': 'commit',
|
|
118
|
-
onClick: onCommitTerm
|
|
119
|
+
onClick: onCommitTerm,
|
|
120
|
+
size: 'large'
|
|
119
121
|
},
|
|
120
122
|
isRtl ? React.createElement(ArrowBack, null) : React.createElement(ArrowForward, null)
|
|
121
123
|
)
|
package/es/Spotlight/index.js
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Spotlight is an input for search something
|
|
3
|
-
*
|
|
4
|
-
* We have many options for design the component as you wish
|
|
5
|
-
* hasClearAll: show cross button for delete your text
|
|
6
|
-
* hasCommit: show arrow button for commit your text (You could press "enter" for commit)
|
|
7
|
-
* withBorder: add padding around the spotlight
|
|
8
|
-
* fullWidth: input take 100% of the width
|
|
9
|
-
*
|
|
10
|
-
* spotlightOptions: show on right side a drop down list where you can add some options
|
|
11
|
-
*
|
|
12
|
-
* open devTool to see actions
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @memberOf VISIONS
|
|
16
|
-
* @name Spotlight
|
|
17
|
-
* @tag component
|
|
18
|
-
* @api public
|
|
19
|
-
* @props
|
|
20
|
-
* Spotlight.propTypes = {
|
|
21
|
-
* term: PropTypes.string,
|
|
22
|
-
* testId: PropTypes.string,
|
|
23
|
-
* placeholder: PropTypes.string,
|
|
24
|
-
* defaultSpotlight: PropTypes.shape({
|
|
25
|
-
* fields: PropTypes.object,
|
|
26
|
-
* searchLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
27
|
-
* FieldLabelRenderer: PropTypes.func,
|
|
28
|
-
* }),
|
|
29
|
-
* action: PropTypes.func,
|
|
30
|
-
* hasClearAll: PropTypes.bool,
|
|
31
|
-
* hasCommit: PropTypes.bool,
|
|
32
|
-
* withBorder: PropTypes.bool,
|
|
33
|
-
* fullWidth: PropTypes.bool,
|
|
34
|
-
* classes: PropTypes.object,
|
|
35
|
-
* className: PropTypes.object,
|
|
36
|
-
* };
|
|
37
|
-
* @theme
|
|
38
|
-
* {
|
|
39
|
-
* palette: {
|
|
40
|
-
* button: {
|
|
41
|
-
* mainOpacity: // background color around the spotlight (withBorder)
|
|
42
|
-
* },
|
|
43
|
-
* highlight: {
|
|
44
|
-
* hl1: // background color around the spotlight on focus. globale override: outerPalette.highlight1
|
|
45
|
-
* },
|
|
46
|
-
* primary: {
|
|
47
|
-
* main: // color of icons on the right. global override: outerPalette.primaryMain
|
|
48
|
-
* light: // used if hl1 is null. globale override: outerPalette.primaryLight
|
|
49
|
-
* dark: // used if mainOpacity is null. globale override: outerPalette.primaryDark
|
|
50
|
-
* },
|
|
51
|
-
* grey: {
|
|
52
|
-
* 400: // input border
|
|
53
|
-
* }
|
|
54
|
-
* },
|
|
55
|
-
* typography: {
|
|
56
|
-
* body2: {
|
|
57
|
-
* // font, color, size of input label
|
|
58
|
-
* },
|
|
59
|
-
* },
|
|
60
|
-
* mixins: {
|
|
61
|
-
* spotlight: {
|
|
62
|
-
* focus: {
|
|
63
|
-
* outlineColor: outerPalette.highlight1
|
|
64
|
-
* outlineWidth: 1,
|
|
65
|
-
* outlineStyle: 'auto',
|
|
66
|
-
* }
|
|
67
|
-
* },
|
|
68
|
-
* }
|
|
69
|
-
* }
|
|
70
|
-
* @testId
|
|
71
|
-
* root: [testId]
|
|
72
|
-
* input: [testId]_input
|
|
1
|
+
/**
|
|
2
|
+
* Spotlight is an input for search something
|
|
3
|
+
*
|
|
4
|
+
* We have many options for design the component as you wish
|
|
5
|
+
* hasClearAll: show cross button for delete your text
|
|
6
|
+
* hasCommit: show arrow button for commit your text (You could press "enter" for commit)
|
|
7
|
+
* withBorder: add padding around the spotlight
|
|
8
|
+
* fullWidth: input take 100% of the width
|
|
9
|
+
*
|
|
10
|
+
* spotlightOptions: show on right side a drop down list where you can add some options
|
|
11
|
+
*
|
|
12
|
+
* open devTool to see actions
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* @memberOf VISIONS
|
|
16
|
+
* @name Spotlight
|
|
17
|
+
* @tag component
|
|
18
|
+
* @api public
|
|
19
|
+
* @props
|
|
20
|
+
* Spotlight.propTypes = {
|
|
21
|
+
* term: PropTypes.string,
|
|
22
|
+
* testId: PropTypes.string,
|
|
23
|
+
* placeholder: PropTypes.string,
|
|
24
|
+
* defaultSpotlight: PropTypes.shape({
|
|
25
|
+
* fields: PropTypes.object,
|
|
26
|
+
* searchLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
27
|
+
* FieldLabelRenderer: PropTypes.func,
|
|
28
|
+
* }),
|
|
29
|
+
* action: PropTypes.func,
|
|
30
|
+
* hasClearAll: PropTypes.bool,
|
|
31
|
+
* hasCommit: PropTypes.bool,
|
|
32
|
+
* withBorder: PropTypes.bool,
|
|
33
|
+
* fullWidth: PropTypes.bool,
|
|
34
|
+
* classes: PropTypes.object,
|
|
35
|
+
* className: PropTypes.object,
|
|
36
|
+
* };
|
|
37
|
+
* @theme
|
|
38
|
+
* {
|
|
39
|
+
* palette: {
|
|
40
|
+
* button: {
|
|
41
|
+
* mainOpacity: // background color around the spotlight (withBorder)
|
|
42
|
+
* },
|
|
43
|
+
* highlight: {
|
|
44
|
+
* hl1: // background color around the spotlight on focus. globale override: outerPalette.highlight1
|
|
45
|
+
* },
|
|
46
|
+
* primary: {
|
|
47
|
+
* main: // color of icons on the right. global override: outerPalette.primaryMain
|
|
48
|
+
* light: // used if hl1 is null. globale override: outerPalette.primaryLight
|
|
49
|
+
* dark: // used if mainOpacity is null. globale override: outerPalette.primaryDark
|
|
50
|
+
* },
|
|
51
|
+
* grey: {
|
|
52
|
+
* 400: // input border
|
|
53
|
+
* }
|
|
54
|
+
* },
|
|
55
|
+
* typography: {
|
|
56
|
+
* body2: {
|
|
57
|
+
* // font, color, size of input label
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* mixins: {
|
|
61
|
+
* spotlight: {
|
|
62
|
+
* focus: {
|
|
63
|
+
* outlineColor: outerPalette.highlight1
|
|
64
|
+
* outlineWidth: 1,
|
|
65
|
+
* outlineStyle: 'auto',
|
|
66
|
+
* }
|
|
67
|
+
* },
|
|
68
|
+
* }
|
|
69
|
+
* }
|
|
70
|
+
* @testId
|
|
71
|
+
* root: [testId]
|
|
72
|
+
* input: [testId]_input
|
|
73
73
|
*/
|
|
74
74
|
|
|
75
75
|
export { default } from './Spotlight';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2
2
|
|
|
3
3
|
import * as R from 'ramda';
|
|
4
|
-
import
|
|
4
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
5
5
|
|
|
6
6
|
export var useStyles = makeStyles(function (theme) {
|
|
7
7
|
return {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as R from 'ramda';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import
|
|
5
|
-
import Typography from '@material
|
|
6
|
-
import Grid from '@material
|
|
4
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
5
|
+
import Typography from '@mui/material/Typography';
|
|
6
|
+
import Grid from '@mui/material/Grid';
|
|
7
7
|
import Tooltip from '../Tooltip/Tooltip';
|
|
8
8
|
|
|
9
9
|
var useStyles = makeStyles(function (theme) {
|
|
@@ -40,7 +40,6 @@ var TableFooter = function TableFooter(_ref) {
|
|
|
40
40
|
Tooltip,
|
|
41
41
|
{
|
|
42
42
|
placement: 'top',
|
|
43
|
-
interactive: true,
|
|
44
43
|
title: React.createElement(
|
|
45
44
|
Typography,
|
|
46
45
|
{ variant: 'body2' },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
2
|
import * as R from 'ramda';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import
|
|
5
|
-
import Typography from '@material
|
|
6
|
-
import Lens from '@
|
|
4
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
5
|
+
import Typography from '@mui/material/Typography';
|
|
6
|
+
import Lens from '@mui/icons-material/Lens';
|
|
7
7
|
|
|
8
8
|
var useStyles = makeStyles(function (theme) {
|
|
9
9
|
return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2
2
|
|
|
3
3
|
import React, { useRef, useState, useEffect, useMemo } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import * as R from 'ramda';
|
|
7
|
-
import Table from '@material
|
|
7
|
+
import Table from '@mui/material/Table';
|
|
8
8
|
import Header from './header';
|
|
9
9
|
import SubHeader from './subHeader';
|
|
10
10
|
import Section from './section';
|
package/es/TableHtml5/cell.js
CHANGED
|
@@ -2,9 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import * as R from 'ramda';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import cx from 'classnames';
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import { useTheme } from '@mui/material/styles';
|
|
6
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
7
|
+
import TableCell from '@mui/material/TableCell';
|
|
8
|
+
import Link from '@mui/material/Link';
|
|
8
9
|
import Flags from './flags';
|
|
9
10
|
import { getIsRtl } from '../utils';
|
|
10
11
|
|
|
@@ -13,7 +14,7 @@ var useStyles = makeStyles(function (theme) {
|
|
|
13
14
|
cell: {
|
|
14
15
|
borderBottom: 'thin solid ' + theme.palette.grey[500],
|
|
15
16
|
borderRight: 'thin solid ' + theme.palette.grey[500],
|
|
16
|
-
padding: theme.spacing(0.5) + '
|
|
17
|
+
padding: theme.spacing(0.5) + ' ' + theme.spacing(1),
|
|
17
18
|
verticalAlign: 'baseline',
|
|
18
19
|
color: theme.palette.grey['A700'],
|
|
19
20
|
'&:hover': {
|
package/es/TableHtml5/flags.js
CHANGED
|
@@ -4,9 +4,10 @@ import React, { Fragment } 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 Typography from '@material
|
|
9
|
-
import
|
|
7
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
8
|
+
import Typography from '@mui/material/Typography';
|
|
9
|
+
import { visuallyHidden } from '@mui/utils';
|
|
10
|
+
import Tooltip from '@mui/material/Tooltip';
|
|
10
11
|
import { Asterisk } from '../';
|
|
11
12
|
import { getValue } from './utils';
|
|
12
13
|
import useKeyboardEscapeHandler from '../hooks/useKeybordEscapeHandler';
|
|
@@ -88,7 +89,6 @@ var Flags = function Flags(_ref) {
|
|
|
88
89
|
title: content,
|
|
89
90
|
placement: 'top',
|
|
90
91
|
open: open,
|
|
91
|
-
interactive: true,
|
|
92
92
|
onOpen: function onOpen() {
|
|
93
93
|
return setOpen(true);
|
|
94
94
|
},
|
|
@@ -115,7 +115,7 @@ var Flags = function Flags(_ref) {
|
|
|
115
115
|
React.createElement(Asterisk, { className: classes.svg, style: { fontSize: 11 } }),
|
|
116
116
|
React.createElement(
|
|
117
117
|
Typography,
|
|
118
|
-
{
|
|
118
|
+
{ style: visuallyHidden },
|
|
119
119
|
'* ' + labels
|
|
120
120
|
)
|
|
121
121
|
)
|
package/es/TableHtml5/header.js
CHANGED
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import * as R from 'ramda';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import cx from 'classnames';
|
|
5
|
-
import Typography from '@material
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import Typography from '@mui/material/Typography';
|
|
6
|
+
import { useTheme } from '@mui/material/styles';
|
|
7
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
8
|
+
import TableCell from '@mui/material/TableCell';
|
|
9
|
+
import TableRow from '@mui/material/TableRow';
|
|
9
10
|
import Flags from './flags';
|
|
10
11
|
import { getIsRtl } from '../utils';
|
|
11
12
|
import { getValue } from './utils';
|
|
@@ -18,7 +19,7 @@ var useStyles = makeStyles(function (theme) {
|
|
|
18
19
|
border: 'inherit',
|
|
19
20
|
borderBottom: 'thin solid ' + theme.palette.grey[500],
|
|
20
21
|
borderRight: 'thin solid ' + theme.palette.grey[500],
|
|
21
|
-
padding: theme.spacing(0.5) + '
|
|
22
|
+
padding: theme.spacing(0.5) + ' ' + theme.spacing(1),
|
|
22
23
|
verticalAlign: 'top',
|
|
23
24
|
'&:focus ': {
|
|
24
25
|
opacity: '.85'
|
package/es/TableHtml5/section.js
CHANGED
|
@@ -4,11 +4,12 @@ import React from 'react';
|
|
|
4
4
|
import * as R from 'ramda';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import Typography from '@material
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
7
|
+
import Typography from '@mui/material/Typography';
|
|
8
|
+
import { useTheme } from '@mui/material/styles';
|
|
9
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
10
|
+
import TableBody from '@mui/material/TableBody';
|
|
11
|
+
import TableCell from '@mui/material/TableCell';
|
|
12
|
+
import TableRow from '@mui/material/TableRow';
|
|
12
13
|
import SectionHeader from './sectionHeader';
|
|
13
14
|
import Cell from './cell';
|
|
14
15
|
import { getLight, getIsRtl } from '../utils';
|
|
@@ -23,7 +24,7 @@ var useStyles = makeStyles(function (theme) {
|
|
|
23
24
|
border: 'inherit',
|
|
24
25
|
borderBottom: 'thin solid ' + theme.palette.grey[500],
|
|
25
26
|
borderRight: 'thin solid ' + theme.palette.grey[500],
|
|
26
|
-
padding: theme.spacing(0.5) + '
|
|
27
|
+
padding: theme.spacing(0.5) + ' ' + theme.spacing(1),
|
|
27
28
|
color: theme.palette.grey['A700'],
|
|
28
29
|
verticalAlign: 'top',
|
|
29
30
|
align: 'left'
|
|
@@ -38,7 +39,7 @@ var useStyles = makeStyles(function (theme) {
|
|
|
38
39
|
border: 'inherit',
|
|
39
40
|
borderBottom: 'thin solid ' + theme.palette.grey[500],
|
|
40
41
|
borderRight: 'thin solid ' + theme.palette.grey[500],
|
|
41
|
-
padding: theme.spacing(0.5) + '
|
|
42
|
+
padding: theme.spacing(0.5) + ' ' + theme.spacing(1),
|
|
42
43
|
position: 'sticky',
|
|
43
44
|
zIndex: 1
|
|
44
45
|
},
|
|
@@ -2,11 +2,12 @@ import React, { Fragment } from 'react';
|
|
|
2
2
|
import * as R from 'ramda';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import cx from 'classnames';
|
|
5
|
-
import Typography from '@material
|
|
6
|
-
import Grid from '@material
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
5
|
+
import Typography from '@mui/material/Typography';
|
|
6
|
+
import Grid from '@mui/material/Grid';
|
|
7
|
+
import { useTheme } from '@mui/material/styles';
|
|
8
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
9
|
+
import TableCell from '@mui/material/TableCell';
|
|
10
|
+
import TableRow from '@mui/material/TableRow';
|
|
10
11
|
import Flags from './flags';
|
|
11
12
|
import { getDark, getIsRtl } from '../utils';
|
|
12
13
|
import { getValue } from './utils';
|
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import * as R from 'ramda';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import cx from 'classnames';
|
|
5
|
-
import Typography from '@material
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import Typography from '@mui/material/Typography';
|
|
6
|
+
import { useTheme } from '@mui/material/styles';
|
|
7
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
8
|
+
import TableCell from '@mui/material/TableCell';
|
|
9
|
+
import TableRow from '@mui/material/TableRow';
|
|
9
10
|
import { getLight, getIsRtl } from '../utils';
|
|
10
11
|
import Flags from './flags';
|
|
11
12
|
|
|
@@ -16,7 +17,7 @@ var useStyles = makeStyles(function (theme) {
|
|
|
16
17
|
border: 'inherit',
|
|
17
18
|
borderBottom: 'thin solid ' + theme.palette.grey[500],
|
|
18
19
|
borderRight: 'thin solid ' + theme.palette.grey[500],
|
|
19
|
-
padding: theme.spacing(0.5) + '
|
|
20
|
+
padding: theme.spacing(0.5) + ' ' + theme.spacing(1),
|
|
20
21
|
color: theme.palette.grey['A700'],
|
|
21
22
|
verticalAlign: 'middle',
|
|
22
23
|
position: 'sticky',
|
|
@@ -27,7 +28,7 @@ var useStyles = makeStyles(function (theme) {
|
|
|
27
28
|
border: 'inherit',
|
|
28
29
|
borderBottom: 'thin solid ' + theme.palette.grey[500],
|
|
29
30
|
borderRight: 'thin solid ' + theme.palette.grey[500],
|
|
30
|
-
padding: theme.spacing(0.5) + '
|
|
31
|
+
padding: theme.spacing(0.5) + ' ' + theme.spacing(1),
|
|
31
32
|
verticalAlign: 'middle',
|
|
32
33
|
textAlign: 'center',
|
|
33
34
|
color: theme.palette.grey['A700']
|
package/es/TableLayout/Box.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import * as R from 'ramda';
|
|
4
|
-
import Typography from '@material-ui/core/Typography';
|
|
5
|
-
import Grid from '@material-ui/core/Grid';
|
|
6
|
-
import { makeStyles } from '@material-ui/core/styles';
|
|
7
4
|
import cx from 'classnames';
|
|
8
5
|
import { Droppable } from '@hello-pangea/dnd';
|
|
6
|
+
import Typography from '@mui/material/Typography';
|
|
7
|
+
import Grid from '@mui/material/Grid';
|
|
8
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
9
9
|
import DnDItem from './DnDItem';
|
|
10
|
+
import { visuallyHidden } from '@mui/utils';
|
|
10
11
|
import { getLight, getDark } from '../utils';
|
|
11
12
|
import { BOX } from './constants';
|
|
12
13
|
|
|
@@ -70,7 +71,7 @@ var Box = function Box(_ref2) {
|
|
|
70
71
|
),
|
|
71
72
|
React.createElement(
|
|
72
73
|
Typography,
|
|
73
|
-
{
|
|
74
|
+
{ style: visuallyHidden },
|
|
74
75
|
title
|
|
75
76
|
)
|
|
76
77
|
),
|
|
@@ -4,10 +4,10 @@ import React, { Fragment } 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 Typography from '@material
|
|
9
|
-
import Select from '@material
|
|
10
|
-
import MenuItem from '@material
|
|
7
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
8
|
+
import Typography from '@mui/material/Typography';
|
|
9
|
+
import Select from '@mui/material/Select';
|
|
10
|
+
import MenuItem from '@mui/material/MenuItem';
|
|
11
11
|
import { Draggable } from '@hello-pangea/dnd';
|
|
12
12
|
import { getLight, getDark } from '../utils';
|
|
13
13
|
import { BOX, wcagId } from './constants';
|
|
@@ -50,11 +50,10 @@ export var useStyles = makeStyles(function (theme) {
|
|
|
50
50
|
fontSize: theme.typography.fontSize - 2,
|
|
51
51
|
fontWeight: theme.typography.fontWeightBold
|
|
52
52
|
}, _ref.itemButton = {
|
|
53
|
-
paddingTop: theme.spacing(0.25),
|
|
54
|
-
paddingBottom: theme.spacing(0.25),
|
|
55
|
-
paddingRight: 0
|
|
53
|
+
// paddingTop: theme.spacing(0.25),
|
|
54
|
+
// paddingBottom: theme.spacing(0.25),
|
|
55
|
+
// paddingRight: 0,
|
|
56
56
|
}, _ref.select = {
|
|
57
|
-
padding: theme.spacing(0.5, 4, 0.5, 2),
|
|
58
57
|
backgroundColor: theme.palette.common.white,
|
|
59
58
|
'&:focus': {
|
|
60
59
|
backgroundColor: theme.palette.common.white
|
|
@@ -110,7 +109,9 @@ var DnDItem = function DnDItem(_ref2) {
|
|
|
110
109
|
return selectItem.onChange(e.target.value);
|
|
111
110
|
},
|
|
112
111
|
classes: { root: classes.select },
|
|
113
|
-
variant: 'outlined'
|
|
112
|
+
variant: 'outlined',
|
|
113
|
+
size: 'small',
|
|
114
|
+
autoWidth: true
|
|
114
115
|
},
|
|
115
116
|
R.map(function (v) {
|
|
116
117
|
return React.createElement(
|
|
@@ -4,16 +4,17 @@ import React, { Fragment, useState, useMemo, useEffect } from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import * as R from 'ramda';
|
|
7
|
-
import Grid from '@material
|
|
8
|
-
import Typography from '@material
|
|
9
|
-
import ViewColumn from '@
|
|
10
|
-
import ViewList from '@
|
|
11
|
-
import Reorder from '@
|
|
12
|
-
import ViewQuilt from '@
|
|
13
|
-
import Undo from '@
|
|
14
|
-
import Done from '@
|
|
15
|
-
import
|
|
16
|
-
import { makeStyles } from '@
|
|
7
|
+
import Grid from '@mui/material/Grid';
|
|
8
|
+
import Typography from '@mui/material/Typography';
|
|
9
|
+
import ViewColumn from '@mui/icons-material/ViewColumnOutlined';
|
|
10
|
+
import ViewList from '@mui/icons-material/ViewListOutlined';
|
|
11
|
+
import Reorder from '@mui/icons-material/Reorder';
|
|
12
|
+
import ViewQuilt from '@mui/icons-material/ViewQuiltOutlined';
|
|
13
|
+
import Undo from '@mui/icons-material/Undo';
|
|
14
|
+
import Done from '@mui/icons-material/Done';
|
|
15
|
+
import { visuallyHidden } from '@mui/utils';
|
|
16
|
+
import { makeStyles } from '@mui/styles';
|
|
17
|
+
import CheckBoxIcon from '@mui/icons-material/CheckBoxOutlineBlankOutlined';
|
|
17
18
|
import { DragDropContext } from '@hello-pangea/dnd';
|
|
18
19
|
import { withBlank } from '../utils';
|
|
19
20
|
import TablePreview from '../TablePreview';
|
|
@@ -267,7 +268,7 @@ var TableLayout = function TableLayout(_ref) {
|
|
|
267
268
|
),
|
|
268
269
|
React.createElement(
|
|
269
270
|
Typography,
|
|
270
|
-
{
|
|
271
|
+
{ style: visuallyHidden },
|
|
271
272
|
labels.wcagDragExplanation
|
|
272
273
|
)
|
|
273
274
|
),
|
|
@@ -2,10 +2,10 @@ import React, { Fragment } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import * as R from 'ramda';
|
|
5
|
-
import Table from '@material
|
|
6
|
-
import TableRow from '@material
|
|
7
|
-
import TableCell from '@material
|
|
8
|
-
import Lens from '@
|
|
5
|
+
import Table from '@mui/material/Table';
|
|
6
|
+
import TableRow from '@mui/material/TableRow';
|
|
7
|
+
import TableCell from '@mui/material/TableCell';
|
|
8
|
+
import Lens from '@mui/icons-material/Lens';
|
|
9
9
|
import { withBlank } from '../utils';
|
|
10
10
|
import { useStyles } from './styles';
|
|
11
11
|
import { getMaxValuesLength, getEmptyValues, getLabel, valueLabel, maxCount } from './lib';
|
package/es/TablePreview/lib.js
CHANGED
package/es/Tag/Tag.js
CHANGED
|
@@ -3,8 +3,8 @@ 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 Typography from '@material
|
|
7
|
-
import
|
|
6
|
+
import Typography from '@mui/material/Typography';
|
|
7
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
8
8
|
|
|
9
9
|
var useStyles = makeStyles(function (theme) {
|
|
10
10
|
return {
|
package/es/Tag/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tag takes children for wrapped it into a hightlight
|
|
3
|
-
*
|
|
4
|
-
* @memberOf VISIONS
|
|
5
|
-
* @name Tag
|
|
6
|
-
* @tag component
|
|
7
|
-
* @api public
|
|
8
|
-
* @theme
|
|
9
|
-
* {
|
|
10
|
-
* palette: {
|
|
11
|
-
* highlight: {
|
|
12
|
-
* hl2: // border around the label. globale override: outerPalette.highlight2
|
|
13
|
-
* },
|
|
14
|
-
* primary: {
|
|
15
|
-
* dark: // used if hl2 is null. globale override: outerPalette.primaryDark
|
|
16
|
-
* }
|
|
17
|
-
* },
|
|
18
|
-
* mixins: {
|
|
19
|
-
* tag: {
|
|
20
|
-
* root: {
|
|
21
|
-
* fontSize: 12,
|
|
22
|
-
* fontFamily: "'PT Sans Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif",
|
|
23
|
-
* color: outerPalette.textLight,
|
|
24
|
-
* },
|
|
25
|
-
* }
|
|
26
|
-
* }
|
|
27
|
-
* }
|
|
1
|
+
/**
|
|
2
|
+
* Tag takes children for wrapped it into a hightlight
|
|
3
|
+
*
|
|
4
|
+
* @memberOf VISIONS
|
|
5
|
+
* @name Tag
|
|
6
|
+
* @tag component
|
|
7
|
+
* @api public
|
|
8
|
+
* @theme
|
|
9
|
+
* {
|
|
10
|
+
* palette: {
|
|
11
|
+
* highlight: {
|
|
12
|
+
* hl2: // border around the label. globale override: outerPalette.highlight2
|
|
13
|
+
* },
|
|
14
|
+
* primary: {
|
|
15
|
+
* dark: // used if hl2 is null. globale override: outerPalette.primaryDark
|
|
16
|
+
* }
|
|
17
|
+
* },
|
|
18
|
+
* mixins: {
|
|
19
|
+
* tag: {
|
|
20
|
+
* root: {
|
|
21
|
+
* fontSize: 12,
|
|
22
|
+
* fontFamily: "'PT Sans Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif",
|
|
23
|
+
* color: outerPalette.textLight,
|
|
24
|
+
* },
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
export { default } from './Tag';
|