udp-react-enterprise-component-library 1.0.5-beta.1 → 1.0.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AmbientGridTemplate-CvXWVsCb.cjs +4205 -0
- package/dist/AmbientGridTemplate-CvXWVsCb.cjs.map +1 -0
- package/dist/AmbientGridTemplate-Dq2QYPF2.js +3905 -0
- package/dist/AmbientGridTemplate-Dq2QYPF2.js.map +1 -0
- package/dist/EnvironmentRibbon-CgKsTmQ7.cjs +1558 -0
- package/dist/EnvironmentRibbon-CgKsTmQ7.cjs.map +1 -0
- package/dist/EnvironmentRibbon-DBJftQWQ.js +1108 -0
- package/dist/EnvironmentRibbon-DBJftQWQ.js.map +1 -0
- package/dist/MenuPage-DNywMmn2.cjs +562 -0
- package/dist/MenuPage-DNywMmn2.cjs.map +1 -0
- package/dist/MenuPage-MyE8iJHD.js +561 -0
- package/dist/MenuPage-MyE8iJHD.js.map +1 -0
- package/dist/MyExportsPage-B-xwnIEc.js +724 -0
- package/dist/MyExportsPage-B-xwnIEc.js.map +1 -0
- package/dist/MyExportsPage-C-NEjmfQ.cjs +8 -0
- package/dist/MyExportsPage-CKwuN1wj.js +8 -0
- package/dist/MyExportsPage-CcO8Mf8y.cjs +778 -0
- package/dist/MyExportsPage-CcO8Mf8y.cjs.map +1 -0
- package/dist/PageContainer-DFKnbhBN.cjs +1858 -0
- package/dist/PageContainer-DFKnbhBN.cjs.map +1 -0
- package/dist/PageContainer-SljTiaZr.js +1756 -0
- package/dist/PageContainer-SljTiaZr.js.map +1 -0
- package/dist/PageNotFoundRoute-BR4QPROq.js +112 -0
- package/dist/PageNotFoundRoute-BR4QPROq.js.map +1 -0
- package/dist/PageNotFoundRoute-B_3_Yw5c.js +3 -0
- package/dist/PageNotFoundRoute-Cu88CEUm.cjs +124 -0
- package/dist/PageNotFoundRoute-Cu88CEUm.cjs.map +1 -0
- package/dist/PageNotFoundRoute-DNBUulJh.cjs +3 -0
- package/dist/PasswordResetRedirect-BXP3ftKb.js +86 -0
- package/dist/PasswordResetRedirect-BXP3ftKb.js.map +1 -0
- package/dist/PasswordResetRedirect-CX9MEbof.js +3 -0
- package/dist/PasswordResetRedirect-CYJBeZIA.cjs +122 -0
- package/dist/PasswordResetRedirect-CYJBeZIA.cjs.map +1 -0
- package/dist/PasswordResetRedirect-DbPv1Au9.cjs +3 -0
- package/dist/SearchUtilities-BYR03EFr.cjs +232 -0
- package/dist/SearchUtilities-BYR03EFr.cjs.map +1 -0
- package/dist/SearchUtilities-Bl4U_j-0.js +202 -0
- package/dist/SearchUtilities-Bl4U_j-0.js.map +1 -0
- package/dist/SideSheet-DKR15EH5.js +485 -0
- package/dist/SideSheet-DKR15EH5.js.map +1 -0
- package/dist/SideSheet-ERkgeXFG.cjs +575 -0
- package/dist/SideSheet-ERkgeXFG.cjs.map +1 -0
- package/dist/UdpPublicForm-1vK6Ug4-.cjs +5 -0
- package/dist/UdpPublicForm-BNe1yTjb.js +41 -0
- package/dist/UdpPublicForm-BNe1yTjb.js.map +1 -0
- package/dist/UdpPublicForm-C8eVm1sb.js +4 -0
- package/dist/UdpPublicForm-fWsuCBoR.cjs +52 -0
- package/dist/UdpPublicForm-fWsuCBoR.cjs.map +1 -0
- package/dist/UtilitySideBar-CoLVUjcV.cjs +2647 -0
- package/dist/UtilitySideBar-CoLVUjcV.cjs.map +1 -0
- package/dist/UtilitySideBar-Dz_17lBo.js +2277 -0
- package/dist/UtilitySideBar-Dz_17lBo.js.map +1 -0
- package/dist/VirtualBrowser-79L67ptM.js +572 -0
- package/dist/VirtualBrowser-79L67ptM.js.map +1 -0
- package/dist/VirtualBrowser-CBJQrZar.cjs +573 -0
- package/dist/VirtualBrowser-CBJQrZar.cjs.map +1 -0
- package/dist/WorkflowContainer-0_Aj2YEQ.js +9 -0
- package/dist/WorkflowContainer-C06Cr059.cjs +9 -0
- package/dist/WorkflowContainer-D8L8yLtX.cjs +1774 -0
- package/dist/WorkflowContainer-D8L8yLtX.cjs.map +1 -0
- package/dist/WorkflowContainer-mXeP_hbS.js +1708 -0
- package/dist/WorkflowContainer-mXeP_hbS.js.map +1 -0
- package/dist/apiHelpers-Dyq5plHt.cjs +377 -0
- package/dist/apiHelpers-Dyq5plHt.cjs.map +1 -0
- package/dist/apiHelpers-ntQQ4i7A.js +257 -0
- package/dist/apiHelpers-ntQQ4i7A.js.map +1 -0
- package/dist/chunk-Cn1u12Og.js +34 -0
- package/dist/chunk-DoeelZqw.cjs +51 -0
- package/dist/index.cjs +50843 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1727 -0
- package/dist/index.d.ts +1723 -439
- package/dist/index.js +50113 -0
- package/dist/index.js.map +1 -0
- package/dist/propertyTypeEnums-BcUuGbb0.js +94 -0
- package/dist/propertyTypeEnums-BcUuGbb0.js.map +1 -0
- package/dist/propertyTypeEnums-NvvbX8dM.cjs +112 -0
- package/dist/propertyTypeEnums-NvvbX8dM.cjs.map +1 -0
- package/dist-tsdown/AmbientGridTemplate-C4cO-UBE.js +3851 -0
- package/dist-tsdown/AmbientGridTemplate-C4cO-UBE.js.map +1 -0
- package/dist-tsdown/AmbientGridTemplate-RvpH04W2.cjs +4151 -0
- package/dist-tsdown/AmbientGridTemplate-RvpH04W2.cjs.map +1 -0
- package/dist-tsdown/EnvironmentRibbon-C5I-zJ7u.cjs +1546 -0
- package/dist-tsdown/EnvironmentRibbon-C5I-zJ7u.cjs.map +1 -0
- package/dist-tsdown/EnvironmentRibbon-W5AjvnLN.js +1096 -0
- package/dist-tsdown/EnvironmentRibbon-W5AjvnLN.js.map +1 -0
- package/dist-tsdown/MenuPage-DsZUwqyz.js +546 -0
- package/dist-tsdown/MenuPage-DsZUwqyz.js.map +1 -0
- package/dist-tsdown/MenuPage-Zn5ipVRK.cjs +547 -0
- package/dist-tsdown/MenuPage-Zn5ipVRK.cjs.map +1 -0
- package/dist-tsdown/MyExportsPage-B2wf-kFZ.cjs +763 -0
- package/dist-tsdown/MyExportsPage-B2wf-kFZ.cjs.map +1 -0
- package/dist-tsdown/MyExportsPage-BuzFo_X_.cjs +8 -0
- package/dist-tsdown/MyExportsPage-CuJoA0n6.js +8 -0
- package/dist-tsdown/MyExportsPage-DWbSEbU5.js +709 -0
- package/dist-tsdown/MyExportsPage-DWbSEbU5.js.map +1 -0
- package/dist-tsdown/PageContainer-BG6v3pM7.cjs +1841 -0
- package/dist-tsdown/PageContainer-BG6v3pM7.cjs.map +1 -0
- package/dist-tsdown/PageContainer-CWhjU1zS.js +1739 -0
- package/dist-tsdown/PageContainer-CWhjU1zS.js.map +1 -0
- package/dist-tsdown/PageNotFoundRoute-CciC9cPY.cjs +124 -0
- package/dist-tsdown/PageNotFoundRoute-CciC9cPY.cjs.map +1 -0
- package/dist-tsdown/PageNotFoundRoute-DsRSLpI6.js +3 -0
- package/dist-tsdown/PageNotFoundRoute-Z5qYmErL.js +112 -0
- package/dist-tsdown/PageNotFoundRoute-Z5qYmErL.js.map +1 -0
- package/dist-tsdown/PageNotFoundRoute-aJr2o81C.cjs +3 -0
- package/dist-tsdown/PasswordResetRedirect-1cRmBJvr.cjs +3 -0
- package/dist-tsdown/PasswordResetRedirect-BMHXzpvb.js +3 -0
- package/dist-tsdown/PasswordResetRedirect-D6RVOdwy.js +82 -0
- package/dist-tsdown/PasswordResetRedirect-D6RVOdwy.js.map +1 -0
- package/dist-tsdown/PasswordResetRedirect-DRhK3lVL.cjs +118 -0
- package/dist-tsdown/PasswordResetRedirect-DRhK3lVL.cjs.map +1 -0
- package/dist-tsdown/SearchUtilities-URbeAh75.js +186 -0
- package/dist-tsdown/SearchUtilities-URbeAh75.js.map +1 -0
- package/dist-tsdown/SearchUtilities-kF1roS4F.cjs +216 -0
- package/dist-tsdown/SearchUtilities-kF1roS4F.cjs.map +1 -0
- package/dist-tsdown/SideSheet-DcEfnfH_.js +362 -0
- package/dist-tsdown/SideSheet-DcEfnfH_.js.map +1 -0
- package/dist-tsdown/SideSheet-XOQ0yjmY.cjs +410 -0
- package/dist-tsdown/SideSheet-XOQ0yjmY.cjs.map +1 -0
- package/dist-tsdown/UdpPublicForm-BZff9-Hy.js +4 -0
- package/dist-tsdown/UdpPublicForm-CaWFfHLQ.cjs +5 -0
- package/dist-tsdown/UdpPublicForm-DFEJakHu.cjs +52 -0
- package/dist-tsdown/UdpPublicForm-DFEJakHu.cjs.map +1 -0
- package/dist-tsdown/UdpPublicForm-EOSy6X_O.js +41 -0
- package/dist-tsdown/UdpPublicForm-EOSy6X_O.js.map +1 -0
- package/dist-tsdown/UtilitySideBar-C-5lGIvy.cjs +2503 -0
- package/dist-tsdown/UtilitySideBar-C-5lGIvy.cjs.map +1 -0
- package/dist-tsdown/UtilitySideBar-D4Gdx13d.js +2138 -0
- package/dist-tsdown/UtilitySideBar-D4Gdx13d.js.map +1 -0
- package/dist-tsdown/VirtualBrowser-DmgmfhWg.cjs +568 -0
- package/dist-tsdown/VirtualBrowser-DmgmfhWg.cjs.map +1 -0
- package/dist-tsdown/VirtualBrowser-OXhftZwa.js +567 -0
- package/dist-tsdown/VirtualBrowser-OXhftZwa.js.map +1 -0
- package/dist-tsdown/WorkflowContainer-BdakMxJP.js +9 -0
- package/dist-tsdown/WorkflowContainer-Bm1FHgJq.cjs +1718 -0
- package/dist-tsdown/WorkflowContainer-Bm1FHgJq.cjs.map +1 -0
- package/dist-tsdown/WorkflowContainer-C2W0pr5f.js +1652 -0
- package/dist-tsdown/WorkflowContainer-C2W0pr5f.js.map +1 -0
- package/dist-tsdown/WorkflowContainer-C9hsSvOg.cjs +9 -0
- package/dist-tsdown/apiHelpers-DtpC3VqG.js +253 -0
- package/dist-tsdown/apiHelpers-DtpC3VqG.js.map +1 -0
- package/dist-tsdown/apiHelpers-TkqtXraB.cjs +373 -0
- package/dist-tsdown/apiHelpers-TkqtXraB.cjs.map +1 -0
- package/dist-tsdown/assets/images/phone.png +0 -0
- package/dist-tsdown/assets/paymentIcons/american-logo.svg +71 -0
- package/dist-tsdown/assets/paymentIcons/amex.svg +101 -0
- package/dist-tsdown/assets/paymentIcons/diners.svg +1 -0
- package/dist-tsdown/assets/paymentIcons/discover-logo.svg +1 -0
- package/dist-tsdown/assets/paymentIcons/discover.svg +1 -0
- package/dist-tsdown/assets/paymentIcons/echeck-logo.svg +6 -0
- package/dist-tsdown/assets/paymentIcons/jcb.svg +64 -0
- package/dist-tsdown/assets/paymentIcons/mastercard-logo.svg +11 -0
- package/dist-tsdown/assets/paymentIcons/mastercard.svg +1 -0
- package/dist-tsdown/assets/paymentIcons/unionpay.svg +9 -0
- package/dist-tsdown/assets/paymentIcons/visa-logo.svg +76 -0
- package/dist-tsdown/assets/paymentIcons/visa.svg +60 -0
- package/dist-tsdown/assets/unityIcons/NoEntityOpened.svg +7 -0
- package/dist-tsdown/assets/unityIcons/Sewer.svg +1 -0
- package/dist-tsdown/assets/unityIcons/TruckIcon.svg +8 -0
- package/dist-tsdown/assets/unityIcons/WaterDrop.svg +43 -0
- package/dist-tsdown/chunk-CHLpw0oG.js +25 -0
- package/dist-tsdown/chunk-CsX-DzYB.cjs +42 -0
- package/dist-tsdown/componentSystems/pageRenderer/style/style.css +5 -0
- package/dist-tsdown/index.cjs +49909 -0
- package/dist-tsdown/index.cjs.map +1 -0
- package/dist-tsdown/index.d.cts +1727 -0
- package/dist-tsdown/index.d.ts +1723 -0
- package/dist-tsdown/index.js +49180 -0
- package/dist-tsdown/index.js.map +1 -0
- package/dist-tsdown/map-library/Map/Map.css +11 -0
- package/dist-tsdown/maps/openLayerMaps/Map/Map.css +11 -0
- package/dist-tsdown/propertyTypeEnums-CaDtepcE.js +144 -0
- package/dist-tsdown/propertyTypeEnums-CaDtepcE.js.map +1 -0
- package/dist-tsdown/propertyTypeEnums-Cn4wJJc5.cjs +174 -0
- package/dist-tsdown/propertyTypeEnums-Cn4wJJc5.cjs.map +1 -0
- package/dist-tsdown/stories/assets/code-brackets.svg +1 -0
- package/dist-tsdown/stories/assets/colors.svg +1 -0
- package/dist-tsdown/stories/assets/comments.svg +1 -0
- package/dist-tsdown/stories/assets/direction.svg +1 -0
- package/dist-tsdown/stories/assets/flow.svg +1 -0
- package/dist-tsdown/stories/assets/plugin.svg +1 -0
- package/dist-tsdown/stories/assets/repo.svg +1 -0
- package/dist-tsdown/stories/assets/stackalt.svg +1 -0
- package/dist-tsdown/stories/button.css +30 -0
- package/dist-tsdown/stories/header.css +26 -0
- package/dist-tsdown/stories/page.css +69 -0
- package/dist-tsdown/style.css +49 -0
- package/dist-tsdown/styles.module.css +9 -0
- package/dist-tsdown/utilities/aggrid/ag-grid-styles.scss +46 -0
- package/package.json +20 -10
- package/dist/AGLicense.d.ts +0 -1
- package/dist/MenuPage-Bkxf-uer.js +0 -556
- package/dist/UI/AlertContainer.d.ts +0 -1
- package/dist/UI/Box.d.ts +0 -1
- package/dist/UI/Grid.d.ts +0 -1
- package/dist/UI/SuccessAction.d.ts +0 -1
- package/dist/UI/accordion/Accordion.d.ts +0 -1
- package/dist/UI/charts/InsightRenderer.d.ts +0 -19
- package/dist/UI/charts/UdpBarChart.d.ts +0 -6
- package/dist/UI/charts/UdpDistributionChart.d.ts +0 -5
- package/dist/UI/charts/UdpDonutChart.d.ts +0 -7
- package/dist/UI/charts/UdpLineChart.d.ts +0 -6
- package/dist/UI/charts/index.d.ts +0 -6
- package/dist/UI/charts/types.d.ts +0 -62
- package/dist/UI/components/dataDisplay/Ellipse.d.ts +0 -8
- package/dist/UI/components/dataDisplay/EmailDisplay.d.ts +0 -1
- package/dist/UI/components/dataDisplay/SmsDisplay.d.ts +0 -1
- package/dist/UI/components/dataDisplay/Sticky.d.ts +0 -8
- package/dist/UI/components/dataDisplay/Token.d.ts +0 -13
- package/dist/UI/components/feedback/Adornment.d.ts +0 -6
- package/dist/UI/containers/DynamicContainerWithMenu.d.ts +0 -1
- package/dist/UI/dataDisplay/AmbientList.d.ts +0 -15
- package/dist/UI/dataDisplay/AvatarAlphabet.d.ts +0 -1
- package/dist/UI/dataDisplay/ChipAlphabet.d.ts +0 -6
- package/dist/UI/dataDisplay/CompactDataList.d.ts +0 -1
- package/dist/UI/dataDisplay/CompactDataListItem.d.ts +0 -1
- package/dist/UI/dataDisplay/EmptyStateDisplay.d.ts +0 -22
- package/dist/UI/dataDisplay/FluentActivity/FluentActivity.d.ts +0 -1
- package/dist/UI/dataDisplay/FluentActivity/FluentActivityRow.d.ts +0 -1
- package/dist/UI/dataDisplay/FluentDataTable/FluentBody/index.d.ts +0 -8
- package/dist/UI/dataDisplay/FluentDataTable/FluentCell/index.d.ts +0 -62
- package/dist/UI/dataDisplay/FluentDataTable/FluentDataTable.d.ts +0 -11
- package/dist/UI/dataDisplay/FluentDataTable/FluentHead/index.d.ts +0 -9
- package/dist/UI/dataDisplay/FluentDataTable/FluentRow/index.d.ts +0 -8
- package/dist/UI/dataDisplay/FluentListElement.d.ts +0 -8
- package/dist/UI/dataDisplay/FluentListItem.d.ts +0 -1
- package/dist/UI/dataDisplay/GraphCard.d.ts +0 -10
- package/dist/UI/dataDisplay/HeaderExpander.d.ts +0 -11
- package/dist/UI/dataDisplay/HintPanel.d.ts +0 -10
- package/dist/UI/dataDisplay/StatusChip.d.ts +0 -9
- package/dist/UI/dataDisplay/StatusFlags.d.ts +0 -8
- package/dist/UI/dataDisplay/SummaryBlock.d.ts +0 -16
- package/dist/UI/dataDisplay/TimelineCalendar.d.ts +0 -1
- package/dist/UI/dataDisplay/address/AddressListItem.d.ts +0 -3
- package/dist/UI/dataDisplay/cardList/CardList.d.ts +0 -49
- package/dist/UI/dataDisplay/cardList/enum.d.ts +0 -5
- package/dist/UI/dataDisplay/directory/Directory.d.ts +0 -9
- package/dist/UI/dataDisplay/directory/DirectoryListItem.d.ts +0 -4
- package/dist/UI/dataDisplay/entityHeader/EntityHeader.d.ts +0 -12
- package/dist/UI/dataDisplay/entityHeader/functions/groupSectionData.d.ts +0 -2
- package/dist/UI/dataDisplay/entityHeader/functions/useDivideArrayIntoGroups.d.ts +0 -2
- package/dist/UI/dataDisplay/entityHeader/functions/useElementWidth.d.ts +0 -14
- package/dist/UI/dataDisplay/entityHeader/ui/AlertPill.d.ts +0 -22
- package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderContainer.d.ts +0 -20
- package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderFlags.d.ts +0 -4
- package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderList.d.ts +0 -1
- package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderListItem.d.ts +0 -1
- package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderSection.d.ts +0 -19
- package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderStatList.d.ts +0 -1
- package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderStatListItem.d.ts +0 -1
- package/dist/UI/dataDisplay/entityHeader/ui/EntityHeaderStats.d.ts +0 -3
- package/dist/UI/dataDisplay/map/ColorKey.d.ts +0 -10
- package/dist/UI/dataDisplay/map/FluentIconKey.d.ts +0 -2
- package/dist/UI/dataDisplay/map/IconKey.d.ts +0 -10
- package/dist/UI/dataDisplay/notes/Note.d.ts +0 -7
- package/dist/UI/dataDisplay/notes/Notes.d.ts +0 -6
- package/dist/UI/dataDisplay/ticketCard/NotificationElement.d.ts +0 -8
- package/dist/UI/dataDisplay/ticketCard/StatusLineItem.d.ts +0 -16
- package/dist/UI/dataDisplay/ticketCard/TicketCard.d.ts +0 -22
- package/dist/UI/dataDisplay/typography/FormHeaders.d.ts +0 -2
- package/dist/UI/dataDisplay/typography/SideSheetHeader.d.ts +0 -4
- package/dist/UI/dataDisplay/typography/SidebarHeader.d.ts +0 -1
- package/dist/UI/dataDisplay/typography/StandardTitle.d.ts +0 -1
- package/dist/UI/dataDisplay/typography/StylizedTitle.d.ts +0 -16
- package/dist/UI/dataDisplay/typography/Typography.d.ts +0 -1
- package/dist/UI/dataDisplay/visualization/AmbientVisualizer.d.ts +0 -63
- package/dist/UI/dataDisplay/visualization/GaugeGraph.d.ts +0 -1
- package/dist/UI/dataDisplay/visualization/RatioVisulization.d.ts +0 -5
- package/dist/UI/dataDisplay/visualization/amCharts/AmChart.d.ts +0 -1
- package/dist/UI/dataDisplay/visualization/amCharts/AmSankeyChart.d.ts +0 -2
- package/dist/UI/demos/InputsExample.d.ts +0 -2
- package/dist/UI/feedback/AmbientAlert.d.ts +0 -12
- package/dist/UI/feedback/AmbientToast.d.ts +0 -1
- package/dist/UI/feedback/FluentDialog.d.ts +0 -1
- package/dist/UI/feedback/NodeLoader.d.ts +0 -4
- package/dist/UI/feedback/PageLoading.d.ts +0 -1
- package/dist/UI/fileViewer/FileViewer.d.ts +0 -1
- package/dist/UI/fileViewer/imageSlider/Image.d.ts +0 -1
- package/dist/UI/fileViewer/imageSlider/ImageFooter.d.ts +0 -1
- package/dist/UI/fileViewer/imageSlider/ImageSlider.d.ts +0 -1
- package/dist/UI/fileViewer/imageSlider/ImageViewerSideSheet.d.ts +0 -1
- package/dist/UI/fileViewer/pdfViewer/ControlPanel.d.ts +0 -2
- package/dist/UI/fileViewer/pdfViewer/PDFViewer.d.ts +0 -11
- package/dist/UI/fileViewer/utils/fileTypes.d.ts +0 -1
- package/dist/UI/fileViewer/utils/fileUtils.d.ts +0 -2
- package/dist/UI/floorplans/CoreLayoutFloorplan.d.ts +0 -51
- package/dist/UI/forms/CrudForm.d.ts +0 -11
- package/dist/UI/forms/LoginForm.d.ts +0 -1
- package/dist/UI/forms/PaymentReversalForm.d.ts +0 -5
- package/dist/UI/forms/UdpCrudFormFields.d.ts +0 -6
- package/dist/UI/forms/VirtualForm.d.ts +0 -8
- package/dist/UI/iframe/Iframe.d.ts +0 -1
- package/dist/UI/inputs/buttons/AdvanceButton.d.ts +0 -4
- package/dist/UI/inputs/buttons/AmbientCardButton.d.ts +0 -9
- package/dist/UI/inputs/buttons/AmbientChipButton.d.ts +0 -1
- package/dist/UI/inputs/buttons/AmbientPopoverMenuItem.d.ts +0 -5
- package/dist/UI/inputs/buttons/AmbientToggleButton.d.ts +0 -15
- package/dist/UI/inputs/buttons/AmbientToggleButtonGroup.d.ts +0 -1
- package/dist/UI/inputs/buttons/AmbientToggleButtonGroupDefault.d.ts +0 -44
- package/dist/UI/inputs/buttons/AmbientTokenButton.d.ts +0 -1
- package/dist/UI/inputs/buttons/FUISquareIconButton.d.ts +0 -5
- package/dist/UI/inputs/buttons/FluentButton.d.ts +0 -1
- package/dist/UI/inputs/buttons/FluentCompoundButton.d.ts +0 -1
- package/dist/UI/inputs/buttons/FluentIconButton.d.ts +0 -1
- package/dist/UI/inputs/buttons/FluentMenuListButton.d.ts +0 -6
- package/dist/UI/inputs/buttons/FluentMenuListItem.d.ts +0 -6
- package/dist/UI/inputs/buttons/FluentUploadButton.d.ts +0 -1
- package/dist/UI/inputs/buttons/FluentUploadIconButton.d.ts +0 -1
- package/dist/UI/inputs/buttons/IconButtonWithToolTip.d.ts +0 -11
- package/dist/UI/inputs/buttons/PrimaryActionButton.d.ts +0 -6
- package/dist/UI/inputs/buttons/ToolBarButton.d.ts +0 -11
- package/dist/UI/inputs/calendar/AmbientDateRangeSelector.d.ts +0 -1
- package/dist/UI/inputs/calendar/AmbientSingleDateSelector.d.ts +0 -1
- package/dist/UI/inputs/checkbox/FluentCheckbox.d.ts +0 -1
- package/dist/UI/inputs/datetimes/DateField.d.ts +0 -1
- package/dist/UI/inputs/datetimes/DateTimeField.d.ts +0 -1
- package/dist/UI/inputs/datetimes/TimeField.d.ts +0 -1
- package/dist/UI/inputs/fieldArrayCard/AutocompleteFinalField.d.ts +0 -2
- package/dist/UI/inputs/fieldArrayCard/DateRangeField.d.ts +0 -2
- package/dist/UI/inputs/fieldArrayCard/FieldArrayCard.d.ts +0 -1
- package/dist/UI/inputs/fieldArrayCard/SearchSideSheet.d.ts +0 -2
- package/dist/UI/inputs/fieldArrayCard/fieldArrayCardEnum.d.ts +0 -10
- package/dist/UI/inputs/link/BreadCrumbMenu.d.ts +0 -1
- package/dist/UI/inputs/link/FluentLink.d.ts +0 -1
- package/dist/UI/inputs/menus/AmbientStepper/AmbientStepContent.d.ts +0 -9
- package/dist/UI/inputs/menus/AmbientStepper/AmbientStepper.d.ts +0 -5
- package/dist/UI/inputs/menus/AmbientStepper/StepLabel.d.ts +0 -49
- package/dist/UI/inputs/menus/FluentScrollLoadAutocompleteMenu.d.ts +0 -44
- package/dist/UI/inputs/menus/FluentSelectDirectoryMenu.d.ts +0 -6
- package/dist/UI/inputs/menus/FluentSelectGroupMenu.d.ts +0 -7
- package/dist/UI/inputs/menus/FluentSelectMenu-old.d.ts +0 -1
- package/dist/UI/inputs/menus/FluentSelectMenu.d.ts +0 -9
- package/dist/UI/inputs/menus/FluentSimpleSelect.d.ts +0 -1
- package/dist/UI/inputs/pickers/FluentColorPicker.d.ts +0 -1
- package/dist/UI/inputs/pickers/FluentDatePicker.d.ts +0 -6
- package/dist/UI/inputs/pickers/FluentDateTimePicker.d.ts +0 -6
- package/dist/UI/inputs/pickers/FluentTimePicker.d.ts +0 -7
- package/dist/UI/inputs/pickers/UdpDateSelector.d.ts +0 -10
- package/dist/UI/inputs/pickers/UdpTimeSelector.d.ts +0 -8
- package/dist/UI/inputs/radio/FluentRadio.d.ts +0 -1
- package/dist/UI/inputs/radio/FluentRadioGroup.d.ts +0 -1
- package/dist/UI/inputs/richEditors/CkRichEditor.d.ts +0 -1
- package/dist/UI/inputs/sliders/FluentInputSlider.d.ts +0 -2
- package/dist/UI/inputs/textField/AmbientAutoComplete.d.ts +0 -1
- package/dist/UI/inputs/textField/AmbientTextField.d.ts +0 -9
- package/dist/UI/inputs/textField/FluentSearchField.d.ts +0 -1
- package/dist/UI/inputs/textField/FluentTagField.d.ts +0 -2
- package/dist/UI/inputs/textField/FluentTextField.d.ts +0 -2
- package/dist/UI/inputs/textField/FluentTextFieldAutoComplete.d.ts +0 -1
- package/dist/UI/inputs/textField/KeyValueTextField.d.ts +0 -1
- package/dist/UI/inputs/toggle/FluentToggle.d.ts +0 -1
- package/dist/UI/loading/CircularProgress.d.ts +0 -1
- package/dist/UI/loading/LinearProgress.d.ts +0 -1
- package/dist/UI/loading/LoadingIndicator.d.ts +0 -4
- package/dist/UI/loading/LoadingOverlay.d.ts +0 -4
- package/dist/UI/mapLayout/MapLayout.d.ts +0 -1
- package/dist/UI/mapLayout/ui/ActionsRenderer.d.ts +0 -2
- package/dist/UI/mapLayout/ui/CheckboxGroup.d.ts +0 -1
- package/dist/UI/mapLayout/ui/CheckboxList.d.ts +0 -1
- package/dist/UI/mapLayout/ui/CompactCard.d.ts +0 -1
- package/dist/UI/mapLayout/ui/ListCard.d.ts +0 -9
- package/dist/UI/mapLayout/ui/ListView.d.ts +0 -2
- package/dist/UI/mapLayout/ui/MapLayoutToolbar.d.ts +0 -2
- package/dist/UI/mapLayout/ui/PopoverCard.d.ts +0 -1
- package/dist/UI/mapLayout/ui/PopoverOverlay.d.ts +0 -2
- package/dist/UI/mapLayout/ui/Statistic.d.ts +0 -1
- package/dist/UI/mapLayout/utilities/MapUtilities.d.ts +0 -12
- package/dist/UI/maps/UdpMap.d.ts +0 -66
- package/dist/UI/maps/UdpMapComponent.d.ts +0 -64
- package/dist/UI/maps/UdpMapToolbar.d.ts +0 -49
- package/dist/UI/navigation/FluentSideNav.d.ts +0 -1
- package/dist/UI/navigation/menus/AppMenu.d.ts +0 -6
- package/dist/UI/navigation/menus/AppMenuItem.d.ts +0 -24
- package/dist/UI/navigation/menus/AppMenuItemComponent.d.ts +0 -1
- package/dist/UI/navigation/menus/Expander.d.ts +0 -1
- package/dist/UI/navigation/menus/ExpanderItem.d.ts +0 -4
- package/dist/UI/navigation/menus/FluentMenuListItem.d.ts +0 -5
- package/dist/UI/navigation/tabs/UdpTabPanel.d.ts +0 -1
- package/dist/UI/navigation/tabs/UdpTabUtility.d.ts +0 -1
- package/dist/UI/navigation/tabs/UdpTabs.d.ts +0 -1
- package/dist/UI/navigation/tabs/defaultTabs/FluentSimpleTab.d.ts +0 -1
- package/dist/UI/navigation/tabs/defaultTabs/FluentSimpleTabs.d.ts +0 -1
- package/dist/UI/navigation/tabs/defaultTabs/FluentTabPanel.d.ts +0 -8
- package/dist/UI/navigation/tabs/defaultTabs/FluentTabPanels.d.ts +0 -45
- package/dist/UI/navigation/tabs/defaultTabs/FluentTabUtility.d.ts +0 -1
- package/dist/UI/property/PropertyFields.d.ts +0 -10
- package/dist/UI/property/widgets/AutoCompletePropertyWidget.d.ts +0 -7
- package/dist/UI/property/widgets/BooleanPropertyWidget.d.ts +0 -7
- package/dist/UI/property/widgets/DatePropertyWidget.d.ts +0 -7
- package/dist/UI/property/widgets/DateTimePropertyWidget.d.ts +0 -7
- package/dist/UI/property/widgets/FloatPropertyWidget.d.ts +0 -7
- package/dist/UI/property/widgets/IntegerPropertyWidget.d.ts +0 -7
- package/dist/UI/property/widgets/MultilineTextPropertyWidget.d.ts +0 -7
- package/dist/UI/property/widgets/NumericPropertyWidget.d.ts +0 -7
- package/dist/UI/property/widgets/SelectPropertyWidget.d.ts +0 -7
- package/dist/UI/property/widgets/TextPropertyWidget.d.ts +0 -8
- package/dist/UI/property/widgets/TimePropertyWidget.d.ts +0 -7
- package/dist/UI/property/widgets/index.d.ts +0 -25
- package/dist/UI/stepper/types.d.ts +0 -38
- package/dist/UI/stepper/udp-stepper.d.ts +0 -2
- package/dist/UI/support/SupportCaseForm.d.ts +0 -6
- package/dist/UI/support/SupportCaseSideSheet.d.ts +0 -9
- package/dist/UI/surfaces/NestedGrid/NestedGrid.d.ts +0 -18
- package/dist/UI/surfaces/NestedGrid/ui/ExpandRenderer.d.ts +0 -5
- package/dist/UI/surfaces/SideSheet.d.ts +0 -23
- package/dist/UI/surfaces/cards/AmbientCard.d.ts +0 -1
- package/dist/UI/surfaces/cards/AmbientCardTitle.d.ts +0 -12
- package/dist/UI/surfaces/cards/AmbientVisualizationCard.d.ts +0 -10
- package/dist/UI/surfaces/cards/BioCard.d.ts +0 -10
- package/dist/UI/surfaces/cards/ContentDisplayCard.d.ts +0 -13
- package/dist/UI/surfaces/cards/FUICard.d.ts +0 -4
- package/dist/UI/surfaces/cards/FUICardHeader.d.ts +0 -2
- package/dist/UI/surfaces/cards/FluentCard.d.ts +0 -8
- package/dist/UI/surfaces/cards/FluentCardActions.d.ts +0 -4
- package/dist/UI/surfaces/cards/FluentCardContent.d.ts +0 -4
- package/dist/UI/surfaces/cards/FluentCardHeader.d.ts +0 -4
- package/dist/UI/surfaces/cards/FluentCardText.d.ts +0 -1
- package/dist/UI/surfaces/cards/InfoCard.d.ts +0 -33
- package/dist/UI/surfaces/cards/QuickViewCard.d.ts +0 -8
- package/dist/UI/surfaces/cards/newsCard/NewsCard.d.ts +0 -20
- package/dist/UI/surfaces/cards/workOrderCard/WorkOrderCard.d.ts +0 -12
- package/dist/UI/surfaces/cards/workOrderCard/WorkOrderHeader.d.ts +0 -4
- package/dist/UI/templates/AmbientGridTemplate.d.ts +0 -34
- package/dist/UI/templates/DraggableSidebarTemplate.d.ts +0 -1
- package/dist/UI/templates/OpenPage.d.ts +0 -1
- package/dist/UI/templates/SapFlexibleTemplate.d.ts +0 -5
- package/dist/UI/templates/ToggleSection.d.ts +0 -11
- package/dist/UI/templates/UdpCalendar.d.ts +0 -1
- package/dist/UI/templates/UdpCalendarDayView.d.ts +0 -1
- package/dist/UI/templates/UdpCalendarMonthView.d.ts +0 -1
- package/dist/UI/templates/UdpCalendarWeekView.d.ts +0 -1
- package/dist/UI/templates/UdpCalendarYearView.d.ts +0 -1
- package/dist/UI/templates/UdpGridTemplate.d.ts +0 -1
- package/dist/UI/templates/newGrid/ApiMethodUdpGrid.d.ts +0 -1
- package/dist/UI/templates/newGrid/ClientSideUdpGrid.d.ts +0 -1
- package/dist/UI/templates/newGrid/ServerSideUdpGrid.d.ts +0 -1
- package/dist/UI/templates/ui/ExtenderToggle.d.ts +0 -8
- package/dist/UI/templates/ui/GridGroupingHeader.d.ts +0 -10
- package/dist/UI/templates/ui/GridGroupingSidebar.d.ts +0 -19
- package/dist/UI/templates/ui/GridSidebarContainer.d.ts +0 -7
- package/dist/UI/templates/ui/TokenGroupItem.d.ts +0 -12
- package/dist/UI/templates/ui/renderers/ActionsRenderer.d.ts +0 -1
- package/dist/UI/templates/ui/renderers/IconRenderer.d.ts +0 -1
- package/dist/UI/templates/ui/renderers/StatusCellRenderer.d.ts +0 -1
- package/dist/UI/timeline/ExtendActions.d.ts +0 -2
- package/dist/UI/timeline/ExtendedHeader.d.ts +0 -2
- package/dist/UI/timeline/TimeEntryStates.d.ts +0 -1
- package/dist/UI/timeline/TimeLine.d.ts +0 -6
- package/dist/UI/timeline/TimelineElement.d.ts +0 -2
- package/dist/UI/timeline/UdpTimeline.d.ts +0 -1
- package/dist/UI/timeline/UdpTimelineContent.d.ts +0 -1
- package/dist/UI/timeline/UdpTimelineDot.d.ts +0 -1
- package/dist/UI/timeline/UdpTimelineItem.d.ts +0 -1
- package/dist/UI/timeline/UdpTimelineItemConnector.d.ts +0 -1
- package/dist/UI/timeline/UdpTimelineItemSeparator.d.ts +0 -1
- package/dist/UI/timeline/fluentTimeline/FluentTimeline.d.ts +0 -1
- package/dist/UI/timeline/fluentTimeline/FluentTimelineContent.d.ts +0 -1
- package/dist/UI/timeline/fluentTimeline/FluentTimelineHeader.d.ts +0 -1
- package/dist/UI/utilityDisplay/AggregateChip.d.ts +0 -2
- package/dist/UI/utilityDisplay/BulkActionsGridButton.d.ts +0 -1
- package/dist/UI/utilityDisplay/ChipSection.d.ts +0 -14
- package/dist/UI/utilityDisplay/Divider.d.ts +0 -1
- package/dist/UI/utilityDisplay/FormControl.d.ts +0 -1
- package/dist/UI/utilityDisplay/FormControlLabel.d.ts +0 -1
- package/dist/UI/utilityDisplay/GridActionBar.d.ts +0 -13
- package/dist/UI/utilityDisplay/GridPrimaryBar.d.ts +0 -23
- package/dist/UI/utilityDisplay/GridViewsSideSheet.d.ts +0 -17
- package/dist/UI/utilityDisplay/IndicatorChip.d.ts +0 -1
- package/dist/UI/utilityDisplay/InputAdornment.d.ts +0 -1
- package/dist/UI/utilityDisplay/SaveViewFormDialog.d.ts +0 -16
- package/dist/UI/utilityDisplay/UtilityBar.d.ts +0 -1
- package/dist/UI/utilityDisplay/UtilitySideBar.d.ts +0 -1
- package/dist/UI/utilityDisplay/alerts/UdpAlert.d.ts +0 -2
- package/dist/UI/utilityDisplay/alerts/UdpAlertsContainer.d.ts +0 -1
- package/dist/UI/utilityDisplay/ui/UtilitySearch.d.ts +0 -5
- package/dist/UI/utilityDisplay/utilities/aggregateUtils.d.ts +0 -1
- package/dist/UI/utilityDisplay/utilityHeader/PrimaryActionHeader.d.ts +0 -44
- package/dist/UI/utilityDisplay/utilityHeader/UtilityTabHeader.d.ts +0 -6
- package/dist/UI/utilityDisplay/utilityHeader/ui/PAHAdditionalRightComponent.d.ts +0 -4
- package/dist/UI/utilityDisplay/utilityHeader/ui/PAHAdditionalTitleComponent.d.ts +0 -4
- package/dist/UI/utilityDisplay/utilityHeader/ui/PAHExport.d.ts +0 -5
- package/dist/UI/utilityDisplay/utilityHeader/ui/TeleporterSource.d.ts +0 -8
- package/dist/UI/utilityDisplay/utilityHeader/ui/teleporter.d.ts +0 -2
- package/dist/UI/widgets/FluentComponents/ChartSummaryToggle.d.ts +0 -2
- package/dist/UI/widgets/FluentComponents/FUIMenuItem.d.ts +0 -2
- package/dist/UI/widgets/FluentComponents/SimpleTable.d.ts +0 -2
- package/dist/UI/widgets/FluentComponents/atoms/FluentDisplayNumbers.d.ts +0 -2
- package/dist/UI/widgets/FluentComponents/atoms/FluentStatsSnippet.d.ts +0 -2
- package/dist/UI/widgets/FluentComponents/atoms/FluentTrendArrow.d.ts +0 -2
- package/dist/UI/widgets/FluentComponents/molecules/FluentPrimaryStatNumber.d.ts +0 -2
- package/dist/UI/widgets/FluentComponents/molecules/FluentSecondaryStatNumber.d.ts +0 -2
- package/dist/UI/widgets/FluentComponents/molecules/FluentStatNumber.d.ts +0 -2
- package/dist/UI/widgets/FluentComponents/molecules/FluentTimeline.d.ts +0 -2
- package/dist/UI/widgets/ItemsWidgetCard.d.ts +0 -8
- package/dist/UI/widgets/WidgetCard.d.ts +0 -5
- package/dist/UI/widgets/library/BarChartWidget.d.ts +0 -23
- package/dist/UI/widgets/library/BubbleWidget.d.ts +0 -23
- package/dist/UI/widgets/library/CircleGaugeWidget.d.ts +0 -12
- package/dist/UI/widgets/library/DateTrendWidget.d.ts +0 -18
- package/dist/UI/widgets/library/DensePlotWidget.d.ts +0 -23
- package/dist/UI/widgets/library/DonutChartWidget.d.ts +0 -18
- package/dist/UI/widgets/library/GaugeWidget.d.ts +0 -14
- package/dist/UI/widgets/library/LineAndSparklinesWidget.d.ts +0 -18
- package/dist/UI/widgets/library/LineGraphWidget.d.ts +0 -23
- package/dist/UI/widgets/library/ProgressBarWidget.d.ts +0 -18
- package/dist/UI/widgets/library/RecentlyLoadedNodesWidget.d.ts +0 -3
- package/dist/UI/widgets/library/RemindersWidget.d.ts +0 -3
- package/dist/UI/widgets/library/SparklineWidget.d.ts +0 -18
- package/dist/UI/widgets/library/SparsePlotWidget.d.ts +0 -23
- package/dist/UI/widgets/library/TableWidget.d.ts +0 -18
- package/dist/UI/widgets/utils/ConvertISODate.d.ts +0 -1
- package/dist/UI/widgets/utils/NumberVisualization.d.ts +0 -2
- package/dist/UI/widgets/utils/dateUtils.d.ts +0 -3
- package/dist/UI/widgets/utils/useId.d.ts +0 -4
- package/dist/VirtualBrowser-BvntTEs-.js +0 -593
- package/dist/actions/ActionForm.d.ts +0 -11
- package/dist/actions/ActionModal.d.ts +0 -1
- package/dist/actions/ActionPanelPlacement.d.ts +0 -8
- package/dist/actions/ActionSideSheet.d.ts +0 -12
- package/dist/actions/ActionSpeedDial.d.ts +0 -13
- package/dist/actions/ActionSplitScreen.d.ts +0 -14
- package/dist/actions/ActionWrapper.d.ts +0 -12
- package/dist/actions/PageActionWrapper.d.ts +0 -1
- package/dist/actions/actionSummary/ActionSummaryCard.d.ts +0 -13
- package/dist/actions/actionSummary/ActionSummaryHeader.d.ts +0 -8
- package/dist/actions/actionSummary/ActionSummaryListContainer.d.ts +0 -8
- package/dist/actions/actionSummary/ActionSummaryListItem.d.ts +0 -10
- package/dist/actions/actionSummary/ActionSummaryPopover.d.ts +0 -8
- package/dist/actions/actionSummary/index.d.ts +0 -5
- package/dist/actions/sidebar/EntitySideBarContent.d.ts +0 -1
- package/dist/actions/utils/actionUtils.d.ts +0 -3
- package/dist/assets/unityIcons/LibraryData.d.ts +0 -5
- package/dist/chatBot/ChatContainer.d.ts +0 -1
- package/dist/chatBot/ChatMessage.d.ts +0 -1
- package/dist/componentSystems/multiThreadTimeline/functions/mttFunctions.d.ts +0 -5
- package/dist/componentSystems/multiThreadTimeline/mttMainTimeline/HeightAdjust.d.ts +0 -4
- package/dist/componentSystems/multiThreadTimeline/mttMainTimeline/MttMainTimeline.d.ts +0 -1
- package/dist/componentSystems/multiThreadTimeline/mttMainTimeline/MttTimeline.d.ts +0 -1
- package/dist/componentSystems/multiThreadTimeline/mttSummary/MttSummary.d.ts +0 -6
- package/dist/componentSystems/multiThreadTimeline/timeline.d.ts +0 -26
- package/dist/componentSystems/multiThreadTimeline/ui/CircleButton.d.ts +0 -6
- package/dist/componentSystems/multiThreadTimeline/ui/DateWrapper.d.ts +0 -14
- package/dist/componentSystems/multiThreadTimeline/ui/DynamicRangeSlider.d.ts +0 -1
- package/dist/componentSystems/multiThreadTimeline/ui/MttYearTag.d.ts +0 -8
- package/dist/componentSystems/multiThreadTimeline/ui/MultiDot.d.ts +0 -8
- package/dist/componentSystems/multiThreadTimeline/ui/SummaryToken.d.ts +0 -18
- package/dist/componentSystems/multiThreadTimeline/ui/TimelineDateBar.d.ts +0 -12
- package/dist/componentSystems/multiThreadTimeline/ui/TimelineDot.d.ts +0 -9
- package/dist/componentSystems/multiThreadTimeline/ui/TimelineHoverCard.d.ts +0 -9
- package/dist/componentSystems/multiThreadTimeline/ui/TimelineNode.d.ts +0 -1
- package/dist/componentSystems/multiThreadTimeline/ui/TimelinePreloaderNode.d.ts +0 -9
- package/dist/componentSystems/multiThreadTimeline/ui/TimelineStatus.d.ts +0 -6
- package/dist/componentSystems/multiThreadTimeline/ui/TimelineToggleButton.d.ts +0 -17
- package/dist/componentSystems/multiThreadTimeline/ui/TimelineTokenSummary.d.ts +0 -22
- package/dist/componentSystems/multiThreadTimeline/ui/TimelineTopRowFilter.d.ts +0 -16
- package/dist/componentSystems/multiThreadTimeline/ui/TimelineWrapper.d.ts +0 -10
- package/dist/componentSystems/multiThreadTimeline/ui/VisualizationDot.d.ts +0 -10
- package/dist/componentSystems/multiThreadTimeline/ui/modified/TimelineToken.d.ts +0 -18
- package/dist/componentSystems/pageRenderer/PageRenderer.d.ts +0 -6
- package/dist/componentSystems/pageRenderer/hocs/withEngineComponent.d.ts +0 -1
- package/dist/componentSystems/pageRenderer/hooks/useReadMetaData.d.ts +0 -33
- package/dist/componentSystems/pageRenderer/utils/TableColumnDefs.d.ts +0 -9
- package/dist/componentSystems/pageRenderer/wrappers/AgGridSimpleWrapper.d.ts +0 -12
- package/dist/componentSystems/pageRenderer/wrappers/BarChartWrapper.d.ts +0 -7
- package/dist/componentSystems/pageRenderer/wrappers/BioCardWrapper.d.ts +0 -1
- package/dist/componentSystems/pageRenderer/wrappers/DisplayCardWrapper.d.ts +0 -1
- package/dist/componentSystems/pageRenderer/wrappers/DonutWrapper.d.ts +0 -7
- package/dist/componentSystems/pageRenderer/wrappers/HistogramWrapper.d.ts +0 -1
- package/dist/componentSystems/pageRenderer/wrappers/LineGraphWrapper.d.ts +0 -1
- package/dist/componentSystems/pageRenderer/wrappers/PrimaryActionHeaderWrapper.d.ts +0 -1
- package/dist/constants/reminderConstants.d.ts +0 -4
- package/dist/containers/IframeContainer.d.ts +0 -1
- package/dist/contexts/ActionContext.d.ts +0 -1
- package/dist/contexts/ActionDispatchContext.d.ts +0 -1
- package/dist/contexts/ActionLoadingContext.d.ts +0 -1
- package/dist/contexts/ActionLoadingDispatchContext.d.ts +0 -1
- package/dist/contexts/PageContext.d.ts +0 -15
- package/dist/contexts/usePageContext.d.ts +0 -1
- package/dist/dashboard/DashboardCardGrid.d.ts +0 -5
- package/dist/dashboard/DashboardWidget.d.ts +0 -2
- package/dist/dashboard/WidgetCard.d.ts +0 -1
- package/dist/dashboard/getWidgetLayout.d.ts +0 -5
- package/dist/dashboard/types.d.ts +0 -27
- package/dist/dataBrowser/DataBrowserColumnDefs.d.ts +0 -9
- package/dist/dataBrowser/DataBrowserContainer.d.ts +0 -1
- package/dist/dataBrowser/forms/ParamsMappingFields.d.ts +0 -1
- package/dist/dataBrowser/forms/ParamsMappingForm.d.ts +0 -1
- package/dist/dataBrowser/forms/RequiredFieldsMappingField.d.ts +0 -1
- package/dist/dataBrowser/forms/RequiredFieldsMappingForm.d.ts +0 -1
- package/dist/diffChecker/DiffChecker.d.ts +0 -6
- package/dist/enums/InputFieldTypeEnums.d.ts +0 -8
- package/dist/enums/aggridEnums.d.ts +0 -46
- package/dist/enums/menuEnums.d.ts +0 -6
- package/dist/enums/pageEnums.d.ts +0 -14
- package/dist/enums/paymentMethodTypeEnum.d.ts +0 -6
- package/dist/enums/paymentTenderTypeEnum.d.ts +0 -8
- package/dist/enums/paymentVendorFactoryEnum.d.ts +0 -10
- package/dist/enums/propertyTypeEnums.d.ts +0 -9
- package/dist/enums/searchEnums.d.ts +0 -5
- package/dist/enums/tagEnums.d.ts +0 -5
- package/dist/enums/unitySystemEnums.d.ts +0 -243
- package/dist/enums/workflowEnums.d.ts +0 -41
- package/dist/hooks/crudActions.d.ts +0 -5
- package/dist/hooks/useActions.d.ts +0 -17
- package/dist/hooks/useApiCatalog.d.ts +0 -6
- package/dist/hooks/useDateLocale.d.ts +0 -5
- package/dist/hooks/useDynamicListCalculation.d.ts +0 -1
- package/dist/hooks/useFluentIcon.d.ts +0 -3
- package/dist/hooks/useItemSubCard.d.ts +0 -7
- package/dist/hooks/useOutlook.d.ts +0 -6
- package/dist/hooks/useProductVersion.d.ts +0 -1
- package/dist/hooks/usePromotedLookupMethods.d.ts +0 -5
- package/dist/hooks/usePromotedMethodEntity.d.ts +0 -5
- package/dist/hooks/useQueryExecutors.d.ts +0 -7
- package/dist/hooks/useSearchFilterParamsMap.d.ts +0 -6
- package/dist/hooks/useSetLocationState.d.ts +0 -1
- package/dist/hooks/useSplitDecimal.d.ts +0 -3
- package/dist/hooks/useUpdateSearchParams.d.ts +0 -1
- package/dist/hooks/useWorkflow.d.ts +0 -3
- package/dist/hooks/virtualActions.d.ts +0 -3
- package/dist/index-DWuWdOI1.js +0 -56507
- package/dist/index.modern.js +0 -611
- package/dist/index.test.d.ts +0 -1
- package/dist/inquiry/AlertFlag.d.ts +0 -1
- package/dist/inquiry/AmbientListItem.d.ts +0 -1
- package/dist/inquiry/AmbientSplitStatCard.d.ts +0 -1
- package/dist/inquiry/AmbientSummaryListHeader.d.ts +0 -1
- package/dist/inquiry/EmbeddedInquiry.d.ts +0 -2
- package/dist/inquiry/ExecuteApiDialog.d.ts +0 -1
- package/dist/inquiry/FilterSearch.d.ts +0 -3
- package/dist/inquiry/FlagBlock.d.ts +0 -1
- package/dist/inquiry/Inquiry.d.ts +0 -1
- package/dist/inquiry/InquiryContainer.d.ts +0 -28
- package/dist/inquiry/InquiryTreeMenu.d.ts +0 -1
- package/dist/inquiry/InquiryTreeMenuItem.d.ts +0 -1
- package/dist/inquiry/InquiryWrapper.d.ts +0 -1
- package/dist/inquiry/ItemDescription.d.ts +0 -1
- package/dist/inquiry/NodeColumnHeader.d.ts +0 -5
- package/dist/inquiry/NodeDetails.d.ts +0 -1
- package/dist/inquiry/NodeList.d.ts +0 -1
- package/dist/inquiry/ToggleButton.d.ts +0 -1
- package/dist/inquiry/dashboard/InquiryDashboard.d.ts +0 -1
- package/dist/inquiry/dashboard/RecentlyLoadedNodesTable.d.ts +0 -1
- package/dist/inquiry/inquiryBar/InquiryControlList.d.ts +0 -11
- package/dist/inquiry/inquiryBar/InquiryNodeControls.d.ts +0 -1
- package/dist/inquiry/search/InquiryAdvancedSearch.d.ts +0 -1
- package/dist/inquiry/search/InquiryAdvancedSearchForm.d.ts +0 -1
- package/dist/inquiry/search/InquirySearchContainer.d.ts +0 -1
- package/dist/inquiry/search/InquirySearchDatasource.d.ts +0 -3
- package/dist/inquiry/search/InquirySearchTable.d.ts +0 -1
- package/dist/layout/GridGroup.d.ts +0 -10
- package/dist/layout/GridRow.d.ts +0 -5
- package/dist/layout/GridUnit.d.ts +0 -1
- package/dist/layout/HeaderLayout.d.ts +0 -3
- package/dist/layout/LayoutUnit.d.ts +0 -2
- package/dist/layout/getRatio.d.ts +0 -1
- package/dist/layout/templates/SideBarTemplate.d.ts +0 -4
- package/dist/maintenanceEngine/crudBrowser/CrudBrowserContainer.d.ts +0 -1
- package/dist/maintenanceEngine/crudBrowser/CrudTableActionRender.d.ts +0 -2
- package/dist/maintenanceEngine/crudBrowser/CrudTableColumnDefs.d.ts +0 -9
- package/dist/maintenanceEngine/crudBrowser/CrudTableSidePanel.d.ts +0 -11
- package/dist/maintenanceEngine/entityAttributeActions.d.ts +0 -1
- package/dist/maintenanceEngine/tableBrowser/TableColumnDefs.d.ts +0 -44
- package/dist/maintenanceEngine/tableBrowser/TableContainer.d.ts +0 -1
- package/dist/maintenanceEngine/virtualBrowser/VirtualBrowser.d.ts +0 -1
- package/dist/maintenanceEngine/virtualBrowser/VirtualTableColumnDefs.d.ts +0 -9
- package/dist/maintenanceEngine/virtualBrowser/VirtualTableSidePanel.d.ts +0 -10
- package/dist/map-library/Controls/Controls.d.ts +0 -3
- package/dist/map-library/Controls/CustomControl.d.ts +0 -1
- package/dist/map-library/Controls/FullScreenControl.d.ts +0 -1
- package/dist/map-library/Controls/ZoomControl.d.ts +0 -1
- package/dist/map-library/Controls/index.d.ts +0 -1
- package/dist/map-library/Layers/ImageLayer.d.ts +0 -4
- package/dist/map-library/Layers/Layers.d.ts +0 -3
- package/dist/map-library/Layers/TileLayer.d.ts +0 -4
- package/dist/map-library/Layers/VectorLayer.d.ts +0 -6
- package/dist/map-library/Layers/index.d.ts +0 -1
- package/dist/map-library/Map/Map.d.ts +0 -22
- package/dist/map-library/Map/MapContext.d.ts +0 -2
- package/dist/map-library/Map/index.d.ts +0 -1
- package/dist/map-library/Source/index.d.ts +0 -4
- package/dist/map-library/Source/osm.d.ts +0 -3
- package/dist/map-library/Source/vector.d.ts +0 -5
- package/dist/map-library/Source/xyz.d.ts +0 -7
- package/dist/map-library/functions/mapFunctions.d.ts +0 -2
- package/dist/map-library/geoLocation/FreeFormField.d.ts +0 -1
- package/dist/map-library/geoLocation/GeoLocation.d.ts +0 -2
- package/dist/map-library/ui/ControlZoom.d.ts +0 -2
- package/dist/map-library/ui/Filter.d.ts +0 -2
- package/dist/map-library/ui/FilterOptions.d.ts +0 -2
- package/dist/map-library/ui/LocationPin.d.ts +0 -2
- package/dist/map-library/ui/MapControls.d.ts +0 -2
- package/dist/map-library/ui/MapControlsStandard.d.ts +0 -2
- package/dist/map-library/ui/MapFilterBar.d.ts +0 -1
- package/dist/map-library/ui/MapSheet.d.ts +0 -1
- package/dist/map-library/ui/Position.d.ts +0 -2
- package/dist/map-library/ui/TileDisplay.d.ts +0 -1
- package/dist/map-library/ui/ToggleViewType.d.ts +0 -2
- package/dist/maps/GeoMap.d.ts +0 -1
- package/dist/maps/leafletMaps/FluentImageMap.d.ts +0 -13
- package/dist/maps/leafletMaps/FluentMap.d.ts +0 -24
- package/dist/maps/leafletMaps/ui/MapContent.d.ts +0 -12
- package/dist/maps/leafletMaps/ui/MapMarker.d.ts +0 -1
- package/dist/maps/openLayerMaps/Controls/Controls.d.ts +0 -4
- package/dist/maps/openLayerMaps/Controls/FullScreenControl.d.ts +0 -2
- package/dist/maps/openLayerMaps/Controls/index.d.ts +0 -3
- package/dist/maps/openLayerMaps/Layers/ImageLayer.d.ts +0 -4
- package/dist/maps/openLayerMaps/Layers/Layers.d.ts +0 -3
- package/dist/maps/openLayerMaps/Layers/TileLayer.d.ts +0 -4
- package/dist/maps/openLayerMaps/Layers/VectorLayer.d.ts +0 -5
- package/dist/maps/openLayerMaps/Layers/index.d.ts +0 -5
- package/dist/maps/openLayerMaps/Map/Map.d.ts +0 -6
- package/dist/maps/openLayerMaps/Map/MapContext.d.ts +0 -2
- package/dist/maps/openLayerMaps/Map/index.d.ts +0 -1
- package/dist/maps/openLayerMaps/Source/index.d.ts +0 -4
- package/dist/maps/openLayerMaps/Source/osm.d.ts +0 -3
- package/dist/maps/openLayerMaps/Source/vector.d.ts +0 -5
- package/dist/maps/openLayerMaps/Source/xyz.d.ts +0 -7
- package/dist/maps/openLayerMaps/ui/ControlZoom.d.ts +0 -2
- package/dist/maps/openLayerMaps/ui/Filter.d.ts +0 -2
- package/dist/maps/openLayerMaps/ui/LocationPin.d.ts +0 -2
- package/dist/maps/openLayerMaps/ui/MapControls.d.ts +0 -2
- package/dist/maps/openLayerMaps/ui/MapControlsStandard.d.ts +0 -2
- package/dist/maps/openLayerMaps/ui/Position.d.ts +0 -2
- package/dist/maps/openLayerMaps/ui/ToggleViewType.d.ts +0 -2
- package/dist/menuPage/MenuPage.d.ts +0 -1
- package/dist/models/ApiMethodInstance.d.ts +0 -10
- package/dist/models/GroupNode.d.ts +0 -13
- package/dist/models/Lookup.d.ts +0 -6
- package/dist/models/NumberOperator.d.ts +0 -14
- package/dist/models/QueryResult.d.ts +0 -9
- package/dist/models/SearchOperator.d.ts +0 -17
- package/dist/notes/NotesScreen.d.ts +0 -1
- package/dist/page/Page.d.ts +0 -2
- package/dist/page/PageContainer.d.ts +0 -1
- package/dist/page/PageContent.d.ts +0 -1
- package/dist/page/PageHeader.d.ts +0 -1
- package/dist/page/PageSectionHeader.d.ts +0 -1
- package/dist/page/PageSectionSpacer.d.ts +0 -1
- package/dist/reminders/CompleteReminderSwitch.d.ts +0 -1
- package/dist/reminders/RemindersCard.d.ts +0 -1
- package/dist/reminders/RemindersScreen.d.ts +0 -1
- package/dist/reports/PowerBIReport.d.ts +0 -1
- package/dist/routes/PrivateRoute.d.ts +0 -3
- package/dist/routes/UdpRoutes.d.ts +0 -1
- package/dist/routes/components/PageForbiddenRoute.d.ts +0 -1
- package/dist/routes/components/PageNotFoundRoute.d.ts +0 -1
- package/dist/routes/components/PageStatus.d.ts +0 -1
- package/dist/routes/components/PasswordResetRedirect.d.ts +0 -1
- package/dist/shell/Shell.d.ts +0 -43
- package/dist/shell/ui/AmbientProjectSwitcher.d.ts +0 -8
- package/dist/shell/ui/EnvironmentRibbon.d.ts +0 -4
- package/dist/shell/ui/FluentProfileMenuCard.d.ts +0 -1
- package/dist/shell/ui/HelpCenter.d.ts +0 -1
- package/dist/shell/ui/LanguageSwitcher.d.ts +0 -1
- package/dist/shell/ui/MiniCollapsibleSidebar.d.ts +0 -2
- package/dist/shell/ui/NavigationSidebar.d.ts +0 -2
- package/dist/shell/ui/SidebarCollapseButton.d.ts +0 -1
- package/dist/shell/ui/SidebarListItem.d.ts +0 -5
- package/dist/shell/ui/SiteHeader.d.ts +0 -11
- package/dist/shell/ui/SiteHeaderRightComponent.d.ts +0 -11
- package/dist/shell/ui/UserAvatar.d.ts +0 -9
- package/dist/shell/ui/addUser/PasswordValidator.d.ts +0 -10
- package/dist/shell/ui/addUser/UserForm.d.ts +0 -2
- package/dist/shell/ui/addUser/UserFormFields.d.ts +0 -2
- package/dist/shell/ui/addUser/UserFormSideSheet.d.ts +0 -5
- package/dist/shell/ui/appSwitcher/FUIAppHeader.d.ts +0 -2
- package/dist/shell/ui/appSwitcher/FUIAppList.d.ts +0 -2
- package/dist/shell/ui/appSwitcher/FUIAppListItem.d.ts +0 -2
- package/dist/shell/ui/appSwitcher/FUIAppSwitcher.d.ts +0 -2
- package/dist/shell/ui/appSwitcher/ProductAppList.d.ts +0 -2
- package/dist/shell/ui/appSwitcher/ProductAppListItem.d.ts +0 -2
- package/dist/shell/ui/appSwitcher/UnityApps.d.ts +0 -2
- package/dist/stores/actionStore.d.ts +0 -12
- package/dist/stores/catalogStore.d.ts +0 -14
- package/dist/stores/inquiryStore.d.ts +0 -21
- package/dist/stores/lookupsStore.d.ts +0 -12
- package/dist/stores/shellStore.d.ts +0 -21
- package/dist/stores/teleporterStore.d.ts +0 -13
- package/dist/stores/tenantStore.d.ts +0 -16
- package/dist/stores/workflowStore.d.ts +0 -19
- package/dist/stories/Button.d.ts +0 -26
- package/dist/stories/Button.stories.d.ts +0 -45
- package/dist/stories/Header.d.ts +0 -18
- package/dist/stories/Header.stories.d.ts +0 -17
- package/dist/stories/Page.d.ts +0 -18
- package/dist/stories/Page.stories.d.ts +0 -15
- package/dist/treeMenu/BaseTreeMenu.d.ts +0 -1
- package/dist/treeMenu/BaseTreeMenuItem.d.ts +0 -1
- package/dist/udp/ShortcutContent/ListSearch.d.ts +0 -1
- package/dist/udp/ShortcutContent/ShortcutContentFinder.d.ts +0 -1
- package/dist/udp/export/ExportSidesheet.d.ts +0 -1
- package/dist/udp/export/MyExportsPage.d.ts +0 -1
- package/dist/udp/export/VisualSearchObject.d.ts +0 -3
- package/dist/udp/export/useUdpExport.d.ts +0 -14
- package/dist/udp/fileImportMapping/FileImportConfigCard.d.ts +0 -1
- package/dist/udp/fileImportMapping/FileImportMappingEnums.d.ts +0 -6
- package/dist/udp/fileImportMapping/FileImportMappingWizard.d.ts +0 -2
- package/dist/udp/fileImportMapping/ImportDataFromFileMapping.d.ts +0 -1
- package/dist/udp/fileImportMapping/SampleFileImportGrid.d.ts +0 -1
- package/dist/udp/fileImportMapping/fileUtils.d.ts +0 -3
- package/dist/udp/pages/ChatUDP.d.ts +0 -2
- package/dist/udp/pages/UdpDataBrowserPage.d.ts +0 -3
- package/dist/udp/pages/UdpFormsBuilderPage.d.ts +0 -2
- package/dist/udp/pages/UdpFormsListPage.d.ts +0 -2
- package/dist/udp/pages/UdpGridPanelManagementPage.d.ts +0 -2
- package/dist/udp/pages/UdpGridPanelManagementSidesheet.d.ts +0 -2
- package/dist/udp/pages/UdpImportFromFileMappingPage.d.ts +0 -2
- package/dist/udp/pages/UdpInquiryMaintenanceEnginePage.d.ts +0 -2
- package/dist/udp/pages/UdpMaintenanceConfigPage.d.ts +0 -1
- package/dist/udp/pages/UdpMaintenanceEnginePage.d.ts +0 -2
- package/dist/udp/pages/UdpNotesPage.d.ts +0 -2
- package/dist/udp/pages/UdpPrivateForm.d.ts +0 -2
- package/dist/udp/pages/UdpPublicForm.d.ts +0 -2
- package/dist/udp/pages/UdpRemindersPage.d.ts +0 -2
- package/dist/udp/pages/UdpReportsPage.d.ts +0 -2
- package/dist/udp/pages/UdpVerticalManagementPage.d.ts +0 -2
- package/dist/udp/pages/UdpVerticalManagementSidesheet.d.ts +0 -2
- package/dist/udp/pages/udpPages.d.ts +0 -40
- package/dist/udp/utilities/methodUtils.d.ts +0 -5
- package/dist/udp-react-enterprise-component-library.css +0 -1
- package/dist/uploader/DragDropFileUpload.d.ts +0 -12
- package/dist/uploader/FileProfile.d.ts +0 -2
- package/dist/uploader/FileType.d.ts +0 -1
- package/dist/uploader/FileUpload.d.ts +0 -2
- package/dist/uploader/ImagePreview.d.ts +0 -2
- package/dist/utilities/CustomNavigationClient.d.ts +0 -11
- package/dist/utilities/DemoJuly/redirectToProduct.d.ts +0 -1
- package/dist/utilities/FluentIcon.d.ts +0 -1
- package/dist/utilities/TrimForAvatar.d.ts +0 -1
- package/dist/utilities/UnityFluentIcon.d.ts +0 -1
- package/dist/utilities/UnityIcon.d.ts +0 -1
- package/dist/utilities/aggrid/AgTable.d.ts +0 -33
- package/dist/utilities/aggrid/GridFunctions.d.ts +0 -13
- package/dist/utilities/aggrid/SplitButton.d.ts +0 -1
- package/dist/utilities/aggrid/aggridHelpers.d.ts +0 -1
- package/dist/utilities/aggrid/datasources/SearchServiceDatasource.d.ts +0 -4
- package/dist/utilities/apiHelpers.d.ts +0 -7
- package/dist/utilities/auth/AuthDialogs.d.ts +0 -2
- package/dist/utilities/auth/AuthProvider.d.ts +0 -5
- package/dist/utilities/auth/AuthProviderWrapper.d.ts +0 -1
- package/dist/utilities/auth/UserProvider.d.ts +0 -2
- package/dist/utilities/auth/authActions.d.ts +0 -9
- package/dist/utilities/auth/internal.d.ts +0 -9
- package/dist/utilities/auth/signInAuthProvider.d.ts +0 -5
- package/dist/utilities/auth/useAccessToken.d.ts +0 -1
- package/dist/utilities/auth/useAuthedUser.d.ts +0 -15
- package/dist/utilities/auth/useIsUnityAuthenticated.d.ts +0 -1
- package/dist/utilities/auth/useSingleLogout.d.ts +0 -1
- package/dist/utilities/auth/useUser.d.ts +0 -8
- package/dist/utilities/auth/user.d.ts +0 -29
- package/dist/utilities/auth/users.d.ts +0 -8
- package/dist/utilities/auth/whitelistedPaths.d.ts +0 -1
- package/dist/utilities/axiosInterceptors.d.ts +0 -2
- package/dist/utilities/brand.d.ts +0 -19
- package/dist/utilities/chatBot/ChatBotContext.d.ts +0 -1
- package/dist/utilities/chatBot/ChatBotProvider.d.ts +0 -3
- package/dist/utilities/chatBot/useChatBot.d.ts +0 -6
- package/dist/utilities/crud/useDefaultFormValues.d.ts +0 -6
- package/dist/utilities/customIcons/ApprovalIcon.d.ts +0 -1
- package/dist/utilities/customIcons/RejectIcon.d.ts +0 -1
- package/dist/utilities/entities/entityUtilities.d.ts +0 -3
- package/dist/utilities/floorplanFunctions/gridVisualizationFunctions.d.ts +0 -2
- package/dist/utilities/form/AltSubmitButton.d.ts +0 -13
- package/dist/utilities/form/Field.d.ts +0 -22
- package/dist/utilities/form/Form.d.ts +0 -7
- package/dist/utilities/form/FormButtons.d.ts +0 -2
- package/dist/utilities/form/FormError.d.ts +0 -7
- package/dist/utilities/form/FormSpy.d.ts +0 -10
- package/dist/utilities/form/SubmitButton.d.ts +0 -13
- package/dist/utilities/form/arrayMutators.d.ts +0 -2
- package/dist/utilities/form/final-form-scroll/createDecorator.d.ts +0 -5
- package/dist/utilities/form/final-form-scroll/findInput.d.ts +0 -2
- package/dist/utilities/form/final-form-scroll/getAllInputs.d.ts +0 -2
- package/dist/utilities/form/final-form-scroll/isFocusableInput.d.ts +0 -2
- package/dist/utilities/form/formHooks.d.ts +0 -3
- package/dist/utilities/form/index.d.ts +0 -9
- package/dist/utilities/form/paymentForm/AccountPayment.model.d.ts +0 -143
- package/dist/utilities/form/paymentForm/BankAccountForm.d.ts +0 -48
- package/dist/utilities/form/paymentForm/BankIcon.d.ts +0 -8
- package/dist/utilities/form/paymentForm/CashForm.d.ts +0 -9
- package/dist/utilities/form/paymentForm/CashIcon.d.ts +0 -8
- package/dist/utilities/form/paymentForm/CheckIcon.d.ts +0 -8
- package/dist/utilities/form/paymentForm/CreditCardAdornment.d.ts +0 -12
- package/dist/utilities/form/paymentForm/CreditCardForm.d.ts +0 -41
- package/dist/utilities/form/paymentForm/CreditCardIcon.d.ts +0 -8
- package/dist/utilities/form/paymentForm/CreditCardUtils.d.ts +0 -42
- package/dist/utilities/form/paymentForm/DisableOverlay.d.ts +0 -7
- package/dist/utilities/form/paymentForm/HostedPaymentError.d.ts +0 -20
- package/dist/utilities/form/paymentForm/NewCreditCardForm.d.ts +0 -19
- package/dist/utilities/form/paymentForm/NewECheckForm.d.ts +0 -15
- package/dist/utilities/form/paymentForm/PaymentAccount.model.d.ts +0 -81
- package/dist/utilities/form/paymentForm/PaymentBankDetails.d.ts +0 -12
- package/dist/utilities/form/paymentForm/PaymentBoxDetail.d.ts +0 -32
- package/dist/utilities/form/paymentForm/PaymentCard.d.ts +0 -12
- package/dist/utilities/form/paymentForm/PaymentCardDetail.d.ts +0 -19
- package/dist/utilities/form/paymentForm/PaymentDropdown.d.ts +0 -32
- package/dist/utilities/form/paymentForm/PaymentForm.d.ts +0 -77
- package/dist/utilities/form/paymentForm/TabPanel.d.ts +0 -20
- package/dist/utilities/form/paymentForm/usePaymentProviderForm.d.ts +0 -12
- package/dist/utilities/form/paymentForm/vendorsForms/FiservForm.d.ts +0 -40
- package/dist/utilities/form/paymentForm/vendorsForms/ICheckForm.d.ts +0 -46
- package/dist/utilities/form/paymentForm/vendorsForms/PaymentusForm.d.ts +0 -13
- package/dist/utilities/form/useFieldChangeListener.d.ts +0 -7
- package/dist/utilities/iconLibrary/IconLibrary.d.ts +0 -2
- package/dist/utilities/iconLibrary/IconLibraryComponent.d.ts +0 -7
- package/dist/utilities/iconLibrary/SelectedLibraryItem.d.ts +0 -2
- package/dist/utilities/iconLibrary/UnityIconLibrary.d.ts +0 -7
- package/dist/utilities/input/DateUtilities.d.ts +0 -2
- package/dist/utilities/input/SelectUtilities.d.ts +0 -3
- package/dist/utilities/input/StringUtilities.d.ts +0 -7
- package/dist/utilities/isValueSelected.d.ts +0 -1
- package/dist/utilities/maintenanceEngine/CrudBrowserUtilities.d.ts +0 -5
- package/dist/utilities/menus/menuUtilities.d.ts +0 -1
- package/dist/utilities/menus/redirectToLink.d.ts +0 -1
- package/dist/utilities/page/PageSubHeaderAction.d.ts +0 -11
- package/dist/utilities/provider/ActionProvider.d.ts +0 -1
- package/dist/utilities/redirect/ExternalRedirectUrlStorage.d.ts +0 -3
- package/dist/utilities/redirect/LocalRedirectUrlStorage.d.ts +0 -5
- package/dist/utilities/redirect/pages/OutlookCallback.d.ts +0 -1
- package/dist/utilities/rules/RuleUtilities.d.ts +0 -5
- package/dist/utilities/search/Search.d.ts +0 -37
- package/dist/utilities/search/SearchUtilities.d.ts +0 -12
- package/dist/utilities/storage/UnitySessionStorage.d.ts +0 -4
- package/dist/utilities/stringUtils.d.ts +0 -8
- package/dist/utilities/style/ContentContainer.d.ts +0 -11
- package/dist/utilities/style/colorConverter.d.ts +0 -3
- package/dist/utilities/style/colors.d.ts +0 -107
- package/dist/utilities/style/utils/styleUtils.d.ts +0 -2
- package/dist/utilities/style/verticalStyles.d.ts +0 -4
- package/dist/utilities/systemColors.d.ts +0 -1
- package/dist/utilities/tenant/TenantProvider.d.ts +0 -3
- package/dist/utilities/tenant/tenantContext.d.ts +0 -1
- package/dist/utilities/tenant/useTenant.d.ts +0 -6
- package/dist/utilities/theme.d.ts +0 -3
- package/dist/utilities/theme.types.d.ts +0 -11
- package/dist/utilities/tree/TreeUtilities.d.ts +0 -74
- package/dist/utilities/types.d.ts +0 -31
- package/dist/utilities/uploader/FileProfile.d.ts +0 -2
- package/dist/utilities/uploader/FileType.d.ts +0 -1
- package/dist/utilities/uploader/FileUpload.d.ts +0 -1
- package/dist/utilities/uploader/ImagePreview.d.ts +0 -2
- package/dist/utilities/uploader/formatBytes.d.ts +0 -1
- package/dist/utilities/useAxiosGet.d.ts +0 -10
- package/dist/utilities/useAxiosMutate.d.ts +0 -6
- package/dist/utilities/useDevicePixelRatio.d.ts +0 -6
- package/dist/utilities/useGravatar.d.ts +0 -10
- package/dist/utilities/usePrevious.d.ts +0 -1
- package/dist/utilities/utilityBar/InquiryHeaderControl.d.ts +0 -11
- package/dist/utilities/utilityBar/InquiryHeaderSecondary.d.ts +0 -11
- package/dist/utilities/utilityBar/InquiryHeaderSecondaryAlert.d.ts +0 -11
- package/dist/utilities/utilityBar/InquiryHeaderTitle.d.ts +0 -11
- package/dist/utilities/utilityBar/SubHeaderAction.d.ts +0 -11
- package/dist/utilities/utilityBar/UtilityBarInport.d.ts +0 -11
- package/dist/utilities/workflow/workflowUtilities.d.ts +0 -47
- package/dist/workflow/WorkflowContainer.d.ts +0 -1
- package/dist/workflow/WorkflowContent.d.ts +0 -1
- package/dist/workflow/WorkflowUiInterruptContent.d.ts +0 -1
- package/dist/workflow/components/WorkflowTaskFlow.d.ts +0 -1
- package/dist/workflow/menus/WorkflowTreeMenu.d.ts +0 -1
- package/dist/workflow/menus/WorkflowTreeMenuItem.d.ts +0 -1
|
@@ -0,0 +1,1774 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-DoeelZqw.cjs');
|
|
2
|
+
const require_SideSheet = require('./SideSheet-ERkgeXFG.cjs');
|
|
3
|
+
const require_EnvironmentRibbon = require('./EnvironmentRibbon-CgKsTmQ7.cjs');
|
|
4
|
+
const require_UtilitySideBar = require('./UtilitySideBar-CoLVUjcV.cjs');
|
|
5
|
+
const require_PageContainer = require('./PageContainer-DFKnbhBN.cjs');
|
|
6
|
+
const react = require_chunk.__toESM(require("react"));
|
|
7
|
+
const __material_ui_core = require_chunk.__toESM(require("@material-ui/core"));
|
|
8
|
+
const react_jsx_runtime = require_chunk.__toESM(require("react/jsx-runtime"));
|
|
9
|
+
const udp_react_stencil_component_library = require_chunk.__toESM(require("udp-react-stencil-component-library"));
|
|
10
|
+
const react_router_dom = require_chunk.__toESM(require("react-router-dom"));
|
|
11
|
+
const luxon = require_chunk.__toESM(require("luxon"));
|
|
12
|
+
const __material_ui_lab_Autocomplete = require_chunk.__toESM(require("@material-ui/lab/Autocomplete"));
|
|
13
|
+
const clsx = require_chunk.__toESM(require("clsx"));
|
|
14
|
+
const __fluentui_react_icons = require_chunk.__toESM(require("@fluentui/react-icons"));
|
|
15
|
+
const lodash = require_chunk.__toESM(require("lodash"));
|
|
16
|
+
const react_i18next = require_chunk.__toESM(require("react-i18next"));
|
|
17
|
+
const zustand = require_chunk.__toESM(require("zustand"));
|
|
18
|
+
const zustand_middleware = require_chunk.__toESM(require("zustand/middleware"));
|
|
19
|
+
const __material_ui_core_styles = require_chunk.__toESM(require("@material-ui/core/styles"));
|
|
20
|
+
const react_dnd = require_chunk.__toESM(require("react-dnd"));
|
|
21
|
+
const react_dnd_html5_backend = require_chunk.__toESM(require("react-dnd-html5-backend"));
|
|
22
|
+
const __material_ui_lab_TreeView = require_chunk.__toESM(require("@material-ui/lab/TreeView"));
|
|
23
|
+
const __material_ui_lab_TreeItem = require_chunk.__toESM(require("@material-ui/lab/TreeItem"));
|
|
24
|
+
const __material_ui_icons_CheckCircle = require_chunk.__toESM(require("@material-ui/icons/CheckCircle"));
|
|
25
|
+
const __material_ui_icons_RadioButtonUnchecked = require_chunk.__toESM(require("@material-ui/icons/RadioButtonUnchecked"));
|
|
26
|
+
const __material_ui_icons_RadioButtonChecked = require_chunk.__toESM(require("@material-ui/icons/RadioButtonChecked"));
|
|
27
|
+
const src_assets_images_phone_png = require_chunk.__toESM(require("./assets/images/phone.png"));
|
|
28
|
+
const react_html_parser = require_chunk.__toESM(require("react-html-parser"));
|
|
29
|
+
|
|
30
|
+
//#region src/UI/inputs/textField/FluentTextFieldAutoComplete.jsx
|
|
31
|
+
const useStyles$10 = (0, __material_ui_core.makeStyles)((theme) => ({
|
|
32
|
+
formTextInput: { fontSize: 14 },
|
|
33
|
+
labelRoot: { fontSize: 14 }
|
|
34
|
+
}));
|
|
35
|
+
const AutoCompletePopper = (props) => {
|
|
36
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Popper, {
|
|
37
|
+
...props,
|
|
38
|
+
placement: "bottom-start"
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
const FluentTextFieldAutoComplete = (props) => {
|
|
42
|
+
const { label, placeholder, options, textFieldProps, disabled, onChange: onChangeProp, value, optionKey, additionalOnChangeAction, classes: classProps, variant = "outlined", inputProps, inputPropClasses, customPopper, disableClearable = false, defaultValue, additionalOptionKey, isMultiple = false, limitTags, renderTags, optionLabelDisplayFunction = (option) => option, groupBy = null, size = "medium", id, udprecordid,...other } = props;
|
|
43
|
+
const classes = useStyles$10();
|
|
44
|
+
const { autocompleteRoot } = classProps || {};
|
|
45
|
+
const onChange = (0, react.useCallback)((e, value$1) => {
|
|
46
|
+
if (additionalOnChangeAction) additionalOnChangeAction(value$1);
|
|
47
|
+
return onChangeProp === null || onChangeProp === void 0 ? void 0 : onChangeProp(value$1);
|
|
48
|
+
}, [onChangeProp, additionalOnChangeAction]);
|
|
49
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab_Autocomplete.default, {
|
|
50
|
+
id: "autocomplete",
|
|
51
|
+
multiple: isMultiple,
|
|
52
|
+
limitTags,
|
|
53
|
+
disabled,
|
|
54
|
+
options: options || [],
|
|
55
|
+
getOptionLabel: (option) => option && (optionKey ? `${optionLabelDisplayFunction(option[optionKey])}${additionalOptionKey ? ` - (${option[additionalOptionKey]})` : ""}` : optionLabelDisplayFunction(option) || ""),
|
|
56
|
+
getOptionSelected: (option, val) => optionKey ? option[optionKey] === val[optionKey] : option === val,
|
|
57
|
+
groupBy,
|
|
58
|
+
onChange,
|
|
59
|
+
value: value || (isMultiple ? [] : null),
|
|
60
|
+
className: autocompleteRoot,
|
|
61
|
+
classes: { root: classProps === null || classProps === void 0 ? void 0 : classProps.formControl },
|
|
62
|
+
PopperComponent: customPopper || AutoCompletePopper,
|
|
63
|
+
disableClearable,
|
|
64
|
+
defaultValue,
|
|
65
|
+
size,
|
|
66
|
+
renderInput: (params) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.TextField, {
|
|
67
|
+
...textFieldProps,
|
|
68
|
+
...params,
|
|
69
|
+
...other,
|
|
70
|
+
inputProps: {
|
|
71
|
+
...params.inputProps,
|
|
72
|
+
id,
|
|
73
|
+
udprecordid
|
|
74
|
+
},
|
|
75
|
+
label,
|
|
76
|
+
margin: "dense",
|
|
77
|
+
variant,
|
|
78
|
+
placeholder,
|
|
79
|
+
size: "small",
|
|
80
|
+
InputProps: {
|
|
81
|
+
...params.InputProps,
|
|
82
|
+
...inputProps,
|
|
83
|
+
classes: {
|
|
84
|
+
root: classProps === null || classProps === void 0 ? void 0 : classProps.inputPropRoot,
|
|
85
|
+
input: (0, clsx.default)(classes.formTextInput, classProps === null || classProps === void 0 ? void 0 : classProps.inputPropInput)
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
InputLabelProps: { classes: { root: (0, clsx.default)(classes.labelRoot, classProps === null || classProps === void 0 ? void 0 : classProps.formLabelRoot) } }
|
|
89
|
+
}),
|
|
90
|
+
renderTags
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/utilities/input/DateUtilities.js
|
|
96
|
+
const formatDateToLocaleString = (isoDate, luxonFormat = "") => {
|
|
97
|
+
return luxon.DateTime.fromISO(isoDate, { zone: "utc" }).toLocal().toLocaleString(luxonFormat);
|
|
98
|
+
};
|
|
99
|
+
const toUtcDate = (date) => {
|
|
100
|
+
if (!date) return null;
|
|
101
|
+
if (date.endsWith("Z")) return new Date(date);
|
|
102
|
+
else return /* @__PURE__ */ new Date(date + "Z");
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/workflow/menus/WorkflowTreeMenuItem.jsx
|
|
107
|
+
const useStyles$9 = (0, __material_ui_core.makeStyles)((theme) => {
|
|
108
|
+
var _theme$getThemeData, _theme$getThemeData2;
|
|
109
|
+
return {
|
|
110
|
+
root: {
|
|
111
|
+
"&.Mui-selected > .MuiTreeItem-content": {
|
|
112
|
+
backgroundColor: (theme === null || theme === void 0 || (_theme$getThemeData = theme.getThemeData()) === null || _theme$getThemeData === void 0 ? void 0 : _theme$getThemeData.mode) === "dark" ? theme.palette.grey[700] : theme.palette.grey[300],
|
|
113
|
+
borderRight: `4px solid ${theme.palette.primary.main}`
|
|
114
|
+
},
|
|
115
|
+
"&.Mui-selected > .MuiTreeItem-content .MuiTreeItem-label": {
|
|
116
|
+
backgroundColor: "transparent",
|
|
117
|
+
paddingLeft: 0
|
|
118
|
+
},
|
|
119
|
+
"&.Mui-selected > .MuiTreeItem-content > .MuiCollapse-wrapperInner": { backgroundColor: (theme === null || theme === void 0 || (_theme$getThemeData2 = theme.getThemeData()) === null || _theme$getThemeData2 === void 0 ? void 0 : _theme$getThemeData2.mode) !== "dark" && theme.palette.grey[50] },
|
|
120
|
+
"& .MuiTreeItem-content .MuiTreeItem-iconContainer": { display: (props) => props.sidebarExpanded ? "flex" : "none" }
|
|
121
|
+
},
|
|
122
|
+
content: { backgroundColor: (props) => {
|
|
123
|
+
var _theme$getThemeData3;
|
|
124
|
+
return (theme === null || theme === void 0 || (_theme$getThemeData3 = theme.getThemeData()) === null || _theme$getThemeData3 === void 0 ? void 0 : _theme$getThemeData3.mode) !== "dark" && !props.sidebarExpanded && props.conditionalIconName && props.conditionalIconColor ? (0, __material_ui_core.lighten)(props.conditionalIconColor, .92) : "";
|
|
125
|
+
} },
|
|
126
|
+
labelRoot: {
|
|
127
|
+
display: "flex",
|
|
128
|
+
alignItems: "center",
|
|
129
|
+
marginLeft: (props) => props.sidebarExpanded ? 0 : theme.spacing(1.5),
|
|
130
|
+
width: "100%"
|
|
131
|
+
},
|
|
132
|
+
labelContainer: {
|
|
133
|
+
display: (props) => !props.sidebarExpanded ? "none" : "",
|
|
134
|
+
width: (props) => props.treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? `calc(100% - ${theme.spacing(6.25)}px)` : `calc(100% - ${theme.spacing(7.75)}px)`
|
|
135
|
+
},
|
|
136
|
+
conditionalIconContainer: { display: "inline-flex" },
|
|
137
|
+
labelText: {
|
|
138
|
+
fontSize: "0.75rem",
|
|
139
|
+
fontWeight: 600,
|
|
140
|
+
lineHeight: "1rem",
|
|
141
|
+
letterSpacing: .1
|
|
142
|
+
},
|
|
143
|
+
captionText: {
|
|
144
|
+
marginLeft: (props) => props.treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? theme.spacing(1) : "",
|
|
145
|
+
fontSize: "0.65rem",
|
|
146
|
+
fontWeight: 400,
|
|
147
|
+
lineHeight: 1,
|
|
148
|
+
letterSpacing: .4
|
|
149
|
+
},
|
|
150
|
+
labelOverflow: {
|
|
151
|
+
whiteSpace: "nowrap",
|
|
152
|
+
overflow: "hidden",
|
|
153
|
+
textOverflow: "ellipsis",
|
|
154
|
+
marginTop: `-${theme.spacing(.25)}px`
|
|
155
|
+
},
|
|
156
|
+
group: {
|
|
157
|
+
width: "100%",
|
|
158
|
+
"& .MuiTreeItem-group": { marginLeft: 0 },
|
|
159
|
+
"& .MuiTreeItem-content": {
|
|
160
|
+
paddingLeft: (props) => props.sidebarExpanded ? (props.depth || 1) * theme.spacing(1) : 0,
|
|
161
|
+
borderRight: (props) => props.showRightBorderColor ? `4px solid ${theme.palette.primary.main}` : "",
|
|
162
|
+
borderBottom: (props) => props.treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? `1px solid ${theme.palette.grey[200]}` : ""
|
|
163
|
+
},
|
|
164
|
+
"& .MuiTreeItem-content .MuiTreeItem-label": {
|
|
165
|
+
paddingLeft: 0,
|
|
166
|
+
width: (props) => props.sidebarExpanded && `calc(100% - ${theme.spacing(2.5)}px)`
|
|
167
|
+
},
|
|
168
|
+
"& .MuiTreeItem-content .MuiTreeItem-iconContainer span": { display: (props) => props.hideExpansion ? "none" : "" },
|
|
169
|
+
"& .MuiCollapse-wrapperInner": { backgroundColor: (props) => {
|
|
170
|
+
var _theme$getThemeData4;
|
|
171
|
+
return (theme === null || theme === void 0 || (_theme$getThemeData4 = theme.getThemeData()) === null || _theme$getThemeData4 === void 0 ? void 0 : _theme$getThemeData4.mode) !== "dark" && props.isSelectedNode ? theme.palette.grey[50] : "";
|
|
172
|
+
} }
|
|
173
|
+
},
|
|
174
|
+
iconContainer: {
|
|
175
|
+
display: "flex",
|
|
176
|
+
justifyContent: "center",
|
|
177
|
+
marginTop: (props) => props.treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? theme.spacing(.25) : theme.spacing(.5),
|
|
178
|
+
marginBottom: (props) => props.treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? theme.spacing(.25) : theme.spacing(.5),
|
|
179
|
+
marginRight: theme.spacing(1),
|
|
180
|
+
width: (props) => props.treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? theme.spacing(3) : theme.spacing(4),
|
|
181
|
+
height: (props) => props.treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? theme.spacing(3) : theme.spacing(4)
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
});
|
|
185
|
+
const WorkflowTreeMenuItem = (props) => {
|
|
186
|
+
var _node$properties2;
|
|
187
|
+
const { parentId, nodeId, iconName, iconType, conditionalIconName, conditionalIconType, conditionalIconColor, label, iconColor, onNodeSelect, isSelectedNode, subLabel, sidebarExpanded, isLastNode, loading, node, onDropNode, treeViewMode, menuIndex, aggregateThresholdId,...other } = props;
|
|
188
|
+
const classes = useStyles$9(props);
|
|
189
|
+
const theme = (0, __material_ui_core.useTheme)();
|
|
190
|
+
const [{ isDragging }, dragRef] = (0, react_dnd.useDrag)({
|
|
191
|
+
type: "BaseTreeMenuItem",
|
|
192
|
+
item: {
|
|
193
|
+
...node,
|
|
194
|
+
sourceNodeMenuIndex: menuIndex
|
|
195
|
+
},
|
|
196
|
+
collect: (monitor) => ({ isDragging: monitor.isDragging() })
|
|
197
|
+
});
|
|
198
|
+
const handleOnDrop = (0, react.useCallback)((sourceNode, monitor) => {
|
|
199
|
+
if (!monitor.didDrop()) {
|
|
200
|
+
if (onDropNode) {
|
|
201
|
+
const { sourceNodeMenuIndex,...other$1 } = sourceNode;
|
|
202
|
+
onDropNode({ ...other$1 }, node, sourceNodeMenuIndex, menuIndex);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}, [
|
|
206
|
+
onDropNode,
|
|
207
|
+
node,
|
|
208
|
+
menuIndex
|
|
209
|
+
]);
|
|
210
|
+
const [{ canDrop, isOver }, dropRef] = (0, react_dnd.useDrop)(() => ({
|
|
211
|
+
accept: ["BaseTreeMenuItem"],
|
|
212
|
+
drop: (sourceNode, monitor) => {
|
|
213
|
+
handleOnDrop(sourceNode, monitor);
|
|
214
|
+
},
|
|
215
|
+
canDrop: (sourceNode) => checkCanDrop(sourceNode),
|
|
216
|
+
collect: (monitor) => ({
|
|
217
|
+
isOver: monitor.isOver(),
|
|
218
|
+
canDrop: !!monitor.canDrop()
|
|
219
|
+
})
|
|
220
|
+
}), [handleOnDrop]);
|
|
221
|
+
const checkCanDrop = (0, react.useCallback)((sourceNode) => {
|
|
222
|
+
if (sourceNode) {
|
|
223
|
+
var _node$properties, _sourceNode$propertie;
|
|
224
|
+
const onDropActions = node === null || node === void 0 || (_node$properties = node.properties) === null || _node$properties === void 0 || (_node$properties = _node$properties.nodeActions) === null || _node$properties === void 0 ? void 0 : _node$properties.filter((na) => (na === null || na === void 0 ? void 0 : na.triggerType) === require_EnvironmentRibbon.NodeActionTriggerEnums.On_Node_Drop);
|
|
225
|
+
if (!onDropActions) return false;
|
|
226
|
+
const nodeDragEntities = onDropActions === null || onDropActions === void 0 ? void 0 : onDropActions.map((action) => action === null || action === void 0 ? void 0 : action.dragEntityName);
|
|
227
|
+
return nodeDragEntities.includes(sourceNode === null || sourceNode === void 0 || (_sourceNode$propertie = sourceNode.properties) === null || _sourceNode$propertie === void 0 ? void 0 : _sourceNode$propertie.catalogReturnObject);
|
|
228
|
+
}
|
|
229
|
+
}, [node]);
|
|
230
|
+
const handleOnLabelClick = (0, react.useCallback)((e) => {
|
|
231
|
+
e.preventDefault();
|
|
232
|
+
onNodeSelect(e, nodeId);
|
|
233
|
+
}, [onNodeSelect, nodeId]);
|
|
234
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab_TreeItem.default, {
|
|
235
|
+
className: classes.group,
|
|
236
|
+
nodeId,
|
|
237
|
+
label: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
238
|
+
ref: dropRef,
|
|
239
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Tooltip, {
|
|
240
|
+
title: sidebarExpanded ? "" : label,
|
|
241
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
242
|
+
ref: (node === null || node === void 0 || (_node$properties2 = node.properties) === null || _node$properties2 === void 0 ? void 0 : _node$properties2.isDraggable) && dragRef || null,
|
|
243
|
+
style: { opacity: isDragging ? .5 : 1 },
|
|
244
|
+
children: loading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.CircularProgress, { size: 12 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
245
|
+
id: "udpRecord-BaseTreeMenuItem-" + (label === null || label === void 0 ? void 0 : label.replace(/\s+/g, "")),
|
|
246
|
+
udprecordid: "udpRecord-BaseTreeMenuItem-" + (label === null || label === void 0 ? void 0 : label.replace(/\s+/g, "")),
|
|
247
|
+
className: classes.labelRoot,
|
|
248
|
+
style: { fontWeight: isSelectedNode ? "bold" : "" },
|
|
249
|
+
children: [
|
|
250
|
+
iconName && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
251
|
+
className: classes.iconContainer,
|
|
252
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.UnityFluentIcon, {
|
|
253
|
+
size: treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? "small" : "large",
|
|
254
|
+
color: iconColor,
|
|
255
|
+
type: iconType,
|
|
256
|
+
icon: iconType === "unity" ? require_UtilitySideBar.getUnityIconFromName(iconName) : require_UtilitySideBar.getIconFromName(iconName),
|
|
257
|
+
style: { color: iconColor ? (0, __material_ui_core.darken)(iconColor, .1) : theme.palette.secondary.main }
|
|
258
|
+
})
|
|
259
|
+
}),
|
|
260
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
261
|
+
className: classes.labelContainer,
|
|
262
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.Typography, {
|
|
263
|
+
variant: "subtitle2",
|
|
264
|
+
className: (0, clsx.default)(classes.labelText, classes.labelOverflow),
|
|
265
|
+
children: [label, subLabel && treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
|
|
266
|
+
variant: "caption",
|
|
267
|
+
className: (0, clsx.default)(classes.captionText, classes.labelOverflow),
|
|
268
|
+
children: subLabel
|
|
269
|
+
})]
|
|
270
|
+
}), subLabel && treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Classic && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
271
|
+
className: classes.labelOverflow,
|
|
272
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
|
|
273
|
+
variant: "caption",
|
|
274
|
+
className: (0, clsx.default)(classes.captionText),
|
|
275
|
+
children: subLabel
|
|
276
|
+
})
|
|
277
|
+
})]
|
|
278
|
+
}),
|
|
279
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UtilitySideBar.AggregateChip, { aggregateThresholdId }),
|
|
280
|
+
conditionalIconName && sidebarExpanded && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
281
|
+
className: classes.conditionalIconContainer,
|
|
282
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.UnityFluentIcon, {
|
|
283
|
+
size: treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? "small" : "default",
|
|
284
|
+
color: conditionalIconColor,
|
|
285
|
+
type: conditionalIconType,
|
|
286
|
+
icon: conditionalIconType === "unity" ? require_UtilitySideBar.getUnityIconFromName(conditionalIconName) : require_UtilitySideBar.getIconFromName(conditionalIconName),
|
|
287
|
+
style: { color: conditionalIconColor }
|
|
288
|
+
})
|
|
289
|
+
})
|
|
290
|
+
]
|
|
291
|
+
})
|
|
292
|
+
})
|
|
293
|
+
})
|
|
294
|
+
}),
|
|
295
|
+
onLabelClick: handleOnLabelClick,
|
|
296
|
+
classes: {
|
|
297
|
+
root: classes.root,
|
|
298
|
+
content: classes.content
|
|
299
|
+
},
|
|
300
|
+
...other
|
|
301
|
+
}, nodeId);
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region src/workflow/menus/WorkflowTreeMenu.jsx
|
|
306
|
+
const useStyles$8 = (0, __material_ui_core.makeStyles)((theme) => ({
|
|
307
|
+
root: {
|
|
308
|
+
marginBottom: theme.spacing(1.75),
|
|
309
|
+
borderTop: (props) => props.treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? `1px solid ${theme.palette.grey[200]}` : ""
|
|
310
|
+
},
|
|
311
|
+
noChildrenContainer: { borderBottom: (props) => props.treeViewMode === require_EnvironmentRibbon.TreeViewModeEnums.Compact ? `1px solid ${theme.palette.grey[200]}` : "" }
|
|
312
|
+
}));
|
|
313
|
+
const WorkflowTreeMenu = (props) => {
|
|
314
|
+
const { menuItems, onSelectNode, onDropNode, menuIndex, selectedNodeId, selectedNodeParentId, sidebarExpanded, treeViewMode, childrenKey = "children" } = props;
|
|
315
|
+
const [expanded, setExpanded] = (0, react.useState)(null);
|
|
316
|
+
const [isCurrentActiveTree, setIsCurrentActiveTree] = (0, react.useState)(false);
|
|
317
|
+
const [selectedNodeIsHidden, setSelectedNodeIsHidden] = (0, react.useState)(false);
|
|
318
|
+
const [tree, setTree] = (0, react.useState)(menuItems);
|
|
319
|
+
const theme = (0, __material_ui_core.useTheme)();
|
|
320
|
+
const classes = useStyles$8(props);
|
|
321
|
+
const handleSelectedNode = (0, react.useCallback)((e, value) => {
|
|
322
|
+
const selectedNode = require_UtilitySideBar.searchTree(tree, value);
|
|
323
|
+
if (onSelectNode) {
|
|
324
|
+
onSelectNode(selectedNode, menuIndex);
|
|
325
|
+
setSelectedNodeIsHidden(false);
|
|
326
|
+
}
|
|
327
|
+
}, [
|
|
328
|
+
tree,
|
|
329
|
+
menuIndex,
|
|
330
|
+
onSelectNode
|
|
331
|
+
]);
|
|
332
|
+
const renderTree = (0, react.useCallback)((node, depth = 1) => {
|
|
333
|
+
var _node$properties, _node$properties2, _node$properties3, _node$properties4, _node$properties5, _node$properties6, _node$properties7, _node$properties$cond, _node$properties8, _node$properties9, _node$properties10, _node$properties11, _node$properties12, _node$properties13, _node$childrenKey, _node$properties19, _node$childrenKey2, _node$properties20, _node$childrenKey3, _node$properties21, _node$childrenKey4;
|
|
334
|
+
let label = ((_node$properties = node.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.nodeLabel) || ((_node$properties2 = node.properties) === null || _node$properties2 === void 0 ? void 0 : _node$properties2.name);
|
|
335
|
+
let subLabel = (_node$properties3 = node.properties) === null || _node$properties3 === void 0 ? void 0 : _node$properties3.nodeSubLabel;
|
|
336
|
+
let iconName = (_node$properties4 = node.properties) === null || _node$properties4 === void 0 || (_node$properties4 = _node$properties4.defaultIcon) === null || _node$properties4 === void 0 ? void 0 : _node$properties4.name;
|
|
337
|
+
let iconType = (_node$properties5 = node.properties) === null || _node$properties5 === void 0 || (_node$properties5 = _node$properties5.defaultIcon) === null || _node$properties5 === void 0 ? void 0 : _node$properties5.type;
|
|
338
|
+
let conditionalIconName = ((_node$properties6 = node.properties) === null || _node$properties6 === void 0 || (_node$properties6 = _node$properties6.conditionalIcon) === null || _node$properties6 === void 0 ? void 0 : _node$properties6.name) || "";
|
|
339
|
+
let conditionalIconType = ((_node$properties7 = node.properties) === null || _node$properties7 === void 0 || (_node$properties7 = _node$properties7.conditionalIcon) === null || _node$properties7 === void 0 ? void 0 : _node$properties7.name) ? (_node$properties$cond = node.properties.conditionalIcon) === null || _node$properties$cond === void 0 ? void 0 : _node$properties$cond.type : "";
|
|
340
|
+
let conditionalIconColor = ((_node$properties8 = node.properties) === null || _node$properties8 === void 0 || (_node$properties8 = _node$properties8.conditionalIcon) === null || _node$properties8 === void 0 ? void 0 : _node$properties8.name) ? (_node$properties9 = node.properties) === null || _node$properties9 === void 0 || (_node$properties9 = _node$properties9.conditionalIcon) === null || _node$properties9 === void 0 ? void 0 : _node$properties9.color : "";
|
|
341
|
+
let nodeId = node.id;
|
|
342
|
+
let iconColor = ((_node$properties10 = node.properties) === null || _node$properties10 === void 0 ? void 0 : _node$properties10.conditionalIconName) ? (_node$properties11 = node.properties) === null || _node$properties11 === void 0 ? void 0 : _node$properties11.conditionalIconColor : (_node$properties12 = node.properties) === null || _node$properties12 === void 0 || (_node$properties12 = _node$properties12.defaultIcon) === null || _node$properties12 === void 0 || (_node$properties12 = _node$properties12.color) === null || _node$properties12 === void 0 ? void 0 : _node$properties12.hex;
|
|
343
|
+
let aggregateThresholdId = ((_node$properties13 = node.properties) === null || _node$properties13 === void 0 ? void 0 : _node$properties13.aggregateThresholdId) || "";
|
|
344
|
+
if (node.isGroupNode) {
|
|
345
|
+
var _node$properties14, _node$properties15, _node$properties16, _node$properties17, _node$properties18;
|
|
346
|
+
label = (_node$properties14 = node.properties) === null || _node$properties14 === void 0 ? void 0 : _node$properties14.label;
|
|
347
|
+
subLabel = (_node$properties15 = node.properties) === null || _node$properties15 === void 0 ? void 0 : _node$properties15.subLabel;
|
|
348
|
+
iconName = (_node$properties16 = node.properties) === null || _node$properties16 === void 0 || (_node$properties16 = _node$properties16.icon) === null || _node$properties16 === void 0 ? void 0 : _node$properties16.name;
|
|
349
|
+
iconType = (_node$properties17 = node.properties) === null || _node$properties17 === void 0 || (_node$properties17 = _node$properties17.icon) === null || _node$properties17 === void 0 ? void 0 : _node$properties17.type;
|
|
350
|
+
iconColor = (_node$properties18 = node.properties) === null || _node$properties18 === void 0 || (_node$properties18 = _node$properties18.icon) === null || _node$properties18 === void 0 || (_node$properties18 = _node$properties18.color) === null || _node$properties18 === void 0 ? void 0 : _node$properties18.hex;
|
|
351
|
+
}
|
|
352
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(WorkflowTreeMenuItem, {
|
|
353
|
+
nodeId,
|
|
354
|
+
label,
|
|
355
|
+
subLabel,
|
|
356
|
+
iconName,
|
|
357
|
+
iconType,
|
|
358
|
+
conditionalIconName,
|
|
359
|
+
conditionalIconType,
|
|
360
|
+
conditionalIconColor,
|
|
361
|
+
parentId: node.parentId,
|
|
362
|
+
iconColor,
|
|
363
|
+
onNodeSelect: handleSelectedNode,
|
|
364
|
+
selectedNodeId,
|
|
365
|
+
isSelectedNode: selectedNodeId === node.id,
|
|
366
|
+
showRightBorderColor: selectedNodeIsHidden && isCurrentActiveTree && require_UtilitySideBar.getNodeIdForRightBorder(expanded, tree, selectedNodeParentId) === node.id,
|
|
367
|
+
isCurrentActiveTree,
|
|
368
|
+
sidebarExpanded,
|
|
369
|
+
depth,
|
|
370
|
+
hideExpansion: !!!((_node$childrenKey = node[childrenKey]) === null || _node$childrenKey === void 0 ? void 0 : _node$childrenKey.length),
|
|
371
|
+
node,
|
|
372
|
+
onDropNode,
|
|
373
|
+
treeViewMode,
|
|
374
|
+
menuIndex,
|
|
375
|
+
aggregateThresholdId,
|
|
376
|
+
children: [
|
|
377
|
+
((_node$properties19 = node.properties) === null || _node$properties19 === void 0 ? void 0 : _node$properties19.lazyLoad) && !!!((_node$childrenKey2 = node[childrenKey]) === null || _node$childrenKey2 === void 0 ? void 0 : _node$childrenKey2.length) && !node.completedLoadingChildren && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.CircularProgress, {
|
|
378
|
+
size: 12,
|
|
379
|
+
style: { marginLeft: (depth || 1) * theme.spacing(1) }
|
|
380
|
+
}),
|
|
381
|
+
((_node$properties20 = node.properties) === null || _node$properties20 === void 0 ? void 0 : _node$properties20.lazyLoad) && !!!((_node$childrenKey3 = node[childrenKey]) === null || _node$childrenKey3 === void 0 ? void 0 : _node$childrenKey3.length) && node.completedLoadingChildren && sidebarExpanded && !node.errorRetrievingChildren && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
382
|
+
className: classes.noChildrenContainer,
|
|
383
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
|
|
384
|
+
variant: "caption",
|
|
385
|
+
style: {
|
|
386
|
+
marginLeft: (depth || 1) * theme.spacing(3),
|
|
387
|
+
fontWeight: 400
|
|
388
|
+
},
|
|
389
|
+
children: "No Children"
|
|
390
|
+
})
|
|
391
|
+
}),
|
|
392
|
+
((_node$properties21 = node.properties) === null || _node$properties21 === void 0 ? void 0 : _node$properties21.lazyLoad) && node.completedLoadingChildren && sidebarExpanded && node.errorRetrievingChildren && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
393
|
+
className: classes.noChildrenContainer,
|
|
394
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
|
|
395
|
+
variant: "caption",
|
|
396
|
+
style: {
|
|
397
|
+
marginLeft: (depth || 1) * theme.spacing(3),
|
|
398
|
+
fontWeight: 400
|
|
399
|
+
},
|
|
400
|
+
children: `Error Retrieving ${!!((_node$childrenKey4 = node[childrenKey]) === null || _node$childrenKey4 === void 0 ? void 0 : _node$childrenKey4.length) ? `Additional ` : ""}Children`
|
|
401
|
+
})
|
|
402
|
+
}),
|
|
403
|
+
Array.isArray(node[childrenKey]) ? node[childrenKey].map((n, i) => renderTree(n, depth + 1)) : null
|
|
404
|
+
]
|
|
405
|
+
}, nodeId);
|
|
406
|
+
}, [
|
|
407
|
+
handleSelectedNode,
|
|
408
|
+
selectedNodeId,
|
|
409
|
+
selectedNodeIsHidden,
|
|
410
|
+
isCurrentActiveTree,
|
|
411
|
+
sidebarExpanded,
|
|
412
|
+
expanded,
|
|
413
|
+
tree,
|
|
414
|
+
selectedNodeParentId,
|
|
415
|
+
theme,
|
|
416
|
+
classes,
|
|
417
|
+
onDropNode,
|
|
418
|
+
treeViewMode,
|
|
419
|
+
menuIndex,
|
|
420
|
+
childrenKey
|
|
421
|
+
]);
|
|
422
|
+
const handleNodeExpansion = (0, react.useCallback)(async (evt, nodeIds) => {
|
|
423
|
+
const treeCopy = (0, lodash.cloneDeep)(tree);
|
|
424
|
+
setExpanded(nodeIds);
|
|
425
|
+
const parentNode = require_UtilitySideBar.searchTree(treeCopy, selectedNodeParentId);
|
|
426
|
+
const initialAllParentNodeIds = selectedNodeParentId ? [selectedNodeParentId] : [];
|
|
427
|
+
const allParentNodeIds = require_UtilitySideBar.findAllParentIds(treeCopy, parentNode, initialAllParentNodeIds);
|
|
428
|
+
const selectedNodeShown = allParentNodeIds.every((id) => nodeIds.includes(id));
|
|
429
|
+
if (isCurrentActiveTree && allParentNodeIds.length && !selectedNodeShown) setSelectedNodeIsHidden(true);
|
|
430
|
+
else setSelectedNodeIsHidden(false);
|
|
431
|
+
}, [
|
|
432
|
+
isCurrentActiveTree,
|
|
433
|
+
tree,
|
|
434
|
+
selectedNodeParentId
|
|
435
|
+
]);
|
|
436
|
+
const getExpandedRecursively = (0, react.useCallback)((tree$1) => {
|
|
437
|
+
if (!tree$1) return [];
|
|
438
|
+
return tree$1.reduce((expandedIds, item) => {
|
|
439
|
+
var _item$childrenKey;
|
|
440
|
+
if (item === null || item === void 0 ? void 0 : item.isExpanded) expandedIds.push(item.id);
|
|
441
|
+
if (item && ((_item$childrenKey = item[childrenKey]) === null || _item$childrenKey === void 0 ? void 0 : _item$childrenKey.length)) expandedIds = expandedIds.concat(getExpandedRecursively(item[childrenKey]));
|
|
442
|
+
return expandedIds;
|
|
443
|
+
}, []);
|
|
444
|
+
}, [childrenKey]);
|
|
445
|
+
(0, react.useEffect)(() => {
|
|
446
|
+
setTree(menuItems);
|
|
447
|
+
}, [menuItems]);
|
|
448
|
+
(0, react.useEffect)(() => {
|
|
449
|
+
if (!tree) return;
|
|
450
|
+
let expanded$1 = [];
|
|
451
|
+
if (tree === null || tree === void 0 ? void 0 : tree.isExpanded) expanded$1.push(tree.id);
|
|
452
|
+
expanded$1 = expanded$1.concat(getExpandedRecursively(tree[childrenKey]));
|
|
453
|
+
setExpanded(expanded$1);
|
|
454
|
+
}, [
|
|
455
|
+
getExpandedRecursively,
|
|
456
|
+
tree,
|
|
457
|
+
childrenKey
|
|
458
|
+
]);
|
|
459
|
+
(0, react.useEffect)(() => {
|
|
460
|
+
if (!!require_UtilitySideBar.searchTree(tree, selectedNodeId)) setIsCurrentActiveTree(true);
|
|
461
|
+
else setIsCurrentActiveTree(false);
|
|
462
|
+
}, [tree, selectedNodeId]);
|
|
463
|
+
if (!expanded) return null;
|
|
464
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_lab_TreeView.default, {
|
|
465
|
+
className: classes.root,
|
|
466
|
+
defaultCollapseIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.FluentIcon, {
|
|
467
|
+
size: "small",
|
|
468
|
+
component: __fluentui_react_icons.CaretUpSolid8Icon,
|
|
469
|
+
style: {
|
|
470
|
+
color: (0, __material_ui_core.lighten)(theme.palette.primary.main, .5),
|
|
471
|
+
width: theme.spacing(1.5),
|
|
472
|
+
height: theme.spacing(1.5)
|
|
473
|
+
}
|
|
474
|
+
}),
|
|
475
|
+
expanded: expanded || [],
|
|
476
|
+
onNodeToggle: handleNodeExpansion,
|
|
477
|
+
defaultExpandIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.FluentIcon, {
|
|
478
|
+
size: "small",
|
|
479
|
+
component: __fluentui_react_icons.CaretDownSolid8Icon,
|
|
480
|
+
style: {
|
|
481
|
+
color: (0, __material_ui_core.lighten)(theme.palette.primary.main, .5),
|
|
482
|
+
width: theme.spacing(1.5),
|
|
483
|
+
height: theme.spacing(1.5)
|
|
484
|
+
}
|
|
485
|
+
}),
|
|
486
|
+
selected: selectedNodeId,
|
|
487
|
+
children: tree && renderTree(tree)
|
|
488
|
+
}, tree);
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
//#endregion
|
|
492
|
+
//#region src/enums/workflowEnums.ts
|
|
493
|
+
let UnitTypeEnums = /* @__PURE__ */ function(UnitTypeEnums$1) {
|
|
494
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Scope"] = 0] = "Scope";
|
|
495
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Sequence"] = 1] = "Sequence";
|
|
496
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Group"] = 2] = "Group";
|
|
497
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Fork"] = 3] = "Fork";
|
|
498
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Branch"] = 4] = "Branch";
|
|
499
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Retry"] = 5] = "Retry";
|
|
500
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Attempt"] = 6] = "Attempt";
|
|
501
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Iterator"] = 7] = "Iterator";
|
|
502
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Loop"] = 8] = "Loop";
|
|
503
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Break"] = 9] = "Break";
|
|
504
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Block"] = 10] = "Block";
|
|
505
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Adaptor"] = 11] = "Adaptor";
|
|
506
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Code"] = 12] = "Code";
|
|
507
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Pause"] = 13] = "Pause";
|
|
508
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Fault"] = 14] = "Fault";
|
|
509
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Trace"] = 15] = "Trace";
|
|
510
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Catcher"] = 16] = "Catcher";
|
|
511
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Thrower"] = 17] = "Thrower";
|
|
512
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Plan"] = 18] = "Plan";
|
|
513
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Task"] = 19] = "Task";
|
|
514
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Sprint"] = 20] = "Sprint";
|
|
515
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Auth"] = 21] = "Auth";
|
|
516
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Rest"] = 22] = "Rest";
|
|
517
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Fuse"] = 23] = "Fuse";
|
|
518
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Mail"] = 24] = "Mail";
|
|
519
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Sms"] = 25] = "Sms";
|
|
520
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Publisher"] = 26] = "Publisher";
|
|
521
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Fiber"] = 27] = "Fiber";
|
|
522
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Mapper"] = 28] = "Mapper";
|
|
523
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Section"] = 29] = "Section";
|
|
524
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Scene"] = 30] = "Scene";
|
|
525
|
+
UnitTypeEnums$1[UnitTypeEnums$1["Placeholder"] = 100] = "Placeholder";
|
|
526
|
+
return UnitTypeEnums$1;
|
|
527
|
+
}({});
|
|
528
|
+
let UnitStateType = /* @__PURE__ */ function(UnitStateType$1) {
|
|
529
|
+
UnitStateType$1[UnitStateType$1["Initial"] = 0] = "Initial";
|
|
530
|
+
UnitStateType$1[UnitStateType$1["Started"] = 1] = "Started";
|
|
531
|
+
UnitStateType$1[UnitStateType$1["Completed"] = 2] = "Completed";
|
|
532
|
+
UnitStateType$1[UnitStateType$1["Cancelled"] = 3] = "Cancelled";
|
|
533
|
+
UnitStateType$1[UnitStateType$1["Failed"] = 4] = "Failed";
|
|
534
|
+
return UnitStateType$1;
|
|
535
|
+
}({});
|
|
536
|
+
|
|
537
|
+
//#endregion
|
|
538
|
+
//#region src/utilities/workflow/workflowUtilities.js
|
|
539
|
+
const getWorkflowTaskIconByActionType = (type) => {
|
|
540
|
+
let iconName = "ClipboardListIcon";
|
|
541
|
+
switch (type) {
|
|
542
|
+
case UnitTypeEnums.Rest:
|
|
543
|
+
iconName = "CloudImportExportIcon";
|
|
544
|
+
break;
|
|
545
|
+
case UnitTypeEnums.Sms:
|
|
546
|
+
iconName = "MessageFillIcon";
|
|
547
|
+
break;
|
|
548
|
+
case UnitTypeEnums.Mail:
|
|
549
|
+
iconName = "MailSolidIcon";
|
|
550
|
+
break;
|
|
551
|
+
case UnitTypeEnums.Scene:
|
|
552
|
+
iconName = "ReleaseGateIcon";
|
|
553
|
+
break;
|
|
554
|
+
default: break;
|
|
555
|
+
}
|
|
556
|
+
return iconName;
|
|
557
|
+
};
|
|
558
|
+
const getWorkflowTaskStateIconByStateType = (type) => {
|
|
559
|
+
let iconName = "";
|
|
560
|
+
switch (type) {
|
|
561
|
+
case UnitStateType.Initial:
|
|
562
|
+
iconName = "StopwatchIcon";
|
|
563
|
+
break;
|
|
564
|
+
case UnitStateType.Started:
|
|
565
|
+
iconName = "ProgressLoopOuterIcon";
|
|
566
|
+
break;
|
|
567
|
+
case UnitStateType.Completed:
|
|
568
|
+
iconName = "CheckMarkIcon";
|
|
569
|
+
break;
|
|
570
|
+
case UnitStateType.Cancelled:
|
|
571
|
+
iconName = "CancelIcon";
|
|
572
|
+
break;
|
|
573
|
+
case UnitStateType.Failed:
|
|
574
|
+
default:
|
|
575
|
+
iconName = "ErrorBadgeIcon";
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
return iconName;
|
|
579
|
+
};
|
|
580
|
+
const getWorkflowTaskStateIconColorByStateType = (type) => {
|
|
581
|
+
let color = "";
|
|
582
|
+
switch (type) {
|
|
583
|
+
case UnitStateType.Initial:
|
|
584
|
+
color = "#ffa726";
|
|
585
|
+
break;
|
|
586
|
+
case UnitStateType.Started:
|
|
587
|
+
color = "#29b6f6";
|
|
588
|
+
break;
|
|
589
|
+
case UnitStateType.Completed:
|
|
590
|
+
color = "#66bb6a";
|
|
591
|
+
break;
|
|
592
|
+
case UnitStateType.Cancelled:
|
|
593
|
+
color = "#f44336";
|
|
594
|
+
break;
|
|
595
|
+
case UnitStateType.Failed:
|
|
596
|
+
default:
|
|
597
|
+
color = "#f44336";
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
600
|
+
return color;
|
|
601
|
+
};
|
|
602
|
+
const SELECTABLE_NODE_TYPES = [
|
|
603
|
+
UnitTypeEnums.Sms,
|
|
604
|
+
UnitTypeEnums.Mail,
|
|
605
|
+
UnitTypeEnums.Scene
|
|
606
|
+
];
|
|
607
|
+
const transformWorkflowPlayTree = (node) => {
|
|
608
|
+
if (!node) return null;
|
|
609
|
+
const label = node.name || "";
|
|
610
|
+
const expanded = "expanded";
|
|
611
|
+
const startedAt = node.startedAt ? formatDateToLocaleString(node.startedAt, luxon.DateTime.DATETIME_SHORT) : null;
|
|
612
|
+
const updatedNode = {
|
|
613
|
+
id: node.id,
|
|
614
|
+
parentId: node.parentId,
|
|
615
|
+
isExpanded: expanded,
|
|
616
|
+
isSelectable: !!node.type && SELECTABLE_NODE_TYPES.includes(node.type),
|
|
617
|
+
properties: {
|
|
618
|
+
defaultIcon: {
|
|
619
|
+
type: "",
|
|
620
|
+
name: getWorkflowTaskIconByActionType(node.type),
|
|
621
|
+
color: ""
|
|
622
|
+
},
|
|
623
|
+
conditionalIcon: {
|
|
624
|
+
type: "",
|
|
625
|
+
name: !!node.type && getWorkflowTaskStateIconByStateType(node.state),
|
|
626
|
+
color: !!node.type && getWorkflowTaskStateIconColorByStateType(node.state)
|
|
627
|
+
},
|
|
628
|
+
nodeLabel: label,
|
|
629
|
+
nodeSubLabel: node.parentId ? node.description : startedAt || "",
|
|
630
|
+
state: node.state,
|
|
631
|
+
type: node.type,
|
|
632
|
+
interruptPages: node.interruptPages,
|
|
633
|
+
playSceneId: node.playSceneId,
|
|
634
|
+
startedAt: node.startedAt,
|
|
635
|
+
endedAt: node.endedAt,
|
|
636
|
+
dueDate: node.dueDate,
|
|
637
|
+
variables: node.variables,
|
|
638
|
+
sms: node.type === UnitTypeEnums.Sms ? {
|
|
639
|
+
templateData: node.templateData,
|
|
640
|
+
to: node.to,
|
|
641
|
+
from: node.from,
|
|
642
|
+
body: node.body
|
|
643
|
+
} : null,
|
|
644
|
+
email: node.type === UnitTypeEnums.Mail ? {
|
|
645
|
+
templateData: node.templateData,
|
|
646
|
+
to: node.to,
|
|
647
|
+
from: node.from,
|
|
648
|
+
subject: node.subject,
|
|
649
|
+
text: node.text,
|
|
650
|
+
html: node.html
|
|
651
|
+
} : null
|
|
652
|
+
},
|
|
653
|
+
children: []
|
|
654
|
+
};
|
|
655
|
+
for (const child of node.children) {
|
|
656
|
+
const updatedChild = transformWorkflowPlayTree(child);
|
|
657
|
+
if (updatedChild) updatedNode.children.push(updatedChild);
|
|
658
|
+
}
|
|
659
|
+
return updatedNode;
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
//#endregion
|
|
663
|
+
//#region src/stores/workflowStore.ts
|
|
664
|
+
const useWorkflowStore = (0, zustand.create)()((0, zustand_middleware.devtools)((set) => ({
|
|
665
|
+
title: "",
|
|
666
|
+
setWorkflowToolbarTitle: (title) => set((state) => ({ title })),
|
|
667
|
+
taskDataMap: {},
|
|
668
|
+
updateTaskDataMap: (taskId, pageId, data) => set((state) => {
|
|
669
|
+
const updatedTaskDataMap = { ...state.taskDataMap };
|
|
670
|
+
if (updatedTaskDataMap[taskId]) if (updatedTaskDataMap[taskId][pageId]) updatedTaskDataMap[taskId][pageId] = data;
|
|
671
|
+
else updatedTaskDataMap[taskId] = { [pageId]: data };
|
|
672
|
+
else updatedTaskDataMap[taskId] = { [pageId]: data };
|
|
673
|
+
return { taskDataMap: updatedTaskDataMap };
|
|
674
|
+
}),
|
|
675
|
+
setTaskDataMap: (taskId, data) => set((state) => {
|
|
676
|
+
const updatedTaskDataMap = { ...state.taskDataMap };
|
|
677
|
+
updatedTaskDataMap[taskId] = data;
|
|
678
|
+
return { taskDataMap: updatedTaskDataMap };
|
|
679
|
+
})
|
|
680
|
+
})));
|
|
681
|
+
|
|
682
|
+
//#endregion
|
|
683
|
+
//#region src/workflow/components/WorkflowTaskFlow.jsx
|
|
684
|
+
const useStyles$7 = (0, __material_ui_core.makeStyles)((theme) => ({
|
|
685
|
+
root: { display: "flex" },
|
|
686
|
+
taskInfoBlock: {
|
|
687
|
+
backgroundColor: (0, __material_ui_core.lighten)(theme.palette.primary.main, .3),
|
|
688
|
+
width: theme.spacing(25),
|
|
689
|
+
color: theme.palette.common.white,
|
|
690
|
+
padding: `${theme.spacing(.5)}px ${theme.spacing(2.25)}px`
|
|
691
|
+
},
|
|
692
|
+
description: {
|
|
693
|
+
textOverflow: "ellipsis",
|
|
694
|
+
overflow: "hidden",
|
|
695
|
+
whiteSpace: "nowrap"
|
|
696
|
+
},
|
|
697
|
+
button: {
|
|
698
|
+
backgroundColor: theme.palette.primary.main,
|
|
699
|
+
color: theme.palette.common.white,
|
|
700
|
+
borderRadius: 0,
|
|
701
|
+
"&:hover": { backgroundColor: theme.palette.primary.dark },
|
|
702
|
+
minWidth: theme.spacing(3)
|
|
703
|
+
},
|
|
704
|
+
stepperContainer: {
|
|
705
|
+
width: "100%",
|
|
706
|
+
padding: 0,
|
|
707
|
+
marginTop: `-${theme.spacing(1.5)}px`,
|
|
708
|
+
background: "none"
|
|
709
|
+
},
|
|
710
|
+
stepIconRoot: {
|
|
711
|
+
zIndex: 1,
|
|
712
|
+
color: theme.palette.primary.main,
|
|
713
|
+
width: theme.spacing(3),
|
|
714
|
+
height: theme.spacing(3),
|
|
715
|
+
display: "flex",
|
|
716
|
+
borderRadius: "50%",
|
|
717
|
+
justifyContent: "center",
|
|
718
|
+
alignItems: "center",
|
|
719
|
+
"&.active": {
|
|
720
|
+
backgroundColor: theme.palette.primary.main,
|
|
721
|
+
color: theme.palette.common.white
|
|
722
|
+
},
|
|
723
|
+
"&.completed": {
|
|
724
|
+
backgroundColor: theme.palette.common.white,
|
|
725
|
+
color: theme.palette.success.main
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
stepLabel: { "& > .MuiStepLabel-label": { marginTop: theme.spacing(.5) } }
|
|
729
|
+
}));
|
|
730
|
+
const ColorLibConnector = (0, __material_ui_core.withStyles)((theme) => ({
|
|
731
|
+
connectorRoot: {
|
|
732
|
+
top: 10,
|
|
733
|
+
left: "calc(-50% + 12px)",
|
|
734
|
+
right: "calc(50% + 12px)"
|
|
735
|
+
},
|
|
736
|
+
alternativeLabel: {
|
|
737
|
+
left: "calc(-50% + 12px)",
|
|
738
|
+
right: "calc(50% + 12px)"
|
|
739
|
+
},
|
|
740
|
+
active: { "& $line": { borderColor: theme.palette.primary.main } },
|
|
741
|
+
completed: { "& $line": { borderColor: theme.palette.primary.main } },
|
|
742
|
+
line: {
|
|
743
|
+
borderTopWidth: 3,
|
|
744
|
+
borderRadius: 1
|
|
745
|
+
}
|
|
746
|
+
}))(__material_ui_core.StepConnector);
|
|
747
|
+
const ColorlibStepIcon = (props) => {
|
|
748
|
+
const { active, completed } = props;
|
|
749
|
+
const classes = useStyles$7();
|
|
750
|
+
const rootClass = `${classes.stepIconRoot} ${active ? "active" : ""} ${completed ? "completed" : ""}`;
|
|
751
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
752
|
+
className: rootClass,
|
|
753
|
+
children: completed ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_icons_CheckCircle.default, {}) : active ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_icons_RadioButtonChecked.default, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_icons_RadioButtonUnchecked.default, {})
|
|
754
|
+
});
|
|
755
|
+
};
|
|
756
|
+
const WorkflowTaskFlow = (props) => {
|
|
757
|
+
var _task$properties, _task$properties2;
|
|
758
|
+
const { steps = [], handleClick = () => {}, task } = props;
|
|
759
|
+
const classes = useStyles$7();
|
|
760
|
+
const [activeStep, setActiveStep] = (0, react.useState)(0);
|
|
761
|
+
const handleStepClick = (stepIndex) => {
|
|
762
|
+
handleClick(stepIndex);
|
|
763
|
+
setActiveStep(stepIndex);
|
|
764
|
+
};
|
|
765
|
+
const handleOnLeftButtonClick = (0, react.useCallback)(() => {
|
|
766
|
+
if (activeStep > 0) {
|
|
767
|
+
const newIndex = activeStep - 1;
|
|
768
|
+
handleClick(newIndex);
|
|
769
|
+
setActiveStep(newIndex);
|
|
770
|
+
}
|
|
771
|
+
}, [activeStep, handleClick]);
|
|
772
|
+
const handleOnRightButtonClick = (0, react.useCallback)(() => {
|
|
773
|
+
if (activeStep !== (steps === null || steps === void 0 ? void 0 : steps.length) - 1) {
|
|
774
|
+
const newIndex = activeStep + 1;
|
|
775
|
+
handleClick(newIndex);
|
|
776
|
+
setActiveStep(newIndex);
|
|
777
|
+
}
|
|
778
|
+
}, [
|
|
779
|
+
steps,
|
|
780
|
+
activeStep,
|
|
781
|
+
handleClick
|
|
782
|
+
]);
|
|
783
|
+
const getFormattedDueDate = (0, react.useCallback)((date) => {
|
|
784
|
+
if (!date) return "";
|
|
785
|
+
const shortDate = formatDateToLocaleString(date, luxon.DateTime.DATE_SHORT);
|
|
786
|
+
return `Due ${shortDate}`;
|
|
787
|
+
}, []);
|
|
788
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
789
|
+
className: classes.root,
|
|
790
|
+
children: [
|
|
791
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
792
|
+
className: classes.taskInfoBlock,
|
|
793
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
794
|
+
className: classes.description,
|
|
795
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
|
|
796
|
+
variant: "caption",
|
|
797
|
+
children: (task === null || task === void 0 || (_task$properties = task.properties) === null || _task$properties === void 0 ? void 0 : _task$properties.nodeLabel) || ""
|
|
798
|
+
})
|
|
799
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
800
|
+
className: classes.description,
|
|
801
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
|
|
802
|
+
variant: "caption",
|
|
803
|
+
style: { fontWeight: 500 },
|
|
804
|
+
children: getFormattedDueDate(task === null || task === void 0 || (_task$properties2 = task.properties) === null || _task$properties2 === void 0 ? void 0 : _task$properties2.dueDate)
|
|
805
|
+
})
|
|
806
|
+
})]
|
|
807
|
+
}),
|
|
808
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Button, {
|
|
809
|
+
className: classes.button,
|
|
810
|
+
onClick: handleOnLeftButtonClick,
|
|
811
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.FluentIcon, { component: __fluentui_react_icons.ChevronLeftIcon })
|
|
812
|
+
}),
|
|
813
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Stepper, {
|
|
814
|
+
alternativeLabel: true,
|
|
815
|
+
activeStep,
|
|
816
|
+
connector: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ColorLibConnector, {}),
|
|
817
|
+
className: classes.stepperContainer,
|
|
818
|
+
children: steps.map((step, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Step, {
|
|
819
|
+
onClick: () => handleStepClick(index),
|
|
820
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.StepLabel, {
|
|
821
|
+
classes: { labelContainer: classes.stepLabel },
|
|
822
|
+
StepIconComponent: ColorlibStepIcon,
|
|
823
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Typography, {
|
|
824
|
+
variant: "caption",
|
|
825
|
+
children: step.label
|
|
826
|
+
})
|
|
827
|
+
})
|
|
828
|
+
}, step.label))
|
|
829
|
+
}),
|
|
830
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Button, {
|
|
831
|
+
className: classes.button,
|
|
832
|
+
onClick: handleOnRightButtonClick,
|
|
833
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.FluentIcon, { component: __fluentui_react_icons.ChevronRightIcon })
|
|
834
|
+
})
|
|
835
|
+
]
|
|
836
|
+
});
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
//#endregion
|
|
840
|
+
//#region src/UI/loading/LinearProgress.jsx
|
|
841
|
+
const useStyles$6 = (0, __material_ui_core_styles.makeStyles)((theme) => ({
|
|
842
|
+
root: { backgroundColor: theme.palette.grey[300] },
|
|
843
|
+
barColorPrimary: { backgroundColor: theme.palette.primary.main },
|
|
844
|
+
barColorSecondary: { backgroundColor: theme.palette.secondary.main },
|
|
845
|
+
barColorSuccess: { backgroundColor: theme.palette.success.main },
|
|
846
|
+
barColorError: { backgroundColor: theme.palette.error.main },
|
|
847
|
+
barColorWarning: { backgroundColor: theme.palette.warning.main },
|
|
848
|
+
barColorInfo: { backgroundColor: theme.palette.info.main },
|
|
849
|
+
customColorBar: (props) => ({ backgroundColor: props.color })
|
|
850
|
+
}));
|
|
851
|
+
const LinearProgress = (props) => {
|
|
852
|
+
const { variant = "indeterminate", value, color = "primary",...otherProps } = props;
|
|
853
|
+
const isPredefinedColor = [
|
|
854
|
+
"primary",
|
|
855
|
+
"secondary",
|
|
856
|
+
"success",
|
|
857
|
+
"error",
|
|
858
|
+
"warning",
|
|
859
|
+
"info"
|
|
860
|
+
].includes(color);
|
|
861
|
+
const classes = useStyles$6({ color });
|
|
862
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.LinearProgress, {
|
|
863
|
+
...otherProps,
|
|
864
|
+
variant,
|
|
865
|
+
value,
|
|
866
|
+
classes: {
|
|
867
|
+
root: classes.root,
|
|
868
|
+
bar: (0, clsx.default)({
|
|
869
|
+
[classes.barColorPrimary]: color === "primary",
|
|
870
|
+
[classes.barColorSecondary]: color === "secondary",
|
|
871
|
+
[classes.barColorSuccess]: color === "success",
|
|
872
|
+
[classes.barColorError]: color === "error",
|
|
873
|
+
[classes.barColorWarning]: color === "warning",
|
|
874
|
+
[classes.barColorInfo]: color === "info",
|
|
875
|
+
[classes.customColorBar]: !isPredefinedColor
|
|
876
|
+
})
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
//#endregion
|
|
882
|
+
//#region src/UI/loading/CircularProgress.jsx
|
|
883
|
+
const useStyles$5 = (0, __material_ui_core_styles.makeStyles)((theme) => ({
|
|
884
|
+
circleColorPrimary: { color: theme.palette.primary.main },
|
|
885
|
+
circleColorSecondary: { color: theme.palette.secondary.main },
|
|
886
|
+
circleColorSuccess: { color: theme.palette.success.main },
|
|
887
|
+
circleColorError: { color: theme.palette.error.main },
|
|
888
|
+
circleColorWarning: { color: theme.palette.warning.main },
|
|
889
|
+
circleColorInfo: { color: theme.palette.info.main },
|
|
890
|
+
customColorCircle: (props) => ({ backgroundColor: props.color })
|
|
891
|
+
}));
|
|
892
|
+
const CircularProgress = (props) => {
|
|
893
|
+
const { variant = "indeterminate", value, color = "primary",...otherProps } = props;
|
|
894
|
+
const isPredefinedColor = [
|
|
895
|
+
"primary",
|
|
896
|
+
"secondary",
|
|
897
|
+
"success",
|
|
898
|
+
"error",
|
|
899
|
+
"warning",
|
|
900
|
+
"info"
|
|
901
|
+
].includes(color);
|
|
902
|
+
const classes = useStyles$5({ color });
|
|
903
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.CircularProgress, {
|
|
904
|
+
...otherProps,
|
|
905
|
+
variant,
|
|
906
|
+
value,
|
|
907
|
+
classes: {
|
|
908
|
+
root: classes.root,
|
|
909
|
+
circle: (0, clsx.default)({
|
|
910
|
+
[classes.circleColorPrimary]: color === "primary",
|
|
911
|
+
[classes.circleColorSecondary]: color === "secondary",
|
|
912
|
+
[classes.circleColorSuccess]: color === "success",
|
|
913
|
+
[classes.circleColorError]: color === "error",
|
|
914
|
+
[classes.circleColorWarning]: color === "warning",
|
|
915
|
+
[classes.circleColorInfo]: color === "info",
|
|
916
|
+
[classes.customColorCircle]: !isPredefinedColor
|
|
917
|
+
})
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
};
|
|
921
|
+
|
|
922
|
+
//#endregion
|
|
923
|
+
//#region src/workflow/WorkflowUiInterruptContent.jsx
|
|
924
|
+
const useStyles$4 = (0, __material_ui_core.makeStyles)((theme) => ({
|
|
925
|
+
root: {},
|
|
926
|
+
loadingContent: {
|
|
927
|
+
flex: 1,
|
|
928
|
+
display: "flex",
|
|
929
|
+
flexDirection: "column",
|
|
930
|
+
alignItems: "center",
|
|
931
|
+
justifyContent: "center",
|
|
932
|
+
height: "calc(100vh - 160px)"
|
|
933
|
+
}
|
|
934
|
+
}));
|
|
935
|
+
const WorkflowUiInterruptContent = (props) => {
|
|
936
|
+
var _selectedNode$propert, _selectedNode$propert2, _selectedNode$propert19;
|
|
937
|
+
const { selectedNode, workflow, reloadWorkflow, users, groups, handleClose, inquiryPageParams = {} } = props;
|
|
938
|
+
const classes = useStyles$4();
|
|
939
|
+
const [selectedPageId, setSelectedPageId] = (0, react.useState)("");
|
|
940
|
+
const [currentWorkflowStep, setCurrentWorkflowStep] = (0, react.useState)(0);
|
|
941
|
+
const [loading, setLoading] = (0, react.useState)(false);
|
|
942
|
+
const [loadingTaskData, setLoadingTaskData] = (0, react.useState)(true);
|
|
943
|
+
const [reassignSidesheetOpen, setReassignSidesheetOpen] = (0, react.useState)(false);
|
|
944
|
+
const [reassigningAssignee, setReassigningAssignee] = (0, react.useState)(false);
|
|
945
|
+
const [workflowPageData, setWorkflowPageData] = (0, react.useState)(null);
|
|
946
|
+
const [orderedPageData, setOrderedPageData] = (0, react.useState)([]);
|
|
947
|
+
const user = require_EnvironmentRibbon.useUser();
|
|
948
|
+
const taskDataMap = useWorkflowStore((state) => state.taskDataMap);
|
|
949
|
+
const setTaskDataMap = useWorkflowStore((state) => state.setTaskDataMap);
|
|
950
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
951
|
+
const formRef = (0, react.useRef)(null);
|
|
952
|
+
const [{ data: pageData, loading: pageLoading, error: pageError }] = require_EnvironmentRibbon.useAxiosGet(udp_react_stencil_component_library.ConfigService.tenantV1ApiUrl, `page/${selectedPageId}`, {}, !!!selectedPageId, false);
|
|
953
|
+
const [{ data: playScene, loading: playSceneLoading, error: playSceneError }, fetchPlayScene] = require_EnvironmentRibbon.useAxiosGet(udp_react_stencil_component_library.ConfigService.maestroV1ApiUrl, `maestro/play/scene/${(selectedNode === null || selectedNode === void 0 || (_selectedNode$propert = selectedNode.properties) === null || _selectedNode$propert === void 0 ? void 0 : _selectedNode$propert.playSceneId) || null}?includeData=true`, {}, !!!(selectedNode === null || selectedNode === void 0 || (_selectedNode$propert2 = selectedNode.properties) === null || _selectedNode$propert2 === void 0 ? void 0 : _selectedNode$propert2.playSceneId), false);
|
|
954
|
+
const updatePlaySceneData = (0, react.useCallback)(async (data = "") => {
|
|
955
|
+
var _selectedNode$propert3;
|
|
956
|
+
return require_SideSheet.apiMutate(udp_react_stencil_component_library.ConfigService.maestroV1ApiUrl, `maestro/play/scene/${(selectedNode === null || selectedNode === void 0 || (_selectedNode$propert3 = selectedNode.properties) === null || _selectedNode$propert3 === void 0 ? void 0 : _selectedNode$propert3.playSceneId) || null}/data`, { method: "put" }, { data });
|
|
957
|
+
}, [selectedNode]);
|
|
958
|
+
const updatePlaySceneState = (0, react.useCallback)(async (data = {}, sceneState) => {
|
|
959
|
+
var _selectedNode$propert4;
|
|
960
|
+
return require_SideSheet.apiMutate(udp_react_stencil_component_library.ConfigService.maestroV1ApiUrl, `maestro/play/scene/${(selectedNode === null || selectedNode === void 0 || (_selectedNode$propert4 = selectedNode.properties) === null || _selectedNode$propert4 === void 0 ? void 0 : _selectedNode$propert4.playSceneId) || null}/${sceneState}`, { method: "put" }, { data });
|
|
961
|
+
}, [selectedNode]);
|
|
962
|
+
const updatePlaySceneAssignee = (0, react.useCallback)(async (data = "") => {
|
|
963
|
+
var _selectedNode$propert5;
|
|
964
|
+
return require_SideSheet.apiMutate(udp_react_stencil_component_library.ConfigService.maestroV1ApiUrl, `maestro/play/scene/${(selectedNode === null || selectedNode === void 0 || (_selectedNode$propert5 = selectedNode.properties) === null || _selectedNode$propert5 === void 0 ? void 0 : _selectedNode$propert5.playSceneId) || null}/assignee`, { method: "put" }, { data });
|
|
965
|
+
}, [selectedNode]);
|
|
966
|
+
const closeReassignmentSheet = (0, react.useCallback)(() => {
|
|
967
|
+
setReassignSidesheetOpen(false);
|
|
968
|
+
}, []);
|
|
969
|
+
const workflowTaskSteps = (0, react.useMemo)(() => {
|
|
970
|
+
var _selectedNode$propert6;
|
|
971
|
+
if (!(selectedNode === null || selectedNode === void 0 || (_selectedNode$propert6 = selectedNode.properties) === null || _selectedNode$propert6 === void 0 ? void 0 : _selectedNode$propert6.interruptPages)) return [];
|
|
972
|
+
const orderedInterruptPages = (0, lodash.orderBy)(selectedNode.properties.interruptPages, ["sequenceNo"], ["asc"]);
|
|
973
|
+
const steps = orderedInterruptPages.reduce((list, ip) => {
|
|
974
|
+
var _ip$page, _ip$page2;
|
|
975
|
+
const step = {
|
|
976
|
+
label: ip.displayName || ((_ip$page = ip.page) === null || _ip$page === void 0 ? void 0 : _ip$page.name),
|
|
977
|
+
pageId: (_ip$page2 = ip.page) === null || _ip$page2 === void 0 ? void 0 : _ip$page2.pageId,
|
|
978
|
+
requiredFieldMapping: ip.requiredFieldMapping
|
|
979
|
+
};
|
|
980
|
+
list.push(step);
|
|
981
|
+
return list;
|
|
982
|
+
}, []);
|
|
983
|
+
return steps;
|
|
984
|
+
}, [selectedNode]);
|
|
985
|
+
const assigneeOptions = (0, react.useMemo)(() => {
|
|
986
|
+
const formattedUsers = (users === null || users === void 0 ? void 0 : users.reduce((list, user$1) => {
|
|
987
|
+
list.push({
|
|
988
|
+
id: (user$1 === null || user$1 === void 0 ? void 0 : user$1.unityId) || "",
|
|
989
|
+
name: `${user$1 === null || user$1 === void 0 ? void 0 : user$1.displayName} - (User)` || ""
|
|
990
|
+
});
|
|
991
|
+
return list;
|
|
992
|
+
}, [])) || [];
|
|
993
|
+
const formattedGroups = groups.reduce((list, group) => {
|
|
994
|
+
list.push({
|
|
995
|
+
id: (group === null || group === void 0 ? void 0 : group.groupId) || "",
|
|
996
|
+
name: `${group === null || group === void 0 ? void 0 : group.name} - (Group)` || ""
|
|
997
|
+
});
|
|
998
|
+
return list;
|
|
999
|
+
}, []) || [];
|
|
1000
|
+
const options = formattedUsers.concat(formattedGroups);
|
|
1001
|
+
return options;
|
|
1002
|
+
}, [users, groups]);
|
|
1003
|
+
const saveCurrentWorkflowData = (0, react.useCallback)(async () => {
|
|
1004
|
+
var _selectedNode$propert7;
|
|
1005
|
+
let playSceneData = null;
|
|
1006
|
+
if (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert7 = selectedNode.properties) === null || _selectedNode$propert7 === void 0 ? void 0 : _selectedNode$propert7.playSceneId) playSceneData = taskDataMap[selectedNode.properties.playSceneId];
|
|
1007
|
+
if (playSceneData) {
|
|
1008
|
+
await updatePlaySceneData({ data: JSON.stringify(playSceneData) });
|
|
1009
|
+
await fetchPlayScene();
|
|
1010
|
+
}
|
|
1011
|
+
}, [
|
|
1012
|
+
taskDataMap,
|
|
1013
|
+
fetchPlayScene,
|
|
1014
|
+
updatePlaySceneData,
|
|
1015
|
+
selectedNode
|
|
1016
|
+
]);
|
|
1017
|
+
const updateWorkflowPageData = (0, react.useCallback)(async (data, pageId) => {
|
|
1018
|
+
var _selectedNode$propert8, _selectedNode$propert9, _selectedNode$propert10, _selectedNode$propert11, _selectedNode$propert12, _selectedNode$propert13;
|
|
1019
|
+
if (!(selectedNode === null || selectedNode === void 0 || (_selectedNode$propert8 = selectedNode.properties) === null || _selectedNode$propert8 === void 0 ? void 0 : _selectedNode$propert8.playSceneId) || !pageId) {
|
|
1020
|
+
console.warn("No TaskId or PageId availble to save Workflow Page Data");
|
|
1021
|
+
return;
|
|
1022
|
+
}
|
|
1023
|
+
if ((selectedNode === null || selectedNode === void 0 || (_selectedNode$propert9 = selectedNode.properties) === null || _selectedNode$propert9 === void 0 ? void 0 : _selectedNode$propert9.state) === UnitStateType.Initial || (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert10 = selectedNode.properties) === null || _selectedNode$propert10 === void 0 ? void 0 : _selectedNode$propert10.state) === UnitStateType.Completed || (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert11 = selectedNode.properties) === null || _selectedNode$propert11 === void 0 ? void 0 : _selectedNode$propert11.state) === UnitStateType.Cancelled || (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert12 = selectedNode.properties) === null || _selectedNode$propert12 === void 0 ? void 0 : _selectedNode$propert12.state) === UnitStateType.Failed) return;
|
|
1024
|
+
let playSceneData = null;
|
|
1025
|
+
if (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert13 = selectedNode.properties) === null || _selectedNode$propert13 === void 0 ? void 0 : _selectedNode$propert13.playSceneId) {
|
|
1026
|
+
playSceneData = taskDataMap[selectedNode.properties.playSceneId];
|
|
1027
|
+
if (playSceneData) playSceneData[pageId] = data;
|
|
1028
|
+
}
|
|
1029
|
+
if (playSceneData) {
|
|
1030
|
+
await updatePlaySceneData({ data: JSON.stringify(playSceneData) });
|
|
1031
|
+
await fetchPlayScene();
|
|
1032
|
+
}
|
|
1033
|
+
}, [
|
|
1034
|
+
selectedNode,
|
|
1035
|
+
fetchPlayScene,
|
|
1036
|
+
taskDataMap,
|
|
1037
|
+
updatePlaySceneData
|
|
1038
|
+
]);
|
|
1039
|
+
const handleTaskChange = (0, react.useCallback)(async (step) => {
|
|
1040
|
+
setCurrentWorkflowStep(step);
|
|
1041
|
+
}, []);
|
|
1042
|
+
const handleTaskSubmit = (0, react.useCallback)(async () => {
|
|
1043
|
+
setLoading(true);
|
|
1044
|
+
await saveCurrentWorkflowData();
|
|
1045
|
+
await updatePlaySceneState("", 2);
|
|
1046
|
+
await reloadWorkflow();
|
|
1047
|
+
setLoading(false);
|
|
1048
|
+
}, [
|
|
1049
|
+
updatePlaySceneState,
|
|
1050
|
+
reloadWorkflow,
|
|
1051
|
+
saveCurrentWorkflowData
|
|
1052
|
+
]);
|
|
1053
|
+
const secondaryButtons = (0, react.useMemo)(() => {
|
|
1054
|
+
var _selectedNode$propert14;
|
|
1055
|
+
const buttons = [];
|
|
1056
|
+
if (handleClose) buttons.push({
|
|
1057
|
+
label: t("Close"),
|
|
1058
|
+
component: __fluentui_react_icons.CancelIcon,
|
|
1059
|
+
click: () => handleClose()
|
|
1060
|
+
});
|
|
1061
|
+
if ((selectedNode === null || selectedNode === void 0 || (_selectedNode$propert14 = selectedNode.properties) === null || _selectedNode$propert14 === void 0 ? void 0 : _selectedNode$propert14.state) !== UnitStateType.Started) return buttons;
|
|
1062
|
+
buttons.push({
|
|
1063
|
+
label: t("Reassign"),
|
|
1064
|
+
component: __fluentui_react_icons.ForwardIcon,
|
|
1065
|
+
click: () => setReassignSidesheetOpen(true)
|
|
1066
|
+
});
|
|
1067
|
+
return buttons;
|
|
1068
|
+
}, [
|
|
1069
|
+
t,
|
|
1070
|
+
selectedNode,
|
|
1071
|
+
handleClose
|
|
1072
|
+
]);
|
|
1073
|
+
const handleReassignment = (0, react.useCallback)(() => {
|
|
1074
|
+
formRef === null || formRef === void 0 || formRef.current.form.submit();
|
|
1075
|
+
}, []);
|
|
1076
|
+
const reassignTask = (0, react.useCallback)(async (values) => {
|
|
1077
|
+
var _values$assignee;
|
|
1078
|
+
setReassigningAssignee(true);
|
|
1079
|
+
await updatePlaySceneAssignee({ data: (values === null || values === void 0 || (_values$assignee = values.assignee) === null || _values$assignee === void 0 ? void 0 : _values$assignee.id) || "" });
|
|
1080
|
+
await fetchPlayScene();
|
|
1081
|
+
setReassigningAssignee(false);
|
|
1082
|
+
closeReassignmentSheet();
|
|
1083
|
+
}, [
|
|
1084
|
+
updatePlaySceneAssignee,
|
|
1085
|
+
fetchPlayScene,
|
|
1086
|
+
closeReassignmentSheet
|
|
1087
|
+
]);
|
|
1088
|
+
const requiredFieldMapping = (0, react.useMemo)(() => {
|
|
1089
|
+
var _selectedNode$propert15;
|
|
1090
|
+
const step = workflowTaskSteps === null || workflowTaskSteps === void 0 ? void 0 : workflowTaskSteps.find((wts) => wts.pageId === (pageData === null || pageData === void 0 ? void 0 : pageData.pageId));
|
|
1091
|
+
let fieldMapping = (step === null || step === void 0 ? void 0 : step.requiredFieldMapping) ? (0, lodash.cloneDeep)(step.requiredFieldMapping) : {};
|
|
1092
|
+
const workflowVariables = (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert15 = selectedNode.properties) === null || _selectedNode$propert15 === void 0 ? void 0 : _selectedNode$propert15.variables) || null;
|
|
1093
|
+
if (!!fieldMapping && !!workflowVariables) {
|
|
1094
|
+
var _Object$keys;
|
|
1095
|
+
(_Object$keys = Object.keys(fieldMapping)) === null || _Object$keys === void 0 || _Object$keys.forEach((rfmKey) => {
|
|
1096
|
+
const requiredField = fieldMapping[rfmKey];
|
|
1097
|
+
if (!!(requiredField === null || requiredField === void 0 ? void 0 : requiredField.value)) {
|
|
1098
|
+
if ((requiredField === null || requiredField === void 0 ? void 0 : requiredField.type) === "workflowVariable") {
|
|
1099
|
+
let matchedVariable = false;
|
|
1100
|
+
Object.keys(workflowVariables).forEach((key) => {
|
|
1101
|
+
if (requiredField.value === key) {
|
|
1102
|
+
requiredField.value = workflowVariables[key] || "";
|
|
1103
|
+
matchedVariable = true;
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1106
|
+
});
|
|
1107
|
+
if (!matchedVariable) requiredField.value = null;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
return fieldMapping || {};
|
|
1113
|
+
}, [
|
|
1114
|
+
pageData === null || pageData === void 0 ? void 0 : pageData.pageId,
|
|
1115
|
+
selectedNode,
|
|
1116
|
+
workflowTaskSteps
|
|
1117
|
+
]);
|
|
1118
|
+
const pageWidgetParams = (0, react.useMemo)(() => {
|
|
1119
|
+
const requiredFieldsMap = Object.keys(requiredFieldMapping).reduce((fieldMap, key) => {
|
|
1120
|
+
var _requiredFieldMapping;
|
|
1121
|
+
fieldMap[key] = ((_requiredFieldMapping = requiredFieldMapping[key]) === null || _requiredFieldMapping === void 0 ? void 0 : _requiredFieldMapping.value) || "";
|
|
1122
|
+
return fieldMap;
|
|
1123
|
+
}, {});
|
|
1124
|
+
return {
|
|
1125
|
+
setSideSheetWidth: () => {
|
|
1126
|
+
console.warn("setSideSheetWidth Not implemented");
|
|
1127
|
+
},
|
|
1128
|
+
setSideSheetButtonLabel: () => {
|
|
1129
|
+
console.warn("setSideSheetButtonLabel Not implemented");
|
|
1130
|
+
},
|
|
1131
|
+
setSideSheetOnSubmit: () => {
|
|
1132
|
+
console.warn("setSideSheetOnSubmit Not implemented");
|
|
1133
|
+
},
|
|
1134
|
+
setSideSheetAdditionalOnClose: () => {
|
|
1135
|
+
console.warn("setSideSheetAdditionalOnClose Not implemented");
|
|
1136
|
+
},
|
|
1137
|
+
setSideSheetProps: () => {
|
|
1138
|
+
console.warn("setSideSheetProps Not implemented");
|
|
1139
|
+
},
|
|
1140
|
+
closeSideSheet: () => {
|
|
1141
|
+
console.warn("closeSideSheet Not implemented");
|
|
1142
|
+
},
|
|
1143
|
+
onCreate: () => {
|
|
1144
|
+
console.warn("onCreate Not implemented");
|
|
1145
|
+
},
|
|
1146
|
+
onUpdate: () => {
|
|
1147
|
+
console.warn("onUpdate Not implemented");
|
|
1148
|
+
},
|
|
1149
|
+
...inquiryPageParams,
|
|
1150
|
+
pageId: pageData === null || pageData === void 0 ? void 0 : pageData.pageId,
|
|
1151
|
+
updateWorkflowPageData: (data) => updateWorkflowPageData(data, pageData === null || pageData === void 0 ? void 0 : pageData.pageId),
|
|
1152
|
+
workflowTask: selectedNode,
|
|
1153
|
+
workflowPageData: {
|
|
1154
|
+
...requiredFieldsMap,
|
|
1155
|
+
...workflowPageData
|
|
1156
|
+
},
|
|
1157
|
+
requiredFieldsMap: requiredFieldMapping || null,
|
|
1158
|
+
currentWorkflowStep,
|
|
1159
|
+
orderedWorkflowPageData: orderedPageData
|
|
1160
|
+
};
|
|
1161
|
+
}, [
|
|
1162
|
+
pageData === null || pageData === void 0 ? void 0 : pageData.pageId,
|
|
1163
|
+
selectedNode,
|
|
1164
|
+
workflowPageData,
|
|
1165
|
+
updateWorkflowPageData,
|
|
1166
|
+
requiredFieldMapping,
|
|
1167
|
+
inquiryPageParams,
|
|
1168
|
+
currentWorkflowStep,
|
|
1169
|
+
orderedPageData
|
|
1170
|
+
]);
|
|
1171
|
+
const currentAssignee = (0, react.useMemo)(() => {
|
|
1172
|
+
if (!(playScene === null || playScene === void 0 ? void 0 : playScene.assignee) || !(assigneeOptions === null || assigneeOptions === void 0 ? void 0 : assigneeOptions.length)) return "";
|
|
1173
|
+
const matchingAssignee = assigneeOptions.find((assignee) => assignee.id === playScene.assignee);
|
|
1174
|
+
return matchingAssignee || "";
|
|
1175
|
+
}, [playScene, assigneeOptions]);
|
|
1176
|
+
const pageHeight = (0, react.useMemo)(() => "calc(100vh - 162px)", []);
|
|
1177
|
+
(0, react.useEffect)(() => {
|
|
1178
|
+
var _selectedNode$propert16, _selectedNode$propert17;
|
|
1179
|
+
if (!(selectedNode === null || selectedNode === void 0 || (_selectedNode$propert16 = selectedNode.properties) === null || _selectedNode$propert16 === void 0 ? void 0 : _selectedNode$propert16.playSceneId) || !selectedPageId || loadingTaskData) {
|
|
1180
|
+
setWorkflowPageData(null);
|
|
1181
|
+
return;
|
|
1182
|
+
}
|
|
1183
|
+
if ((taskDataMap === null || taskDataMap === void 0 ? void 0 : taskDataMap[selectedNode.properties.playSceneId]) && taskDataMap[selectedNode.properties.playSceneId][selectedPageId]) {
|
|
1184
|
+
setWorkflowPageData(taskDataMap[selectedNode.properties.playSceneId][selectedPageId]);
|
|
1185
|
+
return;
|
|
1186
|
+
}
|
|
1187
|
+
if (Object.keys(taskDataMap).length && (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert17 = selectedNode.properties) === null || _selectedNode$propert17 === void 0 ? void 0 : _selectedNode$propert17.playSceneId) && selectedPageId && !playSceneLoading && !loadingTaskData) {
|
|
1188
|
+
setWorkflowPageData((prevData) => {
|
|
1189
|
+
if (!prevData) return {};
|
|
1190
|
+
else if (!Object.keys(prevData).length) return prevData;
|
|
1191
|
+
});
|
|
1192
|
+
return;
|
|
1193
|
+
}
|
|
1194
|
+
setWorkflowPageData(null);
|
|
1195
|
+
}, [
|
|
1196
|
+
selectedNode,
|
|
1197
|
+
selectedPageId,
|
|
1198
|
+
taskDataMap,
|
|
1199
|
+
loadingTaskData,
|
|
1200
|
+
playSceneLoading,
|
|
1201
|
+
workflowTaskSteps
|
|
1202
|
+
]);
|
|
1203
|
+
(0, react.useEffect)(() => {
|
|
1204
|
+
if (workflowTaskSteps === null || workflowTaskSteps === void 0 ? void 0 : workflowTaskSteps.length) {
|
|
1205
|
+
var _workflowTaskSteps$cu;
|
|
1206
|
+
setSelectedPageId((_workflowTaskSteps$cu = workflowTaskSteps[currentWorkflowStep]) === null || _workflowTaskSteps$cu === void 0 ? void 0 : _workflowTaskSteps$cu.pageId);
|
|
1207
|
+
}
|
|
1208
|
+
}, [workflowTaskSteps, currentWorkflowStep]);
|
|
1209
|
+
(0, react.useEffect)(() => {
|
|
1210
|
+
var _selectedNode$propert18;
|
|
1211
|
+
setLoadingTaskData(true);
|
|
1212
|
+
if (!playSceneLoading && (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert18 = selectedNode.properties) === null || _selectedNode$propert18 === void 0 ? void 0 : _selectedNode$propert18.playSceneId)) {
|
|
1213
|
+
const json = (playScene === null || playScene === void 0 ? void 0 : playScene.data) ? JSON.parse(playScene.data) : {};
|
|
1214
|
+
setTaskDataMap(selectedNode.properties.playSceneId, json);
|
|
1215
|
+
}
|
|
1216
|
+
setLoadingTaskData(false);
|
|
1217
|
+
}, [
|
|
1218
|
+
playScene,
|
|
1219
|
+
playSceneLoading,
|
|
1220
|
+
setTaskDataMap,
|
|
1221
|
+
selectedNode
|
|
1222
|
+
]);
|
|
1223
|
+
(0, react.useEffect)(() => {
|
|
1224
|
+
const orderedData = [];
|
|
1225
|
+
if (taskDataMap === null || taskDataMap === void 0 ? void 0 : taskDataMap[selectedNode.properties.playSceneId]) workflowTaskSteps.forEach((step) => {
|
|
1226
|
+
orderedData.push(taskDataMap[selectedNode.properties.playSceneId][step.pageId] || {});
|
|
1227
|
+
});
|
|
1228
|
+
setOrderedPageData(orderedData);
|
|
1229
|
+
}, [
|
|
1230
|
+
taskDataMap,
|
|
1231
|
+
workflowTaskSteps,
|
|
1232
|
+
selectedNode
|
|
1233
|
+
]);
|
|
1234
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
|
|
1235
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__material_ui_core.Card, {
|
|
1236
|
+
variant: "outlined",
|
|
1237
|
+
style: {
|
|
1238
|
+
border: "none",
|
|
1239
|
+
paddingBottom: (workflowTaskSteps === null || workflowTaskSteps === void 0 ? void 0 : workflowTaskSteps.length) > 1 ? 10 : 0
|
|
1240
|
+
},
|
|
1241
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PageContainer.PrimaryActionHeader, {
|
|
1242
|
+
single: true,
|
|
1243
|
+
title: workflow === null || workflow === void 0 ? void 0 : workflow.name,
|
|
1244
|
+
buttonLabel: "Submit",
|
|
1245
|
+
handleClick: handleTaskSubmit,
|
|
1246
|
+
pabDisabled: (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert19 = selectedNode.properties) === null || _selectedNode$propert19 === void 0 ? void 0 : _selectedNode$propert19.state) !== UnitStateType.Started,
|
|
1247
|
+
secondaryButtons
|
|
1248
|
+
}), loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LinearProgress, {})]
|
|
1249
|
+
}),
|
|
1250
|
+
(workflowTaskSteps === null || workflowTaskSteps === void 0 ? void 0 : workflowTaskSteps.length) > 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorkflowTaskFlow, {
|
|
1251
|
+
steps: workflowTaskSteps,
|
|
1252
|
+
handleClick: handleTaskChange,
|
|
1253
|
+
task: selectedNode
|
|
1254
|
+
}),
|
|
1255
|
+
selectedPageId && workflowPageData ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PageContainer.PageContainer, {
|
|
1256
|
+
user,
|
|
1257
|
+
pageData,
|
|
1258
|
+
pageLoading,
|
|
1259
|
+
widgetParams: pageWidgetParams,
|
|
1260
|
+
disableMargins: true,
|
|
1261
|
+
fromMenu: true,
|
|
1262
|
+
height: pageHeight
|
|
1263
|
+
}, selectedPageId) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1264
|
+
className: classes.loadingContent,
|
|
1265
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CircularProgress, { size: 64 })
|
|
1266
|
+
}),
|
|
1267
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SideSheet.SideSheet, {
|
|
1268
|
+
open: reassignSidesheetOpen,
|
|
1269
|
+
buttonLabel: t("Reassign"),
|
|
1270
|
+
onClose: closeReassignmentSheet,
|
|
1271
|
+
onSubmit: handleReassignment,
|
|
1272
|
+
title: t("Reassign Task"),
|
|
1273
|
+
width: "25%",
|
|
1274
|
+
progress: reassigningAssignee,
|
|
1275
|
+
variant: "indeterminate",
|
|
1276
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SideSheet.Form, {
|
|
1277
|
+
onSubmit: reassignTask,
|
|
1278
|
+
ref: formRef,
|
|
1279
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SideSheet.Field, {
|
|
1280
|
+
component: FluentTextFieldAutoComplete,
|
|
1281
|
+
name: "assignee",
|
|
1282
|
+
id: "assignee",
|
|
1283
|
+
label: t("Assignee"),
|
|
1284
|
+
initialValue: currentAssignee || "",
|
|
1285
|
+
options: assigneeOptions || [],
|
|
1286
|
+
optionKey: "name",
|
|
1287
|
+
variant: "outlined",
|
|
1288
|
+
margin: "dense"
|
|
1289
|
+
})
|
|
1290
|
+
})
|
|
1291
|
+
})
|
|
1292
|
+
] });
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
//#endregion
|
|
1296
|
+
//#region src/UI/components/dataDisplay/SmsDisplay.jsx
|
|
1297
|
+
const useStyles$3 = (0, __material_ui_core.makeStyles)((theme) => ({
|
|
1298
|
+
messages: {
|
|
1299
|
+
flex: "1",
|
|
1300
|
+
margin: "0 20px",
|
|
1301
|
+
overflow: "hidden"
|
|
1302
|
+
},
|
|
1303
|
+
messagesBox: {
|
|
1304
|
+
paddingRight: "3%",
|
|
1305
|
+
paddingLeft: "3%",
|
|
1306
|
+
width: "23vw",
|
|
1307
|
+
height: "88%",
|
|
1308
|
+
overflowY: "auto",
|
|
1309
|
+
boxSizing: "border-box",
|
|
1310
|
+
display: "flex",
|
|
1311
|
+
justifyContent: "center"
|
|
1312
|
+
},
|
|
1313
|
+
message: {
|
|
1314
|
+
backgroundColor: "#E9E9EB",
|
|
1315
|
+
borderRadius: "10px",
|
|
1316
|
+
padding: "10px",
|
|
1317
|
+
marginBottom: "10px",
|
|
1318
|
+
alignSelf: "flex-start",
|
|
1319
|
+
overflowWrap: "break-word",
|
|
1320
|
+
margin: theme.spacing(1)
|
|
1321
|
+
},
|
|
1322
|
+
messageSection: {
|
|
1323
|
+
flex: "1",
|
|
1324
|
+
overflowY: "auto",
|
|
1325
|
+
padding: "20px",
|
|
1326
|
+
backgroundImage: `url(${src_assets_images_phone_png.default})`,
|
|
1327
|
+
backgroundSize: "contain",
|
|
1328
|
+
backgroundRepeat: "no-repeat",
|
|
1329
|
+
backgroundPosition: "center",
|
|
1330
|
+
position: "relative",
|
|
1331
|
+
display: "flex",
|
|
1332
|
+
alignItems: "center",
|
|
1333
|
+
justifyContent: "center",
|
|
1334
|
+
height: "calc(100vh - 140px)"
|
|
1335
|
+
}
|
|
1336
|
+
}));
|
|
1337
|
+
const SmsDisplay = (props) => {
|
|
1338
|
+
const { messages = [], to, from, title, handleClose } = props;
|
|
1339
|
+
const classes = useStyles$3();
|
|
1340
|
+
const [messagesList, setMessagesList] = (0, react.useState)(messages);
|
|
1341
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1342
|
+
const messagesBoxRef = (0, react.useRef)(null);
|
|
1343
|
+
const secondaryButtons = (0, react.useMemo)(() => {
|
|
1344
|
+
const buttons = [];
|
|
1345
|
+
if (handleClose) buttons.push({
|
|
1346
|
+
label: t("Close"),
|
|
1347
|
+
component: __fluentui_react_icons.CancelIcon,
|
|
1348
|
+
click: () => handleClose()
|
|
1349
|
+
});
|
|
1350
|
+
return buttons;
|
|
1351
|
+
}, [t, handleClose]);
|
|
1352
|
+
(0, react.useEffect)(() => {
|
|
1353
|
+
if (messagesBoxRef.current) messagesBoxRef.current.scrollTop = messagesBoxRef.current.scrollHeight;
|
|
1354
|
+
}, [messagesList]);
|
|
1355
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Card, {
|
|
1356
|
+
square: true,
|
|
1357
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PageContainer.PrimaryActionHeader, {
|
|
1358
|
+
hidePAB: true,
|
|
1359
|
+
title,
|
|
1360
|
+
subheader: `To: ${to} . From: ${from}`,
|
|
1361
|
+
secondaryButtons
|
|
1362
|
+
})
|
|
1363
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Box, {
|
|
1364
|
+
className: classes.messages,
|
|
1365
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Box, {
|
|
1366
|
+
className: classes.messageSection,
|
|
1367
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Box, {
|
|
1368
|
+
className: classes.messagesBox,
|
|
1369
|
+
ref: messagesBoxRef,
|
|
1370
|
+
children: messagesList.map((message, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Grow, {
|
|
1371
|
+
in: true,
|
|
1372
|
+
timeout: 800,
|
|
1373
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Box, {
|
|
1374
|
+
className: classes.message,
|
|
1375
|
+
dangerouslySetInnerHTML: { __html: message }
|
|
1376
|
+
})
|
|
1377
|
+
}, index))
|
|
1378
|
+
})
|
|
1379
|
+
})
|
|
1380
|
+
})] });
|
|
1381
|
+
};
|
|
1382
|
+
|
|
1383
|
+
//#endregion
|
|
1384
|
+
//#region src/UI/components/dataDisplay/EmailDisplay.jsx
|
|
1385
|
+
const useStyles$2 = (0, __material_ui_core.makeStyles)((theme) => ({ htmlContainer: {
|
|
1386
|
+
display: "flex",
|
|
1387
|
+
justifyContent: "center"
|
|
1388
|
+
} }));
|
|
1389
|
+
const EmailDisplay = (props) => {
|
|
1390
|
+
const { html = "", to, from, title, handleClose } = props;
|
|
1391
|
+
const classes = useStyles$2();
|
|
1392
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1393
|
+
const secondaryButtons = (0, react.useMemo)(() => {
|
|
1394
|
+
const buttons = [];
|
|
1395
|
+
if (handleClose) buttons.push({
|
|
1396
|
+
label: t("Close"),
|
|
1397
|
+
component: __fluentui_react_icons.CancelIcon,
|
|
1398
|
+
click: () => handleClose()
|
|
1399
|
+
});
|
|
1400
|
+
return buttons;
|
|
1401
|
+
}, [t, handleClose]);
|
|
1402
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
1403
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__material_ui_core.Card, {
|
|
1404
|
+
square: true,
|
|
1405
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PageContainer.PrimaryActionHeader, {
|
|
1406
|
+
hidePAB: true,
|
|
1407
|
+
title,
|
|
1408
|
+
subheader: `To: ${to} . From: ${from}`,
|
|
1409
|
+
secondaryButtons
|
|
1410
|
+
})
|
|
1411
|
+
}),
|
|
1412
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EnvironmentRibbon.LayoutUnit, { unit: "sm" }),
|
|
1413
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1414
|
+
className: classes.htmlContainer,
|
|
1415
|
+
children: (0, react_html_parser.default)(html)
|
|
1416
|
+
})
|
|
1417
|
+
] });
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1420
|
+
//#endregion
|
|
1421
|
+
//#region src/workflow/WorkflowContent.jsx
|
|
1422
|
+
const useStyles$1 = (0, __material_ui_core.makeStyles)((theme) => ({ root: { height: "100%" } }));
|
|
1423
|
+
const WorkflowContent = (props) => {
|
|
1424
|
+
var _selectedNode$propert, _selectedNode$propert2;
|
|
1425
|
+
const { selectedNode, workflow, reloadWorkflow, users, groups, handleClose, inquiryPageParams = {} } = props;
|
|
1426
|
+
const buildEnv = require_EnvironmentRibbon.useBuildEnvironment();
|
|
1427
|
+
const classes = useStyles$1({
|
|
1428
|
+
...props,
|
|
1429
|
+
appRibbonSpace: buildEnv ? require_EnvironmentRibbon.APP_RIBBON_SPACE : 0
|
|
1430
|
+
});
|
|
1431
|
+
const user = require_EnvironmentRibbon.useUser();
|
|
1432
|
+
const [{ data: pageData, loading: pageLoading, error: pageError }] = require_EnvironmentRibbon.useAxiosGet(udp_react_stencil_component_library.ConfigService.tenantV1ApiUrl, `page/${selectedNode === null || selectedNode === void 0 || (_selectedNode$propert = selectedNode.properties) === null || _selectedNode$propert === void 0 || (_selectedNode$propert = _selectedNode$propert.page) === null || _selectedNode$propert === void 0 ? void 0 : _selectedNode$propert.id}`, {}, !!!(selectedNode === null || selectedNode === void 0 || (_selectedNode$propert2 = selectedNode.properties) === null || _selectedNode$propert2 === void 0 || (_selectedNode$propert2 = _selectedNode$propert2.page) === null || _selectedNode$propert2 === void 0 ? void 0 : _selectedNode$propert2.id), false);
|
|
1433
|
+
const content = (0, react.useMemo)(() => {
|
|
1434
|
+
var _selectedNode$propert3, _selectedNode$propert4, _selectedNode$propert9, _selectedNode$propert15;
|
|
1435
|
+
let res = null;
|
|
1436
|
+
if ((selectedNode === null || selectedNode === void 0 || (_selectedNode$propert3 = selectedNode.properties) === null || _selectedNode$propert3 === void 0 ? void 0 : _selectedNode$propert3.type) === UnitTypeEnums.Scene) res = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorkflowUiInterruptContent, {
|
|
1437
|
+
selectedNode,
|
|
1438
|
+
workflow,
|
|
1439
|
+
reloadWorkflow,
|
|
1440
|
+
users,
|
|
1441
|
+
groups,
|
|
1442
|
+
handleClose,
|
|
1443
|
+
inquiryPageParams
|
|
1444
|
+
}, selectedNode.id);
|
|
1445
|
+
else if ((selectedNode === null || selectedNode === void 0 || (_selectedNode$propert4 = selectedNode.properties) === null || _selectedNode$propert4 === void 0 ? void 0 : _selectedNode$propert4.type) === UnitTypeEnums.Sms) {
|
|
1446
|
+
var _selectedNode$propert5, _selectedNode$propert6, _selectedNode$propert7, _selectedNode$propert8;
|
|
1447
|
+
res = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SmsDisplay, {
|
|
1448
|
+
messages: [(selectedNode === null || selectedNode === void 0 || (_selectedNode$propert5 = selectedNode.properties) === null || _selectedNode$propert5 === void 0 || (_selectedNode$propert5 = _selectedNode$propert5.sms) === null || _selectedNode$propert5 === void 0 ? void 0 : _selectedNode$propert5.body) || ""],
|
|
1449
|
+
to: (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert6 = selectedNode.properties) === null || _selectedNode$propert6 === void 0 || (_selectedNode$propert6 = _selectedNode$propert6.sms) === null || _selectedNode$propert6 === void 0 ? void 0 : _selectedNode$propert6.to) || "",
|
|
1450
|
+
from: (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert7 = selectedNode.properties) === null || _selectedNode$propert7 === void 0 || (_selectedNode$propert7 = _selectedNode$propert7.sms) === null || _selectedNode$propert7 === void 0 ? void 0 : _selectedNode$propert7.from) || "",
|
|
1451
|
+
title: (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert8 = selectedNode.properties) === null || _selectedNode$propert8 === void 0 ? void 0 : _selectedNode$propert8.nodeLabel) || "",
|
|
1452
|
+
handleClose
|
|
1453
|
+
});
|
|
1454
|
+
} else if ((selectedNode === null || selectedNode === void 0 || (_selectedNode$propert9 = selectedNode.properties) === null || _selectedNode$propert9 === void 0 ? void 0 : _selectedNode$propert9.type) === UnitTypeEnums.Mail) {
|
|
1455
|
+
var _selectedNode$propert10, _selectedNode$propert11, _selectedNode$propert12, _selectedNode$propert13, _selectedNode$propert14;
|
|
1456
|
+
res = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmailDisplay, {
|
|
1457
|
+
html: (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert10 = selectedNode.properties) === null || _selectedNode$propert10 === void 0 || (_selectedNode$propert10 = _selectedNode$propert10.email) === null || _selectedNode$propert10 === void 0 ? void 0 : _selectedNode$propert10.html) || (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert11 = selectedNode.properties) === null || _selectedNode$propert11 === void 0 || (_selectedNode$propert11 = _selectedNode$propert11.email) === null || _selectedNode$propert11 === void 0 ? void 0 : _selectedNode$propert11.text) || "",
|
|
1458
|
+
to: (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert12 = selectedNode.properties) === null || _selectedNode$propert12 === void 0 || (_selectedNode$propert12 = _selectedNode$propert12.email) === null || _selectedNode$propert12 === void 0 ? void 0 : _selectedNode$propert12.to) || "",
|
|
1459
|
+
from: (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert13 = selectedNode.properties) === null || _selectedNode$propert13 === void 0 || (_selectedNode$propert13 = _selectedNode$propert13.email) === null || _selectedNode$propert13 === void 0 ? void 0 : _selectedNode$propert13.from) || "",
|
|
1460
|
+
title: (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert14 = selectedNode.properties) === null || _selectedNode$propert14 === void 0 ? void 0 : _selectedNode$propert14.nodeLabel) || "",
|
|
1461
|
+
handleClose
|
|
1462
|
+
});
|
|
1463
|
+
} else if (selectedNode === null || selectedNode === void 0 || (_selectedNode$propert15 = selectedNode.properties) === null || _selectedNode$propert15 === void 0 || (_selectedNode$propert15 = _selectedNode$propert15.page) === null || _selectedNode$propert15 === void 0 ? void 0 : _selectedNode$propert15.id) {
|
|
1464
|
+
var _selectedNode$propert16, _selectedNode$propert17, _selectedNode$propert18, _selectedNode$propert19, _selectedNode$propert20, _selectedNode$propert21;
|
|
1465
|
+
res = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PageContainer.PageContainer, {
|
|
1466
|
+
user,
|
|
1467
|
+
pageData,
|
|
1468
|
+
pageLoading,
|
|
1469
|
+
widgetParams: {
|
|
1470
|
+
pageId: pageData === null || pageData === void 0 ? void 0 : pageData.pageId,
|
|
1471
|
+
entityName: selectedNode === null || selectedNode === void 0 || (_selectedNode$propert16 = selectedNode.properties) === null || _selectedNode$propert16 === void 0 || (_selectedNode$propert16 = _selectedNode$propert16.page) === null || _selectedNode$propert16 === void 0 || (_selectedNode$propert16 = _selectedNode$propert16.entity) === null || _selectedNode$propert16 === void 0 ? void 0 : _selectedNode$propert16.entityName,
|
|
1472
|
+
pbiReportCode: selectedNode === null || selectedNode === void 0 || (_selectedNode$propert17 = selectedNode.properties) === null || _selectedNode$propert17 === void 0 || (_selectedNode$propert17 = _selectedNode$propert17.page) === null || _selectedNode$propert17 === void 0 ? void 0 : _selectedNode$propert17.pbiReportCode,
|
|
1473
|
+
requiredFieldsMap: selectedNode === null || selectedNode === void 0 || (_selectedNode$propert18 = selectedNode.properties) === null || _selectedNode$propert18 === void 0 || (_selectedNode$propert18 = _selectedNode$propert18.page) === null || _selectedNode$propert18 === void 0 ? void 0 : _selectedNode$propert18.requiredFieldMapping,
|
|
1474
|
+
udpTagId: selectedNode === null || selectedNode === void 0 || (_selectedNode$propert19 = selectedNode.properties) === null || _selectedNode$propert19 === void 0 || (_selectedNode$propert19 = _selectedNode$propert19.page) === null || _selectedNode$propert19 === void 0 ? void 0 : _selectedNode$propert19.udpTagId,
|
|
1475
|
+
queryId: selectedNode === null || selectedNode === void 0 || (_selectedNode$propert20 = selectedNode.properties) === null || _selectedNode$propert20 === void 0 || (_selectedNode$propert20 = _selectedNode$propert20.page) === null || _selectedNode$propert20 === void 0 ? void 0 : _selectedNode$propert20.queryId,
|
|
1476
|
+
inquiryTreeId: selectedNode === null || selectedNode === void 0 || (_selectedNode$propert21 = selectedNode.properties) === null || _selectedNode$propert21 === void 0 || (_selectedNode$propert21 = _selectedNode$propert21.page) === null || _selectedNode$propert21 === void 0 ? void 0 : _selectedNode$propert21.inquiryTreeId
|
|
1477
|
+
},
|
|
1478
|
+
disableMargins: true,
|
|
1479
|
+
fromMenu: true
|
|
1480
|
+
}, selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.id);
|
|
1481
|
+
}
|
|
1482
|
+
return res;
|
|
1483
|
+
}, [
|
|
1484
|
+
groups,
|
|
1485
|
+
pageData,
|
|
1486
|
+
pageLoading,
|
|
1487
|
+
reloadWorkflow,
|
|
1488
|
+
selectedNode,
|
|
1489
|
+
user,
|
|
1490
|
+
users,
|
|
1491
|
+
workflow,
|
|
1492
|
+
handleClose
|
|
1493
|
+
]);
|
|
1494
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1495
|
+
className: classes.root,
|
|
1496
|
+
children: content
|
|
1497
|
+
});
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1500
|
+
//#endregion
|
|
1501
|
+
//#region src/hooks/useUpdateSearchParams.js
|
|
1502
|
+
const useUpdateSearchParams = () => {
|
|
1503
|
+
const history = (0, react_router_dom.useHistory)();
|
|
1504
|
+
const location = (0, react_router_dom.useLocation)();
|
|
1505
|
+
const updateSearchParams = (params) => {
|
|
1506
|
+
const searchParams = new URLSearchParams(location.search);
|
|
1507
|
+
Object.keys(params).forEach((key) => {
|
|
1508
|
+
if (params[key] !== null) searchParams.set(key, params[key]);
|
|
1509
|
+
else searchParams.delete(key);
|
|
1510
|
+
});
|
|
1511
|
+
history.push({
|
|
1512
|
+
pathname: location.pathname,
|
|
1513
|
+
search: searchParams.toString()
|
|
1514
|
+
});
|
|
1515
|
+
};
|
|
1516
|
+
return updateSearchParams;
|
|
1517
|
+
};
|
|
1518
|
+
|
|
1519
|
+
//#endregion
|
|
1520
|
+
//#region src/workflow/WorkflowContainer.jsx
|
|
1521
|
+
const useStyles = (0, __material_ui_core.makeStyles)((theme) => ({
|
|
1522
|
+
root: {
|
|
1523
|
+
flex: 1,
|
|
1524
|
+
minHeight: ({ appRibbonSpace }) => `calc(100vh - ${appRibbonSpace + 56}px)`,
|
|
1525
|
+
display: "grid",
|
|
1526
|
+
gridTemplateAreas: ["sidebar content"].map((line) => `"${line}"`).join(" "),
|
|
1527
|
+
gridTemplateColumns: "auto 1fr",
|
|
1528
|
+
gridTemplateRows: "auto 1fr"
|
|
1529
|
+
},
|
|
1530
|
+
sidebar: {
|
|
1531
|
+
gridArea: "sidebar",
|
|
1532
|
+
marginRight: theme.spacing(1)
|
|
1533
|
+
},
|
|
1534
|
+
content: {
|
|
1535
|
+
gridArea: "content",
|
|
1536
|
+
display: "flex",
|
|
1537
|
+
flexDirection: "column",
|
|
1538
|
+
position: "relative",
|
|
1539
|
+
zIndex: 1,
|
|
1540
|
+
height: ({ appRibbonSpace }) => `calc(100vh - ${appRibbonSpace + 56}px)`,
|
|
1541
|
+
overflowY: "auto"
|
|
1542
|
+
},
|
|
1543
|
+
menuContent: {
|
|
1544
|
+
marginTop: theme.spacing(1),
|
|
1545
|
+
height: ({ appRibbonSpace }) => `calc(100vh - ${appRibbonSpace + 116}px)`,
|
|
1546
|
+
overflowX: "hidden"
|
|
1547
|
+
},
|
|
1548
|
+
loader: {
|
|
1549
|
+
marginRight: theme.spacing(1),
|
|
1550
|
+
marginLeft: theme.spacing(1)
|
|
1551
|
+
},
|
|
1552
|
+
loadingContent: {
|
|
1553
|
+
flex: 1,
|
|
1554
|
+
display: "flex",
|
|
1555
|
+
flexDirection: "column",
|
|
1556
|
+
alignItems: "center",
|
|
1557
|
+
justifyContent: "center"
|
|
1558
|
+
}
|
|
1559
|
+
}));
|
|
1560
|
+
const WorkflowContainer = (props) => {
|
|
1561
|
+
const { playId, taskId, autoCollapseNav = true } = props;
|
|
1562
|
+
const buildEnv = require_EnvironmentRibbon.useBuildEnvironment();
|
|
1563
|
+
const classes = useStyles({
|
|
1564
|
+
...props,
|
|
1565
|
+
appRibbonSpace: buildEnv ? require_EnvironmentRibbon.APP_RIBBON_SPACE : 0
|
|
1566
|
+
});
|
|
1567
|
+
const location = (0, react_router_dom.useLocation)();
|
|
1568
|
+
const updateSearchParams = useUpdateSearchParams();
|
|
1569
|
+
const user = require_EnvironmentRibbon.useUser();
|
|
1570
|
+
const setLocationState = require_PageContainer.useSetLocationState();
|
|
1571
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1572
|
+
const [menuItemsList, setMenuItemsList] = (0, react.useState)([]);
|
|
1573
|
+
const [selectedNode, setSelectedNode] = (0, react.useState)(null);
|
|
1574
|
+
const [sidebarExpanded, setSidebarExpanded] = (0, react.useState)(true);
|
|
1575
|
+
const [reloadFromPage, setReloadFromPage] = (0, react.useState)(false);
|
|
1576
|
+
const [workflow, setWorkflow] = (0, react.useState)(false);
|
|
1577
|
+
const state = location.state;
|
|
1578
|
+
let searchParamStr = location.search;
|
|
1579
|
+
let searchParams = new URLSearchParams(searchParamStr);
|
|
1580
|
+
const urlPlayId = location.pathname.replace("/workflowtask/", "");
|
|
1581
|
+
const udpPlayId = playId || urlPlayId || (state ? state.playId : searchParams.has("playId") === true ? searchParams.get("playId") : "");
|
|
1582
|
+
const udpTaskId = taskId || (state ? state.taskId : searchParams.has("taskId") === true ? searchParams.get("taskId") : "");
|
|
1583
|
+
const [{ data: workflowPlay, loading: workflowPlayLoading }, reloadWorkflow] = require_EnvironmentRibbon.useAxiosGet(udp_react_stencil_component_library.ConfigService.builderV1ApiUrl, `workflow/play/${udpPlayId}`, {}, !!!udpPlayId, false);
|
|
1584
|
+
const [{ data: users }] = require_EnvironmentRibbon.useAxiosGet(udp_react_stencil_component_library.ConfigService.securityV1ApiUrl, `users?tenantId=${(user === null || user === void 0 ? void 0 : user.currentTenantId) || ""}`, {}, !!!(user === null || user === void 0 ? void 0 : user.currentTenantId));
|
|
1585
|
+
const [{ data: groups }] = require_EnvironmentRibbon.useAxiosGet(udp_react_stencil_component_library.ConfigService.tenantV1ApiUrl, `groups?tenantId=${(user === null || user === void 0 ? void 0 : user.currentTenantId) || ""}&productId=${udp_react_stencil_component_library.ConfigService.config.UNITY_PRODUCT_ID}`, {}, !!!(user === null || user === void 0 ? void 0 : user.currentTenantId));
|
|
1586
|
+
const { setSubHeaderActionHasChildren, setNavigationExpanded } = require_EnvironmentRibbon.useShellStore();
|
|
1587
|
+
const handleReloadWorkflow = (0, react.useCallback)(async () => {
|
|
1588
|
+
setReloadFromPage(true);
|
|
1589
|
+
await reloadWorkflow();
|
|
1590
|
+
setReloadFromPage(false);
|
|
1591
|
+
}, [reloadWorkflow]);
|
|
1592
|
+
const handleSelectedNode = (0, react.useCallback)(async (node, menuIndex) => {
|
|
1593
|
+
if (node.isSelectable) {
|
|
1594
|
+
var _node$properties;
|
|
1595
|
+
setSelectedNode(node);
|
|
1596
|
+
await handleReloadWorkflow();
|
|
1597
|
+
if (node === null || node === void 0 || (_node$properties = node.properties) === null || _node$properties === void 0 ? void 0 : _node$properties.playSceneId) updateSearchParams({ taskId: node.properties.playSceneId });
|
|
1598
|
+
}
|
|
1599
|
+
}, [updateSearchParams, handleReloadWorkflow]);
|
|
1600
|
+
const handleDropNode = (0, react.useCallback)((sourceNode, targetNode, sourceNodeMenuIndex, targetNodeMenuIndex) => {}, []);
|
|
1601
|
+
const handleSidebarExpandClick = (0, react.useCallback)(() => {
|
|
1602
|
+
setSidebarExpanded((expanded) => !expanded);
|
|
1603
|
+
}, []);
|
|
1604
|
+
(0, react.useEffect)(() => {
|
|
1605
|
+
if (workflowPlay) setWorkflow(workflowPlay);
|
|
1606
|
+
}, [workflowPlay]);
|
|
1607
|
+
(0, react.useEffect)(() => {
|
|
1608
|
+
setLocationState({ label: t("Workflow") });
|
|
1609
|
+
}, [setLocationState, t]);
|
|
1610
|
+
(0, react.useEffect)(() => {
|
|
1611
|
+
if (workflow) setSelectedNode((prevNode) => {
|
|
1612
|
+
if (!!prevNode) {
|
|
1613
|
+
var _workflow$workflowPla;
|
|
1614
|
+
const foundNode = (_workflow$workflowPla = workflow.workflowPlayNode) === null || _workflow$workflowPla === void 0 || (_workflow$workflowPla = _workflow$workflowPla.children) === null || _workflow$workflowPla === void 0 ? void 0 : _workflow$workflowPla.find((child) => child.id === prevNode.id);
|
|
1615
|
+
if (!!foundNode) {
|
|
1616
|
+
const updatedNode = { ...prevNode };
|
|
1617
|
+
updatedNode.properties.state = foundNode.state;
|
|
1618
|
+
return updatedNode;
|
|
1619
|
+
} else return prevNode;
|
|
1620
|
+
}
|
|
1621
|
+
});
|
|
1622
|
+
}, [workflow]);
|
|
1623
|
+
(0, react.useEffect)(() => {
|
|
1624
|
+
if (workflow) {
|
|
1625
|
+
const list = [];
|
|
1626
|
+
const updatedMenu = transformWorkflowPlayTree(workflow.workflowPlayNode);
|
|
1627
|
+
if (updatedMenu) list.push(updatedMenu);
|
|
1628
|
+
setMenuItemsList(list);
|
|
1629
|
+
}
|
|
1630
|
+
}, [workflow]);
|
|
1631
|
+
(0, react.useEffect)(() => {
|
|
1632
|
+
if (!selectedNode) {
|
|
1633
|
+
const menu = menuItemsList[0];
|
|
1634
|
+
if (menu) {
|
|
1635
|
+
if (!!udpTaskId) {
|
|
1636
|
+
const matchingTaskNode = menu.children.find((child) => {
|
|
1637
|
+
var _child$properties;
|
|
1638
|
+
return (child === null || child === void 0 || (_child$properties = child.properties) === null || _child$properties === void 0 ? void 0 : _child$properties.playSceneId) === udpTaskId;
|
|
1639
|
+
});
|
|
1640
|
+
setSelectedNode(matchingTaskNode || menu.children[0] || null);
|
|
1641
|
+
} else {
|
|
1642
|
+
var _menu$children;
|
|
1643
|
+
const firstSelectableMenuItem = menu === null || menu === void 0 || (_menu$children = menu.children) === null || _menu$children === void 0 ? void 0 : _menu$children.find((item) => item.isSelectable);
|
|
1644
|
+
setSelectedNode(firstSelectableMenuItem || null);
|
|
1645
|
+
}
|
|
1646
|
+
if (autoCollapseNav) setNavigationExpanded(false);
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
}, [
|
|
1650
|
+
udpTaskId,
|
|
1651
|
+
menuItemsList,
|
|
1652
|
+
selectedNode,
|
|
1653
|
+
setNavigationExpanded,
|
|
1654
|
+
autoCollapseNav
|
|
1655
|
+
]);
|
|
1656
|
+
(0, react.useEffect)(() => {
|
|
1657
|
+
setSubHeaderActionHasChildren(false);
|
|
1658
|
+
}, [setSubHeaderActionHasChildren]);
|
|
1659
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_dnd.DndProvider, {
|
|
1660
|
+
backend: react_dnd_html5_backend.HTML5Backend,
|
|
1661
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1662
|
+
className: classes.root,
|
|
1663
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1664
|
+
className: classes.sidebar,
|
|
1665
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UtilitySideBar.UtilitySideBar, {
|
|
1666
|
+
title: "Workflow",
|
|
1667
|
+
isUsingChildren: true,
|
|
1668
|
+
resizable: true,
|
|
1669
|
+
removePadding: true,
|
|
1670
|
+
removeTopLayoutUnit: true,
|
|
1671
|
+
onUtilitySidebarToggleExpandClick: handleSidebarExpandClick,
|
|
1672
|
+
collapsedWidth: 64,
|
|
1673
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1674
|
+
className: classes.menuContent,
|
|
1675
|
+
children: [(menuItemsList === null || menuItemsList === void 0 ? void 0 : menuItemsList.length) > 0 && (!workflowPlayLoading || reloadFromPage) && menuItemsList.map((menuItems, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1676
|
+
className: classes.nodeContainer,
|
|
1677
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorkflowTreeMenu, {
|
|
1678
|
+
menuItems,
|
|
1679
|
+
onSelectNode: handleSelectedNode,
|
|
1680
|
+
onDropNode: handleDropNode,
|
|
1681
|
+
menuIndex: index,
|
|
1682
|
+
selectedNodeId: selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.id,
|
|
1683
|
+
selectedNodeParentId: selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.parentId,
|
|
1684
|
+
sidebarExpanded,
|
|
1685
|
+
treeViewMode: require_EnvironmentRibbon.TreeViewModeEnums.Classic
|
|
1686
|
+
})
|
|
1687
|
+
}, menuItems.id)), workflowPlayLoading && !reloadFromPage && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1688
|
+
className: classes.loader,
|
|
1689
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UtilitySideBar.NodeLoader, { loading: workflowPlayLoading })
|
|
1690
|
+
})]
|
|
1691
|
+
}, playId)
|
|
1692
|
+
})
|
|
1693
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1694
|
+
className: classes.content,
|
|
1695
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorkflowContent, {
|
|
1696
|
+
selectedNode,
|
|
1697
|
+
workflow,
|
|
1698
|
+
reloadWorkflow: handleReloadWorkflow,
|
|
1699
|
+
users,
|
|
1700
|
+
groups
|
|
1701
|
+
})
|
|
1702
|
+
})]
|
|
1703
|
+
})
|
|
1704
|
+
});
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
//#endregion
|
|
1708
|
+
Object.defineProperty(exports, 'CircularProgress', {
|
|
1709
|
+
enumerable: true,
|
|
1710
|
+
get: function () {
|
|
1711
|
+
return CircularProgress;
|
|
1712
|
+
}
|
|
1713
|
+
});
|
|
1714
|
+
Object.defineProperty(exports, 'FluentTextFieldAutoComplete', {
|
|
1715
|
+
enumerable: true,
|
|
1716
|
+
get: function () {
|
|
1717
|
+
return FluentTextFieldAutoComplete;
|
|
1718
|
+
}
|
|
1719
|
+
});
|
|
1720
|
+
Object.defineProperty(exports, 'LinearProgress', {
|
|
1721
|
+
enumerable: true,
|
|
1722
|
+
get: function () {
|
|
1723
|
+
return LinearProgress;
|
|
1724
|
+
}
|
|
1725
|
+
});
|
|
1726
|
+
Object.defineProperty(exports, 'UnitStateType', {
|
|
1727
|
+
enumerable: true,
|
|
1728
|
+
get: function () {
|
|
1729
|
+
return UnitStateType;
|
|
1730
|
+
}
|
|
1731
|
+
});
|
|
1732
|
+
Object.defineProperty(exports, 'WorkflowContainer', {
|
|
1733
|
+
enumerable: true,
|
|
1734
|
+
get: function () {
|
|
1735
|
+
return WorkflowContainer;
|
|
1736
|
+
}
|
|
1737
|
+
});
|
|
1738
|
+
Object.defineProperty(exports, 'WorkflowContent', {
|
|
1739
|
+
enumerable: true,
|
|
1740
|
+
get: function () {
|
|
1741
|
+
return WorkflowContent;
|
|
1742
|
+
}
|
|
1743
|
+
});
|
|
1744
|
+
Object.defineProperty(exports, 'WorkflowTreeMenu', {
|
|
1745
|
+
enumerable: true,
|
|
1746
|
+
get: function () {
|
|
1747
|
+
return WorkflowTreeMenu;
|
|
1748
|
+
}
|
|
1749
|
+
});
|
|
1750
|
+
Object.defineProperty(exports, 'formatDateToLocaleString', {
|
|
1751
|
+
enumerable: true,
|
|
1752
|
+
get: function () {
|
|
1753
|
+
return formatDateToLocaleString;
|
|
1754
|
+
}
|
|
1755
|
+
});
|
|
1756
|
+
Object.defineProperty(exports, 'toUtcDate', {
|
|
1757
|
+
enumerable: true,
|
|
1758
|
+
get: function () {
|
|
1759
|
+
return toUtcDate;
|
|
1760
|
+
}
|
|
1761
|
+
});
|
|
1762
|
+
Object.defineProperty(exports, 'transformWorkflowPlayTree', {
|
|
1763
|
+
enumerable: true,
|
|
1764
|
+
get: function () {
|
|
1765
|
+
return transformWorkflowPlayTree;
|
|
1766
|
+
}
|
|
1767
|
+
});
|
|
1768
|
+
Object.defineProperty(exports, 'useWorkflowStore', {
|
|
1769
|
+
enumerable: true,
|
|
1770
|
+
get: function () {
|
|
1771
|
+
return useWorkflowStore;
|
|
1772
|
+
}
|
|
1773
|
+
});
|
|
1774
|
+
//# sourceMappingURL=WorkflowContainer-D8L8yLtX.cjs.map
|