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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.mjs +2 -2
- package/dist/routes/PrivateRoute.d.ts.map +1 -1
- package/dist/routes/PrivateRoute.js +7 -3
- package/dist/routes/PrivateRoute.js.map +1 -1
- package/dist/routes/PrivateRoute.mjs +4 -4
- package/dist/routes/PrivateRoute.mjs.map +1 -1
- package/dist/routes/components/PageForbiddenRoute.d.ts.map +1 -1
- package/dist/routes/components/PageForbiddenRoute.js +4 -11
- package/dist/routes/components/PageForbiddenRoute.js.map +1 -1
- package/dist/routes/components/PageForbiddenRoute.mjs +35 -45
- package/dist/routes/components/PageForbiddenRoute.mjs.map +1 -1
- package/dist/routes/components/PageNotFoundRoute.d.ts.map +1 -1
- package/dist/routes/components/PageNotFoundRoute.js +4 -11
- package/dist/routes/components/PageNotFoundRoute.js.map +1 -1
- package/dist/routes/components/PageNotFoundRoute.mjs +32 -42
- package/dist/routes/components/PageNotFoundRoute.mjs.map +1 -1
- package/dist/routes/components/PageStatus.d.ts.map +1 -1
- package/dist/routes/components/PageStatus.js +16 -39
- package/dist/routes/components/PageStatus.js.map +1 -1
- package/dist/routes/components/PageStatus.mjs +55 -131
- package/dist/routes/components/PageStatus.mjs.map +1 -1
- package/dist/shell/Shell.d.ts +4 -1
- package/dist/shell/Shell.d.ts.map +1 -1
- package/dist/shell/Shell.js +21 -5
- package/dist/shell/Shell.js.map +1 -1
- package/dist/shell/Shell.mjs +13 -5
- package/dist/shell/Shell.mjs.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/UdpTransactionsPage.d.ts.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/UdpTransactionsPage.js +64 -5
- package/dist/udp/pages/UdpTransactionsPage/UdpTransactionsPage.js.map +1 -1
- package/dist/udp/pages/UdpTransactionsPage/UdpTransactionsPage.mjs +249 -160
- package/dist/udp/pages/UdpTransactionsPage/UdpTransactionsPage.mjs.map +1 -1
- package/dist/utilities/i18n/locales/es-US.json +5 -5
- package/dist/utilities/i18n/locales/es-US.mjs +5 -5
- package/dist/utilities/i18n/locales/fr-CA.json +5 -5
- package/dist/utilities/i18n/locales/fr-CA.mjs +5 -5
- 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(
|
|
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
|
-
|
|
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] =
|
|
51
|
-
|
|
52
|
-
|
|
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 ($[
|
|
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
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
67
|
-
} else t7 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
110
|
-
} else t8 = $[
|
|
124
|
+
$[11] = t8;
|
|
125
|
+
} else t8 = $[11];
|
|
111
126
|
const handleSidesheet = t8;
|
|
112
127
|
const handleAttachmentTransaction = _temp2;
|
|
113
128
|
let t9;
|
|
114
|
-
if ($[
|
|
129
|
+
if ($[12] !== gridApiCallback) {
|
|
115
130
|
t9 = (api) => {
|
|
116
131
|
setGridApi(api);
|
|
117
132
|
gridApiCallback?.(api);
|
|
118
133
|
};
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
} else t9 = $[
|
|
134
|
+
$[12] = gridApiCallback;
|
|
135
|
+
$[13] = t9;
|
|
136
|
+
} else t9 = $[13];
|
|
122
137
|
const handleGridApiCallback = t9;
|
|
123
138
|
let t10;
|
|
124
|
-
if ($[
|
|
139
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
125
140
|
t10 = (refreshFn) => {
|
|
126
141
|
setCalendarRefresh(() => refreshFn);
|
|
127
142
|
};
|
|
128
|
-
$[
|
|
129
|
-
} else t10 = $[
|
|
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 ($[
|
|
150
|
+
if ($[15] !== transactionType.domainName) {
|
|
136
151
|
t12 = transactionType.domainName.split(".").pop();
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
} else t12 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
} else t14 = $[
|
|
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 ($[
|
|
192
|
+
if ($[24] !== calendarViewConfiguration?.isDefaultView) {
|
|
178
193
|
t13 = () => {
|
|
179
194
|
if (calendarViewConfiguration?.isDefaultView) setShowCalendarView(true);
|
|
180
195
|
};
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
} else t13 = $[
|
|
196
|
+
$[24] = calendarViewConfiguration?.isDefaultView;
|
|
197
|
+
$[25] = t13;
|
|
198
|
+
} else t13 = $[25];
|
|
184
199
|
const t14 = calendarViewConfiguration?.isDefaultView;
|
|
185
200
|
let t15;
|
|
186
|
-
if ($[
|
|
201
|
+
if ($[26] !== t14) {
|
|
187
202
|
t15 = [t14];
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
} else t15 = $[
|
|
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 ($[
|
|
209
|
+
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
194
210
|
t16 = {};
|
|
195
|
-
$[
|
|
196
|
-
} else t16 = $[
|
|
197
|
-
const [t17] = useAxiosGet(ConfigService.integrationV2ApiUrl, `apiCatalog/${currentApiCatalogId}/catalogObject/${transactionType?.domainName}`, t16,
|
|
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 ($[
|
|
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
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
} else t18 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
} else t19 = $[
|
|
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 ($[
|
|
252
|
+
if ($[39] !== addTransactionSidesheetWidth) {
|
|
236
253
|
t20 = () => {
|
|
237
254
|
handleSidesheet("add", true, null, addTransactionSidesheetWidth);
|
|
238
255
|
};
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
} else t20 = $[
|
|
256
|
+
$[39] = addTransactionSidesheetWidth;
|
|
257
|
+
$[40] = t20;
|
|
258
|
+
} else t20 = $[40];
|
|
242
259
|
const openAddTransaction = t20;
|
|
243
260
|
let t21;
|
|
244
|
-
if ($[
|
|
261
|
+
if ($[41] !== viewTransactionSidesheetWidth) {
|
|
245
262
|
t21 = (transaction_1) => {
|
|
246
263
|
handleSidesheet("view", true, transaction_1, viewTransactionSidesheetWidth);
|
|
247
264
|
};
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
} else t21 = $[
|
|
265
|
+
$[41] = viewTransactionSidesheetWidth;
|
|
266
|
+
$[42] = t21;
|
|
267
|
+
} else t21 = $[42];
|
|
251
268
|
const openViewTransaction = t21;
|
|
252
269
|
let t22;
|
|
253
|
-
if ($[
|
|
270
|
+
if ($[43] !== editTransactionSidesheetWidth) {
|
|
254
271
|
t22 = (transaction_2) => {
|
|
255
272
|
handleSidesheet("edit", true, transaction_2, editTransactionSidesheetWidth);
|
|
256
273
|
};
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
} else t22 = $[
|
|
274
|
+
$[43] = editTransactionSidesheetWidth;
|
|
275
|
+
$[44] = t22;
|
|
276
|
+
} else t22 = $[44];
|
|
260
277
|
const openEditTransaction = t22;
|
|
261
278
|
let t23;
|
|
262
|
-
if ($[
|
|
279
|
+
if ($[45] !== attachmentTransactionSidesheetWidth) {
|
|
263
280
|
t23 = (transaction_3) => {
|
|
264
281
|
handleSidesheet("attachment", true, transaction_3, attachmentTransactionSidesheetWidth || 1e3);
|
|
265
282
|
};
|
|
266
|
-
$[
|
|
267
|
-
$[
|
|
268
|
-
} else t23 = $[
|
|
283
|
+
$[45] = attachmentTransactionSidesheetWidth;
|
|
284
|
+
$[46] = t23;
|
|
285
|
+
} else t23 = $[46];
|
|
269
286
|
const openAttachmentTransaction = t23;
|
|
270
287
|
let t24;
|
|
271
|
-
if ($[
|
|
288
|
+
if ($[47] !== workflowActionTransactionSidesheetWidth) {
|
|
272
289
|
t24 = (transaction_4) => {
|
|
273
290
|
handleSidesheet("action", true, transaction_4, workflowActionTransactionSidesheetWidth);
|
|
274
291
|
};
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
} else t24 = $[
|
|
292
|
+
$[47] = workflowActionTransactionSidesheetWidth;
|
|
293
|
+
$[48] = t24;
|
|
294
|
+
} else t24 = $[48];
|
|
278
295
|
const openWorkflowActionTransaction = t24;
|
|
279
296
|
let t25;
|
|
280
|
-
if ($[
|
|
281
|
-
t25 = (
|
|
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
|
-
$[
|
|
285
|
-
$[
|
|
286
|
-
} else
|
|
287
|
-
const openCreateRevision =
|
|
373
|
+
$[62] = createRevisionSidesheetWidth;
|
|
374
|
+
$[63] = t30;
|
|
375
|
+
} else t30 = $[63];
|
|
376
|
+
const openCreateRevision = t30;
|
|
288
377
|
if (!transactionTypeId && !initialTransactionTypeId && !initialDomainName) {
|
|
289
|
-
let
|
|
290
|
-
if ($[
|
|
291
|
-
|
|
292
|
-
$[
|
|
293
|
-
} else
|
|
294
|
-
return
|
|
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 ||
|
|
297
|
-
let
|
|
298
|
-
if ($[
|
|
299
|
-
|
|
300
|
-
$[
|
|
301
|
-
} else
|
|
302
|
-
return
|
|
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
|
|
305
|
-
if ($[
|
|
306
|
-
|
|
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
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
357
|
-
$[
|
|
358
|
-
$[
|
|
359
|
-
$[
|
|
360
|
-
$[
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
} else
|
|
377
|
-
const
|
|
378
|
-
let
|
|
379
|
-
if ($[
|
|
380
|
-
|
|
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:
|
|
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
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
403
|
-
} else
|
|
404
|
-
let
|
|
405
|
-
if ($[
|
|
406
|
-
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
} else
|
|
411
|
-
return
|
|
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;
|