@asaleh37/ui-base 25.8.23-1 → 25.8.23-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 +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/administration/dev/MailRecipientGrid.tsx +2 -1
- package/src/components/administration/dev/MailSenderConfigGrid.tsx +1 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx +1 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx +14 -4
package/package.json
CHANGED
|
@@ -113,6 +113,7 @@ const MailRecipientGrid: React.FC<MailRecipientGridProps> = (props) => {
|
|
|
113
113
|
options: [{ value: "To" }, { value: "CC" }],
|
|
114
114
|
optionDisplayField: "value",
|
|
115
115
|
optionValueField: "value",
|
|
116
|
+
comboboxValueDataType: "string",
|
|
116
117
|
},
|
|
117
118
|
},
|
|
118
119
|
{
|
|
@@ -142,7 +143,7 @@ const MailRecipientGrid: React.FC<MailRecipientGridProps> = (props) => {
|
|
|
142
143
|
apiActions={apiActions}
|
|
143
144
|
data={data}
|
|
144
145
|
hideInfoBar={true}
|
|
145
|
-
gridLoadParametersValues={{mailTemplateId:props.selectedRecord.id}}
|
|
146
|
+
gridLoadParametersValues={{ mailTemplateId: props.selectedRecord.id }}
|
|
146
147
|
setData={setData}
|
|
147
148
|
editMode={{ editMode: "row" }}
|
|
148
149
|
formElements={formElements}
|
|
@@ -210,6 +210,7 @@ const MailSenderConfigGrid: React.FC = () => {
|
|
|
210
210
|
fieldName: "mailEngine",
|
|
211
211
|
required: true,
|
|
212
212
|
fieldType: "combobox",
|
|
213
|
+
comboboxValueDataType: "string",
|
|
213
214
|
options: [{ value: "Gmail" }, { value: "Azure" }],
|
|
214
215
|
optionDisplayField: "value",
|
|
215
216
|
optionValueField: "value",
|
|
@@ -229,7 +229,7 @@ const FormElementField: React.FC<FormElementFieldProps> = (
|
|
|
229
229
|
onChangeCallBack={(v: any, selectedRecord: any) => {
|
|
230
230
|
let newValue = null;
|
|
231
231
|
if (v) {
|
|
232
|
-
newValue = v
|
|
232
|
+
newValue = v;
|
|
233
233
|
}
|
|
234
234
|
formManager.setValue(fieldName, newValue);
|
|
235
235
|
if (props?.formProps?.onValueChangeCallBack) {
|
|
@@ -100,10 +100,20 @@ const TemplateForm: React.FC<TemplateFormProps> = (
|
|
|
100
100
|
field?.fieldType === "combobox" &&
|
|
101
101
|
retrievedRecord[field.fieldName]
|
|
102
102
|
) {
|
|
103
|
-
|
|
104
|
-
field
|
|
105
|
-
|
|
106
|
-
)
|
|
103
|
+
if (
|
|
104
|
+
field?.comboboxValueDataType &&
|
|
105
|
+
field?.comboboxValueDataType === "string"
|
|
106
|
+
) {
|
|
107
|
+
formManager.setValue(
|
|
108
|
+
field.fieldName,
|
|
109
|
+
retrievedRecord[field.fieldName] + ""
|
|
110
|
+
);
|
|
111
|
+
} else {
|
|
112
|
+
formManager.setValue(
|
|
113
|
+
field.fieldName,
|
|
114
|
+
retrievedRecord[field.fieldName]
|
|
115
|
+
);
|
|
116
|
+
}
|
|
107
117
|
}
|
|
108
118
|
}
|
|
109
119
|
}
|