@sis-cc/dotstatsuite-visions 8.0.5 → 8.0.7
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.
|
@@ -113,8 +113,7 @@ var Period = function Period(_ref) {
|
|
|
113
113
|
label = _ref3.label,
|
|
114
114
|
value = _ref3.value,
|
|
115
115
|
testId = _ref3.testId,
|
|
116
|
-
getIsDisabled = _ref3.getIsDisabled
|
|
117
|
-
disabled = _ref3.disabled;
|
|
116
|
+
getIsDisabled = _ref3.getIsDisabled;
|
|
118
117
|
return React.createElement(
|
|
119
118
|
Grid,
|
|
120
119
|
{ key: getter, item: true, xs: 12, 'data-testid': testId },
|
|
@@ -183,8 +182,7 @@ var Period = function Period(_ref) {
|
|
|
183
182
|
layout: getLayout(frequency, R.head(ranges)),
|
|
184
183
|
label: R.prop('start')(labels),
|
|
185
184
|
value: getPeriodValue(R.head(destructuringDates)),
|
|
186
|
-
getIsDisabled: _getIsDisabled('start')
|
|
187
|
-
disabled: disabled
|
|
185
|
+
getIsDisabled: _getIsDisabled('start')
|
|
188
186
|
}, {
|
|
189
187
|
getter: 'end',
|
|
190
188
|
testId: 'period-picker-end-period-test-id',
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import React, { Fragment, useState,
|
|
3
|
+
import React, { Fragment, useState, useEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import * as R from 'ramda';
|
|
@@ -67,7 +67,7 @@ var TableLayout = function TableLayout(_ref) {
|
|
|
67
67
|
|
|
68
68
|
var boxLabel = (_boxLabel = {}, _boxLabel[BOX.header] = labels.column || BOX.header, _boxLabel[BOX.sections] = labels.section || BOX.sections, _boxLabel[BOX.rows] = labels.row || BOX.rows, _boxLabel);
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
useEffect(function () {
|
|
71
71
|
return setCurrentLayout(rejectHiddenElement(layout));
|
|
72
72
|
}, [layout]);
|
|
73
73
|
|
|
@@ -141,8 +141,7 @@ var Period = function Period(_ref) {
|
|
|
141
141
|
label = _ref3.label,
|
|
142
142
|
value = _ref3.value,
|
|
143
143
|
testId = _ref3.testId,
|
|
144
|
-
getIsDisabled = _ref3.getIsDisabled
|
|
145
|
-
disabled = _ref3.disabled;
|
|
144
|
+
getIsDisabled = _ref3.getIsDisabled;
|
|
146
145
|
return _react2.default.createElement(
|
|
147
146
|
_Grid2.default,
|
|
148
147
|
{ key: getter, item: true, xs: 12, 'data-testid': testId },
|
|
@@ -211,8 +210,7 @@ var Period = function Period(_ref) {
|
|
|
211
210
|
layout: (0, _lib.getLayout)(frequency, R.head(ranges)),
|
|
212
211
|
label: R.prop('start')(labels),
|
|
213
212
|
value: (0, _lib.getPeriodValue)(R.head(destructuringDates)),
|
|
214
|
-
getIsDisabled: _getIsDisabled('start')
|
|
215
|
-
disabled: disabled
|
|
213
|
+
getIsDisabled: _getIsDisabled('start')
|
|
216
214
|
}, {
|
|
217
215
|
getter: 'end',
|
|
218
216
|
testId: 'period-picker-end-period-test-id',
|
|
@@ -123,7 +123,7 @@ var TableLayout = function TableLayout(_ref) {
|
|
|
123
123
|
|
|
124
124
|
var boxLabel = (_boxLabel = {}, _boxLabel[_constants.BOX.header] = labels.column || _constants.BOX.header, _boxLabel[_constants.BOX.sections] = labels.section || _constants.BOX.sections, _boxLabel[_constants.BOX.rows] = labels.row || _constants.BOX.rows, _boxLabel);
|
|
125
125
|
|
|
126
|
-
(0, _react.
|
|
126
|
+
(0, _react.useEffect)(function () {
|
|
127
127
|
return setCurrentLayout((0, _lib.rejectHiddenElement)(layout));
|
|
128
128
|
}, [layout]);
|
|
129
129
|
|