@trilogy-data/trilogy-studio-components 0.1.25 → 0.1.27
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/dist/AssetAutoImporter-OHphsfW9.js +403 -0
- package/dist/ChatCreatorModal-CuXha6Dg.js +218 -0
- package/dist/ChatModelSelect-Cz7axWjP.js +40 -0
- package/dist/{CodeBlock-PT4no49I.js → CodeBlock-BBsaC6hX.js} +4 -4
- package/dist/{CommunityModels-D7zWnHgG.js → CommunityModels-CIQQhO-y.js} +106 -75
- package/dist/{ConnectionErrorPopup-FSs7U-Yl.js → ConnectionErrorPopup-7vpqgF0s.js} +1 -1
- package/dist/{ConnectionView-COnTTuA4.js → ConnectionView-7Jj_Ggdi.js} +49 -49
- package/dist/{CreateEditorFromDatasourcePopup-snOh1d5h.js → CreateEditorFromDatasourcePopup-CrVHUWFl.js} +4 -4
- package/dist/{Dashboard-D1ZCTw5r.js → Dashboard-DxSi9W6Q.js} +276 -280
- package/dist/{DashboardImportSelector-CNxibXlS.js → DashboardImportSelector-kuDRDYi8.js} +2 -2
- package/dist/{DashboardMobile-D_m0xv17.js → DashboardMobile-CZEgTb0R.js} +39 -39
- package/dist/{DrilldownPane-CBs5ZojS.js → DrilldownPane-BheRHJMs.js} +5 -7
- package/dist/{Editor-DhsP18KE.js → Editor-D6tdutTm.js} +106 -104
- package/dist/{ErrorMessage-XMn_08gJ.js → ErrorMessage-D5JeF3Iz.js} +4 -4
- package/dist/{GlobalChatPanel-DFx9A4yP.js → GlobalChatPanel-BXZh0sdD.js} +169 -134
- package/dist/{IDE-BRMLxTfP.js → IDE-T8PmyAQ_.js} +200 -203
- package/dist/{JobsView-C9PYS6pZ.js → JobsView-Ca97MiSd.js} +12 -13
- package/dist/{LLMChat-Cqg6pTgC.js → LLMChat-Cch33Yd_.js} +3 -3
- package/dist/{LLMView-VkJpP-49.js → LLMView-BDb6wD74.js} +26 -26
- package/dist/{LoadingView-s1uznGwG.js → LoadingView-B-xFwd2N.js} +2 -2
- package/dist/{MarkdownRenderer-BNDuEyG-.js → MarkdownRenderer-BWvdx0k3.js} +531 -430
- package/dist/MobileIDE-DpdEQEqc.js +783 -0
- package/dist/{ModelCard-D8tKkK9-.js → ModelCard-DkAMP4X9.js} +19 -20
- package/dist/{ModelView-rAurf9n8.js → ModelView-DomyhN8g.js} +7 -7
- package/dist/PageLoading-BAvKGo9h.js +5937 -0
- package/dist/{ResultComponent-_-1qZCfv.js → ResultComponent-zoOSoRLe.js} +8 -8
- package/dist/{Results-CQGpFmPQ.js → Results-dq-SlJbU.js} +17 -19
- package/dist/{StatusIcon-BylPx2EO.js → StatusIcon-AbxNvJ6p.js} +2 -2
- package/dist/{StoreTokenModal-zCSYhfrw.js → StoreTokenModal-CM8WXdu1.js} +2 -2
- package/dist/{SymbolsPane-BpmL___H.js → SymbolsPane-DfaxeaPS.js} +6 -3
- package/dist/{TrilogyEmbedProvider-WA_dlv9e.js → TrilogyEmbedProvider-D3h0gYnX.js} +9 -9
- package/dist/{TutorialPage-CZGBRJdq.js → TutorialPage-BtEJG7cT.js} +27 -28
- package/dist/{VegaLiteChart-CmkOw6yD.js → VegaLiteChart-BVyAab-o.js} +12191 -10975
- package/dist/{WelcomePage-CLKvAvk-.js → WelcomePage-BoqzYBLr.js} +5 -5
- package/dist/{embedTheme-Bub46ILG.js → _plugin-vue_export-helper-f9Rw-Il4.js} +14 -6
- package/dist/assets/{css.worker-9aDGcEUy.js → css.worker-niORQtzO.js} +14 -14
- package/dist/assets/{html.worker-D2LKDpnG.js → html.worker-CO5LvJpF.js} +17 -17
- package/dist/assets/json.worker-BezHzWUV.js +58 -0
- package/dist/assets/{ts.worker-Bz0-EaKK.js → ts.worker-CYhxGg0r.js} +107 -107
- package/dist/{results-DTgAKr5j.js → base-DuKnVD-A.js} +216 -45
- package/dist/components/AssetAutoImporter.vue.d.ts.map +1 -1
- package/dist/components/FeedbackBanner.vue.d.ts +4 -0
- package/dist/components/FeedbackBanner.vue.d.ts.map +1 -0
- package/dist/components/TipsCTA.vue.d.ts +1 -1
- package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
- package/dist/components/chartHelpers.d.ts +9 -1
- package/dist/components/chartHelpers.d.ts.map +1 -1
- package/dist/components/chartRenderManager.d.ts +4 -1
- package/dist/components/chartRenderManager.d.ts.map +1 -1
- package/dist/components/community/AddStoreModal.vue.d.ts +1 -1
- package/dist/components/community/AddStoreModal.vue.d.ts.map +1 -1
- package/dist/components/community/CommunityModelCard.vue.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +54 -0
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardProvenance.vue.d.ts +30 -0
- package/dist/components/dashboard/DashboardProvenance.vue.d.ts.map +1 -0
- package/dist/components/dashboard/ReportLayout.vue.d.ts +19 -0
- package/dist/components/dashboard/ReportLayout.vue.d.ts.map +1 -0
- package/dist/components/editor/Editor.vue.d.ts +3 -3
- package/dist/components/editor/Editor.vue.d.ts.map +1 -1
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts +62 -0
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/editor/ValidationComponent.vue.d.ts +50 -0
- package/dist/components/editor/ValidationComponent.vue.d.ts.map +1 -0
- package/dist/components/jobs/JobsAddStoreModal.vue.d.ts.map +1 -1
- package/dist/components/llm/ChatCreatorModal.vue.d.ts +17 -1
- package/dist/components/llm/ChatCreatorModal.vue.d.ts.map +1 -1
- package/dist/components/llm/ChatModelSelect.vue.d.ts +13 -0
- package/dist/components/llm/ChatModelSelect.vue.d.ts.map +1 -0
- package/dist/components/llm/GlobalChatPanel.vue.d.ts.map +1 -1
- package/dist/components/model/ModelCard.vue.d.ts +3 -3
- package/dist/components/sidebar/CommunityModelList.vue.d.ts +33 -50
- package/dist/components/sidebar/CommunityModelList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CommunityModelListItem.vue.d.ts.map +1 -1
- package/dist/components/sidebar/EditorList.vue.d.ts +32 -49
- package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/Sidebar.vue.d.ts +65 -99
- package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts +3 -3
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
- package/dist/{remoteWorker-Dkv3TJ0j.js → connections-CWH3zwH2.js} +4544 -4126
- package/dist/connections.js +3 -4
- package/dist/{cssMode-D4Rzr1Cu.js → cssMode-zpO2ap2B.js} +5 -6
- package/dist/dashboard.js +54 -57
- package/dist/dashboards/layerSpec.d.ts +38 -4
- package/dist/dashboards/layerSpec.d.ts.map +1 -1
- package/dist/dashboards/lineAreaSpec.d.ts +8 -80
- package/dist/dashboards/lineAreaSpec.d.ts.map +1 -1
- package/dist/dashboards/mapSpec.d.ts +1 -0
- package/dist/dashboards/mapSpec.d.ts.map +1 -1
- package/dist/dashboards/spec.d.ts.map +1 -1
- package/dist/data/tutorial/documentation.d.ts.map +1 -1
- package/dist/data/tutorial/startupScripts.d.ts +3 -0
- package/dist/data/tutorial/startupScripts.d.ts.map +1 -0
- package/dist/{dist-CXoL8kXK.js → dist-1z5KURzS.js} +55 -50
- package/dist/{dist-DKkuvbPb.js → dist-Bv3D2p5A.js} +20 -18
- package/dist/{editor.main-Cl8i7rHY.js → editor.main-BQh6DxDB.js} +33 -33
- package/dist/{editorRefinementRuntime-C_YmXRy4.js → editorStore-CAlMJftt.js} +2084 -946
- package/dist/embed.js +2 -2
- package/dist/entry.dashboard.d.ts +1 -0
- package/dist/entry.dashboard.d.ts.map +1 -1
- package/dist/{freemarker2-fW5NBILf.js → freemarker2-DQBqlEXc.js} +1 -1
- package/dist/{globalChatRuntime-oMLiPLNC.js → globalChatRuntime-CyS7vH51.js} +18 -18
- package/dist/{handlebars-dG4w8UUY.js → handlebars-tgYxaM70.js} +1 -1
- package/dist/{helpers-DcWCa6bX.js → helpers-BbVlA3Pf.js} +39 -39
- package/dist/{html-1Dq70BdU.js → html-jJahD3Mi.js} +1 -1
- package/dist/{htmlMode--IQmLBeh.js → htmlMode-BA1-8l2e.js} +5 -6
- package/dist/{javascript-CTzBM4sF.js → javascript-Cypfo7va.js} +1 -1
- package/dist/{jsonMode-DzeJjIEH.js → jsonMode-xJye8PWS.js} +25 -25
- package/dist/{liquid-DlHThiki.js → liquid-BGDrv5da.js} +1 -1
- package/dist/llm/data/constants.d.ts +1 -1
- package/dist/llm/data/constants.d.ts.map +1 -1
- package/dist/llm/data/trilogySyntax.generated.d.ts +7 -1
- package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
- package/dist/llm/docsIndex.d.ts.map +1 -1
- package/dist/llm/openai.d.ts +2 -1
- package/dist/llm/openai.d.ts.map +1 -1
- package/dist/llm-ClU-2rgk.js +18493 -0
- package/dist/llm.js +2 -3
- package/dist/{localStorage-CSuYS7QE.js → localStorage-CGQ1iJXt.js} +39 -42
- package/dist/{lspLanguageFeatures-Cdfs3EKq.js → lspLanguageFeatures-V3e_p9oN.js} +32 -32
- package/dist/{mdx-fn3g4PH5.js → mdx-BUR1aImW.js} +1 -1
- package/dist/models/helpers.d.ts.map +1 -1
- package/dist/monaco.js +3 -3
- package/dist/{python-CCVj0pFt.js → python-YLkl0pc6.js} +1 -1
- package/dist/{razor-Cj3flYnk.js → razor-BP8TRMDY.js} +1 -1
- package/dist/{reconcile-Bk7M797_.js → reconcile-DXIvGwBk.js} +1 -1
- package/dist/{remoteStoreSync-CLvZJrTK.js → remoteStoreSync-CuQBWpWf.js} +3 -3
- package/dist/remotes/displayHelpers.d.ts.map +1 -1
- package/dist/remotes/genericStoreMetadata.d.ts +1 -0
- package/dist/remotes/genericStoreMetadata.d.ts.map +1 -1
- package/dist/remotes/models.d.ts +37 -5
- package/dist/remotes/models.d.ts.map +1 -1
- package/dist/remotes/staticStorePresets.d.ts +22 -0
- package/dist/remotes/staticStorePresets.d.ts.map +1 -0
- package/dist/remotes/storeService.d.ts +25 -4
- package/dist/remotes/storeService.d.ts.map +1 -1
- package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/static/test_import.vue.d.ts +4 -0
- package/dist/static/test_import.vue.d.ts.map +1 -0
- package/dist/stores/communityApiStore.d.ts +32 -60
- package/dist/stores/communityApiStore.d.ts.map +1 -1
- package/dist/stores/connectionStore.d.ts.map +1 -1
- package/dist/stores/resolver.d.ts +5 -0
- package/dist/stores/resolver.d.ts.map +1 -1
- package/dist/stores/urlStore.d.ts +1 -0
- package/dist/stores/urlStore.d.ts.map +1 -1
- package/dist/stores-LlyiwSbK.js +2604 -0
- package/dist/stores.js +4 -7
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{tsMode-GI4xMYAl.js → tsMode-BH9HS_sH.js} +64 -66
- package/dist/{typescript-CPibXi3J.js → typescript-BM-ynfk9.js} +1 -1
- package/dist/{useChatWithTools-GV1ufcqw.js → useChatWithTools-m3Jn_SV-.js} +11 -11
- package/dist/{useDashboard-OoBKkkuQ.js → useDashboard-BOAuvVEw.js} +1013 -1021
- package/dist/{tabulator_esm-CxLvGDp8.js → useGlobalChatPanel-DuP1q7_f.js} +1729 -711
- package/dist/{useResizableDialog-B0ePSts4.js → useResizableDialog-Cs90WJdF.js} +2 -2
- package/dist/views/MobileIDE.vue.d.ts.map +1 -1
- package/dist/views/ModelView.vue.d.ts +6 -6
- package/dist/views/ModelView.vue.d.ts.map +1 -1
- package/dist/views/TutorialPage.vue.d.ts +41 -58
- package/dist/views/TutorialPage.vue.d.ts.map +1 -1
- package/dist/views.js +193 -195
- package/dist/{editor.api2-ClD5pp8H.js → workers-B9Eybl-M.js} +16252 -15926
- package/dist/{xml-BNyphceI.js → xml-M5WFPSpA.js} +1 -1
- package/dist/{yaml-DE5Vz0PH.js → yaml-CEeFwjz9.js} +1 -1
- package/package.json +29 -20
- package/dist/AssetAutoImporter-DfMd_DSk.js +0 -403
- package/dist/ChatCreatorModal-BTqY06B6.js +0 -177
- package/dist/DashboardCreatorInline-LWvf--2x.js +0 -129
- package/dist/DataTable-DoRDynP1.js +0 -365
- package/dist/EditorCreatorInline-D6_y1H_h.js +0 -125
- package/dist/LoadingButton-OH3frQuO.js +0 -138
- package/dist/MobileIDE-CHGJoh05.js +0 -781
- package/dist/ModalDialog-D1EOG4rl.js +0 -42
- package/dist/ModelCreator-DrxLxeyH.js +0 -253
- package/dist/PageLoading-I6mr-7NB.js +0 -2666
- package/dist/Tooltip-Dihir4zs.js +0 -103
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/assets/json.worker-CJ5MmO5Q.js +0 -58
- package/dist/base-C8IuZWqY.js +0 -164
- package/dist/connectionHistoryStorage-DKJHiKJY.js +0 -111
- package/dist/connectionHistoryStore-DQeBvStZ.js +0 -61
- package/dist/connections-CJSb1TZl.js +0 -229
- package/dist/constants-DgFEYN2b.js +0 -7
- package/dist/dashboardStore-CNkWQ4r7.js +0 -641
- package/dist/demoSetup-DiW3ROFQ.js +0 -2941
- package/dist/editorRefinementToolExecutor-mX8ClQ63.js +0 -4498
- package/dist/editorStore-Ch7k-gse.js +0 -972
- package/dist/formatting-BbJ5ICgh.js +0 -6
- package/dist/llm-_807I79k.js +0 -11965
- package/dist/llmStore-CSzM1IZd.js +0 -153
- package/dist/monaco.contribution-ikesdolO.js +0 -128
- package/dist/stores-C1wUWiFm.js +0 -1708
- package/dist/trilogy-BroD2Qmp.js +0 -4
- package/dist/urlStore-Dgmwx1YI.js +0 -54
- package/dist/useGlobalChatPanel-CIeUyZba.js +0 -85
- package/dist/useIsMobile-CNpUQAvk.js +0 -8
- package/dist/usePrismHighlight-DVyDiDAL.js +0 -183
- package/dist/workers-Br7ThUKL.js +0 -47
|
@@ -1,781 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import "./editorRefinementToolExecutor-mX8ClQ63.js";
|
|
3
|
-
import { i as t, r as n } from "./stores-C1wUWiFm.js";
|
|
4
|
-
import { S as r } from "./editorRefinementRuntime-C_YmXRy4.js";
|
|
5
|
-
import "./dashboardStore-CNkWQ4r7.js";
|
|
6
|
-
import { i, n as a, t as o } from "./urlStore-Dgmwx1YI.js";
|
|
7
|
-
import { t as s } from "./LoadingButton-OH3frQuO.js";
|
|
8
|
-
import { t as c } from "./ErrorMessage-XMn_08gJ.js";
|
|
9
|
-
import { t as l } from "./LoadingView-s1uznGwG.js";
|
|
10
|
-
import { t as u } from "./AssetAutoImporter-DfMd_DSk.js";
|
|
11
|
-
import { t as d } from "./CommunityModels-D7zWnHgG.js";
|
|
12
|
-
import { t as f } from "./JobsView-C9PYS6pZ.js";
|
|
13
|
-
import { t as p } from "./ConnectionView-COnTTuA4.js";
|
|
14
|
-
import { i as m, n as h, o as g, r as _, s as v, t as y } from "./PageLoading-I6mr-7NB.js";
|
|
15
|
-
import { t as b } from "./demoSetup-DiW3ROFQ.js";
|
|
16
|
-
import { t as x } from "./ModelView-rAurf9n8.js";
|
|
17
|
-
import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as O, createVNode as k, defineAsyncComponent as A, defineComponent as j, inject as M, markRaw as N, nextTick as ee, normalizeClass as P, normalizeStyle as F, onBeforeUnmount as I, onMounted as te, openBlock as L, provide as ne, ref as R, renderList as z, renderSlot as B, resolveComponent as V, toDisplayString as H, unref as U, vModelText as re, vShow as W, watch as G, withCtx as K, withDirectives as q, withKeys as J, withModifiers as Y } from "vue";
|
|
18
|
-
//#region components/layout/TabDropdownItem.vue?vue&type=script&lang.ts
|
|
19
|
-
var X = 10, Z = 200, ie = {
|
|
20
|
-
name: "TabDropdownItem",
|
|
21
|
-
props: {
|
|
22
|
-
tab: {
|
|
23
|
-
type: Object,
|
|
24
|
-
required: !0
|
|
25
|
-
},
|
|
26
|
-
isActive: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
icon: {
|
|
31
|
-
type: String,
|
|
32
|
-
required: !0
|
|
33
|
-
},
|
|
34
|
-
swipeThreshold: {
|
|
35
|
-
type: Number,
|
|
36
|
-
default: 100
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
emits: ["select", "close"],
|
|
40
|
-
data() {
|
|
41
|
-
return {
|
|
42
|
-
gesture: "idle",
|
|
43
|
-
isSwiping: !1,
|
|
44
|
-
isClosing: !1,
|
|
45
|
-
swipeStartX: 0,
|
|
46
|
-
swipeStartY: 0,
|
|
47
|
-
swipePosition: 0,
|
|
48
|
-
maxSwipeDistance: 150,
|
|
49
|
-
closeTimer: null,
|
|
50
|
-
resetTimer: null
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
computed: { swipeStyle() {
|
|
54
|
-
return {
|
|
55
|
-
transform: `translateX(${this.swipePosition}px)`,
|
|
56
|
-
transition: this.isSwiping ? "none" : "transform 0.2s ease-out"
|
|
57
|
-
};
|
|
58
|
-
} },
|
|
59
|
-
methods: {
|
|
60
|
-
handleClick() {
|
|
61
|
-
!this.isSwiping && !this.isClosing && this.$emit("select", this.tab);
|
|
62
|
-
},
|
|
63
|
-
onTouchStart(e) {
|
|
64
|
-
if (this.isActive || this.isClosing || e.touches.length !== 1) {
|
|
65
|
-
this.gesture = "idle";
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
this.gesture = "pending", this.swipeStartX = e.touches[0].clientX, this.swipeStartY = e.touches[0].clientY;
|
|
69
|
-
},
|
|
70
|
-
onTouchMove(e) {
|
|
71
|
-
if (this.gesture !== "pending" && this.gesture !== "swipe" || e.touches.length !== 1) return;
|
|
72
|
-
let t = e.touches[0].clientX - this.swipeStartX, n = e.touches[0].clientY - this.swipeStartY;
|
|
73
|
-
if (this.gesture === "pending") {
|
|
74
|
-
if (Math.abs(t) < X && Math.abs(n) < X) return;
|
|
75
|
-
if (Math.abs(n) >= Math.abs(t) || t > 0) {
|
|
76
|
-
this.gesture = "scroll";
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
this.gesture = "swipe", this.isSwiping = !0;
|
|
80
|
-
}
|
|
81
|
-
e.preventDefault(), this.swipePosition = Math.min(0, Math.max(t, -this.maxSwipeDistance));
|
|
82
|
-
},
|
|
83
|
-
onTouchEnd() {
|
|
84
|
-
let e = this.gesture === "swipe";
|
|
85
|
-
this.gesture = "idle", e && (this.swipePosition <= -this.swipeThreshold ? this.closeTab() : this.resetSwipe());
|
|
86
|
-
},
|
|
87
|
-
onTouchCancel() {
|
|
88
|
-
this.gesture === "swipe" && this.resetSwipe(), this.gesture = "idle";
|
|
89
|
-
},
|
|
90
|
-
closeTab() {
|
|
91
|
-
this.isClosing = !0, this.swipePosition = -300, this.closeTimer = setTimeout(() => {
|
|
92
|
-
this.closeTimer = null, this.$emit("close", this.tab.id);
|
|
93
|
-
}, Z);
|
|
94
|
-
},
|
|
95
|
-
resetSwipe() {
|
|
96
|
-
this.swipePosition = 0, this.resetTimer = setTimeout(() => {
|
|
97
|
-
this.resetTimer = null, this.isSwiping = !1;
|
|
98
|
-
}, Z);
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
beforeUnmount() {
|
|
102
|
-
this.closeTimer && clearTimeout(this.closeTimer), this.resetTimer && clearTimeout(this.resetTimer);
|
|
103
|
-
}
|
|
104
|
-
}, ae = { class: "tab-dropdown-title" }, Q = {
|
|
105
|
-
key: 0,
|
|
106
|
-
class: "swipe-action"
|
|
107
|
-
};
|
|
108
|
-
function oe(e, t, n, r, i, a) {
|
|
109
|
-
return L(), E("div", {
|
|
110
|
-
class: P(["tab-dropdown-item-wrapper", {
|
|
111
|
-
swiping: i.isSwiping,
|
|
112
|
-
closing: i.isClosing
|
|
113
|
-
}]),
|
|
114
|
-
onTouchstart: t[1] ||= (...e) => a.onTouchStart && a.onTouchStart(...e),
|
|
115
|
-
onTouchmove: t[2] ||= (...e) => a.onTouchMove && a.onTouchMove(...e),
|
|
116
|
-
onTouchend: t[3] ||= (...e) => a.onTouchEnd && a.onTouchEnd(...e),
|
|
117
|
-
onTouchcancel: t[4] ||= (...e) => a.onTouchCancel && a.onTouchCancel(...e),
|
|
118
|
-
style: F(a.swipeStyle)
|
|
119
|
-
}, [D("div", {
|
|
120
|
-
class: P(["tab-dropdown-item", { active: n.isActive }]),
|
|
121
|
-
onClick: t[0] ||= (...e) => a.handleClick && a.handleClick(...e)
|
|
122
|
-
}, [D("i", { class: P([n.icon, "tab-dropdown-icon"]) }, null, 2), D("span", ae, H(n.tab.title), 1)], 2), i.isSwiping || i.isClosing ? (L(), E("div", Q, [...t[5] ||= [D("i", { class: "mdi mdi-close" }, null, -1)]])) : T("", !0)], 38);
|
|
123
|
-
}
|
|
124
|
-
var se = /*#__PURE__*/ e(ie, [["render", oe], ["__scopeId", "data-v-5e2db354"]]), ce = {
|
|
125
|
-
id: "interface",
|
|
126
|
-
class: "interface"
|
|
127
|
-
}, le = { class: "mobile-select-bar" }, ue = { class: "bar-slot bar-left" }, de = [
|
|
128
|
-
"aria-label",
|
|
129
|
-
"title",
|
|
130
|
-
"data-testid"
|
|
131
|
-
], fe = { class: "header-center" }, pe = ["data-testid", "aria-label"], me = ["aria-expanded"], he = { class: "current-tab-title" }, ge = {
|
|
132
|
-
key: 1,
|
|
133
|
-
class: "header"
|
|
134
|
-
}, _e = {
|
|
135
|
-
key: 0,
|
|
136
|
-
class: "tab-dropdown-header"
|
|
137
|
-
}, ve = { class: "tab-dropdown-items" }, ye = { class: "bar-slot bar-right" }, be = { class: "interface-wrap" }, xe = { class: "sidebar" }, Se = {
|
|
138
|
-
class: "nested-page-content",
|
|
139
|
-
id: "page-content"
|
|
140
|
-
}, Ce = { class: "confirm-buttons" }, we = /*#__PURE__*/ e(/* @__PURE__ */ j({
|
|
141
|
-
__name: "MobileSidebarLayout",
|
|
142
|
-
props: {
|
|
143
|
-
menuOpen: { type: Boolean },
|
|
144
|
-
mobileNavigationLevel: { default: "root" },
|
|
145
|
-
mobileNavigationTitle: { default: "" },
|
|
146
|
-
activeScreen: {},
|
|
147
|
-
tabs: { default: () => [] },
|
|
148
|
-
activeTab: {},
|
|
149
|
-
titleEditable: {
|
|
150
|
-
type: Boolean,
|
|
151
|
-
default: !1
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
emits: [
|
|
155
|
-
"menu-toggled",
|
|
156
|
-
"menu-back",
|
|
157
|
-
"menu-home",
|
|
158
|
-
"tab-selected",
|
|
159
|
-
"tab-closed",
|
|
160
|
-
"close-other-tabs",
|
|
161
|
-
"active-title-updated"
|
|
162
|
-
],
|
|
163
|
-
setup(e, { emit: t }) {
|
|
164
|
-
let n = e, r = t, i = R(!1), a = R(!1), o = R(!1), s = R(""), c = R(null), l = R(), u = R(), d = R(), f = C(() => n.menuOpen ? n.mobileNavigationLevel === "detail" ? n.mobileNavigationTitle : "Menu" : n.activeScreen ? g(n.activeScreen) : "Trilogy"), p = C(() => n.tabs.length === 0 ? f.value : n.tabs.find((e) => e.id === n.activeTab)?.title || f.value), m = C(() => n.tabs.filter((e) => !M(e)).length), h = C(() => `${n.activeScreen}::${n.activeTab ?? ""}`), _ = C(() => n.menuOpen ? n.mobileNavigationLevel === "detail" ? {
|
|
165
|
-
icon: "mdi-chevron-left",
|
|
166
|
-
label: "Back",
|
|
167
|
-
testid: "mobile-menu-back",
|
|
168
|
-
event: "menu-back"
|
|
169
|
-
} : {
|
|
170
|
-
icon: "mdi-menu",
|
|
171
|
-
label: "Menu",
|
|
172
|
-
testid: "mobile-menu-toggle",
|
|
173
|
-
event: "menu-toggled"
|
|
174
|
-
} : {
|
|
175
|
-
icon: "mdi-chevron-left",
|
|
176
|
-
label: "Back to menu",
|
|
177
|
-
testid: "mobile-menu-toggle",
|
|
178
|
-
event: "menu-toggled"
|
|
179
|
-
}), y = () => {
|
|
180
|
-
i.value = !i.value;
|
|
181
|
-
}, b = () => {
|
|
182
|
-
i.value = !1;
|
|
183
|
-
};
|
|
184
|
-
G([() => n.menuOpen, () => n.tabs.length], b);
|
|
185
|
-
let x = async () => {
|
|
186
|
-
!n.titleEditable || n.menuOpen || (s.value = p.value, c.value = h.value, o.value = !0, await ee(), d.value?.focus(), d.value?.select());
|
|
187
|
-
}, O = () => {
|
|
188
|
-
if (!o.value) return;
|
|
189
|
-
let e = c.value;
|
|
190
|
-
if (o.value = !1, c.value = null, e !== h.value) return;
|
|
191
|
-
let t = s.value.trim();
|
|
192
|
-
t && t !== p.value && r("active-title-updated", t);
|
|
193
|
-
}, k = () => {
|
|
194
|
-
o.value = !1, c.value = null;
|
|
195
|
-
};
|
|
196
|
-
G([h, () => n.menuOpen], k);
|
|
197
|
-
let A = (e) => {
|
|
198
|
-
r("tab-selected", e), b();
|
|
199
|
-
}, j = (e) => {
|
|
200
|
-
r("tab-closed", e);
|
|
201
|
-
}, M = (e) => e.id === n.activeTab, N = () => {
|
|
202
|
-
a.value = !1, n.activeTab && r("close-other-tabs", n.activeTab);
|
|
203
|
-
}, F = () => {
|
|
204
|
-
_.value.event === "menu-back" ? r("menu-back") : r("menu-toggled");
|
|
205
|
-
}, ne = (e) => {
|
|
206
|
-
if (!i.value) return;
|
|
207
|
-
let t = e.target, n = u.value, r = l.value;
|
|
208
|
-
n && r && !n.contains(t) && !r.contains(t) && b();
|
|
209
|
-
}, V = (e) => {
|
|
210
|
-
e.key === "Escape" && (a.value ? a.value = !1 : i.value && b());
|
|
211
|
-
};
|
|
212
|
-
return te(() => {
|
|
213
|
-
document.addEventListener("click", ne), document.addEventListener("keydown", V);
|
|
214
|
-
}), I(() => {
|
|
215
|
-
document.removeEventListener("click", ne), document.removeEventListener("keydown", V);
|
|
216
|
-
}), (t, n) => (L(), E("div", ce, [
|
|
217
|
-
D("div", le, [
|
|
218
|
-
D("div", ue, [D("button", {
|
|
219
|
-
type: "button",
|
|
220
|
-
class: "bar-button bar-button-lg",
|
|
221
|
-
"aria-label": _.value.label,
|
|
222
|
-
title: _.value.label,
|
|
223
|
-
"data-testid": _.value.testid,
|
|
224
|
-
onClick: F
|
|
225
|
-
}, [D("i", { class: P(["mdi", _.value.icon]) }, null, 2)], 8, de)]),
|
|
226
|
-
D("div", fe, [o.value ? q((L(), E("input", {
|
|
227
|
-
key: 0,
|
|
228
|
-
ref_key: "titleInput",
|
|
229
|
-
ref: d,
|
|
230
|
-
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
231
|
-
class: "mobile-name-input",
|
|
232
|
-
"data-testid": e.activeScreen === "editors" ? "editor-name-input" : "page-title-input",
|
|
233
|
-
type: "text",
|
|
234
|
-
"aria-label": e.activeScreen === "editors" ? "Editor name" : "Page title",
|
|
235
|
-
onBlur: O,
|
|
236
|
-
onKeyup: [J(O, ["enter"]), J(k, ["esc"])]
|
|
237
|
-
}, null, 40, pe)), [[re, s.value]]) : (L(), E(S, { key: 1 }, [!e.menuOpen && e.tabs.length > 1 ? (L(), E("button", {
|
|
238
|
-
key: 0,
|
|
239
|
-
type: "button",
|
|
240
|
-
class: "tab-dropdown-container",
|
|
241
|
-
"aria-haspopup": "menu",
|
|
242
|
-
"aria-expanded": i.value,
|
|
243
|
-
onClick: y,
|
|
244
|
-
ref_key: "tabDropdownContainer",
|
|
245
|
-
ref: l
|
|
246
|
-
}, [D("span", he, H(p.value), 1), D("i", { class: P([[
|
|
247
|
-
"mdi",
|
|
248
|
-
"dropdown-arrow",
|
|
249
|
-
{ rotated: i.value }
|
|
250
|
-
], "mdi-chevron-down"]) }, null, 2)], 8, me)) : (L(), E("span", ge, H(f.value), 1))], 64)), i.value && e.tabs.length > 1 ? (L(), E("div", {
|
|
251
|
-
key: 2,
|
|
252
|
-
class: "tab-dropdown",
|
|
253
|
-
role: "menu",
|
|
254
|
-
ref_key: "tabDropdown",
|
|
255
|
-
ref: u,
|
|
256
|
-
onClick: n[2] ||= Y(() => {}, ["stop"])
|
|
257
|
-
}, [e.tabs.length > 2 ? (L(), E("div", _e, [D("button", {
|
|
258
|
-
type: "button",
|
|
259
|
-
class: "close-others-btn",
|
|
260
|
-
onClick: n[1] ||= (e) => a.value = !0
|
|
261
|
-
}, [...n[7] ||= [D("i", { class: "mdi mdi-close-box-multiple-outline" }, null, -1), D("span", null, "Close other tabs", -1)]])])) : T("", !0), D("div", ve, [(L(!0), E(S, null, z(e.tabs, (e) => (L(), w(se, {
|
|
262
|
-
key: e.id,
|
|
263
|
-
tab: e,
|
|
264
|
-
"is-active": M(e),
|
|
265
|
-
icon: U(v)(e.screen),
|
|
266
|
-
onSelect: A,
|
|
267
|
-
onClose: j
|
|
268
|
-
}, null, 8, [
|
|
269
|
-
"tab",
|
|
270
|
-
"is-active",
|
|
271
|
-
"icon"
|
|
272
|
-
]))), 128))])], 512)) : T("", !0)]),
|
|
273
|
-
D("div", ye, [e.titleEditable && !e.menuOpen && !o.value ? (L(), E("button", {
|
|
274
|
-
key: 0,
|
|
275
|
-
class: "bar-button",
|
|
276
|
-
type: "button",
|
|
277
|
-
title: "Rename",
|
|
278
|
-
"aria-label": "Rename",
|
|
279
|
-
"data-testid": "edit-editor-name",
|
|
280
|
-
onClick: x
|
|
281
|
-
}, [...n[8] ||= [D("i", { class: "mdi mdi-pencil-outline" }, null, -1)]])) : T("", !0), !e.menuOpen || e.mobileNavigationLevel === "detail" ? (L(), E("button", {
|
|
282
|
-
key: 1,
|
|
283
|
-
class: "bar-button",
|
|
284
|
-
type: "button",
|
|
285
|
-
title: "Back to menu root",
|
|
286
|
-
"aria-label": "Back to menu root",
|
|
287
|
-
"data-testid": "mobile-menu-home",
|
|
288
|
-
onClick: n[3] ||= (e) => t.$emit("menu-home")
|
|
289
|
-
}, [...n[9] ||= [D("i", { class: "mdi mdi-home-outline" }, null, -1)]])) : T("", !0)])
|
|
290
|
-
]),
|
|
291
|
-
D("div", be, [q(D("div", xe, [B(t.$slots, "sidebar", {}, void 0, !0)], 512), [[W, e.menuOpen]]), q(D("div", Se, [B(t.$slots, "default", {}, void 0, !0)], 512), [[W, !e.menuOpen]])]),
|
|
292
|
-
a.value ? (L(), E("div", {
|
|
293
|
-
key: 0,
|
|
294
|
-
class: "close-confirm-overlay",
|
|
295
|
-
onClick: n[6] ||= (e) => a.value = !1
|
|
296
|
-
}, [D("div", {
|
|
297
|
-
class: "close-confirm-dialog",
|
|
298
|
-
role: "dialog",
|
|
299
|
-
"aria-modal": "true",
|
|
300
|
-
onClick: n[5] ||= Y(() => {}, ["stop"])
|
|
301
|
-
}, [D("p", null, "Close " + H(m.value) + " other tabs?", 1), D("div", Ce, [D("button", {
|
|
302
|
-
type: "button",
|
|
303
|
-
onClick: n[4] ||= (e) => a.value = !1,
|
|
304
|
-
class: "cancel-btn"
|
|
305
|
-
}, " Cancel "), D("button", {
|
|
306
|
-
type: "button",
|
|
307
|
-
onClick: N,
|
|
308
|
-
class: "confirm-btn"
|
|
309
|
-
}, " Close Others ")])])])) : T("", !0)
|
|
310
|
-
]));
|
|
311
|
-
}
|
|
312
|
-
}), [["__scopeId", "data-v-6ca4d7e9"]]), Te = {
|
|
313
|
-
name: "TabbedLayout",
|
|
314
|
-
props: { showChat: {
|
|
315
|
-
type: Boolean,
|
|
316
|
-
default: !1
|
|
317
|
-
} },
|
|
318
|
-
data() {
|
|
319
|
-
return {
|
|
320
|
-
activeTab: "sql",
|
|
321
|
-
resultsHeight: 0,
|
|
322
|
-
resultsObserver: null
|
|
323
|
-
};
|
|
324
|
-
},
|
|
325
|
-
mounted() {
|
|
326
|
-
let e = this.$refs.resultsPane;
|
|
327
|
-
if (!e || typeof ResizeObserver > "u") return;
|
|
328
|
-
let t = new ResizeObserver(() => {
|
|
329
|
-
let t = e.getBoundingClientRect().height;
|
|
330
|
-
t > 0 && (this.resultsHeight = t);
|
|
331
|
-
});
|
|
332
|
-
t.observe(e), this.resultsObserver = N(t);
|
|
333
|
-
},
|
|
334
|
-
unmounted() {
|
|
335
|
-
this.resultsObserver &&= (this.resultsObserver.disconnect(), null);
|
|
336
|
-
},
|
|
337
|
-
watch: { showChat(e) {
|
|
338
|
-
e ? this.activeTab = "chat" : this.activeTab === "chat" && (this.activeTab = "results");
|
|
339
|
-
} }
|
|
340
|
-
}, Ee = { class: "tab-content" }, De = { class: "editor-entry" }, Oe = {
|
|
341
|
-
class: "edit-results",
|
|
342
|
-
ref: "resultsPane"
|
|
343
|
-
}, ke = { class: "edit-results chat-entry" }, Ae = {
|
|
344
|
-
class: "tabs",
|
|
345
|
-
"aria-label": "Editor views"
|
|
346
|
-
};
|
|
347
|
-
function je(e, t, n, r, i, a) {
|
|
348
|
-
return L(), E("div", { class: P(["results-container", `view-${i.activeTab}`]) }, [D("div", Ee, [
|
|
349
|
-
D("div", De, [B(e.$slots, "editor", { onQueryStarted: () => i.activeTab = "results" }, void 0, !0)]),
|
|
350
|
-
q(D("div", Oe, [B(e.$slots, "results", { containerHeight: i.resultsHeight }, void 0, !0)], 512), [[W, i.activeTab === "results"]]),
|
|
351
|
-
q(D("div", ke, [B(e.$slots, "chat", {}, void 0, !0)], 512), [[W, i.activeTab === "chat"]])
|
|
352
|
-
]), D("nav", Ae, [
|
|
353
|
-
D("button", {
|
|
354
|
-
class: P(["tab-button", { active: i.activeTab === "sql" }]),
|
|
355
|
-
onClick: t[0] ||= (e) => i.activeTab = "sql",
|
|
356
|
-
"data-testid": "editor-tab"
|
|
357
|
-
}, " Editor ", 2),
|
|
358
|
-
D("button", {
|
|
359
|
-
class: P(["tab-button", { active: i.activeTab === "results" }]),
|
|
360
|
-
onClick: t[1] ||= (e) => i.activeTab = "results",
|
|
361
|
-
"data-testid": "results-tab"
|
|
362
|
-
}, " Results ", 2),
|
|
363
|
-
n.showChat ? (L(), E("button", {
|
|
364
|
-
key: 0,
|
|
365
|
-
class: P(["tab-button", { active: i.activeTab === "chat" }]),
|
|
366
|
-
onClick: t[2] ||= (e) => i.activeTab = "chat",
|
|
367
|
-
"data-testid": "chat-tab"
|
|
368
|
-
}, " Chat ", 2)) : T("", !0)
|
|
369
|
-
])], 2);
|
|
370
|
-
}
|
|
371
|
-
var Me = /*#__PURE__*/ e(Te, [["render", je], ["__scopeId", "data-v-046a9e75"]]), $ = (e) => A({
|
|
372
|
-
loader: e,
|
|
373
|
-
loadingComponent: y,
|
|
374
|
-
delay: 0
|
|
375
|
-
}), Ne = $(() => import("./TutorialPage-CZGBRJdq.js")), Pe = j({
|
|
376
|
-
name: "MobileIDEComponent",
|
|
377
|
-
data() {
|
|
378
|
-
return {
|
|
379
|
-
demoLaunchInFlight: !1,
|
|
380
|
-
demoLaunchError: "",
|
|
381
|
-
demoHashListener: null
|
|
382
|
-
};
|
|
383
|
-
},
|
|
384
|
-
components: {
|
|
385
|
-
Sidebar: m,
|
|
386
|
-
Editor: $(() => import("./Editor-DhsP18KE.js").then((e) => e.n)),
|
|
387
|
-
DataTable: A(() => import("./DataTable-DoRDynP1.js").then((e) => e.n)),
|
|
388
|
-
ErrorMessage: c,
|
|
389
|
-
TutorialPage: Ne,
|
|
390
|
-
ModelView: x,
|
|
391
|
-
UserSettings: _,
|
|
392
|
-
UserProfile: h,
|
|
393
|
-
LoadingView: l,
|
|
394
|
-
WelcomePage: $(() => import("./WelcomePage-CLKvAvk-.js")),
|
|
395
|
-
MobileDashboard: $(() => import("./DashboardMobile-D_m0xv17.js")),
|
|
396
|
-
DashboardAutoImporter: u,
|
|
397
|
-
AssetAutoImporter: u,
|
|
398
|
-
LoadingButton: s,
|
|
399
|
-
TabbedLayout: Me,
|
|
400
|
-
MobileSidebarLayout: we,
|
|
401
|
-
CommunityModels: d,
|
|
402
|
-
JobsView: f,
|
|
403
|
-
ConnectionView: p,
|
|
404
|
-
ResultsView: A(() => import("./ResultComponent-_-1qZCfv.js").then((e) => e.n)),
|
|
405
|
-
LLMView: $(() => import("./LLMView-VkJpP-49.js")),
|
|
406
|
-
ChatCreatorModal: A(() => import("./ChatCreatorModal-BTqY06B6.js"))
|
|
407
|
-
},
|
|
408
|
-
setup() {
|
|
409
|
-
let e = M("connectionStore"), r = M("editorStore"), i = M("modelStore"), a = M("dashboardStore"), o = M("trilogyResolver"), s = M("queryExecutionService"), c = M("storesLoaded", R(!0)), l = M("saveEditors"), u = M("saveConnections"), d = M("saveModels"), f = M("saveDashboards");
|
|
410
|
-
if (!r || !e || !a || !o || !i || !u || !d || !f) throw Error("Requires injection of connection store, editor store, model store, editors, connections, and models saving.");
|
|
411
|
-
l ||= () => {};
|
|
412
|
-
let p = t(), m = R(null), h = n(), { activeScreen: g, activeEditor: _, activeTab: v, activeDashboard: y, activeSidebarScreen: b, setActiveScreen: x, setActiveSidebarScreen: S, setActiveEditor: C, setActiveDashboard: w, activeConnectionKey: T, activeModelKey: E, activeDocumentationKey: D, setActiveConnectionKey: O, setActiveModelKey: k, setActiveDocumentationKey: A, activeLLMConnectionKey: j, setActiveLLMConnectionKey: N, activeCommunityModelKey: ee, activeJobsKey: P, setActiveJobsKey: F, mobileMenuOpen: L, toggleMobileMenu: z, tabs: B, closeTab: V, closeOtherTabsExcept: H, openTab: U, addBackListeners: re, removeBacklisteners: W, onInitialLoad: G, updateTabName: K } = p, q = (e) => {
|
|
413
|
-
U(e.screen, null, e.address);
|
|
414
|
-
}, J = (e) => {
|
|
415
|
-
V(e, null);
|
|
416
|
-
}, Y = (e) => {
|
|
417
|
-
H(e);
|
|
418
|
-
};
|
|
419
|
-
G(), re(), I(() => {
|
|
420
|
-
W();
|
|
421
|
-
}), ne("navigationStore", p);
|
|
422
|
-
let X = R(""), Z = R(!1), ie = R(""), ae = R("100dvh"), Q = () => {
|
|
423
|
-
let e = window.visualViewport;
|
|
424
|
-
ae.value = e ? `${e.height}px` : `${window.innerHeight}px`, e && e.height >= window.innerHeight - 1 && window.scrollY > 0 && window.scrollTo(0, 0);
|
|
425
|
-
};
|
|
426
|
-
return te(() => {
|
|
427
|
-
Q(), window.visualViewport?.addEventListener("resize", Q);
|
|
428
|
-
}), I(() => {
|
|
429
|
-
window.visualViewport?.removeEventListener("resize", Q);
|
|
430
|
-
}), {
|
|
431
|
-
connectionStore: e,
|
|
432
|
-
editorStore: r,
|
|
433
|
-
storesLoaded: c,
|
|
434
|
-
dashboardStore: a,
|
|
435
|
-
trilogyResolver: o,
|
|
436
|
-
queryExecutionService: s,
|
|
437
|
-
saveEditors: l,
|
|
438
|
-
saveConnections: u,
|
|
439
|
-
saveModels: d,
|
|
440
|
-
saveDashboards: f,
|
|
441
|
-
modelStore: i,
|
|
442
|
-
activeCommunityModelKey: ee,
|
|
443
|
-
activeJobsKey: P,
|
|
444
|
-
activeTab: v,
|
|
445
|
-
activeScreen: g,
|
|
446
|
-
activeSidebarScreen: b,
|
|
447
|
-
activeEditor: _,
|
|
448
|
-
activeDashboard: y,
|
|
449
|
-
activeConnectionKey: T,
|
|
450
|
-
activeModelKey: E,
|
|
451
|
-
activeDocumentationKey: D,
|
|
452
|
-
setActiveScreen: x,
|
|
453
|
-
setActiveSidebarScreen: S,
|
|
454
|
-
setActiveEditor: C,
|
|
455
|
-
setActiveDashboard: w,
|
|
456
|
-
setActiveConnectionKey: O,
|
|
457
|
-
setActiveModelKey: k,
|
|
458
|
-
setActiveDocumentationKey: A,
|
|
459
|
-
activeLLMConnectionKey: j,
|
|
460
|
-
setActiveLLMConnectionKey: N,
|
|
461
|
-
setActiveJobsKey: F,
|
|
462
|
-
mobileMenuOpen: L,
|
|
463
|
-
toggleMobileMenu: z,
|
|
464
|
-
tabs: B,
|
|
465
|
-
openTab: U,
|
|
466
|
-
closeTab: V,
|
|
467
|
-
closeOtherTabsExcept: H,
|
|
468
|
-
tabSelected: q,
|
|
469
|
-
handleTabClosed: J,
|
|
470
|
-
handleCloseOtherTabs: Y,
|
|
471
|
-
updateTabName: K,
|
|
472
|
-
llmInitialTab: X,
|
|
473
|
-
handleLLMOpenView: (e, t, n) => {
|
|
474
|
-
let r = n ? `${e}+${n}` : e;
|
|
475
|
-
N(r), X.value = t, x("llms"), L.value && z(), setTimeout(() => {
|
|
476
|
-
X.value = "";
|
|
477
|
-
}, 100);
|
|
478
|
-
},
|
|
479
|
-
showChatCreatorModal: Z,
|
|
480
|
-
chatCreatorPreselectedConnection: ie,
|
|
481
|
-
handleCreateNewChat: (e) => {
|
|
482
|
-
ie.value = e, Z.value = !0;
|
|
483
|
-
},
|
|
484
|
-
handleChatCreated: (e) => {
|
|
485
|
-
let t = `${e.llmConnectionName}+${e.id}`;
|
|
486
|
-
N(t), X.value = "chat", x("llms"), L.value && z(), setTimeout(() => {
|
|
487
|
-
X.value = "";
|
|
488
|
-
}, 100), Z.value = !1;
|
|
489
|
-
},
|
|
490
|
-
mobileViewportHeight: ae,
|
|
491
|
-
editorRef: m,
|
|
492
|
-
mobileNavigationLevel: h.level,
|
|
493
|
-
mobileNavigationTitle: h.title,
|
|
494
|
-
handleMobileMenuBack: h.back,
|
|
495
|
-
handleMobileMenuHome: () => {
|
|
496
|
-
h.home(), L.value = !0;
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
|
-
},
|
|
500
|
-
async mounted() {
|
|
501
|
-
this.demoHashListener = () => {
|
|
502
|
-
this.maybeStartDemoFromHash();
|
|
503
|
-
}, window.addEventListener("hashchange", this.demoHashListener), await this.maybeStartDemoFromHash();
|
|
504
|
-
},
|
|
505
|
-
beforeUnmount() {
|
|
506
|
-
this.demoHashListener &&= (window.removeEventListener("hashchange", this.demoHashListener), null);
|
|
507
|
-
},
|
|
508
|
-
methods: {
|
|
509
|
-
updateActiveTitle(e) {
|
|
510
|
-
if (this.activeScreen === "editors") {
|
|
511
|
-
this.updateActiveEditorName(e);
|
|
512
|
-
return;
|
|
513
|
-
}
|
|
514
|
-
this.activeScreen === "dashboard" && this.activeDashboard && (this.dashboardStore.updateDashboardName(this.activeDashboard, e), this.saveDashboards(), this.updateTabName("dashboard", null, this.activeDashboard));
|
|
515
|
-
},
|
|
516
|
-
async runQuery() {
|
|
517
|
-
return await this.editorRef?.runQuery(!1);
|
|
518
|
-
},
|
|
519
|
-
handleEditorContentChange(e) {
|
|
520
|
-
this.editorRef?.setContent(e);
|
|
521
|
-
},
|
|
522
|
-
updateActiveEditorName(e) {
|
|
523
|
-
let t = this.activeEditor;
|
|
524
|
-
if (!t) return;
|
|
525
|
-
let n = this.editorStore.editors[t];
|
|
526
|
-
if (n) {
|
|
527
|
-
if (this.editorStore.updateEditorName(t, e), n.tags.includes(r.SOURCE)) {
|
|
528
|
-
let t = n.connectionId ? this.connectionStore.connections[n.connectionId] : this.connectionStore.connectionByName(n.connection);
|
|
529
|
-
t?.model && (this.modelStore.models[t.model].updateModelSourceName(n.id, e), this.saveModels());
|
|
530
|
-
}
|
|
531
|
-
this.updateTabName("editors", null, t);
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
saveEditorsCall() {
|
|
535
|
-
this.saveEditors();
|
|
536
|
-
},
|
|
537
|
-
waitForStoresLoaded() {
|
|
538
|
-
return this.storesLoaded ? Promise.resolve() : new Promise((e) => {
|
|
539
|
-
let t = G(() => this.storesLoaded, (n) => {
|
|
540
|
-
n && (t(), e());
|
|
541
|
-
});
|
|
542
|
-
});
|
|
543
|
-
},
|
|
544
|
-
maybeStartDemoFromHash() {
|
|
545
|
-
return a(o.DEMO, "") === "true" ? this.launchDemo() : Promise.resolve();
|
|
546
|
-
},
|
|
547
|
-
async launchDemo() {
|
|
548
|
-
if (!this.demoLaunchInFlight) {
|
|
549
|
-
this.demoLaunchInFlight = !0, this.demoLaunchError = "";
|
|
550
|
-
try {
|
|
551
|
-
await this.waitForStoresLoaded(), await this.startDemo(), i(o.DEMO);
|
|
552
|
-
} catch (e) {
|
|
553
|
-
console.error("Demo setup failed:", e), this.demoLaunchError = e instanceof Error ? e.message : String(e);
|
|
554
|
-
} finally {
|
|
555
|
-
this.demoLaunchInFlight = !1;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
async startDemo() {
|
|
560
|
-
let e = await b(this.editorStore, this.connectionStore, this.modelStore, this.dashboardStore, this.saveEditors, this.saveConnections, this.saveModels, this.saveDashboards, this.queryExecutionService);
|
|
561
|
-
this.setActiveScreen("editors"), this.setActiveEditor(e);
|
|
562
|
-
},
|
|
563
|
-
handleImportComplete(e) {
|
|
564
|
-
console.log(`Dashboard import completed: ${e}`);
|
|
565
|
-
},
|
|
566
|
-
handleAssetImportComplete(e, t) {
|
|
567
|
-
console.log(`Asset import completed: ${t} ${e}`);
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
computed: {
|
|
571
|
-
activeEditorData() {
|
|
572
|
-
return this.activeEditor ? this.editorStore.editors[this.activeEditor] : null;
|
|
573
|
-
},
|
|
574
|
-
hasActiveEditorChat() {
|
|
575
|
-
return this.activeEditor ? !!this.editorStore.editors[this.activeEditor]?.hasActiveRefinement() : !1;
|
|
576
|
-
},
|
|
577
|
-
editorList() {
|
|
578
|
-
return Object.keys(this.editors).map((e) => this.editors[e]);
|
|
579
|
-
},
|
|
580
|
-
editors() {
|
|
581
|
-
return this.editorStore.editors;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
});
|
|
585
|
-
//#endregion
|
|
586
|
-
//#region views/MobileIDE.vue
|
|
587
|
-
function Fe(e, t, n, r, i, a) {
|
|
588
|
-
let o = V("ChatCreatorModal"), s = V("sidebar"), c = V("editor"), l = V("ResultsView"), u = V("tabbed-layout"), d = V("connection-view"), f = V("tutorial-page"), p = V("model-view"), m = V("user-profile"), h = V("user-settings"), g = V("mobile-dashboard"), _ = V("dashboard-auto-importer"), v = V("asset-auto-importer"), y = V("community-models"), b = V("jobs-view"), x = V("LLMView"), S = V("welcome-page"), C = V("mobile-sidebar-layout");
|
|
589
|
-
return L(), E("div", {
|
|
590
|
-
class: "main mobile-ide-root",
|
|
591
|
-
style: F({ "--mobile-viewport-height": e.mobileViewportHeight })
|
|
592
|
-
}, [k(o, {
|
|
593
|
-
visible: e.showChatCreatorModal,
|
|
594
|
-
preselectedConnection: e.chatCreatorPreselectedConnection,
|
|
595
|
-
activeDataConnection: e.activeConnectionKey,
|
|
596
|
-
onClose: t[0] ||= (t) => e.showChatCreatorModal = !1,
|
|
597
|
-
onChatCreated: e.handleChatCreated
|
|
598
|
-
}, null, 8, [
|
|
599
|
-
"visible",
|
|
600
|
-
"preselectedConnection",
|
|
601
|
-
"activeDataConnection",
|
|
602
|
-
"onChatCreated"
|
|
603
|
-
]), k(C, {
|
|
604
|
-
onMenuToggled: t[1] ||= (t) => e.mobileMenuOpen = !e.mobileMenuOpen,
|
|
605
|
-
onMenuBack: e.handleMobileMenuBack,
|
|
606
|
-
onMenuHome: e.handleMobileMenuHome,
|
|
607
|
-
onTabSelected: e.tabSelected,
|
|
608
|
-
menuOpen: e.mobileMenuOpen,
|
|
609
|
-
mobileNavigationLevel: e.mobileNavigationLevel,
|
|
610
|
-
mobileNavigationTitle: e.mobileNavigationTitle,
|
|
611
|
-
activeScreen: e.activeScreen,
|
|
612
|
-
titleEditable: ["editors", "dashboard"].includes(e.activeScreen),
|
|
613
|
-
tabs: e.tabs,
|
|
614
|
-
activeTab: e.activeTab,
|
|
615
|
-
onTabClosed: e.handleTabClosed,
|
|
616
|
-
onCloseOtherTabs: e.handleCloseOtherTabs,
|
|
617
|
-
onActiveTitleUpdated: e.updateActiveTitle
|
|
618
|
-
}, {
|
|
619
|
-
sidebar: K(() => [k(s, {
|
|
620
|
-
onEditorSelected: e.setActiveEditor,
|
|
621
|
-
onScreenSelected: e.setActiveSidebarScreen,
|
|
622
|
-
onSaveEditors: e.saveEditorsCall,
|
|
623
|
-
onModelKeySelected: e.setActiveModelKey,
|
|
624
|
-
onJobsKeySelected: e.setActiveJobsKey,
|
|
625
|
-
onDocumentationKeySelected: e.setActiveDocumentationKey,
|
|
626
|
-
onDashboardKeySelected: e.setActiveDashboard,
|
|
627
|
-
onToggleMobileMenu: e.toggleMobileMenu,
|
|
628
|
-
onConnectionKeySelected: e.setActiveConnectionKey,
|
|
629
|
-
onLlmKeySelected: e.setActiveLLMConnectionKey,
|
|
630
|
-
onLlmOpenView: e.handleLLMOpenView,
|
|
631
|
-
onCreateNewChat: e.handleCreateNewChat,
|
|
632
|
-
active: e.activeSidebarScreen,
|
|
633
|
-
activeEditor: e.activeEditor,
|
|
634
|
-
activeDocumentationKey: e.activeDocumentationKey,
|
|
635
|
-
activeConnectionKey: e.activeConnectionKey,
|
|
636
|
-
activeModelKey: e.activeModelKey,
|
|
637
|
-
activeJobsKey: e.activeJobsKey,
|
|
638
|
-
activeDashboardKey: e.activeDashboard,
|
|
639
|
-
activeLLMKey: e.activeLLMConnectionKey
|
|
640
|
-
}, null, 8, [
|
|
641
|
-
"onEditorSelected",
|
|
642
|
-
"onScreenSelected",
|
|
643
|
-
"onSaveEditors",
|
|
644
|
-
"onModelKeySelected",
|
|
645
|
-
"onJobsKeySelected",
|
|
646
|
-
"onDocumentationKeySelected",
|
|
647
|
-
"onDashboardKeySelected",
|
|
648
|
-
"onToggleMobileMenu",
|
|
649
|
-
"onConnectionKeySelected",
|
|
650
|
-
"onLlmKeySelected",
|
|
651
|
-
"onLlmOpenView",
|
|
652
|
-
"onCreateNewChat",
|
|
653
|
-
"active",
|
|
654
|
-
"activeEditor",
|
|
655
|
-
"activeDocumentationKey",
|
|
656
|
-
"activeConnectionKey",
|
|
657
|
-
"activeModelKey",
|
|
658
|
-
"activeJobsKey",
|
|
659
|
-
"activeDashboardKey",
|
|
660
|
-
"activeLLMKey"
|
|
661
|
-
])]),
|
|
662
|
-
default: K(() => [e.activeScreen && e.activeScreen !== "" && ["editors"].includes(e.activeScreen) ? (L(), w(u, {
|
|
663
|
-
key: 0,
|
|
664
|
-
"show-chat": e.hasActiveEditorChat
|
|
665
|
-
}, O({ _: 2 }, [
|
|
666
|
-
e.activeEditor && e.activeEditorData ? {
|
|
667
|
-
name: "editor",
|
|
668
|
-
fn: K((t) => [e.activeEditorData.type == "preql" ? (L(), w(c, {
|
|
669
|
-
key: 0,
|
|
670
|
-
ref: "editorRef",
|
|
671
|
-
context: "main-trilogy",
|
|
672
|
-
editorId: e.activeEditor,
|
|
673
|
-
onQueryStarted: t.onQueryStarted,
|
|
674
|
-
onSaveEditors: e.saveEditorsCall
|
|
675
|
-
}, null, 8, [
|
|
676
|
-
"editorId",
|
|
677
|
-
"onQueryStarted",
|
|
678
|
-
"onSaveEditors"
|
|
679
|
-
])) : (L(), w(c, {
|
|
680
|
-
key: 1,
|
|
681
|
-
onQueryStarted: t.onQueryStarted,
|
|
682
|
-
ref: "editorRef",
|
|
683
|
-
context: "main-sql",
|
|
684
|
-
editorId: e.activeEditor,
|
|
685
|
-
onSaveEditors: e.saveEditorsCall
|
|
686
|
-
}, null, 8, [
|
|
687
|
-
"onQueryStarted",
|
|
688
|
-
"editorId",
|
|
689
|
-
"onSaveEditors"
|
|
690
|
-
]))]),
|
|
691
|
-
key: "0"
|
|
692
|
-
} : void 0,
|
|
693
|
-
e.activeEditorData ? {
|
|
694
|
-
name: "results",
|
|
695
|
-
fn: K(({ containerHeight: t }) => [k(l, {
|
|
696
|
-
editorData: e.activeEditorData,
|
|
697
|
-
containerHeight: t,
|
|
698
|
-
runEditorQuery: e.runQuery,
|
|
699
|
-
"display-mode": "results",
|
|
700
|
-
onContentChange: e.handleEditorContentChange
|
|
701
|
-
}, null, 8, [
|
|
702
|
-
"editorData",
|
|
703
|
-
"containerHeight",
|
|
704
|
-
"runEditorQuery",
|
|
705
|
-
"onContentChange"
|
|
706
|
-
])]),
|
|
707
|
-
key: "1"
|
|
708
|
-
} : void 0,
|
|
709
|
-
e.activeEditorData && e.hasActiveEditorChat ? {
|
|
710
|
-
name: "chat",
|
|
711
|
-
fn: K(() => [k(l, {
|
|
712
|
-
editorData: e.activeEditorData,
|
|
713
|
-
runEditorQuery: e.runQuery,
|
|
714
|
-
"display-mode": "chat",
|
|
715
|
-
onContentChange: e.handleEditorContentChange
|
|
716
|
-
}, null, 8, [
|
|
717
|
-
"editorData",
|
|
718
|
-
"runEditorQuery",
|
|
719
|
-
"onContentChange"
|
|
720
|
-
])]),
|
|
721
|
-
key: "2"
|
|
722
|
-
} : void 0
|
|
723
|
-
]), 1032, ["show-chat"])) : e.activeScreen === "connections" ? (L(), w(d, {
|
|
724
|
-
key: 1,
|
|
725
|
-
activeConnectionKey: e.activeConnectionKey,
|
|
726
|
-
onSaveEditors: e.saveEditorsCall
|
|
727
|
-
}, null, 8, ["activeConnectionKey", "onSaveEditors"])) : e.activeScreen === "tutorial" ? (L(), w(f, {
|
|
728
|
-
key: 2,
|
|
729
|
-
activeDocumentationKey: e.activeDocumentationKey
|
|
730
|
-
}, null, 8, ["activeDocumentationKey"])) : e.activeScreen === "models" ? (L(), w(p, {
|
|
731
|
-
key: 3,
|
|
732
|
-
activeModelKey: e.activeModelKey,
|
|
733
|
-
onSaveEditors: e.saveEditorsCall
|
|
734
|
-
}, null, 8, ["activeModelKey", "onSaveEditors"])) : e.activeScreen === "profile" ? (L(), w(m, { key: 4 })) : e.activeScreen === "settings" ? (L(), w(h, { key: 5 })) : e.activeScreen === "dashboard" ? (L(), w(g, {
|
|
735
|
-
key: 6,
|
|
736
|
-
name: e.activeDashboard
|
|
737
|
-
}, null, 8, ["name"])) : e.activeScreen === "dashboard-import" ? (L(), w(_, {
|
|
738
|
-
key: 7,
|
|
739
|
-
onImportComplete: e.handleImportComplete
|
|
740
|
-
}, null, 8, ["onImportComplete"])) : e.activeScreen === "asset-import" ? (L(), w(v, {
|
|
741
|
-
key: 8,
|
|
742
|
-
onImportComplete: e.handleAssetImportComplete
|
|
743
|
-
}, null, 8, ["onImportComplete"])) : e.activeScreen === "community-models" ? (L(), w(y, {
|
|
744
|
-
key: 9,
|
|
745
|
-
activeCommunityModelKey: e.activeCommunityModelKey
|
|
746
|
-
}, null, 8, ["activeCommunityModelKey"])) : e.activeScreen === "jobs" ? (L(), w(b, {
|
|
747
|
-
key: 10,
|
|
748
|
-
activeJobsKey: e.activeJobsKey
|
|
749
|
-
}, null, 8, ["activeJobsKey"])) : e.activeScreen === "llms" ? (L(), w(x, {
|
|
750
|
-
key: 11,
|
|
751
|
-
initialTab: e.llmInitialTab
|
|
752
|
-
}, null, 8, ["initialTab"])) : (L(), w(S, {
|
|
753
|
-
key: 12,
|
|
754
|
-
"demo-error": e.demoLaunchError,
|
|
755
|
-
onScreenSelected: e.setActiveScreen,
|
|
756
|
-
onDemoStarted: e.launchDemo
|
|
757
|
-
}, null, 8, [
|
|
758
|
-
"demo-error",
|
|
759
|
-
"onScreenSelected",
|
|
760
|
-
"onDemoStarted"
|
|
761
|
-
]))]),
|
|
762
|
-
_: 1
|
|
763
|
-
}, 8, [
|
|
764
|
-
"onMenuBack",
|
|
765
|
-
"onMenuHome",
|
|
766
|
-
"onTabSelected",
|
|
767
|
-
"menuOpen",
|
|
768
|
-
"mobileNavigationLevel",
|
|
769
|
-
"mobileNavigationTitle",
|
|
770
|
-
"activeScreen",
|
|
771
|
-
"titleEditable",
|
|
772
|
-
"tabs",
|
|
773
|
-
"activeTab",
|
|
774
|
-
"onTabClosed",
|
|
775
|
-
"onCloseOtherTabs",
|
|
776
|
-
"onActiveTitleUpdated"
|
|
777
|
-
])], 4);
|
|
778
|
-
}
|
|
779
|
-
var Ie = /*#__PURE__*/ e(Pe, [["render", Fe], ["__scopeId", "data-v-44491763"]]);
|
|
780
|
-
//#endregion
|
|
781
|
-
export { Ie as default };
|