windmill-components 1.36.2 → 1.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.d.ts +1 -0
- package/components/AppConnect.svelte +45 -49
- package/components/ArgInfo.svelte +37 -15
- package/components/ArgInput.svelte +33 -34
- package/components/ArgInput.svelte.d.ts +3 -1
- package/components/ButtonAndDropdown.svelte +1 -1
- package/components/CenteredPage.svelte +2 -2
- package/components/CronInput.svelte +24 -20
- package/components/CronInput.svelte.d.ts +1 -0
- package/components/DisplayResult.svelte +4 -4
- package/components/Dropdown.svelte +10 -13
- package/components/Dropdown.svelte.d.ts +4 -1
- package/components/Editor.svelte +39 -6
- package/components/Editor.svelte.d.ts +4 -1
- package/components/EditorBar.svelte +81 -37
- package/components/EditorBar.svelte.d.ts +4 -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 -6
- package/components/FlowPreviewContent.svelte +88 -51
- package/components/FlowPreviewContent.svelte.d.ts +1 -0
- package/components/FlowStatusViewer.svelte +129 -52
- 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 +50 -40
- package/components/InputTransformForm.svelte.d.ts +3 -3
- 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 +8 -8
- package/components/Password.svelte +1 -1
- package/components/Path.svelte +28 -7
- package/components/Path.svelte.d.ts +4 -4
- 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 -41
- package/components/RunForm.svelte.d.ts +13 -0
- package/components/SchemaEditor.svelte +5 -5
- package/components/SchemaEditorProperty.svelte +1 -1
- package/components/SchemaForm.svelte +5 -3
- 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 +119 -131
- package/components/ScriptEditor.svelte.d.ts +1 -0
- package/components/ScriptPicker.svelte +16 -24
- package/components/ScriptPicker.svelte.d.ts +1 -1
- package/components/ScriptSchema.svelte +33 -32
- package/components/ShareModal.svelte +74 -68
- package/components/ShareModal.svelte.d.ts +2 -2
- package/components/SharedBadge.svelte +4 -0
- 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 +16 -9
- 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 +4 -9
- package/components/common/breadcrumb/Breadcrumb.svelte +24 -0
- package/components/common/breadcrumb/Breadcrumb.svelte.d.ts +22 -0
- package/components/common/button/Button.svelte +23 -8
- package/components/common/button/Button.svelte.d.ts +1 -0
- package/components/common/button/ButtonPopup.svelte +1 -0
- package/components/common/button/model.d.ts +1 -1
- package/components/common/confirmationModal/ConfirmationModal.svelte +1 -0
- package/components/common/confirmationModal/UnsavedConfirmationModal.svelte +2 -1
- 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 +5 -0
- package/components/common/index.js +5 -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 +37 -0
- package/components/common/skeleton/Skeleton.svelte.d.ts +20 -0
- package/components/common/skeleton/SkeletonElement.svelte +8 -0
- package/components/common/skeleton/SkeletonElement.svelte.d.ts +17 -0
- package/components/common/skeleton/model.d.ts +21 -0
- package/components/common/skeleton/model.js +1 -0
- 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 -6
- 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 +84 -6
- 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/content/RemoveStepConfirmationModal.svelte +0 -1
- 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 +87 -159
- package/components/flows/flowStore.d.ts +3 -2
- package/components/flows/flowStore.js +60 -7
- package/components/flows/header/FlowImportExportMenu.svelte +11 -21
- package/components/flows/header/FlowPreviewButtons.svelte +13 -12
- 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 +24 -15
- package/components/flows/propPicker/PropPickerWrapper.svelte.d.ts +7 -2
- package/components/flows/utils.d.ts +8 -3
- package/components/flows/utils.js +86 -46
- 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 +133 -84
- package/components/propertyPicker/PropPicker.svelte.d.ts +5 -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 +4 -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/{PathFlow.js → BranchAll.js} +0 -0
- package/gen/models/BranchOne.d.ts +10 -0
- 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 +7 -2
- package/gen/models/FlowModuleValue.d.ts +4 -2
- package/gen/models/FlowStatus.d.ts +1 -0
- package/gen/models/FlowStatusModule.d.ts +14 -1
- 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 +69 -16
- package/gen/services/JobService.js +86 -14
- 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 +80 -72
- package/script_helpers.d.ts +6 -4
- package/script_helpers.js +48 -14
- 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/Tabs.svelte +0 -21
- package/components/Tabs.svelte.d.ts +0 -20
- 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 -211
- package/components/flows/content/FlowModule.svelte.d.ts +0 -29
- package/gen/models/PathFlow.d.ts +0 -4
- 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
|
@@ -5,8 +5,11 @@ import { Tab, Tabs, TabContent, Button } from './common';
|
|
|
5
5
|
import SchemaViewer from './SchemaViewer.svelte';
|
|
6
6
|
import FieldHeader from './FieldHeader.svelte';
|
|
7
7
|
import SvelteMarkdown from 'svelte-markdown';
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
8
|
+
import { copyToClipboard, scriptPathToHref } from '../utils';
|
|
9
|
+
import { FlowGraph } from './graph';
|
|
10
|
+
import HighlightCode from './HighlightCode.svelte';
|
|
11
|
+
import InputTransformsViewer from './InputTransformsViewer.svelte';
|
|
12
|
+
import IconedPath from './IconedPath.svelte';
|
|
10
13
|
export let flow;
|
|
11
14
|
export let initialOpen = undefined;
|
|
12
15
|
$: flowFiltered = {
|
|
@@ -16,6 +19,8 @@ $: flowFiltered = {
|
|
|
16
19
|
schema: flow.schema
|
|
17
20
|
};
|
|
18
21
|
export let tab = 'ui';
|
|
22
|
+
export let noSummary = false;
|
|
23
|
+
let stepDetail = undefined;
|
|
19
24
|
let open = {};
|
|
20
25
|
if (initialOpen) {
|
|
21
26
|
open[initialOpen] = true;
|
|
@@ -33,11 +38,13 @@ function toAny(x) {
|
|
|
33
38
|
<svelte:fragment slot="content">
|
|
34
39
|
<TabContent value="ui">
|
|
35
40
|
<div class="flow-root w-full pb-4">
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
{#if !noSummary}
|
|
42
|
+
<h2 class="my-4">{flow.summary}</h2>
|
|
43
|
+
<SvelteMarkdown source={flow.description ?? ''} />
|
|
44
|
+
{/if}
|
|
38
45
|
|
|
39
46
|
<p class="font-black text-lg w-full my-4">
|
|
40
|
-
<span>
|
|
47
|
+
<span>Flow Input</span>
|
|
41
48
|
</p>
|
|
42
49
|
{#if flow.schema && flow.schema.properties && Object.keys(flow.schema.properties).length > 0 && flow.schema}
|
|
43
50
|
<ul class="my-2">
|
|
@@ -61,10 +68,78 @@ function toAny(x) {
|
|
|
61
68
|
{:else}
|
|
62
69
|
<div class="text-gray-700 text-xs italic mb-4">No inputs</div>
|
|
63
70
|
{/if}
|
|
64
|
-
<
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
<div class="pr-40 flex flex-col">
|
|
72
|
+
<div class="mt-5 h-full w-full border border-gray-700">
|
|
73
|
+
<FlowGraph
|
|
74
|
+
modules={flow?.value?.modules}
|
|
75
|
+
failureModule={flow?.value?.failure_module}
|
|
76
|
+
on:click={(e) => (stepDetail = e.detail)}
|
|
77
|
+
/>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="w-full border-l border-r border-b border-gray-700 min-h-[150px] p-2">
|
|
80
|
+
{#if stepDetail == undefined}
|
|
81
|
+
<span class="font-black text-lg w-full my-4">
|
|
82
|
+
<span>Click on a step to see its details</span>
|
|
83
|
+
</span>
|
|
84
|
+
{:else}
|
|
85
|
+
<div class="font-black text-lg w-full mb-2 "
|
|
86
|
+
>Step {stepDetail.id ?? ''}<span class="ml-2 font-normal"
|
|
87
|
+
>{stepDetail.summary || ''}</span
|
|
88
|
+
></div
|
|
89
|
+
>
|
|
90
|
+
{#if stepDetail.value.type == 'identity'}
|
|
91
|
+
<div> An identity step return as output its input </div>
|
|
92
|
+
{:else if stepDetail.value.type == 'rawscript'}
|
|
93
|
+
<div class="text-2xs mb-4">
|
|
94
|
+
<h3>Step Inputs</h3>
|
|
95
|
+
<InputTransformsViewer
|
|
96
|
+
inputTransforms={stepDetail?.value?.input_transforms ??
|
|
97
|
+
stepDetail?.input_transforms ??
|
|
98
|
+
{}}
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<h3>Code</h3>
|
|
103
|
+
<HighlightCode
|
|
104
|
+
language={stepDetail.value.language}
|
|
105
|
+
code={stepDetail.value.content}
|
|
106
|
+
/>
|
|
107
|
+
{:else if stepDetail.value.type == 'script'}
|
|
108
|
+
<div class="mb-4">
|
|
109
|
+
<a
|
|
110
|
+
rel="noreferrer"
|
|
111
|
+
target="_blank"
|
|
112
|
+
href={scriptPathToHref(stepDetail?.value?.path ?? '')}
|
|
113
|
+
class=""
|
|
114
|
+
>
|
|
115
|
+
<IconedPath path={stepDetail?.value?.path ?? ''} />
|
|
116
|
+
</a>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="text-2xs mb-4">
|
|
119
|
+
<h3>Step Inputs</h3>
|
|
120
|
+
<InputTransformsViewer
|
|
121
|
+
inputTransforms={stepDetail?.value?.input_transforms ??
|
|
122
|
+
stepDetail?.input_transforms ??
|
|
123
|
+
{}}
|
|
124
|
+
/>
|
|
125
|
+
</div>
|
|
126
|
+
{#if stepDetail.value.path.startsWith('hub/')}
|
|
127
|
+
<div class="mt-6">
|
|
128
|
+
<h3>Code</h3>
|
|
129
|
+
<iframe
|
|
130
|
+
class="w-full h-full text-sm"
|
|
131
|
+
title="embedded script from hub"
|
|
132
|
+
frameborder="0"
|
|
133
|
+
src="https://hub.windmill.dev/embed/script/{stepDetail.value?.path?.substring(
|
|
134
|
+
4
|
|
135
|
+
)}"
|
|
136
|
+
/>
|
|
137
|
+
</div>
|
|
138
|
+
{/if}
|
|
139
|
+
{/if}
|
|
140
|
+
{/if}
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
68
143
|
</div>
|
|
69
144
|
</TabContent>
|
|
70
145
|
<TabContent value="json">
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<script>import { userStore, workspaceStore } from '../stores';
|
|
2
|
-
import Modal from './Modal.svelte';
|
|
3
2
|
import { GroupService, UserService } from '../gen';
|
|
4
3
|
import AutoComplete from 'simple-svelte-autocomplete';
|
|
5
|
-
import PageHeader from './PageHeader.svelte';
|
|
6
4
|
import TableCustom from './TableCustom.svelte';
|
|
7
5
|
import { canWrite } from '../utils';
|
|
8
|
-
import { Button } from './common';
|
|
6
|
+
import { Button, Drawer } from './common';
|
|
7
|
+
import DrawerContent from './common/drawer/DrawerContent.svelte';
|
|
9
8
|
let name = '';
|
|
10
|
-
let
|
|
9
|
+
let drawer;
|
|
11
10
|
let can_write = false;
|
|
12
11
|
let group;
|
|
13
12
|
let members = [];
|
|
@@ -26,11 +25,11 @@ $: {
|
|
|
26
25
|
});
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
|
-
export function
|
|
28
|
+
export function openDrawer(newName) {
|
|
30
29
|
name = newName;
|
|
31
30
|
loadGroup();
|
|
32
31
|
loadUsernames();
|
|
33
|
-
|
|
32
|
+
drawer.openDrawer();
|
|
34
33
|
}
|
|
35
34
|
async function addToGroup() {
|
|
36
35
|
await GroupService.addUserToGroup({
|
|
@@ -46,14 +45,14 @@ async function loadGroup() {
|
|
|
46
45
|
}
|
|
47
46
|
</script>
|
|
48
47
|
|
|
49
|
-
<
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
<Drawer bind:this={drawer}>
|
|
49
|
+
<DrawerContent title="Group {name}" on:close={drawer.closeDrawer}>
|
|
50
|
+
<div class="flex flex-col gap-6">
|
|
51
|
+
<h2>Summary</h2>
|
|
52
|
+
<p>{group?.summary ?? 'No summary'}</p>
|
|
53
|
+
<h2>Members</h2>
|
|
55
54
|
{#if can_write}
|
|
56
|
-
<div>
|
|
55
|
+
<div class="flex items-start">
|
|
57
56
|
<AutoComplete items={usernames} bind:selectedItem={username} />
|
|
58
57
|
<Button
|
|
59
58
|
variant="contained"
|
|
@@ -66,34 +65,34 @@ async function loadGroup() {
|
|
|
66
65
|
</Button>
|
|
67
66
|
</div>
|
|
68
67
|
{/if}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
>
|
|
95
|
-
|
|
96
|
-
</
|
|
97
|
-
>
|
|
98
|
-
</
|
|
99
|
-
</
|
|
68
|
+
<TableCustom>
|
|
69
|
+
<tr slot="header-row">
|
|
70
|
+
<th>user</th>
|
|
71
|
+
<th>admin of group</th>
|
|
72
|
+
<th />
|
|
73
|
+
</tr>
|
|
74
|
+
<tbody slot="body">
|
|
75
|
+
{#each members as { name, isAdmin }}<tr>
|
|
76
|
+
<td>{name}</td>
|
|
77
|
+
<td> {isAdmin ? 'admin' : ''} </td>
|
|
78
|
+
<td>
|
|
79
|
+
{#if can_write}
|
|
80
|
+
<button
|
|
81
|
+
class="ml-2 text-red-500"
|
|
82
|
+
on:click={async () => {
|
|
83
|
+
await GroupService.removeUserToGroup({
|
|
84
|
+
workspace: $workspaceStore ?? '',
|
|
85
|
+
name: group?.name ?? '',
|
|
86
|
+
requestBody: { username: name }
|
|
87
|
+
})
|
|
88
|
+
loadGroup()
|
|
89
|
+
}}>remove</button
|
|
90
|
+
>
|
|
91
|
+
{/if}</td
|
|
92
|
+
>
|
|
93
|
+
</tr>{/each}
|
|
94
|
+
</tbody>
|
|
95
|
+
</TableCustom>
|
|
96
|
+
</div>
|
|
97
|
+
</DrawerContent>
|
|
98
|
+
</Drawer>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
|
|
4
|
+
openDrawer?: ((newName: string) => void) | undefined;
|
|
5
5
|
};
|
|
6
6
|
events: {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
@@ -12,6 +12,6 @@ export declare type GroupModalProps = typeof __propDef.props;
|
|
|
12
12
|
export declare type GroupModalEvents = typeof __propDef.events;
|
|
13
13
|
export declare type GroupModalSlots = typeof __propDef.slots;
|
|
14
14
|
export default class GroupModal extends SvelteComponentTyped<GroupModalProps, GroupModalEvents, GroupModalSlots> {
|
|
15
|
-
get
|
|
15
|
+
get openDrawer(): (newName: string) => void;
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import python from 'svelte-highlight/languages/python';
|
|
3
3
|
import typescript from 'svelte-highlight/languages/typescript';
|
|
4
4
|
import go from 'svelte-highlight/languages/go';
|
|
5
|
+
import shell from 'svelte-highlight/languages/shell';
|
|
5
6
|
export let code = '';
|
|
6
7
|
export let language;
|
|
7
8
|
function getLang(lang) {
|
|
@@ -12,8 +13,10 @@ function getLang(lang) {
|
|
|
12
13
|
return typescript;
|
|
13
14
|
case 'go':
|
|
14
15
|
return go;
|
|
16
|
+
case 'bash':
|
|
17
|
+
return shell;
|
|
15
18
|
default:
|
|
16
|
-
return
|
|
19
|
+
return typescript;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
$: lang = getLang(language);
|
|
@@ -2,7 +2,7 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
code?: string | undefined;
|
|
5
|
-
language: 'python3' | 'deno' | 'go' | undefined;
|
|
5
|
+
language: 'python3' | 'deno' | 'go' | 'bash' | undefined;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<script>import
|
|
2
|
-
import AirtableIcon from './icons/AirtableIcon.svelte';
|
|
1
|
+
<script>import AirtableIcon from './icons/AirtableIcon.svelte';
|
|
3
2
|
import DbIcon from './icons/DbIcon.svelte';
|
|
4
3
|
import DiscordIcon from './icons/DiscordIcon.svelte';
|
|
5
4
|
import GcalIcon from './icons/GcalIcon.svelte';
|
|
@@ -24,9 +23,10 @@ export let silent = false;
|
|
|
24
23
|
export let after = false;
|
|
25
24
|
export let height = '24px';
|
|
26
25
|
export let width = '24px';
|
|
26
|
+
export let center = false;
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
|
-
<div class="flex flex-row gap-2 justify-center -pl-2
|
|
29
|
+
<div class=" truncate flex flex-row gap-2 {center ? 'justify-center items-center' : ''} -pl-2">
|
|
30
30
|
{#if !silent && !after}
|
|
31
31
|
{name}
|
|
32
32
|
{/if}
|
|
@@ -42,7 +42,7 @@ export let width = '24px';
|
|
|
42
42
|
{:else if name === 'slack'}
|
|
43
43
|
<Slack {height} {width} />
|
|
44
44
|
{:else if name === 'github'}
|
|
45
|
-
<GithubIcon />
|
|
45
|
+
<GithubIcon {height} {width} />
|
|
46
46
|
{:else if name === 'gmail'}
|
|
47
47
|
<GmailIcon {height} {width} />
|
|
48
48
|
{:else if name === 'gsheets'}
|
|
@@ -71,6 +71,8 @@ export let width = '24px';
|
|
|
71
71
|
<WindmillIcon {height} {width} />
|
|
72
72
|
{:else if name === 'http'}
|
|
73
73
|
<HttpIcon {height} {width} />
|
|
74
|
+
{:else}
|
|
75
|
+
<span style="width: {width}" class="bg-gray-100 rounded-full" />
|
|
74
76
|
{/if}
|
|
75
77
|
{#if !silent && after}
|
|
76
78
|
{name}
|
|
@@ -12,10 +12,11 @@ export let schema;
|
|
|
12
12
|
export let arg;
|
|
13
13
|
export let argName;
|
|
14
14
|
export let extraLib = 'missing extraLib';
|
|
15
|
-
export let inputCheck;
|
|
15
|
+
export let inputCheck = true;
|
|
16
16
|
export let importPath = undefined;
|
|
17
|
-
let
|
|
18
|
-
let
|
|
17
|
+
export let monaco = undefined;
|
|
18
|
+
let argInput = undefined;
|
|
19
|
+
let inputCat = 'object';
|
|
19
20
|
let propertyType = getPropertyType(arg);
|
|
20
21
|
function getPropertyType(arg) {
|
|
21
22
|
let type = arg?.type ?? 'static';
|
|
@@ -47,8 +48,8 @@ function setPropertyType(rawValue) {
|
|
|
47
48
|
function isStaticTemplate(inputCat) {
|
|
48
49
|
return inputCat === 'string' || inputCat === 'sql';
|
|
49
50
|
}
|
|
50
|
-
function connectProperty(
|
|
51
|
-
if (isStaticTemplate(
|
|
51
|
+
function connectProperty(rawValue) {
|
|
52
|
+
if (isStaticTemplate(inputCat)) {
|
|
52
53
|
arg.value = `\$\{${rawValue}}`;
|
|
53
54
|
setPropertyType(arg.value);
|
|
54
55
|
}
|
|
@@ -59,6 +60,25 @@ function connectProperty(argName, rawValue) {
|
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
$: checked = propertyType == 'javascript';
|
|
63
|
+
function onFocus() {
|
|
64
|
+
if (isStaticTemplate(inputCat)) {
|
|
65
|
+
focusProp(argName, 'append', (path) => {
|
|
66
|
+
const toAppend = `\$\{${path}}`;
|
|
67
|
+
arg.value = `${arg.value ?? ''}${toAppend}`;
|
|
68
|
+
setPropertyType(arg.value);
|
|
69
|
+
argInput?.focus();
|
|
70
|
+
return false;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
focusProp(argName, 'insert', (path) => {
|
|
75
|
+
arg.expr = path;
|
|
76
|
+
arg.type = 'javascript';
|
|
77
|
+
propertyType = 'javascript';
|
|
78
|
+
return true;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
62
82
|
const { focusProp } = getContext('PropPickerWrapper');
|
|
63
83
|
</script>
|
|
64
84
|
|
|
@@ -88,7 +108,7 @@ const { focusProp } = getContext('PropPickerWrapper');
|
|
|
88
108
|
}}
|
|
89
109
|
on:change={(e) => {
|
|
90
110
|
const type = e.detail ? 'javascript' : 'static'
|
|
91
|
-
const staticTemplate = isStaticTemplate(
|
|
111
|
+
const staticTemplate = isStaticTemplate(inputCat)
|
|
92
112
|
if (type === 'javascript') {
|
|
93
113
|
arg.expr = getDefaultExpr(
|
|
94
114
|
importPath,
|
|
@@ -108,47 +128,36 @@ const { focusProp } = getContext('PropPickerWrapper');
|
|
|
108
128
|
arg.type = type
|
|
109
129
|
}}
|
|
110
130
|
/>
|
|
111
|
-
|
|
131
|
+
|
|
132
|
+
<Button
|
|
133
|
+
variant="contained"
|
|
134
|
+
color="blue"
|
|
135
|
+
size="md"
|
|
112
136
|
on:click={() => {
|
|
113
137
|
focusProp(argName, 'connect', (path) => {
|
|
114
|
-
connectProperty(
|
|
138
|
+
connectProperty(path)
|
|
139
|
+
return false
|
|
115
140
|
})
|
|
116
141
|
}}
|
|
117
142
|
>
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
</Button>
|
|
121
|
-
</div>
|
|
143
|
+
<Icon data={faChain} />
|
|
144
|
+
</Button>
|
|
122
145
|
</div>
|
|
123
146
|
</div>
|
|
124
147
|
<div class="max-w-xs" />
|
|
125
148
|
|
|
126
149
|
{#if propertyType === undefined || !checked}
|
|
127
150
|
<ArgInput
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
focusProp(argName, 'append', (path) => {
|
|
131
|
-
const toAppend = `\$\{${path}}`
|
|
132
|
-
arg.value = `${arg.value ?? ''}${toAppend}`
|
|
133
|
-
setPropertyType(arg.value)
|
|
134
|
-
})
|
|
135
|
-
} else {
|
|
136
|
-
focusProp(argName, 'insert', (path) => {
|
|
137
|
-
console.log('path', path)
|
|
138
|
-
arg.expr = path
|
|
139
|
-
arg.type = 'javascript'
|
|
140
|
-
propertyType = 'javascript'
|
|
141
|
-
})
|
|
142
|
-
}
|
|
143
|
-
}}
|
|
151
|
+
bind:this={argInput}
|
|
152
|
+
on:focus={onFocus}
|
|
144
153
|
label={argName}
|
|
145
|
-
bind:editor={
|
|
154
|
+
bind:editor={monaco}
|
|
146
155
|
bind:description={schema.properties[argName].description}
|
|
147
156
|
bind:value={arg.value}
|
|
148
157
|
type={schema.properties[argName].type}
|
|
149
158
|
required={schema.required.includes(argName)}
|
|
150
159
|
bind:pattern={schema.properties[argName].pattern}
|
|
151
|
-
bind:valid={inputCheck
|
|
160
|
+
bind:valid={inputCheck}
|
|
152
161
|
defaultValue={schema.properties[argName].default}
|
|
153
162
|
bind:enum_={schema.properties[argName].enum}
|
|
154
163
|
bind:format={schema.properties[argName].format}
|
|
@@ -156,9 +165,9 @@ const { focusProp } = getContext('PropPickerWrapper');
|
|
|
156
165
|
bind:itemsType={schema.properties[argName].items}
|
|
157
166
|
properties={schema.properties[argName].properties}
|
|
158
167
|
displayHeader={false}
|
|
159
|
-
bind:inputCat
|
|
168
|
+
bind:inputCat
|
|
160
169
|
on:input={(e) => {
|
|
161
|
-
if (isStaticTemplate(
|
|
170
|
+
if (isStaticTemplate(inputCat)) {
|
|
162
171
|
setPropertyType(e.detail.rawValue)
|
|
163
172
|
}
|
|
164
173
|
}}
|
|
@@ -167,18 +176,19 @@ const { focusProp } = getContext('PropPickerWrapper');
|
|
|
167
176
|
{#if arg.expr != undefined}
|
|
168
177
|
<div class="border rounded p-2 mt-2 border-gray-300">
|
|
169
178
|
<SimpleEditor
|
|
170
|
-
bind:this={
|
|
171
|
-
on:focus={() => {
|
|
172
|
-
focusProp(argName, 'insert', (path) => {
|
|
173
|
-
monacos[argName].insertAtCursor(path)
|
|
174
|
-
})
|
|
175
|
-
}}
|
|
179
|
+
bind:this={monaco}
|
|
176
180
|
bind:code={arg.expr}
|
|
181
|
+
{extraLib}
|
|
177
182
|
lang="javascript"
|
|
178
183
|
class="few-lines-editor"
|
|
179
|
-
{extraLib}
|
|
180
184
|
extraLibPath="file:///node_modules/@types/windmill@{importPath}/index.d.ts"
|
|
181
185
|
shouldBindKey={false}
|
|
186
|
+
on:focus={() => {
|
|
187
|
+
focusProp(argName, 'insert', (path) => {
|
|
188
|
+
monaco?.insertAtCursor(path)
|
|
189
|
+
return false
|
|
190
|
+
})
|
|
191
|
+
}}
|
|
182
192
|
/>
|
|
183
193
|
</div>
|
|
184
194
|
<DynamicInputHelpBox {importPath} />
|
|
@@ -188,5 +198,5 @@ const { focusProp } = getContext('PropPickerWrapper');
|
|
|
188
198
|
<p>Not recognized arg type {arg.type}</p>
|
|
189
199
|
{/if}
|
|
190
200
|
{:else}
|
|
191
|
-
<p>Arg at {argName} is undefined</p>
|
|
201
|
+
<p class="text-sm text-gray-700">Arg at {argName} is undefined</p>
|
|
192
202
|
{/if}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
import type { Schema } from '../common';
|
|
3
3
|
import type { InputTransform } from '../gen';
|
|
4
|
+
import SimpleEditor from './SimpleEditor.svelte';
|
|
4
5
|
declare const __propDef: {
|
|
5
6
|
props: {
|
|
6
7
|
schema: Schema;
|
|
7
8
|
arg: InputTransform | any;
|
|
8
9
|
argName: string;
|
|
9
10
|
extraLib?: string | undefined;
|
|
10
|
-
inputCheck
|
|
11
|
-
[id: string]: boolean;
|
|
12
|
-
};
|
|
11
|
+
inputCheck?: boolean | undefined;
|
|
13
12
|
importPath?: string | undefined;
|
|
13
|
+
monaco?: SimpleEditor | undefined;
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script>import { Highlight } from 'svelte-highlight';
|
|
2
2
|
import ObjectViewer from './propertyPicker/ObjectViewer.svelte';
|
|
3
3
|
import typescript from 'svelte-highlight/languages/typescript';
|
|
4
|
+
import { cleanExpr } from './flows/utils';
|
|
4
5
|
export let inputTransforms;
|
|
5
6
|
</script>
|
|
6
7
|
|
|
@@ -11,7 +12,7 @@ export let inputTransforms;
|
|
|
11
12
|
json={val.value}
|
|
12
13
|
/>{:else}
|
|
13
14
|
<span class="text-xs">
|
|
14
|
-
<Highlight offsetTop={0} language={typescript} code={val.expr} />
|
|
15
|
+
<Highlight offsetTop={0} language={typescript} code={cleanExpr(val.expr)} />
|
|
15
16
|
</span>
|
|
16
17
|
{/if}
|
|
17
18
|
</li>
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
<script>import { sendUserToast } from '../utils';
|
|
2
|
-
import Switch from './Switch.svelte';
|
|
3
2
|
import { createEventDispatcher } from 'svelte';
|
|
4
3
|
import { UserService } from '../gen';
|
|
5
4
|
import { Button } from './common';
|
|
5
|
+
import Toggle from './Toggle.svelte';
|
|
6
6
|
const dispatch = createEventDispatcher();
|
|
7
|
-
let modal;
|
|
8
|
-
export function openModal() {
|
|
9
|
-
modal.openModal();
|
|
10
|
-
}
|
|
11
7
|
let email;
|
|
12
8
|
let is_super_admin = false;
|
|
13
9
|
let password;
|
|
@@ -35,13 +31,13 @@ async function addUser() {
|
|
|
35
31
|
}
|
|
36
32
|
</script>
|
|
37
33
|
|
|
38
|
-
<div class="flex flex-row">
|
|
39
|
-
<input on:keyup={handleKeyUp} placeholder="email" bind:value={email} />
|
|
34
|
+
<div class="flex flex-row space-x-1">
|
|
35
|
+
<input type="email" on:keyup={handleKeyUp} placeholder="email" bind:value={email} />
|
|
40
36
|
|
|
41
|
-
<
|
|
37
|
+
<Toggle class="mx-2" bind:checked={is_super_admin} options={{ right: 'admin' }} />
|
|
42
38
|
<input on:keyup={handleKeyUp} type="password" placeholder="password" bind:value={password} />
|
|
43
|
-
<input on:keyup={handleKeyUp} placeholder="name" bind:value={name} />
|
|
44
|
-
<input on:keyup={handleKeyUp} placeholder="company" bind:value={company} />
|
|
39
|
+
<input type="text" on:keyup={handleKeyUp} placeholder="name" bind:value={name} />
|
|
40
|
+
<input type="text" on:keyup={handleKeyUp} placeholder="company" bind:value={company} />
|
|
45
41
|
|
|
46
42
|
<Button
|
|
47
43
|
variant="contained"
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
openModal?: (() => void) | undefined;
|
|
5
|
-
};
|
|
3
|
+
props: {};
|
|
6
4
|
events: {
|
|
7
5
|
new: CustomEvent<any>;
|
|
8
6
|
} & {
|
|
@@ -14,6 +12,5 @@ export declare type InviteGlobalUserProps = typeof __propDef.props;
|
|
|
14
12
|
export declare type InviteGlobalUserEvents = typeof __propDef.events;
|
|
15
13
|
export declare type InviteGlobalUserSlots = typeof __propDef.slots;
|
|
16
14
|
export default class InviteGlobalUser extends SvelteComponentTyped<InviteGlobalUserProps, InviteGlobalUserEvents, InviteGlobalUserSlots> {
|
|
17
|
-
get openModal(): () => void;
|
|
18
15
|
}
|
|
19
16
|
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
<script>import { sendUserToast } from '../utils';
|
|
2
|
-
import Switch from './Switch.svelte';
|
|
3
2
|
import { createEventDispatcher } from 'svelte';
|
|
4
3
|
import { workspaceStore } from '../stores';
|
|
5
4
|
import { WorkspaceService } from '../gen';
|
|
6
5
|
import { Button } from './common';
|
|
6
|
+
import Toggle from './Toggle.svelte';
|
|
7
7
|
const dispatch = createEventDispatcher();
|
|
8
|
-
let modal;
|
|
9
|
-
export function openModal() {
|
|
10
|
-
modal.openModal();
|
|
11
|
-
}
|
|
12
8
|
let email;
|
|
13
9
|
let is_admin = false;
|
|
14
10
|
function handleKeyUp(event) {
|
|
@@ -32,14 +28,14 @@ async function inviteUser() {
|
|
|
32
28
|
</script>
|
|
33
29
|
|
|
34
30
|
<div class="flex flex-row">
|
|
35
|
-
<input on:keyup={handleKeyUp} placeholder="email" bind:value={email} />
|
|
31
|
+
<input type="email" on:keyup={handleKeyUp} placeholder="email" bind:value={email} class="mr-4" />
|
|
36
32
|
|
|
37
|
-
<
|
|
33
|
+
<Toggle bind:checked={is_admin} options={{ right: 'admin' }} />
|
|
38
34
|
<Button
|
|
39
35
|
variant="contained"
|
|
40
36
|
color="blue"
|
|
41
37
|
size="sm"
|
|
42
|
-
btnClasses="!ml-
|
|
38
|
+
btnClasses="!ml-8"
|
|
43
39
|
on:click={inviteUser}
|
|
44
40
|
disabled={email === undefined}
|
|
45
41
|
>
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
openModal?: (() => void) | undefined;
|
|
5
|
-
};
|
|
3
|
+
props: {};
|
|
6
4
|
events: {
|
|
7
5
|
new: CustomEvent<any>;
|
|
8
6
|
} & {
|
|
@@ -14,6 +12,5 @@ export declare type InviteUserProps = typeof __propDef.props;
|
|
|
14
12
|
export declare type InviteUserEvents = typeof __propDef.events;
|
|
15
13
|
export declare type InviteUserSlots = typeof __propDef.slots;
|
|
16
14
|
export default class InviteUser extends SvelteComponentTyped<InviteUserProps, InviteUserEvents, InviteUserSlots> {
|
|
17
|
-
get openModal(): () => void;
|
|
18
15
|
}
|
|
19
16
|
export {};
|