diginet-core-ui 1.4.50-beta.2 → 1.4.50-beta.4
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.
|
@@ -457,7 +457,8 @@ const Dropdown = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference)
|
|
|
457
457
|
parentID: treeViewParentID,
|
|
458
458
|
value: typeof currentValue[unique] === 'string' ? [currentValue[unique]] : currentValue[unique],
|
|
459
459
|
onChange: (e, value) => onChangeValue(e, '', multiple ? value : e.value),
|
|
460
|
-
renderItem: renderItem
|
|
460
|
+
renderItem: renderItem,
|
|
461
|
+
isInDropdown: true
|
|
461
462
|
}) : EmptyDataText);
|
|
462
463
|
};
|
|
463
464
|
|
|
@@ -138,7 +138,7 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
138
138
|
pos.current = selectionStart + (number.toString().length - 1 === vl.toString().length ? 1 : 0);
|
|
139
139
|
}
|
|
140
140
|
return number;
|
|
141
|
-
}, [decimalSymbol, max, value]);
|
|
141
|
+
}, [decimalSymbol, max, value, decimalDigit]);
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Convert money to format number
|
|
@@ -313,7 +313,7 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
313
313
|
// setValue(parseNumberToMoney(valueProps?.toString().replace(regexValidNumber, ''), true));
|
|
314
314
|
setValue(parseNumberToMoney((_valueProps = valueProps) === null || _valueProps === void 0 ? void 0 : _valueProps.toString().replace(regexValidNumber, ''), true));
|
|
315
315
|
}
|
|
316
|
-
}, [valueProps]);
|
|
316
|
+
}, [valueProps, decimalDigit]);
|
|
317
317
|
useEffect(() => {
|
|
318
318
|
setError(errorProp);
|
|
319
319
|
}, [errorProp]);
|
|
@@ -37,6 +37,7 @@ const TreeView = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference)
|
|
|
37
37
|
expand,
|
|
38
38
|
expandIcon,
|
|
39
39
|
id,
|
|
40
|
+
isInDropdown,
|
|
40
41
|
multiple,
|
|
41
42
|
multipleValueMode,
|
|
42
43
|
onChange,
|
|
@@ -69,7 +70,7 @@ const TreeView = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference)
|
|
|
69
70
|
allowNumber: false,
|
|
70
71
|
allowSymbol: false
|
|
71
72
|
}));
|
|
72
|
-
const _TreeViewRootCSS = TreeViewRootCSS(theme);
|
|
73
|
+
const _TreeViewRootCSS = TreeViewRootCSS(theme, isInDropdown);
|
|
73
74
|
const determinateCheckbox = (input, determinate) => {
|
|
74
75
|
if (multipleValueMode === 'multiple' || disabledRelevantValue) {
|
|
75
76
|
input.classList[determinate ? 'add' : 'remove']('determinate');
|
|
@@ -793,7 +794,7 @@ const TreeView = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference)
|
|
|
793
794
|
const TreeViewRootCSS = ({
|
|
794
795
|
colors,
|
|
795
796
|
spacing
|
|
796
|
-
}) => css`
|
|
797
|
+
}, isInDropdown) => css`
|
|
797
798
|
${displayBlock};
|
|
798
799
|
${positionRelative};
|
|
799
800
|
.DGN-UI-Accordion {
|
|
@@ -833,7 +834,7 @@ const TreeViewRootCSS = ({
|
|
|
833
834
|
.TreeView-Content {
|
|
834
835
|
${displayBlock};
|
|
835
836
|
${positionRelative};
|
|
836
|
-
${parseMaxHeight(240)};
|
|
837
|
+
${isInDropdown && parseMaxHeight(240)};
|
|
837
838
|
${overflowYScroll};
|
|
838
839
|
&::-webkit-scrollbar {
|
|
839
840
|
${borderRadius(4)};
|