@asaleh37/ui-base 25.8.23-2 → 25.8.23-4
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 +6 -6
- 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/MailRecipientGrid.tsx +2 -1
- package/src/components/administration/dev/MailSenderConfigGrid.tsx +1 -0
- package/src/components/administration/dev/ReportGrid.tsx +7 -5
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/DataGridColumnsUtil.tsx +2 -2
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",
|
|
@@ -61,7 +61,7 @@ const adjustFormAccordingToReportType = (
|
|
|
61
61
|
value: any,
|
|
62
62
|
formActions: FormActionProps,
|
|
63
63
|
formManager: UseFormReturn
|
|
64
|
-
) => {
|
|
64
|
+
) => {
|
|
65
65
|
if (value && validationObject[value]) {
|
|
66
66
|
const validationObjects: ReportValidationOptions = validationObject[value];
|
|
67
67
|
const fields = Object.keys(validationObjects);
|
|
@@ -208,6 +208,7 @@ const ReportGrid: React.FC = () => {
|
|
|
208
208
|
optionValueField: "value",
|
|
209
209
|
required: true,
|
|
210
210
|
fieldType: "combobox",
|
|
211
|
+
comboboxValueDataType: "string",
|
|
211
212
|
formProps: {
|
|
212
213
|
onValueChangeCallBack(
|
|
213
214
|
value,
|
|
@@ -247,6 +248,7 @@ const ReportGrid: React.FC = () => {
|
|
|
247
248
|
fieldLabel: "ATTACHMENT_CONFIG_STORAGE_TYPE",
|
|
248
249
|
fieldName: "storageType",
|
|
249
250
|
required: true,
|
|
251
|
+
comboboxValueDataType: "string",
|
|
250
252
|
fieldType: "combobox",
|
|
251
253
|
options: storageTypes,
|
|
252
254
|
optionDisplayField: "value",
|
|
@@ -354,10 +356,10 @@ const ReportGrid: React.FC = () => {
|
|
|
354
356
|
props: {
|
|
355
357
|
fieldLabel: "REPORT_REPORT_EXCEL_DATA_QUERY_ID",
|
|
356
358
|
fieldName: "reportExcelDataQueryId",
|
|
357
|
-
hidden: true,
|
|
358
|
-
gridProps: {
|
|
359
|
-
|
|
360
|
-
},
|
|
359
|
+
// hidden: true,
|
|
360
|
+
// gridProps: {
|
|
361
|
+
// hidden: true,
|
|
362
|
+
// },
|
|
361
363
|
required: false,
|
|
362
364
|
fieldType: "combobox",
|
|
363
365
|
options: SystemDataQueries,
|
package/src/components/templates/DataEntryTemplates/TemplateDataGrid/DataGridColumnsUtil.tsx
CHANGED
|
@@ -89,7 +89,7 @@ export const generateComboColumn: (
|
|
|
89
89
|
type: "custom",
|
|
90
90
|
valueGetter: (value) => {
|
|
91
91
|
if (value) {
|
|
92
|
-
return value
|
|
92
|
+
return value;
|
|
93
93
|
}
|
|
94
94
|
return value;
|
|
95
95
|
},
|
|
@@ -128,7 +128,7 @@ export const generateComboColumn: (
|
|
|
128
128
|
params.api.setEditCellValue({
|
|
129
129
|
id: params.id,
|
|
130
130
|
field: params.field,
|
|
131
|
-
value: v
|
|
131
|
+
value: v,
|
|
132
132
|
});
|
|
133
133
|
}}
|
|
134
134
|
/>
|