@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.
Files changed (581) hide show
  1. package/README.md +6 -0
  2. package/dist/ChatCreatorModal-DTcvWDQi.js +192 -0
  3. package/dist/Dashboard-C8re96eZ.js +5104 -0
  4. package/dist/DashboardCreatorInline-Do-CDJgS.js +150 -0
  5. package/dist/DashboardMobile-BOrq0rBy.js +310 -0
  6. package/dist/LLMConnectionList-DVM5t-P2.js +4692 -0
  7. package/dist/LLMView-lUTKOMbr.js +558 -0
  8. package/dist/Manager-CXJNoqU2.js +4 -0
  9. package/dist/ResultComponent-C4EGIBY0.js +155 -0
  10. package/dist/Sidebar-BGKtM2n0.js +1841 -0
  11. package/dist/TutorialPage-CGjDXmYk.js +482 -0
  12. package/dist/WelcomePage-C6obXIyG.js +75 -0
  13. package/dist/abap-D0Neqhq6.js +1404 -0
  14. package/dist/apex-B5LhxkeG.js +332 -0
  15. package/dist/azcli-BrBH0QTU.js +74 -0
  16. package/dist/bat-BfzAov64.js +106 -0
  17. package/dist/bicep-C3bCSWel.js +108 -0
  18. package/dist/cameligo-sFL5plcd.js +180 -0
  19. package/dist/chats/chat.d.ts +63 -0
  20. package/dist/chats/chat.d.ts.map +1 -0
  21. package/dist/chats/index.d.ts +3 -0
  22. package/dist/chats/index.d.ts.map +1 -0
  23. package/dist/clojure-CfeExRz0.js +767 -0
  24. package/dist/coffee-Xws5K0WL.js +238 -0
  25. package/dist/components/AssetAutoImporter.vue.d.ts +10 -0
  26. package/dist/components/AssetAutoImporter.vue.d.ts.map +1 -0
  27. package/dist/components/ChartControlPanel.vue.d.ts +54 -0
  28. package/dist/components/ChartControlPanel.vue.d.ts.map +1 -0
  29. package/dist/components/CodeBlock.vue.d.ts +39 -0
  30. package/dist/components/CodeBlock.vue.d.ts.map +1 -0
  31. package/dist/components/ConceptTable.vue.d.ts +16 -0
  32. package/dist/components/ConceptTable.vue.d.ts.map +1 -0
  33. package/dist/components/ContextMenu.vue.d.ts +67 -0
  34. package/dist/components/ContextMenu.vue.d.ts.map +1 -0
  35. package/dist/components/DataTable.vue.d.ts +204 -0
  36. package/dist/components/DataTable.vue.d.ts.map +1 -0
  37. package/dist/components/DrilldownPane.vue.d.ts +94 -0
  38. package/dist/components/DrilldownPane.vue.d.ts.map +1 -0
  39. package/dist/components/EditableTitle.vue.d.ts +32 -0
  40. package/dist/components/EditableTitle.vue.d.ts.map +1 -0
  41. package/dist/components/ErrorMessage.vue.d.ts +20 -0
  42. package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
  43. package/dist/components/HighlightComponent.vue.d.ts +21 -0
  44. package/dist/components/HighlightComponent.vue.d.ts.map +1 -0
  45. package/dist/components/HintComponent.vue.d.ts +12 -0
  46. package/dist/components/HintComponent.vue.d.ts.map +1 -0
  47. package/dist/components/InlineErrorMessage.vue.d.ts +3 -0
  48. package/dist/components/InlineErrorMessage.vue.d.ts.map +1 -0
  49. package/dist/components/LoadingButton.vue.d.ts +121 -0
  50. package/dist/components/LoadingButton.vue.d.ts.map +1 -0
  51. package/dist/components/LoadingView.vue.d.ts +21 -0
  52. package/dist/components/LoadingView.vue.d.ts.map +1 -0
  53. package/dist/components/MarkdownRenderer.vue.d.ts +39 -0
  54. package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
  55. package/dist/components/PopupModal.vue.d.ts +50 -0
  56. package/dist/components/PopupModal.vue.d.ts.map +1 -0
  57. package/dist/components/SimpleEditor.vue.d.ts +246 -0
  58. package/dist/components/SimpleEditor.vue.d.ts.map +1 -0
  59. package/dist/components/StatusIcon.vue.d.ts +9 -0
  60. package/dist/components/StatusIcon.vue.d.ts.map +1 -0
  61. package/dist/components/SymbolsPane.vue.d.ts +96 -0
  62. package/dist/components/SymbolsPane.vue.d.ts.map +1 -0
  63. package/dist/components/Tooltip.vue.d.ts +40 -0
  64. package/dist/components/Tooltip.vue.d.ts.map +1 -0
  65. package/dist/components/VegaLiteChart.vue.d.ts +183 -0
  66. package/dist/components/VegaLiteChart.vue.d.ts.map +1 -0
  67. package/dist/components/chartControlsManager.d.ts +50 -0
  68. package/dist/components/chartControlsManager.d.ts.map +1 -0
  69. package/dist/components/chartHelpers.d.ts +51 -0
  70. package/dist/components/chartHelpers.d.ts.map +1 -0
  71. package/dist/components/chartOperationsManager.d.ts +10 -0
  72. package/dist/components/chartOperationsManager.d.ts.map +1 -0
  73. package/dist/components/chartRenderManager.d.ts +26 -0
  74. package/dist/components/chartRenderManager.d.ts.map +1 -0
  75. package/dist/components/community/AddStoreModal.vue.d.ts +35 -0
  76. package/dist/components/community/AddStoreModal.vue.d.ts.map +1 -0
  77. package/dist/components/community/CommunityModelCard.vue.d.ts +33 -0
  78. package/dist/components/community/CommunityModelCard.vue.d.ts.map +1 -0
  79. package/dist/components/community/CommunityModelHeader.vue.d.ts +22 -0
  80. package/dist/components/community/CommunityModelHeader.vue.d.ts.map +1 -0
  81. package/dist/components/community/CommunityModels.vue.d.ts +19 -0
  82. package/dist/components/community/CommunityModels.vue.d.ts.map +1 -0
  83. package/dist/components/community/CommunityRemote.vue.d.ts +33 -0
  84. package/dist/components/community/CommunityRemote.vue.d.ts.map +1 -0
  85. package/dist/components/connection/ConnectionDatabase.vue.d.ts +153 -0
  86. package/dist/components/connection/ConnectionDatabase.vue.d.ts.map +1 -0
  87. package/dist/components/connection/ConnectionHistory.vue.d.ts +13 -0
  88. package/dist/components/connection/ConnectionHistory.vue.d.ts.map +1 -0
  89. package/dist/components/connection/ConnectionSchema.vue.d.ts +35 -0
  90. package/dist/components/connection/ConnectionSchema.vue.d.ts.map +1 -0
  91. package/dist/components/connection/ConnectionTable.vue.d.ts +251 -0
  92. package/dist/components/connection/ConnectionTable.vue.d.ts.map +1 -0
  93. package/dist/components/connection/DatasourceTable.vue.d.ts +16 -0
  94. package/dist/components/connection/DatasourceTable.vue.d.ts.map +1 -0
  95. package/dist/components/dashboard/Dashboard.vue.d.ts +13 -0
  96. package/dist/components/dashboard/Dashboard.vue.d.ts.map +1 -0
  97. package/dist/components/dashboard/DashboardAddItemModal.vue.d.ts +13 -0
  98. package/dist/components/dashboard/DashboardAddItemModal.vue.d.ts.map +1 -0
  99. package/dist/components/dashboard/DashboardCTA.vue.d.ts +12 -0
  100. package/dist/components/dashboard/DashboardCTA.vue.d.ts.map +1 -0
  101. package/dist/components/dashboard/DashboardChart.vue.d.ts +427 -0
  102. package/dist/components/dashboard/DashboardChart.vue.d.ts.map +1 -0
  103. package/dist/components/dashboard/DashboardChartEditor.vue.d.ts +325 -0
  104. package/dist/components/dashboard/DashboardChartEditor.vue.d.ts.map +1 -0
  105. package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +52 -0
  106. package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
  107. package/dist/components/dashboard/DashboardCreatorInline.vue.d.ts +36 -0
  108. package/dist/components/dashboard/DashboardCreatorInline.vue.d.ts.map +1 -0
  109. package/dist/components/dashboard/DashboardDataSelector.vue.d.ts +221 -0
  110. package/dist/components/dashboard/DashboardDataSelector.vue.d.ts.map +1 -0
  111. package/dist/components/dashboard/DashboardFilter.vue.d.ts +346 -0
  112. package/dist/components/dashboard/DashboardFilter.vue.d.ts.map +1 -0
  113. package/dist/components/dashboard/DashboardFilterAutocomplete.vue.d.ts +38 -0
  114. package/dist/components/dashboard/DashboardFilterAutocomplete.vue.d.ts.map +1 -0
  115. package/dist/components/dashboard/DashboardGridItem.vue.d.ts +31 -0
  116. package/dist/components/dashboard/DashboardGridItem.vue.d.ts.map +1 -0
  117. package/dist/components/dashboard/DashboardHeader.vue.d.ts +71 -0
  118. package/dist/components/dashboard/DashboardHeader.vue.d.ts.map +1 -0
  119. package/dist/components/dashboard/DashboardHeaderFilterInput.vue.d.ts +50 -0
  120. package/dist/components/dashboard/DashboardHeaderFilterInput.vue.d.ts.map +1 -0
  121. package/dist/components/dashboard/DashboardImportPopup.vue.d.ts +12 -0
  122. package/dist/components/dashboard/DashboardImportPopup.vue.d.ts.map +1 -0
  123. package/dist/components/dashboard/DashboardImportSelector.vue.d.ts +14 -0
  124. package/dist/components/dashboard/DashboardImportSelector.vue.d.ts.map +1 -0
  125. package/dist/components/dashboard/DashboardMarkdown.vue.d.ts +175 -0
  126. package/dist/components/dashboard/DashboardMarkdown.vue.d.ts.map +1 -0
  127. package/dist/components/dashboard/DashboardMarkdownEditor.vue.d.ts +325 -0
  128. package/dist/components/dashboard/DashboardMarkdownEditor.vue.d.ts.map +1 -0
  129. package/dist/components/dashboard/DashboardMobile.vue.d.ts +8 -0
  130. package/dist/components/dashboard/DashboardMobile.vue.d.ts.map +1 -0
  131. package/dist/components/dashboard/DashboardSharePopup.vue.d.ts +14 -0
  132. package/dist/components/dashboard/DashboardSharePopup.vue.d.ts.map +1 -0
  133. package/dist/components/dashboard/DashboardTable.vue.d.ts +332 -0
  134. package/dist/components/dashboard/DashboardTable.vue.d.ts.map +1 -0
  135. package/dist/components/dashboard/useDashboard.d.ts +96 -0
  136. package/dist/components/dashboard/useDashboard.d.ts.map +1 -0
  137. package/dist/components/editor/Editor.vue.d.ts +816 -0
  138. package/dist/components/editor/Editor.vue.d.ts.map +1 -0
  139. package/dist/components/editor/EditorCode.vue.d.ts +49 -0
  140. package/dist/components/editor/EditorCode.vue.d.ts.map +1 -0
  141. package/dist/components/editor/EditorCreatorIcon.vue.d.ts +61 -0
  142. package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
  143. package/dist/components/editor/EditorCreatorInline.vue.d.ts +95 -0
  144. package/dist/components/editor/EditorCreatorInline.vue.d.ts.map +1 -0
  145. package/dist/components/editor/EditorHeader.vue.d.ts +185 -0
  146. package/dist/components/editor/EditorHeader.vue.d.ts.map +1 -0
  147. package/dist/components/editor/ResultComponent.vue.d.ts +1095 -0
  148. package/dist/components/editor/ResultComponent.vue.d.ts.map +1 -0
  149. package/dist/components/editor/Results.vue.d.ts +755 -0
  150. package/dist/components/editor/Results.vue.d.ts.map +1 -0
  151. package/dist/components/editor/editorHelpers.d.ts +45 -0
  152. package/dist/components/editor/editorHelpers.d.ts.map +1 -0
  153. package/dist/components/editor/events.d.ts +4 -0
  154. package/dist/components/editor/events.d.ts.map +1 -0
  155. package/dist/components/index.d.ts +2 -0
  156. package/dist/components/index.d.ts.map +1 -0
  157. package/dist/components/layout/MobileSidebarLayout.vue.d.ts +48 -0
  158. package/dist/components/layout/MobileSidebarLayout.vue.d.ts.map +1 -0
  159. package/dist/components/layout/SidebarLayout.vue.d.ts +20 -0
  160. package/dist/components/layout/SidebarLayout.vue.d.ts.map +1 -0
  161. package/dist/components/layout/TabDropdownItem.vue.d.ts +73 -0
  162. package/dist/components/layout/TabDropdownItem.vue.d.ts.map +1 -0
  163. package/dist/components/layout/TabbedBrowser.vue.d.ts +42 -0
  164. package/dist/components/layout/TabbedBrowser.vue.d.ts.map +1 -0
  165. package/dist/components/layout/TabbedLayout.vue.d.ts +5 -0
  166. package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -0
  167. package/dist/components/layout/VerticalSplitLayout.vue.d.ts +13 -0
  168. package/dist/components/layout/VerticalSplitLayout.vue.d.ts.map +1 -0
  169. package/dist/components/llm/ChatArtifact.vue.d.ts +470 -0
  170. package/dist/components/llm/ChatArtifact.vue.d.ts.map +1 -0
  171. package/dist/components/llm/ChatCreatorModal.vue.d.ts +87 -0
  172. package/dist/components/llm/ChatCreatorModal.vue.d.ts.map +1 -0
  173. package/dist/components/llm/LLMChat.vue.d.ts +260 -0
  174. package/dist/components/llm/LLMChat.vue.d.ts.map +1 -0
  175. package/dist/components/llm/LLMChatRefinement.vue.d.ts +135 -0
  176. package/dist/components/llm/LLMChatRefinement.vue.d.ts.map +1 -0
  177. package/dist/components/llm/LLMChatSplitView.vue.d.ts +2029 -0
  178. package/dist/components/llm/LLMChatSplitView.vue.d.ts.map +1 -0
  179. package/dist/components/llm/LLMValidationView.vue.d.ts +106 -0
  180. package/dist/components/llm/LLMValidationView.vue.d.ts.map +1 -0
  181. package/dist/components/llm/index.d.ts +6 -0
  182. package/dist/components/llm/index.d.ts.map +1 -0
  183. package/dist/components/model/ModelCard.vue.d.ts +1113 -0
  184. package/dist/components/model/ModelCard.vue.d.ts.map +1 -0
  185. package/dist/components/model/ModelConcept.vue.d.ts +14 -0
  186. package/dist/components/model/ModelConcept.vue.d.ts.map +1 -0
  187. package/dist/components/model/ModelCreator.vue.d.ts +241 -0
  188. package/dist/components/model/ModelCreator.vue.d.ts.map +1 -0
  189. package/dist/components/model/ModelSelector.vue.d.ts +9 -0
  190. package/dist/components/model/ModelSelector.vue.d.ts.map +1 -0
  191. package/dist/components/sidebar/CommunityModelListItem.vue.d.ts +26 -0
  192. package/dist/components/sidebar/CommunityModelListItem.vue.d.ts.map +1 -0
  193. package/dist/components/sidebar/ConnectionCreatorInline.vue.d.ts +68 -0
  194. package/dist/components/sidebar/ConnectionCreatorInline.vue.d.ts.map +1 -0
  195. package/dist/components/sidebar/ConnectionIcon.vue.d.ts +6 -0
  196. package/dist/components/sidebar/ConnectionIcon.vue.d.ts.map +1 -0
  197. package/dist/components/sidebar/ConnectionList.vue.d.ts +714 -0
  198. package/dist/components/sidebar/ConnectionList.vue.d.ts.map +1 -0
  199. package/dist/components/sidebar/ConnectionListItem.vue.d.ts +317 -0
  200. package/dist/components/sidebar/ConnectionListItem.vue.d.ts.map +1 -0
  201. package/dist/components/sidebar/ConnectionRefresh.vue.d.ts +15 -0
  202. package/dist/components/sidebar/ConnectionRefresh.vue.d.ts.map +1 -0
  203. package/dist/components/sidebar/ConnectionStatusIcon.vue.d.ts +11 -0
  204. package/dist/components/sidebar/ConnectionStatusIcon.vue.d.ts.map +1 -0
  205. package/dist/components/sidebar/CreateEditorFromDatasourcePopup.vue.d.ts +15 -0
  206. package/dist/components/sidebar/CreateEditorFromDatasourcePopup.vue.d.ts.map +1 -0
  207. package/dist/components/sidebar/DashboardList.vue.d.ts +684 -0
  208. package/dist/components/sidebar/DashboardList.vue.d.ts.map +1 -0
  209. package/dist/components/sidebar/DashboardListItem.vue.d.ts +343 -0
  210. package/dist/components/sidebar/DashboardListItem.vue.d.ts.map +1 -0
  211. package/dist/components/sidebar/DuckDBImporter.vue.d.ts +24 -0
  212. package/dist/components/sidebar/DuckDBImporter.vue.d.ts.map +1 -0
  213. package/dist/components/sidebar/EditorList.vue.d.ts +590 -0
  214. package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -0
  215. package/dist/components/sidebar/EditorListItem.vue.d.ts +260 -0
  216. package/dist/components/sidebar/EditorListItem.vue.d.ts.map +1 -0
  217. package/dist/components/sidebar/GenericSidebarItem.vue.d.ts +91 -0
  218. package/dist/components/sidebar/GenericSidebarItem.vue.d.ts.map +1 -0
  219. package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts +178 -0
  220. package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts.map +1 -0
  221. package/dist/components/sidebar/LLMConnectionList.vue.d.ts +978 -0
  222. package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -0
  223. package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts +404 -0
  224. package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts.map +1 -0
  225. package/dist/components/sidebar/LLMProviderIcon.vue.d.ts +13 -0
  226. package/dist/components/sidebar/LLMProviderIcon.vue.d.ts.map +1 -0
  227. package/dist/components/sidebar/ModelSidebar.vue.d.ts +558 -0
  228. package/dist/components/sidebar/ModelSidebar.vue.d.ts.map +1 -0
  229. package/dist/components/sidebar/SidebarList.vue.d.ts +16 -0
  230. package/dist/components/sidebar/SidebarList.vue.d.ts.map +1 -0
  231. package/dist/components/sidebar/TutorialSidebar.vue.d.ts +134 -0
  232. package/dist/components/sidebar/TutorialSidebar.vue.d.ts.map +1 -0
  233. package/dist/components/tutorial/TutorialFunction.vue.d.ts +38 -0
  234. package/dist/components/tutorial/TutorialFunction.vue.d.ts.map +1 -0
  235. package/dist/components/tutorial/TutorialPrompt.vue.d.ts +2002 -0
  236. package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -0
  237. package/dist/components/user/UserProfile.vue.d.ts +11 -0
  238. package/dist/components/user/UserProfile.vue.d.ts.map +1 -0
  239. package/dist/components/user/UserSettings.vue.d.ts +129 -0
  240. package/dist/components/user/UserSettings.vue.d.ts.map +1 -0
  241. package/dist/composables/ResizeHandles.vue.d.ts +6 -0
  242. package/dist/composables/ResizeHandles.vue.d.ts.map +1 -0
  243. package/dist/composables/useChatWithTools.d.ts +62 -0
  244. package/dist/composables/useChatWithTools.d.ts.map +1 -0
  245. package/dist/composables/useResizableDialog.d.ts +30 -0
  246. package/dist/composables/useResizableDialog.d.ts.map +1 -0
  247. package/dist/composables/useTrilogyChat.d.ts +61 -0
  248. package/dist/composables/useTrilogyChat.d.ts.map +1 -0
  249. package/dist/composables/useTrilogyCore.d.ts +51 -0
  250. package/dist/composables/useTrilogyCore.d.ts.map +1 -0
  251. package/dist/connections/base.d.ts +86 -0
  252. package/dist/connections/base.d.ts.map +1 -0
  253. package/dist/connections/bigquery_oauth.d.ts +35 -0
  254. package/dist/connections/bigquery_oauth.d.ts.map +1 -0
  255. package/dist/connections/bigquery_sa.d.ts +2 -0
  256. package/dist/connections/bigquery_sa.d.ts.map +1 -0
  257. package/dist/connections/constants.d.ts +2 -0
  258. package/dist/connections/constants.d.ts.map +1 -0
  259. package/dist/connections/duckdb.d.ts +43 -0
  260. package/dist/connections/duckdb.d.ts.map +1 -0
  261. package/dist/connections/helpers.d.ts +30 -0
  262. package/dist/connections/helpers.d.ts.map +1 -0
  263. package/dist/connections/index.d.ts +7 -0
  264. package/dist/connections/index.d.ts.map +1 -0
  265. package/dist/connections/motherduck.d.ts +19 -0
  266. package/dist/connections/motherduck.d.ts.map +1 -0
  267. package/dist/connections/snowflake.d.ts +94 -0
  268. package/dist/connections/snowflake.d.ts.map +1 -0
  269. package/dist/connections/sql_server.d.ts +2 -0
  270. package/dist/connections/sql_server.d.ts.map +1 -0
  271. package/dist/cpp-CqOUEpxN.js +395 -0
  272. package/dist/csharp-DVLiBOZb.js +332 -0
  273. package/dist/csp-DVFp9bw5.js +59 -0
  274. package/dist/css-DwARn2R6.js +193 -0
  275. package/dist/cssMode-Cr0iq_nL.js +1577 -0
  276. package/dist/cypher-uY0Mffat.js +269 -0
  277. package/dist/dart-D27H-mX_.js +287 -0
  278. package/dist/dashboards/barChartSpec.d.ts +28 -0
  279. package/dist/dashboards/barChartSpec.d.ts.map +1 -0
  280. package/dist/dashboards/barHChartSpec.d.ts +28 -0
  281. package/dist/dashboards/barHChartSpec.d.ts.map +1 -0
  282. package/dist/dashboards/base.d.ts +176 -0
  283. package/dist/dashboards/base.d.ts.map +1 -0
  284. package/dist/dashboards/beeSwarmSpec.d.ts +150 -0
  285. package/dist/dashboards/beeSwarmSpec.d.ts.map +1 -0
  286. package/dist/dashboards/conditions.d.ts +8 -0
  287. package/dist/dashboards/conditions.d.ts.map +1 -0
  288. package/dist/dashboards/conditionsParameters.d.ts +11 -0
  289. package/dist/dashboards/conditionsParameters.d.ts.map +1 -0
  290. package/dist/dashboards/constants.d.ts +22 -0
  291. package/dist/dashboards/constants.d.ts.map +1 -0
  292. package/dist/dashboards/countryLookup.d.ts +15 -0
  293. package/dist/dashboards/countryLookup.d.ts.map +1 -0
  294. package/dist/dashboards/d3utility.d.ts +7 -0
  295. package/dist/dashboards/d3utility.d.ts.map +1 -0
  296. package/dist/dashboards/dashboardQueryExecutor.d.ts +142 -0
  297. package/dist/dashboards/dashboardQueryExecutor.d.ts.map +1 -0
  298. package/dist/dashboards/donutSpec.d.ts +74 -0
  299. package/dist/dashboards/donutSpec.d.ts.map +1 -0
  300. package/dist/dashboards/formatting.d.ts +11 -0
  301. package/dist/dashboards/formatting.d.ts.map +1 -0
  302. package/dist/dashboards/headlineSpec.d.ts +23 -0
  303. package/dist/dashboards/headlineSpec.d.ts.map +1 -0
  304. package/dist/dashboards/heatmapSpec.d.ts +30 -0
  305. package/dist/dashboards/heatmapSpec.d.ts.map +1 -0
  306. package/dist/dashboards/helpers.d.ts +73 -0
  307. package/dist/dashboards/helpers.d.ts.map +1 -0
  308. package/dist/dashboards/index.d.ts +3 -0
  309. package/dist/dashboards/index.d.ts.map +1 -0
  310. package/dist/dashboards/lineAreaSpec.d.ts +177 -0
  311. package/dist/dashboards/lineAreaSpec.d.ts.map +1 -0
  312. package/dist/dashboards/mapSpec.d.ts +431 -0
  313. package/dist/dashboards/mapSpec.d.ts.map +1 -0
  314. package/dist/dashboards/pointSpec.d.ts +27 -0
  315. package/dist/dashboards/pointSpec.d.ts.map +1 -0
  316. package/dist/dashboards/prompts.d.ts +31 -0
  317. package/dist/dashboards/prompts.d.ts.map +1 -0
  318. package/dist/dashboards/spec.d.ts +19 -0
  319. package/dist/dashboards/spec.d.ts.map +1 -0
  320. package/dist/dashboards/treeSpec.d.ts +3 -0
  321. package/dist/dashboards/treeSpec.d.ts.map +1 -0
  322. package/dist/dashboards/types.d.ts +70 -0
  323. package/dist/dashboards/types.d.ts.map +1 -0
  324. package/dist/data/connectionHistoryStorage.d.ts +25 -0
  325. package/dist/data/connectionHistoryStorage.d.ts.map +1 -0
  326. package/dist/data/constants.d.ts +4 -0
  327. package/dist/data/constants.d.ts.map +1 -0
  328. package/dist/data/credentialHelpers.d.ts +30 -0
  329. package/dist/data/credentialHelpers.d.ts.map +1 -0
  330. package/dist/data/credentialService.d.ts +80 -0
  331. package/dist/data/credentialService.d.ts.map +1 -0
  332. package/dist/data/githubStorage.d.ts +54 -0
  333. package/dist/data/githubStorage.d.ts.map +1 -0
  334. package/dist/data/index.d.ts +3 -0
  335. package/dist/data/index.d.ts.map +1 -0
  336. package/dist/data/localStorage.d.ts +48 -0
  337. package/dist/data/localStorage.d.ts.map +1 -0
  338. package/dist/data/storage.d.ts +33 -0
  339. package/dist/data/storage.d.ts.map +1 -0
  340. package/dist/data/tips.d.ts +12 -0
  341. package/dist/data/tips.d.ts.map +1 -0
  342. package/dist/data/tutorial/builtinFunctions.d.ts +3 -0
  343. package/dist/data/tutorial/builtinFunctions.d.ts.map +1 -0
  344. package/dist/data/tutorial/dashboardTutorial.d.ts +3 -0
  345. package/dist/data/tutorial/dashboardTutorial.d.ts.map +1 -0
  346. package/dist/data/tutorial/demoSetup.d.ts +6 -0
  347. package/dist/data/tutorial/demoSetup.d.ts.map +1 -0
  348. package/dist/data/tutorial/docTypes.d.ts +37 -0
  349. package/dist/data/tutorial/docTypes.d.ts.map +1 -0
  350. package/dist/data/tutorial/documentation.d.ts +3 -0
  351. package/dist/data/tutorial/documentation.d.ts.map +1 -0
  352. package/dist/data/tutorial/functionsReference.d.ts +3 -0
  353. package/dist/data/tutorial/functionsReference.d.ts.map +1 -0
  354. package/dist/data/tutorial/introTutorial.d.ts +3 -0
  355. package/dist/data/tutorial/introTutorial.d.ts.map +1 -0
  356. package/dist/data/tutorial/llmTutorial.d.ts +3 -0
  357. package/dist/data/tutorial/llmTutorial.d.ts.map +1 -0
  358. package/dist/data/tutorial/modelReference.d.ts +3 -0
  359. package/dist/data/tutorial/modelReference.d.ts.map +1 -0
  360. package/dist/data/tutorial/modelTutorial.d.ts +3 -0
  361. package/dist/data/tutorial/modelTutorial.d.ts.map +1 -0
  362. package/dist/data/tutorial/reference.d.ts +3 -0
  363. package/dist/data/tutorial/reference.d.ts.map +1 -0
  364. package/dist/data/tutorial/terms_of_service.d.ts +3 -0
  365. package/dist/data/tutorial/terms_of_service.d.ts.map +1 -0
  366. package/dist/data/tutorial/windowFunctionsReference.d.ts +3 -0
  367. package/dist/data/tutorial/windowFunctionsReference.d.ts.map +1 -0
  368. package/dist/dockerfile-CmV85WZK.js +136 -0
  369. package/dist/ecl--fKn7yzB.js +462 -0
  370. package/dist/editors/editor.d.ts +82 -0
  371. package/dist/editors/editor.d.ts.map +1 -0
  372. package/dist/editors/helpers.d.ts +12 -0
  373. package/dist/editors/helpers.d.ts.map +1 -0
  374. package/dist/editors/index.d.ts +3 -0
  375. package/dist/editors/index.d.ts.map +1 -0
  376. package/dist/editors/results.d.ts +61 -0
  377. package/dist/editors/results.d.ts.map +1 -0
  378. package/dist/elixir-DUhH17ON.js +575 -0
  379. package/dist/events/display.d.ts +9 -0
  380. package/dist/events/display.d.ts.map +1 -0
  381. package/dist/flow9-B3Dx2LLe.js +148 -0
  382. package/dist/freemarker2-de_cA50e.js +995 -0
  383. package/dist/fsharp-SyqBfUAR.js +223 -0
  384. package/dist/go-BbMR2tdT.js +224 -0
  385. package/dist/graphql-DDJE6tIl.js +157 -0
  386. package/dist/handlebars-C8f44E5O.js +425 -0
  387. package/dist/hcl-YBvpaUqf.js +189 -0
  388. package/dist/html-qaggIh0W.js +314 -0
  389. package/dist/html2canvas.esm-dgT_1dIT.js +4871 -0
  390. package/dist/htmlMode-xYurYOLw.js +1587 -0
  391. package/dist/ini-Ct73dBtM.js +77 -0
  392. package/dist/java-C_jlkwoG.js +238 -0
  393. package/dist/javascript-DeLkSgQX.js +76 -0
  394. package/dist/jsonMode-BM-L8w8F.js +2002 -0
  395. package/dist/julia-D8WE5U1e.js +517 -0
  396. package/dist/kotlin-Zy9aq5yB.js +259 -0
  397. package/dist/language/constants.d.ts +6 -0
  398. package/dist/language/constants.d.ts.map +1 -0
  399. package/dist/language/index.d.ts +2 -0
  400. package/dist/language/index.d.ts.map +1 -0
  401. package/dist/less-sZ0iHtE8.js +168 -0
  402. package/dist/lexon-CsdNL29A.js +163 -0
  403. package/dist/liquid-DLNUrc5y.js +246 -0
  404. package/dist/llm/anthropic.d.ts +13 -0
  405. package/dist/llm/anthropic.d.ts.map +1 -0
  406. package/dist/llm/base.d.ts +63 -0
  407. package/dist/llm/base.d.ts.map +1 -0
  408. package/dist/llm/chatAgentPrompt.d.ts +166 -0
  409. package/dist/llm/chatAgentPrompt.d.ts.map +1 -0
  410. package/dist/llm/chatHelpers.d.ts +23 -0
  411. package/dist/llm/chatHelpers.d.ts.map +1 -0
  412. package/dist/llm/chatToolExecutor.d.ts +39 -0
  413. package/dist/llm/chatToolExecutor.d.ts.map +1 -0
  414. package/dist/llm/consts.d.ts +3 -0
  415. package/dist/llm/consts.d.ts.map +1 -0
  416. package/dist/llm/data/constants.d.ts +5 -0
  417. package/dist/llm/data/constants.d.ts.map +1 -0
  418. package/dist/llm/data/models.d.ts +8 -0
  419. package/dist/llm/data/models.d.ts.map +1 -0
  420. package/dist/llm/data/prompts.d.ts +7 -0
  421. package/dist/llm/data/prompts.d.ts.map +1 -0
  422. package/dist/llm/data/testCases.d.ts +13 -0
  423. package/dist/llm/data/testCases.d.ts.map +1 -0
  424. package/dist/llm/googlev2.d.ts +15 -0
  425. package/dist/llm/googlev2.d.ts.map +1 -0
  426. package/dist/llm/index.d.ts +11 -0
  427. package/dist/llm/index.d.ts.map +1 -0
  428. package/dist/llm/mistral.d.ts +11 -0
  429. package/dist/llm/mistral.d.ts.map +1 -0
  430. package/dist/llm/models.d.ts +8 -0
  431. package/dist/llm/models.d.ts.map +1 -0
  432. package/dist/llm/openAI.d.ts +13 -0
  433. package/dist/llm/openAI.d.ts.map +1 -0
  434. package/dist/llm/utils.d.ts +50 -0
  435. package/dist/llm/utils.d.ts.map +1 -0
  436. package/dist/lua-C2YJo0zw.js +168 -0
  437. package/dist/m3-CPLP40SG.js +216 -0
  438. package/dist/main-oVvKtGNk.js +203688 -0
  439. package/dist/main.css +1 -0
  440. package/dist/main.d.ts +23 -0
  441. package/dist/main.d.ts.map +1 -0
  442. package/dist/main.js +22 -0
  443. package/dist/main.umd.cjs +2885 -0
  444. package/dist/markdown-B1mf5e0R.js +235 -0
  445. package/dist/mdx-BmG1effK.js +171 -0
  446. package/dist/mips-DA33BZX1.js +204 -0
  447. package/dist/models/helpers.d.ts +59 -0
  448. package/dist/models/helpers.d.ts.map +1 -0
  449. package/dist/models/import.d.ts +18 -0
  450. package/dist/models/import.d.ts.map +1 -0
  451. package/dist/models/index.d.ts +3 -0
  452. package/dist/models/index.d.ts.map +1 -0
  453. package/dist/models/model.d.ts +241 -0
  454. package/dist/models/model.d.ts.map +1 -0
  455. package/dist/monaco/editorHelpers.d.ts +32 -0
  456. package/dist/monaco/editorHelpers.d.ts.map +1 -0
  457. package/dist/monaco/index.d.ts +2 -0
  458. package/dist/monaco/index.d.ts.map +1 -0
  459. package/dist/monaco/setup.d.ts +2 -0
  460. package/dist/monaco/setup.d.ts.map +1 -0
  461. package/dist/msdax-CCYFIQsP.js +381 -0
  462. package/dist/mysql-hjmIjL-D.js +884 -0
  463. package/dist/objective-c-RRCpEmqC.js +189 -0
  464. package/dist/pascal-CeV8XfxB.js +257 -0
  465. package/dist/pascaligo-IEEGVJAJ.js +170 -0
  466. package/dist/perl-B5-QbHq_.js +632 -0
  467. package/dist/pgsql-s6kqEJmi.js +857 -0
  468. package/dist/php-CWWqzOo8.js +506 -0
  469. package/dist/pla-FSvb_YP_.js +143 -0
  470. package/dist/postiats-DQdscQXO.js +913 -0
  471. package/dist/powerquery-CtA5JA1I.js +896 -0
  472. package/dist/powershell-DglEq96N.js +245 -0
  473. package/dist/prism-sql-8Y2-THrf.js +33 -0
  474. package/dist/protobuf-BSepub3e.js +426 -0
  475. package/dist/pug-B1847F4G.js +408 -0
  476. package/dist/python-BLXKu9hO.js +307 -0
  477. package/dist/qsharp-D4i0Nqg9.js +307 -0
  478. package/dist/r-cdRigKxa.js +249 -0
  479. package/dist/razor-DSEd6veI.js +556 -0
  480. package/dist/redis-D9MFxvE8.js +308 -0
  481. package/dist/redshift-CmCnsvL-.js +815 -0
  482. package/dist/remotes/constants.d.ts +2 -0
  483. package/dist/remotes/constants.d.ts.map +1 -0
  484. package/dist/remotes/displayHelpers.d.ts +67 -0
  485. package/dist/remotes/displayHelpers.d.ts.map +1 -0
  486. package/dist/remotes/modelApiService.d.ts +38 -0
  487. package/dist/remotes/modelApiService.d.ts.map +1 -0
  488. package/dist/remotes/models.d.ts +48 -0
  489. package/dist/remotes/models.d.ts.map +1 -0
  490. package/dist/remotes/storeService.d.ts +42 -0
  491. package/dist/remotes/storeService.d.ts.map +1 -0
  492. package/dist/restructuredtext-CWy8J51t.js +180 -0
  493. package/dist/ruby-WP-c36m5.js +517 -0
  494. package/dist/rust-Q9FLdYpu.js +349 -0
  495. package/dist/sb-C54-JBGT.js +121 -0
  496. package/dist/scala-CzbFImc5.js +376 -0
  497. package/dist/scheme-BhfDmYN3.js +114 -0
  498. package/dist/scss-CEmiBXpS.js +268 -0
  499. package/dist/shell-Bmc1VhG0.js +227 -0
  500. package/dist/solidity-C9Q2I8Hh.js +1373 -0
  501. package/dist/sophia-jWa1UyKz.js +205 -0
  502. package/dist/sparql-CM7jctbc.js +207 -0
  503. package/dist/sql-WzihTkbg.js +859 -0
  504. package/dist/st-6y7_3aup.js +422 -0
  505. package/dist/stores/CredentialManager.vue.d.ts +50 -0
  506. package/dist/stores/CredentialManager.vue.d.ts.map +1 -0
  507. package/dist/stores/Manager.vue.d.ts +100 -0
  508. package/dist/stores/Manager.vue.d.ts.map +1 -0
  509. package/dist/stores/analyticsStore.d.ts +42 -0
  510. package/dist/stores/analyticsStore.d.ts.map +1 -0
  511. package/dist/stores/chatStore.d.ts +153 -0
  512. package/dist/stores/chatStore.d.ts.map +1 -0
  513. package/dist/stores/communityApiStore.d.ts +206 -0
  514. package/dist/stores/communityApiStore.d.ts.map +1 -0
  515. package/dist/stores/connectionHistoryStore.d.ts +24 -0
  516. package/dist/stores/connectionHistoryStore.d.ts.map +1 -0
  517. package/dist/stores/connectionStore.d.ts +31 -0
  518. package/dist/stores/connectionStore.d.ts.map +1 -0
  519. package/dist/stores/dashboardStore.d.ts +122 -0
  520. package/dist/stores/dashboardStore.d.ts.map +1 -0
  521. package/dist/stores/editorStore.d.ts +44 -0
  522. package/dist/stores/editorStore.d.ts.map +1 -0
  523. package/dist/stores/index.d.ts +14 -0
  524. package/dist/stores/index.d.ts.map +1 -0
  525. package/dist/stores/llmStore.d.ts +90 -0
  526. package/dist/stores/llmStore.d.ts.map +1 -0
  527. package/dist/stores/modelStore.d.ts +29 -0
  528. package/dist/stores/modelStore.d.ts.map +1 -0
  529. package/dist/stores/queryExecutionService.d.ts +60 -0
  530. package/dist/stores/queryExecutionService.d.ts.map +1 -0
  531. package/dist/stores/resolver.d.ts +91 -0
  532. package/dist/stores/resolver.d.ts.map +1 -0
  533. package/dist/stores/urlStore.d.ts +6 -0
  534. package/dist/stores/urlStore.d.ts.map +1 -0
  535. package/dist/stores/useScreenNavigation.d.ts +53 -0
  536. package/dist/stores/useScreenNavigation.d.ts.map +1 -0
  537. package/dist/stores/userSettingsStore.d.ts +133 -0
  538. package/dist/stores/userSettingsStore.d.ts.map +1 -0
  539. package/dist/swift-k-0zxG_D.js +318 -0
  540. package/dist/systemverilog-Pnr5_rIP.js +582 -0
  541. package/dist/tcl-fNPXval8.js +238 -0
  542. package/dist/tsMode-CdypNzs1.js +895 -0
  543. package/dist/twig-L2MkztkV.js +398 -0
  544. package/dist/typescript-DZ5G39rT.js +349 -0
  545. package/dist/typespec-Cqqo-3Pt.js +123 -0
  546. package/dist/useDashboard-CPI83oAm.js +3352 -0
  547. package/dist/utility/debounce.d.ts +12 -0
  548. package/dist/utility/debounce.d.ts.map +1 -0
  549. package/dist/utility/markdownRenderer.d.ts +34 -0
  550. package/dist/utility/markdownRenderer.d.ts.map +1 -0
  551. package/dist/utility/testHelpers.d.ts +2 -0
  552. package/dist/utility/testHelpers.d.ts.map +1 -0
  553. package/dist/vb-B5YC2xN9.js +378 -0
  554. package/dist/views/ConnectionView.vue.d.ts +522 -0
  555. package/dist/views/ConnectionView.vue.d.ts.map +1 -0
  556. package/dist/views/CredentialBackgroundPage.vue.d.ts +3 -0
  557. package/dist/views/CredentialBackgroundPage.vue.d.ts.map +1 -0
  558. package/dist/views/IDEPlaceholder.vue.d.ts +3 -0
  559. package/dist/views/IDEPlaceholder.vue.d.ts.map +1 -0
  560. package/dist/views/LLMView.vue.d.ts +7758 -0
  561. package/dist/views/LLMView.vue.d.ts.map +1 -0
  562. package/dist/views/MobileIDEPlaceholder.vue.d.ts +3 -0
  563. package/dist/views/MobileIDEPlaceholder.vue.d.ts.map +1 -0
  564. package/dist/views/ModelView.vue.d.ts +2170 -0
  565. package/dist/views/ModelView.vue.d.ts.map +1 -0
  566. package/dist/views/ResponsiveIDE.vue.d.ts +3 -0
  567. package/dist/views/ResponsiveIDE.vue.d.ts.map +1 -0
  568. package/dist/views/TutorialPage.vue.d.ts +7835 -0
  569. package/dist/views/TutorialPage.vue.d.ts.map +1 -0
  570. package/dist/views/WelcomePage.vue.d.ts +13 -0
  571. package/dist/views/WelcomePage.vue.d.ts.map +1 -0
  572. package/dist/views/index.d.ts +3 -0
  573. package/dist/views/index.d.ts.map +1 -0
  574. package/dist/vite.config.d.ts +3 -0
  575. package/dist/vite.config.d.ts.map +1 -0
  576. package/dist/vitest.config.d.ts +3 -0
  577. package/dist/vitest.config.d.ts.map +1 -0
  578. package/dist/wgsl-B-_uRex7.js +445 -0
  579. package/dist/xml-DsUsyRQY.js +101 -0
  580. package/dist/yaml-BpA1BNpS.js +212 -0
  581. package/package.json +55 -0
@@ -0,0 +1,482 @@
1
+ import { defineComponent as Q, ref as E, computed as R, createElementBlock as r, openBlock as i, createElementVNode as n, createCommentVNode as S, toDisplayString as a, Fragment as D, renderList as H, normalizeClass as g, renderSlot as W, inject as f, watch as K, resolveComponent as l, createTextVNode as x, createVNode as C, createBlock as h, withCtx as N } from "vue";
2
+ import { a as T, C as q, E as F, M as z, b as J, c as X, d as Y, L as Z, s as $, K as V } from "./main-oVvKtGNk.js";
3
+ import { L as tt, C as et, d as A } from "./LLMConnectionList-DVM5t-P2.js";
4
+ import B from "./ResultComponent-C4EGIBY0.js";
5
+ import ot from "./Dashboard-C8re96eZ.js";
6
+ const nt = Q({
7
+ name: "FunctionDoc",
8
+ props: {
9
+ name: {
10
+ type: String,
11
+ required: !0
12
+ },
13
+ description: {
14
+ type: String,
15
+ required: !0
16
+ },
17
+ func: {
18
+ type: Object,
19
+ required: !0
20
+ }
21
+ },
22
+ setup(o) {
23
+ const e = E(!1), c = R(() => ["function-purpose", `function-purpose-${o.func.outputPurpose.toLowerCase()}`]);
24
+ return {
25
+ showExample: e,
26
+ purposeClass: c
27
+ };
28
+ }
29
+ }), it = { class: "function-doc" }, st = { class: "function-header" }, rt = { class: "function-name" }, dt = { class: "function-description" }, ct = { class: "function-metadata" }, at = { class: "function-metadata-row" }, lt = { class: "function-metadata-value" }, ut = {
30
+ key: 0,
31
+ class: "function-metadata-empty"
32
+ }, mt = {
33
+ key: 1,
34
+ class: "function-metadata-tags"
35
+ }, _t = { class: "function-metadata-row" }, vt = { class: "function-metadata-value" }, pt = { class: "function-metadata-tag" }, ft = { class: "function-metadata-row" }, yt = { class: "function-metadata-value" }, ht = {
36
+ key: 0,
37
+ class: "function-example"
38
+ }, Ct = { class: "function-example-code" };
39
+ function kt(o, e, c, t, m, s) {
40
+ return i(), r("div", it, [
41
+ n("div", st, [
42
+ n("h3", rt, a(o.name), 1),
43
+ n("button", {
44
+ class: "function-example-toggle",
45
+ onClick: e[0] || (e[0] = (u) => o.showExample = !o.showExample)
46
+ }, a(o.showExample ? "Hide Example" : "Show Example"), 1)
47
+ ]),
48
+ n("div", dt, a(o.description), 1),
49
+ n("div", ct, [
50
+ n("div", at, [
51
+ e[1] || (e[1] = n("div", { class: "function-metadata-label" }, "Inputs:", -1)),
52
+ n("div", lt, [
53
+ o.func.inputTypes.length === 0 ? (i(), r("span", ut, "No inputs")) : (i(), r("div", mt, [
54
+ (i(!0), r(D, null, H(o.func.inputTypes, (u, _) => (i(), r("span", {
55
+ key: _,
56
+ class: "function-metadata-tag"
57
+ }, a(u), 1))), 128))
58
+ ]))
59
+ ])
60
+ ]),
61
+ n("div", _t, [
62
+ e[2] || (e[2] = n("div", { class: "function-metadata-label" }, "Output:", -1)),
63
+ n("div", vt, [
64
+ n("span", pt, a(o.func.outputType), 1)
65
+ ])
66
+ ]),
67
+ n("div", ft, [
68
+ e[3] || (e[3] = n("div", { class: "function-metadata-label" }, "Purpose:", -1)),
69
+ n("div", yt, [
70
+ n("span", {
71
+ class: g(o.purposeClass)
72
+ }, a(o.func.outputPurpose), 3)
73
+ ])
74
+ ])
75
+ ]),
76
+ o.showExample ? (i(), r("div", ht, [
77
+ e[4] || (e[4] = n("div", { class: "function-example-label" }, "Example:", -1)),
78
+ n("pre", Ct, a(o.func.example), 1)
79
+ ])) : S("", !0)
80
+ ]);
81
+ }
82
+ const St = /* @__PURE__ */ T(nt, [["render", kt], ["__scopeId", "data-v-4ab8a3dc"]]), bt = /* @__PURE__ */ Q({
83
+ __name: "HighlightComponent",
84
+ props: {
85
+ type: {}
86
+ },
87
+ setup(o) {
88
+ return (e, c) => (i(), r("div", {
89
+ class: g(["highlight", o.type])
90
+ }, [
91
+ W(e.$slots, "default", {}, void 0, !0)
92
+ ], 2));
93
+ }
94
+ }), gt = /* @__PURE__ */ T(bt, [["__scopeId", "data-v-0f045873"]]), wt = {
95
+ name: "TutorialPromptComponent",
96
+ components: {
97
+ Editor: F,
98
+ ResultComponent: B,
99
+ CodeBlock: q
100
+ },
101
+ props: {
102
+ // Array of prompts to navigate through
103
+ prompts: {
104
+ type: Array,
105
+ required: !0
106
+ },
107
+ context: {
108
+ type: String,
109
+ default: "main-trilogy"
110
+ },
111
+ editorId: {
112
+ type: String,
113
+ default: "tutorial-editor"
114
+ }
115
+ },
116
+ setup(o) {
117
+ const e = f("editorStore"), c = f("saveEditors"), t = E(null);
118
+ if (!e || !c)
119
+ throw new Error("Editor store or saveEditors function not provided");
120
+ const m = E(0), s = E(!1), u = E(!1), _ = R(() => o.prompts[m.value]);
121
+ K(
122
+ () => {
123
+ var p;
124
+ return (p = e.editors[o.editorId]) == null ? void 0 : p.results;
125
+ },
126
+ () => {
127
+ s.value && y();
128
+ },
129
+ { deep: !0 }
130
+ ), K(m, () => {
131
+ s.value = !1, u.value = !1;
132
+ });
133
+ function k() {
134
+ m.value < o.prompts.length - 1 && u.value && m.value++;
135
+ }
136
+ function v() {
137
+ m.value > 0 && m.value--;
138
+ }
139
+ function y() {
140
+ var M;
141
+ if (s.value = !0, !e) return;
142
+ const p = (M = e.editors[o.editorId]) == null ? void 0 : M.results;
143
+ p && _.value.validationFn ? u.value = _.value.validationFn(p) : u.value = !1;
144
+ }
145
+ function b() {
146
+ c && (c(), y());
147
+ }
148
+ function I(p) {
149
+ console.log("Setting editor content pre:", p), t.value && (console.log("Setting editor content:", p), t.value.setContent(p));
150
+ }
151
+ function L() {
152
+ t.value && t.value.runQuery();
153
+ }
154
+ return {
155
+ editorStore: e,
156
+ runQuery: L,
157
+ currentIndex: m,
158
+ currentPrompt: _,
159
+ hasUserAttempted: s,
160
+ isCurrentPromptValid: u,
161
+ nextPrompt: k,
162
+ prevPrompt: v,
163
+ validateResults: y,
164
+ saveEditorsCall: b,
165
+ setEditorContent: I,
166
+ editorRef: t
167
+ };
168
+ }
169
+ }, Et = { class: "tutorial-prompt-container" }, Dt = { class: "prompt-navigation" }, xt = ["disabled"], Mt = { class: "progress-indicator" }, Pt = ["disabled"], Tt = { class: "prompt-content" }, It = { class: "prompt-header" }, Lt = ["innerHTML"], Nt = {
170
+ key: 0,
171
+ class: "prompt-example"
172
+ }, Ht = { class: "editor-container" }, Kt = { class: "editor-section" }, Vt = { class: "results-section" }, At = {
173
+ key: 0,
174
+ class: "hint-section"
175
+ };
176
+ function Qt(o, e, c, t, m, s) {
177
+ const u = l("code-block"), _ = l("editor"), k = l("result-component");
178
+ return i(), r("div", Et, [
179
+ n("div", Dt, [
180
+ n("button", {
181
+ onClick: e[0] || (e[0] = (...v) => t.prevPrompt && t.prevPrompt(...v)),
182
+ disabled: t.currentIndex === 0,
183
+ class: "nav-button"
184
+ }, [...e[2] || (e[2] = [
185
+ n("span", { class: "nav-icon" }, "←", -1),
186
+ x(" Previous ", -1)
187
+ ])], 8, xt),
188
+ n("div", Mt, a(t.currentIndex + 1) + " / " + a(c.prompts.length), 1),
189
+ n("button", {
190
+ onClick: e[1] || (e[1] = (...v) => t.nextPrompt && t.nextPrompt(...v)),
191
+ disabled: t.currentIndex === c.prompts.length - 1 || !t.isCurrentPromptValid,
192
+ class: "nav-button",
193
+ "data-testid": "next-prompt"
194
+ }, [...e[3] || (e[3] = [
195
+ x(" Next ", -1),
196
+ n("span", { class: "nav-icon" }, "→", -1)
197
+ ])], 8, Pt)
198
+ ]),
199
+ n("div", Tt, [
200
+ n("div", It, [
201
+ n("h3", null, a(t.currentPrompt.title), 1),
202
+ t.hasUserAttempted ? (i(), r("div", {
203
+ key: 0,
204
+ class: g(["validation-status", t.isCurrentPromptValid ? "valid" : "invalid"])
205
+ }, a(t.isCurrentPromptValid ? "✓ Correct!" : "✗ Try again"), 3)) : S("", !0)
206
+ ]),
207
+ n("div", {
208
+ class: "prompt-description",
209
+ innerHTML: t.currentPrompt.description
210
+ }, null, 8, Lt),
211
+ t.currentPrompt.example ? (i(), r("div", Nt, [
212
+ C(u, {
213
+ language: "sql",
214
+ content: t.currentPrompt.example,
215
+ copy: t.setEditorContent
216
+ }, null, 8, ["content", "copy"])
217
+ ])) : S("", !0)
218
+ ]),
219
+ n("div", Ht, [
220
+ n("div", Kt, [
221
+ C(_, {
222
+ context: c.context,
223
+ editorId: c.editorId,
224
+ onSaveEditors: t.saveEditorsCall,
225
+ ref: "editorRef",
226
+ onQueryFinished: t.validateResults,
227
+ containerHeight: 300
228
+ }, null, 8, ["context", "editorId", "onSaveEditors", "onQueryFinished"])
229
+ ]),
230
+ n("div", Vt, [
231
+ C(k, {
232
+ editorData: t.editorStore.editors[c.editorId],
233
+ containerHeight: 500,
234
+ onLlmQueryAccepted: t.runQuery
235
+ }, null, 8, ["editorData", "onLlmQueryAccepted"])
236
+ ])
237
+ ]),
238
+ t.currentPrompt.hints ? (i(), r("div", At, [
239
+ n("details", null, [
240
+ e[4] || (e[4] = n("summary", null, "Need a hint?", -1)),
241
+ n("ul", null, [
242
+ (i(!0), r(D, null, H(t.currentPrompt.hints, (v, y) => (i(), r("li", { key: y }, a(v), 1))), 128))
243
+ ])
244
+ ])
245
+ ])) : S("", !0)
246
+ ]);
247
+ }
248
+ const Rt = /* @__PURE__ */ T(wt, [["render", Qt], ["__scopeId", "data-v-92bb8793"]]), qt = "Studio", Ft = "Welcome", P = "demo-model-connection", w = "demo-model", Bt = {
249
+ name: "TutorialComponent",
250
+ props: {
251
+ activeDocumentationKey: {
252
+ type: String,
253
+ default: "",
254
+ optional: !0
255
+ }
256
+ },
257
+ setup() {
258
+ var y;
259
+ const o = f("editorStore"), e = f("connectionStore"), c = f("modelStore"), t = f("dashboardStore"), m = f("llmConnectionStore"), s = f("saveEditors"), u = f("saveConnections"), _ = f("saveModels"), k = f("saveDashboards");
260
+ if (!o || !e || !c || !t || !m)
261
+ throw new Error("Demo requires more stores!");
262
+ const v = (y = Object.values(t == null ? void 0 : t.dashboards).find(
263
+ (b) => b.name === "example-dashboard" && b.connection === "demo-model-connection"
264
+ )) == null ? void 0 : y.id;
265
+ if (!o || !e || !c || !t || !m || !s || !u || !_ || !k)
266
+ throw new Error("Editor store is not provided!");
267
+ return {
268
+ editorStore: o,
269
+ connectionStore: e,
270
+ dashboardStore: t,
271
+ llmConnectionStore: m,
272
+ modelStore: c,
273
+ saveEditors: s,
274
+ saveConnections: u,
275
+ saveModels: _,
276
+ saveDashboards: k,
277
+ demoConnectionName: P,
278
+ demoModelName: w,
279
+ demoDashboardID: v
280
+ };
281
+ },
282
+ components: {
283
+ LoadingButton: Z,
284
+ ConnectionList: et,
285
+ LLMConnectionList: tt,
286
+ EditorList: Y,
287
+ ModelCard: X,
288
+ HighlightComponent: gt,
289
+ Editor: F,
290
+ ResultsView: B,
291
+ CommunityModels: J,
292
+ CodeBlock: q,
293
+ TutorialPrompt: Rt,
294
+ Dashboard: ot,
295
+ TutorialFunction: St,
296
+ MarkdownRenderer: z
297
+ },
298
+ computed: {
299
+ demoConfig() {
300
+ return this.modelStore.models[w];
301
+ },
302
+ demoModelCorrect() {
303
+ var o;
304
+ return ((o = this.modelStore.models[w]) == null ? void 0 : o.name) === w;
305
+ },
306
+ demoConnectionCorrect() {
307
+ var o, e;
308
+ return ((o = this.connectionStore.connections[P]) == null ? void 0 : o.connected) && ((e = this.connectionStore.connections[P]) == null ? void 0 : e.model) === w;
309
+ },
310
+ demoEditorCorrect() {
311
+ var o;
312
+ return this.editorStore.editors["my-first-editor"] && ((o = this.editorStore.editors["my-first-editor"]) == null ? void 0 : o.connection) === P;
313
+ },
314
+ currentNode() {
315
+ return this.activeDocumentationKey ? this.activeDocumentationKey.split(V)[1] : qt;
316
+ },
317
+ currentTopic() {
318
+ return this.activeDocumentationKey ? this.activeDocumentationKey.split(V)[2] : Ft;
319
+ },
320
+ currentData() {
321
+ var o, e;
322
+ return this.currentTopic ? (e = A.find((c) => c.title === this.currentNode)) == null ? void 0 : e.articles.find((c) => c.title === this.currentTopic) : (o = A.find((c) => c.title === this.currentNode)) == null ? void 0 : o.articles[0];
323
+ }
324
+ },
325
+ methods: {
326
+ setupDemo() {
327
+ $(
328
+ this.editorStore,
329
+ this.connectionStore,
330
+ this.modelStore,
331
+ this.dashboardStore,
332
+ this.saveEditors,
333
+ this.saveConnections,
334
+ this.saveModels,
335
+ this.saveDashboards
336
+ );
337
+ },
338
+ saveEditorsCall() {
339
+ this.saveEditors();
340
+ }
341
+ }
342
+ }, Ot = {
343
+ key: 0,
344
+ class: "section-header"
345
+ }, Ut = {
346
+ key: 1,
347
+ class: "tutorial-container"
348
+ }, jt = {
349
+ id: "navigation",
350
+ class: "tutorial-section"
351
+ }, Gt = {
352
+ key: 5,
353
+ class: "llm-connections"
354
+ }, Wt = { key: 9 }, zt = { key: 10 }, Jt = { key: 11 }, Xt = { key: 12 }, Yt = { class: "editor-top" }, Zt = { class: "editor-bottom" }, $t = {
355
+ key: 13,
356
+ class: "dashboard"
357
+ }, te = ["innerHTML"], ee = {
358
+ key: 0,
359
+ id: "navigation",
360
+ class: "tutorial-section"
361
+ }, oe = {
362
+ key: 1,
363
+ id: "navigation",
364
+ class: "tutorial-section"
365
+ };
366
+ function ne(o, e, c, t, m, s) {
367
+ const u = l("highlight-component"), _ = l("markdown-renderer"), k = l("code-block"), v = l("connection-list"), y = l("LLMConnectionList"), b = l("editor-list"), I = l("tutorial-prompt"), L = l("tutorial-function"), p = l("editor"), M = l("results-view"), O = l("dashboard"), U = l("community-models"), j = l("model-card"), G = l("loading-button");
368
+ return i(), r(D, null, [
369
+ s.currentData ? (i(), r("div", Ot, a(s.currentData.title), 1)) : S("", !0),
370
+ s.currentData ? (i(), r("div", Ut, [
371
+ n("section", jt, [
372
+ (i(!0), r(D, null, H(s.currentData.paragraphs, (d) => (i(), r(D, null, [
373
+ d.type === "tip" ? (i(), h(u, {
374
+ key: 0,
375
+ type: "tip"
376
+ }, {
377
+ default: N(() => [
378
+ x(a(d.content), 1)
379
+ ]),
380
+ _: 2
381
+ }, 1024)) : d.type === "markdown" ? (i(), h(_, {
382
+ key: 1,
383
+ markdown: d.content
384
+ }, null, 8, ["markdown"])) : d.type === "warning" ? (i(), h(u, {
385
+ key: 2,
386
+ type: "warning"
387
+ }, {
388
+ default: N(() => [
389
+ x(a(d.content), 1)
390
+ ]),
391
+ _: 2
392
+ }, 1024)) : d.type === "code" ? (i(), h(k, {
393
+ key: 3,
394
+ language: "trilogy",
395
+ content: d.content
396
+ }, null, 8, ["content"])) : d.type === "connections" ? (i(), h(v, {
397
+ key: 4,
398
+ connections: t.connectionStore.connections,
399
+ testTag: "tutorial-connection"
400
+ }, null, 8, ["connections"])) : d.type === "llm-connections" ? (i(), r("div", Gt, [
401
+ C(y, {
402
+ connections: t.llmConnectionStore.connections
403
+ }, null, 8, ["connections"])
404
+ ])) : d.type === "editors" ? (i(), h(b, {
405
+ key: 6,
406
+ connections: t.editorStore.editors,
407
+ testTag: "tutorial"
408
+ }, null, 8, ["connections"])) : d.type === "tutorial-prompts" && s.demoEditorCorrect ? (i(), h(I, {
409
+ key: 7,
410
+ prompts: d.data.prompts || [],
411
+ context: d.data.context || "main-trilogy",
412
+ editorId: "my-first-editor"
413
+ }, null, 8, ["prompts", "context"])) : d.type === "function" && d.data.function ? (i(), h(L, {
414
+ key: 8,
415
+ name: d.title,
416
+ description: d.content,
417
+ func: d.data.function
418
+ }, null, 8, ["name", "description", "func"])) : d.type === "connection-validator" ? (i(), r("div", Wt, [
419
+ n("div", {
420
+ class: g(["test-result", s.demoConnectionCorrect ? "passed" : "failed"]),
421
+ "data-testid": "demo-connection-validator"
422
+ }, a(s.demoConnectionCorrect ? `Great work: "${t.demoConnectionName}" found and connected with right model ✓` : `Almost there! "${t.demoConnectionName}" not found, wrong model, or not connected ✗`), 3)
423
+ ])) : d.type === "editor-validator" ? (i(), r("div", zt, [
424
+ n("div", {
425
+ class: g(["test-result", s.demoEditorCorrect ? "passed" : "failed"]),
426
+ "data-testid": "editor-validator"
427
+ }, a(s.demoEditorCorrect ? 'Great work: "my-first-editor" found and connected with right model ✓' : `Almost there! "my-first-editor" not found under ${t.demoConnectionName} and is required to continue. The
428
+ Welcome and Query Tutorial will show you how to create it.`), 3)
429
+ ])) : d.type === "model-validator" ? (i(), r("div", Jt, [
430
+ n("div", {
431
+ class: g(["test-result", s.demoModelCorrect ? "passed" : "failed"]),
432
+ "data-testid": "model-validator"
433
+ }, a(s.demoModelCorrect ? `Great work: "${t.demoModelName}" found ✓` : `Almost there! "${t.demoModelName}" not found under local models`), 3)
434
+ ])) : d.type === "demo-editor" && s.demoEditorCorrect ? (i(), r("div", Xt, [
435
+ n("div", Yt, [
436
+ C(p, {
437
+ context: "main-trilogy",
438
+ editorId: "my-first-editor",
439
+ onSaveEditors: s.saveEditorsCall,
440
+ containerHeight: 500
441
+ }, null, 8, ["onSaveEditors"])
442
+ ]),
443
+ n("div", Zt, [
444
+ C(M, {
445
+ editorData: t.editorStore.editors["my-first-editor"],
446
+ containerHeight: 500
447
+ }, null, 8, ["editorData"])
448
+ ])
449
+ ])) : d.type === "dashboard" && s.demoModelCorrect && t.demoDashboardID ? (i(), r("div", $t, [
450
+ C(O, {
451
+ name: t.demoDashboardID,
452
+ connectionId: "demo-model-connection",
453
+ viewMode: !0
454
+ }, null, 8, ["name"])
455
+ ])) : d.type === "community-models" ? (i(), h(U, {
456
+ key: 14,
457
+ activeCommunityModelKey: "trilogy-data-trilogy-public-models-main",
458
+ initialSearch: "demo"
459
+ })) : (i(), r("p", {
460
+ key: 15,
461
+ innerHTML: d.content
462
+ }, null, 8, te))
463
+ ], 64))), 256))
464
+ ]),
465
+ s.currentTopic === "Models" ? (i(), r("section", ee, [
466
+ C(j, { config: s.demoConfig }, null, 8, ["config"])
467
+ ])) : S("", !0),
468
+ s.currentTopic === "Overview" && s.currentNode === "Demo" ? (i(), r("section", oe, [
469
+ C(G, { action: s.setupDemo }, {
470
+ default: N(() => [...e[0] || (e[0] = [
471
+ x("Reset Demo", -1)
472
+ ])]),
473
+ _: 1
474
+ }, 8, ["action"])
475
+ ])) : S("", !0)
476
+ ])) : S("", !0)
477
+ ], 64);
478
+ }
479
+ const ae = /* @__PURE__ */ T(Bt, [["render", ne], ["__scopeId", "data-v-32213ce7"]]);
480
+ export {
481
+ ae as default
482
+ };
@@ -0,0 +1,75 @@
1
+ import { defineComponent as k, inject as g, ref as m, computed as f, createElementBlock as o, openBlock as n, createElementVNode as t, unref as _, Fragment as v, createCommentVNode as c, createTextVNode as a, createVNode as C } from "vue";
2
+ import { k as x, q as T, a as W } from "./main-oVvKtGNk.js";
3
+ const E = { class: "container" }, N = { class: "content" }, S = { class: "logo" }, V = ["src"], $ = { key: 1 }, D = { class: "buttons" }, I = { key: 0 }, L = { key: 1 }, j = { key: 1 }, q = /* @__PURE__ */ k({
4
+ __name: "WelcomePage",
5
+ emits: [
6
+ "demo-started",
7
+ "sidebar-screen-selected",
8
+ "screen-selected",
9
+ "documentation-key-selected"
10
+ ],
11
+ setup(w, { emit: b }) {
12
+ const u = g("connectionStore"), i = m(!1), s = m(!1), l = b, p = () => {
13
+ i.value = !0, l("demo-started"), setTimeout(() => {
14
+ i.value = !1;
15
+ }, 3e4);
16
+ }, r = f(() => u && Object.keys(u.connections).length > 0), y = () => {
17
+ l("screen-selected", "tutorial"), l("sidebar-screen-selected", "tutorial"), l("documentation-key-selected", "article+Studio+Welcome");
18
+ };
19
+ return (B, e) => (n(), o("div", E, [
20
+ t("div", N, [
21
+ t("div", S, [
22
+ t("img", {
23
+ src: _(x),
24
+ alt: "Logo",
25
+ class: "logo-image"
26
+ }, null, 8, V)
27
+ ]),
28
+ e[7] || (e[7] = t("h1", null, "Welcome to Trilogy Studio", -1)),
29
+ s.value ? (n(), o("div", j, [
30
+ C(T, {
31
+ visible: s.value,
32
+ onClose: e[3] || (e[3] = (d) => s.value = !s.value)
33
+ }, null, 8, ["visible"])
34
+ ])) : (n(), o(v, { key: 0 }, [
35
+ r.value ? c("", !0) : (n(), o(v, { key: 0 }, [
36
+ e[4] || (e[4] = t("p", null, [
37
+ a(" To get started: open a "),
38
+ t("span", { class: "text-bold" }, "demo editor"),
39
+ a(" to immediately query or take a guided tour in the "),
40
+ t("span", { class: "text-bold" }, "documentation"),
41
+ a(". ")
42
+ ], -1)),
43
+ e[5] || (e[5] = t("p", { class: "text-faint" }, " We recommend the documentation if you haven't used Trilogy before. ", -1))
44
+ ], 64)),
45
+ r.value ? (n(), o("p", $, "We're glad you're back!")) : c("", !0),
46
+ t("div", D, [
47
+ t("button", {
48
+ onClick: e[0] || (e[0] = (d) => y()),
49
+ class: "btn btn-tertiary",
50
+ "data-testid": "tutorial-button"
51
+ }, " Docs/Tutorial "),
52
+ t("button", {
53
+ onClick: e[1] || (e[1] = (d) => p()),
54
+ class: "btn btn-secondary",
55
+ "data-testid": "demo-editor-button"
56
+ }, [
57
+ i.value ? (n(), o("span", I, [...e[6] || (e[6] = [
58
+ a("Loading ", -1),
59
+ t("span", { class: "spinner" }, null, -1)
60
+ ])])) : (n(), o("span", L, "Demo Editor"))
61
+ ]),
62
+ r.value ? (n(), o("button", {
63
+ key: 0,
64
+ onClick: e[2] || (e[2] = (d) => s.value = !s.value),
65
+ class: "btn btn-primary"
66
+ }, " New Editor ")) : c("", !0)
67
+ ])
68
+ ], 64))
69
+ ])
70
+ ]));
71
+ }
72
+ }), F = /* @__PURE__ */ W(q, [["__scopeId", "data-v-b8df09f9"]]);
73
+ export {
74
+ F as default
75
+ };