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