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
package/utils.js
CHANGED
|
@@ -32,15 +32,15 @@ export function displayDaysAgo(dateString) {
|
|
|
32
32
|
return `${nbSecondsAgo}s ago`;
|
|
33
33
|
}
|
|
34
34
|
else if (isToday(date)) {
|
|
35
|
-
return `today at ${date.toLocaleTimeString()}`;
|
|
35
|
+
return `today at ${date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}`;
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
38
|
let dAgo = daysAgo(date);
|
|
39
39
|
if (dAgo == 0) {
|
|
40
|
-
return `yday at ${date.toLocaleTimeString()}`;
|
|
40
|
+
return `yday at ${date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}`;
|
|
41
41
|
}
|
|
42
42
|
else if (dAgo > 7) {
|
|
43
|
-
return `${dAgo + 1} days ago at ${date.toLocaleTimeString()}`;
|
|
43
|
+
return `${dAgo + 1} days ago at ${date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}`;
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return displayDate(dateString);
|
|
@@ -53,7 +53,7 @@ export function displayDate(dateString) {
|
|
|
53
53
|
return '';
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
|
-
return `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()} at ${date.toLocaleTimeString()}`;
|
|
56
|
+
return `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()} at ${date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}`;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
export function msToSec(ms) {
|
|
@@ -113,12 +113,6 @@ export function emptySchema() {
|
|
|
113
113
|
type: 'object'
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
export function emptyModule() {
|
|
117
|
-
return {
|
|
118
|
-
value: { type: 'script', path: '' },
|
|
119
|
-
input_transforms: {}
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
116
|
export function simpleSchema() {
|
|
123
117
|
return {
|
|
124
118
|
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
@@ -164,8 +158,11 @@ export function canWrite(path, extra_perms, user) {
|
|
|
164
158
|
}
|
|
165
159
|
return false;
|
|
166
160
|
}
|
|
161
|
+
export function emptyString(str) {
|
|
162
|
+
return str === undefined || str === null || str === '';
|
|
163
|
+
}
|
|
167
164
|
export function defaultIfEmptyString(str, dflt) {
|
|
168
|
-
return str
|
|
165
|
+
return emptyString(str) ? dflt : str;
|
|
169
166
|
}
|
|
170
167
|
export function removeKeysWithEmptyValues(obj) {
|
|
171
168
|
Object.keys(obj).forEach((key) => (obj[key] === undefined ? delete obj[key] : {}));
|
|
@@ -188,6 +185,18 @@ export function encodeState(state) {
|
|
|
188
185
|
export function decodeState(query) {
|
|
189
186
|
return JSON.parse(decodeURIComponent(atob(query)));
|
|
190
187
|
}
|
|
188
|
+
export function decodeArgs(queryArgs) {
|
|
189
|
+
if (queryArgs) {
|
|
190
|
+
const parsed = decodeState(queryArgs);
|
|
191
|
+
Object.entries(parsed).forEach(([k, v]) => {
|
|
192
|
+
if (v == '<function call>') {
|
|
193
|
+
parsed[k] = undefined;
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
return parsed;
|
|
197
|
+
}
|
|
198
|
+
return {};
|
|
199
|
+
}
|
|
191
200
|
export async function setQuery(url, key, value) {
|
|
192
201
|
url.searchParams.set(key, value);
|
|
193
202
|
await goto(`?${url.searchParams.toString()}`);
|
|
@@ -195,7 +204,12 @@ export async function setQuery(url, key, value) {
|
|
|
195
204
|
export function setQueryWithoutLoad(url, key, value) {
|
|
196
205
|
const nurl = new URL(url.toString());
|
|
197
206
|
nurl.searchParams.set(key, value);
|
|
198
|
-
|
|
207
|
+
try {
|
|
208
|
+
history.replaceState(history.state, '', nurl.toString());
|
|
209
|
+
}
|
|
210
|
+
catch (e) {
|
|
211
|
+
console.error(e);
|
|
212
|
+
}
|
|
199
213
|
}
|
|
200
214
|
export function groupBy(scripts, toGroup, dflts = []) {
|
|
201
215
|
let r = {};
|
|
@@ -227,7 +241,7 @@ export function groupBy(scripts, toGroup, dflts = []) {
|
|
|
227
241
|
}
|
|
228
242
|
export function truncate(s, n, suffix = '...') {
|
|
229
243
|
if (!s) {
|
|
230
|
-
return
|
|
244
|
+
return '';
|
|
231
245
|
}
|
|
232
246
|
if (s.length <= n) {
|
|
233
247
|
return s;
|
|
@@ -257,45 +271,8 @@ export function mapUserToUserExt(user) {
|
|
|
257
271
|
pgroups: user.groups.map((x) => `g/${x}`)
|
|
258
272
|
};
|
|
259
273
|
}
|
|
260
|
-
export function buildExtraLib(flowInput, previousResultType) {
|
|
261
|
-
return `
|
|
262
|
-
/**
|
|
263
|
-
* get variable (including secret) at path
|
|
264
|
-
* @param {string} path - path of the variable (e.g: g/all/pretty_secret)
|
|
265
|
-
*/
|
|
266
|
-
export function variable(path: string): string;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* get resource at path
|
|
270
|
-
* @param {string} path - path of the resource (e.g: g/all/my_resource)
|
|
271
|
-
*/
|
|
272
|
-
export function resource(path: string): any;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* get result of step n.
|
|
276
|
-
* If n is negative, for instance -1, it is the step just before this one.
|
|
277
|
-
* Step 0 is flow input.
|
|
278
|
-
* @param {number} n - step number.
|
|
279
|
-
*/
|
|
280
|
-
export function step(n: number): any;
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* flow input as an object
|
|
284
|
-
*/
|
|
285
|
-
export const flow_input: ${flowInput};
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* previous result as an object
|
|
289
|
-
*/
|
|
290
|
-
export const previous_result: ${previousResultType || 'any'};
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* static params of this same step
|
|
294
|
-
*/
|
|
295
|
-
export const params: any;`;
|
|
296
|
-
}
|
|
297
274
|
export function schemaToTsType(schema) {
|
|
298
|
-
if (!schema) {
|
|
275
|
+
if (!schema || !schema.properties) {
|
|
299
276
|
return 'any';
|
|
300
277
|
}
|
|
301
278
|
const propKeys = Object.keys(schema.properties);
|
|
@@ -328,7 +305,7 @@ export function schemaToTsType(schema) {
|
|
|
328
305
|
}
|
|
329
306
|
export function schemaToObject(schema, args) {
|
|
330
307
|
const object = {};
|
|
331
|
-
if (!schema) {
|
|
308
|
+
if (!schema || !schema.properties) {
|
|
332
309
|
return object;
|
|
333
310
|
}
|
|
334
311
|
const propKeys = Object.keys(schema.properties);
|
|
@@ -337,30 +314,6 @@ export function schemaToObject(schema, args) {
|
|
|
337
314
|
});
|
|
338
315
|
return object;
|
|
339
316
|
}
|
|
340
|
-
export function valueToTsType(value) {
|
|
341
|
-
const typeOfValue = typeof value;
|
|
342
|
-
if (['string', 'number', 'boolean'].includes(typeOfValue)) {
|
|
343
|
-
return typeOfValue;
|
|
344
|
-
}
|
|
345
|
-
else if (Array.isArray(value)) {
|
|
346
|
-
const type = objectToTsType(value[0]);
|
|
347
|
-
return `Array<${type}>`;
|
|
348
|
-
}
|
|
349
|
-
else if (typeof value === 'object') {
|
|
350
|
-
return objectToTsType(value);
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
return 'any';
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
export function objectToTsType(object) {
|
|
357
|
-
if (!object) {
|
|
358
|
-
return 'any';
|
|
359
|
-
}
|
|
360
|
-
const propKeys = Object.keys(object);
|
|
361
|
-
const types = propKeys.map((key) => `${key}: ${valueToTsType(object[key])}`).join(';');
|
|
362
|
-
return `{ ${types} }`;
|
|
363
|
-
}
|
|
364
317
|
export function setInputCat(type, format, itemsType, enum_, contentEncoding) {
|
|
365
318
|
if (type === 'number' || type === 'integer') {
|
|
366
319
|
return 'number';
|
|
@@ -406,10 +359,11 @@ export function scriptPathToHref(path) {
|
|
|
406
359
|
}
|
|
407
360
|
export async function getScriptByPath(path) {
|
|
408
361
|
if (path.startsWith('hub/')) {
|
|
409
|
-
const content = await ScriptService.
|
|
362
|
+
const { content, language, schema } = await ScriptService.getHubScriptByPath({ path });
|
|
410
363
|
return {
|
|
411
364
|
content,
|
|
412
|
-
language
|
|
365
|
+
language,
|
|
366
|
+
schema
|
|
413
367
|
};
|
|
414
368
|
}
|
|
415
369
|
else {
|
|
@@ -419,7 +373,8 @@ export async function getScriptByPath(path) {
|
|
|
419
373
|
});
|
|
420
374
|
return {
|
|
421
375
|
content: script.content,
|
|
422
|
-
language: script.language
|
|
376
|
+
language: script.language,
|
|
377
|
+
schema: script.schema
|
|
423
378
|
};
|
|
424
379
|
}
|
|
425
380
|
}
|
|
@@ -429,7 +384,7 @@ export async function loadHubScripts() {
|
|
|
429
384
|
const processed = scripts
|
|
430
385
|
.map((x) => ({
|
|
431
386
|
path: `hub/${x.id}/${x.app}/${x.summary.toLowerCase().replaceAll(/\s+/g, '_')}`,
|
|
432
|
-
summary: `${x.summary} (${x.app})
|
|
387
|
+
summary: `${x.summary} (${x.app})`,
|
|
433
388
|
approved: x.approved,
|
|
434
389
|
kind: x.kind,
|
|
435
390
|
app: x.app,
|
|
@@ -476,12 +431,15 @@ export function flowToHubUrl(flow) {
|
|
|
476
431
|
url.searchParams.append('flow', encodeState(openFlow));
|
|
477
432
|
return url;
|
|
478
433
|
}
|
|
479
|
-
export function scriptToHubUrl(content, summary, description, kind) {
|
|
434
|
+
export function scriptToHubUrl(content, summary, description, kind, language, schema, lock) {
|
|
480
435
|
const url = new URL('https://hub.windmill.dev/scripts/add');
|
|
481
436
|
url.searchParams.append('content', content);
|
|
482
437
|
url.searchParams.append('summary', summary);
|
|
483
438
|
url.searchParams.append('description', description);
|
|
484
439
|
url.searchParams.append('kind', kind);
|
|
440
|
+
url.searchParams.append('language', language);
|
|
441
|
+
url.searchParams.append('schema', JSON.stringify(schema, null, 2));
|
|
442
|
+
lock && url.searchParams.append('lockfile', lock);
|
|
485
443
|
return url;
|
|
486
444
|
}
|
|
487
445
|
export function classNames(...classes) {
|
|
@@ -494,6 +452,9 @@ export function scriptLangToEditorLang(lang) {
|
|
|
494
452
|
else if (lang == 'python3') {
|
|
495
453
|
return 'python';
|
|
496
454
|
}
|
|
455
|
+
else if (lang == 'bash') {
|
|
456
|
+
return 'shell';
|
|
457
|
+
}
|
|
497
458
|
else {
|
|
498
459
|
return lang;
|
|
499
460
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<script>export let value;
|
|
2
|
-
export let placeholder = '';
|
|
3
|
-
export let minRows = 1;
|
|
4
|
-
export let maxRows = 20;
|
|
5
|
-
$: minHeight = `${1 + minRows * 1.2}em`;
|
|
6
|
-
$: maxHeight = maxRows ? `${1 + maxRows * 1.2}em` : `auto`;
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<div class="container">
|
|
10
|
-
<pre aria-hidden="true" style="min-height: {minHeight}; max-height: {maxHeight}">
|
|
11
|
-
{value + '\n'}
|
|
12
|
-
</pre>
|
|
13
|
-
<textarea class="col-span-10 resize" bind:value {placeholder} />
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<style>
|
|
17
|
-
.container {
|
|
18
|
-
position: relative;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
pre,
|
|
22
|
-
textarea {
|
|
23
|
-
font-family: inherit;
|
|
24
|
-
padding: 0.5em;
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
line-height: 1.2;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
}
|
|
29
|
-
textarea {
|
|
30
|
-
position: absolute;
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
top: 0;
|
|
34
|
-
}</style>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
value: string;
|
|
5
|
-
placeholder?: string | undefined;
|
|
6
|
-
minRows?: number | undefined;
|
|
7
|
-
maxRows?: number | undefined;
|
|
8
|
-
};
|
|
9
|
-
events: {
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {};
|
|
13
|
-
};
|
|
14
|
-
export declare type AutosizedTextareaProps = typeof __propDef.props;
|
|
15
|
-
export declare type AutosizedTextareaEvents = typeof __propDef.events;
|
|
16
|
-
export declare type AutosizedTextareaSlots = typeof __propDef.slots;
|
|
17
|
-
export default class AutosizedTextarea extends SvelteComponentTyped<AutosizedTextareaProps, AutosizedTextareaEvents, AutosizedTextareaSlots> {
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<script>import ProgressBarPart from './ProgressBarPart.svelte';
|
|
2
|
-
export let i = -1;
|
|
3
|
-
export let steps = 0;
|
|
4
|
-
$: series = Array.from(Array(steps).keys()).map((x) => Math.floor(((100 / steps) * x) / 100));
|
|
5
|
-
function toggle() {
|
|
6
|
-
toggled[i] = true;
|
|
7
|
-
}
|
|
8
|
-
$: toggled = series.map(() => false);
|
|
9
|
-
$: text = i < series.length ? `Step ${i + 1}` : 'Done';
|
|
10
|
-
$: toggled[i] === false && toggle();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<div>
|
|
14
|
-
<div class="flex justify-between mb-1">
|
|
15
|
-
<span class="text-base font-medium text-blue-700 dark:text-white">{text}</span>
|
|
16
|
-
<span class="text-sm font-medium text-blue-700 dark:text-white">
|
|
17
|
-
{series.slice(0, i).reduce((x, y) => y + x, 0)}%
|
|
18
|
-
</span>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700 relative">
|
|
21
|
-
{#each series as serie, index}
|
|
22
|
-
<ProgressBarPart
|
|
23
|
-
isFirst={index === 0}
|
|
24
|
-
isLast={index === series.length - 1}
|
|
25
|
-
sumUpTo={series.slice(0, index).reduce((x, y) => y + x, 0)}
|
|
26
|
-
length={serie}
|
|
27
|
-
shouldToggle={toggled[index]}
|
|
28
|
-
/>
|
|
29
|
-
{/each}
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script>import { tweened } from 'svelte/motion';
|
|
2
|
-
import { cubicOut } from 'svelte/easing';
|
|
3
|
-
const progress = tweened(0, {
|
|
4
|
-
duration: 400,
|
|
5
|
-
easing: cubicOut
|
|
6
|
-
});
|
|
7
|
-
export let isFirst;
|
|
8
|
-
export let isLast;
|
|
9
|
-
export let sumUpTo;
|
|
10
|
-
export let length;
|
|
11
|
-
export let shouldToggle;
|
|
12
|
-
$: shouldToggle && progress.set(length);
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<div
|
|
16
|
-
class={`bg-blue-200 h-2.5 absolute ${isFirst ? 'rounded-l-full' : ''} ${
|
|
17
|
-
isLast ? 'rounded-r-full' : ''
|
|
18
|
-
}`}
|
|
19
|
-
style={`${isFirst ? 'left:0%;' : `left:${sumUpTo}%;`} width: ${$progress}%`}
|
|
20
|
-
/>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
isFirst: boolean;
|
|
5
|
-
isLast: boolean;
|
|
6
|
-
sumUpTo: number;
|
|
7
|
-
length: number;
|
|
8
|
-
shouldToggle: boolean;
|
|
9
|
-
};
|
|
10
|
-
events: {
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
};
|
|
13
|
-
slots: {};
|
|
14
|
-
};
|
|
15
|
-
export declare type ProgressBarPartProps = typeof __propDef.props;
|
|
16
|
-
export declare type ProgressBarPartEvents = typeof __propDef.events;
|
|
17
|
-
export declare type ProgressBarPartSlots = typeof __propDef.slots;
|
|
18
|
-
export default class ProgressBarPart extends SvelteComponentTyped<ProgressBarPartProps, ProgressBarPartEvents, ProgressBarPartSlots> {
|
|
19
|
-
}
|
|
20
|
-
export {};
|
package/components/Switch.svelte
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let checked = false
|
|
3
|
-
export let label = ''
|
|
4
|
-
export let horizontal = true // Determines if the switch and label are on a row or col
|
|
5
|
-
export let textFormat = 'text-base' // Tailwind CSS classes to format the text
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<div class="flex {horizontal ? 'flex-row justify-between' : 'flex-col'} {$$props.class}">
|
|
9
|
-
<div class="my-auto {textFormat} mr-2">{label}</div>
|
|
10
|
-
<label class="switch my-auto">
|
|
11
|
-
<input type="checkbox" bind:checked />
|
|
12
|
-
<span class="slider" />
|
|
13
|
-
</label>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<style>
|
|
17
|
-
.switch {
|
|
18
|
-
position: relative;
|
|
19
|
-
display: inline-block;
|
|
20
|
-
width: 30px;
|
|
21
|
-
height: 17px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.switch input {
|
|
25
|
-
opacity: 0;
|
|
26
|
-
width: 0;
|
|
27
|
-
height: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.slider {
|
|
31
|
-
position: absolute;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
top: 0;
|
|
34
|
-
left: 0;
|
|
35
|
-
right: 0;
|
|
36
|
-
bottom: 0;
|
|
37
|
-
background-color: #ccc;
|
|
38
|
-
transition: 0.4s;
|
|
39
|
-
border-radius: 17px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.slider:before {
|
|
43
|
-
position: absolute;
|
|
44
|
-
content: '';
|
|
45
|
-
height: 13px;
|
|
46
|
-
width: 13px;
|
|
47
|
-
left: 2px;
|
|
48
|
-
bottom: 2px;
|
|
49
|
-
background-color: white;
|
|
50
|
-
transition: 0.4s;
|
|
51
|
-
border-radius: 50%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
input:checked + .slider {
|
|
55
|
-
background-color: #2196f3;
|
|
56
|
-
box-shadow: 0 0 1px #2196f3;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
input:checked + .slider:before {
|
|
60
|
-
transform: translateX(13px);
|
|
61
|
-
}</style>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} SwitchProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} SwitchEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} SwitchSlots */
|
|
4
|
-
export default class Switch extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
label?: string | undefined;
|
|
7
|
-
checked?: boolean | undefined;
|
|
8
|
-
horizontal?: boolean | undefined;
|
|
9
|
-
textFormat?: string | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
}, {}> {
|
|
13
|
-
}
|
|
14
|
-
export type SwitchProps = typeof __propDef.props;
|
|
15
|
-
export type SwitchEvents = typeof __propDef.events;
|
|
16
|
-
export type SwitchSlots = typeof __propDef.slots;
|
|
17
|
-
import { SvelteComponentTyped } from "svelte";
|
|
18
|
-
declare const __propDef: {
|
|
19
|
-
props: {
|
|
20
|
-
[x: string]: any;
|
|
21
|
-
label?: string | undefined;
|
|
22
|
-
checked?: boolean | undefined;
|
|
23
|
-
horizontal?: boolean | undefined;
|
|
24
|
-
textFormat?: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
events: {
|
|
27
|
-
[evt: string]: CustomEvent<any>;
|
|
28
|
-
};
|
|
29
|
-
slots: {};
|
|
30
|
-
};
|
|
31
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<script>import { Button } from 'flowbite-svelte';
|
|
2
|
-
import { isEmptyFlowModule } from '../flowStateUtils';
|
|
3
|
-
import { copyFirstStepSchema, flowStore } from '../flowStore';
|
|
4
|
-
</script>
|
|
5
|
-
|
|
6
|
-
<Button
|
|
7
|
-
color="light"
|
|
8
|
-
size="xs"
|
|
9
|
-
disabled={$flowStore.value.modules.length === 0 || isEmptyFlowModule($flowStore.value.modules[0])}
|
|
10
|
-
on:click={copyFirstStepSchema}
|
|
11
|
-
>
|
|
12
|
-
Copy from first step schema
|
|
13
|
-
</Button>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {};
|
|
4
|
-
events: {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
};
|
|
7
|
-
slots: {};
|
|
8
|
-
};
|
|
9
|
-
export declare type CopyFirstStepSchemaProps = typeof __propDef.props;
|
|
10
|
-
export declare type CopyFirstStepSchemaEvents = typeof __propDef.events;
|
|
11
|
-
export declare type CopyFirstStepSchemaSlots = typeof __propDef.slots;
|
|
12
|
-
export default class CopyFirstStepSchema extends SvelteComponentTyped<CopyFirstStepSchemaProps, CopyFirstStepSchemaEvents, CopyFirstStepSchemaSlots> {
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<script>import { getContext } from 'svelte';
|
|
2
|
-
import { flowStore } from '../flowStore';
|
|
3
|
-
import { selectedIdToIndexes } from '../utils';
|
|
4
|
-
import FlowLoop from './FlowLoop.svelte';
|
|
5
|
-
const { selectedId } = getContext('FlowEditorContext');
|
|
6
|
-
$: index = selectedIdToIndexes($selectedId)[0];
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<FlowLoop bind:mod={$flowStore.value.modules[index]} {index} />
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {};
|
|
4
|
-
events: {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
};
|
|
7
|
-
slots: {};
|
|
8
|
-
};
|
|
9
|
-
export declare type FlowLoopWrapperProps = typeof __propDef.props;
|
|
10
|
-
export declare type FlowLoopWrapperEvents = typeof __propDef.events;
|
|
11
|
-
export declare type FlowLoopWrapperSlots = typeof __propDef.slots;
|
|
12
|
-
export default class FlowLoopWrapper extends SvelteComponentTyped<FlowLoopWrapperProps, FlowLoopWrapperEvents, FlowLoopWrapperSlots> {
|
|
13
|
-
}
|
|
14
|
-
export {};
|