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