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