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,2647 +0,0 @@
1
- const require_chunk = require('./chunk-DoeelZqw.cjs');
2
- const require_EnvironmentRibbon = require('./EnvironmentRibbon-CgKsTmQ7.cjs');
3
- const require_SearchUtilities = require('./SearchUtilities-BYR03EFr.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 === null || properties === void 0 ? void 0 : 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 ../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js
117
- var require_typeof = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js": ((exports, module) => {
118
- function _typeof$2(o) {
119
- "@babel/helpers - typeof";
120
- return module.exports = _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
121
- return typeof o$1;
122
- } : function(o$1) {
123
- return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
124
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof$2(o);
125
- }
126
- module.exports = _typeof$2, module.exports.__esModule = true, module.exports["default"] = module.exports;
127
- }) });
128
-
129
- //#endregion
130
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js
131
- var require_toPrimitive = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js": ((exports, module) => {
132
- var _typeof$1 = require_typeof()["default"];
133
- function toPrimitive$1(t, r) {
134
- if ("object" != _typeof$1(t) || !t) return t;
135
- var e = t[Symbol.toPrimitive];
136
- if (void 0 !== e) {
137
- var i = e.call(t, r || "default");
138
- if ("object" != _typeof$1(i)) return i;
139
- throw new TypeError("@@toPrimitive must return a primitive value.");
140
- }
141
- return ("string" === r ? String : Number)(t);
142
- }
143
- module.exports = toPrimitive$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
144
- }) });
145
-
146
- //#endregion
147
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js
148
- var require_toPropertyKey = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js": ((exports, module) => {
149
- var _typeof = require_typeof()["default"];
150
- var toPrimitive = require_toPrimitive();
151
- function toPropertyKey$1(t) {
152
- var i = toPrimitive(t, "string");
153
- return "symbol" == _typeof(i) ? i : i + "";
154
- }
155
- module.exports = toPropertyKey$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
156
- }) });
157
-
158
- //#endregion
159
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js
160
- var require_defineProperty = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js": ((exports, module) => {
161
- var toPropertyKey = require_toPropertyKey();
162
- function _defineProperty$1(e, r, t) {
163
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
164
- value: t,
165
- enumerable: !0,
166
- configurable: !0,
167
- writable: !0
168
- }) : e[r] = t, e;
169
- }
170
- module.exports = _defineProperty$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
171
- }) });
172
-
173
- //#endregion
174
- //#region src/models/GroupNode.ts
175
- var import_defineProperty = /* @__PURE__ */ require_chunk.__toESM(require_defineProperty(), 1);
176
- var GroupNode = class {
177
- constructor(node) {
178
- (0, import_defineProperty.default)(this, "id", void 0);
179
- (0, import_defineProperty.default)(this, "isGroupNode", void 0);
180
- (0, import_defineProperty.default)(this, "groupType", void 0);
181
- (0, import_defineProperty.default)(this, "children", void 0);
182
- (0, import_defineProperty.default)(this, "isExpanded", void 0);
183
- (0, import_defineProperty.default)(this, "parentId", void 0);
184
- (0, import_defineProperty.default)(this, "parentGroupId", void 0);
185
- (0, import_defineProperty.default)(this, "properties", void 0);
186
- (0, import_defineProperty.default)(this, "isOutlierGroup", void 0);
187
- (0, import_defineProperty.default)(this, "hideEmptyGroups", void 0);
188
- this.id = node.id || (0, uuid.v4)();
189
- this.isGroupNode = true;
190
- this.hideEmptyGroups = node.hideEmptyGroups || false;
191
- this.groupType = node.groupType || require_EnvironmentRibbon.NodeGroupTypeEnums.Static;
192
- this.children = node.children || [];
193
- this.isExpanded = node.isExpanded || false;
194
- this.parentId = node.parentId || null;
195
- this.parentGroupId = node.parentGroupId || null;
196
- this.properties = node.properties ? {
197
- propertyMapping: null,
198
- jsonLogic: null,
199
- icon: {
200
- name: "GroupedListIcon",
201
- type: "",
202
- color: ""
203
- },
204
- ...node.properties
205
- } : {
206
- propertyMapping: null,
207
- jsonLogic: null,
208
- icon: {
209
- name: "GroupedListIcon",
210
- type: "",
211
- color: ""
212
- }
213
- };
214
- this.isOutlierGroup = node.isOutlierGroup || false;
215
- }
216
- };
217
-
218
- //#endregion
219
- //#region src/utilities/tree/TreeUtilities.js
220
- const makeTreeStructure = (treeData, key, parentKey, parentGroupKey = "parentGroupId") => {
221
- if (!treeData) return [];
222
- const keys = [];
223
- treeData.forEach((node) => {
224
- node.children = [];
225
- if (node["isExpanded"] === void 0 && !node.isGroupNode) if (node.properties.defaultDisplay === "collapsed" || node.properties.lazyLoad) node.isExpanded = false;
226
- else node.isExpanded = true;
227
- keys.push(node[key]);
228
- });
229
- const roots = treeData.filter((node) => {
230
- return !((node === null || node === void 0 ? void 0 : node.isGroupNode) ? node[parentGroupKey] : node[parentKey]);
231
- });
232
- const nodes = [];
233
- const existingGroups = [];
234
- roots.forEach((root) => {
235
- nodes.push(root);
236
- });
237
- while (nodes.length > 0) {
238
- const node = nodes.pop();
239
- let children = treeData.filter((data) => data[parentKey] === node[key] || data[parentGroupKey] === node[key]);
240
- children.forEach((child) => {
241
- if (child === null || child === void 0 ? void 0 : child.isGroupNode) {
242
- const existingGroup = existingGroups.find((eg) => eg.id === child.id && eg.parentGroupId === child.parentGroupId);
243
- if (!existingGroup) {
244
- existingGroups.push(child);
245
- node.children.push(child);
246
- nodes.push(child);
247
- }
248
- } else if (node.isGroupNode && child.parentGroupId || !node.isGroupNode && !child.parentGroupId) {
249
- node.children.push(child);
250
- nodes.push(child);
251
- }
252
- });
253
- }
254
- const removeEmptyGroupNodes = (node) => {
255
- var _node$children;
256
- if ((node === null || node === void 0 ? void 0 : node.isGroupNode) && (node === null || node === void 0 ? void 0 : node.hideEmptyGroups) && !(node === null || node === void 0 || (_node$children = node.children) === null || _node$children === void 0 ? void 0 : _node$children.length)) return null;
257
- node.children = node.children.map(removeEmptyGroupNodes).filter((child) => child !== null);
258
- return node;
259
- };
260
- const filteredRoots = roots.map(removeEmptyGroupNodes).filter((root) => root !== null);
261
- if (filteredRoots.length === 1) return filteredRoots[0];
262
- return filteredRoots;
263
- };
264
- const makeTreeStaticGroupStructure = (treeData, key, parentKey, groupType = require_EnvironmentRibbon.NodeGroupTypeEnums.Static, hideEmptyGroups) => {
265
- if (!treeData) return [];
266
- const keys = [];
267
- treeData.forEach((node, index) => {
268
- const { id, hideEmptyGroups: hideEmptyGroups$1, children, apiMethodInstanceId, parentGroupId, order, isExpanded,...groupProperties } = node;
269
- treeData[index] = new GroupNode({
270
- id,
271
- groupType,
272
- children,
273
- parentId: parentGroupId,
274
- parentGroupId,
275
- isExpanded,
276
- properties: { ...groupProperties }
277
- });
278
- keys.push(node[key]);
279
- });
280
- const roots = treeData.filter((node) => keys.indexOf(node[parentKey]) === -1);
281
- const nodes = [];
282
- roots.forEach((root) => {
283
- nodes.push(root);
284
- });
285
- while (nodes.length > 0) {
286
- const node = nodes.pop();
287
- let children = treeData.filter((data) => data[parentKey] === node[key]);
288
- children.forEach((child) => {
289
- node.children.push(child);
290
- nodes.push(child);
291
- });
292
- }
293
- if (roots.length === 1) return roots[0];
294
- return roots;
295
- };
296
- const makeDynamicGroupStructures = (treeStructure, results) => {
297
- if (!treeStructure) return [];
298
- const groupStructures = [];
299
- results.forEach((item) => {
300
- processDynamicGroupForCurrentNodeLevel(item, treeStructure, groupStructures, groupStructures);
301
- });
302
- return groupStructures;
303
- };
304
- const processDynamicGroupForCurrentNodeLevel = (item, node, groupStructures, previousFilteredGroups = []) => {
305
- const { property, id } = node;
306
- const label = property ? getLabelFromProperty(item, property) : null;
307
- let filteredGroups = [];
308
- previousFilteredGroups.forEach((group) => {
309
- if (group) {
310
- const foundGroups = findNodesByIdAndLabel(group, id, label);
311
- if (foundGroups.length) filteredGroups = filteredGroups.concat(foundGroups);
312
- }
313
- });
314
- if (filteredGroups.length) {
315
- var _node$children2;
316
- if (node === null || node === void 0 || (_node$children2 = node.children) === null || _node$children2 === void 0 ? void 0 : _node$children2.length) node.children.forEach((child) => processDynamicGroupForCurrentNodeLevel(item, child, groupStructures, filteredGroups));
317
- } else if (label) {
318
- const dynamicGroupTree = makeDynamicGroupTree(node, item);
319
- if (node.parentGroupId) previousFilteredGroups.forEach((filteredGroup) => {
320
- const matchingGroupNode = findNodeById(filteredGroup, node.parentGroupId);
321
- if (matchingGroupNode) {
322
- dynamicGroupTree.parentGroupId = matchingGroupNode.id;
323
- matchingGroupNode.children.push(dynamicGroupTree);
324
- }
325
- });
326
- else groupStructures.push(dynamicGroupTree);
327
- }
328
- };
329
- const makeDynamicGroupTree = (node, item, parentGroupNode) => {
330
- const { id, children, apiMethodInstanceId, parentGroupId, order, property, label, isExpanded,...groupProperties } = node;
331
- const updatedLabel = property ? getLabelFromProperty(item, property) : null;
332
- if (updatedLabel) {
333
- const groupNode = new GroupNode({
334
- id: `${id}`,
335
- groupType: require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic,
336
- children: [],
337
- parentGroupId: (parentGroupNode === null || parentGroupNode === void 0 ? void 0 : parentGroupNode.id) || null,
338
- isExpanded,
339
- properties: {
340
- label: updatedLabel,
341
- ...groupProperties,
342
- propertyKey: property
343
- }
344
- });
345
- if (parentGroupNode) parentGroupNode.children.push(groupNode);
346
- if (children === null || children === void 0 ? void 0 : children.length) children.forEach((child) => makeDynamicGroupTree(child, item, groupNode));
347
- return groupNode;
348
- }
349
- };
350
- const makeDynamicTreeStructure = (treeData, key, parentKey) => {
351
- if (!treeData) return [];
352
- const keys = [];
353
- treeData.forEach((node, index) => {
354
- keys.push(node[key]);
355
- });
356
- const roots = treeData.filter((node) => keys.indexOf(node[parentKey]) === -1);
357
- const nodes = [];
358
- roots.forEach((root) => {
359
- nodes.push(root);
360
- });
361
- while (nodes.length > 0) {
362
- const node = nodes.pop();
363
- let children = treeData.filter((data) => data[parentKey] === node[key]);
364
- children.forEach((child) => {
365
- node.children.push(child);
366
- nodes.push(child);
367
- });
368
- }
369
- if (roots.length === 1) return roots[0];
370
- return roots;
371
- };
372
- const getIconFromName = (name) => {
373
- if (!name) return null;
374
- const substr = name.slice(-4);
375
- if (substr.toLowerCase() !== "icon") {
376
- const updatedName = `${name}Icon`;
377
- return __fluentui_react_icons[updatedName] || null;
378
- } else return __fluentui_react_icons[name] || null;
379
- };
380
- const findLastNode = (tree) => {
381
- var _tree$children;
382
- let result = null;
383
- if (!(tree === null || tree === void 0 || (_tree$children = tree.children) === null || _tree$children === void 0 ? void 0 : _tree$children.length)) return tree;
384
- else {
385
- if (tree === null || tree === void 0 ? void 0 : tree.children) tree.children.forEach((node) => result = findLastNode(node));
386
- return result;
387
- }
388
- };
389
- const searchTree = (tree, id) => {
390
- let result = null;
391
- if (tree.id === id) return tree;
392
- else {
393
- if (tree.children) tree.children.some((node) => result = searchTree(node, id));
394
- return result;
395
- }
396
- };
397
- const deleteNode = (treeData, nodeId) => {
398
- const updatedTreeData = [...treeData];
399
- const foundNode = updatedTreeData.find((node) => node.id === nodeId);
400
- const nodeIndex = updatedTreeData.findIndex((node) => node.id === nodeId);
401
- if (!foundNode.parentId || !updatedTreeData.some((node) => node.parentId === nodeId)) {
402
- if (nodeIndex > -1) updatedTreeData.splice(nodeIndex, 1);
403
- const immediateChild = updatedTreeData.find((node) => node.parentId === nodeId);
404
- if (immediateChild) immediateChild.parentId = null;
405
- } else {
406
- foundNode.isDeleted = true;
407
- foundNode.properties = {};
408
- }
409
- return updatedTreeData;
410
- };
411
- const deleteNodeAndChildren = (treeData, nodeId) => {
412
- const updatedTreeData = [...treeData];
413
- const nodeIdsToDelete = [];
414
- nodeIdsToDelete.push(nodeId);
415
- getAllChildrenNodesToDelete(updatedTreeData, nodeId, nodeIdsToDelete);
416
- return updatedTreeData.filter((node) => !nodeIdsToDelete.includes(node.id));
417
- };
418
- const getAllChildrenNodesToDelete = (treeData, nodeId, nodeIdsToDelete) => {
419
- const nodesToDelete = treeData.filter((node) => node.parentId === nodeId);
420
- nodesToDelete.forEach((node) => {
421
- nodeIdsToDelete.push(node.id);
422
- getAllChildrenNodesToDelete(treeData, node.id, nodeIdsToDelete);
423
- });
424
- };
425
- const processCatalogObjectKeysInOrder = (tree, keys) => {
426
- var _tree$children2;
427
- if (!(tree === null || tree === void 0 || (_tree$children2 = tree.children) === null || _tree$children2 === void 0 ? void 0 : _tree$children2.length)) {
428
- var _tree$properties;
429
- keys.push(tree === null || tree === void 0 || (_tree$properties = tree.properties) === null || _tree$properties === void 0 ? void 0 : _tree$properties.catalogObjectKey);
430
- } else if (tree === null || tree === void 0 ? void 0 : tree.children) {
431
- var _tree$properties2;
432
- if (tree === null || tree === void 0 || (_tree$properties2 = tree.properties) === null || _tree$properties2 === void 0 ? void 0 : _tree$properties2.catalogObjectKey) {
433
- var _tree$properties3;
434
- keys.push(tree === null || tree === void 0 || (_tree$properties3 = tree.properties) === null || _tree$properties3 === void 0 ? void 0 : _tree$properties3.catalogObjectKey);
435
- }
436
- tree.children.forEach((node) => processCatalogObjectKeysInOrder(node, keys));
437
- }
438
- };
439
- const processOrderedTreeData = (tree, treeData) => {
440
- var _tree$children3;
441
- if (!(tree === null || tree === void 0 || (_tree$children3 = tree.children) === null || _tree$children3 === void 0 ? void 0 : _tree$children3.length)) treeData.push(tree);
442
- else if (tree === null || tree === void 0 ? void 0 : tree.children) {
443
- treeData.push(tree);
444
- tree.children.forEach((node) => processOrderedTreeData(node, treeData));
445
- }
446
- };
447
- const processObjectToTree = (result, treeData, objectReferenceKeys, treeList, catalogObjects, promotedEntities, wasLazyLoaded) => {
448
- const treeArr = { ...treeData };
449
- processReferences(result, objectReferenceKeys, treeArr, 0, treeList, null, catalogObjects, promotedEntities, wasLazyLoaded);
450
- };
451
- const processReferences = (reference, objectReferenceKeys, treeData, index, treeList, parentId, catalogObjects, promotedEntities, wasLazyLoaded) => {
452
- const newIndex = index + 1;
453
- if (reference) {
454
- let node = parentId ? treeData[newIndex] : treeData[0];
455
- let nodeGroups = [];
456
- if (parentId) {
457
- var _node$properties, _node$properties2;
458
- if ((node === null || node === void 0 || (_node$properties = node.properties) === null || _node$properties === void 0 || (_node$properties = _node$properties.groupConfiguration) === null || _node$properties === void 0 ? void 0 : _node$properties.groupType) === require_EnvironmentRibbon.NodeGroupTypeEnums.Static) nodeGroups = constructStaticNodeGroups(node, true);
459
- else if ((node === null || node === void 0 || (_node$properties2 = node.properties) === null || _node$properties2 === void 0 || (_node$properties2 = _node$properties2.groupConfiguration) === null || _node$properties2 === void 0 ? void 0 : _node$properties2.groupType) === require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic) nodeGroups = constructDynamicNodeGroups(reference, node, true);
460
- }
461
- if (Array.isArray(reference) && reference.length) reference.forEach((ref, i) => {
462
- if (node) {
463
- var _nodeCopy$children;
464
- const nodeCopy = (0, lodash.cloneDeep)(node);
465
- processObjIndex(nodeCopy, ref, i, parentId, catalogObjects, promotedEntities, wasLazyLoaded);
466
- if (nodeGroups.length) {
467
- var _node$properties3, _node$properties5;
468
- if ((node === null || node === void 0 || (_node$properties3 = node.properties) === null || _node$properties3 === void 0 || (_node$properties3 = _node$properties3.groupConfiguration) === null || _node$properties3 === void 0 ? void 0 : _node$properties3.groupType) === require_EnvironmentRibbon.NodeGroupTypeEnums.Static) {
469
- var _node$properties4;
470
- const groupedItemIndexes = /* @__PURE__ */ new Set();
471
- let processedItem = {
472
- itemAdded: false,
473
- nodeChildren: []
474
- };
475
- nodeGroups.forEach((nodeGroup) => {
476
- let nodeGroupChildren = [];
477
- processedItem = processItemForStaticNodeGroup(nodeGroup, ref, groupedItemIndexes, nodeCopy, i, /* @__PURE__ */ new Set(), treeList);
478
- nodeGroupChildren = nodeGroupChildren.concat(processedItem.nodeChildren);
479
- mapNodeGroupChildren(nodeGroup, nodeGroupChildren);
480
- nodeGroup.parentGroupId = nodeCopy.parentId;
481
- });
482
- if (!processedItem.itemAdded && (node === null || node === void 0 || (_node$properties4 = node.properties) === null || _node$properties4 === void 0 || (_node$properties4 = _node$properties4.groupConfiguration) === null || _node$properties4 === void 0 ? void 0 : _node$properties4.outlier) === require_EnvironmentRibbon.NodeGroupOutlierEnums.Individual) {
483
- const nodeIsHidden = checkNodeIsHidden(nodeCopy, ref, wasLazyLoaded);
484
- !nodeIsHidden && treeList.push(nodeCopy);
485
- }
486
- } else if ((node === null || node === void 0 || (_node$properties5 = node.properties) === null || _node$properties5 === void 0 || (_node$properties5 = _node$properties5.groupConfiguration) === null || _node$properties5 === void 0 ? void 0 : _node$properties5.groupType) === require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic) nodeGroups.forEach((nodeGroup) => {
487
- nodeGroup.parentGroupId = nodeCopy.parentId;
488
- nodeGroup.parentId = nodeCopy.parentId;
489
- processGroupNodesAndAddToTreeList(nodeGroup, treeList, nodeCopy.parentId, ref, wasLazyLoaded);
490
- });
491
- } else {
492
- const nodeIsHidden = checkNodeIsHidden(nodeCopy, ref, wasLazyLoaded);
493
- !nodeIsHidden && treeList.push(nodeCopy);
494
- }
495
- if (nodeCopy === null || nodeCopy === void 0 || (_nodeCopy$children = nodeCopy.children) === null || _nodeCopy$children === void 0 ? void 0 : _nodeCopy$children.length) {
496
- const objectReferenceKeysCopy = [...objectReferenceKeys];
497
- nodeCopy.children.forEach((childNode, i$1) => {
498
- var _childNode$properties;
499
- const catalogObjectKey = childNode === null || childNode === void 0 || (_childNode$properties = childNode.properties) === null || _childNode$properties === void 0 ? void 0 : _childNode$properties.catalogObjectKey;
500
- const nextIndex = objectReferenceKeysCopy.indexOf(catalogObjectKey);
501
- if (!parentId) objectReferenceKeysCopy[nextIndex] = null;
502
- processReferences(ref[catalogObjectKey], objectReferenceKeys, treeData, nextIndex, treeList, nodeCopy.id, catalogObjects, promotedEntities, nodeCopy.properties.lazyLoad);
503
- });
504
- }
505
- }
506
- });
507
- else if (typeof reference === "object" && !Array.isArray(reference)) {
508
- processObjIndex(node, reference, 0, parentId, catalogObjects, promotedEntities, wasLazyLoaded);
509
- if (node) {
510
- var _nodeCopy$children2;
511
- const nodeCopy = (0, lodash.cloneDeep)(node);
512
- const nodeIsHidden = checkNodeIsHidden(nodeCopy, reference, wasLazyLoaded);
513
- !nodeIsHidden && treeList.push(nodeCopy);
514
- if (nodeCopy === null || nodeCopy === void 0 || (_nodeCopy$children2 = nodeCopy.children) === null || _nodeCopy$children2 === void 0 ? void 0 : _nodeCopy$children2.length) {
515
- const objectReferenceKeysCopy = [...objectReferenceKeys];
516
- nodeCopy.children.forEach((childNode, i) => {
517
- var _childNode$properties2;
518
- const catalogObjectKey = childNode === null || childNode === void 0 || (_childNode$properties2 = childNode.properties) === null || _childNode$properties2 === void 0 ? void 0 : _childNode$properties2.catalogObjectKey;
519
- const nextIndex = parentId ? newIndex : objectReferenceKeysCopy.indexOf(catalogObjectKey);
520
- if (!parentId) objectReferenceKeysCopy[nextIndex] = null;
521
- processReferences(reference[catalogObjectKey], objectReferenceKeys, treeData, nextIndex, treeList, nodeCopy.id, catalogObjects, promotedEntities, nodeCopy.properties.lazyLoad);
522
- });
523
- }
524
- }
525
- }
526
- }
527
- };
528
- const processObjIndex = (node, obj, index, parentId, catalogObjects, promotedEntities, wasLazyLoaded) => {
529
- var _node$properties10;
530
- if (node.properties.conditionalNodeIconExpression) {
531
- var _node$properties6;
532
- const conditionalNodeIcon = evaluateRule(node.properties.conditionalNodeIconExpression, obj, (_node$properties6 = node.properties) === null || _node$properties6 === void 0 ? void 0 : _node$properties6.joiningEntityCatalogObjectKey, wasLazyLoaded);
533
- if (conditionalNodeIcon) {
534
- var _conditionalNodeIcon$;
535
- node.properties["conditionalNodeIconName"] = (conditionalNodeIcon === null || conditionalNodeIcon === void 0 ? void 0 : conditionalNodeIcon.name) || "";
536
- node.properties["conditionalNodeIconColor"] = conditionalNodeIcon === null || conditionalNodeIcon === void 0 || (_conditionalNodeIcon$ = conditionalNodeIcon.iconColor) === null || _conditionalNodeIcon$ === void 0 ? void 0 : _conditionalNodeIcon$.hex;
537
- node.properties["conditionalNodeIconType"] = (conditionalNodeIcon === null || conditionalNodeIcon === void 0 ? void 0 : conditionalNodeIcon.type) || "";
538
- } else {
539
- node.properties["conditionalNodeIconName"] = "";
540
- node.properties["conditionalNodeIconColor"] = "";
541
- node.properties["conditionalNodeIconType"] = "";
542
- }
543
- }
544
- if (node.properties.conditionalNodeAdornmentExpression || node.properties.conditionalIconExpression) {
545
- var _node$properties7, _node$properties8;
546
- const conditionalNodeAdornment = node.properties.conditionalNodeAdornmentExpression ? evaluateRule(node.properties.conditionalNodeAdornmentExpression, obj, (_node$properties7 = node.properties) === null || _node$properties7 === void 0 ? void 0 : _node$properties7.joiningEntityCatalogObjectKey, wasLazyLoaded) : evaluateRule(node.properties.conditionalIconExpression, obj, (_node$properties8 = node.properties) === null || _node$properties8 === void 0 ? void 0 : _node$properties8.joiningEntityCatalogObjectKey, wasLazyLoaded);
547
- if (conditionalNodeAdornment) {
548
- var _conditionalNodeAdorn;
549
- node.properties["conditionalNodeAdornmentName"] = (conditionalNodeAdornment === null || conditionalNodeAdornment === void 0 ? void 0 : conditionalNodeAdornment.name) || "";
550
- node.properties["conditionalNodeAdornmentColor"] = conditionalNodeAdornment === null || conditionalNodeAdornment === void 0 || (_conditionalNodeAdorn = conditionalNodeAdornment.iconColor) === null || _conditionalNodeAdorn === void 0 ? void 0 : _conditionalNodeAdorn.hex;
551
- node.properties["conditionalNodeAdornmentType"] = (conditionalNodeAdornment === null || conditionalNodeAdornment === void 0 ? void 0 : conditionalNodeAdornment.type) || "";
552
- } else {
553
- node.properties["conditionalNodeAdornmentName"] = "";
554
- node.properties["conditionalNodeAdornmentColor"] = "";
555
- node.properties["conditionalNodeAdornmentType"] = "";
556
- }
557
- }
558
- if (node.properties.catalogReturnObject) {
559
- var _node$properties9;
560
- let searchIdentifiers = require_SearchUtilities.getSearchIdentifiers(catalogObjects, node.properties.catalogReturnObject);
561
- node.properties["searchIdentifier"] = searchIdentifiers === null || searchIdentifiers === void 0 ? void 0 : searchIdentifiers.join(",");
562
- const associatedTreePrimaryKeyMap = node.properties.associatedTreePrimaryKeyMap;
563
- if (!!associatedTreePrimaryKeyMap) {
564
- searchIdentifiers = Object.keys(associatedTreePrimaryKeyMap);
565
- node.properties["searchIdentifier"] = searchIdentifiers;
566
- }
567
- node.properties["filterElements"] = [];
568
- const searchValues = [];
569
- const joiningEntityCatalogObjectKey = node === null || node === void 0 || (_node$properties9 = node.properties) === null || _node$properties9 === void 0 ? void 0 : _node$properties9.joiningEntityCatalogObjectKey;
570
- searchIdentifiers.forEach((searchIdentifier) => {
571
- var _searchValue;
572
- const searchField = searchIdentifier ? searchIdentifier.charAt(0).toUpperCase() + searchIdentifier.slice(1) : "";
573
- let searchValue = "";
574
- let si = (associatedTreePrimaryKeyMap === null || associatedTreePrimaryKeyMap === void 0 ? void 0 : associatedTreePrimaryKeyMap[searchIdentifier]) ? associatedTreePrimaryKeyMap === null || associatedTreePrimaryKeyMap === void 0 ? void 0 : associatedTreePrimaryKeyMap[searchIdentifier] : searchIdentifier;
575
- if (obj[si]) searchValue = obj[si];
576
- else if (joiningEntityCatalogObjectKey) searchValue = obj[joiningEntityCatalogObjectKey] ? obj[joiningEntityCatalogObjectKey][si] : "";
577
- node.properties["filterElements"].push({
578
- searchField,
579
- searchOperator: "=",
580
- searchValue: (_searchValue = searchValue) !== null && _searchValue !== void 0 ? _searchValue : ""
581
- });
582
- searchValues.push(searchValue);
583
- });
584
- node.properties["searchValue"] = searchValues.toString();
585
- }
586
- node.properties["nodeLabel"] = getDisplayName(node, obj);
587
- node.properties["nodeSubLabel"] = getDisplayDetails(node, obj);
588
- node.properties["headerTitle"] = getHeaderTitle(node, obj);
589
- node.parentId = parentId;
590
- node["entityNodeParentId"] = parentId;
591
- node.id = (0, uuid.v4)();
592
- node.nodeObj = obj;
593
- if (node === null || node === void 0 || (_node$properties10 = node.properties) === null || _node$properties10 === void 0 ? void 0 : _node$properties10.lazyLoad) node.lazyLoadChildrenArr = getLazyLoadChildrenArr(node, catalogObjects, promotedEntities);
594
- };
595
- const getEntityAssoc = (nodeEntity, node) => {
596
- let entityAssoc = null;
597
- if (nodeEntity) {
598
- var _referenceProperty$ex;
599
- const referenceProperty = nodeEntity.properties.find((property) => {
600
- var _node$properties11;
601
- if ((_node$properties11 = node.properties) === null || _node$properties11 === void 0 ? void 0 : _node$properties11.joiningEntityName) {
602
- var _node$properties12;
603
- return property.reference === ((_node$properties12 = node.properties) === null || _node$properties12 === void 0 ? void 0 : _node$properties12.joiningEntityName);
604
- } else {
605
- var _node$properties13;
606
- return property.reference === ((_node$properties13 = node.properties) === null || _node$properties13 === void 0 ? void 0 : _node$properties13.catalogReturnObject);
607
- }
608
- });
609
- entityAssoc = referenceProperty ? (_referenceProperty$ex = referenceProperty.extendedProperties) === null || _referenceProperty$ex === void 0 ? void 0 : _referenceProperty$ex.childEntityAssoc : null;
610
- }
611
- return entityAssoc;
612
- };
613
- const getLazyLoadChildrenArr = (node, catalogObjects, promotedEntities) => {
614
- var _node$properties14;
615
- const lazyLoadChildrenArr = [];
616
- let defaultSearchIdentifiers = [];
617
- if (node === null || node === void 0 || (_node$properties14 = node.properties) === null || _node$properties14 === void 0 ? void 0 : _node$properties14.catalogReturnObject) defaultSearchIdentifiers = require_SearchUtilities.getSearchIdentifiers(catalogObjects, node.properties.catalogReturnObject);
618
- node && node.children && node.children.forEach((childNode) => {
619
- var _childNode$properties3, _childNode$properties4, _childNode$properties5;
620
- const lazyNodeSearchObj = {
621
- apiMethodId: null,
622
- data: null,
623
- parentNodeRefKey: (_childNode$properties3 = childNode.properties) === null || _childNode$properties3 === void 0 ? void 0 : _childNode$properties3.catalogObjectKey,
624
- catalogReturnObject: (_childNode$properties4 = childNode.properties) === null || _childNode$properties4 === void 0 ? void 0 : _childNode$properties4.catalogReturnObject
625
- };
626
- const entityName = (_childNode$properties5 = childNode.properties) === null || _childNode$properties5 === void 0 ? void 0 : _childNode$properties5.catalogReturnObject;
627
- const promotedEntity = promotedEntities === null || promotedEntities === void 0 ? void 0 : promotedEntities.find((pe) => pe.entityName === entityName);
628
- let searchIdentifiers = [];
629
- const filterElements = [];
630
- if (promotedEntity) {
631
- let baseSearch = promotedEntity.unityBaseSearchMethod;
632
- let childBaseSearch = promotedEntity.unityBaseSearchMethod;
633
- const nodeEntity = catalogObjects === null || catalogObjects === void 0 ? void 0 : catalogObjects.find((co) => {
634
- var _node$properties15;
635
- return co.catalogObjectName === ((_node$properties15 = node.properties) === null || _node$properties15 === void 0 ? void 0 : _node$properties15.catalogReturnObject);
636
- });
637
- let isManyToManySearch = false;
638
- let usingJoiningTableForSearch = false;
639
- if (nodeEntity) {
640
- const childEntityAssoc = getEntityAssoc(nodeEntity, childNode);
641
- let joiningEntityName = null;
642
- let promotedEntityForJoiningTable = null;
643
- if (childEntityAssoc.Cardinality === require_EnvironmentRibbon.CardinalityTypeEnums.Many_To_Many) {
644
- var _childNode$properties6;
645
- isManyToManySearch = true;
646
- lazyNodeSearchObj["manyToManyKeys"] = [];
647
- joiningEntityName = (_childNode$properties6 = childNode.properties) === null || _childNode$properties6 === void 0 ? void 0 : _childNode$properties6.joiningEntityName;
648
- promotedEntityForJoiningTable = promotedEntities === null || promotedEntities === void 0 ? void 0 : promotedEntities.find((pe) => pe.entityName === joiningEntityName);
649
- if (promotedEntityForJoiningTable === null || promotedEntityForJoiningTable === void 0 ? void 0 : promotedEntityForJoiningTable.unityBaseSearchMethod) {
650
- baseSearch = promotedEntityForJoiningTable.unityBaseSearchMethod;
651
- lazyNodeSearchObj.manyToManyJointEntityApiMethodId = childBaseSearch === null || childBaseSearch === void 0 ? void 0 : childBaseSearch.apiMethodId;
652
- usingJoiningTableForSearch = true;
653
- }
654
- const childNodeEntity = catalogObjects.find((co) => {
655
- var _childNode$properties7;
656
- return co.catalogObjectName === ((_childNode$properties7 = childNode.properties) === null || _childNode$properties7 === void 0 ? void 0 : _childNode$properties7.catalogReturnObject);
657
- });
658
- const entityAssoc = getEntityAssoc(childNodeEntity, childNode);
659
- if (entityAssoc && Object.keys(entityAssoc).length) entityAssoc.Keys.forEach((keyVal) => {
660
- const keyValArr = keyVal.split(",");
661
- const foreignKeyName = keyValArr[0] ? keyValArr[0].trim() : "";
662
- const parentIdentifierName = keyValArr[1] ? keyValArr[1].trim() : "";
663
- const searchValueKey = /^[A-Z]*$/.test(parentIdentifierName) ? parentIdentifierName.toLowerCase() : require_EnvironmentRibbon.toLowerFirstChar(parentIdentifierName);
664
- lazyNodeSearchObj["manyToManyKeys"].push({
665
- searchItemIdentifier: usingJoiningTableForSearch ? /^[A-Z]*$/.test(foreignKeyName) ? foreignKeyName.toLowerCase() : require_EnvironmentRibbon.toLowerFirstChar(foreignKeyName) : searchValueKey,
666
- searchNameKey: foreignKeyName,
667
- searchValueKey
668
- });
669
- });
670
- }
671
- if (childEntityAssoc && Object.keys(childEntityAssoc).length) childEntityAssoc.Keys.forEach((keyVal) => {
672
- const keyValArr = keyVal.split(",");
673
- let searchJoiningEntity = "";
674
- if (!isManyToManySearch && node.nodeObj.hasOwnProperty(node.properties.joiningEntityCatalogObjectKey)) searchJoiningEntity = node.properties.joiningEntityCatalogObjectKey;
675
- const foreignKeyName = keyValArr[0] ? keyValArr[0].trim() : "";
676
- const parentIdentifierName = keyValArr[1] ? keyValArr[1].trim() : "";
677
- let siObj = {
678
- searchNameKey: parentIdentifierName,
679
- searchValueKey: /^[A-Z]*$/.test(foreignKeyName) ? foreignKeyName.toLowerCase() : require_EnvironmentRibbon.toLowerFirstChar(foreignKeyName),
680
- searchJoiningEntity
681
- };
682
- if (isManyToManySearch && !usingJoiningTableForSearch) siObj = {
683
- searchNameKey: foreignKeyName,
684
- searchValueKey: /^[A-Z]*$/.test(foreignKeyName) ? foreignKeyName.toLowerCase() : require_EnvironmentRibbon.toLowerFirstChar(foreignKeyName)
685
- };
686
- if (isManyToManySearch) {
687
- var _childNode$properties8, _childNode$properties9;
688
- if (((_childNode$properties8 = childNode.properties) === null || _childNode$properties8 === void 0 ? void 0 : _childNode$properties8.catalogObjectKey) && ((_childNode$properties9 = childNode.properties) === null || _childNode$properties9 === void 0 ? void 0 : _childNode$properties9.joiningEntityCatalogObjectLeftKey)) {
689
- var _childNode$properties10, _childNode$properties11, _childNode$properties12;
690
- siObj["joiningEntityKeyName"] = require_EnvironmentRibbon.toUpperFirstChar(!usingJoiningTableForSearch ? (_childNode$properties10 = childNode.properties) === null || _childNode$properties10 === void 0 ? void 0 : _childNode$properties10.joiningEntityChildKey : (_childNode$properties11 = childNode.properties) === null || _childNode$properties11 === void 0 ? void 0 : _childNode$properties11.catalogObjectKey);
691
- siObj["joiningEntityCatalogObjectLeftKeyName"] = require_EnvironmentRibbon.toUpperFirstChar((_childNode$properties12 = childNode.properties) === null || _childNode$properties12 === void 0 ? void 0 : _childNode$properties12.joiningEntityCatalogObjectLeftKey);
692
- }
693
- if (promotedEntityForJoiningTable === null || promotedEntityForJoiningTable === void 0 ? void 0 : promotedEntityForJoiningTable.unityBaseSearchMethod) {
694
- siObj["joiningEntityKeyName"] = null;
695
- siObj["joiningEntityCatalogObjectLeftKeyName"] = null;
696
- }
697
- }
698
- searchIdentifiers.push(siObj);
699
- });
700
- }
701
- if (!searchIdentifiers.length) defaultSearchIdentifiers.forEach((searchIdentifier) => {
702
- var _childNode$properties13, _childNode$properties14;
703
- const siObj = {
704
- searchNameKey: searchIdentifier,
705
- searchValueKey: searchIdentifier
706
- };
707
- if (((_childNode$properties13 = childNode.properties) === null || _childNode$properties13 === void 0 ? void 0 : _childNode$properties13.catalogObjectKey) && ((_childNode$properties14 = childNode.properties) === null || _childNode$properties14 === void 0 ? void 0 : _childNode$properties14.joiningEntityCatalogObjectLeftKey)) {
708
- var _childNode$properties15, _childNode$properties16;
709
- siObj["joiningEntityKeyName"] = require_EnvironmentRibbon.toUpperFirstChar((_childNode$properties15 = childNode.properties) === null || _childNode$properties15 === void 0 ? void 0 : _childNode$properties15.catalogObjectKey);
710
- siObj["joiningEntityCatalogObjectLeftKeyName"] = require_EnvironmentRibbon.toUpperFirstChar((_childNode$properties16 = childNode.properties) === null || _childNode$properties16 === void 0 ? void 0 : _childNode$properties16.joiningEntityCatalogObjectLeftKey);
711
- }
712
- searchIdentifiers.push(siObj);
713
- });
714
- searchIdentifiers.forEach((si) => {
715
- let searchValue = "";
716
- if (si === null || si === void 0 ? void 0 : si.searchJoiningEntity) searchValue = node.nodeObj[si.searchJoiningEntity][si.searchValueKey];
717
- else if (usingJoiningTableForSearch) {
718
- var _node$properties16, _node$nodeObj;
719
- const joiningEntityCatalogObjectKey = node === null || node === void 0 || (_node$properties16 = node.properties) === null || _node$properties16 === void 0 ? void 0 : _node$properties16.joiningEntityCatalogObjectKey;
720
- const value = node === null || node === void 0 || (_node$nodeObj = node.nodeObj) === null || _node$nodeObj === void 0 ? void 0 : _node$nodeObj[joiningEntityCatalogObjectKey];
721
- searchValue = value ? value[si.searchValueKey] : node.nodeObj[si.searchValueKey];
722
- } else searchValue = node.nodeObj[si.searchValueKey];
723
- let formattedPropertyName = require_EnvironmentRibbon.toUpperFirstChar(si.searchNameKey);
724
- if (si["joiningEntityKeyName"] && si["joiningEntityCatalogObjectLeftKeyName"]) formattedPropertyName = `${si["joiningEntityKeyName"]}.${si["joiningEntityCatalogObjectLeftKeyName"]}.${formattedPropertyName}`;
725
- filterElements.push({
726
- searchField: formattedPropertyName,
727
- searchValue,
728
- searchOperator: "="
729
- });
730
- });
731
- lazyNodeSearchObj.data = require_SearchUtilities.getSearchObject(filterElements, 1, 50);
732
- lazyNodeSearchObj.apiMethodId = (baseSearch === null || baseSearch === void 0 ? void 0 : baseSearch.apiMethodId) || null;
733
- lazyLoadChildrenArr.push(lazyNodeSearchObj);
734
- } else {
735
- console.log("Error: Promote " + entityName + " entity");
736
- node.errorRetrievingChildren = "Error: Promote " + entityName + " child entity";
737
- }
738
- });
739
- return lazyLoadChildrenArr;
740
- };
741
- const formatTreeMenuItem = (responseObject, treeStructure, catalogObjects, promotedEntities, associatedInquiryTree, wasLazyLoaded) => {
742
- if (!responseObject) return null;
743
- const tree = (0, lodash.cloneDeep)(treeStructure);
744
- const orderedKeys = [];
745
- const orderedTreeData = [];
746
- const treeArr = [];
747
- processCatalogObjectKeysInOrder(tree, orderedKeys);
748
- processOrderedTreeData(tree, orderedTreeData);
749
- processObjectToTree(responseObject, orderedTreeData, orderedKeys, treeArr, catalogObjects, promotedEntities, wasLazyLoaded);
750
- const displayTree = makeTreeStructure(treeArr, "id", "parentId");
751
- displayTree["associatedInquiryTree"] = associatedInquiryTree;
752
- displayTree["wasLazyLoaded"] = wasLazyLoaded;
753
- return displayTree;
754
- };
755
- const expandAllNodes = (tree) => {
756
- tree.isExpanded = true;
757
- if (tree === null || tree === void 0 ? void 0 : tree.children) tree.children.forEach((node) => expandAllNodes(node));
758
- };
759
- const collapseAllNodes = (tree) => {
760
- tree.isExpanded = false;
761
- if (tree === null || tree === void 0 ? void 0 : tree.children) tree.children.forEach((node) => collapseAllNodes(node));
762
- };
763
- const findAllParentIds = (menuItems, currentParentNode, allParentIds = []) => {
764
- if (currentParentNode === null || currentParentNode === void 0 ? void 0 : currentParentNode.parentId) {
765
- allParentIds.push(currentParentNode === null || currentParentNode === void 0 ? void 0 : currentParentNode.parentId);
766
- const newParentNode = searchTree(menuItems, currentParentNode === null || currentParentNode === void 0 ? void 0 : currentParentNode.parentId);
767
- findAllParentIds(menuItems, newParentNode, allParentIds);
768
- }
769
- return allParentIds;
770
- };
771
- const formatTreeLabel = (label, obj) => {
772
- const fields = label === null || label === void 0 ? void 0 : label.split("+");
773
- const keys = fields === null || fields === void 0 ? void 0 : fields.map((field) => field.trim());
774
- if (keys) {
775
- const skippableKeys = [];
776
- const updatedKeys = keys.map((key, index) => {
777
- const matchedKey = key.charAt(0) === "\"";
778
- if (matchedKey) {
779
- skippableKeys.push(index);
780
- key = key.replace(/"/g, "");
781
- }
782
- return key;
783
- });
784
- const values = [];
785
- for (let j = 0; j < keys.length; j++) {
786
- let property = keys[j];
787
- if (property) {
788
- const splitProperties = property.split(".");
789
- if (splitProperties.length > 1) {
790
- let constructedValue = null;
791
- splitProperties.forEach((property$1) => {
792
- const matches = property$1.match(/\[(.*?)\]/);
793
- let objIndex = null;
794
- let arrIndex = null;
795
- if (matches) {
796
- arrIndex = parseInt(matches[1]);
797
- objIndex = matches.index;
798
- }
799
- if (typeof arrIndex === "number" && objIndex) {
800
- const formattedProperty = property$1.substring(0, objIndex);
801
- if (!constructedValue) {
802
- if (obj[formattedProperty]) constructedValue = obj[formattedProperty][arrIndex];
803
- } else if (constructedValue[formattedProperty]) constructedValue = constructedValue[formattedProperty][arrIndex];
804
- } else if (!constructedValue) constructedValue = obj[property$1];
805
- else constructedValue = constructedValue[property$1];
806
- });
807
- if (typeof constructedValue === "boolean" || typeof constructedValue === "number") constructedValue = constructedValue.toString();
808
- values.push(constructedValue);
809
- continue;
810
- }
811
- }
812
- let value = obj[property];
813
- if (typeof value === "boolean" || typeof value === "number") value = value.toString();
814
- values.push(value);
815
- }
816
- let displayName = updatedKeys.join("+");
817
- for (let k = 0; k < updatedKeys.length; k++) if (!skippableKeys.includes(k)) if (values[k]) displayName = displayName.replace(`${updatedKeys[k]}`, values[k]);
818
- else displayName = displayName.replace(`${updatedKeys[k]}`, "");
819
- return displayName.replaceAll("+", " ");
820
- } else return label;
821
- };
822
- const getDisplayName = (node, obj) => {
823
- return formatTreeLabel(node.properties["displayName"], obj);
824
- };
825
- const getDisplayDetails = (node, obj) => {
826
- return formatTreeLabel(node.properties["displayDetails"], obj);
827
- };
828
- const getHeaderTitle = (node, obj) => {
829
- return formatTreeLabel(node.properties["headerName"], obj);
830
- };
831
- const searchForMatchingNode = (tree, nodeObj = {}, searchIdentifiers = []) => {
832
- let result = null;
833
- let match = true;
834
- searchIdentifiers.forEach((searchIdentifier) => {
835
- if ((tree === null || tree === void 0 ? void 0 : tree.nodeObj[searchIdentifier]) !== nodeObj[searchIdentifier]) match = false;
836
- });
837
- if (match && searchIdentifiers.length) return tree;
838
- else {
839
- if (tree.children) tree.children.some((node) => result = searchForMatchingNode(node, nodeObj, searchIdentifiers));
840
- return result;
841
- }
842
- };
843
- const getNodeIdForRightBorder = (expandedNodeIds, node, parentId) => {
844
- if (!expandedNodeIds.includes(node === null || node === void 0 ? void 0 : node.id)) return node.id;
845
- if (!expandedNodeIds.includes(parentId)) {
846
- const foundParentNode = node.children.find((item) => item.id === parentId);
847
- if (foundParentNode) if (expandedNodeIds.includes(foundParentNode === null || foundParentNode === void 0 ? void 0 : foundParentNode.parentId)) return parentId;
848
- else return getNodeIdForRightBorder(expandedNodeIds, foundParentNode, foundParentNode === null || foundParentNode === void 0 ? void 0 : foundParentNode.parentId);
849
- } else return parentId;
850
- };
851
- const findNodeById = (tree, id) => {
852
- let result = null;
853
- if ((tree === null || tree === void 0 ? void 0 : tree.id) === id) return tree;
854
- else {
855
- if (tree.children) tree.children.some((node) => result = findNodeById(node, id));
856
- return result;
857
- }
858
- };
859
- const findNodeByIdAndLabel = (tree, id, label) => {
860
- var _tree$properties4;
861
- let result = null;
862
- if ((tree === null || tree === void 0 ? void 0 : tree.id) === id && (tree === null || tree === void 0 || (_tree$properties4 = tree.properties) === null || _tree$properties4 === void 0 ? void 0 : _tree$properties4.label) === label) return tree;
863
- else {
864
- if (tree.children) tree.children.some((node) => result = findNodeById(node, id, label));
865
- return result;
866
- }
867
- };
868
- const findNodesByIdAndLabel = (tree, id, label) => {
869
- var _tree$properties5;
870
- let results = [];
871
- if ((tree === null || tree === void 0 ? void 0 : tree.id) === id && (tree === null || tree === void 0 || (_tree$properties5 = tree.properties) === null || _tree$properties5 === void 0 ? void 0 : _tree$properties5.label) === label) results.push(tree);
872
- if (tree.children) tree.children.forEach((node) => {
873
- results = results.concat(findNodesByIdAndLabel(node, id, label));
874
- });
875
- return results;
876
- };
877
- const updateNodeForStaticGrouping = (displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item) => {
878
- const updatedDisplayTree = { ...displayTree };
879
- const nodeIsHidden = checkNodeIsHidden(updatedDisplayTree, item, false);
880
- if (!nodeIsHidden) {
881
- updatedDisplayTree.children = displayTree.children ? (0, lodash.cloneDeep)(displayTree.children) : displayTree.children;
882
- updatedDisplayTree["parentId"] = nodeGroup.id;
883
- updatedDisplayTree["parentGroupId"] = nodeGroup.id;
884
- if (updatedDisplayTree.isGroupNode) nodeGroup.children.push(updatedDisplayTree);
885
- else nodeChildren.push(updatedDisplayTree);
886
- if (treeList) treeList.push(updatedDisplayTree);
887
- scopedGroupItemIndexes.add(index);
888
- groupedItemIndexes.add(index);
889
- }
890
- };
891
- const processItemForStaticNodeGroup = (nodeGroup, item, groupedItemIndexes, displayTree, index, scopedGroupItemIndexes = /* @__PURE__ */ new Set(), treeList, nodeChildren = []) => {
892
- var _nodeGroup$properties, _nodeGroup$properties2;
893
- if ((nodeGroup === null || nodeGroup === void 0 || (_nodeGroup$properties = nodeGroup.properties) === null || _nodeGroup$properties === void 0 ? void 0 : _nodeGroup$properties.propertyMapping) && (nodeGroup === null || nodeGroup === void 0 || (_nodeGroup$properties2 = nodeGroup.properties) === null || _nodeGroup$properties2 === void 0 ? void 0 : _nodeGroup$properties2.jsonLogic)) {
894
- var _nodeGroup$properties3, _nodeGroup$properties4, _item$properties;
895
- const rule = mapRule(nodeGroup === null || nodeGroup === void 0 || (_nodeGroup$properties3 = nodeGroup.properties) === null || _nodeGroup$properties3 === void 0 ? void 0 : _nodeGroup$properties3.propertyMapping, nodeGroup === null || nodeGroup === void 0 || (_nodeGroup$properties4 = nodeGroup.properties) === null || _nodeGroup$properties4 === void 0 ? void 0 : _nodeGroup$properties4.jsonLogic);
896
- if (rule && evaluateRule(rule, item, (_item$properties = item.properties) === null || _item$properties === void 0 ? void 0 : _item$properties.joiningEntityCatalogObjectKey, false)) {
897
- let itemAdded = false;
898
- nodeGroup.children.forEach((childGroup) => {
899
- if (childGroup.isGroupNode) {
900
- const processedItem = processItemForStaticNodeGroup(childGroup, item, groupedItemIndexes, displayTree, index, childGroup.children.length ? /* @__PURE__ */ new Set() : scopedGroupItemIndexes, treeList, nodeChildren) || { itemAdded };
901
- itemAdded = processedItem === null || processedItem === void 0 ? void 0 : processedItem.itemAdded;
902
- }
903
- });
904
- if (!itemAdded) {
905
- updateNodeForStaticGrouping(displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item);
906
- itemAdded = true;
907
- }
908
- }
909
- } else if (nodeGroup.isOutlierGroup && !groupedItemIndexes.has(index)) updateNodeForStaticGrouping(displayTree, nodeGroup, nodeChildren, treeList, scopedGroupItemIndexes, groupedItemIndexes, index, item);
910
- if (treeList && nodeGroup.isGroupNode) {
911
- const existingGroup = treeList.filter((node) => node.isGroupNode).find((eg) => eg.id === nodeGroup.id);
912
- if (!existingGroup) {
913
- const nodeIsHidden = checkNodeIsHidden(nodeGroup, item, false);
914
- !nodeIsHidden && treeList.push(nodeGroup);
915
- }
916
- }
917
- return {
918
- itemAdded: groupedItemIndexes.has(index),
919
- nodeChildren
920
- };
921
- };
922
- const constructStaticNodeGroups = (tree, shouldUseNewId = false) => {
923
- var _tree$properties6, _groupConfiguration$g;
924
- const nodeGroups = [];
925
- const groupConfiguration = tree === null || tree === void 0 || (_tree$properties6 = tree.properties) === null || _tree$properties6 === void 0 ? void 0 : _tree$properties6.groupConfiguration;
926
- const groupType = (groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.groupType) || require_EnvironmentRibbon.NodeGroupTypeEnums.Static;
927
- const hideEmptyGroups = groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.hideEmptyGroups;
928
- if ((groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.enabled) && (groupConfiguration === null || groupConfiguration === void 0 || (_groupConfiguration$g = groupConfiguration.groupings[groupType]) === null || _groupConfiguration$g === void 0 ? void 0 : _groupConfiguration$g.length)) {
929
- groupConfiguration.groupings[groupType].forEach((grouping) => {
930
- const orderedGroups = orderByGroupOrder(grouping === null || grouping === void 0 ? void 0 : grouping.groups);
931
- const newIdMap = {};
932
- orderedGroups.forEach((group) => {
933
- if (shouldUseNewId) newIdMap[group.id] = (0, uuid.v4)();
934
- group["children"] = [];
935
- });
936
- if (Object.keys(newIdMap).length) orderedGroups.forEach((group) => {
937
- if (newIdMap[group.id]) group.id = newIdMap[group.id];
938
- if (newIdMap[group.parentGroupId]) group.parentGroupId = newIdMap[group.parentGroupId];
939
- });
940
- if (orderedGroups === null || orderedGroups === void 0 ? void 0 : orderedGroups.length) {
941
- const firstGroup = orderedGroups.find((group) => !group.parentGroupId) || orderedGroups[0];
942
- orderedGroups.shift();
943
- const displayTree = makeTreeStaticGroupStructure(orderedGroups, "id", "parentGroupId", groupType, hideEmptyGroups);
944
- const { id, isExpanded,...firstGroupProperties } = firstGroup;
945
- const groupNode = new GroupNode({
946
- id,
947
- hideEmptyGroups,
948
- groupType,
949
- children: Array.isArray(displayTree) ? displayTree : [displayTree],
950
- isExpanded,
951
- properties: { ...firstGroupProperties }
952
- });
953
- nodeGroups.push(groupNode);
954
- }
955
- });
956
- if ((groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.outlier) === "group") {
957
- const outlierGroup = new GroupNode({
958
- groupType,
959
- isOutlierGroup: true,
960
- properties: {
961
- label: (groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.outlierGroupLabel) || "Unlabeled Outlier Group",
962
- icon: groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.outlierIcon
963
- }
964
- });
965
- nodeGroups.push(outlierGroup);
966
- }
967
- }
968
- return nodeGroups;
969
- };
970
- const getOrderedDynamicGroups = (tree, shouldUseNewId = false) => {
971
- var _tree$properties7, _groupConfiguration$g2;
972
- const groupConfiguration = tree === null || tree === void 0 || (_tree$properties7 = tree.properties) === null || _tree$properties7 === void 0 ? void 0 : _tree$properties7.groupConfiguration;
973
- const groupType = (groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.groupType) || require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic;
974
- let orderedGroups = [];
975
- if ((groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.enabled) && (groupConfiguration === null || groupConfiguration === void 0 || (_groupConfiguration$g2 = groupConfiguration.groupings[groupType]) === null || _groupConfiguration$g2 === void 0 ? void 0 : _groupConfiguration$g2.length)) groupConfiguration.groupings[groupType].forEach((grouping) => {
976
- orderedGroups = orderByGroupOrder(grouping === null || grouping === void 0 ? void 0 : grouping.groups);
977
- const newIdMap = {};
978
- orderedGroups.forEach((group) => {
979
- if (shouldUseNewId) newIdMap[group.id] = (0, uuid.v4)();
980
- group["children"] = [];
981
- });
982
- if (Object.keys(newIdMap).length) orderedGroups.forEach((group) => {
983
- if (newIdMap[group.id]) group.id = newIdMap[group.id];
984
- if (newIdMap[group.parentGroupId]) group.parentGroupId = newIdMap[group.parentGroupId];
985
- });
986
- });
987
- return orderedGroups;
988
- };
989
- const constructDynamicNodeGroups = (results, tree, shouldUseNewId = false) => {
990
- var _tree$properties8, _groupConfiguration$g3;
991
- let nodeGroups = [];
992
- const groupConfiguration = tree === null || tree === void 0 || (_tree$properties8 = tree.properties) === null || _tree$properties8 === void 0 ? void 0 : _tree$properties8.groupConfiguration;
993
- const groupType = (groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.groupType) || require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic;
994
- if ((groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.enabled) && (groupConfiguration === null || groupConfiguration === void 0 || (_groupConfiguration$g3 = groupConfiguration.groupings[groupType]) === null || _groupConfiguration$g3 === void 0 ? void 0 : _groupConfiguration$g3.length)) groupConfiguration.groupings[groupType].forEach((grouping) => {
995
- const orderedGroups = orderByGroupOrder(grouping === null || grouping === void 0 ? void 0 : grouping.groups);
996
- const newIdMap = {};
997
- orderedGroups.forEach((group) => {
998
- if (shouldUseNewId) newIdMap[group.id] = (0, uuid.v4)();
999
- group["children"] = [];
1000
- });
1001
- if (Object.keys(newIdMap).length) orderedGroups.forEach((group) => {
1002
- if (newIdMap[group.id]) group.id = newIdMap[group.id];
1003
- if (newIdMap[group.parentGroupId]) group.parentGroupId = newIdMap[group.parentGroupId];
1004
- });
1005
- if (orderedGroups === null || orderedGroups === void 0 ? void 0 : orderedGroups.length) {
1006
- const isSingleGroup = orderedGroups.length === 1;
1007
- const dynamicTreeStructure = makeDynamicTreeStructure(orderedGroups, "id", "parentGroupId");
1008
- const groupSet = makeDynamicGroupStructures(dynamicTreeStructure, results);
1009
- results.forEach((item, index) => {
1010
- const orderedKeys = [];
1011
- const orderedTreeData = [];
1012
- const treeArr = [];
1013
- const innerGroupList = [];
1014
- processCatalogObjectKeysInOrder(tree, orderedKeys);
1015
- processOrderedTreeData(tree, orderedTreeData);
1016
- processObjectToTree(item, orderedTreeData, orderedKeys, treeArr, null, null, false, innerGroupList);
1017
- const displayTree = makeTreeStructure(treeArr, "id", "parentId");
1018
- const updatedDisplayTree = (0, lodash.cloneDeep)(displayTree);
1019
- const nodeIsHidden = checkNodeIsHidden(updatedDisplayTree, item, false);
1020
- !nodeIsHidden && processItemForDynamicNodeGroups(updatedDisplayTree, dynamicTreeStructure, groupSet, groupSet, isSingleGroup);
1021
- });
1022
- groupSet.forEach((group) => updateTreeIds(group, null, (0, uuid.v4)(), (0, uuid.v4)()));
1023
- nodeGroups = nodeGroups.concat(groupSet);
1024
- }
1025
- });
1026
- return nodeGroups;
1027
- };
1028
- const getLabelFromProperty = (item, property) => {
1029
- const splitProperties = property.split(".");
1030
- if (splitProperties.length) {
1031
- let constructedValue = null;
1032
- splitProperties.forEach((property$1) => {
1033
- const matches = property$1.match(/\[(.*?)\]/);
1034
- let objIndex = null;
1035
- let arrIndex = null;
1036
- if (matches) {
1037
- arrIndex = parseInt(matches[1]);
1038
- objIndex = matches.index;
1039
- }
1040
- if (typeof arrIndex === "number" && objIndex) {
1041
- const formattedProperty = property$1.substring(0, objIndex);
1042
- if (!constructedValue) {
1043
- if (item[formattedProperty]) constructedValue = item[formattedProperty][arrIndex];
1044
- } else if (constructedValue[formattedProperty]) constructedValue = constructedValue[formattedProperty][arrIndex];
1045
- } else if (!constructedValue) constructedValue = item ? item[property$1] : "";
1046
- else constructedValue = constructedValue[property$1];
1047
- });
1048
- return constructedValue;
1049
- }
1050
- return null;
1051
- };
1052
- const constructBusinessObjectArrFromTree = (node, businessObjects = []) => {
1053
- var _node$children3;
1054
- if (node === null || node === void 0 ? void 0 : node.nodeObj) {
1055
- var _node$properties17, _node$properties18;
1056
- const businessObject = {
1057
- label: "",
1058
- value: "",
1059
- domainObject: ""
1060
- };
1061
- const joiningEntityCatalogObjectKey = (_node$properties17 = node.properties) === null || _node$properties17 === void 0 ? void 0 : _node$properties17.joiningEntityCatalogObjectKey;
1062
- const displayName = (_node$properties18 = node.properties) === null || _node$properties18 === void 0 ? void 0 : _node$properties18.displayName;
1063
- if (joiningEntityCatalogObjectKey) {
1064
- var _node$properties19;
1065
- const jointEntity = node.nodeObj[joiningEntityCatalogObjectKey];
1066
- businessObject.label = formatTreeLabel(displayName, node.nodeObj) || (jointEntity === null || jointEntity === void 0 ? void 0 : jointEntity.businessObjectKey);
1067
- businessObject.value = jointEntity === null || jointEntity === void 0 ? void 0 : jointEntity.businessObjectKey;
1068
- businessObject.domainObject = (_node$properties19 = node.properties) === null || _node$properties19 === void 0 ? void 0 : _node$properties19.catalogReturnObject;
1069
- } else {
1070
- var _node$properties20;
1071
- const entity = node.nodeObj;
1072
- businessObject.label = formatTreeLabel(displayName, node.nodeObj) || (entity === null || entity === void 0 ? void 0 : entity.businessObjectKey);
1073
- businessObject.value = entity === null || entity === void 0 ? void 0 : entity.businessObjectKey;
1074
- businessObject.domainObject = (_node$properties20 = node.properties) === null || _node$properties20 === void 0 ? void 0 : _node$properties20.catalogReturnObject;
1075
- }
1076
- businessObjects.push(businessObject);
1077
- }
1078
- if (node === null || node === void 0 || (_node$children3 = node.children) === null || _node$children3 === void 0 ? void 0 : _node$children3.length) node.children.forEach((childNode) => constructBusinessObjectArrFromTree(childNode, businessObjects));
1079
- return businessObjects;
1080
- };
1081
- const processItemForDynamicNodeGroups = (displayTree, node, groupNodes, previousFilteredGroups = [], isSingleGroup = false) => {
1082
- const { property, id } = node;
1083
- const item = displayTree === null || displayTree === void 0 ? void 0 : displayTree.nodeObj;
1084
- const label = property ? getLabelFromProperty(item, property) : null;
1085
- let filteredGroups = [];
1086
- previousFilteredGroups.forEach((group) => {
1087
- if (group) {
1088
- const foundGroups = findNodesByIdAndLabel(group, id, label);
1089
- if (foundGroups.length) filteredGroups = filteredGroups.concat(foundGroups);
1090
- }
1091
- });
1092
- if (filteredGroups.length) {
1093
- var _node$children4;
1094
- if (node === null || node === void 0 || (_node$children4 = node.children) === null || _node$children4 === void 0 ? void 0 : _node$children4.length) node.children.forEach((child) => processItemForDynamicNodeGroups(displayTree, child, groupNodes, filteredGroups, isSingleGroup));
1095
- else filteredGroups.forEach((filteredGroup) => {
1096
- const matchingGroupNode = findNodeByIdAndLabel(filteredGroup, node.id, label);
1097
- if (matchingGroupNode) {
1098
- displayTree["parentGroupId"] = matchingGroupNode.id;
1099
- matchingGroupNode.children.push(displayTree);
1100
- }
1101
- });
1102
- } else if (isSingleGroup) groupNodes.push(displayTree);
1103
- else previousFilteredGroups.forEach((filteredGroup) => {
1104
- if (filteredGroup) {
1105
- displayTree["parentGroupId"] = filteredGroup.id;
1106
- filteredGroup.children.push(displayTree);
1107
- }
1108
- });
1109
- };
1110
- const orderByGroupOrder = (groups = []) => {
1111
- return (0, lodash.orderBy)(groups, ["order"], ["asc"]);
1112
- };
1113
- const updateTreeIds = (node, lastEntityNodeId, newId = (0, uuid.v4)(), newParentId = (0, uuid.v4)()) => {
1114
- var _node$children5;
1115
- let entityNodeParentId = lastEntityNodeId;
1116
- if (node) {
1117
- node.id = newId;
1118
- if (node.parentId || node.parentGroupId) {
1119
- node.parentId = newParentId;
1120
- node.parentGroupId = newParentId;
1121
- }
1122
- if (!node.isGroupNode && entityNodeParentId) node["entityNodeParentId"] = entityNodeParentId;
1123
- if (!node.isGroupNode) entityNodeParentId = node.id;
1124
- }
1125
- if (node === null || node === void 0 || (_node$children5 = node.children) === null || _node$children5 === void 0 ? void 0 : _node$children5.length) node.children.forEach((child) => updateTreeIds(child, entityNodeParentId, (0, uuid.v4)(), newId));
1126
- };
1127
- const processGroupNodesAndAddToTreeList = (node, treeList, lastEntityNodeId, item, wasLazyLoaded) => {
1128
- var _node$children6;
1129
- let entityNodeParentId = lastEntityNodeId;
1130
- if (treeList) {
1131
- if (!treeList.find((tree) => tree.id === node.id)) {
1132
- if (!node.isGroupNode && entityNodeParentId) node["entityNodeParentId"] = entityNodeParentId;
1133
- if (!node.isGroupNode) entityNodeParentId = node.id;
1134
- const nodeIsHidden = checkNodeIsHidden(node, item, wasLazyLoaded);
1135
- !nodeIsHidden && treeList.push(node);
1136
- }
1137
- }
1138
- if (node === null || node === void 0 || (_node$children6 = node.children) === null || _node$children6 === void 0 ? void 0 : _node$children6.length) node.children.forEach((child) => processGroupNodesAndAddToTreeList(child, treeList, entityNodeParentId, item, wasLazyLoaded));
1139
- };
1140
- const mapNodeGroupChildren = (nodeGroup, nodeGroupChildren = []) => {
1141
- var _nodeGroup$children;
1142
- nodeGroupChildren.forEach((node) => {
1143
- if (nodeGroup.id === node.parentGroupId) nodeGroup.children.push(node);
1144
- });
1145
- if (nodeGroup === null || nodeGroup === void 0 || (_nodeGroup$children = nodeGroup.children) === null || _nodeGroup$children === void 0 ? void 0 : _nodeGroup$children.length) nodeGroup.children.forEach((childGroup) => {
1146
- if (childGroup.isGroupNode) mapNodeGroupChildren(childGroup, nodeGroupChildren);
1147
- });
1148
- return nodeGroup;
1149
- };
1150
- const checkNodeIsHidden = (node, item, wasLazyLoaded = false) => {
1151
- if (!node || node && !Object.keys(node).length) return true;
1152
- let rule = null;
1153
- if (node.isGroupNode) {
1154
- var _node$properties21;
1155
- if ((_node$properties21 = node.properties) === null || _node$properties21 === void 0 || (_node$properties21 = _node$properties21.hiddenNode) === null || _node$properties21 === void 0 ? void 0 : _node$properties21.enabled) {}
1156
- } else {
1157
- var _node$properties22;
1158
- if ((_node$properties22 = node.properties) === null || _node$properties22 === void 0 || (_node$properties22 = _node$properties22.hiddenNode) === null || _node$properties22 === void 0 ? void 0 : _node$properties22.enabled) {
1159
- var _node$properties23;
1160
- rule = mapRule(node.properties.hiddenNode.propertyMapping, node.properties.hiddenNode.jsonLogic);
1161
- if (rule && evaluateRule(rule, item, (_node$properties23 = node.properties) === null || _node$properties23 === void 0 ? void 0 : _node$properties23.joiningEntityCatalogObjectKey, wasLazyLoaded)) return true;
1162
- }
1163
- }
1164
- return false;
1165
- };
1166
- const constructPreloadedTree = (treeStructure, pageList) => {
1167
- var _tree$properties9, _tree$properties10, _tree$properties11, _tree$properties13, _tree$properties14, _tree$properties15;
1168
- if (!pageList) return null;
1169
- let preloadedList = [];
1170
- const tree = (0, lodash.cloneDeep)(treeStructure);
1171
- if (((_tree$properties9 = tree.properties) === null || _tree$properties9 === void 0 || (_tree$properties9 = _tree$properties9.groupConfiguration) === null || _tree$properties9 === void 0 ? void 0 : _tree$properties9.enabled) && ((_tree$properties10 = tree.properties) === null || _tree$properties10 === void 0 ? void 0 : _tree$properties10.groupConfiguration.groupType) === require_EnvironmentRibbon.NodeGroupTypeEnums.Static && ((_tree$properties11 = tree.properties) === null || _tree$properties11 === void 0 || (_tree$properties11 = _tree$properties11.groupConfiguration) === null || _tree$properties11 === void 0 || (_tree$properties11 = _tree$properties11.groupings) === null || _tree$properties11 === void 0 || (_tree$properties11 = _tree$properties11.static) === null || _tree$properties11 === void 0 ? void 0 : _tree$properties11.length)) {
1172
- var _tree$properties12;
1173
- const topNodeGroups = constructStaticNodeGroups(tree);
1174
- const groupedItemIndexes = /* @__PURE__ */ new Set();
1175
- topNodeGroups.forEach((nodeGroup) => {
1176
- let nodeGroupChildren = [];
1177
- pageList.forEach((item, index) => {
1178
- const orderedKeys = [];
1179
- const orderedTreeData = [];
1180
- const treeArr = [];
1181
- const innerGroupList = [];
1182
- processCatalogObjectKeysInOrder(tree, orderedKeys);
1183
- processOrderedTreeData(tree, orderedTreeData);
1184
- processObjectToTree(item, orderedTreeData, orderedKeys, treeArr, null, null, false, innerGroupList);
1185
- const displayTree = makeTreeStructure(treeArr, "id", "parentId");
1186
- const processedItem = processItemForStaticNodeGroup(nodeGroup, item, groupedItemIndexes, displayTree, index, /* @__PURE__ */ new Set());
1187
- nodeGroupChildren = nodeGroupChildren.concat((processedItem === null || processedItem === void 0 ? void 0 : processedItem.nodeChildren) || []);
1188
- });
1189
- const updatedNodeGroup = mapNodeGroupChildren(nodeGroup, nodeGroupChildren);
1190
- updatedNodeGroup.children.forEach((child) => {
1191
- updateTreeIds(child, null, (0, uuid.v4)(), (0, uuid.v4)());
1192
- });
1193
- preloadedList.push(updatedNodeGroup);
1194
- });
1195
- if (((_tree$properties12 = tree.properties) === null || _tree$properties12 === void 0 || (_tree$properties12 = _tree$properties12.groupConfiguration) === null || _tree$properties12 === void 0 ? void 0 : _tree$properties12.outlier) === require_EnvironmentRibbon.NodeGroupOutlierEnums.Individual) pageList.forEach((item, index) => {
1196
- if (!groupedItemIndexes.has(index)) {
1197
- const orderedKeys = [];
1198
- const orderedTreeData = [];
1199
- const treeArr = [];
1200
- processCatalogObjectKeysInOrder(tree, orderedKeys);
1201
- processOrderedTreeData(tree, orderedTreeData);
1202
- processObjectToTree(item, orderedTreeData, orderedKeys, treeArr, null, null, false);
1203
- const displayTree = makeTreeStructure(treeArr, "id", "parentId");
1204
- const nodeIsHidden = checkNodeIsHidden(displayTree, item, false);
1205
- if (!nodeIsHidden) {
1206
- updateTreeIds(displayTree, null, (0, uuid.v4)(), (0, uuid.v4)());
1207
- preloadedList.push(displayTree);
1208
- }
1209
- }
1210
- });
1211
- } else if (((_tree$properties13 = tree.properties) === null || _tree$properties13 === void 0 || (_tree$properties13 = _tree$properties13.groupConfiguration) === null || _tree$properties13 === void 0 ? void 0 : _tree$properties13.enabled) && ((_tree$properties14 = tree.properties) === null || _tree$properties14 === void 0 ? void 0 : _tree$properties14.groupConfiguration.groupType) === require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic && ((_tree$properties15 = tree.properties) === null || _tree$properties15 === void 0 || (_tree$properties15 = _tree$properties15.groupConfiguration) === null || _tree$properties15 === void 0 || (_tree$properties15 = _tree$properties15.groupings) === null || _tree$properties15 === void 0 || (_tree$properties15 = _tree$properties15.dynamic) === null || _tree$properties15 === void 0 ? void 0 : _tree$properties15.length)) {
1212
- const nodeGroups = constructDynamicNodeGroups2(pageList, tree);
1213
- preloadedList = preloadedList.concat(nodeGroups);
1214
- } else pageList.forEach((item) => {
1215
- const orderedKeys = [];
1216
- const orderedTreeData = [];
1217
- const treeArr = [];
1218
- processCatalogObjectKeysInOrder(tree, orderedKeys);
1219
- processOrderedTreeData(tree, orderedTreeData);
1220
- processObjectToTree(item, orderedTreeData, orderedKeys, treeArr);
1221
- const displayTree = makeTreeStructure(treeArr, "id", "parentId");
1222
- const nodeIsHidden = checkNodeIsHidden(displayTree, item, false);
1223
- !nodeIsHidden && preloadedList.push(displayTree);
1224
- });
1225
- return preloadedList;
1226
- };
1227
- const CompareGroupByOrder = (a, b) => {
1228
- if (a.order > b.order) return 1;
1229
- if (a.order < b.order) return -1;
1230
- return 0;
1231
- };
1232
- const CompareSiblingNodes = (a, b) => {
1233
- if (a.hasOwnProperty("isGroupNode") && !b.hasOwnProperty("isGroupNode")) return -1;
1234
- if (!a.hasOwnProperty("isGroupNode") && b.hasOwnProperty("isGroupNode")) return 1;
1235
- if (a.hasOwnProperty("isGroupNode") && b.hasOwnProperty("isGroupNode")) {
1236
- var _a$properties, _b$properties, _a$properties2, _b$properties2;
1237
- if (((_a$properties = a.properties) === null || _a$properties === void 0 ? void 0 : _a$properties.order) > ((_b$properties = b.properties) === null || _b$properties === void 0 ? void 0 : _b$properties.order)) return 1;
1238
- if (((_a$properties2 = a.properties) === null || _a$properties2 === void 0 ? void 0 : _a$properties2.order) < ((_b$properties2 = b.properties) === null || _b$properties2 === void 0 ? void 0 : _b$properties2.order)) return -1;
1239
- }
1240
- return 0;
1241
- };
1242
- const GetGroupChildMap = (_map, groupKey) => {
1243
- if (_map[groupKey] === void 0) _map[groupKey] = [];
1244
- return _map[groupKey];
1245
- };
1246
- const AddGroupToChildMap = (_map, groupKey, groupNode) => {
1247
- let childMap = GetGroupChildMap(_map, groupKey);
1248
- childMap.push(groupNode);
1249
- childMap.sort(CompareGroupByOrder);
1250
- };
1251
- const createDynamicGroups2 = (_treeConfig, _groupConfig, _item, _curItem, _pList, _siblings, _parentId) => {
1252
- let _groupCreated = false;
1253
- if (_pList.length > 0) {
1254
- let tmpProp = _pList[0];
1255
- if (_curItem.hasOwnProperty(tmpProp)) {
1256
- let newItem = _curItem[tmpProp];
1257
- if (_pList.length > 1) {
1258
- if (Array.isArray(newItem)) for (let i = 0, numOfItems = newItem.length; i < numOfItems; i++) {
1259
- let aGroupWasCreated = createDynamicGroups2(_treeConfig, _groupConfig, _item, newItem[i], _pList.slice(1), _siblings, _parentId);
1260
- _groupCreated = aGroupWasCreated ? aGroupWasCreated : _groupCreated;
1261
- }
1262
- else if (typeof newItem === "object" && newItem !== null) {
1263
- let aGroupWasCreated = createDynamicGroups2(_treeConfig, _groupConfig, _item, newItem, _pList.slice(1), _siblings, _parentId);
1264
- _groupCreated = aGroupWasCreated ? aGroupWasCreated : _groupCreated;
1265
- }
1266
- } else if (typeof newItem !== "object" && newItem !== null && newItem !== "") {
1267
- let groupName = newItem.toString();
1268
- let groupNode = null;
1269
- for (let siblingIdx = 0, numOfSiblings = _siblings.length; siblingIdx < numOfSiblings; siblingIdx++) {
1270
- let sibling = _siblings[siblingIdx];
1271
- if (sibling.hasOwnProperty("isGroupNode") && sibling.isGroupNode === true) {
1272
- if (sibling.properties.label === groupName) {
1273
- groupNode = sibling;
1274
- break;
1275
- }
1276
- }
1277
- }
1278
- if (groupNode == null) {
1279
- let newGroupNodeId = (0, uuid.v4)();
1280
- groupNode = new GroupNode({
1281
- id: `${newGroupNodeId}`,
1282
- groupType: require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic,
1283
- children: [],
1284
- parentGroupId: _parentId,
1285
- parentId: _parentId,
1286
- isExpanded: _groupConfig.isExpanded,
1287
- properties: {
1288
- label: groupName,
1289
- propertyIsCustom: _groupConfig.propertyIsCustom,
1290
- propertyKey: _groupConfig.property,
1291
- order: _groupConfig.order
1292
- }
1293
- });
1294
- _siblings.push(groupNode);
1295
- }
1296
- _groupCreated = true;
1297
- let subGroupWasCreated = false;
1298
- for (let subGroupIdx = 0, numOfSubGroups = _groupConfig.children.length; subGroupIdx < numOfSubGroups; subGroupIdx++) {
1299
- let subGroupConfig = _groupConfig.children[subGroupIdx];
1300
- let subGroupPropList = subGroupConfig.property ? subGroupConfig.property.split(".") : [];
1301
- let subGroupCreated = createDynamicGroups2(_treeConfig, subGroupConfig, _item, _item, subGroupPropList, groupNode.children, groupNode.id);
1302
- subGroupWasCreated = subGroupCreated ? subGroupCreated : subGroupWasCreated;
1303
- }
1304
- if (!subGroupWasCreated) {
1305
- let tmpNode = (0, lodash.cloneDeep)(_treeConfig);
1306
- processObjIndex(tmpNode, _item, null, groupNode.id, null, null, false);
1307
- groupNode.children.push(tmpNode);
1308
- let newChildNodes = [];
1309
- for (let childNodeIdx = 0, numOfChildNodes = tmpNode.children.length; childNodeIdx < numOfChildNodes; childNodeIdx++) {
1310
- let childConfigNode = tmpNode.children[childNodeIdx];
1311
- let propToGetRecords = childConfigNode.properties.catalogObjectKey;
1312
- if (propToGetRecords && propToGetRecords != null && _item.hasOwnProperty(propToGetRecords)) {
1313
- let newResultSet = _item[propToGetRecords];
1314
- if (newResultSet && newResultSet != null) if (Array.isArray(newResultSet)) newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
1315
- else {
1316
- let tmpNewResultSet = [];
1317
- tmpNewResultSet.push(newResultSet);
1318
- newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
1319
- }
1320
- }
1321
- }
1322
- tmpNode.children = newChildNodes;
1323
- }
1324
- groupNode.children.sort(CompareSiblingNodes);
1325
- }
1326
- }
1327
- }
1328
- return _groupCreated;
1329
- };
1330
- const constructDynamicGroupConfigTrees2 = (configNode) => {
1331
- var _configNode$propertie, _groupConfiguration$g4;
1332
- let topLevelConfigGroupNodes = [];
1333
- const groupConfiguration = configNode === null || configNode === void 0 || (_configNode$propertie = configNode.properties) === null || _configNode$propertie === void 0 ? void 0 : _configNode$propertie.groupConfiguration;
1334
- const groupType = (groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.groupType) || require_EnvironmentRibbon.NodeGroupTypeEnums.Dynamic;
1335
- if ((groupConfiguration === null || groupConfiguration === void 0 ? void 0 : groupConfiguration.enabled) && (groupConfiguration === null || groupConfiguration === void 0 || (_groupConfiguration$g4 = groupConfiguration.groupings[groupType]) === null || _groupConfiguration$g4 === void 0 ? void 0 : _groupConfiguration$g4.length)) {
1336
- let dynamicGroupings = groupConfiguration.groupings[groupType];
1337
- for (let groupingIdx = 0, numOfGroupings = dynamicGroupings.length; groupingIdx < numOfGroupings; groupingIdx++) {
1338
- let grouping = dynamicGroupings[groupingIdx];
1339
- if (grouping.groups === void 0 || grouping.groups === null) continue;
1340
- let groupChildMap = {};
1341
- for (let groupIdx = 0, numOfGroups = grouping.groups.length; groupIdx < numOfGroups; groupIdx++) {
1342
- let group = grouping.groups[groupIdx];
1343
- group["children"] = GetGroupChildMap(groupChildMap, group.id);
1344
- if (group.parentGroupId === void 0 || group.parentGroupId === null) topLevelConfigGroupNodes.push(group);
1345
- else AddGroupToChildMap(groupChildMap, group.parentGroupId, group);
1346
- }
1347
- }
1348
- }
1349
- for (let configIdx = 0, numOfChildConfigNodes = configNode.children.length; configIdx < numOfChildConfigNodes; configIdx++) {
1350
- let childConfigNode = configNode.children[configIdx];
1351
- constructDynamicGroupConfigTrees2(childConfigNode);
1352
- }
1353
- configNode.groupConfigTrees = topLevelConfigGroupNodes;
1354
- };
1355
- const constructDynamicNodeGroups2 = (results, configNode, parentId = null) => {
1356
- let levelNodes = [];
1357
- if (!configNode.groupConfigTrees) constructDynamicGroupConfigTrees2(configNode);
1358
- for (let rIdx = 0, numOfResults = results.length; rIdx < numOfResults; rIdx++) {
1359
- let item = results[rIdx];
1360
- let groupCreated = false;
1361
- for (let ctlIdx = 0, numOfGroupConfigTrees = configNode.groupConfigTrees.length; ctlIdx < numOfGroupConfigTrees; ctlIdx++) {
1362
- let groupConfigNode = configNode.groupConfigTrees[ctlIdx];
1363
- let gPropList = groupConfigNode.property ? groupConfigNode.property.split(".") : [];
1364
- let aGroupWasCreated = createDynamicGroups2(configNode, groupConfigNode, item, item, gPropList, levelNodes, parentId);
1365
- groupCreated = aGroupWasCreated ? aGroupWasCreated : groupCreated;
1366
- }
1367
- if (!groupCreated) {
1368
- let tmpNode = (0, lodash.cloneDeep)(configNode);
1369
- processObjIndex(tmpNode, item, null, parentId, null, null, false);
1370
- levelNodes.push(tmpNode);
1371
- let newChildNodes = [];
1372
- for (let childNodeIdx = 0, numOfChildNodes = tmpNode.children.length; childNodeIdx < numOfChildNodes; childNodeIdx++) {
1373
- let childConfigNode = tmpNode.children[childNodeIdx];
1374
- let propToGetRecords = childConfigNode.properties.catalogObjectKey;
1375
- if (propToGetRecords && propToGetRecords != null && item.hasOwnProperty(propToGetRecords)) {
1376
- let newResultSet = item[propToGetRecords];
1377
- if (newResultSet && newResultSet != null) if (Array.isArray(newResultSet)) newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
1378
- else {
1379
- let tmpNewResultSet = [];
1380
- tmpNewResultSet.push(newResultSet);
1381
- newChildNodes.push(...constructDynamicNodeGroups2(newResultSet, childConfigNode, tmpNode.id));
1382
- }
1383
- }
1384
- }
1385
- tmpNode.children = newChildNodes;
1386
- }
1387
- }
1388
- levelNodes.sort(CompareSiblingNodes);
1389
- return levelNodes;
1390
- };
1391
- const transformMenuPageTree = (node) => {
1392
- var _node$menuItemInstanc, _node$menuItemInstanc2;
1393
- if (!(node === null || node === void 0 || (_node$menuItemInstanc = node.menuItemInstance) === null || _node$menuItemInstanc === void 0 ? void 0 : _node$menuItemInstanc.isActive)) return null;
1394
- const parameters = ((_node$menuItemInstanc2 = node.menuItemInstance) === null || _node$menuItemInstanc2 === void 0 ? void 0 : _node$menuItemInstanc2.parameters) && JSON.parse(node.menuItemInstance.parameters);
1395
- const label = node.title || "";
1396
- const expanded = (parameters === null || parameters === void 0 ? void 0 : parameters.defaultDisplay) === "expanded";
1397
- const updatedNode = {
1398
- id: node.menuStructureId,
1399
- parentId: node.parentId,
1400
- isExpanded: expanded,
1401
- properties: {
1402
- defaultIcon: {
1403
- type: "",
1404
- name: parameters.FluentIcon,
1405
- color: ""
1406
- },
1407
- nodeLabel: label,
1408
- nodeSubLabel: "",
1409
- page: {
1410
- id: parameters.PageId,
1411
- entity: { entityName: parameters.entityName },
1412
- pbiReportCode: parameters.pbiReportCode,
1413
- udpTagId: parameters.udpTagId,
1414
- queryId: parameters.queryId,
1415
- inquiryTreeId: parameters === null || parameters === void 0 ? void 0 : parameters.InquiryTreeId,
1416
- requiredFieldMapping: parameters === null || parameters === void 0 ? void 0 : parameters.requiredFieldMapping
1417
- },
1418
- aggregateThresholdId: parameters.aggregateThresholdId || ""
1419
- },
1420
- children: []
1421
- };
1422
- for (const child of node.menuItemInstanceStructures) {
1423
- const updatedChild = transformMenuPageTree(child);
1424
- if (updatedChild) updatedNode.children.push(updatedChild);
1425
- }
1426
- return updatedNode;
1427
- };
1428
- const mapNodeObjValuesToSearchParameters = (nodeObj, aggregateThresholdParamMappings) => {
1429
- if (!aggregateThresholdParamMappings || !nodeObj) return {};
1430
- const mappings = { ...aggregateThresholdParamMappings };
1431
- Object.keys(mappings).forEach((key) => {
1432
- const nodeObjKey = mappings[key];
1433
- if (nodeObjKey) {
1434
- const nodeObjValue = nodeObj[nodeObjKey];
1435
- mappings[key] = nodeObjValue || "";
1436
- }
1437
- });
1438
- return mappings;
1439
- };
1440
- const getSearchValueString = (nodeObj, searchIdentifier) => {
1441
- const searchIdentifiers = searchIdentifier.split(",");
1442
- const searchValues = [];
1443
- searchIdentifiers.forEach((searchIdentifier$1) => {
1444
- searchValues.push(nodeObj[searchIdentifier$1]);
1445
- });
1446
- return searchValues.toString();
1447
- };
1448
-
1449
- //#endregion
1450
- //#region src/utilities/iconLibrary/UnityIconLibrary.jsx
1451
- const unityIcons = [{
1452
- id: "WaterDropIcon",
1453
- label: "Water Drop",
1454
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(src_assets_unityIcons_WaterDrop_svg.default, {}),
1455
- type: "unity"
1456
- }, {
1457
- id: "SewerIcon",
1458
- label: "Sewer",
1459
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(src_assets_unityIcons_Sewer_svg.default, {}),
1460
- type: "unity"
1461
- }];
1462
- const getUnityIconFromName = (name) => {
1463
- const foundIcon = unityIcons.find((icon) => icon.id === name);
1464
- return (foundIcon === null || foundIcon === void 0 ? void 0 : foundIcon.icon) || null;
1465
- };
1466
-
1467
- //#endregion
1468
- //#region src/shell/ui/SidebarCollapseButton.jsx
1469
- const useStyles$6 = (0, __material_ui_core.makeStyles)((theme) => {
1470
- var _theme$transitions, _theme$transitions2, _theme$transitions3, _theme$transitions4, _theme$transitions5, _theme$transitions6;
1471
- return {
1472
- root: {
1473
- display: "flex",
1474
- justifyContent: "flex-start",
1475
- height: 48,
1476
- width: "100%",
1477
- paddingLeft: 0
1478
- },
1479
- iconButton: {
1480
- width: 48,
1481
- height: 48,
1482
- marginLeft: 16 - 24 / 2
1483
- },
1484
- expanded: {},
1485
- icon: {
1486
- width: 14,
1487
- height: 14,
1488
- margin: 8 / 2,
1489
- transition: theme === null || theme === void 0 || (_theme$transitions = theme.transitions) === null || _theme$transitions === void 0 ? void 0 : _theme$transitions.create("transform", {
1490
- easing: theme === null || theme === void 0 || (_theme$transitions2 = theme.transitions) === null || _theme$transitions2 === void 0 || (_theme$transitions2 = _theme$transitions2.easing) === null || _theme$transitions2 === void 0 ? void 0 : _theme$transitions2.sharp,
1491
- duration: theme === null || theme === void 0 || (_theme$transitions3 = theme.transitions) === null || _theme$transitions3 === void 0 || (_theme$transitions3 = _theme$transitions3.duration) === null || _theme$transitions3 === void 0 ? void 0 : _theme$transitions3.shortest
1492
- }),
1493
- "$expanded &": { transform: "scaleX(-1)" }
1494
- },
1495
- switch: {
1496
- margin: 8 / 2,
1497
- transition: theme === null || theme === void 0 || (_theme$transitions4 = theme.transitions) === null || _theme$transitions4 === void 0 ? void 0 : _theme$transitions4.create("transform", {
1498
- easing: theme === null || theme === void 0 || (_theme$transitions5 = theme.transitions) === null || _theme$transitions5 === void 0 || (_theme$transitions5 = _theme$transitions5.easing) === null || _theme$transitions5 === void 0 ? void 0 : _theme$transitions5.sharp,
1499
- duration: theme === null || theme === void 0 || (_theme$transitions6 = theme.transitions) === null || _theme$transitions6 === void 0 || (_theme$transitions6 = _theme$transitions6.duration) === null || _theme$transitions6 === void 0 ? void 0 : _theme$transitions6.shortest
1500
- }),
1501
- "$expanded &": { transform: "scaleX(-1)" }
1502
- }
1503
- };
1504
- }, { name: "SidebarCollapseButton" });
1505
- /**
1506
- * Custom styled button used for expanding/collapsing sidebars
1507
- */
1508
- const SidebarCollapseButton = (props) => {
1509
- const classes = useStyles$6(props);
1510
- const { expanded, className, id, udprecordid,...other } = props;
1511
- const { t } = (0, react_i18next.useTranslation)();
1512
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1513
- ...other,
1514
- className: (0, clsx.default)(className, classes.root, { [classes.expanded]: expanded }),
1515
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.FluentIconButton, {
1516
- id,
1517
- udprecordid,
1518
- color: "inherit",
1519
- className: (0, clsx.default)(classes.iconButton, classes.switch),
1520
- "aria-label": expanded ? t("mainMenuAria.collapseNavigation") : t("mainMenuAria.expandNavigation"),
1521
- icon: __fluentui_react_icons.ChevronRightIcon
1522
- })
1523
- });
1524
- };
1525
-
1526
- //#endregion
1527
- //#region src/UI/inputs/buttons/AmbientCardButton.jsx
1528
- const useStyles$5 = (0, __material_ui_core.makeStyles)((theme) => ({ root: {
1529
- borderRadius: 0,
1530
- padding: 8
1531
- } }));
1532
- const AmbientCardButton = (props) => {
1533
- const classes = useStyles$5(props);
1534
- const { editOption, launchOption, deleteOption, children,...otherProps } = props;
1535
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.Button, {
1536
- classes: { root: classes.root },
1537
- variant: "outlined",
1538
- disableElevation: true,
1539
- color: "primary",
1540
- ...otherProps,
1541
- children: [
1542
- editOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__fluentui_react_icons.EditIcon, {}),
1543
- launchOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__fluentui_react_icons.ArrowUpRightIcon, {}),
1544
- deleteOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__fluentui_react_icons.DeleteIcon, {}),
1545
- children
1546
- ]
1547
- });
1548
- };
1549
- AmbientCardButton.propTypes = {
1550
- editOption: prop_types.default.bool,
1551
- launchOption: prop_types.default.bool,
1552
- deleteOption: prop_types.default.bool,
1553
- children: prop_types.default.string
1554
- };
1555
-
1556
- //#endregion
1557
- //#region src/UI/components/feedback/Adornment.jsx
1558
- const useStyles$4 = (0, __material_ui_core.makeStyles)((theme) => ({ root: (props) => ({
1559
- width: theme.spacing(.5),
1560
- height: "100%",
1561
- background: theme.palette[props.color].main
1562
- }) }));
1563
- const Adornment = (props) => {
1564
- const classes = useStyles$4(props);
1565
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: classes.root });
1566
- };
1567
- Adornment.propTypes = { color: prop_types.default.string };
1568
-
1569
- //#endregion
1570
- //#region src/UI/surfaces/cards/AmbientCard.jsx
1571
- const useStyles$3 = (0, __material_ui_core.makeStyles)((theme) => ({
1572
- root: {},
1573
- paper: {
1574
- width: "100%",
1575
- position: "relative",
1576
- display: "flex",
1577
- flexDirection: "column",
1578
- height: (props) => {
1579
- var _props$cardHeight;
1580
- return (_props$cardHeight = props === null || props === void 0 ? void 0 : props.cardHeight) !== null && _props$cardHeight !== void 0 ? _props$cardHeight : "";
1581
- }
1582
- },
1583
- adornment: {
1584
- top: 0,
1585
- left: 0,
1586
- height: "100%",
1587
- position: "absolute"
1588
- },
1589
- launchButtons: {
1590
- padding: theme.spacing(0, 2, 2, 2),
1591
- display: "flex",
1592
- justifyContent: "flex-end",
1593
- bottom: (props) => props.adjustBaseline ? props.adjustBaseline : 16,
1594
- right: theme.spacing(2),
1595
- gridGap: theme.spacing(1)
1596
- },
1597
- moreButton: {
1598
- marginTop: theme.spacing(1),
1599
- display: "flex",
1600
- justifyContent: "center",
1601
- backgroundColor: (0, __material_ui_core.lighten)(theme.palette.secondary.main, .9),
1602
- padding: theme.spacing(1)
1603
- },
1604
- styleWidth: {
1605
- width: (props) => !(props === null || props === void 0 ? void 0 : props.fullWidth) ? "75%" : "100%",
1606
- height: "100%"
1607
- },
1608
- media: { height: (props) => props.mediaHeight || 120 },
1609
- cardContent: {
1610
- flexGrow: 1,
1611
- padding: (props) => props.removePadding && 0,
1612
- "&:last-child": { paddingBottom: (props) => props.lastChildBottomPadding ? props.lastChildBottomPadding : theme.spacing(2) },
1613
- paddingTop: 0,
1614
- height: (props) => props.cardContentHeight ? props.cardContentHeight : ""
1615
- },
1616
- titleWrapper: {
1617
- display: "flex",
1618
- backgroundColor: (props) => props.headerColor && require_EnvironmentRibbon.getEllipseColor(theme, props.headerColor, "light")
1619
- },
1620
- title: { color: (props) => props.headerColor && theme.palette.getContrastText(require_EnvironmentRibbon.getEllipseColor(theme, props.headerColor, "light")) },
1621
- loading: {
1622
- position: "absolute",
1623
- top: 0,
1624
- left: 0
1625
- },
1626
- expandMessage: { display: "flex" },
1627
- cardRoot: { "&:last-child": { paddingBottom: theme.spacing(2) } },
1628
- visualization: {
1629
- display: "flex",
1630
- alignItems: "flex-end",
1631
- width: "100%",
1632
- height: 300
1633
- },
1634
- titlesWrapper: {
1635
- display: "flex",
1636
- flexDirection: "column",
1637
- flex: 1,
1638
- lineHeight: (props) => props.globalExpanded && "125%"
1639
- },
1640
- collapseChildren: {
1641
- flexGrow: 1,
1642
- "& .MuiCollapse-wrapper": { height: "100%" },
1643
- "& .MuiCollapse-wrapperInner": { height: "100%" },
1644
- height: (props) => props.cardContentHeight ? props.cardContentHeight : ""
1645
- }
1646
- }));
1647
- const AmbientCard = (props) => {
1648
- const classes = useStyles$3(props);
1649
- const [expanded, setExpanded] = (0, react.useState)(false);
1650
- 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;
1651
- const [globalExpanded, setGlobalExpanded] = (0, react.useState)(toggleGlobalExpanded);
1652
- return !baseLoading && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.Paper, {
1653
- elevation: 0,
1654
- className: classes.paper,
1655
- children: [
1656
- !noAdornment && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1657
- className: classes.adornment,
1658
- children: customAdornment ? customAdornment : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Adornment, { color: adornment })
1659
- }),
1660
- title && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.CardContent, {
1661
- className: classes.titleWrapper,
1662
- classes: { root: classes.cardRoot },
1663
- children: [
1664
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1665
- className: classes.titlesWrapper,
1666
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
1667
- className: classes.title,
1668
- component: "h2",
1669
- variant: subCard ? "subtitle2" : "h6",
1670
- children: title
1671
- }), subtitle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
1672
- variant: "body1",
1673
- className: classes.title,
1674
- children: subtitle
1675
- })]
1676
- }),
1677
- status && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.StatusChip, {
1678
- status,
1679
- label,
1680
- success: overrideStatusSuccess,
1681
- error: overrideStatusError,
1682
- warning: overrideStatusWarning,
1683
- info: overrideStatusInfo
1684
- }),
1685
- globalToggle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.FluentIconButton, {
1686
- onClick: () => setGlobalExpanded(!globalExpanded),
1687
- icon: globalExpanded ? __fluentui_react_icons.ChevronUpIcon : __fluentui_react_icons.ChevronDownIcon,
1688
- className: classes.icon,
1689
- id: "udpRecord-AmbientCard-Toggle-" + (globalExpanded ? "Up" : "Down"),
1690
- udprecordid: "udpRecord-AmbientCard-Toggle-" + (globalExpanded ? "Up" : "Down")
1691
- }) })
1692
- ]
1693
- }),
1694
- image && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.CardMedia, {
1695
- className: classes.media,
1696
- image,
1697
- title: imageTitle
1698
- }),
1699
- globalExpanded && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.CardContent, {
1700
- classes: { root: classes.cardContent },
1701
- children: [
1702
- !image && !header && !removeTopLayoutUnit && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.LayoutUnit, { unit: large ? "md" : "xxs" }),
1703
- image && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.LayoutUnit, { unit: "xs" }),
1704
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Collapse, {
1705
- in: !collapseChildrenWhenExpanded || !expanded,
1706
- timeout: "auto",
1707
- className: classes.collapseChildren,
1708
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1709
- className: classes.styleWidth,
1710
- children
1711
- })
1712
- }),
1713
- extendedList && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Collapse, {
1714
- in: expanded,
1715
- timeout: "auto",
1716
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: extendedList })
1717
- }),
1718
- more && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1719
- className: classes.moreButton,
1720
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1721
- className: classes.expandMessage,
1722
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
1723
- style: {
1724
- marginTop: 4,
1725
- marginRight: 16
1726
- },
1727
- variant: "subtitle2",
1728
- children: !expanded && moreMessage
1729
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.FluentButton, {
1730
- onClick: () => setExpanded(!expanded),
1731
- color: "secondary",
1732
- variant: "outlined",
1733
- children: expanded ? moreButtonExpanded : moreButton
1734
- })]
1735
- })
1736
- })
1737
- ]
1738
- }),
1739
- visualization && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1740
- className: classes.visualization,
1741
- children: visualization
1742
- }),
1743
- !globalToggle && (editOption || launchOption || deleteOption) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1744
- className: classes.launchButtons,
1745
- children: [
1746
- editOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AmbientCardButton, {
1747
- "aria-label": ariaLabel,
1748
- editOption: true,
1749
- ...otherProps,
1750
- onClick: editEvent,
1751
- id: "udpRecord-AmbientCard-edit",
1752
- udprecordid: "udpRecord-AmbientCard-edit"
1753
- }),
1754
- launchOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AmbientCardButton, {
1755
- "aria-label": ariaLabel,
1756
- launchOption: true,
1757
- ...otherProps,
1758
- onClick: launchEvent,
1759
- id: "udpRecord-AmbientCard-launch",
1760
- udprecordid: "udpRecord-AmbientCard-launch"
1761
- }),
1762
- deleteOption && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AmbientCardButton, {
1763
- "aria-label": ariaLabel,
1764
- deleteOption: true,
1765
- ...otherProps,
1766
- onClick: deleteEvent,
1767
- id: "udpRecord-AmbientCard-delete",
1768
- udprecordid: "udpRecord-AmbientCard-delete"
1769
- })
1770
- ]
1771
- })
1772
- ]
1773
- });
1774
- };
1775
-
1776
- //#endregion
1777
- //#region src/UI/feedback/NodeLoader.jsx
1778
- const useStyles$2 = (0, __material_ui_core.makeStyles)((theme) => ({
1779
- root: {},
1780
- nodeWrapper: { display: "flex" }
1781
- }));
1782
- const NodeLoader = ({ loading, nodesRequested = [1] }) => {
1783
- const classes = useStyles$2();
1784
- const singleNode = [
1785
- 1,
1786
- 2,
1787
- 3,
1788
- 4
1789
- ];
1790
- const NodeElement = () => {
1791
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1792
- className: classes.nodeWrapper,
1793
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab_Skeleton.default, {
1794
- variant: "circle",
1795
- width: 20,
1796
- height: 20
1797
- }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1798
- style: {
1799
- marginLeft: 8,
1800
- width: "100%"
1801
- },
1802
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab_Skeleton.default, {
1803
- height: 20,
1804
- variant: "rect",
1805
- width: "100%"
1806
- })
1807
- })]
1808
- });
1809
- };
1810
- const NodeGroup = ({ indent }) => {
1811
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1812
- style: { marginLeft: indent },
1813
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NodeElement, {})
1814
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.LayoutUnit, { unit: "xxs" })] });
1815
- };
1816
- const singleNodeGroup = loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: singleNode.map((item, index) => {
1817
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NodeGroup, { indent: index * 8 });
1818
- }) });
1819
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: nodesRequested && nodesRequested.map((item) => {
1820
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1821
- className: classes.root,
1822
- children: [
1823
- singleNodeGroup,
1824
- " ",
1825
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.LayoutUnit, { unit: "xxs" })
1826
- ]
1827
- });
1828
- }) });
1829
- };
1830
-
1831
- //#endregion
1832
- //#region src/models/NumberOperator.ts
1833
- let NumberOperatorEnums = /* @__PURE__ */ function(NumberOperatorEnums$1) {
1834
- NumberOperatorEnums$1["Equals"] = "=";
1835
- NumberOperatorEnums$1["Does_Not_Equal"] = "!=";
1836
- NumberOperatorEnums$1["Greater_Than"] = ">";
1837
- NumberOperatorEnums$1["Less_Than"] = "<";
1838
- NumberOperatorEnums$1["Greater_Than_Or_Equal_To"] = ">=";
1839
- NumberOperatorEnums$1["Less_Than_Or_Equal_To"] = "<=";
1840
- NumberOperatorEnums$1["Between"] = "BETWEEN";
1841
- return NumberOperatorEnums$1;
1842
- }({});
1843
-
1844
- //#endregion
1845
- //#region src/UI/utilityDisplay/utilities/aggregateUtils.js
1846
- const getThresholdStatus = (aggThreshold, aggregateValue) => {
1847
- if (!aggThreshold || !aggregateValue) return null;
1848
- const thresholdTypes = [
1849
- {
1850
- type: require_EnvironmentRibbon.SeverityTypeEnums.Success,
1851
- threshold: aggThreshold.successThreshold
1852
- },
1853
- {
1854
- type: require_EnvironmentRibbon.SeverityTypeEnums.Error,
1855
- threshold: aggThreshold.errorThreshold
1856
- },
1857
- {
1858
- type: require_EnvironmentRibbon.SeverityTypeEnums.Warning,
1859
- threshold: aggThreshold.warningThreshold
1860
- },
1861
- {
1862
- type: require_EnvironmentRibbon.SeverityTypeEnums.Info,
1863
- threshold: aggThreshold.infoThreshold
1864
- }
1865
- ];
1866
- let thresholdStatus = "";
1867
- for (const { type, threshold } of thresholdTypes) if (threshold && evaluateThreshold(threshold, aggregateValue)) {
1868
- thresholdStatus = type;
1869
- break;
1870
- }
1871
- return thresholdStatus;
1872
- };
1873
- const evaluateThreshold = (threshold = {}, aggregateValue) => {
1874
- if (typeof threshold === "string") try {
1875
- threshold = JSON.parse(threshold);
1876
- } catch {
1877
- console.error(`Could not parse: ${threshold}`);
1878
- return false;
1879
- }
1880
- const { operator, value1, value2 } = threshold;
1881
- let thresholdMet = false;
1882
- switch (operator) {
1883
- case NumberOperatorEnums.Equals:
1884
- thresholdMet = aggregateValue === parseFloat(value1);
1885
- break;
1886
- case NumberOperatorEnums.Does_Not_Equal:
1887
- thresholdMet = aggregateValue !== parseFloat(value1);
1888
- break;
1889
- case NumberOperatorEnums.Greater_Than:
1890
- thresholdMet = aggregateValue > parseFloat(value1);
1891
- break;
1892
- case NumberOperatorEnums.Less_Than:
1893
- thresholdMet = aggregateValue < parseFloat(value1);
1894
- break;
1895
- case NumberOperatorEnums.Greater_Than_Or_Equal_To:
1896
- thresholdMet = aggregateValue >= parseFloat(value1);
1897
- break;
1898
- case NumberOperatorEnums.Less_Than_Or_Equal_To:
1899
- thresholdMet = aggregateValue <= parseFloat(value1);
1900
- break;
1901
- case NumberOperatorEnums.Between:
1902
- thresholdMet = aggregateValue >= parseFloat(value1) && aggregateValue <= parseFloat(value2);
1903
- break;
1904
- default: break;
1905
- }
1906
- return thresholdMet;
1907
- };
1908
-
1909
- //#endregion
1910
- //#region src/UI/dataDisplay/entityHeader/ui/AlertPill.jsx
1911
- /**
1912
- * Styles for the AlertPill component
1913
- */
1914
- const useStyles$1 = (0, __material_ui_core.makeStyles)((theme) => {
1915
- const endRadius = theme.spacing(3);
1916
- return {
1917
- root: {
1918
- display: "flex",
1919
- flexDirection: "row",
1920
- overflow: "hidden",
1921
- flexGrow: 0,
1922
- alignSelf: "start"
1923
- },
1924
- alertRoot: {
1925
- padding: theme.spacing(0, 1.5, 0, 1),
1926
- borderRadius: 0,
1927
- "&:first-of-type": {
1928
- borderTopLeftRadius: endRadius,
1929
- borderBottomLeftRadius: endRadius
1930
- },
1931
- "&:last-of-type": {
1932
- borderTopRightRadius: endRadius,
1933
- borderBottomRightRadius: endRadius
1934
- }
1935
- },
1936
- alertIcon: { marginRight: theme.spacing(.5) },
1937
- buttonBase: {
1938
- borderRadius: endRadius,
1939
- overflow: "hidden"
1940
- },
1941
- defaultSeverityAlert: { backgroundColor: theme.palette.grey[400] }
1942
- };
1943
- });
1944
- /**
1945
- * Memoized version of the Alert component
1946
- *
1947
- * @param {object} props - Component props
1948
- * @param {number} props.count - The count to display in the Alert
1949
- * @param {boolean} props.hide - Whether the Alert should be hidden
1950
- * @param {string} props.severity - The severity of the Alert
1951
- * @param {object} props.alertProps - Additional props to pass to the Alert component
1952
- * @param {number} props.maxCount - Max count to show before displaying as "{maxCount}+"
1953
- * @returns {JSX.Element | null} - The Alert component, or null if the count is falsy or hide is true
1954
- */
1955
- const MemoizedAlert = (0, react.memo)((props) => {
1956
- const { count, hide, severity, alertProps, maxCount, label } = props;
1957
- const classes = useStyles$1(props);
1958
- if (count && !hide) {
1959
- let displayCount = count;
1960
- if (maxCount && count > maxCount) displayCount = `${maxCount}+`;
1961
- if (severity === require_EnvironmentRibbon.SeverityTypeEnums.Default) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab.Alert, {
1962
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Info,
1963
- ...alertProps,
1964
- className: classes.defaultSeverityAlert,
1965
- children: displayCount
1966
- });
1967
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab.Alert, {
1968
- severity,
1969
- ...alertProps,
1970
- children: label ? label : displayCount
1971
- });
1972
- }
1973
- return null;
1974
- });
1975
- MemoizedAlert.displayName = "MemoizedAlert";
1976
- /**
1977
- * The AlertPill component displays a row of Alerts, each with a count and a severity level.
1978
- * Alerts can be hidden by setting the corresponding hide prop to true.
1979
- *
1980
- * @param {object} props - Component props
1981
- * @param {function} [props.handleClick] - The click event handler.
1982
- * @param {number} props.maxCount - Max count to show before displaying as "{maxCount}+"
1983
- * @param {number} props.errorCount - The count for the error Alert
1984
- * @param {number} props.warningCount - The count for the warning Alert
1985
- * @param {number} props.successCount - The count for the success Alert
1986
- * @param {number} props.infoCount - The count for the info Alert
1987
- * @param {number} props.defaultCount - The count for the default Alert
1988
- * @param {string} props.errorLabel - The label for the error Alert
1989
- * @param {string} props.warningLabel - The label for the warning Alert
1990
- * @param {string} props.successLabel - The label for the success Alert
1991
- * @param {string} props.infoLabel - The label for the info Alert
1992
- * @param {string} props.defaultLabel - The label for the default Alert
1993
- * @param {boolean} props.hideError - Whether the error Alert should be hidden
1994
- * @param {boolean} props.hideWarning - Whether the warning Alert should be hidden
1995
- * @param {boolean} props.hideSuccess - Whether the success Alert should be hidden
1996
- * @param {boolean} props.hideInfo - Whether the info Alert should be hidden
1997
- * @param {boolean} props.hideDefault - Whether the default Alert should be hidden
1998
- * @param {string} props.variant - The variant of the Alert
1999
- * @param {function} [props.handleClick] - The click event handler.
2000
- * @param {number} props.maxCount - Max count to show before displaying as "{maxCount}+"
2001
- * @returns {JSX.Element} - The AlertPill component
2002
- */
2003
- const AlertPill = (props) => {
2004
- 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;
2005
- const classes = useStyles$1(props);
2006
- const variantMapping = {
2007
- filled: "filled",
2008
- standard: "hint",
2009
- outlined: "outlined",
2010
- text: ""
2011
- };
2012
- const alertProps = {
2013
- variant: variantMapping[variant],
2014
- classes: {
2015
- root: classes.alertRoot,
2016
- icon: classes.alertIcon
2017
- }
2018
- };
2019
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2020
- className: classes.root,
2021
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.ButtonBase, {
2022
- onClick: handleClick,
2023
- className: classes.buttonBase,
2024
- children: [
2025
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedAlert, {
2026
- count: errorCount,
2027
- hide: hideError,
2028
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Error,
2029
- alertProps,
2030
- maxCount,
2031
- label: errorLabel
2032
- }),
2033
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedAlert, {
2034
- count: warningCount,
2035
- hide: hideWarning,
2036
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Warning,
2037
- alertProps,
2038
- maxCount,
2039
- label: warningLabel
2040
- }),
2041
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedAlert, {
2042
- count: successCount,
2043
- hide: hideSuccess,
2044
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Success,
2045
- alertProps,
2046
- maxCount,
2047
- label: successLabel
2048
- }),
2049
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedAlert, {
2050
- count: infoCount,
2051
- hide: hideInfo,
2052
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Info,
2053
- alertProps,
2054
- maxCount,
2055
- label: infoLabel
2056
- }),
2057
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemoizedAlert, {
2058
- count: defaultCount,
2059
- hide: hideDefault,
2060
- severity: require_EnvironmentRibbon.SeverityTypeEnums.Default,
2061
- alertProps,
2062
- maxCount,
2063
- label: defaultLabel
2064
- })
2065
- ]
2066
- })
2067
- });
2068
- };
2069
-
2070
- //#endregion
2071
- //#region src/UI/utilityDisplay/AggregateChip.jsx
2072
- const AggregateChip = (props) => {
2073
- const { aggregateThresholdId, aggregateThresholdParamMappings, label, chipColor, setStatus, isActionable = false, isAlert = false, hideAlert = false, onAlertClick } = props;
2074
- const [color, setColor] = (0, react.useState)(chipColor);
2075
- const [aggregateValue, setAggregateValue] = (0, react.useState)(null);
2076
- const [loading, setLoading] = (0, react.useState)(false);
2077
- const [{ data: aggregateThreshold, loading: loadingAggregateThreshold }] = require_EnvironmentRibbon.useAxiosGet(udp_react_stencil_component_library.ConfigService.integrationV2ApiUrl, `aggregateThreshold/${aggregateThresholdId}`, {}, !!!aggregateThresholdId);
2078
- const alertDisplayLabel = (0, react.useMemo)(() => {
2079
- if (!label) return aggregateValue;
2080
- return `${label.replace("{value}", aggregateValue)}`;
2081
- }, [aggregateValue, label]);
2082
- (0, react.useEffect)(() => {
2083
- const setAggregateData = async (apiMethodInstanceId, valueKey) => {
2084
- setLoading(true);
2085
- const data = aggregateThresholdParamMappings ? { data: aggregateThresholdParamMappings } : { data: {} };
2086
- const response = await require_EnvironmentRibbon.executeQueryInstance(data, apiMethodInstanceId).catch((res) => setLoading(false));
2087
- if ((response === null || response === void 0 ? void 0 : response.status) === 200 && valueKey) {
2088
- var _response$data, _response$data2;
2089
- const aggregateResult = ((_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.aggregateResults) && ((_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.aggregateResults[0]);
2090
- if (aggregateResult) setAggregateValue(aggregateResult[valueKey] ? Math.round(aggregateResult[valueKey]) : "");
2091
- }
2092
- setLoading(false);
2093
- };
2094
- if (aggregateThreshold) setAggregateData(aggregateThreshold.apiMethodInstanceId, aggregateThreshold.aggregateKey);
2095
- }, [aggregateThreshold]);
2096
- (0, react.useEffect)(() => {
2097
- if (aggregateThreshold && aggregateValue) {
2098
- const status = getThresholdStatus(aggregateThreshold, aggregateValue);
2099
- setColor(status);
2100
- if (setStatus) setStatus(status || "default");
2101
- }
2102
- }, [
2103
- aggregateThreshold,
2104
- aggregateValue,
2105
- setStatus
2106
- ]);
2107
- if (loading || loadingAggregateThreshold) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.CircularProgress, { size: 18 });
2108
- if (!color && !isAlert) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
2109
- variant: "caption2",
2110
- style: { fontSize: "0.7rem" },
2111
- children: label || aggregateValue
2112
- });
2113
- if (isAlert) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertPill, {
2114
- handleClick: onAlertClick,
2115
- successCount: color === require_EnvironmentRibbon.SeverityTypeEnums.Success ? aggregateValue : "",
2116
- errorCount: color === require_EnvironmentRibbon.SeverityTypeEnums.Error ? aggregateValue : "",
2117
- warningCount: color === require_EnvironmentRibbon.SeverityTypeEnums.Warning ? aggregateValue : "",
2118
- infoCount: color === require_EnvironmentRibbon.SeverityTypeEnums.Info ? aggregateValue : "",
2119
- defaultCount: !color && (aggregateValue || ""),
2120
- successLabel: color === require_EnvironmentRibbon.SeverityTypeEnums.Success ? alertDisplayLabel : "",
2121
- errorLabel: color === require_EnvironmentRibbon.SeverityTypeEnums.Error ? alertDisplayLabel : "",
2122
- warningLabel: color === require_EnvironmentRibbon.SeverityTypeEnums.Warning ? alertDisplayLabel : "",
2123
- infoLabel: color === require_EnvironmentRibbon.SeverityTypeEnums.Info ? alertDisplayLabel : "",
2124
- defaultLabel: !color && (alertDisplayLabel || ""),
2125
- hideSuccess: color === require_EnvironmentRibbon.SeverityTypeEnums.Success ? hideAlert : false,
2126
- hideError: color === require_EnvironmentRibbon.SeverityTypeEnums.Error ? hideAlert : false,
2127
- hideWarning: color === require_EnvironmentRibbon.SeverityTypeEnums.Warning ? hideAlert : false,
2128
- hideInfo: color === require_EnvironmentRibbon.SeverityTypeEnums.Info ? hideAlert : false,
2129
- hideDefault: !color ? hideAlert : false
2130
- });
2131
- return label || aggregateValue ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.StatusChip, {
2132
- label: label || aggregateValue,
2133
- status: color,
2134
- useSmallChip: true,
2135
- isActionable
2136
- }) : null;
2137
- };
2138
- AggregateChip.prototype = {
2139
- chipColor: prop_types.default.oneOf([
2140
- "success",
2141
- "error",
2142
- "warning",
2143
- "info",
2144
- void 0,
2145
- null
2146
- ]),
2147
- aggregateThresholdId: prop_types.default.oneOf([
2148
- prop_types.default.string,
2149
- void 0,
2150
- null
2151
- ])
2152
- };
2153
-
2154
- //#endregion
2155
- //#region src/utilities/utilityBar/UtilityBarInport.jsx
2156
- const UtilityBarInports = (0, react_teleporter.createTeleporter)({ multiSources: true });
2157
- const UtilityBarInportTarget = UtilityBarInports.Target;
2158
- /**
2159
- * Places a Control in the App SubHeader
2160
- */
2161
- const UtilityBarInport = (props) => {
2162
- const { children, className,...buttonProps } = props;
2163
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UtilityBarInports.Source, { children });
2164
- };
2165
-
2166
- //#endregion
2167
- //#region src/UI/utilityDisplay/UtilitySideBar.jsx
2168
- const EXPANDED_WIDTH = 288;
2169
- const COLLAPSED_WIDTH = 78;
2170
- const MAX_WIDTH = 700;
2171
- const useStyles = (0, __material_ui_core.makeStyles)((theme) => ({
2172
- root: {
2173
- paddingTop: (props) => props.removePadding || props.sidebarHidden ? 0 : 40,
2174
- overflow: "hidden",
2175
- height: "100%"
2176
- },
2177
- titleWrapper: {
2178
- display: (props) => props.hideTitleBar ? "none" : "flex",
2179
- width: "100%",
2180
- paddingLeft: theme.spacing(1)
2181
- },
2182
- button: { marginTop: -8 },
2183
- title: {
2184
- flex: 1,
2185
- width: "100%",
2186
- marginTop: 8
2187
- },
2188
- expandedWidth: { width: 288 },
2189
- handle: {
2190
- top: 0,
2191
- right: theme.spacing(-.75),
2192
- width: theme.spacing(.75),
2193
- zIndex: 1e4,
2194
- height: "calc(100vh - 56px)",
2195
- display: "inline-block",
2196
- position: "absolute",
2197
- "&:hover": { cursor: "col-resize" }
2198
- }
2199
- }));
2200
- const UtilitySideBar = (props) => {
2201
- const { onUtilitySidebarToggleExpandClick, resizable, title, utilitySidebarToggleOverride, isUsingChildren = false, removeTopLayoutUnit = false, collapsedWidth, children, sidebarHidden, handleResize = null, hideTitleBar } = props;
2202
- const buildEnv = require_EnvironmentRibbon.useBuildEnvironment();
2203
- const classes = useStyles({
2204
- ...props,
2205
- appRibbbonSpace: buildEnv ? require_EnvironmentRibbon.APP_RIBBON_SPACE : 0
2206
- });
2207
- const [expanded, setExpanded] = (0, react.useState)(true);
2208
- const [width, setWidth] = (0, react.useState)(EXPANDED_WIDTH);
2209
- const _collapsedWidth = collapsedWidth !== null && collapsedWidth !== void 0 ? collapsedWidth : COLLAPSED_WIDTH;
2210
- const theme = (0, __material_ui_core.useTheme)();
2211
- const onResize = (event, { element, size, handle }) => {
2212
- setWidth(size.width);
2213
- if (handleResize) handleResize(size.width);
2214
- };
2215
- const handleToggleClick = (0, react.useCallback)(() => {
2216
- if (onUtilitySidebarToggleExpandClick) onUtilitySidebarToggleExpandClick();
2217
- setExpanded((expanded$1) => !expanded$1);
2218
- }, [onUtilitySidebarToggleExpandClick]);
2219
- (0, react.useEffect)(() => {
2220
- if (typeof utilitySidebarToggleOverride === "boolean") setExpanded(utilitySidebarToggleOverride);
2221
- }, [utilitySidebarToggleOverride]);
2222
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_resizable.ResizableBox, {
2223
- width: expanded ? width : _collapsedWidth,
2224
- resizeHandles: resizable && expanded ? ["e"] : [],
2225
- axis: "x",
2226
- minConstraints: expanded ? [EXPANDED_WIDTH] : [_collapsedWidth],
2227
- maxConstraints: [MAX_WIDTH],
2228
- onResize,
2229
- handle: expanded && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: classes.handle }),
2230
- style: { position: "relative" },
2231
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2232
- className: classes.root,
2233
- style: { width: expanded ? width : _collapsedWidth },
2234
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(AmbientCard, {
2235
- fullWidth: true,
2236
- removePadding: true,
2237
- lastChildBottomPadding: 12,
2238
- removeTopLayoutUnit: removeTopLayoutUnit || sidebarHidden,
2239
- children: [
2240
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2241
- style: {
2242
- display: hideTitleBar ? "none" : "flex",
2243
- width: "100%",
2244
- paddingLeft: theme.spacing(1)
2245
- },
2246
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2247
- className: classes.title,
2248
- children: expanded && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.Typography, {
2249
- variant: "h6",
2250
- children: [
2251
- " ",
2252
- title,
2253
- " "
2254
- ]
2255
- })
2256
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2257
- className: classes.button,
2258
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SidebarCollapseButton, {
2259
- id: "udpRecord-UtilitySideBar",
2260
- udprecordid: "udpRecord-UtilitySideBar",
2261
- expanded,
2262
- onClick: handleToggleClick
2263
- })
2264
- })]
2265
- }),
2266
- !isUsingChildren && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UtilityBarInportTarget, {}),
2267
- isUsingChildren && children
2268
- ]
2269
- })
2270
- })
2271
- });
2272
- };
2273
-
2274
- //#endregion
2275
- Object.defineProperty(exports, 'Adornment', {
2276
- enumerable: true,
2277
- get: function () {
2278
- return Adornment;
2279
- }
2280
- });
2281
- Object.defineProperty(exports, 'AggregateChip', {
2282
- enumerable: true,
2283
- get: function () {
2284
- return AggregateChip;
2285
- }
2286
- });
2287
- Object.defineProperty(exports, 'AlertPill', {
2288
- enumerable: true,
2289
- get: function () {
2290
- return AlertPill;
2291
- }
2292
- });
2293
- Object.defineProperty(exports, 'AmbientCard', {
2294
- enumerable: true,
2295
- get: function () {
2296
- return AmbientCard;
2297
- }
2298
- });
2299
- Object.defineProperty(exports, 'AmbientCardButton', {
2300
- enumerable: true,
2301
- get: function () {
2302
- return AmbientCardButton;
2303
- }
2304
- });
2305
- Object.defineProperty(exports, 'GroupNode', {
2306
- enumerable: true,
2307
- get: function () {
2308
- return GroupNode;
2309
- }
2310
- });
2311
- Object.defineProperty(exports, 'NodeLoader', {
2312
- enumerable: true,
2313
- get: function () {
2314
- return NodeLoader;
2315
- }
2316
- });
2317
- Object.defineProperty(exports, 'SidebarCollapseButton', {
2318
- enumerable: true,
2319
- get: function () {
2320
- return SidebarCollapseButton;
2321
- }
2322
- });
2323
- Object.defineProperty(exports, 'UtilityBarInport', {
2324
- enumerable: true,
2325
- get: function () {
2326
- return UtilityBarInport;
2327
- }
2328
- });
2329
- Object.defineProperty(exports, 'UtilityBarInportTarget', {
2330
- enumerable: true,
2331
- get: function () {
2332
- return UtilityBarInportTarget;
2333
- }
2334
- });
2335
- Object.defineProperty(exports, 'UtilitySideBar', {
2336
- enumerable: true,
2337
- get: function () {
2338
- return UtilitySideBar;
2339
- }
2340
- });
2341
- Object.defineProperty(exports, 'checkNodeIsHidden', {
2342
- enumerable: true,
2343
- get: function () {
2344
- return checkNodeIsHidden;
2345
- }
2346
- });
2347
- Object.defineProperty(exports, 'collapseAllNodes', {
2348
- enumerable: true,
2349
- get: function () {
2350
- return collapseAllNodes;
2351
- }
2352
- });
2353
- Object.defineProperty(exports, 'constructBusinessObjectArrFromTree', {
2354
- enumerable: true,
2355
- get: function () {
2356
- return constructBusinessObjectArrFromTree;
2357
- }
2358
- });
2359
- Object.defineProperty(exports, 'constructDynamicNodeGroups', {
2360
- enumerable: true,
2361
- get: function () {
2362
- return constructDynamicNodeGroups;
2363
- }
2364
- });
2365
- Object.defineProperty(exports, 'constructDynamicNodeGroups2', {
2366
- enumerable: true,
2367
- get: function () {
2368
- return constructDynamicNodeGroups2;
2369
- }
2370
- });
2371
- Object.defineProperty(exports, 'constructPreloadedTree', {
2372
- enumerable: true,
2373
- get: function () {
2374
- return constructPreloadedTree;
2375
- }
2376
- });
2377
- Object.defineProperty(exports, 'constructStaticNodeGroups', {
2378
- enumerable: true,
2379
- get: function () {
2380
- return constructStaticNodeGroups;
2381
- }
2382
- });
2383
- Object.defineProperty(exports, 'deleteNode', {
2384
- enumerable: true,
2385
- get: function () {
2386
- return deleteNode;
2387
- }
2388
- });
2389
- Object.defineProperty(exports, 'deleteNodeAndChildren', {
2390
- enumerable: true,
2391
- get: function () {
2392
- return deleteNodeAndChildren;
2393
- }
2394
- });
2395
- Object.defineProperty(exports, 'evaluateRule', {
2396
- enumerable: true,
2397
- get: function () {
2398
- return evaluateRule;
2399
- }
2400
- });
2401
- Object.defineProperty(exports, 'expandAllNodes', {
2402
- enumerable: true,
2403
- get: function () {
2404
- return expandAllNodes;
2405
- }
2406
- });
2407
- Object.defineProperty(exports, 'findAllParentIds', {
2408
- enumerable: true,
2409
- get: function () {
2410
- return findAllParentIds;
2411
- }
2412
- });
2413
- Object.defineProperty(exports, 'findLastNode', {
2414
- enumerable: true,
2415
- get: function () {
2416
- return findLastNode;
2417
- }
2418
- });
2419
- Object.defineProperty(exports, 'findNodeById', {
2420
- enumerable: true,
2421
- get: function () {
2422
- return findNodeById;
2423
- }
2424
- });
2425
- Object.defineProperty(exports, 'findNodeByIdAndLabel', {
2426
- enumerable: true,
2427
- get: function () {
2428
- return findNodeByIdAndLabel;
2429
- }
2430
- });
2431
- Object.defineProperty(exports, 'findNodesByIdAndLabel', {
2432
- enumerable: true,
2433
- get: function () {
2434
- return findNodesByIdAndLabel;
2435
- }
2436
- });
2437
- Object.defineProperty(exports, 'formatTreeLabel', {
2438
- enumerable: true,
2439
- get: function () {
2440
- return formatTreeLabel;
2441
- }
2442
- });
2443
- Object.defineProperty(exports, 'formatTreeMenuItem', {
2444
- enumerable: true,
2445
- get: function () {
2446
- return formatTreeMenuItem;
2447
- }
2448
- });
2449
- Object.defineProperty(exports, 'getAllChildrenNodesToDelete', {
2450
- enumerable: true,
2451
- get: function () {
2452
- return getAllChildrenNodesToDelete;
2453
- }
2454
- });
2455
- Object.defineProperty(exports, 'getDisplayDetails', {
2456
- enumerable: true,
2457
- get: function () {
2458
- return getDisplayDetails;
2459
- }
2460
- });
2461
- Object.defineProperty(exports, 'getDisplayName', {
2462
- enumerable: true,
2463
- get: function () {
2464
- return getDisplayName;
2465
- }
2466
- });
2467
- Object.defineProperty(exports, 'getHeaderTitle', {
2468
- enumerable: true,
2469
- get: function () {
2470
- return getHeaderTitle;
2471
- }
2472
- });
2473
- Object.defineProperty(exports, 'getIconFromName', {
2474
- enumerable: true,
2475
- get: function () {
2476
- return getIconFromName;
2477
- }
2478
- });
2479
- Object.defineProperty(exports, 'getLazyLoadChildrenArr', {
2480
- enumerable: true,
2481
- get: function () {
2482
- return getLazyLoadChildrenArr;
2483
- }
2484
- });
2485
- Object.defineProperty(exports, 'getNodeIdForRightBorder', {
2486
- enumerable: true,
2487
- get: function () {
2488
- return getNodeIdForRightBorder;
2489
- }
2490
- });
2491
- Object.defineProperty(exports, 'getOrderedDynamicGroups', {
2492
- enumerable: true,
2493
- get: function () {
2494
- return getOrderedDynamicGroups;
2495
- }
2496
- });
2497
- Object.defineProperty(exports, 'getPropertyMappingList', {
2498
- enumerable: true,
2499
- get: function () {
2500
- return getPropertyMappingList;
2501
- }
2502
- });
2503
- Object.defineProperty(exports, 'getPropertyMappingObj', {
2504
- enumerable: true,
2505
- get: function () {
2506
- return getPropertyMappingObj;
2507
- }
2508
- });
2509
- Object.defineProperty(exports, 'getSearchValueString', {
2510
- enumerable: true,
2511
- get: function () {
2512
- return getSearchValueString;
2513
- }
2514
- });
2515
- Object.defineProperty(exports, 'getUnityIconFromName', {
2516
- enumerable: true,
2517
- get: function () {
2518
- return getUnityIconFromName;
2519
- }
2520
- });
2521
- Object.defineProperty(exports, 'makeDynamicGroupStructures', {
2522
- enumerable: true,
2523
- get: function () {
2524
- return makeDynamicGroupStructures;
2525
- }
2526
- });
2527
- Object.defineProperty(exports, 'makeDynamicTreeStructure', {
2528
- enumerable: true,
2529
- get: function () {
2530
- return makeDynamicTreeStructure;
2531
- }
2532
- });
2533
- Object.defineProperty(exports, 'makeTreeStaticGroupStructure', {
2534
- enumerable: true,
2535
- get: function () {
2536
- return makeTreeStaticGroupStructure;
2537
- }
2538
- });
2539
- Object.defineProperty(exports, 'makeTreeStructure', {
2540
- enumerable: true,
2541
- get: function () {
2542
- return makeTreeStructure;
2543
- }
2544
- });
2545
- Object.defineProperty(exports, 'mapNodeGroupChildren', {
2546
- enumerable: true,
2547
- get: function () {
2548
- return mapNodeGroupChildren;
2549
- }
2550
- });
2551
- Object.defineProperty(exports, 'mapNodeObjValuesToSearchParameters', {
2552
- enumerable: true,
2553
- get: function () {
2554
- return mapNodeObjValuesToSearchParameters;
2555
- }
2556
- });
2557
- Object.defineProperty(exports, 'mapRule', {
2558
- enumerable: true,
2559
- get: function () {
2560
- return mapRule;
2561
- }
2562
- });
2563
- Object.defineProperty(exports, 'mapRuleData', {
2564
- enumerable: true,
2565
- get: function () {
2566
- return mapRuleData;
2567
- }
2568
- });
2569
- Object.defineProperty(exports, 'processCatalogObjectKeysInOrder', {
2570
- enumerable: true,
2571
- get: function () {
2572
- return processCatalogObjectKeysInOrder;
2573
- }
2574
- });
2575
- Object.defineProperty(exports, 'processItemForDynamicNodeGroups', {
2576
- enumerable: true,
2577
- get: function () {
2578
- return processItemForDynamicNodeGroups;
2579
- }
2580
- });
2581
- Object.defineProperty(exports, 'processItemForStaticNodeGroup', {
2582
- enumerable: true,
2583
- get: function () {
2584
- return processItemForStaticNodeGroup;
2585
- }
2586
- });
2587
- Object.defineProperty(exports, 'processObjIndex', {
2588
- enumerable: true,
2589
- get: function () {
2590
- return processObjIndex;
2591
- }
2592
- });
2593
- Object.defineProperty(exports, 'processObjectToTree', {
2594
- enumerable: true,
2595
- get: function () {
2596
- return processObjectToTree;
2597
- }
2598
- });
2599
- Object.defineProperty(exports, 'processOrderedTreeData', {
2600
- enumerable: true,
2601
- get: function () {
2602
- return processOrderedTreeData;
2603
- }
2604
- });
2605
- Object.defineProperty(exports, 'processReferences', {
2606
- enumerable: true,
2607
- get: function () {
2608
- return processReferences;
2609
- }
2610
- });
2611
- Object.defineProperty(exports, 'require_defineProperty', {
2612
- enumerable: true,
2613
- get: function () {
2614
- return require_defineProperty;
2615
- }
2616
- });
2617
- Object.defineProperty(exports, 'searchForMatchingNode', {
2618
- enumerable: true,
2619
- get: function () {
2620
- return searchForMatchingNode;
2621
- }
2622
- });
2623
- Object.defineProperty(exports, 'searchTree', {
2624
- enumerable: true,
2625
- get: function () {
2626
- return searchTree;
2627
- }
2628
- });
2629
- Object.defineProperty(exports, 'transformMenuPageTree', {
2630
- enumerable: true,
2631
- get: function () {
2632
- return transformMenuPageTree;
2633
- }
2634
- });
2635
- Object.defineProperty(exports, 'unityIcons', {
2636
- enumerable: true,
2637
- get: function () {
2638
- return unityIcons;
2639
- }
2640
- });
2641
- Object.defineProperty(exports, 'updateTreeIds', {
2642
- enumerable: true,
2643
- get: function () {
2644
- return updateTreeIds;
2645
- }
2646
- });
2647
- //# sourceMappingURL=UtilitySideBar-CoLVUjcV.cjs.map