udp-react-enterprise-component-library 26.8.0-beta.9 → 26.8.0

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.
Files changed (38) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/index.mjs +2 -2
  3. package/dist/routes/PrivateRoute.d.ts.map +1 -1
  4. package/dist/routes/PrivateRoute.js +7 -3
  5. package/dist/routes/PrivateRoute.js.map +1 -1
  6. package/dist/routes/PrivateRoute.mjs +4 -4
  7. package/dist/routes/PrivateRoute.mjs.map +1 -1
  8. package/dist/routes/components/PageForbiddenRoute.d.ts.map +1 -1
  9. package/dist/routes/components/PageForbiddenRoute.js +4 -11
  10. package/dist/routes/components/PageForbiddenRoute.js.map +1 -1
  11. package/dist/routes/components/PageForbiddenRoute.mjs +35 -45
  12. package/dist/routes/components/PageForbiddenRoute.mjs.map +1 -1
  13. package/dist/routes/components/PageNotFoundRoute.d.ts.map +1 -1
  14. package/dist/routes/components/PageNotFoundRoute.js +4 -11
  15. package/dist/routes/components/PageNotFoundRoute.js.map +1 -1
  16. package/dist/routes/components/PageNotFoundRoute.mjs +32 -42
  17. package/dist/routes/components/PageNotFoundRoute.mjs.map +1 -1
  18. package/dist/routes/components/PageStatus.d.ts.map +1 -1
  19. package/dist/routes/components/PageStatus.js +16 -39
  20. package/dist/routes/components/PageStatus.js.map +1 -1
  21. package/dist/routes/components/PageStatus.mjs +55 -131
  22. package/dist/routes/components/PageStatus.mjs.map +1 -1
  23. package/dist/shell/Shell.d.ts +4 -1
  24. package/dist/shell/Shell.d.ts.map +1 -1
  25. package/dist/shell/Shell.js +21 -5
  26. package/dist/shell/Shell.js.map +1 -1
  27. package/dist/shell/Shell.mjs +13 -5
  28. package/dist/shell/Shell.mjs.map +1 -1
  29. package/dist/udp/pages/UdpTransactionsPage/UdpTransactionsPage.d.ts.map +1 -1
  30. package/dist/udp/pages/UdpTransactionsPage/UdpTransactionsPage.js +64 -5
  31. package/dist/udp/pages/UdpTransactionsPage/UdpTransactionsPage.js.map +1 -1
  32. package/dist/udp/pages/UdpTransactionsPage/UdpTransactionsPage.mjs +249 -160
  33. package/dist/udp/pages/UdpTransactionsPage/UdpTransactionsPage.mjs.map +1 -1
  34. package/dist/utilities/i18n/locales/es-US.json +5 -5
  35. package/dist/utilities/i18n/locales/es-US.mjs +5 -5
  36. package/dist/utilities/i18n/locales/fr-CA.json +5 -5
  37. package/dist/utilities/i18n/locales/fr-CA.mjs +5 -5
  38. package/package.json +3 -3
@@ -1,5 +1,7 @@
1
1
  import { c } from "../../../reactCompilerRuntime.mjs";
2
2
  import { ConfigService } from "../../../configService/index.mjs";
3
+ import { useHandleAxiosSnackbar } from "../../../utilities/apiHelpers.mjs";
4
+ import { apiMutate } from "../../../utilities/useAxiosMutate.mjs";
3
5
  import { useCatalogStore } from "../../../stores/catalogStore.mjs";
4
6
  import { Typography as Typography$1 } from "../../../UI/dataDisplay/typography/Typography.mjs";
5
7
  import { useAxiosGet } from "../../../utilities/useAxiosGet.mjs";
@@ -9,13 +11,13 @@ import UdpTransactionCalendar from "./UdpTransactionCalendar.mjs";
9
11
  import UdpTransactionSidesheet from "./UdpTransactionSidesheet.mjs";
10
12
  import { useTransactionType } from "../../../hooks/useTransactionType.mjs";
11
13
  import { useUdpGridFilterModel } from "../../../hooks/useUdpGridFilterModel.mjs";
12
- import React, { useEffect, useState } from "react";
14
+ import React, { useEffect, useRef, useState } from "react";
13
15
  import { CircularProgress } from "@material-ui/core";
14
- import { useLocation } from "react-router-dom";
16
+ import { useHistory, useLocation } from "react-router-dom";
15
17
  import "./UdpTransactionsPage.css";
16
18
  //#region src/udp/pages/UdpTransactionsPage/UdpTransactionsPage.jsx
17
19
  const UdpTransactionsPage = (props) => {
18
- const $ = c(93);
20
+ const $ = c(108);
19
21
  const { transactionTypeId: t0, domainName: t1, domainFieldType, domainFieldValue, searchMethodObject, domainColumnFormatters, gridOptions, onBeforeRefresh, onAfterRefresh, gridTitle, hideCreateTransaction: t2, sideSheetProps, columnDefProperties, columnDefinitions, paginationAutoPageSize, customActions, gridSecondaryActionButtons, calendarSecondaryActionButtons, gridApiCallback, loading: t3, addTransactionSidesheetWidth, viewTransactionSidesheetWidth, editTransactionSidesheetWidth, attachmentTransactionSidesheetWidth, workflowActionTransactionSidesheetWidth, createRevisionSidesheetWidth, statusChangeCallbacks, attachmentTypeDefaults } = props;
20
22
  const transactionTypeId = t0 === void 0 ? "" : t0;
21
23
  const initialDomainName = t1 === void 0 ? "" : t1;
@@ -39,38 +41,51 @@ const UdpTransactionsPage = (props) => {
39
41
  const [calendarRefresh, setCalendarRefresh] = useState(null);
40
42
  const [showCalendarView, setShowCalendarView] = useState(false);
41
43
  const location = useLocation();
44
+ const history = useHistory();
42
45
  const state = location.state;
46
+ const { handleErrorSnackbar } = useHandleAxiosSnackbar();
43
47
  const searchParamStr = location.search;
48
+ let deepLinkTransactionId;
49
+ let initialTransactionTypeId;
44
50
  let t5;
45
51
  if ($[1] !== searchParamStr || $[2] !== state) {
46
52
  const searchParams = new URLSearchParams(searchParamStr);
47
- t5 = state?.params?.udpTransactionTypeId ? state.params.udpTransactionTypeId : searchParams.has("udpTransactionTypeId") === true ? searchParams.get("udpTransactionTypeId") : "";
53
+ initialTransactionTypeId = state?.params?.udpTransactionTypeId ? state.params.udpTransactionTypeId : searchParams.has("udpTransactionTypeId") === true ? searchParams.get("udpTransactionTypeId") : "";
54
+ deepLinkTransactionId = searchParams.get("udpTransactionId");
55
+ t5 = searchParams.get("udpTransactionAction");
48
56
  $[1] = searchParamStr;
49
57
  $[2] = state;
50
- $[3] = t5;
51
- } else t5 = $[3];
52
- const initialTransactionTypeId = t5;
58
+ $[3] = deepLinkTransactionId;
59
+ $[4] = initialTransactionTypeId;
60
+ $[5] = t5;
61
+ } else {
62
+ deepLinkTransactionId = $[3];
63
+ initialTransactionTypeId = $[4];
64
+ t5 = $[5];
65
+ }
66
+ const deepLinkAction = t5;
67
+ const deepLinkOpenedRef = useRef(false);
53
68
  const t6 = transactionTypeId || initialTransactionTypeId;
54
69
  let t7;
55
- if ($[4] !== domainFieldType || $[5] !== domainFieldValue || $[6] !== initialDomainName || $[7] !== t6) {
70
+ if ($[6] !== domainFieldType || $[7] !== domainFieldValue || $[8] !== initialDomainName || $[9] !== t6) {
56
71
  t7 = {
57
72
  transactionTypeId: t6,
58
73
  domainName: initialDomainName,
59
74
  domainFieldType,
60
75
  domainFieldValue
61
76
  };
62
- $[4] = domainFieldType;
63
- $[5] = domainFieldValue;
64
- $[6] = initialDomainName;
65
- $[7] = t6;
66
- $[8] = t7;
67
- } else t7 = $[8];
77
+ $[6] = domainFieldType;
78
+ $[7] = domainFieldValue;
79
+ $[8] = initialDomainName;
80
+ $[9] = t6;
81
+ $[10] = t7;
82
+ } else t7 = $[10];
68
83
  const { data: transactionType, loading: transactionTypeLoading } = useTransactionType(t7);
69
84
  useTransactionEngine(transactionType?.transactionTypeId);
70
85
  const currentApiCatalogId = useCatalogStore(_temp);
71
86
  const filterModel = useUdpGridFilterModel();
72
87
  let t8;
73
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
88
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
74
89
  t8 = (actionType, openStatus, transaction, t9) => {
75
90
  const width = t9 === void 0 ? 800 : t9;
76
91
  if (actionType == "add") setSidesheetState((prev) => ({
@@ -106,37 +121,37 @@ const UdpTransactionsPage = (props) => {
106
121
  if (transaction) setSelectedTransaction(transaction);
107
122
  else if (actionType == "add" && openStatus) setSelectedTransaction(null);
108
123
  };
109
- $[9] = t8;
110
- } else t8 = $[9];
124
+ $[11] = t8;
125
+ } else t8 = $[11];
111
126
  const handleSidesheet = t8;
112
127
  const handleAttachmentTransaction = _temp2;
113
128
  let t9;
114
- if ($[10] !== gridApiCallback) {
129
+ if ($[12] !== gridApiCallback) {
115
130
  t9 = (api) => {
116
131
  setGridApi(api);
117
132
  gridApiCallback?.(api);
118
133
  };
119
- $[10] = gridApiCallback;
120
- $[11] = t9;
121
- } else t9 = $[11];
134
+ $[12] = gridApiCallback;
135
+ $[13] = t9;
136
+ } else t9 = $[13];
122
137
  const handleGridApiCallback = t9;
123
138
  let t10;
124
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
139
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
125
140
  t10 = (refreshFn) => {
126
141
  setCalendarRefresh(() => refreshFn);
127
142
  };
128
- $[12] = t10;
129
- } else t10 = $[12];
143
+ $[14] = t10;
144
+ } else t10 = $[14];
130
145
  const handleCalendarApiCallback = t10;
131
146
  let t11;
132
147
  bb0: {
133
148
  if (transactionType) {
134
149
  let t12;
135
- if ($[13] !== transactionType.domainName) {
150
+ if ($[15] !== transactionType.domainName) {
136
151
  t12 = transactionType.domainName.split(".").pop();
137
- $[13] = transactionType.domainName;
138
- $[14] = t12;
139
- } else t12 = $[14];
152
+ $[15] = transactionType.domainName;
153
+ $[16] = t12;
154
+ } else t12 = $[16];
140
155
  t11 = t12;
141
156
  break bb0;
142
157
  }
@@ -152,7 +167,7 @@ const UdpTransactionsPage = (props) => {
152
167
  }
153
168
  const t13 = !!config.isDefaultView;
154
169
  let t14;
155
- if ($[15] !== config.defaultCalendarViewType || $[16] !== config.domainEndDateProperty || $[17] !== config.domainPropertyToDisplay || $[18] !== config.domainStartDateProperty || $[19] !== config.enabled || $[20] !== t13) {
170
+ if ($[17] !== config.defaultCalendarViewType || $[18] !== config.domainEndDateProperty || $[19] !== config.domainPropertyToDisplay || $[20] !== config.domainStartDateProperty || $[21] !== config.enabled || $[22] !== t13) {
156
171
  t14 = {
157
172
  enabled: config.enabled,
158
173
  isDefaultView: t13,
@@ -161,59 +176,61 @@ const UdpTransactionsPage = (props) => {
161
176
  domainPropertyToDisplay: config.domainPropertyToDisplay,
162
177
  defaultCalendarViewType: config.defaultCalendarViewType
163
178
  };
164
- $[15] = config.defaultCalendarViewType;
165
- $[16] = config.domainEndDateProperty;
166
- $[17] = config.domainPropertyToDisplay;
167
- $[18] = config.domainStartDateProperty;
168
- $[19] = config.enabled;
169
- $[20] = t13;
170
- $[21] = t14;
171
- } else t14 = $[21];
179
+ $[17] = config.defaultCalendarViewType;
180
+ $[18] = config.domainEndDateProperty;
181
+ $[19] = config.domainPropertyToDisplay;
182
+ $[20] = config.domainStartDateProperty;
183
+ $[21] = config.enabled;
184
+ $[22] = t13;
185
+ $[23] = t14;
186
+ } else t14 = $[23];
172
187
  t12 = t14;
173
188
  }
174
189
  const calendarViewConfiguration = t12;
175
190
  const calendarViewEnabled = !!calendarViewConfiguration?.enabled;
176
191
  let t13;
177
- if ($[22] !== calendarViewConfiguration?.isDefaultView) {
192
+ if ($[24] !== calendarViewConfiguration?.isDefaultView) {
178
193
  t13 = () => {
179
194
  if (calendarViewConfiguration?.isDefaultView) setShowCalendarView(true);
180
195
  };
181
- $[22] = calendarViewConfiguration?.isDefaultView;
182
- $[23] = t13;
183
- } else t13 = $[23];
196
+ $[24] = calendarViewConfiguration?.isDefaultView;
197
+ $[25] = t13;
198
+ } else t13 = $[25];
184
199
  const t14 = calendarViewConfiguration?.isDefaultView;
185
200
  let t15;
186
- if ($[24] !== t14) {
201
+ if ($[26] !== t14) {
187
202
  t15 = [t14];
188
- $[24] = t14;
189
- $[25] = t15;
190
- } else t15 = $[25];
203
+ $[26] = t14;
204
+ $[27] = t15;
205
+ } else t15 = $[27];
191
206
  useEffect(t13, t15);
207
+ const catalogObjectRequestSkipped = !!!currentApiCatalogId || !!!transactionType?.domainName;
192
208
  let t16;
193
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
209
+ if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
194
210
  t16 = {};
195
- $[26] = t16;
196
- } else t16 = $[26];
197
- const [t17] = useAxiosGet(ConfigService.integrationV2ApiUrl, `apiCatalog/${currentApiCatalogId}/catalogObject/${transactionType?.domainName}`, t16, !!!currentApiCatalogId || !!!transactionType?.domainName, false);
198
- const { data: catalogObject, loading: catalogObjectLoading } = t17;
211
+ $[28] = t16;
212
+ } else t16 = $[28];
213
+ const [t17] = useAxiosGet(ConfigService.integrationV2ApiUrl, `apiCatalog/${currentApiCatalogId}/catalogObject/${transactionType?.domainName}`, t16, catalogObjectRequestSkipped, false);
214
+ const { data: catalogObject, loading: catalogObjectLoading, error: catalogObjectError } = t17;
215
+ const catalogObjectPending = catalogObjectLoading || !catalogObjectRequestSkipped && catalogObject === void 0 && !catalogObjectError;
199
216
  let t18;
200
- if ($[27] !== calendarRefresh || $[28] !== gridApi || $[29] !== onAfterRefresh || $[30] !== onBeforeRefresh || $[31] !== showCalendarView) {
217
+ if ($[29] !== calendarRefresh || $[30] !== gridApi || $[31] !== onAfterRefresh || $[32] !== onBeforeRefresh || $[33] !== showCalendarView) {
201
218
  t18 = async () => {
202
219
  if (onBeforeRefresh) await onBeforeRefresh(gridApi);
203
220
  if (showCalendarView) await calendarRefresh?.();
204
221
  else gridApi?.refreshServerSide();
205
222
  if (onAfterRefresh) await onAfterRefresh(gridApi);
206
223
  };
207
- $[27] = calendarRefresh;
208
- $[28] = gridApi;
209
- $[29] = onAfterRefresh;
210
- $[30] = onBeforeRefresh;
211
- $[31] = showCalendarView;
212
- $[32] = t18;
213
- } else t18 = $[32];
224
+ $[29] = calendarRefresh;
225
+ $[30] = gridApi;
226
+ $[31] = onAfterRefresh;
227
+ $[32] = onBeforeRefresh;
228
+ $[33] = showCalendarView;
229
+ $[34] = t18;
230
+ } else t18 = $[34];
214
231
  const refreshGridData = t18;
215
232
  let t19;
216
- if ($[33] !== statusChangeCallbacks || $[34] !== transactionType?.pageConfiguration?.enableStatusChangeCallbacks || $[35] !== transactionType?.udpTransactionTypeUdpTransactionTypeStatus) {
233
+ if ($[35] !== statusChangeCallbacks || $[36] !== transactionType?.pageConfiguration?.enableStatusChangeCallbacks || $[37] !== transactionType?.udpTransactionTypeUdpTransactionTypeStatus) {
217
234
  t19 = async (newStatusId, transaction_0) => {
218
235
  if (!statusChangeCallbacks || transactionType?.pageConfiguration?.enableStatusChangeCallbacks === false || !newStatusId || newStatusId === transaction_0?.currentStatusId) return;
219
236
  const newStatus = transactionType?.udpTransactionTypeUdpTransactionTypeStatus?.find((status) => status.transactionTypeStatusId === newStatusId);
@@ -225,85 +242,157 @@ const UdpTransactionsPage = (props) => {
225
242
  console.error("statusChangeCallbacks callback threw", error);
226
243
  }
227
244
  };
228
- $[33] = statusChangeCallbacks;
229
- $[34] = transactionType?.pageConfiguration?.enableStatusChangeCallbacks;
230
- $[35] = transactionType?.udpTransactionTypeUdpTransactionTypeStatus;
231
- $[36] = t19;
232
- } else t19 = $[36];
245
+ $[35] = statusChangeCallbacks;
246
+ $[36] = transactionType?.pageConfiguration?.enableStatusChangeCallbacks;
247
+ $[37] = transactionType?.udpTransactionTypeUdpTransactionTypeStatus;
248
+ $[38] = t19;
249
+ } else t19 = $[38];
233
250
  const handleTransactionStatusChange = t19;
234
251
  let t20;
235
- if ($[37] !== addTransactionSidesheetWidth) {
252
+ if ($[39] !== addTransactionSidesheetWidth) {
236
253
  t20 = () => {
237
254
  handleSidesheet("add", true, null, addTransactionSidesheetWidth);
238
255
  };
239
- $[37] = addTransactionSidesheetWidth;
240
- $[38] = t20;
241
- } else t20 = $[38];
256
+ $[39] = addTransactionSidesheetWidth;
257
+ $[40] = t20;
258
+ } else t20 = $[40];
242
259
  const openAddTransaction = t20;
243
260
  let t21;
244
- if ($[39] !== viewTransactionSidesheetWidth) {
261
+ if ($[41] !== viewTransactionSidesheetWidth) {
245
262
  t21 = (transaction_1) => {
246
263
  handleSidesheet("view", true, transaction_1, viewTransactionSidesheetWidth);
247
264
  };
248
- $[39] = viewTransactionSidesheetWidth;
249
- $[40] = t21;
250
- } else t21 = $[40];
265
+ $[41] = viewTransactionSidesheetWidth;
266
+ $[42] = t21;
267
+ } else t21 = $[42];
251
268
  const openViewTransaction = t21;
252
269
  let t22;
253
- if ($[41] !== editTransactionSidesheetWidth) {
270
+ if ($[43] !== editTransactionSidesheetWidth) {
254
271
  t22 = (transaction_2) => {
255
272
  handleSidesheet("edit", true, transaction_2, editTransactionSidesheetWidth);
256
273
  };
257
- $[41] = editTransactionSidesheetWidth;
258
- $[42] = t22;
259
- } else t22 = $[42];
274
+ $[43] = editTransactionSidesheetWidth;
275
+ $[44] = t22;
276
+ } else t22 = $[44];
260
277
  const openEditTransaction = t22;
261
278
  let t23;
262
- if ($[43] !== attachmentTransactionSidesheetWidth) {
279
+ if ($[45] !== attachmentTransactionSidesheetWidth) {
263
280
  t23 = (transaction_3) => {
264
281
  handleSidesheet("attachment", true, transaction_3, attachmentTransactionSidesheetWidth || 1e3);
265
282
  };
266
- $[43] = attachmentTransactionSidesheetWidth;
267
- $[44] = t23;
268
- } else t23 = $[44];
283
+ $[45] = attachmentTransactionSidesheetWidth;
284
+ $[46] = t23;
285
+ } else t23 = $[46];
269
286
  const openAttachmentTransaction = t23;
270
287
  let t24;
271
- if ($[45] !== workflowActionTransactionSidesheetWidth) {
288
+ if ($[47] !== workflowActionTransactionSidesheetWidth) {
272
289
  t24 = (transaction_4) => {
273
290
  handleSidesheet("action", true, transaction_4, workflowActionTransactionSidesheetWidth);
274
291
  };
275
- $[45] = workflowActionTransactionSidesheetWidth;
276
- $[46] = t24;
277
- } else t24 = $[46];
292
+ $[47] = workflowActionTransactionSidesheetWidth;
293
+ $[48] = t24;
294
+ } else t24 = $[48];
278
295
  const openWorkflowActionTransaction = t24;
279
296
  let t25;
280
- if ($[47] !== createRevisionSidesheetWidth) {
281
- t25 = (transaction_5) => {
297
+ if ($[49] !== history) {
298
+ t25 = () => {
299
+ const params = new URLSearchParams(history.location.search);
300
+ params.delete("udpTransactionId");
301
+ params.delete("udpTransactionAction");
302
+ history.replace({
303
+ ...history.location,
304
+ search: params.toString()
305
+ });
306
+ };
307
+ $[49] = history;
308
+ $[50] = t25;
309
+ } else t25 = $[50];
310
+ const clearDeepLinkParams = t25;
311
+ let t26;
312
+ let t27;
313
+ if ($[51] !== clearDeepLinkParams || $[52] !== deepLinkAction || $[53] !== deepLinkTransactionId || $[54] !== handleErrorSnackbar || $[55] !== openWorkflowActionTransaction) {
314
+ t26 = () => {
315
+ if (!deepLinkTransactionId || deepLinkAction !== "nextSteps") return;
316
+ let cancelled = false;
317
+ apiMutate(ConfigService.productV1ApiUrl, `udpTransaction/${deepLinkTransactionId}/full`, { method: "get" }).then((response) => {
318
+ if (cancelled) return;
319
+ deepLinkOpenedRef.current = true;
320
+ openWorkflowActionTransaction(response.data);
321
+ }).catch((error_0) => {
322
+ if (cancelled) return;
323
+ handleErrorSnackbar(error_0);
324
+ clearDeepLinkParams();
325
+ });
326
+ return () => {
327
+ cancelled = true;
328
+ };
329
+ };
330
+ t27 = [
331
+ deepLinkTransactionId,
332
+ deepLinkAction,
333
+ openWorkflowActionTransaction,
334
+ handleErrorSnackbar,
335
+ clearDeepLinkParams
336
+ ];
337
+ $[51] = clearDeepLinkParams;
338
+ $[52] = deepLinkAction;
339
+ $[53] = deepLinkTransactionId;
340
+ $[54] = handleErrorSnackbar;
341
+ $[55] = openWorkflowActionTransaction;
342
+ $[56] = t26;
343
+ $[57] = t27;
344
+ } else {
345
+ t26 = $[56];
346
+ t27 = $[57];
347
+ }
348
+ useEffect(t26, t27);
349
+ let t28;
350
+ let t29;
351
+ if ($[58] !== clearDeepLinkParams || $[59] !== sidesheetState.workflowAction) {
352
+ t28 = () => {
353
+ if (!sidesheetState.workflowAction && deepLinkOpenedRef.current) {
354
+ deepLinkOpenedRef.current = false;
355
+ clearDeepLinkParams();
356
+ }
357
+ };
358
+ t29 = [sidesheetState.workflowAction, clearDeepLinkParams];
359
+ $[58] = clearDeepLinkParams;
360
+ $[59] = sidesheetState.workflowAction;
361
+ $[60] = t28;
362
+ $[61] = t29;
363
+ } else {
364
+ t28 = $[60];
365
+ t29 = $[61];
366
+ }
367
+ useEffect(t28, t29);
368
+ let t30;
369
+ if ($[62] !== createRevisionSidesheetWidth) {
370
+ t30 = (transaction_5) => {
282
371
  handleSidesheet("createRevision", true, transaction_5, createRevisionSidesheetWidth);
283
372
  };
284
- $[47] = createRevisionSidesheetWidth;
285
- $[48] = t25;
286
- } else t25 = $[48];
287
- const openCreateRevision = t25;
373
+ $[62] = createRevisionSidesheetWidth;
374
+ $[63] = t30;
375
+ } else t30 = $[63];
376
+ const openCreateRevision = t30;
288
377
  if (!transactionTypeId && !initialTransactionTypeId && !initialDomainName) {
289
- let t26;
290
- if ($[49] === Symbol.for("react.memo_cache_sentinel")) {
291
- t26 = /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Typography$1, { variant: "h6" }, "Error loading Transaction Type: No Transaction type provided."));
292
- $[49] = t26;
293
- } else t26 = $[49];
294
- return t26;
378
+ let t31;
379
+ if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
380
+ t31 = /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Typography$1, { variant: "h6" }, "Error loading Transaction Type: No Transaction type provided."));
381
+ $[64] = t31;
382
+ } else t31 = $[64];
383
+ return t31;
295
384
  }
296
- if (!transactionType || catalogObjectLoading || loading) {
297
- let t26;
298
- if ($[50] === Symbol.for("react.memo_cache_sentinel")) {
299
- t26 = /* @__PURE__ */ React.createElement("div", { className: "udp-transaction-page-loading" }, /* @__PURE__ */ React.createElement(CircularProgress, { size: 64 }));
300
- $[50] = t26;
301
- } else t26 = $[50];
302
- return t26;
385
+ if (!transactionType || catalogObjectPending || loading) {
386
+ let t31;
387
+ if ($[65] === Symbol.for("react.memo_cache_sentinel")) {
388
+ t31 = /* @__PURE__ */ React.createElement("div", { className: "udp-transaction-page-loading" }, /* @__PURE__ */ React.createElement(CircularProgress, { size: 64 }));
389
+ $[65] = t31;
390
+ } else t31 = $[65];
391
+ return t31;
303
392
  }
304
- let t26;
305
- if ($[51] !== calendarSecondaryActionButtons || $[52] !== calendarViewConfiguration || $[53] !== calendarViewEnabled || $[54] !== catalogObject || $[55] !== columnDefProperties || $[56] !== columnDefinitions || $[57] !== customActions || $[58] !== domainColumnFormatters || $[59] !== domainName || $[60] !== filterModel || $[61] !== gridApi || $[62] !== gridOptions || $[63] !== gridSecondaryActionButtons || $[64] !== gridTitle || $[65] !== handleGridApiCallback || $[66] !== hideCreateTransaction || $[67] !== openAddTransaction || $[68] !== openAttachmentTransaction || $[69] !== openCreateRevision || $[70] !== openEditTransaction || $[71] !== openViewTransaction || $[72] !== openWorkflowActionTransaction || $[73] !== paginationAutoPageSize || $[74] !== refreshGridData || $[75] !== searchMethodObject || $[76] !== showCalendarView || $[77] !== transactionType || $[78] !== transactionTypeLoading) {
306
- t26 = calendarViewEnabled && showCalendarView ? /* @__PURE__ */ React.createElement(UdpTransactionCalendar, {
393
+ let t31;
394
+ if ($[66] !== calendarSecondaryActionButtons || $[67] !== calendarViewConfiguration || $[68] !== calendarViewEnabled || $[69] !== catalogObject || $[70] !== columnDefProperties || $[71] !== columnDefinitions || $[72] !== customActions || $[73] !== domainColumnFormatters || $[74] !== domainName || $[75] !== filterModel || $[76] !== gridApi || $[77] !== gridOptions || $[78] !== gridSecondaryActionButtons || $[79] !== gridTitle || $[80] !== handleGridApiCallback || $[81] !== hideCreateTransaction || $[82] !== openAddTransaction || $[83] !== openAttachmentTransaction || $[84] !== openCreateRevision || $[85] !== openEditTransaction || $[86] !== openViewTransaction || $[87] !== openWorkflowActionTransaction || $[88] !== paginationAutoPageSize || $[89] !== refreshGridData || $[90] !== searchMethodObject || $[91] !== showCalendarView || $[92] !== transactionType || $[93] !== transactionTypeLoading) {
395
+ t31 = calendarViewEnabled && showCalendarView ? /* @__PURE__ */ React.createElement(UdpTransactionCalendar, {
307
396
  transactionTypeId: transactionType?.transactionTypeId,
308
397
  domainName,
309
398
  searchMethodObject,
@@ -344,45 +433,45 @@ const UdpTransactionsPage = (props) => {
344
433
  calendarViewEnabled,
345
434
  onShowCalendarView: () => setShowCalendarView(true)
346
435
  });
347
- $[51] = calendarSecondaryActionButtons;
348
- $[52] = calendarViewConfiguration;
349
- $[53] = calendarViewEnabled;
350
- $[54] = catalogObject;
351
- $[55] = columnDefProperties;
352
- $[56] = columnDefinitions;
353
- $[57] = customActions;
354
- $[58] = domainColumnFormatters;
355
- $[59] = domainName;
356
- $[60] = filterModel;
357
- $[61] = gridApi;
358
- $[62] = gridOptions;
359
- $[63] = gridSecondaryActionButtons;
360
- $[64] = gridTitle;
361
- $[65] = handleGridApiCallback;
362
- $[66] = hideCreateTransaction;
363
- $[67] = openAddTransaction;
364
- $[68] = openAttachmentTransaction;
365
- $[69] = openCreateRevision;
366
- $[70] = openEditTransaction;
367
- $[71] = openViewTransaction;
368
- $[72] = openWorkflowActionTransaction;
369
- $[73] = paginationAutoPageSize;
370
- $[74] = refreshGridData;
371
- $[75] = searchMethodObject;
372
- $[76] = showCalendarView;
373
- $[77] = transactionType;
374
- $[78] = transactionTypeLoading;
375
- $[79] = t26;
376
- } else t26 = $[79];
377
- const t27 = transactionType?.transactionTypeId;
378
- let t28;
379
- if ($[80] !== attachmentTypeDefaults || $[81] !== catalogObject || $[82] !== domainName || $[83] !== handleTransactionStatusChange || $[84] !== refreshGridData || $[85] !== selectedTransaction || $[86] !== sideSheetProps || $[87] !== sidesheetState || $[88] !== t27) {
380
- t28 = /* @__PURE__ */ React.createElement(UdpTransactionSidesheet, {
436
+ $[66] = calendarSecondaryActionButtons;
437
+ $[67] = calendarViewConfiguration;
438
+ $[68] = calendarViewEnabled;
439
+ $[69] = catalogObject;
440
+ $[70] = columnDefProperties;
441
+ $[71] = columnDefinitions;
442
+ $[72] = customActions;
443
+ $[73] = domainColumnFormatters;
444
+ $[74] = domainName;
445
+ $[75] = filterModel;
446
+ $[76] = gridApi;
447
+ $[77] = gridOptions;
448
+ $[78] = gridSecondaryActionButtons;
449
+ $[79] = gridTitle;
450
+ $[80] = handleGridApiCallback;
451
+ $[81] = hideCreateTransaction;
452
+ $[82] = openAddTransaction;
453
+ $[83] = openAttachmentTransaction;
454
+ $[84] = openCreateRevision;
455
+ $[85] = openEditTransaction;
456
+ $[86] = openViewTransaction;
457
+ $[87] = openWorkflowActionTransaction;
458
+ $[88] = paginationAutoPageSize;
459
+ $[89] = refreshGridData;
460
+ $[90] = searchMethodObject;
461
+ $[91] = showCalendarView;
462
+ $[92] = transactionType;
463
+ $[93] = transactionTypeLoading;
464
+ $[94] = t31;
465
+ } else t31 = $[94];
466
+ const t32 = transactionType?.transactionTypeId;
467
+ let t33;
468
+ if ($[95] !== attachmentTypeDefaults || $[96] !== catalogObject || $[97] !== domainName || $[98] !== handleTransactionStatusChange || $[99] !== refreshGridData || $[100] !== selectedTransaction || $[101] !== sideSheetProps || $[102] !== sidesheetState || $[103] !== t32) {
469
+ t33 = /* @__PURE__ */ React.createElement(UdpTransactionSidesheet, {
381
470
  openStates: sidesheetState,
382
471
  handleSidesheet,
383
472
  handleAttachmentTransaction,
384
473
  transaction: selectedTransaction,
385
- transactionTypeId: t27,
474
+ transactionTypeId: t32,
386
475
  domainName,
387
476
  refreshGridData,
388
477
  catalogObject,
@@ -390,25 +479,25 @@ const UdpTransactionsPage = (props) => {
390
479
  attachmentTypeDefaults,
391
480
  ...sideSheetProps
392
481
  });
393
- $[80] = attachmentTypeDefaults;
394
- $[81] = catalogObject;
395
- $[82] = domainName;
396
- $[83] = handleTransactionStatusChange;
397
- $[84] = refreshGridData;
398
- $[85] = selectedTransaction;
399
- $[86] = sideSheetProps;
400
- $[87] = sidesheetState;
401
- $[88] = t27;
402
- $[89] = t28;
403
- } else t28 = $[89];
404
- let t29;
405
- if ($[90] !== t26 || $[91] !== t28) {
406
- t29 = /* @__PURE__ */ React.createElement(React.Fragment, null, t26, t28);
407
- $[90] = t26;
408
- $[91] = t28;
409
- $[92] = t29;
410
- } else t29 = $[92];
411
- return t29;
482
+ $[95] = attachmentTypeDefaults;
483
+ $[96] = catalogObject;
484
+ $[97] = domainName;
485
+ $[98] = handleTransactionStatusChange;
486
+ $[99] = refreshGridData;
487
+ $[100] = selectedTransaction;
488
+ $[101] = sideSheetProps;
489
+ $[102] = sidesheetState;
490
+ $[103] = t32;
491
+ $[104] = t33;
492
+ } else t33 = $[104];
493
+ let t34;
494
+ if ($[105] !== t31 || $[106] !== t33) {
495
+ t34 = /* @__PURE__ */ React.createElement(React.Fragment, null, t31, t33);
496
+ $[105] = t31;
497
+ $[106] = t33;
498
+ $[107] = t34;
499
+ } else t34 = $[107];
500
+ return t34;
412
501
  };
413
502
  function _temp(state_0) {
414
503
  return state_0.currentApiCatalogId;