windmill-components 1.613.5 → 1.623.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/package/assets/tokens/tokens.json +1 -11
- package/package/ata/apis.js +5 -78
- package/package/components/AddUser.svelte +1 -1
- package/package/components/CenteredModal.svelte +24 -32
- package/package/components/CenteredModal.svelte.d.ts +27 -7
- package/package/components/CenteredPage.svelte +2 -5
- package/package/components/CenteredPage.svelte.d.ts +0 -2
- package/package/components/ConcurrentJobsChart.svelte +2 -3
- package/package/components/ConcurrentJobsChart.svelte.d.ts +2 -2
- package/package/components/CustomPopover.svelte +23 -20
- package/package/components/CustomPopover.svelte.d.ts +39 -14
- package/package/components/DBManager.svelte +17 -105
- package/package/components/DBManager.svelte.d.ts +1 -2
- package/package/components/DBManagerContent.svelte +3 -4
- package/package/components/DBManagerContent.svelte.d.ts +1 -1
- package/package/components/DBTableEditor.svelte +171 -210
- package/package/components/DBTableEditor.svelte.d.ts +3 -22
- package/package/components/Description.svelte +2 -3
- package/package/components/Dev.svelte +2 -36
- package/package/components/DiffDrawer.svelte +29 -8
- package/package/components/DiffEditor.svelte +2 -32
- package/package/components/DisplayResult.svelte +24 -32
- package/package/components/Editor.svelte +16 -70
- package/package/components/Editor.svelte.d.ts +0 -3
- package/package/components/EditorBar.svelte +1 -1
- package/package/components/FakeMonacoPlaceHolder.svelte +1 -1
- package/package/components/FlowBuilder.svelte +11 -17
- package/package/components/FlowPreviewContent.svelte +2 -3
- package/package/components/FlowPreviewResult.svelte +4 -0
- package/package/components/FlowRestartButton.svelte +3 -2
- package/package/components/FlowRestartButton.svelte.d.ts +0 -3
- package/package/components/FlowStatusViewerInner.svelte +33 -50
- package/package/components/FlowStatusViewerInner.svelte.d.ts +1 -1
- package/package/components/FlowStatusWaitingForEvents.svelte +23 -27
- package/package/components/FlowStatusWaitingForEvents.svelte.d.ts +18 -4
- package/package/components/FlowViewer.svelte +2 -103
- package/package/components/FlowViewer.svelte.d.ts +3 -9
- package/package/components/ForkWorkspaceBanner.svelte +13 -16
- package/package/components/GraphqlSchemaViewer.svelte +1 -8
- package/package/components/HistoricInputs.svelte +27 -25
- package/package/components/HistoricInputs.svelte.d.ts +2 -2
- package/package/components/InstanceSetting.svelte +0 -38
- package/package/components/InviteUser.svelte +42 -16
- package/package/components/InviteUser.svelte.d.ts +18 -4
- package/package/components/JsonInputs.svelte +8 -6
- package/package/components/JsonInputs.svelte.d.ts +8 -7
- package/package/components/LogViewer.svelte +33 -91
- package/package/components/Login.svelte +0 -21
- package/package/components/ManualPopover.svelte +6 -5
- package/package/components/ManualPopover.svelte.d.ts +35 -9
- package/package/components/MemoryFootprintViewer.svelte +6 -2
- package/package/components/ModulePreview.svelte +21 -23
- package/package/components/ModulePreview.svelte.d.ts +0 -1
- package/package/components/OAuthSetting.svelte +11 -23
- package/package/components/Path.svelte +2 -2
- package/package/components/Path.svelte.d.ts +1 -1
- package/package/components/ResourcePicker.svelte +0 -3
- package/package/components/ResourcePicker.svelte.d.ts +0 -1
- package/package/components/RunButton.svelte +15 -5
- package/package/components/RunButton.svelte.d.ts +19 -7
- package/package/components/RunChart.svelte +4 -8
- package/package/components/RunChart.svelte.d.ts +2 -2
- package/package/components/RunFormAdvancedPopup.svelte +1 -1
- package/package/components/RunsPage.svelte +539 -170
- package/package/components/RunsPage.svelte.d.ts +5 -5
- package/package/components/S3FilePicker.svelte +11 -7
- package/package/components/S3FilePickerInner.svelte +3 -2
- package/package/components/S3FilePickerInner.svelte.d.ts +2 -2
- package/package/components/SavedInputs.svelte +416 -0
- package/package/components/{tutorials/workspace/WorkspaceOnboardingOperatorTutorial.svelte.d.ts → SavedInputs.svelte.d.ts} +11 -8
- package/package/components/SchemaForm.svelte +19 -26
- package/package/components/SchemaFormWithArgPicker.svelte +3 -4
- package/package/components/ScriptBuilder.svelte +1 -1
- package/package/components/ScriptEditor.svelte +101 -575
- package/package/components/Section.svelte +1 -3
- package/package/components/ServiceLogsInner.svelte +4 -4
- package/package/components/ShareModal.svelte.d.ts +1 -1
- package/package/components/SimpleEditor.svelte +2 -46
- package/package/components/SuperadminSettingsInner.svelte +1 -1
- package/package/components/TemplateEditor.svelte +29 -54
- package/package/components/TemplateEditor.svelte.d.ts +102 -13
- package/package/components/UserSettings.svelte +1 -1
- package/package/components/WorkerTagPicker.svelte +1 -1
- package/package/components/WorkerTagSelect.svelte +2 -5
- package/package/components/WorkspaceTutorials.svelte +0 -5
- package/package/components/apps/components/buttons/AppButton.svelte +6 -21
- package/package/components/apps/components/buttons/AppForm.svelte +1 -2
- package/package/components/apps/components/buttons/AppFormButton.svelte +1 -2
- package/package/components/apps/components/display/dbtable/AppDbExplorer.svelte +4 -0
- package/package/components/apps/components/display/dbtable/metadata.js +30 -69
- package/package/components/apps/components/display/dbtable/queries/createTable.d.ts +24 -2
- package/package/components/apps/components/display/dbtable/queries/createTable.js +25 -11
- package/package/components/apps/components/display/dbtable/queries/select.d.ts +0 -2
- package/package/components/apps/components/display/dbtable/queries/select.js +6 -37
- package/package/components/apps/components/display/dbtable/utils.d.ts +1 -10
- package/package/components/apps/components/display/dbtable/utils.js +20 -52
- package/package/components/apps/components/helpers/HiddenComponent.svelte +1 -1
- package/package/components/apps/components/helpers/InputValue.svelte +1 -1
- package/package/components/apps/components/helpers/ResolveConfig.svelte +1 -1
- package/package/components/apps/components/helpers/RunnableComponent.svelte +2 -3
- package/package/components/apps/components/helpers/RunnableComponent.svelte.d.ts +1 -1
- package/package/components/apps/components/helpers/RunnableWrapper.svelte +2 -2
- package/package/components/apps/editor/AppEditorHeader.svelte +1 -8
- package/package/components/apps/editor/AppEditorHeaderDeploy.svelte +29 -32
- package/package/components/apps/editor/AppEditorHeaderDeploy.svelte.d.ts +2 -2
- package/package/components/apps/editor/AppEditorHeaderDeployInitialDraft.svelte +4 -4
- package/package/components/apps/editor/AppEditorHeaderDeployInitialDraft.svelte.d.ts +3 -3
- package/package/components/apps/editor/PublicApp.svelte +30 -49
- package/package/components/apps/editor/PublicApp.svelte.d.ts +0 -1
- package/package/components/apps/editor/inlineScriptsPanel/InlineScriptRunnableByPath.svelte +7 -77
- package/package/components/apps/editor/inlineScriptsPanel/InlineScriptRunnableByPath.svelte.d.ts +2 -2
- package/package/components/apps/editor/inlineScriptsPanel/utils.d.ts +2 -2
- package/package/components/apps/editor/inlineScriptsPanel/utils.js +1 -10
- package/package/components/apps/inputType.d.ts +1 -6
- package/package/components/auditLogs/AuditLogsFilters.svelte +17 -9
- package/package/components/auditLogs/AuditLogsFilters.svelte.d.ts +1 -1
- package/package/components/common/button/model.js +1 -1
- package/package/components/common/calendarPicker/CalendarPicker.svelte.d.ts +1 -1
- package/package/components/common/languageIcons/TypeScript.svelte +3 -5
- package/package/components/common/languageIcons/TypeScript.svelte.d.ts +0 -1
- package/package/components/common/modal/Modal.svelte +3 -3
- package/package/components/copilot/autocomplete/Autocompletor.js +2 -3
- package/package/components/copilot/chat/AIButtonStyle.d.ts +1 -1
- package/package/components/copilot/chat/AIButtonStyle.js +1 -2
- package/package/components/copilot/chat/AIChat.svelte +1 -3
- package/package/components/copilot/chat/AIChatDisplay.svelte +4 -89
- package/package/components/copilot/chat/AIChatInput.svelte +0 -275
- package/package/components/copilot/chat/AIChatManager.svelte.js +1 -107
- package/package/components/copilot/chat/AiChatLayout.svelte +30 -15
- package/package/components/copilot/chat/ContextElementBadge.svelte +0 -44
- package/package/components/copilot/chat/DatatableCreationPolicy.svelte +33 -32
- package/package/components/copilot/chat/ProviderModelSelector.svelte +1 -1
- package/package/components/copilot/chat/__tests__/app/appEvalHelpers.js +0 -3
- package/package/components/copilot/chat/__tests__/flow/flowEvalHelpers.js +0 -4
- package/package/components/copilot/chat/app/core.d.ts +15 -56
- package/package/components/copilot/chat/app/core.js +22 -141
- package/package/components/copilot/chat/context.d.ts +2 -59
- package/package/components/copilot/chat/context.js +2 -6
- package/package/components/copilot/chat/flow/FlowAIChat.svelte +0 -22
- package/package/components/copilot/chat/flow/core.d.ts +1 -3
- package/package/components/copilot/chat/flow/core.js +2 -29
- package/package/components/copilot/chat/flow/openFlow.json +1 -1
- package/package/components/copilot/chat/flow/openFlowZod.d.ts +0 -1
- package/package/components/copilot/chat/flow/openFlowZod.js +2 -14
- package/package/components/copilot/chat/script/core.d.ts +1 -4
- package/package/components/copilot/chat/script/core.js +2 -38
- package/package/components/copilot/chat/shared.d.ts +0 -10
- package/package/components/copilot/chat/shared.js +0 -24
- package/package/components/copilot/lib.d.ts +1 -1
- package/package/components/custom_ui.d.ts +0 -2
- package/package/components/dbOps.d.ts +4 -18
- package/package/components/dbOps.js +3 -25
- package/package/components/flows/CreateActionsApp.svelte +4 -6
- package/package/components/flows/DebounceLimit.svelte.d.ts +1 -1
- package/package/components/flows/FlowHistoryInner.svelte +4 -15
- package/package/components/flows/content/AgentToolWrapper.svelte +1 -1
- package/package/components/flows/content/FlowInput.svelte +37 -211
- package/package/components/flows/content/FlowModuleComponent.svelte +67 -553
- package/package/components/flows/content/FlowModuleEarlyStop.svelte +10 -8
- package/package/components/flows/content/FlowModuleHeader.svelte +4 -7
- package/package/components/flows/content/FlowModuleWorkerTagSelect.svelte +1 -1
- package/package/components/flows/content/McpToolEditor.svelte +37 -50
- package/package/components/flows/content/McpToolEditor.svelte.d.ts +1 -0
- package/package/components/flows/conversations/FlowChat.svelte +2 -16
- package/package/components/flows/conversations/FlowChat.svelte.d.ts +1 -2
- package/package/components/flows/conversations/FlowChatInterface.svelte +6 -103
- package/package/components/flows/conversations/FlowChatInterface.svelte.d.ts +0 -2
- package/package/components/flows/conversations/FlowChatManager.svelte.js +21 -53
- package/package/components/flows/header/FlowImportExportMenu.svelte +1 -1
- package/package/components/flows/propPicker/PropPickerWrapper.svelte +1 -3
- package/package/components/flows/types.d.ts +0 -2
- package/package/components/git_sync/GitSyncRepositoryCard.svelte +8 -16
- package/package/components/home/ItemsList.svelte +5 -5
- package/package/components/home/TutorialBanner.svelte +18 -34
- package/package/components/icons/CssIcon.svelte +0 -20
- package/package/components/icons/CssIcon.svelte.d.ts +25 -7
- package/package/components/icons/JavaScriptIcon.svelte +2 -10
- package/package/components/icons/JavaScriptIcon.svelte.d.ts +0 -1
- package/package/components/icons/JsonIcon.svelte +2 -8
- package/package/components/icons/JsonIcon.svelte.d.ts +0 -1
- package/package/components/icons/ReactIcon.svelte +2 -10
- package/package/components/icons/ReactIcon.svelte.d.ts +0 -1
- package/package/components/icons/SvelteIcon.svelte +2 -10
- package/package/components/icons/SvelteIcon.svelte.d.ts +0 -1
- package/package/components/icons/VueIcon.svelte +2 -10
- package/package/components/icons/VueIcon.svelte.d.ts +0 -1
- package/package/components/instanceSettings.d.ts +1 -2
- package/package/components/instanceSettings.js +1 -32
- package/package/components/jobs/JobPreview.svelte +39 -46
- package/package/components/jobs/JobPreview.svelte.d.ts +0 -1
- package/package/components/monacoLanguagesOptions.js +15 -16
- package/package/components/propertyPicker/PropPicker.svelte +2 -16
- package/package/components/propertyPicker/PropPicker.svelte.d.ts +0 -2
- package/package/components/raw_apps/DefaultDatabaseSelector.svelte +5 -9
- package/package/components/raw_apps/FileEditorIcon.svelte +7 -12
- package/package/components/raw_apps/FileEditorIcon.svelte.d.ts +0 -2
- package/package/components/raw_apps/FileTreeNode.svelte +83 -119
- package/package/components/raw_apps/RawAppBackgroundRunner.svelte +8 -88
- package/package/components/raw_apps/RawAppDataTableList.svelte +9 -12
- package/package/components/raw_apps/RawAppEditor.svelte +68 -218
- package/package/components/raw_apps/RawAppEditorHeader.svelte +16 -33
- package/package/components/raw_apps/RawAppHistoryList.svelte +80 -264
- package/package/components/raw_apps/RawAppHistoryList.svelte.d.ts +0 -1
- package/package/components/raw_apps/RawAppHistoryManager.svelte.d.ts +1 -15
- package/package/components/raw_apps/RawAppHistoryManager.svelte.js +12 -46
- package/package/components/raw_apps/RawAppInlineScriptEditor.svelte +47 -549
- package/package/components/raw_apps/RawAppInlineScriptEditor.svelte.d.ts +5 -31
- package/package/components/raw_apps/RawAppInlineScriptPanelList.svelte +18 -25
- package/package/components/raw_apps/RawAppInlineScriptPanelList.svelte.d.ts +0 -1
- package/package/components/raw_apps/RawAppInlineScriptRunnable.svelte +10 -141
- package/package/components/raw_apps/RawAppInlineScriptRunnable.svelte.d.ts +0 -8
- package/package/components/raw_apps/RawAppInlineScriptsPanel.svelte +1 -2
- package/package/components/raw_apps/RawAppInlineScriptsPanel.svelte.d.ts +1 -9
- package/package/components/raw_apps/RawAppInputsSpecEditor.svelte +3 -47
- package/package/components/raw_apps/RawAppInputsSpecEditor.svelte.d.ts +2 -2
- package/package/components/raw_apps/RawAppModules.svelte +7 -13
- package/package/components/raw_apps/RawAppPreview.svelte +6 -48
- package/package/components/raw_apps/RawAppSidebar.svelte +125 -194
- package/package/components/raw_apps/RawAppSidebar.svelte.d.ts +0 -1
- package/package/components/raw_apps/utils.d.ts +1 -1
- package/package/components/raw_apps/utils.js +18 -76
- package/package/components/runs/JobsLoader.svelte +468 -0
- package/package/components/runs/JobsLoader.svelte.d.ts +49 -0
- package/package/components/runs/ManuelDatePicker.svelte +3 -3
- package/package/components/runs/ManuelDatePicker.svelte.d.ts +3 -3
- package/package/components/runs/NoWorkerWithTagWarning.svelte +1 -5
- package/package/components/runs/RunsFilter.svelte +63 -75
- package/package/components/runs/RunsFilter.svelte.d.ts +4 -35
- package/package/components/runs/RunsQueue.svelte.d.ts +1 -1
- package/package/components/runs/RunsTable.svelte +1 -1
- package/package/components/runs/RunsTable.svelte.d.ts +1 -1
- package/package/components/schema/SchemaPicker.svelte +92 -0
- package/package/components/{tutorials/RunsTutorial.svelte.d.ts → schema/SchemaPicker.svelte.d.ts} +12 -11
- package/package/components/scriptEditor/LogPanel.svelte +2 -17
- package/package/components/scriptEditor/LogPanel.svelte.d.ts +0 -2
- package/package/components/select/SelectDropdown.svelte +2 -2
- package/package/components/settings/ChangeWorkspaceColor.svelte +3 -4
- package/package/components/settings/ChangeWorkspaceId.svelte +10 -14
- package/package/components/settings/ChangeWorkspaceName.svelte +6 -7
- package/package/components/settings/CreateToken.svelte +1 -1
- package/package/components/settings/UserAIPromptsSettings.svelte +15 -56
- package/package/components/settings/WorkspaceOperatorSettings.svelte +85 -68
- package/package/components/settings/WorkspaceUserSettings.svelte +406 -531
- package/package/components/sidebar/MenuButton.svelte +24 -46
- package/package/components/sidebar/MenuButton.svelte.d.ts +0 -2
- package/package/components/sidebar/MultiplayerMenu.svelte +3 -3
- package/package/components/sidebar/OperatorMenu.svelte +88 -63
- package/package/components/sidebar/SidebarContent.svelte +2 -7
- package/package/components/sidebar/UserMenu.svelte +1 -1
- package/package/components/sidebar/WorkspaceMenu.svelte +85 -35
- package/package/components/sqlTypeService.js +3 -4
- package/package/components/table/DataTable.svelte +2 -3
- package/package/components/table/DataTable.svelte.d.ts +0 -1
- package/package/components/text_input/TextInput.svelte +0 -3
- package/package/components/text_input/TextInput.svelte.d.ts +0 -2
- package/package/components/triggers/utils.js +1 -0
- package/package/components/tutorials/FlowBuilderLiveTutorial.svelte +35 -6
- package/package/components/tutorials/TroubleshootFlowTutorial.svelte +20 -5
- package/package/components/tutorials/utils.d.ts +0 -16
- package/package/components/tutorials/utils.js +0 -96
- package/package/components/vscode.js +6 -6
- package/package/components/workspaceSettings/AISettings.svelte +108 -146
- package/package/components/workspaceSettings/CreateWorkspace.svelte +12 -26
- package/package/components/workspaceSettings/DucklakeSettings.svelte +23 -46
- package/package/components/workspaceSettings/DucklakeSettings.svelte.d.ts +1 -2
- package/package/components/workspaceSettings/ModelTokenLimits.svelte +18 -14
- package/package/components/workspaceSettings/StorageSettings.svelte +241 -280
- package/package/components/workspaceSettings/StorageSettings.svelte.d.ts +0 -1
- package/package/consts.js +1 -4
- package/package/gen/core/OpenAPI.js +1 -1
- package/package/gen/schemas.gen.d.ts +1 -133
- package/package/gen/schemas.gen.js +1 -133
- package/package/gen/services.gen.d.ts +10 -160
- package/package/gen/services.gen.js +20 -319
- package/package/gen/types.gen.d.ts +19 -609
- package/package/hubPaths.json +2 -3
- package/package/infer.js +0 -2
- package/package/logout.d.ts +2 -0
- package/package/logout.js +23 -2
- package/package/monaco_workers/graphql.worker.bundle.js +121 -121
- package/package/navigation.d.ts +1 -1
- package/package/rawAppWmillTs.d.ts +0 -11
- package/package/rawAppWmillTs.js +1 -38
- package/package/svelte5Utils.svelte.d.ts +1 -7
- package/package/svelte5Utils.svelte.js +2 -23
- package/package/tutorialUtils.js +4 -0
- package/package/tutorials/config.js +3 -31
- package/package/tutorials/roleUtils.d.ts +1 -1
- package/package/tutorials/roleUtils.js +2 -6
- package/package/utils.js +1 -159
- package/package.json +4 -6
- package/dist/sharedUtils/assets/tokens/colorTokensConfig.d.ts +0 -2
- package/dist/sharedUtils/base.d.ts +0 -1
- package/dist/sharedUtils/cloud.d.ts +0 -1
- package/dist/sharedUtils/common.d.ts +0 -111
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/count.d.ts +0 -5
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/delete.d.ts +0 -5
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/insert.d.ts +0 -5
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/select.d.ts +0 -13
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/update.d.ts +0 -11
- package/dist/sharedUtils/components/apps/components/display/dbtable/utils.d.ts +0 -95
- package/dist/sharedUtils/components/apps/editor/appPolicy.d.ts +0 -6
- package/dist/sharedUtils/components/apps/editor/appUtilsCore.d.ts +0 -7
- package/dist/sharedUtils/components/apps/editor/appUtilsS3.d.ts +0 -33
- package/dist/sharedUtils/components/apps/editor/commonAppUtils.d.ts +0 -10
- package/dist/sharedUtils/components/apps/editor/component/components.d.ts +0 -5371
- package/dist/sharedUtils/components/apps/editor/component/default-codes.d.ts +0 -3
- package/dist/sharedUtils/components/apps/editor/component/index.d.ts +0 -3
- package/dist/sharedUtils/components/apps/editor/component/sets.d.ts +0 -7
- package/dist/sharedUtils/components/apps/editor/componentsPanel/componentDefaultProps.d.ts +0 -3
- package/dist/sharedUtils/components/apps/gridUtils.d.ts +0 -14
- package/dist/sharedUtils/components/apps/inputType.d.ts +0 -178
- package/dist/sharedUtils/components/apps/rx.d.ts +0 -29
- package/dist/sharedUtils/components/apps/sharedTypes.d.ts +0 -21
- package/dist/sharedUtils/components/apps/types.d.ts +0 -274
- package/dist/sharedUtils/components/assets/lib.d.ts +0 -25
- package/dist/sharedUtils/components/common/alert/model.d.ts +0 -2
- package/dist/sharedUtils/components/common/badge/model.d.ts +0 -8
- package/dist/sharedUtils/components/common/button/model.d.ts +0 -45
- package/dist/sharedUtils/components/common/fileInput/model.d.ts +0 -1
- package/dist/sharedUtils/components/common/index.d.ts +0 -24
- package/dist/sharedUtils/components/common/skeleton/model.d.ts +0 -21
- package/dist/sharedUtils/components/dbTypes.d.ts +0 -14
- package/dist/sharedUtils/components/diff_drawer.d.ts +0 -26
- package/dist/sharedUtils/components/ducklake.d.ts +0 -1
- package/dist/sharedUtils/components/flows/scheduleUtils.d.ts +0 -7
- package/dist/sharedUtils/components/icons/index.d.ts +0 -101
- package/dist/sharedUtils/components/random_positive_adjetive.d.ts +0 -1
- package/dist/sharedUtils/components/raw_apps/rawAppPolicy.d.ts +0 -10
- package/dist/sharedUtils/components/raw_apps/utils.d.ts +0 -15
- package/dist/sharedUtils/components/triggers/email/utils.d.ts +0 -4
- package/dist/sharedUtils/components/triggers/gcp/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers/http/utils.d.ts +0 -11
- package/dist/sharedUtils/components/triggers/kafka/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers/mqtt/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers/nats/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers/postgres/utils.d.ts +0 -8
- package/dist/sharedUtils/components/triggers/sqs/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers/triggers.svelte.d.ts +0 -32
- package/dist/sharedUtils/components/triggers/utils.d.ts +0 -80
- package/dist/sharedUtils/components/triggers/websocket/utils.d.ts +0 -2
- package/dist/sharedUtils/components/triggers.d.ts +0 -20
- package/dist/sharedUtils/gen/core/ApiError.d.ts +0 -10
- package/dist/sharedUtils/gen/core/ApiRequestOptions.d.ts +0 -13
- package/dist/sharedUtils/gen/core/ApiResult.d.ts +0 -7
- package/dist/sharedUtils/gen/core/CancelablePromise.d.ts +0 -26
- package/dist/sharedUtils/gen/core/OpenAPI.d.ts +0 -27
- package/dist/sharedUtils/gen/core/request.d.ts +0 -29
- package/dist/sharedUtils/gen/index.d.ts +0 -6
- package/dist/sharedUtils/gen/schemas.gen.d.ts +0 -7036
- package/dist/sharedUtils/gen/services.gen.d.ts +0 -6047
- package/dist/sharedUtils/gen/types.gen.d.ts +0 -21881
- package/dist/sharedUtils/history.svelte.d.ts +0 -9
- package/dist/sharedUtils/hub.d.ts +0 -49
- package/dist/sharedUtils/jsr.json +0 -6
- package/dist/sharedUtils/lib.d.ts +0 -5
- package/dist/sharedUtils/lib.es.js +0 -1588
- package/dist/sharedUtils/package.json +0 -12
- package/dist/sharedUtils/schema.d.ts +0 -3
- package/dist/sharedUtils/stores.d.ts +0 -97
- package/dist/sharedUtils/svelte5Utils.svelte.d.ts +0 -80
- package/dist/sharedUtils/toast.d.ts +0 -8
- package/dist/sharedUtils/utils.d.ts +0 -265
- package/package/components/FlowDiffViewer.svelte +0 -37
- package/package/components/FlowDiffViewer.svelte.d.ts +0 -7
- package/package/components/JobOtelTraces.svelte +0 -287
- package/package/components/JobOtelTraces.svelte.d.ts +0 -6
- package/package/components/apps/components/display/dbtable/queries/alterTable.d.ts +0 -46
- package/package/components/apps/components/display/dbtable/queries/alterTable.js +0 -314
- package/package/components/apps/components/display/dbtable/queries/alterTable.test.d.ts +0 -1
- package/package/components/apps/components/display/dbtable/queries/alterTable.test.js +0 -867
- package/package/components/apps/components/display/dbtable/queries/dbQueriesUtils.d.ts +0 -9
- package/package/components/apps/components/display/dbtable/queries/dbQueriesUtils.js +0 -45
- package/package/components/apps/components/display/dbtable/queries/relationalKeys.d.ts +0 -47
- package/package/components/apps/components/display/dbtable/queries/relationalKeys.js +0 -402
- package/package/components/apps/components/display/dbtable/tableEditor.d.ts +0 -35
- package/package/components/apps/components/display/dbtable/tableEditor.js +0 -49
- package/package/components/copilot/chat/AppAvailableContextList.svelte +0 -263
- package/package/components/copilot/chat/AppAvailableContextList.svelte.d.ts +0 -13
- package/package/components/debug/DebugConsole.svelte +0 -277
- package/package/components/debug/DebugConsole.svelte.d.ts +0 -13
- package/package/components/debug/DebugPanel.svelte +0 -97
- package/package/components/debug/DebugPanel.svelte.d.ts +0 -11
- package/package/components/debug/DebugToolbar.svelte +0 -148
- package/package/components/debug/DebugToolbar.svelte.d.ts +0 -17
- package/package/components/debug/DebugVariableViewer.svelte +0 -115
- package/package/components/debug/DebugVariableViewer.svelte.d.ts +0 -11
- package/package/components/debug/MonacoDebugger.svelte +0 -384
- package/package/components/debug/MonacoDebugger.svelte.d.ts +0 -15
- package/package/components/debug/dapClient.d.ts +0 -192
- package/package/components/debug/dapClient.js +0 -426
- package/package/components/debug/debugUtils.d.ts +0 -30
- package/package/components/debug/debugUtils.js +0 -131
- package/package/components/debug/index.d.ts +0 -75
- package/package/components/debug/index.js +0 -82
- package/package/components/flows/content/FlowEditorDrawer.svelte +0 -124
- package/package/components/flows/content/FlowEditorDrawer.svelte.d.ts +0 -22
- package/package/components/flows/content/McpOAuthConnect.svelte +0 -217
- package/package/components/flows/content/McpOAuthConnect.svelte.d.ts +0 -7
- package/package/components/icons/HtmlIcon.svelte +0 -20
- package/package/components/icons/HtmlIcon.svelte.d.ts +0 -8
- package/package/components/icons/LessIcon.svelte +0 -16
- package/package/components/icons/LessIcon.svelte.d.ts +0 -8
- package/package/components/icons/MarkdownIcon.svelte +0 -20
- package/package/components/icons/MarkdownIcon.svelte.d.ts +0 -8
- package/package/components/icons/SassIcon.svelte +0 -28
- package/package/components/icons/SassIcon.svelte.d.ts +0 -8
- package/package/components/icons/YamlIcon.svelte +0 -20
- package/package/components/icons/YamlIcon.svelte.d.ts +0 -8
- package/package/components/instanceSettings/SecretBackendConfig.svelte +0 -514
- package/package/components/instanceSettings/SecretBackendConfig.svelte.d.ts +0 -8
- package/package/components/raw_apps/RunnableRow.svelte +0 -41
- package/package/components/raw_apps/RunnableRow.svelte.d.ts +0 -11
- package/package/components/runs/useJobsLoader.svelte.d.ts +0 -34
- package/package/components/runs/useJobsLoader.svelte.js +0 -507
- package/package/components/settings/AIPromptsModal.svelte +0 -88
- package/package/components/settings/AIPromptsModal.svelte.d.ts +0 -11
- package/package/components/tutorials/RunsTutorial.svelte +0 -399
- package/package/components/tutorials/workspace/WorkspaceOnboardingOperatorTutorial.svelte +0 -133
- package/package/components/workspace/WorkspaceCard.svelte +0 -184
- package/package/components/workspace/WorkspaceCard.svelte.d.ts +0 -24
- package/package/components/workspace/WorkspaceIcon.svelte +0 -21
- package/package/components/workspace/WorkspaceIcon.svelte.d.ts +0 -9
- package/package/components/workspace/WorkspaceTreeView.svelte +0 -331
- package/package/components/workspace/WorkspaceTreeView.svelte.d.ts +0 -15
- package/package/logoutKit.d.ts +0 -2
- package/package/logoutKit.js +0 -26
- package/package/svelte5UtilsKit.svelte.d.ts +0 -3
- package/package/svelte5UtilsKit.svelte.js +0 -30
package/package/navigation.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function goto(path:
|
|
1
|
+
export declare function goto(path: any, options?: {}): any;
|
|
2
2
|
export declare function setQuery(url: URL, key: string, value: string | undefined, currentHash?: string | undefined): Promise<void>;
|
|
@@ -2,14 +2,3 @@ export declare const backend: {};
|
|
|
2
2
|
export declare const backendAsync: {};
|
|
3
3
|
export declare function waitJob(jobId: string): Promise<unknown>;
|
|
4
4
|
export declare function getJob(jobId: string): Promise<unknown>;
|
|
5
|
-
/**
|
|
6
|
-
* Stream job results using SSE. Calls onUpdate for each stream update,
|
|
7
|
-
* and resolves with the final result when the job completes.
|
|
8
|
-
* @param jobId - The job ID to stream
|
|
9
|
-
* @param onUpdate - Callback for stream updates with new_result_stream data
|
|
10
|
-
* @returns Promise that resolves with the final job result
|
|
11
|
-
*/
|
|
12
|
-
export declare function streamJob(jobId: string, onUpdate?: (data: {
|
|
13
|
-
new_result_stream?: string;
|
|
14
|
-
stream_offset?: number;
|
|
15
|
-
}) => void): Promise<any>;
|
package/package/rawAppWmillTs.js
CHANGED
|
@@ -26,45 +26,8 @@ export function waitJob(jobId) {
|
|
|
26
26
|
export function getJob(jobId) {
|
|
27
27
|
return doRequest('getJob', { jobId });
|
|
28
28
|
}
|
|
29
|
-
/**
|
|
30
|
-
* Stream job results using SSE. Calls onUpdate for each stream update,
|
|
31
|
-
* and resolves with the final result when the job completes.
|
|
32
|
-
* @param jobId - The job ID to stream
|
|
33
|
-
* @param onUpdate - Callback for stream updates with new_result_stream data
|
|
34
|
-
* @returns Promise that resolves with the final job result
|
|
35
|
-
*/
|
|
36
|
-
export function streamJob(jobId, onUpdate) {
|
|
37
|
-
return new Promise((resolve, reject) => {
|
|
38
|
-
const reqId = Math.random().toString(36);
|
|
39
|
-
reqs[reqId] = { resolve, reject, onUpdate };
|
|
40
|
-
parent.postMessage({ jobId, type: 'streamJob', reqId }, '*');
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
29
|
window.addEventListener('message', (e) => {
|
|
44
|
-
if (e.data.type == '
|
|
45
|
-
// Handle streaming update
|
|
46
|
-
let job = reqs[e.data.reqId];
|
|
47
|
-
if (job && job.onUpdate) {
|
|
48
|
-
job.onUpdate({
|
|
49
|
-
new_result_stream: e.data.new_result_stream,
|
|
50
|
-
stream_offset: e.data.stream_offset
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
else if (e.data.type == 'streamJobRes') {
|
|
55
|
-
// Handle stream completion
|
|
56
|
-
let job = reqs[e.data.reqId];
|
|
57
|
-
if (job) {
|
|
58
|
-
if (e.data.error) {
|
|
59
|
-
job.reject(new Error(e.data.result?.stack ?? e.data.result?.message ?? 'Stream error'));
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
job.resolve(e.data.result);
|
|
63
|
-
}
|
|
64
|
-
delete reqs[e.data.reqId];
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
else if (e.data.type == 'backendRes' || e.data.type == 'backendAsyncRes') {
|
|
30
|
+
if (e.data.type == 'backendRes' || e.data.type == 'backendAsyncRes') {
|
|
68
31
|
console.log('Message from parent backend', e.data);
|
|
69
32
|
let job = reqs[e.data.reqId];
|
|
70
33
|
if (job) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type StateStore } from './utils';
|
|
2
2
|
export declare function withProps<Component, Props>(component: Component, props: Props): {
|
|
3
3
|
component: Component;
|
|
4
4
|
props: Props;
|
|
@@ -69,9 +69,3 @@ export declare class ChangeOnDeepInequality<T> {
|
|
|
69
69
|
constructor(compute: () => T);
|
|
70
70
|
get value(): T;
|
|
71
71
|
}
|
|
72
|
-
export declare class StaleWhileLoading<T> {
|
|
73
|
-
private _current;
|
|
74
|
-
private _currentTimeout;
|
|
75
|
-
constructor(getter: () => T, timeout?: number);
|
|
76
|
-
get current(): T | undefined;
|
|
77
|
-
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// https://github.com/sveltejs/svelte/issues/14600
|
|
2
2
|
import { untrack } from 'svelte';
|
|
3
3
|
import { deepEqual } from 'fast-equals';
|
|
4
|
-
import {
|
|
4
|
+
import {} from './utils';
|
|
5
|
+
import { resource } from 'runed';
|
|
5
6
|
export function withProps(component, props) {
|
|
6
7
|
const ret = $state({
|
|
7
8
|
component,
|
|
@@ -146,25 +147,3 @@ export class ChangeOnDeepInequality {
|
|
|
146
147
|
return this._cached;
|
|
147
148
|
}
|
|
148
149
|
}
|
|
149
|
-
// Prevents flickering when data is unloaded (undefined) then reloaded quickly
|
|
150
|
-
// But still becomes undefined if data is not reloaded within the timeout
|
|
151
|
-
// so the user has feedback that the data is not available anymore.
|
|
152
|
-
export class StaleWhileLoading {
|
|
153
|
-
_current = $state();
|
|
154
|
-
_currentTimeout;
|
|
155
|
-
constructor(getter, timeout = 400) {
|
|
156
|
-
watch(getter, (value) => {
|
|
157
|
-
if (this._currentTimeout)
|
|
158
|
-
clearTimeout(this._currentTimeout);
|
|
159
|
-
if (value === undefined) {
|
|
160
|
-
this._currentTimeout = setTimeout(() => (this._current = undefined), timeout);
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
this._current = value;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
get current() {
|
|
168
|
-
return this._current;
|
|
169
|
-
}
|
|
170
|
-
}
|
package/package/tutorialUtils.js
CHANGED
|
@@ -60,6 +60,10 @@ export async function skipAllTodos() {
|
|
|
60
60
|
}
|
|
61
61
|
tutorialsToDo.set([]);
|
|
62
62
|
skippedAll.set(true);
|
|
63
|
+
// Dismiss the tutorial banner when all tutorials are skipped
|
|
64
|
+
if (typeof window !== 'undefined') {
|
|
65
|
+
localStorage.setItem(TUTORIAL_BANNER_DISMISSED_KEY, 'true');
|
|
66
|
+
}
|
|
63
67
|
await UserService.updateTutorialProgress({ requestBody: { progress: bits, skipped_all: true } });
|
|
64
68
|
}
|
|
65
69
|
export async function resetAllTodos() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Workflow, GraduationCap, Wrench, PlayCircle, Link2
|
|
1
|
+
import { Workflow, GraduationCap, Wrench, PlayCircle, Link2 } from 'lucide-svelte';
|
|
2
2
|
import { base } from '../base';
|
|
3
3
|
/**
|
|
4
4
|
* Get tutorial index from config by tutorial ID.
|
|
@@ -16,7 +16,7 @@ export function getTutorialIndex(id) {
|
|
|
16
16
|
export const TUTORIALS_CONFIG = {
|
|
17
17
|
quickstart: {
|
|
18
18
|
label: 'Quickstart',
|
|
19
|
-
roles: ['admin', 'developer'
|
|
19
|
+
roles: ['admin', 'developer'],
|
|
20
20
|
progressBar: true,
|
|
21
21
|
active: true,
|
|
22
22
|
tutorials: [
|
|
@@ -61,35 +61,7 @@ export const TUTORIALS_CONFIG = {
|
|
|
61
61
|
comingSoon: false,
|
|
62
62
|
roles: ['admin', 'developer'],
|
|
63
63
|
order: 3
|
|
64
|
-
}
|
|
65
|
-
{
|
|
66
|
-
id: 'runs-tutorial',
|
|
67
|
-
icon: History,
|
|
68
|
-
title: 'Discover your monitoring dashboard',
|
|
69
|
-
description: 'Learn how to monitor, filter, and manage your script and flow executions.',
|
|
70
|
-
onClick: () => {
|
|
71
|
-
window.location.href = `${base}/runs?tutorial=runs-tutorial`;
|
|
72
|
-
},
|
|
73
|
-
index: 7,
|
|
74
|
-
active: true,
|
|
75
|
-
comingSoon: false,
|
|
76
|
-
roles: ['admin', 'developer', 'operator'],
|
|
77
|
-
order: 4
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: 'workspace-onboarding-operator',
|
|
81
|
-
icon: GraduationCap,
|
|
82
|
-
title: 'Workspace onboarding',
|
|
83
|
-
description: 'Discover the basics of Windmill with a quick tour of the workspace.',
|
|
84
|
-
onClick: () => {
|
|
85
|
-
window.location.href = `${base}/?tutorial=workspace-onboarding-operator`;
|
|
86
|
-
},
|
|
87
|
-
index: 6,
|
|
88
|
-
active: true,
|
|
89
|
-
comingSoon: false,
|
|
90
|
-
roles: ['operator'],
|
|
91
|
-
order: 1
|
|
92
|
-
},
|
|
64
|
+
}
|
|
93
65
|
]
|
|
94
66
|
},
|
|
95
67
|
app_editor: {
|
|
@@ -15,6 +15,6 @@ export declare function hasRoleAccess(user: UserExt | null | undefined, roles?:
|
|
|
15
15
|
/**
|
|
16
16
|
* Check if a preview role has access based on a roles array.
|
|
17
17
|
* Used by admins to preview what other roles can see.
|
|
18
|
-
*
|
|
18
|
+
* This is a convenience wrapper around hasRoleAccess for preview mode.
|
|
19
19
|
*/
|
|
20
20
|
export declare function hasRoleAccessForPreview(previewRole: Role, roles?: Role[]): boolean;
|
|
@@ -45,12 +45,8 @@ export function hasRoleAccess(user, roles, previewRole) {
|
|
|
45
45
|
/**
|
|
46
46
|
* Check if a preview role has access based on a roles array.
|
|
47
47
|
* Used by admins to preview what other roles can see.
|
|
48
|
-
*
|
|
48
|
+
* This is a convenience wrapper around hasRoleAccess for preview mode.
|
|
49
49
|
*/
|
|
50
50
|
export function hasRoleAccessForPreview(previewRole, roles) {
|
|
51
|
-
|
|
52
|
-
if (!roles || roles.length === 0)
|
|
53
|
-
return true;
|
|
54
|
-
// Exact role match - tutorial must explicitly include the preview role
|
|
55
|
-
return roles.includes(previewRole);
|
|
51
|
+
return hasRoleAccess(null, roles, previewRole);
|
|
56
52
|
}
|
package/package/utils.js
CHANGED
|
@@ -678,7 +678,7 @@ export function pluralize(quantity, word, customPlural) {
|
|
|
678
678
|
return `${quantity} ${word}`;
|
|
679
679
|
}
|
|
680
680
|
else if (customPlural) {
|
|
681
|
-
return `${quantity} ${customPlural}`;
|
|
681
|
+
return `${quantity} ${customPlural}}`;
|
|
682
682
|
}
|
|
683
683
|
else {
|
|
684
684
|
return `${quantity} ${word}s`;
|
|
@@ -730,134 +730,6 @@ export function getModifierKey() {
|
|
|
730
730
|
export function isValidHexColor(color) {
|
|
731
731
|
return /^#(([A-F0-9]{2}){3,4}|[A-F0-9]{3})$/i.test(color);
|
|
732
732
|
}
|
|
733
|
-
/**
|
|
734
|
-
* Calculates the relative luminance of a color according to WCAG 2.1
|
|
735
|
-
* @param r Red component (0-255)
|
|
736
|
-
* @param g Green component (0-255)
|
|
737
|
-
* @param b Blue component (0-255)
|
|
738
|
-
* @returns Relative luminance value (0-1)
|
|
739
|
-
*/
|
|
740
|
-
function getRelativeLuminance(r, g, b) {
|
|
741
|
-
const [rs, gs, bs] = [r, g, b].map((val) => {
|
|
742
|
-
val = val / 255;
|
|
743
|
-
return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
|
|
744
|
-
});
|
|
745
|
-
return 0.2126 * rs + 0.7152 * gs + 0.0722 * bs;
|
|
746
|
-
}
|
|
747
|
-
/**
|
|
748
|
-
* Converts hex color to HSL
|
|
749
|
-
* @param hex Hex color string (e.g., "#FF0000")
|
|
750
|
-
* @returns Array of [hue (0-360), saturation (0-100), lightness (0-100)]
|
|
751
|
-
*/
|
|
752
|
-
function hexToHsl(hex) {
|
|
753
|
-
// Normalize hex color
|
|
754
|
-
let normalizedHex = hex.replace('#', '');
|
|
755
|
-
if (normalizedHex.length === 3) {
|
|
756
|
-
normalizedHex = normalizedHex
|
|
757
|
-
.split('')
|
|
758
|
-
.map((char) => char + char)
|
|
759
|
-
.join('');
|
|
760
|
-
}
|
|
761
|
-
const r = parseInt(normalizedHex.substring(0, 2), 16) / 255;
|
|
762
|
-
const g = parseInt(normalizedHex.substring(2, 4), 16) / 255;
|
|
763
|
-
const b = parseInt(normalizedHex.substring(4, 6), 16) / 255;
|
|
764
|
-
const max = Math.max(r, g, b);
|
|
765
|
-
const min = Math.min(r, g, b);
|
|
766
|
-
let h = 0;
|
|
767
|
-
let s = 0;
|
|
768
|
-
const l = (max + min) / 2;
|
|
769
|
-
if (max !== min) {
|
|
770
|
-
const d = max - min;
|
|
771
|
-
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
772
|
-
switch (max) {
|
|
773
|
-
case r:
|
|
774
|
-
h = ((g - b) / d + (g < b ? 6 : 0)) / 6;
|
|
775
|
-
break;
|
|
776
|
-
case g:
|
|
777
|
-
h = ((b - r) / d + 2) / 6;
|
|
778
|
-
break;
|
|
779
|
-
case b:
|
|
780
|
-
h = ((r - g) / d + 4) / 6;
|
|
781
|
-
break;
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
return [h * 360, s * 100, l * 100];
|
|
785
|
-
}
|
|
786
|
-
/**
|
|
787
|
-
* Converts HSL to hex color
|
|
788
|
-
* @param h Hue (0-360)
|
|
789
|
-
* @param s Saturation (0-100)
|
|
790
|
-
* @param l Lightness (0-100)
|
|
791
|
-
* @returns Hex color string
|
|
792
|
-
*/
|
|
793
|
-
function hslToHex(h, s, l) {
|
|
794
|
-
h = h / 360;
|
|
795
|
-
s = s / 100;
|
|
796
|
-
l = l / 100;
|
|
797
|
-
let r, g, b;
|
|
798
|
-
if (s === 0) {
|
|
799
|
-
r = g = b = l; // Achromatic
|
|
800
|
-
}
|
|
801
|
-
else {
|
|
802
|
-
const hue2rgb = (p, q, t) => {
|
|
803
|
-
if (t < 0)
|
|
804
|
-
t += 1;
|
|
805
|
-
if (t > 1)
|
|
806
|
-
t -= 1;
|
|
807
|
-
if (t < 1 / 6)
|
|
808
|
-
return p + (q - p) * 6 * t;
|
|
809
|
-
if (t < 1 / 2)
|
|
810
|
-
return q;
|
|
811
|
-
if (t < 2 / 3)
|
|
812
|
-
return p + (q - p) * (2 / 3 - t) * 6;
|
|
813
|
-
return p;
|
|
814
|
-
};
|
|
815
|
-
const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
816
|
-
const p = 2 * l - q;
|
|
817
|
-
r = hue2rgb(p, q, h + 1 / 3);
|
|
818
|
-
g = hue2rgb(p, q, h);
|
|
819
|
-
b = hue2rgb(p, q, h - 1 / 3);
|
|
820
|
-
}
|
|
821
|
-
const toHex = (c) => {
|
|
822
|
-
const hex = Math.round(c * 255).toString(16);
|
|
823
|
-
return hex.length === 1 ? '0' + hex : hex;
|
|
824
|
-
};
|
|
825
|
-
return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* Generates a text color with the same hue as the background but adjusted lightness for good contrast
|
|
829
|
-
* @param backgroundColor Hex color string (e.g., "#FF0000" or "#F00")
|
|
830
|
-
* @returns Hex color string with same hue but good contrast, or undefined if invalid
|
|
831
|
-
*/
|
|
832
|
-
export function getContrastTextColor(backgroundColor) {
|
|
833
|
-
if (!backgroundColor || !isValidHexColor(backgroundColor)) {
|
|
834
|
-
return undefined;
|
|
835
|
-
}
|
|
836
|
-
// Normalize hex color
|
|
837
|
-
let hex = backgroundColor.replace('#', '');
|
|
838
|
-
if (hex.length === 3) {
|
|
839
|
-
hex = hex
|
|
840
|
-
.split('')
|
|
841
|
-
.map((char) => char + char)
|
|
842
|
-
.join('');
|
|
843
|
-
}
|
|
844
|
-
// Parse RGB components and calculate background luminance
|
|
845
|
-
const r = parseInt(hex.substring(0, 2), 16);
|
|
846
|
-
const g = parseInt(hex.substring(2, 4), 16);
|
|
847
|
-
const b = parseInt(hex.substring(4, 6), 16);
|
|
848
|
-
const bgLuminance = getRelativeLuminance(r, g, b);
|
|
849
|
-
// Convert to HSL to extract hue
|
|
850
|
-
const [hue] = hexToHsl(backgroundColor);
|
|
851
|
-
// Determine if background is light or dark
|
|
852
|
-
const isLightBackground = bgLuminance > 0.5;
|
|
853
|
-
// Use fixed saturation and lightness based on background lightness
|
|
854
|
-
// For light backgrounds: use dark text (low lightness, high saturation)
|
|
855
|
-
// For dark backgrounds: use light text (high lightness, high saturation)
|
|
856
|
-
const saturation = 70; // Fixed saturation for good readability
|
|
857
|
-
const lightness = isLightBackground ? 25 : 85; // Dark for light bg, light for dark bg
|
|
858
|
-
// Generate the color with the same hue but adjusted saturation and lightness
|
|
859
|
-
return hslToHex(hue, saturation, lightness);
|
|
860
|
-
}
|
|
861
733
|
export function sortObject(o) {
|
|
862
734
|
return Object.keys(o)
|
|
863
735
|
.sort()
|
|
@@ -1642,33 +1514,3 @@ export function getQueryStmtCountHeuristic(query) {
|
|
|
1642
1514
|
}
|
|
1643
1515
|
return count;
|
|
1644
1516
|
}
|
|
1645
|
-
export function countChars(str, char) {
|
|
1646
|
-
let count = 0;
|
|
1647
|
-
for (let i = 0; i < str.length; i++) {
|
|
1648
|
-
if (str[i] === char) {
|
|
1649
|
-
count++;
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
return count;
|
|
1653
|
-
}
|
|
1654
|
-
export function buildReactiveObj(fields) {
|
|
1655
|
-
const obj = {};
|
|
1656
|
-
for (const key in fields) {
|
|
1657
|
-
Object.defineProperty(obj, key, {
|
|
1658
|
-
get: fields[key][0],
|
|
1659
|
-
set: fields[key][1],
|
|
1660
|
-
enumerable: true,
|
|
1661
|
-
configurable: true
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
|
-
return obj;
|
|
1665
|
-
}
|
|
1666
|
-
export function pick(obj, keys) {
|
|
1667
|
-
const result = {};
|
|
1668
|
-
for (const key of keys) {
|
|
1669
|
-
if (key in obj) {
|
|
1670
|
-
result[key] = obj[key];
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
return result;
|
|
1674
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.623.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build",
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"generate-backend-client": "openapi-ts --input ../backend/windmill-api/openapi.yaml --output ./src/lib/gen --useOptions --enums javascript --format false",
|
|
16
16
|
"generate-backend-client-mac": "openapi-ts --input ../backend/windmill-api/openapi.yaml --output ./src/lib/gen --useOptions --enums javascript",
|
|
17
17
|
"pretest": "tsc --incremental -p tests/tsconfig.json",
|
|
18
|
-
"test": "playwright test --config=tests-out/playwright.config.js && npm run test:unit -- --run",
|
|
19
18
|
"filter-classes": "node filterTailwindClasses.js",
|
|
20
|
-
"test:unit": "vitest"
|
|
19
|
+
"test:unit": "vitest",
|
|
20
|
+
"test:e2e": "playwright test"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@floating-ui/core": "^1.3.1",
|
|
24
24
|
"@hey-api/openapi-ts": "^0.43.0",
|
|
25
25
|
"@melt-ui/pp": "^0.3.2",
|
|
26
26
|
"@melt-ui/svelte": "^0.86.2",
|
|
27
|
-
"@playwright/test": "^1.
|
|
27
|
+
"@playwright/test": "^1.57.0",
|
|
28
28
|
"@sveltejs/adapter-static": "^3.0.6",
|
|
29
29
|
"@sveltejs/kit": "^2.49.2",
|
|
30
30
|
"@sveltejs/package": "^2.3.7",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"@types/vscode": "^1.83.5",
|
|
39
39
|
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
40
40
|
"@typescript-eslint/parser": "^5.60.0",
|
|
41
|
-
"@vitest/browser-playwright": "^4.0.10",
|
|
42
41
|
"@zerodevx/svelte-toast": "^0.9.6",
|
|
43
42
|
"autoprefixer": "^10.4.13",
|
|
44
43
|
"cssnano": "^6.0.1",
|
|
@@ -50,7 +49,6 @@
|
|
|
50
49
|
"json-refs": "^3.0.15",
|
|
51
50
|
"json-schema-to-zod": "^2.7.0",
|
|
52
51
|
"path-browserify": "^1.0.1",
|
|
53
|
-
"playwright": "^1.56.1",
|
|
54
52
|
"postcss": "^8.4.49",
|
|
55
53
|
"postcss-load-config": "^4.0.1",
|
|
56
54
|
"prettier": "^3.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare let base: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isCloudHosted(): boolean;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import type { Script, ScriptLang } from './gen';
|
|
2
|
-
export type OwnerKind = 'group' | 'user' | 'folder';
|
|
3
|
-
export type ActionKind = 'Create' | 'Update' | 'Delete' | 'Execute';
|
|
4
|
-
export type SupportedLanguage = Script['language'];
|
|
5
|
-
export interface PropertyDisplayInfo {
|
|
6
|
-
property: SchemaProperty;
|
|
7
|
-
name: string;
|
|
8
|
-
isRequired: boolean;
|
|
9
|
-
path: string[];
|
|
10
|
-
index: number;
|
|
11
|
-
propertiesNumber: number;
|
|
12
|
-
}
|
|
13
|
-
export type EnumType = string[] | {
|
|
14
|
-
value: string;
|
|
15
|
-
label: string;
|
|
16
|
-
}[] | undefined;
|
|
17
|
-
export interface SchemaProperty {
|
|
18
|
-
type: string | undefined;
|
|
19
|
-
description?: string;
|
|
20
|
-
pattern?: string;
|
|
21
|
-
default?: any;
|
|
22
|
-
enum?: EnumType;
|
|
23
|
-
contentEncoding?: 'base64' | 'binary';
|
|
24
|
-
format?: string;
|
|
25
|
-
items?: {
|
|
26
|
-
type?: 'string' | 'number' | 'bytes' | 'object' | 'resource';
|
|
27
|
-
contentEncoding?: 'base64';
|
|
28
|
-
enum?: string[];
|
|
29
|
-
resourceType?: string;
|
|
30
|
-
properties?: {
|
|
31
|
-
[name: string]: SchemaProperty;
|
|
32
|
-
};
|
|
33
|
-
required?: string[];
|
|
34
|
-
};
|
|
35
|
-
min?: number;
|
|
36
|
-
max?: number;
|
|
37
|
-
currency?: string;
|
|
38
|
-
currencyLocale?: string;
|
|
39
|
-
multiselect?: boolean;
|
|
40
|
-
customErrorMessage?: string;
|
|
41
|
-
properties?: {
|
|
42
|
-
[name: string]: SchemaProperty;
|
|
43
|
-
};
|
|
44
|
-
required?: string[];
|
|
45
|
-
showExpr?: string;
|
|
46
|
-
hideWhenChatEnabled?: boolean;
|
|
47
|
-
password?: boolean;
|
|
48
|
-
order?: string[];
|
|
49
|
-
nullable?: boolean;
|
|
50
|
-
dateFormat?: string;
|
|
51
|
-
title?: string;
|
|
52
|
-
placeholder?: string;
|
|
53
|
-
oneOf?: SchemaProperty[];
|
|
54
|
-
originalType?: string;
|
|
55
|
-
disabled?: boolean;
|
|
56
|
-
'x-no-s3-storage-workspace-warning'?: string;
|
|
57
|
-
'x-auto-generate'?: boolean;
|
|
58
|
-
}
|
|
59
|
-
export interface ModalSchemaProperty {
|
|
60
|
-
selectedType?: string;
|
|
61
|
-
description: string;
|
|
62
|
-
name: string;
|
|
63
|
-
required: boolean;
|
|
64
|
-
min?: number;
|
|
65
|
-
max?: number;
|
|
66
|
-
currency?: string;
|
|
67
|
-
currencyLocale?: string;
|
|
68
|
-
multiselect?: boolean;
|
|
69
|
-
format?: string;
|
|
70
|
-
pattern?: string;
|
|
71
|
-
enum_?: EnumType;
|
|
72
|
-
default?: any;
|
|
73
|
-
items?: {
|
|
74
|
-
type?: 'string' | 'number';
|
|
75
|
-
enum?: string[];
|
|
76
|
-
};
|
|
77
|
-
contentEncoding?: 'base64' | 'binary';
|
|
78
|
-
schema?: Schema;
|
|
79
|
-
customErrorMessage?: string;
|
|
80
|
-
showExpr?: string;
|
|
81
|
-
password?: boolean;
|
|
82
|
-
nullable?: boolean;
|
|
83
|
-
dateFormat?: string;
|
|
84
|
-
title?: string;
|
|
85
|
-
placeholder?: string;
|
|
86
|
-
oneOf?: SchemaProperty[];
|
|
87
|
-
}
|
|
88
|
-
export declare function modalToSchema(schema: ModalSchemaProperty): SchemaProperty;
|
|
89
|
-
export type Schema = {
|
|
90
|
-
$schema: string | undefined;
|
|
91
|
-
type: string;
|
|
92
|
-
'x-windmill-dyn-select-code'?: string;
|
|
93
|
-
'x-windmill-dyn-select-lang'?: ScriptLang;
|
|
94
|
-
properties: {
|
|
95
|
-
[name: string]: SchemaProperty;
|
|
96
|
-
};
|
|
97
|
-
order?: string[];
|
|
98
|
-
required: string[];
|
|
99
|
-
};
|
|
100
|
-
export declare function mergeSchema(schema: Schema | Record<string, any>, enum_payload?: Record<string, any>): Schema | Record<string, any>;
|
|
101
|
-
export type Meta = {
|
|
102
|
-
ownerKind: OwnerKind;
|
|
103
|
-
owner: string;
|
|
104
|
-
name: string;
|
|
105
|
-
};
|
|
106
|
-
type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
|
|
107
|
-
/** An inclusive range of integer numbers */
|
|
108
|
-
export type IntRange<F extends number, T extends number> = F | Exclude<Enumerate<T>, Enumerate<F>> | T;
|
|
109
|
-
export declare function pathToMeta(path: string, hideUser: boolean): Meta;
|
|
110
|
-
export declare function prettyLanguage(lang: string): string;
|
|
111
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { AppInput } from '$lib/components/apps/inputType';
|
|
2
|
-
import type { DbType, DbInput } from '$lib/components/dbTypes';
|
|
3
|
-
import { type ColumnDef } from '../utils';
|
|
4
|
-
export declare function makeCountQuery(dbType: DbType, table: string, whereClause: string | undefined, columnDefs: ColumnDef[]): string;
|
|
5
|
-
export declare function getCountInput(dbInput: DbInput, table: string, columnDefs: ColumnDef[], whereClause: string | undefined): AppInput | undefined;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { AppInput } from '$lib/components/apps/inputType';
|
|
2
|
-
import type { DbType, DbInput } from '$lib/components/dbTypes';
|
|
3
|
-
import { type ColumnDef } from '../utils';
|
|
4
|
-
export declare function makeDeleteQuery(table: string, columns: ColumnDef[], dbType: DbType): string;
|
|
5
|
-
export declare function getDeleteInput(dbInput: DbInput, table: string, columns: ColumnDef[]): AppInput | undefined;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { AppInput } from '$lib/components/apps/inputType';
|
|
2
|
-
import type { DbType, DbInput } from '$lib/components/dbTypes';
|
|
3
|
-
import { type ColumnDef } from '../utils';
|
|
4
|
-
export declare function makeInsertQuery(table: string, columns: ColumnDef[], dbType: DbType): string;
|
|
5
|
-
export declare function getInsertInput(dbInput: DbInput, table: string, columns: ColumnDef[]): AppInput;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AppInput } from '$lib/components/apps/inputType';
|
|
2
|
-
import type { DbType, DbInput } from '$lib/components/dbTypes';
|
|
3
|
-
import { type ColumnDef } from '../utils';
|
|
4
|
-
export declare function makeSelectQuery(table: string, columnDefs: ColumnDef[], whereClause: string | undefined, dbType: DbType, options?: {
|
|
5
|
-
limit?: number;
|
|
6
|
-
offset?: number;
|
|
7
|
-
}, breakingFeatures?: {
|
|
8
|
-
fixPgIntTypes?: boolean;
|
|
9
|
-
}): string;
|
|
10
|
-
export declare function getSelectInput(dbInput: DbInput, table: string | undefined, columnDefs: ColumnDef[], whereClause: string | undefined, options?: {
|
|
11
|
-
limit?: number;
|
|
12
|
-
offset?: number;
|
|
13
|
-
}): AppInput | undefined;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AppInput } from '$lib/components/apps/inputType';
|
|
2
|
-
import type { DbInput, DbType } from '$lib/components/dbTypes';
|
|
3
|
-
import { type ColumnDef } from '../utils';
|
|
4
|
-
export declare function makeUpdateQuery(table: string, column: {
|
|
5
|
-
datatype: string;
|
|
6
|
-
field: string;
|
|
7
|
-
}, columns: {
|
|
8
|
-
datatype: string;
|
|
9
|
-
field: string;
|
|
10
|
-
}[], dbType: DbType): string;
|
|
11
|
-
export declare function getUpdateInput(dbInput: DbInput, table: string, column: ColumnDef, columns: ColumnDef[]): AppInput | undefined;
|