intelicoreact 0.0.72 → 0.0.76
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.
|
@@ -96,12 +96,14 @@ var InputDateRange = function InputDateRange(props) {
|
|
|
96
96
|
return formatedValue;
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
(0, _react.useEffect)(function () {
|
|
100
|
-
handleChange(_objectSpread({}, value));
|
|
101
|
-
}, []);
|
|
102
|
-
|
|
103
99
|
var Range = function Range() {
|
|
104
100
|
var SYMBOLS_QUANTITY_IF_TIME_ADDED = 13;
|
|
101
|
+
|
|
102
|
+
if (!actualValues.start && value.start) {
|
|
103
|
+
actualValues.start = value.start;
|
|
104
|
+
actualValues.end = value.end || '';
|
|
105
|
+
}
|
|
106
|
+
|
|
105
107
|
var start = actualValues.start,
|
|
106
108
|
end = actualValues.end;
|
|
107
109
|
if (!start || !end) return null;
|
|
@@ -37,7 +37,8 @@ var Arrow = function Arrow(_ref) {
|
|
|
37
37
|
setColor = _useState2[1];
|
|
38
38
|
|
|
39
39
|
(0, _react.useEffect)(function () {
|
|
40
|
-
if (ref.current) {
|
|
40
|
+
if (ref.current) {
|
|
41
|
+
setColor((0, _utils.getStyles)(ref.current, 'color'));
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
;
|
package/package.json
CHANGED
|
@@ -49,12 +49,12 @@ const InputDateRange = props => {
|
|
|
49
49
|
return formatedValue;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
useEffect(() => {
|
|
53
|
-
handleChange({ ...value });
|
|
54
|
-
}, []);
|
|
55
|
-
|
|
56
52
|
const Range = () => {
|
|
57
53
|
const SYMBOLS_QUANTITY_IF_TIME_ADDED = 13;
|
|
54
|
+
if (!actualValues.start && value.start) {
|
|
55
|
+
actualValues.start = value.start;
|
|
56
|
+
actualValues.end = value.end || '';
|
|
57
|
+
}
|
|
58
58
|
const { start, end } = actualValues;
|
|
59
59
|
if (!start || !end) return null;
|
|
60
60
|
|
|
@@ -157,7 +157,7 @@ const InputDateRange = props => {
|
|
|
157
157
|
<div className="date-range-input__interval-key">
|
|
158
158
|
<span>
|
|
159
159
|
{(txt?.labels && txt.labels[actualValues?.intervalKey]) ??
|
|
160
|
-
|
|
160
|
+
(INTERVALS[actualValues?.intervalKey]?.label || CUSTOM_INTERVAL_KEY_TEXT)}
|
|
161
161
|
</span>
|
|
162
162
|
{current !== ALL_TIME_KEY && <span>:</span>}
|
|
163
163
|
</div>
|