intelicoreact 0.2.75 → 0.2.78
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.
|
@@ -45,6 +45,9 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
45
45
|
values = _useState2[0],
|
|
46
46
|
setValues = _useState2[1];
|
|
47
47
|
|
|
48
|
+
(0, _react.useLayoutEffect)(function () {
|
|
49
|
+
return setValues(options);
|
|
50
|
+
}, [options]);
|
|
48
51
|
var handle = {
|
|
49
52
|
change: function change(value) {
|
|
50
53
|
var newValues = values.map(function (item) {
|
|
@@ -13,7 +13,7 @@ var _Chart = require("./Chart.constants");
|
|
|
13
13
|
|
|
14
14
|
var _optionsSetters = _interopRequireDefault(require("./optionsSetters"));
|
|
15
15
|
|
|
16
|
-
var _finturfChartLayouts$, _finturfChartLayouts$2, _finturfChartLayouts$3, _finturfChartLayouts$4, _finturfChartLayouts$5, _finturfChartLayouts$6, _finturfChartLayouts$7, _finturfChartLayouts$8, _finturfChartBar$opti, _finturfChartBar$opti2, _finturfChartBar$opti3, _finturfChartBar$notL, _finturfChartLine$opt, _finturfChartLine$opt2, _finturfChartLine$opt3, _finturfChartLine$opt4, _finturfChartLine$opt5, _finturfChartLine$opt6, _finturfChartLine$not;
|
|
16
|
+
var _finturfChartLayouts$, _finturfChartLayouts$2, _finturfChartLayouts$3, _finturfChartLayouts$4, _finturfChartLayouts$5, _finturfChartLayouts$6, _finturfChartLayouts$7, _finturfChartLayouts$8, _finturfChartLayouts$9, _finturfChartLayouts$10, _finturfChartLayouts$11, _finturfChartLayouts$12, _finturfChartLayouts$13, _finturfChartBar$opti, _finturfChartBar$opti2, _finturfChartBar$opti3, _finturfChartBar$notL, _finturfChartLine$opt, _finturfChartLine$opt2, _finturfChartLine$opt3, _finturfChartLine$opt4, _finturfChartLine$opt5, _finturfChartLine$opt6, _finturfChartLine$not;
|
|
17
17
|
|
|
18
18
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
19
19
|
|
|
@@ -202,20 +202,25 @@ var finturfChartLayouts = function () {
|
|
|
202
202
|
|
|
203
203
|
var finturfChartBar = _objectSpread(_objectSpread({}, finturfChartLayouts.barLayout), {}, {
|
|
204
204
|
options: _objectSpread(_objectSpread({}, (_finturfChartLayouts$ = finturfChartLayouts.barLayout) === null || _finturfChartLayouts$ === void 0 ? void 0 : _finturfChartLayouts$.options), {}, {
|
|
205
|
-
maintainAspectRatio: false
|
|
205
|
+
maintainAspectRatio: false,
|
|
206
|
+
elements: _objectSpread(_objectSpread({}, (_finturfChartLayouts$2 = finturfChartLayouts.barLayout) === null || _finturfChartLayouts$2 === void 0 ? void 0 : (_finturfChartLayouts$3 = _finturfChartLayouts$2.options) === null || _finturfChartLayouts$3 === void 0 ? void 0 : _finturfChartLayouts$3.elements), {}, {
|
|
207
|
+
bar: _objectSpread(_objectSpread({}, (_finturfChartLayouts$4 = finturfChartLayouts.barLayout) === null || _finturfChartLayouts$4 === void 0 ? void 0 : (_finturfChartLayouts$5 = _finturfChartLayouts$4.options) === null || _finturfChartLayouts$5 === void 0 ? void 0 : (_finturfChartLayouts$6 = _finturfChartLayouts$5.elements) === null || _finturfChartLayouts$6 === void 0 ? void 0 : _finturfChartLayouts$6.bar), {}, {
|
|
208
|
+
borderRadius: 4
|
|
209
|
+
})
|
|
210
|
+
})
|
|
206
211
|
}),
|
|
207
|
-
notLibraryOptions: _objectSpread(_objectSpread({}, (_finturfChartLayouts$
|
|
208
|
-
changeData: _objectSpread(_objectSpread({}, (_finturfChartLayouts$
|
|
209
|
-
setMaxBarThickness:
|
|
212
|
+
notLibraryOptions: _objectSpread(_objectSpread({}, (_finturfChartLayouts$7 = finturfChartLayouts.barLayout) === null || _finturfChartLayouts$7 === void 0 ? void 0 : _finturfChartLayouts$7.notLibraryOptions), {}, {
|
|
213
|
+
changeData: _objectSpread(_objectSpread({}, (_finturfChartLayouts$8 = finturfChartLayouts.barLayout) === null || _finturfChartLayouts$8 === void 0 ? void 0 : (_finturfChartLayouts$9 = _finturfChartLayouts$8.notLibraryOptions) === null || _finturfChartLayouts$9 === void 0 ? void 0 : _finturfChartLayouts$9.changeData), {}, {
|
|
214
|
+
setMaxBarThickness: 16
|
|
210
215
|
})
|
|
211
216
|
})
|
|
212
217
|
});
|
|
213
218
|
|
|
214
219
|
var finturfChartLine = _objectSpread(_objectSpread({}, finturfChartLayouts.lineLayout), {}, {
|
|
215
|
-
options: _objectSpread(_objectSpread({}, (_finturfChartLayouts$
|
|
220
|
+
options: _objectSpread(_objectSpread({}, (_finturfChartLayouts$10 = finturfChartLayouts.lineLayout) === null || _finturfChartLayouts$10 === void 0 ? void 0 : _finturfChartLayouts$10.options), {}, {
|
|
216
221
|
maintainAspectRatio: false,
|
|
217
|
-
elements: _objectSpread(_objectSpread({}, (_finturfChartLayouts$
|
|
218
|
-
point: _objectSpread(_objectSpread({}, (_finturfChartLayouts$
|
|
222
|
+
elements: _objectSpread(_objectSpread({}, (_finturfChartLayouts$11 = finturfChartLayouts.lineLayout.options) === null || _finturfChartLayouts$11 === void 0 ? void 0 : _finturfChartLayouts$11.elements), {}, {
|
|
223
|
+
point: _objectSpread(_objectSpread({}, (_finturfChartLayouts$12 = finturfChartLayouts.lineLayout.options) === null || _finturfChartLayouts$12 === void 0 ? void 0 : (_finturfChartLayouts$13 = _finturfChartLayouts$12.elements) === null || _finturfChartLayouts$13 === void 0 ? void 0 : _finturfChartLayouts$13.point), {}, {
|
|
219
224
|
radius: 2,
|
|
220
225
|
borderColor: '#32A784',
|
|
221
226
|
borderWidth: 4
|
|
@@ -26,6 +26,7 @@ var Status = function Status(_ref) {
|
|
|
26
26
|
className = _ref.className,
|
|
27
27
|
noBackground = _ref.noBackground,
|
|
28
28
|
children = _ref.children;
|
|
29
|
+
if (!status) return false;
|
|
29
30
|
var text = children && typeof children === 'string' ? children : value || label || status;
|
|
30
31
|
var formatedLabel = (text === null || text === void 0 ? void 0 : text[0].toUpperCase()) + (text === null || text === void 0 ? void 0 : text.slice(1));
|
|
31
32
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -154,7 +154,7 @@ var TagList = function TagList(_ref) {
|
|
|
154
154
|
itemRef: /*#__PURE__*/(0, _react.createRef)()
|
|
155
155
|
});
|
|
156
156
|
}));
|
|
157
|
-
}, [items
|
|
157
|
+
}, [items]); // Count Row Tags
|
|
158
158
|
|
|
159
159
|
(0, _react.useLayoutEffect)(function () {
|
|
160
160
|
if (!withToggle) return false;
|