udp-react-enterprise-component-library 25.1.0-beta.6 → 25.1.1-beta.1
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/{AmbientGridTemplate-BqlMt5Su.js → AmbientGridTemplate-6xfwTiz-.js} +24 -62
- package/dist/AmbientGridTemplate-6xfwTiz-.js.map +1 -0
- package/dist/ClientSideUdpGrid-CEhDqIId.js +56 -0
- package/dist/ClientSideUdpGrid-CEhDqIId.js.map +1 -0
- package/dist/{EnvironmentRibbon-DaDmKAPO.js → EnvironmentRibbon-oEmbWjEq.js} +4 -148
- package/dist/EnvironmentRibbon-oEmbWjEq.js.map +1 -0
- package/dist/{MenuPage-CO6_GWwB.js → MenuPage-CZHpoopY.js} +12 -13
- package/dist/{MenuPage-CO6_GWwB.js.map → MenuPage-CZHpoopY.js.map} +1 -1
- package/dist/{MyExportsPage-CX9tzqHk.js → MyExportsPage-CS2Bw2mF.js} +56 -69
- package/dist/{MyExportsPage-CX9tzqHk.js.map → MyExportsPage-CS2Bw2mF.js.map} +1 -1
- package/dist/MyExportsPage-hyX42CN6.js +11 -0
- package/dist/{PageContainer-k8KCfGsM.js → PageContainer-BPHLFGju.js} +12 -17
- package/dist/PageContainer-BPHLFGju.js.map +1 -0
- package/dist/{PageNotFoundRoute-CxYZNEhN.js → PageNotFoundRoute-D9dLbM_w.js} +1 -1
- package/dist/{PageNotFoundRoute-CxYZNEhN.js.map → PageNotFoundRoute-D9dLbM_w.js.map} +1 -1
- package/dist/PageNotFoundRoute-DUj0Q9J8.js +3 -0
- package/dist/{PasswordResetRedirect-BHnkAW40.js → PasswordResetRedirect-C3g8L0vA.js} +2 -3
- package/dist/{PasswordResetRedirect-BHnkAW40.js.map → PasswordResetRedirect-C3g8L0vA.js.map} +1 -1
- package/dist/PasswordResetRedirect-Dh-S5Ril.js +3 -0
- package/dist/{SearchUtilities-Bor3HbfB.js → SearchUtilities-Btugro8y.js} +11 -20
- package/dist/{SearchUtilities-Bor3HbfB.js.map → SearchUtilities-Btugro8y.js.map} +1 -1
- package/dist/{SideSheet-DUsxG1FN.js → SideSheet-BsDoeNmq.js} +7 -47
- package/dist/SideSheet-BsDoeNmq.js.map +1 -0
- package/dist/UdpMaintenanceConfigPage-DcHntunS.js +88 -0
- package/dist/UdpMaintenanceConfigPage-DcHntunS.js.map +1 -0
- package/dist/UdpPublicForm-DTt-lMfk.js +4 -0
- package/dist/{UdpPublicForm-Caa1tH6z.js → UdpPublicForm-LDSuOwV2.js} +2 -2
- package/dist/{UdpPublicForm-Caa1tH6z.js.map → UdpPublicForm-LDSuOwV2.js.map} +1 -1
- package/dist/{UtilitySideBar-D4CXGtW2.js → UtilitySideBar-95k0edSA.js} +45 -89
- package/dist/{UtilitySideBar-D4CXGtW2.js.map → UtilitySideBar-95k0edSA.js.map} +1 -1
- package/dist/{VirtualBrowser-BXL0hdy0.js → VirtualBrowser-_epMjUkE.js} +23 -29
- package/dist/{VirtualBrowser-BXL0hdy0.js.map → VirtualBrowser-_epMjUkE.js.map} +1 -1
- package/dist/{WorkflowContainer-DrqzuQtU.js → WorkflowContainer-ClPvY2mG.js} +14 -20
- package/dist/{WorkflowContainer-DrqzuQtU.js.map → WorkflowContainer-ClPvY2mG.js.map} +1 -1
- package/dist/WorkflowContainer-D0QUOc-f.js +11 -0
- package/dist/{apiHelpers-DZots3og.js → apiHelpers-CmM6DWAT.js} +7 -12
- package/dist/{apiHelpers-DZots3og.js.map → apiHelpers-CmM6DWAT.js.map} +1 -1
- package/dist/entityUtilities-Dy-jsB5c.js +22 -0
- package/dist/entityUtilities-Dy-jsB5c.js.map +1 -0
- package/dist/index.js +1494 -1984
- package/dist/index.js.map +1 -1
- package/dist/{propertyTypeEnums-Civy7RJv.js → propertyTypeEnums-BCCGQqVB.js} +2 -2
- package/dist/{propertyTypeEnums-Civy7RJv.js.map → propertyTypeEnums-BCCGQqVB.js.map} +1 -1
- package/dist/types/index.d.ts +1 -4
- package/dist/types/maintenanceEngine/crudBrowser/CrudTableColumnDefs.d.ts +1 -9
- package/dist/types/maintenanceEngine/crudBrowser/crudHelper.d.ts +1 -0
- package/dist/types/menuPage/MenuPage.d.ts +2 -1
- package/dist/types/shell/ui/ShellDropdown.d.ts +15 -0
- package/dist/types/shell/ui/SiteHeader.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/udp/pages/UdpMaintenanceConfigPage.d.ts +2 -1
- package/dist/useAxiosGet-Dh5pVURP.js +144 -0
- package/dist/useAxiosGet-Dh5pVURP.js.map +1 -0
- package/dist/useAxiosMutate-DlG255x9.js +43 -0
- package/dist/useAxiosMutate-DlG255x9.js.map +1 -0
- package/package.json +2 -2
- package/dist/AmbientGridTemplate-BqlMt5Su.js.map +0 -1
- package/dist/EnvironmentRibbon-DaDmKAPO.js.map +0 -1
- package/dist/MyExportsPage-CkzQ0MRq.js +0 -8
- package/dist/PageContainer-k8KCfGsM.js.map +0 -1
- package/dist/PageNotFoundRoute-BbBtA9Cz.js +0 -3
- package/dist/PasswordResetRedirect-tUV2yEkH.js +0 -3
- package/dist/SideSheet-DUsxG1FN.js.map +0 -1
- package/dist/UdpPublicForm-Cvw5tOHe.js +0 -4
- package/dist/WorkflowContainer-Q8gtuaB7.js +0 -9
- package/dist/types/maintenanceEngine/crudBrowser/CrudTableActionRender.d.ts +0 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { APP_RIBBON_SPACE, CardinalityTypeEnums, FluentButton, FluentIconButton, LayoutUnit, NodeGroupOutlierEnums, NodeGroupTypeEnums, SeverityTypeEnums, StatusChip, executeQueryInstance, getEllipseColor,
|
|
2
|
-
import {
|
|
1
|
+
import { APP_RIBBON_SPACE, CardinalityTypeEnums, FluentButton, FluentIconButton, LayoutUnit, NodeGroupOutlierEnums, NodeGroupTypeEnums, SeverityTypeEnums, StatusChip, executeQueryInstance, getEllipseColor, useBuildEnvironment } from "./EnvironmentRibbon-oEmbWjEq.js";
|
|
2
|
+
import { toLowerFirstChar, toUpperFirstChar, useAxiosGet } from "./useAxiosGet-Dh5pVURP.js";
|
|
3
|
+
import { getSearchIdentifiers, getSearchObject } from "./SearchUtilities-Btugro8y.js";
|
|
3
4
|
import React, { memo, useCallback, useEffect, useMemo, useState } from "react";
|
|
4
5
|
import { Button, ButtonBase, CardContent, CardMedia, CircularProgress, Collapse, Paper, Typography, lighten, makeStyles, useTheme } from "@material-ui/core";
|
|
5
6
|
import { ConfigService } from "udp-react-stencil-component-library";
|
|
@@ -27,16 +28,13 @@ import { ResizableBox } from "react-resizable";
|
|
|
27
28
|
*/
|
|
28
29
|
const getPropertyMappingList = (obj) => {
|
|
29
30
|
const mappings = [];
|
|
30
|
-
if (obj) {
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
mappings.push(mappingObj);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
31
|
+
if (obj) Object.keys(obj).forEach((key) => {
|
|
32
|
+
const mappingObj = {
|
|
33
|
+
variable: key,
|
|
34
|
+
value: obj[key]
|
|
35
|
+
};
|
|
36
|
+
mappings.push(mappingObj);
|
|
37
|
+
});
|
|
40
38
|
return mappings;
|
|
41
39
|
};
|
|
42
40
|
/**
|
|
@@ -61,16 +59,10 @@ const getPropertyMappingObj = (properties) => {
|
|
|
61
59
|
*/
|
|
62
60
|
const mapRuleData = (mapping, data) => {
|
|
63
61
|
const mappedData = {};
|
|
64
|
-
if (mapping && mapping.length) {
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
if (dataKey) {
|
|
69
|
-
const dataValue = data[dataKey];
|
|
70
|
-
mappedData[key] = dataValue;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|
|
62
|
+
if (mapping && mapping.length) Object.keys(mapping).forEach((key) => {
|
|
63
|
+
const dataKey = mapping[key];
|
|
64
|
+
if (dataKey) mappedData[key] = data[dataKey];
|
|
65
|
+
});
|
|
74
66
|
return mappedData;
|
|
75
67
|
};
|
|
76
68
|
/**
|
|
@@ -166,11 +158,9 @@ const makeTreeStructure = (treeData, key, parentKey, parentGroupKey = "parentGro
|
|
|
166
158
|
});
|
|
167
159
|
while (nodes.length > 0) {
|
|
168
160
|
const node = nodes.pop();
|
|
169
|
-
|
|
170
|
-
children.forEach((child) => {
|
|
161
|
+
treeData.filter((data) => data[parentKey] === node[key] || data[parentGroupKey] === node[key]).forEach((child) => {
|
|
171
162
|
if (child?.isGroupNode) {
|
|
172
|
-
|
|
173
|
-
if (!existingGroup) {
|
|
163
|
+
if (!existingGroups.find((eg) => eg.id === child.id && eg.parentGroupId === child.parentGroupId)) {
|
|
174
164
|
existingGroups.push(child);
|
|
175
165
|
node.children.push(child);
|
|
176
166
|
nodes.push(child);
|
|
@@ -213,8 +203,7 @@ const makeTreeStaticGroupStructure = (treeData, key, parentKey, groupType = Node
|
|
|
213
203
|
});
|
|
214
204
|
while (nodes.length > 0) {
|
|
215
205
|
const node = nodes.pop();
|
|
216
|
-
|
|
217
|
-
children.forEach((child) => {
|
|
206
|
+
treeData.filter((data) => data[parentKey] === node[key]).forEach((child) => {
|
|
218
207
|
node.children.push(child);
|
|
219
208
|
nodes.push(child);
|
|
220
209
|
});
|
|
@@ -288,8 +277,7 @@ const makeDynamicTreeStructure = (treeData, key, parentKey) => {
|
|
|
288
277
|
});
|
|
289
278
|
while (nodes.length > 0) {
|
|
290
279
|
const node = nodes.pop();
|
|
291
|
-
|
|
292
|
-
children.forEach((child) => {
|
|
280
|
+
treeData.filter((data) => data[parentKey] === node[key]).forEach((child) => {
|
|
293
281
|
node.children.push(child);
|
|
294
282
|
nodes.push(child);
|
|
295
283
|
});
|
|
@@ -299,8 +287,7 @@ const makeDynamicTreeStructure = (treeData, key, parentKey) => {
|
|
|
299
287
|
};
|
|
300
288
|
const getIconFromName = (name) => {
|
|
301
289
|
if (!name) return null;
|
|
302
|
-
|
|
303
|
-
if (substr.toLowerCase() !== "icon") {
|
|
290
|
+
if (name.slice(-4).toLowerCase() !== "icon") {
|
|
304
291
|
const updatedName = `${name}Icon`;
|
|
305
292
|
return Icons[updatedName] || null;
|
|
306
293
|
} else return Icons[name] || null;
|
|
@@ -343,8 +330,7 @@ const deleteNodeAndChildren = (treeData, nodeId) => {
|
|
|
343
330
|
return updatedTreeData.filter((node) => !nodeIdsToDelete.includes(node.id));
|
|
344
331
|
};
|
|
345
332
|
const getAllChildrenNodesToDelete = (treeData, nodeId, nodeIdsToDelete) => {
|
|
346
|
-
|
|
347
|
-
nodesToDelete.forEach((node) => {
|
|
333
|
+
treeData.filter((node) => node.parentId === nodeId).forEach((node) => {
|
|
348
334
|
nodeIdsToDelete.push(node.id);
|
|
349
335
|
getAllChildrenNodesToDelete(treeData, node.id, nodeIdsToDelete);
|
|
350
336
|
});
|
|
@@ -394,19 +380,13 @@ const processReferences = (reference, objectReferenceKeys, treeData, index, tree
|
|
|
394
380
|
mapNodeGroupChildren(nodeGroup, nodeGroupChildren);
|
|
395
381
|
nodeGroup.parentGroupId = nodeCopy.parentId;
|
|
396
382
|
});
|
|
397
|
-
if (!processedItem.itemAdded && node?.properties?.groupConfiguration?.outlier === NodeGroupOutlierEnums.Individual)
|
|
398
|
-
const nodeIsHidden = checkNodeIsHidden(nodeCopy, ref, wasLazyLoaded);
|
|
399
|
-
!nodeIsHidden && treeList.push(nodeCopy);
|
|
400
|
-
}
|
|
383
|
+
if (!processedItem.itemAdded && node?.properties?.groupConfiguration?.outlier === NodeGroupOutlierEnums.Individual) !checkNodeIsHidden(nodeCopy, ref, wasLazyLoaded) && treeList.push(nodeCopy);
|
|
401
384
|
} else if (node?.properties?.groupConfiguration?.groupType === NodeGroupTypeEnums.Dynamic) nodeGroups.forEach((nodeGroup) => {
|
|
402
385
|
nodeGroup.parentGroupId = nodeCopy.parentId;
|
|
403
386
|
nodeGroup.parentId = nodeCopy.parentId;
|
|
404
387
|
processGroupNodesAndAddToTreeList(nodeGroup, treeList, nodeCopy.parentId, ref, wasLazyLoaded);
|
|
405
388
|
});
|
|
406
|
-
} else
|
|
407
|
-
const nodeIsHidden = checkNodeIsHidden(nodeCopy, ref, wasLazyLoaded);
|
|
408
|
-
!nodeIsHidden && treeList.push(nodeCopy);
|
|
409
|
-
}
|
|
389
|
+
} else !checkNodeIsHidden(nodeCopy, ref, wasLazyLoaded) && treeList.push(nodeCopy);
|
|
410
390
|
if (nodeCopy?.children?.length) {
|
|
411
391
|
const objectReferenceKeysCopy = [...objectReferenceKeys];
|
|
412
392
|
nodeCopy.children.forEach((childNode, i$1) => {
|
|
@@ -422,8 +402,7 @@ const processReferences = (reference, objectReferenceKeys, treeData, index, tree
|
|
|
422
402
|
processObjIndex(node, reference, 0, parentId, catalogObjects, promotedEntities, wasLazyLoaded);
|
|
423
403
|
if (node) {
|
|
424
404
|
const nodeCopy = cloneDeep(node);
|
|
425
|
-
|
|
426
|
-
!nodeIsHidden && treeList.push(nodeCopy);
|
|
405
|
+
!checkNodeIsHidden(nodeCopy, reference, wasLazyLoaded) && treeList.push(nodeCopy);
|
|
427
406
|
if (nodeCopy?.children?.length) {
|
|
428
407
|
const objectReferenceKeysCopy = [...objectReferenceKeys];
|
|
429
408
|
nodeCopy.children.forEach((childNode, i) => {
|
|
@@ -562,9 +541,8 @@ const getLazyLoadChildrenArr = (node, catalogObjects, promotedEntities) => {
|
|
|
562
541
|
let searchJoiningEntity = "";
|
|
563
542
|
if (!isManyToManySearch && node.nodeObj.hasOwnProperty(node.properties.joiningEntityCatalogObjectKey)) searchJoiningEntity = node.properties.joiningEntityCatalogObjectKey;
|
|
564
543
|
const foreignKeyName = keyValArr[0] ? keyValArr[0].trim() : "";
|
|
565
|
-
const parentIdentifierName = keyValArr[1] ? keyValArr[1].trim() : "";
|
|
566
544
|
let siObj = {
|
|
567
|
-
searchNameKey:
|
|
545
|
+
searchNameKey: keyValArr[1] ? keyValArr[1].trim() : "",
|
|
568
546
|
searchValueKey: /^[A-Z]*$/.test(foreignKeyName) ? foreignKeyName.toLowerCase() : toLowerFirstChar(foreignKeyName),
|
|
569
547
|
searchJoiningEntity
|
|
570
548
|
};
|
|
@@ -653,13 +631,11 @@ const findAllParentIds = (menuItems, currentParentNode, allParentIds = []) => {
|
|
|
653
631
|
return allParentIds;
|
|
654
632
|
};
|
|
655
633
|
const formatTreeLabel = (label, obj) => {
|
|
656
|
-
const
|
|
657
|
-
const keys = fields?.map((field) => field.trim());
|
|
634
|
+
const keys = (label?.split("+"))?.map((field) => field.trim());
|
|
658
635
|
if (keys) {
|
|
659
636
|
const skippableKeys = [];
|
|
660
637
|
const updatedKeys = keys.map((key, index) => {
|
|
661
|
-
|
|
662
|
-
if (matchedKey) {
|
|
638
|
+
if (key.charAt(0) === "\"") {
|
|
663
639
|
skippableKeys.push(index);
|
|
664
640
|
key = key.replace(/"/g, "");
|
|
665
641
|
}
|
|
@@ -758,8 +734,7 @@ const findNodesByIdAndLabel = (tree, id, label) => {
|
|
|
758
734
|
};
|
|
759
735
|
const updateNodeForStaticGrouping = (displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item) => {
|
|
760
736
|
const updatedDisplayTree = { ...displayTree };
|
|
761
|
-
|
|
762
|
-
if (!nodeIsHidden) {
|
|
737
|
+
if (!checkNodeIsHidden(updatedDisplayTree, item, false)) {
|
|
763
738
|
updatedDisplayTree.children = displayTree.children ? cloneDeep(displayTree.children) : displayTree.children;
|
|
764
739
|
updatedDisplayTree["parentId"] = nodeGroup.id;
|
|
765
740
|
updatedDisplayTree["parentGroupId"] = nodeGroup.id;
|
|
@@ -777,10 +752,7 @@ const processItemForStaticNodeGroup = (nodeGroup, item, groupedItemIndexes, disp
|
|
|
777
752
|
if (rule && evaluateRule(rule, item, item.properties?.joiningEntityCatalogObjectKey, false)) {
|
|
778
753
|
let itemAdded = false;
|
|
779
754
|
nodeGroup.children.forEach((childGroup) => {
|
|
780
|
-
if (childGroup.isGroupNode) {
|
|
781
|
-
const processedItem = processItemForStaticNodeGroup(childGroup, item, groupedItemIndexes, displayTree, index, childGroup.children.length ? /* @__PURE__ */ new Set() : scopedGroupItemIndexes, treeList, nodeChildren) || { itemAdded };
|
|
782
|
-
itemAdded = processedItem?.itemAdded;
|
|
783
|
-
}
|
|
755
|
+
if (childGroup.isGroupNode) itemAdded = (processItemForStaticNodeGroup(childGroup, item, groupedItemIndexes, displayTree, index, childGroup.children.length ? /* @__PURE__ */ new Set() : scopedGroupItemIndexes, treeList, nodeChildren) || { itemAdded })?.itemAdded;
|
|
784
756
|
});
|
|
785
757
|
if (!itemAdded) {
|
|
786
758
|
updateNodeForStaticGrouping(displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item);
|
|
@@ -789,11 +761,7 @@ const processItemForStaticNodeGroup = (nodeGroup, item, groupedItemIndexes, disp
|
|
|
789
761
|
}
|
|
790
762
|
} else if (nodeGroup.isOutlierGroup && !groupedItemIndexes.has(index)) updateNodeForStaticGrouping(displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item);
|
|
791
763
|
if (treeList && nodeGroup.isGroupNode) {
|
|
792
|
-
|
|
793
|
-
if (!existingGroup) {
|
|
794
|
-
const nodeIsHidden = checkNodeIsHidden(nodeGroup, item, false);
|
|
795
|
-
!nodeIsHidden && treeList.push(nodeGroup);
|
|
796
|
-
}
|
|
764
|
+
if (!treeList.filter((node) => node.isGroupNode).find((eg) => eg.id === nodeGroup.id)) !checkNodeIsHidden(nodeGroup, item, false) && treeList.push(nodeGroup);
|
|
797
765
|
}
|
|
798
766
|
return {
|
|
799
767
|
itemAdded: groupedItemIndexes.has(index),
|
|
@@ -894,8 +862,7 @@ const constructDynamicNodeGroups = (results, tree, shouldUseNewId = false) => {
|
|
|
894
862
|
processObjectToTree(item, orderedTreeData, orderedKeys, treeArr, null, null, false, innerGroupList);
|
|
895
863
|
const displayTree = makeTreeStructure(treeArr, "id", "parentId");
|
|
896
864
|
const updatedDisplayTree = cloneDeep(displayTree);
|
|
897
|
-
|
|
898
|
-
!nodeIsHidden && processItemForDynamicNodeGroups(updatedDisplayTree, dynamicTreeStructure, groupSet, groupSet, isSingleGroup);
|
|
865
|
+
!checkNodeIsHidden(updatedDisplayTree, item, false) && processItemForDynamicNodeGroups(updatedDisplayTree, dynamicTreeStructure, groupSet, groupSet, isSingleGroup);
|
|
899
866
|
});
|
|
900
867
|
groupSet.forEach((group) => updateTreeIds(group, null, v4(), v4(), null));
|
|
901
868
|
nodeGroups = nodeGroups.concat(groupSet);
|
|
@@ -1002,8 +969,7 @@ const processGroupNodesAndAddToTreeList = (node, treeList, lastEntityNodeId, ite
|
|
|
1002
969
|
if (!treeList.find((tree) => tree.id === node.id)) {
|
|
1003
970
|
if (!node.isGroupNode && entityNodeParentId) node["entityNodeParentId"] = entityNodeParentId;
|
|
1004
971
|
if (!node.isGroupNode) entityNodeParentId = node.id;
|
|
1005
|
-
|
|
1006
|
-
!nodeIsHidden && treeList.push(node);
|
|
972
|
+
!checkNodeIsHidden(node, item, wasLazyLoaded) && treeList.push(node);
|
|
1007
973
|
}
|
|
1008
974
|
}
|
|
1009
975
|
if (node?.children?.length) node.children.forEach((child) => processGroupNodesAndAddToTreeList(child, treeList, entityNodeParentId, item, wasLazyLoaded));
|
|
@@ -1064,8 +1030,7 @@ const constructPreloadedTree = (treeStructure, pageList) => {
|
|
|
1064
1030
|
processOrderedTreeData(tree, orderedTreeData);
|
|
1065
1031
|
processObjectToTree(item, orderedTreeData, orderedKeys, treeArr, null, null, false);
|
|
1066
1032
|
const displayTree = makeTreeStructure(treeArr, "id", "parentId");
|
|
1067
|
-
|
|
1068
|
-
if (!nodeIsHidden) {
|
|
1033
|
+
if (!checkNodeIsHidden(displayTree, item, false)) {
|
|
1069
1034
|
updateTreeIds(displayTree, null, v4(), v4(), null);
|
|
1070
1035
|
preloadedList.push(displayTree);
|
|
1071
1036
|
}
|
|
@@ -1082,8 +1047,7 @@ const constructPreloadedTree = (treeStructure, pageList) => {
|
|
|
1082
1047
|
processOrderedTreeData(tree, orderedTreeData);
|
|
1083
1048
|
processObjectToTree(item, orderedTreeData, orderedKeys, treeArr);
|
|
1084
1049
|
const displayTree = makeTreeStructure(treeArr, "id", "parentId");
|
|
1085
|
-
|
|
1086
|
-
!nodeIsHidden && preloadedList.push(displayTree);
|
|
1050
|
+
!checkNodeIsHidden(displayTree, item, false) && preloadedList.push(displayTree);
|
|
1087
1051
|
});
|
|
1088
1052
|
return preloadedList;
|
|
1089
1053
|
};
|
|
@@ -1175,8 +1139,7 @@ const createDynamicGroups2 = (_treeConfig, _groupConfig, _item, _curItem, _pList
|
|
|
1175
1139
|
let newResultSet = _item[propToGetRecords];
|
|
1176
1140
|
if (newResultSet && newResultSet != null) if (Array.isArray(newResultSet)) newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
|
|
1177
1141
|
else {
|
|
1178
|
-
|
|
1179
|
-
tmpNewResultSet.push(newResultSet);
|
|
1142
|
+
[].push(newResultSet);
|
|
1180
1143
|
newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
|
|
1181
1144
|
}
|
|
1182
1145
|
}
|
|
@@ -1237,8 +1200,7 @@ const constructDynamicNodeGroups2 = (results, configNode, parentId = null) => {
|
|
|
1237
1200
|
let newResultSet = item[propToGetRecords];
|
|
1238
1201
|
if (newResultSet && newResultSet != null) if (Array.isArray(newResultSet)) newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
|
|
1239
1202
|
else {
|
|
1240
|
-
|
|
1241
|
-
tmpNewResultSet.push(newResultSet);
|
|
1203
|
+
[].push(newResultSet);
|
|
1242
1204
|
newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
|
|
1243
1205
|
}
|
|
1244
1206
|
}
|
|
@@ -1290,10 +1252,7 @@ const mapNodeObjValuesToSearchParameters = (nodeObj, aggregateThresholdParamMapp
|
|
|
1290
1252
|
const mappings = { ...aggregateThresholdParamMappings };
|
|
1291
1253
|
Object.keys(mappings).forEach((key) => {
|
|
1292
1254
|
const nodeObjKey = mappings[key];
|
|
1293
|
-
if (nodeObjKey)
|
|
1294
|
-
const nodeObjValue = nodeObj[nodeObjKey];
|
|
1295
|
-
mappings[key] = nodeObjValue || "";
|
|
1296
|
-
}
|
|
1255
|
+
if (nodeObjKey) mappings[key] = nodeObj[nodeObjKey] || "";
|
|
1297
1256
|
});
|
|
1298
1257
|
return mappings;
|
|
1299
1258
|
};
|
|
@@ -1320,8 +1279,7 @@ const unityIcons = [{
|
|
|
1320
1279
|
type: "unity"
|
|
1321
1280
|
}];
|
|
1322
1281
|
const getUnityIconFromName = (name) => {
|
|
1323
|
-
|
|
1324
|
-
return foundIcon?.icon || null;
|
|
1282
|
+
return unityIcons.find((icon) => icon.id === name)?.icon || null;
|
|
1325
1283
|
};
|
|
1326
1284
|
|
|
1327
1285
|
//#endregion
|
|
@@ -1780,14 +1738,13 @@ MemoizedAlert.displayName = "MemoizedAlert";
|
|
|
1780
1738
|
const AlertPill = (props) => {
|
|
1781
1739
|
const { variant = "filled", handleClick, maxCount, errorCount, warningCount, successCount, infoCount, defaultCount, errorLabel, warningLabel, successLabel, infoLabel, defaultLabel, hideError = false, hideWarning = false, hideSuccess = false, hideInfo = false, hideDefault = false } = props;
|
|
1782
1740
|
const classes = useStyles$1(props);
|
|
1783
|
-
const variantMapping = {
|
|
1784
|
-
filled: "filled",
|
|
1785
|
-
standard: "hint",
|
|
1786
|
-
outlined: "outlined",
|
|
1787
|
-
text: ""
|
|
1788
|
-
};
|
|
1789
1741
|
const alertProps = {
|
|
1790
|
-
variant:
|
|
1742
|
+
variant: {
|
|
1743
|
+
filled: "filled",
|
|
1744
|
+
standard: "hint",
|
|
1745
|
+
outlined: "outlined",
|
|
1746
|
+
text: ""
|
|
1747
|
+
}[variant],
|
|
1791
1748
|
classes: {
|
|
1792
1749
|
root: classes.alertRoot,
|
|
1793
1750
|
icon: classes.alertIcon
|
|
@@ -1849,8 +1806,7 @@ const AggregateChip = (props) => {
|
|
|
1849
1806
|
useEffect(() => {
|
|
1850
1807
|
const setAggregateData = async (apiMethodInstanceId, valueKey) => {
|
|
1851
1808
|
setLoading(true);
|
|
1852
|
-
const
|
|
1853
|
-
const response = await executeQueryInstance(data, apiMethodInstanceId).catch((res) => setLoading(false));
|
|
1809
|
+
const response = await executeQueryInstance(aggregateThresholdParamMappings ? { data: aggregateThresholdParamMappings } : { data: {} }, apiMethodInstanceId).catch((res) => setLoading(false));
|
|
1854
1810
|
if (response?.status === 200 && valueKey) {
|
|
1855
1811
|
const aggregateResult = response.data?.aggregateResults && response.data?.aggregateResults[0];
|
|
1856
1812
|
if (aggregateResult) setAggregateValue(aggregateResult[valueKey] ? Math.round(aggregateResult[valueKey]) : "");
|
|
@@ -2020,4 +1976,4 @@ const UtilitySideBar = (props) => {
|
|
|
2020
1976
|
|
|
2021
1977
|
//#endregion
|
|
2022
1978
|
export { Adornment, AggregateChip, AlertPill, AmbientCard, AmbientCardButton, GroupNode, NodeLoader, SidebarCollapseButton, UtilityBarInport, UtilityBarInportTarget, UtilitySideBar, checkNodeIsHidden, collapseAllNodes, constructBusinessObjectArrFromTree, constructDynamicNodeGroups, constructDynamicNodeGroups2, constructPreloadedTree, constructStaticNodeGroups, deleteNode, deleteNodeAndChildren, evaluateRule, expandAllNodes, findAllParentIds, findLastNode, findNodeById, findNodeByIdAndLabel, findNodesByIdAndLabel, formatTreeLabel, formatTreeMenuItem, getAllChildrenNodesToDelete, getDisplayDetails, getDisplayName, getHeaderTitle, getIconFromName, getLazyLoadChildrenArr, getNodeIdForRightBorder, getOrderedDynamicGroups, getPropertyMappingList, getPropertyMappingObj, getSearchValueString, getUnityIconFromName, makeDynamicGroupStructures, makeDynamicTreeStructure, makeTreeStaticGroupStructure, makeTreeStructure, mapNodeGroupChildren, mapNodeObjValuesToSearchParameters, mapRule, mapRuleData, processCatalogObjectKeysInOrder, processItemForDynamicNodeGroups, processItemForStaticNodeGroup, processObjIndex, processObjectToTree, processOrderedTreeData, processReferences, searchForMatchingNode, searchTree, transformMenuPageTree, unityIcons, updateTreeIds };
|
|
2023
|
-
//# sourceMappingURL=UtilitySideBar-
|
|
1979
|
+
//# sourceMappingURL=UtilitySideBar-95k0edSA.js.map
|