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

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