windmill-components 1.46.3 → 1.52.0
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 +6 -5
- package/components/ApiConnectForm.svelte +21 -0
- package/components/ApiConnectForm.svelte.d.ts +18 -0
- package/components/AppConnect.svelte +229 -174
- package/components/AppConnect.svelte.d.ts +4 -3
- package/components/ArgInfo.svelte +2 -2
- package/components/ArgInfo.svelte.d.ts +3 -3
- package/components/ArgInput.svelte +82 -28
- package/components/ArgInput.svelte.d.ts +10 -3
- package/components/Badge.svelte.d.ts +3 -3
- package/components/Button.svelte +1 -1
- package/components/Button.svelte.d.ts +3 -3
- package/components/ButtonAndDropdown.svelte.d.ts +3 -3
- package/components/CenteredModal.svelte +20 -13
- package/components/CenteredModal.svelte.d.ts +3 -3
- package/components/ChevronButton.svelte.d.ts +3 -3
- package/components/CollapseLink.svelte.d.ts +3 -3
- package/components/CronInput.svelte +1 -1
- package/components/CronInput.svelte.d.ts +3 -3
- package/components/DisplayResult.svelte.d.ts +3 -3
- package/components/Dropdown.svelte +13 -7
- package/components/Dropdown.svelte.d.ts +3 -3
- package/components/Editor.svelte +3 -2
- package/components/Editor.svelte.d.ts +4 -3
- package/components/EditorBar.svelte +34 -38
- package/components/EditorBar.svelte.d.ts +3 -3
- package/components/FieldHeader.svelte +4 -3
- package/components/FieldHeader.svelte.d.ts +3 -3
- package/components/FlowBuilder.svelte +37 -14
- package/components/FlowBuilder.svelte.d.ts +4 -3
- package/components/FlowGraphViewer.svelte +76 -0
- package/components/FlowGraphViewer.svelte.d.ts +23 -0
- package/components/FlowJobResult.svelte.d.ts +3 -3
- package/components/FlowMetadata.svelte.d.ts +3 -3
- package/components/FlowPreviewContent.svelte +54 -64
- package/components/FlowPreviewContent.svelte.d.ts +3 -3
- package/components/FlowStatusViewer.svelte +156 -106
- package/components/FlowStatusViewer.svelte.d.ts +5 -4
- package/components/FlowViewer.svelte +3 -78
- package/components/FlowViewer.svelte.d.ts +3 -3
- package/components/GroupModal.svelte.d.ts +3 -3
- package/components/HighlightCode.svelte.d.ts +3 -3
- package/components/IconedPath.svelte.d.ts +3 -3
- package/components/IconedResourceType.svelte +3 -61
- package/components/IconedResourceType.svelte.d.ts +3 -3
- package/components/InputTransformForm.svelte +108 -77
- package/components/InputTransformForm.svelte.d.ts +10 -5
- package/components/InputTransformsViewer.svelte.d.ts +3 -3
- package/components/InviteGlobalUser.svelte.d.ts +3 -3
- package/components/InviteUser.svelte.d.ts +3 -3
- package/components/ItemPicker.svelte +77 -29
- package/components/ItemPicker.svelte.d.ts +6 -4
- package/components/JobArgs.svelte +5 -5
- package/components/JobArgs.svelte.d.ts +3 -3
- package/components/JobStatus.svelte.d.ts +3 -3
- package/components/LogViewer.svelte +19 -4
- package/components/LogViewer.svelte.d.ts +3 -3
- package/components/Modal.svelte.d.ts +3 -3
- package/components/ModulePreview.svelte +8 -0
- package/components/ModulePreview.svelte.d.ts +3 -3
- package/components/ObjectResourceInput.svelte +37 -21
- package/components/ObjectResourceInput.svelte.d.ts +4 -3
- package/components/ObjectTypeNarrowing.svelte.d.ts +3 -3
- package/components/PageHeader.svelte +2 -2
- package/components/PageHeader.svelte.d.ts +3 -3
- package/components/Password.svelte +2 -2
- package/components/Password.svelte.d.ts +4 -4
- package/components/Path.svelte +4 -1
- package/components/Path.svelte.d.ts +5 -4
- package/components/Popover.svelte.d.ts +3 -3
- package/components/RadioButton.svelte.d.ts +3 -3
- package/components/Required.svelte.d.ts +3 -3
- package/components/ResourceEditor.svelte +73 -163
- package/components/ResourceEditor.svelte.d.ts +3 -5
- package/components/ResourcePicker.svelte +33 -30
- package/components/ResourcePicker.svelte.d.ts +3 -3
- package/components/ResourceTypePicker.svelte.d.ts +3 -3
- package/components/RunChart.svelte.d.ts +3 -3
- package/components/RunForm.svelte.d.ts +3 -3
- package/components/SchemaEditor.svelte +55 -23
- package/components/SchemaEditor.svelte.d.ts +3 -3
- package/components/SchemaEditorProperty.svelte.d.ts +3 -3
- package/components/SchemaForm.svelte +97 -33
- package/components/SchemaForm.svelte.d.ts +8 -4
- package/components/SchemaModal.svelte.d.ts +4 -4
- package/components/SchemaViewer.svelte.d.ts +3 -3
- package/components/ScriptBuilder.svelte +64 -66
- package/components/ScriptBuilder.svelte.d.ts +3 -3
- package/components/ScriptEditor.svelte +26 -28
- package/components/ScriptEditor.svelte.d.ts +4 -3
- package/components/ScriptPicker.svelte +28 -38
- package/components/ScriptPicker.svelte.d.ts +4 -3
- package/components/ScriptSchema.svelte +1 -1
- package/components/ScriptSchema.svelte.d.ts +3 -3
- package/components/SearchItems.svelte +29 -0
- package/components/SearchItems.svelte.d.ts +23 -0
- package/components/ShareModal.svelte.d.ts +3 -3
- package/components/SharedBadge.svelte +4 -2
- package/components/SharedBadge.svelte.d.ts +3 -3
- package/components/SimpleEditor.svelte +33 -7
- package/components/SimpleEditor.svelte.d.ts +4 -4
- package/components/Star.svelte +42 -0
- package/components/Star.svelte.d.ts +19 -0
- package/components/StringTypeNarrowing.svelte.d.ts +3 -3
- package/components/SuperadminSettings.svelte +18 -15
- package/components/SuperadminSettings.svelte.d.ts +3 -3
- package/components/TableCustom.svelte +1 -1
- package/components/TableCustom.svelte.d.ts +3 -3
- package/components/TableSimple.svelte.d.ts +3 -3
- package/components/TestJobLoader.svelte +41 -24
- package/components/TestJobLoader.svelte.d.ts +9 -3
- package/components/Toggle.svelte.d.ts +3 -3
- package/components/Tooltip.svelte.d.ts +3 -3
- package/components/UserSettings.svelte.d.ts +3 -3
- package/components/VariableEditor.svelte +71 -32
- package/components/VariableEditor.svelte.d.ts +5 -3
- package/components/apps/CreateApp.svelte +65 -0
- package/components/apps/CreateApp.svelte.d.ts +14 -0
- package/components/apps/components/DisplayComponent.svelte +23 -0
- package/components/apps/components/DisplayComponent.svelte.d.ts +19 -0
- package/components/apps/components/buttons/AppButton.svelte +42 -0
- package/components/apps/components/buttons/AppButton.svelte.d.ts +25 -0
- package/components/apps/components/dataDisplay/AppBarChart.svelte +18 -0
- package/components/apps/components/dataDisplay/AppBarChart.svelte.d.ts +23 -0
- package/components/apps/components/dataDisplay/AppPieChart.svelte +22 -0
- package/components/apps/components/dataDisplay/AppPieChart.svelte.d.ts +23 -0
- package/components/apps/components/dataDisplay/AppTable.svelte +135 -0
- package/components/apps/components/dataDisplay/AppTable.svelte.d.ts +27 -0
- package/components/apps/components/dataDisplay/AppText.svelte +15 -0
- package/components/apps/components/dataDisplay/AppText.svelte.d.ts +21 -0
- package/components/apps/components/helpers/AlignWrapper.svelte +29 -0
- package/components/apps/components/helpers/AlignWrapper.svelte.d.ts +19 -0
- package/components/apps/components/helpers/DebouncedInput.svelte +16 -0
- package/components/apps/components/helpers/DebouncedInput.svelte.d.ts +19 -0
- package/components/apps/components/helpers/InputValue.svelte +37 -0
- package/components/apps/components/helpers/InputValue.svelte.d.ts +18 -0
- package/components/apps/components/helpers/RunnableComponent.svelte +182 -0
- package/components/apps/components/helpers/RunnableComponent.svelte.d.ts +28 -0
- package/components/apps/components/index.d.ts +22 -0
- package/components/apps/components/index.js +42 -0
- package/components/apps/components/selectInputs/AppCheckbox.svelte +26 -0
- package/components/apps/components/selectInputs/AppCheckbox.svelte.d.ts +22 -0
- package/components/apps/editor/AppEditor.svelte +105 -0
- package/components/apps/editor/AppEditor.svelte.d.ts +19 -0
- package/components/apps/editor/AppEditorHeader.svelte +75 -0
- package/components/apps/editor/AppEditorHeader.svelte.d.ts +19 -0
- package/components/apps/editor/ComponentEditor.svelte +64 -0
- package/components/apps/editor/ComponentEditor.svelte.d.ts +18 -0
- package/components/apps/editor/GridEditor.svelte +45 -0
- package/components/apps/editor/GridEditor.svelte.d.ts +14 -0
- package/components/apps/editor/componentsPanel/ComponentList.svelte +92 -0
- package/components/apps/editor/componentsPanel/ComponentList.svelte.d.ts +14 -0
- package/components/apps/editor/componentsPanel/componentDefaultProps.d.ts +7 -0
- package/components/apps/editor/componentsPanel/componentDefaultProps.js +9 -0
- package/components/apps/editor/componentsPanel/componentStaticValues.d.ts +4 -0
- package/components/apps/editor/componentsPanel/componentStaticValues.js +6 -0
- package/components/apps/editor/componentsPanel/data.d.ts +3 -0
- package/components/apps/editor/componentsPanel/data.js +158 -0
- package/components/apps/editor/componentsPanel/store.d.ts +9 -0
- package/components/apps/editor/componentsPanel/store.js +16 -0
- package/components/apps/editor/contextPanel/ComponentOutputViewer.svelte +22 -0
- package/components/apps/editor/contextPanel/ComponentOutputViewer.svelte.d.ts +19 -0
- package/components/apps/editor/contextPanel/ContextPanel.svelte +184 -0
- package/components/apps/editor/contextPanel/ContextPanel.svelte.d.ts +16 -0
- package/components/apps/editor/contextPanel/InlineScriptCreationPanel.svelte +29 -0
- package/components/apps/editor/contextPanel/InlineScriptCreationPanel.svelte.d.ts +16 -0
- package/components/apps/editor/settingsPanel/ComponentPanel.svelte +196 -0
- package/components/apps/editor/settingsPanel/ComponentPanel.svelte.d.ts +18 -0
- package/components/apps/editor/settingsPanel/DynamicInputEditor.svelte +64 -0
- package/components/apps/editor/settingsPanel/DynamicInputEditor.svelte.d.ts +17 -0
- package/components/apps/editor/settingsPanel/InputsSpecEditor.svelte +11 -0
- package/components/apps/editor/settingsPanel/InputsSpecEditor.svelte.d.ts +18 -0
- package/components/apps/editor/settingsPanel/InputsSpecsEditor.svelte +99 -0
- package/components/apps/editor/settingsPanel/InputsSpecsEditor.svelte.d.ts +20 -0
- package/components/apps/editor/settingsPanel/PickFlow.svelte +37 -0
- package/components/apps/editor/settingsPanel/PickFlow.svelte.d.ts +16 -0
- package/components/apps/editor/settingsPanel/PickInlineScript.svelte +38 -0
- package/components/apps/editor/settingsPanel/PickInlineScript.svelte.d.ts +20 -0
- package/components/apps/editor/settingsPanel/SectionPanel.svelte +70 -0
- package/components/apps/editor/settingsPanel/SectionPanel.svelte.d.ts +19 -0
- package/components/apps/editor/settingsPanel/StaticInputEditor.svelte +29 -0
- package/components/apps/editor/settingsPanel/StaticInputEditor.svelte.d.ts +18 -0
- package/components/apps/editor/settingsPanel/TableActions.svelte +107 -0
- package/components/apps/editor/settingsPanel/TableActions.svelte.d.ts +19 -0
- package/components/apps/editor/settingsPanel/UserInputEditor.svelte +2 -0
- package/components/apps/editor/settingsPanel/UserInputEditor.svelte.d.ts +14 -0
- package/components/apps/editor/settingsPanel/common/PanelSection.svelte +11 -0
- package/components/apps/editor/settingsPanel/common/PanelSection.svelte.d.ts +19 -0
- package/components/apps/gridUtils.d.ts +11 -0
- package/components/apps/gridUtils.js +24 -0
- package/components/apps/rx.d.ts +27 -0
- package/components/apps/rx.js +87 -0
- package/components/apps/types.d.ts +120 -0
- package/components/apps/types.js +1 -0
- package/components/apps/utils.d.ts +36 -0
- package/components/apps/utils.js +96 -0
- package/components/common/actionRow/ActionRow.svelte.d.ts +3 -3
- package/components/common/alert/Alert.svelte +29 -7
- package/components/common/alert/Alert.svelte.d.ts +4 -3
- package/components/common/alert/model.d.ts +1 -1
- package/components/common/badge/Badge.svelte +3 -7
- package/components/common/badge/Badge.svelte.d.ts +6 -4
- package/components/common/badge/model.d.ts +2 -2
- package/components/common/breadcrumb/Breadcrumb.svelte.d.ts +3 -3
- package/components/common/button/Button.svelte +24 -6
- package/components/common/button/Button.svelte.d.ts +6 -4
- package/components/common/button/ButtonPopup.svelte +3 -1
- package/components/common/button/ButtonPopup.svelte.d.ts +5 -4
- package/components/common/button/ButtonPopupItem.svelte.d.ts +3 -3
- package/components/common/button/model.d.ts +2 -1
- package/components/common/button/model.js +2 -1
- package/components/common/confirmationModal/ConfirmationModal.svelte.d.ts +3 -3
- package/components/common/confirmationModal/UnsavedConfirmationModal.svelte.d.ts +3 -3
- package/components/common/drawer/Drawer.svelte +5 -1
- package/components/common/drawer/Drawer.svelte.d.ts +3 -3
- package/components/common/drawer/DrawerContent.svelte +11 -3
- package/components/common/drawer/DrawerContent.svelte.d.ts +5 -3
- package/components/common/languageIcons/LanguageIcon.svelte +6 -4
- package/components/common/languageIcons/LanguageIcon.svelte.d.ts +4 -4
- package/components/common/menu/Menu.svelte +7 -5
- package/components/common/menu/Menu.svelte.d.ts +7 -6
- package/components/common/menu/MenuItem.svelte +1 -0
- package/components/common/popup/Popup.svelte.d.ts +3 -3
- package/components/common/skeleton/Skeleton.svelte.d.ts +3 -3
- package/components/common/skeleton/SkeletonElement.svelte.d.ts +3 -3
- package/components/common/skeleton/model.d.ts +4 -4
- package/components/common/table/AppRow.svelte +61 -0
- package/components/common/table/AppRow.svelte.d.ts +23 -0
- package/components/common/table/FlowRow.svelte +136 -0
- package/components/common/table/FlowRow.svelte.d.ts +25 -0
- package/components/common/table/LanguageBadge.svelte +32 -0
- package/components/common/table/LanguageBadge.svelte.d.ts +24 -0
- package/components/common/table/Row.svelte +47 -0
- package/components/common/table/Row.svelte.d.ts +27 -0
- package/components/common/table/RowIcon.svelte +23 -0
- package/components/common/table/RowIcon.svelte.d.ts +16 -0
- package/components/common/table/ScriptRow.svelte +147 -0
- package/components/common/table/ScriptRow.svelte.d.ts +25 -0
- package/components/common/table/Table.svelte +9 -0
- package/components/common/table/Table.svelte.d.ts +23 -0
- package/components/common/tabs/Tab.svelte +15 -4
- package/components/common/tabs/Tab.svelte.d.ts +5 -3
- package/components/common/tabs/TabContent.svelte.d.ts +3 -3
- package/components/common/tabs/Tabs.svelte +5 -1
- package/components/common/tabs/Tabs.svelte.d.ts +4 -4
- package/components/common/toggleButton/ToggleButton.svelte +12 -9
- package/components/common/toggleButton/ToggleButton.svelte.d.ts +6 -4
- package/components/common/toggleButton/ToggleButtonGroup.svelte +12 -19
- package/components/common/toggleButton/ToggleButtonGroup.svelte.d.ts +10 -8
- package/components/flows/CreateActionsFlow.svelte +66 -0
- package/components/flows/CreateActionsFlow.svelte.d.ts +14 -0
- package/components/flows/FlowEditor.svelte +22 -5
- package/components/flows/FlowEditor.svelte.d.ts +4 -3
- package/components/flows/FlowProgressBar.svelte.d.ts +3 -3
- package/components/flows/common/FlowCard.svelte.d.ts +3 -3
- package/components/flows/common/FlowCardHeader.svelte +3 -1
- package/components/flows/common/FlowCardHeader.svelte.d.ts +3 -3
- package/components/flows/content/CapturePayload.svelte.d.ts +3 -3
- package/components/flows/content/DynamicInputHelpBox.svelte +2 -32
- package/components/flows/content/DynamicInputHelpBox.svelte.d.ts +4 -6
- package/components/flows/content/FlowBranchAllWrapper.svelte.d.ts +3 -3
- package/components/flows/content/FlowBranchOneWrapper.svelte +3 -2
- package/components/flows/content/FlowBranchOneWrapper.svelte.d.ts +3 -3
- package/components/flows/content/FlowBranchesWrapper.svelte +2 -2
- package/components/flows/content/FlowBranchesWrapper.svelte.d.ts +3 -3
- package/components/flows/content/FlowEditorPanel.svelte +2 -0
- package/components/flows/content/FlowEditorPanel.svelte.d.ts +3 -3
- package/components/flows/content/FlowFailureModule.svelte.d.ts +3 -3
- package/components/flows/content/FlowInput.svelte +9 -12
- package/components/flows/content/FlowInput.svelte.d.ts +3 -3
- package/components/flows/content/FlowInputs.svelte +119 -140
- package/components/flows/content/FlowInputs.svelte.d.ts +4 -7
- package/components/flows/content/FlowLoop.svelte +3 -2
- package/components/flows/content/FlowLoop.svelte.d.ts +3 -3
- package/components/flows/content/FlowModuleComponent.svelte +49 -45
- package/components/flows/content/FlowModuleComponent.svelte.d.ts +3 -3
- package/components/flows/content/FlowModuleEarlyStop.svelte +3 -2
- package/components/flows/content/FlowModuleEarlyStop.svelte.d.ts +3 -3
- package/components/flows/content/FlowModuleHeader.svelte +6 -3
- package/components/flows/content/FlowModuleHeader.svelte.d.ts +3 -3
- package/components/flows/content/FlowModuleScript.svelte.d.ts +3 -3
- package/components/flows/content/FlowModuleSuspend.svelte +9 -3
- package/components/flows/content/FlowModuleSuspend.svelte.d.ts +3 -3
- package/components/flows/content/FlowModuleWrapper.svelte +0 -22
- package/components/flows/content/FlowModuleWrapper.svelte.d.ts +3 -3
- package/components/flows/content/FlowRetries.svelte.d.ts +3 -3
- package/components/flows/content/FlowSchedules.svelte.d.ts +3 -3
- package/components/flows/content/FlowSettings.svelte +88 -93
- package/components/flows/content/FlowSettings.svelte.d.ts +3 -3
- package/components/flows/content/RemoveStepConfirmationModal.svelte.d.ts +3 -3
- package/components/flows/flowState.d.ts +2 -2
- package/components/flows/flowStateUtils.d.ts +1 -0
- package/components/flows/flowStateUtils.js +13 -2
- package/components/flows/flowStore.d.ts +1 -1
- package/components/flows/flowStore.js +1 -1
- package/components/flows/header/FlowImportExportMenu.svelte +9 -23
- package/components/flows/header/FlowImportExportMenu.svelte.d.ts +3 -3
- package/components/flows/header/FlowPreviewButtons.svelte +20 -16
- package/components/flows/header/FlowPreviewButtons.svelte.d.ts +3 -3
- package/components/flows/map/FlowBranchAllMap.svelte +47 -37
- package/components/flows/map/FlowBranchAllMap.svelte.d.ts +3 -3
- package/components/flows/map/FlowBranchOneMap.svelte +50 -42
- package/components/flows/map/FlowBranchOneMap.svelte.d.ts +3 -3
- package/components/flows/map/FlowErrorHandlerItem.svelte +5 -3
- package/components/flows/map/FlowErrorHandlerItem.svelte.d.ts +3 -3
- package/components/flows/map/FlowInputsItem.svelte +3 -2
- package/components/flows/map/FlowInputsItem.svelte.d.ts +3 -3
- package/components/flows/map/FlowModuleSchemaItem.svelte +26 -31
- package/components/flows/map/FlowModuleSchemaItem.svelte.d.ts +5 -5
- package/components/flows/map/FlowModuleSchemaMap.svelte +50 -92
- package/components/flows/map/FlowModuleSchemaMap.svelte.d.ts +3 -4
- package/components/flows/map/FlowSettingsItem.svelte +8 -7
- package/components/flows/map/FlowSettingsItem.svelte.d.ts +3 -3
- package/components/flows/map/InsertModuleButton.svelte +62 -8
- package/components/flows/map/InsertModuleButton.svelte.d.ts +4 -4
- package/components/flows/map/MapItem.svelte +30 -16
- package/components/flows/map/MapItem.svelte.d.ts +4 -6
- package/components/flows/pickers/FlowScriptPicker.svelte +11 -4
- package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +8 -6
- package/components/flows/pickers/PickHubScript.svelte +74 -29
- package/components/flows/pickers/PickHubScript.svelte.d.ts +5 -6
- package/components/flows/pickers/PickScript.svelte +16 -9
- package/components/flows/pickers/PickScript.svelte.d.ts +3 -4
- package/components/flows/pickers/WorkspaceScriptPicker.svelte +53 -0
- package/components/flows/pickers/WorkspaceScriptPicker.svelte.d.ts +19 -0
- package/components/flows/pickers/model.d.ts +5 -3
- package/components/flows/previousResults.d.ts +2 -2
- package/components/flows/previousResults.js +5 -5
- package/components/flows/propPicker/PropPickerWrapper.svelte +2 -2
- package/components/flows/propPicker/PropPickerWrapper.svelte.d.ts +7 -7
- package/components/flows/scheduleUtils.d.ts +1 -1
- package/components/flows/scheduleUtils.js +1 -1
- package/components/flows/types.d.ts +1 -1
- package/components/flows/utils.d.ts +1 -1
- package/components/flows/utils.js +4 -9
- package/components/graph/FlowGraph.svelte +57 -18
- package/components/graph/FlowGraph.svelte.d.ts +6 -4
- package/components/graph/model.d.ts +7 -6
- package/components/icons/AirtableIcon.svelte.d.ts +3 -3
- package/components/icons/DbIcon.svelte.d.ts +3 -3
- package/components/icons/DiscordIcon.svelte.d.ts +3 -3
- package/components/icons/GCloudIcon.svelte.d.ts +3 -3
- package/components/icons/GItlabIcon.svelte.d.ts +3 -3
- package/components/icons/GSheetsIcon.svelte.d.ts +3 -3
- package/components/icons/GcalIcon.svelte.d.ts +3 -3
- package/components/icons/GdriveIcon.svelte.d.ts +3 -3
- package/components/icons/GithubIcon.svelte.d.ts +3 -3
- package/components/icons/GmailIcon.svelte.d.ts +3 -3
- package/components/icons/HatIcon.svelte.d.ts +3 -3
- package/components/icons/HttpIcon.svelte.d.ts +3 -3
- package/components/icons/Mail.svelte.d.ts +3 -3
- package/components/icons/MailchimpIcon.svelte +18 -0
- package/components/icons/MailchimpIcon.svelte.d.ts +17 -0
- package/components/icons/MastodonIcon.svelte.d.ts +3 -3
- package/components/icons/MatrixIcon.svelte.d.ts +3 -3
- package/components/icons/Mysql.svelte.d.ts +3 -3
- package/components/icons/PostgresIcon.svelte.d.ts +3 -3
- package/components/icons/S3Icon.svelte.d.ts +3 -3
- package/components/icons/SendgridIcon.svelte +66 -0
- package/components/icons/SendgridIcon.svelte.d.ts +17 -0
- package/components/icons/Slack.svelte.d.ts +3 -3
- package/components/icons/TogglIcon.svelte.d.ts +3 -3
- package/components/icons/WindmillIcon.svelte.d.ts +3 -3
- package/components/icons/index.d.ts +48 -0
- package/components/icons/index.js +48 -0
- package/components/jobs/JobDetail.svelte +2 -2
- package/components/jobs/JobDetail.svelte.d.ts +3 -3
- package/components/preview/FlowPreviewStatus.svelte.d.ts +3 -3
- package/components/progressBar/ProgressBar.svelte.d.ts +3 -3
- package/components/progressBar/ProgressBarGeneralPart.svelte.d.ts +3 -3
- package/components/progressBar/ProgressBarLoopAccessor.svelte.d.ts +3 -3
- package/components/progressBar/ProgressBarLoopPart.svelte.d.ts +3 -3
- package/components/progressBar/model.d.ts +9 -9
- package/components/propertyPicker/ObjectViewer.svelte +34 -9
- package/components/propertyPicker/ObjectViewer.svelte.d.ts +4 -3
- package/components/propertyPicker/PropPicker.svelte +118 -110
- package/components/propertyPicker/PropPicker.svelte.d.ts +3 -3
- package/components/propertyPicker/PropPickerResult.svelte +0 -1
- package/components/propertyPicker/PropPickerResult.svelte.d.ts +3 -3
- package/components/scriptEditor/LogPanel.svelte +4 -4
- package/components/scriptEditor/LogPanel.svelte.d.ts +3 -3
- package/components/scripts/{CreateActions.svelte → CreateActionsScript.svelte} +7 -46
- package/components/scripts/CreateActionsScript.svelte.d.ts +14 -0
- package/components/sidebar/MenuLink.svelte +7 -4
- package/components/sidebar/MenuLink.svelte.d.ts +4 -3
- package/components/sidebar/SidebarContent.svelte +25 -18
- package/components/sidebar/SidebarContent.svelte.d.ts +7 -3
- package/components/sidebar/UserMenu.svelte +1 -1
- package/components/sidebar/UserMenu.svelte.d.ts +3 -3
- package/components/sidebar/WorkspaceMenu.svelte +3 -3
- package/components/sidebar/WorkspaceMenu.svelte.d.ts +3 -3
- package/components/splitPanes/SplitPanesWrapper.svelte.d.ts +3 -3
- package/editorUtils.d.ts +1 -1
- package/editorUtils.js +2 -2
- package/gen/core/ApiRequestOptions.d.ts +1 -1
- package/gen/core/ApiResult.d.ts +1 -1
- package/gen/core/OpenAPI.d.ts +3 -3
- package/gen/core/OpenAPI.js +1 -1
- package/gen/index.d.ts +2 -0
- package/gen/index.js +1 -0
- package/gen/models/AppWithLastVersion.d.ts +12 -12
- package/gen/models/AuditLog.d.ts +1 -1
- package/gen/models/BranchAll.d.ts +1 -1
- package/gen/models/BranchOne.d.ts +1 -1
- package/gen/models/CompletedJob.d.ts +1 -1
- package/gen/models/ContextualVariable.d.ts +1 -1
- package/gen/models/CreateResource.d.ts +1 -2
- package/gen/models/CreateVariable.d.ts +1 -1
- package/gen/models/CreateWorkspace.d.ts +1 -1
- package/gen/models/EditResource.d.ts +1 -1
- package/gen/models/EditResourceType.d.ts +1 -1
- package/gen/models/EditSchedule.d.ts +1 -1
- package/gen/models/EditVariable.d.ts +1 -1
- package/gen/models/EditWorkspaceUser.d.ts +1 -1
- package/gen/models/Flow.d.ts +1 -1
- package/gen/models/FlowMetadata.d.ts +2 -1
- package/gen/models/FlowModule.d.ts +1 -1
- package/gen/models/FlowModuleValue.d.ts +1 -1
- package/gen/models/FlowPreview.d.ts +1 -1
- package/gen/models/FlowStatus.d.ts +1 -1
- package/gen/models/FlowStatusModule.d.ts +1 -1
- package/gen/models/FlowValue.d.ts +1 -1
- package/gen/models/ForloopFlow.d.ts +1 -1
- package/gen/models/GlobalUserInfo.d.ts +1 -1
- package/gen/models/Group.d.ts +1 -1
- package/gen/models/Identity.d.ts +1 -1
- package/gen/models/InputTransform.d.ts +1 -1
- package/gen/models/JavascriptTransform.d.ts +1 -1
- package/gen/models/Job.d.ts +1 -1
- package/gen/models/ListableApp.d.ts +10 -8
- package/gen/models/ListableResource.d.ts +13 -0
- package/gen/models/ListableResource.js +4 -0
- package/gen/models/ListableVariable.d.ts +4 -1
- package/gen/models/Login.d.ts +1 -1
- package/gen/models/MainArgSignature.d.ts +1 -1
- package/gen/models/NewSchedule.d.ts +1 -1
- package/gen/models/NewToken.d.ts +1 -1
- package/gen/models/NewUser.d.ts +1 -1
- package/gen/models/OpenFlow.d.ts +1 -1
- package/gen/models/OpenFlowWPath.d.ts +1 -1
- package/gen/models/PathScript.d.ts +1 -1
- package/gen/models/Policy.d.ts +1 -1
- package/gen/models/Preview.d.ts +1 -1
- package/gen/models/QueuedJob.d.ts +1 -1
- package/gen/models/RawScript.d.ts +2 -1
- package/gen/models/Resource.d.ts +1 -1
- package/gen/models/ResourceType.d.ts +1 -1
- package/gen/models/Retry.d.ts +1 -1
- package/gen/models/Schedule.d.ts +1 -1
- package/gen/models/Script.d.ts +2 -1
- package/gen/models/ScriptArgs.d.ts +1 -1
- package/gen/models/SlackToken.d.ts +1 -1
- package/gen/models/StaticTransform.d.ts +1 -1
- package/gen/models/TokenResponse.d.ts +1 -1
- package/gen/models/TruncatedToken.d.ts +1 -1
- package/gen/models/Usage.d.ts +1 -1
- package/gen/models/User.d.ts +1 -1
- package/gen/models/UserWorkspaceList.d.ts +1 -1
- package/gen/models/WorkerPing.d.ts +1 -1
- package/gen/models/Workspace.d.ts +1 -1
- package/gen/models/WorkspaceInvite.d.ts +1 -1
- package/gen/services/AppService.d.ts +101 -1
- package/gen/services/AppService.js +88 -1
- package/gen/services/FavoriteService.d.ts +27 -0
- package/gen/services/FavoriteService.js +36 -0
- package/gen/services/FlowService.d.ts +7 -91
- package/gen/services/FlowService.js +2 -73
- package/gen/services/JobService.d.ts +15 -0
- package/gen/services/JobService.js +19 -0
- package/gen/services/ResourceService.d.ts +3 -2
- package/gen/services/ResourceService.js +1 -1
- package/gen/services/ScheduleService.d.ts +1 -1
- package/gen/services/ScheduleService.js +1 -1
- package/gen/services/ScriptService.d.ts +7 -1
- package/gen/services/ScriptService.js +2 -1
- package/package.json +422 -361
- package/script_helpers.d.ts +3 -1
- package/script_helpers.js +73 -25
- package/stateMachine.d.ts +4 -4
- package/stores.d.ts +2 -0
- package/stores.js +1 -0
- package/utils.d.ts +4 -2
- package/utils.js +20 -3
- package/components/FlowModulesViewer.svelte +0 -191
- package/components/FlowModulesViewer.svelte.d.ts +0 -18
- package/components/landing/FlowGettingStarted.svelte +0 -50
- package/components/landing/FlowGettingStarted.svelte.d.ts +0 -19
- package/components/landing/FlowLandingBox.svelte +0 -39
- package/components/landing/FlowLandingBox.svelte.d.ts +0 -17
- package/components/landing/RessourceGettingStarted.svelte +0 -21
- package/components/landing/RessourceGettingStarted.svelte.d.ts +0 -19
- package/components/landing/ScriptBox.svelte +0 -52
- package/components/landing/ScriptBox.svelte.d.ts +0 -17
- package/components/landing/ScriptGettingStarted.svelte +0 -48
- package/components/landing/ScriptGettingStarted.svelte.d.ts +0 -19
- package/components/scripts/CreateActions.svelte.d.ts +0 -14
|
@@ -11,9 +11,9 @@ declare const __propDef: {
|
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
14
|
+
export type FlowLoopProps = typeof __propDef.props;
|
|
15
|
+
export type FlowLoopEvents = typeof __propDef.events;
|
|
16
|
+
export type FlowLoopSlots = typeof __propDef.slots;
|
|
17
17
|
export default class FlowLoop extends SvelteComponentTyped<FlowLoopProps, FlowLoopEvents, FlowLoopSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import Tab from '../../common/tabs/Tab.svelte';
|
|
3
3
|
import Tabs from '../../common/tabs/Tabs.svelte';
|
|
4
4
|
import Editor from '../../Editor.svelte';
|
|
5
|
-
import EditorBar
|
|
5
|
+
import EditorBar from '../../EditorBar.svelte';
|
|
6
6
|
import ModulePreview from '../../ModulePreview.svelte';
|
|
7
7
|
import { createScriptFromInlineScript, fork } from '../flowStateUtils';
|
|
8
8
|
import { flowStore } from '../flowStore';
|
|
@@ -20,8 +20,6 @@ import FlowModuleEarlyStop from './FlowModuleEarlyStop.svelte';
|
|
|
20
20
|
import FlowModuleSuspend from './FlowModuleSuspend.svelte';
|
|
21
21
|
import FlowRetries from './FlowRetries.svelte';
|
|
22
22
|
import { getStepPropPicker } from '../previousResults';
|
|
23
|
-
import Tooltip from '../../Tooltip.svelte';
|
|
24
|
-
import { Kbd } from '../../common';
|
|
25
23
|
import Button from '../../common/button/Button.svelte';
|
|
26
24
|
import Alert from '../../common/alert/Alert.svelte';
|
|
27
25
|
const { selectedId, previewArgs } = getContext('FlowEditorContext');
|
|
@@ -53,7 +51,7 @@ $: stepPropPicker = failureModule
|
|
|
53
51
|
},
|
|
54
52
|
extraLib: ''
|
|
55
53
|
}
|
|
56
|
-
: getStepPropPicker($flowStateStore, parentModule, previousModule, flowModule.id, $flowStore, previewArgs, false, true);
|
|
54
|
+
: getStepPropPicker($flowStateStore, parentModule, previousModule, flowModule.id, $flowStore, $previewArgs, false, true);
|
|
57
55
|
function onKeyDown(event) {
|
|
58
56
|
if ((event.ctrlKey || event.metaKey) && event.key == 'Enter') {
|
|
59
57
|
event.preventDefault();
|
|
@@ -102,9 +100,9 @@ afterUpdate(() => {
|
|
|
102
100
|
<svelte:fragment slot="header">
|
|
103
101
|
<FlowModuleHeader
|
|
104
102
|
bind:module={flowModule}
|
|
105
|
-
on:toggleSuspend={() => (selected = 'suspend')}
|
|
106
|
-
on:toggleRetry={() => (selected = 'retries')}
|
|
107
|
-
on:toggleStopAfterIf={() => (selected = 'early-stop')}
|
|
103
|
+
on:toggleSuspend={() => (selected = 'advanced-suspend')}
|
|
104
|
+
on:toggleRetry={() => (selected = 'advanced-retries')}
|
|
105
|
+
on:toggleStopAfterIf={() => (selected = 'advanced-early-stop')}
|
|
108
106
|
on:fork={async () => {
|
|
109
107
|
const [module, state] = await fork(flowModule)
|
|
110
108
|
flowModule = module
|
|
@@ -123,7 +121,7 @@ afterUpdate(() => {
|
|
|
123
121
|
</svelte:fragment>
|
|
124
122
|
|
|
125
123
|
{#if flowModule.value.type === 'rawscript'}
|
|
126
|
-
<div class="border-b-2 shadow-sm
|
|
124
|
+
<div class="border-b-2 shadow-sm px-1 mb-1">
|
|
127
125
|
<EditorBar
|
|
128
126
|
{validCode}
|
|
129
127
|
{editor}
|
|
@@ -140,9 +138,9 @@ afterUpdate(() => {
|
|
|
140
138
|
style="max-height: calc(100% - {totalTopGap}px) !important;"
|
|
141
139
|
>
|
|
142
140
|
<Splitpanes horizontal>
|
|
143
|
-
<Pane size={50} minSize={20}>
|
|
141
|
+
<Pane size={flowModule.value.type === 'script' ? 30 : 50} minSize={20}>
|
|
144
142
|
{#if flowModule.value.type === 'rawscript'}
|
|
145
|
-
<div
|
|
143
|
+
<div class="h-full">
|
|
146
144
|
<Editor
|
|
147
145
|
bind:websocketAlive
|
|
148
146
|
bind:this={editor}
|
|
@@ -153,9 +151,15 @@ afterUpdate(() => {
|
|
|
153
151
|
automaticLayout={true}
|
|
154
152
|
cmdEnterAction={async () => {
|
|
155
153
|
selected = 'test'
|
|
154
|
+
if (flowModule.value.type === 'rawscript') {
|
|
155
|
+
flowModule.value.content = editor.getCode()
|
|
156
|
+
}
|
|
156
157
|
await reload(flowModule)
|
|
157
158
|
modulePreview?.runTestWithStepArgs()
|
|
158
159
|
}}
|
|
160
|
+
on:change={async (event) => {
|
|
161
|
+
await reload(flowModule)
|
|
162
|
+
}}
|
|
159
163
|
formatAction={() => reload(flowModule)}
|
|
160
164
|
/>
|
|
161
165
|
</div>
|
|
@@ -163,21 +167,11 @@ afterUpdate(() => {
|
|
|
163
167
|
<FlowModuleScript path={flowModule.value.path} />
|
|
164
168
|
{/if}
|
|
165
169
|
</Pane>
|
|
166
|
-
<Pane size={50} minSize={20}>
|
|
170
|
+
<Pane size={flowModule.value.type === 'script' ? 70 : 50} minSize={20}>
|
|
167
171
|
<Tabs bind:selected>
|
|
168
|
-
<Tab value="inputs"
|
|
169
|
-
><Tooltip>
|
|
170
|
-
Move the focus outside of the text editor to recompute the inputs or press
|
|
171
|
-
<Kbd>Ctrl/Cmd</Kbd> + <Kbd>S</Kbd>
|
|
172
|
-
</Tooltip><span class="font-semibold">Step Input</span></Tab
|
|
173
|
-
>
|
|
172
|
+
<Tab value="inputs"><span class="font-semibold">Step Input</span></Tab>
|
|
174
173
|
<Tab value="test"><span class="font-semibold text-md">Test this step</span></Tab>
|
|
175
|
-
<Tab value="
|
|
176
|
-
{#if !$selectedId.includes('failure')}
|
|
177
|
-
<Tab value="early-stop">Early Stop</Tab>
|
|
178
|
-
<Tab value="suspend">Sleep/Suspend</Tab>
|
|
179
|
-
<Tab value="same_worker">Same Worker/Shared dir</Tab>
|
|
180
|
-
{/if}
|
|
174
|
+
<Tab value="advanced">Advanced</Tab>
|
|
181
175
|
</Tabs>
|
|
182
176
|
<div class="h-[calc(100%-32px)]">
|
|
183
177
|
{#if selected === 'inputs'}
|
|
@@ -186,7 +180,7 @@ afterUpdate(() => {
|
|
|
186
180
|
<SchemaForm
|
|
187
181
|
schema={$flowStateStore[$selectedId]?.schema ?? {}}
|
|
188
182
|
inputTransform={true}
|
|
189
|
-
|
|
183
|
+
previousModuleId={previousModule?.id}
|
|
190
184
|
bind:args={flowModule.value.input_transforms}
|
|
191
185
|
bind:extraLib={stepPropPicker.extraLib}
|
|
192
186
|
/>
|
|
@@ -198,27 +192,37 @@ afterUpdate(() => {
|
|
|
198
192
|
mod={flowModule}
|
|
199
193
|
schema={$flowStateStore[$selectedId]?.schema ?? {}}
|
|
200
194
|
/>
|
|
201
|
-
{:else if selected
|
|
202
|
-
<
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
<
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
<
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
195
|
+
{:else if selected.startsWith('advanced')}
|
|
196
|
+
<Tabs bind:selected>
|
|
197
|
+
<Tab value="advanced-retries">Retries</Tab>
|
|
198
|
+
{#if !$selectedId.includes('failure')}
|
|
199
|
+
<Tab value="advanced-early-stop">Early Stop</Tab>
|
|
200
|
+
<Tab value="advanced-suspend">Sleep/Suspend</Tab>
|
|
201
|
+
<Tab value="advanced-same_worker">Same Worker/Shared dir</Tab>
|
|
202
|
+
{/if}
|
|
203
|
+
</Tabs>
|
|
204
|
+
{#if selected === 'advanced-retries'}
|
|
205
|
+
<FlowRetries bind:flowModule class="px-4 pb-4 h-full overflow-auto" />
|
|
206
|
+
{:else if selected === 'advanced-early-stop'}
|
|
207
|
+
<FlowModuleEarlyStop bind:flowModule class="px-4 pb-4 h-full overflow-auto" />
|
|
208
|
+
{:else if selected === 'advanced-suspend'}
|
|
209
|
+
<div class="px-4 pb-4 h-full overflow-auto">
|
|
210
|
+
<FlowModuleSuspend previousModuleId={previousModule?.id} bind:flowModule />
|
|
211
|
+
</div>
|
|
212
|
+
{:else if selected === 'advanced-same_worker'}
|
|
213
|
+
<div class="p-4 h-full overflow-auto">
|
|
214
|
+
<Alert type="info" title="Share a directory using same worker">
|
|
215
|
+
If same worker is set, all steps will be run on the same worker and will share
|
|
216
|
+
the folder `./shared` to pass data between each other.
|
|
217
|
+
</Alert>
|
|
218
|
+
<Button
|
|
219
|
+
btnClasses="mt-4"
|
|
220
|
+
on:click={() => {
|
|
221
|
+
$selectedId = 'settings-same-worker'
|
|
222
|
+
}}>Set same worker in the flow settings</Button
|
|
223
|
+
>
|
|
224
|
+
</div>
|
|
225
|
+
{/if}
|
|
222
226
|
{/if}
|
|
223
227
|
</div>
|
|
224
228
|
</Pane>
|
|
@@ -12,9 +12,9 @@ declare const __propDef: {
|
|
|
12
12
|
};
|
|
13
13
|
slots: {};
|
|
14
14
|
};
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
15
|
+
export type FlowModuleComponentProps = typeof __propDef.props;
|
|
16
|
+
export type FlowModuleComponentEvents = typeof __propDef.events;
|
|
17
|
+
export type FlowModuleComponentSlots = typeof __propDef.slots;
|
|
18
18
|
export default class FlowModuleComponent extends SvelteComponentTyped<FlowModuleComponentProps, FlowModuleComponentEvents, FlowModuleComponentSlots> {
|
|
19
19
|
}
|
|
20
20
|
export {};
|
|
@@ -40,7 +40,7 @@ $: result = $flowStateStore[flowModule.id]?.previewResult ?? NEVER_TESTED_THIS_F
|
|
|
40
40
|
<Toggle
|
|
41
41
|
bind:checked={flowModule.stop_after_if.skip_if_stopped}
|
|
42
42
|
options={{
|
|
43
|
-
right: '
|
|
43
|
+
right: 'Label flow as "skipped" if stopped'
|
|
44
44
|
}}
|
|
45
45
|
/>
|
|
46
46
|
<span class="text-xs font-bold">Stop condition expression</span>
|
|
@@ -57,6 +57,7 @@ $: result = $flowStateStore[flowModule.id]?.previewResult ?? NEVER_TESTED_THIS_F
|
|
|
57
57
|
lang="javascript"
|
|
58
58
|
bind:code={flowModule.stop_after_if.expr}
|
|
59
59
|
class="small-editor"
|
|
60
|
+
extraLib={`declare const result = ${JSON.stringify(result)};`}
|
|
60
61
|
/>
|
|
61
62
|
</PropPickerWrapper>
|
|
62
63
|
</div>
|
|
@@ -64,7 +65,7 @@ $: result = $flowStateStore[flowModule.id]?.previewResult ?? NEVER_TESTED_THIS_F
|
|
|
64
65
|
<Toggle
|
|
65
66
|
disabled
|
|
66
67
|
options={{
|
|
67
|
-
right: '
|
|
68
|
+
right: 'Label flow as "skipped" if stopped'
|
|
68
69
|
}}
|
|
69
70
|
/> <span class="text-xs font-bold">Stop condition expression</span>
|
|
70
71
|
<textarea disabled rows="3" class="min-h-[80px]" />
|
|
@@ -10,9 +10,9 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type FlowModuleEarlyStopProps = typeof __propDef.props;
|
|
14
|
+
export type FlowModuleEarlyStopEvents = typeof __propDef.events;
|
|
15
|
+
export type FlowModuleEarlyStopSlots = typeof __propDef.slots;
|
|
16
16
|
export default class FlowModuleEarlyStop extends SvelteComponentTyped<FlowModuleEarlyStopProps, FlowModuleEarlyStopEvents, FlowModuleEarlyStopSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -28,7 +28,10 @@ $: moduleRetry = module.retry?.constant || module.retry?.exponential;
|
|
|
28
28
|
<Icon data={faArrowRotateForward} scale={0.8} />
|
|
29
29
|
</span>
|
|
30
30
|
<span
|
|
31
|
-
class={classNames(
|
|
31
|
+
class={classNames(
|
|
32
|
+
'badge',
|
|
33
|
+
Boolean(module.suspend) || Boolean(module.sleep) ? 'badge-on' : 'badge-off'
|
|
34
|
+
)}
|
|
32
35
|
on:click={() => dispatch('toggleSuspend')}
|
|
33
36
|
>
|
|
34
37
|
<Icon data={faBed} scale={0.8} />
|
|
@@ -41,7 +44,7 @@ $: moduleRetry = module.retry?.constant || module.retry?.exponential;
|
|
|
41
44
|
variant="border"
|
|
42
45
|
on:click={() => dispatch('fork')}
|
|
43
46
|
startIcon={{ icon: faCodeBranch }}
|
|
44
|
-
{
|
|
47
|
+
iconOnly={false}
|
|
45
48
|
>
|
|
46
49
|
Fork
|
|
47
50
|
</Button>
|
|
@@ -54,7 +57,7 @@ $: moduleRetry = module.retry?.constant || module.retry?.exponential;
|
|
|
54
57
|
variant="border"
|
|
55
58
|
startIcon={{ icon: faSave }}
|
|
56
59
|
on:click={() => dispatch('createScriptFromInlineScript')}
|
|
57
|
-
{
|
|
60
|
+
iconOnly={false}
|
|
58
61
|
>
|
|
59
62
|
Save to workspace
|
|
60
63
|
</Button>
|
|
@@ -15,9 +15,9 @@ declare const __propDef: {
|
|
|
15
15
|
};
|
|
16
16
|
slots: {};
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
18
|
+
export type FlowModuleHeaderProps = typeof __propDef.props;
|
|
19
|
+
export type FlowModuleHeaderEvents = typeof __propDef.events;
|
|
20
|
+
export type FlowModuleHeaderSlots = typeof __propDef.slots;
|
|
21
21
|
export default class FlowModuleHeader extends SvelteComponentTyped<FlowModuleHeaderProps, FlowModuleHeaderEvents, FlowModuleHeaderSlots> {
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
@@ -8,9 +8,9 @@ declare const __propDef: {
|
|
|
8
8
|
};
|
|
9
9
|
slots: {};
|
|
10
10
|
};
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
11
|
+
export type FlowModuleScriptProps = typeof __propDef.props;
|
|
12
|
+
export type FlowModuleScriptEvents = typeof __propDef.events;
|
|
13
|
+
export type FlowModuleScriptSlots = typeof __propDef.slots;
|
|
14
14
|
export default class FlowModuleScript extends SvelteComponentTyped<FlowModuleScriptProps, FlowModuleScriptEvents, FlowModuleScriptSlots> {
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -62,8 +62,9 @@ $: isSleepEnabled = Boolean(flowModule.sleep);
|
|
|
62
62
|
|
|
63
63
|
<h2 class="mt-4"
|
|
64
64
|
>Sleep<Tooltip>
|
|
65
|
-
If defined, at the end of the step, the flow will sleep for a number of seconds before
|
|
66
|
-
|
|
65
|
+
If defined, at the end of the step, the flow will sleep for a number of seconds before
|
|
66
|
+
scheduling the next job (if any, no effect if the step is the last one). Sleeping is passive and
|
|
67
|
+
does not consume any resources.</Tooltip
|
|
67
68
|
></h2
|
|
68
69
|
>
|
|
69
70
|
<Toggle
|
|
@@ -96,7 +97,12 @@ $: isSleepEnabled = Boolean(flowModule.sleep);
|
|
|
96
97
|
editor?.insertAtCursor(detail)
|
|
97
98
|
}}
|
|
98
99
|
>
|
|
99
|
-
<InputTransformForm
|
|
100
|
+
<InputTransformForm
|
|
101
|
+
bind:arg={flowModule.sleep}
|
|
102
|
+
argName="sleep"
|
|
103
|
+
{schema}
|
|
104
|
+
{previousModuleId}
|
|
105
|
+
/>
|
|
100
106
|
</PropPickerWrapper>
|
|
101
107
|
</div>
|
|
102
108
|
{:else}
|
|
@@ -10,9 +10,9 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type FlowModuleSuspendProps = typeof __propDef.props;
|
|
14
|
+
export type FlowModuleSuspendEvents = typeof __propDef.events;
|
|
15
|
+
export type FlowModuleSuspendSlots = typeof __propDef.slots;
|
|
16
16
|
export default class FlowModuleSuspend extends SvelteComponentTyped<FlowModuleSuspendProps, FlowModuleSuspendEvents, FlowModuleSuspendSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -34,34 +34,12 @@ export let previousModule = undefined;
|
|
|
34
34
|
Steps are retried until they succeed, or until the maximum number of retries defined for that
|
|
35
35
|
spec is reached, at which point the error handler is called.
|
|
36
36
|
</Alert>
|
|
37
|
-
{:else}
|
|
38
|
-
<h1 class="p-4"
|
|
39
|
-
>Select a step kind <Tooltip
|
|
40
|
-
>Until being defined, this step acts as an identify function, returning as result its
|
|
41
|
-
input and assigning it a key 'previous_result' if the input is not a json object</Tooltip
|
|
42
|
-
></h1
|
|
43
|
-
>
|
|
44
37
|
{/if}
|
|
45
38
|
|
|
46
39
|
<FlowInputs
|
|
47
40
|
shouldDisableTriggerScripts={parentModule !== undefined ||
|
|
48
41
|
previousModule !== undefined ||
|
|
49
42
|
$selectedId == 'failure'}
|
|
50
|
-
on:loop={async () => {
|
|
51
|
-
const [module, state] = await createLoop(flowModule.id)
|
|
52
|
-
flowModule = module
|
|
53
|
-
$flowStateStore[module.id] = state
|
|
54
|
-
}}
|
|
55
|
-
on:branchone={async () => {
|
|
56
|
-
const [module, state] = await createBranches(flowModule.id)
|
|
57
|
-
flowModule = module
|
|
58
|
-
$flowStateStore[module.id] = state
|
|
59
|
-
}}
|
|
60
|
-
on:branchall={async () => {
|
|
61
|
-
const [module, state] = await createBranchAll(flowModule.id)
|
|
62
|
-
flowModule = module
|
|
63
|
-
$flowStateStore[module.id] = state
|
|
64
|
-
}}
|
|
65
43
|
on:pick={async ({ detail }) => {
|
|
66
44
|
const { path, summary, kind } = detail
|
|
67
45
|
const [module, state] = await pickScript(path, summary, flowModule.id)
|
|
@@ -11,9 +11,9 @@ declare const __propDef: {
|
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
14
|
+
export type FlowModuleWrapperProps = typeof __propDef.props;
|
|
15
|
+
export type FlowModuleWrapperEvents = typeof __propDef.events;
|
|
16
|
+
export type FlowModuleWrapperSlots = typeof __propDef.slots;
|
|
17
17
|
export default class FlowModuleWrapper extends SvelteComponentTyped<FlowModuleWrapperProps, FlowModuleWrapperEvents, FlowModuleWrapperSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -10,9 +10,9 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type FlowRetriesProps = typeof __propDef.props;
|
|
14
|
+
export type FlowRetriesEvents = typeof __propDef.events;
|
|
15
|
+
export type FlowRetriesSlots = typeof __propDef.slots;
|
|
16
16
|
export default class FlowRetries extends SvelteComponentTyped<FlowRetriesProps, FlowRetriesEvents, FlowRetriesSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -6,9 +6,9 @@ declare const __propDef: {
|
|
|
6
6
|
};
|
|
7
7
|
slots: {};
|
|
8
8
|
};
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
9
|
+
export type FlowSchedulesProps = typeof __propDef.props;
|
|
10
|
+
export type FlowSchedulesEvents = typeof __propDef.events;
|
|
11
|
+
export type FlowSchedulesSlots = typeof __propDef.slots;
|
|
12
12
|
export default class FlowSchedules extends SvelteComponentTyped<FlowSchedulesProps, FlowSchedulesEvents, FlowSchedulesSlots> {
|
|
13
13
|
}
|
|
14
14
|
export {};
|
|
@@ -10,7 +10,8 @@ import SvelteMarkdown from 'svelte-markdown';
|
|
|
10
10
|
import Toggle from '../../Toggle.svelte';
|
|
11
11
|
import { Alert } from '../../common';
|
|
12
12
|
import { FlowGraph } from '../../graph';
|
|
13
|
-
import {
|
|
13
|
+
import { getContext } from 'svelte';
|
|
14
|
+
const { selectedId } = getContext('FlowEditorContext');
|
|
14
15
|
export let initialPath;
|
|
15
16
|
export let defaultTab = 'metadata';
|
|
16
17
|
let topHeight = 0;
|
|
@@ -19,106 +20,100 @@ let topHeight = 0;
|
|
|
19
20
|
<div class="h-full overflow-hidden">
|
|
20
21
|
<FlowCard title="Settings">
|
|
21
22
|
<div class="h-full flex-1">
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
minHeight={topHeight}
|
|
28
|
-
modules={$flowStore.value.modules}
|
|
29
|
-
failureModule={$flowStore.value.failure_module}
|
|
30
|
-
/>
|
|
31
|
-
{/if}
|
|
32
|
-
</div>
|
|
33
|
-
</Pane>
|
|
34
|
-
<Pane size={50} minSize={20}>
|
|
35
|
-
<Tabs selected={defaultTab}>
|
|
36
|
-
<Tab value="metadata">Metadata</Tab>
|
|
37
|
-
<Tab value="schedule">Schedule</Tab>
|
|
38
|
-
<Tab value="same-worker">Same Worker</Tab>
|
|
23
|
+
<Tabs selected={defaultTab}>
|
|
24
|
+
<Tab value="metadata">Metadata</Tab>
|
|
25
|
+
<Tab value="schedule">Schedule</Tab>
|
|
26
|
+
<Tab value="same-worker">Same Worker</Tab>
|
|
27
|
+
<Tab value="graph">Graph</Tab>
|
|
39
28
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
bind:path={$flowStore.path}
|
|
44
|
-
{initialPath}
|
|
45
|
-
namePlaceholder="my_flow"
|
|
46
|
-
kind="flow"
|
|
47
|
-
/>
|
|
29
|
+
<svelte:fragment slot="content">
|
|
30
|
+
<TabContent value="metadata" class="p-4">
|
|
31
|
+
<Path bind:path={$flowStore.path} {initialPath} namePlaceholder="my_flow" kind="flow" />
|
|
48
32
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
33
|
+
<label class="block my-4">
|
|
34
|
+
<span class="text-gray-700 text-sm">Summary <Required required={false} /></span>
|
|
35
|
+
<input
|
|
36
|
+
type="text"
|
|
37
|
+
bind:value={$flowStore.summary}
|
|
38
|
+
placeholder="A very short summary of the flow displayed when the flow is listed"
|
|
39
|
+
rows="1"
|
|
40
|
+
id="flow-summary"
|
|
41
|
+
/>
|
|
42
|
+
</label>
|
|
59
43
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
44
|
+
<label class="block my-4" for="inp">
|
|
45
|
+
<span class="text-gray-700 text-sm">
|
|
46
|
+
Description
|
|
47
|
+
<Required required={false} detail="markdown" />
|
|
48
|
+
<textarea
|
|
49
|
+
type="text"
|
|
50
|
+
class="text-sm"
|
|
51
|
+
id="inp"
|
|
52
|
+
bind:value={$flowStore.description}
|
|
53
|
+
placeholder="A description to help users understand what this flow does and how to use it. Markdown accepted."
|
|
54
|
+
rows="3"
|
|
55
|
+
/>
|
|
56
|
+
</span>
|
|
57
|
+
</label>
|
|
74
58
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
>
|
|
81
|
-
<SvelteMarkdown source={$flowStore.description} />
|
|
82
|
-
</div>
|
|
83
|
-
{:else}
|
|
84
|
-
<div class="text-sm text-gray-500">
|
|
85
|
-
Enter a description to see the preview
|
|
86
|
-
</div>
|
|
87
|
-
{/if}
|
|
59
|
+
<div>
|
|
60
|
+
<div class="font-bold pb-1 mt-4">Description preview</div>
|
|
61
|
+
{#if $flowStore.description}
|
|
62
|
+
<div class="prose max-h-48 mt-5 text-xs shadow-inner shadow-blue p-4 overflow-auto">
|
|
63
|
+
<SvelteMarkdown source={$flowStore.description} />
|
|
88
64
|
</div>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
65
|
+
{:else}
|
|
66
|
+
<div class="text-sm text-gray-500"> Enter a description to see the preview </div>
|
|
67
|
+
{/if}
|
|
68
|
+
</div>
|
|
69
|
+
</TabContent>
|
|
70
|
+
<TabContent value="schedule" class="p-4">
|
|
71
|
+
<Alert type="info" title="Primary Schedule">
|
|
72
|
+
Flows can be triggered by any schedules, their webhooks or their UI but they only have
|
|
73
|
+
only one primary schedules with which they share the same path. The primary schedule
|
|
74
|
+
can be set here.
|
|
75
|
+
</Alert>
|
|
76
|
+
<div class="mt-4" />
|
|
77
|
+
<FlowSchedules />
|
|
78
|
+
</TabContent>
|
|
99
79
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
80
|
+
<TabContent value="same-worker" class="p-4 flex flex-col">
|
|
81
|
+
<Alert
|
|
82
|
+
type="info"
|
|
83
|
+
title="Toggle Same Worker to have all steps be ran on the same worker"
|
|
84
|
+
>
|
|
85
|
+
Steps will be run one after the other on the same worker, and will share a folder at
|
|
86
|
+
`./shared` in which they can store heavier data and pass them to the next step. <br
|
|
87
|
+
/><br />Beware that the `./shared` folder is not preserved across suspends and sleeps.
|
|
88
|
+
</Alert>
|
|
89
|
+
<span class="my-2 text-sm font-bold">Same Worker</span>
|
|
90
|
+
<Toggle
|
|
91
|
+
bind:checked={$flowStore.value.same_worker}
|
|
92
|
+
options={{
|
|
93
|
+
right: 'Same Worker'
|
|
94
|
+
}}
|
|
95
|
+
/>
|
|
96
|
+
</TabContent>
|
|
97
|
+
<TabContent value="graph">
|
|
98
|
+
<div
|
|
99
|
+
bind:clientHeight={topHeight}
|
|
100
|
+
class="max-w-full w-full overflow-hidden h-screen bg-gray-50"
|
|
101
|
+
>
|
|
102
|
+
{#if $flowStore.value.modules}
|
|
103
|
+
<FlowGraph
|
|
104
|
+
on:click={(e) => {
|
|
105
|
+
$selectedId = e.detail.id
|
|
115
106
|
}}
|
|
107
|
+
minHeight={topHeight}
|
|
108
|
+
modules={$flowStore.value.modules}
|
|
109
|
+
failureModule={$flowStore.value.failure_module}
|
|
110
|
+
notSelectable
|
|
116
111
|
/>
|
|
117
|
-
|
|
118
|
-
</
|
|
119
|
-
</
|
|
120
|
-
</
|
|
121
|
-
</
|
|
112
|
+
{/if}
|
|
113
|
+
</div>
|
|
114
|
+
</TabContent>
|
|
115
|
+
</svelte:fragment>
|
|
116
|
+
</Tabs>
|
|
122
117
|
</div>
|
|
123
118
|
</FlowCard>
|
|
124
119
|
</div>
|
|
@@ -9,9 +9,9 @@ declare const __propDef: {
|
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
11
|
};
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
12
|
+
export type FlowSettingsProps = typeof __propDef.props;
|
|
13
|
+
export type FlowSettingsEvents = typeof __propDef.events;
|
|
14
|
+
export type FlowSettingsSlots = typeof __propDef.slots;
|
|
15
15
|
export default class FlowSettings extends SvelteComponentTyped<FlowSettingsProps, FlowSettingsEvents, FlowSettingsSlots> {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -11,9 +11,9 @@ declare const __propDef: {
|
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
14
|
+
export type RemoveStepConfirmationModalProps = typeof __propDef.props;
|
|
15
|
+
export type RemoveStepConfirmationModalEvents = typeof __propDef.events;
|
|
16
|
+
export type RemoveStepConfirmationModalSlots = typeof __propDef.slots;
|
|
17
17
|
export default class RemoveStepConfirmationModal extends SvelteComponentTyped<RemoveStepConfirmationModalProps, RemoveStepConfirmationModalEvents, RemoveStepConfirmationModalSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|