@topconsultnpm/sdkui-react-beta 6.11.86 → 6.11.88

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,7 +11,6 @@ import { TMColors } from '../../utils/theme';
11
11
  import TMValidationItemsList from '../grids/TMValidationItemsList';
12
12
  import TMModal from '../base/TMModal';
13
13
  import { DeviceType, useDeviceType } from '../base/TMDeviceProvider';
14
- import toppy from '../../assets/Toppy-generico.png';
15
14
  const TMSaveForm = ({ id, formMode = FormModes.Update, showToolbar = true, skipIsModifiedCheck = false, title, children, isModal, exception, customToolbarElements, hasNavigation, showBackButton, showWarningsCount = true, showErrorCount = true, onClose, onSaveAsync, onNext, onPrev, canNext, canPrev, isModified, onShowList, validationItems = [], onUndo, onCancel, width, height }) => {
16
15
  const [showList, setShowList] = useState(true);
17
16
  const [showErrorGrid, setShowErrorGrid] = useState(false);
@@ -122,29 +121,7 @@ const TMSaveForm = ({ id, formMode = FormModes.Update, showToolbar = true, skipI
122
121
  };
123
122
  return (_jsx(_Fragment, { children: isModal && onClose
124
123
  ?
125
- _jsxs(TMModal, { title: `${title} - ${LocalizeFormModes(formMode)}`, onClose: closeModal, width: width ?? '100%', height: height ?? '100%', hidePopup: false, children: [_jsx("div", { style: { width: "100%", height: "100%", display: showConfirmForClose ? 'none' : 'block' }, children: renderSaveForm() }), _jsx("div", { style: { width: "100%", height: "100%", display: showConfirmForClose ? 'block' : 'none' }, children: _jsxs(TMLayoutContainer, { children: [_jsx("div", { style: {
126
- display: "flex",
127
- justifyContent: "center",
128
- alignItems: "center",
129
- width: "100%",
130
- height: "calc(100% - 40px)",
131
- backgroundColor: "#F4F6F9",
132
- overflow: "hidden",
133
- }, children: _jsxs("div", { style: {
134
- display: "flex",
135
- flexDirection: "row",
136
- alignItems: "center",
137
- gap: "15px",
138
- backgroundColor: "#ffffff",
139
- padding: "20px",
140
- borderRadius: "12px",
141
- boxShadow: "0px 8px 20px rgba(0, 0, 0, 0.1)",
142
- border: "1px solid #E0E6ED",
143
- minWidth: "280px",
144
- maxWidth: "90%",
145
- textAlign: "center",
146
- flexWrap: "wrap",
147
- }, children: [_jsx("img", { style: { borderRadius: "8px", width: "60px", height: "75px", objectFit: "cover" }, src: toppy, alt: "" }), _jsx("div", { style: { fontSize: "18px", fontWeight: "500", color: "#333", flex: "1" }, children: SDKUI_Localizator.SaveQuestion })] }) }), _jsx(TMLayoutItem, { height: '40px', children: _jsxs("div", { style: { position: "relative", display: "flex", flexDirection: "row", justifyContent: "flex-end", alignItems: "center", gap: "5px", padding: "5px", userSelect: "none", borderTop: "1px solid #f3f3f3", backgroundColor: "#ffffff", zIndex: 100, }, children: [_jsx(TMButton, { caption: SDKUI_Localizator.Yes, fontSize: '1.1rem', color: 'primaryOutline', btnStyle: 'text', onClick: async () => {
124
+ _jsxs(TMModal, { title: `${title} - ${LocalizeFormModes(formMode)}`, onClose: closeModal, width: width ?? '100%', height: height ?? '100%', hidePopup: false, children: [_jsx("div", { style: { width: "100%", height: "100%", display: showConfirmForClose ? 'none' : 'block' }, children: renderSaveForm() }), _jsx("div", { style: { width: "100%", height: "100%", display: showConfirmForClose ? 'block' : 'none', overflowY: 'hidden' }, children: _jsxs(TMLayoutContainer, { children: [_jsx(TMLayoutItem, { height: 'calc(100% - 40px)', children: _jsx(TMCard, { showBorder: false, scrollY: true, children: _jsxs(TMLayoutContainer, { direction: 'horizontal', alignItems: 'center', justifyContent: 'center', gap: 10, children: [_jsx(TMLayoutItem, { width: 'fit-content', children: _jsx("img", { style: { transform: 'translateY(8px)' }, src: "toppy", width: 60, height: 75, alt: "" }) }), _jsx(TMLayoutItem, { height: 'fit-content', children: _jsxs("div", { children: [" ", SDKUI_Localizator.SaveQuestion, " "] }) })] }) }) }), _jsx(TMLayoutItem, { height: '40px', children: _jsxs("div", { style: { position: "relative", display: "flex", flexDirection: "row", justifyContent: "flex-end", alignItems: "center", gap: "5px", padding: "5px", userSelect: "none", borderTop: "1px solid #f3f3f3", backgroundColor: "#ffffff", zIndex: 100, }, children: [_jsx(TMButton, { caption: SDKUI_Localizator.Yes, fontSize: '1.1rem', color: 'primaryOutline', btnStyle: 'text', onClick: async () => {
148
125
  deviceType === DeviceType.MOBILE ? (await onSaveAsync?.(), setShowList(true), onShowList?.(true)) : await onSaveAsync?.();
149
126
  setShowConfirmForClose(false);
150
127
  onClose?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.11.86",
3
+ "version": "6.11.88",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",