intelicoreact 0.2.76 → 0.2.79
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.
|
@@ -41,6 +41,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
41
41
|
|
|
42
42
|
function InputMask2() {
|
|
43
43
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
44
|
+
_ref$autocomplete = _ref.autocomplete,
|
|
45
|
+
autocomplete = _ref$autocomplete === void 0 ? 'off' : _ref$autocomplete,
|
|
44
46
|
maskPattern = _ref.maskPattern,
|
|
45
47
|
maskPatternPlaceholder = _ref.maskPatternPlaceholder,
|
|
46
48
|
maskPlaceholder = _ref.maskPlaceholder,
|
|
@@ -569,7 +571,7 @@ function InputMask2() {
|
|
|
569
571
|
}, [isFocusedDefault, isMaskRendered]); // OnChange Observer
|
|
570
572
|
|
|
571
573
|
(0, _react.useEffect)(function () {
|
|
572
|
-
if (!isMaskRendered
|
|
574
|
+
if (!isMaskRendered) return false;
|
|
573
575
|
setError(false);
|
|
574
576
|
var values = [getInputValue(), getInnerValueAsString({
|
|
575
577
|
replaceSpace: true
|
|
@@ -655,7 +657,8 @@ function InputMask2() {
|
|
|
655
657
|
onKeyUp: onKeyUp,
|
|
656
658
|
onFocus: onFocus,
|
|
657
659
|
onBlur: onBlur,
|
|
658
|
-
onClick: onClick
|
|
660
|
+
onClick: onClick,
|
|
661
|
+
autoComplete: autocomplete
|
|
659
662
|
});
|
|
660
663
|
};
|
|
661
664
|
|
|
@@ -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) {
|
|
@@ -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;
|