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