windmill-components 1.37.0 → 1.46.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
<script>import { Alert, Badge, Button, Tab } from '../../common';
|
|
2
|
+
import TabContent from '../../common/tabs/TabContent.svelte';
|
|
3
|
+
import Tabs from '../../common/tabs/Tabs.svelte';
|
|
4
|
+
import HighlightCode from '../../HighlightCode.svelte';
|
|
5
|
+
import Toggle from '../../Toggle.svelte';
|
|
6
|
+
import { language } from '../../../sql';
|
|
7
|
+
import { getContext } from 'svelte';
|
|
8
|
+
import FlowCard from '../common/FlowCard.svelte';
|
|
9
|
+
import FlowModuleEarlyStop from './FlowModuleEarlyStop.svelte';
|
|
10
|
+
import FlowModuleSuspend from './FlowModuleSuspend.svelte';
|
|
11
|
+
// import FlowRetries from './FlowRetries.svelte'
|
|
12
|
+
const { selectedId } = getContext('FlowEditorContext');
|
|
13
|
+
export let flowModule;
|
|
14
|
+
export let parentModule;
|
|
15
|
+
export let previousModule;
|
|
16
|
+
let selected = 'early-stop';
|
|
17
|
+
let branches = [];
|
|
18
|
+
$: if (flowModule.value.type === 'branchone') {
|
|
19
|
+
branches = flowModule.value.branches.map((branch, i) => ({
|
|
20
|
+
id: `${flowModule.id}-branch-${i}`,
|
|
21
|
+
summary: branch.summary,
|
|
22
|
+
expr: branch.expr
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
else if (flowModule.value.type === 'branchall') {
|
|
26
|
+
branches = flowModule.value.branches.map((branch, i) => ({
|
|
27
|
+
id: `${flowModule.id}-branch-${i}`,
|
|
28
|
+
summary: branch.summary,
|
|
29
|
+
expr: undefined
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<div class="h-full flex flex-col">
|
|
35
|
+
<FlowCard title={flowModule.value.type == 'branchall' ? 'Run all branches' : 'Run one branch'}>
|
|
36
|
+
<div class="flex flex-col h-full">
|
|
37
|
+
<div class="border">
|
|
38
|
+
{#if flowModule.value.type == 'branchall'}
|
|
39
|
+
<Alert type="info" title="All branches will be run">
|
|
40
|
+
Configure branches to skip errors and to not result in that step itself failing.
|
|
41
|
+
<br />
|
|
42
|
+
<br />
|
|
43
|
+
The result of this step is the list of the result of each branch.
|
|
44
|
+
</Alert>
|
|
45
|
+
{:else}
|
|
46
|
+
<Alert type="info" title="Only one branch will be run">
|
|
47
|
+
Only one branch is ran, the first one that match its predicate, if none do, the default
|
|
48
|
+
branch is chosen.
|
|
49
|
+
<br />
|
|
50
|
+
<br />
|
|
51
|
+
The result of this step is the result of the branch.
|
|
52
|
+
</Alert>
|
|
53
|
+
{/if}
|
|
54
|
+
|
|
55
|
+
<div class="p-2">
|
|
56
|
+
<h3
|
|
57
|
+
>{branches.length + (flowModule.value.type === 'branchone' ? 1 : 0)} branch{branches.length +
|
|
58
|
+
(flowModule.value.type === 'branchone' ? 1 : 0) >
|
|
59
|
+
1
|
|
60
|
+
? 'es'
|
|
61
|
+
: ''}</h3
|
|
62
|
+
>
|
|
63
|
+
<div class="flex flex-col gap-y-4 py-2">
|
|
64
|
+
{#if flowModule.value.type === 'branchone'}
|
|
65
|
+
<div class="flex flex-row">
|
|
66
|
+
<Badge large={true} color="blue">Default branch</Badge>
|
|
67
|
+
</div>
|
|
68
|
+
{/if}
|
|
69
|
+
{#each branches as branch, i}
|
|
70
|
+
{#if flowModule.value.type === 'branchone'}
|
|
71
|
+
<div class="flex flex-row gap-x-2 items-center">
|
|
72
|
+
<div class="max-w-sm w-full text-sm text-gray-600">
|
|
73
|
+
{branch.summary && branch.summary != '' ? branch.summary : 'No summary'}</div
|
|
74
|
+
>
|
|
75
|
+
<div>
|
|
76
|
+
<Button size="sm" on:click={() => ($selectedId = branch.id)}>
|
|
77
|
+
Set branch {i} predicate</Button
|
|
78
|
+
>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="w-full text-2xs">
|
|
81
|
+
<HighlightCode language="deno" code={branch.expr} />
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
{:else}
|
|
85
|
+
<div class="flex flex-row gap-x-2">
|
|
86
|
+
<div class="max-w-sm w-full text-sm text-gray-600">
|
|
87
|
+
{branch.summary && branch.summary != '' ? branch.summary : 'No summary'}
|
|
88
|
+
</div>
|
|
89
|
+
<div>
|
|
90
|
+
<Button size="sm" on:click={() => ($selectedId = branch.id)}>
|
|
91
|
+
Set branch {i} summary</Button
|
|
92
|
+
>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
{/if}
|
|
96
|
+
{/each}
|
|
97
|
+
</div>
|
|
98
|
+
{#if flowModule.value.type == 'branchall'}
|
|
99
|
+
<div class="mt-6 mb-2 text-sm font-bold">Run in parallel</div>
|
|
100
|
+
<Toggle
|
|
101
|
+
bind:checked={flowModule.value.parallel}
|
|
102
|
+
options={{
|
|
103
|
+
right: 'All branches run in parallel'
|
|
104
|
+
}}
|
|
105
|
+
/>
|
|
106
|
+
{/if}
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
{#if flowModule}
|
|
110
|
+
<Tabs bind:selected>
|
|
111
|
+
<!-- <Tab value="retries">Retries</Tab> -->
|
|
112
|
+
<Tab value="early-stop">Early Stop</Tab>
|
|
113
|
+
<Tab value="suspend">Sleep/Suspend</Tab>
|
|
114
|
+
|
|
115
|
+
<svelte:fragment slot="content">
|
|
116
|
+
<div class="overflow-hidden bg-white">
|
|
117
|
+
<!-- <TabContent value="retries" class="flex flex-col flex-1 h-full">
|
|
118
|
+
<div class="p-4 overflow-y-auto">
|
|
119
|
+
<FlowRetries bind:flowModule />
|
|
120
|
+
</div>
|
|
121
|
+
</TabContent> -->
|
|
122
|
+
|
|
123
|
+
<TabContent value="early-stop" class="flex flex-col flex-1 h-full">
|
|
124
|
+
<div class="p-4 overflow-y-auto">
|
|
125
|
+
<FlowModuleEarlyStop bind:flowModule />
|
|
126
|
+
</div>
|
|
127
|
+
</TabContent>
|
|
128
|
+
|
|
129
|
+
<TabContent value="suspend" class="flex flex-col flex-1 h-full">
|
|
130
|
+
<div class="p-4 overflow-y-auto">
|
|
131
|
+
<FlowModuleSuspend previousModuleId={previousModule?.id} bind:flowModule />
|
|
132
|
+
</div>
|
|
133
|
+
</TabContent>
|
|
134
|
+
</div>
|
|
135
|
+
</svelte:fragment>
|
|
136
|
+
</Tabs>
|
|
137
|
+
{/if}
|
|
138
|
+
</div>
|
|
139
|
+
</FlowCard>
|
|
140
|
+
</div>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { FlowModule } from '../../../gen';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
flowModule: FlowModule;
|
|
6
|
+
parentModule: FlowModule | undefined;
|
|
7
|
+
previousModule: FlowModule | undefined;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {};
|
|
13
|
+
};
|
|
14
|
+
export declare type FlowBranchesWrapperProps = typeof __propDef.props;
|
|
15
|
+
export declare type FlowBranchesWrapperEvents = typeof __propDef.events;
|
|
16
|
+
export declare type FlowBranchesWrapperSlots = typeof __propDef.slots;
|
|
17
|
+
export default class FlowBranchesWrapper extends SvelteComponentTyped<FlowBranchesWrapperProps, FlowBranchesWrapperEvents, FlowBranchesWrapperSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import FlowModuleWrapper from './FlowModuleWrapper.svelte';
|
|
|
3
3
|
import FlowSettings from './FlowSettings.svelte';
|
|
4
4
|
import FlowInput from './FlowInput.svelte';
|
|
5
5
|
import FlowFailureModule from './FlowFailureModule.svelte';
|
|
6
|
-
import
|
|
6
|
+
import { flowStore } from '../flowStore';
|
|
7
7
|
export let initialPath;
|
|
8
8
|
const { selectedId } = getContext('FlowEditorContext');
|
|
9
9
|
</script>
|
|
@@ -11,15 +11,17 @@ const { selectedId } = getContext('FlowEditorContext');
|
|
|
11
11
|
{#key $selectedId}
|
|
12
12
|
{#if $selectedId === 'settings'}
|
|
13
13
|
<FlowSettings {initialPath} />
|
|
14
|
-
{:else if $selectedId === 'settings-schedule'}
|
|
15
|
-
<FlowSettings {initialPath} defaultTab="schedule" />
|
|
16
|
-
{:else if $selectedId.includes('loop')}
|
|
17
|
-
<FlowLoopWrapper />
|
|
18
14
|
{:else if $selectedId === 'inputs'}
|
|
19
15
|
<FlowInput />
|
|
16
|
+
{:else if $selectedId === 'settings-schedule'}
|
|
17
|
+
<FlowSettings {initialPath} defaultTab="schedule" />
|
|
18
|
+
{:else if $selectedId === 'settings-same-worker'}
|
|
19
|
+
<FlowSettings {initialPath} defaultTab="same-worker" />
|
|
20
20
|
{:else if $selectedId === 'failure'}
|
|
21
21
|
<FlowFailureModule />
|
|
22
22
|
{:else}
|
|
23
|
-
|
|
23
|
+
{#each $flowStore.value.modules as flowModule, index (flowModule.id ?? index)}
|
|
24
|
+
<FlowModuleWrapper bind:flowModule previousModule={$flowStore.value.modules[index - 1]} />
|
|
25
|
+
{/each}
|
|
24
26
|
{/if}
|
|
25
27
|
{/key}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import
|
|
3
|
-
import FlowModule from './FlowModule.svelte';
|
|
1
|
+
<script>import { flowStore } from '../flowStore';
|
|
2
|
+
import FlowModuleWrapper from './FlowModuleWrapper.svelte';
|
|
4
3
|
</script>
|
|
5
4
|
|
|
6
5
|
{#if $flowStore.value.failure_module}
|
|
7
|
-
<
|
|
6
|
+
<FlowModuleWrapper
|
|
8
7
|
bind:flowModule={$flowStore.value.failure_module}
|
|
9
|
-
bind:flowModuleState={$flowStateStore.failureModule}
|
|
10
8
|
on:delete={() => {
|
|
11
9
|
$flowStore.value.failure_module = undefined
|
|
12
10
|
}}
|
|
13
|
-
|
|
11
|
+
previousModule={undefined}
|
|
14
12
|
/>
|
|
15
13
|
{/if}
|
|
@@ -1,21 +1,47 @@
|
|
|
1
|
-
<script>import {
|
|
1
|
+
<script>import { Button } from '../../common';
|
|
2
2
|
import SchemaEditor from '../../SchemaEditor.svelte';
|
|
3
3
|
import SchemaForm from '../../SchemaForm.svelte';
|
|
4
4
|
import FlowCard from '../common/FlowCard.svelte';
|
|
5
|
-
import
|
|
5
|
+
import { copyFirstStepSchema, flowStore } from '../flowStore';
|
|
6
|
+
import { isEmptyFlowModule } from '../utils';
|
|
7
|
+
import CapturePayload from './CapturePayload.svelte';
|
|
8
|
+
let capturePayload;
|
|
6
9
|
</script>
|
|
7
10
|
|
|
8
|
-
<
|
|
11
|
+
<CapturePayload bind:this={capturePayload} />
|
|
12
|
+
<FlowCard title="Flow Input">
|
|
9
13
|
<div slot="header">
|
|
10
|
-
<
|
|
14
|
+
<div class="flex flex-row space-x-4">
|
|
15
|
+
<Button
|
|
16
|
+
color="light"
|
|
17
|
+
size="sm"
|
|
18
|
+
on:click={() => {
|
|
19
|
+
capturePayload.openDrawer()
|
|
20
|
+
}}
|
|
21
|
+
variant="border"
|
|
22
|
+
>
|
|
23
|
+
Capture from a request to seed inputs
|
|
24
|
+
</Button>
|
|
25
|
+
<Button
|
|
26
|
+
color="light"
|
|
27
|
+
size="sm"
|
|
28
|
+
disabled={$flowStore.value.modules.length === 0 ||
|
|
29
|
+
isEmptyFlowModule($flowStore.value.modules[0])}
|
|
30
|
+
on:click={copyFirstStepSchema}
|
|
31
|
+
variant="border"
|
|
32
|
+
>
|
|
33
|
+
Copy from first step schema {#if $flowStore.value.modules.length === 0 || isEmptyFlowModule($flowStore.value.modules[0])}
|
|
34
|
+
(no steps to copy from!){/if}
|
|
35
|
+
</Button>
|
|
36
|
+
</div>
|
|
11
37
|
</div>
|
|
12
38
|
<div>
|
|
13
39
|
<div class="p-6">
|
|
14
40
|
<SchemaEditor
|
|
41
|
+
bind:schema={$flowStore.schema}
|
|
15
42
|
on:change={() => {
|
|
16
43
|
$flowStore = $flowStore
|
|
17
44
|
}}
|
|
18
|
-
bind:schema={$flowStore.schema}
|
|
19
45
|
/>
|
|
20
46
|
</div>
|
|
21
47
|
</div>
|
|
@@ -1,91 +1,160 @@
|
|
|
1
|
-
<script>import
|
|
2
|
-
import {
|
|
1
|
+
<script>import Tooltip from '../../Tooltip.svelte';
|
|
2
|
+
import { RawScript, Script } from '../../../gen';
|
|
3
|
+
import { faCode, faCodeBranch, faRepeat } from '@fortawesome/free-solid-svg-icons';
|
|
3
4
|
import { createEventDispatcher } from 'svelte';
|
|
4
5
|
import FlowScriptPicker from '../pickers/FlowScriptPicker.svelte';
|
|
5
6
|
import PickHubScript from '../pickers/PickHubScript.svelte';
|
|
6
7
|
import PickScript from '../pickers/PickScript.svelte';
|
|
7
|
-
export let shouldDisableLoopCreation = false;
|
|
8
|
-
export let shouldDisableTriggerScripts = false;
|
|
9
8
|
export let failureModule;
|
|
9
|
+
export let shouldDisableTriggerScripts = false;
|
|
10
10
|
const dispatch = createEventDispatcher();
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<div class="space-y-4 p-4">
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
{/if}
|
|
17
|
-
|
|
18
|
-
<div class="grid sm:grid-col-2 lg:grid-cols-3 gap-4">
|
|
19
|
-
<PickScript kind={failureModule ? Script.kind.FAILURE : Script.kind.SCRIPT} on:pick />
|
|
20
|
-
<PickHubScript kind={failureModule ? Script.kind.FAILURE : Script.kind.SCRIPT} on:pick />
|
|
21
|
-
|
|
14
|
+
<div class="text-sm font-bold">{failureModule ? 'Error handler' : 'Common script'}</div>
|
|
15
|
+
<div class="grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
22
16
|
<FlowScriptPicker
|
|
23
|
-
label=
|
|
24
|
-
disabled={shouldDisableLoopCreation}
|
|
25
|
-
icon={faRepeat}
|
|
26
|
-
iconColor="text-blue-500"
|
|
27
|
-
on:click={() => dispatch('loop')}
|
|
28
|
-
/>
|
|
29
|
-
|
|
30
|
-
{#if !failureModule}
|
|
31
|
-
<FlowScriptPicker
|
|
32
|
-
label={`New PostgreSQL query`}
|
|
33
|
-
icon={faCode}
|
|
34
|
-
iconColor="text-blue-800"
|
|
35
|
-
on:click={() =>
|
|
36
|
-
dispatch('new', { language: RawScript.language.DENO, kind: 'script', subkind: 'pgsql' })}
|
|
37
|
-
/>
|
|
38
|
-
{/if}
|
|
39
|
-
|
|
40
|
-
<FlowScriptPicker
|
|
41
|
-
label="New Python script (3.10)"
|
|
17
|
+
label="Inline Python (3.10)"
|
|
42
18
|
icon={faCode}
|
|
43
19
|
iconColor="text-green-500"
|
|
44
|
-
on:click={() =>
|
|
20
|
+
on:click={() => {
|
|
45
21
|
dispatch('new', {
|
|
46
22
|
language: RawScript.language.PYTHON3,
|
|
47
|
-
kind: 'script',
|
|
48
|
-
subkind:
|
|
49
|
-
})
|
|
23
|
+
kind: failureModule ? 'failure' : 'script',
|
|
24
|
+
subkind: 'flow'
|
|
25
|
+
})
|
|
26
|
+
}}
|
|
50
27
|
/>
|
|
51
28
|
|
|
52
29
|
<FlowScriptPicker
|
|
53
|
-
label="
|
|
30
|
+
label="Inline Typescript (Deno)"
|
|
54
31
|
icon={faCode}
|
|
55
32
|
iconColor="text-blue-800"
|
|
56
|
-
on:click={() =>
|
|
33
|
+
on:click={() => {
|
|
57
34
|
dispatch('new', {
|
|
58
35
|
language: RawScript.language.DENO,
|
|
59
|
-
kind: 'script',
|
|
60
|
-
subkind:
|
|
61
|
-
})
|
|
36
|
+
kind: failureModule ? 'failure' : 'script',
|
|
37
|
+
subkind: 'flow'
|
|
38
|
+
})
|
|
39
|
+
}}
|
|
62
40
|
/>
|
|
63
41
|
|
|
64
42
|
<FlowScriptPicker
|
|
65
|
-
label="
|
|
43
|
+
label="Inline Go"
|
|
66
44
|
icon={faCode}
|
|
67
45
|
iconColor="text-blue-700"
|
|
68
|
-
on:click={() =>
|
|
46
|
+
on:click={() => {
|
|
69
47
|
dispatch('new', {
|
|
70
48
|
language: RawScript.language.GO,
|
|
71
|
-
kind: 'script',
|
|
72
|
-
subkind:
|
|
73
|
-
})
|
|
49
|
+
kind: failureModule ? 'failure' : 'script',
|
|
50
|
+
subkind: 'flow'
|
|
51
|
+
})
|
|
52
|
+
}}
|
|
53
|
+
/>
|
|
54
|
+
|
|
55
|
+
<FlowScriptPicker
|
|
56
|
+
label="Inline Bash"
|
|
57
|
+
icon={faCode}
|
|
58
|
+
iconColor="text-green-700"
|
|
59
|
+
on:click={() => {
|
|
60
|
+
dispatch('new', {
|
|
61
|
+
language: RawScript.language.BASH,
|
|
62
|
+
kind: failureModule ? 'failure' : 'script',
|
|
63
|
+
subkind: 'flow'
|
|
64
|
+
})
|
|
65
|
+
}}
|
|
66
|
+
/>
|
|
67
|
+
|
|
68
|
+
{#if !failureModule}
|
|
69
|
+
<FlowScriptPicker
|
|
70
|
+
label={`Inline PostgreSQL`}
|
|
71
|
+
icon={faCode}
|
|
72
|
+
iconColor="text-blue-800"
|
|
73
|
+
on:click={() =>
|
|
74
|
+
dispatch('new', { language: RawScript.language.DENO, kind: 'script', subkind: 'pgsql' })}
|
|
75
|
+
/>
|
|
76
|
+
{/if}
|
|
77
|
+
|
|
78
|
+
<PickScript
|
|
79
|
+
customText={failureModule ? 'Error Handler from workspace' : undefined}
|
|
80
|
+
kind={failureModule ? Script.kind.FAILURE : Script.kind.SCRIPT}
|
|
81
|
+
on:pick
|
|
82
|
+
/>
|
|
83
|
+
<PickHubScript
|
|
84
|
+
customText={failureModule ? 'Error Handler from Hub' : undefined}
|
|
85
|
+
kind={failureModule ? Script.kind.FAILURE : Script.kind.SCRIPT}
|
|
86
|
+
on:pick
|
|
74
87
|
/>
|
|
75
88
|
</div>
|
|
76
89
|
|
|
77
90
|
{#if !shouldDisableTriggerScripts}
|
|
78
|
-
<div class="text-sm font-bold">
|
|
91
|
+
<div class="text-sm font-bold pt-8">
|
|
92
|
+
Trigger script
|
|
93
|
+
<Tooltip>
|
|
94
|
+
Used as a first step most commonly with an internal state and a schedule to watch for
|
|
95
|
+
changes on an external system, compute the diff since last time, set the new state. The
|
|
96
|
+
diffs are then treated one by one with a for-loop.
|
|
97
|
+
</Tooltip>
|
|
98
|
+
</div>
|
|
79
99
|
|
|
80
|
-
<div class="grid sm:grid-
|
|
81
|
-
<PickScript kind={Script.kind.TRIGGER} on:pick />
|
|
82
|
-
<PickHubScript kind={Script.kind.TRIGGER} on:pick />
|
|
100
|
+
<div class="grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
101
|
+
<PickScript customText="Trigger script from workspace" kind={Script.kind.TRIGGER} on:pick />
|
|
102
|
+
<PickHubScript customText="Trigger script from Hub" kind={Script.kind.TRIGGER} on:pick />
|
|
83
103
|
<FlowScriptPicker
|
|
84
|
-
label="
|
|
104
|
+
label="Inline Typescript (Deno)"
|
|
85
105
|
icon={faCode}
|
|
86
106
|
iconColor="text-blue-800"
|
|
87
107
|
on:click={() => dispatch('new', { language: RawScript.language.DENO, kind: 'trigger' })}
|
|
88
108
|
/>
|
|
89
109
|
</div>
|
|
90
110
|
{/if}
|
|
111
|
+
{#if !failureModule}
|
|
112
|
+
<div class="text-sm font-bold pt-8">
|
|
113
|
+
Approval step
|
|
114
|
+
<Tooltip>
|
|
115
|
+
Inlined common scripts can be turned into approval step by changing their suspend settings.
|
|
116
|
+
An approval step will suspend the execution of a flow until it has been approved through the
|
|
117
|
+
resume endpoints or the approval page by and solely by the recipients of those secret urls.
|
|
118
|
+
Use getResumeEndpoints from the wmill client to generate those URLs.
|
|
119
|
+
</Tooltip>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
122
|
+
<PickScript customText="Approval step from workspace" kind={Script.kind.APPROVAL} on:pick />
|
|
123
|
+
<PickHubScript
|
|
124
|
+
customText={'Approval step from the Hub'}
|
|
125
|
+
kind={Script.kind.APPROVAL}
|
|
126
|
+
on:pick
|
|
127
|
+
/>
|
|
128
|
+
<FlowScriptPicker
|
|
129
|
+
label="Inline Typescript (Deno)"
|
|
130
|
+
icon={faCode}
|
|
131
|
+
iconColor="text-blue-800"
|
|
132
|
+
on:click={() => dispatch('new', { language: RawScript.language.DENO, kind: 'approval' })}
|
|
133
|
+
/>
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
<div class="text-sm font-bold pt-8">Flow primitive</div>
|
|
137
|
+
|
|
138
|
+
<div class="grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
139
|
+
<FlowScriptPicker
|
|
140
|
+
label={`Branches and switch to one`}
|
|
141
|
+
icon={faCodeBranch}
|
|
142
|
+
iconColor="text-blue-500"
|
|
143
|
+
on:click={() => dispatch('branchone')}
|
|
144
|
+
/>
|
|
145
|
+
<FlowScriptPicker
|
|
146
|
+
label={`Branches and run them all`}
|
|
147
|
+
icon={faCodeBranch}
|
|
148
|
+
iconColor="text-blue-500"
|
|
149
|
+
on:click={() => dispatch('branchall')}
|
|
150
|
+
/>
|
|
151
|
+
|
|
152
|
+
<FlowScriptPicker
|
|
153
|
+
label={`For loop`}
|
|
154
|
+
icon={faRepeat}
|
|
155
|
+
iconColor="text-blue-500"
|
|
156
|
+
on:click={() => dispatch('loop')}
|
|
157
|
+
/>
|
|
158
|
+
</div>
|
|
159
|
+
{/if}
|
|
91
160
|
</div>
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
shouldDisableLoopCreation?: boolean | undefined;
|
|
5
|
-
shouldDisableTriggerScripts?: boolean | undefined;
|
|
6
4
|
failureModule: boolean;
|
|
5
|
+
shouldDisableTriggerScripts?: boolean | undefined;
|
|
7
6
|
};
|
|
8
7
|
events: {
|
|
9
|
-
pick:
|
|
10
|
-
loop: CustomEvent<any>;
|
|
8
|
+
pick: any;
|
|
11
9
|
new: CustomEvent<any>;
|
|
10
|
+
branchone: CustomEvent<any>;
|
|
11
|
+
branchall: CustomEvent<any>;
|
|
12
|
+
loop: CustomEvent<any>;
|
|
12
13
|
} & {
|
|
13
14
|
[evt: string]: CustomEvent<any>;
|
|
14
15
|
};
|