windmill-components 1.37.0 → 1.46.1
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/common.d.ts +1 -0
- package/components/AppConnect.svelte +45 -49
- package/components/ArgInfo.svelte +37 -15
- package/components/ArgInput.svelte +33 -34
- package/components/ArgInput.svelte.d.ts +3 -1
- package/components/ButtonAndDropdown.svelte +1 -1
- package/components/CenteredPage.svelte +2 -2
- package/components/CronInput.svelte +24 -20
- package/components/CronInput.svelte.d.ts +1 -0
- package/components/DisplayResult.svelte +2 -2
- package/components/Dropdown.svelte +10 -13
- package/components/Dropdown.svelte.d.ts +4 -1
- package/components/Editor.svelte +27 -3
- package/components/Editor.svelte.d.ts +3 -1
- package/components/EditorBar.svelte +77 -30
- package/components/EditorBar.svelte.d.ts +3 -1
- package/components/FieldHeader.svelte +6 -5
- package/components/FlowBuilder.svelte +52 -55
- package/components/FlowBuilder.svelte.d.ts +2 -0
- package/components/FlowJobResult.svelte +11 -18
- package/components/FlowJobResult.svelte.d.ts +2 -2
- package/components/FlowMetadata.svelte +65 -0
- package/components/FlowMetadata.svelte.d.ts +17 -0
- package/components/FlowModulesViewer.svelte +18 -4
- package/components/FlowPreviewContent.svelte +88 -50
- package/components/FlowPreviewContent.svelte.d.ts +1 -0
- package/components/FlowStatusViewer.svelte +123 -61
- package/components/FlowStatusViewer.svelte.d.ts +8 -3
- package/components/FlowViewer.svelte +84 -9
- package/components/FlowViewer.svelte.d.ts +1 -0
- package/components/GroupModal.svelte +43 -44
- package/components/GroupModal.svelte.d.ts +2 -2
- package/components/HighlightCode.svelte +4 -1
- package/components/HighlightCode.svelte.d.ts +1 -1
- package/components/IconedResourceType.svelte +6 -4
- package/components/IconedResourceType.svelte.d.ts +1 -0
- package/components/InputTransformForm.svelte +38 -27
- package/components/InputTransformsViewer.svelte +2 -1
- package/components/InviteGlobalUser.svelte +6 -10
- package/components/InviteGlobalUser.svelte.d.ts +1 -4
- package/components/InviteUser.svelte +4 -8
- package/components/InviteUser.svelte.d.ts +1 -4
- package/components/ItemPicker.svelte +50 -43
- package/components/ItemPicker.svelte.d.ts +2 -2
- package/components/JobArgs.svelte +33 -0
- package/components/JobArgs.svelte.d.ts +16 -0
- package/components/JobStatus.svelte +21 -17
- package/components/LogViewer.svelte +11 -6
- package/components/Modal.svelte +5 -5
- package/components/Modal.svelte.d.ts +4 -4
- package/components/ModulePreview.svelte +47 -63
- package/components/ModulePreview.svelte.d.ts +0 -1
- package/components/PageHeader.svelte +6 -6
- package/components/Password.svelte +1 -1
- package/components/Path.svelte +28 -7
- package/components/Path.svelte.d.ts +3 -3
- package/components/Popover.svelte +61 -0
- package/components/Popover.svelte.d.ts +17 -0
- package/components/Required.svelte +4 -4
- package/components/Required.svelte.d.ts +1 -0
- package/components/ResourceEditor.svelte +105 -116
- package/components/ResourceEditor.svelte.d.ts +0 -1
- package/components/ResourcePicker.svelte +9 -6
- package/components/ResourceTypePicker.svelte +3 -1
- package/components/RunChart.svelte +102 -0
- package/components/RunChart.svelte.d.ts +20 -0
- package/components/RunForm.svelte +58 -40
- package/components/RunForm.svelte.d.ts +13 -0
- package/components/SchemaEditor.svelte +5 -5
- package/components/SchemaEditorProperty.svelte +1 -1
- package/components/SchemaForm.svelte +3 -1
- package/components/SchemaForm.svelte.d.ts +1 -0
- package/components/SchemaModal.svelte +113 -105
- package/components/SchemaModal.svelte.d.ts +4 -4
- package/components/SchemaViewer.svelte +7 -4
- package/components/ScriptBuilder.svelte +143 -163
- package/components/ScriptBuilder.svelte.d.ts +1 -0
- package/components/ScriptEditor.svelte +117 -114
- package/components/ScriptEditor.svelte.d.ts +1 -0
- package/components/ScriptPicker.svelte +16 -24
- package/components/ScriptSchema.svelte +33 -32
- package/components/ShareModal.svelte +74 -68
- package/components/ShareModal.svelte.d.ts +2 -2
- package/components/SimpleEditor.svelte +4 -2
- package/components/SuperadminSettings.svelte +134 -0
- package/components/SuperadminSettings.svelte.d.ts +19 -0
- package/components/TableCustom.svelte +1 -1
- package/components/TableSimple.svelte +1 -1
- package/components/TestJobLoader.svelte +14 -6
- package/components/TestJobLoader.svelte.d.ts +4 -2
- package/components/Toggle.svelte +5 -3
- package/components/Toggle.svelte.d.ts +2 -0
- package/components/Tooltip.svelte +9 -64
- package/components/UserSettings.svelte +241 -0
- package/components/UserSettings.svelte.d.ts +19 -0
- package/components/VariableEditor.svelte +80 -74
- package/components/common/actionRow/ActionRow.svelte +5 -4
- package/components/common/alert/Alert.svelte +1 -1
- package/components/common/alert/Alert.svelte.d.ts +1 -0
- package/components/common/badge/Badge.svelte +2 -2
- package/components/common/breadcrumb/Breadcrumb.svelte +24 -0
- package/components/common/breadcrumb/Breadcrumb.svelte.d.ts +22 -0
- package/components/common/button/Button.svelte +20 -8
- package/components/common/button/Button.svelte.d.ts +1 -0
- package/components/common/button/model.d.ts +1 -1
- package/components/common/confirmationModal/ConfirmationModal.svelte +1 -0
- package/components/common/drawer/Drawer.svelte +38 -7
- package/components/common/drawer/Drawer.svelte.d.ts +6 -0
- package/components/common/drawer/DrawerContent.svelte +21 -7
- package/components/common/drawer/DrawerContent.svelte.d.ts +4 -0
- package/components/common/index.d.ts +1 -0
- package/components/common/index.js +1 -0
- package/components/common/kbd/Kbd.svelte +1 -1
- package/components/common/languageIcons/Bash.svelte +18 -0
- package/components/common/languageIcons/Bash.svelte.d.ts +27 -0
- package/components/common/languageIcons/Go.svelte +34 -0
- package/components/common/languageIcons/Go.svelte.d.ts +27 -0
- package/components/common/languageIcons/LanguageIcon.svelte +19 -0
- package/components/common/languageIcons/LanguageIcon.svelte.d.ts +21 -0
- package/components/common/languageIcons/Python.svelte +51 -0
- package/components/common/languageIcons/Python.svelte.d.ts +27 -0
- package/components/common/languageIcons/TypeScript.svelte +31 -0
- package/components/common/languageIcons/TypeScript.svelte.d.ts +27 -0
- package/components/common/languageIcons/index.d.ts +5 -0
- package/components/common/languageIcons/index.js +5 -0
- package/components/common/menu/Menu.svelte +15 -19
- package/components/common/skeleton/Skeleton.svelte +1 -2
- package/components/common/skeleton/Skeleton.svelte.d.ts +0 -1
- package/components/common/skeleton/SkeletonElement.svelte +1 -1
- package/components/common/tabs/TabContent.svelte +2 -1
- package/components/common/tabs/TabContent.svelte.d.ts +1 -0
- package/components/common/tabs/Tabs.svelte +8 -6
- package/components/common/tabs/Tabs.svelte.d.ts +1 -0
- package/components/flows/FlowEditor.svelte +11 -20
- package/components/flows/FlowProgressBar.svelte +55 -0
- package/components/flows/FlowProgressBar.svelte.d.ts +21 -0
- package/components/flows/common/FlowCardHeader.svelte +5 -6
- package/components/flows/content/CapturePayload.svelte +112 -0
- package/components/flows/content/CapturePayload.svelte.d.ts +17 -0
- package/components/flows/content/DynamicInputHelpBox.svelte +6 -10
- package/components/flows/content/FlowBranchAllWrapper.svelte +21 -0
- package/components/flows/content/FlowBranchAllWrapper.svelte.d.ts +21 -0
- package/components/flows/content/FlowBranchOneWrapper.svelte +49 -0
- package/components/flows/content/FlowBranchOneWrapper.svelte.d.ts +23 -0
- package/components/flows/content/FlowBranchesWrapper.svelte +140 -0
- package/components/flows/content/FlowBranchesWrapper.svelte.d.ts +19 -0
- package/components/flows/content/FlowEditorPanel.svelte +8 -6
- package/components/flows/content/FlowFailureModule.svelte +4 -6
- package/components/flows/content/FlowInput.svelte +31 -5
- package/components/flows/content/FlowInputs.svelte +119 -50
- package/components/flows/content/FlowInputs.svelte.d.ts +5 -4
- package/components/flows/content/FlowLoop.svelte +85 -142
- package/components/flows/content/FlowLoop.svelte.d.ts +2 -1
- package/components/flows/content/FlowModuleComponent.svelte +231 -0
- package/components/flows/content/FlowModuleComponent.svelte.d.ts +20 -0
- package/components/flows/content/FlowModuleEarlyStop.svelte +45 -48
- package/components/flows/content/FlowModuleEarlyStop.svelte.d.ts +1 -0
- package/components/flows/content/FlowModuleHeader.svelte +11 -40
- package/components/flows/content/FlowModuleHeader.svelte.d.ts +0 -1
- package/components/flows/content/FlowModuleScript.svelte +7 -12
- package/components/flows/content/FlowModuleScript.svelte.d.ts +1 -2
- package/components/flows/content/FlowModuleSuspend.svelte +31 -15
- package/components/flows/content/FlowModuleSuspend.svelte.d.ts +1 -0
- package/components/flows/content/FlowModuleWrapper.svelte +138 -38
- package/components/flows/content/FlowModuleWrapper.svelte.d.ts +6 -1
- package/components/flows/content/FlowRetries.svelte +13 -2
- package/components/flows/content/FlowRetries.svelte.d.ts +1 -0
- package/components/flows/content/FlowSchedules.svelte +0 -2
- package/components/flows/content/FlowSettings.svelte +103 -72
- package/components/flows/flowState.d.ts +8 -8
- package/components/flows/flowState.js +32 -17
- package/components/flows/flowStateUtils.d.ts +21 -38
- package/components/flows/flowStateUtils.js +86 -158
- package/components/flows/flowStore.d.ts +3 -2
- package/components/flows/flowStore.js +60 -7
- package/components/flows/header/FlowImportExportMenu.svelte +12 -22
- package/components/flows/header/FlowPreviewButtons.svelte +11 -11
- package/components/flows/map/FlowBranchAllMap.svelte +90 -0
- package/components/flows/map/FlowBranchAllMap.svelte.d.ts +17 -0
- package/components/flows/map/FlowBranchOneMap.svelte +116 -0
- package/components/flows/map/FlowBranchOneMap.svelte.d.ts +17 -0
- package/components/flows/map/FlowErrorHandlerItem.svelte +14 -11
- package/components/flows/map/FlowInputsItem.svelte +19 -0
- package/components/flows/map/FlowInputsItem.svelte.d.ts +14 -0
- package/components/flows/map/FlowModuleSchemaItem.svelte +53 -36
- package/components/flows/map/FlowModuleSchemaItem.svelte.d.ts +5 -5
- package/components/flows/map/FlowModuleSchemaMap.svelte +73 -144
- package/components/flows/map/FlowModuleSchemaMap.svelte.d.ts +2 -3
- package/components/flows/map/FlowSettingsItem.svelte +29 -0
- package/components/flows/map/FlowSettingsItem.svelte.d.ts +14 -0
- package/components/flows/map/InsertModuleButton.svelte +11 -0
- package/components/flows/map/InsertModuleButton.svelte.d.ts +16 -0
- package/components/flows/map/MapItem.svelte +105 -0
- package/components/flows/map/MapItem.svelte.d.ts +22 -0
- package/components/flows/pickers/FlowScriptPicker.svelte +14 -4
- package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +1 -1
- package/components/flows/pickers/PickHubScript.svelte +5 -4
- package/components/flows/pickers/PickHubScript.svelte.d.ts +1 -0
- package/components/flows/pickers/PickScript.svelte +6 -5
- package/components/flows/pickers/PickScript.svelte.d.ts +1 -0
- package/components/flows/previousResults.d.ts +14 -0
- package/components/flows/previousResults.js +118 -0
- package/components/flows/propPicker/PropPickerWrapper.svelte +22 -15
- package/components/flows/propPicker/PropPickerWrapper.svelte.d.ts +6 -2
- package/components/flows/utils.d.ts +8 -5
- package/components/flows/utils.js +86 -56
- package/components/graph/FlowGraph.svelte +259 -0
- package/components/graph/FlowGraph.svelte.d.ts +20 -0
- package/components/graph/index.d.ts +3 -0
- package/components/graph/index.js +3 -0
- package/components/graph/model.d.ts +20 -0
- package/components/graph/model.js +9 -0
- package/components/graph/util.d.ts +9 -0
- package/components/graph/util.js +14 -0
- package/components/icons/WindmillIcon.svelte +85 -52
- package/components/icons/WindmillIcon.svelte.d.ts +2 -0
- package/components/jobs/JobDetail.svelte +40 -30
- package/components/landing/FlowGettingStarted.svelte +4 -3
- package/components/landing/FlowLandingBox.svelte +23 -53
- package/components/landing/RessourceGettingStarted.svelte +1 -1
- package/components/landing/ScriptBox.svelte +25 -27
- package/components/landing/ScriptGettingStarted.svelte +4 -3
- package/components/preview/FlowPreviewStatus.svelte +1 -1
- package/components/progressBar/ProgressBar.svelte +89 -0
- package/components/{ProgressBar.svelte.d.ts → progressBar/ProgressBar.svelte.d.ts} +5 -2
- package/components/progressBar/ProgressBarGeneralPart.svelte +22 -0
- package/components/progressBar/ProgressBarGeneralPart.svelte.d.ts +19 -0
- package/components/progressBar/ProgressBarLoopAccessor.svelte +14 -0
- package/components/progressBar/ProgressBarLoopAccessor.svelte.d.ts +19 -0
- package/components/progressBar/ProgressBarLoopPart.svelte +34 -0
- package/components/progressBar/ProgressBarLoopPart.svelte.d.ts +19 -0
- package/components/progressBar/index.d.ts +2 -0
- package/components/progressBar/index.js +2 -0
- package/components/progressBar/model.d.ts +32 -0
- package/components/progressBar/model.js +14 -0
- package/components/propertyPicker/ObjectViewer.svelte +18 -13
- package/components/propertyPicker/ObjectViewer.svelte.d.ts +1 -0
- package/components/propertyPicker/PropPicker.svelte +90 -44
- package/components/propertyPicker/PropPicker.svelte.d.ts +4 -1
- package/components/propertyPicker/PropPickerResult.svelte +12 -0
- package/components/propertyPicker/PropPickerResult.svelte.d.ts +18 -0
- package/components/propertyPicker/utils.d.ts +1 -1
- package/components/propertyPicker/utils.js +4 -1
- package/components/{script_editor → scriptEditor}/LogPanel.svelte +30 -20
- package/components/{script_editor → scriptEditor}/LogPanel.svelte.d.ts +0 -0
- package/components/scripts/CreateActions.svelte +2 -2
- package/components/sidebar/SidebarContent.svelte +1 -1
- package/components/sidebar/UserMenu.svelte +17 -1
- package/components/sidebar/UserMenu.svelte.d.ts +3 -0
- package/components/sidebar/WorkspaceMenu.svelte +16 -14
- package/components/splitPanes/SplitPanesWrapper.svelte +34 -0
- package/components/splitPanes/SplitPanesWrapper.svelte.d.ts +20 -0
- package/editorUtils.js +2 -0
- package/gen/core/OpenAPI.js +1 -1
- package/gen/index.d.ts +8 -1
- package/gen/index.js +5 -0
- package/gen/models/AppWithLastVersion.d.ts +21 -0
- package/gen/models/AppWithLastVersion.js +12 -0
- package/gen/models/BranchAll.d.ts +10 -0
- package/gen/models/{Branches.js → BranchAll.js} +0 -0
- package/gen/models/{Branches.d.ts → BranchOne.d.ts} +3 -5
- package/gen/models/BranchOne.js +4 -0
- package/gen/models/CompletedJob.d.ts +4 -2
- package/gen/models/CompletedJob.js +2 -0
- package/gen/models/FlowModule.d.ts +2 -1
- package/gen/models/FlowModuleValue.d.ts +4 -2
- package/gen/models/FlowStatusModule.d.ts +11 -2
- package/gen/models/ForloopFlow.d.ts +1 -0
- package/gen/models/Identity.d.ts +3 -0
- package/gen/models/Identity.js +4 -0
- package/gen/models/ListableApp.d.ts +16 -0
- package/gen/models/ListableApp.js +12 -0
- package/gen/models/ListableVariable.d.ts +1 -1
- package/gen/models/PathScript.d.ts +2 -0
- package/gen/models/Policy.d.ts +12 -0
- package/gen/models/Policy.js +12 -0
- package/gen/models/Preview.d.ts +2 -1
- package/gen/models/Preview.js +1 -0
- package/gen/models/QueuedJob.d.ts +4 -2
- package/gen/models/QueuedJob.js +2 -0
- package/gen/models/RawScript.d.ts +4 -1
- package/gen/models/RawScript.js +1 -0
- package/gen/models/Script.d.ts +4 -2
- package/gen/models/Script.js +2 -0
- package/gen/services/AppService.d.ts +31 -0
- package/gen/services/AppService.js +49 -0
- package/gen/services/CaptureService.d.ts +30 -0
- package/gen/services/CaptureService.js +52 -0
- package/gen/services/FlowService.d.ts +90 -0
- package/gen/services/FlowService.js +72 -0
- package/gen/services/JobService.d.ts +57 -8
- package/gen/services/JobService.js +78 -10
- package/gen/services/OauthService.d.ts +6 -15
- package/gen/services/OauthService.js +6 -19
- package/gen/services/ResourceService.d.ts +10 -1
- package/gen/services/ResourceService.js +16 -1
- package/gen/services/ScriptService.d.ts +28 -3
- package/gen/services/ScriptService.js +27 -0
- package/gen/services/UserService.d.ts +14 -6
- package/gen/services/UserService.js +25 -11
- package/infer.d.ts +1 -1
- package/infer.js +35 -18
- package/logout.d.ts +1 -1
- package/logout.js +7 -9
- package/package.json +74 -68
- package/script_helpers.d.ts +5 -3
- package/script_helpers.js +42 -12
- package/scripts.js +9 -4
- package/utils.d.ts +8 -9
- package/utils.js +42 -81
- package/components/AutosizedTextarea.svelte +0 -34
- package/components/AutosizedTextarea.svelte.d.ts +0 -19
- package/components/ProgressBar.svelte +0 -31
- package/components/ProgressBarPart.svelte +0 -20
- package/components/ProgressBarPart.svelte.d.ts +0 -20
- package/components/Switch.svelte +0 -61
- package/components/Switch.svelte.d.ts +0 -31
- package/components/flows/content/CopyFirstStepSchema.svelte +0 -13
- package/components/flows/content/CopyFirstStepSchema.svelte.d.ts +0 -14
- package/components/flows/content/FlowLoopWrapper.svelte +0 -9
- package/components/flows/content/FlowLoopWrapper.svelte.d.ts +0 -14
- package/components/flows/content/FlowModule.svelte +0 -217
- package/components/flows/content/FlowModule.svelte.d.ts +0 -29
- package/gen/schemas/$AuditLog.d.ts +0 -32
- package/gen/schemas/$AuditLog.js +0 -35
- package/gen/schemas/$CompletedJob.d.ts +0 -98
- package/gen/schemas/$CompletedJob.js +0 -103
- package/gen/schemas/$ContextualVariable.d.ts +0 -16
- package/gen/schemas/$ContextualVariable.js +0 -19
- package/gen/schemas/$CreateResource.d.ts +0 -22
- package/gen/schemas/$CreateResource.js +0 -25
- package/gen/schemas/$CreateVariable.d.ts +0 -26
- package/gen/schemas/$CreateVariable.js +0 -29
- package/gen/schemas/$CreateWorkspace.d.ts +0 -20
- package/gen/schemas/$CreateWorkspace.js +0 -23
- package/gen/schemas/$EditResource.d.ts +0 -13
- package/gen/schemas/$EditResource.js +0 -16
- package/gen/schemas/$EditResourceType.d.ts +0 -10
- package/gen/schemas/$EditResourceType.js +0 -13
- package/gen/schemas/$EditSchedule.d.ts +0 -20
- package/gen/schemas/$EditSchedule.js +0 -23
- package/gen/schemas/$EditVariable.d.ts +0 -16
- package/gen/schemas/$EditVariable.js +0 -19
- package/gen/schemas/$EditWorkspaceUser.d.ts +0 -7
- package/gen/schemas/$EditWorkspaceUser.js +0 -10
- package/gen/schemas/$Flow.d.ts +0 -23
- package/gen/schemas/$Flow.js +0 -26
- package/gen/schemas/$FlowMetadata.d.ts +0 -31
- package/gen/schemas/$FlowMetadata.js +0 -34
- package/gen/schemas/$FlowPreview.d.ts +0 -80
- package/gen/schemas/$FlowPreview.js +0 -83
- package/gen/schemas/$GlobalUserInfo.d.ts +0 -26
- package/gen/schemas/$GlobalUserInfo.js +0 -29
- package/gen/schemas/$Group.d.ts +0 -23
- package/gen/schemas/$Group.js +0 -26
- package/gen/schemas/$Job.d.ts +0 -17
- package/gen/schemas/$Job.js +0 -20
- package/gen/schemas/$ListableVariable.d.ts +0 -35
- package/gen/schemas/$ListableVariable.js +0 -38
- package/gen/schemas/$Login.d.ts +0 -12
- package/gen/schemas/$Login.js +0 -15
- package/gen/schemas/$MainArgSignature.d.ts +0 -50
- package/gen/schemas/$MainArgSignature.js +0 -53
- package/gen/schemas/$NewSchedule.d.ts +0 -30
- package/gen/schemas/$NewSchedule.js +0 -33
- package/gen/schemas/$NewToken.d.ts +0 -11
- package/gen/schemas/$NewToken.js +0 -14
- package/gen/schemas/$NewUser.d.ts +0 -16
- package/gen/schemas/$NewUser.js +0 -19
- package/gen/schemas/$Preview.d.ts +0 -19
- package/gen/schemas/$Preview.js +0 -22
- package/gen/schemas/$QueuedJob.d.ts +0 -139
- package/gen/schemas/$QueuedJob.js +0 -144
- package/gen/schemas/$Resource.d.ts +0 -31
- package/gen/schemas/$Resource.js +0 -34
- package/gen/schemas/$ResourceType.d.ts +0 -17
- package/gen/schemas/$ResourceType.js +0 -20
- package/gen/schemas/$Schedule.d.ts +0 -47
- package/gen/schemas/$Schedule.js +0 -50
- package/gen/schemas/$Script.d.ts +0 -77
- package/gen/schemas/$Script.js +0 -80
- package/gen/schemas/$ScriptArgs.d.ts +0 -6
- package/gen/schemas/$ScriptArgs.js +0 -9
- package/gen/schemas/$SlackToken.d.ts +0 -24
- package/gen/schemas/$SlackToken.js +0 -27
- package/gen/schemas/$TokenResponse.d.ts +0 -23
- package/gen/schemas/$TokenResponse.js +0 -26
- package/gen/schemas/$TruncatedToken.d.ts +0 -25
- package/gen/schemas/$TruncatedToken.js +0 -28
- package/gen/schemas/$Usage.d.ts +0 -13
- package/gen/schemas/$Usage.js +0 -16
- package/gen/schemas/$User.d.ts +0 -42
- package/gen/schemas/$User.js +0 -45
- package/gen/schemas/$UserWorkspaceList.d.ts +0 -28
- package/gen/schemas/$UserWorkspaceList.js +0 -31
- package/gen/schemas/$WorkerPing.d.ts +0 -31
- package/gen/schemas/$WorkerPing.js +0 -34
- package/gen/schemas/$Workspace.d.ts +0 -19
- package/gen/schemas/$Workspace.js +0 -22
- package/gen/schemas/$WorkspaceInvite.d.ts +0 -16
- package/gen/schemas/$WorkspaceInvite.js +0 -19
|
@@ -34,24 +34,20 @@ const placementsClasses = {
|
|
|
34
34
|
</script>
|
|
35
35
|
|
|
36
36
|
<div class="relative" bind:this={menu}>
|
|
37
|
-
<div>
|
|
38
|
-
<
|
|
39
|
-
<slot name="trigger" />
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
{#if show}
|
|
43
|
-
<div
|
|
44
|
-
in:scale={{ duration: 100, start: 0.95 }}
|
|
45
|
-
out:scale={{ duration: 75, start: 0.95 }}
|
|
46
|
-
class={classNames(
|
|
47
|
-
'z-50 absolute mt-2 w-60 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none',
|
|
48
|
-
placementsClasses[placement]
|
|
49
|
-
)}
|
|
50
|
-
role="menu"
|
|
51
|
-
tabindex="-1"
|
|
52
|
-
>
|
|
53
|
-
<slot {close} />
|
|
54
|
-
</div>
|
|
55
|
-
{/if}
|
|
37
|
+
<div on:click={() => (show = !show)} on:click>
|
|
38
|
+
<slot name="trigger" />
|
|
56
39
|
</div>
|
|
40
|
+
|
|
41
|
+
{#if show}
|
|
42
|
+
<div
|
|
43
|
+
class={classNames(
|
|
44
|
+
'z-50 absolute mt-2 w-60 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none',
|
|
45
|
+
placementsClasses[placement]
|
|
46
|
+
)}
|
|
47
|
+
role="menu"
|
|
48
|
+
tabindex="-1"
|
|
49
|
+
>
|
|
50
|
+
<slot {close} />
|
|
51
|
+
</div>
|
|
52
|
+
{/if}
|
|
57
53
|
</div>
|
|
@@ -4,13 +4,12 @@ import SkeletonElement from './SkeletonElement.svelte';
|
|
|
4
4
|
export let layout;
|
|
5
5
|
export let loading = true;
|
|
6
6
|
export let overlay = false;
|
|
7
|
-
export let delay = 200;
|
|
8
7
|
</script>
|
|
9
8
|
|
|
10
9
|
{#if loading}
|
|
11
10
|
<div class="relative flex justify-center">
|
|
12
11
|
<div
|
|
13
|
-
in:fade={{ duration: 1000
|
|
12
|
+
in:fade={{ duration: 1000 }}
|
|
14
13
|
class="flex grow flex-col overflow-hidden {overlay
|
|
15
14
|
? 'absolute w-full h-full z-[1000]'
|
|
16
15
|
: ''} {$$props.class}"
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<script>import { getContext } from 'svelte';
|
|
2
2
|
export let value;
|
|
3
3
|
export let alwaysMounted = false;
|
|
4
|
+
export let style = '';
|
|
4
5
|
let clazz = '';
|
|
5
6
|
export { clazz as class };
|
|
6
7
|
const { selected } = getContext('Tabs');
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
10
|
{#if value === $selected || alwaysMounted}
|
|
10
|
-
<div class={`${clazz} ${value === $selected ? 'visible' : 'hidden'}`}>
|
|
11
|
+
<div class={`${clazz} ${value === $selected ? 'visible' : 'hidden'}`} {style}>
|
|
11
12
|
<slot />
|
|
12
13
|
</div>
|
|
13
14
|
{/if}
|
|
@@ -7,21 +7,23 @@ import { createEventDispatcher } from 'svelte';
|
|
|
7
7
|
const dispatch = createEventDispatcher();
|
|
8
8
|
export let selected;
|
|
9
9
|
$: selected && updateSelected();
|
|
10
|
-
const
|
|
11
|
-
$: $
|
|
10
|
+
const selectedStore = writable(selected);
|
|
11
|
+
$: $selectedStore && dispatch('selected', $selectedStore);
|
|
12
12
|
setContext('Tabs', {
|
|
13
|
-
selected:
|
|
13
|
+
selected: selectedStore,
|
|
14
14
|
update: (value) => {
|
|
15
|
-
|
|
15
|
+
selectedStore.set(value);
|
|
16
16
|
selected = value;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
function updateSelected() {
|
|
20
|
-
|
|
20
|
+
selectedStore.set(selected);
|
|
21
21
|
}
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
|
-
<div
|
|
24
|
+
<div
|
|
25
|
+
class="border-b border-gray-200 flex flex-row whitespace-nowrap overflow-y-auto scrollbar-hidden {$$props.class}"
|
|
26
|
+
>
|
|
25
27
|
<slot />
|
|
26
28
|
</div>
|
|
27
29
|
<slot name="content" />
|
|
@@ -1,30 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
<script>import { HSplitPane } from 'svelte-split-pane';
|
|
1
|
+
<script>import { Pane, Splitpanes } from 'svelte-splitpanes';
|
|
3
2
|
import FlowEditorPanel from './content/FlowEditorPanel.svelte';
|
|
4
3
|
import FlowModuleSchemaMap from './map/FlowModuleSchemaMap.svelte';
|
|
5
4
|
import { flowStore } from './flowStore';
|
|
6
|
-
import { flowStateStore } from './flowState';
|
|
7
|
-
import FlowPreviewButtons from './header/FlowPreviewButtons.svelte';
|
|
8
5
|
export let initialPath;
|
|
9
6
|
</script>
|
|
10
7
|
|
|
11
8
|
<div class="h-full overflow-hidden border-t">
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<FlowModuleSchemaMap
|
|
18
|
-
bind:modules={$flowStore.value.modules}
|
|
19
|
-
bind:moduleStates={$flowStateStore.modules}
|
|
20
|
-
/>
|
|
9
|
+
<Splitpanes>
|
|
10
|
+
<Pane size={25} minSize={20} class="h-full">
|
|
11
|
+
<div class="grow overflow-auto p-4 bg-gray h-full bg-gray-50 relative">
|
|
12
|
+
{#if $flowStore.value.modules}
|
|
13
|
+
<FlowModuleSchemaMap bind:modules={$flowStore.value.modules} root />
|
|
21
14
|
{/if}
|
|
22
15
|
</div>
|
|
23
|
-
</
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</right>
|
|
29
|
-
</HSplitPane>
|
|
16
|
+
</Pane>
|
|
17
|
+
<Pane size={75} minSize={40}>
|
|
18
|
+
<FlowEditorPanel {initialPath} />
|
|
19
|
+
</Pane>
|
|
20
|
+
</Splitpanes>
|
|
30
21
|
</div>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<script>import { FlowStatusModule, Job } from '../../gen';
|
|
2
|
+
import { ProgressBar } from '../progressBar';
|
|
3
|
+
export let job = undefined;
|
|
4
|
+
export let duration = 200;
|
|
5
|
+
let jobProgress = { steps: [], error: false };
|
|
6
|
+
$: if (job)
|
|
7
|
+
updateJobProgress(job);
|
|
8
|
+
function updateJobProgress(job) {
|
|
9
|
+
const modules = job?.flow_status?.modules;
|
|
10
|
+
if (!modules?.length) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
jobProgress.steps = modules.map((module) => {
|
|
14
|
+
if (module.type === FlowStatusModule.type.FAILURE ||
|
|
15
|
+
(module.type === FlowStatusModule.type.SUCCESS && job['success'] === false)) {
|
|
16
|
+
jobProgress.error = true;
|
|
17
|
+
}
|
|
18
|
+
// Loop is still iterating
|
|
19
|
+
if (module.iterator) {
|
|
20
|
+
return {
|
|
21
|
+
type: 'loop',
|
|
22
|
+
isDone: isJobStepDone(module.type),
|
|
23
|
+
index: module.iterator.index || 0,
|
|
24
|
+
length: module.iterator.itered?.length || 0
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
// Loop is finished
|
|
28
|
+
else if (module['flow_jobs']) {
|
|
29
|
+
return {
|
|
30
|
+
type: 'loop',
|
|
31
|
+
isDone: isJobStepDone(module.type),
|
|
32
|
+
index: module['flow_jobs'].length,
|
|
33
|
+
length: module['flow_jobs'].length
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
// Not a loop
|
|
37
|
+
return {
|
|
38
|
+
type: 'general',
|
|
39
|
+
isDone: isJobStepDone(module.type)
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function isJobStepDone(type) {
|
|
44
|
+
if (!type) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return type === FlowStatusModule.type.SUCCESS || type === FlowStatusModule.type.FAILURE;
|
|
48
|
+
}
|
|
49
|
+
export function reset() {
|
|
50
|
+
jobProgress.error = false;
|
|
51
|
+
jobProgress.steps = [];
|
|
52
|
+
}
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<ProgressBar {...jobProgress} {duration} class={$$props.class} />
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import { Job } from '../../gen';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
job?: Job | undefined;
|
|
7
|
+
duration?: number | undefined;
|
|
8
|
+
reset?: (() => void) | undefined;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {};
|
|
14
|
+
};
|
|
15
|
+
export declare type FlowProgressBarProps = typeof __propDef.props;
|
|
16
|
+
export declare type FlowProgressBarEvents = typeof __propDef.events;
|
|
17
|
+
export declare type FlowProgressBarSlots = typeof __propDef.slots;
|
|
18
|
+
export default class FlowProgressBar extends SvelteComponentTyped<FlowProgressBarProps, FlowProgressBarEvents, FlowProgressBarSlots> {
|
|
19
|
+
get reset(): () => void;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
<script>import Badge from '../../common/badge/Badge.svelte';
|
|
2
2
|
import IconedPath from '../../IconedPath.svelte';
|
|
3
3
|
import { RawScript } from '../../../gen';
|
|
4
|
-
import { isEmptyFlowModule } from '../
|
|
4
|
+
import { isEmptyFlowModule } from '../utils';
|
|
5
5
|
export let flowModule = undefined;
|
|
6
6
|
export let title = undefined;
|
|
7
7
|
$: shouldPick = flowModule && isEmptyFlowModule(flowModule);
|
|
8
8
|
const languageColors = {
|
|
9
9
|
[RawScript.language.GO]: 'dark-indigo',
|
|
10
10
|
[RawScript.language.DENO]: 'dark-blue',
|
|
11
|
-
[RawScript.language.PYTHON3]: 'dark-green'
|
|
11
|
+
[RawScript.language.PYTHON3]: 'dark-green',
|
|
12
|
+
[RawScript.language.BASH]: 'dark-yellow'
|
|
12
13
|
};
|
|
13
14
|
</script>
|
|
14
15
|
|
|
15
|
-
<div
|
|
16
|
-
class="flex items-center justify-between py-2 px-4 border-b bg-gray-50 shadow-sm space-x-2 h-12 flex-nowrap"
|
|
17
|
-
>
|
|
16
|
+
<div class="flex items-center justify-between py-2 px-4 border-b space-x-2 h-12 flex-nowrap">
|
|
18
17
|
{#if flowModule}
|
|
19
18
|
<span class="text-sm w-full">
|
|
20
19
|
<div class="flex items-center space-x-2">
|
|
21
20
|
{#if shouldPick}
|
|
22
|
-
<span class="font-bold text-xs">Select a
|
|
21
|
+
<span class="font-bold text-xs">Select a step kind</span>
|
|
23
22
|
{:else if flowModule?.value.type === 'rawscript'}
|
|
24
23
|
<Badge color={languageColors[flowModule?.value.language] ?? 'gray'} capitalize>
|
|
25
24
|
{flowModule?.value.language}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<script>import { page } from '$app/stores';
|
|
2
|
+
import { Button } from '../../common';
|
|
3
|
+
import Drawer from '../../common/drawer/Drawer.svelte';
|
|
4
|
+
import DrawerContent from '../../common/drawer/DrawerContent.svelte';
|
|
5
|
+
import WindmillIcon from '../../icons/WindmillIcon.svelte';
|
|
6
|
+
import ObjectViewer from '../../propertyPicker/ObjectViewer.svelte';
|
|
7
|
+
import { CaptureService } from '../../../gen';
|
|
8
|
+
import { workspaceStore } from '../../../stores';
|
|
9
|
+
import { flowStore } from '../flowStore';
|
|
10
|
+
import { convert } from '@redocly/json-to-json-schema';
|
|
11
|
+
import SchemaViewer from '../../SchemaViewer.svelte';
|
|
12
|
+
import { getContext } from 'svelte';
|
|
13
|
+
import { copyToClipboard, sendUserToast } from '../../../utils';
|
|
14
|
+
import Icon from 'svelte-awesome';
|
|
15
|
+
import { faClipboard } from '@fortawesome/free-solid-svg-icons';
|
|
16
|
+
import SchemaForm from '../../SchemaForm.svelte';
|
|
17
|
+
const { previewArgs } = getContext('FlowEditorContext');
|
|
18
|
+
let drawer;
|
|
19
|
+
let interval = undefined;
|
|
20
|
+
let captureInput = undefined;
|
|
21
|
+
let jsonSchema = undefined;
|
|
22
|
+
export function openDrawer() {
|
|
23
|
+
drawer.openDrawer();
|
|
24
|
+
}
|
|
25
|
+
async function startCapturePoint() {
|
|
26
|
+
await CaptureService.createCapture({
|
|
27
|
+
workspace: $workspaceStore,
|
|
28
|
+
path: $flowStore.path
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async function getCaptureInput() {
|
|
32
|
+
const capture = await CaptureService.getCapture({
|
|
33
|
+
workspace: $workspaceStore,
|
|
34
|
+
path: $flowStore.path
|
|
35
|
+
});
|
|
36
|
+
captureInput = capture;
|
|
37
|
+
jsonSchema = { required: [], properties: {}, ...convert(capture) };
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<Drawer
|
|
42
|
+
bind:this={drawer}
|
|
43
|
+
size="900px"
|
|
44
|
+
on:open={() => {
|
|
45
|
+
startCapturePoint()
|
|
46
|
+
interval = setInterval(() => {
|
|
47
|
+
getCaptureInput()
|
|
48
|
+
}, 1000)
|
|
49
|
+
}}
|
|
50
|
+
on:close={() => interval && clearInterval(interval)}
|
|
51
|
+
>
|
|
52
|
+
<DrawerContent title="Capture request" on:close={drawer.closeDrawer}>
|
|
53
|
+
Send a payload at: <div>
|
|
54
|
+
<a
|
|
55
|
+
class="text-2xl"
|
|
56
|
+
on:click={(e) => {
|
|
57
|
+
e.preventDefault()
|
|
58
|
+
copyToClipboard(
|
|
59
|
+
`${$page.url.protocol}//${$page.url.hostname}/api/w/${$workspaceStore}/capture/${$flowStore.path}`
|
|
60
|
+
)
|
|
61
|
+
}}
|
|
62
|
+
href="{$page.url.protocol}//{$page.url
|
|
63
|
+
.hostname}/api/w/{$workspaceStore}/capture/{$flowStore.path}"
|
|
64
|
+
>{$page.url.protocol}//{$page.url
|
|
65
|
+
.hostname}/api/w/{$workspaceStore}/capture/{$flowStore.path}
|
|
66
|
+
<Icon data={faClipboard} /></a
|
|
67
|
+
>
|
|
68
|
+
</div>
|
|
69
|
+
<p class="text-gray-600 mt-4 text-xs">CURL example</p>
|
|
70
|
+
|
|
71
|
+
<div class="text-xs box mb-4 b">
|
|
72
|
+
<pre class="overflow-auto"
|
|
73
|
+
>{`curl -X POST ${$page.url.protocol}//${$page.url.hostname}/api/w/${$workspaceStore}/capture/${$flowStore.path} \\
|
|
74
|
+
-H 'Content-Type: application/json' \\
|
|
75
|
+
-d '{"foo": 42}'`}</pre
|
|
76
|
+
>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="items-center flex flex-row gap-x-2 text-xs text-gray-600">
|
|
79
|
+
Listening for new requests
|
|
80
|
+
<WindmillIcon
|
|
81
|
+
class="animate-[pulse_5s_linear_infinite] animate-[spin_5s_linear_infinite]"
|
|
82
|
+
/></div
|
|
83
|
+
>
|
|
84
|
+
<div class="box p-2 my-2 mb-4">
|
|
85
|
+
<ObjectViewer topBrackets={true} json={captureInput} />
|
|
86
|
+
</div>
|
|
87
|
+
<div class="flex flex-row-reverse gap-2" slot="submission">
|
|
88
|
+
<Button
|
|
89
|
+
size="sm"
|
|
90
|
+
on:click={() => {
|
|
91
|
+
$previewArgs = captureInput
|
|
92
|
+
$flowStore.schema = jsonSchema
|
|
93
|
+
sendUserToast('Copied as flow inputs and test args')
|
|
94
|
+
}}>Copy as flow inputs and test args</Button
|
|
95
|
+
>
|
|
96
|
+
<Button
|
|
97
|
+
size="sm"
|
|
98
|
+
variant="border"
|
|
99
|
+
on:click={() => {
|
|
100
|
+
$previewArgs = captureInput
|
|
101
|
+
sendUserToast('Copied as test args')
|
|
102
|
+
}}>Copy only as test args</Button
|
|
103
|
+
>
|
|
104
|
+
</div>
|
|
105
|
+
<h3 class="mt-2">Derived inputs schema</h3>
|
|
106
|
+
<div class="box p-2">
|
|
107
|
+
<SchemaViewer schema={jsonSchema} />
|
|
108
|
+
</div>
|
|
109
|
+
<h3 class="mt-2">Test args</h3>
|
|
110
|
+
<SchemaForm class="h-full pt-4" schema={$flowStore.schema} args={$previewArgs} />
|
|
111
|
+
</DrawerContent>
|
|
112
|
+
</Drawer>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
openDrawer?: (() => void) | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
};
|
|
11
|
+
export declare type CapturePayloadProps = typeof __propDef.props;
|
|
12
|
+
export declare type CapturePayloadEvents = typeof __propDef.events;
|
|
13
|
+
export declare type CapturePayloadSlots = typeof __propDef.slots;
|
|
14
|
+
export default class CapturePayload extends SvelteComponentTyped<CapturePayloadProps, CapturePayloadEvents, CapturePayloadSlots> {
|
|
15
|
+
get openDrawer(): () => void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -32,10 +32,12 @@ $: opened = false;
|
|
|
32
32
|
That snippet can be a single line:
|
|
33
33
|
<pre><code>last_result.myarg</code></pre>
|
|
34
34
|
or a multiline:
|
|
35
|
-
<pre
|
|
35
|
+
<pre
|
|
36
|
+
><code
|
|
36
37
|
>let x = 5;
|
|
37
38
|
x + 2</code
|
|
38
|
-
></pre
|
|
39
|
+
></pre
|
|
40
|
+
>
|
|
39
41
|
<p>
|
|
40
42
|
If it is multiline, the statement before the final expression <b
|
|
41
43
|
>MUST END WITH ; and a newline</b
|
|
@@ -52,15 +54,9 @@ x + 2</code
|
|
|
52
54
|
functions:
|
|
53
55
|
</p>
|
|
54
56
|
<ul class="ml-4">
|
|
55
|
-
<li>
|
|
56
|
-
<b>previous_result</b>: the object containing the result of the previous step
|
|
57
|
-
</li>
|
|
57
|
+
<li><b>result.id</b>: the result of step at id 'id'</li>
|
|
58
58
|
<li><b>flow_input</b>: the object containing the flow input arguments</li>
|
|
59
59
|
<li><b>params</b>: the object containing the current step static values</li>
|
|
60
|
-
<li>
|
|
61
|
-
<b>step(n)</b>: the function returning the result of step number n. One can also use a
|
|
62
|
-
negative n. step(0) == result of the first step , step(-1) == previous_result
|
|
63
|
-
</li>
|
|
64
60
|
<li>
|
|
65
61
|
<b>variable(path)</b>: the function returning the variable (including secrets) at given path
|
|
66
62
|
as a string
|
|
@@ -71,7 +67,7 @@ x + 2</code
|
|
|
71
67
|
</ul>
|
|
72
68
|
<p>To re-enable editor assistance, import the helper functions types using:</p>
|
|
73
69
|
<code>
|
|
74
|
-
{`import {
|
|
70
|
+
{`import { results, flow_input, variable, resource, params } from 'windmill${
|
|
75
71
|
importPath ? `@${importPath}` : ''
|
|
76
72
|
}'`}
|
|
77
73
|
</code>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>import Toggle from '../../Toggle.svelte';
|
|
2
|
+
import FlowCard from '../common/FlowCard.svelte';
|
|
3
|
+
export let branch;
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<div class="h-full flex flex-col">
|
|
7
|
+
<FlowCard title="Branch">
|
|
8
|
+
<div slot="header" class="grow">
|
|
9
|
+
<input bind:value={branch.summary} placeholder={'Summary'} />
|
|
10
|
+
</div>
|
|
11
|
+
<div class="p-4">
|
|
12
|
+
<div class="mt-6 mb-2 text-sm font-bold">Skip failures</div>
|
|
13
|
+
<Toggle
|
|
14
|
+
bind:checked={branch.skip_failure}
|
|
15
|
+
options={{
|
|
16
|
+
right: 'Skip failure'
|
|
17
|
+
}}
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
</FlowCard>
|
|
21
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { FlowModule } from '../../../gen';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
branch: {
|
|
6
|
+
summary?: string;
|
|
7
|
+
skip_failure?: boolean;
|
|
8
|
+
modules: Array<FlowModule>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
events: {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
};
|
|
14
|
+
slots: {};
|
|
15
|
+
};
|
|
16
|
+
export declare type FlowBranchAllWrapperProps = typeof __propDef.props;
|
|
17
|
+
export declare type FlowBranchAllWrapperEvents = typeof __propDef.events;
|
|
18
|
+
export declare type FlowBranchAllWrapperSlots = typeof __propDef.slots;
|
|
19
|
+
export default class FlowBranchAllWrapper extends SvelteComponentTyped<FlowBranchAllWrapperProps, FlowBranchAllWrapperEvents, FlowBranchAllWrapperSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script>import { getContext } from 'svelte';
|
|
2
|
+
import FlowCard from '../common/FlowCard.svelte';
|
|
3
|
+
import { flowStore } from '../flowStore';
|
|
4
|
+
import PropPickerWrapper from '../propPicker/PropPickerWrapper.svelte';
|
|
5
|
+
import SimpleEditor from '../../SimpleEditor.svelte';
|
|
6
|
+
import { flowStateStore } from '../flowState';
|
|
7
|
+
import { Pane, Splitpanes } from 'svelte-splitpanes';
|
|
8
|
+
import { getStepPropPicker } from '../previousResults';
|
|
9
|
+
export let branch;
|
|
10
|
+
export let parentModule;
|
|
11
|
+
export let previousModule;
|
|
12
|
+
const { previewArgs } = getContext('FlowEditorContext');
|
|
13
|
+
let editor = undefined;
|
|
14
|
+
$: pickableProperties = getStepPropPicker($flowStateStore, parentModule, previousModule, parentModule.id, $flowStore, previewArgs, false, true).pickableProperties;
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<div class="h-full flex flex-col">
|
|
18
|
+
<FlowCard title="Branch">
|
|
19
|
+
<div slot="header" class="grow">
|
|
20
|
+
<input bind:value={branch.summary} placeholder={'Summary'} />
|
|
21
|
+
</div>
|
|
22
|
+
<div class="overflow-hidden flex-grow">
|
|
23
|
+
<Splitpanes>
|
|
24
|
+
<Pane>
|
|
25
|
+
<div class="p-6 flex flex-col h-full overflow-clip">
|
|
26
|
+
<span class="mb-2 text-sm font-bold">Branch predicate</span>
|
|
27
|
+
<div class="border w-full">
|
|
28
|
+
<PropPickerWrapper
|
|
29
|
+
notSelectable
|
|
30
|
+
{pickableProperties}
|
|
31
|
+
on:select={({ detail }) => {
|
|
32
|
+
editor?.insertAtCursor(detail)
|
|
33
|
+
}}
|
|
34
|
+
>
|
|
35
|
+
<SimpleEditor
|
|
36
|
+
bind:this={editor}
|
|
37
|
+
lang="javascript"
|
|
38
|
+
bind:code={branch.expr}
|
|
39
|
+
class="small-editor"
|
|
40
|
+
shouldBindKey={false}
|
|
41
|
+
/>
|
|
42
|
+
</PropPickerWrapper>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</Pane>
|
|
46
|
+
</Splitpanes>
|
|
47
|
+
</div>
|
|
48
|
+
</FlowCard>
|
|
49
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { FlowModule } from '../../../gen';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
branch: {
|
|
6
|
+
summary?: string;
|
|
7
|
+
expr: string;
|
|
8
|
+
modules: Array<FlowModule>;
|
|
9
|
+
};
|
|
10
|
+
parentModule: FlowModule;
|
|
11
|
+
previousModule: FlowModule | undefined;
|
|
12
|
+
};
|
|
13
|
+
events: {
|
|
14
|
+
[evt: string]: CustomEvent<any>;
|
|
15
|
+
};
|
|
16
|
+
slots: {};
|
|
17
|
+
};
|
|
18
|
+
export declare type FlowBranchOneWrapperProps = typeof __propDef.props;
|
|
19
|
+
export declare type FlowBranchOneWrapperEvents = typeof __propDef.events;
|
|
20
|
+
export declare type FlowBranchOneWrapperSlots = typeof __propDef.slots;
|
|
21
|
+
export default class FlowBranchOneWrapper extends SvelteComponentTyped<FlowBranchOneWrapperProps, FlowBranchOneWrapperEvents, FlowBranchOneWrapperSlots> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|