@solidxai/core-ui 0.1.13-beta.2 → 0.1.13-beta.4
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/components/auth/SolidOTPVerify.d.ts +3 -0
- package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -0
- package/dist/components/auth/SolidOTPVerify.js +67 -0
- package/dist/components/auth/SolidOTPVerify.js.map +1 -0
- package/dist/components/auth/SolidOTPVerify.tsx +133 -0
- package/dist/components/common/AuthBanner.d.ts +3 -0
- package/dist/components/common/AuthBanner.d.ts.map +1 -0
- package/dist/components/common/AuthBanner.js +15 -0
- package/dist/components/common/AuthBanner.js.map +1 -0
- package/dist/components/common/AuthBanner.tsx +41 -0
- package/dist/components/common/SingleSelectAutoCompleteField.d.ts +2 -0
- package/dist/components/common/SingleSelectAutoCompleteField.d.ts.map +1 -0
- package/dist/components/common/SingleSelectAutoCompleteField.js +92 -0
- package/dist/components/common/SingleSelectAutoCompleteField.js.map +1 -0
- package/dist/components/common/SingleSelectAutoCompleteField.tsx +73 -0
- package/dist/components/common/SolidExportStepper.d.ts +12 -0
- package/dist/components/common/SolidExportStepper.d.ts.map +1 -0
- package/dist/components/common/SolidExportStepper.js +30 -0
- package/dist/components/common/SolidExportStepper.js.map +1 -0
- package/dist/components/common/SolidExportStepper.tsx +135 -0
- package/dist/components/core/card/SolidCardView.d.ts.map +1 -1
- package/dist/components/core/card/SolidCardView.js +6 -11
- package/dist/components/core/card/SolidCardView.js.map +1 -1
- package/dist/components/core/card/SolidCardView.tsx +6 -11
- package/dist/components/core/card/SolidCardViewConfigure.d.ts.map +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.js +3 -7
- package/dist/components/core/card/SolidCardViewConfigure.js.map +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.tsx +3 -9
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +2 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +1 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.js +50 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.tsx +70 -0
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts +2 -0
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts.map +1 -0
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js +16 -0
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js.map +1 -0
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.tsx +29 -0
- package/dist/components/core/dashboard/DashboardFilter.d.ts +13 -0
- package/dist/components/core/dashboard/DashboardFilter.d.ts.map +1 -0
- package/dist/components/core/dashboard/DashboardFilter.js +299 -0
- package/dist/components/core/dashboard/DashboardFilter.js.map +1 -0
- package/dist/components/core/dashboard/DashboardFilter.tsx +348 -0
- package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts +3 -0
- package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts.map +1 -0
- package/dist/components/core/dashboard/PrimeDataTableWrapper.js +21 -0
- package/dist/components/core/dashboard/PrimeDataTableWrapper.js.map +1 -0
- package/dist/components/core/dashboard/PrimeDataTableWrapper.tsx +40 -0
- package/dist/components/core/dashboard/SolidDashboard.d.ts +28 -0
- package/dist/components/core/dashboard/SolidDashboard.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboard.js +183 -0
- package/dist/components/core/dashboard/SolidDashboard.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboard.module.css +83 -0
- package/dist/components/core/dashboard/SolidDashboard.tsx +263 -0
- package/dist/components/core/dashboard/SolidDashboardBody.d.ts +24 -0
- package/dist/components/core/dashboard/SolidDashboardBody.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardBody.js +162 -0
- package/dist/components/core/dashboard/SolidDashboardBody.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardBody.tsx +168 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js +11 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.tsx +28 -0
- package/dist/components/core/dashboard/SolidDashboardHeader.d.ts +3 -0
- package/dist/components/core/dashboard/SolidDashboardHeader.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardHeader.js +6 -0
- package/dist/components/core/dashboard/SolidDashboardHeader.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardHeader.tsx +10 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.js +10 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.tsx +61 -0
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts +3 -0
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.js +12 -0
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.tsx +32 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.js +11 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.tsx +28 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.d.ts +19 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.js +171 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.tsx +259 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts +9 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.js +42 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.js.map +1 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.tsx +99 -0
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts +9 -0
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js +35 -0
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.tsx +48 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts +7 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js +22 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.tsx +51 -0
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts +2 -0
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.js +4 -0
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.js.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.ts +25 -0
- package/dist/components/core/dashboard/dashboard-utils.d.ts +2 -0
- package/dist/components/core/dashboard/dashboard-utils.d.ts.map +1 -0
- package/dist/components/core/dashboard/dashboard-utils.js +38 -0
- package/dist/components/core/dashboard/dashboard-utils.js.map +1 -0
- package/dist/components/core/dashboard/dashboard-utils.ts +39 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts +10 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js +16 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.ts +19 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts +8 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js +64 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.ts +30 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts +8 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js +62 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.ts +29 -0
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts +4 -0
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js +23 -0
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.tsx +36 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +2 -10
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +2 -10
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +111 -106
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +165 -134
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +81 -84
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +97 -86
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +3 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js +92 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +68 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts +3 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js +111 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.tsx +122 -0
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +6 -11
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +6 -11
- package/dist/components/core/kanban/SolidKanbanViewConfigure.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js +3 -7
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +3 -9
- package/dist/components/core/kanban/SolidKanbanViewFields.d.ts +12 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.js +145 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.js.map +1 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.tsx +164 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts +2 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js +87 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +59 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts +2 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js +73 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +50 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts +2 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js +20 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.tsx +32 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts +12 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.js +81 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.tsx +184 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +16 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js +21 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +23 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +12 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js +16 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +20 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +56 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +140 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +42 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +164 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js +11 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +37 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +121 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +12 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +16 -0
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.d.ts.map +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +2 -3
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.tsx +2 -3
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +2 -14
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +2 -14
- package/dist/components/core/list/SolidListViewConfigure.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.js +7 -5
- package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.tsx +7 -5
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts +2 -0
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +1 -0
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +39 -0
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +1 -0
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +40 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.d.ts +12 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.d.ts.map +1 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.js +81 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.js.map +1 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.tsx +184 -0
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +42 -81
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +90 -120
- package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +34 -42
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +51 -46
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js +87 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +70 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js +33 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.tsx +50 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js +158 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js.map +1 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.tsx +185 -0
- package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
- package/dist/components/core/tree/SolidTreeView.js +2 -14
- package/dist/components/core/tree/SolidTreeView.js.map +1 -1
- package/dist/components/core/tree/SolidTreeView.tsx +2 -14
- package/dist/components/layout/DashboardHeader.d.ts +3 -0
- package/dist/components/layout/DashboardHeader.d.ts.map +1 -0
- package/dist/components/layout/DashboardHeader.js +20 -0
- package/dist/components/layout/DashboardHeader.js.map +1 -0
- package/dist/components/layout/DashboardHeader.tsx +94 -0
- package/dist/helpers/# no such endpoints exist, need to calle +3 -0
- package/dist/helpers/ToastContainer.d.ts +4 -0
- package/dist/helpers/ToastContainer.d.ts.map +1 -0
- package/dist/helpers/ToastContainer.js +49 -0
- package/dist/helpers/ToastContainer.js.map +1 -0
- package/dist/helpers/ToastContainer.tsx +94 -0
- package/dist/helpers/downloadMediaFile.d.ts.map +1 -1
- package/dist/helpers/downloadMediaFile.js +10 -3
- package/dist/helpers/downloadMediaFile.js.map +1 -1
- package/dist/helpers/downloadMediaFile.tsx +13 -7
- package/dist/helpers/fileTypeIcon.d.ts +3 -2
- package/dist/helpers/fileTypeIcon.d.ts.map +1 -1
- package/dist/helpers/fileTypeIcon.js +11 -7
- package/dist/helpers/fileTypeIcon.js.map +1 -1
- package/dist/helpers/fileTypeIcon.tsx +12 -7
- package/dist/helpers/mediaType.d.ts +7 -0
- package/dist/helpers/mediaType.d.ts.map +1 -1
- package/dist/helpers/mediaType.js +39 -8
- package/dist/helpers/mediaType.js.map +1 -1
- package/dist/helpers/mediaType.ts +46 -7
- package/dist/helpers/mediaUrl.d.ts +2 -0
- package/dist/helpers/mediaUrl.d.ts.map +1 -0
- package/dist/helpers/mediaUrl.js +10 -0
- package/dist/helpers/mediaUrl.js.map +1 -0
- package/dist/helpers/mediaUrl.ts +11 -0
- package/dist/helpers/permissions.d.ts +13 -0
- package/dist/helpers/permissions.d.ts.map +1 -1
- package/dist/helpers/permissions.js +79 -0
- package/dist/helpers/permissions.js.map +1 -1
- package/dist/helpers/permissions.ts +92 -1
- package/dist/helpers/showToast.d.ts +5 -0
- package/dist/helpers/showToast.d.ts.map +1 -0
- package/dist/helpers/showToast.js +17 -0
- package/dist/helpers/showToast.js.map +1 -0
- package/dist/helpers/showToast.ts +13 -0
- package/dist/helpers/studioSandbox.d.ts +31 -0
- package/dist/helpers/studioSandbox.d.ts.map +1 -0
- package/dist/helpers/studioSandbox.js +104 -0
- package/dist/helpers/studioSandbox.js.map +1 -0
- package/dist/helpers/studioSandbox.ts +117 -0
- package/dist/nextAuth/authProviders.d.ts +4 -0
- package/dist/nextAuth/authProviders.d.ts.map +1 -0
- package/dist/nextAuth/authProviders.js +198 -0
- package/dist/nextAuth/authProviders.js.map +1 -0
- package/dist/nextAuth/authProviders.tsx +232 -0
- package/dist/nextAuth/handleLogout.d.ts +2 -0
- package/dist/nextAuth/handleLogout.d.ts.map +1 -0
- package/dist/nextAuth/handleLogout.js +36 -0
- package/dist/nextAuth/handleLogout.js.map +1 -0
- package/dist/nextAuth/handleLogout.tsx +39 -0
- package/dist/nextAuth/refreshAccessToken.d.ts +2 -0
- package/dist/nextAuth/refreshAccessToken.d.ts.map +1 -0
- package/dist/nextAuth/refreshAccessToken.js +24 -0
- package/dist/nextAuth/refreshAccessToken.js.map +1 -0
- package/dist/nextAuth/refreshAccessToken.tsx +28 -0
- package/dist/redux/api/dashboardApi.d.ts +23 -0
- package/dist/redux/api/dashboardApi.d.ts.map +1 -0
- package/dist/redux/api/dashboardApi.js +35 -0
- package/dist/redux/api/dashboardApi.js.map +1 -0
- package/dist/redux/api/dashboardApi.ts +56 -0
- package/dist/redux/api/dashboardLayoutApi.d.ts +24 -0
- package/dist/redux/api/dashboardLayoutApi.d.ts.map +1 -0
- package/dist/redux/api/dashboardLayoutApi.js +34 -0
- package/dist/redux/api/dashboardLayoutApi.js.map +1 -0
- package/dist/redux/api/dashboardLayoutApi.ts +55 -0
- package/dist/redux/api/dashboardQuestionApi.d.ts +5 -0
- package/dist/redux/api/dashboardQuestionApi.d.ts.map +1 -0
- package/dist/redux/api/dashboardQuestionApi.js +18 -0
- package/dist/redux/api/dashboardQuestionApi.js.map +1 -0
- package/dist/redux/api/dashboardQuestionApi.ts +17 -0
- package/dist/redux/features/settingsSlice.d.ts +20 -0
- package/dist/redux/features/settingsSlice.d.ts.map +1 -0
- package/dist/redux/features/settingsSlice.js +39 -0
- package/dist/redux/features/settingsSlice.js.map +1 -0
- package/dist/redux/features/settingsSlice.ts +60 -0
- package/dist/resources/images/Footerbg.png +0 -0
- package/dist/resources/images/LoginBanner.png +0 -0
- package/dist/resources/images/dashboard/Ellipse 1.svg +10 -0
- package/dist/resources/images/dashboard/Rectangle 17.svg +10 -0
- package/dist/resources/images/dashboard/Rectangle 25.svg +11 -0
- package/dist/resources/images/dashboard/image 5.svg +9 -0
- package/dist/resources/images/loginhero.png +0 -0
- package/dist/resources/images/logo.png +0 -0
- package/dist/resources/images/radix-logo-white.png +0 -0
- package/dist/resources/images/radix-logo.png +0 -0
- package/dist/resources/images/signupBanner.png +0 -0
- package/dist/resources/shadcn-base.css +16 -70
- package/dist/resources/solid-tailwind-generated.css +1 -1
- package/package.json +1 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.d.ts +0 -8
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.d.ts.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.js +0 -6
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.js.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.ts +0 -13
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.d.ts +0 -11
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.d.ts.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.js +0 -10
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.js.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.ts +0 -22
- package/dist/components/core/list/SolidCustomListColumn.d.ts +0 -8
- package/dist/components/core/list/SolidCustomListColumn.d.ts.map +0 -1
- package/dist/components/core/list/SolidCustomListColumn.js +0 -47
- package/dist/components/core/list/SolidCustomListColumn.js.map +0 -1
- package/dist/components/core/list/SolidCustomListColumn.tsx +0 -57
- package/dist/components/workflow/WorkflowFlowCanvas.css +0 -431
- package/dist/components/workflow/WorkflowFlowCanvas.d.ts +0 -41
- package/dist/components/workflow/WorkflowFlowCanvas.d.ts.map +0 -1
- package/dist/components/workflow/WorkflowFlowCanvas.js +0 -705
- package/dist/components/workflow/WorkflowFlowCanvas.js.map +0 -1
- package/dist/components/workflow/WorkflowFlowCanvas.tsx +0 -1274
- package/dist/components/workflow/WorkflowNodeDocsPanel.css +0 -247
- package/dist/components/workflow/WorkflowNodeDocsPanel.d.ts +0 -22
- package/dist/components/workflow/WorkflowNodeDocsPanel.d.ts.map +0 -1
- package/dist/components/workflow/WorkflowNodeDocsPanel.js +0 -97
- package/dist/components/workflow/WorkflowNodeDocsPanel.js.map +0 -1
- package/dist/components/workflow/WorkflowNodeDocsPanel.tsx +0 -363
- package/dist/components/workflow/WorkflowNodeSchemaEditor.d.ts +0 -50
- package/dist/components/workflow/WorkflowNodeSchemaEditor.d.ts.map +0 -1
- package/dist/components/workflow/WorkflowNodeSchemaEditor.js +0 -309
- package/dist/components/workflow/WorkflowNodeSchemaEditor.js.map +0 -1
- package/dist/components/workflow/WorkflowNodeSchemaEditor.tsx +0 -808
- package/dist/helpers/modulePackageResumeState.d.ts +0 -6
- package/dist/helpers/modulePackageResumeState.d.ts.map +0 -1
- package/dist/helpers/modulePackageResumeState.js +0 -46
- package/dist/helpers/modulePackageResumeState.js.map +0 -1
- package/dist/helpers/modulePackageResumeState.ts +0 -57
- package/dist/redux/api/workflowDefinitionEditorApi.d.ts +0 -17
- package/dist/redux/api/workflowDefinitionEditorApi.d.ts.map +0 -1
- package/dist/redux/api/workflowDefinitionEditorApi.js +0 -38
- package/dist/redux/api/workflowDefinitionEditorApi.js.map +0 -1
- package/dist/redux/api/workflowDefinitionEditorApi.ts +0 -40
- package/dist/redux/api/workflowNodeApi.d.ts +0 -6
- package/dist/redux/api/workflowNodeApi.d.ts.map +0 -1
- package/dist/redux/api/workflowNodeApi.js +0 -14
- package/dist/redux/api/workflowNodeApi.js.map +0 -1
- package/dist/redux/api/workflowNodeApi.ts +0 -18
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.css +0 -970
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.d.ts +0 -3
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.d.ts.map +0 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js +0 -1287
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js.map +0 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.tsx +0 -2572
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.css +0 -151
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.d.ts +0 -3
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.d.ts.map +0 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.js +0 -250
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.js.map +0 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.tsx +0 -455
- package/dist/types/workflow-node.d.ts +0 -127
- package/dist/types/workflow-node.d.ts.map +0 -1
- package/dist/types/workflow-node.js +0 -2
- package/dist/types/workflow-node.js.map +0 -1
- package/dist/types/workflow-node.ts +0 -162
|
@@ -1,705 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
-
if (ar || !(i in from)) {
|
|
15
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
-
ar[i] = from[i];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
-
};
|
|
21
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
-
import React from "react";
|
|
23
|
-
import { Background, BackgroundVariant, Controls, Handle, MarkerType, MiniMap, Position, ReactFlow, ReactFlowProvider, } from "@xyflow/react";
|
|
24
|
-
import { BookOpen, CircleHelp, Pencil, Plus, Trash2 } from "lucide-react";
|
|
25
|
-
import { normalizeSolidIconName, SolidButton, SolidIcon, SolidTag } from "../shad-cn-ui";
|
|
26
|
-
import "@xyflow/react/dist/style.css";
|
|
27
|
-
import "./WorkflowFlowCanvas.css";
|
|
28
|
-
var DIMENSIONS = {
|
|
29
|
-
workflowWidth: 248,
|
|
30
|
-
workflowHeight: 118,
|
|
31
|
-
triggerWidth: 248,
|
|
32
|
-
triggerHeight: 108,
|
|
33
|
-
insertWidth: 160,
|
|
34
|
-
insertHeight: 40,
|
|
35
|
-
sectionLabelWidth: 104,
|
|
36
|
-
sectionLabelHeight: 28,
|
|
37
|
-
groupPaddingX: 28,
|
|
38
|
-
groupPaddingTop: 42,
|
|
39
|
-
groupPaddingBottom: 22,
|
|
40
|
-
loopGroupPaddingX: 70,
|
|
41
|
-
loopGroupPaddingTop: 46,
|
|
42
|
-
loopGroupPaddingBottom: 34,
|
|
43
|
-
controlChildLabelOffsetY: 138,
|
|
44
|
-
controlChildStartOffsetY: 150,
|
|
45
|
-
};
|
|
46
|
-
function normalizeChildSlots(node, nodeType) {
|
|
47
|
-
var _a, _b;
|
|
48
|
-
if ((_b = (_a = nodeType === null || nodeType === void 0 ? void 0 : nodeType.authoring) === null || _a === void 0 ? void 0 : _a.childSlots) === null || _b === void 0 ? void 0 : _b.length) {
|
|
49
|
-
return nodeType.authoring.childSlots;
|
|
50
|
-
}
|
|
51
|
-
var slots = [];
|
|
52
|
-
if (Array.isArray(node.then) || Array.isArray(node.else)) {
|
|
53
|
-
slots.push({ key: "then", label: "Then", kind: "sequence" });
|
|
54
|
-
slots.push({ key: "else", label: "Else", kind: "sequence" });
|
|
55
|
-
}
|
|
56
|
-
else if (Array.isArray(node.branches)) {
|
|
57
|
-
slots.push({ key: "branches", label: "Branches", kind: "branch-collection" });
|
|
58
|
-
}
|
|
59
|
-
else if (Array.isArray(node.children) || Array.isArray(node.nodes)) {
|
|
60
|
-
slots.push({ key: "children", label: "Children", kind: "sequence" });
|
|
61
|
-
}
|
|
62
|
-
return slots;
|
|
63
|
-
}
|
|
64
|
-
function isLoopNode(workflowNode, nodeType) {
|
|
65
|
-
var _a, _b, _c;
|
|
66
|
-
var nodeTypeId = String((_b = (_a = workflowNode.type) !== null && _a !== void 0 ? _a : nodeType === null || nodeType === void 0 ? void 0 : nodeType.type) !== null && _b !== void 0 ? _b : "").toLowerCase();
|
|
67
|
-
var category = String((_c = nodeType === null || nodeType === void 0 ? void 0 : nodeType.category) !== null && _c !== void 0 ? _c : "").toLowerCase();
|
|
68
|
-
var nodeTypeTags = nodeType === null || nodeType === void 0 ? void 0 : nodeType.tags;
|
|
69
|
-
var tags = Array.isArray(nodeTypeTags)
|
|
70
|
-
? nodeTypeTags.map(function (tag) { return String(tag).toLowerCase(); })
|
|
71
|
-
: [];
|
|
72
|
-
return (nodeTypeId === "foreach" ||
|
|
73
|
-
nodeTypeId === "for.each" ||
|
|
74
|
-
nodeTypeId === "loopuntil" ||
|
|
75
|
-
nodeTypeId === "loop.until" ||
|
|
76
|
-
category.includes("loop") ||
|
|
77
|
-
tags.includes("loop") ||
|
|
78
|
-
tags.includes("iteration"));
|
|
79
|
-
}
|
|
80
|
-
function getNodeRect(node) {
|
|
81
|
-
var _a, _b, _c, _d;
|
|
82
|
-
var width = node.type === "workflow"
|
|
83
|
-
? DIMENSIONS.workflowWidth
|
|
84
|
-
: node.type === "trigger"
|
|
85
|
-
? DIMENSIONS.triggerWidth
|
|
86
|
-
: node.type === "insert"
|
|
87
|
-
? DIMENSIONS.insertWidth
|
|
88
|
-
: node.type === "sectionLabel"
|
|
89
|
-
? DIMENSIONS.sectionLabelWidth
|
|
90
|
-
: Number((_b = (_a = node.style) === null || _a === void 0 ? void 0 : _a.width) !== null && _b !== void 0 ? _b : 0);
|
|
91
|
-
var height = node.type === "workflow"
|
|
92
|
-
? DIMENSIONS.workflowHeight
|
|
93
|
-
: node.type === "trigger"
|
|
94
|
-
? DIMENSIONS.triggerHeight
|
|
95
|
-
: node.type === "insert"
|
|
96
|
-
? DIMENSIONS.insertHeight
|
|
97
|
-
: node.type === "sectionLabel"
|
|
98
|
-
? DIMENSIONS.sectionLabelHeight
|
|
99
|
-
: Number((_d = (_c = node.style) === null || _c === void 0 ? void 0 : _c.height) !== null && _d !== void 0 ? _d : 0);
|
|
100
|
-
return {
|
|
101
|
-
left: node.position.x,
|
|
102
|
-
top: node.position.y,
|
|
103
|
-
right: node.position.x + width,
|
|
104
|
-
bottom: node.position.y + height,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function createEdge(source, target) {
|
|
108
|
-
return {
|
|
109
|
-
id: "".concat(source, "->").concat(target),
|
|
110
|
-
source: source,
|
|
111
|
-
target: target,
|
|
112
|
-
type: "smoothstep",
|
|
113
|
-
markerEnd: { type: MarkerType.ArrowClosed, width: 14, height: 14 },
|
|
114
|
-
style: {
|
|
115
|
-
stroke: "rgba(191, 219, 254, 0.88)",
|
|
116
|
-
strokeWidth: 2,
|
|
117
|
-
strokeDasharray: "5 5",
|
|
118
|
-
},
|
|
119
|
-
zIndex: 2,
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
function resolveWorkflowNodeIcon(nodeType) {
|
|
123
|
-
var _a, _b, _c;
|
|
124
|
-
return (_c = normalizeSolidIconName((_b = (_a = nodeType === null || nodeType === void 0 ? void 0 : nodeType.ui) === null || _a === void 0 ? void 0 : _a.icon) !== null && _b !== void 0 ? _b : nodeType === null || nodeType === void 0 ? void 0 : nodeType.icon)) !== null && _c !== void 0 ? _c : "si-th-large";
|
|
125
|
-
}
|
|
126
|
-
function estimateSequenceWidth(sequence, nodeTypeMap) {
|
|
127
|
-
if (!sequence.length) {
|
|
128
|
-
return DIMENSIONS.insertWidth;
|
|
129
|
-
}
|
|
130
|
-
return sequence.reduce(function (maxWidth, workflowNode) {
|
|
131
|
-
var nodeType = nodeTypeMap.get(String(workflowNode.type));
|
|
132
|
-
var nodeWidth = estimateWorkflowNodeWidth(workflowNode, nodeTypeMap, nodeType);
|
|
133
|
-
return Math.max(maxWidth, nodeWidth);
|
|
134
|
-
}, DIMENSIONS.workflowWidth);
|
|
135
|
-
}
|
|
136
|
-
function estimateWorkflowNodeWidth(workflowNode, nodeTypeMap, nodeType) {
|
|
137
|
-
var slotDefinitions = normalizeChildSlots(workflowNode, nodeType);
|
|
138
|
-
var branchSlots = slotDefinitions.filter(function (slot) { return slot.key === "then" || slot.key === "else"; });
|
|
139
|
-
if (branchSlots.length >= 2) {
|
|
140
|
-
var branchGap = 60;
|
|
141
|
-
var branchWidths = branchSlots.map(function (slot) {
|
|
142
|
-
return estimateSequenceWidth(Array.isArray(workflowNode[slot.key]) ? workflowNode[slot.key] : [], nodeTypeMap);
|
|
143
|
-
});
|
|
144
|
-
var totalBranchWidth = branchWidths.reduce(function (sum, width) { return sum + width; }, 0) +
|
|
145
|
-
branchGap * Math.max(branchWidths.length - 1, 0);
|
|
146
|
-
return Math.max(DIMENSIONS.workflowWidth, totalBranchWidth);
|
|
147
|
-
}
|
|
148
|
-
if (slotDefinitions.length === 1 && slotDefinitions[0].kind === "sequence") {
|
|
149
|
-
var slotKey = slotDefinitions[0].key;
|
|
150
|
-
return Math.max(DIMENSIONS.workflowWidth, estimateSequenceWidth(Array.isArray(workflowNode[slotKey]) ? workflowNode[slotKey] : [], nodeTypeMap));
|
|
151
|
-
}
|
|
152
|
-
if (slotDefinitions.length === 1 && slotDefinitions[0].kind === "branch-collection") {
|
|
153
|
-
var branchGap = 56;
|
|
154
|
-
var branches = Array.isArray(workflowNode.branches) ? workflowNode.branches : [];
|
|
155
|
-
var branchWidths = branches.map(function (branch) {
|
|
156
|
-
return estimateSequenceWidth(Array.isArray(branch.nodes) ? branch.nodes : [], nodeTypeMap);
|
|
157
|
-
});
|
|
158
|
-
var totalBranchWidth = branchWidths.reduce(function (sum, width) { return sum + width; }, 0) +
|
|
159
|
-
branchGap * Math.max(branchWidths.length - 1, 0);
|
|
160
|
-
return Math.max(DIMENSIONS.workflowWidth, totalBranchWidth);
|
|
161
|
-
}
|
|
162
|
-
return DIMENSIONS.workflowWidth;
|
|
163
|
-
}
|
|
164
|
-
function WorkflowCanvasNodeRenderer(_a) {
|
|
165
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
166
|
-
var data = _a.data;
|
|
167
|
-
if (data.kind === "group") {
|
|
168
|
-
return (_jsx("div", { className: "workflow-flow-group-node workflow-flow-group-node--".concat((_b = data.tone) !== null && _b !== void 0 ? _b : "control"), children: _jsxs("div", { className: "workflow-flow-group-node__header", children: [_jsx("span", { children: data.label }), data.workflowNode ? (_jsx("button", { type: "button", className: "workflow-flow-help-button nodrag nopan nowheel", "aria-label": "Open ".concat((_d = (_c = data.nodeType) === null || _c === void 0 ? void 0 : _c.label) !== null && _d !== void 0 ? _d : data.label, " documentation"), title: "Documentation", onPointerDown: function (event) {
|
|
169
|
-
event.stopPropagation();
|
|
170
|
-
}, onClick: function (event) {
|
|
171
|
-
var _a, _b;
|
|
172
|
-
event.stopPropagation();
|
|
173
|
-
(_a = data.onViewDocs) === null || _a === void 0 ? void 0 : _a.call(data, String((_b = data.workflowNode) === null || _b === void 0 ? void 0 : _b.id));
|
|
174
|
-
}, children: _jsx(CircleHelp, { size: 12 }) })) : null] }) }));
|
|
175
|
-
}
|
|
176
|
-
if (data.kind === "insert") {
|
|
177
|
-
return (_jsxs("div", { className: "workflow-flow-insert-node", children: [_jsx("button", { type: "button", onClick: data.onInsert, className: "workflow-flow-insert-node__button", children: _jsx(Plus, { size: 16 }) }), _jsx("div", { className: "workflow-flow-insert-node__label", children: data.enabled
|
|
178
|
-
? "Add ".concat((_e = data.selectedTypeLabel) !== null && _e !== void 0 ? _e : "node")
|
|
179
|
-
: "Pick a node type to insert" })] }));
|
|
180
|
-
}
|
|
181
|
-
if (data.kind === "section-label") {
|
|
182
|
-
return _jsx("div", { className: "workflow-flow-section-label", children: data.label });
|
|
183
|
-
}
|
|
184
|
-
if (data.kind === "workflow-trigger") {
|
|
185
|
-
var triggerTitle = data.readOnly
|
|
186
|
-
? String(data.trigger.id)
|
|
187
|
-
: (_g = (_f = data.trigger.name) !== null && _f !== void 0 ? _f : data.trigger.label) !== null && _g !== void 0 ? _g : data.trigger.id;
|
|
188
|
-
return (_jsxs("div", { className: "workflow-flow-node-card workflow-flow-node-card--trigger ".concat(data.selected ? "is-selected" : "", " ").concat(data.readOnly ? "is-readonly workflow-flow-node-card--readonly-compact" : ""), onClick: function () { return data.onSelectTrigger(String(data.trigger.id)); }, role: "button", tabIndex: 0, onKeyDown: function (event) {
|
|
189
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
190
|
-
event.preventDefault();
|
|
191
|
-
data.onSelectTrigger(String(data.trigger.id));
|
|
192
|
-
}
|
|
193
|
-
}, children: [_jsxs("div", { className: "workflow-flow-node-card__header", children: [_jsxs("div", { className: "workflow-flow-node-card__header-main", children: [_jsx("div", { className: "workflow-flow-node-card__icon-shell", children: _jsx(SolidIcon, { name: "si-calendar", size: 16, "aria-hidden": true }) }), _jsxs("div", { children: [_jsx("div", { className: "workflow-flow-node-card__title", children: triggerTitle }), !data.readOnly ? (_jsx("div", { className: "workflow-flow-node-card__subtitle", children: (_h = data.trigger.type) !== null && _h !== void 0 ? _h : "Trigger" })) : null] })] }), !data.readOnly ? (_jsx("div", { className: "workflow-flow-node-card__tags", children: data.trigger.disabled ? _jsx(SolidTag, { tone: "warn", children: "disabled" }) : _jsx(SolidTag, { children: "trigger" }) })) : null] }), !data.readOnly && data.trigger.description ? (_jsx("div", { className: "workflow-flow-node-card__description", children: data.trigger.description })) : null, !data.readOnly ? (_jsx("div", { className: "workflow-flow-node-card__actions", children: _jsx(SolidButton, { size: "small", variant: "ghost", onClick: function (event) {
|
|
194
|
-
event.stopPropagation();
|
|
195
|
-
data.onViewDocs(String(data.trigger.id));
|
|
196
|
-
}, children: _jsx(BookOpen, { size: 14 }) }) })) : null, _jsx(Handle, { type: "target", position: Position.Top, className: "workflow-flow-node-card__handle workflow-flow-node-card__handle--top", isConnectable: false }), _jsx(Handle, { type: "source", position: Position.Bottom, className: "workflow-flow-node-card__handle workflow-flow-node-card__handle--bottom", isConnectable: false })] }));
|
|
197
|
-
}
|
|
198
|
-
var workflowNode = data.workflowNode, nodeType = data.nodeType, selected = data.selected;
|
|
199
|
-
var iconName = resolveWorkflowNodeIcon(nodeType);
|
|
200
|
-
var nodeTitle = data.readOnly ? String(workflowNode.id) : (_j = workflowNode.name) !== null && _j !== void 0 ? _j : workflowNode.id;
|
|
201
|
-
var nodeTypeLabel = (_m = (_l = (_k = nodeType === null || nodeType === void 0 ? void 0 : nodeType.label) !== null && _k !== void 0 ? _k : workflowNode.type) !== null && _l !== void 0 ? _l : workflowNode.kind) !== null && _m !== void 0 ? _m : "node";
|
|
202
|
-
return (_jsxs("div", { className: "workflow-flow-node-card ".concat(selected ? "is-selected" : "", " ").concat(data.readOnly ? "is-readonly workflow-flow-node-card--readonly-compact" : ""), onClick: function () { return data.onSelectNode(String(workflowNode.id)); }, role: "button", tabIndex: 0, onKeyDown: function (event) {
|
|
203
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
204
|
-
event.preventDefault();
|
|
205
|
-
data.onSelectNode(String(workflowNode.id));
|
|
206
|
-
}
|
|
207
|
-
}, children: [_jsxs("div", { className: "workflow-flow-node-card__typebar", children: [_jsx("span", { children: nodeTypeLabel }), _jsxs("span", { className: "workflow-flow-node-card__quick-actions", children: [!data.readOnly ? (_jsxs(_Fragment, { children: [_jsx("button", { type: "button", className: "workflow-flow-icon-button nodrag nopan nowheel", "aria-label": "Edit ".concat(nodeTitle), title: "Edit", onPointerDown: function (event) {
|
|
208
|
-
event.stopPropagation();
|
|
209
|
-
}, onClick: function (event) {
|
|
210
|
-
event.stopPropagation();
|
|
211
|
-
data.onEditNode(String(workflowNode.id));
|
|
212
|
-
}, children: _jsx(Pencil, { size: 12 }) }), _jsx("button", { type: "button", className: "workflow-flow-icon-button workflow-flow-icon-button--danger nodrag nopan nowheel", "aria-label": "Delete ".concat(nodeTitle), title: "Delete", onPointerDown: function (event) {
|
|
213
|
-
event.stopPropagation();
|
|
214
|
-
}, onClick: function (event) {
|
|
215
|
-
event.stopPropagation();
|
|
216
|
-
data.onDeleteNode(String(workflowNode.id));
|
|
217
|
-
}, children: _jsx(Trash2, { size: 12 }) })] })) : null, _jsx("button", { type: "button", className: "workflow-flow-icon-button nodrag nopan nowheel", "aria-label": "Open ".concat(nodeTypeLabel, " documentation"), title: "Documentation", onPointerDown: function (event) {
|
|
218
|
-
event.stopPropagation();
|
|
219
|
-
}, onClick: function (event) {
|
|
220
|
-
event.stopPropagation();
|
|
221
|
-
data.onViewDocs(String(workflowNode.id));
|
|
222
|
-
}, children: _jsx(CircleHelp, { size: 12 }) })] })] }), _jsx("div", { className: "workflow-flow-node-card__body", children: _jsxs("div", { className: "workflow-flow-node-card__header-main", children: [_jsx("div", { className: "workflow-flow-node-card__icon-shell", children: _jsx(SolidIcon, { name: iconName, size: 16, "aria-hidden": true }) }), _jsx("div", { children: _jsx("div", { className: "workflow-flow-node-card__title", children: nodeTitle }) })] }) }), !data.readOnly && workflowNode.description ? (_jsx("div", { className: "workflow-flow-node-card__description", children: workflowNode.description })) : null, _jsx(Handle, { type: "target", position: Position.Top, className: "workflow-flow-node-card__handle workflow-flow-node-card__handle--top", isConnectable: false }), _jsx(Handle, { type: "source", position: Position.Bottom, className: "workflow-flow-node-card__handle workflow-flow-node-card__handle--bottom", isConnectable: false })] }));
|
|
223
|
-
}
|
|
224
|
-
var canvasNodeTypes = {
|
|
225
|
-
group: WorkflowCanvasNodeRenderer,
|
|
226
|
-
workflow: WorkflowCanvasNodeRenderer,
|
|
227
|
-
trigger: WorkflowCanvasNodeRenderer,
|
|
228
|
-
insert: WorkflowCanvasNodeRenderer,
|
|
229
|
-
sectionLabel: WorkflowCanvasNodeRenderer,
|
|
230
|
-
};
|
|
231
|
-
function pushGroupNode(ctx, id, label, tone, subset, workflowNode, nodeType) {
|
|
232
|
-
if (!subset.length) {
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
var bounds = subset.reduce(function (acc, node) {
|
|
236
|
-
var rect = getNodeRect(node);
|
|
237
|
-
return {
|
|
238
|
-
left: Math.min(acc.left, rect.left),
|
|
239
|
-
top: Math.min(acc.top, rect.top),
|
|
240
|
-
right: Math.max(acc.right, rect.right),
|
|
241
|
-
bottom: Math.max(acc.bottom, rect.bottom),
|
|
242
|
-
};
|
|
243
|
-
}, {
|
|
244
|
-
left: Number.POSITIVE_INFINITY,
|
|
245
|
-
top: Number.POSITIVE_INFINITY,
|
|
246
|
-
right: Number.NEGATIVE_INFINITY,
|
|
247
|
-
bottom: Number.NEGATIVE_INFINITY,
|
|
248
|
-
});
|
|
249
|
-
var paddingX = tone === "loop" ? DIMENSIONS.loopGroupPaddingX : DIMENSIONS.groupPaddingX;
|
|
250
|
-
var paddingTop = tone === "loop" ? DIMENSIONS.loopGroupPaddingTop : DIMENSIONS.groupPaddingTop;
|
|
251
|
-
var paddingBottom = tone === "loop" ? DIMENSIONS.loopGroupPaddingBottom : DIMENSIONS.groupPaddingBottom;
|
|
252
|
-
ctx.backgroundNodes.push({
|
|
253
|
-
id: id,
|
|
254
|
-
type: "group",
|
|
255
|
-
position: {
|
|
256
|
-
x: bounds.left - paddingX,
|
|
257
|
-
y: bounds.top - paddingTop,
|
|
258
|
-
},
|
|
259
|
-
draggable: false,
|
|
260
|
-
selectable: false,
|
|
261
|
-
style: {
|
|
262
|
-
width: bounds.right - bounds.left + paddingX * 2,
|
|
263
|
-
height: bounds.bottom - bounds.top + paddingTop + paddingBottom,
|
|
264
|
-
zIndex: 0,
|
|
265
|
-
},
|
|
266
|
-
data: {
|
|
267
|
-
kind: "group",
|
|
268
|
-
label: label,
|
|
269
|
-
tone: tone,
|
|
270
|
-
workflowNode: workflowNode,
|
|
271
|
-
nodeType: nodeType,
|
|
272
|
-
onViewDocs: ctx.onViewDocs,
|
|
273
|
-
},
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
function pushInsertNode(ctx, id, x, y, target) {
|
|
277
|
-
var _a;
|
|
278
|
-
ctx.nodes.push({
|
|
279
|
-
id: id,
|
|
280
|
-
type: "insert",
|
|
281
|
-
position: { x: x, y: y },
|
|
282
|
-
draggable: false,
|
|
283
|
-
selectable: false,
|
|
284
|
-
data: {
|
|
285
|
-
kind: "insert",
|
|
286
|
-
enabled: !!ctx.activePaletteNodeType,
|
|
287
|
-
selectedTypeLabel: (_a = ctx.activePaletteNodeType) === null || _a === void 0 ? void 0 : _a.label,
|
|
288
|
-
onInsert: function () { return ctx.onInsertNode(target); },
|
|
289
|
-
},
|
|
290
|
-
sourcePosition: Position.Bottom,
|
|
291
|
-
targetPosition: Position.Top,
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
function pushWorkflowNode(ctx, workflowNode, x, y) {
|
|
295
|
-
var nodeType = ctx.nodeTypeMap.get(String(workflowNode.type));
|
|
296
|
-
ctx.nodes.push({
|
|
297
|
-
id: String(workflowNode.id),
|
|
298
|
-
type: "workflow",
|
|
299
|
-
position: { x: x, y: y },
|
|
300
|
-
draggable: false,
|
|
301
|
-
data: {
|
|
302
|
-
kind: "workflow-node",
|
|
303
|
-
workflowNode: workflowNode,
|
|
304
|
-
nodeType: nodeType,
|
|
305
|
-
selected: ctx.selectedNodeId === String(workflowNode.id),
|
|
306
|
-
readOnly: ctx.readOnly,
|
|
307
|
-
onSelectNode: ctx.onSelectNode,
|
|
308
|
-
onEditNode: ctx.onEditNode,
|
|
309
|
-
onDeleteNode: ctx.onDeleteNode,
|
|
310
|
-
onViewDocs: ctx.onViewDocs,
|
|
311
|
-
},
|
|
312
|
-
sourcePosition: Position.Bottom,
|
|
313
|
-
targetPosition: Position.Top,
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
function pushTriggerNode(ctx, trigger, x, y) {
|
|
317
|
-
ctx.nodes.push({
|
|
318
|
-
id: "trigger-".concat(String(trigger.id)),
|
|
319
|
-
type: "trigger",
|
|
320
|
-
position: { x: x, y: y },
|
|
321
|
-
draggable: false,
|
|
322
|
-
selectable: false,
|
|
323
|
-
sourcePosition: Position.Bottom,
|
|
324
|
-
targetPosition: Position.Top,
|
|
325
|
-
data: {
|
|
326
|
-
kind: "workflow-trigger",
|
|
327
|
-
trigger: trigger,
|
|
328
|
-
selected: ctx.selectedTriggerId === String(trigger.id),
|
|
329
|
-
readOnly: ctx.readOnly,
|
|
330
|
-
onSelectTrigger: ctx.onSelectTrigger,
|
|
331
|
-
onViewDocs: ctx.onViewTriggerDocs,
|
|
332
|
-
},
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
function pushSectionLabelNode(ctx, id, x, y, label) {
|
|
336
|
-
ctx.nodes.push({
|
|
337
|
-
id: id,
|
|
338
|
-
type: "sectionLabel",
|
|
339
|
-
position: { x: x, y: y },
|
|
340
|
-
draggable: false,
|
|
341
|
-
selectable: false,
|
|
342
|
-
data: {
|
|
343
|
-
kind: "section-label",
|
|
344
|
-
label: label,
|
|
345
|
-
},
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
function buildSequenceGraph(sequence, ctx, laneX, startY, scope) {
|
|
349
|
-
var _a, _b;
|
|
350
|
-
var cursorY = startY;
|
|
351
|
-
var previousGraphNodeId = null;
|
|
352
|
-
var maxWidth = DIMENSIONS.workflowWidth;
|
|
353
|
-
var initialInsertId = "insert-".concat(JSON.stringify(scope), "-0");
|
|
354
|
-
pushInsertNode(ctx, initialInsertId, laneX, cursorY, __assign(__assign({}, scope), { index: 0 }));
|
|
355
|
-
previousGraphNodeId = initialInsertId;
|
|
356
|
-
var exitId = initialInsertId;
|
|
357
|
-
var _loop_1 = function (index) {
|
|
358
|
-
var workflowNode = sequence[index];
|
|
359
|
-
var nodeType = ctx.nodeTypeMap.get(String(workflowNode.type));
|
|
360
|
-
var slotDefinitions = normalizeChildSlots(workflowNode, nodeType);
|
|
361
|
-
var isControlNode = (nodeType === null || nodeType === void 0 ? void 0 : nodeType.kind) === "control" || slotDefinitions.length > 0;
|
|
362
|
-
var estimatedNodeWidth = estimateWorkflowNodeWidth(workflowNode, ctx.nodeTypeMap, nodeType);
|
|
363
|
-
maxWidth = Math.max(maxWidth, estimatedNodeWidth);
|
|
364
|
-
var subtreeStartIndex = ctx.nodes.length;
|
|
365
|
-
cursorY += 82;
|
|
366
|
-
pushWorkflowNode(ctx, workflowNode, laneX - 56, cursorY);
|
|
367
|
-
if (previousGraphNodeId) {
|
|
368
|
-
ctx.edges.push(createEdge(previousGraphNodeId, String(workflowNode.id)));
|
|
369
|
-
}
|
|
370
|
-
var deepestY = cursorY;
|
|
371
|
-
var connectionSources = [String(workflowNode.id)];
|
|
372
|
-
var branchSlots = slotDefinitions.filter(function (slot) { return slot.key === "then" || slot.key === "else"; });
|
|
373
|
-
if (branchSlots.length >= 2) {
|
|
374
|
-
var branchGap_1 = 60;
|
|
375
|
-
var branchWidths_1 = branchSlots.map(function (slot) {
|
|
376
|
-
return estimateSequenceWidth(Array.isArray(workflowNode[slot.key]) ? workflowNode[slot.key] : [], ctx.nodeTypeMap);
|
|
377
|
-
});
|
|
378
|
-
var totalBranchWidth = branchWidths_1.reduce(function (sum, width) { return sum + width; }, 0) +
|
|
379
|
-
branchGap_1 * Math.max(branchWidths_1.length - 1, 0);
|
|
380
|
-
var branchStartX_1 = laneX - totalBranchWidth / 2;
|
|
381
|
-
var branchLayouts = branchSlots.map(function (slot, branchIndex) {
|
|
382
|
-
var _a;
|
|
383
|
-
var slotKey = slot.key;
|
|
384
|
-
var childNodes = Array.isArray(workflowNode[slotKey]) ? workflowNode[slotKey] : [];
|
|
385
|
-
var beforeWidth = branchWidths_1
|
|
386
|
-
.slice(0, branchIndex)
|
|
387
|
-
.reduce(function (sum, width) { return sum + width; }, 0);
|
|
388
|
-
var branchLaneX = branchStartX_1 +
|
|
389
|
-
beforeWidth +
|
|
390
|
-
branchGap_1 * branchIndex +
|
|
391
|
-
branchWidths_1[branchIndex] / 2;
|
|
392
|
-
var labelX = branchLaneX + 24;
|
|
393
|
-
var labelY = cursorY + 60;
|
|
394
|
-
pushSectionLabelNode(ctx, "".concat(workflowNode.id, "-").concat(slotKey, "-label"), labelX, labelY, (_a = slot.label) !== null && _a !== void 0 ? _a : slotKey);
|
|
395
|
-
var childLayout = buildSequenceGraph(childNodes, ctx, branchLaneX, cursorY + 82, {
|
|
396
|
-
scope: "slot",
|
|
397
|
-
parentNodeId: String(workflowNode.id),
|
|
398
|
-
slotKey: slotKey,
|
|
399
|
-
});
|
|
400
|
-
ctx.edges.push(createEdge(String(workflowNode.id), childLayout.entryId));
|
|
401
|
-
deepestY = Math.max(deepestY, childLayout.endY);
|
|
402
|
-
maxWidth = Math.max(maxWidth, childLayout.width);
|
|
403
|
-
return childLayout;
|
|
404
|
-
});
|
|
405
|
-
connectionSources = branchLayouts.map(function (layout) { return layout.exitId; });
|
|
406
|
-
}
|
|
407
|
-
else if (slotDefinitions.length === 1 && slotDefinitions[0].kind === "sequence") {
|
|
408
|
-
var slot = slotDefinitions[0];
|
|
409
|
-
var slotKey = slot.key;
|
|
410
|
-
var childNodes = Array.isArray(workflowNode[slotKey]) ? workflowNode[slotKey] : [];
|
|
411
|
-
if (slot.label) {
|
|
412
|
-
var isLoop = isLoopNode(workflowNode, nodeType);
|
|
413
|
-
pushSectionLabelNode(ctx, "".concat(workflowNode.id, "-").concat(slotKey, "-label"), laneX + 24, cursorY + (isLoop ? DIMENSIONS.controlChildLabelOffsetY : 132), isLoop ? (_a = slot.label) !== null && _a !== void 0 ? _a : "Loop Body" : slot.label);
|
|
414
|
-
}
|
|
415
|
-
var childLayout = buildSequenceGraph(childNodes, ctx, laneX, cursorY + DIMENSIONS.controlChildStartOffsetY, {
|
|
416
|
-
scope: "slot",
|
|
417
|
-
parentNodeId: String(workflowNode.id),
|
|
418
|
-
slotKey: slotKey,
|
|
419
|
-
});
|
|
420
|
-
ctx.edges.push(createEdge(String(workflowNode.id), childLayout.entryId));
|
|
421
|
-
deepestY = Math.max(deepestY, childLayout.endY);
|
|
422
|
-
maxWidth = Math.max(maxWidth, childLayout.width);
|
|
423
|
-
connectionSources = [childLayout.exitId];
|
|
424
|
-
}
|
|
425
|
-
else if (slotDefinitions.length === 1 && slotDefinitions[0].kind === "branch-collection") {
|
|
426
|
-
var branches = Array.isArray(workflowNode.branches) ? workflowNode.branches : [];
|
|
427
|
-
var branchGap_2 = 56;
|
|
428
|
-
var branchWidths_2 = branches.map(function (branch) {
|
|
429
|
-
return estimateSequenceWidth(Array.isArray(branch.nodes) ? branch.nodes : [], ctx.nodeTypeMap);
|
|
430
|
-
});
|
|
431
|
-
var totalBranchWidth = branchWidths_2.reduce(function (sum, width) { return sum + width; }, 0) +
|
|
432
|
-
branchGap_2 * Math.max(branchWidths_2.length - 1, 0);
|
|
433
|
-
var branchStartX_2 = laneX - totalBranchWidth / 2;
|
|
434
|
-
var branchLayouts = branches.map(function (branch, branchIndex) {
|
|
435
|
-
var _a;
|
|
436
|
-
var beforeWidth = branchWidths_2
|
|
437
|
-
.slice(0, branchIndex)
|
|
438
|
-
.reduce(function (sum, width) { return sum + width; }, 0);
|
|
439
|
-
var branchLaneX = branchStartX_2 +
|
|
440
|
-
beforeWidth +
|
|
441
|
-
branchGap_2 * branchIndex +
|
|
442
|
-
branchWidths_2[branchIndex] / 2;
|
|
443
|
-
pushSectionLabelNode(ctx, "".concat(workflowNode.id, "-").concat(branch.id, "-label"), branchLaneX + 24, cursorY + 60, (_a = branch.name) !== null && _a !== void 0 ? _a : branch.id);
|
|
444
|
-
var branchLayout = buildSequenceGraph(Array.isArray(branch.nodes) ? branch.nodes : [], ctx, branchLaneX, cursorY + 82, {
|
|
445
|
-
scope: "branch",
|
|
446
|
-
parentNodeId: String(workflowNode.id),
|
|
447
|
-
branchId: String(branch.id),
|
|
448
|
-
});
|
|
449
|
-
ctx.edges.push(createEdge(String(workflowNode.id), branchLayout.entryId));
|
|
450
|
-
deepestY = Math.max(deepestY, branchLayout.endY);
|
|
451
|
-
maxWidth = Math.max(maxWidth, branchLayout.width);
|
|
452
|
-
return branchLayout;
|
|
453
|
-
});
|
|
454
|
-
connectionSources = branchLayouts.length
|
|
455
|
-
? branchLayouts.map(function (layout) { return layout.exitId; })
|
|
456
|
-
: [String(workflowNode.id)];
|
|
457
|
-
}
|
|
458
|
-
if (isControlNode) {
|
|
459
|
-
pushGroupNode(ctx, "group-".concat(String(workflowNode.id)), (_b = workflowNode.name) !== null && _b !== void 0 ? _b : workflowNode.id, isLoopNode(workflowNode, nodeType) ? "loop" : "control", ctx.nodes.slice(subtreeStartIndex), workflowNode, nodeType);
|
|
460
|
-
}
|
|
461
|
-
cursorY = Math.max(cursorY + 82, deepestY + (isControlNode ? 40 : 0));
|
|
462
|
-
var afterInsertId = "insert-".concat(JSON.stringify(scope), "-").concat(index + 1, "-").concat(workflowNode.id);
|
|
463
|
-
pushInsertNode(ctx, afterInsertId, laneX, cursorY, __assign(__assign({}, scope), { index: index + 1 }));
|
|
464
|
-
connectionSources.forEach(function (sourceId) {
|
|
465
|
-
ctx.edges.push(createEdge(sourceId, afterInsertId));
|
|
466
|
-
});
|
|
467
|
-
previousGraphNodeId = afterInsertId;
|
|
468
|
-
exitId = afterInsertId;
|
|
469
|
-
};
|
|
470
|
-
for (var index = 0; index < sequence.length; index += 1) {
|
|
471
|
-
_loop_1(index);
|
|
472
|
-
}
|
|
473
|
-
return {
|
|
474
|
-
entryId: initialInsertId,
|
|
475
|
-
exitId: exitId,
|
|
476
|
-
endY: cursorY,
|
|
477
|
-
width: maxWidth,
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
function buildReadOnlySequenceGraph(sequence, ctx, laneX, startY) {
|
|
481
|
-
var _a, _b;
|
|
482
|
-
var cursorY = startY;
|
|
483
|
-
var previousExitIds = [];
|
|
484
|
-
var entryIds = [];
|
|
485
|
-
var maxWidth = sequence.length ? DIMENSIONS.workflowWidth : 0;
|
|
486
|
-
var _loop_2 = function (workflowNode) {
|
|
487
|
-
var nodeType = ctx.nodeTypeMap.get(String(workflowNode.type));
|
|
488
|
-
var slotDefinitions = normalizeChildSlots(workflowNode, nodeType);
|
|
489
|
-
var isControlNode = (nodeType === null || nodeType === void 0 ? void 0 : nodeType.kind) === "control" || slotDefinitions.length > 0;
|
|
490
|
-
var estimatedNodeWidth = estimateWorkflowNodeWidth(workflowNode, ctx.nodeTypeMap, nodeType);
|
|
491
|
-
maxWidth = Math.max(maxWidth, estimatedNodeWidth);
|
|
492
|
-
var subtreeStartIndex = ctx.nodes.length;
|
|
493
|
-
cursorY += 82;
|
|
494
|
-
pushWorkflowNode(ctx, workflowNode, laneX - 56, cursorY);
|
|
495
|
-
if (!entryIds.length) {
|
|
496
|
-
entryIds = [String(workflowNode.id)];
|
|
497
|
-
}
|
|
498
|
-
previousExitIds.forEach(function (sourceId) {
|
|
499
|
-
ctx.edges.push(createEdge(sourceId, String(workflowNode.id)));
|
|
500
|
-
});
|
|
501
|
-
var deepestY = cursorY;
|
|
502
|
-
var exitIds = [String(workflowNode.id)];
|
|
503
|
-
var branchSlots = slotDefinitions.filter(function (slot) { return slot.key === "then" || slot.key === "else"; });
|
|
504
|
-
if (branchSlots.length >= 2) {
|
|
505
|
-
var branchGap_3 = 60;
|
|
506
|
-
var branchWidths_3 = branchSlots.map(function (slot) {
|
|
507
|
-
return estimateSequenceWidth(Array.isArray(workflowNode[slot.key]) ? workflowNode[slot.key] : [], ctx.nodeTypeMap);
|
|
508
|
-
});
|
|
509
|
-
var totalBranchWidth = branchWidths_3.reduce(function (sum, width) { return sum + width; }, 0) +
|
|
510
|
-
branchGap_3 * Math.max(branchWidths_3.length - 1, 0);
|
|
511
|
-
var branchStartX_3 = laneX - totalBranchWidth / 2;
|
|
512
|
-
var branchLayouts = branchSlots
|
|
513
|
-
.map(function (slot, branchIndex) {
|
|
514
|
-
var _a;
|
|
515
|
-
var slotKey = slot.key;
|
|
516
|
-
var childNodes = Array.isArray(workflowNode[slotKey])
|
|
517
|
-
? workflowNode[slotKey]
|
|
518
|
-
: [];
|
|
519
|
-
var beforeWidth = branchWidths_3
|
|
520
|
-
.slice(0, branchIndex)
|
|
521
|
-
.reduce(function (sum, width) { return sum + width; }, 0);
|
|
522
|
-
var branchLaneX = branchStartX_3 +
|
|
523
|
-
beforeWidth +
|
|
524
|
-
branchGap_3 * branchIndex +
|
|
525
|
-
branchWidths_3[branchIndex] / 2;
|
|
526
|
-
pushSectionLabelNode(ctx, "".concat(workflowNode.id, "-").concat(slotKey, "-label"), branchLaneX + 24, cursorY + 60, (_a = slot.label) !== null && _a !== void 0 ? _a : slotKey);
|
|
527
|
-
var childLayout = buildReadOnlySequenceGraph(childNodes, ctx, branchLaneX, cursorY + 82);
|
|
528
|
-
childLayout.entryIds.forEach(function (entryId) {
|
|
529
|
-
ctx.edges.push(createEdge(String(workflowNode.id), entryId));
|
|
530
|
-
});
|
|
531
|
-
deepestY = Math.max(deepestY, childLayout.endY);
|
|
532
|
-
maxWidth = Math.max(maxWidth, childLayout.width);
|
|
533
|
-
return childLayout;
|
|
534
|
-
})
|
|
535
|
-
.filter(function (layout) { return layout.entryIds.length; });
|
|
536
|
-
exitIds = branchLayouts.length
|
|
537
|
-
? branchLayouts.flatMap(function (layout) { return layout.exitIds; })
|
|
538
|
-
: [String(workflowNode.id)];
|
|
539
|
-
}
|
|
540
|
-
else if (slotDefinitions.length === 1 && slotDefinitions[0].kind === "sequence") {
|
|
541
|
-
var slot = slotDefinitions[0];
|
|
542
|
-
var slotKey = slot.key;
|
|
543
|
-
var childNodes = Array.isArray(workflowNode[slotKey]) ? workflowNode[slotKey] : [];
|
|
544
|
-
if (slot.label) {
|
|
545
|
-
var isLoop = isLoopNode(workflowNode, nodeType);
|
|
546
|
-
pushSectionLabelNode(ctx, "".concat(workflowNode.id, "-").concat(slotKey, "-label"), laneX + 24, cursorY + (isLoop ? DIMENSIONS.controlChildLabelOffsetY : 132), isLoop ? (_a = slot.label) !== null && _a !== void 0 ? _a : "Loop Body" : slot.label);
|
|
547
|
-
}
|
|
548
|
-
var childLayout = buildReadOnlySequenceGraph(childNodes, ctx, laneX, cursorY + DIMENSIONS.controlChildStartOffsetY);
|
|
549
|
-
childLayout.entryIds.forEach(function (entryId) {
|
|
550
|
-
ctx.edges.push(createEdge(String(workflowNode.id), entryId));
|
|
551
|
-
});
|
|
552
|
-
deepestY = Math.max(deepestY, childLayout.endY);
|
|
553
|
-
maxWidth = Math.max(maxWidth, childLayout.width);
|
|
554
|
-
exitIds = childLayout.exitIds.length ? childLayout.exitIds : [String(workflowNode.id)];
|
|
555
|
-
}
|
|
556
|
-
else if (slotDefinitions.length === 1 && slotDefinitions[0].kind === "branch-collection") {
|
|
557
|
-
var branches = Array.isArray(workflowNode.branches) ? workflowNode.branches : [];
|
|
558
|
-
var branchGap_4 = 56;
|
|
559
|
-
var branchWidths_4 = branches.map(function (branch) {
|
|
560
|
-
return estimateSequenceWidth(Array.isArray(branch.nodes) ? branch.nodes : [], ctx.nodeTypeMap);
|
|
561
|
-
});
|
|
562
|
-
var totalBranchWidth = branchWidths_4.reduce(function (sum, width) { return sum + width; }, 0) +
|
|
563
|
-
branchGap_4 * Math.max(branchWidths_4.length - 1, 0);
|
|
564
|
-
var branchStartX_4 = laneX - totalBranchWidth / 2;
|
|
565
|
-
var branchLayouts = branches
|
|
566
|
-
.map(function (branch, branchIndex) {
|
|
567
|
-
var _a;
|
|
568
|
-
var beforeWidth = branchWidths_4
|
|
569
|
-
.slice(0, branchIndex)
|
|
570
|
-
.reduce(function (sum, width) { return sum + width; }, 0);
|
|
571
|
-
var branchLaneX = branchStartX_4 +
|
|
572
|
-
beforeWidth +
|
|
573
|
-
branchGap_4 * branchIndex +
|
|
574
|
-
branchWidths_4[branchIndex] / 2;
|
|
575
|
-
pushSectionLabelNode(ctx, "".concat(workflowNode.id, "-").concat(branch.id, "-label"), branchLaneX + 24, cursorY + 60, (_a = branch.name) !== null && _a !== void 0 ? _a : branch.id);
|
|
576
|
-
var branchLayout = buildReadOnlySequenceGraph(Array.isArray(branch.nodes) ? branch.nodes : [], ctx, branchLaneX, cursorY + 82);
|
|
577
|
-
branchLayout.entryIds.forEach(function (entryId) {
|
|
578
|
-
ctx.edges.push(createEdge(String(workflowNode.id), entryId));
|
|
579
|
-
});
|
|
580
|
-
deepestY = Math.max(deepestY, branchLayout.endY);
|
|
581
|
-
maxWidth = Math.max(maxWidth, branchLayout.width);
|
|
582
|
-
return branchLayout;
|
|
583
|
-
})
|
|
584
|
-
.filter(function (layout) { return layout.entryIds.length; });
|
|
585
|
-
exitIds = branchLayouts.length
|
|
586
|
-
? branchLayouts.flatMap(function (layout) { return layout.exitIds; })
|
|
587
|
-
: [String(workflowNode.id)];
|
|
588
|
-
}
|
|
589
|
-
if (isControlNode) {
|
|
590
|
-
pushGroupNode(ctx, "group-".concat(String(workflowNode.id)), (_b = workflowNode.name) !== null && _b !== void 0 ? _b : workflowNode.id, isLoopNode(workflowNode, nodeType) ? "loop" : "control", ctx.nodes.slice(subtreeStartIndex), workflowNode, nodeType);
|
|
591
|
-
}
|
|
592
|
-
cursorY = Math.max(cursorY + 82, deepestY + (isControlNode ? 40 : 0));
|
|
593
|
-
previousExitIds = exitIds;
|
|
594
|
-
};
|
|
595
|
-
for (var _i = 0, sequence_1 = sequence; _i < sequence_1.length; _i++) {
|
|
596
|
-
var workflowNode = sequence_1[_i];
|
|
597
|
-
_loop_2(workflowNode);
|
|
598
|
-
}
|
|
599
|
-
return {
|
|
600
|
-
entryIds: entryIds,
|
|
601
|
-
exitIds: previousExitIds,
|
|
602
|
-
endY: cursorY,
|
|
603
|
-
width: maxWidth,
|
|
604
|
-
};
|
|
605
|
-
}
|
|
606
|
-
function buildGraph(definition, nodeTypes, props) {
|
|
607
|
-
var _a, _b;
|
|
608
|
-
var ctx = {
|
|
609
|
-
backgroundNodes: [],
|
|
610
|
-
nodes: [],
|
|
611
|
-
edges: [],
|
|
612
|
-
nodeTypeMap: new Map(nodeTypes.map(function (item) { return [item.type, item]; })),
|
|
613
|
-
readOnly: props.readOnly,
|
|
614
|
-
activePaletteNodeType: props.activePaletteNodeType,
|
|
615
|
-
selectedNodeId: props.selectedNodeId,
|
|
616
|
-
selectedTriggerId: props.selectedTriggerId,
|
|
617
|
-
onSelectNode: props.onSelectNode,
|
|
618
|
-
onSelectTrigger: props.onSelectTrigger,
|
|
619
|
-
onEditNode: props.onEditNode,
|
|
620
|
-
onDeleteNode: props.onDeleteNode,
|
|
621
|
-
onViewDocs: props.onViewDocs,
|
|
622
|
-
onViewTriggerDocs: props.onViewTriggerDocs,
|
|
623
|
-
onInsertNode: props.onInsertNode,
|
|
624
|
-
onAddBranch: props.onAddBranch,
|
|
625
|
-
};
|
|
626
|
-
var triggers = Array.isArray(definition.triggers) ? definition.triggers : [];
|
|
627
|
-
var startY = 0;
|
|
628
|
-
var previousTriggerId = null;
|
|
629
|
-
if (triggers.length) {
|
|
630
|
-
var triggerStartIndex = ctx.nodes.length;
|
|
631
|
-
var triggerY_1 = 60;
|
|
632
|
-
triggers.forEach(function (trigger) {
|
|
633
|
-
var triggerNodeId = "trigger-".concat(String(trigger.id));
|
|
634
|
-
pushTriggerNode(ctx, trigger, 32, triggerY_1);
|
|
635
|
-
if (previousTriggerId) {
|
|
636
|
-
ctx.edges.push(createEdge(previousTriggerId, triggerNodeId));
|
|
637
|
-
}
|
|
638
|
-
previousTriggerId = triggerNodeId;
|
|
639
|
-
triggerY_1 += 96;
|
|
640
|
-
});
|
|
641
|
-
pushGroupNode(ctx, "group-triggers", "Triggers", "trigger", ctx.nodes.slice(triggerStartIndex));
|
|
642
|
-
startY = triggerY_1 + 2;
|
|
643
|
-
}
|
|
644
|
-
if (props.readOnly) {
|
|
645
|
-
var readOnlyLayout = buildReadOnlySequenceGraph((_a = definition.nodes) !== null && _a !== void 0 ? _a : [], ctx, 80, startY);
|
|
646
|
-
if (previousTriggerId) {
|
|
647
|
-
var triggerSourceId_1 = previousTriggerId;
|
|
648
|
-
readOnlyLayout.entryIds.forEach(function (entryId) {
|
|
649
|
-
ctx.edges.push(createEdge(triggerSourceId_1, entryId));
|
|
650
|
-
});
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
else {
|
|
654
|
-
buildSequenceGraph((_b = definition.nodes) !== null && _b !== void 0 ? _b : [], ctx, 80, startY, { scope: "root" });
|
|
655
|
-
if (previousTriggerId) {
|
|
656
|
-
var firstRootInsertId = "insert-".concat(JSON.stringify({ scope: "root" }), "-0");
|
|
657
|
-
ctx.edges.push(createEdge(previousTriggerId, firstRootInsertId));
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
return {
|
|
661
|
-
nodes: __spreadArray(__spreadArray([], ctx.backgroundNodes, true), ctx.nodes, true),
|
|
662
|
-
edges: ctx.edges,
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
function WorkflowFlowCanvasInner(props) {
|
|
666
|
-
var graph = React.useMemo(function () {
|
|
667
|
-
return buildGraph(props.definition, props.nodeTypes, {
|
|
668
|
-
selectedNodeId: props.selectedNodeId,
|
|
669
|
-
selectedTriggerId: props.selectedTriggerId,
|
|
670
|
-
activePaletteNodeType: props.activePaletteNodeType,
|
|
671
|
-
onSelectNode: props.onSelectNode,
|
|
672
|
-
onSelectTrigger: props.onSelectTrigger,
|
|
673
|
-
onEditNode: props.onEditNode,
|
|
674
|
-
onDeleteNode: props.onDeleteNode,
|
|
675
|
-
onViewDocs: props.onViewDocs,
|
|
676
|
-
onViewTriggerDocs: props.onViewTriggerDocs,
|
|
677
|
-
onInsertNode: props.onInsertNode,
|
|
678
|
-
onAddBranch: props.onAddBranch,
|
|
679
|
-
readOnly: props.readOnly,
|
|
680
|
-
});
|
|
681
|
-
}, [
|
|
682
|
-
props.activePaletteNodeType,
|
|
683
|
-
props.definition,
|
|
684
|
-
props.nodeTypes,
|
|
685
|
-
props.onAddBranch,
|
|
686
|
-
props.onDeleteNode,
|
|
687
|
-
props.onEditNode,
|
|
688
|
-
props.onInsertNode,
|
|
689
|
-
props.onSelectNode,
|
|
690
|
-
props.onSelectTrigger,
|
|
691
|
-
props.onViewDocs,
|
|
692
|
-
props.onViewTriggerDocs,
|
|
693
|
-
props.readOnly,
|
|
694
|
-
props.selectedNodeId,
|
|
695
|
-
props.selectedTriggerId,
|
|
696
|
-
]);
|
|
697
|
-
return (_jsx("div", { className: "workflow-flow-canvas ".concat(props.readOnly ? "workflow-flow-canvas--readonly" : ""), children: _jsxs(ReactFlow, { nodes: graph.nodes, edges: graph.edges, nodeTypes: canvasNodeTypes, fitView: true, fitViewOptions: {
|
|
698
|
-
padding: props.readOnly ? 0.28 : 0.24,
|
|
699
|
-
maxZoom: props.readOnly ? 0.92 : 1,
|
|
700
|
-
}, minZoom: 0.25, maxZoom: 1.6, proOptions: { hideAttribution: true }, defaultEdgeOptions: { zIndex: 2 }, nodesDraggable: false, nodesConnectable: false, elementsSelectable: !props.readOnly, panOnDrag: true, zoomOnDoubleClick: false, children: [!props.readOnly ? (_jsx(MiniMap, { pannable: true, zoomable: true, className: "workflow-flow-canvas__minimap" })) : null, _jsx(Controls, { showInteractive: false }), _jsx(Background, { variant: BackgroundVariant.Dots, gap: 18, size: 1.45, color: "rgba(148, 163, 184, 0.34)" })] }) }));
|
|
701
|
-
}
|
|
702
|
-
export function WorkflowFlowCanvas(props) {
|
|
703
|
-
return (_jsx(ReactFlowProvider, { children: _jsx(WorkflowFlowCanvasInner, __assign({}, props)) }));
|
|
704
|
-
}
|
|
705
|
-
//# sourceMappingURL=WorkflowFlowCanvas.js.map
|