@trilogy-data/trilogy-studio-components 0.1.26 → 0.1.28
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-C_7Ms9xe.js +403 -0
- package/dist/{ChatCreatorModal-CL-jBnc3.js → ChatCreatorModal-Cd40SvdM.js} +3 -3
- package/dist/{ChatModelSelect-Do-VRUFc.js → ChatModelSelect-Cz7axWjP.js} +1 -1
- package/dist/{CodeBlock-PT4no49I.js → CodeBlock-Dj-GfTbW.js} +4 -4
- package/dist/{CommunityModels-Cmro0hV3.js → CommunityModels-lX2RhHCG.js} +7 -7
- package/dist/{ConnectionErrorPopup-FSs7U-Yl.js → ConnectionErrorPopup-7vpqgF0s.js} +1 -1
- package/dist/{ConnectionView-COnTTuA4.js → ConnectionView-CZ06qjjE.js} +49 -49
- package/dist/{CreateEditorFromDatasourcePopup-snOh1d5h.js → CreateEditorFromDatasourcePopup-DwA938kf.js} +4 -4
- package/dist/{Dashboard-BH9ZwMVJ.js → Dashboard-CQsIqWZC.js} +276 -280
- package/dist/{DashboardImportSelector-DQSvu9T-.js → DashboardImportSelector-CkqH52FX.js} +2 -2
- package/dist/{DashboardMobile-BUPtdN2V.js → DashboardMobile-DWFlel5p.js} +39 -39
- package/dist/{DrilldownPane-CBs5ZojS.js → DrilldownPane-BheRHJMs.js} +5 -7
- package/dist/{Editor-DQsYpkwl.js → Editor-DQ66Vp6v.js} +105 -103
- package/dist/{ErrorMessage-XMn_08gJ.js → ErrorMessage-D5JeF3Iz.js} +4 -4
- package/dist/{GlobalChatPanel-DhnOaige.js → GlobalChatPanel-B_s3COHE.js} +20 -21
- package/dist/{IDE-HLa8vybk.js → IDE-4-Jg6gsM.js} +200 -203
- package/dist/{JobsView-B97HBoIE.js → JobsView-B5NWDUgP.js} +13 -14
- package/dist/{LLMChat-CxJcPLEG.js → LLMChat-eKgEc-I3.js} +3 -3
- package/dist/{LLMView-C1MUf0c2.js → LLMView-CdTwMLVV.js} +23 -23
- package/dist/{LoadingView-s1uznGwG.js → LoadingView-Bu3wLJ7J.js} +2 -2
- package/dist/{MarkdownRenderer-BNDuEyG-.js → MarkdownRenderer-B6lqdkgc.js} +531 -430
- package/dist/{MobileIDE-BpqXoaMR.js → MobileIDE-CZlg20oa.js} +179 -182
- package/dist/{ModelCard-BhN25jaV.js → ModelCard-Bs_d7Jis.js} +12 -13
- package/dist/{ModelView-DUDA_PtZ.js → ModelView-BP5yyecx.js} +7 -7
- package/dist/PageLoading-DKFeqkmK.js +5937 -0
- package/dist/{ResultComponent-CAn_r3BL.js → ResultComponent-BaDheojB.js} +8 -8
- package/dist/{Results-BJtlwebY.js → Results-CrpHB101.js} +17 -19
- package/dist/{StatusIcon-BylPx2EO.js → StatusIcon-Clfyy-Yn.js} +2 -2
- package/dist/{StoreTokenModal-zCSYhfrw.js → StoreTokenModal-CO5hXMs3.js} +2 -2
- package/dist/{SymbolsPane-KYSwN9Sv.js → SymbolsPane-XFVErDFb.js} +6 -3
- package/dist/{TrilogyEmbedProvider-WA_dlv9e.js → TrilogyEmbedProvider-D3h0gYnX.js} +9 -9
- package/dist/{TutorialPage-NRcee6Dx.js → TutorialPage-CMcTYDOV.js} +27 -28
- package/dist/{VegaLiteChart-D1slfOUY.js → VegaLiteChart-DX_LbF3g.js} +12131 -10947
- package/dist/{WelcomePage-D5mU2x1L.js → WelcomePage-B6E35FUa.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/FeedbackBanner.vue.d.ts +4 -0
- package/dist/components/FeedbackBanner.vue.d.ts.map +1 -0
- 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/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/model/ModelCard.vue.d.ts +3 -3
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
- 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 +28 -31
- package/dist/dashboards/dashboardQueryExecutor.d.ts +9 -0
- package/dist/dashboards/dashboardQueryExecutor.d.ts.map +1 -1
- 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-DoP9P5J2.js → editorStore-CiWH_nGN.js} +1692 -575
- package/dist/embed.js +2 -2
- package/dist/{freemarker2-fW5NBILf.js → freemarker2-DQBqlEXc.js} +1 -1
- package/dist/{globalChatRuntime-DWZxeS57.js → globalChatRuntime-DAERmOdu.js} +16 -16
- package/dist/{handlebars-dG4w8UUY.js → handlebars-tgYxaM70.js} +1 -1
- package/dist/{helpers-BLQAgX3C.js → helpers-C2pARJoZ.js} +34 -35
- 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/prompts.d.ts +1 -1
- package/dist/llm/data/prompts.d.ts.map +1 -1
- package/dist/llm/data/trilogySyntax.generated.d.ts +3 -3
- package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
- package/dist/llm-Wf4Etiu9.js +18493 -0
- package/dist/llm.js +2 -3
- package/dist/{localStorage-D9uyOFEO.js → localStorage-C3xms-ab.js} +40 -43
- package/dist/{lspLanguageFeatures-Cdfs3EKq.js → lspLanguageFeatures-V3e_p9oN.js} +32 -32
- package/dist/{mdx-fn3g4PH5.js → mdx-BUR1aImW.js} +1 -1
- package/dist/monaco.js +4 -4
- package/dist/{python-CCVj0pFt.js → python-YLkl0pc6.js} +1 -1
- package/dist/{razor-Cj3flYnk.js → razor-BP8TRMDY.js} +1 -1
- package/dist/{reconcile-Dyf4UZmj.js → reconcile-BH_ReGDR.js} +1 -1
- package/dist/{remoteStoreSync-Z-yjlYtI.js → remoteStoreSync-B0K8QScO.js} +3 -3
- 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-DTGQZ4_B.js +2612 -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-B0HZ_DVh.js → useChatWithTools-BSrzJtYI.js} +11 -11
- package/dist/{useDashboard-CdSnPe_6.js → useDashboard-CGeIdDuX.js} +1014 -1022
- package/dist/{tabulator_esm-CxLvGDp8.js → useGlobalChatPanel-D9kMZLeF.js} +1729 -711
- package/dist/{useResizableDialog-B0ePSts4.js → useResizableDialog-Cs90WJdF.js} +2 -2
- 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 +9 -9
- package/dist/views/TutorialPage.vue.d.ts.map +1 -1
- package/dist/views.js +192 -194
- package/dist/{vocabulary-CKLGILtR.js → vocabulary-DQK5jB7m.js} +3 -1
- 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-CBzvBaOt.js +0 -405
- package/dist/DashboardCreatorInline-CDU7kLy3.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/ModalDialog-D1EOG4rl.js +0 -42
- package/dist/ModelCreator-CCdC7EXt.js +0 -253
- package/dist/PageLoading-BzniJM0C.js +0 -2669
- 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-ppM6nGks.js +0 -641
- package/dist/demoSetup-mwa-RDC6.js +0 -2942
- package/dist/editorRefinementToolExecutor-CVY3FA7k.js +0 -4624
- package/dist/editorStore-BhhmXbi-.js +0 -1019
- package/dist/formatting-BbJ5ICgh.js +0 -6
- package/dist/llm-BBOVWb-F.js +0 -11967
- package/dist/llmStore-DJM2JhzY.js +0 -153
- package/dist/monaco.contribution-ikesdolO.js +0 -128
- package/dist/stores-BT9hTLny.js +0 -1708
- package/dist/trilogy-BroD2Qmp.js +0 -4
- package/dist/urlStore-52HG6lsX.js +0 -55
- package/dist/useGlobalChatPanel-D_0luajQ.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,19 +1,17 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./connections-
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as s } from "./CodeBlock-PT4no49I.js";
|
|
10
|
-
import { t as c } from "./CreateEditorFromDatasourcePopup-snOh1d5h.js";
|
|
1
|
+
import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
3
|
+
import { t as n, u as r } from "./base-DuKnVD-A.js";
|
|
4
|
+
import { r as i } from "./stores-DTGQZ4_B.js";
|
|
5
|
+
import "./connections-CWH3zwH2.js";
|
|
6
|
+
import { r as a, u as o } from "./useGlobalChatPanel-D9kMZLeF.js";
|
|
7
|
+
import { t as s } from "./CodeBlock-Dj-GfTbW.js";
|
|
8
|
+
import { t as c } from "./CreateEditorFromDatasourcePopup-DwA938kf.js";
|
|
11
9
|
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, inject as v, nextTick as y, normalizeClass as b, onMounted as x, onUnmounted as S, openBlock as C, ref as w, renderList as T, resolveComponent as E, toDisplayString as D, vModelText as O, watch as k, withCtx as A, withDirectives as j } from "vue";
|
|
12
10
|
//#region components/connection/ConnectionTable.vue?vue&type=script&lang.ts
|
|
13
11
|
var ee = _({
|
|
14
12
|
name: "TableViewer",
|
|
15
13
|
components: {
|
|
16
|
-
DataTable:
|
|
14
|
+
DataTable: a,
|
|
17
15
|
CreateEditorFromDatasourcePopup: c
|
|
18
16
|
},
|
|
19
17
|
props: {
|
|
@@ -37,7 +35,7 @@ var ee = _({
|
|
|
37
35
|
return e.table.columns.filter((e) => e.name.toLowerCase().includes(t) || e.type.toLowerCase().includes(t));
|
|
38
36
|
}), h = u(() => {
|
|
39
37
|
let t = p(e.table);
|
|
40
|
-
return a.value[t] || new
|
|
38
|
+
return a.value[t] || new r(/* @__PURE__ */ new Map(), []);
|
|
41
39
|
}), g = u(() => {
|
|
42
40
|
let t = p(e.table), n = a.value[t]?.data?.length > 0, r = e.table.columns.length > 0;
|
|
43
41
|
return !n || !r;
|
|
@@ -54,8 +52,8 @@ var ee = _({
|
|
|
54
52
|
}, E = () => {
|
|
55
53
|
window.removeEventListener("resize", C), b &&= (clearTimeout(b), null);
|
|
56
54
|
}, D = async (t = !1) => {
|
|
57
|
-
let
|
|
58
|
-
if (!(!t && a.value[
|
|
55
|
+
let n = p(e.table);
|
|
56
|
+
if (!(!t && a.value[n]?.data?.length > 0 && e.table.columns.length > 0)) {
|
|
59
57
|
o.value = !0, s.value = null;
|
|
60
58
|
try {
|
|
61
59
|
if (!f) throw Error("Connection store not found");
|
|
@@ -63,15 +61,15 @@ var ee = _({
|
|
|
63
61
|
if (!t) throw Error(`Connection "${e.connectionName}" not found`);
|
|
64
62
|
await t.refreshColumns(e.table.database, e.table.schema, e.table.name);
|
|
65
63
|
let i = await t.getTableSample(e.table.database, e.table.schema, e.table.name, 50);
|
|
66
|
-
a.value[
|
|
64
|
+
a.value[n] = i || new r(/* @__PURE__ */ new Map(), []);
|
|
67
65
|
} catch (e) {
|
|
68
|
-
console.error("Error loading sample data for",
|
|
66
|
+
console.error("Error loading sample data for", n, ":", e), s.value = e instanceof Error ? e.message : "Failed to load sample data";
|
|
69
67
|
} finally {
|
|
70
68
|
o.value = !1;
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
};
|
|
74
|
-
|
|
72
|
+
k(() => e.table, async (e, n) => {
|
|
75
73
|
p(e) !== (n ? p(n) : null) && (i.value = "", g.value && await D(), t.value === "data" && (await y(), _()));
|
|
76
74
|
}, { immediate: !1 }), k(t, async (e) => {
|
|
77
75
|
e === "data" && (await y(), _());
|
|
@@ -79,7 +77,9 @@ var ee = _({
|
|
|
79
77
|
T(), g.value && await D(), t.value === "data" && (await y(), _());
|
|
80
78
|
}), S(() => {
|
|
81
79
|
E();
|
|
82
|
-
})
|
|
80
|
+
});
|
|
81
|
+
let O = u(() => f ? f.connectionByName(e.connectionName) : null);
|
|
82
|
+
return {
|
|
83
83
|
activeTab: t,
|
|
84
84
|
searchTerm: i,
|
|
85
85
|
filteredColumns: m,
|
|
@@ -87,11 +87,11 @@ var ee = _({
|
|
|
87
87
|
isLoading: o,
|
|
88
88
|
error: s,
|
|
89
89
|
loadSampleData: () => D(!0),
|
|
90
|
-
AssetType:
|
|
90
|
+
AssetType: n,
|
|
91
91
|
resultContainerRef: c,
|
|
92
92
|
tabsRef: l,
|
|
93
93
|
containerHeight: d,
|
|
94
|
-
connectionInfo:
|
|
94
|
+
connectionInfo: O
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
}), te = { class: "table-viewer" }, ne = { class: "table-header" }, M = { class: "table-title-row" }, N = { class: "table-title-block" }, P = { class: "table-title" }, F = {
|
|
@@ -208,7 +208,7 @@ var fe = /*#__PURE__*/ t(ee, [["render", de], ["__scopeId", "data-v-ea998475"]])
|
|
|
208
208
|
required: !0
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
|
-
components: { LoadingButton:
|
|
211
|
+
components: { LoadingButton: o },
|
|
212
212
|
emits: [
|
|
213
213
|
"schema-selected",
|
|
214
214
|
"refresh-database",
|
|
@@ -421,11 +421,11 @@ var ct = /*#__PURE__*/ t(Ne, [["render", st], ["__scopeId", "data-v-eac58086"]])
|
|
|
421
421
|
}
|
|
422
422
|
},
|
|
423
423
|
setup(e) {
|
|
424
|
-
let t = e, n =
|
|
425
|
-
|
|
426
|
-
},
|
|
427
|
-
event?.stopPropagation(),
|
|
428
|
-
},
|
|
424
|
+
let t = e, n = u(() => t.connectionId), r = w(i(n.value)), a = w({}), o = w({}), c = u(() => r.value.history), d = u(() => r.value.isLoading), _ = u(() => r.value.error), v = (e) => {
|
|
425
|
+
a.value[e] = !a.value[e];
|
|
426
|
+
}, y = (e, t) => {
|
|
427
|
+
event?.stopPropagation(), o.value[e] = t;
|
|
428
|
+
}, S = (e) => {
|
|
429
429
|
let t = new Date(e);
|
|
430
430
|
return new Intl.DateTimeFormat("default", {
|
|
431
431
|
year: "numeric",
|
|
@@ -435,57 +435,57 @@ var ct = /*#__PURE__*/ t(Ne, [["render", st], ["__scopeId", "data-v-eac58086"]])
|
|
|
435
435
|
minute: "numeric",
|
|
436
436
|
second: "numeric"
|
|
437
437
|
}).format(t);
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
},
|
|
441
|
-
|
|
438
|
+
}, E = (e) => e < 1e3 ? `${e.toFixed(1)} ms` : `${(e / 1e3).toFixed(2)} s`, O = (e, t) => e.length > t ? `${e.substring(0, t)}...` : e, A = () => {
|
|
439
|
+
r.value.refreshHistory();
|
|
440
|
+
}, j = () => {
|
|
441
|
+
r.value.clearHistory();
|
|
442
442
|
};
|
|
443
443
|
return k(() => t.connectionId, (e) => {
|
|
444
|
-
|
|
444
|
+
a.value = {}, o.value = {}, r.value = i(e), A();
|
|
445
445
|
}, { immediate: !0 }), x(() => {
|
|
446
|
-
|
|
446
|
+
A();
|
|
447
447
|
}), (t, n) => (C(), p("div", lt, [m("div", ut, [
|
|
448
448
|
h(" Query History for " + D(e.connectionName) + " ", 1),
|
|
449
|
-
|
|
449
|
+
c.value.length > 0 ? (C(), p("span", dt, "(" + D(c.value.length) + ")", 1)) : f("", !0),
|
|
450
450
|
m("div", { class: "query-history-actions" }, [m("button", {
|
|
451
|
-
onClick:
|
|
451
|
+
onClick: A,
|
|
452
452
|
class: "refresh-btn",
|
|
453
453
|
title: "Refresh history"
|
|
454
454
|
}, "Refresh"), m("button", {
|
|
455
|
-
onClick:
|
|
455
|
+
onClick: j,
|
|
456
456
|
class: "clear-btn",
|
|
457
457
|
title: "Clear history"
|
|
458
458
|
}, "Clear")])
|
|
459
|
-
]),
|
|
459
|
+
]), d.value ? (C(), p("div", ft, "Loading history...")) : _.value ? (C(), p("div", pt, [m("p", null, "Error: " + D(_.value), 1), m("button", { onClick: A }, "Retry")])) : c.value.length === 0 ? (C(), p("div", mt, " No queries have been executed yet. ")) : (C(), p("div", ht, [(C(!0), p(l, null, T(c.value, (e) => (C(), p("div", {
|
|
460
460
|
key: e.id,
|
|
461
461
|
class: b(["query-history-item", e.status === "error" ? "error" : "success"])
|
|
462
462
|
}, [m("div", {
|
|
463
463
|
class: "query-history-item-header",
|
|
464
|
-
onClick: (t) =>
|
|
464
|
+
onClick: (t) => v(e.id)
|
|
465
465
|
}, [
|
|
466
466
|
m("div", _t, D(e.status === "success" ? "✓" : "✗"), 1),
|
|
467
|
-
m("div", vt, [m("div", yt, D(
|
|
468
|
-
m("span", xt, D(
|
|
467
|
+
m("div", vt, [m("div", yt, D(O(e.query, 50)), 1), m("div", bt, [
|
|
468
|
+
m("span", xt, D(E(e.executionTime)), 1),
|
|
469
469
|
m("span", St, D(e.resultSize) + " rows", 1),
|
|
470
|
-
m("span", Ct, D(
|
|
470
|
+
m("span", Ct, D(S(e.timestamp)), 1)
|
|
471
471
|
])]),
|
|
472
|
-
m("div", wt, D(
|
|
473
|
-
], 8, gt),
|
|
472
|
+
m("div", wt, D(a.value[e.id] ? "▼" : "▶"), 1)
|
|
473
|
+
], 8, gt), a.value[e.id] ? (C(), p("div", Tt, [
|
|
474
474
|
e.generatedQuery ? (C(), p("div", Et, [m("button", {
|
|
475
|
-
class: b(["tab-button", { active: !
|
|
476
|
-
onClick: (t) =>
|
|
475
|
+
class: b(["tab-button", { active: !o.value[e.id] }]),
|
|
476
|
+
onClick: (t) => y(e.id, !1)
|
|
477
477
|
}, " Executed Query ", 10, Dt), m("button", {
|
|
478
|
-
class: b(["tab-button", { active:
|
|
479
|
-
onClick: (t) =>
|
|
478
|
+
class: b(["tab-button", { active: o.value[e.id] }]),
|
|
479
|
+
onClick: (t) => y(e.id, !0)
|
|
480
480
|
}, " Generated Query ", 10, Q)])) : f("", !0),
|
|
481
481
|
g(s, {
|
|
482
482
|
class: "query-history-item-query",
|
|
483
|
-
content:
|
|
483
|
+
content: o.value[e.id] && e.generatedQuery ? e.generatedQuery : e.query,
|
|
484
484
|
language: "sql"
|
|
485
485
|
}, null, 8, ["content"]),
|
|
486
486
|
m("div", Ot, [
|
|
487
|
-
m("div", null, "Executed at: " + D(
|
|
488
|
-
m("div", null, "Time: " + D(
|
|
487
|
+
m("div", null, "Executed at: " + D(S(e.timestamp)), 1),
|
|
488
|
+
m("div", null, "Time: " + D(E(e.executionTime)), 1),
|
|
489
489
|
m("div", null, "Rows: " + D(e.resultSize), 1),
|
|
490
490
|
m("div", null, "Columns: " + D(e.resultColumns), 1),
|
|
491
491
|
e.status === "error" ? (C(), p("div", kt, " Error: " + D(e.errorMessage), 1)) : f("", !0)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as r } from "./CodeBlock-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
+
import { u as t } from "./base-DuKnVD-A.js";
|
|
3
|
+
import { r as n } from "./useGlobalChatPanel-D9kMZLeF.js";
|
|
4
|
+
import { t as r } from "./CodeBlock-Dj-GfTbW.js";
|
|
5
5
|
import { Fragment as i, Teleport as a, computed as o, createBlock as ee, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, inject as p, nextTick as te, onMounted as ne, onUnmounted as re, openBlock as m, ref as h, renderList as ie, toDisplayString as g, vModelCheckbox as ae, vModelText as oe, watch as se, withDirectives as _, withKeys as v, withModifiers as y } from "vue";
|
|
6
6
|
//#region components/sidebar/CreateEditorFromDatasourcePopup.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var ce = ["data-testid"], le = ["data-testid"], ue = {
|