@trilogy-data/trilogy-studio-components 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/ChatCreatorModal-DTcvWDQi.js +192 -0
- package/dist/Dashboard-C8re96eZ.js +5104 -0
- package/dist/DashboardCreatorInline-Do-CDJgS.js +150 -0
- package/dist/DashboardMobile-BOrq0rBy.js +310 -0
- package/dist/LLMConnectionList-DVM5t-P2.js +4692 -0
- package/dist/LLMView-lUTKOMbr.js +558 -0
- package/dist/Manager-CXJNoqU2.js +4 -0
- package/dist/ResultComponent-C4EGIBY0.js +155 -0
- package/dist/Sidebar-BGKtM2n0.js +1841 -0
- package/dist/TutorialPage-CGjDXmYk.js +482 -0
- package/dist/WelcomePage-C6obXIyG.js +75 -0
- package/dist/abap-D0Neqhq6.js +1404 -0
- package/dist/apex-B5LhxkeG.js +332 -0
- package/dist/azcli-BrBH0QTU.js +74 -0
- package/dist/bat-BfzAov64.js +106 -0
- package/dist/bicep-C3bCSWel.js +108 -0
- package/dist/cameligo-sFL5plcd.js +180 -0
- package/dist/chats/chat.d.ts +63 -0
- package/dist/chats/chat.d.ts.map +1 -0
- package/dist/chats/index.d.ts +3 -0
- package/dist/chats/index.d.ts.map +1 -0
- package/dist/clojure-CfeExRz0.js +767 -0
- package/dist/coffee-Xws5K0WL.js +238 -0
- package/dist/components/AssetAutoImporter.vue.d.ts +10 -0
- package/dist/components/AssetAutoImporter.vue.d.ts.map +1 -0
- package/dist/components/ChartControlPanel.vue.d.ts +54 -0
- package/dist/components/ChartControlPanel.vue.d.ts.map +1 -0
- package/dist/components/CodeBlock.vue.d.ts +39 -0
- package/dist/components/CodeBlock.vue.d.ts.map +1 -0
- package/dist/components/ConceptTable.vue.d.ts +16 -0
- package/dist/components/ConceptTable.vue.d.ts.map +1 -0
- package/dist/components/ContextMenu.vue.d.ts +67 -0
- package/dist/components/ContextMenu.vue.d.ts.map +1 -0
- package/dist/components/DataTable.vue.d.ts +204 -0
- package/dist/components/DataTable.vue.d.ts.map +1 -0
- package/dist/components/DrilldownPane.vue.d.ts +94 -0
- package/dist/components/DrilldownPane.vue.d.ts.map +1 -0
- package/dist/components/EditableTitle.vue.d.ts +32 -0
- package/dist/components/EditableTitle.vue.d.ts.map +1 -0
- package/dist/components/ErrorMessage.vue.d.ts +20 -0
- package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
- package/dist/components/HighlightComponent.vue.d.ts +21 -0
- package/dist/components/HighlightComponent.vue.d.ts.map +1 -0
- package/dist/components/HintComponent.vue.d.ts +12 -0
- package/dist/components/HintComponent.vue.d.ts.map +1 -0
- package/dist/components/InlineErrorMessage.vue.d.ts +3 -0
- package/dist/components/InlineErrorMessage.vue.d.ts.map +1 -0
- package/dist/components/LoadingButton.vue.d.ts +121 -0
- package/dist/components/LoadingButton.vue.d.ts.map +1 -0
- package/dist/components/LoadingView.vue.d.ts +21 -0
- package/dist/components/LoadingView.vue.d.ts.map +1 -0
- package/dist/components/MarkdownRenderer.vue.d.ts +39 -0
- package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
- package/dist/components/PopupModal.vue.d.ts +50 -0
- package/dist/components/PopupModal.vue.d.ts.map +1 -0
- package/dist/components/SimpleEditor.vue.d.ts +246 -0
- package/dist/components/SimpleEditor.vue.d.ts.map +1 -0
- package/dist/components/StatusIcon.vue.d.ts +9 -0
- package/dist/components/StatusIcon.vue.d.ts.map +1 -0
- package/dist/components/SymbolsPane.vue.d.ts +96 -0
- package/dist/components/SymbolsPane.vue.d.ts.map +1 -0
- package/dist/components/Tooltip.vue.d.ts +40 -0
- package/dist/components/Tooltip.vue.d.ts.map +1 -0
- package/dist/components/VegaLiteChart.vue.d.ts +183 -0
- package/dist/components/VegaLiteChart.vue.d.ts.map +1 -0
- package/dist/components/chartControlsManager.d.ts +50 -0
- package/dist/components/chartControlsManager.d.ts.map +1 -0
- package/dist/components/chartHelpers.d.ts +51 -0
- package/dist/components/chartHelpers.d.ts.map +1 -0
- package/dist/components/chartOperationsManager.d.ts +10 -0
- package/dist/components/chartOperationsManager.d.ts.map +1 -0
- package/dist/components/chartRenderManager.d.ts +26 -0
- package/dist/components/chartRenderManager.d.ts.map +1 -0
- package/dist/components/community/AddStoreModal.vue.d.ts +35 -0
- package/dist/components/community/AddStoreModal.vue.d.ts.map +1 -0
- package/dist/components/community/CommunityModelCard.vue.d.ts +33 -0
- package/dist/components/community/CommunityModelCard.vue.d.ts.map +1 -0
- package/dist/components/community/CommunityModelHeader.vue.d.ts +22 -0
- package/dist/components/community/CommunityModelHeader.vue.d.ts.map +1 -0
- package/dist/components/community/CommunityModels.vue.d.ts +19 -0
- package/dist/components/community/CommunityModels.vue.d.ts.map +1 -0
- package/dist/components/community/CommunityRemote.vue.d.ts +33 -0
- package/dist/components/community/CommunityRemote.vue.d.ts.map +1 -0
- package/dist/components/connection/ConnectionDatabase.vue.d.ts +153 -0
- package/dist/components/connection/ConnectionDatabase.vue.d.ts.map +1 -0
- package/dist/components/connection/ConnectionHistory.vue.d.ts +13 -0
- package/dist/components/connection/ConnectionHistory.vue.d.ts.map +1 -0
- package/dist/components/connection/ConnectionSchema.vue.d.ts +35 -0
- package/dist/components/connection/ConnectionSchema.vue.d.ts.map +1 -0
- package/dist/components/connection/ConnectionTable.vue.d.ts +251 -0
- package/dist/components/connection/ConnectionTable.vue.d.ts.map +1 -0
- package/dist/components/connection/DatasourceTable.vue.d.ts +16 -0
- package/dist/components/connection/DatasourceTable.vue.d.ts.map +1 -0
- package/dist/components/dashboard/Dashboard.vue.d.ts +13 -0
- package/dist/components/dashboard/Dashboard.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardAddItemModal.vue.d.ts +13 -0
- package/dist/components/dashboard/DashboardAddItemModal.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardCTA.vue.d.ts +12 -0
- package/dist/components/dashboard/DashboardCTA.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardChart.vue.d.ts +427 -0
- package/dist/components/dashboard/DashboardChart.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardChartEditor.vue.d.ts +325 -0
- package/dist/components/dashboard/DashboardChartEditor.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +52 -0
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardCreatorInline.vue.d.ts +36 -0
- package/dist/components/dashboard/DashboardCreatorInline.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardDataSelector.vue.d.ts +221 -0
- package/dist/components/dashboard/DashboardDataSelector.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardFilter.vue.d.ts +346 -0
- package/dist/components/dashboard/DashboardFilter.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardFilterAutocomplete.vue.d.ts +38 -0
- package/dist/components/dashboard/DashboardFilterAutocomplete.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardGridItem.vue.d.ts +31 -0
- package/dist/components/dashboard/DashboardGridItem.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardHeader.vue.d.ts +71 -0
- package/dist/components/dashboard/DashboardHeader.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardHeaderFilterInput.vue.d.ts +50 -0
- package/dist/components/dashboard/DashboardHeaderFilterInput.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardImportPopup.vue.d.ts +12 -0
- package/dist/components/dashboard/DashboardImportPopup.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardImportSelector.vue.d.ts +14 -0
- package/dist/components/dashboard/DashboardImportSelector.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardMarkdown.vue.d.ts +175 -0
- package/dist/components/dashboard/DashboardMarkdown.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardMarkdownEditor.vue.d.ts +325 -0
- package/dist/components/dashboard/DashboardMarkdownEditor.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardMobile.vue.d.ts +8 -0
- package/dist/components/dashboard/DashboardMobile.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardSharePopup.vue.d.ts +14 -0
- package/dist/components/dashboard/DashboardSharePopup.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardTable.vue.d.ts +332 -0
- package/dist/components/dashboard/DashboardTable.vue.d.ts.map +1 -0
- package/dist/components/dashboard/useDashboard.d.ts +96 -0
- package/dist/components/dashboard/useDashboard.d.ts.map +1 -0
- package/dist/components/editor/Editor.vue.d.ts +816 -0
- package/dist/components/editor/Editor.vue.d.ts.map +1 -0
- package/dist/components/editor/EditorCode.vue.d.ts +49 -0
- package/dist/components/editor/EditorCode.vue.d.ts.map +1 -0
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts +61 -0
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/editor/EditorCreatorInline.vue.d.ts +95 -0
- package/dist/components/editor/EditorCreatorInline.vue.d.ts.map +1 -0
- package/dist/components/editor/EditorHeader.vue.d.ts +185 -0
- package/dist/components/editor/EditorHeader.vue.d.ts.map +1 -0
- package/dist/components/editor/ResultComponent.vue.d.ts +1095 -0
- package/dist/components/editor/ResultComponent.vue.d.ts.map +1 -0
- package/dist/components/editor/Results.vue.d.ts +755 -0
- package/dist/components/editor/Results.vue.d.ts.map +1 -0
- package/dist/components/editor/editorHelpers.d.ts +45 -0
- package/dist/components/editor/editorHelpers.d.ts.map +1 -0
- package/dist/components/editor/events.d.ts +4 -0
- package/dist/components/editor/events.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/layout/MobileSidebarLayout.vue.d.ts +48 -0
- package/dist/components/layout/MobileSidebarLayout.vue.d.ts.map +1 -0
- package/dist/components/layout/SidebarLayout.vue.d.ts +20 -0
- package/dist/components/layout/SidebarLayout.vue.d.ts.map +1 -0
- package/dist/components/layout/TabDropdownItem.vue.d.ts +73 -0
- package/dist/components/layout/TabDropdownItem.vue.d.ts.map +1 -0
- package/dist/components/layout/TabbedBrowser.vue.d.ts +42 -0
- package/dist/components/layout/TabbedBrowser.vue.d.ts.map +1 -0
- package/dist/components/layout/TabbedLayout.vue.d.ts +5 -0
- package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -0
- package/dist/components/layout/VerticalSplitLayout.vue.d.ts +13 -0
- package/dist/components/layout/VerticalSplitLayout.vue.d.ts.map +1 -0
- package/dist/components/llm/ChatArtifact.vue.d.ts +470 -0
- package/dist/components/llm/ChatArtifact.vue.d.ts.map +1 -0
- package/dist/components/llm/ChatCreatorModal.vue.d.ts +87 -0
- package/dist/components/llm/ChatCreatorModal.vue.d.ts.map +1 -0
- package/dist/components/llm/LLMChat.vue.d.ts +260 -0
- package/dist/components/llm/LLMChat.vue.d.ts.map +1 -0
- package/dist/components/llm/LLMChatRefinement.vue.d.ts +135 -0
- package/dist/components/llm/LLMChatRefinement.vue.d.ts.map +1 -0
- package/dist/components/llm/LLMChatSplitView.vue.d.ts +2029 -0
- package/dist/components/llm/LLMChatSplitView.vue.d.ts.map +1 -0
- package/dist/components/llm/LLMValidationView.vue.d.ts +106 -0
- package/dist/components/llm/LLMValidationView.vue.d.ts.map +1 -0
- package/dist/components/llm/index.d.ts +6 -0
- package/dist/components/llm/index.d.ts.map +1 -0
- package/dist/components/model/ModelCard.vue.d.ts +1113 -0
- package/dist/components/model/ModelCard.vue.d.ts.map +1 -0
- package/dist/components/model/ModelConcept.vue.d.ts +14 -0
- package/dist/components/model/ModelConcept.vue.d.ts.map +1 -0
- package/dist/components/model/ModelCreator.vue.d.ts +241 -0
- package/dist/components/model/ModelCreator.vue.d.ts.map +1 -0
- package/dist/components/model/ModelSelector.vue.d.ts +9 -0
- package/dist/components/model/ModelSelector.vue.d.ts.map +1 -0
- package/dist/components/sidebar/CommunityModelListItem.vue.d.ts +26 -0
- package/dist/components/sidebar/CommunityModelListItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionCreatorInline.vue.d.ts +68 -0
- package/dist/components/sidebar/ConnectionCreatorInline.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionIcon.vue.d.ts +6 -0
- package/dist/components/sidebar/ConnectionIcon.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionList.vue.d.ts +714 -0
- package/dist/components/sidebar/ConnectionList.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionListItem.vue.d.ts +317 -0
- package/dist/components/sidebar/ConnectionListItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionRefresh.vue.d.ts +15 -0
- package/dist/components/sidebar/ConnectionRefresh.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ConnectionStatusIcon.vue.d.ts +11 -0
- package/dist/components/sidebar/ConnectionStatusIcon.vue.d.ts.map +1 -0
- package/dist/components/sidebar/CreateEditorFromDatasourcePopup.vue.d.ts +15 -0
- package/dist/components/sidebar/CreateEditorFromDatasourcePopup.vue.d.ts.map +1 -0
- package/dist/components/sidebar/DashboardList.vue.d.ts +684 -0
- package/dist/components/sidebar/DashboardList.vue.d.ts.map +1 -0
- package/dist/components/sidebar/DashboardListItem.vue.d.ts +343 -0
- package/dist/components/sidebar/DashboardListItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/DuckDBImporter.vue.d.ts +24 -0
- package/dist/components/sidebar/DuckDBImporter.vue.d.ts.map +1 -0
- package/dist/components/sidebar/EditorList.vue.d.ts +590 -0
- package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -0
- package/dist/components/sidebar/EditorListItem.vue.d.ts +260 -0
- package/dist/components/sidebar/EditorListItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/GenericSidebarItem.vue.d.ts +91 -0
- package/dist/components/sidebar/GenericSidebarItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts +178 -0
- package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts.map +1 -0
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts +978 -0
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -0
- package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts +404 -0
- package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts.map +1 -0
- package/dist/components/sidebar/LLMProviderIcon.vue.d.ts +13 -0
- package/dist/components/sidebar/LLMProviderIcon.vue.d.ts.map +1 -0
- package/dist/components/sidebar/ModelSidebar.vue.d.ts +558 -0
- package/dist/components/sidebar/ModelSidebar.vue.d.ts.map +1 -0
- package/dist/components/sidebar/SidebarList.vue.d.ts +16 -0
- package/dist/components/sidebar/SidebarList.vue.d.ts.map +1 -0
- package/dist/components/sidebar/TutorialSidebar.vue.d.ts +134 -0
- package/dist/components/sidebar/TutorialSidebar.vue.d.ts.map +1 -0
- package/dist/components/tutorial/TutorialFunction.vue.d.ts +38 -0
- package/dist/components/tutorial/TutorialFunction.vue.d.ts.map +1 -0
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts +2002 -0
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -0
- package/dist/components/user/UserProfile.vue.d.ts +11 -0
- package/dist/components/user/UserProfile.vue.d.ts.map +1 -0
- package/dist/components/user/UserSettings.vue.d.ts +129 -0
- package/dist/components/user/UserSettings.vue.d.ts.map +1 -0
- package/dist/composables/ResizeHandles.vue.d.ts +6 -0
- package/dist/composables/ResizeHandles.vue.d.ts.map +1 -0
- package/dist/composables/useChatWithTools.d.ts +62 -0
- package/dist/composables/useChatWithTools.d.ts.map +1 -0
- package/dist/composables/useResizableDialog.d.ts +30 -0
- package/dist/composables/useResizableDialog.d.ts.map +1 -0
- package/dist/composables/useTrilogyChat.d.ts +61 -0
- package/dist/composables/useTrilogyChat.d.ts.map +1 -0
- package/dist/composables/useTrilogyCore.d.ts +51 -0
- package/dist/composables/useTrilogyCore.d.ts.map +1 -0
- package/dist/connections/base.d.ts +86 -0
- package/dist/connections/base.d.ts.map +1 -0
- package/dist/connections/bigquery_oauth.d.ts +35 -0
- package/dist/connections/bigquery_oauth.d.ts.map +1 -0
- package/dist/connections/bigquery_sa.d.ts +2 -0
- package/dist/connections/bigquery_sa.d.ts.map +1 -0
- package/dist/connections/constants.d.ts +2 -0
- package/dist/connections/constants.d.ts.map +1 -0
- package/dist/connections/duckdb.d.ts +43 -0
- package/dist/connections/duckdb.d.ts.map +1 -0
- package/dist/connections/helpers.d.ts +30 -0
- package/dist/connections/helpers.d.ts.map +1 -0
- package/dist/connections/index.d.ts +7 -0
- package/dist/connections/index.d.ts.map +1 -0
- package/dist/connections/motherduck.d.ts +19 -0
- package/dist/connections/motherduck.d.ts.map +1 -0
- package/dist/connections/snowflake.d.ts +94 -0
- package/dist/connections/snowflake.d.ts.map +1 -0
- package/dist/connections/sql_server.d.ts +2 -0
- package/dist/connections/sql_server.d.ts.map +1 -0
- package/dist/cpp-CqOUEpxN.js +395 -0
- package/dist/csharp-DVLiBOZb.js +332 -0
- package/dist/csp-DVFp9bw5.js +59 -0
- package/dist/css-DwARn2R6.js +193 -0
- package/dist/cssMode-Cr0iq_nL.js +1577 -0
- package/dist/cypher-uY0Mffat.js +269 -0
- package/dist/dart-D27H-mX_.js +287 -0
- package/dist/dashboards/barChartSpec.d.ts +28 -0
- package/dist/dashboards/barChartSpec.d.ts.map +1 -0
- package/dist/dashboards/barHChartSpec.d.ts +28 -0
- package/dist/dashboards/barHChartSpec.d.ts.map +1 -0
- package/dist/dashboards/base.d.ts +176 -0
- package/dist/dashboards/base.d.ts.map +1 -0
- package/dist/dashboards/beeSwarmSpec.d.ts +150 -0
- package/dist/dashboards/beeSwarmSpec.d.ts.map +1 -0
- package/dist/dashboards/conditions.d.ts +8 -0
- package/dist/dashboards/conditions.d.ts.map +1 -0
- package/dist/dashboards/conditionsParameters.d.ts +11 -0
- package/dist/dashboards/conditionsParameters.d.ts.map +1 -0
- package/dist/dashboards/constants.d.ts +22 -0
- package/dist/dashboards/constants.d.ts.map +1 -0
- package/dist/dashboards/countryLookup.d.ts +15 -0
- package/dist/dashboards/countryLookup.d.ts.map +1 -0
- package/dist/dashboards/d3utility.d.ts +7 -0
- package/dist/dashboards/d3utility.d.ts.map +1 -0
- package/dist/dashboards/dashboardQueryExecutor.d.ts +142 -0
- package/dist/dashboards/dashboardQueryExecutor.d.ts.map +1 -0
- package/dist/dashboards/donutSpec.d.ts +74 -0
- package/dist/dashboards/donutSpec.d.ts.map +1 -0
- package/dist/dashboards/formatting.d.ts +11 -0
- package/dist/dashboards/formatting.d.ts.map +1 -0
- package/dist/dashboards/headlineSpec.d.ts +23 -0
- package/dist/dashboards/headlineSpec.d.ts.map +1 -0
- package/dist/dashboards/heatmapSpec.d.ts +30 -0
- package/dist/dashboards/heatmapSpec.d.ts.map +1 -0
- package/dist/dashboards/helpers.d.ts +73 -0
- package/dist/dashboards/helpers.d.ts.map +1 -0
- package/dist/dashboards/index.d.ts +3 -0
- package/dist/dashboards/index.d.ts.map +1 -0
- package/dist/dashboards/lineAreaSpec.d.ts +177 -0
- package/dist/dashboards/lineAreaSpec.d.ts.map +1 -0
- package/dist/dashboards/mapSpec.d.ts +431 -0
- package/dist/dashboards/mapSpec.d.ts.map +1 -0
- package/dist/dashboards/pointSpec.d.ts +27 -0
- package/dist/dashboards/pointSpec.d.ts.map +1 -0
- package/dist/dashboards/prompts.d.ts +31 -0
- package/dist/dashboards/prompts.d.ts.map +1 -0
- package/dist/dashboards/spec.d.ts +19 -0
- package/dist/dashboards/spec.d.ts.map +1 -0
- package/dist/dashboards/treeSpec.d.ts +3 -0
- package/dist/dashboards/treeSpec.d.ts.map +1 -0
- package/dist/dashboards/types.d.ts +70 -0
- package/dist/dashboards/types.d.ts.map +1 -0
- package/dist/data/connectionHistoryStorage.d.ts +25 -0
- package/dist/data/connectionHistoryStorage.d.ts.map +1 -0
- package/dist/data/constants.d.ts +4 -0
- package/dist/data/constants.d.ts.map +1 -0
- package/dist/data/credentialHelpers.d.ts +30 -0
- package/dist/data/credentialHelpers.d.ts.map +1 -0
- package/dist/data/credentialService.d.ts +80 -0
- package/dist/data/credentialService.d.ts.map +1 -0
- package/dist/data/githubStorage.d.ts +54 -0
- package/dist/data/githubStorage.d.ts.map +1 -0
- package/dist/data/index.d.ts +3 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/localStorage.d.ts +48 -0
- package/dist/data/localStorage.d.ts.map +1 -0
- package/dist/data/storage.d.ts +33 -0
- package/dist/data/storage.d.ts.map +1 -0
- package/dist/data/tips.d.ts +12 -0
- package/dist/data/tips.d.ts.map +1 -0
- package/dist/data/tutorial/builtinFunctions.d.ts +3 -0
- package/dist/data/tutorial/builtinFunctions.d.ts.map +1 -0
- package/dist/data/tutorial/dashboardTutorial.d.ts +3 -0
- package/dist/data/tutorial/dashboardTutorial.d.ts.map +1 -0
- package/dist/data/tutorial/demoSetup.d.ts +6 -0
- package/dist/data/tutorial/demoSetup.d.ts.map +1 -0
- package/dist/data/tutorial/docTypes.d.ts +37 -0
- package/dist/data/tutorial/docTypes.d.ts.map +1 -0
- package/dist/data/tutorial/documentation.d.ts +3 -0
- package/dist/data/tutorial/documentation.d.ts.map +1 -0
- package/dist/data/tutorial/functionsReference.d.ts +3 -0
- package/dist/data/tutorial/functionsReference.d.ts.map +1 -0
- package/dist/data/tutorial/introTutorial.d.ts +3 -0
- package/dist/data/tutorial/introTutorial.d.ts.map +1 -0
- package/dist/data/tutorial/llmTutorial.d.ts +3 -0
- package/dist/data/tutorial/llmTutorial.d.ts.map +1 -0
- package/dist/data/tutorial/modelReference.d.ts +3 -0
- package/dist/data/tutorial/modelReference.d.ts.map +1 -0
- package/dist/data/tutorial/modelTutorial.d.ts +3 -0
- package/dist/data/tutorial/modelTutorial.d.ts.map +1 -0
- package/dist/data/tutorial/reference.d.ts +3 -0
- package/dist/data/tutorial/reference.d.ts.map +1 -0
- package/dist/data/tutorial/terms_of_service.d.ts +3 -0
- package/dist/data/tutorial/terms_of_service.d.ts.map +1 -0
- package/dist/data/tutorial/windowFunctionsReference.d.ts +3 -0
- package/dist/data/tutorial/windowFunctionsReference.d.ts.map +1 -0
- package/dist/dockerfile-CmV85WZK.js +136 -0
- package/dist/ecl--fKn7yzB.js +462 -0
- package/dist/editors/editor.d.ts +82 -0
- package/dist/editors/editor.d.ts.map +1 -0
- package/dist/editors/helpers.d.ts +12 -0
- package/dist/editors/helpers.d.ts.map +1 -0
- package/dist/editors/index.d.ts +3 -0
- package/dist/editors/index.d.ts.map +1 -0
- package/dist/editors/results.d.ts +61 -0
- package/dist/editors/results.d.ts.map +1 -0
- package/dist/elixir-DUhH17ON.js +575 -0
- package/dist/events/display.d.ts +9 -0
- package/dist/events/display.d.ts.map +1 -0
- package/dist/flow9-B3Dx2LLe.js +148 -0
- package/dist/freemarker2-de_cA50e.js +995 -0
- package/dist/fsharp-SyqBfUAR.js +223 -0
- package/dist/go-BbMR2tdT.js +224 -0
- package/dist/graphql-DDJE6tIl.js +157 -0
- package/dist/handlebars-C8f44E5O.js +425 -0
- package/dist/hcl-YBvpaUqf.js +189 -0
- package/dist/html-qaggIh0W.js +314 -0
- package/dist/html2canvas.esm-dgT_1dIT.js +4871 -0
- package/dist/htmlMode-xYurYOLw.js +1587 -0
- package/dist/ini-Ct73dBtM.js +77 -0
- package/dist/java-C_jlkwoG.js +238 -0
- package/dist/javascript-DeLkSgQX.js +76 -0
- package/dist/jsonMode-BM-L8w8F.js +2002 -0
- package/dist/julia-D8WE5U1e.js +517 -0
- package/dist/kotlin-Zy9aq5yB.js +259 -0
- package/dist/language/constants.d.ts +6 -0
- package/dist/language/constants.d.ts.map +1 -0
- package/dist/language/index.d.ts +2 -0
- package/dist/language/index.d.ts.map +1 -0
- package/dist/less-sZ0iHtE8.js +168 -0
- package/dist/lexon-CsdNL29A.js +163 -0
- package/dist/liquid-DLNUrc5y.js +246 -0
- package/dist/llm/anthropic.d.ts +13 -0
- package/dist/llm/anthropic.d.ts.map +1 -0
- package/dist/llm/base.d.ts +63 -0
- package/dist/llm/base.d.ts.map +1 -0
- package/dist/llm/chatAgentPrompt.d.ts +166 -0
- package/dist/llm/chatAgentPrompt.d.ts.map +1 -0
- package/dist/llm/chatHelpers.d.ts +23 -0
- package/dist/llm/chatHelpers.d.ts.map +1 -0
- package/dist/llm/chatToolExecutor.d.ts +39 -0
- package/dist/llm/chatToolExecutor.d.ts.map +1 -0
- package/dist/llm/consts.d.ts +3 -0
- package/dist/llm/consts.d.ts.map +1 -0
- package/dist/llm/data/constants.d.ts +5 -0
- package/dist/llm/data/constants.d.ts.map +1 -0
- package/dist/llm/data/models.d.ts +8 -0
- package/dist/llm/data/models.d.ts.map +1 -0
- package/dist/llm/data/prompts.d.ts +7 -0
- package/dist/llm/data/prompts.d.ts.map +1 -0
- package/dist/llm/data/testCases.d.ts +13 -0
- package/dist/llm/data/testCases.d.ts.map +1 -0
- package/dist/llm/googlev2.d.ts +15 -0
- package/dist/llm/googlev2.d.ts.map +1 -0
- package/dist/llm/index.d.ts +11 -0
- package/dist/llm/index.d.ts.map +1 -0
- package/dist/llm/mistral.d.ts +11 -0
- package/dist/llm/mistral.d.ts.map +1 -0
- package/dist/llm/models.d.ts +8 -0
- package/dist/llm/models.d.ts.map +1 -0
- package/dist/llm/openAI.d.ts +13 -0
- package/dist/llm/openAI.d.ts.map +1 -0
- package/dist/llm/utils.d.ts +50 -0
- package/dist/llm/utils.d.ts.map +1 -0
- package/dist/lua-C2YJo0zw.js +168 -0
- package/dist/m3-CPLP40SG.js +216 -0
- package/dist/main-oVvKtGNk.js +203688 -0
- package/dist/main.css +1 -0
- package/dist/main.d.ts +23 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +22 -0
- package/dist/main.umd.cjs +2885 -0
- package/dist/markdown-B1mf5e0R.js +235 -0
- package/dist/mdx-BmG1effK.js +171 -0
- package/dist/mips-DA33BZX1.js +204 -0
- package/dist/models/helpers.d.ts +59 -0
- package/dist/models/helpers.d.ts.map +1 -0
- package/dist/models/import.d.ts +18 -0
- package/dist/models/import.d.ts.map +1 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/model.d.ts +241 -0
- package/dist/models/model.d.ts.map +1 -0
- package/dist/monaco/editorHelpers.d.ts +32 -0
- package/dist/monaco/editorHelpers.d.ts.map +1 -0
- package/dist/monaco/index.d.ts +2 -0
- package/dist/monaco/index.d.ts.map +1 -0
- package/dist/monaco/setup.d.ts +2 -0
- package/dist/monaco/setup.d.ts.map +1 -0
- package/dist/msdax-CCYFIQsP.js +381 -0
- package/dist/mysql-hjmIjL-D.js +884 -0
- package/dist/objective-c-RRCpEmqC.js +189 -0
- package/dist/pascal-CeV8XfxB.js +257 -0
- package/dist/pascaligo-IEEGVJAJ.js +170 -0
- package/dist/perl-B5-QbHq_.js +632 -0
- package/dist/pgsql-s6kqEJmi.js +857 -0
- package/dist/php-CWWqzOo8.js +506 -0
- package/dist/pla-FSvb_YP_.js +143 -0
- package/dist/postiats-DQdscQXO.js +913 -0
- package/dist/powerquery-CtA5JA1I.js +896 -0
- package/dist/powershell-DglEq96N.js +245 -0
- package/dist/prism-sql-8Y2-THrf.js +33 -0
- package/dist/protobuf-BSepub3e.js +426 -0
- package/dist/pug-B1847F4G.js +408 -0
- package/dist/python-BLXKu9hO.js +307 -0
- package/dist/qsharp-D4i0Nqg9.js +307 -0
- package/dist/r-cdRigKxa.js +249 -0
- package/dist/razor-DSEd6veI.js +556 -0
- package/dist/redis-D9MFxvE8.js +308 -0
- package/dist/redshift-CmCnsvL-.js +815 -0
- package/dist/remotes/constants.d.ts +2 -0
- package/dist/remotes/constants.d.ts.map +1 -0
- package/dist/remotes/displayHelpers.d.ts +67 -0
- package/dist/remotes/displayHelpers.d.ts.map +1 -0
- package/dist/remotes/modelApiService.d.ts +38 -0
- package/dist/remotes/modelApiService.d.ts.map +1 -0
- package/dist/remotes/models.d.ts +48 -0
- package/dist/remotes/models.d.ts.map +1 -0
- package/dist/remotes/storeService.d.ts +42 -0
- package/dist/remotes/storeService.d.ts.map +1 -0
- package/dist/restructuredtext-CWy8J51t.js +180 -0
- package/dist/ruby-WP-c36m5.js +517 -0
- package/dist/rust-Q9FLdYpu.js +349 -0
- package/dist/sb-C54-JBGT.js +121 -0
- package/dist/scala-CzbFImc5.js +376 -0
- package/dist/scheme-BhfDmYN3.js +114 -0
- package/dist/scss-CEmiBXpS.js +268 -0
- package/dist/shell-Bmc1VhG0.js +227 -0
- package/dist/solidity-C9Q2I8Hh.js +1373 -0
- package/dist/sophia-jWa1UyKz.js +205 -0
- package/dist/sparql-CM7jctbc.js +207 -0
- package/dist/sql-WzihTkbg.js +859 -0
- package/dist/st-6y7_3aup.js +422 -0
- package/dist/stores/CredentialManager.vue.d.ts +50 -0
- package/dist/stores/CredentialManager.vue.d.ts.map +1 -0
- package/dist/stores/Manager.vue.d.ts +100 -0
- package/dist/stores/Manager.vue.d.ts.map +1 -0
- package/dist/stores/analyticsStore.d.ts +42 -0
- package/dist/stores/analyticsStore.d.ts.map +1 -0
- package/dist/stores/chatStore.d.ts +153 -0
- package/dist/stores/chatStore.d.ts.map +1 -0
- package/dist/stores/communityApiStore.d.ts +206 -0
- package/dist/stores/communityApiStore.d.ts.map +1 -0
- package/dist/stores/connectionHistoryStore.d.ts +24 -0
- package/dist/stores/connectionHistoryStore.d.ts.map +1 -0
- package/dist/stores/connectionStore.d.ts +31 -0
- package/dist/stores/connectionStore.d.ts.map +1 -0
- package/dist/stores/dashboardStore.d.ts +122 -0
- package/dist/stores/dashboardStore.d.ts.map +1 -0
- package/dist/stores/editorStore.d.ts +44 -0
- package/dist/stores/editorStore.d.ts.map +1 -0
- package/dist/stores/index.d.ts +14 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/stores/llmStore.d.ts +90 -0
- package/dist/stores/llmStore.d.ts.map +1 -0
- package/dist/stores/modelStore.d.ts +29 -0
- package/dist/stores/modelStore.d.ts.map +1 -0
- package/dist/stores/queryExecutionService.d.ts +60 -0
- package/dist/stores/queryExecutionService.d.ts.map +1 -0
- package/dist/stores/resolver.d.ts +91 -0
- package/dist/stores/resolver.d.ts.map +1 -0
- package/dist/stores/urlStore.d.ts +6 -0
- package/dist/stores/urlStore.d.ts.map +1 -0
- package/dist/stores/useScreenNavigation.d.ts +53 -0
- package/dist/stores/useScreenNavigation.d.ts.map +1 -0
- package/dist/stores/userSettingsStore.d.ts +133 -0
- package/dist/stores/userSettingsStore.d.ts.map +1 -0
- package/dist/swift-k-0zxG_D.js +318 -0
- package/dist/systemverilog-Pnr5_rIP.js +582 -0
- package/dist/tcl-fNPXval8.js +238 -0
- package/dist/tsMode-CdypNzs1.js +895 -0
- package/dist/twig-L2MkztkV.js +398 -0
- package/dist/typescript-DZ5G39rT.js +349 -0
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/useDashboard-CPI83oAm.js +3352 -0
- package/dist/utility/debounce.d.ts +12 -0
- package/dist/utility/debounce.d.ts.map +1 -0
- package/dist/utility/markdownRenderer.d.ts +34 -0
- package/dist/utility/markdownRenderer.d.ts.map +1 -0
- package/dist/utility/testHelpers.d.ts +2 -0
- package/dist/utility/testHelpers.d.ts.map +1 -0
- package/dist/vb-B5YC2xN9.js +378 -0
- package/dist/views/ConnectionView.vue.d.ts +522 -0
- package/dist/views/ConnectionView.vue.d.ts.map +1 -0
- package/dist/views/CredentialBackgroundPage.vue.d.ts +3 -0
- package/dist/views/CredentialBackgroundPage.vue.d.ts.map +1 -0
- package/dist/views/IDEPlaceholder.vue.d.ts +3 -0
- package/dist/views/IDEPlaceholder.vue.d.ts.map +1 -0
- package/dist/views/LLMView.vue.d.ts +7758 -0
- package/dist/views/LLMView.vue.d.ts.map +1 -0
- package/dist/views/MobileIDEPlaceholder.vue.d.ts +3 -0
- package/dist/views/MobileIDEPlaceholder.vue.d.ts.map +1 -0
- package/dist/views/ModelView.vue.d.ts +2170 -0
- package/dist/views/ModelView.vue.d.ts.map +1 -0
- package/dist/views/ResponsiveIDE.vue.d.ts +3 -0
- package/dist/views/ResponsiveIDE.vue.d.ts.map +1 -0
- package/dist/views/TutorialPage.vue.d.ts +7835 -0
- package/dist/views/TutorialPage.vue.d.ts.map +1 -0
- package/dist/views/WelcomePage.vue.d.ts +13 -0
- package/dist/views/WelcomePage.vue.d.ts.map +1 -0
- package/dist/views/index.d.ts +3 -0
- package/dist/views/index.d.ts.map +1 -0
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/wgsl-B-_uRex7.js +445 -0
- package/dist/xml-DsUsyRQY.js +101 -0
- package/dist/yaml-BpA1BNpS.js +212 -0
- package/package.json +55 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { inject as m, ref as p, computed as D, createElementBlock as l, createCommentVNode as C, openBlock as i, createElementVNode as r, withDirectives as y, withKeys as E, vModelText as _, Fragment as k, renderList as I, toDisplayString as N, vModelSelect as P } from "vue";
|
|
2
|
+
import { a as V } from "./main-oVvKtGNk.js";
|
|
3
|
+
const F = {
|
|
4
|
+
name: "DashboardCreatorInline",
|
|
5
|
+
props: {
|
|
6
|
+
visible: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !1
|
|
9
|
+
},
|
|
10
|
+
testTag: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(x, { emit: e }) {
|
|
16
|
+
const o = m("dashboardStore"), t = m("connectionStore"), h = m("llmConnectionStore"), u = m("editorStore"), a = m("queryExecutionService"), w = m("saveDashboards");
|
|
17
|
+
if (!o || !t || !h || !a || !u || !w)
|
|
18
|
+
throw new Error("Dashboard or connection store is not provided!");
|
|
19
|
+
const v = p(""), c = p(""), g = p(""), n = p(""), T = D(() => h.hasActiveDefaultConnection), S = D(() => Object.values(t.connections).filter((d) => d.model)), b = D(() => Object.values(u.editors).filter(
|
|
20
|
+
(s) => s.connection === c.value
|
|
21
|
+
).map((s) => ({
|
|
22
|
+
id: s.id,
|
|
23
|
+
name: s.name,
|
|
24
|
+
alias: ""
|
|
25
|
+
})));
|
|
26
|
+
return D(() => (b.value.length > 0 && !n.value ? n.value = b.value[0].id : b.value.length === 0 && (n.value = ""), b.value)), S.value.length > 0 && !c.value && (c.value = S.value[0].name), {
|
|
27
|
+
dashboardName: v,
|
|
28
|
+
selectedConnection: c,
|
|
29
|
+
dashboardPrompt: g,
|
|
30
|
+
showPromptField: T,
|
|
31
|
+
connections: S,
|
|
32
|
+
availableImports: b,
|
|
33
|
+
selectedImport: n,
|
|
34
|
+
createDashboard: async () => {
|
|
35
|
+
if (!(!v.value || !c.value))
|
|
36
|
+
try {
|
|
37
|
+
const d = o.newDashboard(v.value, c.value), s = b.value.find((f) => f.id === n.value);
|
|
38
|
+
if (!s)
|
|
39
|
+
throw new Error("Selected import not found");
|
|
40
|
+
if (o.updateDashboardImports(d.id, [s]), v.value = "", n.value = "", w(), e("close"), o.setActiveDashboard(d.id), console.log("New dashboard created:", d.id), e("dashboard-created", d.id), T.value && g.value.trim()) {
|
|
41
|
+
const f = await o.generatePromptSpec(
|
|
42
|
+
g.value,
|
|
43
|
+
h,
|
|
44
|
+
a,
|
|
45
|
+
u
|
|
46
|
+
);
|
|
47
|
+
console.log("Prompt spec generated:", f), f && o.populateFromPromptSpec(
|
|
48
|
+
d.id,
|
|
49
|
+
f,
|
|
50
|
+
h,
|
|
51
|
+
a,
|
|
52
|
+
u
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
} catch (d) {
|
|
56
|
+
console.error("Failed to create dashboard:", d), alert(`Error creating dashboard: ${d instanceof Error ? d.message : String(d)}`);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
cancel: () => {
|
|
60
|
+
v.value = "", g.value = "", n.value = "", e("close");
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}, U = {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: "dashboard-creator"
|
|
67
|
+
}, j = { class: "form-group" }, B = ["data-testid"], M = { class: "form-group" }, q = ["data-testid"], A = ["value"], K = {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "form-group"
|
|
70
|
+
}, O = ["data-testid"], z = ["value"], L = {
|
|
71
|
+
key: 1,
|
|
72
|
+
class: "form-group"
|
|
73
|
+
}, G = ["data-testid"], H = { class: "form-actions" }, J = ["disabled", "data-testid"], Q = ["data-testid"];
|
|
74
|
+
function R(x, e, o, t, h, u) {
|
|
75
|
+
return o.visible ? (i(), l("div", U, [
|
|
76
|
+
e[11] || (e[11] = r("h4", null, "Create New Dashboard", -1)),
|
|
77
|
+
r("div", j, [
|
|
78
|
+
e[7] || (e[7] = r("label", { for: "dashboard-name" }, "Name", -1)),
|
|
79
|
+
y(r("input", {
|
|
80
|
+
id: "dashboard-name",
|
|
81
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => t.dashboardName = a),
|
|
82
|
+
type: "text",
|
|
83
|
+
placeholder: "My Dashboard",
|
|
84
|
+
onKeyup: e[1] || (e[1] = E((...a) => t.createDashboard && t.createDashboard(...a), ["enter"])),
|
|
85
|
+
"data-testid": o.testTag ? `dashboard-creator-name-${o.testTag}` : "dashboard-creator-name"
|
|
86
|
+
}, null, 40, B), [
|
|
87
|
+
[_, t.dashboardName]
|
|
88
|
+
])
|
|
89
|
+
]),
|
|
90
|
+
r("div", M, [
|
|
91
|
+
e[8] || (e[8] = r("label", { for: "dashboard-connection" }, "Connection", -1)),
|
|
92
|
+
y(r("select", {
|
|
93
|
+
id: "dashboard-connection",
|
|
94
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => t.selectedConnection = a),
|
|
95
|
+
"data-testid": o.testTag ? `dashboard-creator-connection-${o.testTag}` : "dashboard-creator-connection"
|
|
96
|
+
}, [
|
|
97
|
+
(i(!0), l(k, null, I(t.connections, (a) => (i(), l("option", {
|
|
98
|
+
key: a.name,
|
|
99
|
+
value: a.name
|
|
100
|
+
}, N(a.name), 9, A))), 128))
|
|
101
|
+
], 8, q), [
|
|
102
|
+
[P, t.selectedConnection]
|
|
103
|
+
])
|
|
104
|
+
]),
|
|
105
|
+
t.selectedConnection && t.availableImports.length > 0 ? (i(), l("div", K, [
|
|
106
|
+
e[9] || (e[9] = r("label", { for: "dashboard-import" }, "Import", -1)),
|
|
107
|
+
y(r("select", {
|
|
108
|
+
id: "dashboard-import",
|
|
109
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => t.selectedImport = a),
|
|
110
|
+
"data-testid": o.testTag ? `dashboard-creator-import-${o.testTag}` : "dashboard-creator-import"
|
|
111
|
+
}, [
|
|
112
|
+
(i(!0), l(k, null, I(t.availableImports, (a) => (i(), l("option", {
|
|
113
|
+
key: a.name,
|
|
114
|
+
value: a.id
|
|
115
|
+
}, N(a.name), 9, z))), 128))
|
|
116
|
+
], 8, O), [
|
|
117
|
+
[P, t.selectedImport]
|
|
118
|
+
])
|
|
119
|
+
])) : C("", !0),
|
|
120
|
+
t.showPromptField ? (i(), l("div", L, [
|
|
121
|
+
e[10] || (e[10] = r("label", { for: "dashboard-prompt" }, "Dashboard Prompt", -1)),
|
|
122
|
+
y(r("textarea", {
|
|
123
|
+
id: "dashboard-prompt",
|
|
124
|
+
"onUpdate:modelValue": e[4] || (e[4] = (a) => t.dashboardPrompt = a),
|
|
125
|
+
placeholder: "Describe what you want to analyze...",
|
|
126
|
+
rows: "3",
|
|
127
|
+
"data-testid": o.testTag ? `dashboard-creator-prompt-${o.testTag}` : "dashboard-creator-prompt"
|
|
128
|
+
}, null, 8, G), [
|
|
129
|
+
[_, t.dashboardPrompt]
|
|
130
|
+
])
|
|
131
|
+
])) : C("", !0),
|
|
132
|
+
r("div", H, [
|
|
133
|
+
r("button", {
|
|
134
|
+
onClick: e[5] || (e[5] = (...a) => t.createDashboard && t.createDashboard(...a)),
|
|
135
|
+
disabled: !t.dashboardName || !t.selectedConnection || !t.selectedImport,
|
|
136
|
+
"data-testid": o.testTag ? `dashboard-creator-submit-${o.testTag}` : "dashboard-creator-submit",
|
|
137
|
+
class: "create-btn"
|
|
138
|
+
}, " Create ", 8, J),
|
|
139
|
+
r("button", {
|
|
140
|
+
onClick: e[6] || (e[6] = (...a) => t.cancel && t.cancel(...a)),
|
|
141
|
+
"data-testid": o.testTag ? `dashboard-creator-cancel-${o.testTag}` : "dashboard-creator-cancel",
|
|
142
|
+
class: "cancel-btn"
|
|
143
|
+
}, " Cancel ", 8, Q)
|
|
144
|
+
])
|
|
145
|
+
])) : C("", !0);
|
|
146
|
+
}
|
|
147
|
+
const $ = /* @__PURE__ */ V(F, [["render", R], ["__scopeId", "data-v-22061295"]]);
|
|
148
|
+
export {
|
|
149
|
+
$ as D
|
|
150
|
+
};
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { defineComponent as he, computed as pe, createElementBlock as u, openBlock as d, createVNode as h, createCommentVNode as I, createBlock as R, unref as e, Fragment as k, renderList as be, normalizeStyle as fe, createElementVNode as r, Teleport as x, toDisplayString as ge, createTextVNode as A, nextTick as ve } from "vue";
|
|
2
|
+
import { u as Ce, D as ye, _ as Ie, a as ke, b as we, C as Te, M as Me } from "./useDashboard-CPI83oAm.js";
|
|
3
|
+
import { D as De } from "./DashboardCreatorInline-Do-CDJgS.js";
|
|
4
|
+
import { r as Ee, J as g, a as Se } from "./main-oVvKtGNk.js";
|
|
5
|
+
const Fe = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "dashboard-mobile-container"
|
|
8
|
+
}, Re = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "empty-dashboard-wrapper"
|
|
11
|
+
}, xe = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "mobile-container"
|
|
14
|
+
}, Ae = ["data-i"], Ne = {
|
|
15
|
+
key: 2,
|
|
16
|
+
class: "mobile-nav-bar"
|
|
17
|
+
}, Be = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "dashboard-not-found"
|
|
20
|
+
}, _e = 400, He = /* @__PURE__ */ he({
|
|
21
|
+
__name: "DashboardMobile",
|
|
22
|
+
props: {
|
|
23
|
+
name: {},
|
|
24
|
+
connectionId: {},
|
|
25
|
+
viewMode: { type: Boolean }
|
|
26
|
+
},
|
|
27
|
+
setup(v) {
|
|
28
|
+
const p = v, w = Ee(), i = pe(() => {
|
|
29
|
+
const o = Object.values(w.dashboards).find((t) => t.id === p.name);
|
|
30
|
+
if (!o && p.connectionId)
|
|
31
|
+
try {
|
|
32
|
+
return w.newDashboard(p.name, p.connectionId);
|
|
33
|
+
} catch (t) {
|
|
34
|
+
return console.error("Failed to create dashboard:", t), null;
|
|
35
|
+
}
|
|
36
|
+
return o;
|
|
37
|
+
}), {
|
|
38
|
+
// State
|
|
39
|
+
sortedLayout: b,
|
|
40
|
+
editMode: N,
|
|
41
|
+
selectedConnection: B,
|
|
42
|
+
filter: _,
|
|
43
|
+
filterError: H,
|
|
44
|
+
globalCompletion: T,
|
|
45
|
+
showAddItemModal: $,
|
|
46
|
+
showQueryEditor: M,
|
|
47
|
+
showMarkdownEditor: q,
|
|
48
|
+
editingItem: s,
|
|
49
|
+
// Methods
|
|
50
|
+
handleFilterChange: L,
|
|
51
|
+
handleFilterClear: W,
|
|
52
|
+
handleImportChange: O,
|
|
53
|
+
validateFilter: U,
|
|
54
|
+
onConnectionChange: V,
|
|
55
|
+
toggleMode: z,
|
|
56
|
+
openAddItemModal: P,
|
|
57
|
+
addItem: Q,
|
|
58
|
+
clearItems: j,
|
|
59
|
+
removeItem: G,
|
|
60
|
+
copyItem: J,
|
|
61
|
+
closeAddModal: K,
|
|
62
|
+
openEditor: Y,
|
|
63
|
+
saveContent: D,
|
|
64
|
+
closeEditors: E,
|
|
65
|
+
getDashboardQueryExecutor: X,
|
|
66
|
+
getItemData: c,
|
|
67
|
+
setItemData: S,
|
|
68
|
+
handleRefresh: Z,
|
|
69
|
+
setCrossFilter: ee,
|
|
70
|
+
removeFilter: oe,
|
|
71
|
+
unSelect: te,
|
|
72
|
+
dashboardCreated: ne
|
|
73
|
+
} = Ce(
|
|
74
|
+
i,
|
|
75
|
+
{
|
|
76
|
+
connectionId: p.connectionId,
|
|
77
|
+
viewMode: p.viewMode,
|
|
78
|
+
isMobile: !0
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
layoutUpdated: () => {
|
|
82
|
+
},
|
|
83
|
+
// Not needed for mobile
|
|
84
|
+
dimensionsUpdate: (o) => C(o),
|
|
85
|
+
triggerResize: () => F(),
|
|
86
|
+
fullScreen: () => {
|
|
87
|
+
}
|
|
88
|
+
// Not needed for mobile
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
function C(o) {
|
|
92
|
+
if (!i.value) return;
|
|
93
|
+
const t = document.querySelector(`.mobile-item[data-i="${o}"] .grid-item-content`);
|
|
94
|
+
if (t) {
|
|
95
|
+
const n = t.getBoundingClientRect(), a = 36, l = Math.floor(n.width), m = Math.floor(n.height - a);
|
|
96
|
+
i.value.id && S(o, i.value.id, { width: l, height: m });
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function F() {
|
|
100
|
+
i.value && b.value.forEach((o) => {
|
|
101
|
+
C(o.i);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function ie(o) {
|
|
105
|
+
return "100%";
|
|
106
|
+
}
|
|
107
|
+
function ae(o) {
|
|
108
|
+
var m, f;
|
|
109
|
+
let t = Math.min(window.innerWidth, 400);
|
|
110
|
+
if (!i.value || !i.value.gridItems[o.i])
|
|
111
|
+
return t;
|
|
112
|
+
let n = c(o.i, i.value.id);
|
|
113
|
+
if (n.type === g.MARKDOWN || n.type === g.FILTER)
|
|
114
|
+
return "100%";
|
|
115
|
+
if (n.type === g.CHART && ((m = n.chartConfig) == null ? void 0 : m.chartType) === "headline" && n.width)
|
|
116
|
+
return `${Math.max(n.width / 2, t)}px`;
|
|
117
|
+
let a = n.type === g.CHART ? 1200 : 600;
|
|
118
|
+
if (n.width && n.height) {
|
|
119
|
+
let y = o.h / (o.w * 2);
|
|
120
|
+
const me = window.innerWidth - 50;
|
|
121
|
+
["point", "barh"].includes(((f = n.chartConfig) == null ? void 0 : f.chartType) || "") && (y = y * 1.2);
|
|
122
|
+
const ue = me * y;
|
|
123
|
+
return `${Math.max(Math.min(ue, a), t)}px`;
|
|
124
|
+
}
|
|
125
|
+
const l = o.h / o.w;
|
|
126
|
+
return `${Math.max(Math.min(l * 12 * 30, a), _e)}px`;
|
|
127
|
+
}
|
|
128
|
+
function re(o) {
|
|
129
|
+
z(o), ve(() => {
|
|
130
|
+
F();
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
function le() {
|
|
134
|
+
const o = document.getElementById("page-content");
|
|
135
|
+
o && o.scrollTo({ top: 0, behavior: "smooth" });
|
|
136
|
+
}
|
|
137
|
+
function de() {
|
|
138
|
+
const o = document.getElementById("page-content");
|
|
139
|
+
o && o.scrollTo({ top: o.scrollHeight, behavior: "smooth" });
|
|
140
|
+
}
|
|
141
|
+
function se() {
|
|
142
|
+
const o = document.getElementById("page-content");
|
|
143
|
+
if (!o) return;
|
|
144
|
+
const t = o.scrollTop, n = o.querySelectorAll(".mobile-item");
|
|
145
|
+
let a = null;
|
|
146
|
+
for (let l = n.length - 1; l >= 0; l--) {
|
|
147
|
+
const m = n[l];
|
|
148
|
+
if (m.offsetTop < t) {
|
|
149
|
+
a = m;
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
a && o.scrollTo({
|
|
154
|
+
top: a.offsetTop - 15,
|
|
155
|
+
// Account for gap
|
|
156
|
+
behavior: "smooth"
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function ce() {
|
|
160
|
+
const o = document.getElementById("page-content");
|
|
161
|
+
if (!o) return;
|
|
162
|
+
const t = o.scrollTop, n = o.querySelectorAll(".mobile-item");
|
|
163
|
+
let a = null;
|
|
164
|
+
for (let l = 0; l < n.length; l++) {
|
|
165
|
+
const m = n[l];
|
|
166
|
+
if (m.offsetTop > t + 50) {
|
|
167
|
+
a = m;
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
a && o.scrollTo({
|
|
172
|
+
top: a.offsetTop - 15,
|
|
173
|
+
// Account for gap
|
|
174
|
+
behavior: "smooth"
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
return (o, t) => i.value ? (d(), u("div", Fe, [
|
|
178
|
+
h(ye, {
|
|
179
|
+
dashboard: i.value,
|
|
180
|
+
"edits-locked": i.value.state === "locked",
|
|
181
|
+
"selected-connection": e(B),
|
|
182
|
+
filterError: e(H),
|
|
183
|
+
globalCompletion: e(T),
|
|
184
|
+
validateFilter: e(U),
|
|
185
|
+
onConnectionChange: e(V),
|
|
186
|
+
onFilterChange: e(L),
|
|
187
|
+
onImportChange: e(O),
|
|
188
|
+
onAddItem: e(P),
|
|
189
|
+
onClearItems: e(j),
|
|
190
|
+
onModeChange: re,
|
|
191
|
+
onRefresh: e(Z),
|
|
192
|
+
onClearFilter: e(W)
|
|
193
|
+
}, null, 8, ["dashboard", "edits-locked", "selected-connection", "filterError", "globalCompletion", "validateFilter", "onConnectionChange", "onFilterChange", "onImportChange", "onAddItem", "onClearItems", "onRefresh", "onClearFilter"]),
|
|
194
|
+
i.value && e(b).length === 0 ? (d(), u("div", Re, [
|
|
195
|
+
h(Ie, {
|
|
196
|
+
"dashboard-id": i.value.id
|
|
197
|
+
}, null, 8, ["dashboard-id"])
|
|
198
|
+
])) : (d(), u("div", xe, [
|
|
199
|
+
(d(!0), u(k, null, be(e(b), (n) => (d(), u("div", {
|
|
200
|
+
key: n.i,
|
|
201
|
+
"data-i": n.i,
|
|
202
|
+
class: "mobile-item",
|
|
203
|
+
style: fe({
|
|
204
|
+
height: `${ae(n)}`,
|
|
205
|
+
width: `${ie()}`
|
|
206
|
+
})
|
|
207
|
+
}, [
|
|
208
|
+
h(ke, {
|
|
209
|
+
"dashboard-id": i.value.id,
|
|
210
|
+
item: n,
|
|
211
|
+
"edit-mode": e(N),
|
|
212
|
+
filter: e(_),
|
|
213
|
+
"get-item-data": e(c),
|
|
214
|
+
symbols: e(T),
|
|
215
|
+
"get-dashboard-query-executor": e(X),
|
|
216
|
+
onDimensionClick: e(ee),
|
|
217
|
+
onBackgroundClick: e(te),
|
|
218
|
+
"set-item-data": e(S),
|
|
219
|
+
onEditContent: e(Y),
|
|
220
|
+
onRemoveFilter: e(oe),
|
|
221
|
+
onUpdateDimensions: C,
|
|
222
|
+
onRemoveItem: e(G),
|
|
223
|
+
onCopyItem: e(J)
|
|
224
|
+
}, null, 8, ["dashboard-id", "item", "edit-mode", "filter", "get-item-data", "symbols", "get-dashboard-query-executor", "onDimensionClick", "onBackgroundClick", "set-item-data", "onEditContent", "onRemoveFilter", "onRemoveItem", "onCopyItem"])
|
|
225
|
+
], 12, Ae))), 128))
|
|
226
|
+
])),
|
|
227
|
+
e(b).length > 1 ? (d(), u("div", Ne, [
|
|
228
|
+
r("button", {
|
|
229
|
+
onClick: le,
|
|
230
|
+
class: "nav-btn",
|
|
231
|
+
title: "Scroll to top"
|
|
232
|
+
}, [...t[0] || (t[0] = [
|
|
233
|
+
r("i", { class: "mdi mdi-chevron-double-up" }, null, -1)
|
|
234
|
+
])]),
|
|
235
|
+
r("button", {
|
|
236
|
+
onClick: se,
|
|
237
|
+
class: "nav-btn",
|
|
238
|
+
title: "Previous item"
|
|
239
|
+
}, [...t[1] || (t[1] = [
|
|
240
|
+
r("i", { class: "mdi mdi-chevron-up" }, null, -1)
|
|
241
|
+
])]),
|
|
242
|
+
r("button", {
|
|
243
|
+
onClick: ce,
|
|
244
|
+
class: "nav-btn",
|
|
245
|
+
title: "Next item"
|
|
246
|
+
}, [...t[2] || (t[2] = [
|
|
247
|
+
r("i", { class: "mdi mdi-chevron-down" }, null, -1)
|
|
248
|
+
])]),
|
|
249
|
+
r("button", {
|
|
250
|
+
onClick: de,
|
|
251
|
+
class: "nav-btn",
|
|
252
|
+
title: "Scroll to bottom"
|
|
253
|
+
}, [...t[3] || (t[3] = [
|
|
254
|
+
r("i", { class: "mdi mdi-chevron-double-down" }, null, -1)
|
|
255
|
+
])])
|
|
256
|
+
])) : I("", !0),
|
|
257
|
+
h(we, {
|
|
258
|
+
show: e($),
|
|
259
|
+
onAdd: e(Q),
|
|
260
|
+
onClose: e(K)
|
|
261
|
+
}, null, 8, ["show", "onAdd", "onClose"]),
|
|
262
|
+
e(M) && e(s) ? (d(), R(x, {
|
|
263
|
+
key: 3,
|
|
264
|
+
to: "body"
|
|
265
|
+
}, [
|
|
266
|
+
h(Te, {
|
|
267
|
+
connectionName: e(c)(e(s).i, i.value.id).connectionName || "",
|
|
268
|
+
imports: e(c)(e(s).i, i.value.id).imports || [],
|
|
269
|
+
rootContent: e(c)(e(s).i, i.value.id).rootContent || [],
|
|
270
|
+
content: e(c)(e(s).i, i.value.id).content,
|
|
271
|
+
showing: e(M),
|
|
272
|
+
onSave: e(D),
|
|
273
|
+
onCancel: e(E)
|
|
274
|
+
}, null, 8, ["connectionName", "imports", "rootContent", "content", "showing", "onSave", "onCancel"])
|
|
275
|
+
])) : I("", !0),
|
|
276
|
+
e(q) && e(s) ? (d(), R(x, {
|
|
277
|
+
key: 4,
|
|
278
|
+
to: "body"
|
|
279
|
+
}, [
|
|
280
|
+
h(Me, {
|
|
281
|
+
connectionName: e(c)(e(s).i, i.value.id).connectionName || "",
|
|
282
|
+
imports: e(c)(e(s).i, i.value.id).imports || [],
|
|
283
|
+
rootContent: e(c)(e(s).i, i.value.id).rootContent || [],
|
|
284
|
+
content: e(c)(e(s).i, i.value.id).structured_content,
|
|
285
|
+
onSave: e(D),
|
|
286
|
+
onCancel: e(E)
|
|
287
|
+
}, null, 8, ["connectionName", "imports", "rootContent", "content", "onSave", "onCancel"])
|
|
288
|
+
])) : I("", !0)
|
|
289
|
+
])) : (d(), u("div", Be, [
|
|
290
|
+
v.name ? (d(), u(k, { key: 0 }, [
|
|
291
|
+
t[4] || (t[4] = r("h2", null, "Dashboard Not Found", -1)),
|
|
292
|
+
r("p", null, 'The dashboard "' + ge(v.name) + '" could not be found.', 1)
|
|
293
|
+
], 64)) : (d(), u(k, { key: 1 }, [
|
|
294
|
+
t[5] || (t[5] = r("h2", null, [
|
|
295
|
+
A("Ready to "),
|
|
296
|
+
r("i", { class: "mdi mdi-chart-line" }),
|
|
297
|
+
A("?")
|
|
298
|
+
], -1)),
|
|
299
|
+
h(De, {
|
|
300
|
+
class: "inline-creator",
|
|
301
|
+
visible: !0,
|
|
302
|
+
onDashboardCreated: e(ne)
|
|
303
|
+
}, null, 8, ["onDashboardCreated"])
|
|
304
|
+
], 64))
|
|
305
|
+
]));
|
|
306
|
+
}
|
|
307
|
+
}), Oe = /* @__PURE__ */ Se(He, [["__scopeId", "data-v-d92f9e7d"]]);
|
|
308
|
+
export {
|
|
309
|
+
Oe as default
|
|
310
|
+
};
|