@sis-cc/dotstatsuite-visions 6.5.2 → 6.6.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 (293) hide show
  1. package/es/Alert/Alert.js +66 -135
  2. package/es/Alert/index.js +0 -1
  3. package/es/ApiQueries/ApiQueries.js +45 -79
  4. package/es/ApiQueries/Query.js +65 -105
  5. package/es/ApiQueries/index.js +0 -1
  6. package/es/AuthDialog/index.js +62 -103
  7. package/es/Breadcrumbs/Breadcrumbs.js +21 -38
  8. package/es/Breadcrumbs/index.js +0 -1
  9. package/es/Button/Button.js +11 -28
  10. package/es/Button/index.js +0 -1
  11. package/es/ChartsConfig/Axis.js +72 -76
  12. package/es/ChartsConfig/ButtonGroup.js +29 -51
  13. package/es/ChartsConfig/ChartsConfig.js +87 -187
  14. package/es/ChartsConfig/ContainerTitle.js +15 -36
  15. package/es/ChartsConfig/Focus.js +37 -48
  16. package/es/ChartsConfig/Frequency.js +24 -36
  17. package/es/ChartsConfig/Series.js +28 -43
  18. package/es/ChartsConfig/Size.js +36 -50
  19. package/es/ChartsConfig/index.js +0 -1
  20. package/es/ChartsConfig/styles.js +4 -4
  21. package/es/ChartsConfig/utils.js +1 -5
  22. package/es/Chips/Chips.js +99 -154
  23. package/es/Chips/index.js +0 -1
  24. package/es/CollapseButtons/CollapseButtons.js +61 -101
  25. package/es/CollapseButtons/Item.js +45 -70
  26. package/es/CollapseButtons/Paper.js +7 -21
  27. package/es/CollapseButtons/index.js +0 -1
  28. package/es/DataEdit/DataEdit.js +67 -124
  29. package/es/DataEdit/Input.js +27 -58
  30. package/es/DataEdit/index.js +0 -1
  31. package/es/DataFooter/DataFooter.js +68 -115
  32. package/es/DataFooter/index.js +0 -1
  33. package/es/DataHeader/DataHeader.js +75 -113
  34. package/es/DataHeader/Flags.js +8 -21
  35. package/es/DataHeader/Title.js +2 -15
  36. package/es/DataHeader/TooltipHeader.js +33 -63
  37. package/es/DataHeader/index.js +0 -1
  38. package/es/DataHeader/utils.js +8 -8
  39. package/es/Dataflow/Dataflow.js +132 -226
  40. package/es/Dataflow/index.js +0 -1
  41. package/es/ExpansionPanel/ExpansionPanel.js +42 -79
  42. package/es/ExpansionPanel/index.js +0 -1
  43. package/es/ExpansionPanel/styles.js +3 -5
  44. package/es/Icons/AccessibilityFilled.js +6 -8
  45. package/es/Icons/AccessibilityOutlined.js +6 -8
  46. package/es/Icons/AccountFilled.js +6 -8
  47. package/es/Icons/AccountOutlined.js +6 -8
  48. package/es/Icons/Api.js +6 -8
  49. package/es/Icons/Asterisk.js +6 -8
  50. package/es/Icons/Bar.js +6 -8
  51. package/es/Icons/CopyContent.js +6 -8
  52. package/es/Icons/Cross.js +6 -8
  53. package/es/Icons/HSymbol.js +6 -8
  54. package/es/Icons/Row.js +6 -8
  55. package/es/Icons/Scatter.js +6 -8
  56. package/es/Icons/StackedBar.js +6 -8
  57. package/es/Icons/StackedRow.js +6 -8
  58. package/es/Icons/Timeline.js +6 -8
  59. package/es/Icons/VSymbol.js +6 -8
  60. package/es/Icons/Warning.js +11 -14
  61. package/es/Icons/index.js +0 -1
  62. package/es/Input/Input.js +26 -56
  63. package/es/Input/index.js +0 -1
  64. package/es/Input/with-input.js +30 -25
  65. package/es/InputNumber/InputNumber.js +31 -51
  66. package/es/InputNumber/index.js +0 -1
  67. package/es/LabelDivider/LabelDivider.js +7 -18
  68. package/es/LabelDivider/index.js +0 -1
  69. package/es/Loading/Loading.js +9 -18
  70. package/es/Loading/index.js +0 -1
  71. package/es/Logo/Logo.js +11 -17
  72. package/es/Logo/index.js +0 -1
  73. package/es/NoData/NoData.js +17 -25
  74. package/es/NoData/index.js +0 -1
  75. package/es/Pagination/Pagination.js +70 -114
  76. package/es/Pagination/index.js +0 -1
  77. package/es/PeriodPicker/PeriodPicker.js +101 -124
  78. package/es/PeriodPicker/constants.js +78 -13
  79. package/es/PeriodPicker/index.js +0 -1
  80. package/es/PeriodPicker/lib.js +37 -23
  81. package/es/PeriodPicker/styles.js +0 -1
  82. package/es/ScopeList/Header.js +41 -60
  83. package/es/ScopeList/Item.js +98 -144
  84. package/es/ScopeList/ScopeList.js +132 -184
  85. package/es/ScopeList/Selection.js +51 -93
  86. package/es/ScopeList/index.js +0 -1
  87. package/es/ScopeList/styles.js +2 -3
  88. package/es/ScopeList/with-scope-list.js +151 -88
  89. package/es/Select/Select.js +44 -60
  90. package/es/Select/index.js +0 -1
  91. package/es/Share/Form.js +58 -88
  92. package/es/Share/Mode.js +30 -46
  93. package/es/Share/Share.js +41 -64
  94. package/es/Share/index.js +0 -1
  95. package/es/SisccFooter/SisccFooter.js +29 -36
  96. package/es/SisccFooter/index.js +0 -1
  97. package/es/Spotlight/Fields.js +37 -71
  98. package/es/Spotlight/Spotlight.js +51 -92
  99. package/es/Spotlight/index.js +0 -1
  100. package/es/Spotlight/useSpotlight.js +33 -13
  101. package/es/Spotlight/useStyles.js +2 -4
  102. package/es/Table/Table.js +50 -71
  103. package/es/Table/header.js +36 -50
  104. package/es/Table/index.js +0 -1
  105. package/es/Table/itemCell.js +13 -25
  106. package/es/Table/row-header.js +31 -50
  107. package/es/Table/section-header.js +30 -55
  108. package/es/Table/section-rows.js +38 -62
  109. package/es/Table/styles.js +2 -8
  110. package/es/Table/tableCell.js +7 -17
  111. package/es/Table/tooltip.js +21 -41
  112. package/es/Table/useStyles.js +2 -3
  113. package/es/Table/valueCell.js +26 -41
  114. package/es/TableFooter/TableFooter.js +42 -70
  115. package/es/TableFooter/index.js +0 -1
  116. package/es/TableHeader/TableHeader.js +18 -36
  117. package/es/TableHeader/index.js +0 -1
  118. package/es/TableHtml5/TableHtml5.js +71 -68
  119. package/es/TableHtml5/cell.js +35 -55
  120. package/es/TableHtml5/flags.js +29 -58
  121. package/es/TableHtml5/header.js +48 -66
  122. package/es/TableHtml5/index.js +0 -1
  123. package/es/TableHtml5/section.js +86 -120
  124. package/es/TableHtml5/sectionHeader.js +45 -72
  125. package/es/TableHtml5/subHeader.js +48 -58
  126. package/es/TableLayout/Box.js +33 -66
  127. package/es/TableLayout/DnDItem.js +37 -68
  128. package/es/TableLayout/TableLayout.js +105 -177
  129. package/es/TableLayout/constants.js +0 -2
  130. package/es/TableLayout/index.js +0 -1
  131. package/es/TableLayout/lib.js +1 -3
  132. package/es/TablePreview/TablePreview.js +99 -176
  133. package/es/TablePreview/index.js +0 -1
  134. package/es/TablePreview/lib.js +5 -4
  135. package/es/TablePreview/styles.js +0 -1
  136. package/es/Tag/Tag.js +5 -21
  137. package/es/Tag/index.js +0 -1
  138. package/es/ToggleButton/ToggleButton.js +17 -29
  139. package/es/ToggleButton/index.js +0 -1
  140. package/es/Tooltip/Tooltip.js +20 -32
  141. package/es/Tooltip/index.js +0 -1
  142. package/es/VerticalButton/VerticalButton.js +17 -22
  143. package/es/VerticalButton/index.js +0 -1
  144. package/es/index.js +2 -4
  145. package/es/theme.js +22 -14
  146. package/es/utils.js +16 -14
  147. package/lib/Alert/Alert.js +87 -168
  148. package/lib/Alert/index.js +7 -12
  149. package/lib/ApiQueries/ApiQueries.js +61 -105
  150. package/lib/ApiQueries/Query.js +85 -132
  151. package/lib/ApiQueries/index.js +7 -12
  152. package/lib/AuthDialog/index.js +82 -137
  153. package/lib/Breadcrumbs/Breadcrumbs.js +39 -68
  154. package/lib/Breadcrumbs/index.js +7 -12
  155. package/lib/Button/Button.js +28 -47
  156. package/lib/Button/index.js +7 -12
  157. package/lib/ChartsConfig/Axis.js +88 -100
  158. package/lib/ChartsConfig/ButtonGroup.js +43 -74
  159. package/lib/ChartsConfig/ChartsConfig.js +113 -236
  160. package/lib/ChartsConfig/ContainerTitle.js +30 -59
  161. package/lib/ChartsConfig/Focus.js +53 -71
  162. package/lib/ChartsConfig/Frequency.js +39 -59
  163. package/lib/ChartsConfig/Series.js +45 -70
  164. package/lib/ChartsConfig/Size.js +53 -77
  165. package/lib/ChartsConfig/index.js +7 -12
  166. package/lib/ChartsConfig/styles.js +16 -11
  167. package/lib/ChartsConfig/utils.js +14 -13
  168. package/lib/Chips/Chips.js +122 -192
  169. package/lib/Chips/index.js +7 -12
  170. package/lib/CollapseButtons/CollapseButtons.js +84 -134
  171. package/lib/CollapseButtons/Item.js +64 -98
  172. package/lib/CollapseButtons/Paper.js +19 -41
  173. package/lib/CollapseButtons/index.js +7 -12
  174. package/lib/DataEdit/DataEdit.js +88 -156
  175. package/lib/DataEdit/Input.js +42 -82
  176. package/lib/DataEdit/index.js +7 -12
  177. package/lib/DataFooter/DataFooter.js +88 -144
  178. package/lib/DataFooter/index.js +7 -12
  179. package/lib/DataHeader/DataHeader.js +106 -158
  180. package/lib/DataHeader/Flags.js +18 -34
  181. package/lib/DataHeader/Title.js +11 -27
  182. package/lib/DataHeader/TooltipHeader.js +48 -79
  183. package/lib/DataHeader/index.js +7 -12
  184. package/lib/DataHeader/utils.js +16 -10
  185. package/lib/Dataflow/Dataflow.js +159 -277
  186. package/lib/Dataflow/index.js +7 -12
  187. package/lib/ExpansionPanel/ExpansionPanel.js +63 -116
  188. package/lib/ExpansionPanel/index.js +7 -12
  189. package/lib/ExpansionPanel/styles.js +15 -12
  190. package/lib/Icons/AccessibilityFilled.js +15 -17
  191. package/lib/Icons/AccessibilityOutlined.js +15 -17
  192. package/lib/Icons/AccountFilled.js +15 -17
  193. package/lib/Icons/AccountOutlined.js +15 -17
  194. package/lib/Icons/Api.js +15 -17
  195. package/lib/Icons/Asterisk.js +15 -17
  196. package/lib/Icons/Bar.js +15 -17
  197. package/lib/Icons/CopyContent.js +15 -17
  198. package/lib/Icons/Cross.js +15 -17
  199. package/lib/Icons/HSymbol.js +15 -17
  200. package/lib/Icons/Row.js +15 -17
  201. package/lib/Icons/Scatter.js +15 -17
  202. package/lib/Icons/StackedBar.js +15 -17
  203. package/lib/Icons/StackedRow.js +15 -17
  204. package/lib/Icons/Timeline.js +15 -17
  205. package/lib/Icons/VSymbol.js +15 -17
  206. package/lib/Icons/Warning.js +27 -31
  207. package/lib/Icons/index.js +68 -152
  208. package/lib/Input/Input.js +47 -85
  209. package/lib/Input/index.js +7 -12
  210. package/lib/Input/with-input.js +38 -35
  211. package/lib/InputNumber/InputNumber.js +50 -80
  212. package/lib/InputNumber/index.js +7 -12
  213. package/lib/LabelDivider/LabelDivider.js +23 -37
  214. package/lib/LabelDivider/index.js +7 -12
  215. package/lib/Loading/Loading.js +20 -35
  216. package/lib/Loading/index.js +7 -12
  217. package/lib/Logo/Logo.js +20 -28
  218. package/lib/Logo/index.js +7 -12
  219. package/lib/NoData/NoData.js +28 -42
  220. package/lib/NoData/index.js +7 -12
  221. package/lib/Pagination/Pagination.js +91 -150
  222. package/lib/Pagination/index.js +7 -12
  223. package/lib/PeriodPicker/PeriodPicker.js +121 -150
  224. package/lib/PeriodPicker/constants.js +126 -37
  225. package/lib/PeriodPicker/index.js +7 -12
  226. package/lib/PeriodPicker/lib.js +99 -61
  227. package/lib/PeriodPicker/styles.js +7 -4
  228. package/lib/ScopeList/Header.js +58 -88
  229. package/lib/ScopeList/Item.js +116 -177
  230. package/lib/ScopeList/ScopeList.js +160 -234
  231. package/lib/ScopeList/Selection.js +70 -131
  232. package/lib/ScopeList/index.js +7 -12
  233. package/lib/ScopeList/styles.js +10 -9
  234. package/lib/ScopeList/with-scope-list.js +199 -108
  235. package/lib/Select/Select.js +59 -80
  236. package/lib/Select/index.js +7 -12
  237. package/lib/Share/Form.js +77 -119
  238. package/lib/Share/Mode.js +49 -78
  239. package/lib/Share/Share.js +59 -91
  240. package/lib/Share/index.js +7 -12
  241. package/lib/SisccFooter/SisccFooter.js +44 -63
  242. package/lib/SisccFooter/index.js +7 -12
  243. package/lib/Spotlight/Fields.js +54 -100
  244. package/lib/Spotlight/Spotlight.js +75 -136
  245. package/lib/Spotlight/index.js +7 -12
  246. package/lib/Spotlight/useSpotlight.js +44 -20
  247. package/lib/Spotlight/useStyles.js +15 -12
  248. package/lib/Table/Table.js +69 -102
  249. package/lib/Table/header.js +51 -70
  250. package/lib/Table/index.js +7 -12
  251. package/lib/Table/itemCell.js +25 -41
  252. package/lib/Table/row-header.js +49 -75
  253. package/lib/Table/section-header.js +50 -82
  254. package/lib/Table/section-rows.js +60 -94
  255. package/lib/Table/styles.js +23 -25
  256. package/lib/Table/tableCell.js +19 -37
  257. package/lib/Table/tooltip.js +36 -54
  258. package/lib/Table/useStyles.js +11 -8
  259. package/lib/Table/valueCell.js +39 -59
  260. package/lib/TableFooter/TableFooter.js +57 -93
  261. package/lib/TableFooter/index.js +7 -12
  262. package/lib/TableHeader/TableHeader.js +32 -56
  263. package/lib/TableHeader/index.js +7 -12
  264. package/lib/TableHtml5/TableHtml5.js +90 -97
  265. package/lib/TableHtml5/cell.js +52 -84
  266. package/lib/TableHtml5/flags.js +48 -82
  267. package/lib/TableHtml5/header.js +66 -96
  268. package/lib/TableHtml5/index.js +8 -17
  269. package/lib/TableHtml5/section.js +111 -162
  270. package/lib/TableHtml5/sectionHeader.js +64 -102
  271. package/lib/TableHtml5/subHeader.js +68 -88
  272. package/lib/TableLayout/Box.js +54 -97
  273. package/lib/TableLayout/DnDItem.js +58 -98
  274. package/lib/TableLayout/TableLayout.js +140 -232
  275. package/lib/TableLayout/constants.js +8 -6
  276. package/lib/TableLayout/index.js +7 -12
  277. package/lib/TableLayout/lib.js +14 -9
  278. package/lib/TablePreview/TablePreview.js +118 -205
  279. package/lib/TablePreview/index.js +7 -12
  280. package/lib/TablePreview/lib.js +30 -19
  281. package/lib/TablePreview/styles.js +7 -6
  282. package/lib/Tag/Tag.js +19 -38
  283. package/lib/Tag/index.js +7 -12
  284. package/lib/ToggleButton/ToggleButton.js +33 -55
  285. package/lib/ToggleButton/index.js +7 -12
  286. package/lib/Tooltip/Tooltip.js +34 -50
  287. package/lib/Tooltip/index.js +7 -12
  288. package/lib/VerticalButton/VerticalButton.js +40 -46
  289. package/lib/VerticalButton/index.js +7 -12
  290. package/lib/index.js +137 -304
  291. package/lib/theme.js +31 -17
  292. package/lib/utils.js +46 -31
  293. package/package.json +2 -10
@@ -1,32 +1,31 @@
1
1
  import React from 'react';
2
2
  import * as R from 'ramda';
3
- import PropTypes from 'prop-types';
4
3
  import cx from 'classnames';
5
4
  import { makeStyles } from '@material-ui/core/styles';
6
5
  import TableCell from '@material-ui/core/TableCell';
7
6
  import Typography from '@material-ui/core/Typography';
8
7
  import Link from '@material-ui/core/Link';
9
8
  import Flags from './flags';
10
-
11
9
  var useStyles = makeStyles(function (theme) {
12
10
  return {
13
11
  cell: {
14
- borderBottom: '1px solid ' + theme.palette.grey[500],
15
- borderRight: '1px solid ' + theme.palette.grey[500],
16
- padding: theme.spacing(0.5) + 'px ' + theme.spacing(1) + 'px',
12
+ borderBottom: "1px solid " + theme.palette.grey[500],
13
+ borderRight: "1px solid " + theme.palette.grey[500],
14
+ padding: theme.spacing(0.5) + "px " + theme.spacing(1) + "px",
17
15
  verticalAlign: 'baseline',
18
16
  color: theme.palette.grey['A700'],
19
17
  '&:hover': {
20
- boxShadow: 'inset 0 0 0 2px ' + theme.palette.primary.main
18
+ boxShadow: "inset 0 0 0 2px " + theme.palette.primary.main
21
19
  }
22
20
  },
23
21
  active: {
24
- boxShadow: 'inset 0 0 0 2px ' + theme.palette.primary.main
22
+ boxShadow: "inset 0 0 0 2px " + theme.palette.primary.main
25
23
  },
26
24
  highlight: theme.mixins.table.cellHighlight,
27
25
  oneCell: {
28
- border: '1px solid ' + theme.palette.grey[500],
26
+ border: "1px solid " + theme.palette.grey[500],
29
27
  display: 'block' // MUI TableCell is inline-block
28
+
30
29
  },
31
30
  link: {
32
31
  position: 'inherit',
@@ -43,60 +42,41 @@ var Cell = function Cell(_ref) {
43
42
  headers = _ref.headers,
44
43
  isOne = _ref.isOne,
45
44
  _ref$indexedDimValIds = _ref.indexedDimValIds,
46
- indexedDimValIds = _ref$indexedDimValIds === undefined ? {} : _ref$indexedDimValIds,
45
+ indexedDimValIds = _ref$indexedDimValIds === void 0 ? {} : _ref$indexedDimValIds,
47
46
  cellHandler = _ref.cellHandler,
48
47
  activeCellHandler = _ref.activeCellHandler,
49
48
  isActive = _ref.isActive,
50
49
  isHighlight = _ref.isHighlight;
51
-
52
50
  var classes = useStyles();
53
51
  var hasFlag = R.not(R.isEmpty(flags));
54
- var uiValue = R.is(Function, cellHandler) && !R.isEmpty(indexedDimValIds) ? React.createElement(
55
- Link,
56
- {
57
- component: 'button',
58
- variant: 'body1',
59
- color: 'inherit',
60
- underline: 'always',
61
- onClick: function onClick() {
62
- return cellHandler({ indexedDimValIds: indexedDimValIds });
63
- },
64
- className: classes.link
52
+ var uiValue = R.is(Function, cellHandler) && !R.isEmpty(indexedDimValIds) ? /*#__PURE__*/React.createElement(Link, {
53
+ component: "button",
54
+ variant: "body1",
55
+ color: "inherit",
56
+ underline: "always",
57
+ onClick: function onClick() {
58
+ return cellHandler({
59
+ indexedDimValIds: indexedDimValIds
60
+ });
65
61
  },
66
- value
67
- ) : value;
68
-
69
- return React.createElement(
70
- TableCell,
71
- {
72
- component: isOne ? 'div' : undefined,
73
- className: cx(classes.cell, (_cx = {}, _cx[classes.oneCell] = isOne, _cx[classes.active] = isActive, _cx[classes.highlight] = isHighlight, _cx)),
74
- headers: headers,
75
- onClick: activeCellHandler
76
- },
77
- React.createElement(
78
- 'div',
79
- { style: { textAlign: 'right' } },
80
- React.createElement(
81
- Typography,
82
- { variant: 'body1', tabIndex: 0, noWrap: hasFlag },
83
- hasFlag && React.createElement(Flags, { flags: flags }),
84
- uiValue
85
- )
86
- )
87
- );
62
+ className: classes.link
63
+ }, value) : value;
64
+ return /*#__PURE__*/React.createElement(TableCell, {
65
+ component: isOne ? 'div' : undefined,
66
+ className: cx(classes.cell, (_cx = {}, _cx[classes.oneCell] = isOne, _cx[classes.active] = isActive, _cx[classes.highlight] = isHighlight, _cx)),
67
+ headers: headers,
68
+ onClick: activeCellHandler
69
+ }, /*#__PURE__*/React.createElement("div", {
70
+ style: {
71
+ textAlign: 'right'
72
+ }
73
+ }, /*#__PURE__*/React.createElement(Typography, {
74
+ variant: "body1",
75
+ tabIndex: 0,
76
+ noWrap: hasFlag
77
+ }, hasFlag && /*#__PURE__*/React.createElement(Flags, {
78
+ flags: flags
79
+ }), uiValue)));
88
80
  };
89
81
 
90
- Cell.propTypes = process.env.NODE_ENV !== "production" ? {
91
- flags: PropTypes.array,
92
- isOne: PropTypes.bool,
93
- value: PropTypes.string,
94
- headers: PropTypes.string,
95
- indexedDimValIds: PropTypes.object,
96
- cellHandler: PropTypes.func,
97
- isActive: PropTypes.bool,
98
- isHighlight: PropTypes.bool,
99
- activeCellHandler: PropTypes.func
100
- } : {};
101
-
102
82
  export default Cell;
@@ -1,14 +1,11 @@
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
-
1
+ import _extends from "/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends";
3
2
  import React, { Fragment } from 'react';
4
- import PropTypes from 'prop-types';
5
3
  import * as R from 'ramda';
6
4
  import cx from 'classnames';
7
5
  import { makeStyles } from '@material-ui/core/styles';
8
6
  import Typography from '@material-ui/core/Typography';
9
7
  import Tooltip from '@material-ui/core/Tooltip';
10
8
  import { Asterisk } from '../';
11
-
12
9
  var useStyles = makeStyles(function (theme) {
13
10
  return {
14
11
  content: _extends({
@@ -42,68 +39,42 @@ var Flags = function Flags(_ref) {
42
39
  var _cx;
43
40
 
44
41
  var _ref$flags = _ref.flags,
45
- flags = _ref$flags === undefined ? [] : _ref$flags,
42
+ flags = _ref$flags === void 0 ? [] : _ref$flags,
46
43
  isHeader = _ref.isHeader;
47
-
48
44
  var classes = useStyles();
49
45
  var noFlags = R.isNil(flags) || R.isEmpty(flags);
50
46
  if (noFlags) return null;
51
-
52
47
  var hasUncoded = R.any(R.complement(R.has('code')), flags);
53
48
  var codedIcons = R.pipe(R.reduce(function (acc, flag) {
54
49
  return R.when(R.always(R.has('code', flag)), R.append(flag.code))(acc);
55
50
  }, []), R.join(','))(flags);
56
-
57
- var content = React.createElement(
58
- 'ul',
59
- { className: classes.content },
60
- R.addIndex(R.map)(function (_ref2, index) {
61
- var label = _ref2.label;
62
- return React.createElement(
63
- 'li',
64
- { key: index },
65
- label
66
- );
67
- }, flags)
68
- );
69
- return React.createElement(
70
- Tooltip,
71
- {
72
- tabIndex: 0,
73
- 'aria-label': R.pipe(R.pluck('label'), R.join(', '))(flags),
74
- 'aria-hidden': false,
75
- title: content,
76
- placement: 'top'
77
- },
78
- React.createElement(
79
- 'span',
80
- { className: cx(classes.flags, (_cx = {}, _cx[classes.header] = isHeader, _cx)) },
81
- R.not(R.isEmpty(codedIcons)) && codedIcons,
82
- R.and(R.not(R.isEmpty(codedIcons)), hasUncoded) && React.createElement(
83
- React.Fragment,
84
- null,
85
- ','
86
- ),
87
- hasUncoded && React.createElement(
88
- Fragment,
89
- null,
90
- React.createElement(Asterisk, { className: classes.svg, style: { fontSize: 11 } }),
91
- React.createElement(
92
- Typography,
93
- { variant: 'srOnly' },
94
- '* ' + R.addIndex(R.map)(function (_ref3) {
95
- var label = _ref3.label;
96
- return label;
97
- }, flags)
98
- )
99
- )
100
- )
101
- );
51
+ var content = /*#__PURE__*/React.createElement("ul", {
52
+ className: classes.content
53
+ }, R.addIndex(R.map)(function (_ref2, index) {
54
+ var label = _ref2.label;
55
+ return /*#__PURE__*/React.createElement("li", {
56
+ key: index
57
+ }, label);
58
+ }, flags));
59
+ return /*#__PURE__*/React.createElement(Tooltip, {
60
+ tabIndex: 0,
61
+ "aria-label": R.pipe(R.pluck('label'), R.join(', '))(flags),
62
+ "aria-hidden": false,
63
+ title: content,
64
+ placement: "top"
65
+ }, /*#__PURE__*/React.createElement("span", {
66
+ className: cx(classes.flags, (_cx = {}, _cx[classes.header] = isHeader, _cx))
67
+ }, R.not(R.isEmpty(codedIcons)) && codedIcons, R.and(R.not(R.isEmpty(codedIcons)), hasUncoded) && /*#__PURE__*/React.createElement(React.Fragment, null, ","), hasUncoded && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Asterisk, {
68
+ className: classes.svg,
69
+ style: {
70
+ fontSize: 11
71
+ }
72
+ }), /*#__PURE__*/React.createElement(Typography, {
73
+ variant: "srOnly"
74
+ }, "* " + R.addIndex(R.map)(function (_ref3) {
75
+ var label = _ref3.label;
76
+ return label;
77
+ }, flags)))));
102
78
  };
103
79
 
104
- Flags.propTypes = process.env.NODE_ENV !== "production" ? {
105
- flags: PropTypes.array,
106
- isHeader: PropTypes.bool
107
- } : {};
108
-
109
80
  export default Flags;
@@ -1,22 +1,20 @@
1
1
  import React from 'react';
2
2
  import * as R from 'ramda';
3
- import PropTypes from 'prop-types';
4
3
  import cx from 'classnames';
5
4
  import Typography from '@material-ui/core/Typography';
6
5
  import { makeStyles } from '@material-ui/core/styles';
7
6
  import TableCell from '@material-ui/core/TableCell';
8
7
  import TableRow from '@material-ui/core/TableRow';
9
8
  import Flags from './flags';
10
-
11
9
  var useStyles = makeStyles(function (theme) {
12
10
  return {
13
11
  tableHeadCell: {
14
12
  color: theme.palette.getContrastText(theme.palette.primary.main),
15
13
  backgroundColor: theme.palette.primary.main,
16
14
  border: 'inherit',
17
- borderBottom: '1px solid ' + theme.palette.grey[500],
18
- borderRight: '1px solid ' + theme.palette.grey[500],
19
- padding: theme.spacing(0.5) + 'px ' + theme.spacing(1) + 'px',
15
+ borderBottom: "1px solid " + theme.palette.grey[500],
16
+ borderRight: "1px solid " + theme.palette.grey[500],
17
+ padding: theme.spacing(0.5) + "px " + theme.spacing(1) + "px",
20
18
  verticalAlign: 'middle',
21
19
  '&:focus ': {
22
20
  opacity: '.85'
@@ -46,7 +44,6 @@ var useStyles = makeStyles(function (theme) {
46
44
  }
47
45
  };
48
46
  });
49
-
50
47
  var timesIndexed = R.addIndex(R.times);
51
48
  var mapIndexed = R.addIndex(R.map);
52
49
 
@@ -54,74 +51,59 @@ var Header = function Header(_ref) {
54
51
  var headerData = _ref.headerData,
55
52
  valuesHeaderData = _ref.valuesHeaderData,
56
53
  xLayoutDataLength = _ref.xLayoutDataLength;
57
-
58
54
  var classes = useStyles();
59
55
  if (R.compose(R.anyPass([R.isNil, R.isEmpty]), R.path([0, 'data']))(headerData)) return null;
60
56
  return timesIndexed(function (index) {
61
57
  var _cx;
62
58
 
63
59
  var flags = R.path([0, 'data', index, 'dimension', 'flags'], headerData);
64
- var id = 'header_' + index;
65
- return React.createElement(
66
- TableRow,
67
- { key: id },
68
- React.createElement(
69
- TableCell,
70
- {
71
- component: 'th',
72
- padding: 'none',
73
- align: 'center',
74
- className: cx(classes.tableHeadCell, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx)),
75
- colSpan: R.inc(xLayoutDataLength),
76
- id: id,
77
- tabIndex: 0
78
- },
79
- React.createElement(
80
- 'div',
81
- { className: classes.cellContentRight },
82
- React.createElement(
83
- Typography,
84
- { variant: 'body1', className: classes.cellLabelHeader },
85
- R.path([0, 'data', index, 'dimension', 'label'], headerData),
86
- React.createElement(Flags, { flags: flags, isHeader: true })
87
- )
88
- )
89
- ),
90
- mapIndexed(function (headerItem, idx) {
91
- var _cx2;
60
+ var id = "header_" + index;
61
+ return /*#__PURE__*/React.createElement(TableRow, {
62
+ key: id
63
+ }, /*#__PURE__*/React.createElement(TableCell, {
64
+ component: "th",
65
+ padding: "none",
66
+ align: "center",
67
+ className: cx(classes.tableHeadCell, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx)),
68
+ colSpan: R.inc(xLayoutDataLength),
69
+ id: id,
70
+ tabIndex: 0,
71
+ style: {
72
+ position: 'sticky',
73
+ left: 0,
74
+ zIndex: 1
75
+ }
76
+ }, /*#__PURE__*/React.createElement("div", {
77
+ className: classes.cellContentRight
78
+ }, /*#__PURE__*/React.createElement(Typography, {
79
+ variant: "body1",
80
+ className: classes.cellLabelHeader
81
+ }, R.path([0, 'data', index, 'dimension', 'label'], headerData), /*#__PURE__*/React.createElement(Flags, {
82
+ flags: flags,
83
+ isHeader: true
84
+ })))), mapIndexed(function (headerItem, idx) {
85
+ var _cx2;
92
86
 
93
- var flags = R.prop('flags', headerItem);
94
- return React.createElement(
95
- TableCell,
96
- {
97
- key: R.prop('id', headerItem) + '-' + idx,
98
- component: 'th',
99
- className: cx(classes.tableHeadCell, (_cx2 = {}, _cx2[classes.topCell] = R.not(R.isEmpty(flags)), _cx2)),
100
- id: idx + '_' + index,
101
- headers: 'header_' + index,
102
- colSpan: R.prop('spanCount', headerItem),
103
- tabIndex: 0
104
- },
105
- React.createElement(
106
- 'div',
107
- { className: classes.cellContentCenter },
108
- React.createElement(
109
- Typography,
110
- { className: classes.stickyLabel, variant: 'body1' },
111
- R.prop('label', headerItem),
112
- React.createElement(Flags, { flags: flags, isHeader: true })
113
- )
114
- )
115
- );
116
- }, R.nth(index, valuesHeaderData))
117
- );
87
+ var flags = R.prop('flags', headerItem);
88
+ return /*#__PURE__*/React.createElement(TableCell, {
89
+ key: R.prop('id', headerItem) + "-" + idx,
90
+ component: "th",
91
+ className: cx(classes.tableHeadCell, (_cx2 = {}, _cx2[classes.topCell] = R.not(R.isEmpty(flags)), _cx2)),
92
+ id: idx + "_" + index,
93
+ headers: "header_" + index,
94
+ colSpan: R.prop('spanCount', headerItem),
95
+ tabIndex: 0
96
+ }, /*#__PURE__*/React.createElement("div", {
97
+ className: classes.cellContentCenter
98
+ }, /*#__PURE__*/React.createElement(Typography, {
99
+ className: classes.stickyLabel,
100
+ variant: "body1"
101
+ }, R.prop('label', headerItem), /*#__PURE__*/React.createElement(Flags, {
102
+ flags: flags,
103
+ isHeader: true
104
+ }))));
105
+ }, R.nth(index, valuesHeaderData)));
118
106
  }, R.compose(R.length, R.pathOr([], [0, 'data']))(headerData));
119
107
  };
120
108
 
121
- Header.propTypes = process.env.NODE_ENV !== "production" ? {
122
- headerData: PropTypes.array,
123
- valuesHeaderData: PropTypes.array,
124
- xLayoutDataLength: PropTypes.number
125
- } : {};
126
-
127
109
  export default Header;
@@ -56,6 +56,5 @@
56
56
  * }
57
57
  * }
58
58
  */
59
-
60
59
  export { default } from './TableHtml5';
61
60
  export { default as Cell } from './cell';
@@ -1,8 +1,6 @@
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
-
1
+ import _extends from "/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends";
3
2
  import React from 'react';
4
3
  import * as R from 'ramda';
5
- import PropTypes from 'prop-types';
6
4
  import cx from 'classnames';
7
5
  import Typography from '@material-ui/core/Typography';
8
6
  import { makeStyles } from '@material-ui/core/styles';
@@ -13,26 +11,25 @@ import SectionHeader from './sectionHeader';
13
11
  import Cell from './cell';
14
12
  import { getLight } from '../utils';
15
13
  import Flags from './flags';
16
-
17
14
  var useStyles = makeStyles(function (theme) {
18
15
  return {
19
16
  rowTitle: {
20
17
  backgroundColor: getLight(theme) || theme.palette.secondary.light,
21
18
  border: 'inherit',
22
- borderBottom: '1px solid ' + theme.palette.grey[500],
23
- borderRight: '1px solid ' + theme.palette.grey[500],
24
- padding: theme.spacing(0.5) + 'px ' + theme.spacing(1) + 'px',
19
+ borderBottom: "1px solid " + theme.palette.grey[500],
20
+ borderRight: "1px solid " + theme.palette.grey[500],
21
+ padding: theme.spacing(0.5) + "px " + theme.spacing(1) + "px",
25
22
  color: theme.palette.grey['A700'],
26
23
  verticalAlign: 'middle'
27
24
  },
28
25
  fillerCell: {
29
- width: '30px',
26
+ minWidth: '30px',
30
27
  backgroundColor: theme.palette.grey[200],
31
28
  verticalAlign: 'top',
32
29
  border: 'inherit',
33
- borderBottom: '1px solid ' + theme.palette.grey[500],
34
- borderRight: '1px solid ' + theme.palette.grey[500],
35
- padding: theme.spacing(0.5) + 'px ' + theme.spacing(1) + 'px'
30
+ borderBottom: "1px solid " + theme.palette.grey[500],
31
+ borderRight: "1px solid " + theme.palette.grey[500],
32
+ padding: theme.spacing(0.5) + "px " + theme.spacing(1) + "px"
36
33
  },
37
34
  cellContent: {
38
35
  display: 'flex',
@@ -64,123 +61,92 @@ var Section = function Section(_ref) {
64
61
  activeCellIds = _ref.activeCellIds,
65
62
  headerHeight = _ref.headerHeight,
66
63
  sectionIndex = _ref.sectionIndex,
67
- nbColumnsByRows = _ref.nbColumnsByRows;
68
-
64
+ nbColumnsByRows = _ref.nbColumnsByRows,
65
+ subHeadCellsWidth = _ref.subHeadCellsWidth;
69
66
  var classes = useStyles();
70
67
  var currentSection = R.path([0, 'key'], section);
71
68
  var headerNumberRows = R.length(nbColumnsByRows);
72
69
  var maxColumns = R.last(nbColumnsByRows);
70
+ return /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(SectionHeader, {
71
+ headerData: headerData,
72
+ section: section,
73
+ currentSection: currentSection,
74
+ xLayoutDataLength: xLayoutDataLength,
75
+ headerHeight: headerHeight
76
+ }), R.map(function (sectionbody) {
77
+ var _cx2;
73
78
 
74
- return React.createElement(
75
- TableBody,
76
- null,
77
- React.createElement(SectionHeader, {
78
- headerData: headerData,
79
- section: section,
80
- currentSection: currentSection,
81
- xLayoutDataLength: xLayoutDataLength,
82
- headerHeight: headerHeight
83
- }),
84
- R.map(function (sectionbody) {
85
- var _cx2;
86
-
87
- var rowId = sectionbody.key + '_' + sectionIndex;
88
- var rowIds = R.pipe(R.map(function (index) {
89
- return sectionbody.key + '_' + sectionIndex + '_' + index;
90
- }), R.join(' '))(R.times(R.identity, R.length(R.prop('data', sectionbody))));
91
- return React.createElement(
92
- TableRow,
93
- { key: sectionbody.key },
94
- mapIndexed(function (cell, index) {
95
- var _cx;
79
+ var rowId = sectionbody.key + "_" + sectionIndex;
80
+ var rowIds = R.pipe(R.map(function (index) {
81
+ return sectionbody.key + "_" + sectionIndex + "_" + index;
82
+ }), R.join(' '))(R.times(R.identity, R.length(R.prop('data', sectionbody))));
83
+ return /*#__PURE__*/React.createElement(TableRow, {
84
+ key: sectionbody.key
85
+ }, mapIndexed(function (cell, index) {
86
+ var _cx;
96
87
 
97
- var flags = R.path(['value', 'flags'], cell);
98
- var id = rowId + '_' + index;
88
+ var flags = R.path(['value', 'flags'], cell);
89
+ var id = rowId + "_" + index; // special space is used for hierarchy U+2007 &#8199; &numsp;
99
90
 
100
- // special space is used for hierarchy U+2007 &#8199; &numsp;
101
- var hierarchySpace = R.pipe(R.pathOr([], ['value', 'parents']), R.when(R.isNil, R.always([])), R.length,
102
- // eslint-disable-next-line no-irregular-whitespace
103
- R.times(function () {
104
- return '·  ';
105
- }))(cell);
91
+ var hierarchySpace = R.pipe(R.pathOr([], ['value', 'parents']), R.when(R.isNil, R.always([])), R.length, // eslint-disable-next-line no-irregular-whitespace
92
+ R.times(function () {
93
+ return '·  ';
94
+ }))(cell);
95
+ return /*#__PURE__*/React.createElement(TableCell, {
96
+ key: id,
97
+ className: cx(classes.rowTitle, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx)),
98
+ id: id,
99
+ headers: "subHeader_" + index + " " + currentSection,
100
+ component: "th",
101
+ style: {
102
+ position: 'sticky',
103
+ left: subHeadCellsWidth[index],
104
+ zIndex: 1
105
+ }
106
+ }, /*#__PURE__*/React.createElement("div", {
107
+ className: classes.cellContent
108
+ }, !R.isEmpty(hierarchySpace) && /*#__PURE__*/React.createElement("div", {
109
+ className: classes.hierarchySpace
110
+ }, hierarchySpace), /*#__PURE__*/React.createElement(Typography, {
111
+ variant: "body1",
112
+ tabIndex: 0
113
+ }, R.path(['value', 'label'], cell), /*#__PURE__*/React.createElement(Flags, {
114
+ flags: flags
115
+ }))));
116
+ }, R.prop('data', sectionbody)), /*#__PURE__*/React.createElement(TableCell, {
117
+ className: cx(classes.fillerCell, (_cx2 = {}, _cx2[classes.highlight] = R.prop(rowId)(activeCellIds), _cx2)),
118
+ style: {
119
+ position: 'sticky',
120
+ left: R.last(subHeadCellsWidth)
121
+ }
122
+ }, /*#__PURE__*/React.createElement("div", {
123
+ className: classes.flagContainer
124
+ }, /*#__PURE__*/React.createElement(Flags, {
125
+ flags: R.prop('flags', sectionbody)
126
+ }))), mapIndexed(function (item, columnIndex) {
127
+ var columnIds = R.pipe(R.times(R.identity), R.map(function (rowIndex) {
128
+ var columnId = R.divide(columnIndex, R.divide(maxColumns, R.nth(rowIndex, nbColumnsByRows)));
129
+ return Math.floor(columnId || 0) + "_" + rowIndex;
130
+ }), R.join(' '))(headerNumberRows);
131
+ var intersectionCellId = rowId + "/" + columnIndex;
132
+ var isActive = R.pipe(R.propOr({}, 'intersectionCellId'), R.equals(intersectionCellId))(activeCellIds);
133
+ return /*#__PURE__*/React.createElement(Cell, _extends({
134
+ key: intersectionCellId
135
+ }, R.pathOr({
136
+ value: '..'
137
+ }, [item.key, currentSection, sectionbody.key, 0], cells), {
138
+ headers: rowIds + " " + columnIds + " " + currentSection,
139
+ cellHandler: cellHandler,
140
+ isActive: isActive,
141
+ isHighlight: R.any(R.identity)([R.prop(rowId)(activeCellIds), R.prop(columnIndex)(activeCellIds)]),
142
+ activeCellHandler: R.is(Function)(activeCellHandler) ? function () {
143
+ var _activeCellHandler;
106
144
 
107
- return React.createElement(
108
- TableCell,
109
- {
110
- key: id,
111
- className: cx(classes.rowTitle, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx)),
112
- id: id,
113
- headers: 'subHeader_' + index + ' ' + currentSection,
114
- component: 'th'
115
- },
116
- React.createElement(
117
- 'div',
118
- { className: classes.cellContent },
119
- !R.isEmpty(hierarchySpace) && React.createElement(
120
- 'div',
121
- { className: classes.hierarchySpace },
122
- hierarchySpace
123
- ),
124
- React.createElement(
125
- Typography,
126
- { variant: 'body1', tabIndex: 0 },
127
- R.path(['value', 'label'], cell),
128
- React.createElement(Flags, { flags: flags })
129
- )
130
- )
131
- );
132
- }, R.prop('data', sectionbody)),
133
- React.createElement(
134
- TableCell,
135
- {
136
- className: cx(classes.fillerCell, (_cx2 = {}, _cx2[classes.highlight] = R.prop(rowId)(activeCellIds), _cx2))
137
- },
138
- React.createElement(
139
- 'div',
140
- { className: classes.flagContainer },
141
- React.createElement(Flags, { flags: R.prop('flags', sectionbody) })
142
- )
143
- ),
144
- mapIndexed(function (item, columnIndex) {
145
- var columnIds = R.pipe(R.times(R.identity), R.map(function (rowIndex) {
146
- var columnId = R.divide(columnIndex, R.divide(maxColumns, R.nth(rowIndex, nbColumnsByRows)));
147
- return Math.floor(columnId || 0) + '_' + rowIndex;
148
- }), R.join(' '))(headerNumberRows);
149
-
150
- var intersectionCellId = rowId + '/' + columnIndex;
151
- var isActive = R.pipe(R.propOr({}, 'intersectionCellId'), R.equals(intersectionCellId))(activeCellIds);
152
- return React.createElement(Cell, _extends({
153
- key: intersectionCellId
154
- }, R.pathOr({ value: '..' }, [item.key, currentSection, sectionbody.key, 0], cells), {
155
- headers: rowIds + ' ' + columnIds + ' ' + currentSection,
156
- cellHandler: cellHandler,
157
- isActive: isActive,
158
- isHighlight: R.any(R.identity)([R.prop(rowId)(activeCellIds), R.prop(columnIndex)(activeCellIds)]),
159
- activeCellHandler: R.is(Function)(activeCellHandler) ? function () {
160
- var _activeCellHandler;
161
-
162
- return activeCellHandler((_activeCellHandler = {}, _activeCellHandler[rowId] = R.not(isActive), _activeCellHandler[columnIndex] = R.not(isActive), _activeCellHandler.intersectionCellId = isActive ? null : intersectionCellId, _activeCellHandler));
163
- } : null
164
- }));
165
- }, headerData)
166
- );
167
- }, R.nth(1, section))
168
- );
145
+ return activeCellHandler((_activeCellHandler = {}, _activeCellHandler[rowId] = R.not(isActive), _activeCellHandler[columnIndex] = R.not(isActive), _activeCellHandler.intersectionCellId = isActive ? null : intersectionCellId, _activeCellHandler));
146
+ } : null
147
+ }));
148
+ }, headerData));
149
+ }, R.nth(1, section)));
169
150
  };
170
151
 
171
- Section.propTypes = process.env.NODE_ENV !== "production" ? {
172
- cells: PropTypes.object,
173
- headerData: PropTypes.array,
174
- section: PropTypes.array,
175
- xLayoutDataLength: PropTypes.number,
176
- cellHandler: PropTypes.func,
177
- activeCellHandler: PropTypes.func,
178
- activeCellIds: PropTypes.object,
179
- headerHeight: PropTypes.number,
180
- sectionIndex: PropTypes.number,
181
- headerNumberRows: PropTypes.number,
182
- nbColumnsByRows: PropTypes.array,
183
- maxColumns: PropTypes.number
184
- } : {};
185
-
186
152
  export default Section;