@topconsultnpm/sdkui-react-beta 6.10.44 → 6.10.46
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.
|
@@ -28,4 +28,4 @@ export declare const TMSaveFormButtonSave: ({ btnStyle, errorsCount, isModified,
|
|
|
28
28
|
interface ITMSaveFormButtonUndoProps extends ITMSaveFormButtonBase {
|
|
29
29
|
onUndo?: () => void;
|
|
30
30
|
}
|
|
31
|
-
export declare const TMSaveFormButtonUndo: ({ btnStyle, isModified, iconColor, width, advancedColor, advancedType, onUndo }: ITMSaveFormButtonUndoProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const TMSaveFormButtonUndo: ({ btnStyle, isModified, iconColor, width, advancedColor, advancedType, onUndo, color, showTooltip }: ITMSaveFormButtonUndoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -162,6 +162,6 @@ export const TMSaveFormButtonSave = ({ btnStyle, errorsCount, isModified, iconCo
|
|
|
162
162
|
} };
|
|
163
163
|
return (_jsx(TMButton, { showTooltip: false, btnStyle: btnStyle, width: width, advancedColor: advancedColor, advancedType: advancedType, caption: SDKUI_Localizator.Save, icon: _jsx(IconSave, { color: iconColor }), keyGesture: "alt+s", backgroundColor: errorsCount > 0 ? TMColors.error : isModified ? TMColors.success : TMColors.disabled, onClick: doSaveAsync, color: "success", disabled: !(isModified && errorsCount <= 0) }));
|
|
164
164
|
};
|
|
165
|
-
export const TMSaveFormButtonUndo = ({ btnStyle, isModified, iconColor, width, advancedColor, advancedType, onUndo }) => {
|
|
166
|
-
return (_jsx(TMButton, { showTooltip:
|
|
165
|
+
export const TMSaveFormButtonUndo = ({ btnStyle, isModified, iconColor, width, advancedColor, advancedType, onUndo, color = 'tertiary', showTooltip = false }) => {
|
|
166
|
+
return (_jsx(TMButton, { showTooltip: showTooltip, btnStyle: btnStyle, width: width, advancedColor: advancedColor, advancedType: advancedType, caption: SDKUI_Localizator.Undo, icon: _jsx(IconUndo, { color: iconColor }), keyGesture: "alt+z", color: color, disabled: !isModified, onClick: onUndo }));
|
|
167
167
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react-beta",
|
|
3
|
-
"version": "6.10.
|
|
3
|
+
"version": "6.10.46",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@topconsultnpm/sdk-ts-beta": "^6.10.
|
|
45
|
+
"@topconsultnpm/sdk-ts-beta": "^6.10.6",
|
|
46
46
|
"buffer": "^6.0.3",
|
|
47
47
|
"devextreme": "24.2.3",
|
|
48
48
|
"devextreme-react": "24.2.3",
|