@topconsultnpm/sdkui-react-beta 6.11.22 → 6.11.23
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.
|
@@ -11,12 +11,10 @@ const TMDateBox = (props) => {
|
|
|
11
11
|
if (!htmlElement)
|
|
12
12
|
return;
|
|
13
13
|
let color = props.isModifiedWhen ? TMColors.tertiary : TMColors.border_normal;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
inputContainer.style.color = '#525252';
|
|
19
|
-
}
|
|
14
|
+
let inputContainer = htmlElement.getElementsByClassName("dx-texteditor-input-container")[0];
|
|
15
|
+
if (inputContainer) {
|
|
16
|
+
inputContainer.style.background = props.readOnly ? 'linear-gradient(white 20%, #d6d6d6 80%)' : '';
|
|
17
|
+
inputContainer.style.color = props.readOnly ? '#525252' : 'transparent';
|
|
20
18
|
}
|
|
21
19
|
let label = htmlElement.getElementsByClassName("dx-label")[0];
|
|
22
20
|
if (label) {
|
|
@@ -34,7 +32,7 @@ const TMDateBox = (props) => {
|
|
|
34
32
|
labelAfter.style.borderTopColor = color;
|
|
35
33
|
labelAfter.style.borderInlineEndColor = color;
|
|
36
34
|
}
|
|
37
|
-
}, [props.isModifiedWhen]);
|
|
35
|
+
}, [props.isModifiedWhen, props.readOnly]);
|
|
38
36
|
const dateBoxRef = useRef(null);
|
|
39
37
|
// soluzione tratta da https://supportcenter.devexpress.com/ticket/details/t1025617/setting-default-time-in-datebox
|
|
40
38
|
const dropDownOptions = {
|