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

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 (962) hide show
  1. package/dist/AmbientGridTemplate-CvXWVsCb.cjs +4205 -0
  2. package/dist/AmbientGridTemplate-CvXWVsCb.cjs.map +1 -0
  3. package/dist/AmbientGridTemplate-Dq2QYPF2.js +3905 -0
  4. package/dist/AmbientGridTemplate-Dq2QYPF2.js.map +1 -0
  5. package/dist/EnvironmentRibbon-CgKsTmQ7.cjs +1558 -0
  6. package/dist/EnvironmentRibbon-CgKsTmQ7.cjs.map +1 -0
  7. package/dist/EnvironmentRibbon-DBJftQWQ.js +1108 -0
  8. package/dist/EnvironmentRibbon-DBJftQWQ.js.map +1 -0
  9. package/dist/MenuPage-DNywMmn2.cjs +562 -0
  10. package/dist/MenuPage-DNywMmn2.cjs.map +1 -0
  11. package/dist/MenuPage-MyE8iJHD.js +561 -0
  12. package/dist/MenuPage-MyE8iJHD.js.map +1 -0
  13. package/dist/MyExportsPage-B-xwnIEc.js +724 -0
  14. package/dist/MyExportsPage-B-xwnIEc.js.map +1 -0
  15. package/dist/MyExportsPage-C-NEjmfQ.cjs +8 -0
  16. package/dist/MyExportsPage-CKwuN1wj.js +8 -0
  17. package/dist/MyExportsPage-CcO8Mf8y.cjs +778 -0
  18. package/dist/MyExportsPage-CcO8Mf8y.cjs.map +1 -0
  19. package/dist/PageContainer-DFKnbhBN.cjs +1858 -0
  20. package/dist/PageContainer-DFKnbhBN.cjs.map +1 -0
  21. package/dist/PageContainer-SljTiaZr.js +1756 -0
  22. package/dist/PageContainer-SljTiaZr.js.map +1 -0
  23. package/dist/PageNotFoundRoute-BR4QPROq.js +112 -0
  24. package/dist/PageNotFoundRoute-BR4QPROq.js.map +1 -0
  25. package/dist/PageNotFoundRoute-B_3_Yw5c.js +3 -0
  26. package/dist/PageNotFoundRoute-Cu88CEUm.cjs +124 -0
  27. package/dist/PageNotFoundRoute-Cu88CEUm.cjs.map +1 -0
  28. package/dist/PageNotFoundRoute-DNBUulJh.cjs +3 -0
  29. package/dist/PasswordResetRedirect-BXP3ftKb.js +86 -0
  30. package/dist/PasswordResetRedirect-BXP3ftKb.js.map +1 -0
  31. package/dist/PasswordResetRedirect-CX9MEbof.js +3 -0
  32. package/dist/PasswordResetRedirect-CYJBeZIA.cjs +122 -0
  33. package/dist/PasswordResetRedirect-CYJBeZIA.cjs.map +1 -0
  34. package/dist/PasswordResetRedirect-DbPv1Au9.cjs +3 -0
  35. package/dist/SearchUtilities-BYR03EFr.cjs +232 -0
  36. package/dist/SearchUtilities-BYR03EFr.cjs.map +1 -0
  37. package/dist/SearchUtilities-Bl4U_j-0.js +202 -0
  38. package/dist/SearchUtilities-Bl4U_j-0.js.map +1 -0
  39. package/dist/SideSheet-DKR15EH5.js +485 -0
  40. package/dist/SideSheet-DKR15EH5.js.map +1 -0
  41. package/dist/SideSheet-ERkgeXFG.cjs +575 -0
  42. package/dist/SideSheet-ERkgeXFG.cjs.map +1 -0
  43. package/dist/UdpPublicForm-1vK6Ug4-.cjs +5 -0
  44. package/dist/UdpPublicForm-BNe1yTjb.js +41 -0
  45. package/dist/UdpPublicForm-BNe1yTjb.js.map +1 -0
  46. package/dist/UdpPublicForm-C8eVm1sb.js +4 -0
  47. package/dist/UdpPublicForm-fWsuCBoR.cjs +52 -0
  48. package/dist/UdpPublicForm-fWsuCBoR.cjs.map +1 -0
  49. package/dist/UtilitySideBar-CoLVUjcV.cjs +2647 -0
  50. package/dist/UtilitySideBar-CoLVUjcV.cjs.map +1 -0
  51. package/dist/UtilitySideBar-Dz_17lBo.js +2277 -0
  52. package/dist/UtilitySideBar-Dz_17lBo.js.map +1 -0
  53. package/dist/VirtualBrowser-79L67ptM.js +572 -0
  54. package/dist/VirtualBrowser-79L67ptM.js.map +1 -0
  55. package/dist/VirtualBrowser-CBJQrZar.cjs +573 -0
  56. package/dist/VirtualBrowser-CBJQrZar.cjs.map +1 -0
  57. package/dist/WorkflowContainer-0_Aj2YEQ.js +9 -0
  58. package/dist/WorkflowContainer-C06Cr059.cjs +9 -0
  59. package/dist/WorkflowContainer-D8L8yLtX.cjs +1774 -0
  60. package/dist/WorkflowContainer-D8L8yLtX.cjs.map +1 -0
  61. package/dist/WorkflowContainer-mXeP_hbS.js +1708 -0
  62. package/dist/WorkflowContainer-mXeP_hbS.js.map +1 -0
  63. package/dist/apiHelpers-Dyq5plHt.cjs +377 -0
  64. package/dist/apiHelpers-Dyq5plHt.cjs.map +1 -0
  65. package/dist/apiHelpers-ntQQ4i7A.js +257 -0
  66. package/dist/apiHelpers-ntQQ4i7A.js.map +1 -0
  67. package/dist/chunk-Cn1u12Og.js +34 -0
  68. package/dist/chunk-DoeelZqw.cjs +51 -0
  69. package/dist/index.cjs +50843 -0
  70. package/dist/index.cjs.map +1 -0
  71. package/dist/index.d.cts +1727 -0
  72. package/dist/index.d.ts +1723 -439
  73. package/dist/index.js +50113 -0
  74. package/dist/index.js.map +1 -0
  75. package/dist/propertyTypeEnums-BcUuGbb0.js +94 -0
  76. package/dist/propertyTypeEnums-BcUuGbb0.js.map +1 -0
  77. package/dist/propertyTypeEnums-NvvbX8dM.cjs +112 -0
  78. package/dist/propertyTypeEnums-NvvbX8dM.cjs.map +1 -0
  79. package/dist-tsdown/AmbientGridTemplate-C4cO-UBE.js +3851 -0
  80. package/dist-tsdown/AmbientGridTemplate-C4cO-UBE.js.map +1 -0
  81. package/dist-tsdown/AmbientGridTemplate-RvpH04W2.cjs +4151 -0
  82. package/dist-tsdown/AmbientGridTemplate-RvpH04W2.cjs.map +1 -0
  83. package/dist-tsdown/EnvironmentRibbon-C5I-zJ7u.cjs +1546 -0
  84. package/dist-tsdown/EnvironmentRibbon-C5I-zJ7u.cjs.map +1 -0
  85. package/dist-tsdown/EnvironmentRibbon-W5AjvnLN.js +1096 -0
  86. package/dist-tsdown/EnvironmentRibbon-W5AjvnLN.js.map +1 -0
  87. package/dist-tsdown/MenuPage-DsZUwqyz.js +546 -0
  88. package/dist-tsdown/MenuPage-DsZUwqyz.js.map +1 -0
  89. package/dist-tsdown/MenuPage-Zn5ipVRK.cjs +547 -0
  90. package/dist-tsdown/MenuPage-Zn5ipVRK.cjs.map +1 -0
  91. package/dist-tsdown/MyExportsPage-B2wf-kFZ.cjs +763 -0
  92. package/dist-tsdown/MyExportsPage-B2wf-kFZ.cjs.map +1 -0
  93. package/dist-tsdown/MyExportsPage-BuzFo_X_.cjs +8 -0
  94. package/dist-tsdown/MyExportsPage-CuJoA0n6.js +8 -0
  95. package/dist-tsdown/MyExportsPage-DWbSEbU5.js +709 -0
  96. package/dist-tsdown/MyExportsPage-DWbSEbU5.js.map +1 -0
  97. package/dist-tsdown/PageContainer-BG6v3pM7.cjs +1841 -0
  98. package/dist-tsdown/PageContainer-BG6v3pM7.cjs.map +1 -0
  99. package/dist-tsdown/PageContainer-CWhjU1zS.js +1739 -0
  100. package/dist-tsdown/PageContainer-CWhjU1zS.js.map +1 -0
  101. package/dist-tsdown/PageNotFoundRoute-CciC9cPY.cjs +124 -0
  102. package/dist-tsdown/PageNotFoundRoute-CciC9cPY.cjs.map +1 -0
  103. package/dist-tsdown/PageNotFoundRoute-DsRSLpI6.js +3 -0
  104. package/dist-tsdown/PageNotFoundRoute-Z5qYmErL.js +112 -0
  105. package/dist-tsdown/PageNotFoundRoute-Z5qYmErL.js.map +1 -0
  106. package/dist-tsdown/PageNotFoundRoute-aJr2o81C.cjs +3 -0
  107. package/dist-tsdown/PasswordResetRedirect-1cRmBJvr.cjs +3 -0
  108. package/dist-tsdown/PasswordResetRedirect-BMHXzpvb.js +3 -0
  109. package/dist-tsdown/PasswordResetRedirect-D6RVOdwy.js +82 -0
  110. package/dist-tsdown/PasswordResetRedirect-D6RVOdwy.js.map +1 -0
  111. package/dist-tsdown/PasswordResetRedirect-DRhK3lVL.cjs +118 -0
  112. package/dist-tsdown/PasswordResetRedirect-DRhK3lVL.cjs.map +1 -0
  113. package/dist-tsdown/SearchUtilities-URbeAh75.js +186 -0
  114. package/dist-tsdown/SearchUtilities-URbeAh75.js.map +1 -0
  115. package/dist-tsdown/SearchUtilities-kF1roS4F.cjs +216 -0
  116. package/dist-tsdown/SearchUtilities-kF1roS4F.cjs.map +1 -0
  117. package/dist-tsdown/SideSheet-DcEfnfH_.js +362 -0
  118. package/dist-tsdown/SideSheet-DcEfnfH_.js.map +1 -0
  119. package/dist-tsdown/SideSheet-XOQ0yjmY.cjs +410 -0
  120. package/dist-tsdown/SideSheet-XOQ0yjmY.cjs.map +1 -0
  121. package/dist-tsdown/UdpPublicForm-BZff9-Hy.js +4 -0
  122. package/dist-tsdown/UdpPublicForm-CaWFfHLQ.cjs +5 -0
  123. package/dist-tsdown/UdpPublicForm-DFEJakHu.cjs +52 -0
  124. package/dist-tsdown/UdpPublicForm-DFEJakHu.cjs.map +1 -0
  125. package/dist-tsdown/UdpPublicForm-EOSy6X_O.js +41 -0
  126. package/dist-tsdown/UdpPublicForm-EOSy6X_O.js.map +1 -0
  127. package/dist-tsdown/UtilitySideBar-C-5lGIvy.cjs +2503 -0
  128. package/dist-tsdown/UtilitySideBar-C-5lGIvy.cjs.map +1 -0
  129. package/dist-tsdown/UtilitySideBar-D4Gdx13d.js +2138 -0
  130. package/dist-tsdown/UtilitySideBar-D4Gdx13d.js.map +1 -0
  131. package/dist-tsdown/VirtualBrowser-DmgmfhWg.cjs +568 -0
  132. package/dist-tsdown/VirtualBrowser-DmgmfhWg.cjs.map +1 -0
  133. package/dist-tsdown/VirtualBrowser-OXhftZwa.js +567 -0
  134. package/dist-tsdown/VirtualBrowser-OXhftZwa.js.map +1 -0
  135. package/dist-tsdown/WorkflowContainer-BdakMxJP.js +9 -0
  136. package/dist-tsdown/WorkflowContainer-Bm1FHgJq.cjs +1718 -0
  137. package/dist-tsdown/WorkflowContainer-Bm1FHgJq.cjs.map +1 -0
  138. package/dist-tsdown/WorkflowContainer-C2W0pr5f.js +1652 -0
  139. package/dist-tsdown/WorkflowContainer-C2W0pr5f.js.map +1 -0
  140. package/dist-tsdown/WorkflowContainer-C9hsSvOg.cjs +9 -0
  141. package/dist-tsdown/apiHelpers-DtpC3VqG.js +253 -0
  142. package/dist-tsdown/apiHelpers-DtpC3VqG.js.map +1 -0
  143. package/dist-tsdown/apiHelpers-TkqtXraB.cjs +373 -0
  144. package/dist-tsdown/apiHelpers-TkqtXraB.cjs.map +1 -0
  145. package/dist-tsdown/assets/images/phone.png +0 -0
  146. package/dist-tsdown/assets/paymentIcons/american-logo.svg +71 -0
  147. package/dist-tsdown/assets/paymentIcons/amex.svg +101 -0
  148. package/dist-tsdown/assets/paymentIcons/diners.svg +1 -0
  149. package/dist-tsdown/assets/paymentIcons/discover-logo.svg +1 -0
  150. package/dist-tsdown/assets/paymentIcons/discover.svg +1 -0
  151. package/dist-tsdown/assets/paymentIcons/echeck-logo.svg +6 -0
  152. package/dist-tsdown/assets/paymentIcons/jcb.svg +64 -0
  153. package/dist-tsdown/assets/paymentIcons/mastercard-logo.svg +11 -0
  154. package/dist-tsdown/assets/paymentIcons/mastercard.svg +1 -0
  155. package/dist-tsdown/assets/paymentIcons/unionpay.svg +9 -0
  156. package/dist-tsdown/assets/paymentIcons/visa-logo.svg +76 -0
  157. package/dist-tsdown/assets/paymentIcons/visa.svg +60 -0
  158. package/dist-tsdown/assets/unityIcons/NoEntityOpened.svg +7 -0
  159. package/dist-tsdown/assets/unityIcons/Sewer.svg +1 -0
  160. package/dist-tsdown/assets/unityIcons/TruckIcon.svg +8 -0
  161. package/dist-tsdown/assets/unityIcons/WaterDrop.svg +43 -0
  162. package/dist-tsdown/chunk-CHLpw0oG.js +25 -0
  163. package/dist-tsdown/chunk-CsX-DzYB.cjs +42 -0
  164. package/dist-tsdown/componentSystems/pageRenderer/style/style.css +5 -0
  165. package/dist-tsdown/index.cjs +49909 -0
  166. package/dist-tsdown/index.cjs.map +1 -0
  167. package/dist-tsdown/index.d.cts +1727 -0
  168. package/dist-tsdown/index.d.ts +1723 -0
  169. package/dist-tsdown/index.js +49180 -0
  170. package/dist-tsdown/index.js.map +1 -0
  171. package/dist-tsdown/map-library/Map/Map.css +11 -0
  172. package/dist-tsdown/maps/openLayerMaps/Map/Map.css +11 -0
  173. package/dist-tsdown/propertyTypeEnums-CaDtepcE.js +144 -0
  174. package/dist-tsdown/propertyTypeEnums-CaDtepcE.js.map +1 -0
  175. package/dist-tsdown/propertyTypeEnums-Cn4wJJc5.cjs +174 -0
  176. package/dist-tsdown/propertyTypeEnums-Cn4wJJc5.cjs.map +1 -0
  177. package/dist-tsdown/stories/assets/code-brackets.svg +1 -0
  178. package/dist-tsdown/stories/assets/colors.svg +1 -0
  179. package/dist-tsdown/stories/assets/comments.svg +1 -0
  180. package/dist-tsdown/stories/assets/direction.svg +1 -0
  181. package/dist-tsdown/stories/assets/flow.svg +1 -0
  182. package/dist-tsdown/stories/assets/plugin.svg +1 -0
  183. package/dist-tsdown/stories/assets/repo.svg +1 -0
  184. package/dist-tsdown/stories/assets/stackalt.svg +1 -0
  185. package/dist-tsdown/stories/button.css +30 -0
  186. package/dist-tsdown/stories/header.css +26 -0
  187. package/dist-tsdown/stories/page.css +69 -0
  188. package/dist-tsdown/style.css +49 -0
  189. package/dist-tsdown/styles.module.css +9 -0
  190. package/dist-tsdown/utilities/aggrid/ag-grid-styles.scss +46 -0
  191. package/package.json +20 -10
  192. package/dist/AGLicense.d.ts +0 -1
  193. package/dist/MenuPage-Bkxf-uer.js +0 -556
  194. package/dist/UI/AlertContainer.d.ts +0 -1
  195. package/dist/UI/Box.d.ts +0 -1
  196. package/dist/UI/Grid.d.ts +0 -1
  197. package/dist/UI/SuccessAction.d.ts +0 -1
  198. package/dist/UI/accordion/Accordion.d.ts +0 -1
  199. package/dist/UI/charts/InsightRenderer.d.ts +0 -19
  200. package/dist/UI/charts/UdpBarChart.d.ts +0 -6
  201. package/dist/UI/charts/UdpDistributionChart.d.ts +0 -5
  202. package/dist/UI/charts/UdpDonutChart.d.ts +0 -7
  203. package/dist/UI/charts/UdpLineChart.d.ts +0 -6
  204. package/dist/UI/charts/index.d.ts +0 -6
  205. package/dist/UI/charts/types.d.ts +0 -62
  206. package/dist/UI/components/dataDisplay/Ellipse.d.ts +0 -8
  207. package/dist/UI/components/dataDisplay/EmailDisplay.d.ts +0 -1
  208. package/dist/UI/components/dataDisplay/SmsDisplay.d.ts +0 -1
  209. package/dist/UI/components/dataDisplay/Sticky.d.ts +0 -8
  210. package/dist/UI/components/dataDisplay/Token.d.ts +0 -13
  211. package/dist/UI/components/feedback/Adornment.d.ts +0 -6
  212. package/dist/UI/containers/DynamicContainerWithMenu.d.ts +0 -1
  213. package/dist/UI/dataDisplay/AmbientList.d.ts +0 -15
  214. package/dist/UI/dataDisplay/AvatarAlphabet.d.ts +0 -1
  215. package/dist/UI/dataDisplay/ChipAlphabet.d.ts +0 -6
  216. package/dist/UI/dataDisplay/CompactDataList.d.ts +0 -1
  217. package/dist/UI/dataDisplay/CompactDataListItem.d.ts +0 -1
  218. package/dist/UI/dataDisplay/EmptyStateDisplay.d.ts +0 -22
  219. package/dist/UI/dataDisplay/FluentActivity/FluentActivity.d.ts +0 -1
  220. package/dist/UI/dataDisplay/FluentActivity/FluentActivityRow.d.ts +0 -1
  221. package/dist/UI/dataDisplay/FluentDataTable/FluentBody/index.d.ts +0 -8
  222. package/dist/UI/dataDisplay/FluentDataTable/FluentCell/index.d.ts +0 -62
  223. package/dist/UI/dataDisplay/FluentDataTable/FluentDataTable.d.ts +0 -11
  224. package/dist/UI/dataDisplay/FluentDataTable/FluentHead/index.d.ts +0 -9
  225. package/dist/UI/dataDisplay/FluentDataTable/FluentRow/index.d.ts +0 -8
  226. package/dist/UI/dataDisplay/FluentListElement.d.ts +0 -8
  227. package/dist/UI/dataDisplay/FluentListItem.d.ts +0 -1
  228. package/dist/UI/dataDisplay/GraphCard.d.ts +0 -10
  229. package/dist/UI/dataDisplay/HeaderExpander.d.ts +0 -11
  230. package/dist/UI/dataDisplay/HintPanel.d.ts +0 -10
  231. package/dist/UI/dataDisplay/StatusChip.d.ts +0 -9
  232. package/dist/UI/dataDisplay/StatusFlags.d.ts +0 -8
  233. package/dist/UI/dataDisplay/SummaryBlock.d.ts +0 -16
  234. package/dist/UI/dataDisplay/TimelineCalendar.d.ts +0 -1
  235. package/dist/UI/dataDisplay/address/AddressListItem.d.ts +0 -3
  236. package/dist/UI/dataDisplay/cardList/CardList.d.ts +0 -49
  237. package/dist/UI/dataDisplay/cardList/enum.d.ts +0 -5
  238. package/dist/UI/dataDisplay/directory/Directory.d.ts +0 -9
  239. package/dist/UI/dataDisplay/directory/DirectoryListItem.d.ts +0 -4
  240. package/dist/UI/dataDisplay/entityHeader/EntityHeader.d.ts +0 -12
  241. package/dist/UI/dataDisplay/entityHeader/functions/groupSectionData.d.ts +0 -2
  242. package/dist/UI/dataDisplay/entityHeader/functions/useDivideArrayIntoGroups.d.ts +0 -2
  243. package/dist/UI/dataDisplay/entityHeader/functions/useElementWidth.d.ts +0 -14
  244. package/dist/UI/dataDisplay/entityHeader/ui/AlertPill.d.ts +0 -22
  245. package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderContainer.d.ts +0 -20
  246. package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderFlags.d.ts +0 -4
  247. package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderList.d.ts +0 -1
  248. package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderListItem.d.ts +0 -1
  249. package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderSection.d.ts +0 -19
  250. package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderStatList.d.ts +0 -1
  251. package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderStatListItem.d.ts +0 -1
  252. package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderStats.d.ts +0 -3
  253. package/dist/UI/dataDisplay/map/ColorKey.d.ts +0 -10
  254. package/dist/UI/dataDisplay/map/FluentIconKey.d.ts +0 -2
  255. package/dist/UI/dataDisplay/map/IconKey.d.ts +0 -10
  256. package/dist/UI/dataDisplay/notes/Note.d.ts +0 -7
  257. package/dist/UI/dataDisplay/notes/Notes.d.ts +0 -6
  258. package/dist/UI/dataDisplay/ticketCard/NotificationElement.d.ts +0 -8
  259. package/dist/UI/dataDisplay/ticketCard/StatusLineItem.d.ts +0 -16
  260. package/dist/UI/dataDisplay/ticketCard/TicketCard.d.ts +0 -22
  261. package/dist/UI/dataDisplay/typography/FormHeaders.d.ts +0 -2
  262. package/dist/UI/dataDisplay/typography/SideSheetHeader.d.ts +0 -4
  263. package/dist/UI/dataDisplay/typography/SidebarHeader.d.ts +0 -1
  264. package/dist/UI/dataDisplay/typography/StandardTitle.d.ts +0 -1
  265. package/dist/UI/dataDisplay/typography/StylizedTitle.d.ts +0 -16
  266. package/dist/UI/dataDisplay/typography/Typography.d.ts +0 -1
  267. package/dist/UI/dataDisplay/visualization/AmbientVisualizer.d.ts +0 -63
  268. package/dist/UI/dataDisplay/visualization/GaugeGraph.d.ts +0 -1
  269. package/dist/UI/dataDisplay/visualization/RatioVisulization.d.ts +0 -5
  270. package/dist/UI/dataDisplay/visualization/amCharts/AmChart.d.ts +0 -1
  271. package/dist/UI/dataDisplay/visualization/amCharts/AmSankeyChart.d.ts +0 -2
  272. package/dist/UI/demos/InputsExample.d.ts +0 -2
  273. package/dist/UI/feedback/AmbientAlert.d.ts +0 -12
  274. package/dist/UI/feedback/AmbientToast.d.ts +0 -1
  275. package/dist/UI/feedback/FluentDialog.d.ts +0 -1
  276. package/dist/UI/feedback/NodeLoader.d.ts +0 -4
  277. package/dist/UI/feedback/PageLoading.d.ts +0 -1
  278. package/dist/UI/fileViewer/FileViewer.d.ts +0 -1
  279. package/dist/UI/fileViewer/imageSlider/Image.d.ts +0 -1
  280. package/dist/UI/fileViewer/imageSlider/ImageFooter.d.ts +0 -1
  281. package/dist/UI/fileViewer/imageSlider/ImageSlider.d.ts +0 -1
  282. package/dist/UI/fileViewer/imageSlider/ImageViewerSideSheet.d.ts +0 -1
  283. package/dist/UI/fileViewer/pdfViewer/ControlPanel.d.ts +0 -2
  284. package/dist/UI/fileViewer/pdfViewer/PDFViewer.d.ts +0 -11
  285. package/dist/UI/fileViewer/utils/fileTypes.d.ts +0 -1
  286. package/dist/UI/fileViewer/utils/fileUtils.d.ts +0 -2
  287. package/dist/UI/floorplans/CoreLayoutFloorplan.d.ts +0 -51
  288. package/dist/UI/forms/CrudForm.d.ts +0 -11
  289. package/dist/UI/forms/LoginForm.d.ts +0 -1
  290. package/dist/UI/forms/PaymentReversalForm.d.ts +0 -5
  291. package/dist/UI/forms/UdpCrudFormFields.d.ts +0 -6
  292. package/dist/UI/forms/VirtualForm.d.ts +0 -8
  293. package/dist/UI/iframe/Iframe.d.ts +0 -1
  294. package/dist/UI/inputs/buttons/AdvanceButton.d.ts +0 -4
  295. package/dist/UI/inputs/buttons/AmbientCardButton.d.ts +0 -9
  296. package/dist/UI/inputs/buttons/AmbientChipButton.d.ts +0 -1
  297. package/dist/UI/inputs/buttons/AmbientPopoverMenuItem.d.ts +0 -5
  298. package/dist/UI/inputs/buttons/AmbientToggleButton.d.ts +0 -15
  299. package/dist/UI/inputs/buttons/AmbientToggleButtonGroup.d.ts +0 -1
  300. package/dist/UI/inputs/buttons/AmbientToggleButtonGroupDefault.d.ts +0 -44
  301. package/dist/UI/inputs/buttons/AmbientTokenButton.d.ts +0 -1
  302. package/dist/UI/inputs/buttons/FUISquareIconButton.d.ts +0 -5
  303. package/dist/UI/inputs/buttons/FluentButton.d.ts +0 -1
  304. package/dist/UI/inputs/buttons/FluentCompoundButton.d.ts +0 -1
  305. package/dist/UI/inputs/buttons/FluentIconButton.d.ts +0 -1
  306. package/dist/UI/inputs/buttons/FluentMenuListButton.d.ts +0 -6
  307. package/dist/UI/inputs/buttons/FluentMenuListItem.d.ts +0 -6
  308. package/dist/UI/inputs/buttons/FluentUploadButton.d.ts +0 -1
  309. package/dist/UI/inputs/buttons/FluentUploadIconButton.d.ts +0 -1
  310. package/dist/UI/inputs/buttons/IconButtonWithToolTip.d.ts +0 -11
  311. package/dist/UI/inputs/buttons/PrimaryActionButton.d.ts +0 -6
  312. package/dist/UI/inputs/buttons/ToolBarButton.d.ts +0 -11
  313. package/dist/UI/inputs/calendar/AmbientDateRangeSelector.d.ts +0 -1
  314. package/dist/UI/inputs/calendar/AmbientSingleDateSelector.d.ts +0 -1
  315. package/dist/UI/inputs/checkbox/FluentCheckbox.d.ts +0 -1
  316. package/dist/UI/inputs/datetimes/DateField.d.ts +0 -1
  317. package/dist/UI/inputs/datetimes/DateTimeField.d.ts +0 -1
  318. package/dist/UI/inputs/datetimes/TimeField.d.ts +0 -1
  319. package/dist/UI/inputs/fieldArrayCard/AutocompleteFinalField.d.ts +0 -2
  320. package/dist/UI/inputs/fieldArrayCard/DateRangeField.d.ts +0 -2
  321. package/dist/UI/inputs/fieldArrayCard/FieldArrayCard.d.ts +0 -1
  322. package/dist/UI/inputs/fieldArrayCard/SearchSideSheet.d.ts +0 -2
  323. package/dist/UI/inputs/fieldArrayCard/fieldArrayCardEnum.d.ts +0 -10
  324. package/dist/UI/inputs/link/BreadCrumbMenu.d.ts +0 -1
  325. package/dist/UI/inputs/link/FluentLink.d.ts +0 -1
  326. package/dist/UI/inputs/menus/AmbientStepper/AmbientStepContent.d.ts +0 -9
  327. package/dist/UI/inputs/menus/AmbientStepper/AmbientStepper.d.ts +0 -5
  328. package/dist/UI/inputs/menus/AmbientStepper/StepLabel.d.ts +0 -49
  329. package/dist/UI/inputs/menus/FluentScrollLoadAutocompleteMenu.d.ts +0 -44
  330. package/dist/UI/inputs/menus/FluentSelectDirectoryMenu.d.ts +0 -6
  331. package/dist/UI/inputs/menus/FluentSelectGroupMenu.d.ts +0 -7
  332. package/dist/UI/inputs/menus/FluentSelectMenu-old.d.ts +0 -1
  333. package/dist/UI/inputs/menus/FluentSelectMenu.d.ts +0 -9
  334. package/dist/UI/inputs/menus/FluentSimpleSelect.d.ts +0 -1
  335. package/dist/UI/inputs/pickers/FluentColorPicker.d.ts +0 -1
  336. package/dist/UI/inputs/pickers/FluentDatePicker.d.ts +0 -6
  337. package/dist/UI/inputs/pickers/FluentDateTimePicker.d.ts +0 -6
  338. package/dist/UI/inputs/pickers/FluentTimePicker.d.ts +0 -7
  339. package/dist/UI/inputs/pickers/UdpDateSelector.d.ts +0 -10
  340. package/dist/UI/inputs/pickers/UdpTimeSelector.d.ts +0 -8
  341. package/dist/UI/inputs/radio/FluentRadio.d.ts +0 -1
  342. package/dist/UI/inputs/radio/FluentRadioGroup.d.ts +0 -1
  343. package/dist/UI/inputs/richEditors/CkRichEditor.d.ts +0 -1
  344. package/dist/UI/inputs/sliders/FluentInputSlider.d.ts +0 -2
  345. package/dist/UI/inputs/textField/AmbientAutoComplete.d.ts +0 -1
  346. package/dist/UI/inputs/textField/AmbientTextField.d.ts +0 -9
  347. package/dist/UI/inputs/textField/FluentSearchField.d.ts +0 -1
  348. package/dist/UI/inputs/textField/FluentTagField.d.ts +0 -2
  349. package/dist/UI/inputs/textField/FluentTextField.d.ts +0 -2
  350. package/dist/UI/inputs/textField/FluentTextFieldAutoComplete.d.ts +0 -1
  351. package/dist/UI/inputs/textField/KeyValueTextField.d.ts +0 -1
  352. package/dist/UI/inputs/toggle/FluentToggle.d.ts +0 -1
  353. package/dist/UI/loading/CircularProgress.d.ts +0 -1
  354. package/dist/UI/loading/LinearProgress.d.ts +0 -1
  355. package/dist/UI/loading/LoadingIndicator.d.ts +0 -4
  356. package/dist/UI/loading/LoadingOverlay.d.ts +0 -4
  357. package/dist/UI/mapLayout/MapLayout.d.ts +0 -1
  358. package/dist/UI/mapLayout/ui/ActionsRenderer.d.ts +0 -2
  359. package/dist/UI/mapLayout/ui/CheckboxGroup.d.ts +0 -1
  360. package/dist/UI/mapLayout/ui/CheckboxList.d.ts +0 -1
  361. package/dist/UI/mapLayout/ui/CompactCard.d.ts +0 -1
  362. package/dist/UI/mapLayout/ui/ListCard.d.ts +0 -9
  363. package/dist/UI/mapLayout/ui/ListView.d.ts +0 -2
  364. package/dist/UI/mapLayout/ui/MapLayoutToolbar.d.ts +0 -2
  365. package/dist/UI/mapLayout/ui/PopoverCard.d.ts +0 -1
  366. package/dist/UI/mapLayout/ui/PopoverOverlay.d.ts +0 -2
  367. package/dist/UI/mapLayout/ui/Statistic.d.ts +0 -1
  368. package/dist/UI/mapLayout/utilities/MapUtilities.d.ts +0 -12
  369. package/dist/UI/maps/UdpMap.d.ts +0 -66
  370. package/dist/UI/maps/UdpMapComponent.d.ts +0 -64
  371. package/dist/UI/maps/UdpMapToolbar.d.ts +0 -49
  372. package/dist/UI/navigation/FluentSideNav.d.ts +0 -1
  373. package/dist/UI/navigation/menus/AppMenu.d.ts +0 -6
  374. package/dist/UI/navigation/menus/AppMenuItem.d.ts +0 -24
  375. package/dist/UI/navigation/menus/AppMenuItemComponent.d.ts +0 -1
  376. package/dist/UI/navigation/menus/Expander.d.ts +0 -1
  377. package/dist/UI/navigation/menus/ExpanderItem.d.ts +0 -4
  378. package/dist/UI/navigation/menus/FluentMenuListItem.d.ts +0 -5
  379. package/dist/UI/navigation/tabs/UdpTabPanel.d.ts +0 -1
  380. package/dist/UI/navigation/tabs/UdpTabUtility.d.ts +0 -1
  381. package/dist/UI/navigation/tabs/UdpTabs.d.ts +0 -1
  382. package/dist/UI/navigation/tabs/defaultTabs/FluentSimpleTab.d.ts +0 -1
  383. package/dist/UI/navigation/tabs/defaultTabs/FluentSimpleTabs.d.ts +0 -1
  384. package/dist/UI/navigation/tabs/defaultTabs/FluentTabPanel.d.ts +0 -8
  385. package/dist/UI/navigation/tabs/defaultTabs/FluentTabPanels.d.ts +0 -45
  386. package/dist/UI/navigation/tabs/defaultTabs/FluentTabUtility.d.ts +0 -1
  387. package/dist/UI/property/PropertyFields.d.ts +0 -10
  388. package/dist/UI/property/widgets/AutoCompletePropertyWidget.d.ts +0 -7
  389. package/dist/UI/property/widgets/BooleanPropertyWidget.d.ts +0 -7
  390. package/dist/UI/property/widgets/DatePropertyWidget.d.ts +0 -7
  391. package/dist/UI/property/widgets/DateTimePropertyWidget.d.ts +0 -7
  392. package/dist/UI/property/widgets/FloatPropertyWidget.d.ts +0 -7
  393. package/dist/UI/property/widgets/IntegerPropertyWidget.d.ts +0 -7
  394. package/dist/UI/property/widgets/MultilineTextPropertyWidget.d.ts +0 -7
  395. package/dist/UI/property/widgets/NumericPropertyWidget.d.ts +0 -7
  396. package/dist/UI/property/widgets/SelectPropertyWidget.d.ts +0 -7
  397. package/dist/UI/property/widgets/TextPropertyWidget.d.ts +0 -8
  398. package/dist/UI/property/widgets/TimePropertyWidget.d.ts +0 -7
  399. package/dist/UI/property/widgets/index.d.ts +0 -25
  400. package/dist/UI/stepper/types.d.ts +0 -38
  401. package/dist/UI/stepper/udp-stepper.d.ts +0 -2
  402. package/dist/UI/support/SupportCaseForm.d.ts +0 -6
  403. package/dist/UI/support/SupportCaseSideSheet.d.ts +0 -9
  404. package/dist/UI/surfaces/NestedGrid/NestedGrid.d.ts +0 -18
  405. package/dist/UI/surfaces/NestedGrid/ui/ExpandRenderer.d.ts +0 -5
  406. package/dist/UI/surfaces/SideSheet.d.ts +0 -23
  407. package/dist/UI/surfaces/cards/AmbientCard.d.ts +0 -1
  408. package/dist/UI/surfaces/cards/AmbientCardTitle.d.ts +0 -12
  409. package/dist/UI/surfaces/cards/AmbientVisualizationCard.d.ts +0 -10
  410. package/dist/UI/surfaces/cards/BioCard.d.ts +0 -10
  411. package/dist/UI/surfaces/cards/ContentDisplayCard.d.ts +0 -13
  412. package/dist/UI/surfaces/cards/FUICard.d.ts +0 -4
  413. package/dist/UI/surfaces/cards/FUICardHeader.d.ts +0 -2
  414. package/dist/UI/surfaces/cards/FluentCard.d.ts +0 -8
  415. package/dist/UI/surfaces/cards/FluentCardActions.d.ts +0 -4
  416. package/dist/UI/surfaces/cards/FluentCardContent.d.ts +0 -4
  417. package/dist/UI/surfaces/cards/FluentCardHeader.d.ts +0 -4
  418. package/dist/UI/surfaces/cards/FluentCardText.d.ts +0 -1
  419. package/dist/UI/surfaces/cards/InfoCard.d.ts +0 -33
  420. package/dist/UI/surfaces/cards/QuickViewCard.d.ts +0 -8
  421. package/dist/UI/surfaces/cards/newsCard/NewsCard.d.ts +0 -20
  422. package/dist/UI/surfaces/cards/workOrderCard/WorkOrderCard.d.ts +0 -12
  423. package/dist/UI/surfaces/cards/workOrderCard/WorkOrderHeader.d.ts +0 -4
  424. package/dist/UI/templates/AmbientGridTemplate.d.ts +0 -34
  425. package/dist/UI/templates/DraggableSidebarTemplate.d.ts +0 -1
  426. package/dist/UI/templates/OpenPage.d.ts +0 -1
  427. package/dist/UI/templates/SapFlexibleTemplate.d.ts +0 -5
  428. package/dist/UI/templates/ToggleSection.d.ts +0 -11
  429. package/dist/UI/templates/UdpCalendar.d.ts +0 -1
  430. package/dist/UI/templates/UdpCalendarDayView.d.ts +0 -1
  431. package/dist/UI/templates/UdpCalendarMonthView.d.ts +0 -1
  432. package/dist/UI/templates/UdpCalendarWeekView.d.ts +0 -1
  433. package/dist/UI/templates/UdpCalendarYearView.d.ts +0 -1
  434. package/dist/UI/templates/UdpGridTemplate.d.ts +0 -1
  435. package/dist/UI/templates/newGrid/ApiMethodUdpGrid.d.ts +0 -1
  436. package/dist/UI/templates/newGrid/ClientSideUdpGrid.d.ts +0 -1
  437. package/dist/UI/templates/newGrid/ServerSideUdpGrid.d.ts +0 -1
  438. package/dist/UI/templates/ui/ExtenderToggle.d.ts +0 -8
  439. package/dist/UI/templates/ui/GridGroupingHeader.d.ts +0 -10
  440. package/dist/UI/templates/ui/GridGroupingSidebar.d.ts +0 -19
  441. package/dist/UI/templates/ui/GridSidebarContainer.d.ts +0 -7
  442. package/dist/UI/templates/ui/TokenGroupItem.d.ts +0 -12
  443. package/dist/UI/templates/ui/renderers/ActionsRenderer.d.ts +0 -1
  444. package/dist/UI/templates/ui/renderers/IconRenderer.d.ts +0 -1
  445. package/dist/UI/templates/ui/renderers/StatusCellRenderer.d.ts +0 -1
  446. package/dist/UI/timeline/ExtendActions.d.ts +0 -2
  447. package/dist/UI/timeline/ExtendedHeader.d.ts +0 -2
  448. package/dist/UI/timeline/TimeEntryStates.d.ts +0 -1
  449. package/dist/UI/timeline/TimeLine.d.ts +0 -6
  450. package/dist/UI/timeline/TimelineElement.d.ts +0 -2
  451. package/dist/UI/timeline/UdpTimeline.d.ts +0 -1
  452. package/dist/UI/timeline/UdpTimelineContent.d.ts +0 -1
  453. package/dist/UI/timeline/UdpTimelineDot.d.ts +0 -1
  454. package/dist/UI/timeline/UdpTimelineItem.d.ts +0 -1
  455. package/dist/UI/timeline/UdpTimelineItemConnector.d.ts +0 -1
  456. package/dist/UI/timeline/UdpTimelineItemSeparator.d.ts +0 -1
  457. package/dist/UI/timeline/fluentTimeline/FluentTimeline.d.ts +0 -1
  458. package/dist/UI/timeline/fluentTimeline/FluentTimelineContent.d.ts +0 -1
  459. package/dist/UI/timeline/fluentTimeline/FluentTimelineHeader.d.ts +0 -1
  460. package/dist/UI/utilityDisplay/AggregateChip.d.ts +0 -2
  461. package/dist/UI/utilityDisplay/BulkActionsGridButton.d.ts +0 -1
  462. package/dist/UI/utilityDisplay/ChipSection.d.ts +0 -14
  463. package/dist/UI/utilityDisplay/Divider.d.ts +0 -1
  464. package/dist/UI/utilityDisplay/FormControl.d.ts +0 -1
  465. package/dist/UI/utilityDisplay/FormControlLabel.d.ts +0 -1
  466. package/dist/UI/utilityDisplay/GridActionBar.d.ts +0 -13
  467. package/dist/UI/utilityDisplay/GridPrimaryBar.d.ts +0 -23
  468. package/dist/UI/utilityDisplay/GridViewsSideSheet.d.ts +0 -17
  469. package/dist/UI/utilityDisplay/IndicatorChip.d.ts +0 -1
  470. package/dist/UI/utilityDisplay/InputAdornment.d.ts +0 -1
  471. package/dist/UI/utilityDisplay/SaveViewFormDialog.d.ts +0 -16
  472. package/dist/UI/utilityDisplay/UtilityBar.d.ts +0 -1
  473. package/dist/UI/utilityDisplay/UtilitySideBar.d.ts +0 -1
  474. package/dist/UI/utilityDisplay/alerts/UdpAlert.d.ts +0 -2
  475. package/dist/UI/utilityDisplay/alerts/UdpAlertsContainer.d.ts +0 -1
  476. package/dist/UI/utilityDisplay/ui/UtilitySearch.d.ts +0 -5
  477. package/dist/UI/utilityDisplay/utilities/aggregateUtils.d.ts +0 -1
  478. package/dist/UI/utilityDisplay/utilityHeader/PrimaryActionHeader.d.ts +0 -44
  479. package/dist/UI/utilityDisplay/utilityHeader/UtilityTabHeader.d.ts +0 -6
  480. package/dist/UI/utilityDisplay/utilityHeader/ui/PAHAdditionalRightComponent.d.ts +0 -4
  481. package/dist/UI/utilityDisplay/utilityHeader/ui/PAHAdditionalTitleComponent.d.ts +0 -4
  482. package/dist/UI/utilityDisplay/utilityHeader/ui/PAHExport.d.ts +0 -5
  483. package/dist/UI/utilityDisplay/utilityHeader/ui/TeleporterSource.d.ts +0 -8
  484. package/dist/UI/utilityDisplay/utilityHeader/ui/teleporter.d.ts +0 -2
  485. package/dist/UI/widgets/FluentComponents/ChartSummaryToggle.d.ts +0 -2
  486. package/dist/UI/widgets/FluentComponents/FUIMenuItem.d.ts +0 -2
  487. package/dist/UI/widgets/FluentComponents/SimpleTable.d.ts +0 -2
  488. package/dist/UI/widgets/FluentComponents/atoms/FluentDisplayNumbers.d.ts +0 -2
  489. package/dist/UI/widgets/FluentComponents/atoms/FluentStatsSnippet.d.ts +0 -2
  490. package/dist/UI/widgets/FluentComponents/atoms/FluentTrendArrow.d.ts +0 -2
  491. package/dist/UI/widgets/FluentComponents/molecules/FluentPrimaryStatNumber.d.ts +0 -2
  492. package/dist/UI/widgets/FluentComponents/molecules/FluentSecondaryStatNumber.d.ts +0 -2
  493. package/dist/UI/widgets/FluentComponents/molecules/FluentStatNumber.d.ts +0 -2
  494. package/dist/UI/widgets/FluentComponents/molecules/FluentTimeline.d.ts +0 -2
  495. package/dist/UI/widgets/ItemsWidgetCard.d.ts +0 -8
  496. package/dist/UI/widgets/WidgetCard.d.ts +0 -5
  497. package/dist/UI/widgets/library/BarChartWidget.d.ts +0 -23
  498. package/dist/UI/widgets/library/BubbleWidget.d.ts +0 -23
  499. package/dist/UI/widgets/library/CircleGaugeWidget.d.ts +0 -12
  500. package/dist/UI/widgets/library/DateTrendWidget.d.ts +0 -18
  501. package/dist/UI/widgets/library/DensePlotWidget.d.ts +0 -23
  502. package/dist/UI/widgets/library/DonutChartWidget.d.ts +0 -18
  503. package/dist/UI/widgets/library/GaugeWidget.d.ts +0 -14
  504. package/dist/UI/widgets/library/LineAndSparklinesWidget.d.ts +0 -18
  505. package/dist/UI/widgets/library/LineGraphWidget.d.ts +0 -23
  506. package/dist/UI/widgets/library/ProgressBarWidget.d.ts +0 -18
  507. package/dist/UI/widgets/library/RecentlyLoadedNodesWidget.d.ts +0 -3
  508. package/dist/UI/widgets/library/RemindersWidget.d.ts +0 -3
  509. package/dist/UI/widgets/library/SparklineWidget.d.ts +0 -18
  510. package/dist/UI/widgets/library/SparsePlotWidget.d.ts +0 -23
  511. package/dist/UI/widgets/library/TableWidget.d.ts +0 -18
  512. package/dist/UI/widgets/utils/ConvertISODate.d.ts +0 -1
  513. package/dist/UI/widgets/utils/NumberVisualization.d.ts +0 -2
  514. package/dist/UI/widgets/utils/dateUtils.d.ts +0 -3
  515. package/dist/UI/widgets/utils/useId.d.ts +0 -4
  516. package/dist/VirtualBrowser-BvntTEs-.js +0 -593
  517. package/dist/actions/ActionForm.d.ts +0 -11
  518. package/dist/actions/ActionModal.d.ts +0 -1
  519. package/dist/actions/ActionPanelPlacement.d.ts +0 -8
  520. package/dist/actions/ActionSideSheet.d.ts +0 -12
  521. package/dist/actions/ActionSpeedDial.d.ts +0 -13
  522. package/dist/actions/ActionSplitScreen.d.ts +0 -14
  523. package/dist/actions/ActionWrapper.d.ts +0 -12
  524. package/dist/actions/PageActionWrapper.d.ts +0 -1
  525. package/dist/actions/actionSummary/ActionSummaryCard.d.ts +0 -13
  526. package/dist/actions/actionSummary/ActionSummaryHeader.d.ts +0 -8
  527. package/dist/actions/actionSummary/ActionSummaryListContainer.d.ts +0 -8
  528. package/dist/actions/actionSummary/ActionSummaryListItem.d.ts +0 -10
  529. package/dist/actions/actionSummary/ActionSummaryPopover.d.ts +0 -8
  530. package/dist/actions/actionSummary/index.d.ts +0 -5
  531. package/dist/actions/sidebar/EntitySideBarContent.d.ts +0 -1
  532. package/dist/actions/utils/actionUtils.d.ts +0 -3
  533. package/dist/assets/unityIcons/LibraryData.d.ts +0 -5
  534. package/dist/chatBot/ChatContainer.d.ts +0 -1
  535. package/dist/chatBot/ChatMessage.d.ts +0 -1
  536. package/dist/componentSystems/multiThreadTimeline/functions/mttFunctions.d.ts +0 -5
  537. package/dist/componentSystems/multiThreadTimeline/mttMainTimeline/HeightAdjust.d.ts +0 -4
  538. package/dist/componentSystems/multiThreadTimeline/mttMainTimeline/MttMainTimeline.d.ts +0 -1
  539. package/dist/componentSystems/multiThreadTimeline/mttMainTimeline/MttTimeline.d.ts +0 -1
  540. package/dist/componentSystems/multiThreadTimeline/mttSummary/MttSummary.d.ts +0 -6
  541. package/dist/componentSystems/multiThreadTimeline/timeline.d.ts +0 -26
  542. package/dist/componentSystems/multiThreadTimeline/ui/CircleButton.d.ts +0 -6
  543. package/dist/componentSystems/multiThreadTimeline/ui/DateWrapper.d.ts +0 -14
  544. package/dist/componentSystems/multiThreadTimeline/ui/DynamicRangeSlider.d.ts +0 -1
  545. package/dist/componentSystems/multiThreadTimeline/ui/MttYearTag.d.ts +0 -8
  546. package/dist/componentSystems/multiThreadTimeline/ui/MultiDot.d.ts +0 -8
  547. package/dist/componentSystems/multiThreadTimeline/ui/SummaryToken.d.ts +0 -18
  548. package/dist/componentSystems/multiThreadTimeline/ui/TimelineDateBar.d.ts +0 -12
  549. package/dist/componentSystems/multiThreadTimeline/ui/TimelineDot.d.ts +0 -9
  550. package/dist/componentSystems/multiThreadTimeline/ui/TimelineHoverCard.d.ts +0 -9
  551. package/dist/componentSystems/multiThreadTimeline/ui/TimelineNode.d.ts +0 -1
  552. package/dist/componentSystems/multiThreadTimeline/ui/TimelinePreloaderNode.d.ts +0 -9
  553. package/dist/componentSystems/multiThreadTimeline/ui/TimelineStatus.d.ts +0 -6
  554. package/dist/componentSystems/multiThreadTimeline/ui/TimelineToggleButton.d.ts +0 -17
  555. package/dist/componentSystems/multiThreadTimeline/ui/TimelineTokenSummary.d.ts +0 -22
  556. package/dist/componentSystems/multiThreadTimeline/ui/TimelineTopRowFilter.d.ts +0 -16
  557. package/dist/componentSystems/multiThreadTimeline/ui/TimelineWrapper.d.ts +0 -10
  558. package/dist/componentSystems/multiThreadTimeline/ui/VisualizationDot.d.ts +0 -10
  559. package/dist/componentSystems/multiThreadTimeline/ui/modified/TimelineToken.d.ts +0 -18
  560. package/dist/componentSystems/pageRenderer/PageRenderer.d.ts +0 -6
  561. package/dist/componentSystems/pageRenderer/hocs/withEngineComponent.d.ts +0 -1
  562. package/dist/componentSystems/pageRenderer/hooks/useReadMetaData.d.ts +0 -33
  563. package/dist/componentSystems/pageRenderer/utils/TableColumnDefs.d.ts +0 -9
  564. package/dist/componentSystems/pageRenderer/wrappers/AgGridSimpleWrapper.d.ts +0 -12
  565. package/dist/componentSystems/pageRenderer/wrappers/BarChartWrapper.d.ts +0 -7
  566. package/dist/componentSystems/pageRenderer/wrappers/BioCardWrapper.d.ts +0 -1
  567. package/dist/componentSystems/pageRenderer/wrappers/DisplayCardWrapper.d.ts +0 -1
  568. package/dist/componentSystems/pageRenderer/wrappers/DonutWrapper.d.ts +0 -7
  569. package/dist/componentSystems/pageRenderer/wrappers/HistogramWrapper.d.ts +0 -1
  570. package/dist/componentSystems/pageRenderer/wrappers/LineGraphWrapper.d.ts +0 -1
  571. package/dist/componentSystems/pageRenderer/wrappers/PrimaryActionHeaderWrapper.d.ts +0 -1
  572. package/dist/constants/reminderConstants.d.ts +0 -4
  573. package/dist/containers/IframeContainer.d.ts +0 -1
  574. package/dist/contexts/ActionContext.d.ts +0 -1
  575. package/dist/contexts/ActionDispatchContext.d.ts +0 -1
  576. package/dist/contexts/ActionLoadingContext.d.ts +0 -1
  577. package/dist/contexts/ActionLoadingDispatchContext.d.ts +0 -1
  578. package/dist/contexts/PageContext.d.ts +0 -15
  579. package/dist/contexts/usePageContext.d.ts +0 -1
  580. package/dist/dashboard/DashboardCardGrid.d.ts +0 -5
  581. package/dist/dashboard/DashboardWidget.d.ts +0 -2
  582. package/dist/dashboard/WidgetCard.d.ts +0 -1
  583. package/dist/dashboard/getWidgetLayout.d.ts +0 -5
  584. package/dist/dashboard/types.d.ts +0 -27
  585. package/dist/dataBrowser/DataBrowserColumnDefs.d.ts +0 -9
  586. package/dist/dataBrowser/DataBrowserContainer.d.ts +0 -1
  587. package/dist/dataBrowser/forms/ParamsMappingFields.d.ts +0 -1
  588. package/dist/dataBrowser/forms/ParamsMappingForm.d.ts +0 -1
  589. package/dist/dataBrowser/forms/RequiredFieldsMappingField.d.ts +0 -1
  590. package/dist/dataBrowser/forms/RequiredFieldsMappingForm.d.ts +0 -1
  591. package/dist/diffChecker/DiffChecker.d.ts +0 -6
  592. package/dist/enums/InputFieldTypeEnums.d.ts +0 -8
  593. package/dist/enums/aggridEnums.d.ts +0 -46
  594. package/dist/enums/menuEnums.d.ts +0 -6
  595. package/dist/enums/pageEnums.d.ts +0 -14
  596. package/dist/enums/paymentMethodTypeEnum.d.ts +0 -6
  597. package/dist/enums/paymentTenderTypeEnum.d.ts +0 -8
  598. package/dist/enums/paymentVendorFactoryEnum.d.ts +0 -10
  599. package/dist/enums/propertyTypeEnums.d.ts +0 -9
  600. package/dist/enums/searchEnums.d.ts +0 -5
  601. package/dist/enums/tagEnums.d.ts +0 -5
  602. package/dist/enums/unitySystemEnums.d.ts +0 -243
  603. package/dist/enums/workflowEnums.d.ts +0 -41
  604. package/dist/hooks/crudActions.d.ts +0 -5
  605. package/dist/hooks/useActions.d.ts +0 -17
  606. package/dist/hooks/useApiCatalog.d.ts +0 -6
  607. package/dist/hooks/useDateLocale.d.ts +0 -5
  608. package/dist/hooks/useDynamicListCalculation.d.ts +0 -1
  609. package/dist/hooks/useFluentIcon.d.ts +0 -3
  610. package/dist/hooks/useItemSubCard.d.ts +0 -7
  611. package/dist/hooks/useOutlook.d.ts +0 -6
  612. package/dist/hooks/useProductVersion.d.ts +0 -1
  613. package/dist/hooks/usePromotedLookupMethods.d.ts +0 -5
  614. package/dist/hooks/usePromotedMethodEntity.d.ts +0 -5
  615. package/dist/hooks/useQueryExecutors.d.ts +0 -7
  616. package/dist/hooks/useSearchFilterParamsMap.d.ts +0 -6
  617. package/dist/hooks/useSetLocationState.d.ts +0 -1
  618. package/dist/hooks/useSplitDecimal.d.ts +0 -3
  619. package/dist/hooks/useUpdateSearchParams.d.ts +0 -1
  620. package/dist/hooks/useWorkflow.d.ts +0 -3
  621. package/dist/hooks/virtualActions.d.ts +0 -3
  622. package/dist/index-DWuWdOI1.js +0 -56507
  623. package/dist/index.modern.js +0 -611
  624. package/dist/index.test.d.ts +0 -1
  625. package/dist/inquiry/AlertFlag.d.ts +0 -1
  626. package/dist/inquiry/AmbientListItem.d.ts +0 -1
  627. package/dist/inquiry/AmbientSplitStatCard.d.ts +0 -1
  628. package/dist/inquiry/AmbientSummaryListHeader.d.ts +0 -1
  629. package/dist/inquiry/EmbeddedInquiry.d.ts +0 -2
  630. package/dist/inquiry/ExecuteApiDialog.d.ts +0 -1
  631. package/dist/inquiry/FilterSearch.d.ts +0 -3
  632. package/dist/inquiry/FlagBlock.d.ts +0 -1
  633. package/dist/inquiry/Inquiry.d.ts +0 -1
  634. package/dist/inquiry/InquiryContainer.d.ts +0 -28
  635. package/dist/inquiry/InquiryTreeMenu.d.ts +0 -1
  636. package/dist/inquiry/InquiryTreeMenuItem.d.ts +0 -1
  637. package/dist/inquiry/InquiryWrapper.d.ts +0 -1
  638. package/dist/inquiry/ItemDescription.d.ts +0 -1
  639. package/dist/inquiry/NodeColumnHeader.d.ts +0 -5
  640. package/dist/inquiry/NodeDetails.d.ts +0 -1
  641. package/dist/inquiry/NodeList.d.ts +0 -1
  642. package/dist/inquiry/ToggleButton.d.ts +0 -1
  643. package/dist/inquiry/dashboard/InquiryDashboard.d.ts +0 -1
  644. package/dist/inquiry/dashboard/RecentlyLoadedNodesTable.d.ts +0 -1
  645. package/dist/inquiry/inquiryBar/InquiryControlList.d.ts +0 -11
  646. package/dist/inquiry/inquiryBar/InquiryNodeControls.d.ts +0 -1
  647. package/dist/inquiry/search/InquiryAdvancedSearch.d.ts +0 -1
  648. package/dist/inquiry/search/InquiryAdvancedSearchForm.d.ts +0 -1
  649. package/dist/inquiry/search/InquirySearchContainer.d.ts +0 -1
  650. package/dist/inquiry/search/InquirySearchDatasource.d.ts +0 -3
  651. package/dist/inquiry/search/InquirySearchTable.d.ts +0 -1
  652. package/dist/layout/GridGroup.d.ts +0 -10
  653. package/dist/layout/GridRow.d.ts +0 -5
  654. package/dist/layout/GridUnit.d.ts +0 -1
  655. package/dist/layout/HeaderLayout.d.ts +0 -3
  656. package/dist/layout/LayoutUnit.d.ts +0 -2
  657. package/dist/layout/getRatio.d.ts +0 -1
  658. package/dist/layout/templates/SideBarTemplate.d.ts +0 -4
  659. package/dist/maintenanceEngine/crudBrowser/CrudBrowserContainer.d.ts +0 -1
  660. package/dist/maintenanceEngine/crudBrowser/CrudTableActionRender.d.ts +0 -2
  661. package/dist/maintenanceEngine/crudBrowser/CrudTableColumnDefs.d.ts +0 -9
  662. package/dist/maintenanceEngine/crudBrowser/CrudTableSidePanel.d.ts +0 -11
  663. package/dist/maintenanceEngine/entityAttributeActions.d.ts +0 -1
  664. package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +0 -44
  665. package/dist/maintenanceEngine/tableBrowser/TableContainer.d.ts +0 -1
  666. package/dist/maintenanceEngine/virtualBrowser/VirtualBrowser.d.ts +0 -1
  667. package/dist/maintenanceEngine/virtualBrowser/VirtualTableColumnDefs.d.ts +0 -9
  668. package/dist/maintenanceEngine/virtualBrowser/VirtualTableSidePanel.d.ts +0 -10
  669. package/dist/map-library/Controls/Controls.d.ts +0 -3
  670. package/dist/map-library/Controls/CustomControl.d.ts +0 -1
  671. package/dist/map-library/Controls/FullScreenControl.d.ts +0 -1
  672. package/dist/map-library/Controls/ZoomControl.d.ts +0 -1
  673. package/dist/map-library/Controls/index.d.ts +0 -1
  674. package/dist/map-library/Layers/ImageLayer.d.ts +0 -4
  675. package/dist/map-library/Layers/Layers.d.ts +0 -3
  676. package/dist/map-library/Layers/TileLayer.d.ts +0 -4
  677. package/dist/map-library/Layers/VectorLayer.d.ts +0 -6
  678. package/dist/map-library/Layers/index.d.ts +0 -1
  679. package/dist/map-library/Map/Map.d.ts +0 -22
  680. package/dist/map-library/Map/MapContext.d.ts +0 -2
  681. package/dist/map-library/Map/index.d.ts +0 -1
  682. package/dist/map-library/Source/index.d.ts +0 -4
  683. package/dist/map-library/Source/osm.d.ts +0 -3
  684. package/dist/map-library/Source/vector.d.ts +0 -5
  685. package/dist/map-library/Source/xyz.d.ts +0 -7
  686. package/dist/map-library/functions/mapFunctions.d.ts +0 -2
  687. package/dist/map-library/geoLocation/FreeFormField.d.ts +0 -1
  688. package/dist/map-library/geoLocation/GeoLocation.d.ts +0 -2
  689. package/dist/map-library/ui/ControlZoom.d.ts +0 -2
  690. package/dist/map-library/ui/Filter.d.ts +0 -2
  691. package/dist/map-library/ui/FilterOptions.d.ts +0 -2
  692. package/dist/map-library/ui/LocationPin.d.ts +0 -2
  693. package/dist/map-library/ui/MapControls.d.ts +0 -2
  694. package/dist/map-library/ui/MapControlsStandard.d.ts +0 -2
  695. package/dist/map-library/ui/MapFilterBar.d.ts +0 -1
  696. package/dist/map-library/ui/MapSheet.d.ts +0 -1
  697. package/dist/map-library/ui/Position.d.ts +0 -2
  698. package/dist/map-library/ui/TileDisplay.d.ts +0 -1
  699. package/dist/map-library/ui/ToggleViewType.d.ts +0 -2
  700. package/dist/maps/GeoMap.d.ts +0 -1
  701. package/dist/maps/leafletMaps/FluentImageMap.d.ts +0 -13
  702. package/dist/maps/leafletMaps/FluentMap.d.ts +0 -24
  703. package/dist/maps/leafletMaps/ui/MapContent.d.ts +0 -12
  704. package/dist/maps/leafletMaps/ui/MapMarker.d.ts +0 -1
  705. package/dist/maps/openLayerMaps/Controls/Controls.d.ts +0 -4
  706. package/dist/maps/openLayerMaps/Controls/FullScreenControl.d.ts +0 -2
  707. package/dist/maps/openLayerMaps/Controls/index.d.ts +0 -3
  708. package/dist/maps/openLayerMaps/Layers/ImageLayer.d.ts +0 -4
  709. package/dist/maps/openLayerMaps/Layers/Layers.d.ts +0 -3
  710. package/dist/maps/openLayerMaps/Layers/TileLayer.d.ts +0 -4
  711. package/dist/maps/openLayerMaps/Layers/VectorLayer.d.ts +0 -5
  712. package/dist/maps/openLayerMaps/Layers/index.d.ts +0 -5
  713. package/dist/maps/openLayerMaps/Map/Map.d.ts +0 -6
  714. package/dist/maps/openLayerMaps/Map/MapContext.d.ts +0 -2
  715. package/dist/maps/openLayerMaps/Map/index.d.ts +0 -1
  716. package/dist/maps/openLayerMaps/Source/index.d.ts +0 -4
  717. package/dist/maps/openLayerMaps/Source/osm.d.ts +0 -3
  718. package/dist/maps/openLayerMaps/Source/vector.d.ts +0 -5
  719. package/dist/maps/openLayerMaps/Source/xyz.d.ts +0 -7
  720. package/dist/maps/openLayerMaps/ui/ControlZoom.d.ts +0 -2
  721. package/dist/maps/openLayerMaps/ui/Filter.d.ts +0 -2
  722. package/dist/maps/openLayerMaps/ui/LocationPin.d.ts +0 -2
  723. package/dist/maps/openLayerMaps/ui/MapControls.d.ts +0 -2
  724. package/dist/maps/openLayerMaps/ui/MapControlsStandard.d.ts +0 -2
  725. package/dist/maps/openLayerMaps/ui/Position.d.ts +0 -2
  726. package/dist/maps/openLayerMaps/ui/ToggleViewType.d.ts +0 -2
  727. package/dist/menuPage/MenuPage.d.ts +0 -1
  728. package/dist/models/ApiMethodInstance.d.ts +0 -10
  729. package/dist/models/GroupNode.d.ts +0 -13
  730. package/dist/models/Lookup.d.ts +0 -6
  731. package/dist/models/NumberOperator.d.ts +0 -14
  732. package/dist/models/QueryResult.d.ts +0 -9
  733. package/dist/models/SearchOperator.d.ts +0 -17
  734. package/dist/notes/NotesScreen.d.ts +0 -1
  735. package/dist/page/Page.d.ts +0 -2
  736. package/dist/page/PageContainer.d.ts +0 -1
  737. package/dist/page/PageContent.d.ts +0 -1
  738. package/dist/page/PageHeader.d.ts +0 -1
  739. package/dist/page/PageSectionHeader.d.ts +0 -1
  740. package/dist/page/PageSectionSpacer.d.ts +0 -1
  741. package/dist/reminders/CompleteReminderSwitch.d.ts +0 -1
  742. package/dist/reminders/RemindersCard.d.ts +0 -1
  743. package/dist/reminders/RemindersScreen.d.ts +0 -1
  744. package/dist/reports/PowerBIReport.d.ts +0 -1
  745. package/dist/routes/PrivateRoute.d.ts +0 -3
  746. package/dist/routes/UdpRoutes.d.ts +0 -1
  747. package/dist/routes/components/PageForbiddenRoute.d.ts +0 -1
  748. package/dist/routes/components/PageNotFoundRoute.d.ts +0 -1
  749. package/dist/routes/components/PageStatus.d.ts +0 -1
  750. package/dist/routes/components/PasswordResetRedirect.d.ts +0 -1
  751. package/dist/shell/Shell.d.ts +0 -43
  752. package/dist/shell/ui/AmbientProjectSwitcher.d.ts +0 -8
  753. package/dist/shell/ui/EnvironmentRibbon.d.ts +0 -4
  754. package/dist/shell/ui/FluentProfileMenuCard.d.ts +0 -1
  755. package/dist/shell/ui/HelpCenter.d.ts +0 -1
  756. package/dist/shell/ui/LanguageSwitcher.d.ts +0 -1
  757. package/dist/shell/ui/MiniCollapsibleSidebar.d.ts +0 -2
  758. package/dist/shell/ui/NavigationSidebar.d.ts +0 -2
  759. package/dist/shell/ui/SidebarCollapseButton.d.ts +0 -1
  760. package/dist/shell/ui/SidebarListItem.d.ts +0 -5
  761. package/dist/shell/ui/SiteHeader.d.ts +0 -11
  762. package/dist/shell/ui/SiteHeaderRightComponent.d.ts +0 -11
  763. package/dist/shell/ui/UserAvatar.d.ts +0 -9
  764. package/dist/shell/ui/addUser/PasswordValidator.d.ts +0 -10
  765. package/dist/shell/ui/addUser/UserForm.d.ts +0 -2
  766. package/dist/shell/ui/addUser/UserFormFields.d.ts +0 -2
  767. package/dist/shell/ui/addUser/UserFormSideSheet.d.ts +0 -5
  768. package/dist/shell/ui/appSwitcher/FUIAppHeader.d.ts +0 -2
  769. package/dist/shell/ui/appSwitcher/FUIAppList.d.ts +0 -2
  770. package/dist/shell/ui/appSwitcher/FUIAppListItem.d.ts +0 -2
  771. package/dist/shell/ui/appSwitcher/FUIAppSwitcher.d.ts +0 -2
  772. package/dist/shell/ui/appSwitcher/ProductAppList.d.ts +0 -2
  773. package/dist/shell/ui/appSwitcher/ProductAppListItem.d.ts +0 -2
  774. package/dist/shell/ui/appSwitcher/UnityApps.d.ts +0 -2
  775. package/dist/stores/actionStore.d.ts +0 -12
  776. package/dist/stores/catalogStore.d.ts +0 -14
  777. package/dist/stores/inquiryStore.d.ts +0 -21
  778. package/dist/stores/lookupsStore.d.ts +0 -12
  779. package/dist/stores/shellStore.d.ts +0 -21
  780. package/dist/stores/teleporterStore.d.ts +0 -13
  781. package/dist/stores/tenantStore.d.ts +0 -16
  782. package/dist/stores/workflowStore.d.ts +0 -19
  783. package/dist/stories/Button.d.ts +0 -26
  784. package/dist/stories/Button.stories.d.ts +0 -45
  785. package/dist/stories/Header.d.ts +0 -18
  786. package/dist/stories/Header.stories.d.ts +0 -17
  787. package/dist/stories/Page.d.ts +0 -18
  788. package/dist/stories/Page.stories.d.ts +0 -15
  789. package/dist/treeMenu/BaseTreeMenu.d.ts +0 -1
  790. package/dist/treeMenu/BaseTreeMenuItem.d.ts +0 -1
  791. package/dist/udp/ShortcutContent/ListSearch.d.ts +0 -1
  792. package/dist/udp/ShortcutContent/ShortcutContentFinder.d.ts +0 -1
  793. package/dist/udp/export/ExportSidesheet.d.ts +0 -1
  794. package/dist/udp/export/MyExportsPage.d.ts +0 -1
  795. package/dist/udp/export/VisualSearchObject.d.ts +0 -3
  796. package/dist/udp/export/useUdpExport.d.ts +0 -14
  797. package/dist/udp/fileImportMapping/FileImportConfigCard.d.ts +0 -1
  798. package/dist/udp/fileImportMapping/FileImportMappingEnums.d.ts +0 -6
  799. package/dist/udp/fileImportMapping/FileImportMappingWizard.d.ts +0 -2
  800. package/dist/udp/fileImportMapping/ImportDataFromFileMapping.d.ts +0 -1
  801. package/dist/udp/fileImportMapping/SampleFileImportGrid.d.ts +0 -1
  802. package/dist/udp/fileImportMapping/fileUtils.d.ts +0 -3
  803. package/dist/udp/pages/ChatUDP.d.ts +0 -2
  804. package/dist/udp/pages/UdpDataBrowserPage.d.ts +0 -3
  805. package/dist/udp/pages/UdpFormsBuilderPage.d.ts +0 -2
  806. package/dist/udp/pages/UdpFormsListPage.d.ts +0 -2
  807. package/dist/udp/pages/UdpGridPanelManagementPage.d.ts +0 -2
  808. package/dist/udp/pages/UdpGridPanelManagementSidesheet.d.ts +0 -2
  809. package/dist/udp/pages/UdpImportFromFileMappingPage.d.ts +0 -2
  810. package/dist/udp/pages/UdpInquiryMaintenanceEnginePage.d.ts +0 -2
  811. package/dist/udp/pages/UdpMaintenanceConfigPage.d.ts +0 -1
  812. package/dist/udp/pages/UdpMaintenanceEnginePage.d.ts +0 -2
  813. package/dist/udp/pages/UdpNotesPage.d.ts +0 -2
  814. package/dist/udp/pages/UdpPrivateForm.d.ts +0 -2
  815. package/dist/udp/pages/UdpPublicForm.d.ts +0 -2
  816. package/dist/udp/pages/UdpRemindersPage.d.ts +0 -2
  817. package/dist/udp/pages/UdpReportsPage.d.ts +0 -2
  818. package/dist/udp/pages/UdpVerticalManagementPage.d.ts +0 -2
  819. package/dist/udp/pages/UdpVerticalManagementSidesheet.d.ts +0 -2
  820. package/dist/udp/pages/udpPages.d.ts +0 -40
  821. package/dist/udp/utilities/methodUtils.d.ts +0 -5
  822. package/dist/udp-react-enterprise-component-library.css +0 -1
  823. package/dist/uploader/DragDropFileUpload.d.ts +0 -12
  824. package/dist/uploader/FileProfile.d.ts +0 -2
  825. package/dist/uploader/FileType.d.ts +0 -1
  826. package/dist/uploader/FileUpload.d.ts +0 -2
  827. package/dist/uploader/ImagePreview.d.ts +0 -2
  828. package/dist/utilities/CustomNavigationClient.d.ts +0 -11
  829. package/dist/utilities/DemoJuly/redirectToProduct.d.ts +0 -1
  830. package/dist/utilities/FluentIcon.d.ts +0 -1
  831. package/dist/utilities/TrimForAvatar.d.ts +0 -1
  832. package/dist/utilities/UnityFluentIcon.d.ts +0 -1
  833. package/dist/utilities/UnityIcon.d.ts +0 -1
  834. package/dist/utilities/aggrid/AgTable.d.ts +0 -33
  835. package/dist/utilities/aggrid/GridFunctions.d.ts +0 -13
  836. package/dist/utilities/aggrid/SplitButton.d.ts +0 -1
  837. package/dist/utilities/aggrid/aggridHelpers.d.ts +0 -1
  838. package/dist/utilities/aggrid/datasources/SearchServiceDatasource.d.ts +0 -4
  839. package/dist/utilities/apiHelpers.d.ts +0 -7
  840. package/dist/utilities/auth/AuthDialogs.d.ts +0 -2
  841. package/dist/utilities/auth/AuthProvider.d.ts +0 -5
  842. package/dist/utilities/auth/AuthProviderWrapper.d.ts +0 -1
  843. package/dist/utilities/auth/UserProvider.d.ts +0 -2
  844. package/dist/utilities/auth/authActions.d.ts +0 -9
  845. package/dist/utilities/auth/internal.d.ts +0 -9
  846. package/dist/utilities/auth/signInAuthProvider.d.ts +0 -5
  847. package/dist/utilities/auth/useAccessToken.d.ts +0 -1
  848. package/dist/utilities/auth/useAuthedUser.d.ts +0 -15
  849. package/dist/utilities/auth/useIsUnityAuthenticated.d.ts +0 -1
  850. package/dist/utilities/auth/useSingleLogout.d.ts +0 -1
  851. package/dist/utilities/auth/useUser.d.ts +0 -8
  852. package/dist/utilities/auth/user.d.ts +0 -29
  853. package/dist/utilities/auth/users.d.ts +0 -8
  854. package/dist/utilities/auth/whitelistedPaths.d.ts +0 -1
  855. package/dist/utilities/axiosInterceptors.d.ts +0 -2
  856. package/dist/utilities/brand.d.ts +0 -19
  857. package/dist/utilities/chatBot/ChatBotContext.d.ts +0 -1
  858. package/dist/utilities/chatBot/ChatBotProvider.d.ts +0 -3
  859. package/dist/utilities/chatBot/useChatBot.d.ts +0 -6
  860. package/dist/utilities/crud/useDefaultFormValues.d.ts +0 -6
  861. package/dist/utilities/customIcons/ApprovalIcon.d.ts +0 -1
  862. package/dist/utilities/customIcons/RejectIcon.d.ts +0 -1
  863. package/dist/utilities/entities/entityUtilities.d.ts +0 -3
  864. package/dist/utilities/floorplanFunctions/gridVisualizationFunctions.d.ts +0 -2
  865. package/dist/utilities/form/AltSubmitButton.d.ts +0 -13
  866. package/dist/utilities/form/Field.d.ts +0 -22
  867. package/dist/utilities/form/Form.d.ts +0 -7
  868. package/dist/utilities/form/FormButtons.d.ts +0 -2
  869. package/dist/utilities/form/FormError.d.ts +0 -7
  870. package/dist/utilities/form/FormSpy.d.ts +0 -10
  871. package/dist/utilities/form/SubmitButton.d.ts +0 -13
  872. package/dist/utilities/form/arrayMutators.d.ts +0 -2
  873. package/dist/utilities/form/final-form-scroll/createDecorator.d.ts +0 -5
  874. package/dist/utilities/form/final-form-scroll/findInput.d.ts +0 -2
  875. package/dist/utilities/form/final-form-scroll/getAllInputs.d.ts +0 -2
  876. package/dist/utilities/form/final-form-scroll/isFocusableInput.d.ts +0 -2
  877. package/dist/utilities/form/formHooks.d.ts +0 -3
  878. package/dist/utilities/form/index.d.ts +0 -9
  879. package/dist/utilities/form/paymentForm/AccountPayment.model.d.ts +0 -143
  880. package/dist/utilities/form/paymentForm/BankAccountForm.d.ts +0 -48
  881. package/dist/utilities/form/paymentForm/BankIcon.d.ts +0 -8
  882. package/dist/utilities/form/paymentForm/CashForm.d.ts +0 -9
  883. package/dist/utilities/form/paymentForm/CashIcon.d.ts +0 -8
  884. package/dist/utilities/form/paymentForm/CheckIcon.d.ts +0 -8
  885. package/dist/utilities/form/paymentForm/CreditCardAdornment.d.ts +0 -12
  886. package/dist/utilities/form/paymentForm/CreditCardForm.d.ts +0 -41
  887. package/dist/utilities/form/paymentForm/CreditCardIcon.d.ts +0 -8
  888. package/dist/utilities/form/paymentForm/CreditCardUtils.d.ts +0 -42
  889. package/dist/utilities/form/paymentForm/DisableOverlay.d.ts +0 -7
  890. package/dist/utilities/form/paymentForm/HostedPaymentError.d.ts +0 -20
  891. package/dist/utilities/form/paymentForm/NewCreditCardForm.d.ts +0 -19
  892. package/dist/utilities/form/paymentForm/NewECheckForm.d.ts +0 -15
  893. package/dist/utilities/form/paymentForm/PaymentAccount.model.d.ts +0 -81
  894. package/dist/utilities/form/paymentForm/PaymentBankDetails.d.ts +0 -12
  895. package/dist/utilities/form/paymentForm/PaymentBoxDetail.d.ts +0 -32
  896. package/dist/utilities/form/paymentForm/PaymentCard.d.ts +0 -12
  897. package/dist/utilities/form/paymentForm/PaymentCardDetail.d.ts +0 -19
  898. package/dist/utilities/form/paymentForm/PaymentDropdown.d.ts +0 -32
  899. package/dist/utilities/form/paymentForm/PaymentForm.d.ts +0 -77
  900. package/dist/utilities/form/paymentForm/TabPanel.d.ts +0 -20
  901. package/dist/utilities/form/paymentForm/usePaymentProviderForm.d.ts +0 -12
  902. package/dist/utilities/form/paymentForm/vendorsForms/FiservForm.d.ts +0 -40
  903. package/dist/utilities/form/paymentForm/vendorsForms/ICheckForm.d.ts +0 -46
  904. package/dist/utilities/form/paymentForm/vendorsForms/PaymentusForm.d.ts +0 -13
  905. package/dist/utilities/form/useFieldChangeListener.d.ts +0 -7
  906. package/dist/utilities/iconLibrary/IconLibrary.d.ts +0 -2
  907. package/dist/utilities/iconLibrary/IconLibraryComponent.d.ts +0 -7
  908. package/dist/utilities/iconLibrary/SelectedLibraryItem.d.ts +0 -2
  909. package/dist/utilities/iconLibrary/UnityIconLibrary.d.ts +0 -7
  910. package/dist/utilities/input/DateUtilities.d.ts +0 -2
  911. package/dist/utilities/input/SelectUtilities.d.ts +0 -3
  912. package/dist/utilities/input/StringUtilities.d.ts +0 -7
  913. package/dist/utilities/isValueSelected.d.ts +0 -1
  914. package/dist/utilities/maintenanceEngine/CrudBrowserUtilities.d.ts +0 -5
  915. package/dist/utilities/menus/menuUtilities.d.ts +0 -1
  916. package/dist/utilities/menus/redirectToLink.d.ts +0 -1
  917. package/dist/utilities/page/PageSubHeaderAction.d.ts +0 -11
  918. package/dist/utilities/provider/ActionProvider.d.ts +0 -1
  919. package/dist/utilities/redirect/ExternalRedirectUrlStorage.d.ts +0 -3
  920. package/dist/utilities/redirect/LocalRedirectUrlStorage.d.ts +0 -5
  921. package/dist/utilities/redirect/pages/OutlookCallback.d.ts +0 -1
  922. package/dist/utilities/rules/RuleUtilities.d.ts +0 -5
  923. package/dist/utilities/search/Search.d.ts +0 -37
  924. package/dist/utilities/search/SearchUtilities.d.ts +0 -12
  925. package/dist/utilities/storage/UnitySessionStorage.d.ts +0 -4
  926. package/dist/utilities/stringUtils.d.ts +0 -8
  927. package/dist/utilities/style/ContentContainer.d.ts +0 -11
  928. package/dist/utilities/style/colorConverter.d.ts +0 -3
  929. package/dist/utilities/style/colors.d.ts +0 -107
  930. package/dist/utilities/style/utils/styleUtils.d.ts +0 -2
  931. package/dist/utilities/style/verticalStyles.d.ts +0 -4
  932. package/dist/utilities/systemColors.d.ts +0 -1
  933. package/dist/utilities/tenant/TenantProvider.d.ts +0 -3
  934. package/dist/utilities/tenant/tenantContext.d.ts +0 -1
  935. package/dist/utilities/tenant/useTenant.d.ts +0 -6
  936. package/dist/utilities/theme.d.ts +0 -3
  937. package/dist/utilities/theme.types.d.ts +0 -11
  938. package/dist/utilities/tree/TreeUtilities.d.ts +0 -74
  939. package/dist/utilities/types.d.ts +0 -31
  940. package/dist/utilities/uploader/FileProfile.d.ts +0 -2
  941. package/dist/utilities/uploader/FileType.d.ts +0 -1
  942. package/dist/utilities/uploader/FileUpload.d.ts +0 -1
  943. package/dist/utilities/uploader/ImagePreview.d.ts +0 -2
  944. package/dist/utilities/uploader/formatBytes.d.ts +0 -1
  945. package/dist/utilities/useAxiosGet.d.ts +0 -10
  946. package/dist/utilities/useAxiosMutate.d.ts +0 -6
  947. package/dist/utilities/useDevicePixelRatio.d.ts +0 -6
  948. package/dist/utilities/useGravatar.d.ts +0 -10
  949. package/dist/utilities/usePrevious.d.ts +0 -1
  950. package/dist/utilities/utilityBar/InquiryHeaderControl.d.ts +0 -11
  951. package/dist/utilities/utilityBar/InquiryHeaderSecondary.d.ts +0 -11
  952. package/dist/utilities/utilityBar/InquiryHeaderSecondaryAlert.d.ts +0 -11
  953. package/dist/utilities/utilityBar/InquiryHeaderTitle.d.ts +0 -11
  954. package/dist/utilities/utilityBar/SubHeaderAction.d.ts +0 -11
  955. package/dist/utilities/utilityBar/UtilityBarInport.d.ts +0 -11
  956. package/dist/utilities/workflow/workflowUtilities.d.ts +0 -47
  957. package/dist/workflow/WorkflowContainer.d.ts +0 -1
  958. package/dist/workflow/WorkflowContent.d.ts +0 -1
  959. package/dist/workflow/WorkflowUiInterruptContent.d.ts +0 -1
  960. package/dist/workflow/components/WorkflowTaskFlow.d.ts +0 -1
  961. package/dist/workflow/menus/WorkflowTreeMenu.d.ts +0 -1
  962. package/dist/workflow/menus/WorkflowTreeMenuItem.d.ts +0 -1
@@ -0,0 +1,3905 @@
1
+ import { Field, Form, SideSheet, apiMutate as apiMutate$1 } from "./SideSheet-DKR15EH5.js";
2
+ import { FluentButton, FluentIcon, GridStateTypeEnums, LayoutUnit, NodeActionEnums, PrimaryActionButton, SplitScreenTypeEnums, UnityFluentIcon, VisibilityTypeEnums, toTitleCase, useAxiosGet, useId, useShellStore } from "./EnvironmentRibbon-DBJftQWQ.js";
3
+ import { ClickOpenEnums, useHandleAxiosSnackbar } from "./apiHelpers-ntQQ4i7A.js";
4
+ import React, { Children, cloneElement, createContext, forwardRef, isValidElement, memo, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
5
+ import { Badge, Box, Button, ButtonGroup, Chip, ClickAwayListener, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, FormControlLabel, Grid, Grow, IconButton, InputAdornment, LinearProgress, MenuItem, MenuList, Paper, Popover, Popper, Switch, Tab, Tabs, TextField, Tooltip, Typography, lighten, makeStyles, useTheme } from "@material-ui/core";
6
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
+ import { ConfigService } from "udp-react-stencil-component-library";
8
+ import { useSnackbar } from "notistack";
9
+ import { useHistory } from "react-router-dom";
10
+ import clsx from "clsx";
11
+ import { AppIconDefaultIcon, AssessmentGroupIcon, BlockedIcon, BulletedTreeListIcon, ChevronDownIcon, ChevronFold10Icon, ChevronUnfold10Icon, ChromeCloseIcon, ClearIcon, CombineIcon, DeleteIcon, DownloadIcon, ErrorIcon, ExportIcon, FavoriteStarIcon, FilterIcon, LightbulbIcon, MoreVerticalIcon, OpenInNewTabIcon, SaveIcon, SearchIcon, TableHeaderRowIcon, TripleColumnIcon, UploadIcon } from "@fluentui/react-icons";
12
+ import PropTypes from "prop-types";
13
+ import { useTranslation } from "react-i18next";
14
+ import { create } from "zustand";
15
+ import { devtools } from "zustand/middleware";
16
+ import { makeStyles as makeStyles$1, useTheme as useTheme$1, withStyles as withStyles$1 } from "@material-ui/core/styles";
17
+ import { Skeleton } from "@material-ui/lab";
18
+ import "./style.css";
19
+ import ToggleButton from "@material-ui/lab/ToggleButton";
20
+ import { isFragment } from "react-is";
21
+ import { capitalize } from "@material-ui/core/utils";
22
+ import { ServerSideRowModelModule } from "@ag-grid-enterprise/server-side-row-model";
23
+ import invariant from "invariant";
24
+ import { AllModules } from "@ag-grid-enterprise/all-modules";
25
+ import "@ag-grid-enterprise/all-modules/dist/styles/ag-grid.css";
26
+ import "@ag-grid-enterprise/all-modules/dist/styles/ag-theme-material.css";
27
+ import "./utilities/aggrid/ag-grid-styles.scss";
28
+ import { AgGridReact } from "@ag-grid-community/react";
29
+ import { ExcelExportModule } from "@ag-grid-enterprise/excel-export";
30
+ import { bindPopper, bindTrigger, usePopupState } from "material-ui-popup-state/hooks";
31
+ import { ArrowDropDown } from "@material-ui/icons";
32
+ import { LicenseManager } from "@ag-grid-enterprise/core";
33
+ import Chip$1 from "@material-ui/core/Chip";
34
+ import Divider$1 from "@material-ui/core/Divider";
35
+ import Tooltip$1 from "@material-ui/core/Tooltip";
36
+ import Typography$1 from "@material-ui/core/Typography";
37
+ import StarIcon from "@material-ui/icons/Star";
38
+
39
+ //#region src/AGLicense.js
40
+ const LicenseKey = "Using_this_{AG_Grid}_Enterprise_key_{AG-060880}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Univerus_Software_Inc}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{MAIS_eRec}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{MAIS_eRec}_need_to_be_licensed___{MAIS_eRec}_has_not_been_granted_a_Deployment_License_Add-on___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{28_June_2025}____[v3]_[01]_MTc1MTA2NTIwMDAwMA==17ac166e7bb5dcca7f3eaa21c79da63b";
41
+
42
+ //#endregion
43
+ //#region src/utilities/maintenanceEngine/CrudBrowserUtilities.js
44
+ const RESERVED_PATH_PARAMETERS = ["version", "udp-api-version"];
45
+ const getPrimaryKeyValues = (properties, entityValue) => {
46
+ const primaryKeyProperties = properties.filter((property) => {
47
+ var _property$extendedPro;
48
+ return property === null || property === void 0 || (_property$extendedPro = property.extendedProperties) === null || _property$extendedPro === void 0 ? void 0 : _property$extendedPro.identifier;
49
+ });
50
+ const primaryKeyValues = primaryKeyProperties.reduce((keyValues, property) => {
51
+ if (entityValue && entityValue[property["name"]] !== null) keyValues.push(entityValue[property["name"]]);
52
+ return keyValues;
53
+ }, []);
54
+ return primaryKeyValues;
55
+ };
56
+ const getPathObject = (pathParameters, primaryKeyValues) => {
57
+ const primaryKeyParameters = pathParameters.filter((parameter) => parameter.name !== RESERVED_PATH_PARAMETERS);
58
+ const pathObject = {};
59
+ if (primaryKeyParameters.length && primaryKeyValues.length) primaryKeyParameters.forEach((pkp, index) => {
60
+ pathObject[`{${pkp.name}}`] = primaryKeyValues[index];
61
+ });
62
+ return pathObject;
63
+ };
64
+ const findTermByType = (fieldType, term) => {
65
+ if (fieldType.toLowerCase() === term) return fieldType.toLowerCase();
66
+ else return "";
67
+ };
68
+ const getModelProperties = (model, componentsObj) => {
69
+ let modelPropertiesObj = null;
70
+ if (model) {
71
+ modelPropertiesObj = model.properties;
72
+ if (!modelPropertiesObj) {
73
+ var _model$allOf;
74
+ const refKeys = [];
75
+ if ((_model$allOf = model["allOf"]) === null || _model$allOf === void 0 ? void 0 : _model$allOf.length) model["allOf"].forEach((reference) => {
76
+ if (reference["$ref"]) {
77
+ const refString = reference["$ref"];
78
+ if (refString) {
79
+ const lastIndex = refString.lastIndexOf("/");
80
+ const referenceModel = refString.substring(lastIndex + 1);
81
+ refKeys.push(referenceModel);
82
+ }
83
+ }
84
+ });
85
+ refKeys.forEach((key) => {
86
+ const abstractModel = componentsObj[key];
87
+ if (modelPropertiesObj && (abstractModel === null || abstractModel === void 0 ? void 0 : abstractModel.properties)) modelPropertiesObj = {
88
+ ...modelPropertiesObj,
89
+ ...abstractModel.properties
90
+ };
91
+ else modelPropertiesObj = abstractModel === null || abstractModel === void 0 ? void 0 : abstractModel.properties;
92
+ });
93
+ }
94
+ }
95
+ return modelPropertiesObj;
96
+ };
97
+ const getEntityAttributes = (catalog, entityName) => {
98
+ var _catalog$ctlg, _catalog$ctlg2;
99
+ if (!catalog) return [];
100
+ const catalogObjectList = catalog === null || catalog === void 0 || (_catalog$ctlg = catalog.ctlg) === null || _catalog$ctlg === void 0 ? void 0 : _catalog$ctlg.catalogObjectList;
101
+ const componentsObj = catalog === null || catalog === void 0 || (_catalog$ctlg2 = catalog.ctlg) === null || _catalog$ctlg2 === void 0 ? void 0 : _catalog$ctlg2.components;
102
+ const entity = catalogObjectList === null || catalogObjectList === void 0 ? void 0 : catalogObjectList.find((catalogObject) => catalogObject.catalogObjectName === entityName);
103
+ if (!!componentsObj && Object.keys(componentsObj).length) {
104
+ var _entity$properties;
105
+ const model = componentsObj[entityName];
106
+ let modelPropertiesObj = getModelProperties(model, componentsObj);
107
+ if (entity === null || entity === void 0 || (_entity$properties = entity.properties) === null || _entity$properties === void 0 ? void 0 : _entity$properties.length) entity.properties.forEach((property) => {
108
+ let nullable = true;
109
+ if (modelPropertiesObj) {
110
+ const modelProperty = modelPropertiesObj[property["name"]];
111
+ if (modelProperty) nullable = modelProperty.nullable || false;
112
+ }
113
+ property["nullable"] = nullable;
114
+ });
115
+ }
116
+ return entity ? entity.properties : [];
117
+ };
118
+ const getPathParametersObj = (pathParametersDefinition, entityData) => {
119
+ if (!pathParametersDefinition || !entityData) return {};
120
+ const pathParametersObj = {};
121
+ for (let param of pathParametersDefinition) pathParametersObj[param.name] = entityData[param.name];
122
+ return pathParametersObj;
123
+ };
124
+
125
+ //#endregion
126
+ //#region src/utilities/entities/entityUtilities.js
127
+ const getCommonEntityName = (entityName) => {
128
+ if (!entityName) return entityName;
129
+ return toTitleCase(getSanitizedName(entityName));
130
+ };
131
+ const getSanitizedName = (entityName) => {
132
+ if (!entityName) return "";
133
+ const entityNameParts = entityName.split(".");
134
+ return entityNameParts[entityNameParts.length - 1];
135
+ };
136
+ const getFullyQualifiedName = (udpObjectInfo) => {
137
+ var _udpObjectInfo$namesp;
138
+ if (!udpObjectInfo) return "";
139
+ const modelNameSpace = (_udpObjectInfo$namesp = udpObjectInfo.namespaceStructure) === null || _udpObjectInfo$namesp === void 0 ? void 0 : _udpObjectInfo$namesp.model;
140
+ if (modelNameSpace) return `${modelNameSpace}.Models.${udpObjectInfo.sanitizedName}`;
141
+ else return "";
142
+ };
143
+
144
+ //#endregion
145
+ //#region src/contexts/ActionDispatchContext.js
146
+ const ActionDispatchContext = createContext(null);
147
+
148
+ //#endregion
149
+ //#region src/contexts/ActionContext.js
150
+ const ActionContext = createContext(null);
151
+
152
+ //#endregion
153
+ //#region src/UI/SuccessAction.jsx
154
+ const getSuccessAction = (closeSnackbar) => {
155
+ const successAction = (key) => /* @__PURE__ */ jsx(Button, {
156
+ color: "secondary",
157
+ size: "small",
158
+ onClick: () => {
159
+ closeSnackbar(key);
160
+ },
161
+ children: "OK"
162
+ });
163
+ return successAction;
164
+ };
165
+
166
+ //#endregion
167
+ //#region src/stores/actionStore.ts
168
+ const useActionStore = create()(devtools((set) => ({
169
+ selectedNode: null,
170
+ setSelectedNode: (selectedNode) => set((state) => ({ selectedNode })),
171
+ hideActions: false,
172
+ setHideActions: (hideActions) => set((state) => ({ hideActions }))
173
+ })));
174
+
175
+ //#endregion
176
+ //#region src/stores/inquiryStore.ts
177
+ const useInquiryStore = create()(devtools((set) => ({
178
+ title: "",
179
+ setInquiryToolbarTitle: (title) => set((state) => ({ title })),
180
+ workflowMap: {},
181
+ setWorkflowMap: (workflowMap) => set((state) => ({ workflowMap: {
182
+ ...state.workflowMap,
183
+ ...workflowMap
184
+ } })),
185
+ workflowStarting: false,
186
+ setWorkflowStarting: (workflowStarting) => set((state) => ({ workflowStarting }))
187
+ })));
188
+
189
+ //#endregion
190
+ //#region src/actions/utils/actionUtils.js
191
+ function isValidURL(url) {
192
+ const urlPattern = /^(ftp|http|https):\/\/[^ "]+$/;
193
+ return urlPattern.test(url);
194
+ }
195
+ const useHandleAction = () => {
196
+ const history = useHistory();
197
+ const { t } = useTranslation();
198
+ const { enqueueSnackbar, closeSnackbar } = useSnackbar();
199
+ const successAction = getSuccessAction(closeSnackbar);
200
+ const selectedNode = useActionStore((state) => state.selectedNode);
201
+ const setWorkflowMap = useInquiryStore((state) => state.setWorkflowMap);
202
+ const setWorkflowStarting = useInquiryStore((state) => state.setWorkflowStarting);
203
+ const executeStartWorkflow = async (workflowId, payload) => apiMutate$1(ConfigService.config.BUILDER_API_BASE, `workflow/${workflowId}/start`, { method: "post" }, { data: payload });
204
+ const getApiMethod = async (apiMethodId) => apiMutate$1(ConfigService.config.INTEGRATION_API_BASE, `apimethod/${apiMethodId}`, { method: "get" });
205
+ const handleAction = async (dispatch, action, state, executeAction, apiCatalogId, entityAttributes, actionData, currentContainerId) => {
206
+ var _action$parameters;
207
+ if (!action) return;
208
+ const actionName = action.name;
209
+ let actionValue = action.value;
210
+ if (action === null || action === void 0 || (_action$parameters = action.parameters) === null || _action$parameters === void 0 ? void 0 : _action$parameters.entityName) actionValue += "?entityName=" + action.parameters.entityName + "&apiCatalogId=" + apiCatalogId;
211
+ switch (action.actionTypeId) {
212
+ case NodeActionEnums.Open_External_Link:
213
+ window.open(actionValue, "_blank");
214
+ break;
215
+ case NodeActionEnums.Redirect:
216
+ if (isValidURL(actionValue)) window.location.href = actionValue;
217
+ else history.push(actionValue);
218
+ break;
219
+ case NodeActionEnums.Create:
220
+ if (dispatch) dispatch({
221
+ type: "OPEN_SIDESHEET",
222
+ sideSheet: {
223
+ action,
224
+ open: true
225
+ }
226
+ });
227
+ break;
228
+ case NodeActionEnums.Update:
229
+ if (dispatch) dispatch({
230
+ type: "OPEN_SIDESHEET",
231
+ sideSheet: {
232
+ action,
233
+ open: true
234
+ }
235
+ });
236
+ break;
237
+ case NodeActionEnums.Delete:
238
+ if (dispatch) dispatch({
239
+ type: "OPEN_MODAL",
240
+ modal: {
241
+ action,
242
+ open: true,
243
+ title: "Delete "
244
+ }
245
+ });
246
+ break;
247
+ case NodeActionEnums.Retrieve:
248
+ if (dispatch) if (currentContainerId) break;
249
+ else dispatch({
250
+ type: "OPEN_SPLIT_SCREEN",
251
+ splitScreen: {
252
+ action,
253
+ open: true,
254
+ type: SplitScreenTypeEnums.Entity
255
+ }
256
+ });
257
+ break;
258
+ case NodeActionEnums.Open_Page_Split_Screen:
259
+ if (dispatch) if (!!selectedNode) dispatch({
260
+ type: "OPEN_PAGE_CONTAINER_SPLIT_SCREEN",
261
+ pageContainerSplitScreen: {
262
+ action,
263
+ open: true,
264
+ type: SplitScreenTypeEnums.Page
265
+ }
266
+ });
267
+ else dispatch({
268
+ type: "OPEN_PAGE_SPLIT_SCREEN",
269
+ pageSplitScreen: {
270
+ action,
271
+ open: true,
272
+ type: SplitScreenTypeEnums.Page
273
+ }
274
+ });
275
+ break;
276
+ case NodeActionEnums.Open_Shell_Split_Screen:
277
+ if (dispatch) if (currentContainerId) break;
278
+ else dispatch({
279
+ type: "OPEN_SPLIT_SCREEN",
280
+ splitScreen: {
281
+ action,
282
+ open: true,
283
+ type: SplitScreenTypeEnums.Page
284
+ }
285
+ });
286
+ break;
287
+ case NodeActionEnums.Open_Notes:
288
+ if (dispatch) if (currentContainerId) break;
289
+ else dispatch({
290
+ type: "OPEN_SPLIT_SCREEN",
291
+ splitScreen: {
292
+ action,
293
+ open: true,
294
+ type: SplitScreenTypeEnums.Notes
295
+ }
296
+ });
297
+ break;
298
+ case NodeActionEnums.Open_Reminders:
299
+ if (dispatch) if (currentContainerId) break;
300
+ else dispatch({
301
+ type: "OPEN_SPLIT_SCREEN",
302
+ splitScreen: {
303
+ action,
304
+ open: true,
305
+ type: SplitScreenTypeEnums.Reminders
306
+ }
307
+ });
308
+ break;
309
+ case NodeActionEnums.Execute_Api:
310
+ if (executeAction && (action === null || action === void 0 ? void 0 : action.value)) {
311
+ var _apiMethod$data;
312
+ let data = {};
313
+ if (entityAttributes.length > 0 && ((selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.nodeObj) || actionData)) {
314
+ if (actionData) data = { ...actionData };
315
+ else data = { ...selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.nodeObj };
316
+ const removeAttributes = entityAttributes.filter((p) => {
317
+ var _p$extendedProperties;
318
+ return p === null || p === void 0 || (_p$extendedProperties = p.extendedProperties) === null || _p$extendedProperties === void 0 ? void 0 : _p$extendedProperties.childEntity;
319
+ });
320
+ removeAttributes.forEach((att) => {
321
+ if (att["name"] in data || "serializeFields" in data) delete data[att["name"]];
322
+ });
323
+ }
324
+ const apiMethod = await getApiMethod(action === null || action === void 0 ? void 0 : action.value);
325
+ const pathParamValues = getPathParametersObj(apiMethod === null || apiMethod === void 0 || (_apiMethod$data = apiMethod.data) === null || _apiMethod$data === void 0 ? void 0 : _apiMethod$data.pathParametersDefinition, data);
326
+ executeAction({ data: {
327
+ requestBody: data,
328
+ ...pathParamValues
329
+ } }, action.value).then((res) => {
330
+ enqueueSnackbar(t(`${action === null || action === void 0 ? void 0 : action.name} api has been executed successfully.`), {
331
+ anchorOrigin: {
332
+ vertical: "top",
333
+ horizontal: "center"
334
+ },
335
+ action: successAction
336
+ });
337
+ }).catch((res) => {
338
+ enqueueSnackbar(res.message, {
339
+ variant: "error",
340
+ anchorOrigin: {
341
+ vertical: "top",
342
+ horizontal: "center"
343
+ }
344
+ });
345
+ });
346
+ } else enqueueSnackbar(t(`Unable to execute ${actionName} action.`), {
347
+ variant: "error",
348
+ anchorOrigin: {
349
+ vertical: "top",
350
+ horizontal: "center"
351
+ }
352
+ });
353
+ break;
354
+ case NodeActionEnums.Start_Workflow:
355
+ setWorkflowStarting(true);
356
+ const response = await executeStartWorkflow(actionValue, actionData || {}).catch((e) => {
357
+ enqueueSnackbar(t(`Unable to Start Workflow`), {
358
+ variant: "error",
359
+ anchorOrigin: {
360
+ vertical: "top",
361
+ horizontal: "center"
362
+ }
363
+ });
364
+ });
365
+ setWorkflowStarting(false);
366
+ if (response.status === 200) {
367
+ const playId = response.data;
368
+ if (selectedNode) {
369
+ const workflow = {
370
+ inWorkflowMode: true,
371
+ currentWorkflowPlayId: playId
372
+ };
373
+ const containerId = currentContainerId || 0;
374
+ setWorkflowMap({ [containerId]: workflow });
375
+ } else history.push({
376
+ pathname: `/workflowtask/${playId}?taskId=`,
377
+ state: { label: t("Workflow") }
378
+ });
379
+ }
380
+ break;
381
+ case NodeActionEnums.Execute_Function:
382
+ !(actionData === null || actionData === void 0) && actionData.execute && actionData.execute();
383
+ break;
384
+ default: break;
385
+ }
386
+ };
387
+ return { handleAction };
388
+ };
389
+
390
+ //#endregion
391
+ //#region src/contexts/ActionLoadingDispatchContext.js
392
+ const ActionLoadingDispatchContext = createContext(null);
393
+
394
+ //#endregion
395
+ //#region src/stores/catalogStore.ts
396
+ const useCatalogStore = create()(devtools((set) => ({
397
+ currentApiCatalogId: "",
398
+ setCurrentApiCatalogId: (apiCatalogId) => {
399
+ sessionStorage.setItem("current-api-catalog-id", apiCatalogId);
400
+ set((state) => ({ currentApiCatalogId: apiCatalogId }));
401
+ },
402
+ catalogsMap: {},
403
+ setCatalogsMap: (catalogsMap) => set((state) => ({ catalogsMap: {
404
+ ...state.catalogsMap,
405
+ ...catalogsMap
406
+ } })),
407
+ promotedEntityMap: {},
408
+ setPromotedEntityMap: (promotedEntityMap) => set((state) => ({ promotedEntityMap: {
409
+ ...state.promotedEntityMap,
410
+ ...promotedEntityMap
411
+ } }))
412
+ })));
413
+
414
+ //#endregion
415
+ //#region src/hooks/useActions.js
416
+ const useActions = () => {
417
+ const dispatch = useContext(ActionDispatchContext);
418
+ const dispatchActionLoading = useContext(ActionLoadingDispatchContext);
419
+ const actionState = useActionState();
420
+ const { catalogsMap, currentApiCatalogId } = useCatalogStore();
421
+ const currentContainerId = useShellStore((state) => state.currentContainerId);
422
+ const { enqueueSnackbar } = useSnackbar();
423
+ const { t } = useTranslation();
424
+ const { handleAction } = useHandleAction();
425
+ const setActionLoading = useCallback((loading) => {
426
+ dispatchActionLoading({
427
+ type: "SET_ACTION_LOADING",
428
+ loading
429
+ });
430
+ }, [dispatchActionLoading]);
431
+ const setActionWaitingToExecute = useCallback((actionId) => {
432
+ dispatchActionLoading({
433
+ type: "SET_ACTION_WAITING_TO_EXECUTE",
434
+ actionId
435
+ });
436
+ }, [dispatchActionLoading]);
437
+ const executeGetAction = useCallback(async (actionId) => apiMutate$1(ConfigService.integrationV1ApiUrl, `action/${actionId}`, { method: "get" }, {}), []);
438
+ const executeAction = useCallback(async (data, id) => apiMutate$1(ConfigService.integrationV1ApiUrl, `apimethod/executeQueryWithParameters/${id}`, { method: "post" }, data), []);
439
+ const setActionPanels = useCallback((actionPanels, containerId) => {
440
+ dispatch({
441
+ type: "SET_ACTION_PANELS",
442
+ actionPanels,
443
+ containerId
444
+ });
445
+ }, [dispatch]);
446
+ const getActionPanelByAction = useCallback((act) => {
447
+ if (act && actionState) {
448
+ const actionPanels = actionState.actionPanels;
449
+ const containerId = currentContainerId || 0;
450
+ if (actionPanels && Array.isArray(actionPanels) && actionPanels[containerId]) {
451
+ const actionPanel = actionPanels[containerId];
452
+ if (Array.isArray(actionPanel.panelActions)) {
453
+ const foundPanel = actionPanel.find((ap) => {
454
+ return ap.panelActions.find((pa) => {
455
+ return pa.actionId === act.actionId;
456
+ });
457
+ });
458
+ return foundPanel;
459
+ } else console.error("panelActions is not an array:", actionPanel.panelActions);
460
+ } else console.error("actionPanels is not valid:", actionPanels);
461
+ } else console.error("act or actionState is not defined:", act, actionState);
462
+ return null;
463
+ }, [actionState, currentContainerId]);
464
+ const setupAndExecuteAction = useCallback(async (catalog, actionId, actionData) => {
465
+ await executeGetAction(actionId).then((resp) => {
466
+ const panel = getActionPanelByAction(resp.data);
467
+ let entityName = panel === null || panel === void 0 ? void 0 : panel.entityName;
468
+ if (!panel) {
469
+ var _resp$data;
470
+ entityName = resp === null || resp === void 0 || (_resp$data = resp.data) === null || _resp$data === void 0 || (_resp$data = _resp$data.parameters) === null || _resp$data === void 0 ? void 0 : _resp$data.entityName;
471
+ }
472
+ if (entityName) {
473
+ !(actionState === null || actionState === void 0) && actionState.setCurrentEntityName && actionState.setCurrentEntityName(entityName);
474
+ const eAttributes = getEntityAttributes(catalog, entityName);
475
+ if (!(eAttributes === null || eAttributes === void 0 ? void 0 : eAttributes.length) && resp.data.actionTypeId !== NodeActionEnums.Start_Workflow) enqueueSnackbar(t(`Unable to retrieve entity attributes.`), {
476
+ variant: "error",
477
+ anchorOrigin: {
478
+ vertical: "top",
479
+ horizontal: "center"
480
+ }
481
+ });
482
+ else handleAction(dispatch, resp.data, actionState, executeAction, catalog === null || catalog === void 0 ? void 0 : catalog.apiCatalogId, eAttributes, actionData, currentContainerId);
483
+ } else {
484
+ console.warn("Entity name does not exist");
485
+ handleAction(dispatch, resp.data, actionState, executeAction, catalog === null || catalog === void 0 ? void 0 : catalog.apiCatalogId, {}, actionData, currentContainerId);
486
+ }
487
+ });
488
+ }, [
489
+ actionState,
490
+ enqueueSnackbar,
491
+ executeAction,
492
+ executeGetAction,
493
+ getActionPanelByAction,
494
+ handleAction,
495
+ t,
496
+ dispatch,
497
+ currentContainerId
498
+ ]);
499
+ const executeTriggerAction = useCallback(async (actionId, actionData) => {
500
+ if (actionState === null || actionState === void 0 ? void 0 : actionState.catalogPromise) {
501
+ if (!(actionState === null || actionState === void 0 ? void 0 : actionState.catalog)) setActionWaitingToExecute(actionId);
502
+ try {
503
+ const result = await actionState.catalogPromise;
504
+ setupAndExecuteAction((result === null || result === void 0 ? void 0 : result.data) || catalogsMap[currentApiCatalogId], actionId, actionData);
505
+ } catch (error) {
506
+ enqueueSnackbar(t(`Unable to retrieve catalog data.`), {
507
+ variant: "error",
508
+ anchorOrigin: {
509
+ vertical: "top",
510
+ horizontal: "center"
511
+ }
512
+ });
513
+ }
514
+ }
515
+ setActionWaitingToExecute("");
516
+ }, [
517
+ setupAndExecuteAction,
518
+ enqueueSnackbar,
519
+ t,
520
+ actionState,
521
+ setActionWaitingToExecute,
522
+ catalogsMap,
523
+ currentApiCatalogId
524
+ ]);
525
+ const triggerAction = useCallback((actionId, actionData) => {
526
+ executeTriggerAction(actionId, actionData);
527
+ }, [executeTriggerAction]);
528
+ const triggerMultipleActions = useCallback((actionIds) => {
529
+ actionIds.forEach((id) => {
530
+ executeTriggerAction(id);
531
+ });
532
+ }, [executeTriggerAction]);
533
+ const setCatalogEntities = useCallback((catalogEntities) => {
534
+ dispatch({
535
+ type: "SET_CATALOG_ENTITIES",
536
+ catalogEntities
537
+ });
538
+ }, [dispatch]);
539
+ const setCatalogPromotedEntities = useCallback((catalogPromotedEntities) => {
540
+ dispatch({
541
+ type: "SET_CATALOG_PROMOTED_ENTITIES",
542
+ catalogPromotedEntities
543
+ });
544
+ }, [dispatch]);
545
+ const setInquiryParams = useCallback((inquiryParams, containerId) => {
546
+ dispatch({
547
+ type: "SET_INQUIRY_PARAMS",
548
+ inquiryParams,
549
+ containerId
550
+ });
551
+ }, [dispatch]);
552
+ const setShowInquiryHeaderActions = useCallback((showInquiryHeaderActions) => {
553
+ dispatch({
554
+ type: "SET_SHOW_INQUIRY_HEADER_ACTIONS",
555
+ showInquiryHeaderActions
556
+ });
557
+ }, [dispatch]);
558
+ const setMenuListState = useCallback((menuListState) => {
559
+ dispatch({
560
+ type: "SET_MENU_LIST_STATE",
561
+ menuListState
562
+ });
563
+ }, [dispatch]);
564
+ const closeAllSplitScreens = useCallback(() => {
565
+ dispatch({ type: "CLOSE_ALL_SPLIT_SCREENS" });
566
+ }, [dispatch]);
567
+ const openSplitScreen = useCallback((splitScreen) => {
568
+ dispatch({
569
+ type: "OPEN_SPLIT_SCREEN",
570
+ splitScreen
571
+ });
572
+ }, [dispatch]);
573
+ const openPageSplitScreen = useCallback((pageSplitScreen) => {
574
+ dispatch({
575
+ type: "OPEN_PAGE_SPLIT_SCREEN",
576
+ pageSplitScreen
577
+ });
578
+ }, [dispatch]);
579
+ const openPageContainerSplitScreen = useCallback((pageContainerSplitScreen) => {
580
+ dispatch({
581
+ type: "OPEN_PAGE_CONTAINER_SPLIT_SCREEN",
582
+ pageContainerSplitScreen
583
+ });
584
+ }, [dispatch]);
585
+ const setApiCatalog = useCallback((catalog) => {
586
+ dispatch({
587
+ type: "SET_API_CATALOG",
588
+ catalog
589
+ });
590
+ }, [dispatch]);
591
+ return {
592
+ setActionPanels,
593
+ triggerAction,
594
+ triggerMultipleActions,
595
+ setCatalogEntities,
596
+ setCatalogPromotedEntities,
597
+ setInquiryParams,
598
+ setShowInquiryHeaderActions,
599
+ setMenuListState,
600
+ closeAllSplitScreens,
601
+ openSplitScreen,
602
+ openPageSplitScreen,
603
+ openPageContainerSplitScreen,
604
+ setApiCatalog,
605
+ setActionLoading
606
+ };
607
+ };
608
+ const useActionState = () => useContext(ActionContext);
609
+
610
+ //#endregion
611
+ //#region src/UI/inputs/textField/AmbientTextField.jsx
612
+ const useStyles$21 = makeStyles((theme) => ({
613
+ input: {
614
+ borderRadius: 2,
615
+ height: (props) => !props.multiline && !Array.isArray(props.value) && 32,
616
+ padding: (props) => !props.multiline && 0,
617
+ paddingBottom: 10,
618
+ marginTop: 3,
619
+ "& .MuiFilledInput-inputMarginDense": { paddingTop: 8 },
620
+ "& .MuiInputAdornment-filled.MuiInputAdornment-positionStart:not(.MuiInputAdornment-hiddenLabel)": {
621
+ marginTop: theme.spacing(.5),
622
+ marginLeft: theme.spacing(1)
623
+ }
624
+ },
625
+ formTextInput: { fontSize: 14 },
626
+ labelRoot: { fontSize: 14 },
627
+ FormControl: {
628
+ display: "none",
629
+ marginTop: 0
630
+ },
631
+ root: {
632
+ width: "100%",
633
+ marginTop: 25,
634
+ "& .MuiFormLabel-root": {
635
+ marginTop: -30,
636
+ marginLeft: -11
637
+ },
638
+ "& .MuiInputAdornment-root": { paddingLeft: theme.spacing(1) }
639
+ },
640
+ noLabel: { marginTop: theme.spacing(1) }
641
+ }));
642
+ const AmbientTextField = (props) => {
643
+ var _props$InputProps, _props$InputProps2;
644
+ const classes = useStyles$21(props);
645
+ const { id, label, startAdornment, endAdornment, title = "noTitle",...InputProps } = props;
646
+ return /* @__PURE__ */ jsx("div", {
647
+ className: label ? classes.root : classes.noLabel,
648
+ children: /* @__PURE__ */ jsx(TextField, {
649
+ ...InputProps,
650
+ id,
651
+ udprecordid: `udpRecord-FluentAmbientTextField-${title.replace(/\s/g, "")}-${props === null || props === void 0 || (_props$InputProps = props.InputProps) === null || _props$InputProps === void 0 ? void 0 : _props$InputProps.type}`,
652
+ variant: "filled",
653
+ size: "small",
654
+ margin: "dense",
655
+ label,
656
+ classes: { label: classes.label },
657
+ InputProps: {
658
+ classes: {
659
+ root: classes.input,
660
+ input: classes.formTextInput,
661
+ ...(_props$InputProps2 = props.InputProps) === null || _props$InputProps2 === void 0 ? void 0 : _props$InputProps2.classes
662
+ },
663
+ ...props.InputProps,
664
+ ...startAdornment,
665
+ ...endAdornment
666
+ },
667
+ InputLabelProps: {
668
+ shrink: false,
669
+ classes: {
670
+ root: classes.labelRoot,
671
+ focused: classes.labelFocused
672
+ }
673
+ }
674
+ })
675
+ });
676
+ };
677
+ AmbientTextField.propTypes = {
678
+ id: PropTypes.string,
679
+ label: PropTypes.string,
680
+ startAdornment: PropTypes.node,
681
+ endAdornment: PropTypes.node
682
+ };
683
+
684
+ //#endregion
685
+ //#region src/utilities/style/utils/styleUtils.js
686
+ const getEllipseColor = (theme, color) => {
687
+ if (!theme) return "";
688
+ let ellipseColor = theme.palette.primary.main;
689
+ switch (color) {
690
+ case "action":
691
+ var _theme$palette$system;
692
+ ellipseColor = (_theme$palette$system = theme.palette.systemIcon) === null || _theme$palette$system === void 0 || (_theme$palette$system = _theme$palette$system.action) === null || _theme$palette$system === void 0 ? void 0 : _theme$palette$system.main;
693
+ break;
694
+ case "sequence":
695
+ var _theme$palette$system2;
696
+ ellipseColor = (_theme$palette$system2 = theme.palette.systemIcon) === null || _theme$palette$system2 === void 0 || (_theme$palette$system2 = _theme$palette$system2.sequence) === null || _theme$palette$system2 === void 0 ? void 0 : _theme$palette$system2.main;
697
+ break;
698
+ case "trigger":
699
+ var _theme$palette$system3;
700
+ ellipseColor = (_theme$palette$system3 = theme.palette.systemIcon) === null || _theme$palette$system3 === void 0 || (_theme$palette$system3 = _theme$palette$system3.trigger) === null || _theme$palette$system3 === void 0 ? void 0 : _theme$palette$system3.main;
701
+ break;
702
+ case "condition":
703
+ var _theme$palette$system4;
704
+ ellipseColor = (_theme$palette$system4 = theme.palette.systemIcon) === null || _theme$palette$system4 === void 0 || (_theme$palette$system4 = _theme$palette$system4.condition) === null || _theme$palette$system4 === void 0 ? void 0 : _theme$palette$system4.main;
705
+ break;
706
+ case "primary":
707
+ ellipseColor = theme.palette.primary.main;
708
+ break;
709
+ case "secondary":
710
+ ellipseColor = theme.palette.secondary.main;
711
+ break;
712
+ case "info":
713
+ ellipseColor = theme.palette.info.main;
714
+ break;
715
+ case "warning":
716
+ ellipseColor = theme.palette.warning.main;
717
+ break;
718
+ case "error":
719
+ ellipseColor = theme.palette.error.main;
720
+ break;
721
+ case "success":
722
+ ellipseColor = theme.palette.success.main;
723
+ break;
724
+ default:
725
+ ellipseColor = theme.palette.secondary.main;
726
+ break;
727
+ }
728
+ return ellipseColor;
729
+ };
730
+ const getEllipseHintColor = (theme, color) => {
731
+ if (!theme) return "";
732
+ let ellipseHintColor = theme.palette.primary.main;
733
+ switch (color) {
734
+ case "action":
735
+ var _theme$palette$system5;
736
+ ellipseHintColor = (_theme$palette$system5 = theme.palette.systemIcon) === null || _theme$palette$system5 === void 0 || (_theme$palette$system5 = _theme$palette$system5.action) === null || _theme$palette$system5 === void 0 ? void 0 : _theme$palette$system5.hint;
737
+ break;
738
+ case "sequence":
739
+ var _theme$palette$system6;
740
+ ellipseHintColor = (_theme$palette$system6 = theme.palette.systemIcon) === null || _theme$palette$system6 === void 0 || (_theme$palette$system6 = _theme$palette$system6.sequence) === null || _theme$palette$system6 === void 0 ? void 0 : _theme$palette$system6.hint;
741
+ break;
742
+ case "trigger":
743
+ var _theme$palette$system7;
744
+ ellipseHintColor = (_theme$palette$system7 = theme.palette.systemIcon) === null || _theme$palette$system7 === void 0 || (_theme$palette$system7 = _theme$palette$system7.trigger) === null || _theme$palette$system7 === void 0 ? void 0 : _theme$palette$system7.hint;
745
+ break;
746
+ case "condition":
747
+ var _theme$palette$system8;
748
+ ellipseHintColor = (_theme$palette$system8 = theme.palette.systemIcon) === null || _theme$palette$system8 === void 0 || (_theme$palette$system8 = _theme$palette$system8.condition) === null || _theme$palette$system8 === void 0 ? void 0 : _theme$palette$system8.hint;
749
+ break;
750
+ case "primary":
751
+ ellipseHintColor = theme.palette.primary.hint;
752
+ break;
753
+ case "secondary":
754
+ ellipseHintColor = theme.palette.secondary.hint;
755
+ break;
756
+ case "info":
757
+ var _theme$palette$unity;
758
+ ellipseHintColor = (_theme$palette$unity = theme.palette.unity) === null || _theme$palette$unity === void 0 || (_theme$palette$unity = _theme$palette$unity.info) === null || _theme$palette$unity === void 0 ? void 0 : _theme$palette$unity.hint;
759
+ break;
760
+ case "warning":
761
+ var _theme$palette$unity2;
762
+ ellipseHintColor = (_theme$palette$unity2 = theme.palette.unity) === null || _theme$palette$unity2 === void 0 || (_theme$palette$unity2 = _theme$palette$unity2.warning) === null || _theme$palette$unity2 === void 0 ? void 0 : _theme$palette$unity2.hint;
763
+ break;
764
+ case "error":
765
+ var _theme$palette$unity3;
766
+ ellipseHintColor = (_theme$palette$unity3 = theme.palette.unity) === null || _theme$palette$unity3 === void 0 || (_theme$palette$unity3 = _theme$palette$unity3.error) === null || _theme$palette$unity3 === void 0 ? void 0 : _theme$palette$unity3.hint;
767
+ break;
768
+ case "success":
769
+ var _theme$palette$unity4;
770
+ ellipseHintColor = (_theme$palette$unity4 = theme.palette.unity) === null || _theme$palette$unity4 === void 0 || (_theme$palette$unity4 = _theme$palette$unity4.success) === null || _theme$palette$unity4 === void 0 ? void 0 : _theme$palette$unity4.hint;
771
+ break;
772
+ default:
773
+ ellipseHintColor = theme.palette.common.white;
774
+ break;
775
+ }
776
+ return ellipseHintColor;
777
+ };
778
+
779
+ //#endregion
780
+ //#region src/UI/components/dataDisplay/Ellipse.jsx
781
+ const useStyles$20 = makeStyles((theme) => ({ root: {
782
+ display: "flex",
783
+ alignItems: "center",
784
+ justifyContent: "center",
785
+ width: (props) => props.size === "small" ? theme.spacing(4) : theme.spacing(5),
786
+ height: (props) => props.size === "small" ? theme.spacing(4) : theme.spacing(5),
787
+ borderRadius: 50,
788
+ border: (props) => props.variant === "filled" ? "none" : `2px solid`,
789
+ backgroundColor: (props) => props.variant === "filled" && getEllipseHintColor(theme, props.color),
790
+ borderColor: (props) => getEllipseColor(theme, props.color)
791
+ } }));
792
+ const Ellipse = (props) => {
793
+ const { children } = props;
794
+ const classes = useStyles$20(props);
795
+ return /* @__PURE__ */ jsx("div", {
796
+ className: classes.root,
797
+ children
798
+ });
799
+ };
800
+ Ellipse.propTypes = {
801
+ color: PropTypes.string,
802
+ size: PropTypes.string,
803
+ variant: PropTypes.string
804
+ };
805
+
806
+ //#endregion
807
+ //#region src/UI/templates/ui/GridSidebarContainer.jsx
808
+ const useStyles$19 = makeStyles((theme) => ({
809
+ root: {},
810
+ groupWrapper: {
811
+ padding: theme.spacing(2),
812
+ height: (props) => (props === null || props === void 0 ? void 0 : props.height) ? `${props.height} !important` : "calc(100vh - 280px) !important",
813
+ overflow: "auto"
814
+ }
815
+ }));
816
+ const GridSidebarContainer = (props) => {
817
+ const { children, color } = props;
818
+ const classes = useStyles$19(props);
819
+ return /* @__PURE__ */ jsx("div", {
820
+ className: classes.root,
821
+ children: /* @__PURE__ */ jsx(Paper, {
822
+ elevation: "0",
823
+ square: true,
824
+ style: { background: color },
825
+ children: /* @__PURE__ */ jsx("div", {
826
+ className: classes.groupWrapper,
827
+ children
828
+ })
829
+ })
830
+ });
831
+ };
832
+ GridSidebarContainer.propTypes = {
833
+ children: PropTypes.node,
834
+ color: PropTypes.string
835
+ };
836
+
837
+ //#endregion
838
+ //#region src/UI/inputs/buttons/AmbientTokenButton.jsx
839
+ const useStyles$18 = makeStyles((theme) => ({
840
+ root: {},
841
+ actionHeader: {
842
+ display: "flex",
843
+ flexDirection: "row"
844
+ },
845
+ icon: {
846
+ background: theme.palette.common.white,
847
+ padding: theme.spacing(1),
848
+ color: theme.palette.secondary.main
849
+ }
850
+ }));
851
+ const AmbientTokenButton = forwardRef(function AmbientTokenButton$1(props, ref) {
852
+ const { tooltip, ariaLabel, onClick, size, icon = ChevronDownIcon, iconClassName, otherProps, id = "token-button", udprecordid } = props;
853
+ const classes = useStyles$18(props);
854
+ return /* @__PURE__ */ jsx("div", {
855
+ className: classes.root,
856
+ children: /* @__PURE__ */ jsx(Tooltip, {
857
+ title: tooltip,
858
+ children: /* @__PURE__ */ jsx(IconButton, {
859
+ id,
860
+ udprecordid,
861
+ ref,
862
+ "aria-label": ariaLabel,
863
+ className: iconClassName !== null && iconClassName !== void 0 ? iconClassName : classes.icon,
864
+ size: size !== null && size !== void 0 ? size : "small",
865
+ onClick,
866
+ ...otherProps,
867
+ children: /* @__PURE__ */ jsx(FluentIcon, {
868
+ className: classes.iconButtonStyle,
869
+ component: icon
870
+ })
871
+ })
872
+ })
873
+ });
874
+ });
875
+ AmbientTokenButton.propTypes = {
876
+ tooltip: PropTypes.string.isRequired,
877
+ ariaLabel: PropTypes.string.isRequired,
878
+ onClick: PropTypes.func,
879
+ icon: PropTypes.func.isRequired
880
+ };
881
+
882
+ //#endregion
883
+ //#region src/UI/templates/ui/GridGroupingHeader.jsx
884
+ const useStyles$17 = makeStyles((theme) => ({
885
+ root: {},
886
+ actionHeader: {
887
+ display: "flex",
888
+ flexDirection: "row",
889
+ gap: 10
890
+ },
891
+ icon: {
892
+ background: theme.palette.common.white,
893
+ padding: theme.spacing(1),
894
+ color: theme.palette.secondary.main
895
+ }
896
+ }));
897
+ const GridGroupingHeader = ({ expandClick, collapseClick }) => {
898
+ const classes = useStyles$17();
899
+ return /* @__PURE__ */ jsxs("div", {
900
+ className: classes.root,
901
+ children: [
902
+ /* @__PURE__ */ jsxs("div", {
903
+ className: classes.actionHeader,
904
+ children: [/* @__PURE__ */ jsx(AmbientTokenButton, {
905
+ icon: ChevronFold10Icon,
906
+ tooltip: "Collapse All",
907
+ ariaLabel: "Collapse All",
908
+ onClick: collapseClick
909
+ }), /* @__PURE__ */ jsx(AmbientTokenButton, {
910
+ icon: ChevronUnfold10Icon,
911
+ tooltip: "Expand All",
912
+ ariaLabel: "Expand All",
913
+ onClick: expandClick
914
+ })]
915
+ }),
916
+ /* @__PURE__ */ jsx(LayoutUnit, { unit: "nudge" }),
917
+ /* @__PURE__ */ jsx("div", {
918
+ className: classes.label,
919
+ children: /* @__PURE__ */ jsx(Typography, {
920
+ variant: "caption",
921
+ children: "Group By:"
922
+ })
923
+ }),
924
+ /* @__PURE__ */ jsx(LayoutUnit, { unit: "nudge" })
925
+ ]
926
+ });
927
+ };
928
+ GridGroupingHeader.propTypes = {
929
+ expandClick: PropTypes.func.isRequired,
930
+ collapseClick: PropTypes.func.isRequired
931
+ };
932
+
933
+ //#endregion
934
+ //#region src/UI/components/dataDisplay/Token.jsx
935
+ const useStyles$16 = makeStyles((theme) => ({
936
+ root: { margin: (props) => props.compact ? theme.spacing(.5) : theme.spacing(1) },
937
+ letter: {
938
+ fontSize: (props) => props.size === "small" ? theme.spacing(2.25) : theme.spacing(2.5),
939
+ color: (props) => getEllipseColor(theme, props.color)
940
+ },
941
+ buttonRoot: {
942
+ margin: theme.spacing(1),
943
+ width: (props) => props.size === "small" ? theme.spacing(4) : theme.spacing(5),
944
+ height: (props) => props.size === "small" ? theme.spacing(4) : theme.spacing(5),
945
+ background: (props) => props.variant === "filled" ? getEllipseHintColor(theme, props.color) : "",
946
+ border: (props) => props.variant === "outlined" ? `1px solid` : "none",
947
+ borderColor: (props) => props.variant === "outlined" ? getEllipseColor(theme, props.color) : ""
948
+ }
949
+ }));
950
+ const Token = (props) => {
951
+ const { type = "default", variant = "outlined", color = "default", size = "large", iconType, icon, letter = "A", IconEllipseProps, onClick } = props;
952
+ const classes = useStyles$16(props);
953
+ const theme = useTheme();
954
+ const iconColor = useMemo(() => {
955
+ return getEllipseColor(theme, color);
956
+ }, [color, theme]);
957
+ const tokenComponent = /* @__PURE__ */ jsx("div", {
958
+ className: classes.root,
959
+ children: /* @__PURE__ */ jsx(Ellipse, {
960
+ variant,
961
+ size,
962
+ color,
963
+ ...IconEllipseProps,
964
+ children: type === "letter" ? /* @__PURE__ */ jsx(Typography, {
965
+ variant: "body1",
966
+ className: classes.letter,
967
+ children: letter.toUpperCase()
968
+ }) : /* @__PURE__ */ jsx(UnityFluentIcon, {
969
+ size: size === "small" ? size : "medium",
970
+ color: iconColor,
971
+ type: iconType,
972
+ icon,
973
+ style: { color: iconColor }
974
+ })
975
+ })
976
+ });
977
+ if (type === "action") return /* @__PURE__ */ jsx(IconButton, {
978
+ classes: { root: classes.buttonRoot },
979
+ onClick,
980
+ children: /* @__PURE__ */ jsx(UnityFluentIcon, {
981
+ size: size === "small" ? size : "medium",
982
+ color: iconColor,
983
+ type: iconType,
984
+ icon,
985
+ style: { color: iconColor }
986
+ })
987
+ });
988
+ return tokenComponent;
989
+ };
990
+ Token.propTypes = {
991
+ type: PropTypes.string,
992
+ variant: PropTypes.string,
993
+ color: PropTypes.string,
994
+ size: PropTypes.string,
995
+ iconType: PropTypes.string,
996
+ icon: PropTypes.elementType,
997
+ letter: PropTypes.string,
998
+ onClick: PropTypes.func
999
+ };
1000
+
1001
+ //#endregion
1002
+ //#region src/UI/inputs/buttons/AmbientToggleButton.jsx
1003
+ const useStyles$15 = makeStyles((theme) => ({
1004
+ root: {},
1005
+ groupActionContainer: {
1006
+ display: "flex",
1007
+ flexDirection: "column",
1008
+ flexWrap: "wrap",
1009
+ alignContent: "space-around"
1010
+ },
1011
+ toggleRoot: {
1012
+ "&:not(:first-child)": {
1013
+ marginTop: 16,
1014
+ border: "1px solid lightgrey",
1015
+ borderTopLeftRadius: 25,
1016
+ borderTopRightRadius: 25,
1017
+ borderRadius: 25,
1018
+ padding: 0,
1019
+ paddingRight: theme.spacing(2)
1020
+ },
1021
+ "&:not(:last-child)": {
1022
+ borderBottomLeftRadius: 25,
1023
+ borderBottomRightRadius: 25,
1024
+ borderRadius: 25,
1025
+ padding: 0,
1026
+ border: "1px solid lightgrey",
1027
+ paddingRight: theme.spacing(2)
1028
+ },
1029
+ "& .MuiToggleButton-root.Mui-selected": {
1030
+ color: "rgba(0, 0, 0, 0.54)",
1031
+ backgroundColor: "white"
1032
+ }
1033
+ },
1034
+ buttonRoot: {
1035
+ textTransform: "none",
1036
+ fontWeight: 700,
1037
+ justifyContent: "flex-start"
1038
+ },
1039
+ ".MuiToggleButton-root.Mui-selected": {
1040
+ color: "rgba(0, 0, 0, 0.54)",
1041
+ backgroundColor: "white"
1042
+ }
1043
+ }));
1044
+ const AmbientToggleButton = ({ children, value, ariaLabel, onClick,...otherProps }) => {
1045
+ const classes = useStyles$15();
1046
+ return /* @__PURE__ */ jsx("div", {
1047
+ className: classes.root,
1048
+ children: /* @__PURE__ */ jsx(ToggleButton, {
1049
+ classes: { root: classes.buttonRoot },
1050
+ value,
1051
+ "aria-label": ariaLabel,
1052
+ onClick,
1053
+ ...otherProps,
1054
+ children
1055
+ })
1056
+ });
1057
+ };
1058
+ AmbientToggleButton.propTypes = {
1059
+ children: PropTypes.node,
1060
+ value: PropTypes.string,
1061
+ ariaLabel: PropTypes.string,
1062
+ onClick: PropTypes.func
1063
+ };
1064
+
1065
+ //#endregion
1066
+ //#region src/utilities/isValueSelected.js
1067
+ function isValueSelected(value, candidate) {
1068
+ if (candidate === void 0 || value === void 0) return false;
1069
+ if (Array.isArray(candidate)) return candidate.indexOf(value) >= 0;
1070
+ return value === candidate;
1071
+ }
1072
+
1073
+ //#endregion
1074
+ //#region src/UI/inputs/buttons/AmbientToggleButtonGroupDefault.jsx
1075
+ const styles = (theme) => ({
1076
+ root: {
1077
+ display: "inline-flex",
1078
+ padding: 0
1079
+ },
1080
+ vertical: { flexDirection: "column" },
1081
+ grouped: {},
1082
+ groupedHorizontal: {
1083
+ borderRadius: 25,
1084
+ padding: 0,
1085
+ paddingRight: 16,
1086
+ "&:not(:first-child)": {
1087
+ marginTop: 16,
1088
+ borderRadius: 25,
1089
+ paddingRight: 16,
1090
+ padding: 0
1091
+ },
1092
+ "&:not(:last-child)": {
1093
+ padding: 0,
1094
+ borderRadius: 25,
1095
+ paddingRight: 16
1096
+ }
1097
+ },
1098
+ groupedVertical: {
1099
+ borderRadius: 25,
1100
+ padding: 0,
1101
+ paddingRight: 16,
1102
+ "&:not(:first-child)": {
1103
+ marginTop: 16,
1104
+ borderRadius: 25,
1105
+ paddingRight: 16,
1106
+ padding: 0
1107
+ },
1108
+ "&:not(:last-child)": {
1109
+ padding: 0,
1110
+ borderRadius: 25,
1111
+ paddingRight: 16
1112
+ }
1113
+ }
1114
+ });
1115
+ const AmbientToggleButtonGroupDefault = forwardRef(function AmbientToggleButton$1(props, ref) {
1116
+ const { children, classes, className, exclusive = false, onChange, orientation = "horizontal", size = "medium", value,...other } = props;
1117
+ const handleChange = (event, buttonValue) => {
1118
+ if (!onChange) return;
1119
+ const index = value && value.indexOf(buttonValue);
1120
+ let newValue;
1121
+ if (value && index >= 0) {
1122
+ newValue = value.slice();
1123
+ newValue.splice(index, 1);
1124
+ } else newValue = value ? value.concat(buttonValue) : [buttonValue];
1125
+ onChange(event, newValue);
1126
+ };
1127
+ const handleExclusiveChange = (event, buttonValue) => {
1128
+ if (!onChange) return;
1129
+ onChange(event, value === buttonValue ? null : buttonValue);
1130
+ };
1131
+ return /* @__PURE__ */ jsx("div", {
1132
+ role: "group",
1133
+ className: clsx(classes.root, { [classes.vertical]: orientation === "vertical" }, className),
1134
+ ref,
1135
+ ...other,
1136
+ children: Children.map(children, (child) => {
1137
+ if (!isValidElement(child)) return null;
1138
+ if (process.env.NODE_ENV !== "production") {
1139
+ if (isFragment(child)) console.error(["Material-UI: The ToggleButtonGroup component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join("\n"));
1140
+ }
1141
+ return cloneElement(child, {
1142
+ className: clsx(classes.grouped, classes[`grouped${capitalize(orientation)}`], child.props.className),
1143
+ onChange: exclusive ? handleExclusiveChange : handleChange,
1144
+ selected: child.props.selected === void 0 ? isValueSelected(child.props.value, value) : child.props.selected,
1145
+ size: child.props.size || size
1146
+ });
1147
+ })
1148
+ });
1149
+ });
1150
+ AmbientToggleButtonGroupDefault.propTypes = {
1151
+ children: PropTypes.node,
1152
+ classes: PropTypes.object,
1153
+ className: PropTypes.string,
1154
+ exclusive: PropTypes.bool,
1155
+ onChange: PropTypes.func,
1156
+ orientation: PropTypes.oneOf(["horizontal", "vertical"]),
1157
+ size: PropTypes.oneOf([
1158
+ "large",
1159
+ "medium",
1160
+ "small"
1161
+ ]),
1162
+ value: PropTypes.any
1163
+ };
1164
+ var AmbientToggleButtonGroupDefault_default = withStyles$1(styles, { name: "MuiToggleButtonGroup" })(AmbientToggleButtonGroupDefault);
1165
+
1166
+ //#endregion
1167
+ //#region src/UI/templates/ui/GridGroupingSidebar.jsx
1168
+ const useStyles$14 = makeStyles((theme) => ({
1169
+ root: {},
1170
+ groupActionContainer: {
1171
+ display: "flex",
1172
+ flexDirection: "column",
1173
+ flexWrap: "wrap",
1174
+ alignContent: "space-around"
1175
+ },
1176
+ buttonRoot: {
1177
+ textTransform: "none",
1178
+ fontWeight: 700,
1179
+ justifyContent: "flex-start"
1180
+ },
1181
+ buttonGroupWrapper: { gap: theme.spacing(2) }
1182
+ }));
1183
+ const GridGroupingSidebar = ({ groupItem, expandClick, collapseClick, closeClick, groupingData, height, color = "#F5F2F8" }) => {
1184
+ const classes = useStyles$14();
1185
+ const [view, setView] = useState("");
1186
+ const handleChange = (event, nextView) => {
1187
+ setView(nextView);
1188
+ };
1189
+ const GroupItem = ({ label, clear }) => {
1190
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Token, {
1191
+ icon: clear ? ChromeCloseIcon : AssessmentGroupIcon,
1192
+ color: "trigger",
1193
+ size: "small",
1194
+ variant: "filled",
1195
+ type: "icon"
1196
+ }), /* @__PURE__ */ jsxs(Typography, {
1197
+ variant: "caption",
1198
+ style: { color: "black" },
1199
+ children: [
1200
+ " ",
1201
+ label,
1202
+ " "
1203
+ ]
1204
+ })] });
1205
+ };
1206
+ return /* @__PURE__ */ jsx("div", {
1207
+ className: classes.root,
1208
+ children: /* @__PURE__ */ jsxs(GridSidebarContainer, {
1209
+ color,
1210
+ height,
1211
+ children: [/* @__PURE__ */ jsx(GridGroupingHeader, {
1212
+ expandClick,
1213
+ collapseClick,
1214
+ closeClick
1215
+ }), /* @__PURE__ */ jsx("div", {
1216
+ className: classes.groupActionContainer,
1217
+ children: /* @__PURE__ */ jsxs(AmbientToggleButtonGroupDefault_default, {
1218
+ orientation: "vertical",
1219
+ value: view,
1220
+ exclusive: true,
1221
+ onChange: handleChange,
1222
+ className: classes.buttonGroupWrapper,
1223
+ children: [groupingData.map((item) => {
1224
+ return /* @__PURE__ */ jsx(AmbientToggleButton, {
1225
+ value: item.value,
1226
+ "aria-label": item.label,
1227
+ onClick: () => groupItem(item.groupItem),
1228
+ children: /* @__PURE__ */ jsx(GroupItem, { label: item.label })
1229
+ });
1230
+ }), /* @__PURE__ */ jsx(AmbientToggleButton, {
1231
+ value: "noGroups",
1232
+ "aria-label": "noGroups",
1233
+ onClick: closeClick,
1234
+ children: /* @__PURE__ */ jsx(GroupItem, {
1235
+ label: "No Groups",
1236
+ clear: true
1237
+ })
1238
+ })]
1239
+ })
1240
+ })]
1241
+ })
1242
+ });
1243
+ };
1244
+ GridGroupingSidebar.propTypes = {
1245
+ groupItem: PropTypes.func,
1246
+ expandClick: PropTypes.func,
1247
+ collapseClick: PropTypes.func,
1248
+ closeClick: PropTypes.func,
1249
+ groupingData: PropTypes.array,
1250
+ color: PropTypes.string
1251
+ };
1252
+
1253
+ //#endregion
1254
+ //#region src/utilities/aggrid/SplitButton.jsx
1255
+ const useStyles$13 = makeStyles((theme) => ({
1256
+ arrowButtonRoot: { padding: 0 },
1257
+ menu: { zIndex: theme.zIndex.tooltip },
1258
+ paper: {}
1259
+ }), { name: "SplitButton" });
1260
+ /**
1261
+ * https://material-ui.com/components/button-group/#split-button
1262
+ */
1263
+ const SplitButton = (props) => {
1264
+ var _firstItem$props, _firstItem$props2;
1265
+ const classes = useStyles$13(props);
1266
+ const { popupName, color, size, variant, label, "aria-label": ariaLabel, children } = props;
1267
+ const popupId = useId(popupName);
1268
+ const popupState = usePopupState({
1269
+ variant: "popper",
1270
+ popupId
1271
+ });
1272
+ const firstItem = Children.toArray(children)[0];
1273
+ const setAnchorEl = useCallback((ref) => {
1274
+ if (ref) popupState.setAnchorEl(ref);
1275
+ }, []);
1276
+ return /* @__PURE__ */ jsxs(React.Fragment, { children: [/* @__PURE__ */ jsxs(ButtonGroup, {
1277
+ variant,
1278
+ color,
1279
+ size,
1280
+ ref: setAnchorEl,
1281
+ "aria-label": ariaLabel,
1282
+ children: [/* @__PURE__ */ jsx(Button, {
1283
+ onClick: firstItem === null || firstItem === void 0 || (_firstItem$props = firstItem.props) === null || _firstItem$props === void 0 ? void 0 : _firstItem$props.onClick,
1284
+ children: label || (firstItem === null || firstItem === void 0 || (_firstItem$props2 = firstItem.props) === null || _firstItem$props2 === void 0 ? void 0 : _firstItem$props2.children)
1285
+ }), /* @__PURE__ */ jsx(Button, {
1286
+ ...bindTrigger(popupState),
1287
+ className: classes.arrowButtonRoot,
1288
+ color,
1289
+ size: "small",
1290
+ "aria-expanded": popupState.isOpen ? true : void 0,
1291
+ children: /* @__PURE__ */ jsx(ArrowDropDown, {})
1292
+ })]
1293
+ }), /* @__PURE__ */ jsx(Popper, {
1294
+ ...bindPopper(popupState),
1295
+ role: void 0,
1296
+ transition: true,
1297
+ disablePortal: true,
1298
+ className: classes.menu,
1299
+ children: ({ TransitionProps, placement }) => /* @__PURE__ */ jsx(Grow, {
1300
+ ...TransitionProps,
1301
+ style: { transformOrigin: placement === "bottom" ? "center top" : "center bottom" },
1302
+ children: /* @__PURE__ */ jsx(Paper, {
1303
+ className: classes.paper,
1304
+ children: /* @__PURE__ */ jsx(ClickAwayListener, {
1305
+ onClickAway: popupState.close,
1306
+ children: /* @__PURE__ */ jsx(MenuList, { children })
1307
+ })
1308
+ })
1309
+ })
1310
+ })] });
1311
+ };
1312
+
1313
+ //#endregion
1314
+ //#region src/utilities/aggrid/AgTable.tsx
1315
+ LicenseManager.setLicenseKey(LicenseKey);
1316
+ const useStyles$12 = makeStyles((theme) => ({
1317
+ root: {
1318
+ flex: 1,
1319
+ height: (props) => (props === null || props === void 0 ? void 0 : props.height) ? props.height : "calc(100vh - 280px)"
1320
+ },
1321
+ AgGrid: (props) => ({
1322
+ "--ag-control-panel-background-color": theme.palette.primary.light,
1323
+ "--ag-checkbox-checked-color": theme.palette.primary.main,
1324
+ ...props.hideHeader ? {} : {
1325
+ "--ag-header-background-color": theme.palette.primary.main,
1326
+ "--ag-header-foreground-color": theme.palette.primary.light
1327
+ }
1328
+ })
1329
+ }), { name: "AgTable" });
1330
+ const globalModules = [...AllModules, ExcelExportModule];
1331
+ /**
1332
+ * Utility hook for getting the ag-grid APIs into state
1333
+ */
1334
+ function useAgGridApi() {
1335
+ const [{ gridApi, gridColumnApi }, onGridReady] = useReducer((state, params) => {
1336
+ return {
1337
+ gridApi: params.api,
1338
+ gridColumnApi: params.columnApi
1339
+ };
1340
+ }, {});
1341
+ return {
1342
+ gridApi,
1343
+ gridColumnApi,
1344
+ onGridReady
1345
+ };
1346
+ }
1347
+ /**
1348
+ * Size/Export buttons for AgGrid tables
1349
+ */
1350
+ const AgTableButtons = (props) => {
1351
+ const { gridApi, gridColumnApi } = props;
1352
+ const exportToCSV = useCallback(() => {
1353
+ invariant(gridApi, `gridApi not ready`);
1354
+ gridApi === null || gridApi === void 0 || gridApi.exportDataAsCsv({
1355
+ allColumns: true,
1356
+ fileName: "export"
1357
+ });
1358
+ }, [gridApi]);
1359
+ const exportToExcel = useCallback(() => {
1360
+ invariant(gridApi, `gridApi not ready`);
1361
+ gridApi === null || gridApi === void 0 || gridApi.exportDataAsExcel({
1362
+ allColumns: true,
1363
+ fileName: "export"
1364
+ });
1365
+ }, [gridApi]);
1366
+ const sizeToFit = useCallback((params) => {
1367
+ invariant(gridApi, `gridApi not ready`);
1368
+ gridApi === null || gridApi === void 0 || gridApi.sizeColumnsToFit();
1369
+ }, [gridApi]);
1370
+ const autoSizeAll = useCallback((skipHeader) => {
1371
+ var _gridColumnApi$getAll;
1372
+ invariant(gridColumnApi, `gridColumnApi not ready`);
1373
+ const allColumnIds = [];
1374
+ gridColumnApi === null || gridColumnApi === void 0 || (_gridColumnApi$getAll = gridColumnApi.getAllColumns()) === null || _gridColumnApi$getAll === void 0 || _gridColumnApi$getAll.forEach((column) => {
1375
+ allColumnIds.push(column.getColId());
1376
+ });
1377
+ gridColumnApi === null || gridColumnApi === void 0 || gridColumnApi.autoSizeColumns(allColumnIds, skipHeader);
1378
+ }, [gridColumnApi]);
1379
+ const autoSizeAllWithHeader = useCallback(() => autoSizeAll(false), [autoSizeAll]);
1380
+ const autoSizeAllWithoutHeader = useCallback(() => autoSizeAll(false), [autoSizeAll]);
1381
+ return /* @__PURE__ */ jsx(Box, {
1382
+ mb: 1,
1383
+ children: /* @__PURE__ */ jsxs(Grid, {
1384
+ container: true,
1385
+ direction: "row",
1386
+ spacing: 1,
1387
+ justify: "flex-end",
1388
+ children: [
1389
+ /* @__PURE__ */ jsx(Grid, {
1390
+ item: true,
1391
+ children: /* @__PURE__ */ jsx(Button, {
1392
+ variant: "outlined",
1393
+ size: "small",
1394
+ onClick: sizeToFit,
1395
+ children: "Size to Fit"
1396
+ })
1397
+ }),
1398
+ /* @__PURE__ */ jsx(Grid, {
1399
+ item: true,
1400
+ children: /* @__PURE__ */ jsxs(SplitButton, {
1401
+ popupName: "auto-size",
1402
+ variant: "outlined",
1403
+ size: "small",
1404
+ label: "Auto-Size",
1405
+ children: [/* @__PURE__ */ jsx(MenuItem, {
1406
+ onClick: autoSizeAllWithHeader,
1407
+ children: "All"
1408
+ }), /* @__PURE__ */ jsx(MenuItem, {
1409
+ onClick: autoSizeAllWithoutHeader,
1410
+ children: "Skip Header"
1411
+ })]
1412
+ })
1413
+ }),
1414
+ /* @__PURE__ */ jsx(Grid, {
1415
+ item: true,
1416
+ children: /* @__PURE__ */ jsxs(SplitButton, {
1417
+ popupName: "export",
1418
+ variant: "outlined",
1419
+ size: "small",
1420
+ label: "Export",
1421
+ children: [/* @__PURE__ */ jsx(MenuItem, {
1422
+ onClick: exportToExcel,
1423
+ children: "Excel"
1424
+ }), /* @__PURE__ */ jsx(MenuItem, {
1425
+ onClick: exportToCSV,
1426
+ children: "CSV"
1427
+ })]
1428
+ })
1429
+ })
1430
+ ]
1431
+ })
1432
+ });
1433
+ };
1434
+ /**
1435
+ * AgGrid with tweaks
1436
+ */
1437
+ const AgTable = (props) => {
1438
+ const classes = useStyles$12(props);
1439
+ const { modules: modulesProp, className, getRowHeight, rowModelType, isUsingAgRowHeight = false, hideHeader = false } = props;
1440
+ const modules = useMemo(() => modulesProp ? globalModules.concat(modulesProp) : globalModules, [modulesProp]);
1441
+ const calculateRowHeight = (params) => {
1442
+ if (params.node.level === 0) return 48;
1443
+ if (params.node.level === 1) return 32;
1444
+ return 16;
1445
+ };
1446
+ const rowHeightFunction = useCallback((params) => {
1447
+ if (rowModelType === "serverSide") if (isUsingAgRowHeight) return void 0;
1448
+ else if (getRowHeight) return getRowHeight(params);
1449
+ else return calculateRowHeight(params);
1450
+ else if (getRowHeight) return getRowHeight(params);
1451
+ return void 0;
1452
+ }, [getRowHeight, isUsingAgRowHeight]);
1453
+ const onGridSizeChanged = () => {
1454
+ if (props.dynamicSizing) {
1455
+ var _props$api;
1456
+ (_props$api = props.api) === null || _props$api === void 0 || _props$api.sizeColumnsToFit();
1457
+ }
1458
+ };
1459
+ return /* @__PURE__ */ jsx("div", {
1460
+ className: clsx("ag-theme-material", classes.root, className),
1461
+ children: /* @__PURE__ */ jsx(AgGridReact, {
1462
+ ...props,
1463
+ modules,
1464
+ onGridSizeChanged,
1465
+ getRowHeight: rowHeightFunction,
1466
+ className: classes.AgGrid
1467
+ })
1468
+ });
1469
+ };
1470
+
1471
+ //#endregion
1472
+ //#region src/UI/utilityDisplay/GridActionBar.jsx
1473
+ const useStyles$11 = makeStyles((theme) => ({
1474
+ root: {
1475
+ display: "flex",
1476
+ flexDirection: "row",
1477
+ padding: theme.spacing(.5),
1478
+ background: (props) => props.background ? props.background : lighten(theme.palette.secondary.light, .9)
1479
+ },
1480
+ label: {
1481
+ display: "flex",
1482
+ alignItems: "center",
1483
+ justifyContent: "flex-end"
1484
+ },
1485
+ title: {
1486
+ flex: 1,
1487
+ display: "flex",
1488
+ alignItems: "center",
1489
+ marginLeft: (props) => props.title ? theme.spacing(2) : 0
1490
+ },
1491
+ tabRoot: {
1492
+ minWidth: 0,
1493
+ textTransform: "none"
1494
+ },
1495
+ controls: {
1496
+ display: "flex",
1497
+ alignItems: "center",
1498
+ gridGap: theme.spacing(2),
1499
+ gap: theme.spacing(2),
1500
+ marginRight: theme.spacing(2)
1501
+ },
1502
+ icon: {
1503
+ background: theme.palette.common.white,
1504
+ padding: theme.spacing(1),
1505
+ color: theme.palette.secondary.main
1506
+ }
1507
+ }));
1508
+ const GridActionBar = (props) => {
1509
+ const classes = useStyles$11(props);
1510
+ const { children, onChange, handleChange, value, exportCSV, exportExcel, exportPDF, fitClick, expandClick, clearClick, exportClick, saveGridConfig, deleteGridConfig, clearGridConfig, title, hideFitGrid = false, hideExpandGrid = false, hideExportGrid = false, hideRemoveFilters = false, hideFilterTab = false, hideGroupTab = false, hideColumnTab = false, hideSearchBar = false } = props;
1511
+ const gridControlsExport = /* @__PURE__ */ jsx("div", {});
1512
+ return /* @__PURE__ */ jsxs("div", {
1513
+ className: classes.root,
1514
+ children: [
1515
+ /* @__PURE__ */ jsxs("div", {
1516
+ className: classes.title,
1517
+ children: [title && /* @__PURE__ */ jsxs(Typography, {
1518
+ variant: "h6",
1519
+ style: {
1520
+ overflow: "hidden",
1521
+ whiteSpace: "nowrap",
1522
+ textOverflow: "ellipsis"
1523
+ },
1524
+ children: [
1525
+ " ",
1526
+ title,
1527
+ " "
1528
+ ]
1529
+ }), !hideSearchBar && /* @__PURE__ */ jsx("div", {
1530
+ style: {
1531
+ flex: 1,
1532
+ marginLeft: 16,
1533
+ marginRight: 16,
1534
+ marginTop: -16
1535
+ },
1536
+ children: /* @__PURE__ */ jsx(AmbientTextField, {
1537
+ title,
1538
+ onChange,
1539
+ InputProps: {
1540
+ type: "search",
1541
+ startAdornment: /* @__PURE__ */ jsx(InputAdornment, {
1542
+ position: "start",
1543
+ children: /* @__PURE__ */ jsx(SearchIcon, {})
1544
+ })
1545
+ }
1546
+ })
1547
+ })]
1548
+ }),
1549
+ /* @__PURE__ */ jsxs("div", { children: [" ", gridControlsExport] }),
1550
+ /* @__PURE__ */ jsxs("div", {
1551
+ className: classes.controls,
1552
+ children: [
1553
+ saveGridConfig && /* @__PURE__ */ jsx(AmbientTokenButton, {
1554
+ iconClassName: classes.icon,
1555
+ icon: SaveIcon,
1556
+ tooltip: "Save Grid Configuration",
1557
+ ariaLabel: "Save Grid Configuration",
1558
+ onClick: saveGridConfig
1559
+ }),
1560
+ deleteGridConfig && /* @__PURE__ */ jsx(AmbientTokenButton, {
1561
+ iconClassName: classes.icon,
1562
+ icon: DeleteIcon,
1563
+ tooltip: "Delete Grid Configuration",
1564
+ ariaLabel: "Delete Grid Configuration",
1565
+ onClick: deleteGridConfig
1566
+ }),
1567
+ clearGridConfig && /* @__PURE__ */ jsx(AmbientTokenButton, {
1568
+ iconClassName: classes.icon,
1569
+ icon: ClearIcon,
1570
+ tooltip: "Clear Grid Configuration",
1571
+ ariaLabel: "Clear Grid Configuration",
1572
+ onClick: clearGridConfig
1573
+ }),
1574
+ !hideFitGrid && /* @__PURE__ */ jsx(AmbientTokenButton, {
1575
+ iconClassName: classes.icon,
1576
+ icon: CombineIcon,
1577
+ tooltip: "Fit Grid",
1578
+ ariaLabel: "Fit Grid",
1579
+ onClick: fitClick
1580
+ }),
1581
+ !hideExpandGrid && /* @__PURE__ */ jsx(AmbientTokenButton, {
1582
+ iconClassName: classes.icon,
1583
+ icon: ExportIcon,
1584
+ tooltip: "Expand Grid",
1585
+ ariaLabel: "Expand Grid",
1586
+ onClick: expandClick
1587
+ }),
1588
+ !hideExportGrid && /* @__PURE__ */ jsx(AmbientTokenButton, {
1589
+ iconClassName: classes.icon,
1590
+ icon: DownloadIcon,
1591
+ tooltip: "Export Grid",
1592
+ ariaLabel: "Export Grid",
1593
+ onClick: exportClick
1594
+ }),
1595
+ !hideRemoveFilters && /* @__PURE__ */ jsx(AmbientTokenButton, {
1596
+ iconClassName: classes.icon,
1597
+ icon: BlockedIcon,
1598
+ tooltip: "Remove Filters",
1599
+ ariaLabel: "Remove Filters",
1600
+ onClick: clearClick
1601
+ })
1602
+ ]
1603
+ }),
1604
+ /* @__PURE__ */ jsxs(Tabs, {
1605
+ value,
1606
+ onChange: handleChange,
1607
+ "aria-label": "basic tabs example",
1608
+ children: [
1609
+ !hideFilterTab && /* @__PURE__ */ jsx(Tab, {
1610
+ label: "Filter",
1611
+ classes: { root: classes.tabRoot }
1612
+ }),
1613
+ !hideGroupTab && /* @__PURE__ */ jsx(Tab, {
1614
+ label: "Group",
1615
+ classes: { root: classes.tabRoot }
1616
+ }),
1617
+ !hideColumnTab && /* @__PURE__ */ jsx(Tab, {
1618
+ label: "Column",
1619
+ classes: { root: classes.tabRoot }
1620
+ })
1621
+ ]
1622
+ }),
1623
+ children
1624
+ ]
1625
+ });
1626
+ };
1627
+ GridActionBar.propTypes = {
1628
+ title: PropTypes.string,
1629
+ children: PropTypes.node,
1630
+ handleChange: PropTypes.func,
1631
+ value: PropTypes.number,
1632
+ fitClick: PropTypes.func,
1633
+ expandClick: PropTypes.func,
1634
+ clearClick: PropTypes.func,
1635
+ exportClick: PropTypes.func
1636
+ };
1637
+
1638
+ //#endregion
1639
+ //#region src/UI/inputs/buttons/AmbientChipButton.jsx
1640
+ const useStyles$10 = makeStyles((theme) => ({
1641
+ root: {},
1642
+ actionHeader: {
1643
+ display: "flex",
1644
+ flexDirection: "row"
1645
+ },
1646
+ icon: {
1647
+ marginLeft: theme.spacing(1),
1648
+ color: (props) => props.background === "transparent" ? theme.palette.secondary.main : theme.palette.primary.main
1649
+ },
1650
+ chipRoot: { background: (props) => props.background ? props.background : theme.palette.common.white },
1651
+ label: {
1652
+ overflow: "hidden",
1653
+ whiteSpace: "nowrap",
1654
+ textOverflow: "ellipsis"
1655
+ }
1656
+ }));
1657
+ const AmbientChipButton = forwardRef(function AmbientChipButton$1(props, ref) {
1658
+ const { tooltip, label, onClick, icon, iconClassName, className, labelClassName, otherProps, id = "chip-button", udprecordid } = props;
1659
+ const classes = useStyles$10(props);
1660
+ return /* @__PURE__ */ jsx("div", {
1661
+ className: classes.root,
1662
+ children: /* @__PURE__ */ jsx(Tooltip, {
1663
+ title: tooltip,
1664
+ children: /* @__PURE__ */ jsx(Chip, {
1665
+ id,
1666
+ udprecordid,
1667
+ ref,
1668
+ className: className !== null && className !== void 0 ? className : classes.chipRoot,
1669
+ label: /* @__PURE__ */ jsx(Typography, {
1670
+ className: labelClassName !== null && labelClassName !== void 0 ? labelClassName : classes.label,
1671
+ children: label
1672
+ }),
1673
+ onClick,
1674
+ icon: icon && /* @__PURE__ */ jsx(FluentIcon, {
1675
+ className: iconClassName !== null && iconClassName !== void 0 ? iconClassName : classes.icon,
1676
+ component: icon
1677
+ }),
1678
+ ...otherProps
1679
+ })
1680
+ })
1681
+ });
1682
+ });
1683
+ AmbientChipButton.propTypes = {
1684
+ tooltip: PropTypes.string.isRequired,
1685
+ label: PropTypes.string.isRequired,
1686
+ onClick: PropTypes.func,
1687
+ icon: PropTypes.func.isRequired
1688
+ };
1689
+
1690
+ //#endregion
1691
+ //#region src/UI/utilityDisplay/GridPrimaryBar.jsx
1692
+ const useStyles$9 = makeStyles((theme) => ({
1693
+ root: {
1694
+ display: "flex",
1695
+ flexDirection: "row",
1696
+ padding: theme.spacing(.5)
1697
+ },
1698
+ label: {
1699
+ display: "flex",
1700
+ alignItems: "center",
1701
+ justifyContent: "flex-end"
1702
+ },
1703
+ title: {
1704
+ flex: 1,
1705
+ display: "flex",
1706
+ alignItems: "center",
1707
+ marginLeft: (props) => props.title ? theme.spacing(2) : 0
1708
+ },
1709
+ tabRoot: {
1710
+ minWidth: 0,
1711
+ textTransform: "none"
1712
+ },
1713
+ controls: {
1714
+ display: "flex",
1715
+ alignItems: "center",
1716
+ gridGap: theme.spacing(2),
1717
+ gap: theme.spacing(2),
1718
+ marginRight: theme.spacing(2)
1719
+ },
1720
+ icon: {
1721
+ background: theme.palette.common.white,
1722
+ padding: theme.spacing(1),
1723
+ color: theme.palette.primary.main
1724
+ }
1725
+ }));
1726
+ const GridPrimaryBar = (props) => {
1727
+ const classes = useStyles$9(props);
1728
+ const { children, onChange, fitClick, expandClick, clearClick, exportClick, filterClick, columnsClick, groupClick, title, hiddenActionButtons, hiddenLabels, hideSearchBar = false, secondaryActionButtons, saveViewClick, viewsClick, insightsClick, onPrimaryActionClick, primaryActionDisabled, primaryActionLabel, primaryActionIcon, onSearchKeyDown } = props;
1729
+ const [actionButtonMedianPx, setActionButtonMedianPx] = useState(0);
1730
+ const [actionButtons, setActionButtons] = useState([]);
1731
+ const [menuActionButtons, setMenuActionButtons] = useState([]);
1732
+ const [anchorEl, setAnchorEl] = useState(null);
1733
+ const [windowWidthBreakpoint, setWindowWidthBreakpoint] = useState(1400);
1734
+ const chipButtonSizePx = 100;
1735
+ const tokenButtonSizePx = 40;
1736
+ const open = Boolean(anchorEl);
1737
+ const id = open ? "simple-popover" : void 0;
1738
+ const defaultActionButtons = useMemo(() => [
1739
+ {
1740
+ icon: SaveIcon,
1741
+ tooltip: "Save Grid Configuration",
1742
+ label: "Save View",
1743
+ visible: !hiddenActionButtons.includes("saveView"),
1744
+ hideLabel: hiddenLabels.includes("saveView"),
1745
+ onClick: saveViewClick,
1746
+ background: "transparent"
1747
+ },
1748
+ {
1749
+ icon: FavoriteStarIcon,
1750
+ tooltip: "Browse Views",
1751
+ label: "Views",
1752
+ visible: !hiddenActionButtons.includes("views"),
1753
+ onClick: viewsClick,
1754
+ hideLabel: hiddenLabels.includes("views"),
1755
+ iconClassName: classes.icon
1756
+ },
1757
+ {
1758
+ icon: LightbulbIcon,
1759
+ tooltip: "Insights",
1760
+ label: "Insights",
1761
+ visible: !hiddenActionButtons.includes("insights"),
1762
+ hideLabel: hiddenLabels.includes("insights"),
1763
+ onClick: insightsClick,
1764
+ iconClassName: classes.icon
1765
+ },
1766
+ {
1767
+ icon: UploadIcon,
1768
+ tooltip: "Import/Export",
1769
+ label: "Import/Export",
1770
+ visible: !!exportClick && !hiddenActionButtons.includes("importExport"),
1771
+ hideLabel: hiddenLabels.includes("importExport"),
1772
+ onClick: exportClick,
1773
+ iconClassName: classes.icon
1774
+ },
1775
+ {
1776
+ icon: BulletedTreeListIcon,
1777
+ tooltip: "Group",
1778
+ label: "Group",
1779
+ visible: !!groupClick && !hiddenActionButtons.includes("group"),
1780
+ hideLabel: hiddenLabels.includes("group"),
1781
+ onClick: groupClick,
1782
+ iconClassName: classes.icon
1783
+ },
1784
+ {
1785
+ icon: FilterIcon,
1786
+ tooltip: "Filter",
1787
+ label: "Filter",
1788
+ visible: !!filterClick && !hiddenActionButtons.includes("filter"),
1789
+ hideLabel: hiddenLabels.includes("filter"),
1790
+ onClick: filterClick,
1791
+ iconClassName: classes.icon
1792
+ },
1793
+ {
1794
+ icon: TripleColumnIcon,
1795
+ tooltip: "Columns",
1796
+ label: "Columns",
1797
+ visible: !!columnsClick && !hiddenActionButtons.includes("columns"),
1798
+ hideLabel: hiddenLabels.includes("columns"),
1799
+ onClick: columnsClick,
1800
+ iconClassName: classes.icon
1801
+ },
1802
+ {
1803
+ icon: CombineIcon,
1804
+ tooltip: "Fit Grid",
1805
+ label: "Fit Grid",
1806
+ visible: !!fitClick && !hiddenActionButtons.includes("fitGrid"),
1807
+ hideLabel: hiddenLabels.includes("fitGrid"),
1808
+ onClick: fitClick,
1809
+ iconClassName: classes.icon
1810
+ },
1811
+ {
1812
+ icon: ExportIcon,
1813
+ tooltip: "Expand Grid",
1814
+ label: "Expand Grid",
1815
+ visible: !!expandClick && !hiddenActionButtons.includes("expandGrid"),
1816
+ hideLabel: hiddenLabels.includes("expandGrid"),
1817
+ onClick: expandClick,
1818
+ iconClassName: classes.icon
1819
+ },
1820
+ {
1821
+ icon: BlockedIcon,
1822
+ tooltip: "Clear Filters",
1823
+ label: "Clear Filters",
1824
+ visible: !!clearClick && !hiddenActionButtons.includes("clearFilters"),
1825
+ hideLabel: hiddenLabels.includes("clearFilters"),
1826
+ onClick: clearClick,
1827
+ iconClassName: classes.icon
1828
+ }
1829
+ ], [
1830
+ classes.icon,
1831
+ clearClick,
1832
+ columnsClick,
1833
+ expandClick,
1834
+ exportClick,
1835
+ filterClick,
1836
+ fitClick,
1837
+ groupClick,
1838
+ hiddenActionButtons,
1839
+ hiddenLabels,
1840
+ insightsClick,
1841
+ saveViewClick,
1842
+ viewsClick
1843
+ ]);
1844
+ const handlePopoverClick = (event) => {
1845
+ setAnchorEl(event.currentTarget);
1846
+ };
1847
+ const handlePopoverClose = () => {
1848
+ setAnchorEl(null);
1849
+ };
1850
+ const formatActionButtons = useCallback((buttons) => {
1851
+ return buttons.map((button) => {
1852
+ if (button.visible === void 0) button.visible = true;
1853
+ if (button.hideLabel === void 0) button.hideLabel = false;
1854
+ if (button.label === void 0) {
1855
+ var _button$tooltip;
1856
+ button.label = (_button$tooltip = button.tooltip) !== null && _button$tooltip !== void 0 ? _button$tooltip : "Button";
1857
+ button.hideLabel = true;
1858
+ }
1859
+ if (button.iconClassName === void 0 && button.background === void 0) button.iconClassName = classes.icon;
1860
+ return button;
1861
+ });
1862
+ }, [classes === null || classes === void 0 ? void 0 : classes.icon]);
1863
+ useEffect(() => {
1864
+ const allActionButtons = formatActionButtons([...defaultActionButtons, ...secondaryActionButtons]);
1865
+ const menuButtons = [];
1866
+ const numActionButtons = allActionButtons.length - hiddenActionButtons.length;
1867
+ const buttonTotalWidth = numActionButtons * chipButtonSizePx - (chipButtonSizePx - tokenButtonSizePx) * hiddenLabels.length;
1868
+ const calculatedMedian = Math.floor(buttonTotalWidth / numActionButtons);
1869
+ const breakPointOffset = calculatedMedian > 70 ? 950 : 900;
1870
+ let breakPoint = breakPointOffset + buttonTotalWidth;
1871
+ const currentWindowWidth = window.innerWidth;
1872
+ while (currentWindowWidth < breakPoint && allActionButtons.length > 0) {
1873
+ const movedAction = allActionButtons.pop();
1874
+ menuButtons.push(movedAction);
1875
+ breakPoint -= calculatedMedian;
1876
+ }
1877
+ setActionButtonMedianPx(calculatedMedian);
1878
+ setActionButtons(allActionButtons);
1879
+ setMenuActionButtons(menuButtons);
1880
+ setWindowWidthBreakpoint(breakPoint);
1881
+ }, [
1882
+ formatActionButtons,
1883
+ defaultActionButtons,
1884
+ secondaryActionButtons,
1885
+ hiddenActionButtons === null || hiddenActionButtons === void 0 ? void 0 : hiddenActionButtons.length,
1886
+ hiddenLabels === null || hiddenLabels === void 0 ? void 0 : hiddenLabels.length
1887
+ ]);
1888
+ useEffect(() => {
1889
+ const handleResize = () => {
1890
+ let breakPoint = windowWidthBreakpoint;
1891
+ let visibleButtons = [...actionButtons];
1892
+ let menuButtons = [...menuActionButtons];
1893
+ while (window.innerWidth < breakPoint && visibleButtons.length > 0) {
1894
+ const movedAction = visibleButtons.pop();
1895
+ menuButtons.push(movedAction);
1896
+ breakPoint -= actionButtonMedianPx;
1897
+ }
1898
+ while (window.innerWidth > breakPoint + actionButtonMedianPx && menuButtons.length > 0) {
1899
+ const movedAction = menuButtons.pop(0);
1900
+ visibleButtons.push(movedAction);
1901
+ breakPoint += actionButtonMedianPx;
1902
+ }
1903
+ setActionButtons(visibleButtons);
1904
+ setMenuActionButtons(menuButtons);
1905
+ setWindowWidthBreakpoint(breakPoint);
1906
+ };
1907
+ window.addEventListener("resize", handleResize);
1908
+ return () => {
1909
+ window.removeEventListener("resize", handleResize);
1910
+ };
1911
+ }, [
1912
+ windowWidthBreakpoint,
1913
+ actionButtons,
1914
+ menuActionButtons,
1915
+ actionButtonMedianPx
1916
+ ]);
1917
+ const handleCustomKeyDown = (event) => {
1918
+ if (onSearchKeyDown) {
1919
+ if (event.key === "Enter") onSearchKeyDown();
1920
+ }
1921
+ };
1922
+ return /* @__PURE__ */ jsxs("div", {
1923
+ className: classes.root,
1924
+ children: [
1925
+ /* @__PURE__ */ jsxs("div", {
1926
+ className: classes.title,
1927
+ children: [title && /* @__PURE__ */ jsxs(Typography, {
1928
+ variant: "h6",
1929
+ style: {
1930
+ overflow: "hidden",
1931
+ whiteSpace: "nowrap",
1932
+ textOverflow: "ellipsis"
1933
+ },
1934
+ children: [
1935
+ " ",
1936
+ title,
1937
+ " "
1938
+ ]
1939
+ }), !hideSearchBar && /* @__PURE__ */ jsx("div", {
1940
+ style: {
1941
+ flex: 1,
1942
+ marginLeft: 16,
1943
+ marginRight: 16,
1944
+ marginTop: -16,
1945
+ maxWidth: 300
1946
+ },
1947
+ children: /* @__PURE__ */ jsx(AmbientTextField, {
1948
+ title,
1949
+ onChange,
1950
+ onKeyDown: handleCustomKeyDown,
1951
+ InputProps: {
1952
+ type: "search",
1953
+ startAdornment: /* @__PURE__ */ jsx(InputAdornment, {
1954
+ position: "start",
1955
+ children: /* @__PURE__ */ jsx(SearchIcon, {})
1956
+ })
1957
+ }
1958
+ })
1959
+ })]
1960
+ }),
1961
+ /* @__PURE__ */ jsxs("div", {
1962
+ className: classes.controls,
1963
+ children: [actionButtons.map((button) => {
1964
+ var _button$icon, _button$icon2;
1965
+ return button.visible && (button.hideLabel ? /* @__PURE__ */ jsx(AmbientTokenButton, {
1966
+ id: "udpRecord-GridPrimaryBar-Token-" + button.label.replace(/ /g, "-"),
1967
+ udprecordid: "udpRecord-GridPrimaryBar-Token-" + button.label.replace(/ /g, "-"),
1968
+ icon: (_button$icon = button.icon) !== null && _button$icon !== void 0 ? _button$icon : AppIconDefaultIcon,
1969
+ tooltip: button.tooltip,
1970
+ onClick: button.onClick,
1971
+ ariaLabel: button.label,
1972
+ iconClassName: button.iconClassName
1973
+ }) : /* @__PURE__ */ jsx(AmbientChipButton, {
1974
+ id: "udpRecord-GridPrimaryBar-Chip-" + button.label.replace(/ /g, "-"),
1975
+ udprecordid: "udpRecord-GridPrimaryBar-Chip-" + button.label.replace(/ /g, "-"),
1976
+ icon: (_button$icon2 = button.icon) !== null && _button$icon2 !== void 0 ? _button$icon2 : AppIconDefaultIcon,
1977
+ tooltip: button.tooltip,
1978
+ label: button.label,
1979
+ onClick: button.onClick,
1980
+ background: button.background
1981
+ }));
1982
+ }), !!menuActionButtons.length && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(AmbientTokenButton, {
1983
+ id,
1984
+ icon: MoreVerticalIcon,
1985
+ tooltip: "More Actions",
1986
+ ariaLabel: "More Actions",
1987
+ onClick: handlePopoverClick,
1988
+ iconClassName: classes.icon
1989
+ }), /* @__PURE__ */ jsx(Popover, {
1990
+ id,
1991
+ open,
1992
+ anchorEl,
1993
+ onClose: handlePopoverClose,
1994
+ anchorOrigin: {
1995
+ vertical: "bottom",
1996
+ horizontal: "right"
1997
+ },
1998
+ transformOrigin: {
1999
+ vertical: "top",
2000
+ horizontal: "right"
2001
+ },
2002
+ children: menuActionButtons.slice(0).reverse().map((button) => {
2003
+ var _button$icon3;
2004
+ if (!button.visible) return null;
2005
+ return /* @__PURE__ */ jsxs(MenuItem, {
2006
+ id: "udpRecord-GridPrimaryBar-MenuItem-" + button.label.replace(/ /g, "-"),
2007
+ udprecordid: "udpRecord-GridPrimaryBar-MenuItem-" + button.label.replace(/ /g, "-"),
2008
+ onClick: button.onClick,
2009
+ style: {
2010
+ display: "flex",
2011
+ justifyContent: "space-between"
2012
+ },
2013
+ children: [/* @__PURE__ */ jsx(Typography, { children: button.label }), /* @__PURE__ */ jsx(FluentIcon, {
2014
+ component: (_button$icon3 = button.icon) !== null && _button$icon3 !== void 0 ? _button$icon3 : AppIconDefaultIcon,
2015
+ style: { marginLeft: 7 }
2016
+ })]
2017
+ });
2018
+ })
2019
+ })] })]
2020
+ }),
2021
+ onPrimaryActionClick && /* @__PURE__ */ jsxs(PrimaryActionButton, {
2022
+ onClick: onPrimaryActionClick,
2023
+ id: "udpRecord-GridPrimaryBar-Add",
2024
+ udprecordid: "udpRecord-GridPrimaryBar-Add",
2025
+ disabled: primaryActionDisabled,
2026
+ children: [/* @__PURE__ */ jsx(Typography, {
2027
+ style: { marginLeft: 4 },
2028
+ children: primaryActionLabel !== null && primaryActionLabel !== void 0 ? primaryActionLabel : "Button"
2029
+ }), /* @__PURE__ */ jsx(FluentIcon, {
2030
+ style: { marginLeft: 7 },
2031
+ component: primaryActionIcon !== null && primaryActionIcon !== void 0 ? primaryActionIcon : AppIconDefaultIcon
2032
+ })]
2033
+ })
2034
+ ]
2035
+ });
2036
+ };
2037
+ GridPrimaryBar.propTypes = {
2038
+ title: PropTypes.string,
2039
+ children: PropTypes.node,
2040
+ onChange: PropTypes.func,
2041
+ fitClick: PropTypes.func,
2042
+ expandClick: PropTypes.func,
2043
+ clearClick: PropTypes.func,
2044
+ exportClick: PropTypes.func,
2045
+ insightsClick: PropTypes.func,
2046
+ filterClick: PropTypes.func,
2047
+ columnsClick: PropTypes.func,
2048
+ groupClick: PropTypes.func,
2049
+ hideSearchBar: PropTypes.bool,
2050
+ secondaryActionButtons: PropTypes.arrayOf(PropTypes.object),
2051
+ hiddenActionButtons: PropTypes.arrayOf(PropTypes.oneOf([
2052
+ "saveView",
2053
+ "views",
2054
+ "insights",
2055
+ "importExport",
2056
+ "group",
2057
+ "filter",
2058
+ "columns",
2059
+ "fitGrid",
2060
+ "expandGrid",
2061
+ "clearFilters"
2062
+ ])),
2063
+ hiddenLabels: PropTypes.arrayOf(PropTypes.oneOf([
2064
+ "saveView",
2065
+ "views",
2066
+ "insights",
2067
+ "importExport",
2068
+ "group",
2069
+ "filter",
2070
+ "columns",
2071
+ "fitGrid",
2072
+ "expandGrid",
2073
+ "clearFilters"
2074
+ ])),
2075
+ onPrimaryActionClick: PropTypes.func,
2076
+ primaryActionLabel: PropTypes.string,
2077
+ primaryActionIcon: PropTypes.elementType
2078
+ };
2079
+
2080
+ //#endregion
2081
+ //#region src/UI/feedback/FluentDialog.jsx
2082
+ const useStyles$8 = makeStyles((theme) => ({
2083
+ root: {},
2084
+ paper: {
2085
+ borderRadius: 2,
2086
+ borderTop: (props) => props.header && `4px solid ${theme.palette.secondary.main}`
2087
+ },
2088
+ title: { color: (props) => props.header && theme.palette.secondary.main },
2089
+ actions: {
2090
+ marginBottom: 0,
2091
+ marginRight: 0,
2092
+ padding: 0
2093
+ },
2094
+ button: {
2095
+ borderRadius: 0,
2096
+ padding: "calc(.875rem - 3px) 23px calc(.875rem - 3px) 15px",
2097
+ textTransform: "none"
2098
+ },
2099
+ dialogContent: {
2100
+ height: (props) => props.dialogContentHeight || "auto",
2101
+ width: (props) => props.dialogContentWidth || "auto"
2102
+ },
2103
+ dialogLeftBorder: {
2104
+ position: "absolute",
2105
+ left: 0,
2106
+ top: 0,
2107
+ bottom: 0,
2108
+ width: theme.spacing(1),
2109
+ backgroundColor: (props) => {
2110
+ var _props$dialogLeftBord;
2111
+ return (_props$dialogLeftBord = props.dialogLeftBorderColor) !== null && _props$dialogLeftBord !== void 0 ? _props$dialogLeftBord : theme.palette.primary.main;
2112
+ }
2113
+ }
2114
+ }));
2115
+ const FluentDialog = (props) => {
2116
+ const classes = useStyles$8(props);
2117
+ const { title, message, actionOne, actionTwo, actionThree, labelOne, labelTwo, labelThree, open, handleClose, ariaLabelledby, ariaDescribedby, titleId, descriptionId, children, buttonOneHidden = false, buttonTwoHidden = false, buttonThreeHidden = true, disableOne, disableTwo, disableThree, progress, enableLeftBorderStyling = false,...otherProps } = props;
2118
+ return /* @__PURE__ */ jsxs(Dialog, {
2119
+ open,
2120
+ onClose: handleClose,
2121
+ "aria-labelledby": ariaLabelledby,
2122
+ "aria-describedby": ariaDescribedby,
2123
+ ...otherProps,
2124
+ classes: { paper: classes.paper },
2125
+ children: [
2126
+ /* @__PURE__ */ jsx("div", { className: enableLeftBorderStyling ? classes.dialogLeftBorder : "" }),
2127
+ /* @__PURE__ */ jsx(DialogTitle, {
2128
+ className: classes.title,
2129
+ id: titleId,
2130
+ children: title
2131
+ }),
2132
+ /* @__PURE__ */ jsxs(DialogContent, {
2133
+ className: classes.dialogContent,
2134
+ children: [/* @__PURE__ */ jsx(DialogContentText, {
2135
+ id: descriptionId,
2136
+ children: message
2137
+ }), children]
2138
+ }),
2139
+ /* @__PURE__ */ jsxs(DialogActions, {
2140
+ className: classes.actions,
2141
+ disableSpacing: true,
2142
+ children: [
2143
+ !buttonThreeHidden && /* @__PURE__ */ jsx(Button, {
2144
+ id: "udpRecord-FluentDialog-Confirm",
2145
+ udprecordid: "udpRecord-FluentDialog-Confirm",
2146
+ onClick: actionThree,
2147
+ color: "secondary",
2148
+ disabled: disableThree,
2149
+ className: classes.button,
2150
+ children: labelThree
2151
+ }),
2152
+ !buttonTwoHidden && /* @__PURE__ */ jsx(Button, {
2153
+ id: "udpRecord-FluentDialog-Confirm",
2154
+ udprecordid: "udpRecord-FluentDialog-Confirm",
2155
+ onClick: actionTwo,
2156
+ color: "secondary",
2157
+ disabled: disableTwo,
2158
+ className: classes.button,
2159
+ children: labelTwo
2160
+ }),
2161
+ !buttonOneHidden && /* @__PURE__ */ jsx(PrimaryActionButton, {
2162
+ id: "udpRecord-FluentDialog-Cancel",
2163
+ udprecordid: "udpRecord-FluentDialog-Cancel",
2164
+ disabled: disableOne,
2165
+ onClick: actionOne,
2166
+ children: labelOne
2167
+ })
2168
+ ]
2169
+ }),
2170
+ progress && /* @__PURE__ */ jsx(LinearProgress, {
2171
+ color: "secondary",
2172
+ value: progress,
2173
+ ...otherProps
2174
+ })
2175
+ ]
2176
+ });
2177
+ };
2178
+
2179
+ //#endregion
2180
+ //#region src/utilities/aggrid/GridFunctions.js
2181
+ const useGridFormat = () => {
2182
+ const gridFormat = (gridApi, type) => {
2183
+ type === "expand" && gridApi.expandAll();
2184
+ type === "collapse" && gridApi.collapseAll();
2185
+ type === "resize" && gridApi.sizeColumnsToFit();
2186
+ };
2187
+ return [gridFormat];
2188
+ };
2189
+ const useGridClear = () => {
2190
+ const gridClear = (gridApi, gridColumnApi) => {
2191
+ gridColumnApi.setRowGroupColumns([]);
2192
+ gridApi.setFilterModel(null);
2193
+ gridApi.setQuickFilter("");
2194
+ gridApi.sizeColumnsToFit();
2195
+ gridColumnApi.resetColumnState();
2196
+ };
2197
+ return [gridClear];
2198
+ };
2199
+ const useQuickFilter = () => {
2200
+ const quickFilter = (gridApi, event) => {
2201
+ gridApi.setQuickFilter(event === null || event === void 0 ? void 0 : event.target.value);
2202
+ };
2203
+ return [quickFilter];
2204
+ };
2205
+ const useExport = () => {
2206
+ const gridExport = (gridApi, type) => {
2207
+ type === "excel" && gridApi.exportDataAsExcel();
2208
+ type === "csv" && gridApi.exportDataAsCsv();
2209
+ };
2210
+ return [gridExport];
2211
+ };
2212
+ const saveGridState = async (gridId, gridApi, gridColumnApi, execute) => {
2213
+ const columnState = gridColumnApi === null || gridColumnApi === void 0 ? void 0 : gridColumnApi.getColumnState();
2214
+ const columnGroupState = gridColumnApi === null || gridColumnApi === void 0 ? void 0 : gridColumnApi.getColumnGroupState();
2215
+ const sortModel = gridApi.getSortModel();
2216
+ const filterModel = gridApi.getFilterModel();
2217
+ const isPivotMode = gridColumnApi.isPivotMode();
2218
+ const gridState = [];
2219
+ const columnGridConfiguration = {
2220
+ gridStateTypeId: GridStateTypeEnums.Column,
2221
+ gridId,
2222
+ values: JSON.stringify(columnState)
2223
+ };
2224
+ const columnGroupGridConfiguration = {
2225
+ gridStateTypeId: GridStateTypeEnums.Column_Group,
2226
+ gridId,
2227
+ values: JSON.stringify(columnGroupState)
2228
+ };
2229
+ const columnSortGridConfiguration = {
2230
+ gridStateTypeId: GridStateTypeEnums.Column_Sort,
2231
+ gridId,
2232
+ values: JSON.stringify(sortModel)
2233
+ };
2234
+ const columnFilterGridConfiguration = {
2235
+ gridStateTypeId: GridStateTypeEnums.Column_Filter,
2236
+ gridId,
2237
+ values: JSON.stringify(filterModel)
2238
+ };
2239
+ const pivotGridConfiguration = {
2240
+ gridStateTypeId: GridStateTypeEnums.Pivot_Mode,
2241
+ gridId,
2242
+ values: JSON.stringify(isPivotMode)
2243
+ };
2244
+ gridState.push(columnGridConfiguration);
2245
+ gridState.push(columnGroupGridConfiguration);
2246
+ gridState.push(columnSortGridConfiguration);
2247
+ gridState.push(columnFilterGridConfiguration);
2248
+ gridState.push(pivotGridConfiguration);
2249
+ return await execute({ data: gridState });
2250
+ };
2251
+ const getGridState = (gridApi, gridColumnApi, gridId) => {
2252
+ const columnState = gridColumnApi === null || gridColumnApi === void 0 ? void 0 : gridColumnApi.getColumnState();
2253
+ const columnGroupState = gridColumnApi === null || gridColumnApi === void 0 ? void 0 : gridColumnApi.getColumnGroupState();
2254
+ const sortModel = gridApi.getSortModel();
2255
+ const filterModel = gridApi.getFilterModel();
2256
+ const isPivotMode = gridColumnApi.isPivotMode();
2257
+ const gridState = [];
2258
+ const columnGridConfiguration = {
2259
+ gridStateTypeId: GridStateTypeEnums.Column,
2260
+ gridId,
2261
+ values: JSON.stringify(columnState)
2262
+ };
2263
+ const columnGroupGridConfiguration = {
2264
+ gridStateTypeId: GridStateTypeEnums.Column_Group,
2265
+ gridId,
2266
+ values: JSON.stringify(columnGroupState)
2267
+ };
2268
+ const columnSortGridConfiguration = {
2269
+ gridStateTypeId: GridStateTypeEnums.Column_Sort,
2270
+ gridId,
2271
+ values: JSON.stringify(sortModel)
2272
+ };
2273
+ const columnFilterGridConfiguration = {
2274
+ gridStateTypeId: GridStateTypeEnums.Column_Filter,
2275
+ gridId,
2276
+ values: JSON.stringify(filterModel)
2277
+ };
2278
+ const pivotGridConfiguration = {
2279
+ gridStateTypeId: GridStateTypeEnums.Pivot_Mode,
2280
+ gridId,
2281
+ values: JSON.stringify(isPivotMode)
2282
+ };
2283
+ gridState.push(columnGridConfiguration);
2284
+ gridState.push(columnGroupGridConfiguration);
2285
+ gridState.push(columnSortGridConfiguration);
2286
+ gridState.push(columnFilterGridConfiguration);
2287
+ gridState.push(pivotGridConfiguration);
2288
+ return gridState;
2289
+ };
2290
+ const deleteGridState = async (gridApi, gridColumnApi, deleteGridState$1) => {
2291
+ clearGridState(gridApi, gridColumnApi);
2292
+ return await deleteGridState$1();
2293
+ };
2294
+ const clearGridState = (gridApi, gridColumnApi) => {
2295
+ gridColumnApi.resetColumnState();
2296
+ gridColumnApi.resetColumnGroupState();
2297
+ gridApi.setFilterModel({});
2298
+ gridApi.setSortModel([]);
2299
+ gridColumnApi.setPivotMode(false);
2300
+ gridApi.sizeColumnsToFit();
2301
+ };
2302
+ const onFirstDataRendered = (gridApi, gridColumnApi, gridStates) => {
2303
+ if (gridStates && gridStates.length) gridStates.forEach((state) => {
2304
+ switch (state.gridStateTypeId) {
2305
+ case GridStateTypeEnums.Column:
2306
+ gridColumnApi.setColumnState(JSON.parse(state.values));
2307
+ break;
2308
+ case GridStateTypeEnums.Column_Group:
2309
+ gridColumnApi.setColumnGroupState(JSON.parse(state.values));
2310
+ break;
2311
+ case GridStateTypeEnums.Pivot_Mode:
2312
+ gridColumnApi.setPivotMode(JSON.parse(state.values));
2313
+ break;
2314
+ case GridStateTypeEnums.Column_Sort:
2315
+ gridApi.setSortModel(JSON.parse(state.values));
2316
+ break;
2317
+ case GridStateTypeEnums.Column_Filter:
2318
+ gridApi.setFilterModel(JSON.parse(state.values));
2319
+ break;
2320
+ default: break;
2321
+ }
2322
+ });
2323
+ };
2324
+
2325
+ //#endregion
2326
+ //#region src/UI/utilityDisplay/SaveViewFormDialog.jsx
2327
+ const useStyles$7 = makeStyles((theme) => ({
2328
+ root: {},
2329
+ saveForm: {
2330
+ minWidth: 450,
2331
+ paddingLeft: theme.spacing(2),
2332
+ paddingRight: theme.spacing(2)
2333
+ },
2334
+ column: {
2335
+ flex: 1,
2336
+ paddingLeft: theme.spacing(2),
2337
+ paddingRight: theme.spacing(2)
2338
+ },
2339
+ divider: {
2340
+ backgroundColor: "grey",
2341
+ color: "grey",
2342
+ width: 2,
2343
+ height: "100%"
2344
+ },
2345
+ infoHeader: { color: "grey" }
2346
+ }));
2347
+ const SaveViewFormDialog = (props) => {
2348
+ const { handleErrorSnackbar, handleSuccessSnackbar } = useHandleAxiosSnackbar();
2349
+ const { open, handleClose, tenant, application, user, refetchViews, gApi, gcApi, gridId, domain, apiCatalogId } = props;
2350
+ const { t } = useTranslation();
2351
+ const classes = useStyles$7(props);
2352
+ const saveViewFormRef = useRef(null);
2353
+ const triggerSaveView = useCallback(() => {
2354
+ saveViewFormRef.current.handleSubmit();
2355
+ }, [saveViewFormRef]);
2356
+ const saveView = async (values) => {
2357
+ const data = {
2358
+ data: {
2359
+ gridView: {
2360
+ Name: values.name,
2361
+ GridViewVisibilityTypeId: values.private ? VisibilityTypeEnums.Private : VisibilityTypeEnums.Public,
2362
+ isDefault: 0,
2363
+ tenantId: user === null || user === void 0 ? void 0 : user.currentTenantId,
2364
+ userId: user === null || user === void 0 ? void 0 : user.id,
2365
+ gridId,
2366
+ domain,
2367
+ apiCatalogId
2368
+ },
2369
+ gridConfigurations: getGridState(gApi, gcApi, gridId)
2370
+ },
2371
+ method: "POST"
2372
+ };
2373
+ handleClose();
2374
+ await apiMutate$1(ConfigService.tenantV2ApiUrl, `GridView/createGridView`, data).then((response) => {
2375
+ handleSuccessSnackbar(t("View Saved"));
2376
+ refetchViews();
2377
+ }).catch((error) => {
2378
+ console.log(error);
2379
+ handleErrorSnackbar(error, t("Failed to Save View"));
2380
+ });
2381
+ };
2382
+ return /* @__PURE__ */ jsxs(FluentDialog, {
2383
+ title: t("Save New View"),
2384
+ open,
2385
+ handleClose,
2386
+ labelOne: t("Save View"),
2387
+ labelTwo: t("Cancel"),
2388
+ actionOne: triggerSaveView,
2389
+ actionTwo: handleClose,
2390
+ children: [/* @__PURE__ */ jsxs(Box, {
2391
+ display: "flex",
2392
+ children: [
2393
+ /* @__PURE__ */ jsxs("div", {
2394
+ className: classes.column,
2395
+ children: [/* @__PURE__ */ jsx(Typography, {
2396
+ className: classes.infoHeader,
2397
+ align: "left",
2398
+ children: t("Tenant")
2399
+ }), /* @__PURE__ */ jsx(Typography, {
2400
+ variant: "subtitle2",
2401
+ align: "left",
2402
+ children: tenant !== null && tenant !== void 0 ? tenant : "--"
2403
+ })]
2404
+ }),
2405
+ /* @__PURE__ */ jsx(Divider, {
2406
+ flexItem: true,
2407
+ orientation: "vertical"
2408
+ }),
2409
+ /* @__PURE__ */ jsxs("div", {
2410
+ className: classes.column,
2411
+ children: [/* @__PURE__ */ jsx(Typography, {
2412
+ className: classes.infoHeader,
2413
+ align: "left",
2414
+ children: t("Application")
2415
+ }), /* @__PURE__ */ jsx(Typography, {
2416
+ variant: "subtitle2",
2417
+ align: "left",
2418
+ children: application !== null && application !== void 0 ? application : "--"
2419
+ })]
2420
+ }),
2421
+ /* @__PURE__ */ jsx(Divider, {
2422
+ flexItem: true,
2423
+ orientation: "vertical"
2424
+ }),
2425
+ /* @__PURE__ */ jsxs("div", {
2426
+ className: classes.column,
2427
+ children: [/* @__PURE__ */ jsx(Typography, {
2428
+ className: classes.infoHeader,
2429
+ align: "left",
2430
+ children: t("Entity")
2431
+ }), /* @__PURE__ */ jsx(Typography, {
2432
+ variant: "subtitle2",
2433
+ align: "left",
2434
+ children: domain !== null && domain !== void 0 ? domain : "--"
2435
+ })]
2436
+ })
2437
+ ]
2438
+ }), /* @__PURE__ */ jsx("div", {
2439
+ className: classes.saveForm,
2440
+ children: /* @__PURE__ */ jsxs(Form, {
2441
+ onSubmit: saveView,
2442
+ ref: saveViewFormRef,
2443
+ children: [/* @__PURE__ */ jsx(Field, {
2444
+ type: "text",
2445
+ component: AmbientTextField,
2446
+ name: "name",
2447
+ id: "name",
2448
+ label: t("Name"),
2449
+ fullWidth: true,
2450
+ required: true,
2451
+ style: {
2452
+ marginBottom: 20,
2453
+ marginTop: 10
2454
+ }
2455
+ }), /* @__PURE__ */ jsx(FormControlLabel, {
2456
+ control: /* @__PURE__ */ jsx(Field, {
2457
+ component: Switch,
2458
+ name: "private",
2459
+ id: "private",
2460
+ defaultValue: false,
2461
+ type: "checkbox"
2462
+ }),
2463
+ label: t("Private"),
2464
+ labelPlacement: "end"
2465
+ })]
2466
+ })
2467
+ })]
2468
+ });
2469
+ };
2470
+ SaveViewFormDialog.propTypes = {
2471
+ open: PropTypes.bool.isRequired,
2472
+ handleClose: PropTypes.func.isRequired,
2473
+ tenant: PropTypes.string,
2474
+ application: PropTypes.string,
2475
+ entity: PropTypes.string,
2476
+ user: PropTypes.object,
2477
+ columnDefsValues: PropTypes.array,
2478
+ refetchViews: PropTypes.func,
2479
+ gApi: PropTypes.object,
2480
+ gcApi: PropTypes.object,
2481
+ setSelectedView: PropTypes.func
2482
+ };
2483
+
2484
+ //#endregion
2485
+ //#region src/hooks/useDynamicListCalculation.jsx
2486
+ /**
2487
+ * A custom React hook for calculating the number of visible children in a dynamic list based on container width and child widths.
2488
+ *
2489
+ * @returns {object} An object containing the `calculateNumberOfVisibleChildren` function.
2490
+ *
2491
+ * @example
2492
+ * // Basic usage:
2493
+ * const parentRef = useRef();
2494
+ * const childRefs = useRef([]);
2495
+ * const { calculateNumberOfVisibleChildren } = useDynamicListCalculation();
2496
+ * const maxVisibleChildren = calculateNumberOfVisibleChildren(parentRef, childRefs);
2497
+
2498
+ * @example
2499
+ * // Excluding a buffer for less white space:
2500
+ * const parentRef = useRef();
2501
+ * const childRefs = useRef([]);
2502
+ * const { calculateNumberOfVisibleChildren } = useDynamicListCalculation();
2503
+ * const maxVisibleChildren = calculateNumberOfVisibleChildren(parentRef, childRefs, false);
2504
+ */
2505
+ const useDynamicListCalculation = () => {
2506
+ const [averageChildWidth, setAverageChildWidth] = useState(0);
2507
+ const [previousChildRefs, setPreviousChildRefs] = useState([]);
2508
+ /**
2509
+ * Calculate the number of visible children based on container width and child widths.
2510
+ *
2511
+ * @param {object} parentRef - Ref object for the parent container.
2512
+ * @param {object} childRefs - Ref object for an array of child elements.
2513
+ * @param {boolean} includeBuffer - Whether to include a buffer for better performance (default: true).
2514
+ * @returns {number} The maximum number of visible children.
2515
+ */
2516
+ const calculateNumberOfVisibleChildren = useCallback((parentRef, childRefs, includeBuffer = true) => {
2517
+ var _parentRef$current$ge;
2518
+ if (!parentRef.current || !childRefs.current) return;
2519
+ const containerWidth = (_parentRef$current$ge = parentRef.current.getBoundingClientRect().width) !== null && _parentRef$current$ge !== void 0 ? _parentRef$current$ge : 0;
2520
+ if (!averageChildWidth || previousChildRefs !== childRefs.current) {
2521
+ const childrenTotalWidth = childRefs.current.map((ref) => ref && typeof (ref === null || ref === void 0 ? void 0 : ref.getBoundingClientRect) === "function" ? ref.getBoundingClientRect().width : 0).reduce((acc, curr) => acc + curr, 0);
2522
+ const calculatedAverageWidth = childrenTotalWidth / childRefs.current.length;
2523
+ setAverageChildWidth(calculatedAverageWidth);
2524
+ setPreviousChildRefs(childRefs.current);
2525
+ }
2526
+ const maxVisibleChildren = Math.floor(containerWidth / averageChildWidth);
2527
+ if (includeBuffer) return maxVisibleChildren - 1;
2528
+ return maxVisibleChildren;
2529
+ }, [averageChildWidth, previousChildRefs]);
2530
+ return { calculateNumberOfVisibleChildren };
2531
+ };
2532
+
2533
+ //#endregion
2534
+ //#region src/UI/containers/DynamicContainerWithMenu.jsx
2535
+ const useStyles$6 = makeStyles$1((theme) => ({ filterChipMenuIcon: {
2536
+ background: theme.palette.common.grey,
2537
+ padding: theme.spacing(1),
2538
+ color: theme.palette.primary.main
2539
+ } }));
2540
+ const DynamicContainerWithMenu = forwardRef((props, ref) => {
2541
+ const { children, className, menuButton, menuIconClassName, includeBuffer = true } = props;
2542
+ const classes = useStyles$6();
2543
+ const { calculateNumberOfVisibleChildren } = useDynamicListCalculation();
2544
+ const modifiedMenuButton = useMemo(() => {
2545
+ if (!menuButton) return null;
2546
+ return cloneElement(menuButton, {
2547
+ onClick: (event) => {
2548
+ menuButton.props.onClick(event);
2549
+ handlePopoverClick(event);
2550
+ },
2551
+ ...menuButton.props
2552
+ }, menuButton.props.children);
2553
+ }, [menuButton]);
2554
+ const [allChildren, setAllChildren] = useState([]);
2555
+ const [visibleChildren, setVisibleChildren] = useState([]);
2556
+ const [menuChildren, setMenuChildren] = useState([]);
2557
+ const [anchorEl, setAnchorEl] = useState(null);
2558
+ const open = Boolean(anchorEl);
2559
+ const id = open ? "simple-popover" : void 0;
2560
+ const containerRef = useRef(ref);
2561
+ const outerContainerRef = useRef(null);
2562
+ const childrenRefs = useRef([]);
2563
+ const handlePopoverClick = (event) => {
2564
+ setAnchorEl(event.currentTarget);
2565
+ };
2566
+ const handlePopoverClose = () => {
2567
+ setAnchorEl(null);
2568
+ };
2569
+ const handleSizeChange = useCallback(() => {
2570
+ const maxVisibleChildren = calculateNumberOfVisibleChildren(containerRef, childrenRefs, includeBuffer);
2571
+ const visibleChildren$1 = allChildren.slice(0, maxVisibleChildren);
2572
+ const menuChildren$1 = allChildren.slice(maxVisibleChildren);
2573
+ setVisibleChildren(visibleChildren$1);
2574
+ setMenuChildren(menuChildren$1);
2575
+ }, [
2576
+ containerRef,
2577
+ allChildren,
2578
+ childrenRefs,
2579
+ calculateNumberOfVisibleChildren,
2580
+ includeBuffer
2581
+ ]);
2582
+ const handleMenuItemClick = useCallback((child) => {
2583
+ if (child.props.onClick && typeof child.props.onClick === "function") child.props.onClick();
2584
+ let children$1 = child.props.children;
2585
+ while (children$1) {
2586
+ if (Array.isArray(children$1) && children$1.length > 0) children$1.forEach((child$1) => {
2587
+ if (child$1.props.onClick && typeof child$1.props.onClick === "function") child$1.props.onClick();
2588
+ });
2589
+ else if (typeof children$1 === "object") {
2590
+ if (children$1.props.onClick && typeof children$1.props.onClick === "function") children$1.props.onClick();
2591
+ }
2592
+ children$1 = children$1.props.children;
2593
+ }
2594
+ handlePopoverClose();
2595
+ }, []);
2596
+ useEffect(() => {
2597
+ const arrayChildren = Children.toArray(children);
2598
+ setAllChildren(arrayChildren);
2599
+ setVisibleChildren(arrayChildren);
2600
+ }, [children]);
2601
+ useLayoutEffect(handleSizeChange, [handleSizeChange]);
2602
+ useLayoutEffect(() => {
2603
+ window.addEventListener("resize", handleSizeChange);
2604
+ const resizeObserver = new ResizeObserver(handleSizeChange);
2605
+ if (outerContainerRef.current) resizeObserver.observe(outerContainerRef.current);
2606
+ return () => {
2607
+ window.removeEventListener("resize", handleSizeChange);
2608
+ resizeObserver.disconnect();
2609
+ };
2610
+ }, [handleSizeChange, outerContainerRef]);
2611
+ return /* @__PURE__ */ jsx("div", {
2612
+ ref: outerContainerRef,
2613
+ style: {
2614
+ width: "100%",
2615
+ overflow: "hidden"
2616
+ },
2617
+ children: /* @__PURE__ */ jsxs("div", {
2618
+ className,
2619
+ ref: containerRef,
2620
+ style: {
2621
+ display: "flex",
2622
+ flexWrap: "noWrap",
2623
+ overflow: "hidden",
2624
+ flexGrow: 1
2625
+ },
2626
+ children: [visibleChildren && Children.map(visibleChildren, (child, index) => {
2627
+ return cloneElement(child, {
2628
+ ref: (ref$1) => childrenRefs.current[index] = ref$1,
2629
+ ...child.props
2630
+ }, child.props.children);
2631
+ }), menuChildren && menuChildren.length > 0 && /* @__PURE__ */ jsxs("div", { children: [modifiedMenuButton !== null && modifiedMenuButton !== void 0 ? modifiedMenuButton : /* @__PURE__ */ jsx(AmbientTokenButton, {
2632
+ id,
2633
+ icon: MoreVerticalIcon,
2634
+ tooltip: "Additional Filter Values",
2635
+ ariaLabel: "Additional Filter Values",
2636
+ onClick: handlePopoverClick,
2637
+ iconClassName: menuIconClassName !== null && menuIconClassName !== void 0 ? menuIconClassName : classes.filterChipMenuIcon
2638
+ }), /* @__PURE__ */ jsx(Popover, {
2639
+ id,
2640
+ open,
2641
+ anchorEl,
2642
+ onClose: handlePopoverClose,
2643
+ anchorOrigin: {
2644
+ vertical: "bottom",
2645
+ horizontal: "right"
2646
+ },
2647
+ transformOrigin: {
2648
+ vertical: "top",
2649
+ horizontal: "right"
2650
+ },
2651
+ children: Children.map(menuChildren, (child, index) => {
2652
+ return /* @__PURE__ */ jsx(MenuItem, {
2653
+ onClick: () => handleMenuItemClick(child),
2654
+ children: cloneElement(child, { ...child.props }, child.props.children)
2655
+ });
2656
+ })
2657
+ })] })]
2658
+ })
2659
+ });
2660
+ });
2661
+ DynamicContainerWithMenu.displayName = "DynamicContainerWithMenu";
2662
+ DynamicContainerWithMenu.propTypes = {
2663
+ children: PropTypes.node.isRequired,
2664
+ className: PropTypes.string,
2665
+ menuButton: PropTypes.node,
2666
+ menuIconClassName: PropTypes.string,
2667
+ includeBuffer: PropTypes.bool
2668
+ };
2669
+
2670
+ //#endregion
2671
+ //#region src/UI/utilityDisplay/ChipSection.jsx
2672
+ const useStyles$5 = makeStyles$1((theme) => ({
2673
+ wrapper: {
2674
+ display: "flex",
2675
+ gap: theme.spacing(1),
2676
+ flexWrap: "noWrap",
2677
+ backgroundColor: `${theme.palette.secondary.light}80`,
2678
+ alignItems: "center",
2679
+ flexGrow: 1,
2680
+ width: "100%"
2681
+ },
2682
+ chipHolder: {
2683
+ display: "flex",
2684
+ gap: theme.spacing(1),
2685
+ flexWrap: "noWrap",
2686
+ backgroundColor: `${theme.palette.secondary.light}80`,
2687
+ alignItems: "center",
2688
+ overflow: "scroll",
2689
+ "&::-webkit-scrollbar": { display: "none" },
2690
+ flexGrow: 1
2691
+ },
2692
+ viewChip: {
2693
+ backgroundColor: theme.palette.secondary.main,
2694
+ color: "white",
2695
+ maxWidth: "150px",
2696
+ transition: "opacity 0.3s ease",
2697
+ marginLeft: theme.spacing(1)
2698
+ },
2699
+ menuItem: { backgroundColor: "white" },
2700
+ filterChipMenuIcon: {
2701
+ background: theme.palette.common.grey,
2702
+ padding: theme.spacing(1),
2703
+ color: theme.palette.primary.main
2704
+ },
2705
+ additionalFilterChip: {},
2706
+ KPI: {
2707
+ marginLeft: "auto",
2708
+ display: "flex",
2709
+ gap: theme.spacing(1),
2710
+ color: "grey",
2711
+ width: "auto"
2712
+ },
2713
+ kpiValue: {
2714
+ color: "black",
2715
+ fontSize: "1.1em"
2716
+ },
2717
+ kpiItem: {
2718
+ display: "flex",
2719
+ justifyContent: "center",
2720
+ width: "max-content"
2721
+ },
2722
+ kpiLabel: {
2723
+ width: "max-content",
2724
+ marginRight: theme.spacing(1)
2725
+ },
2726
+ clickedChip: {
2727
+ backgroundColor: theme.palette.primary.main,
2728
+ color: "white",
2729
+ maxWidth: "150px"
2730
+ },
2731
+ filterChipLabel: {
2732
+ color: theme.palette.text.primary,
2733
+ whiteSpace: "nowrap",
2734
+ marginRight: theme.spacing(1)
2735
+ },
2736
+ filterChipValue: {
2737
+ color: theme.palette.text.secondary,
2738
+ whiteSpace: "nowrap"
2739
+ }
2740
+ }));
2741
+ const ChipSection = (props) => {
2742
+ const { filterChips = [], viewChips = [], additionalFilterChips = [], hideKpiSection = false, kpiValues = [], maxKPIsDisplayed = 4, handleDelete } = props;
2743
+ const classes = useStyles$5();
2744
+ const chipRefs = useRef([]);
2745
+ const chipSectionContainerRef = useRef(null);
2746
+ const viewChipsContainerRef = useRef(null);
2747
+ const filterChipsContainerRef = useRef(null);
2748
+ const additionalFilterChipsContainerRef = useRef(null);
2749
+ const kpiContainerRef = useRef(null);
2750
+ const [selectedFilterChip, setSelectedFilterChip] = useState(null);
2751
+ const abbrNum = (number, decPlaces) => {
2752
+ if (typeof number === "string" && !isNaN(Number(number))) number = Number(number);
2753
+ else if (typeof number !== "number") throw new Error("The input must be a number or a string that can be converted to a number.");
2754
+ if (typeof decPlaces !== "number") return null;
2755
+ decPlaces = Math.pow(10, decPlaces);
2756
+ let abbrev = [
2757
+ "k",
2758
+ "m",
2759
+ "b",
2760
+ "t"
2761
+ ];
2762
+ for (let i = abbrev.length - 1; i >= 0; i--) {
2763
+ let size = Math.pow(10, (i + 1) * 3);
2764
+ if (size <= number) {
2765
+ number = Math.round(number * decPlaces / size) / decPlaces;
2766
+ if (number === 1e3 && i < abbrev.length - 1) {
2767
+ number = 1;
2768
+ i++;
2769
+ }
2770
+ number += abbrev[i];
2771
+ break;
2772
+ }
2773
+ }
2774
+ return number;
2775
+ };
2776
+ const isEmpty = (array) => Array.isArray(array) && array.length === 0;
2777
+ const abbreviateLabel = (label) => {
2778
+ const maxLength = 10;
2779
+ if (label.length > maxLength) {
2780
+ const newLabel = label.slice(0, maxLength - 3) + "...";
2781
+ return newLabel;
2782
+ } else return null;
2783
+ };
2784
+ const handleFilterChipToggle = (chip) => {
2785
+ setSelectedFilterChip(chip);
2786
+ if (typeof chip.onToggle === "function") chip.onToggle();
2787
+ };
2788
+ const handleFilterChipUntoggle = () => {
2789
+ if (selectedFilterChip) {
2790
+ if (typeof selectedFilterChip.onUntoggle === "function") selectedFilterChip.onUntoggle();
2791
+ setSelectedFilterChip(null);
2792
+ }
2793
+ };
2794
+ return /* @__PURE__ */ jsxs("div", {
2795
+ ref: chipSectionContainerRef,
2796
+ className: classes.wrapper,
2797
+ style: { display: [
2798
+ kpiValues,
2799
+ additionalFilterChips,
2800
+ viewChips,
2801
+ filterChips
2802
+ ].every((arr) => arr.length === 0) ? "none" : "flex" },
2803
+ children: [/* @__PURE__ */ jsxs("div", {
2804
+ className: classes.chipHolder,
2805
+ children: [
2806
+ /* @__PURE__ */ jsx("div", {
2807
+ ref: viewChipsContainerRef,
2808
+ children: viewChips.map((chip, index) => /* @__PURE__ */ jsx(Chip$1, {
2809
+ onDelete: () => handleDelete("view", index),
2810
+ label: chip.label,
2811
+ className: classes.viewChip,
2812
+ icon: /* @__PURE__ */ jsx(StarIcon, {}),
2813
+ size: "small"
2814
+ }, index))
2815
+ }),
2816
+ !isEmpty(viewChips) && !isEmpty(filterChips) && /* @__PURE__ */ jsx(Divider$1, {
2817
+ orientation: "vertical",
2818
+ flexItem: true
2819
+ }),
2820
+ !isEmpty(filterChips) && /* @__PURE__ */ jsxs(DynamicContainerWithMenu, {
2821
+ className: classes.chipHolder,
2822
+ ref: filterChipsContainerRef,
2823
+ children: [selectedFilterChip && /* @__PURE__ */ jsx(Chip$1, {
2824
+ onDelete: handleFilterChipUntoggle,
2825
+ label: selectedFilterChip.label,
2826
+ className: classes.viewChip,
2827
+ size: "small"
2828
+ }), filterChips.map((chip, index) => {
2829
+ if (selectedFilterChip && chip.id === selectedFilterChip.id) return null;
2830
+ return /* @__PURE__ */ jsx(Tooltip$1, {
2831
+ title: chip.label,
2832
+ children: /* @__PURE__ */ jsx(Chip$1, {
2833
+ label: /* @__PURE__ */ jsxs("div", {
2834
+ style: {
2835
+ display: "flex",
2836
+ flexWrap: "noWrap"
2837
+ },
2838
+ children: [/* @__PURE__ */ jsx(Typography$1, {
2839
+ noWrap: true,
2840
+ className: chip.value ? classes.filterChipLabel : "",
2841
+ children: chip.label
2842
+ }), /* @__PURE__ */ jsx(Typography$1, {
2843
+ noWrap: true,
2844
+ className: classes.filterChipValue,
2845
+ children: chip.value
2846
+ })]
2847
+ }),
2848
+ className: classes.filterChip,
2849
+ size: "small",
2850
+ onClick: () => handleFilterChipToggle(chip),
2851
+ ref: (el) => chipRefs.current[index] = el
2852
+ }, index)
2853
+ });
2854
+ })]
2855
+ }),
2856
+ !isEmpty(additionalFilterChips) && !isEmpty(filterChips) && /* @__PURE__ */ jsx(Divider$1, {
2857
+ orientation: "vertical",
2858
+ flexItem: true
2859
+ }),
2860
+ /* @__PURE__ */ jsx("div", {
2861
+ ref: additionalFilterChipsContainerRef,
2862
+ style: { display: "flex" },
2863
+ children: additionalFilterChips.map((chip, index) => /* @__PURE__ */ jsx(Chip$1, {
2864
+ variant: "outlined",
2865
+ onDelete: () => handleDelete("additionalFilter", index),
2866
+ label: chip.label,
2867
+ className: classes.additionalFilterChip,
2868
+ size: "small"
2869
+ }, index))
2870
+ })
2871
+ ]
2872
+ }), !hideKpiSection && /* @__PURE__ */ jsx("div", {
2873
+ className: classes.KPI,
2874
+ ref: kpiContainerRef,
2875
+ children: kpiValues.slice(0, 4).map((kpi, index) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
2876
+ className: classes.kpiItem,
2877
+ id: index,
2878
+ children: [/* @__PURE__ */ jsx("span", {
2879
+ className: classes.kpiLabel,
2880
+ children: abbreviateLabel(kpi.label) && /* @__PURE__ */ jsx(Tooltip$1, {
2881
+ title: kpi.label,
2882
+ arrow: true,
2883
+ children: /* @__PURE__ */ jsx(Typography$1, {
2884
+ noWrap: true,
2885
+ children: /* @__PURE__ */ jsxs("span", { children: [kpi.label, ":"] })
2886
+ })
2887
+ }) || /* @__PURE__ */ jsx(Fragment$1, { children: kpi.label })
2888
+ }), /* @__PURE__ */ jsx("span", {
2889
+ className: classes.kpiValue,
2890
+ children: /* @__PURE__ */ jsx(Tooltip$1, {
2891
+ title: kpi.value,
2892
+ arrow: true,
2893
+ children: /* @__PURE__ */ jsx("span", { children: abbrNum(kpi.value, 1) })
2894
+ })
2895
+ })]
2896
+ }), index !== maxKPIsDisplayed - 1 && /* @__PURE__ */ jsx(Divider$1, {
2897
+ orientation: "vertical",
2898
+ flexItem: true
2899
+ })] }))
2900
+ })]
2901
+ });
2902
+ };
2903
+ ChipSection.propTypes = {
2904
+ filterChips: PropTypes.arrayOf(PropTypes.shape({
2905
+ label: PropTypes.string.isRequired,
2906
+ value: PropTypes.string.isRequired
2907
+ })),
2908
+ viewChips: PropTypes.arrayOf(PropTypes.shape({ label: PropTypes.string.isRequired })),
2909
+ additionalFilterChips: PropTypes.arrayOf(PropTypes.shape({ label: PropTypes.string.isRequired })),
2910
+ hideKpiSection: PropTypes.bool,
2911
+ kpiValues: PropTypes.arrayOf(PropTypes.shape({
2912
+ label: PropTypes.string.isRequired,
2913
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
2914
+ })),
2915
+ maxKPIsDisplayed: PropTypes.number,
2916
+ handleDelete: PropTypes.func,
2917
+ selectedFilterChipsIndex: PropTypes.number,
2918
+ setSelectedFilterChipsIndex: PropTypes.func
2919
+ };
2920
+
2921
+ //#endregion
2922
+ //#region src/UI/inputs/buttons/IconButtonWithToolTip.jsx
2923
+ const useStyles$4 = makeStyles(() => ({ root: { "&.Mui-disabled": { pointerEvents: "auto" } } }));
2924
+ const IconButtonWithTooltip = ({ icon, title, disabled, onClick, className, fluentIconClassName, id, udprecordid,...other }) => {
2925
+ const adjustedButtonProps = {
2926
+ disabled,
2927
+ component: disabled ? "div" : void 0,
2928
+ onClick: disabled ? void 0 : onClick
2929
+ };
2930
+ const classes = useStyles$4();
2931
+ return /* @__PURE__ */ jsx(Tooltip, {
2932
+ title,
2933
+ children: /* @__PURE__ */ jsx(IconButton, {
2934
+ id,
2935
+ udprecordid,
2936
+ className: `${className} ${classes.root}`,
2937
+ ...other,
2938
+ ...adjustedButtonProps,
2939
+ children: /* @__PURE__ */ jsx(FluentIcon, {
2940
+ className: fluentIconClassName,
2941
+ component: icon
2942
+ })
2943
+ })
2944
+ });
2945
+ };
2946
+
2947
+ //#endregion
2948
+ //#region src/UI/templates/ui/renderers/ActionsRenderer.jsx
2949
+ const useStyles$3 = makeStyles((theme) => ({
2950
+ icon: { margin: theme.spacing(.5) },
2951
+ iconButtonStyle: {
2952
+ width: `${theme.spacing(3)}px !important`,
2953
+ height: `${theme.spacing(3)}px !important`,
2954
+ background: "#fff",
2955
+ borderRadius: 25,
2956
+ padding: 6
2957
+ },
2958
+ circularSkeleton: { borderRadius: "50%" }
2959
+ }));
2960
+ const ActionItem = memo((props) => {
2961
+ const { icon, title, onClick, disabled, businessObjectKey = "" } = props;
2962
+ const classes = useStyles$3();
2963
+ return /* @__PURE__ */ jsx(IconButtonWithTooltip, {
2964
+ title,
2965
+ className: classes.icon,
2966
+ size: "small",
2967
+ onClick,
2968
+ disabled,
2969
+ icon,
2970
+ fluentIconClassName: classes.iconButtonStyle,
2971
+ id: "udpRecord-ActionsRenderer-" + title,
2972
+ udprecordid: "udpRecord-ActionsRenderer-" + title
2973
+ });
2974
+ });
2975
+ const ActionsRenderer = memo((props) => {
2976
+ const { data: value, actionList, onClick } = props;
2977
+ const classes = useStyles$3();
2978
+ const [sheetOpen, setSheetOpen] = useState(false);
2979
+ const [sheetItem, setSheetItem] = useState(null);
2980
+ const [dialogItem, setDialogItem] = useState(null);
2981
+ const [dialogOpen, setDialogOpen] = useState(false);
2982
+ const [isLoading, setIsLoading] = useState(false);
2983
+ const [sideSheetWidth, setSideSheetWidth] = useState(600);
2984
+ const [sideSheetButtonLabel, setSideSheetButtonLabel] = useState("");
2985
+ const [sideSheetOnSubmit, setSideSheetOnSubmit] = useState(() => () => console.warn("onSubmit not set"));
2986
+ const openSheet = useCallback((sheetView) => {
2987
+ setSheetItem(sheetView);
2988
+ setSheetOpen(true);
2989
+ }, []);
2990
+ const openDialog = useCallback((dialogView) => {
2991
+ setDialogItem(dialogView);
2992
+ setDialogOpen(true);
2993
+ }, []);
2994
+ const closeSheet = useCallback(() => {
2995
+ setSheetOpen(false);
2996
+ }, []);
2997
+ const closeDialog = useCallback(() => {
2998
+ setDialogOpen(false);
2999
+ }, []);
3000
+ const getSheetView = (actionItem) => {
3001
+ var _actionItem$view3, _actionItem$view4, _actionItem$view5;
3002
+ if (actionItem.opens === ClickOpenEnums.SideSheet) {
3003
+ var _actionItem$view, _actionItem$view2;
3004
+ const valuePropName = actionItem === null || actionItem === void 0 || (_actionItem$view = actionItem.view) === null || _actionItem$view === void 0 || (_actionItem$view = _actionItem$view.properties) === null || _actionItem$view === void 0 ? void 0 : _actionItem$view.valuePropName;
3005
+ if (valuePropName) actionItem.view.properties[valuePropName] = value;
3006
+ const closeSideSheetPropName = actionItem === null || actionItem === void 0 || (_actionItem$view2 = actionItem.view) === null || _actionItem$view2 === void 0 || (_actionItem$view2 = _actionItem$view2.properties) === null || _actionItem$view2 === void 0 ? void 0 : _actionItem$view2.closeSideSheetPropName;
3007
+ if (closeSideSheetPropName) actionItem.view.properties[closeSideSheetPropName] = closeSheet;
3008
+ }
3009
+ const properties = (actionItem === null || actionItem === void 0 || (_actionItem$view3 = actionItem.view) === null || _actionItem$view3 === void 0 ? void 0 : _actionItem$view3.properties) || {};
3010
+ return {
3011
+ id: actionItem.id,
3012
+ title: actionItem.title || "",
3013
+ width: actionItem === null || actionItem === void 0 || (_actionItem$view4 = actionItem.view) === null || _actionItem$view4 === void 0 ? void 0 : _actionItem$view4.width,
3014
+ children: actionItem === null || actionItem === void 0 || (_actionItem$view5 = actionItem.view) === null || _actionItem$view5 === void 0 ? void 0 : _actionItem$view5.component({
3015
+ ...properties,
3016
+ setSideSheetWidth,
3017
+ setSideSheetButtonLabel,
3018
+ setSideSheetOnSubmit
3019
+ })
3020
+ };
3021
+ };
3022
+ const getDialogView = (actionItem) => {
3023
+ if (actionItem.opens === ClickOpenEnums.Dialog) {
3024
+ var _actionItem$view8, _actionItem$view9, _actionItem$view10;
3025
+ const handleActionTwo = async () => {
3026
+ var _actionItem$view6;
3027
+ if (actionItem === null || actionItem === void 0 || (_actionItem$view6 = actionItem.view) === null || _actionItem$view6 === void 0 || (_actionItem$view6 = _actionItem$view6.properties) === null || _actionItem$view6 === void 0 ? void 0 : _actionItem$view6.actionTwo) {
3028
+ var _actionItem$view7;
3029
+ setIsLoading(true);
3030
+ await (actionItem === null || actionItem === void 0 || (_actionItem$view7 = actionItem.view) === null || _actionItem$view7 === void 0 || (_actionItem$view7 = _actionItem$view7.properties) === null || _actionItem$view7 === void 0 ? void 0 : _actionItem$view7.actionTwo(value));
3031
+ setIsLoading(false);
3032
+ }
3033
+ closeDialog();
3034
+ };
3035
+ return {
3036
+ id: actionItem.id,
3037
+ title: (actionItem === null || actionItem === void 0 ? void 0 : actionItem.title) || "",
3038
+ closeDialog,
3039
+ message: actionItem === null || actionItem === void 0 || (_actionItem$view8 = actionItem.view) === null || _actionItem$view8 === void 0 || (_actionItem$view8 = _actionItem$view8.properties) === null || _actionItem$view8 === void 0 ? void 0 : _actionItem$view8.message,
3040
+ labelOne: actionItem === null || actionItem === void 0 || (_actionItem$view9 = actionItem.view) === null || _actionItem$view9 === void 0 || (_actionItem$view9 = _actionItem$view9.properties) === null || _actionItem$view9 === void 0 ? void 0 : _actionItem$view9.labelOne,
3041
+ actionTwo: handleActionTwo,
3042
+ labelTwo: actionItem === null || actionItem === void 0 || (_actionItem$view10 = actionItem.view) === null || _actionItem$view10 === void 0 || (_actionItem$view10 = _actionItem$view10.properties) === null || _actionItem$view10 === void 0 ? void 0 : _actionItem$view10.labelTwo
3043
+ };
3044
+ }
3045
+ };
3046
+ const displayActions = actionList.map((item, index) => {
3047
+ let onClick$1 = () => item.onClick(value);
3048
+ let title = item.title;
3049
+ let disabled = item.disabled;
3050
+ if (item.opens === ClickOpenEnums.SideSheet) {
3051
+ const sheetView = getSheetView(item);
3052
+ onClick$1 = () => openSheet(sheetView);
3053
+ }
3054
+ if (item.opens === ClickOpenEnums.Dialog) {
3055
+ const dialogView = getDialogView(item);
3056
+ onClick$1 = () => openDialog(dialogView);
3057
+ }
3058
+ if (item.getTitle) title = item.getTitle(value);
3059
+ if (item.checkDisabled) disabled = item.checkDisabled(value);
3060
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [item.loading && /* @__PURE__ */ jsx("div", {
3061
+ style: {
3062
+ display: "inline-flex",
3063
+ marginRight: 10
3064
+ },
3065
+ children: /* @__PURE__ */ jsx(Skeleton, {
3066
+ className: classes.circularSkeleton,
3067
+ width: 24,
3068
+ height: 40
3069
+ })
3070
+ }), !item.loading && /* @__PURE__ */ jsx(ActionItem, {
3071
+ title,
3072
+ icon: item.icon,
3073
+ onClick: onClick$1,
3074
+ disabled,
3075
+ businessObjectKey: value === null || value === void 0 ? void 0 : value.businessObjectKey
3076
+ }, `${item.id}-${index}`)] });
3077
+ });
3078
+ return /* @__PURE__ */ jsxs("div", { children: [
3079
+ displayActions,
3080
+ /* @__PURE__ */ jsx(SideSheet, {
3081
+ open: sheetOpen,
3082
+ onClose: closeSheet,
3083
+ title: sheetItem === null || sheetItem === void 0 ? void 0 : sheetItem.title,
3084
+ width: (sheetItem === null || sheetItem === void 0 ? void 0 : sheetItem.width) || 600,
3085
+ buttonLabel: sideSheetButtonLabel,
3086
+ onSubmit: sideSheetOnSubmit,
3087
+ children: /* @__PURE__ */ jsx("div", { children: sheetItem === null || sheetItem === void 0 ? void 0 : sheetItem.children })
3088
+ }),
3089
+ /* @__PURE__ */ jsx(FluentDialog, {
3090
+ open: dialogOpen,
3091
+ handleClose: closeDialog,
3092
+ title: dialogItem === null || dialogItem === void 0 ? void 0 : dialogItem.title,
3093
+ message: dialogItem === null || dialogItem === void 0 ? void 0 : dialogItem.message,
3094
+ actionOne: dialogItem === null || dialogItem === void 0 ? void 0 : dialogItem.closeDialog,
3095
+ labelOne: dialogItem === null || dialogItem === void 0 ? void 0 : dialogItem.labelOne,
3096
+ actionTwo: dialogItem === null || dialogItem === void 0 ? void 0 : dialogItem.actionTwo,
3097
+ labelTwo: dialogItem === null || dialogItem === void 0 ? void 0 : dialogItem.labelTwo,
3098
+ progress: dialogItem === null || dialogItem === void 0 ? void 0 : dialogItem.isLoading
3099
+ })
3100
+ ] });
3101
+ });
3102
+ ActionItem.displayName = "ActionItem";
3103
+ ActionsRenderer.displayName = "ActionsRenderer";
3104
+
3105
+ //#endregion
3106
+ //#region src/UI/dataDisplay/HintPanel.jsx
3107
+ const useStyles$2 = makeStyles$1((theme) => ({
3108
+ hintContainer: { borderLeft: `3px solid ${theme.palette.primary.main}` },
3109
+ hintContent: {
3110
+ backgroundColor: "#F3F9FE",
3111
+ padding: `1rem`
3112
+ },
3113
+ hideHintButton: {
3114
+ border: "none",
3115
+ background: "none",
3116
+ cursor: "pointer",
3117
+ color: "#0B79D0",
3118
+ textDecoration: "none"
3119
+ },
3120
+ hidehelp: {
3121
+ display: "flex",
3122
+ flexDirection: "column",
3123
+ alignItems: "flex-end",
3124
+ width: "100%"
3125
+ }
3126
+ }));
3127
+ const HintPanel = ({ hint, hideHintText }) => {
3128
+ const theme = useTheme$1();
3129
+ const classes = useStyles$2(theme);
3130
+ const [showHint, setShowHint] = useState(true);
3131
+ const handleHideHint = () => {
3132
+ setShowHint(false);
3133
+ };
3134
+ return /* @__PURE__ */ jsx("div", {
3135
+ className: classes.hintContainer,
3136
+ children: showHint && /* @__PURE__ */ jsxs("div", {
3137
+ className: classes.hintContent,
3138
+ children: [/* @__PURE__ */ jsx("div", { children: hint }), /* @__PURE__ */ jsx("div", {
3139
+ className: classes.hidehelp,
3140
+ children: /* @__PURE__ */ jsx("button", {
3141
+ className: classes.hideHintButton,
3142
+ onClick: handleHideHint,
3143
+ children: hideHintText
3144
+ })
3145
+ })]
3146
+ })
3147
+ });
3148
+ };
3149
+ HintPanel.propTypes = {
3150
+ hint: PropTypes.string.isRequired,
3151
+ hideHintText: PropTypes.string.isRequired
3152
+ };
3153
+
3154
+ //#endregion
3155
+ //#region src/UI/utilityDisplay/GridViewsSideSheet.jsx
3156
+ const useStyles$1 = makeStyles((theme) => ({
3157
+ publicChip: {
3158
+ backgroundColor: "#96d2ff",
3159
+ color: "black",
3160
+ width: "60%"
3161
+ },
3162
+ privateChip: {
3163
+ backgroundColor: "#fce597",
3164
+ color: "black",
3165
+ width: "60%"
3166
+ }
3167
+ }));
3168
+ const GridViewsSideSheet = (props) => {
3169
+ const { onClose, open, openSaveView, rowData, setSelectedView } = props;
3170
+ const classes = useStyles$1();
3171
+ const { t } = useTranslation();
3172
+ const { gridApi, onGridReady } = useAgGridApi();
3173
+ const gApi = gridApi;
3174
+ const ChipRenderer = ({ onChange, value, id }) => {
3175
+ const handleChipClick = () => {
3176
+ onChange(id);
3177
+ };
3178
+ return /* @__PURE__ */ jsx(Chip$1, {
3179
+ label: value === VisibilityTypeEnums.Public ? t("Public") : t("Private"),
3180
+ onClick: handleChipClick,
3181
+ className: value === VisibilityTypeEnums.Public ? classes.publicChip : classes.privateChip,
3182
+ size: "small"
3183
+ });
3184
+ };
3185
+ const setView = useCallback((value) => {
3186
+ setSelectedView(value);
3187
+ onClose();
3188
+ }, [setSelectedView, onClose]);
3189
+ const actionList = useMemo(() => [{
3190
+ id: 1,
3191
+ title: t("Load View"),
3192
+ icon: OpenInNewTabIcon,
3193
+ onClick: setView,
3194
+ disabled: false
3195
+ }, {
3196
+ id: 2,
3197
+ title: t("Workflows"),
3198
+ icon: TableHeaderRowIcon,
3199
+ disabled: false
3200
+ }], [setView, t]);
3201
+ const gridOptions = {
3202
+ headerHeight: 0,
3203
+ frameworkComponents: {
3204
+ actionsRenderer: ActionsRenderer,
3205
+ chipRenderer: ChipRenderer
3206
+ },
3207
+ columnDefs: [
3208
+ {
3209
+ headerName: t("Name"),
3210
+ field: "name"
3211
+ },
3212
+ {
3213
+ field: "visibility",
3214
+ cellRenderer: "chipRenderer",
3215
+ cellRendererParams: (params) => ({
3216
+ onChange: (id) => {},
3217
+ value: params.data.gridViewVisibilityTypeId
3218
+ })
3219
+ },
3220
+ {
3221
+ headerName: t("Actions"),
3222
+ cellRenderer: "actionsRenderer",
3223
+ cellRendererParams: { actionList },
3224
+ width: "100px",
3225
+ pinned: "right",
3226
+ suppressMenu: true,
3227
+ sortable: false
3228
+ }
3229
+ ]
3230
+ };
3231
+ return /* @__PURE__ */ jsxs(SideSheet, {
3232
+ id: "udpRecord-GridViewsSideSheet",
3233
+ udprecordid: "udpRecord-GridViewsSideSheet",
3234
+ open,
3235
+ onClose,
3236
+ width: "40%",
3237
+ title: "Select a View",
3238
+ buttonLabel: "Create View",
3239
+ onSubmit: openSaveView,
3240
+ children: [/* @__PURE__ */ jsx("div", {
3241
+ style: { marginBottom: 10 },
3242
+ children: /* @__PURE__ */ jsx(HintPanel, {
3243
+ hint: "Quickly access and manage your pre-configured table/grid views. These views are designed to help you focus on specific sets of data and streamline your workflow.",
3244
+ hideHintText: "Hide Help"
3245
+ })
3246
+ }), /* @__PURE__ */ jsx(AmbientGridTemplate, {
3247
+ gridOptions,
3248
+ title: "Saved Views",
3249
+ rowData: rowData || [],
3250
+ onGridReady,
3251
+ suppressCellSelection: true,
3252
+ suppressRowClickSelection: true,
3253
+ sideBar: false,
3254
+ pivotMode: false,
3255
+ pivotPanelShow: "never",
3256
+ animateRows: true,
3257
+ pagination: false,
3258
+ api: gApi,
3259
+ useNewHeader: true,
3260
+ hiddenActionButtons: [
3261
+ "saveView",
3262
+ "views",
3263
+ "insights",
3264
+ "importExport",
3265
+ "group",
3266
+ "filter",
3267
+ "columns",
3268
+ "fitGrid",
3269
+ "expandGrid",
3270
+ "clearFilters"
3271
+ ]
3272
+ })]
3273
+ });
3274
+ };
3275
+ GridViewsSideSheet.propTypes = {
3276
+ onClose: PropTypes.func.isRequired,
3277
+ open: PropTypes.bool.isRequired,
3278
+ selectedMethod: PropTypes.string,
3279
+ catalog: PropTypes.array,
3280
+ openSaveView: PropTypes.func,
3281
+ setViewChips: PropTypes.func,
3282
+ setFilter: PropTypes.func,
3283
+ rowData: PropTypes.array,
3284
+ setSelectedView: PropTypes.func,
3285
+ frameworkComponents: PropTypes.object,
3286
+ scrollToTopOnStateChange: PropTypes.bool
3287
+ };
3288
+
3289
+ //#endregion
3290
+ //#region src/UI/utilityDisplay/BulkActionsGridButton.jsx
3291
+ const BulkActionsGridButton = (props) => {
3292
+ const { numSelectedRows, bulkActions, triggerAction, domain } = props;
3293
+ const [actionsAnchorEl, setActionsAnchorEl] = useState(null);
3294
+ const handleBulkActionsClick = (event) => {
3295
+ setActionsAnchorEl(event.currentTarget);
3296
+ };
3297
+ const triggerBulkAction = (actionId) => {
3298
+ triggerAction(actionId);
3299
+ };
3300
+ const filterAction = (action) => {
3301
+ var _JSON$parse;
3302
+ return !!domain ? ((_JSON$parse = JSON.parse(action === null || action === void 0 ? void 0 : action.parameters)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.entityName) === domain : true;
3303
+ };
3304
+ return /* @__PURE__ */ jsxs("div", {
3305
+ style: {
3306
+ marginTop: 5,
3307
+ marginLeft: 20
3308
+ },
3309
+ children: [/* @__PURE__ */ jsx(Badge, {
3310
+ badgeContent: numSelectedRows,
3311
+ color: "secondary",
3312
+ children: /* @__PURE__ */ jsx(FluentButton, {
3313
+ type: "button",
3314
+ onClick: handleBulkActionsClick,
3315
+ variant: "outlined",
3316
+ color: "primary",
3317
+ endIcon: /* @__PURE__ */ jsx(FluentIcon, {
3318
+ component: ChevronDownIcon,
3319
+ size: "small"
3320
+ }),
3321
+ children: "With Selected"
3322
+ })
3323
+ }), /* @__PURE__ */ jsx(Popover, {
3324
+ id: "actions",
3325
+ open: Boolean(actionsAnchorEl),
3326
+ anchorEl: actionsAnchorEl,
3327
+ onClose: () => setActionsAnchorEl(null),
3328
+ anchorOrigin: {
3329
+ vertical: "bottom",
3330
+ horizontal: "right"
3331
+ },
3332
+ transformOrigin: {
3333
+ vertical: "top",
3334
+ horizontal: "right"
3335
+ },
3336
+ children: bulkActions && bulkActions.map((action) => {
3337
+ var _action$icon;
3338
+ const valid = filterAction(action);
3339
+ return /* @__PURE__ */ jsx(Tooltip, {
3340
+ placement: "right",
3341
+ title: !valid ? "Action entity does not match data grid entity" : "",
3342
+ children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsxs(MenuItem, {
3343
+ onClick: () => triggerBulkAction(action.actionId),
3344
+ style: {
3345
+ display: "flex",
3346
+ justifyContent: "space-between"
3347
+ },
3348
+ disabled: !valid,
3349
+ children: [/* @__PURE__ */ jsx(Typography, { children: action.name }), /* @__PURE__ */ jsx(FluentIcon, {
3350
+ component: valid ? (_action$icon = action.icon) !== null && _action$icon !== void 0 ? _action$icon : AppIconDefaultIcon : ErrorIcon,
3351
+ style: { marginLeft: 7 },
3352
+ color: !valid && "red"
3353
+ })]
3354
+ }) })
3355
+ });
3356
+ })
3357
+ })]
3358
+ });
3359
+ };
3360
+
3361
+ //#endregion
3362
+ //#region src/models/SearchOperator.ts
3363
+ const SearchOperators = [
3364
+ {
3365
+ value: "=",
3366
+ label: "Equals"
3367
+ },
3368
+ {
3369
+ value: "IN",
3370
+ label: "Contains"
3371
+ },
3372
+ {
3373
+ value: "<>",
3374
+ label: "Does not Equal"
3375
+ },
3376
+ {
3377
+ value: ">",
3378
+ label: "Greater Than"
3379
+ },
3380
+ {
3381
+ value: "<",
3382
+ label: "Less Than"
3383
+ },
3384
+ {
3385
+ value: ">=",
3386
+ label: "Greater Than or Equal To"
3387
+ },
3388
+ {
3389
+ value: "<=",
3390
+ label: "Less Than or Equal To"
3391
+ },
3392
+ {
3393
+ value: "LIKE",
3394
+ label: "Like"
3395
+ },
3396
+ {
3397
+ value: "STARTSWITH",
3398
+ label: "Starts With"
3399
+ },
3400
+ {
3401
+ value: "BETWEEN",
3402
+ label: "Between"
3403
+ }
3404
+ ];
3405
+ const FilterOperators = {
3406
+ equals: "=",
3407
+ contains: "LIKE",
3408
+ notEqual: "<>",
3409
+ greaterThan: ">",
3410
+ lessThan: "<",
3411
+ greaterThanOrEqual: ">=",
3412
+ lessThanOrEqual: "<=",
3413
+ between: "BETWEEN",
3414
+ In: "IN",
3415
+ startsWith: "STARTSWITH"
3416
+ };
3417
+
3418
+ //#endregion
3419
+ //#region src/UI/templates/AmbientGridTemplate.jsx
3420
+ const useStyles = makeStyles((theme) => ({
3421
+ root: {},
3422
+ pab: {
3423
+ display: "flex",
3424
+ [theme.breakpoints.between("xs", "sm")]: {
3425
+ position: "fixed",
3426
+ bottom: theme.spacing(2),
3427
+ right: theme.spacing(2),
3428
+ zIndex: theme.zIndex.appBar
3429
+ }
3430
+ },
3431
+ groupSideBar: { width: 225 },
3432
+ gridApi: { display: "flex" }
3433
+ }));
3434
+ const AmbientGridTemplate = (props) => {
3435
+ const { additionalFilters, api, apiMethod, applicationName, bulkActionFunctions, clearGridConfig, columnApi, columnDefs, data, defaultAutoSize, deleteGridConfig, disablePagination, disableDynamicSizing, disableRowSelection, entityName, filterChips = [], filters, frameworkComponents, gridReady, gridId, groupingData, height, hideFitGrid, hideExpandGrid, hideExportGrid, hideRemoveFilters, hideFilterTab, hideGroupTab, hideColumnTab, hideSearchBar, hiddenLabels, hiddenActionButtons = [], kpiValues = [], loading = false, onRowSelected, onSearch, onPrimaryActionClick, paginationPageSize = 20, primaryActionButton, primaryActionDisabled, primaryActionLabel, primaryActionIcon, rowModelType = "clientSide", rowNodeIdName, saveGridConfig, scrollToTopOnStateChange, secondaryActionButtons, title, tenantName, hideHeader, useNewHeader, insightsClick, user, id, udprecordid, additionalGridOptions = {}, headerBackgroundColor, onSearchKeyDown,...otherGridProps } = props;
3436
+ const classes = useStyles();
3437
+ const { gridApi, gridColumnApi, onGridReady } = useAgGridApi();
3438
+ const [isVisible, setIsVisible] = useState();
3439
+ const [sidebarIsVisible, setSidebarIsVisible] = useState(false);
3440
+ const [showGroupOptions, setShowGroupOptions] = useState(false);
3441
+ const [selectedRow, setSelectedRow] = useState(null);
3442
+ const [value, setValue] = useState(0);
3443
+ const [saveViewOpen, setSaveViewOpen] = useState(false);
3444
+ const [defaultViews, setDefaultViews] = useState([]);
3445
+ const [viewsOpen, setViewsOpen] = useState(false);
3446
+ const [agGridOptions, setAgGridOptions] = useState({
3447
+ frameworkComponents,
3448
+ suppressScrollOnNewData: !scrollToTopOnStateChange,
3449
+ ...additionalGridOptions
3450
+ });
3451
+ const gApi = api || gridApi;
3452
+ const gcApi = columnApi || gridColumnApi;
3453
+ const [viewChips, setViewChips] = useState([]);
3454
+ const [additionalFilterChips, setAdditionalFilterChips] = useState(additionalFilters);
3455
+ const [columnDefsValues, setColumnDefsValues] = useState(null);
3456
+ const [selectedView, setSelectedView] = useState(null);
3457
+ const [viewsRowData, setViewsRowData] = useState(null);
3458
+ const [nonDefaultViewsRowData, setNonDefaultViewsRowData] = useState();
3459
+ const [numSelectedRows, setNumSelectedRows] = useState(0);
3460
+ const [domain, setDomain] = useState(null);
3461
+ const [apiCatalogId, setApiCatalogId] = useState(null);
3462
+ const { triggerAction } = useActions();
3463
+ useEffect(() => {
3464
+ if (apiMethod) {
3465
+ setDomain(apiMethod.entityName);
3466
+ setApiCatalogId(apiMethod.apiCatalogId);
3467
+ }
3468
+ }, [
3469
+ apiMethod,
3470
+ setDomain,
3471
+ setApiCatalogId
3472
+ ]);
3473
+ const defaultColActionsDef = {
3474
+ resizable: true,
3475
+ editable: false,
3476
+ sortable: true,
3477
+ filter: true,
3478
+ floatingFilter: false,
3479
+ enableRowGroup: true,
3480
+ filterParams: { filterOptions: rowModelType === "serverSide" ? Object.keys(FilterOperators) : void 0 }
3481
+ };
3482
+ const handleChange = (event, newValue) => {
3483
+ event.preventDefault();
3484
+ setValue((preValue) => {
3485
+ if (newValue === preValue && newValue !== 1) gApi.setSideBarVisible(!gApi.isSideBarVisible());
3486
+ else if (newValue === 0) {
3487
+ gApi.setSideBarVisible(true);
3488
+ gApi.openToolPanel("filters");
3489
+ setShowGroupOptions(false);
3490
+ } else if (newValue === 1) {
3491
+ showGrouping();
3492
+ gApi.setSideBarVisible(false);
3493
+ } else {
3494
+ gApi.setSideBarVisible(true);
3495
+ gApi.openToolPanel("columns");
3496
+ setShowGroupOptions(false);
3497
+ }
3498
+ return newValue;
3499
+ });
3500
+ };
3501
+ const onFilterClick = (event) => {
3502
+ event.preventDefault();
3503
+ gApi.setSideBarVisible(!gApi.isSideBarVisible());
3504
+ gApi.openToolPanel("filters");
3505
+ setShowGroupOptions(false);
3506
+ setValue(0);
3507
+ setSidebarIsVisible(!sidebarIsVisible);
3508
+ };
3509
+ const onColumnsClick = (event) => {
3510
+ event.preventDefault();
3511
+ gApi.setSideBarVisible(!gApi.isSideBarVisible());
3512
+ gApi.openToolPanel("columns");
3513
+ setShowGroupOptions(false);
3514
+ setValue(2);
3515
+ setSidebarIsVisible(!sidebarIsVisible);
3516
+ };
3517
+ const emptyArr = [];
3518
+ const handleRowSelected = useCallback((event) => {
3519
+ if (!gApi) return;
3520
+ const selectedRows = gApi.getSelectedRows();
3521
+ setNumSelectedRows(selectedRows.length);
3522
+ const row = selectedRows.length && selectedRows[0];
3523
+ setSelectedRow(row);
3524
+ if (onRowSelected) onRowSelected(event, row);
3525
+ }, [gApi, onRowSelected]);
3526
+ const setSideBarInvisible = () => {
3527
+ if (gApi.isSideBarVisible()) {
3528
+ gApi.setSideBarVisible(false);
3529
+ setIsVisible(false);
3530
+ } else {
3531
+ gApi.setSideBarVisible(true);
3532
+ gApi.openToolPanel("filters");
3533
+ setShowGroupOptions(false);
3534
+ setIsVisible(true);
3535
+ }
3536
+ };
3537
+ const handleFilterChange = (event) => {
3538
+ gApi.setQuickFilter(event.target.value);
3539
+ };
3540
+ const groupGridItems = (groupItem) => {
3541
+ gcApi.setRowGroupColumns([groupItem]);
3542
+ gApi.expandAll();
3543
+ };
3544
+ const restoreGridDefault = () => {
3545
+ gApi.setQuickFilter("");
3546
+ gcApi.setRowGroupColumns([]);
3547
+ gApi.setFilterModel(null);
3548
+ gApi.setQuickFilter("");
3549
+ gcApi.resetColumnState();
3550
+ };
3551
+ const showGrouping = () => {
3552
+ setShowGroupOptions(!showGroupOptions);
3553
+ gApi.setSideBarVisible(false);
3554
+ };
3555
+ const expandGroupedGrid = () => {
3556
+ gApi.expandAll();
3557
+ };
3558
+ const collapseGroupedGrid = () => {
3559
+ gApi.collapseAll();
3560
+ };
3561
+ const fitToSpace = () => {
3562
+ gApi.sizeColumnsToFit();
3563
+ };
3564
+ const exportGrid = () => {
3565
+ gApi.exportDataAsCsv({
3566
+ allColumns: true,
3567
+ fileName: "export"
3568
+ });
3569
+ };
3570
+ const openSaveView = () => {
3571
+ setColumnDefsValues(JSON.stringify(gcApi.getColumnState()));
3572
+ setSaveViewOpen(true);
3573
+ };
3574
+ const closeSaveView = () => {
3575
+ setSaveViewOpen(false);
3576
+ };
3577
+ const openViews = useCallback(() => {
3578
+ setViewsOpen(true);
3579
+ }, []);
3580
+ const closeViews = () => {
3581
+ setViewsOpen(false);
3582
+ };
3583
+ const handleTriggerAction = useCallback((actionId) => {
3584
+ if (triggerAction && gApi) triggerAction(actionId, gApi.getSelectedRows());
3585
+ }, [triggerAction, gApi]);
3586
+ const autoSizeAll = useCallback((skipHeader) => {
3587
+ invariant(gcApi, `gridColumnApi not ready`);
3588
+ const allColumnIds = [];
3589
+ gcApi.getAllColumns().forEach((column) => {
3590
+ allColumnIds.push(column.getColId());
3591
+ });
3592
+ gcApi.autoSizeColumns(allColumnIds, skipHeader);
3593
+ }, [gcApi]);
3594
+ const autoSizeAllWithoutHeader = useCallback(() => autoSizeAll(false), [autoSizeAll]);
3595
+ const firstDataRendered = useCallback((params) => {
3596
+ !defaultAutoSize && (params === null || params === void 0 || params.api.sizeColumnsToFit());
3597
+ defaultAutoSize && autoSizeAllWithoutHeader();
3598
+ }, [defaultAutoSize, autoSizeAllWithoutHeader]);
3599
+ useEffect(() => {
3600
+ var _gApi$getSelectedRows;
3601
+ if (!gApi) return;
3602
+ setSelectedRow(((_gApi$getSelectedRows = gApi.getSelectedRows()) === null || _gApi$getSelectedRows === void 0 ? void 0 : _gApi$getSelectedRows.length) && gApi.getSelectedRows()[0]);
3603
+ selectedRow && gApi.ensureNodeVisible(selectedRow);
3604
+ }, [gApi, selectedRow]);
3605
+ const handleChipDelete = (chipType, chipIndex) => {
3606
+ switch (chipType) {
3607
+ case "view":
3608
+ setViewChips((prevChips) => prevChips.filter((_, index) => index !== chipIndex));
3609
+ setSelectedView(null);
3610
+ gcApi.resetColumnState();
3611
+ gApi.sizeColumnsToFit();
3612
+ break;
3613
+ case "additionalFilter":
3614
+ setAdditionalFilterChips((prevChips) => {
3615
+ var _prevChips$chipIndex;
3616
+ if ((_prevChips$chipIndex = prevChips[chipIndex]) === null || _prevChips$chipIndex === void 0 ? void 0 : _prevChips$chipIndex.onUntoggle) {
3617
+ var _prevChips$chipIndex2;
3618
+ (_prevChips$chipIndex2 = prevChips[chipIndex]) === null || _prevChips$chipIndex2 === void 0 || _prevChips$chipIndex2.onUntoggle();
3619
+ }
3620
+ return prevChips.filter((_, index) => index !== chipIndex);
3621
+ });
3622
+ break;
3623
+ default: break;
3624
+ }
3625
+ };
3626
+ useEffect(() => {
3627
+ if ((viewsRowData === null || viewsRowData === void 0 ? void 0 : viewsRowData.length) > 0) {
3628
+ const DefaultViews = viewsRowData.reduce((acc, row) => {
3629
+ if (row.isDefault) return [...acc, row];
3630
+ return acc;
3631
+ }, []);
3632
+ const nonDefaultViews = viewsRowData.reduce((acc, row) => {
3633
+ if (!row.isDefault) return [...acc, row];
3634
+ return acc;
3635
+ }, []);
3636
+ setDefaultViews(DefaultViews);
3637
+ setNonDefaultViewsRowData(nonDefaultViews);
3638
+ }
3639
+ }, [viewsRowData]);
3640
+ const setView = useCallback((value$1) => {
3641
+ const columnState = value$1 === null || value$1 === void 0 ? void 0 : value$1.gridViewGridViewGridConfiguration.map((ele) => ele.gridViewGridConfigurationGridConfiguration);
3642
+ setViewChips((prevChips) => [{ label: value$1 === null || value$1 === void 0 ? void 0 : value$1.name }]);
3643
+ onFirstDataRendered(gApi, gcApi, columnState);
3644
+ }, [
3645
+ setViewChips,
3646
+ gApi,
3647
+ gcApi
3648
+ ]);
3649
+ const setFilter = (value$1) => {};
3650
+ const [{ data: views }, refetch] = useAxiosGet(ConfigService.tenantV2ApiUrl, `GridView/getFromUser/${user === null || user === void 0 ? void 0 : user.id}/${gridId}`, { params: {
3651
+ domainName: domain,
3652
+ apiCatalogId
3653
+ } }, !!!ConfigService.tenantV2ApiUrl || !!!gridId || !!!user);
3654
+ const [{ data: bulkActions }] = useAxiosGet(ConfigService.integrationV2ApiUrl, `action/grid/${gridId}`, {}, !!!ConfigService.integrationV2ApiUrl || !!!gridId);
3655
+ useEffect(() => {
3656
+ setViewsRowData(views);
3657
+ }, [openViews, views]);
3658
+ const getView = useCallback(async () => {
3659
+ await apiMutate$1(ConfigService.tenantV2ApiUrl, `GridView/${selectedView.gridViewId}/PartiallyFull`, { method: "get" }).then((response) => {
3660
+ setView(response.data);
3661
+ }).catch((error) => {
3662
+ console.log(error);
3663
+ });
3664
+ }, [selectedView, setView]);
3665
+ useEffect(() => {
3666
+ if (!(selectedView === null || selectedView === void 0 ? void 0 : selectedView.gridViewId)) {
3667
+ gcApi === null || gcApi === void 0 || gcApi.resetColumnState();
3668
+ gApi === null || gApi === void 0 || gApi.sizeColumnsToFit();
3669
+ return void 0;
3670
+ }
3671
+ getView();
3672
+ return void 0;
3673
+ }, [
3674
+ setSelectedView,
3675
+ selectedView,
3676
+ gcApi,
3677
+ gApi,
3678
+ getView
3679
+ ]);
3680
+ useEffect(() => {
3681
+ if (additionalFilters) setAdditionalFilterChips(additionalFilters);
3682
+ }, [additionalFilters]);
3683
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
3684
+ !hideHeader && useNewHeader && gApi && /* @__PURE__ */ jsx(GridPrimaryBar, {
3685
+ title,
3686
+ showFilter: setSideBarInvisible,
3687
+ selected: isVisible,
3688
+ onChange: onSearch || handleFilterChange,
3689
+ showGroup: showGrouping,
3690
+ value,
3691
+ saveViewClick: openSaveView,
3692
+ viewsClick: openViews,
3693
+ handleChange,
3694
+ fitClick: fitToSpace,
3695
+ expandClick: autoSizeAllWithoutHeader,
3696
+ exportClick: exportGrid,
3697
+ insightsClick,
3698
+ clearClick: restoreGridDefault,
3699
+ filterClick: onFilterClick,
3700
+ columnsClick: onColumnsClick,
3701
+ hideSearchBar,
3702
+ secondaryActionButtons: secondaryActionButtons || [],
3703
+ onPrimaryActionClick,
3704
+ primaryActionDisabled,
3705
+ primaryActionLabel,
3706
+ primaryActionIcon,
3707
+ hiddenActionButtons: hiddenActionButtons || [],
3708
+ hiddenLabels: hiddenLabels || [],
3709
+ background: headerBackgroundColor,
3710
+ onSearchKeyDown
3711
+ }),
3712
+ useNewHeader && ((kpiValues === null || kpiValues === void 0 ? void 0 : kpiValues.length) > 0 || (filterChips === null || filterChips === void 0 ? void 0 : filterChips.length) > 0 || (filters === null || filters === void 0 ? void 0 : filters.length) > 0 || (viewChips === null || viewChips === void 0 ? void 0 : viewChips.length) > 0 || (additionalFilterChips === null || additionalFilterChips === void 0 ? void 0 : additionalFilterChips.length) > 0) && /* @__PURE__ */ jsxs("div", {
3713
+ style: {
3714
+ display: "flex",
3715
+ flexDirection: "row",
3716
+ height: 40
3717
+ },
3718
+ children: [/* @__PURE__ */ jsx(Grow, {
3719
+ in: bulkActions && numSelectedRows > 0,
3720
+ unmountOnExit: true,
3721
+ children: /* @__PURE__ */ jsx(BulkActionsGridButton, {
3722
+ bulkActions,
3723
+ numSelectedRows,
3724
+ triggerAction: handleTriggerAction,
3725
+ domain
3726
+ })
3727
+ }), /* @__PURE__ */ jsx(ChipSection, {
3728
+ filterChips,
3729
+ viewChips,
3730
+ additionalFilterChips,
3731
+ kpiValues,
3732
+ handleDelete: handleChipDelete,
3733
+ setAdditionalFilterChips,
3734
+ setViewChips,
3735
+ setFilter
3736
+ })]
3737
+ }),
3738
+ useNewHeader && gApi && gcApi && /* @__PURE__ */ jsx(GridViewsSideSheet, {
3739
+ open: viewsOpen,
3740
+ onClose: closeViews,
3741
+ openSaveView,
3742
+ setViewChips,
3743
+ setFilter: setView,
3744
+ rowData: views,
3745
+ setSelectedView
3746
+ }),
3747
+ !hideHeader && !useNewHeader && /* @__PURE__ */ jsx(GridActionBar, {
3748
+ title,
3749
+ showFilter: setSideBarInvisible,
3750
+ selected: isVisible,
3751
+ onChange: onSearch || handleFilterChange,
3752
+ showGroup: showGrouping,
3753
+ value,
3754
+ handleChange,
3755
+ fitClick: fitToSpace,
3756
+ expandClick: autoSizeAllWithoutHeader,
3757
+ exportClick: exportGrid,
3758
+ clearClick: restoreGridDefault,
3759
+ saveGridConfig,
3760
+ deleteGridConfig,
3761
+ clearGridConfig,
3762
+ hideFitGrid,
3763
+ hideExpandGrid,
3764
+ hideExportGrid,
3765
+ hideRemoveFilters,
3766
+ hideFilterTab,
3767
+ hideGroupTab,
3768
+ hideColumnTab,
3769
+ hideSearchBar,
3770
+ children: primaryActionButton && /* @__PURE__ */ jsx("div", {
3771
+ className: classes.pab,
3772
+ children: primaryActionButton
3773
+ })
3774
+ }),
3775
+ loading && /* @__PURE__ */ jsx(LinearProgress, {}),
3776
+ /* @__PURE__ */ jsxs("div", {
3777
+ style: { display: "flex" },
3778
+ children: [
3779
+ /* @__PURE__ */ jsx("div", {
3780
+ style: { width: "100%" },
3781
+ children: /* @__PURE__ */ jsx(AgTable, {
3782
+ ...agGridOptions,
3783
+ columnDefs,
3784
+ dynamicSizing: !disableDynamicSizing,
3785
+ rowData: data || emptyArr,
3786
+ onGridReady: gridReady || onGridReady,
3787
+ onRowSelected: handleRowSelected,
3788
+ suppressCellSelection: true,
3789
+ suppressRowClickSelection: false,
3790
+ defaultColDef: defaultColActionsDef,
3791
+ enableRangeSelection: true,
3792
+ enableColResize: true,
3793
+ sideBar: sidebarIsVisible,
3794
+ pivotMode: false,
3795
+ pivotPanelShow: "never",
3796
+ groupSelectsChildren: true,
3797
+ animateRows: false,
3798
+ pagination: !disablePagination,
3799
+ showOpenedGroup: true,
3800
+ paginateChildRows: true,
3801
+ paginationPageSize,
3802
+ modules: rowModelType === "serverSide" ? [ServerSideRowModelModule] : [],
3803
+ onFirstDataRendered: firstDataRendered,
3804
+ rowModelType,
3805
+ rowClassRules: { "first-row-in-group": (params) => params.node.rowIndex !== 0 && params.node.firstChild },
3806
+ height,
3807
+ api: gApi,
3808
+ rowSelection: !disableRowSelection && (bulkActions ? "multiple" : "single"),
3809
+ hideHeader,
3810
+ ...otherGridProps
3811
+ })
3812
+ }),
3813
+ showGroupOptions && /* @__PURE__ */ jsx("div", {
3814
+ className: classes.groupSideBar,
3815
+ children: /* @__PURE__ */ jsx(GridGroupingSidebar, {
3816
+ groupItem: (item) => groupGridItems(item),
3817
+ closeClick: () => groupGridItems(""),
3818
+ expandClick: expandGroupedGrid,
3819
+ collapseClick: collapseGroupedGrid,
3820
+ groupingData,
3821
+ height
3822
+ })
3823
+ }),
3824
+ !(hiddenActionButtons === null || hiddenActionButtons === void 0 ? void 0 : hiddenActionButtons.includes("saveView")) && /* @__PURE__ */ jsx(SaveViewFormDialog, {
3825
+ open: saveViewOpen,
3826
+ handleClose: closeSaveView,
3827
+ application: applicationName,
3828
+ tenant: tenantName,
3829
+ user,
3830
+ columnDefsValues,
3831
+ refetchViews: refetch,
3832
+ gApi,
3833
+ gcApi,
3834
+ setSelectedView: setView,
3835
+ gridId,
3836
+ domain,
3837
+ apiCatalogId
3838
+ })
3839
+ ]
3840
+ })
3841
+ ] });
3842
+ };
3843
+ AmbientGridTemplate.propTypes = {
3844
+ columnDefs: PropTypes.array,
3845
+ handleRowSelected: PropTypes.func,
3846
+ data: PropTypes.array,
3847
+ title: PropTypes.string,
3848
+ groupingData: PropTypes.array,
3849
+ frameworkComponents: PropTypes.object,
3850
+ loading: PropTypes.bool,
3851
+ primaryActionButton: PropTypes.object,
3852
+ rowNodeIdName: PropTypes.string,
3853
+ defaultAutoSize: PropTypes.bool,
3854
+ scrollToTopOnStateChange: PropTypes.bool,
3855
+ disableDynamicSizing: PropTypes.bool,
3856
+ filters: PropTypes.arrayOf(PropTypes.shape({
3857
+ label: PropTypes.string.isRequired,
3858
+ value: PropTypes.string.isRequired
3859
+ })),
3860
+ views: PropTypes.arrayOf(PropTypes.shape({ label: PropTypes.string.isRequired })),
3861
+ additionalFilters: PropTypes.arrayOf(PropTypes.shape({ label: PropTypes.string.isRequired })),
3862
+ kpis: PropTypes.arrayOf(PropTypes.shape({
3863
+ label: PropTypes.string.isRequired,
3864
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
3865
+ })),
3866
+ useNewHeader: PropTypes.bool,
3867
+ insightsClick: PropTypes.func,
3868
+ hiddenActionButtons: PropTypes.arrayOf(PropTypes.oneOf([
3869
+ "saveView",
3870
+ "views",
3871
+ "insights",
3872
+ "importExport",
3873
+ "group",
3874
+ "filter",
3875
+ "columns",
3876
+ "fitGrid",
3877
+ "expandGrid",
3878
+ "clearFilters"
3879
+ ])),
3880
+ hiddenLabels: PropTypes.arrayOf(PropTypes.oneOf([
3881
+ "saveView",
3882
+ "views",
3883
+ "insights",
3884
+ "importExport",
3885
+ "group",
3886
+ "filter",
3887
+ "columns",
3888
+ "fitGrid",
3889
+ "expandGrid",
3890
+ "clearFilters"
3891
+ ])),
3892
+ onPrimaryActionClick: PropTypes.func,
3893
+ primaryActionLabel: PropTypes.string,
3894
+ primaryActionIcon: PropTypes.elementType,
3895
+ secondaryActionButtons: PropTypes.array,
3896
+ applicationName: PropTypes.string,
3897
+ entityName: PropTypes.string,
3898
+ tenantName: PropTypes.string,
3899
+ user: PropTypes.object,
3900
+ kpiValues: PropTypes.array
3901
+ };
3902
+
3903
+ //#endregion
3904
+ export { ActionContext, ActionDispatchContext, ActionLoadingDispatchContext, ActionsRenderer, AgTable, AgTableButtons, AmbientGridTemplate, AmbientTextField, AmbientToggleButton, AmbientTokenButton, DynamicContainerWithMenu, Ellipse, FilterOperators, FluentDialog, GridActionBar, GridGroupingHeader, GridGroupingSidebar, GridSidebarContainer, IconButtonWithTooltip, LicenseKey, SearchOperators, Token, clearGridState, deleteGridState, findTermByType, getCommonEntityName, getEllipseColor, getEntityAttributes, getFullyQualifiedName, getGridState, getPathObject, getPathParametersObj, getPrimaryKeyValues, getSanitizedName, getSuccessAction, isValueSelected, onFirstDataRendered, saveGridState, useActionState, useActionStore, useActions, useAgGridApi, useCatalogStore, useDynamicListCalculation, useExport, useGridClear, useGridFormat, useHandleAction, useInquiryStore, useQuickFilter };
3905
+ //# sourceMappingURL=AmbientGridTemplate-Dq2QYPF2.js.map