udp-react-enterprise-component-library 25.18.3-beta.13 → 25.18.3-beta.14

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.
@@ -2445,7 +2445,7 @@ const parseFilterValue = (value) => {
2445
2445
  //#endregion
2446
2446
  //#region src/udp/pages/UdpTransactionsPage/UdpTransactionsPage.jsx
2447
2447
  const UdpTransactionsPage = (props) => {
2448
- const { transactionTypeId = "", domainName: initialDomainName = "", domainFieldType, domainFieldValue, searchMethodObject, domainColumnFormatters, gridOptions } = props;
2448
+ const { transactionTypeId = "", domainName: initialDomainName = "", domainFieldType, domainFieldValue, searchMethodObject, domainColumnFormatters, gridOptions, onBeforeRefresh, onAfterRefresh } = props;
2449
2449
  const [sidesheetState, setSidesheetState] = useState({
2450
2450
  workflowAction: false,
2451
2451
  addTransaction: false,
@@ -2504,6 +2504,15 @@ const UdpTransactionsPage = (props) => {
2504
2504
  if (catalogsMap && currentApiCatalogId && catalogsMap[currentApiCatalogId]) return catalogsMap[currentApiCatalogId]?.ctlg?.catalogObjectList;
2505
2505
  return null;
2506
2506
  }, [catalogsMap, currentApiCatalogId]);
2507
+ const refreshGridData = useCallback(async () => {
2508
+ if (onBeforeRefresh) await onBeforeRefresh(gridApi);
2509
+ gridApi?.refreshServerSide();
2510
+ if (onAfterRefresh) await onAfterRefresh(gridApi);
2511
+ }, [
2512
+ gridApi,
2513
+ onBeforeRefresh,
2514
+ onAfterRefresh
2515
+ ]);
2507
2516
  if (!transactionType || !catalogObjectList) return /* @__PURE__ */ React.createElement("div", { className: "udp-transaction-page-loading" }, /* @__PURE__ */ React.createElement(CircularProgress, { size: 64 }));
2508
2517
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(UdpTransactionGrid_default, {
2509
2518
  transactionTypeId: transactionType?.transactionTypeId,
@@ -2532,9 +2541,7 @@ const UdpTransactionsPage = (props) => {
2532
2541
  handleSidesheet("createRevision", true, transaction);
2533
2542
  },
2534
2543
  handleGridApiCallback,
2535
- refreshGridData: () => {
2536
- gridApi?.refreshServerSide();
2537
- },
2544
+ refreshGridData,
2538
2545
  gridApi,
2539
2546
  initialFilterModel: filterModel,
2540
2547
  initialGridOptions: gridOptions
@@ -2545,9 +2552,7 @@ const UdpTransactionsPage = (props) => {
2545
2552
  transaction: selectedTransaction,
2546
2553
  transactionTypeId: transactionType?.transactionTypeId,
2547
2554
  domainName,
2548
- refreshGridData: () => {
2549
- gridApi?.refreshServerSide();
2550
- }
2555
+ refreshGridData
2551
2556
  }));
2552
2557
  };
2553
2558
  var UdpTransactionsPage_default = UdpTransactionsPage;
@@ -2558,4 +2563,4 @@ var UdpTransactionsPage_exports = /* @__PURE__ */ __exportAll({ default: () => U
2558
2563
 
2559
2564
  //#endregion
2560
2565
  export { UdpTransactionsPage_default as n, UdpTransactionsPage_exports as t };
2561
- //# sourceMappingURL=UdpTransactionsPage-DO54u3YC.js.map
2566
+ //# sourceMappingURL=UdpTransactionsPage-CUf7dUqr.js.map