@asaleh37/ui-base 25.9.6-1 → 25.9.6-3
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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/administration/dev/AttachmentConfigGrid.tsx +1 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx +14 -8
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid.tsx +2 -1
- package/src/components/templates/attachment/AttachmentPanel.tsx +2 -2
- package/src/components/templates/workflow/WorkflowDocumentPanel.tsx +4 -4
package/package.json
CHANGED
|
@@ -33,14 +33,7 @@ const TemplateForm: React.FC<TemplateFormProps> = (
|
|
|
33
33
|
minHeight: 500,
|
|
34
34
|
minWidth: 400,
|
|
35
35
|
});
|
|
36
|
-
|
|
37
|
-
useWindow({
|
|
38
|
-
windowTitle: "Approvals",
|
|
39
|
-
windowIcon: "stamp",
|
|
40
|
-
height: "fit-content",
|
|
41
|
-
minHeight: 500,
|
|
42
|
-
width: 1100,
|
|
43
|
-
});
|
|
36
|
+
|
|
44
37
|
const [attachmentPanelEnabledForRecord, setAttachmentPanelEnabledForRecord] =
|
|
45
38
|
useState<boolean>(true);
|
|
46
39
|
const { t } = useTranslation();
|
|
@@ -142,6 +135,19 @@ const TemplateForm: React.FC<TemplateFormProps> = (
|
|
|
142
135
|
}
|
|
143
136
|
};
|
|
144
137
|
|
|
138
|
+
const { Window: WorkflowWindow, setWindowState: setWorkflowWindowState } =
|
|
139
|
+
useWindow({
|
|
140
|
+
windowTitle: "Approvals",
|
|
141
|
+
windowIcon: "stamp",
|
|
142
|
+
height: "fit-content",
|
|
143
|
+
minHeight: 500,
|
|
144
|
+
width: "fit-content",
|
|
145
|
+
// width: 1100,
|
|
146
|
+
onCloseCallBack: async () => {
|
|
147
|
+
await loadRecord();
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
|
|
145
151
|
const formActions = {
|
|
146
152
|
setFieldValue: (fieldName: string, fieldValue: any) => {
|
|
147
153
|
formManager.setValue(fieldName, fieldValue);
|
|
@@ -104,7 +104,8 @@ const TemplateGrid: React.FC<TemplateGridProps> = (props) => {
|
|
|
104
104
|
windowIcon: "stamp",
|
|
105
105
|
height: "fit-content",
|
|
106
106
|
minHeight: 500,
|
|
107
|
-
width:
|
|
107
|
+
width: "fit-content",
|
|
108
|
+
// width:1100,
|
|
108
109
|
onCloseCallBack: () => {
|
|
109
110
|
props?.apiActions?.reloadData(props.gridLoadParametersValues);
|
|
110
111
|
},
|
|
@@ -93,8 +93,7 @@ const AttachmentPanel: React.FC<AttachmentPanelProps> = (props) => {
|
|
|
93
93
|
if (!files) {
|
|
94
94
|
toast.error("You must add files to upload");
|
|
95
95
|
return;
|
|
96
|
-
}
|
|
97
|
-
debugger;
|
|
96
|
+
}
|
|
98
97
|
for (const file of files) {
|
|
99
98
|
if (file.type.startsWith("image/")) {
|
|
100
99
|
const MAX_SIZE_KB = 600;
|
|
@@ -176,6 +175,7 @@ const AttachmentPanel: React.FC<AttachmentPanelProps> = (props) => {
|
|
|
176
175
|
display: "flex",
|
|
177
176
|
flexDirection: "column",
|
|
178
177
|
width: "100%",
|
|
178
|
+
minHeight:400,
|
|
179
179
|
alignItems: "center",
|
|
180
180
|
justifyContent: "flex-start",
|
|
181
181
|
overflow: "hidden",
|
|
@@ -123,7 +123,7 @@ const WorkflowDocumentPanel: React.FC<WorkflowDocumentPanelProps> = (props) => {
|
|
|
123
123
|
refDocumentId: props.refDocumentId,
|
|
124
124
|
},
|
|
125
125
|
successCallBkFn: (response: any) => {
|
|
126
|
-
setWorkflowDocumentInfo(response.data);
|
|
126
|
+
setWorkflowDocumentInfo(structuredClone(response.data));
|
|
127
127
|
},
|
|
128
128
|
failureCallBkFn: () => {
|
|
129
129
|
setWorkflowDocumentInfo({
|
|
@@ -347,7 +347,7 @@ const WorkflowDocumentPanel: React.FC<WorkflowDocumentPanelProps> = (props) => {
|
|
|
347
347
|
<Box
|
|
348
348
|
sx={{
|
|
349
349
|
flex: 1,
|
|
350
|
-
width: "100%",
|
|
350
|
+
width: "100%",
|
|
351
351
|
overflow: "hidden",
|
|
352
352
|
display: "flex",
|
|
353
353
|
// flexDirection: "column",
|
|
@@ -562,8 +562,8 @@ const WorkflowDocumentPanel: React.FC<WorkflowDocumentPanelProps> = (props) => {
|
|
|
562
562
|
<Paper
|
|
563
563
|
sx={{
|
|
564
564
|
display: "flex",
|
|
565
|
-
flexDirection: "column",
|
|
566
|
-
width:600,
|
|
565
|
+
flexDirection: "column",
|
|
566
|
+
width: 600,
|
|
567
567
|
padding: 2,
|
|
568
568
|
margin: 1,
|
|
569
569
|
alignItems: "center",
|