@topconsultnpm/sdkui-react-beta 6.7.105 → 6.7.106

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.
@@ -21,6 +21,7 @@ const StyledShowPasswordIcon = styled.div `
21
21
  `;
22
22
  const StyledTextBoxEditorButton = styled.div `
23
23
  color: ${TMColors.button_icon};
24
+ background: ${props => props.$readOnly ? 'linear-gradient(white, #b0b0b0)' : 'transparent'} ;
24
25
  display: flex;
25
26
  align-items: center;
26
27
  position: relative;
@@ -143,11 +144,11 @@ const TMTextBox = ({ autoFocus, maxLength, labelColor, precision, scale, showCle
143
144
  }
144
145
  }, "$isMobile": deviceType === DeviceType.MOBILE, "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, "$fontSize": fontSize, "$maxValue": maxValue, "$width": width, "$type": currentType, "$borderRadius": borderRadius }), initialType === 'password' && currentValue && _jsx(StyledShowPasswordIcon, { onClick: toggleShowPassword, "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, children: showPasswordIcon() }), initialType !== 'password' &&
145
146
  _jsxs("div", { style: { display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', alignItems: 'center', position: 'absolute', right: '6px', top: label.length > 0 ? '20px' : '7px', pointerEvents: disabled ? 'none' : 'auto', opacity: disabled ? 0.4 : 1 }, children: [showClearButton && currentValue &&
146
- _jsx(StyledTextBoxEditorButton, { onClick: () => {
147
+ _jsx(StyledTextBoxEditorButton, { "$readOnly": readOnly, onClick: () => {
147
148
  onValueChanged?.({ target: { value: undefined } });
148
149
  onBlur?.(undefined);
149
150
  }, children: _jsx(IconClearButton, {}) }), buttons.map((buttonItem, index) => {
150
- return (_jsx(StyledTextBoxEditorButton, { onClick: buttonItem.onClick, children: _jsx(TMTooltip, { content: buttonItem.text, children: buttonItem.icon }) }, buttonItem.text));
151
+ return (_jsx(StyledTextBoxEditorButton, { "$readOnly": readOnly, onClick: buttonItem.onClick, children: _jsx(TMTooltip, { content: buttonItem.text, children: buttonItem.icon }) }, buttonItem.text));
151
152
  })] }), formulaItems.length > 0 && (_jsx(ContextMenu, { dataSource: formulaMenuItems, target: `#text-${id}`, onItemClick: (e) => { insertText(e.itemData?.text ?? ''); } })), _jsx(TMVilViewer, { vil: validationItems })] }));
152
153
  };
153
154
  const renderedLeftLabelTextBox = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.7.105",
3
+ "version": "6.7.106",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",