udp-react-enterprise-component-library 1.0.5-beta.2 → 1.0.6

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 (976) hide show
  1. package/{dist-tsdown/AmbientGridTemplate-C4cO-UBE.js → dist/AmbientGridTemplate-BLwgiqwK.js} +800 -1133
  2. package/dist/AmbientGridTemplate-BLwgiqwK.js.map +1 -0
  3. package/{dist-tsdown/EnvironmentRibbon-W5AjvnLN.js → dist/EnvironmentRibbon-BMvQEZPZ.js} +91 -108
  4. package/dist/EnvironmentRibbon-BMvQEZPZ.js.map +1 -0
  5. package/{dist-tsdown/MenuPage-DsZUwqyz.js → dist/MenuPage-DLsNc-P8.js} +104 -160
  6. package/{dist-tsdown/MenuPage-DsZUwqyz.js.map → dist/MenuPage-DLsNc-P8.js.map} +1 -1
  7. package/{dist-tsdown/MyExportsPage-DWbSEbU5.js → dist/MyExportsPage-BYH2Wl9k.js} +120 -151
  8. package/dist/{MyExportsPage-B-xwnIEc.js.map → MyExportsPage-BYH2Wl9k.js.map} +1 -1
  9. package/dist/MyExportsPage-CVUIXWTf.js +8 -0
  10. package/{dist-tsdown/PageContainer-CWhjU1zS.js → dist/PageContainer-B65gsUfF.js} +401 -599
  11. package/dist/PageContainer-B65gsUfF.js.map +1 -0
  12. package/dist/PageNotFoundRoute-BbBtA9Cz.js +3 -0
  13. package/dist/PageNotFoundRoute-CxYZNEhN.js +69 -0
  14. package/{dist-tsdown/PageNotFoundRoute-Z5qYmErL.js.map → dist/PageNotFoundRoute-CxYZNEhN.js.map} +1 -1
  15. package/{dist-tsdown/PasswordResetRedirect-D6RVOdwy.js → dist/PasswordResetRedirect-BHnkAW40.js} +24 -34
  16. package/{dist-tsdown/PasswordResetRedirect-D6RVOdwy.js.map → dist/PasswordResetRedirect-BHnkAW40.js.map} +1 -1
  17. package/dist/{PasswordResetRedirect-CX9MEbof.js → PasswordResetRedirect-tUV2yEkH.js} +1 -1
  18. package/{dist-tsdown/SearchUtilities-URbeAh75.js → dist/SearchUtilities-dbXvMYoa.js} +5 -5
  19. package/dist/SearchUtilities-dbXvMYoa.js.map +1 -0
  20. package/{dist-tsdown/SideSheet-DcEfnfH_.js → dist/SideSheet-CPHhyWLB.js} +99 -132
  21. package/dist/SideSheet-CPHhyWLB.js.map +1 -0
  22. package/dist/UdpPublicForm-BrVSSMCN.js +4 -0
  23. package/dist/{UdpPublicForm-BNe1yTjb.js → UdpPublicForm-DFCL1GzD.js} +16 -7
  24. package/{dist-tsdown/UdpPublicForm-EOSy6X_O.js.map → dist/UdpPublicForm-DFCL1GzD.js.map} +1 -1
  25. package/{dist-tsdown/UtilitySideBar-D4Gdx13d.js → dist/UtilitySideBar-B4r2IAv5.js} +185 -303
  26. package/{dist-tsdown/UtilitySideBar-D4Gdx13d.js.map → dist/UtilitySideBar-B4r2IAv5.js.map} +1 -1
  27. package/{dist-tsdown/VirtualBrowser-OXhftZwa.js → dist/VirtualBrowser-C_IJ0I6f.js} +64 -85
  28. package/dist/VirtualBrowser-C_IJ0I6f.js.map +1 -0
  29. package/dist/WorkflowContainer-8-mmebY0.js +9 -0
  30. package/{dist-tsdown/WorkflowContainer-C2W0pr5f.js → dist/WorkflowContainer-DKwRWi1i.js} +200 -319
  31. package/dist/WorkflowContainer-DKwRWi1i.js.map +1 -0
  32. package/{dist-tsdown/apiHelpers-DtpC3VqG.js → dist/apiHelpers-t3rfkjFZ.js} +9 -13
  33. package/{dist-tsdown/apiHelpers-DtpC3VqG.js.map → dist/apiHelpers-t3rfkjFZ.js.map} +1 -1
  34. package/dist/index.js +10584 -15705
  35. package/dist/index.js.map +1 -1
  36. package/{dist-tsdown/propertyTypeEnums-CaDtepcE.js → dist/propertyTypeEnums-DTGsK5-s.js} +22 -30
  37. package/dist/propertyTypeEnums-DTGsK5-s.js.map +1 -0
  38. package/dist/types/AGLicense.d.ts +1 -0
  39. package/dist/types/UI/AlertContainer.d.ts +1 -0
  40. package/dist/types/UI/Box.d.ts +2 -0
  41. package/dist/types/UI/Grid.d.ts +1 -0
  42. package/dist/types/UI/SuccessAction.d.ts +1 -0
  43. package/dist/types/UI/accordion/Accordion.d.ts +1 -0
  44. package/dist/types/UI/advancedSearchBuilder/UdpAdvancedSearchBuilder.d.ts +2 -0
  45. package/dist/types/UI/charts/InsightRenderer.d.ts +20 -0
  46. package/dist/types/UI/charts/UdpBarChart.d.ts +7 -0
  47. package/dist/types/UI/charts/UdpDistributionChart.d.ts +5 -0
  48. package/dist/types/UI/charts/UdpDonutChart.d.ts +8 -0
  49. package/dist/types/UI/charts/UdpLineChart.d.ts +7 -0
  50. package/dist/types/UI/charts/index.d.ts +6 -0
  51. package/dist/types/UI/charts/types.d.ts +62 -0
  52. package/dist/types/UI/components/dataDisplay/Ellipse.d.ts +8 -0
  53. package/dist/types/UI/components/dataDisplay/EmailDisplay.d.ts +1 -0
  54. package/dist/types/UI/components/dataDisplay/SmsDisplay.d.ts +1 -0
  55. package/dist/types/UI/components/dataDisplay/Sticky.d.ts +8 -0
  56. package/dist/types/UI/components/dataDisplay/Token.d.ts +13 -0
  57. package/dist/types/UI/components/feedback/Adornment.d.ts +6 -0
  58. package/dist/types/UI/containers/DynamicContainerWithMenu.d.ts +1 -0
  59. package/dist/types/UI/dataDisplay/AmbientList.d.ts +15 -0
  60. package/dist/types/UI/dataDisplay/AvatarAlphabet.d.ts +1 -0
  61. package/dist/types/UI/dataDisplay/ChipAlphabet.d.ts +6 -0
  62. package/dist/types/UI/dataDisplay/CompactDataList.d.ts +1 -0
  63. package/dist/types/UI/dataDisplay/CompactDataListItem.d.ts +1 -0
  64. package/dist/types/UI/dataDisplay/EmptyStateDisplay.d.ts +19 -0
  65. package/dist/types/UI/dataDisplay/FluentActivity/FluentActivity.d.ts +1 -0
  66. package/dist/types/UI/dataDisplay/FluentActivity/FluentActivityRow.d.ts +1 -0
  67. package/dist/types/UI/dataDisplay/FluentDataTable/FluentBody/index.d.ts +8 -0
  68. package/dist/types/UI/dataDisplay/FluentDataTable/FluentCell/index.d.ts +78 -0
  69. package/dist/types/UI/dataDisplay/FluentDataTable/FluentDataTable.d.ts +11 -0
  70. package/dist/types/UI/dataDisplay/FluentDataTable/FluentHead/index.d.ts +9 -0
  71. package/dist/types/UI/dataDisplay/FluentDataTable/FluentRow/index.d.ts +8 -0
  72. package/dist/types/UI/dataDisplay/FluentListElement.d.ts +8 -0
  73. package/dist/types/UI/dataDisplay/FluentListItem.d.ts +1 -0
  74. package/dist/types/UI/dataDisplay/GraphCard.d.ts +31 -0
  75. package/dist/types/UI/dataDisplay/HeaderExpander.d.ts +31 -0
  76. package/dist/types/UI/dataDisplay/HintPanel.d.ts +10 -0
  77. package/dist/types/UI/dataDisplay/StatusChip.d.ts +9 -0
  78. package/dist/types/UI/dataDisplay/StatusFlags.d.ts +31 -0
  79. package/dist/types/UI/dataDisplay/SummaryBlock.d.ts +30 -0
  80. package/dist/types/UI/dataDisplay/TimelineCalendar.d.ts +1 -0
  81. package/dist/types/UI/dataDisplay/address/AddressListItem.d.ts +3 -0
  82. package/dist/types/UI/dataDisplay/cardList/CardList.d.ts +40 -0
  83. package/dist/types/UI/dataDisplay/cardList/enum.d.ts +5 -0
  84. package/dist/types/UI/dataDisplay/directory/Directory.d.ts +9 -0
  85. package/dist/types/UI/dataDisplay/directory/DirectoryListItem.d.ts +4 -0
  86. package/dist/types/UI/dataDisplay/entityHeader/EntityHeader.d.ts +13 -0
  87. package/dist/types/UI/dataDisplay/entityHeader/functions/groupSectionData.d.ts +1 -0
  88. package/dist/types/UI/dataDisplay/entityHeader/functions/useDivideArrayIntoGroups.d.ts +2 -0
  89. package/dist/types/UI/dataDisplay/entityHeader/functions/useElementWidth.d.ts +15 -0
  90. package/dist/types/UI/dataDisplay/entityHeader/ui/AlertPill.d.ts +47 -0
  91. package/dist/types/UI/dataDisplay/entityHeader/ui/EntityHeaderContainer.d.ts +16 -0
  92. package/dist/types/UI/dataDisplay/entityHeader/ui/EntityHeaderFlags.d.ts +4 -0
  93. package/dist/types/UI/dataDisplay/entityHeader/ui/EntityHeaderList.d.ts +1 -0
  94. package/dist/types/UI/dataDisplay/entityHeader/ui/EntityHeaderListItem.d.ts +1 -0
  95. package/dist/types/UI/dataDisplay/entityHeader/ui/EntityHeaderSection.d.ts +16 -0
  96. package/dist/types/UI/dataDisplay/entityHeader/ui/EntityHeaderStatList.d.ts +1 -0
  97. package/dist/types/UI/dataDisplay/entityHeader/ui/EntityHeaderStatListItem.d.ts +1 -0
  98. package/dist/types/UI/dataDisplay/entityHeader/ui/EntityHeaderStats.d.ts +4 -0
  99. package/dist/types/UI/dataDisplay/map/ColorKey.d.ts +16 -0
  100. package/dist/types/UI/dataDisplay/map/FluentIconKey.d.ts +2 -0
  101. package/dist/types/UI/dataDisplay/map/IconKey.d.ts +16 -0
  102. package/dist/types/UI/dataDisplay/notes/Note.d.ts +7 -0
  103. package/dist/types/UI/dataDisplay/notes/Notes.d.ts +11 -0
  104. package/dist/types/UI/dataDisplay/ticketCard/NotificationElement.d.ts +11 -0
  105. package/dist/types/UI/dataDisplay/ticketCard/StatusLineItem.d.ts +31 -0
  106. package/dist/types/UI/dataDisplay/ticketCard/TicketCard.d.ts +39 -0
  107. package/dist/types/UI/dataDisplay/typography/FormHeaders.d.ts +2 -0
  108. package/dist/types/UI/dataDisplay/typography/SideSheetHeader.d.ts +4 -0
  109. package/dist/types/UI/dataDisplay/typography/SidebarHeader.d.ts +1 -0
  110. package/dist/types/UI/dataDisplay/typography/StandardTitle.d.ts +1 -0
  111. package/dist/types/UI/dataDisplay/typography/StylizedTitle.d.ts +24 -0
  112. package/dist/types/UI/dataDisplay/typography/Typography.d.ts +1 -0
  113. package/dist/types/UI/dataDisplay/visualization/AmbientVisualizer.d.ts +63 -0
  114. package/dist/types/UI/dataDisplay/visualization/GaugeGraph.d.ts +1 -0
  115. package/dist/types/UI/dataDisplay/visualization/RatioVisulization.d.ts +5 -0
  116. package/dist/types/UI/dataDisplay/visualization/amCharts/AmChart.d.ts +11 -0
  117. package/dist/types/UI/dataDisplay/visualization/amCharts/AmSankeyChart.d.ts +2 -0
  118. package/dist/types/UI/demos/InputsExample.d.ts +3 -0
  119. package/dist/types/UI/feedback/AmbientAlert.d.ts +12 -0
  120. package/dist/types/UI/feedback/AmbientToast.d.ts +1 -0
  121. package/dist/types/UI/feedback/FluentDialog.d.ts +1 -0
  122. package/dist/types/UI/feedback/NodeLoader.d.ts +4 -0
  123. package/dist/types/UI/feedback/PageLoading.d.ts +1 -0
  124. package/dist/types/UI/fileViewer/FileViewer.d.ts +1 -0
  125. package/dist/types/UI/fileViewer/imageSlider/Image.d.ts +1 -0
  126. package/dist/types/UI/fileViewer/imageSlider/ImageFooter.d.ts +1 -0
  127. package/dist/types/UI/fileViewer/imageSlider/ImageSlider.d.ts +1 -0
  128. package/dist/types/UI/fileViewer/imageSlider/ImageViewerSideSheet.d.ts +1 -0
  129. package/dist/types/UI/fileViewer/pdfViewer/ControlPanel.d.ts +2 -0
  130. package/dist/types/UI/fileViewer/pdfViewer/PDFViewer.d.ts +11 -0
  131. package/dist/types/UI/fileViewer/utils/fileTypes.d.ts +1 -0
  132. package/dist/types/UI/fileViewer/utils/fileUtils.d.ts +2 -0
  133. package/dist/types/UI/floorplans/CoreLayoutFloorplan.d.ts +189 -0
  134. package/dist/types/UI/forms/CrudForm.d.ts +29 -0
  135. package/dist/types/UI/forms/LoginForm.d.ts +1 -0
  136. package/dist/types/UI/forms/PaymentReversalForm.d.ts +5 -0
  137. package/dist/types/UI/forms/UdpCrudFormFields.d.ts +9 -0
  138. package/dist/types/UI/forms/VirtualForm.d.ts +17 -0
  139. package/dist/types/UI/iframe/Iframe.d.ts +1 -0
  140. package/dist/types/UI/inputs/buttons/AdvanceButton.d.ts +4 -0
  141. package/dist/types/UI/inputs/buttons/AmbientCardButton.d.ts +21 -0
  142. package/dist/types/UI/inputs/buttons/AmbientChipButton.d.ts +1 -0
  143. package/dist/types/UI/inputs/buttons/AmbientPopoverMenuItem.d.ts +5 -0
  144. package/dist/types/UI/inputs/buttons/AmbientToggleButton.d.ts +27 -0
  145. package/dist/types/UI/inputs/buttons/AmbientToggleButtonGroup.d.ts +2 -0
  146. package/dist/types/UI/inputs/buttons/AmbientToggleButtonGroupDefault.d.ts +63 -0
  147. package/dist/types/UI/inputs/buttons/AmbientTokenButton.d.ts +1 -0
  148. package/dist/types/UI/inputs/buttons/FUISquareIconButton.d.ts +5 -0
  149. package/dist/types/UI/inputs/buttons/FluentButton.d.ts +1 -0
  150. package/dist/types/UI/inputs/buttons/FluentCompoundButton.d.ts +1 -0
  151. package/dist/types/UI/inputs/buttons/FluentIconButton.d.ts +1 -0
  152. package/dist/types/UI/inputs/buttons/FluentMenuListButton.d.ts +9 -0
  153. package/dist/types/UI/inputs/buttons/FluentMenuListItem.d.ts +9 -0
  154. package/dist/types/UI/inputs/buttons/FluentUploadButton.d.ts +1 -0
  155. package/dist/types/UI/inputs/buttons/FluentUploadIconButton.d.ts +1 -0
  156. package/dist/types/UI/inputs/buttons/IconButtonWithToolTip.d.ts +12 -0
  157. package/dist/types/UI/inputs/buttons/PrimaryActionButton.d.ts +6 -0
  158. package/dist/types/UI/inputs/buttons/ToolBarButton.d.ts +11 -0
  159. package/dist/types/UI/inputs/calendar/AmbientDateRangeSelector.d.ts +3 -0
  160. package/dist/types/UI/inputs/calendar/AmbientSingleDateSelector.d.ts +3 -0
  161. package/dist/types/UI/inputs/checkbox/FluentCheckbox.d.ts +1 -0
  162. package/dist/types/UI/inputs/datetimes/DateField.d.ts +6 -0
  163. package/dist/types/UI/inputs/datetimes/DateTimeField.d.ts +4 -0
  164. package/dist/types/UI/inputs/datetimes/TimeField.d.ts +5 -0
  165. package/dist/types/UI/inputs/fieldArrayCard/AutocompleteFinalField.d.ts +3 -0
  166. package/dist/types/UI/inputs/fieldArrayCard/DateRangeField.d.ts +2 -0
  167. package/dist/types/UI/inputs/fieldArrayCard/FieldArrayCard.d.ts +1 -0
  168. package/dist/types/UI/inputs/fieldArrayCard/SearchSideSheet.d.ts +2 -0
  169. package/dist/types/UI/inputs/fieldArrayCard/fieldArrayCardEnum.d.ts +10 -0
  170. package/dist/types/UI/inputs/link/BreadCrumbMenu.d.ts +1 -0
  171. package/dist/types/UI/inputs/link/FluentLink.d.ts +1 -0
  172. package/dist/types/UI/inputs/menus/AmbientStepper/AmbientStepContent.d.ts +9 -0
  173. package/dist/types/UI/inputs/menus/AmbientStepper/AmbientStepper.d.ts +13 -0
  174. package/dist/types/UI/inputs/menus/AmbientStepper/StepLabel.d.ts +64 -0
  175. package/dist/types/UI/inputs/menus/FluentScrollLoadAutocompleteMenu.d.ts +109 -0
  176. package/dist/types/UI/inputs/menus/FluentSelectDirectoryMenu.d.ts +6 -0
  177. package/dist/types/UI/inputs/menus/FluentSelectGroupMenu.d.ts +7 -0
  178. package/dist/types/UI/inputs/menus/FluentSelectMenu-old.d.ts +1 -0
  179. package/dist/types/UI/inputs/menus/FluentSelectMenu.d.ts +9 -0
  180. package/dist/types/UI/inputs/menus/FluentSimpleSelect.d.ts +1 -0
  181. package/dist/types/UI/inputs/pickers/FluentColorPicker.d.ts +1 -0
  182. package/dist/types/UI/inputs/pickers/FluentDatePicker.d.ts +9 -0
  183. package/dist/types/UI/inputs/pickers/FluentDateTimePicker.d.ts +9 -0
  184. package/dist/types/UI/inputs/pickers/FluentTimePicker.d.ts +13 -0
  185. package/dist/types/UI/inputs/pickers/UdpDateSelector.d.ts +10 -0
  186. package/dist/types/UI/inputs/pickers/UdpTimeSelector.d.ts +14 -0
  187. package/dist/types/UI/inputs/radio/FluentRadio.d.ts +1 -0
  188. package/dist/types/UI/inputs/radio/FluentRadioGroup.d.ts +1 -0
  189. package/dist/types/UI/inputs/richEditors/CkRichEditor.d.ts +1 -0
  190. package/dist/types/UI/inputs/sliders/FluentInputSlider.d.ts +3 -0
  191. package/dist/types/UI/inputs/textField/AmbientAutoComplete.d.ts +1 -0
  192. package/dist/types/UI/inputs/textField/AmbientTextField.d.ts +21 -0
  193. package/dist/types/UI/inputs/textField/FluentSearchField.d.ts +1 -0
  194. package/dist/types/UI/inputs/textField/FluentTagField.d.ts +2 -0
  195. package/dist/types/UI/inputs/textField/FluentTextField.d.ts +2 -0
  196. package/dist/types/UI/inputs/textField/FluentTextFieldAutoComplete.d.ts +1 -0
  197. package/dist/types/UI/inputs/textField/KeyValueTextField.d.ts +1 -0
  198. package/dist/types/UI/inputs/toggle/FluentToggle.d.ts +1 -0
  199. package/dist/types/UI/loading/CircularProgress.d.ts +1 -0
  200. package/dist/types/UI/loading/LinearProgress.d.ts +1 -0
  201. package/dist/types/UI/loading/LoadingIndicator.d.ts +4 -0
  202. package/dist/types/UI/loading/LoadingOverlay.d.ts +4 -0
  203. package/dist/types/UI/mapLayout/MapLayout.d.ts +1 -0
  204. package/dist/types/UI/mapLayout/ui/ActionsRenderer.d.ts +2 -0
  205. package/dist/types/UI/mapLayout/ui/CheckboxGroup.d.ts +1 -0
  206. package/dist/types/UI/mapLayout/ui/CheckboxList.d.ts +1 -0
  207. package/dist/types/UI/mapLayout/ui/CompactCard.d.ts +1 -0
  208. package/dist/types/UI/mapLayout/ui/ListCard.d.ts +9 -0
  209. package/dist/types/UI/mapLayout/ui/ListView.d.ts +2 -0
  210. package/dist/types/UI/mapLayout/ui/MapLayoutToolbar.d.ts +2 -0
  211. package/dist/types/UI/mapLayout/ui/PopoverCard.d.ts +1 -0
  212. package/dist/types/UI/mapLayout/ui/PopoverOverlay.d.ts +2 -0
  213. package/dist/types/UI/mapLayout/ui/Statistic.d.ts +1 -0
  214. package/dist/types/UI/mapLayout/utilities/MapUtilities.d.ts +12 -0
  215. package/dist/types/UI/maps/UdpMap.d.ts +120 -0
  216. package/dist/types/UI/maps/UdpMapComponent.d.ts +128 -0
  217. package/dist/types/UI/maps/UdpMapToolbar.d.ts +87 -0
  218. package/dist/types/UI/navigation/FluentSideNav.d.ts +1 -0
  219. package/dist/types/UI/navigation/menus/AppMenu.d.ts +6 -0
  220. package/dist/types/UI/navigation/menus/AppMenuItem.d.ts +25 -0
  221. package/dist/types/UI/navigation/menus/AppMenuItemComponent.d.ts +1 -0
  222. package/dist/types/UI/navigation/menus/Expander.d.ts +1 -0
  223. package/dist/types/UI/navigation/menus/ExpanderItem.d.ts +4 -0
  224. package/dist/types/UI/navigation/menus/FluentMenuListItem.d.ts +5 -0
  225. package/dist/types/UI/navigation/tabs/UdpTabPanel.d.ts +1 -0
  226. package/dist/types/UI/navigation/tabs/UdpTabUtility.d.ts +1 -0
  227. package/dist/types/UI/navigation/tabs/UdpTabs.d.ts +1 -0
  228. package/dist/types/UI/navigation/tabs/defaultTabs/FluentSimpleTab.d.ts +1 -0
  229. package/dist/types/UI/navigation/tabs/defaultTabs/FluentSimpleTabs.d.ts +1 -0
  230. package/dist/types/UI/navigation/tabs/defaultTabs/FluentTabPanel.d.ts +8 -0
  231. package/dist/types/UI/navigation/tabs/defaultTabs/FluentTabPanels.d.ts +17 -0
  232. package/dist/types/UI/navigation/tabs/defaultTabs/FluentTabUtility.d.ts +1 -0
  233. package/dist/types/UI/property/PropertyFields.d.ts +16 -0
  234. package/dist/types/UI/property/widgets/AutoCompletePropertyWidget.d.ts +7 -0
  235. package/dist/types/UI/property/widgets/BooleanPropertyWidget.d.ts +7 -0
  236. package/dist/types/UI/property/widgets/DatePropertyWidget.d.ts +7 -0
  237. package/dist/types/UI/property/widgets/DateTimePropertyWidget.d.ts +7 -0
  238. package/dist/types/UI/property/widgets/FloatPropertyWidget.d.ts +7 -0
  239. package/dist/types/UI/property/widgets/IntegerPropertyWidget.d.ts +7 -0
  240. package/dist/types/UI/property/widgets/MultilineTextPropertyWidget.d.ts +7 -0
  241. package/dist/types/UI/property/widgets/NumericPropertyWidget.d.ts +7 -0
  242. package/dist/types/UI/property/widgets/SelectPropertyWidget.d.ts +7 -0
  243. package/dist/types/UI/property/widgets/TextPropertyWidget.d.ts +11 -0
  244. package/dist/types/UI/property/widgets/TimePropertyWidget.d.ts +7 -0
  245. package/dist/types/UI/property/widgets/index.d.ts +15 -0
  246. package/dist/types/UI/stepper/types.d.ts +38 -0
  247. package/dist/types/UI/stepper/udp-stepper.d.ts +3 -0
  248. package/dist/types/UI/support/SupportCaseForm.d.ts +6 -0
  249. package/dist/types/UI/support/SupportCaseSideSheet.d.ts +9 -0
  250. package/dist/types/UI/surfaces/NestedGrid/NestedGrid.d.ts +18 -0
  251. package/dist/types/UI/surfaces/NestedGrid/ui/ExpandRenderer.d.ts +5 -0
  252. package/dist/types/UI/surfaces/SideSheet.d.ts +60 -0
  253. package/dist/types/UI/surfaces/cards/AmbientCard.d.ts +1 -0
  254. package/dist/types/UI/surfaces/cards/AmbientCardTitle.d.ts +32 -0
  255. package/dist/types/UI/surfaces/cards/AmbientVisualizationCard.d.ts +10 -0
  256. package/dist/types/UI/surfaces/cards/BioCard.d.ts +10 -0
  257. package/dist/types/UI/surfaces/cards/ContentDisplayCard.d.ts +19 -0
  258. package/dist/types/UI/surfaces/cards/FUICard.d.ts +4 -0
  259. package/dist/types/UI/surfaces/cards/FUICardHeader.d.ts +2 -0
  260. package/dist/types/UI/surfaces/cards/FluentCard.d.ts +4 -0
  261. package/dist/types/UI/surfaces/cards/FluentCardActions.d.ts +4 -0
  262. package/dist/types/UI/surfaces/cards/FluentCardContent.d.ts +4 -0
  263. package/dist/types/UI/surfaces/cards/FluentCardHeader.d.ts +4 -0
  264. package/dist/types/UI/surfaces/cards/FluentCardText.d.ts +1 -0
  265. package/dist/types/UI/surfaces/cards/InfoCard.d.ts +54 -0
  266. package/dist/types/UI/surfaces/cards/QuickViewCard.d.ts +14 -0
  267. package/dist/types/UI/surfaces/cards/newsCard/NewsCard.d.ts +34 -0
  268. package/dist/types/UI/surfaces/cards/workOrderCard/WorkOrderCard.d.ts +12 -0
  269. package/dist/types/UI/surfaces/cards/workOrderCard/WorkOrderHeader.d.ts +4 -0
  270. package/dist/types/UI/templates/AmbientGridTemplate.d.ts +122 -0
  271. package/dist/types/UI/templates/DraggableSidebarTemplate.d.ts +1 -0
  272. package/dist/types/UI/templates/OpenPage.d.ts +4 -0
  273. package/dist/types/UI/templates/SapFlexibleTemplate.d.ts +5 -0
  274. package/dist/types/UI/templates/ToggleSection.d.ts +31 -0
  275. package/dist/types/UI/templates/UdpCalendar.d.ts +1 -0
  276. package/dist/types/UI/templates/UdpCalendarDayView.d.ts +1 -0
  277. package/dist/types/UI/templates/UdpCalendarMonthView.d.ts +1 -0
  278. package/dist/types/UI/templates/UdpCalendarWeekView.d.ts +1 -0
  279. package/dist/types/UI/templates/UdpCalendarYearView.d.ts +1 -0
  280. package/dist/types/UI/templates/UdpGridTemplate.d.ts +1 -0
  281. package/dist/types/UI/templates/newGrid/ApiMethodInstanceUdpGrid.d.ts +1 -0
  282. package/dist/types/UI/templates/newGrid/ApiMethodUdpGrid.d.ts +1 -0
  283. package/dist/types/UI/templates/newGrid/BackwardsCompatibleGrid.d.ts +5 -0
  284. package/dist/types/UI/templates/newGrid/ClientSideUdpGrid.d.ts +1 -0
  285. package/dist/types/UI/templates/newGrid/EntityMaintenanceUdpGrid.d.ts +2 -0
  286. package/dist/types/UI/templates/newGrid/ServerSideUdpGrid.d.ts +1 -0
  287. package/dist/types/UI/templates/ui/ExtenderToggle.d.ts +17 -0
  288. package/dist/types/UI/templates/ui/GridGroupingHeader.d.ts +16 -0
  289. package/dist/types/UI/templates/ui/GridGroupingSidebar.d.ts +37 -0
  290. package/dist/types/UI/templates/ui/GridSidebarContainer.d.ts +10 -0
  291. package/dist/types/UI/templates/ui/TokenGroupItem.d.ts +24 -0
  292. package/dist/types/UI/templates/ui/renderers/ActionsRenderer.d.ts +1 -0
  293. package/dist/types/UI/templates/ui/renderers/IconRenderer.d.ts +4 -0
  294. package/dist/types/UI/templates/ui/renderers/StatusCellRenderer.d.ts +1 -0
  295. package/dist/types/UI/timeline/ExtendActions.d.ts +2 -0
  296. package/dist/types/UI/timeline/ExtendedHeader.d.ts +2 -0
  297. package/dist/types/UI/timeline/TimeEntryStates.d.ts +1 -0
  298. package/dist/types/UI/timeline/TimeLine.d.ts +6 -0
  299. package/dist/types/UI/timeline/TimelineElement.d.ts +2 -0
  300. package/dist/types/UI/timeline/UdpTimeline.d.ts +1 -0
  301. package/dist/types/UI/timeline/UdpTimelineContent.d.ts +1 -0
  302. package/dist/types/UI/timeline/UdpTimelineDot.d.ts +1 -0
  303. package/dist/types/UI/timeline/UdpTimelineItem.d.ts +1 -0
  304. package/dist/types/UI/timeline/UdpTimelineItemConnector.d.ts +1 -0
  305. package/dist/types/UI/timeline/UdpTimelineItemSeparator.d.ts +1 -0
  306. package/dist/types/UI/timeline/fluentTimeline/FluentTimeline.d.ts +1 -0
  307. package/dist/types/UI/timeline/fluentTimeline/FluentTimelineContent.d.ts +1 -0
  308. package/dist/types/UI/timeline/fluentTimeline/FluentTimelineHeader.d.ts +1 -0
  309. package/dist/types/UI/utilityDisplay/AggregateChip.d.ts +13 -0
  310. package/dist/types/UI/utilityDisplay/BulkActionsGridButton.d.ts +1 -0
  311. package/dist/types/UI/utilityDisplay/ChipSection.d.ts +41 -0
  312. package/dist/types/UI/utilityDisplay/Divider.d.ts +1 -0
  313. package/dist/types/UI/utilityDisplay/FormControl.d.ts +1 -0
  314. package/dist/types/UI/utilityDisplay/FormControlLabel.d.ts +1 -0
  315. package/dist/types/UI/utilityDisplay/GridActionBar.d.ts +37 -0
  316. package/dist/types/UI/utilityDisplay/GridPrimaryBar.d.ts +83 -0
  317. package/dist/types/UI/utilityDisplay/GridViewsSideSheet.d.ts +17 -0
  318. package/dist/types/UI/utilityDisplay/IndicatorChip.d.ts +1 -0
  319. package/dist/types/UI/utilityDisplay/InputAdornment.d.ts +1 -0
  320. package/dist/types/UI/utilityDisplay/SaveViewFormDialog.d.ts +4 -0
  321. package/dist/types/UI/utilityDisplay/UtilityBar.d.ts +1 -0
  322. package/dist/types/UI/utilityDisplay/UtilitySideBar.d.ts +1 -0
  323. package/dist/types/UI/utilityDisplay/alerts/UdpAlert.d.ts +9 -0
  324. package/dist/types/UI/utilityDisplay/alerts/UdpAlertsContainer.d.ts +1 -0
  325. package/dist/types/UI/utilityDisplay/ui/UtilitySearch.d.ts +5 -0
  326. package/dist/types/UI/utilityDisplay/utilities/aggregateUtils.d.ts +1 -0
  327. package/dist/types/UI/utilityDisplay/utilityHeader/PrimaryActionHeader.d.ts +148 -0
  328. package/dist/types/UI/utilityDisplay/utilityHeader/UtilityTabHeader.d.ts +6 -0
  329. package/dist/types/UI/utilityDisplay/utilityHeader/ui/PAHAdditionalRightComponent.d.ts +4 -0
  330. package/dist/types/UI/utilityDisplay/utilityHeader/ui/PAHAdditionalTitleComponent.d.ts +4 -0
  331. package/dist/types/UI/utilityDisplay/utilityHeader/ui/PAHExport.d.ts +5 -0
  332. package/dist/types/UI/utilityDisplay/utilityHeader/ui/TeleporterSource.d.ts +8 -0
  333. package/dist/types/UI/utilityDisplay/utilityHeader/ui/teleporter.d.ts +1 -0
  334. package/dist/types/UI/widgets/FluentComponents/ChartSummaryToggle.d.ts +2 -0
  335. package/dist/types/UI/widgets/FluentComponents/FUIMenuItem.d.ts +2 -0
  336. package/dist/types/UI/widgets/FluentComponents/SimpleTable.d.ts +2 -0
  337. package/dist/types/UI/widgets/FluentComponents/atoms/FluentDisplayNumbers.d.ts +2 -0
  338. package/dist/types/UI/widgets/FluentComponents/atoms/FluentStatsSnippet.d.ts +2 -0
  339. package/dist/types/UI/widgets/FluentComponents/atoms/FluentTrendArrow.d.ts +2 -0
  340. package/dist/types/UI/widgets/FluentComponents/molecules/FluentPrimaryStatNumber.d.ts +2 -0
  341. package/dist/types/UI/widgets/FluentComponents/molecules/FluentSecondaryStatNumber.d.ts +2 -0
  342. package/dist/types/UI/widgets/FluentComponents/molecules/FluentStatNumber.d.ts +2 -0
  343. package/dist/types/UI/widgets/FluentComponents/molecules/FluentTimeline.d.ts +2 -0
  344. package/dist/types/UI/widgets/ItemsWidgetCard.d.ts +46 -0
  345. package/dist/types/UI/widgets/WidgetCard.d.ts +5 -0
  346. package/dist/types/UI/widgets/library/BarChartWidget.d.ts +19 -0
  347. package/dist/types/UI/widgets/library/BubbleWidget.d.ts +19 -0
  348. package/dist/types/UI/widgets/library/CircleGaugeWidget.d.ts +19 -0
  349. package/dist/types/UI/widgets/library/DateTrendWidget.d.ts +14 -0
  350. package/dist/types/UI/widgets/library/DensePlotWidget.d.ts +19 -0
  351. package/dist/types/UI/widgets/library/DonutChartWidget.d.ts +14 -0
  352. package/dist/types/UI/widgets/library/GaugeWidget.d.ts +23 -0
  353. package/dist/types/UI/widgets/library/LineAndSparklinesWidget.d.ts +14 -0
  354. package/dist/types/UI/widgets/library/LineGraphWidget.d.ts +19 -0
  355. package/dist/types/UI/widgets/library/ProgressBarWidget.d.ts +14 -0
  356. package/dist/types/UI/widgets/library/RecentlyLoadedNodesWidget.d.ts +7 -0
  357. package/dist/types/UI/widgets/library/RemindersWidget.d.ts +3 -0
  358. package/dist/types/UI/widgets/library/SparklineWidget.d.ts +14 -0
  359. package/dist/types/UI/widgets/library/SparsePlotWidget.d.ts +19 -0
  360. package/dist/types/UI/widgets/library/TableWidget.d.ts +14 -0
  361. package/dist/types/UI/widgets/utils/ConvertISODate.d.ts +1 -0
  362. package/dist/types/UI/widgets/utils/NumberVisualization.d.ts +2 -0
  363. package/dist/types/UI/widgets/utils/dateUtils.d.ts +3 -0
  364. package/dist/types/UI/widgets/utils/useId.d.ts +4 -0
  365. package/dist/types/actions/ActionForm.d.ts +29 -0
  366. package/dist/types/actions/ActionModal.d.ts +1 -0
  367. package/dist/types/actions/ActionPanelPlacement.d.ts +17 -0
  368. package/dist/types/actions/ActionSideSheet.d.ts +33 -0
  369. package/dist/types/actions/ActionSpeedDial.d.ts +13 -0
  370. package/dist/types/actions/ActionSplitScreen.d.ts +14 -0
  371. package/dist/types/actions/ActionWrapper.d.ts +12 -0
  372. package/dist/types/actions/PageActionWrapper.d.ts +1 -0
  373. package/dist/types/actions/actionSummary/ActionSummaryCard.d.ts +13 -0
  374. package/dist/types/actions/actionSummary/ActionSummaryHeader.d.ts +8 -0
  375. package/dist/types/actions/actionSummary/ActionSummaryListContainer.d.ts +8 -0
  376. package/dist/types/actions/actionSummary/ActionSummaryListItem.d.ts +10 -0
  377. package/dist/types/actions/actionSummary/ActionSummaryPopover.d.ts +17 -0
  378. package/dist/types/actions/actionSummary/index.d.ts +5 -0
  379. package/dist/types/actions/sidebar/EntitySideBarContent.d.ts +1 -0
  380. package/dist/types/actions/utils/actionUtils.d.ts +3 -0
  381. package/dist/types/assets/unityIcons/LibraryData.d.ts +9 -0
  382. package/dist/types/chatBot/ChatContainer.d.ts +1 -0
  383. package/dist/types/chatBot/ChatMessage.d.ts +1 -0
  384. package/dist/types/componentSystems/multiThreadTimeline/functions/mttFunctions.d.ts +8 -0
  385. package/dist/types/componentSystems/multiThreadTimeline/mttMainTimeline/HeightAdjust.d.ts +4 -0
  386. package/dist/types/componentSystems/multiThreadTimeline/mttMainTimeline/MttMainTimeline.d.ts +1 -0
  387. package/dist/types/componentSystems/multiThreadTimeline/mttMainTimeline/MttTimeline.d.ts +3 -0
  388. package/dist/types/componentSystems/multiThreadTimeline/mttSummary/MttSummary.d.ts +6 -0
  389. package/dist/types/componentSystems/multiThreadTimeline/timeline.d.ts +26 -0
  390. package/dist/types/componentSystems/multiThreadTimeline/ui/CircleButton.d.ts +6 -0
  391. package/dist/types/componentSystems/multiThreadTimeline/ui/DateWrapper.d.ts +14 -0
  392. package/dist/types/componentSystems/multiThreadTimeline/ui/DynamicRangeSlider.d.ts +1 -0
  393. package/dist/types/componentSystems/multiThreadTimeline/ui/MttYearTag.d.ts +8 -0
  394. package/dist/types/componentSystems/multiThreadTimeline/ui/MultiDot.d.ts +9 -0
  395. package/dist/types/componentSystems/multiThreadTimeline/ui/SummaryToken.d.ts +18 -0
  396. package/dist/types/componentSystems/multiThreadTimeline/ui/TimelineDateBar.d.ts +13 -0
  397. package/dist/types/componentSystems/multiThreadTimeline/ui/TimelineDot.d.ts +9 -0
  398. package/dist/types/componentSystems/multiThreadTimeline/ui/TimelineHoverCard.d.ts +9 -0
  399. package/dist/types/componentSystems/multiThreadTimeline/ui/TimelineNode.d.ts +2 -0
  400. package/dist/types/componentSystems/multiThreadTimeline/ui/TimelinePreloaderNode.d.ts +10 -0
  401. package/dist/types/componentSystems/multiThreadTimeline/ui/TimelineStatus.d.ts +6 -0
  402. package/dist/types/componentSystems/multiThreadTimeline/ui/TimelineToggleButton.d.ts +20 -0
  403. package/dist/types/componentSystems/multiThreadTimeline/ui/TimelineTokenSummary.d.ts +22 -0
  404. package/dist/types/componentSystems/multiThreadTimeline/ui/TimelineTopRowFilter.d.ts +16 -0
  405. package/dist/types/componentSystems/multiThreadTimeline/ui/TimelineWrapper.d.ts +11 -0
  406. package/dist/types/componentSystems/multiThreadTimeline/ui/VisualizationDot.d.ts +11 -0
  407. package/dist/types/componentSystems/multiThreadTimeline/ui/modified/TimelineToken.d.ts +18 -0
  408. package/dist/types/componentSystems/pageRenderer/PageRenderer.d.ts +9 -0
  409. package/dist/types/componentSystems/pageRenderer/hocs/withEngineComponent.d.ts +1 -0
  410. package/dist/types/componentSystems/pageRenderer/hooks/useReadMetaData.d.ts +34 -0
  411. package/dist/types/componentSystems/pageRenderer/utils/TableColumnDefs.d.ts +9 -0
  412. package/dist/types/componentSystems/pageRenderer/wrappers/AgGridSimpleWrapper.d.ts +13 -0
  413. package/dist/types/componentSystems/pageRenderer/wrappers/BarChartWrapper.d.ts +7 -0
  414. package/dist/types/componentSystems/pageRenderer/wrappers/BioCardWrapper.d.ts +1 -0
  415. package/dist/types/componentSystems/pageRenderer/wrappers/DisplayCardWrapper.d.ts +1 -0
  416. package/dist/types/componentSystems/pageRenderer/wrappers/DonutWrapper.d.ts +7 -0
  417. package/dist/types/componentSystems/pageRenderer/wrappers/HistogramWrapper.d.ts +1 -0
  418. package/dist/types/componentSystems/pageRenderer/wrappers/LineGraphWrapper.d.ts +1 -0
  419. package/dist/types/componentSystems/pageRenderer/wrappers/PrimaryActionHeaderWrapper.d.ts +1 -0
  420. package/dist/types/constants/reminderConstants.d.ts +4 -0
  421. package/dist/types/containers/IframeContainer.d.ts +1 -0
  422. package/dist/types/contexts/ActionContext.d.ts +1 -0
  423. package/dist/types/contexts/ActionDispatchContext.d.ts +1 -0
  424. package/dist/types/contexts/ActionLoadingContext.d.ts +1 -0
  425. package/dist/types/contexts/ActionLoadingDispatchContext.d.ts +1 -0
  426. package/dist/types/contexts/PageContext.d.ts +15 -0
  427. package/dist/types/contexts/usePageContext.d.ts +1 -0
  428. package/dist/types/dashboard/DashboardCardGrid.d.ts +7 -0
  429. package/dist/types/dashboard/DashboardWidget.d.ts +2 -0
  430. package/dist/types/dashboard/WidgetCard.d.ts +4 -0
  431. package/dist/types/dashboard/getWidgetLayout.d.ts +5 -0
  432. package/dist/types/dashboard/types.d.ts +27 -0
  433. package/dist/types/dataBrowser/DataBrowserColumnDefs.d.ts +9 -0
  434. package/dist/types/dataBrowser/DataBrowserContainer.d.ts +1 -0
  435. package/dist/types/dataBrowser/forms/ParamsMappingFields.d.ts +1 -0
  436. package/dist/types/dataBrowser/forms/ParamsMappingForm.d.ts +1 -0
  437. package/dist/types/dataBrowser/forms/RequiredFieldsMappingField.d.ts +1 -0
  438. package/dist/types/dataBrowser/forms/RequiredFieldsMappingForm.d.ts +1 -0
  439. package/dist/types/diffChecker/DiffChecker.d.ts +6 -0
  440. package/dist/types/enums/InputFieldTypeEnums.d.ts +9 -0
  441. package/dist/types/enums/aggridEnums.d.ts +46 -0
  442. package/dist/types/enums/menuEnums.d.ts +6 -0
  443. package/dist/types/enums/pageEnums.d.ts +14 -0
  444. package/dist/types/enums/paymentMethodTypeEnum.d.ts +6 -0
  445. package/dist/types/enums/paymentTenderTypeEnum.d.ts +8 -0
  446. package/dist/types/enums/paymentVendorFactoryEnum.d.ts +10 -0
  447. package/dist/types/enums/propertyTypeEnums.d.ts +9 -0
  448. package/dist/types/enums/searchEnums.d.ts +5 -0
  449. package/dist/types/enums/tagEnums.d.ts +5 -0
  450. package/dist/types/enums/unitySystemEnums.d.ts +243 -0
  451. package/dist/types/enums/workflowEnums.d.ts +41 -0
  452. package/dist/types/hooks/crudActions.d.ts +5 -0
  453. package/dist/types/hooks/useActions.d.ts +17 -0
  454. package/dist/types/hooks/useApiCatalog.d.ts +6 -0
  455. package/dist/types/hooks/useDateLocale.d.ts +7 -0
  456. package/dist/types/hooks/useDynamicListCalculation.d.ts +20 -0
  457. package/dist/types/hooks/useFluentIcon.d.ts +3 -0
  458. package/dist/types/hooks/useItemSubCard.d.ts +10 -0
  459. package/dist/types/hooks/useOutlook.d.ts +6 -0
  460. package/dist/types/hooks/useProductVersion.d.ts +1 -0
  461. package/dist/types/hooks/usePromotedLookupMethods.d.ts +5 -0
  462. package/dist/types/hooks/usePromotedMethodEntity.d.ts +5 -0
  463. package/dist/types/hooks/useQueryExecutors.d.ts +23 -0
  464. package/dist/types/hooks/useSearchFilterParamsMap.d.ts +6 -0
  465. package/dist/types/hooks/useSetLocationState.d.ts +1 -0
  466. package/dist/types/hooks/useSplitDecimal.d.ts +8 -0
  467. package/dist/types/hooks/useUpdateSearchParams.d.ts +1 -0
  468. package/dist/types/hooks/useWorkflow.d.ts +3 -0
  469. package/dist/types/hooks/virtualActions.d.ts +3 -0
  470. package/dist/types/index.d.ts +444 -0
  471. package/dist/types/index.test.d.ts +1 -0
  472. package/dist/types/inquiry/AlertFlag.d.ts +4 -0
  473. package/dist/types/inquiry/AmbientListItem.d.ts +4 -0
  474. package/dist/types/inquiry/AmbientSplitStatCard.d.ts +4 -0
  475. package/dist/types/inquiry/AmbientSummaryListHeader.d.ts +4 -0
  476. package/dist/types/inquiry/EmbeddedInquiry.d.ts +2 -0
  477. package/dist/types/inquiry/ExecuteApiDialog.d.ts +1 -0
  478. package/dist/types/inquiry/FilterSearch.d.ts +3 -0
  479. package/dist/types/inquiry/FlagBlock.d.ts +4 -0
  480. package/dist/types/inquiry/Inquiry.d.ts +29 -0
  481. package/dist/types/inquiry/InquiryContainer.d.ts +28 -0
  482. package/dist/types/inquiry/InquiryTreeMenu.d.ts +1 -0
  483. package/dist/types/inquiry/InquiryTreeMenuItem.d.ts +1 -0
  484. package/dist/types/inquiry/InquiryWrapper.d.ts +1 -0
  485. package/dist/types/inquiry/ItemDescription.d.ts +4 -0
  486. package/dist/types/inquiry/NodeColumnHeader.d.ts +5 -0
  487. package/dist/types/inquiry/NodeDetails.d.ts +1 -0
  488. package/dist/types/inquiry/NodeList.d.ts +1 -0
  489. package/dist/types/inquiry/ToggleButton.d.ts +4 -0
  490. package/dist/types/inquiry/dashboard/InquiryDashboard.d.ts +1 -0
  491. package/dist/types/inquiry/dashboard/RecentlyLoadedNodesTable.d.ts +1 -0
  492. package/dist/types/inquiry/inquiryBar/InquiryControlList.d.ts +11 -0
  493. package/dist/types/inquiry/inquiryBar/InquiryNodeControls.d.ts +1 -0
  494. package/dist/types/inquiry/search/InquiryAdvancedSearch.d.ts +1 -0
  495. package/dist/types/inquiry/search/InquiryAdvancedSearchForm.d.ts +1 -0
  496. package/dist/types/inquiry/search/InquirySearchContainer.d.ts +1 -0
  497. package/dist/types/inquiry/search/InquirySearchDatasource.d.ts +4 -0
  498. package/dist/types/inquiry/search/InquirySearchTable.d.ts +1 -0
  499. package/dist/types/layout/GridGroup.d.ts +10 -0
  500. package/dist/types/layout/GridRow.d.ts +5 -0
  501. package/dist/types/layout/GridUnit.d.ts +1 -0
  502. package/dist/types/layout/HeaderLayout.d.ts +3 -0
  503. package/dist/types/layout/LayoutUnit.d.ts +2 -0
  504. package/dist/types/layout/getRatio.d.ts +1 -0
  505. package/dist/types/layout/templates/SideBarTemplate.d.ts +4 -0
  506. package/dist/types/maintenanceEngine/crudBrowser/CrudBrowserContainer.d.ts +1 -0
  507. package/dist/types/maintenanceEngine/crudBrowser/CrudTableActionRender.d.ts +2 -0
  508. package/dist/types/maintenanceEngine/crudBrowser/CrudTableColumnDefs.d.ts +9 -0
  509. package/dist/types/maintenanceEngine/crudBrowser/CrudTableSidePanel.d.ts +29 -0
  510. package/dist/types/maintenanceEngine/entityAttributeActions.d.ts +1 -0
  511. package/dist/types/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +46 -0
  512. package/dist/types/maintenanceEngine/tableBrowser/TableContainer.d.ts +1 -0
  513. package/dist/types/maintenanceEngine/virtualBrowser/VirtualBrowser.d.ts +1 -0
  514. package/dist/types/maintenanceEngine/virtualBrowser/VirtualTableColumnDefs.d.ts +9 -0
  515. package/dist/types/maintenanceEngine/virtualBrowser/VirtualTableSidePanel.d.ts +25 -0
  516. package/dist/types/map-library/Controls/Controls.d.ts +3 -0
  517. package/dist/types/map-library/Controls/CustomControl.d.ts +9 -0
  518. package/dist/types/map-library/Controls/FullScreenControl.d.ts +1 -0
  519. package/dist/types/map-library/Controls/ZoomControl.d.ts +1 -0
  520. package/dist/types/map-library/Controls/index.d.ts +5 -0
  521. package/dist/types/map-library/Layers/ImageLayer.d.ts +4 -0
  522. package/dist/types/map-library/Layers/Layers.d.ts +3 -0
  523. package/dist/types/map-library/Layers/TileLayer.d.ts +4 -0
  524. package/dist/types/map-library/Layers/VectorLayer.d.ts +6 -0
  525. package/dist/types/map-library/Layers/index.d.ts +5 -0
  526. package/dist/types/map-library/Map/Map.d.ts +23 -0
  527. package/dist/types/map-library/Map/MapContext.d.ts +2 -0
  528. package/dist/types/map-library/Map/index.d.ts +1 -0
  529. package/dist/types/map-library/Source/index.d.ts +4 -0
  530. package/dist/types/map-library/Source/osm.d.ts +3 -0
  531. package/dist/types/map-library/Source/vector.d.ts +9 -0
  532. package/dist/types/map-library/Source/xyz.d.ts +7 -0
  533. package/dist/types/map-library/functions/mapFunctions.d.ts +2 -0
  534. package/dist/types/map-library/geoLocation/FreeFormField.d.ts +1 -0
  535. package/dist/types/map-library/geoLocation/GeoLocation.d.ts +3 -0
  536. package/dist/types/map-library/ui/ControlZoom.d.ts +2 -0
  537. package/dist/types/map-library/ui/Filter.d.ts +2 -0
  538. package/dist/types/map-library/ui/FilterOptions.d.ts +2 -0
  539. package/dist/types/map-library/ui/LocationPin.d.ts +2 -0
  540. package/dist/types/map-library/ui/MapControls.d.ts +2 -0
  541. package/dist/types/map-library/ui/MapControlsStandard.d.ts +2 -0
  542. package/dist/types/map-library/ui/MapFilterBar.d.ts +1 -0
  543. package/dist/types/map-library/ui/MapSheet.d.ts +1 -0
  544. package/dist/types/map-library/ui/Position.d.ts +2 -0
  545. package/dist/types/map-library/ui/TileDisplay.d.ts +1 -0
  546. package/dist/types/map-library/ui/ToggleViewType.d.ts +2 -0
  547. package/dist/types/maps/GeoMap.d.ts +3 -0
  548. package/dist/types/maps/leafletMaps/FluentImageMap.d.ts +13 -0
  549. package/dist/types/maps/leafletMaps/FluentMap.d.ts +26 -0
  550. package/dist/types/maps/leafletMaps/ui/MapContent.d.ts +13 -0
  551. package/dist/types/maps/leafletMaps/ui/MapMarker.d.ts +1 -0
  552. package/dist/types/maps/openLayerMaps/Controls/Controls.d.ts +4 -0
  553. package/dist/types/maps/openLayerMaps/Controls/FullScreenControl.d.ts +2 -0
  554. package/dist/types/maps/openLayerMaps/Controls/index.d.ts +3 -0
  555. package/dist/types/maps/openLayerMaps/Layers/ImageLayer.d.ts +4 -0
  556. package/dist/types/maps/openLayerMaps/Layers/Layers.d.ts +3 -0
  557. package/dist/types/maps/openLayerMaps/Layers/TileLayer.d.ts +4 -0
  558. package/dist/types/maps/openLayerMaps/Layers/VectorLayer.d.ts +5 -0
  559. package/dist/types/maps/openLayerMaps/Layers/index.d.ts +5 -0
  560. package/dist/types/maps/openLayerMaps/Map/Map.d.ts +7 -0
  561. package/dist/types/maps/openLayerMaps/Map/MapContext.d.ts +2 -0
  562. package/dist/types/maps/openLayerMaps/Map/index.d.ts +1 -0
  563. package/dist/types/maps/openLayerMaps/Source/index.d.ts +4 -0
  564. package/dist/types/maps/openLayerMaps/Source/osm.d.ts +3 -0
  565. package/dist/types/maps/openLayerMaps/Source/vector.d.ts +9 -0
  566. package/dist/types/maps/openLayerMaps/Source/xyz.d.ts +7 -0
  567. package/dist/types/maps/openLayerMaps/ui/ControlZoom.d.ts +2 -0
  568. package/dist/types/maps/openLayerMaps/ui/Filter.d.ts +2 -0
  569. package/dist/types/maps/openLayerMaps/ui/LocationPin.d.ts +2 -0
  570. package/dist/types/maps/openLayerMaps/ui/MapControls.d.ts +2 -0
  571. package/dist/types/maps/openLayerMaps/ui/MapControlsStandard.d.ts +2 -0
  572. package/dist/types/maps/openLayerMaps/ui/Position.d.ts +2 -0
  573. package/dist/types/maps/openLayerMaps/ui/ToggleViewType.d.ts +2 -0
  574. package/dist/types/menuPage/MenuPage.d.ts +1 -0
  575. package/dist/types/models/ApiMethodInstance.d.ts +10 -0
  576. package/dist/types/models/GroupNode.d.ts +13 -0
  577. package/dist/types/models/Lookup.d.ts +6 -0
  578. package/dist/types/models/NumberOperator.d.ts +14 -0
  579. package/dist/types/models/QueryResult.d.ts +9 -0
  580. package/dist/types/models/SearchOperator.d.ts +17 -0
  581. package/dist/types/notes/NotesScreen.d.ts +1 -0
  582. package/dist/types/page/Page.d.ts +2 -0
  583. package/dist/types/page/PageContainer.d.ts +1 -0
  584. package/dist/types/page/PageContent.d.ts +4 -0
  585. package/dist/types/page/PageHeader.d.ts +6 -0
  586. package/dist/types/page/PageSectionHeader.d.ts +1 -0
  587. package/dist/types/page/PageSectionSpacer.d.ts +4 -0
  588. package/dist/types/reminders/CompleteReminderSwitch.d.ts +1 -0
  589. package/dist/types/reminders/RemindersCard.d.ts +1 -0
  590. package/dist/types/reminders/RemindersScreen.d.ts +1 -0
  591. package/dist/types/reports/PowerBIReport.d.ts +1 -0
  592. package/dist/types/routes/PrivateRoute.d.ts +3 -0
  593. package/dist/types/routes/UdpRoutes.d.ts +1 -0
  594. package/dist/types/routes/components/PageForbiddenRoute.d.ts +1 -0
  595. package/dist/types/routes/components/PageNotFoundRoute.d.ts +1 -0
  596. package/dist/types/routes/components/PageStatus.d.ts +1 -0
  597. package/dist/types/routes/components/PasswordResetRedirect.d.ts +1 -0
  598. package/dist/types/shell/Shell.d.ts +73 -0
  599. package/dist/types/shell/ui/AmbientProjectSwitcher.d.ts +17 -0
  600. package/dist/types/shell/ui/EnvironmentRibbon.d.ts +3 -0
  601. package/dist/types/shell/ui/FluentProfileMenuCard.d.ts +1 -0
  602. package/dist/types/shell/ui/HelpCenter.d.ts +1 -0
  603. package/dist/types/shell/ui/LanguageSwitcher.d.ts +1 -0
  604. package/dist/types/shell/ui/MiniCollapsibleSidebar.d.ts +2 -0
  605. package/dist/types/shell/ui/NavigationSidebar.d.ts +2 -0
  606. package/dist/types/shell/ui/SidebarCollapseButton.d.ts +4 -0
  607. package/dist/types/shell/ui/SidebarListItem.d.ts +5 -0
  608. package/dist/types/shell/ui/SiteHeader.d.ts +17 -0
  609. package/dist/types/shell/ui/SiteHeaderRightComponent.d.ts +9 -0
  610. package/dist/types/shell/ui/UserAvatar.d.ts +9 -0
  611. package/dist/types/shell/ui/addUser/PasswordValidator.d.ts +10 -0
  612. package/dist/types/shell/ui/addUser/UserForm.d.ts +2 -0
  613. package/dist/types/shell/ui/addUser/UserFormFields.d.ts +2 -0
  614. package/dist/types/shell/ui/addUser/UserFormSideSheet.d.ts +5 -0
  615. package/dist/types/shell/ui/appSwitcher/FUIAppHeader.d.ts +2 -0
  616. package/dist/types/shell/ui/appSwitcher/FUIAppList.d.ts +2 -0
  617. package/dist/types/shell/ui/appSwitcher/FUIAppListItem.d.ts +2 -0
  618. package/dist/types/shell/ui/appSwitcher/FUIAppSwitcher.d.ts +2 -0
  619. package/dist/types/shell/ui/appSwitcher/ProductAppList.d.ts +2 -0
  620. package/dist/types/shell/ui/appSwitcher/ProductAppListItem.d.ts +2 -0
  621. package/dist/types/shell/ui/appSwitcher/UnityApps.d.ts +2 -0
  622. package/dist/types/stores/actionStore.d.ts +12 -0
  623. package/dist/types/stores/catalogStore.d.ts +10 -0
  624. package/dist/types/stores/inquiryStore.d.ts +21 -0
  625. package/dist/types/stores/lookupsStore.d.ts +8 -0
  626. package/dist/types/stores/shellStore.d.ts +21 -0
  627. package/dist/types/stores/teleporterStore.d.ts +13 -0
  628. package/dist/types/stores/tenantStore.d.ts +12 -0
  629. package/dist/types/stores/workflowStore.d.ts +15 -0
  630. package/dist/types/stories/Button.d.ts +41 -0
  631. package/dist/types/stories/Button.stories.d.ts +35 -0
  632. package/dist/types/stories/Header.d.ts +18 -0
  633. package/dist/types/stories/Header.stories.d.ts +23 -0
  634. package/dist/types/stories/Page.d.ts +18 -0
  635. package/dist/types/stories/Page.stories.d.ts +23 -0
  636. package/dist/types/treeMenu/BaseTreeMenu.d.ts +1 -0
  637. package/dist/types/treeMenu/BaseTreeMenuItem.d.ts +1 -0
  638. package/dist/types/tsconfig.tsbuildinfo +1 -0
  639. package/dist/types/udp/ShortcutContent/ListSearch.d.ts +1 -0
  640. package/dist/types/udp/ShortcutContent/ShortcutContentFinder.d.ts +1 -0
  641. package/dist/types/udp/export/ExportSidesheet.d.ts +1 -0
  642. package/dist/types/udp/export/MyExportsPage.d.ts +1 -0
  643. package/dist/types/udp/export/VisualSearchObject.d.ts +3 -0
  644. package/dist/types/udp/export/useUdpExport.d.ts +14 -0
  645. package/dist/types/udp/fileImportMapping/FileImportConfigCard.d.ts +1 -0
  646. package/dist/types/udp/fileImportMapping/FileImportMappingEnums.d.ts +6 -0
  647. package/dist/types/udp/fileImportMapping/FileImportMappingWizard.d.ts +2 -0
  648. package/dist/types/udp/fileImportMapping/ImportDataFromFileMapping.d.ts +1 -0
  649. package/dist/types/udp/fileImportMapping/SampleFileImportGrid.d.ts +1 -0
  650. package/dist/types/udp/fileImportMapping/fileUtils.d.ts +3 -0
  651. package/dist/types/udp/pages/ChatUDP.d.ts +2 -0
  652. package/dist/types/udp/pages/UdpDataBrowserPage.d.ts +21 -0
  653. package/dist/types/udp/pages/UdpFormsBuilderPage.d.ts +2 -0
  654. package/dist/types/udp/pages/UdpFormsListPage.d.ts +2 -0
  655. package/dist/types/udp/pages/UdpGridPanelManagementPage.d.ts +2 -0
  656. package/dist/types/udp/pages/UdpGridPanelManagementSidesheet.d.ts +31 -0
  657. package/dist/types/udp/pages/UdpImportFromFileMappingPage.d.ts +2 -0
  658. package/dist/types/udp/pages/UdpInquiryMaintenanceEnginePage.d.ts +2 -0
  659. package/dist/types/udp/pages/UdpMaintenanceConfigPage.d.ts +1 -0
  660. package/dist/types/udp/pages/UdpMaintenanceEnginePage.d.ts +2 -0
  661. package/dist/types/udp/pages/UdpNotesPage.d.ts +2 -0
  662. package/dist/types/udp/pages/UdpPrivateForm.d.ts +2 -0
  663. package/dist/types/udp/pages/UdpPublicForm.d.ts +2 -0
  664. package/dist/types/udp/pages/UdpRemindersPage.d.ts +2 -0
  665. package/dist/types/udp/pages/UdpReportsPage.d.ts +2 -0
  666. package/dist/types/udp/pages/UdpVerticalManagementPage.d.ts +2 -0
  667. package/dist/types/udp/pages/UdpVerticalManagementSidesheet.d.ts +2 -0
  668. package/dist/types/udp/pages/udpPages.d.ts +40 -0
  669. package/dist/types/udp/utilities/methodUtils.d.ts +5 -0
  670. package/dist/types/uploader/DragDropFileUpload.d.ts +35 -0
  671. package/dist/types/uploader/FileProfile.d.ts +2 -0
  672. package/dist/types/uploader/FileType.d.ts +1 -0
  673. package/dist/types/uploader/FileUpload.d.ts +2 -0
  674. package/dist/types/uploader/ImagePreview.d.ts +2 -0
  675. package/dist/types/utilities/CustomNavigationClient.d.ts +11 -0
  676. package/dist/types/utilities/DemoJuly/redirectToProduct.d.ts +14 -0
  677. package/dist/types/utilities/FluentIcon.d.ts +4 -0
  678. package/dist/types/utilities/TrimForAvatar.d.ts +1 -0
  679. package/dist/types/utilities/UnityFluentIcon.d.ts +1 -0
  680. package/dist/types/utilities/UnityIcon.d.ts +1 -0
  681. package/dist/types/utilities/aggrid/AgTable.d.ts +36 -0
  682. package/dist/types/utilities/aggrid/GridFunctions.d.ts +9 -0
  683. package/dist/types/utilities/aggrid/SplitButton.d.ts +4 -0
  684. package/dist/types/utilities/aggrid/aggridHelpers.d.ts +1 -0
  685. package/dist/types/utilities/aggrid/datasources/SearchServiceDatasource.d.ts +4 -0
  686. package/dist/types/utilities/apiHelpers.d.ts +12 -0
  687. package/dist/types/utilities/auth/AuthDialogs.d.ts +2 -0
  688. package/dist/types/utilities/auth/AuthProvider.d.ts +5 -0
  689. package/dist/types/utilities/auth/AuthProviderWrapper.d.ts +1 -0
  690. package/dist/types/utilities/auth/UserProvider.d.ts +2 -0
  691. package/dist/types/utilities/auth/authActions.d.ts +9 -0
  692. package/dist/types/utilities/auth/internal.d.ts +10 -0
  693. package/dist/types/utilities/auth/signInAuthProvider.d.ts +5 -0
  694. package/dist/types/utilities/auth/useAccessToken.d.ts +1 -0
  695. package/dist/types/utilities/auth/useAuthedUser.d.ts +16 -0
  696. package/dist/types/utilities/auth/useIsUnityAuthenticated.d.ts +1 -0
  697. package/dist/types/utilities/auth/useSingleLogout.d.ts +2 -0
  698. package/dist/types/utilities/auth/useUser.d.ts +8 -0
  699. package/dist/types/utilities/auth/user.d.ts +29 -0
  700. package/dist/types/utilities/auth/users.d.ts +8 -0
  701. package/dist/types/utilities/auth/whitelistedPaths.d.ts +1 -0
  702. package/dist/types/utilities/axiosInterceptors.d.ts +2 -0
  703. package/dist/types/utilities/brand.d.ts +23 -0
  704. package/dist/types/utilities/chatBot/ChatBotContext.d.ts +1 -0
  705. package/dist/types/utilities/chatBot/ChatBotProvider.d.ts +3 -0
  706. package/dist/types/utilities/chatBot/useChatBot.d.ts +6 -0
  707. package/dist/types/utilities/crud/useDefaultFormValues.d.ts +6 -0
  708. package/dist/types/utilities/customIcons/ApprovalIcon.d.ts +6 -0
  709. package/dist/types/utilities/customIcons/RejectIcon.d.ts +4 -0
  710. package/dist/types/utilities/entities/entityUtilities.d.ts +3 -0
  711. package/dist/types/utilities/floorplanFunctions/gridVisualizationFunctions.d.ts +2 -0
  712. package/dist/types/utilities/form/AltSubmitButton.d.ts +14 -0
  713. package/dist/types/utilities/form/Field.d.ts +23 -0
  714. package/dist/types/utilities/form/Form.d.ts +7 -0
  715. package/dist/types/utilities/form/FormButtons.d.ts +3 -0
  716. package/dist/types/utilities/form/FormError.d.ts +7 -0
  717. package/dist/types/utilities/form/FormSpy.d.ts +10 -0
  718. package/dist/types/utilities/form/SubmitButton.d.ts +14 -0
  719. package/dist/types/utilities/form/arrayMutators.d.ts +2 -0
  720. package/dist/types/utilities/form/final-form-scroll/createDecorator.d.ts +5 -0
  721. package/dist/types/utilities/form/final-form-scroll/findInput.d.ts +2 -0
  722. package/dist/types/utilities/form/final-form-scroll/getAllInputs.d.ts +2 -0
  723. package/dist/types/utilities/form/final-form-scroll/isFocusableInput.d.ts +2 -0
  724. package/dist/types/utilities/form/formHooks.d.ts +12 -0
  725. package/dist/types/utilities/form/index.d.ts +9 -0
  726. package/dist/types/utilities/form/paymentForm/AccountPayment.model.d.ts +143 -0
  727. package/dist/types/utilities/form/paymentForm/BankAccountForm.d.ts +48 -0
  728. package/dist/types/utilities/form/paymentForm/BankIcon.d.ts +7 -0
  729. package/dist/types/utilities/form/paymentForm/CashForm.d.ts +9 -0
  730. package/dist/types/utilities/form/paymentForm/CashIcon.d.ts +7 -0
  731. package/dist/types/utilities/form/paymentForm/CheckIcon.d.ts +7 -0
  732. package/dist/types/utilities/form/paymentForm/CreditCardAdornment.d.ts +12 -0
  733. package/dist/types/utilities/form/paymentForm/CreditCardForm.d.ts +41 -0
  734. package/dist/types/utilities/form/paymentForm/CreditCardIcon.d.ts +7 -0
  735. package/dist/types/utilities/form/paymentForm/CreditCardUtils.d.ts +42 -0
  736. package/dist/types/utilities/form/paymentForm/DisableOverlay.d.ts +7 -0
  737. package/dist/types/utilities/form/paymentForm/HostedPaymentError.d.ts +20 -0
  738. package/dist/types/utilities/form/paymentForm/NewCreditCardForm.d.ts +18 -0
  739. package/dist/types/utilities/form/paymentForm/NewECheckForm.d.ts +15 -0
  740. package/dist/types/utilities/form/paymentForm/PaymentAccount.model.d.ts +81 -0
  741. package/dist/types/utilities/form/paymentForm/PaymentBankDetails.d.ts +12 -0
  742. package/dist/types/utilities/form/paymentForm/PaymentBoxDetail.d.ts +32 -0
  743. package/dist/types/utilities/form/paymentForm/PaymentCard.d.ts +12 -0
  744. package/dist/types/utilities/form/paymentForm/PaymentCardDetail.d.ts +19 -0
  745. package/dist/types/utilities/form/paymentForm/PaymentDropdown.d.ts +32 -0
  746. package/dist/types/utilities/form/paymentForm/PaymentForm.d.ts +77 -0
  747. package/dist/types/utilities/form/paymentForm/TabPanel.d.ts +20 -0
  748. package/dist/types/utilities/form/paymentForm/usePaymentProviderForm.d.ts +12 -0
  749. package/dist/types/utilities/form/paymentForm/vendorsForms/FiservForm.d.ts +40 -0
  750. package/dist/types/utilities/form/paymentForm/vendorsForms/ICheckForm.d.ts +46 -0
  751. package/dist/types/utilities/form/paymentForm/vendorsForms/PaymentusForm.d.ts +13 -0
  752. package/dist/types/utilities/form/useFieldChangeListener.d.ts +7 -0
  753. package/dist/types/utilities/iconLibrary/IconLibrary.d.ts +2 -0
  754. package/dist/types/utilities/iconLibrary/IconLibraryComponent.d.ts +7 -0
  755. package/dist/types/utilities/iconLibrary/SelectedLibraryItem.d.ts +2 -0
  756. package/dist/types/utilities/iconLibrary/UnityIconLibrary.d.ts +7 -0
  757. package/dist/types/utilities/input/DateUtilities.d.ts +3 -0
  758. package/dist/types/utilities/input/SelectUtilities.d.ts +3 -0
  759. package/dist/types/utilities/input/StringUtilities.d.ts +7 -0
  760. package/dist/types/utilities/isValueSelected.d.ts +3 -0
  761. package/dist/types/utilities/maintenanceEngine/CrudBrowserUtilities.d.ts +5 -0
  762. package/dist/types/utilities/menus/menuUtilities.d.ts +1 -0
  763. package/dist/types/utilities/menus/redirectToLink.d.ts +1 -0
  764. package/dist/types/utilities/page/PageSubHeaderAction.d.ts +9 -0
  765. package/dist/types/utilities/provider/ActionProvider.d.ts +1 -0
  766. package/dist/types/utilities/redirect/ExternalRedirectUrlStorage.d.ts +3 -0
  767. package/dist/types/utilities/redirect/LocalRedirectUrlStorage.d.ts +5 -0
  768. package/dist/types/utilities/redirect/pages/OutlookCallback.d.ts +1 -0
  769. package/dist/types/utilities/rules/RuleUtilities.d.ts +40 -0
  770. package/dist/types/utilities/search/Search.d.ts +37 -0
  771. package/dist/types/utilities/search/SearchUtilities.d.ts +15 -0
  772. package/dist/types/utilities/storage/UnitySessionStorage.d.ts +4 -0
  773. package/dist/types/utilities/stringUtils.d.ts +8 -0
  774. package/dist/types/utilities/style/ContentContainer.d.ts +29 -0
  775. package/dist/types/utilities/style/colorConverter.d.ts +3 -0
  776. package/dist/types/utilities/style/colors.d.ts +76 -0
  777. package/dist/types/utilities/style/utils/styleUtils.d.ts +2 -0
  778. package/dist/types/utilities/style/verticalStyles.d.ts +4 -0
  779. package/dist/types/utilities/systemColors.d.ts +1 -0
  780. package/dist/types/utilities/tenant/TenantProvider.d.ts +3 -0
  781. package/dist/types/utilities/tenant/tenantContext.d.ts +1 -0
  782. package/dist/types/utilities/tenant/useTenant.d.ts +6 -0
  783. package/dist/types/utilities/theme.d.ts +6 -0
  784. package/dist/types/utilities/theme.types.d.ts +11 -0
  785. package/dist/types/utilities/tree/TreeUtilities.d.ts +81 -0
  786. package/dist/types/utilities/types.d.ts +31 -0
  787. package/dist/types/utilities/uploader/FileProfile.d.ts +2 -0
  788. package/dist/types/utilities/uploader/FileType.d.ts +1 -0
  789. package/dist/types/utilities/uploader/FileUpload.d.ts +1 -0
  790. package/dist/types/utilities/uploader/ImagePreview.d.ts +2 -0
  791. package/dist/types/utilities/uploader/formatBytes.d.ts +1 -0
  792. package/dist/types/utilities/useAxiosGet.d.ts +21 -0
  793. package/dist/types/utilities/useAxiosMutate.d.ts +6 -0
  794. package/dist/types/utilities/useDevicePixelRatio.d.ts +6 -0
  795. package/dist/types/utilities/useGravatar.d.ts +10 -0
  796. package/dist/types/utilities/usePrevious.d.ts +2 -0
  797. package/dist/types/utilities/utilityBar/InquiryHeaderControl.d.ts +9 -0
  798. package/dist/types/utilities/utilityBar/InquiryHeaderSecondary.d.ts +8 -0
  799. package/dist/types/utilities/utilityBar/InquiryHeaderSecondaryAlert.d.ts +8 -0
  800. package/dist/types/utilities/utilityBar/InquiryHeaderTitle.d.ts +8 -0
  801. package/dist/types/utilities/utilityBar/SubHeaderAction.d.ts +8 -0
  802. package/dist/types/utilities/utilityBar/UtilityBarInport.d.ts +8 -0
  803. package/dist/types/utilities/workflow/workflowUtilities.d.ts +47 -0
  804. package/dist/types/workflow/WorkflowContainer.d.ts +1 -0
  805. package/dist/types/workflow/WorkflowContent.d.ts +1 -0
  806. package/dist/types/workflow/WorkflowUiInterruptContent.d.ts +1 -0
  807. package/dist/types/workflow/components/WorkflowTaskFlow.d.ts +1 -0
  808. package/dist/types/workflow/menus/WorkflowTreeMenu.d.ts +1 -0
  809. package/dist/types/workflow/menus/WorkflowTreeMenuItem.d.ts +1 -0
  810. package/package.json +17 -24
  811. package/dist/AmbientGridTemplate-CvXWVsCb.cjs +0 -4205
  812. package/dist/AmbientGridTemplate-CvXWVsCb.cjs.map +0 -1
  813. package/dist/AmbientGridTemplate-Dq2QYPF2.js +0 -3905
  814. package/dist/AmbientGridTemplate-Dq2QYPF2.js.map +0 -1
  815. package/dist/EnvironmentRibbon-CgKsTmQ7.cjs +0 -1558
  816. package/dist/EnvironmentRibbon-CgKsTmQ7.cjs.map +0 -1
  817. package/dist/EnvironmentRibbon-DBJftQWQ.js +0 -1108
  818. package/dist/EnvironmentRibbon-DBJftQWQ.js.map +0 -1
  819. package/dist/MenuPage-DNywMmn2.cjs +0 -562
  820. package/dist/MenuPage-DNywMmn2.cjs.map +0 -1
  821. package/dist/MenuPage-MyE8iJHD.js +0 -561
  822. package/dist/MenuPage-MyE8iJHD.js.map +0 -1
  823. package/dist/MyExportsPage-B-xwnIEc.js +0 -724
  824. package/dist/MyExportsPage-C-NEjmfQ.cjs +0 -8
  825. package/dist/MyExportsPage-CKwuN1wj.js +0 -8
  826. package/dist/MyExportsPage-CcO8Mf8y.cjs +0 -778
  827. package/dist/MyExportsPage-CcO8Mf8y.cjs.map +0 -1
  828. package/dist/PageContainer-DFKnbhBN.cjs +0 -1858
  829. package/dist/PageContainer-DFKnbhBN.cjs.map +0 -1
  830. package/dist/PageContainer-SljTiaZr.js +0 -1756
  831. package/dist/PageContainer-SljTiaZr.js.map +0 -1
  832. package/dist/PageNotFoundRoute-BR4QPROq.js +0 -112
  833. package/dist/PageNotFoundRoute-BR4QPROq.js.map +0 -1
  834. package/dist/PageNotFoundRoute-B_3_Yw5c.js +0 -3
  835. package/dist/PageNotFoundRoute-Cu88CEUm.cjs +0 -124
  836. package/dist/PageNotFoundRoute-Cu88CEUm.cjs.map +0 -1
  837. package/dist/PageNotFoundRoute-DNBUulJh.cjs +0 -3
  838. package/dist/PasswordResetRedirect-BXP3ftKb.js +0 -86
  839. package/dist/PasswordResetRedirect-BXP3ftKb.js.map +0 -1
  840. package/dist/PasswordResetRedirect-CYJBeZIA.cjs +0 -122
  841. package/dist/PasswordResetRedirect-CYJBeZIA.cjs.map +0 -1
  842. package/dist/PasswordResetRedirect-DbPv1Au9.cjs +0 -3
  843. package/dist/SearchUtilities-BYR03EFr.cjs +0 -232
  844. package/dist/SearchUtilities-BYR03EFr.cjs.map +0 -1
  845. package/dist/SearchUtilities-Bl4U_j-0.js +0 -202
  846. package/dist/SearchUtilities-Bl4U_j-0.js.map +0 -1
  847. package/dist/SideSheet-DKR15EH5.js +0 -485
  848. package/dist/SideSheet-DKR15EH5.js.map +0 -1
  849. package/dist/SideSheet-ERkgeXFG.cjs +0 -575
  850. package/dist/SideSheet-ERkgeXFG.cjs.map +0 -1
  851. package/dist/UdpPublicForm-1vK6Ug4-.cjs +0 -5
  852. package/dist/UdpPublicForm-BNe1yTjb.js.map +0 -1
  853. package/dist/UdpPublicForm-C8eVm1sb.js +0 -4
  854. package/dist/UdpPublicForm-fWsuCBoR.cjs +0 -52
  855. package/dist/UdpPublicForm-fWsuCBoR.cjs.map +0 -1
  856. package/dist/UtilitySideBar-CoLVUjcV.cjs +0 -2647
  857. package/dist/UtilitySideBar-CoLVUjcV.cjs.map +0 -1
  858. package/dist/UtilitySideBar-Dz_17lBo.js +0 -2277
  859. package/dist/UtilitySideBar-Dz_17lBo.js.map +0 -1
  860. package/dist/VirtualBrowser-79L67ptM.js +0 -572
  861. package/dist/VirtualBrowser-79L67ptM.js.map +0 -1
  862. package/dist/VirtualBrowser-CBJQrZar.cjs +0 -573
  863. package/dist/VirtualBrowser-CBJQrZar.cjs.map +0 -1
  864. package/dist/WorkflowContainer-0_Aj2YEQ.js +0 -9
  865. package/dist/WorkflowContainer-C06Cr059.cjs +0 -9
  866. package/dist/WorkflowContainer-D8L8yLtX.cjs +0 -1774
  867. package/dist/WorkflowContainer-D8L8yLtX.cjs.map +0 -1
  868. package/dist/WorkflowContainer-mXeP_hbS.js +0 -1708
  869. package/dist/WorkflowContainer-mXeP_hbS.js.map +0 -1
  870. package/dist/apiHelpers-Dyq5plHt.cjs +0 -377
  871. package/dist/apiHelpers-Dyq5plHt.cjs.map +0 -1
  872. package/dist/apiHelpers-ntQQ4i7A.js +0 -257
  873. package/dist/apiHelpers-ntQQ4i7A.js.map +0 -1
  874. package/dist/chunk-Cn1u12Og.js +0 -34
  875. package/dist/chunk-DoeelZqw.cjs +0 -51
  876. package/dist/index.cjs +0 -50843
  877. package/dist/index.cjs.map +0 -1
  878. package/dist/index.d.cts +0 -1727
  879. package/dist/index.d.ts +0 -1723
  880. package/dist/propertyTypeEnums-BcUuGbb0.js +0 -94
  881. package/dist/propertyTypeEnums-BcUuGbb0.js.map +0 -1
  882. package/dist/propertyTypeEnums-NvvbX8dM.cjs +0 -112
  883. package/dist/propertyTypeEnums-NvvbX8dM.cjs.map +0 -1
  884. package/dist-tsdown/AmbientGridTemplate-C4cO-UBE.js.map +0 -1
  885. package/dist-tsdown/AmbientGridTemplate-RvpH04W2.cjs +0 -4151
  886. package/dist-tsdown/AmbientGridTemplate-RvpH04W2.cjs.map +0 -1
  887. package/dist-tsdown/EnvironmentRibbon-C5I-zJ7u.cjs +0 -1546
  888. package/dist-tsdown/EnvironmentRibbon-C5I-zJ7u.cjs.map +0 -1
  889. package/dist-tsdown/EnvironmentRibbon-W5AjvnLN.js.map +0 -1
  890. package/dist-tsdown/MenuPage-Zn5ipVRK.cjs +0 -547
  891. package/dist-tsdown/MenuPage-Zn5ipVRK.cjs.map +0 -1
  892. package/dist-tsdown/MyExportsPage-B2wf-kFZ.cjs +0 -763
  893. package/dist-tsdown/MyExportsPage-B2wf-kFZ.cjs.map +0 -1
  894. package/dist-tsdown/MyExportsPage-BuzFo_X_.cjs +0 -8
  895. package/dist-tsdown/MyExportsPage-CuJoA0n6.js +0 -8
  896. package/dist-tsdown/MyExportsPage-DWbSEbU5.js.map +0 -1
  897. package/dist-tsdown/PageContainer-BG6v3pM7.cjs +0 -1841
  898. package/dist-tsdown/PageContainer-BG6v3pM7.cjs.map +0 -1
  899. package/dist-tsdown/PageContainer-CWhjU1zS.js.map +0 -1
  900. package/dist-tsdown/PageNotFoundRoute-CciC9cPY.cjs +0 -124
  901. package/dist-tsdown/PageNotFoundRoute-CciC9cPY.cjs.map +0 -1
  902. package/dist-tsdown/PageNotFoundRoute-DsRSLpI6.js +0 -3
  903. package/dist-tsdown/PageNotFoundRoute-Z5qYmErL.js +0 -112
  904. package/dist-tsdown/PageNotFoundRoute-aJr2o81C.cjs +0 -3
  905. package/dist-tsdown/PasswordResetRedirect-1cRmBJvr.cjs +0 -3
  906. package/dist-tsdown/PasswordResetRedirect-BMHXzpvb.js +0 -3
  907. package/dist-tsdown/PasswordResetRedirect-DRhK3lVL.cjs +0 -118
  908. package/dist-tsdown/PasswordResetRedirect-DRhK3lVL.cjs.map +0 -1
  909. package/dist-tsdown/SearchUtilities-URbeAh75.js.map +0 -1
  910. package/dist-tsdown/SearchUtilities-kF1roS4F.cjs +0 -216
  911. package/dist-tsdown/SearchUtilities-kF1roS4F.cjs.map +0 -1
  912. package/dist-tsdown/SideSheet-DcEfnfH_.js.map +0 -1
  913. package/dist-tsdown/SideSheet-XOQ0yjmY.cjs +0 -410
  914. package/dist-tsdown/SideSheet-XOQ0yjmY.cjs.map +0 -1
  915. package/dist-tsdown/UdpPublicForm-BZff9-Hy.js +0 -4
  916. package/dist-tsdown/UdpPublicForm-CaWFfHLQ.cjs +0 -5
  917. package/dist-tsdown/UdpPublicForm-DFEJakHu.cjs +0 -52
  918. package/dist-tsdown/UdpPublicForm-DFEJakHu.cjs.map +0 -1
  919. package/dist-tsdown/UdpPublicForm-EOSy6X_O.js +0 -41
  920. package/dist-tsdown/UtilitySideBar-C-5lGIvy.cjs +0 -2503
  921. package/dist-tsdown/UtilitySideBar-C-5lGIvy.cjs.map +0 -1
  922. package/dist-tsdown/VirtualBrowser-DmgmfhWg.cjs +0 -568
  923. package/dist-tsdown/VirtualBrowser-DmgmfhWg.cjs.map +0 -1
  924. package/dist-tsdown/VirtualBrowser-OXhftZwa.js.map +0 -1
  925. package/dist-tsdown/WorkflowContainer-BdakMxJP.js +0 -9
  926. package/dist-tsdown/WorkflowContainer-Bm1FHgJq.cjs +0 -1718
  927. package/dist-tsdown/WorkflowContainer-Bm1FHgJq.cjs.map +0 -1
  928. package/dist-tsdown/WorkflowContainer-C2W0pr5f.js.map +0 -1
  929. package/dist-tsdown/WorkflowContainer-C9hsSvOg.cjs +0 -9
  930. package/dist-tsdown/apiHelpers-TkqtXraB.cjs +0 -373
  931. package/dist-tsdown/apiHelpers-TkqtXraB.cjs.map +0 -1
  932. package/dist-tsdown/chunk-CHLpw0oG.js +0 -25
  933. package/dist-tsdown/chunk-CsX-DzYB.cjs +0 -42
  934. package/dist-tsdown/index.cjs +0 -49909
  935. package/dist-tsdown/index.cjs.map +0 -1
  936. package/dist-tsdown/index.d.cts +0 -1727
  937. package/dist-tsdown/index.d.ts +0 -1723
  938. package/dist-tsdown/index.js +0 -49180
  939. package/dist-tsdown/index.js.map +0 -1
  940. package/dist-tsdown/propertyTypeEnums-CaDtepcE.js.map +0 -1
  941. package/dist-tsdown/propertyTypeEnums-Cn4wJJc5.cjs +0 -174
  942. package/dist-tsdown/propertyTypeEnums-Cn4wJJc5.cjs.map +0 -1
  943. /package/{dist-tsdown → dist}/assets/images/phone.png +0 -0
  944. /package/{dist-tsdown → dist}/assets/paymentIcons/american-logo.svg +0 -0
  945. /package/{dist-tsdown → dist}/assets/paymentIcons/amex.svg +0 -0
  946. /package/{dist-tsdown → dist}/assets/paymentIcons/diners.svg +0 -0
  947. /package/{dist-tsdown → dist}/assets/paymentIcons/discover-logo.svg +0 -0
  948. /package/{dist-tsdown → dist}/assets/paymentIcons/discover.svg +0 -0
  949. /package/{dist-tsdown → dist}/assets/paymentIcons/echeck-logo.svg +0 -0
  950. /package/{dist-tsdown → dist}/assets/paymentIcons/jcb.svg +0 -0
  951. /package/{dist-tsdown → dist}/assets/paymentIcons/mastercard-logo.svg +0 -0
  952. /package/{dist-tsdown → dist}/assets/paymentIcons/mastercard.svg +0 -0
  953. /package/{dist-tsdown → dist}/assets/paymentIcons/unionpay.svg +0 -0
  954. /package/{dist-tsdown → dist}/assets/paymentIcons/visa-logo.svg +0 -0
  955. /package/{dist-tsdown → dist}/assets/paymentIcons/visa.svg +0 -0
  956. /package/{dist-tsdown → dist}/assets/unityIcons/NoEntityOpened.svg +0 -0
  957. /package/{dist-tsdown → dist}/assets/unityIcons/Sewer.svg +0 -0
  958. /package/{dist-tsdown → dist}/assets/unityIcons/TruckIcon.svg +0 -0
  959. /package/{dist-tsdown → dist}/assets/unityIcons/WaterDrop.svg +0 -0
  960. /package/{dist-tsdown → dist}/componentSystems/pageRenderer/style/style.css +0 -0
  961. /package/{dist-tsdown → dist}/map-library/Map/Map.css +0 -0
  962. /package/{dist-tsdown → dist}/maps/openLayerMaps/Map/Map.css +0 -0
  963. /package/{dist-tsdown → dist}/stories/assets/code-brackets.svg +0 -0
  964. /package/{dist-tsdown → dist}/stories/assets/colors.svg +0 -0
  965. /package/{dist-tsdown → dist}/stories/assets/comments.svg +0 -0
  966. /package/{dist-tsdown → dist}/stories/assets/direction.svg +0 -0
  967. /package/{dist-tsdown → dist}/stories/assets/flow.svg +0 -0
  968. /package/{dist-tsdown → dist}/stories/assets/plugin.svg +0 -0
  969. /package/{dist-tsdown → dist}/stories/assets/repo.svg +0 -0
  970. /package/{dist-tsdown → dist}/stories/assets/stackalt.svg +0 -0
  971. /package/{dist-tsdown → dist}/stories/button.css +0 -0
  972. /package/{dist-tsdown → dist}/stories/header.css +0 -0
  973. /package/{dist-tsdown → dist}/stories/page.css +0 -0
  974. /package/{dist-tsdown → dist}/style.css +0 -0
  975. /package/{dist-tsdown → dist}/styles.module.css +0 -0
  976. /package/{dist-tsdown → dist}/utilities/aggrid/ag-grid-styles.scss +0 -0
@@ -1,2503 +0,0 @@
1
- const require_chunk = require('./chunk-CsX-DzYB.cjs');
2
- const require_EnvironmentRibbon = require('./EnvironmentRibbon-C5I-zJ7u.cjs');
3
- const require_SearchUtilities = require('./SearchUtilities-kF1roS4F.cjs');
4
- const react = require_chunk.__toESM(require("react"));
5
- const __material_ui_core = require_chunk.__toESM(require("@material-ui/core"));
6
- const react_jsx_runtime = require_chunk.__toESM(require("react/jsx-runtime"));
7
- const udp_react_stencil_component_library = require_chunk.__toESM(require("udp-react-stencil-component-library"));
8
- const clsx = require_chunk.__toESM(require("clsx"));
9
- const __fluentui_react_icons = require_chunk.__toESM(require("@fluentui/react-icons"));
10
- const prop_types = require_chunk.__toESM(require("prop-types"));
11
- const lodash = require_chunk.__toESM(require("lodash"));
12
- const react_i18next = require_chunk.__toESM(require("react-i18next"));
13
- const json_logic_js = require_chunk.__toESM(require("json-logic-js"));
14
- const uuid = require_chunk.__toESM(require("uuid"));
15
- const src_assets_unityIcons_Sewer_svg = require_chunk.__toESM(require("./assets/unityIcons/Sewer.svg"));
16
- const src_assets_unityIcons_WaterDrop_svg = require_chunk.__toESM(require("./assets/unityIcons/WaterDrop.svg"));
17
- const react_teleporter = require_chunk.__toESM(require("react-teleporter"));
18
- const __material_ui_lab = require_chunk.__toESM(require("@material-ui/lab"));
19
- const __material_ui_lab_Skeleton = require_chunk.__toESM(require("@material-ui/lab/Skeleton"));
20
- const react_resizable = require_chunk.__toESM(require("react-resizable"));
21
-
22
- //#region src/utilities/rules/RuleUtilities.js
23
- /**
24
- * Constructs an array of object from the object map.
25
- *
26
- * @param {Object} obj ex: {"a": "customerID", "b": "firstName"}
27
- * @returns an array of object ex. [{"variable": "a", "value": "serviceLocationID"}, {"variable": "b", "value" "firstName"}]
28
- */
29
- const getPropertyMappingList = (obj) => {
30
- const mappings = [];
31
- if (obj) {
32
- const keys = Object.keys(obj);
33
- keys.forEach((key) => {
34
- const mappingObj = {
35
- variable: key,
36
- value: obj[key]
37
- };
38
- mappings.push(mappingObj);
39
- });
40
- }
41
- return mappings;
42
- };
43
- /**
44
- * Constructs a map object where variables are keys and values are the values.
45
- *
46
- * @param {Array<Object>} properties ex. [{"variable": "a", "value": "serviceLocationID"}, {"variable": "b", "value" "firstName"}]
47
- * @returns mapped object ex: {"a": "customerID", "b": "firstName"}
48
- */
49
- const getPropertyMappingObj = (properties) => {
50
- const mapping = {};
51
- if (properties?.length) properties.forEach((property) => {
52
- mapping[property.variable] = property.value;
53
- });
54
- return mapping;
55
- };
56
- /**
57
- * Maps the keys of mapping to the values of data.
58
- *
59
- * @param {Object} mapping ex: {"a": "customerID", "b": "firstName"}
60
- * @param {Object} data ex: {"customerID": 1001, "firstName": "John"}
61
- * @returns flat object ex: {"a": 1001, "b": "John"}
62
- */
63
- const mapRuleData = (mapping, data) => {
64
- const mappedData = {};
65
- if (mapping && mapping.length) {
66
- const keys = Object.keys(mapping);
67
- keys.forEach((key) => {
68
- const dataKey = mapping[key];
69
- if (dataKey) {
70
- const dataValue = data[dataKey];
71
- mappedData[key] = dataValue;
72
- }
73
- });
74
- }
75
- return mappedData;
76
- };
77
- /**
78
- * Maps the mapping values in the mapping object to the variables in the rule.
79
- *
80
- * @param {Object} mapping ex: {"a": "customerID", "b": "firstName"}
81
- * @param {Object} rule ex: {"or": [{"==": [{"var": "a"}, 400]}, {"==": [{"var": "b"}, John]}]}
82
- * @returns jsonLogic object with the correct variable names ex: [{"==": [{"var": "customerID"}, 400]}, {"==": [{"var": "firstName"}, John]}]
83
- */
84
- const mapRule = (mapping = {}, rule = "") => {
85
- const keys = Object.keys(mapping);
86
- let updatedJsonLogic = JSON.stringify(rule);
87
- keys.forEach((key) => {
88
- const substr = JSON.stringify({ var: key });
89
- const newSubstr = JSON.stringify({ var: mapping[key] });
90
- updatedJsonLogic = updatedJsonLogic.replaceAll(substr, newSubstr);
91
- });
92
- try {
93
- return JSON.parse(updatedJsonLogic);
94
- } catch (err) {
95
- console.err("Error with parsing JSON Logic String");
96
- return {};
97
- }
98
- };
99
- /**
100
- * Evaluates the rule with provided data.
101
- *
102
- * @param {Object} rule ex: {"or": [{"==": [{"var": "customerID"}, 400]}, {"==": [{"var": "firstName"}, John]}]}
103
- * @param {Object} data ex: {"customerID": 1001, "firstName": "John"}
104
- * @param {string} objectKey ex: "users"
105
- * @param {boolean} dataLazyLoaded ex: "true"
106
- * @returns the evaluated rule ex: true
107
- */
108
- const evaluateRule = (rule, data, objectKey, dataLazyLoaded) => {
109
- let formattedData = {};
110
- if (objectKey && dataLazyLoaded) formattedData[objectKey] = data[objectKey] ? data[objectKey] : data;
111
- else formattedData = data;
112
- return json_logic_js.default.apply(rule, formattedData);
113
- };
114
-
115
- //#endregion
116
- //#region src/models/GroupNode.ts
117
- var GroupNode = class {
118
- id;
119
- isGroupNode;
120
- groupType;
121
- children;
122
- isExpanded;
123
- parentId;
124
- parentGroupId;
125
- properties;
126
- isOutlierGroup;
127
- hideEmptyGroups;
128
- constructor(node) {
129
- this.id = node.id || (0, uuid.v4)();
130
- this.isGroupNode = true;
131
- this.hideEmptyGroups = node.hideEmptyGroups || false;
132
- this.groupType = node.groupType || require_EnvironmentRibbon.NodeGroupTypeEnums.Static;
133
- this.children = node.children || [];
134
- this.isExpanded = node.isExpanded || false;
135
- this.parentId = node.parentId || null;
136
- this.parentGroupId = node.parentGroupId || null;
137
- this.properties = node.properties ? {
138
- propertyMapping: null,
139
- jsonLogic: null,
140
- icon: {
141
- name: "GroupedListIcon",
142
- type: "",
143
- color: ""
144
- },
145
- ...node.properties
146
- } : {
147
- propertyMapping: null,
148
- jsonLogic: null,
149
- icon: {
150
- name: "GroupedListIcon",
151
- type: "",
152
- color: ""
153
- }
154
- };
155
- this.isOutlierGroup = node.isOutlierGroup || false;
156
- }
157
- };
158
-
159
- //#endregion
160
- //#region src/utilities/tree/TreeUtilities.js
161
- const makeTreeStructure = (treeData, key, parentKey, parentGroupKey = "parentGroupId") => {
162
- if (!treeData) return [];
163
- const keys = [];
164
- treeData.forEach((node) => {
165
- node.children = [];
166
- if (node["isExpanded"] === void 0 && !node.isGroupNode) if (node.properties.defaultDisplay === "collapsed" || node.properties.lazyLoad) node.isExpanded = false;
167
- else node.isExpanded = true;
168
- keys.push(node[key]);
169
- });
170
- const roots = treeData.filter((node) => {
171
- return !(node?.isGroupNode ? node[parentGroupKey] : node[parentKey]);
172
- });
173
- const nodes = [];
174
- const existingGroups = [];
175
- roots.forEach((root) => {
176
- nodes.push(root);
177
- });
178
- while (nodes.length > 0) {
179
- const node = nodes.pop();
180
- let children = treeData.filter((data) => data[parentKey] === node[key] || data[parentGroupKey] === node[key]);
181
- children.forEach((child) => {
182
- if (child?.isGroupNode) {
183
- const existingGroup = existingGroups.find((eg) => eg.id === child.id && eg.parentGroupId === child.parentGroupId);
184
- if (!existingGroup) {
185
- existingGroups.push(child);
186
- node.children.push(child);
187
- nodes.push(child);
188
- }
189
- } else if (node.isGroupNode && child.parentGroupId || !node.isGroupNode && !child.parentGroupId) {
190
- node.children.push(child);
191
- nodes.push(child);
192
- }
193
- });
194
- }
195
- const removeEmptyGroupNodes = (node) => {
196
- if (node?.isGroupNode && node?.hideEmptyGroups && !node?.children?.length) return null;
197
- node.children = node.children.map(removeEmptyGroupNodes).filter((child) => child !== null);
198
- return node;
199
- };
200
- const filteredRoots = roots.map(removeEmptyGroupNodes).filter((root) => root !== null);
201
- if (filteredRoots.length === 1) return filteredRoots[0];
202
- return filteredRoots;
203
- };
204
- const makeTreeStaticGroupStructure = (treeData, key, parentKey, groupType = require_EnvironmentRibbon.NodeGroupTypeEnums.Static, hideEmptyGroups) => {
205
- if (!treeData) return [];
206
- const keys = [];
207
- treeData.forEach((node, index) => {
208
- const { id, hideEmptyGroups: hideEmptyGroups$1, children, apiMethodInstanceId, parentGroupId, order, isExpanded,...groupProperties } = node;
209
- treeData[index] = new GroupNode({
210
- id,
211
- groupType,
212
- children,
213
- parentId: parentGroupId,
214
- parentGroupId,
215
- isExpanded,
216
- properties: { ...groupProperties }
217
- });
218
- keys.push(node[key]);
219
- });
220
- const roots = treeData.filter((node) => keys.indexOf(node[parentKey]) === -1);
221
- const nodes = [];
222
- roots.forEach((root) => {
223
- nodes.push(root);
224
- });
225
- while (nodes.length > 0) {
226
- const node = nodes.pop();
227
- let children = treeData.filter((data) => data[parentKey] === node[key]);
228
- children.forEach((child) => {
229
- node.children.push(child);
230
- nodes.push(child);
231
- });
232
- }
233
- if (roots.length === 1) return roots[0];
234
- return roots;
235
- };
236
- const makeDynamicGroupStructures = (treeStructure, results) => {
237
- if (!treeStructure) return [];
238
- const groupStructures = [];
239
- results.forEach((item) => {
240
- processDynamicGroupForCurrentNodeLevel(item, treeStructure, groupStructures, groupStructures);
241
- });
242
- return groupStructures;
243
- };
244
- const processDynamicGroupForCurrentNodeLevel = (item, node, groupStructures, previousFilteredGroups = []) => {
245
- const { property, id } = node;
246
- const label = property ? getLabelFromProperty(item, property) : null;
247
- let filteredGroups = [];
248
- previousFilteredGroups.forEach((group) => {
249
- if (group) {
250
- const foundGroups = findNodesByIdAndLabel(group, id, label);
251
- if (foundGroups.length) filteredGroups = filteredGroups.concat(foundGroups);
252
- }
253
- });
254
- if (filteredGroups.length) {
255
- if (node?.children?.length) node.children.forEach((child) => processDynamicGroupForCurrentNodeLevel(item, child, groupStructures, filteredGroups));
256
- } else if (label) {
257
- const dynamicGroupTree = makeDynamicGroupTree(node, item);
258
- if (node.parentGroupId) previousFilteredGroups.forEach((filteredGroup) => {
259
- const matchingGroupNode = findNodeById(filteredGroup, node.parentGroupId);
260
- if (matchingGroupNode) {
261
- dynamicGroupTree.parentGroupId = matchingGroupNode.id;
262
- matchingGroupNode.children.push(dynamicGroupTree);
263
- }
264
- });
265
- else groupStructures.push(dynamicGroupTree);
266
- }
267
- };
268
- const makeDynamicGroupTree = (node, item, parentGroupNode) => {
269
- const { id, children, apiMethodInstanceId, parentGroupId, order, property, label, isExpanded,...groupProperties } = node;
270
- const updatedLabel = property ? getLabelFromProperty(item, property) : null;
271
- if (updatedLabel) {
272
- const groupNode = new GroupNode({
273
- id: `${id}`,
274
- groupType: require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic,
275
- children: [],
276
- parentGroupId: parentGroupNode?.id || null,
277
- isExpanded,
278
- properties: {
279
- label: updatedLabel,
280
- ...groupProperties,
281
- propertyKey: property
282
- }
283
- });
284
- if (parentGroupNode) parentGroupNode.children.push(groupNode);
285
- if (children?.length) children.forEach((child) => makeDynamicGroupTree(child, item, groupNode));
286
- return groupNode;
287
- }
288
- };
289
- const makeDynamicTreeStructure = (treeData, key, parentKey) => {
290
- if (!treeData) return [];
291
- const keys = [];
292
- treeData.forEach((node, index) => {
293
- keys.push(node[key]);
294
- });
295
- const roots = treeData.filter((node) => keys.indexOf(node[parentKey]) === -1);
296
- const nodes = [];
297
- roots.forEach((root) => {
298
- nodes.push(root);
299
- });
300
- while (nodes.length > 0) {
301
- const node = nodes.pop();
302
- let children = treeData.filter((data) => data[parentKey] === node[key]);
303
- children.forEach((child) => {
304
- node.children.push(child);
305
- nodes.push(child);
306
- });
307
- }
308
- if (roots.length === 1) return roots[0];
309
- return roots;
310
- };
311
- const getIconFromName = (name) => {
312
- if (!name) return null;
313
- const substr = name.slice(-4);
314
- if (substr.toLowerCase() !== "icon") {
315
- const updatedName = `${name}Icon`;
316
- return __fluentui_react_icons[updatedName] || null;
317
- } else return __fluentui_react_icons[name] || null;
318
- };
319
- const findLastNode = (tree) => {
320
- let result = null;
321
- if (!tree?.children?.length) return tree;
322
- else {
323
- if (tree?.children) tree.children.forEach((node) => result = findLastNode(node));
324
- return result;
325
- }
326
- };
327
- const searchTree = (tree, id) => {
328
- let result = null;
329
- if (tree.id === id) return tree;
330
- else {
331
- if (tree.children) tree.children.some((node) => result = searchTree(node, id));
332
- return result;
333
- }
334
- };
335
- const deleteNode = (treeData, nodeId) => {
336
- const updatedTreeData = [...treeData];
337
- const foundNode = updatedTreeData.find((node) => node.id === nodeId);
338
- const nodeIndex = updatedTreeData.findIndex((node) => node.id === nodeId);
339
- if (!foundNode.parentId || !updatedTreeData.some((node) => node.parentId === nodeId)) {
340
- if (nodeIndex > -1) updatedTreeData.splice(nodeIndex, 1);
341
- const immediateChild = updatedTreeData.find((node) => node.parentId === nodeId);
342
- if (immediateChild) immediateChild.parentId = null;
343
- } else {
344
- foundNode.isDeleted = true;
345
- foundNode.properties = {};
346
- }
347
- return updatedTreeData;
348
- };
349
- const deleteNodeAndChildren = (treeData, nodeId) => {
350
- const updatedTreeData = [...treeData];
351
- const nodeIdsToDelete = [];
352
- nodeIdsToDelete.push(nodeId);
353
- getAllChildrenNodesToDelete(updatedTreeData, nodeId, nodeIdsToDelete);
354
- return updatedTreeData.filter((node) => !nodeIdsToDelete.includes(node.id));
355
- };
356
- const getAllChildrenNodesToDelete = (treeData, nodeId, nodeIdsToDelete) => {
357
- const nodesToDelete = treeData.filter((node) => node.parentId === nodeId);
358
- nodesToDelete.forEach((node) => {
359
- nodeIdsToDelete.push(node.id);
360
- getAllChildrenNodesToDelete(treeData, node.id, nodeIdsToDelete);
361
- });
362
- };
363
- const processCatalogObjectKeysInOrder = (tree, keys) => {
364
- if (!tree?.children?.length) keys.push(tree?.properties?.catalogObjectKey);
365
- else if (tree?.children) {
366
- if (tree?.properties?.catalogObjectKey) keys.push(tree?.properties?.catalogObjectKey);
367
- tree.children.forEach((node) => processCatalogObjectKeysInOrder(node, keys));
368
- }
369
- };
370
- const processOrderedTreeData = (tree, treeData) => {
371
- if (!tree?.children?.length) treeData.push(tree);
372
- else if (tree?.children) {
373
- treeData.push(tree);
374
- tree.children.forEach((node) => processOrderedTreeData(node, treeData));
375
- }
376
- };
377
- const processObjectToTree = (result, treeData, objectReferenceKeys, treeList, catalogObjects, promotedEntities, wasLazyLoaded) => {
378
- const treeArr = { ...treeData };
379
- processReferences(result, objectReferenceKeys, treeArr, 0, treeList, null, catalogObjects, promotedEntities, wasLazyLoaded);
380
- };
381
- const processReferences = (reference, objectReferenceKeys, treeData, index, treeList, parentId, catalogObjects, promotedEntities, wasLazyLoaded) => {
382
- const newIndex = index + 1;
383
- if (reference) {
384
- let node = parentId ? treeData[newIndex] : treeData[0];
385
- let nodeGroups = [];
386
- if (parentId) {
387
- if (node?.properties?.groupConfiguration?.groupType === require_EnvironmentRibbon.NodeGroupTypeEnums.Static) nodeGroups = constructStaticNodeGroups(node, true);
388
- else if (node?.properties?.groupConfiguration?.groupType === require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic) nodeGroups = constructDynamicNodeGroups(reference, node, true);
389
- }
390
- if (Array.isArray(reference) && reference.length) reference.forEach((ref, i) => {
391
- if (node) {
392
- const nodeCopy = (0, lodash.cloneDeep)(node);
393
- processObjIndex(nodeCopy, ref, i, parentId, catalogObjects, promotedEntities, wasLazyLoaded);
394
- if (nodeGroups.length) {
395
- if (node?.properties?.groupConfiguration?.groupType === require_EnvironmentRibbon.NodeGroupTypeEnums.Static) {
396
- const groupedItemIndexes = /* @__PURE__ */ new Set();
397
- let processedItem = {
398
- itemAdded: false,
399
- nodeChildren: []
400
- };
401
- nodeGroups.forEach((nodeGroup) => {
402
- let nodeGroupChildren = [];
403
- processedItem = processItemForStaticNodeGroup(nodeGroup, ref, groupedItemIndexes, nodeCopy, i, /* @__PURE__ */ new Set(), treeList);
404
- nodeGroupChildren = nodeGroupChildren.concat(processedItem.nodeChildren);
405
- mapNodeGroupChildren(nodeGroup, nodeGroupChildren);
406
- nodeGroup.parentGroupId = nodeCopy.parentId;
407
- });
408
- if (!processedItem.itemAdded && node?.properties?.groupConfiguration?.outlier === require_EnvironmentRibbon.NodeGroupOutlierEnums.Individual) {
409
- const nodeIsHidden = checkNodeIsHidden(nodeCopy, ref, wasLazyLoaded);
410
- !nodeIsHidden && treeList.push(nodeCopy);
411
- }
412
- } else if (node?.properties?.groupConfiguration?.groupType === require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic) nodeGroups.forEach((nodeGroup) => {
413
- nodeGroup.parentGroupId = nodeCopy.parentId;
414
- nodeGroup.parentId = nodeCopy.parentId;
415
- processGroupNodesAndAddToTreeList(nodeGroup, treeList, nodeCopy.parentId, ref, wasLazyLoaded);
416
- });
417
- } else {
418
- const nodeIsHidden = checkNodeIsHidden(nodeCopy, ref, wasLazyLoaded);
419
- !nodeIsHidden && treeList.push(nodeCopy);
420
- }
421
- if (nodeCopy?.children?.length) {
422
- const objectReferenceKeysCopy = [...objectReferenceKeys];
423
- nodeCopy.children.forEach((childNode, i$1) => {
424
- const catalogObjectKey = childNode?.properties?.catalogObjectKey;
425
- const nextIndex = objectReferenceKeysCopy.indexOf(catalogObjectKey);
426
- if (!parentId) objectReferenceKeysCopy[nextIndex] = null;
427
- processReferences(ref[catalogObjectKey], objectReferenceKeys, treeData, nextIndex, treeList, nodeCopy.id, catalogObjects, promotedEntities, nodeCopy.properties.lazyLoad);
428
- });
429
- }
430
- }
431
- });
432
- else if (typeof reference === "object" && !Array.isArray(reference)) {
433
- processObjIndex(node, reference, 0, parentId, catalogObjects, promotedEntities, wasLazyLoaded);
434
- if (node) {
435
- const nodeCopy = (0, lodash.cloneDeep)(node);
436
- const nodeIsHidden = checkNodeIsHidden(nodeCopy, reference, wasLazyLoaded);
437
- !nodeIsHidden && treeList.push(nodeCopy);
438
- if (nodeCopy?.children?.length) {
439
- const objectReferenceKeysCopy = [...objectReferenceKeys];
440
- nodeCopy.children.forEach((childNode, i) => {
441
- const catalogObjectKey = childNode?.properties?.catalogObjectKey;
442
- const nextIndex = parentId ? newIndex : objectReferenceKeysCopy.indexOf(catalogObjectKey);
443
- if (!parentId) objectReferenceKeysCopy[nextIndex] = null;
444
- processReferences(reference[catalogObjectKey], objectReferenceKeys, treeData, nextIndex, treeList, nodeCopy.id, catalogObjects, promotedEntities, nodeCopy.properties.lazyLoad);
445
- });
446
- }
447
- }
448
- }
449
- }
450
- };
451
- const processObjIndex = (node, obj, index, parentId, catalogObjects, promotedEntities, wasLazyLoaded) => {
452
- if (node.properties.conditionalNodeIconExpression) {
453
- const conditionalNodeIcon = evaluateRule(node.properties.conditionalNodeIconExpression, obj, node.properties?.joiningEntityCatalogObjectKey, wasLazyLoaded);
454
- if (conditionalNodeIcon) {
455
- node.properties["conditionalNodeIconName"] = conditionalNodeIcon?.name || "";
456
- node.properties["conditionalNodeIconColor"] = conditionalNodeIcon?.iconColor?.hex;
457
- node.properties["conditionalNodeIconType"] = conditionalNodeIcon?.type || "";
458
- } else {
459
- node.properties["conditionalNodeIconName"] = "";
460
- node.properties["conditionalNodeIconColor"] = "";
461
- node.properties["conditionalNodeIconType"] = "";
462
- }
463
- }
464
- if (node.properties.conditionalNodeAdornmentExpression || node.properties.conditionalIconExpression) {
465
- const conditionalNodeAdornment = node.properties.conditionalNodeAdornmentExpression ? evaluateRule(node.properties.conditionalNodeAdornmentExpression, obj, node.properties?.joiningEntityCatalogObjectKey, wasLazyLoaded) : evaluateRule(node.properties.conditionalIconExpression, obj, node.properties?.joiningEntityCatalogObjectKey, wasLazyLoaded);
466
- if (conditionalNodeAdornment) {
467
- node.properties["conditionalNodeAdornmentName"] = conditionalNodeAdornment?.name || "";
468
- node.properties["conditionalNodeAdornmentColor"] = conditionalNodeAdornment?.iconColor?.hex;
469
- node.properties["conditionalNodeAdornmentType"] = conditionalNodeAdornment?.type || "";
470
- } else {
471
- node.properties["conditionalNodeAdornmentName"] = "";
472
- node.properties["conditionalNodeAdornmentColor"] = "";
473
- node.properties["conditionalNodeAdornmentType"] = "";
474
- }
475
- }
476
- if (node.properties.catalogReturnObject) {
477
- let searchIdentifiers = require_SearchUtilities.getSearchIdentifiers(catalogObjects, node.properties.catalogReturnObject);
478
- node.properties["searchIdentifier"] = searchIdentifiers?.join(",");
479
- const associatedTreePrimaryKeyMap = node.properties.associatedTreePrimaryKeyMap;
480
- if (!!associatedTreePrimaryKeyMap) {
481
- searchIdentifiers = Object.keys(associatedTreePrimaryKeyMap);
482
- node.properties["searchIdentifier"] = searchIdentifiers;
483
- }
484
- node.properties["filterElements"] = [];
485
- const searchValues = [];
486
- const joiningEntityCatalogObjectKey = node?.properties?.joiningEntityCatalogObjectKey;
487
- searchIdentifiers.forEach((searchIdentifier) => {
488
- const searchField = searchIdentifier ? searchIdentifier.charAt(0).toUpperCase() + searchIdentifier.slice(1) : "";
489
- let searchValue = "";
490
- let si = associatedTreePrimaryKeyMap?.[searchIdentifier] ? associatedTreePrimaryKeyMap?.[searchIdentifier] : searchIdentifier;
491
- if (obj[si]) searchValue = obj[si];
492
- else if (joiningEntityCatalogObjectKey) searchValue = obj[joiningEntityCatalogObjectKey] ? obj[joiningEntityCatalogObjectKey][si] : "";
493
- node.properties["filterElements"].push({
494
- searchField,
495
- searchOperator: "=",
496
- searchValue: searchValue ?? ""
497
- });
498
- searchValues.push(searchValue);
499
- });
500
- node.properties["searchValue"] = searchValues.toString();
501
- }
502
- node.properties["nodeLabel"] = getDisplayName(node, obj);
503
- node.properties["nodeSubLabel"] = getDisplayDetails(node, obj);
504
- node.properties["headerTitle"] = getHeaderTitle(node, obj);
505
- node.parentId = parentId;
506
- node["entityNodeParentId"] = parentId;
507
- node.id = (0, uuid.v4)();
508
- node.nodeObj = obj;
509
- if (node?.properties?.lazyLoad) node.lazyLoadChildrenArr = getLazyLoadChildrenArr(node, catalogObjects, promotedEntities);
510
- };
511
- const getEntityAssoc = (nodeEntity, node) => {
512
- let entityAssoc = null;
513
- if (nodeEntity) {
514
- const referenceProperty = nodeEntity.properties.find((property) => {
515
- if (node.properties?.joiningEntityName) return property.reference === node.properties?.joiningEntityName;
516
- else return property.reference === node.properties?.catalogReturnObject;
517
- });
518
- entityAssoc = referenceProperty ? referenceProperty.extendedProperties?.childEntityAssoc : null;
519
- }
520
- return entityAssoc;
521
- };
522
- const getLazyLoadChildrenArr = (node, catalogObjects, promotedEntities) => {
523
- const lazyLoadChildrenArr = [];
524
- let defaultSearchIdentifiers = [];
525
- if (node?.properties?.catalogReturnObject) defaultSearchIdentifiers = require_SearchUtilities.getSearchIdentifiers(catalogObjects, node.properties.catalogReturnObject);
526
- node && node.children && node.children.forEach((childNode) => {
527
- const lazyNodeSearchObj = {
528
- apiMethodId: null,
529
- data: null,
530
- parentNodeRefKey: childNode.properties?.catalogObjectKey,
531
- catalogReturnObject: childNode.properties?.catalogReturnObject
532
- };
533
- const entityName = childNode.properties?.catalogReturnObject;
534
- const promotedEntity = promotedEntities?.find((pe) => pe.entityName === entityName);
535
- let searchIdentifiers = [];
536
- const filterElements = [];
537
- if (promotedEntity) {
538
- let baseSearch = promotedEntity.unityBaseSearchMethod;
539
- let childBaseSearch = promotedEntity.unityBaseSearchMethod;
540
- const nodeEntity = catalogObjects?.find((co) => co.catalogObjectName === node.properties?.catalogReturnObject);
541
- let isManyToManySearch = false;
542
- let usingJoiningTableForSearch = false;
543
- if (nodeEntity) {
544
- const childEntityAssoc = getEntityAssoc(nodeEntity, childNode);
545
- let joiningEntityName = null;
546
- let promotedEntityForJoiningTable = null;
547
- if (childEntityAssoc.Cardinality === require_EnvironmentRibbon.CardinalityTypeEnums.Many_To_Many) {
548
- isManyToManySearch = true;
549
- lazyNodeSearchObj["manyToManyKeys"] = [];
550
- joiningEntityName = childNode.properties?.joiningEntityName;
551
- promotedEntityForJoiningTable = promotedEntities?.find((pe) => pe.entityName === joiningEntityName);
552
- if (promotedEntityForJoiningTable?.unityBaseSearchMethod) {
553
- baseSearch = promotedEntityForJoiningTable.unityBaseSearchMethod;
554
- lazyNodeSearchObj.manyToManyJointEntityApiMethodId = childBaseSearch?.apiMethodId;
555
- usingJoiningTableForSearch = true;
556
- }
557
- const childNodeEntity = catalogObjects.find((co) => co.catalogObjectName === childNode.properties?.catalogReturnObject);
558
- const entityAssoc = getEntityAssoc(childNodeEntity, childNode);
559
- if (entityAssoc && Object.keys(entityAssoc).length) entityAssoc.Keys.forEach((keyVal) => {
560
- const keyValArr = keyVal.split(",");
561
- const foreignKeyName = keyValArr[0] ? keyValArr[0].trim() : "";
562
- const parentIdentifierName = keyValArr[1] ? keyValArr[1].trim() : "";
563
- const searchValueKey = /^[A-Z]*$/.test(parentIdentifierName) ? parentIdentifierName.toLowerCase() : require_EnvironmentRibbon.toLowerFirstChar(parentIdentifierName);
564
- lazyNodeSearchObj["manyToManyKeys"].push({
565
- searchItemIdentifier: usingJoiningTableForSearch ? /^[A-Z]*$/.test(foreignKeyName) ? foreignKeyName.toLowerCase() : require_EnvironmentRibbon.toLowerFirstChar(foreignKeyName) : searchValueKey,
566
- searchNameKey: foreignKeyName,
567
- searchValueKey
568
- });
569
- });
570
- }
571
- if (childEntityAssoc && Object.keys(childEntityAssoc).length) childEntityAssoc.Keys.forEach((keyVal) => {
572
- const keyValArr = keyVal.split(",");
573
- let searchJoiningEntity = "";
574
- if (!isManyToManySearch && node.nodeObj.hasOwnProperty(node.properties.joiningEntityCatalogObjectKey)) searchJoiningEntity = node.properties.joiningEntityCatalogObjectKey;
575
- const foreignKeyName = keyValArr[0] ? keyValArr[0].trim() : "";
576
- const parentIdentifierName = keyValArr[1] ? keyValArr[1].trim() : "";
577
- let siObj = {
578
- searchNameKey: parentIdentifierName,
579
- searchValueKey: /^[A-Z]*$/.test(foreignKeyName) ? foreignKeyName.toLowerCase() : require_EnvironmentRibbon.toLowerFirstChar(foreignKeyName),
580
- searchJoiningEntity
581
- };
582
- if (isManyToManySearch && !usingJoiningTableForSearch) siObj = {
583
- searchNameKey: foreignKeyName,
584
- searchValueKey: /^[A-Z]*$/.test(foreignKeyName) ? foreignKeyName.toLowerCase() : require_EnvironmentRibbon.toLowerFirstChar(foreignKeyName)
585
- };
586
- if (isManyToManySearch) {
587
- if (childNode.properties?.catalogObjectKey && childNode.properties?.joiningEntityCatalogObjectLeftKey) {
588
- siObj["joiningEntityKeyName"] = require_EnvironmentRibbon.toUpperFirstChar(!usingJoiningTableForSearch ? childNode.properties?.joiningEntityChildKey : childNode.properties?.catalogObjectKey);
589
- siObj["joiningEntityCatalogObjectLeftKeyName"] = require_EnvironmentRibbon.toUpperFirstChar(childNode.properties?.joiningEntityCatalogObjectLeftKey);
590
- }
591
- if (promotedEntityForJoiningTable?.unityBaseSearchMethod) {
592
- siObj["joiningEntityKeyName"] = null;
593
- siObj["joiningEntityCatalogObjectLeftKeyName"] = null;
594
- }
595
- }
596
- searchIdentifiers.push(siObj);
597
- });
598
- }
599
- if (!searchIdentifiers.length) defaultSearchIdentifiers.forEach((searchIdentifier) => {
600
- const siObj = {
601
- searchNameKey: searchIdentifier,
602
- searchValueKey: searchIdentifier
603
- };
604
- if (childNode.properties?.catalogObjectKey && childNode.properties?.joiningEntityCatalogObjectLeftKey) {
605
- siObj["joiningEntityKeyName"] = require_EnvironmentRibbon.toUpperFirstChar(childNode.properties?.catalogObjectKey);
606
- siObj["joiningEntityCatalogObjectLeftKeyName"] = require_EnvironmentRibbon.toUpperFirstChar(childNode.properties?.joiningEntityCatalogObjectLeftKey);
607
- }
608
- searchIdentifiers.push(siObj);
609
- });
610
- searchIdentifiers.forEach((si) => {
611
- let searchValue = "";
612
- if (si?.searchJoiningEntity) searchValue = node.nodeObj[si.searchJoiningEntity][si.searchValueKey];
613
- else if (usingJoiningTableForSearch) {
614
- const joiningEntityCatalogObjectKey = node?.properties?.joiningEntityCatalogObjectKey;
615
- const value = node?.nodeObj?.[joiningEntityCatalogObjectKey];
616
- searchValue = value ? value[si.searchValueKey] : node.nodeObj[si.searchValueKey];
617
- } else searchValue = node.nodeObj[si.searchValueKey];
618
- let formattedPropertyName = require_EnvironmentRibbon.toUpperFirstChar(si.searchNameKey);
619
- if (si["joiningEntityKeyName"] && si["joiningEntityCatalogObjectLeftKeyName"]) formattedPropertyName = `${si["joiningEntityKeyName"]}.${si["joiningEntityCatalogObjectLeftKeyName"]}.${formattedPropertyName}`;
620
- filterElements.push({
621
- searchField: formattedPropertyName,
622
- searchValue,
623
- searchOperator: "="
624
- });
625
- });
626
- lazyNodeSearchObj.data = require_SearchUtilities.getSearchObject(filterElements, 1, 50);
627
- lazyNodeSearchObj.apiMethodId = baseSearch?.apiMethodId || null;
628
- lazyLoadChildrenArr.push(lazyNodeSearchObj);
629
- } else {
630
- console.log("Error: Promote " + entityName + " entity");
631
- node.errorRetrievingChildren = "Error: Promote " + entityName + " child entity";
632
- }
633
- });
634
- return lazyLoadChildrenArr;
635
- };
636
- const formatTreeMenuItem = (responseObject, treeStructure, catalogObjects, promotedEntities, associatedInquiryTree, wasLazyLoaded) => {
637
- if (!responseObject) return null;
638
- const tree = (0, lodash.cloneDeep)(treeStructure);
639
- const orderedKeys = [];
640
- const orderedTreeData = [];
641
- const treeArr = [];
642
- processCatalogObjectKeysInOrder(tree, orderedKeys);
643
- processOrderedTreeData(tree, orderedTreeData);
644
- processObjectToTree(responseObject, orderedTreeData, orderedKeys, treeArr, catalogObjects, promotedEntities, wasLazyLoaded);
645
- const displayTree = makeTreeStructure(treeArr, "id", "parentId");
646
- displayTree["associatedInquiryTree"] = associatedInquiryTree;
647
- displayTree["wasLazyLoaded"] = wasLazyLoaded;
648
- return displayTree;
649
- };
650
- const expandAllNodes = (tree) => {
651
- tree.isExpanded = true;
652
- if (tree?.children) tree.children.forEach((node) => expandAllNodes(node));
653
- };
654
- const collapseAllNodes = (tree) => {
655
- tree.isExpanded = false;
656
- if (tree?.children) tree.children.forEach((node) => collapseAllNodes(node));
657
- };
658
- const findAllParentIds = (menuItems, currentParentNode, allParentIds = []) => {
659
- if (currentParentNode?.parentId) {
660
- allParentIds.push(currentParentNode?.parentId);
661
- const newParentNode = searchTree(menuItems, currentParentNode?.parentId);
662
- findAllParentIds(menuItems, newParentNode, allParentIds);
663
- }
664
- return allParentIds;
665
- };
666
- const formatTreeLabel = (label, obj) => {
667
- const fields = label?.split("+");
668
- const keys = fields?.map((field) => field.trim());
669
- if (keys) {
670
- const skippableKeys = [];
671
- const updatedKeys = keys.map((key, index) => {
672
- const matchedKey = key.charAt(0) === "\"";
673
- if (matchedKey) {
674
- skippableKeys.push(index);
675
- key = key.replace(/"/g, "");
676
- }
677
- return key;
678
- });
679
- const values = [];
680
- for (let j = 0; j < keys.length; j++) {
681
- let property = keys[j];
682
- if (property) {
683
- const splitProperties = property.split(".");
684
- if (splitProperties.length > 1) {
685
- let constructedValue = null;
686
- splitProperties.forEach((property$1) => {
687
- const matches = property$1.match(/\[(.*?)\]/);
688
- let objIndex = null;
689
- let arrIndex = null;
690
- if (matches) {
691
- arrIndex = parseInt(matches[1]);
692
- objIndex = matches.index;
693
- }
694
- if (typeof arrIndex === "number" && objIndex) {
695
- const formattedProperty = property$1.substring(0, objIndex);
696
- if (!constructedValue) {
697
- if (obj[formattedProperty]) constructedValue = obj[formattedProperty][arrIndex];
698
- } else if (constructedValue[formattedProperty]) constructedValue = constructedValue[formattedProperty][arrIndex];
699
- } else if (!constructedValue) constructedValue = obj[property$1];
700
- else constructedValue = constructedValue[property$1];
701
- });
702
- if (typeof constructedValue === "boolean" || typeof constructedValue === "number") constructedValue = constructedValue.toString();
703
- values.push(constructedValue);
704
- continue;
705
- }
706
- }
707
- let value = obj[property];
708
- if (typeof value === "boolean" || typeof value === "number") value = value.toString();
709
- values.push(value);
710
- }
711
- let displayName = updatedKeys.join("+");
712
- for (let k = 0; k < updatedKeys.length; k++) if (!skippableKeys.includes(k)) if (values[k]) displayName = displayName.replace(`${updatedKeys[k]}`, values[k]);
713
- else displayName = displayName.replace(`${updatedKeys[k]}`, "");
714
- return displayName.replaceAll("+", " ");
715
- } else return label;
716
- };
717
- const getDisplayName = (node, obj) => {
718
- return formatTreeLabel(node.properties["displayName"], obj);
719
- };
720
- const getDisplayDetails = (node, obj) => {
721
- return formatTreeLabel(node.properties["displayDetails"], obj);
722
- };
723
- const getHeaderTitle = (node, obj) => {
724
- return formatTreeLabel(node.properties["headerName"], obj);
725
- };
726
- const searchForMatchingNode = (tree, nodeObj = {}, searchIdentifiers = []) => {
727
- let result = null;
728
- let match = true;
729
- searchIdentifiers.forEach((searchIdentifier) => {
730
- if (tree?.nodeObj[searchIdentifier] !== nodeObj[searchIdentifier]) match = false;
731
- });
732
- if (match && searchIdentifiers.length) return tree;
733
- else {
734
- if (tree.children) tree.children.some((node) => result = searchForMatchingNode(node, nodeObj, searchIdentifiers));
735
- return result;
736
- }
737
- };
738
- const getNodeIdForRightBorder = (expandedNodeIds, node, parentId) => {
739
- if (!expandedNodeIds.includes(node?.id)) return node.id;
740
- if (!expandedNodeIds.includes(parentId)) {
741
- const foundParentNode = node.children.find((item) => item.id === parentId);
742
- if (foundParentNode) if (expandedNodeIds.includes(foundParentNode?.parentId)) return parentId;
743
- else return getNodeIdForRightBorder(expandedNodeIds, foundParentNode, foundParentNode?.parentId);
744
- } else return parentId;
745
- };
746
- const findNodeById = (tree, id) => {
747
- let result = null;
748
- if (tree?.id === id) return tree;
749
- else {
750
- if (tree.children) tree.children.some((node) => result = findNodeById(node, id));
751
- return result;
752
- }
753
- };
754
- const findNodeByIdAndLabel = (tree, id, label) => {
755
- let result = null;
756
- if (tree?.id === id && tree?.properties?.label === label) return tree;
757
- else {
758
- if (tree.children) tree.children.some((node) => result = findNodeById(node, id, label));
759
- return result;
760
- }
761
- };
762
- const findNodesByIdAndLabel = (tree, id, label) => {
763
- let results = [];
764
- if (tree?.id === id && tree?.properties?.label === label) results.push(tree);
765
- if (tree.children) tree.children.forEach((node) => {
766
- results = results.concat(findNodesByIdAndLabel(node, id, label));
767
- });
768
- return results;
769
- };
770
- const updateNodeForStaticGrouping = (displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item) => {
771
- const updatedDisplayTree = { ...displayTree };
772
- const nodeIsHidden = checkNodeIsHidden(updatedDisplayTree, item, false);
773
- if (!nodeIsHidden) {
774
- updatedDisplayTree.children = displayTree.children ? (0, lodash.cloneDeep)(displayTree.children) : displayTree.children;
775
- updatedDisplayTree["parentId"] = nodeGroup.id;
776
- updatedDisplayTree["parentGroupId"] = nodeGroup.id;
777
- if (updatedDisplayTree.isGroupNode) nodeGroup.children.push(updatedDisplayTree);
778
- else nodeChildren.push(updatedDisplayTree);
779
- if (treeList) treeList.push(updatedDisplayTree);
780
- scopedGroupItemIndexes.add(index);
781
- groupedItemIndexes.add(index);
782
- }
783
- };
784
- const processItemForStaticNodeGroup = (nodeGroup, item, groupedItemIndexes, displayTree, index, scopedGroupItemIndexes = /* @__PURE__ */ new Set(), treeList, nodeChildren = []) => {
785
- if (nodeGroup?.properties?.propertyMapping && nodeGroup?.properties?.jsonLogic) {
786
- const rule = mapRule(nodeGroup?.properties?.propertyMapping, nodeGroup?.properties?.jsonLogic);
787
- if (rule && evaluateRule(rule, item, item.properties?.joiningEntityCatalogObjectKey, false)) {
788
- let itemAdded = false;
789
- nodeGroup.children.forEach((childGroup) => {
790
- if (childGroup.isGroupNode) {
791
- const processedItem = processItemForStaticNodeGroup(childGroup, item, groupedItemIndexes, displayTree, index, childGroup.children.length ? /* @__PURE__ */ new Set() : scopedGroupItemIndexes, treeList, nodeChildren) || { itemAdded };
792
- itemAdded = processedItem?.itemAdded;
793
- }
794
- });
795
- if (!itemAdded) {
796
- updateNodeForStaticGrouping(displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item);
797
- itemAdded = true;
798
- }
799
- }
800
- } else if (nodeGroup.isOutlierGroup && !groupedItemIndexes.has(index)) updateNodeForStaticGrouping(displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item);
801
- if (treeList && nodeGroup.isGroupNode) {
802
- const existingGroup = treeList.filter((node) => node.isGroupNode).find((eg) => eg.id === nodeGroup.id);
803
- if (!existingGroup) {
804
- const nodeIsHidden = checkNodeIsHidden(nodeGroup, item, false);
805
- !nodeIsHidden && treeList.push(nodeGroup);
806
- }
807
- }
808
- return {
809
- itemAdded: groupedItemIndexes.has(index),
810
- nodeChildren
811
- };
812
- };
813
- const constructStaticNodeGroups = (tree, shouldUseNewId = false) => {
814
- const nodeGroups = [];
815
- const groupConfiguration = tree?.properties?.groupConfiguration;
816
- const groupType = groupConfiguration?.groupType || require_EnvironmentRibbon.NodeGroupTypeEnums.Static;
817
- const hideEmptyGroups = groupConfiguration?.hideEmptyGroups;
818
- if (groupConfiguration?.enabled && groupConfiguration?.groupings[groupType]?.length) {
819
- groupConfiguration.groupings[groupType].forEach((grouping) => {
820
- const orderedGroups = orderByGroupOrder(grouping?.groups);
821
- const newIdMap = {};
822
- orderedGroups.forEach((group) => {
823
- if (shouldUseNewId) newIdMap[group.id] = (0, uuid.v4)();
824
- group["children"] = [];
825
- });
826
- if (Object.keys(newIdMap).length) orderedGroups.forEach((group) => {
827
- if (newIdMap[group.id]) group.id = newIdMap[group.id];
828
- if (newIdMap[group.parentGroupId]) group.parentGroupId = newIdMap[group.parentGroupId];
829
- });
830
- if (orderedGroups?.length) {
831
- const firstGroup = orderedGroups.find((group) => !group.parentGroupId) || orderedGroups[0];
832
- orderedGroups.shift();
833
- const displayTree = makeTreeStaticGroupStructure(orderedGroups, "id", "parentGroupId", groupType, hideEmptyGroups);
834
- const { id, isExpanded,...firstGroupProperties } = firstGroup;
835
- const groupNode = new GroupNode({
836
- id,
837
- hideEmptyGroups,
838
- groupType,
839
- children: Array.isArray(displayTree) ? displayTree : [displayTree],
840
- isExpanded,
841
- properties: { ...firstGroupProperties }
842
- });
843
- nodeGroups.push(groupNode);
844
- }
845
- });
846
- if (groupConfiguration?.outlier === "group") {
847
- const outlierGroup = new GroupNode({
848
- groupType,
849
- isOutlierGroup: true,
850
- properties: {
851
- label: groupConfiguration?.outlierGroupLabel || "Unlabeled Outlier Group",
852
- icon: groupConfiguration?.outlierIcon
853
- }
854
- });
855
- nodeGroups.push(outlierGroup);
856
- }
857
- }
858
- return nodeGroups;
859
- };
860
- const getOrderedDynamicGroups = (tree, shouldUseNewId = false) => {
861
- const groupConfiguration = tree?.properties?.groupConfiguration;
862
- const groupType = groupConfiguration?.groupType || require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic;
863
- let orderedGroups = [];
864
- if (groupConfiguration?.enabled && groupConfiguration?.groupings[groupType]?.length) groupConfiguration.groupings[groupType].forEach((grouping) => {
865
- orderedGroups = orderByGroupOrder(grouping?.groups);
866
- const newIdMap = {};
867
- orderedGroups.forEach((group) => {
868
- if (shouldUseNewId) newIdMap[group.id] = (0, uuid.v4)();
869
- group["children"] = [];
870
- });
871
- if (Object.keys(newIdMap).length) orderedGroups.forEach((group) => {
872
- if (newIdMap[group.id]) group.id = newIdMap[group.id];
873
- if (newIdMap[group.parentGroupId]) group.parentGroupId = newIdMap[group.parentGroupId];
874
- });
875
- });
876
- return orderedGroups;
877
- };
878
- const constructDynamicNodeGroups = (results, tree, shouldUseNewId = false) => {
879
- let nodeGroups = [];
880
- const groupConfiguration = tree?.properties?.groupConfiguration;
881
- const groupType = groupConfiguration?.groupType || require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic;
882
- if (groupConfiguration?.enabled && groupConfiguration?.groupings[groupType]?.length) groupConfiguration.groupings[groupType].forEach((grouping) => {
883
- const orderedGroups = orderByGroupOrder(grouping?.groups);
884
- const newIdMap = {};
885
- orderedGroups.forEach((group) => {
886
- if (shouldUseNewId) newIdMap[group.id] = (0, uuid.v4)();
887
- group["children"] = [];
888
- });
889
- if (Object.keys(newIdMap).length) orderedGroups.forEach((group) => {
890
- if (newIdMap[group.id]) group.id = newIdMap[group.id];
891
- if (newIdMap[group.parentGroupId]) group.parentGroupId = newIdMap[group.parentGroupId];
892
- });
893
- if (orderedGroups?.length) {
894
- const isSingleGroup = orderedGroups.length === 1;
895
- const dynamicTreeStructure = makeDynamicTreeStructure(orderedGroups, "id", "parentGroupId");
896
- const groupSet = makeDynamicGroupStructures(dynamicTreeStructure, results);
897
- results.forEach((item, index) => {
898
- const orderedKeys = [];
899
- const orderedTreeData = [];
900
- const treeArr = [];
901
- const innerGroupList = [];
902
- processCatalogObjectKeysInOrder(tree, orderedKeys);
903
- processOrderedTreeData(tree, orderedTreeData);
904
- processObjectToTree(item, orderedTreeData, orderedKeys, treeArr, null, null, false, innerGroupList);
905
- const displayTree = makeTreeStructure(treeArr, "id", "parentId");
906
- const updatedDisplayTree = (0, lodash.cloneDeep)(displayTree);
907
- const nodeIsHidden = checkNodeIsHidden(updatedDisplayTree, item, false);
908
- !nodeIsHidden && processItemForDynamicNodeGroups(updatedDisplayTree, dynamicTreeStructure, groupSet, groupSet, isSingleGroup);
909
- });
910
- groupSet.forEach((group) => updateTreeIds(group, null, (0, uuid.v4)(), (0, uuid.v4)()));
911
- nodeGroups = nodeGroups.concat(groupSet);
912
- }
913
- });
914
- return nodeGroups;
915
- };
916
- const getLabelFromProperty = (item, property) => {
917
- const splitProperties = property.split(".");
918
- if (splitProperties.length) {
919
- let constructedValue = null;
920
- splitProperties.forEach((property$1) => {
921
- const matches = property$1.match(/\[(.*?)\]/);
922
- let objIndex = null;
923
- let arrIndex = null;
924
- if (matches) {
925
- arrIndex = parseInt(matches[1]);
926
- objIndex = matches.index;
927
- }
928
- if (typeof arrIndex === "number" && objIndex) {
929
- const formattedProperty = property$1.substring(0, objIndex);
930
- if (!constructedValue) {
931
- if (item[formattedProperty]) constructedValue = item[formattedProperty][arrIndex];
932
- } else if (constructedValue[formattedProperty]) constructedValue = constructedValue[formattedProperty][arrIndex];
933
- } else if (!constructedValue) constructedValue = item ? item[property$1] : "";
934
- else constructedValue = constructedValue[property$1];
935
- });
936
- return constructedValue;
937
- }
938
- return null;
939
- };
940
- const constructBusinessObjectArrFromTree = (node, businessObjects = []) => {
941
- if (node?.nodeObj) {
942
- const businessObject = {
943
- label: "",
944
- value: "",
945
- domainObject: ""
946
- };
947
- const joiningEntityCatalogObjectKey = node.properties?.joiningEntityCatalogObjectKey;
948
- const displayName = node.properties?.displayName;
949
- if (joiningEntityCatalogObjectKey) {
950
- const jointEntity = node.nodeObj[joiningEntityCatalogObjectKey];
951
- businessObject.label = formatTreeLabel(displayName, node.nodeObj) || jointEntity?.businessObjectKey;
952
- businessObject.value = jointEntity?.businessObjectKey;
953
- businessObject.domainObject = node.properties?.catalogReturnObject;
954
- } else {
955
- const entity = node.nodeObj;
956
- businessObject.label = formatTreeLabel(displayName, node.nodeObj) || entity?.businessObjectKey;
957
- businessObject.value = entity?.businessObjectKey;
958
- businessObject.domainObject = node.properties?.catalogReturnObject;
959
- }
960
- businessObjects.push(businessObject);
961
- }
962
- if (node?.children?.length) node.children.forEach((childNode) => constructBusinessObjectArrFromTree(childNode, businessObjects));
963
- return businessObjects;
964
- };
965
- const processItemForDynamicNodeGroups = (displayTree, node, groupNodes, previousFilteredGroups = [], isSingleGroup = false) => {
966
- const { property, id } = node;
967
- const item = displayTree?.nodeObj;
968
- const label = property ? getLabelFromProperty(item, property) : null;
969
- let filteredGroups = [];
970
- previousFilteredGroups.forEach((group) => {
971
- if (group) {
972
- const foundGroups = findNodesByIdAndLabel(group, id, label);
973
- if (foundGroups.length) filteredGroups = filteredGroups.concat(foundGroups);
974
- }
975
- });
976
- if (filteredGroups.length) if (node?.children?.length) node.children.forEach((child) => processItemForDynamicNodeGroups(displayTree, child, groupNodes, filteredGroups, isSingleGroup));
977
- else filteredGroups.forEach((filteredGroup) => {
978
- const matchingGroupNode = findNodeByIdAndLabel(filteredGroup, node.id, label);
979
- if (matchingGroupNode) {
980
- displayTree["parentGroupId"] = matchingGroupNode.id;
981
- matchingGroupNode.children.push(displayTree);
982
- }
983
- });
984
- else if (isSingleGroup) groupNodes.push(displayTree);
985
- else previousFilteredGroups.forEach((filteredGroup) => {
986
- if (filteredGroup) {
987
- displayTree["parentGroupId"] = filteredGroup.id;
988
- filteredGroup.children.push(displayTree);
989
- }
990
- });
991
- };
992
- const orderByGroupOrder = (groups = []) => {
993
- return (0, lodash.orderBy)(groups, ["order"], ["asc"]);
994
- };
995
- const updateTreeIds = (node, lastEntityNodeId, newId = (0, uuid.v4)(), newParentId = (0, uuid.v4)()) => {
996
- let entityNodeParentId = lastEntityNodeId;
997
- if (node) {
998
- node.id = newId;
999
- if (node.parentId || node.parentGroupId) {
1000
- node.parentId = newParentId;
1001
- node.parentGroupId = newParentId;
1002
- }
1003
- if (!node.isGroupNode && entityNodeParentId) node["entityNodeParentId"] = entityNodeParentId;
1004
- if (!node.isGroupNode) entityNodeParentId = node.id;
1005
- }
1006
- if (node?.children?.length) node.children.forEach((child) => updateTreeIds(child, entityNodeParentId, (0, uuid.v4)(), newId));
1007
- };
1008
- const processGroupNodesAndAddToTreeList = (node, treeList, lastEntityNodeId, item, wasLazyLoaded) => {
1009
- let entityNodeParentId = lastEntityNodeId;
1010
- if (treeList) {
1011
- if (!treeList.find((tree) => tree.id === node.id)) {
1012
- if (!node.isGroupNode && entityNodeParentId) node["entityNodeParentId"] = entityNodeParentId;
1013
- if (!node.isGroupNode) entityNodeParentId = node.id;
1014
- const nodeIsHidden = checkNodeIsHidden(node, item, wasLazyLoaded);
1015
- !nodeIsHidden && treeList.push(node);
1016
- }
1017
- }
1018
- if (node?.children?.length) node.children.forEach((child) => processGroupNodesAndAddToTreeList(child, treeList, entityNodeParentId, item, wasLazyLoaded));
1019
- };
1020
- const mapNodeGroupChildren = (nodeGroup, nodeGroupChildren = []) => {
1021
- nodeGroupChildren.forEach((node) => {
1022
- if (nodeGroup.id === node.parentGroupId) nodeGroup.children.push(node);
1023
- });
1024
- if (nodeGroup?.children?.length) nodeGroup.children.forEach((childGroup) => {
1025
- if (childGroup.isGroupNode) mapNodeGroupChildren(childGroup, nodeGroupChildren);
1026
- });
1027
- return nodeGroup;
1028
- };
1029
- const checkNodeIsHidden = (node, item, wasLazyLoaded = false) => {
1030
- if (!node || node && !Object.keys(node).length) return true;
1031
- let rule = null;
1032
- if (node.isGroupNode) {
1033
- if (node.properties?.hiddenNode?.enabled) {}
1034
- } else if (node.properties?.hiddenNode?.enabled) {
1035
- rule = mapRule(node.properties.hiddenNode.propertyMapping, node.properties.hiddenNode.jsonLogic);
1036
- if (rule && evaluateRule(rule, item, node.properties?.joiningEntityCatalogObjectKey, wasLazyLoaded)) return true;
1037
- }
1038
- return false;
1039
- };
1040
- const constructPreloadedTree = (treeStructure, pageList) => {
1041
- if (!pageList) return null;
1042
- let preloadedList = [];
1043
- const tree = (0, lodash.cloneDeep)(treeStructure);
1044
- if (tree.properties?.groupConfiguration?.enabled && tree.properties?.groupConfiguration.groupType === require_EnvironmentRibbon.NodeGroupTypeEnums.Static && tree.properties?.groupConfiguration?.groupings?.static?.length) {
1045
- const topNodeGroups = constructStaticNodeGroups(tree);
1046
- const groupedItemIndexes = /* @__PURE__ */ new Set();
1047
- topNodeGroups.forEach((nodeGroup) => {
1048
- let nodeGroupChildren = [];
1049
- pageList.forEach((item, index) => {
1050
- const orderedKeys = [];
1051
- const orderedTreeData = [];
1052
- const treeArr = [];
1053
- const innerGroupList = [];
1054
- processCatalogObjectKeysInOrder(tree, orderedKeys);
1055
- processOrderedTreeData(tree, orderedTreeData);
1056
- processObjectToTree(item, orderedTreeData, orderedKeys, treeArr, null, null, false, innerGroupList);
1057
- const displayTree = makeTreeStructure(treeArr, "id", "parentId");
1058
- const processedItem = processItemForStaticNodeGroup(nodeGroup, item, groupedItemIndexes, displayTree, index, /* @__PURE__ */ new Set());
1059
- nodeGroupChildren = nodeGroupChildren.concat(processedItem?.nodeChildren || []);
1060
- });
1061
- const updatedNodeGroup = mapNodeGroupChildren(nodeGroup, nodeGroupChildren);
1062
- updatedNodeGroup.children.forEach((child) => {
1063
- updateTreeIds(child, null, (0, uuid.v4)(), (0, uuid.v4)());
1064
- });
1065
- preloadedList.push(updatedNodeGroup);
1066
- });
1067
- if (tree.properties?.groupConfiguration?.outlier === require_EnvironmentRibbon.NodeGroupOutlierEnums.Individual) pageList.forEach((item, index) => {
1068
- if (!groupedItemIndexes.has(index)) {
1069
- const orderedKeys = [];
1070
- const orderedTreeData = [];
1071
- const treeArr = [];
1072
- processCatalogObjectKeysInOrder(tree, orderedKeys);
1073
- processOrderedTreeData(tree, orderedTreeData);
1074
- processObjectToTree(item, orderedTreeData, orderedKeys, treeArr, null, null, false);
1075
- const displayTree = makeTreeStructure(treeArr, "id", "parentId");
1076
- const nodeIsHidden = checkNodeIsHidden(displayTree, item, false);
1077
- if (!nodeIsHidden) {
1078
- updateTreeIds(displayTree, null, (0, uuid.v4)(), (0, uuid.v4)());
1079
- preloadedList.push(displayTree);
1080
- }
1081
- }
1082
- });
1083
- } else if (tree.properties?.groupConfiguration?.enabled && tree.properties?.groupConfiguration.groupType === require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic && tree.properties?.groupConfiguration?.groupings?.dynamic?.length) {
1084
- const nodeGroups = constructDynamicNodeGroups2(pageList, tree);
1085
- preloadedList = preloadedList.concat(nodeGroups);
1086
- } else pageList.forEach((item) => {
1087
- const orderedKeys = [];
1088
- const orderedTreeData = [];
1089
- const treeArr = [];
1090
- processCatalogObjectKeysInOrder(tree, orderedKeys);
1091
- processOrderedTreeData(tree, orderedTreeData);
1092
- processObjectToTree(item, orderedTreeData, orderedKeys, treeArr);
1093
- const displayTree = makeTreeStructure(treeArr, "id", "parentId");
1094
- const nodeIsHidden = checkNodeIsHidden(displayTree, item, false);
1095
- !nodeIsHidden && preloadedList.push(displayTree);
1096
- });
1097
- return preloadedList;
1098
- };
1099
- const CompareGroupByOrder = (a, b) => {
1100
- if (a.order > b.order) return 1;
1101
- if (a.order < b.order) return -1;
1102
- return 0;
1103
- };
1104
- const CompareSiblingNodes = (a, b) => {
1105
- if (a.hasOwnProperty("isGroupNode") && !b.hasOwnProperty("isGroupNode")) return -1;
1106
- if (!a.hasOwnProperty("isGroupNode") && b.hasOwnProperty("isGroupNode")) return 1;
1107
- if (a.hasOwnProperty("isGroupNode") && b.hasOwnProperty("isGroupNode")) {
1108
- if (a.properties?.order > b.properties?.order) return 1;
1109
- if (a.properties?.order < b.properties?.order) return -1;
1110
- }
1111
- return 0;
1112
- };
1113
- const GetGroupChildMap = (_map, groupKey) => {
1114
- if (_map[groupKey] === void 0) _map[groupKey] = [];
1115
- return _map[groupKey];
1116
- };
1117
- const AddGroupToChildMap = (_map, groupKey, groupNode) => {
1118
- let childMap = GetGroupChildMap(_map, groupKey);
1119
- childMap.push(groupNode);
1120
- childMap.sort(CompareGroupByOrder);
1121
- };
1122
- const createDynamicGroups2 = (_treeConfig, _groupConfig, _item, _curItem, _pList, _siblings, _parentId) => {
1123
- let _groupCreated = false;
1124
- if (_pList.length > 0) {
1125
- let tmpProp = _pList[0];
1126
- if (_curItem.hasOwnProperty(tmpProp)) {
1127
- let newItem = _curItem[tmpProp];
1128
- if (_pList.length > 1) {
1129
- if (Array.isArray(newItem)) for (let i = 0, numOfItems = newItem.length; i < numOfItems; i++) {
1130
- let aGroupWasCreated = createDynamicGroups2(_treeConfig, _groupConfig, _item, newItem[i], _pList.slice(1), _siblings, _parentId);
1131
- _groupCreated = aGroupWasCreated ? aGroupWasCreated : _groupCreated;
1132
- }
1133
- else if (typeof newItem === "object" && newItem !== null) {
1134
- let aGroupWasCreated = createDynamicGroups2(_treeConfig, _groupConfig, _item, newItem, _pList.slice(1), _siblings, _parentId);
1135
- _groupCreated = aGroupWasCreated ? aGroupWasCreated : _groupCreated;
1136
- }
1137
- } else if (typeof newItem !== "object" && newItem !== null && newItem !== "") {
1138
- let groupName = newItem.toString();
1139
- let groupNode = null;
1140
- for (let siblingIdx = 0, numOfSiblings = _siblings.length; siblingIdx < numOfSiblings; siblingIdx++) {
1141
- let sibling = _siblings[siblingIdx];
1142
- if (sibling.hasOwnProperty("isGroupNode") && sibling.isGroupNode === true) {
1143
- if (sibling.properties.label === groupName) {
1144
- groupNode = sibling;
1145
- break;
1146
- }
1147
- }
1148
- }
1149
- if (groupNode == null) {
1150
- let newGroupNodeId = (0, uuid.v4)();
1151
- groupNode = new GroupNode({
1152
- id: `${newGroupNodeId}`,
1153
- groupType: require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic,
1154
- children: [],
1155
- parentGroupId: _parentId,
1156
- parentId: _parentId,
1157
- isExpanded: _groupConfig.isExpanded,
1158
- properties: {
1159
- label: groupName,
1160
- propertyIsCustom: _groupConfig.propertyIsCustom,
1161
- propertyKey: _groupConfig.property,
1162
- order: _groupConfig.order
1163
- }
1164
- });
1165
- _siblings.push(groupNode);
1166
- }
1167
- _groupCreated = true;
1168
- let subGroupWasCreated = false;
1169
- for (let subGroupIdx = 0, numOfSubGroups = _groupConfig.children.length; subGroupIdx < numOfSubGroups; subGroupIdx++) {
1170
- let subGroupConfig = _groupConfig.children[subGroupIdx];
1171
- let subGroupPropList = subGroupConfig.property ? subGroupConfig.property.split(".") : [];
1172
- let subGroupCreated = createDynamicGroups2(_treeConfig, subGroupConfig, _item, _item, subGroupPropList, groupNode.children, groupNode.id);
1173
- subGroupWasCreated = subGroupCreated ? subGroupCreated : subGroupWasCreated;
1174
- }
1175
- if (!subGroupWasCreated) {
1176
- let tmpNode = (0, lodash.cloneDeep)(_treeConfig);
1177
- processObjIndex(tmpNode, _item, null, groupNode.id, null, null, false);
1178
- groupNode.children.push(tmpNode);
1179
- let newChildNodes = [];
1180
- for (let childNodeIdx = 0, numOfChildNodes = tmpNode.children.length; childNodeIdx < numOfChildNodes; childNodeIdx++) {
1181
- let childConfigNode = tmpNode.children[childNodeIdx];
1182
- let propToGetRecords = childConfigNode.properties.catalogObjectKey;
1183
- if (propToGetRecords && propToGetRecords != null && _item.hasOwnProperty(propToGetRecords)) {
1184
- let newResultSet = _item[propToGetRecords];
1185
- if (newResultSet && newResultSet != null) if (Array.isArray(newResultSet)) newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
1186
- else {
1187
- let tmpNewResultSet = [];
1188
- tmpNewResultSet.push(newResultSet);
1189
- newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
1190
- }
1191
- }
1192
- }
1193
- tmpNode.children = newChildNodes;
1194
- }
1195
- groupNode.children.sort(CompareSiblingNodes);
1196
- }
1197
- }
1198
- }
1199
- return _groupCreated;
1200
- };
1201
- const constructDynamicGroupConfigTrees2 = (configNode) => {
1202
- let topLevelConfigGroupNodes = [];
1203
- const groupConfiguration = configNode?.properties?.groupConfiguration;
1204
- const groupType = groupConfiguration?.groupType || require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic;
1205
- if (groupConfiguration?.enabled && groupConfiguration?.groupings[groupType]?.length) {
1206
- let dynamicGroupings = groupConfiguration.groupings[groupType];
1207
- for (let groupingIdx = 0, numOfGroupings = dynamicGroupings.length; groupingIdx < numOfGroupings; groupingIdx++) {
1208
- let grouping = dynamicGroupings[groupingIdx];
1209
- if (grouping.groups === void 0 || grouping.groups === null) continue;
1210
- let groupChildMap = {};
1211
- for (let groupIdx = 0, numOfGroups = grouping.groups.length; groupIdx < numOfGroups; groupIdx++) {
1212
- let group = grouping.groups[groupIdx];
1213
- group["children"] = GetGroupChildMap(groupChildMap, group.id);
1214
- if (group.parentGroupId === void 0 || group.parentGroupId === null) topLevelConfigGroupNodes.push(group);
1215
- else AddGroupToChildMap(groupChildMap, group.parentGroupId, group);
1216
- }
1217
- }
1218
- }
1219
- for (let configIdx = 0, numOfChildConfigNodes = configNode.children.length; configIdx < numOfChildConfigNodes; configIdx++) {
1220
- let childConfigNode = configNode.children[configIdx];
1221
- constructDynamicGroupConfigTrees2(childConfigNode);
1222
- }
1223
- configNode.groupConfigTrees = topLevelConfigGroupNodes;
1224
- };
1225
- const constructDynamicNodeGroups2 = (results, configNode, parentId = null) => {
1226
- let levelNodes = [];
1227
- if (!configNode.groupConfigTrees) constructDynamicGroupConfigTrees2(configNode);
1228
- for (let rIdx = 0, numOfResults = results.length; rIdx < numOfResults; rIdx++) {
1229
- let item = results[rIdx];
1230
- let groupCreated = false;
1231
- for (let ctlIdx = 0, numOfGroupConfigTrees = configNode.groupConfigTrees.length; ctlIdx < numOfGroupConfigTrees; ctlIdx++) {
1232
- let groupConfigNode = configNode.groupConfigTrees[ctlIdx];
1233
- let gPropList = groupConfigNode.property ? groupConfigNode.property.split(".") : [];
1234
- let aGroupWasCreated = createDynamicGroups2(configNode, groupConfigNode, item, item, gPropList, levelNodes, parentId);
1235
- groupCreated = aGroupWasCreated ? aGroupWasCreated : groupCreated;
1236
- }
1237
- if (!groupCreated) {
1238
- let tmpNode = (0, lodash.cloneDeep)(configNode);
1239
- processObjIndex(tmpNode, item, null, parentId, null, null, false);
1240
- levelNodes.push(tmpNode);
1241
- let newChildNodes = [];
1242
- for (let childNodeIdx = 0, numOfChildNodes = tmpNode.children.length; childNodeIdx < numOfChildNodes; childNodeIdx++) {
1243
- let childConfigNode = tmpNode.children[childNodeIdx];
1244
- let propToGetRecords = childConfigNode.properties.catalogObjectKey;
1245
- if (propToGetRecords && propToGetRecords != null && item.hasOwnProperty(propToGetRecords)) {
1246
- let newResultSet = item[propToGetRecords];
1247
- if (newResultSet && newResultSet != null) if (Array.isArray(newResultSet)) newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
1248
- else {
1249
- let tmpNewResultSet = [];
1250
- tmpNewResultSet.push(newResultSet);
1251
- newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
1252
- }
1253
- }
1254
- }
1255
- tmpNode.children = newChildNodes;
1256
- }
1257
- }
1258
- levelNodes.sort(CompareSiblingNodes);
1259
- return levelNodes;
1260
- };
1261
- const transformMenuPageTree = (node) => {
1262
- if (!node?.menuItemInstance?.isActive) return null;
1263
- const parameters = node.menuItemInstance?.parameters && JSON.parse(node.menuItemInstance.parameters);
1264
- const label = node.title || "";
1265
- const expanded = parameters?.defaultDisplay === "expanded";
1266
- const updatedNode = {
1267
- id: node.menuStructureId,
1268
- parentId: node.parentId,
1269
- isExpanded: expanded,
1270
- properties: {
1271
- defaultIcon: {
1272
- type: "",
1273
- name: parameters.FluentIcon,
1274
- color: ""
1275
- },
1276
- nodeLabel: label,
1277
- nodeSubLabel: "",
1278
- page: {
1279
- id: parameters.PageId,
1280
- entity: { entityName: parameters.entityName },
1281
- pbiReportCode: parameters.pbiReportCode,
1282
- udpTagId: parameters.udpTagId,
1283
- queryId: parameters.queryId,
1284
- inquiryTreeId: parameters?.InquiryTreeId,
1285
- requiredFieldMapping: parameters?.requiredFieldMapping
1286
- },
1287
- aggregateThresholdId: parameters.aggregateThresholdId || ""
1288
- },
1289
- children: []
1290
- };
1291
- for (const child of node.menuItemInstanceStructures) {
1292
- const updatedChild = transformMenuPageTree(child);
1293
- if (updatedChild) updatedNode.children.push(updatedChild);
1294
- }
1295
- return updatedNode;
1296
- };
1297
- const mapNodeObjValuesToSearchParameters = (nodeObj, aggregateThresholdParamMappings) => {
1298
- if (!aggregateThresholdParamMappings || !nodeObj) return {};
1299
- const mappings = { ...aggregateThresholdParamMappings };
1300
- Object.keys(mappings).forEach((key) => {
1301
- const nodeObjKey = mappings[key];
1302
- if (nodeObjKey) {
1303
- const nodeObjValue = nodeObj[nodeObjKey];
1304
- mappings[key] = nodeObjValue || "";
1305
- }
1306
- });
1307
- return mappings;
1308
- };
1309
- const getSearchValueString = (nodeObj, searchIdentifier) => {
1310
- const searchIdentifiers = searchIdentifier.split(",");
1311
- const searchValues = [];
1312
- searchIdentifiers.forEach((searchIdentifier$1) => {
1313
- searchValues.push(nodeObj[searchIdentifier$1]);
1314
- });
1315
- return searchValues.toString();
1316
- };
1317
-
1318
- //#endregion
1319
- //#region src/utilities/iconLibrary/UnityIconLibrary.jsx
1320
- const unityIcons = [{
1321
- id: "WaterDropIcon",
1322
- label: "Water Drop",
1323
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(src_assets_unityIcons_WaterDrop_svg.default, {}),
1324
- type: "unity"
1325
- }, {
1326
- id: "SewerIcon",
1327
- label: "Sewer",
1328
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(src_assets_unityIcons_Sewer_svg.default, {}),
1329
- type: "unity"
1330
- }];
1331
- const getUnityIconFromName = (name) => {
1332
- const foundIcon = unityIcons.find((icon) => icon.id === name);
1333
- return foundIcon?.icon || null;
1334
- };
1335
-
1336
- //#endregion
1337
- //#region src/shell/ui/SidebarCollapseButton.jsx
1338
- const useStyles$6 = (0, __material_ui_core.makeStyles)((theme) => ({
1339
- root: {
1340
- display: "flex",
1341
- justifyContent: "flex-start",
1342
- height: 48,
1343
- width: "100%",
1344
- paddingLeft: 0
1345
- },
1346
- iconButton: {
1347
- width: 48,
1348
- height: 48,
1349
- marginLeft: 16 - 24 / 2
1350
- },
1351
- expanded: {},
1352
- icon: {
1353
- width: 14,
1354
- height: 14,
1355
- margin: 8 / 2,
1356
- transition: theme?.transitions?.create("transform", {
1357
- easing: theme?.transitions?.easing?.sharp,
1358
- duration: theme?.transitions?.duration?.shortest
1359
- }),
1360
- "$expanded &": { transform: "scaleX(-1)" }
1361
- },
1362
- switch: {
1363
- margin: 8 / 2,
1364
- transition: theme?.transitions?.create("transform", {
1365
- easing: theme?.transitions?.easing?.sharp,
1366
- duration: theme?.transitions?.duration?.shortest
1367
- }),
1368
- "$expanded &": { transform: "scaleX(-1)" }
1369
- }
1370
- }), { name: "SidebarCollapseButton" });
1371
- /**
1372
- * Custom styled button used for expanding/collapsing sidebars
1373
- */
1374
- const SidebarCollapseButton = (props) => {
1375
- const classes = useStyles$6(props);
1376
- const { expanded, className, id, udprecordid,...other } = props;
1377
- const { t } = (0, react_i18next.useTranslation)();
1378
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1379
- ...other,
1380
- className: (0, clsx.default)(className, classes.root, { [classes.expanded]: expanded }),
1381
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.FluentIconButton, {
1382
- id,
1383
- udprecordid,
1384
- color: "inherit",
1385
- className: (0, clsx.default)(classes.iconButton, classes.switch),
1386
- "aria-label": expanded ? t("mainMenuAria.collapseNavigation") : t("mainMenuAria.expandNavigation"),
1387
- icon: __fluentui_react_icons.ChevronRightIcon
1388
- })
1389
- });
1390
- };
1391
-
1392
- //#endregion
1393
- //#region src/UI/inputs/buttons/AmbientCardButton.jsx
1394
- const useStyles$5 = (0, __material_ui_core.makeStyles)((theme) => ({ root: {
1395
- borderRadius: 0,
1396
- padding: 8
1397
- } }));
1398
- const AmbientCardButton = (props) => {
1399
- const classes = useStyles$5(props);
1400
- const { editOption, launchOption, deleteOption, children,...otherProps } = props;
1401
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.Button, {
1402
- classes: { root: classes.root },
1403
- variant: "outlined",
1404
- disableElevation: true,
1405
- color: "primary",
1406
- ...otherProps,
1407
- children: [
1408
- editOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__fluentui_react_icons.EditIcon, {}),
1409
- launchOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__fluentui_react_icons.ArrowUpRightIcon, {}),
1410
- deleteOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__fluentui_react_icons.DeleteIcon, {}),
1411
- children
1412
- ]
1413
- });
1414
- };
1415
- AmbientCardButton.propTypes = {
1416
- editOption: prop_types.default.bool,
1417
- launchOption: prop_types.default.bool,
1418
- deleteOption: prop_types.default.bool,
1419
- children: prop_types.default.string
1420
- };
1421
-
1422
- //#endregion
1423
- //#region src/UI/components/feedback/Adornment.jsx
1424
- const useStyles$4 = (0, __material_ui_core.makeStyles)((theme) => ({ root: (props) => ({
1425
- width: theme.spacing(.5),
1426
- height: "100%",
1427
- background: theme.palette[props.color].main
1428
- }) }));
1429
- const Adornment = (props) => {
1430
- const classes = useStyles$4(props);
1431
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: classes.root });
1432
- };
1433
- Adornment.propTypes = { color: prop_types.default.string };
1434
-
1435
- //#endregion
1436
- //#region src/UI/surfaces/cards/AmbientCard.jsx
1437
- const useStyles$3 = (0, __material_ui_core.makeStyles)((theme) => ({
1438
- root: {},
1439
- paper: {
1440
- width: "100%",
1441
- position: "relative",
1442
- display: "flex",
1443
- flexDirection: "column",
1444
- height: (props) => props?.cardHeight ?? ""
1445
- },
1446
- adornment: {
1447
- top: 0,
1448
- left: 0,
1449
- height: "100%",
1450
- position: "absolute"
1451
- },
1452
- launchButtons: {
1453
- padding: theme.spacing(0, 2, 2, 2),
1454
- display: "flex",
1455
- justifyContent: "flex-end",
1456
- bottom: (props) => props.adjustBaseline ? props.adjustBaseline : 16,
1457
- right: theme.spacing(2),
1458
- gridGap: theme.spacing(1)
1459
- },
1460
- moreButton: {
1461
- marginTop: theme.spacing(1),
1462
- display: "flex",
1463
- justifyContent: "center",
1464
- backgroundColor: (0, __material_ui_core.lighten)(theme.palette.secondary.main, .9),
1465
- padding: theme.spacing(1)
1466
- },
1467
- styleWidth: {
1468
- width: (props) => !props?.fullWidth ? "75%" : "100%",
1469
- height: "100%"
1470
- },
1471
- media: { height: (props) => props.mediaHeight || 120 },
1472
- cardContent: {
1473
- flexGrow: 1,
1474
- padding: (props) => props.removePadding && 0,
1475
- "&:last-child": { paddingBottom: (props) => props.lastChildBottomPadding ? props.lastChildBottomPadding : theme.spacing(2) },
1476
- paddingTop: 0,
1477
- height: (props) => props.cardContentHeight ? props.cardContentHeight : ""
1478
- },
1479
- titleWrapper: {
1480
- display: "flex",
1481
- backgroundColor: (props) => props.headerColor && require_EnvironmentRibbon.getEllipseColor(theme, props.headerColor, "light")
1482
- },
1483
- title: { color: (props) => props.headerColor && theme.palette.getContrastText(require_EnvironmentRibbon.getEllipseColor(theme, props.headerColor, "light")) },
1484
- loading: {
1485
- position: "absolute",
1486
- top: 0,
1487
- left: 0
1488
- },
1489
- expandMessage: { display: "flex" },
1490
- cardRoot: { "&:last-child": { paddingBottom: theme.spacing(2) } },
1491
- visualization: {
1492
- display: "flex",
1493
- alignItems: "flex-end",
1494
- width: "100%",
1495
- height: 300
1496
- },
1497
- titlesWrapper: {
1498
- display: "flex",
1499
- flexDirection: "column",
1500
- flex: 1,
1501
- lineHeight: (props) => props.globalExpanded && "125%"
1502
- },
1503
- collapseChildren: {
1504
- flexGrow: 1,
1505
- "& .MuiCollapse-wrapper": { height: "100%" },
1506
- "& .MuiCollapse-wrapperInner": { height: "100%" },
1507
- height: (props) => props.cardContentHeight ? props.cardContentHeight : ""
1508
- }
1509
- }));
1510
- const AmbientCard = (props) => {
1511
- const classes = useStyles$3(props);
1512
- const [expanded, setExpanded] = (0, react.useState)(false);
1513
- const { adornment = "secondary", ariaLabel, baseLoading, cardHeight, children, collapseChildrenWhenExpanded, customAdornment = " ", deleteEvent, deleteOption, editEvent, editOption, extendedContent, extendedList, fullWidth, globalToggle, header, image, imageTitle, label, large, launchEvent, launchOption, loading, mediaHeight, more, moreMessage, moreButton, moreButtonExpanded, noAdornment = false, overrideStatusSuccess, overrideStatusError, overrideStatusWarning, overrideStatusInfo, removeTopLayoutUnit, status, subCard, title, toggleGlobalExpanded = true, visualization, subtitle,...otherProps } = props;
1514
- const [globalExpanded, setGlobalExpanded] = (0, react.useState)(toggleGlobalExpanded);
1515
- return !baseLoading && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.Paper, {
1516
- elevation: 0,
1517
- className: classes.paper,
1518
- children: [
1519
- !noAdornment && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1520
- className: classes.adornment,
1521
- children: customAdornment ? customAdornment : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Adornment, { color: adornment })
1522
- }),
1523
- title && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.CardContent, {
1524
- className: classes.titleWrapper,
1525
- classes: { root: classes.cardRoot },
1526
- children: [
1527
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1528
- className: classes.titlesWrapper,
1529
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
1530
- className: classes.title,
1531
- component: "h2",
1532
- variant: subCard ? "subtitle2" : "h6",
1533
- children: title
1534
- }), subtitle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
1535
- variant: "body1",
1536
- className: classes.title,
1537
- children: subtitle
1538
- })]
1539
- }),
1540
- status && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.StatusChip, {
1541
- status,
1542
- label,
1543
- success: overrideStatusSuccess,
1544
- error: overrideStatusError,
1545
- warning: overrideStatusWarning,
1546
- info: overrideStatusInfo
1547
- }),
1548
- globalToggle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.FluentIconButton, {
1549
- onClick: () => setGlobalExpanded(!globalExpanded),
1550
- icon: globalExpanded ? __fluentui_react_icons.ChevronUpIcon : __fluentui_react_icons.ChevronDownIcon,
1551
- className: classes.icon,
1552
- id: "udpRecord-AmbientCard-Toggle-" + (globalExpanded ? "Up" : "Down"),
1553
- udprecordid: "udpRecord-AmbientCard-Toggle-" + (globalExpanded ? "Up" : "Down")
1554
- }) })
1555
- ]
1556
- }),
1557
- image && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.CardMedia, {
1558
- className: classes.media,
1559
- image,
1560
- title: imageTitle
1561
- }),
1562
- globalExpanded && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.CardContent, {
1563
- classes: { root: classes.cardContent },
1564
- children: [
1565
- !image && !header && !removeTopLayoutUnit && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.LayoutUnit, { unit: large ? "md" : "xxs" }),
1566
- image && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.LayoutUnit, { unit: "xs" }),
1567
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Collapse, {
1568
- in: !collapseChildrenWhenExpanded || !expanded,
1569
- timeout: "auto",
1570
- className: classes.collapseChildren,
1571
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1572
- className: classes.styleWidth,
1573
- children
1574
- })
1575
- }),
1576
- extendedList && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Collapse, {
1577
- in: expanded,
1578
- timeout: "auto",
1579
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: extendedList })
1580
- }),
1581
- more && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1582
- className: classes.moreButton,
1583
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1584
- className: classes.expandMessage,
1585
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
1586
- style: {
1587
- marginTop: 4,
1588
- marginRight: 16
1589
- },
1590
- variant: "subtitle2",
1591
- children: !expanded && moreMessage
1592
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.FluentButton, {
1593
- onClick: () => setExpanded(!expanded),
1594
- color: "secondary",
1595
- variant: "outlined",
1596
- children: expanded ? moreButtonExpanded : moreButton
1597
- })]
1598
- })
1599
- })
1600
- ]
1601
- }),
1602
- visualization && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1603
- className: classes.visualization,
1604
- children: visualization
1605
- }),
1606
- !globalToggle && (editOption || launchOption || deleteOption) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1607
- className: classes.launchButtons,
1608
- children: [
1609
- editOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AmbientCardButton, {
1610
- "aria-label": ariaLabel,
1611
- editOption: true,
1612
- ...otherProps,
1613
- onClick: editEvent,
1614
- id: "udpRecord-AmbientCard-edit",
1615
- udprecordid: "udpRecord-AmbientCard-edit"
1616
- }),
1617
- launchOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AmbientCardButton, {
1618
- "aria-label": ariaLabel,
1619
- launchOption: true,
1620
- ...otherProps,
1621
- onClick: launchEvent,
1622
- id: "udpRecord-AmbientCard-launch",
1623
- udprecordid: "udpRecord-AmbientCard-launch"
1624
- }),
1625
- deleteOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AmbientCardButton, {
1626
- "aria-label": ariaLabel,
1627
- deleteOption: true,
1628
- ...otherProps,
1629
- onClick: deleteEvent,
1630
- id: "udpRecord-AmbientCard-delete",
1631
- udprecordid: "udpRecord-AmbientCard-delete"
1632
- })
1633
- ]
1634
- })
1635
- ]
1636
- });
1637
- };
1638
-
1639
- //#endregion
1640
- //#region src/UI/feedback/NodeLoader.jsx
1641
- const useStyles$2 = (0, __material_ui_core.makeStyles)((theme) => ({
1642
- root: {},
1643
- nodeWrapper: { display: "flex" }
1644
- }));
1645
- const NodeLoader = ({ loading, nodesRequested = [1] }) => {
1646
- const classes = useStyles$2();
1647
- const singleNode = [
1648
- 1,
1649
- 2,
1650
- 3,
1651
- 4
1652
- ];
1653
- const NodeElement = () => {
1654
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1655
- className: classes.nodeWrapper,
1656
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab_Skeleton.default, {
1657
- variant: "circle",
1658
- width: 20,
1659
- height: 20
1660
- }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1661
- style: {
1662
- marginLeft: 8,
1663
- width: "100%"
1664
- },
1665
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab_Skeleton.default, {
1666
- height: 20,
1667
- variant: "rect",
1668
- width: "100%"
1669
- })
1670
- })]
1671
- });
1672
- };
1673
- const NodeGroup = ({ indent }) => {
1674
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1675
- style: { marginLeft: indent },
1676
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NodeElement, {})
1677
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.LayoutUnit, { unit: "xxs" })] });
1678
- };
1679
- const singleNodeGroup = loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: singleNode.map((item, index) => {
1680
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NodeGroup, { indent: index * 8 });
1681
- }) });
1682
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: nodesRequested && nodesRequested.map((item) => {
1683
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1684
- className: classes.root,
1685
- children: [
1686
- singleNodeGroup,
1687
- " ",
1688
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.LayoutUnit, { unit: "xxs" })
1689
- ]
1690
- });
1691
- }) });
1692
- };
1693
-
1694
- //#endregion
1695
- //#region src/models/NumberOperator.ts
1696
- let NumberOperatorEnums = /* @__PURE__ */ function(NumberOperatorEnums$1) {
1697
- NumberOperatorEnums$1["Equals"] = "=";
1698
- NumberOperatorEnums$1["Does_Not_Equal"] = "!=";
1699
- NumberOperatorEnums$1["Greater_Than"] = ">";
1700
- NumberOperatorEnums$1["Less_Than"] = "<";
1701
- NumberOperatorEnums$1["Greater_Than_Or_Equal_To"] = ">=";
1702
- NumberOperatorEnums$1["Less_Than_Or_Equal_To"] = "<=";
1703
- NumberOperatorEnums$1["Between"] = "BETWEEN";
1704
- return NumberOperatorEnums$1;
1705
- }({});
1706
-
1707
- //#endregion
1708
- //#region src/UI/utilityDisplay/utilities/aggregateUtils.js
1709
- const getThresholdStatus = (aggThreshold, aggregateValue) => {
1710
- if (!aggThreshold || !aggregateValue) return null;
1711
- const thresholdTypes = [
1712
- {
1713
- type: require_EnvironmentRibbon.SeverityTypeEnums.Success,
1714
- threshold: aggThreshold.successThreshold
1715
- },
1716
- {
1717
- type: require_EnvironmentRibbon.SeverityTypeEnums.Error,
1718
- threshold: aggThreshold.errorThreshold
1719
- },
1720
- {
1721
- type: require_EnvironmentRibbon.SeverityTypeEnums.Warning,
1722
- threshold: aggThreshold.warningThreshold
1723
- },
1724
- {
1725
- type: require_EnvironmentRibbon.SeverityTypeEnums.Info,
1726
- threshold: aggThreshold.infoThreshold
1727
- }
1728
- ];
1729
- let thresholdStatus = "";
1730
- for (const { type, threshold } of thresholdTypes) if (threshold && evaluateThreshold(threshold, aggregateValue)) {
1731
- thresholdStatus = type;
1732
- break;
1733
- }
1734
- return thresholdStatus;
1735
- };
1736
- const evaluateThreshold = (threshold = {}, aggregateValue) => {
1737
- if (typeof threshold === "string") try {
1738
- threshold = JSON.parse(threshold);
1739
- } catch {
1740
- console.error(`Could not parse: ${threshold}`);
1741
- return false;
1742
- }
1743
- const { operator, value1, value2 } = threshold;
1744
- let thresholdMet = false;
1745
- switch (operator) {
1746
- case NumberOperatorEnums.Equals:
1747
- thresholdMet = aggregateValue === parseFloat(value1);
1748
- break;
1749
- case NumberOperatorEnums.Does_Not_Equal:
1750
- thresholdMet = aggregateValue !== parseFloat(value1);
1751
- break;
1752
- case NumberOperatorEnums.Greater_Than:
1753
- thresholdMet = aggregateValue > parseFloat(value1);
1754
- break;
1755
- case NumberOperatorEnums.Less_Than:
1756
- thresholdMet = aggregateValue < parseFloat(value1);
1757
- break;
1758
- case NumberOperatorEnums.Greater_Than_Or_Equal_To:
1759
- thresholdMet = aggregateValue >= parseFloat(value1);
1760
- break;
1761
- case NumberOperatorEnums.Less_Than_Or_Equal_To:
1762
- thresholdMet = aggregateValue <= parseFloat(value1);
1763
- break;
1764
- case NumberOperatorEnums.Between:
1765
- thresholdMet = aggregateValue >= parseFloat(value1) && aggregateValue <= parseFloat(value2);
1766
- break;
1767
- default: break;
1768
- }
1769
- return thresholdMet;
1770
- };
1771
-
1772
- //#endregion
1773
- //#region src/UI/dataDisplay/entityHeader/ui/AlertPill.jsx
1774
- /**
1775
- * Styles for the AlertPill component
1776
- */
1777
- const useStyles$1 = (0, __material_ui_core.makeStyles)((theme) => {
1778
- const endRadius = theme.spacing(3);
1779
- return {
1780
- root: {
1781
- display: "flex",
1782
- flexDirection: "row",
1783
- overflow: "hidden",
1784
- flexGrow: 0,
1785
- alignSelf: "start"
1786
- },
1787
- alertRoot: {
1788
- padding: theme.spacing(0, 1.5, 0, 1),
1789
- borderRadius: 0,
1790
- "&:first-of-type": {
1791
- borderTopLeftRadius: endRadius,
1792
- borderBottomLeftRadius: endRadius
1793
- },
1794
- "&:last-of-type": {
1795
- borderTopRightRadius: endRadius,
1796
- borderBottomRightRadius: endRadius
1797
- }
1798
- },
1799
- alertIcon: { marginRight: theme.spacing(.5) },
1800
- buttonBase: {
1801
- borderRadius: endRadius,
1802
- overflow: "hidden"
1803
- },
1804
- defaultSeverityAlert: { backgroundColor: theme.palette.grey[400] }
1805
- };
1806
- });
1807
- /**
1808
- * Memoized version of the Alert component
1809
- *
1810
- * @param {object} props - Component props
1811
- * @param {number} props.count - The count to display in the Alert
1812
- * @param {boolean} props.hide - Whether the Alert should be hidden
1813
- * @param {string} props.severity - The severity of the Alert
1814
- * @param {object} props.alertProps - Additional props to pass to the Alert component
1815
- * @param {number} props.maxCount - Max count to show before displaying as "{maxCount}+"
1816
- * @returns {JSX.Element | null} - The Alert component, or null if the count is falsy or hide is true
1817
- */
1818
- const MemoizedAlert = (0, react.memo)((props) => {
1819
- const { count, hide, severity, alertProps, maxCount, label } = props;
1820
- const classes = useStyles$1(props);
1821
- if (count && !hide) {
1822
- let displayCount = count;
1823
- if (maxCount && count > maxCount) displayCount = `${maxCount}+`;
1824
- if (severity === require_EnvironmentRibbon.SeverityTypeEnums.Default) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab.Alert, {
1825
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Info,
1826
- ...alertProps,
1827
- className: classes.defaultSeverityAlert,
1828
- children: displayCount
1829
- });
1830
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab.Alert, {
1831
- severity,
1832
- ...alertProps,
1833
- children: label ? label : displayCount
1834
- });
1835
- }
1836
- return null;
1837
- });
1838
- MemoizedAlert.displayName = "MemoizedAlert";
1839
- /**
1840
- * The AlertPill component displays a row of Alerts, each with a count and a severity level.
1841
- * Alerts can be hidden by setting the corresponding hide prop to true.
1842
- *
1843
- * @param {object} props - Component props
1844
- * @param {function} [props.handleClick] - The click event handler.
1845
- * @param {number} props.maxCount - Max count to show before displaying as "{maxCount}+"
1846
- * @param {number} props.errorCount - The count for the error Alert
1847
- * @param {number} props.warningCount - The count for the warning Alert
1848
- * @param {number} props.successCount - The count for the success Alert
1849
- * @param {number} props.infoCount - The count for the info Alert
1850
- * @param {number} props.defaultCount - The count for the default Alert
1851
- * @param {string} props.errorLabel - The label for the error Alert
1852
- * @param {string} props.warningLabel - The label for the warning Alert
1853
- * @param {string} props.successLabel - The label for the success Alert
1854
- * @param {string} props.infoLabel - The label for the info Alert
1855
- * @param {string} props.defaultLabel - The label for the default Alert
1856
- * @param {boolean} props.hideError - Whether the error Alert should be hidden
1857
- * @param {boolean} props.hideWarning - Whether the warning Alert should be hidden
1858
- * @param {boolean} props.hideSuccess - Whether the success Alert should be hidden
1859
- * @param {boolean} props.hideInfo - Whether the info Alert should be hidden
1860
- * @param {boolean} props.hideDefault - Whether the default Alert should be hidden
1861
- * @param {string} props.variant - The variant of the Alert
1862
- * @param {function} [props.handleClick] - The click event handler.
1863
- * @param {number} props.maxCount - Max count to show before displaying as "{maxCount}+"
1864
- * @returns {JSX.Element} - The AlertPill component
1865
- */
1866
- const AlertPill = (props) => {
1867
- 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;
1868
- const classes = useStyles$1(props);
1869
- const variantMapping = {
1870
- filled: "filled",
1871
- standard: "hint",
1872
- outlined: "outlined",
1873
- text: ""
1874
- };
1875
- const alertProps = {
1876
- variant: variantMapping[variant],
1877
- classes: {
1878
- root: classes.alertRoot,
1879
- icon: classes.alertIcon
1880
- }
1881
- };
1882
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1883
- className: classes.root,
1884
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.ButtonBase, {
1885
- onClick: handleClick,
1886
- className: classes.buttonBase,
1887
- children: [
1888
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedAlert, {
1889
- count: errorCount,
1890
- hide: hideError,
1891
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Error,
1892
- alertProps,
1893
- maxCount,
1894
- label: errorLabel
1895
- }),
1896
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedAlert, {
1897
- count: warningCount,
1898
- hide: hideWarning,
1899
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Warning,
1900
- alertProps,
1901
- maxCount,
1902
- label: warningLabel
1903
- }),
1904
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedAlert, {
1905
- count: successCount,
1906
- hide: hideSuccess,
1907
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Success,
1908
- alertProps,
1909
- maxCount,
1910
- label: successLabel
1911
- }),
1912
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedAlert, {
1913
- count: infoCount,
1914
- hide: hideInfo,
1915
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Info,
1916
- alertProps,
1917
- maxCount,
1918
- label: infoLabel
1919
- }),
1920
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedAlert, {
1921
- count: defaultCount,
1922
- hide: hideDefault,
1923
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Default,
1924
- alertProps,
1925
- maxCount,
1926
- label: defaultLabel
1927
- })
1928
- ]
1929
- })
1930
- });
1931
- };
1932
-
1933
- //#endregion
1934
- //#region src/UI/utilityDisplay/AggregateChip.jsx
1935
- const AggregateChip = (props) => {
1936
- const { aggregateThresholdId, aggregateThresholdParamMappings, label, chipColor, setStatus, isActionable = false, isAlert = false, hideAlert = false, onAlertClick } = props;
1937
- const [color, setColor] = (0, react.useState)(chipColor);
1938
- const [aggregateValue, setAggregateValue] = (0, react.useState)(null);
1939
- const [loading, setLoading] = (0, react.useState)(false);
1940
- const [{ data: aggregateThreshold, loading: loadingAggregateThreshold }] = require_EnvironmentRibbon.useAxiosGet(udp_react_stencil_component_library.ConfigService.integrationV2ApiUrl, `aggregateThreshold/${aggregateThresholdId}`, {}, !!!aggregateThresholdId);
1941
- const alertDisplayLabel = (0, react.useMemo)(() => {
1942
- if (!label) return aggregateValue;
1943
- return `${label.replace("{value}", aggregateValue)}`;
1944
- }, [aggregateValue, label]);
1945
- (0, react.useEffect)(() => {
1946
- const setAggregateData = async (apiMethodInstanceId, valueKey) => {
1947
- setLoading(true);
1948
- const data = aggregateThresholdParamMappings ? { data: aggregateThresholdParamMappings } : { data: {} };
1949
- const response = await require_EnvironmentRibbon.executeQueryInstance(data, apiMethodInstanceId).catch((res) => setLoading(false));
1950
- if (response?.status === 200 && valueKey) {
1951
- const aggregateResult = response.data?.aggregateResults && response.data?.aggregateResults[0];
1952
- if (aggregateResult) setAggregateValue(aggregateResult[valueKey] ? Math.round(aggregateResult[valueKey]) : "");
1953
- }
1954
- setLoading(false);
1955
- };
1956
- if (aggregateThreshold) setAggregateData(aggregateThreshold.apiMethodInstanceId, aggregateThreshold.aggregateKey);
1957
- }, [aggregateThreshold]);
1958
- (0, react.useEffect)(() => {
1959
- if (aggregateThreshold && aggregateValue) {
1960
- const status = getThresholdStatus(aggregateThreshold, aggregateValue);
1961
- setColor(status);
1962
- if (setStatus) setStatus(status || "default");
1963
- }
1964
- }, [
1965
- aggregateThreshold,
1966
- aggregateValue,
1967
- setStatus
1968
- ]);
1969
- if (loading || loadingAggregateThreshold) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.CircularProgress, { size: 18 });
1970
- if (!color && !isAlert) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
1971
- variant: "caption2",
1972
- style: { fontSize: "0.7rem" },
1973
- children: label || aggregateValue
1974
- });
1975
- if (isAlert) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertPill, {
1976
- handleClick: onAlertClick,
1977
- successCount: color === require_EnvironmentRibbon.SeverityTypeEnums.Success ? aggregateValue : "",
1978
- errorCount: color === require_EnvironmentRibbon.SeverityTypeEnums.Error ? aggregateValue : "",
1979
- warningCount: color === require_EnvironmentRibbon.SeverityTypeEnums.Warning ? aggregateValue : "",
1980
- infoCount: color === require_EnvironmentRibbon.SeverityTypeEnums.Info ? aggregateValue : "",
1981
- defaultCount: !color && (aggregateValue || ""),
1982
- successLabel: color === require_EnvironmentRibbon.SeverityTypeEnums.Success ? alertDisplayLabel : "",
1983
- errorLabel: color === require_EnvironmentRibbon.SeverityTypeEnums.Error ? alertDisplayLabel : "",
1984
- warningLabel: color === require_EnvironmentRibbon.SeverityTypeEnums.Warning ? alertDisplayLabel : "",
1985
- infoLabel: color === require_EnvironmentRibbon.SeverityTypeEnums.Info ? alertDisplayLabel : "",
1986
- defaultLabel: !color && (alertDisplayLabel || ""),
1987
- hideSuccess: color === require_EnvironmentRibbon.SeverityTypeEnums.Success ? hideAlert : false,
1988
- hideError: color === require_EnvironmentRibbon.SeverityTypeEnums.Error ? hideAlert : false,
1989
- hideWarning: color === require_EnvironmentRibbon.SeverityTypeEnums.Warning ? hideAlert : false,
1990
- hideInfo: color === require_EnvironmentRibbon.SeverityTypeEnums.Info ? hideAlert : false,
1991
- hideDefault: !color ? hideAlert : false
1992
- });
1993
- return label || aggregateValue ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.StatusChip, {
1994
- label: label || aggregateValue,
1995
- status: color,
1996
- useSmallChip: true,
1997
- isActionable
1998
- }) : null;
1999
- };
2000
- AggregateChip.prototype = {
2001
- chipColor: prop_types.default.oneOf([
2002
- "success",
2003
- "error",
2004
- "warning",
2005
- "info",
2006
- void 0,
2007
- null
2008
- ]),
2009
- aggregateThresholdId: prop_types.default.oneOf([
2010
- prop_types.default.string,
2011
- void 0,
2012
- null
2013
- ])
2014
- };
2015
-
2016
- //#endregion
2017
- //#region src/utilities/utilityBar/UtilityBarInport.jsx
2018
- const UtilityBarInports = (0, react_teleporter.createTeleporter)({ multiSources: true });
2019
- const UtilityBarInportTarget = UtilityBarInports.Target;
2020
- /**
2021
- * Places a Control in the App SubHeader
2022
- */
2023
- const UtilityBarInport = (props) => {
2024
- const { children, className,...buttonProps } = props;
2025
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UtilityBarInports.Source, { children });
2026
- };
2027
-
2028
- //#endregion
2029
- //#region src/UI/utilityDisplay/UtilitySideBar.jsx
2030
- const EXPANDED_WIDTH = 288;
2031
- const COLLAPSED_WIDTH = 78;
2032
- const MAX_WIDTH = 700;
2033
- const useStyles = (0, __material_ui_core.makeStyles)((theme) => ({
2034
- root: {
2035
- paddingTop: (props) => props.removePadding || props.sidebarHidden ? 0 : 40,
2036
- overflow: "hidden",
2037
- height: "100%"
2038
- },
2039
- titleWrapper: {
2040
- display: (props) => props.hideTitleBar ? "none" : "flex",
2041
- width: "100%",
2042
- paddingLeft: theme.spacing(1)
2043
- },
2044
- button: { marginTop: -8 },
2045
- title: {
2046
- flex: 1,
2047
- width: "100%",
2048
- marginTop: 8
2049
- },
2050
- expandedWidth: { width: 288 },
2051
- handle: {
2052
- top: 0,
2053
- right: theme.spacing(-.75),
2054
- width: theme.spacing(.75),
2055
- zIndex: 1e4,
2056
- height: "calc(100vh - 56px)",
2057
- display: "inline-block",
2058
- position: "absolute",
2059
- "&:hover": { cursor: "col-resize" }
2060
- }
2061
- }));
2062
- const UtilitySideBar = (props) => {
2063
- const { onUtilitySidebarToggleExpandClick, resizable, title, utilitySidebarToggleOverride, isUsingChildren = false, removeTopLayoutUnit = false, collapsedWidth, children, sidebarHidden, handleResize = null, hideTitleBar } = props;
2064
- const buildEnv = require_EnvironmentRibbon.useBuildEnvironment();
2065
- const classes = useStyles({
2066
- ...props,
2067
- appRibbbonSpace: buildEnv ? require_EnvironmentRibbon.APP_RIBBON_SPACE : 0
2068
- });
2069
- const [expanded, setExpanded] = (0, react.useState)(true);
2070
- const [width, setWidth] = (0, react.useState)(EXPANDED_WIDTH);
2071
- const _collapsedWidth = collapsedWidth ?? COLLAPSED_WIDTH;
2072
- const theme = (0, __material_ui_core.useTheme)();
2073
- const onResize = (event, { element, size, handle }) => {
2074
- setWidth(size.width);
2075
- if (handleResize) handleResize(size.width);
2076
- };
2077
- const handleToggleClick = (0, react.useCallback)(() => {
2078
- if (onUtilitySidebarToggleExpandClick) onUtilitySidebarToggleExpandClick();
2079
- setExpanded((expanded$1) => !expanded$1);
2080
- }, [onUtilitySidebarToggleExpandClick]);
2081
- (0, react.useEffect)(() => {
2082
- if (typeof utilitySidebarToggleOverride === "boolean") setExpanded(utilitySidebarToggleOverride);
2083
- }, [utilitySidebarToggleOverride]);
2084
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_resizable.ResizableBox, {
2085
- width: expanded ? width : _collapsedWidth,
2086
- resizeHandles: resizable && expanded ? ["e"] : [],
2087
- axis: "x",
2088
- minConstraints: expanded ? [EXPANDED_WIDTH] : [_collapsedWidth],
2089
- maxConstraints: [MAX_WIDTH],
2090
- onResize,
2091
- handle: expanded && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: classes.handle }),
2092
- style: { position: "relative" },
2093
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2094
- className: classes.root,
2095
- style: { width: expanded ? width : _collapsedWidth },
2096
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(AmbientCard, {
2097
- fullWidth: true,
2098
- removePadding: true,
2099
- lastChildBottomPadding: 12,
2100
- removeTopLayoutUnit: removeTopLayoutUnit || sidebarHidden,
2101
- children: [
2102
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2103
- style: {
2104
- display: hideTitleBar ? "none" : "flex",
2105
- width: "100%",
2106
- paddingLeft: theme.spacing(1)
2107
- },
2108
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2109
- className: classes.title,
2110
- children: expanded && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.Typography, {
2111
- variant: "h6",
2112
- children: [
2113
- " ",
2114
- title,
2115
- " "
2116
- ]
2117
- })
2118
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2119
- className: classes.button,
2120
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SidebarCollapseButton, {
2121
- id: "udpRecord-UtilitySideBar",
2122
- udprecordid: "udpRecord-UtilitySideBar",
2123
- expanded,
2124
- onClick: handleToggleClick
2125
- })
2126
- })]
2127
- }),
2128
- !isUsingChildren && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UtilityBarInportTarget, {}),
2129
- isUsingChildren && children
2130
- ]
2131
- })
2132
- })
2133
- });
2134
- };
2135
-
2136
- //#endregion
2137
- Object.defineProperty(exports, 'Adornment', {
2138
- enumerable: true,
2139
- get: function () {
2140
- return Adornment;
2141
- }
2142
- });
2143
- Object.defineProperty(exports, 'AggregateChip', {
2144
- enumerable: true,
2145
- get: function () {
2146
- return AggregateChip;
2147
- }
2148
- });
2149
- Object.defineProperty(exports, 'AlertPill', {
2150
- enumerable: true,
2151
- get: function () {
2152
- return AlertPill;
2153
- }
2154
- });
2155
- Object.defineProperty(exports, 'AmbientCard', {
2156
- enumerable: true,
2157
- get: function () {
2158
- return AmbientCard;
2159
- }
2160
- });
2161
- Object.defineProperty(exports, 'AmbientCardButton', {
2162
- enumerable: true,
2163
- get: function () {
2164
- return AmbientCardButton;
2165
- }
2166
- });
2167
- Object.defineProperty(exports, 'GroupNode', {
2168
- enumerable: true,
2169
- get: function () {
2170
- return GroupNode;
2171
- }
2172
- });
2173
- Object.defineProperty(exports, 'NodeLoader', {
2174
- enumerable: true,
2175
- get: function () {
2176
- return NodeLoader;
2177
- }
2178
- });
2179
- Object.defineProperty(exports, 'SidebarCollapseButton', {
2180
- enumerable: true,
2181
- get: function () {
2182
- return SidebarCollapseButton;
2183
- }
2184
- });
2185
- Object.defineProperty(exports, 'UtilityBarInport', {
2186
- enumerable: true,
2187
- get: function () {
2188
- return UtilityBarInport;
2189
- }
2190
- });
2191
- Object.defineProperty(exports, 'UtilityBarInportTarget', {
2192
- enumerable: true,
2193
- get: function () {
2194
- return UtilityBarInportTarget;
2195
- }
2196
- });
2197
- Object.defineProperty(exports, 'UtilitySideBar', {
2198
- enumerable: true,
2199
- get: function () {
2200
- return UtilitySideBar;
2201
- }
2202
- });
2203
- Object.defineProperty(exports, 'checkNodeIsHidden', {
2204
- enumerable: true,
2205
- get: function () {
2206
- return checkNodeIsHidden;
2207
- }
2208
- });
2209
- Object.defineProperty(exports, 'collapseAllNodes', {
2210
- enumerable: true,
2211
- get: function () {
2212
- return collapseAllNodes;
2213
- }
2214
- });
2215
- Object.defineProperty(exports, 'constructBusinessObjectArrFromTree', {
2216
- enumerable: true,
2217
- get: function () {
2218
- return constructBusinessObjectArrFromTree;
2219
- }
2220
- });
2221
- Object.defineProperty(exports, 'constructDynamicNodeGroups', {
2222
- enumerable: true,
2223
- get: function () {
2224
- return constructDynamicNodeGroups;
2225
- }
2226
- });
2227
- Object.defineProperty(exports, 'constructDynamicNodeGroups2', {
2228
- enumerable: true,
2229
- get: function () {
2230
- return constructDynamicNodeGroups2;
2231
- }
2232
- });
2233
- Object.defineProperty(exports, 'constructPreloadedTree', {
2234
- enumerable: true,
2235
- get: function () {
2236
- return constructPreloadedTree;
2237
- }
2238
- });
2239
- Object.defineProperty(exports, 'constructStaticNodeGroups', {
2240
- enumerable: true,
2241
- get: function () {
2242
- return constructStaticNodeGroups;
2243
- }
2244
- });
2245
- Object.defineProperty(exports, 'deleteNode', {
2246
- enumerable: true,
2247
- get: function () {
2248
- return deleteNode;
2249
- }
2250
- });
2251
- Object.defineProperty(exports, 'deleteNodeAndChildren', {
2252
- enumerable: true,
2253
- get: function () {
2254
- return deleteNodeAndChildren;
2255
- }
2256
- });
2257
- Object.defineProperty(exports, 'evaluateRule', {
2258
- enumerable: true,
2259
- get: function () {
2260
- return evaluateRule;
2261
- }
2262
- });
2263
- Object.defineProperty(exports, 'expandAllNodes', {
2264
- enumerable: true,
2265
- get: function () {
2266
- return expandAllNodes;
2267
- }
2268
- });
2269
- Object.defineProperty(exports, 'findAllParentIds', {
2270
- enumerable: true,
2271
- get: function () {
2272
- return findAllParentIds;
2273
- }
2274
- });
2275
- Object.defineProperty(exports, 'findLastNode', {
2276
- enumerable: true,
2277
- get: function () {
2278
- return findLastNode;
2279
- }
2280
- });
2281
- Object.defineProperty(exports, 'findNodeById', {
2282
- enumerable: true,
2283
- get: function () {
2284
- return findNodeById;
2285
- }
2286
- });
2287
- Object.defineProperty(exports, 'findNodeByIdAndLabel', {
2288
- enumerable: true,
2289
- get: function () {
2290
- return findNodeByIdAndLabel;
2291
- }
2292
- });
2293
- Object.defineProperty(exports, 'findNodesByIdAndLabel', {
2294
- enumerable: true,
2295
- get: function () {
2296
- return findNodesByIdAndLabel;
2297
- }
2298
- });
2299
- Object.defineProperty(exports, 'formatTreeLabel', {
2300
- enumerable: true,
2301
- get: function () {
2302
- return formatTreeLabel;
2303
- }
2304
- });
2305
- Object.defineProperty(exports, 'formatTreeMenuItem', {
2306
- enumerable: true,
2307
- get: function () {
2308
- return formatTreeMenuItem;
2309
- }
2310
- });
2311
- Object.defineProperty(exports, 'getAllChildrenNodesToDelete', {
2312
- enumerable: true,
2313
- get: function () {
2314
- return getAllChildrenNodesToDelete;
2315
- }
2316
- });
2317
- Object.defineProperty(exports, 'getDisplayDetails', {
2318
- enumerable: true,
2319
- get: function () {
2320
- return getDisplayDetails;
2321
- }
2322
- });
2323
- Object.defineProperty(exports, 'getDisplayName', {
2324
- enumerable: true,
2325
- get: function () {
2326
- return getDisplayName;
2327
- }
2328
- });
2329
- Object.defineProperty(exports, 'getHeaderTitle', {
2330
- enumerable: true,
2331
- get: function () {
2332
- return getHeaderTitle;
2333
- }
2334
- });
2335
- Object.defineProperty(exports, 'getIconFromName', {
2336
- enumerable: true,
2337
- get: function () {
2338
- return getIconFromName;
2339
- }
2340
- });
2341
- Object.defineProperty(exports, 'getLazyLoadChildrenArr', {
2342
- enumerable: true,
2343
- get: function () {
2344
- return getLazyLoadChildrenArr;
2345
- }
2346
- });
2347
- Object.defineProperty(exports, 'getNodeIdForRightBorder', {
2348
- enumerable: true,
2349
- get: function () {
2350
- return getNodeIdForRightBorder;
2351
- }
2352
- });
2353
- Object.defineProperty(exports, 'getOrderedDynamicGroups', {
2354
- enumerable: true,
2355
- get: function () {
2356
- return getOrderedDynamicGroups;
2357
- }
2358
- });
2359
- Object.defineProperty(exports, 'getPropertyMappingList', {
2360
- enumerable: true,
2361
- get: function () {
2362
- return getPropertyMappingList;
2363
- }
2364
- });
2365
- Object.defineProperty(exports, 'getPropertyMappingObj', {
2366
- enumerable: true,
2367
- get: function () {
2368
- return getPropertyMappingObj;
2369
- }
2370
- });
2371
- Object.defineProperty(exports, 'getSearchValueString', {
2372
- enumerable: true,
2373
- get: function () {
2374
- return getSearchValueString;
2375
- }
2376
- });
2377
- Object.defineProperty(exports, 'getUnityIconFromName', {
2378
- enumerable: true,
2379
- get: function () {
2380
- return getUnityIconFromName;
2381
- }
2382
- });
2383
- Object.defineProperty(exports, 'makeDynamicGroupStructures', {
2384
- enumerable: true,
2385
- get: function () {
2386
- return makeDynamicGroupStructures;
2387
- }
2388
- });
2389
- Object.defineProperty(exports, 'makeDynamicTreeStructure', {
2390
- enumerable: true,
2391
- get: function () {
2392
- return makeDynamicTreeStructure;
2393
- }
2394
- });
2395
- Object.defineProperty(exports, 'makeTreeStaticGroupStructure', {
2396
- enumerable: true,
2397
- get: function () {
2398
- return makeTreeStaticGroupStructure;
2399
- }
2400
- });
2401
- Object.defineProperty(exports, 'makeTreeStructure', {
2402
- enumerable: true,
2403
- get: function () {
2404
- return makeTreeStructure;
2405
- }
2406
- });
2407
- Object.defineProperty(exports, 'mapNodeGroupChildren', {
2408
- enumerable: true,
2409
- get: function () {
2410
- return mapNodeGroupChildren;
2411
- }
2412
- });
2413
- Object.defineProperty(exports, 'mapNodeObjValuesToSearchParameters', {
2414
- enumerable: true,
2415
- get: function () {
2416
- return mapNodeObjValuesToSearchParameters;
2417
- }
2418
- });
2419
- Object.defineProperty(exports, 'mapRule', {
2420
- enumerable: true,
2421
- get: function () {
2422
- return mapRule;
2423
- }
2424
- });
2425
- Object.defineProperty(exports, 'mapRuleData', {
2426
- enumerable: true,
2427
- get: function () {
2428
- return mapRuleData;
2429
- }
2430
- });
2431
- Object.defineProperty(exports, 'processCatalogObjectKeysInOrder', {
2432
- enumerable: true,
2433
- get: function () {
2434
- return processCatalogObjectKeysInOrder;
2435
- }
2436
- });
2437
- Object.defineProperty(exports, 'processItemForDynamicNodeGroups', {
2438
- enumerable: true,
2439
- get: function () {
2440
- return processItemForDynamicNodeGroups;
2441
- }
2442
- });
2443
- Object.defineProperty(exports, 'processItemForStaticNodeGroup', {
2444
- enumerable: true,
2445
- get: function () {
2446
- return processItemForStaticNodeGroup;
2447
- }
2448
- });
2449
- Object.defineProperty(exports, 'processObjIndex', {
2450
- enumerable: true,
2451
- get: function () {
2452
- return processObjIndex;
2453
- }
2454
- });
2455
- Object.defineProperty(exports, 'processObjectToTree', {
2456
- enumerable: true,
2457
- get: function () {
2458
- return processObjectToTree;
2459
- }
2460
- });
2461
- Object.defineProperty(exports, 'processOrderedTreeData', {
2462
- enumerable: true,
2463
- get: function () {
2464
- return processOrderedTreeData;
2465
- }
2466
- });
2467
- Object.defineProperty(exports, 'processReferences', {
2468
- enumerable: true,
2469
- get: function () {
2470
- return processReferences;
2471
- }
2472
- });
2473
- Object.defineProperty(exports, 'searchForMatchingNode', {
2474
- enumerable: true,
2475
- get: function () {
2476
- return searchForMatchingNode;
2477
- }
2478
- });
2479
- Object.defineProperty(exports, 'searchTree', {
2480
- enumerable: true,
2481
- get: function () {
2482
- return searchTree;
2483
- }
2484
- });
2485
- Object.defineProperty(exports, 'transformMenuPageTree', {
2486
- enumerable: true,
2487
- get: function () {
2488
- return transformMenuPageTree;
2489
- }
2490
- });
2491
- Object.defineProperty(exports, 'unityIcons', {
2492
- enumerable: true,
2493
- get: function () {
2494
- return unityIcons;
2495
- }
2496
- });
2497
- Object.defineProperty(exports, 'updateTreeIds', {
2498
- enumerable: true,
2499
- get: function () {
2500
- return updateTreeIds;
2501
- }
2502
- });
2503
- //# sourceMappingURL=UtilitySideBar-C-5lGIvy.cjs.map