udp-react-enterprise-component-library 25.18.1-beta.40 → 25.18.1-beta.41
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/{UdpPages-9KtA1yex.js → UdpPages-iGKLrxEq.js} +3 -3
- package/dist/{UdpPages-9KtA1yex.js.map → UdpPages-iGKLrxEq.js.map} +1 -1
- package/dist/{UdpTransactionTypesPage-Su-Z5Yjd.js → UdpTransactionTypesPage-CUpHKA6y.js} +149 -65
- package/dist/UdpTransactionTypesPage-CUpHKA6y.js.map +1 -0
- package/dist/{UdpTransactionsPage-DqSVtTyb.js → UdpTransactionsPage-llP_6pYr.js} +21 -7
- package/dist/UdpTransactionsPage-llP_6pYr.js.map +1 -0
- package/dist/index.js +4 -4
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionTypesPage/UdpTransactionTypesPage.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionTypesPage/forms/UdpTransactionTypeForm.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionTypesPage/forms/UdpTransactionTypeStatusForm.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionTypesPage/sidesheets/UdpTransactionAttachmentTypeSidesheet.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionTypesPage/sidesheets/UdpTransactionTypeConfigurationSidesheet.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionTypesPage/sidesheets/UdpTransactionTypeConfigurationTransactionActionSidesheet.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionTypesPage/sidesheets/UdpTransactionTypeStatusSidesheet.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionTypesPage/sidesheets/UdpTransactionTypeTransactionActionSidesheet.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionsPage/UdpTransactionGrid.d.ts.map +1 -1
- package/dist/types/src/udp/pages/UdpTransactionsPage/sidesheets/EditTransaction.d.ts.map +1 -1
- package/dist/types/src/udp/utilities/transactionConstants.d.ts +5 -0
- package/dist/types/src/udp/utilities/transactionConstants.d.ts.map +1 -0
- package/dist/types/src/utilities/transactions/useTransactionEngine.d.ts +1 -0
- package/dist/types/src/utilities/transactions/useTransactionEngine.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/UdpTransactionTypesPage/index.js +1 -1
- package/dist/udp/pages/UdpTransactionsPage/index.js +1 -1
- package/dist/udp/pages/index.js +1 -1
- package/export-map.json +1 -1
- package/package.json +1 -1
- package/dist/UdpTransactionTypesPage-Su-Z5Yjd.js.map +0 -1
- package/dist/UdpTransactionsPage-DqSVtTyb.js.map +0 -1
|
@@ -18,8 +18,8 @@ import { t as UdpFormsListPage_exports } from "./UdpFormsListPage-BsTi2bXy.js";
|
|
|
18
18
|
import { t as UdpFormsBuilderPage_exports } from "./UdpFormsBuilderPage-C1oc66zH.js";
|
|
19
19
|
import { t as UdpImportFromFileMappingPage_exports } from "./UdpImportFromFileMappingPage-BOBh4ySA.js";
|
|
20
20
|
import { t as UdpAuditEvents_exports } from "./UdpAuditEvents-Bqz0_-Du.js";
|
|
21
|
-
import { t as UdpTransactionTypesPage_exports } from "./UdpTransactionTypesPage-
|
|
22
|
-
import { t as UdpTransactionsPage_exports } from "./UdpTransactionsPage-
|
|
21
|
+
import { t as UdpTransactionTypesPage_exports } from "./UdpTransactionTypesPage-CUpHKA6y.js";
|
|
22
|
+
import { t as UdpTransactionsPage_exports } from "./UdpTransactionsPage-llP_6pYr.js";
|
|
23
23
|
|
|
24
24
|
//#region src/udp/pages/UdpPages/index.ts
|
|
25
25
|
const UdpPages = {
|
|
@@ -49,4 +49,4 @@ const UdpPages = {
|
|
|
49
49
|
|
|
50
50
|
//#endregion
|
|
51
51
|
export { UdpPages as t };
|
|
52
|
-
//# sourceMappingURL=UdpPages-
|
|
52
|
+
//# sourceMappingURL=UdpPages-iGKLrxEq.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UdpPages-
|
|
1
|
+
{"version":3,"file":"UdpPages-iGKLrxEq.js","names":[],"sources":["../src/udp/pages/UdpPages/index.ts"],"sourcesContent":["import * as UdpNotesPage from '../UdpNotesPage';\nimport * as UdpVerticalManagementPage from '../UdpVerticalManagementPage';\nimport * as UdpGridPanelManagementPage from '../UdpGridPanelManagementPage';\nimport * as UdpMaintenanceEnginePage from '../UdpMaintenanceEnginePage';\nimport * as UdpInquiryMaintenanceEnginePage from '../UdpInquiryMaintenanceEnginePage';\nimport * as UdpReportsPage from '../UdpReportsPage';\nimport * as DonutChartWidget from '../../../UI/widgets/library/DonutChartWidget';\nimport * as SparklineWidget from '../../../UI/widgets/library/SparklineWidget';\nimport * as ProgressBarWidget from '../../../UI/widgets/library/ProgressBarWidget';\nimport * as RecentlyLoadedNodesWidget from '../../../UI/widgets/library/RecentlyLoadedNodesWidget';\nimport * as ChatUDP from '../ChatUDP';\nimport * as UdpDataBrowserPage from '../UdpDataBrowserPage';\nimport * as UdpRemindersPage from '../UdpRemindersPage';\nimport * as RemindersWidget from '../../../UI/widgets/library/RemindersWidget';\nimport * as UdpPublicForm from '../UdpFormsPublicForm';\nimport * as UdpPrivateForm from '../UdpFormsPrivateForm';\nimport * as UdpFormsListPage from '../UdpFormsListPage';\nimport * as UdpFormsBuilderPage from '../UdpFormsBuilderPage';\nimport * as UdpImportFromFileMappingPage from '../UdpImportFromFileMappingPage';\nimport * as UdpAuditEventsPage from '../UdpAuditEvents';\nimport * as UdpTransactionTypesPage from '../UdpTransactionTypesPage';\nimport * as UdpTransactionsPage from '../UdpTransactionsPage';\n\nexport const UdpPages = {\n UdpNotesPage,\n UdpVerticalManagementPage,\n UdpGridPanelManagementPage,\n UdpMaintenanceEnginePage,\n UdpInquiryMaintenanceEnginePage,\n UdpReportsPage,\n DonutChartWidget,\n SparklineWidget,\n ProgressBarWidget,\n RecentlyLoadedNodesWidget,\n ChatUDP,\n UdpDataBrowserPage,\n UdpRemindersPage,\n RemindersWidget,\n UdpPublicForm,\n UdpPrivateForm,\n UdpFormsBuilderPage,\n UdpFormsListPage,\n UdpImportFromFileMappingPage,\n UdpAuditEventsPage,\n UdpTransactionTypesPage,\n UdpTransactionsPage\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAa,WAAW;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
|
|
@@ -112,7 +112,8 @@ const UdpTransactionTypeForm = (props, ref) => {
|
|
|
112
112
|
disableCloseOnSelect: true,
|
|
113
113
|
initialValue: initialData?.domainFields,
|
|
114
114
|
options: domainFieldOptions || [],
|
|
115
|
-
getOptionLabelFunction: (option) => option
|
|
115
|
+
getOptionLabelFunction: (option) => option,
|
|
116
|
+
helperText: t("Field properties to be displayed as columns in the transaction grid")
|
|
116
117
|
}), /* @__PURE__ */ React.createElement(Field$1, {
|
|
117
118
|
component: AmbientAutoComplete,
|
|
118
119
|
label: t("Field Label"),
|
|
@@ -123,7 +124,8 @@ const UdpTransactionTypeForm = (props, ref) => {
|
|
|
123
124
|
disableCloseOnSelect: false,
|
|
124
125
|
initialValue: initialData?.domainFieldLabel,
|
|
125
126
|
options: domainFieldOptions || [],
|
|
126
|
-
getOptionLabelFunction: (option) => option
|
|
127
|
+
getOptionLabelFunction: (option) => option,
|
|
128
|
+
helperText: t("Field property to be used in transaction page labels")
|
|
127
129
|
}), /* @__PURE__ */ React.createElement(LayoutUnit, { unit: "nudge" }), /* @__PURE__ */ React.createElement(FormControlLabel, {
|
|
128
130
|
control: /* @__PURE__ */ React.createElement(Field$1, {
|
|
129
131
|
component: Switch,
|
|
@@ -200,6 +202,31 @@ const UdpTransactionTypeSidesheet = (props) => {
|
|
|
200
202
|
};
|
|
201
203
|
var UdpTransactionTypeSidesheet_default = UdpTransactionTypeSidesheet;
|
|
202
204
|
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/udp/utilities/transactionConstants.js
|
|
207
|
+
const TRANSACTION_TYPE_STATUS_COLORS = [
|
|
208
|
+
{
|
|
209
|
+
name: "Default",
|
|
210
|
+
value: "gray"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "Warning",
|
|
214
|
+
value: "warning"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: "Info",
|
|
218
|
+
value: "info"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: "Success",
|
|
222
|
+
value: "success"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "Error",
|
|
226
|
+
value: "error"
|
|
227
|
+
}
|
|
228
|
+
];
|
|
229
|
+
|
|
203
230
|
//#endregion
|
|
204
231
|
//#region src/udp/pages/UdpTransactionTypesPage/forms/UdpTransactionTypeStatusForm.jsx
|
|
205
232
|
const UdpTransactionTypeStatusForm = (props, ref) => {
|
|
@@ -237,6 +264,17 @@ const UdpTransactionTypeStatusForm = (props, ref) => {
|
|
|
237
264
|
margin: "normal",
|
|
238
265
|
size: "small",
|
|
239
266
|
initialValue: initialData?.code || ""
|
|
267
|
+
}), /* @__PURE__ */ React.createElement(Field$1, {
|
|
268
|
+
component: AmbientAutoComplete,
|
|
269
|
+
label: t("Color"),
|
|
270
|
+
id: "color",
|
|
271
|
+
name: "color",
|
|
272
|
+
variant: "outlined",
|
|
273
|
+
isMultiple: false,
|
|
274
|
+
disableCloseOnSelect: false,
|
|
275
|
+
options: TRANSACTION_TYPE_STATUS_COLORS || [],
|
|
276
|
+
getOptionLabelFunction: (option) => option.name,
|
|
277
|
+
initialValue: TRANSACTION_TYPE_STATUS_COLORS?.find((color) => color?.value === initialData?.color) || null
|
|
240
278
|
}), /* @__PURE__ */ React.createElement(LayoutUnit, { unit: "nudge" }), /* @__PURE__ */ React.createElement(FormControlLabel, {
|
|
241
279
|
control: /* @__PURE__ */ React.createElement(Field$1, {
|
|
242
280
|
component: Switch,
|
|
@@ -307,6 +345,20 @@ const UdpTransactionTypeStatusSidesheet = (props, ref) => {
|
|
|
307
345
|
useImperativeHandle(ref, () => ({ refreshServerSide: () => {
|
|
308
346
|
transactionTypeStatusGridApiRef?.current?.refreshServerSide();
|
|
309
347
|
} }));
|
|
348
|
+
const getStatusLabel = (node) => {
|
|
349
|
+
let label = "";
|
|
350
|
+
label = TRANSACTION_TYPE_STATUS_COLORS.find((color) => color.value === node.data.color)?.name;
|
|
351
|
+
return label || "";
|
|
352
|
+
};
|
|
353
|
+
const getStatusColor = useMemo(() => {
|
|
354
|
+
return {
|
|
355
|
+
Default: "gray",
|
|
356
|
+
Warning: "warning",
|
|
357
|
+
Info: "info",
|
|
358
|
+
Success: "success",
|
|
359
|
+
Error: "error"
|
|
360
|
+
};
|
|
361
|
+
}, []);
|
|
310
362
|
const columnDefs = useMemo(() => {
|
|
311
363
|
return [
|
|
312
364
|
{
|
|
@@ -315,6 +367,23 @@ const UdpTransactionTypeStatusSidesheet = (props, ref) => {
|
|
|
315
367
|
resizable: true,
|
|
316
368
|
sortable: false
|
|
317
369
|
},
|
|
370
|
+
{
|
|
371
|
+
headerName: t("Code"),
|
|
372
|
+
field: "code",
|
|
373
|
+
resizable: true,
|
|
374
|
+
sortable: false
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
headerName: t("Color"),
|
|
378
|
+
field: "color",
|
|
379
|
+
resizable: true,
|
|
380
|
+
sortable: false,
|
|
381
|
+
cellRenderer: "statusRenderer",
|
|
382
|
+
cellRendererParams: {
|
|
383
|
+
statusMappingConfig: getStatusColor,
|
|
384
|
+
getStatusValue: getStatusLabel
|
|
385
|
+
}
|
|
386
|
+
},
|
|
318
387
|
{
|
|
319
388
|
headerName: t("Default"),
|
|
320
389
|
field: "isDefault",
|
|
@@ -336,12 +405,6 @@ const UdpTransactionTypeStatusSidesheet = (props, ref) => {
|
|
|
336
405
|
sortable: false,
|
|
337
406
|
cellDataType: "boolean"
|
|
338
407
|
},
|
|
339
|
-
{
|
|
340
|
-
headerName: t("Code"),
|
|
341
|
-
field: "code",
|
|
342
|
-
resizable: true,
|
|
343
|
-
sortable: false
|
|
344
|
-
},
|
|
345
408
|
{
|
|
346
409
|
headerName: t("Actions"),
|
|
347
410
|
field: "actions",
|
|
@@ -395,16 +458,19 @@ const UdpTransactionTypeStatusSidesheet = (props, ref) => {
|
|
|
395
458
|
};
|
|
396
459
|
const searchMethodConfig = useMemo(() => {
|
|
397
460
|
let filterElements = [];
|
|
398
|
-
if (transactionType?.transactionTypeId)
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
461
|
+
if (transactionType?.transactionTypeId) {
|
|
462
|
+
filterElements = [{
|
|
463
|
+
searchField: "TransactionTypeId",
|
|
464
|
+
searchOperator: "=",
|
|
465
|
+
searchValue: transactionType?.transactionTypeId,
|
|
466
|
+
groupId: 1
|
|
467
|
+
}];
|
|
468
|
+
return {
|
|
469
|
+
requestUrl: `${process.env.REACT_APP_PRODUCT_API_BASE}/UdpTransactionTypeStatus/search`,
|
|
470
|
+
customSearchObject: { filterElements }
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
return {};
|
|
408
474
|
}, [transactionType]);
|
|
409
475
|
return /* @__PURE__ */ React.createElement(SideSheet, {
|
|
410
476
|
open: isSideSheetOpen,
|
|
@@ -801,16 +867,19 @@ const UdpTransactionTypeTransactionActionSidesheet = (props, ref) => {
|
|
|
801
867
|
};
|
|
802
868
|
const searchMethodConfig = useMemo(() => {
|
|
803
869
|
let filterElements = [];
|
|
804
|
-
if (transactionType?.transactionTypeId)
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
870
|
+
if (transactionType?.transactionTypeId) {
|
|
871
|
+
filterElements = [{
|
|
872
|
+
searchField: "TransactionTypeId",
|
|
873
|
+
searchOperator: "=",
|
|
874
|
+
searchValue: transactionType?.transactionTypeId,
|
|
875
|
+
groupId: 1
|
|
876
|
+
}];
|
|
877
|
+
return {
|
|
878
|
+
requestUrl: `${process.env.REACT_APP_PRODUCT_API_BASE}/UdpTransactionTypeTransactionAction/search`,
|
|
879
|
+
customSearchObject: { filterElements }
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
return {};
|
|
814
883
|
}, [transactionType]);
|
|
815
884
|
return /* @__PURE__ */ React.createElement(SideSheet, {
|
|
816
885
|
open: isSideSheetOpen,
|
|
@@ -1444,16 +1513,19 @@ const UdpTransactionTypeConfigurationTransactionActionSidesheet = (props, ref) =
|
|
|
1444
1513
|
};
|
|
1445
1514
|
const searchMethodConfig = useMemo(() => {
|
|
1446
1515
|
let filterElements = [];
|
|
1447
|
-
if (transactionTypeConfiguration?.transactionTypeConfigurationId)
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1516
|
+
if (transactionTypeConfiguration?.transactionTypeConfigurationId) {
|
|
1517
|
+
filterElements = [{
|
|
1518
|
+
searchField: "TransactionTypeConfigurationId",
|
|
1519
|
+
searchOperator: "=",
|
|
1520
|
+
searchValue: transactionTypeConfiguration?.transactionTypeConfigurationId,
|
|
1521
|
+
groupId: 1
|
|
1522
|
+
}];
|
|
1523
|
+
return {
|
|
1524
|
+
requestUrl: `${process.env.REACT_APP_PRODUCT_API_BASE}/UdpTransactionTypeConfigurationTransactionAction/search`,
|
|
1525
|
+
customSearchObject: { filterElements }
|
|
1526
|
+
};
|
|
1527
|
+
}
|
|
1528
|
+
return {};
|
|
1457
1529
|
}, [transactionTypeConfiguration]);
|
|
1458
1530
|
return /* @__PURE__ */ React.createElement(SideSheet, {
|
|
1459
1531
|
open: isSideSheetOpen,
|
|
@@ -1591,16 +1663,19 @@ const UdpTransactionTypeConfigurationSidesheet = (props, ref) => {
|
|
|
1591
1663
|
};
|
|
1592
1664
|
const searchMethodConfig = useMemo(() => {
|
|
1593
1665
|
let filterElements = [];
|
|
1594
|
-
if (transactionType?.transactionTypeId)
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1666
|
+
if (transactionType?.transactionTypeId) {
|
|
1667
|
+
filterElements = [{
|
|
1668
|
+
searchField: "TransactionTypeId",
|
|
1669
|
+
searchOperator: "=",
|
|
1670
|
+
searchValue: transactionType?.transactionTypeId,
|
|
1671
|
+
groupId: 1
|
|
1672
|
+
}];
|
|
1673
|
+
return {
|
|
1674
|
+
requestUrl: `${process.env.REACT_APP_PRODUCT_API_BASE}/UdpTransactionTypeConfiguration/search`,
|
|
1675
|
+
customSearchObject: { filterElements }
|
|
1676
|
+
};
|
|
1677
|
+
}
|
|
1678
|
+
return {};
|
|
1604
1679
|
}, [transactionType]);
|
|
1605
1680
|
return /* @__PURE__ */ React.createElement(SideSheet, {
|
|
1606
1681
|
open: isSideSheetOpen,
|
|
@@ -1779,16 +1854,19 @@ const UdpTransactionAttachmentTypeSidesheet = (props, ref) => {
|
|
|
1779
1854
|
};
|
|
1780
1855
|
const searchMethodConfig = useMemo(() => {
|
|
1781
1856
|
let filterElements = [];
|
|
1782
|
-
if (transactionType?.transactionTypeId)
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1857
|
+
if (transactionType?.transactionTypeId) {
|
|
1858
|
+
filterElements = [{
|
|
1859
|
+
searchField: "TransactionTypeId",
|
|
1860
|
+
searchOperator: "=",
|
|
1861
|
+
searchValue: transactionType?.transactionTypeId,
|
|
1862
|
+
groupId: 1
|
|
1863
|
+
}];
|
|
1864
|
+
return {
|
|
1865
|
+
requestUrl: `${process.env.REACT_APP_PRODUCT_API_BASE}/UdpTransactionAttachmentType/search`,
|
|
1866
|
+
customSearchObject: { filterElements }
|
|
1867
|
+
};
|
|
1868
|
+
}
|
|
1869
|
+
return {};
|
|
1792
1870
|
}, [transactionType]);
|
|
1793
1871
|
return /* @__PURE__ */ React.createElement(SideSheet, {
|
|
1794
1872
|
open: isSideSheetOpen,
|
|
@@ -1958,8 +2036,12 @@ const UdpTransactionTypesPage = () => {
|
|
|
1958
2036
|
const ttsResponse = await searchTransactionTypeStatusByTransactionTypeId(selectedTransactionType?.transactionTypeId);
|
|
1959
2037
|
if (ttsResponse?.status === 200) setTTStatuses(ttsResponse.data?.pageList);
|
|
1960
2038
|
};
|
|
1961
|
-
loadTTStatuses();
|
|
1962
|
-
}, [
|
|
2039
|
+
if (isTransactionTypeStatusSidesheetOpen || isTransactionTypeConfigurationSidesheetOpen) loadTTStatuses();
|
|
2040
|
+
}, [
|
|
2041
|
+
searchTransactionTypeStatusByTransactionTypeId,
|
|
2042
|
+
isTransactionTypeStatusSidesheetOpen,
|
|
2043
|
+
isTransactionTypeConfigurationSidesheetOpen
|
|
2044
|
+
]);
|
|
1963
2045
|
/** TransactionAction */
|
|
1964
2046
|
const [{ data: transactionActions }] = useAxiosGet(process.env.REACT_APP_PRODUCT_API_BASE, `UdpTransactionAction`, { method: "GET" }, false, false);
|
|
1965
2047
|
/** ActionApis */
|
|
@@ -1994,8 +2076,8 @@ const UdpTransactionTypesPage = () => {
|
|
|
1994
2076
|
const tttaResponse = await searchTransactionTypeTransactionActionByTransactionTypeId(selectedTransactionType?.transactionTypeId);
|
|
1995
2077
|
if (tttaResponse?.status === 200) setTTTActions(tttaResponse.data?.pageList);
|
|
1996
2078
|
};
|
|
1997
|
-
loadTTTActions();
|
|
1998
|
-
}, [searchTransactionTypeTransactionActionByTransactionTypeId,
|
|
2079
|
+
if (isTransactionTypeConfigurationTransactionActionSidesheetOpen) loadTTTActions();
|
|
2080
|
+
}, [searchTransactionTypeTransactionActionByTransactionTypeId, isTransactionTypeConfigurationTransactionActionSidesheetOpen]);
|
|
1999
2081
|
/** TransactionUiAction */
|
|
2000
2082
|
const postCreateTransactionUiAction = async (transactionUiAction) => {
|
|
2001
2083
|
return await apiMutate(process.env.REACT_APP_PRODUCT_API_BASE, `UdpTransactionUiAction`, { method: "POST" }, { data: transactionUiAction });
|
|
@@ -2237,7 +2319,8 @@ const UdpTransactionTypesPage = () => {
|
|
|
2237
2319
|
const handleCreateTransactionTypeStatus = useCallback(async (formValues) => {
|
|
2238
2320
|
const newTransactionTypeStatus = {
|
|
2239
2321
|
...formValues,
|
|
2240
|
-
transactionTypeId: selectedTransactionType?.transactionTypeId
|
|
2322
|
+
transactionTypeId: selectedTransactionType?.transactionTypeId,
|
|
2323
|
+
color: formValues?.color?.value || null
|
|
2241
2324
|
};
|
|
2242
2325
|
let hasDefaultOrClosedorCancelledStatus = false;
|
|
2243
2326
|
try {
|
|
@@ -2305,7 +2388,8 @@ const UdpTransactionTypesPage = () => {
|
|
|
2305
2388
|
const transactionTypeStatusId = initialValues.transactionTypeStatusId;
|
|
2306
2389
|
const updatedTransactionTypeStatus = {
|
|
2307
2390
|
...initialValues,
|
|
2308
|
-
...formValues
|
|
2391
|
+
...formValues,
|
|
2392
|
+
color: formValues?.color?.value || null
|
|
2309
2393
|
};
|
|
2310
2394
|
let hasExistingDefaultOrClosedStatus = false;
|
|
2311
2395
|
try {
|
|
@@ -3407,4 +3491,4 @@ var UdpTransactionTypesPage_exports = /* @__PURE__ */ __export({ default: () =>
|
|
|
3407
3491
|
|
|
3408
3492
|
//#endregion
|
|
3409
3493
|
export { UdpTransactionTypesPage_default as n, UdpTransactionTypesPage_exports as t };
|
|
3410
|
-
//# sourceMappingURL=UdpTransactionTypesPage-
|
|
3494
|
+
//# sourceMappingURL=UdpTransactionTypesPage-CUpHKA6y.js.map
|