udp-react-enterprise-component-library 25.18.4-beta.93 → 25.18.4-beta.94
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/{UdpTransactionsPage-DJHcYxPF.js → UdpTransactionsPage-DpaVxqwO.js} +18 -6
- package/dist/UdpTransactionsPage-DpaVxqwO.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/types/src/udp/pages/UdpTransactionsPage/UdpTransactionGrid.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionsPage/UdpTransactionsPage.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/udp/pages/UdpPages/index.js +1 -1
- package/dist/udp/pages/UdpTransactionsPage/index.js +1 -1
- package/export-map.json +1 -1
- package/package.json +1 -1
- package/dist/UdpTransactionsPage-DJHcYxPF.js.map +0 -1
|
@@ -244,7 +244,7 @@ const useTransactionEngine = (transactionTypeId) => {
|
|
|
244
244
|
//#region src/udp/pages/UdpTransactionsPage/UdpTransactionGrid.jsx
|
|
245
245
|
const UDP_TRANSACTION_GRID_ID = "32c0fd0b-bb94-497a-b47a-6c7e8f746134";
|
|
246
246
|
const UdpTransactionGrid = (props) => {
|
|
247
|
-
const { transactionTypeId, domainName, transactionTypeLoading, handleGridApiCallback, openAddTransaction, openViewTransaction, openEditTransaction, openAttachmentTransaction, openWorkflowActionTransaction, openCreateRevision, searchMethodObject, domainColumnFormatters = {}, refreshGridData, gridApi, initialFilterModel, initialGridOptions = {}, catalogObjectList, gridTitle, hideCreateTransaction = false, columnDefProperties, paginationAutoPageSize } = props;
|
|
247
|
+
const { transactionTypeId, domainName, transactionTypeLoading, handleGridApiCallback, openAddTransaction, openViewTransaction, openEditTransaction, openAttachmentTransaction, openWorkflowActionTransaction, openCreateRevision, searchMethodObject, domainColumnFormatters = {}, refreshGridData, gridApi, initialFilterModel, initialGridOptions = {}, catalogObjectList, gridTitle, hideCreateTransaction = false, columnDefProperties, paginationAutoPageSize, customActions = [] } = props;
|
|
248
248
|
const [dialogOpen, setDialogOpen] = useState(false);
|
|
249
249
|
const [selectedTransaction, setSelectedTransaction] = useState(null);
|
|
250
250
|
const { t } = useTranslation();
|
|
@@ -402,7 +402,8 @@ const UdpTransactionGrid = (props) => {
|
|
|
402
402
|
setSelectedTransaction(params?.data);
|
|
403
403
|
setDialogOpen(true);
|
|
404
404
|
}
|
|
405
|
-
}] : []
|
|
405
|
+
}] : [],
|
|
406
|
+
...customActions
|
|
406
407
|
] }
|
|
407
408
|
}
|
|
408
409
|
];
|
|
@@ -412,7 +413,11 @@ const UdpTransactionGrid = (props) => {
|
|
|
412
413
|
let valueFormatter = (params) => {
|
|
413
414
|
return params?.data ? params?.data?.entityBusinessObject[propertyName] : "";
|
|
414
415
|
};
|
|
415
|
-
|
|
416
|
+
let onCellClicked = null;
|
|
417
|
+
if (domainColumnFormatters[propertyName]) {
|
|
418
|
+
valueFormatter = domainColumnFormatters[propertyName].formatter;
|
|
419
|
+
onCellClicked = domainColumnFormatters[propertyName].onCellClicked || null;
|
|
420
|
+
}
|
|
416
421
|
let agColumnFilter = "agTextColumnFilter";
|
|
417
422
|
let cellDataType = null;
|
|
418
423
|
const matchingFieldInfo = catalogObject?.properties?.find((objectProperty) => {
|
|
@@ -430,6 +435,9 @@ const UdpTransactionGrid = (props) => {
|
|
|
430
435
|
hide: columnDefinitionProperties?.[`${propertyVarPrefix}${propertyName}`]?.hide,
|
|
431
436
|
order: columnDefinitionProperties?.[`${propertyVarPrefix}${propertyName}`]?.order || Number.MAX_SAFE_INTEGER,
|
|
432
437
|
valueFormatter,
|
|
438
|
+
onCellClicked,
|
|
439
|
+
cellRenderer: columnDefinitionProperties?.[`${propertyVarPrefix}${propertyName}`]?.cellRenderer || null,
|
|
440
|
+
cellRendererParams: columnDefinitionProperties?.[`${propertyVarPrefix}${propertyName}`]?.cellRendererParams || null,
|
|
433
441
|
filter: agColumnFilter,
|
|
434
442
|
cellDataType
|
|
435
443
|
});
|
|
@@ -442,7 +450,10 @@ const UdpTransactionGrid = (props) => {
|
|
|
442
450
|
field: `${UdpSearchEnums.UdpBusinessDomainPrefix}.${domainName}.${columnKey}`,
|
|
443
451
|
hide: columnDefinitionProperties?.[`${UdpSearchEnums.UdpBusinessDomainPrefix}_${columnKey}`]?.hide,
|
|
444
452
|
order: columnDefinitionProperties?.[`${UdpSearchEnums.UdpBusinessDomainPrefix}_${columnKey}`]?.order || Number.MAX_SAFE_INTEGER,
|
|
445
|
-
valueFormatter: domainColumnFormatters[columnKey].formatter
|
|
453
|
+
valueFormatter: domainColumnFormatters[columnKey].formatter,
|
|
454
|
+
onCellClicked: domainColumnFormatters[columnKey].onCellClicked || null,
|
|
455
|
+
cellRenderer: columnDefinitionProperties?.[`${UdpSearchEnums.UdpBusinessDomainPrefix}_${columnKey}`]?.cellRenderer || null,
|
|
456
|
+
cellRendererParams: columnDefinitionProperties?.[`${UdpSearchEnums.UdpBusinessDomainPrefix}_${columnKey}`]?.cellRendererParams || null
|
|
446
457
|
});
|
|
447
458
|
}
|
|
448
459
|
});
|
|
@@ -2709,7 +2720,7 @@ const parseFilterValue = (value) => {
|
|
|
2709
2720
|
//#endregion
|
|
2710
2721
|
//#region src/udp/pages/UdpTransactionsPage/UdpTransactionsPage.jsx
|
|
2711
2722
|
const UdpTransactionsPage = (props) => {
|
|
2712
|
-
const { transactionTypeId = "", domainName: initialDomainName = "", domainFieldType, domainFieldValue, searchMethodObject, domainColumnFormatters, gridOptions, onBeforeRefresh, onAfterRefresh, gridTitle, hideCreateTransaction = false, sideSheetProps, columnDefProperties, paginationAutoPageSize } = props;
|
|
2723
|
+
const { transactionTypeId = "", domainName: initialDomainName = "", domainFieldType, domainFieldValue, searchMethodObject, domainColumnFormatters, gridOptions, onBeforeRefresh, onAfterRefresh, gridTitle, hideCreateTransaction = false, sideSheetProps, columnDefProperties, paginationAutoPageSize, customActions } = props;
|
|
2713
2724
|
const [sidesheetState, setSidesheetState] = useState({
|
|
2714
2725
|
workflowAction: false,
|
|
2715
2726
|
addTransaction: false,
|
|
@@ -2818,6 +2829,7 @@ const UdpTransactionsPage = (props) => {
|
|
|
2818
2829
|
gridTitle,
|
|
2819
2830
|
hideCreateTransaction,
|
|
2820
2831
|
columnDefProperties,
|
|
2832
|
+
customActions,
|
|
2821
2833
|
paginationAutoPageSize
|
|
2822
2834
|
}), /* @__PURE__ */ React.createElement(UdpTransactionSidesheet, {
|
|
2823
2835
|
openStates: sidesheetState,
|
|
@@ -2836,4 +2848,4 @@ var UdpTransactionsPage_exports = /* @__PURE__ */ __exportAll({ default: () => U
|
|
|
2836
2848
|
//#endregion
|
|
2837
2849
|
export { allowedExtensions as i, UdpTransactionsPage as n, MAX_FILE_SIZE_MB as r, UdpTransactionsPage_exports as t };
|
|
2838
2850
|
|
|
2839
|
-
//# sourceMappingURL=UdpTransactionsPage-
|
|
2851
|
+
//# sourceMappingURL=UdpTransactionsPage-DpaVxqwO.js.map
|