@asaleh37/ui-base 25.9.6-1 → 25.9.6-2
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +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/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",
|