@trilogy-data/trilogy-studio-components 0.1.26 → 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.
Files changed (138) hide show
  1. package/dist/AssetAutoImporter-OHphsfW9.js +403 -0
  2. package/dist/{ChatCreatorModal-CL-jBnc3.js → ChatCreatorModal-CuXha6Dg.js} +3 -3
  3. package/dist/{ChatModelSelect-Do-VRUFc.js → ChatModelSelect-Cz7axWjP.js} +1 -1
  4. package/dist/{CodeBlock-PT4no49I.js → CodeBlock-BBsaC6hX.js} +4 -4
  5. package/dist/{CommunityModels-Cmro0hV3.js → CommunityModels-CIQQhO-y.js} +7 -7
  6. package/dist/{ConnectionErrorPopup-FSs7U-Yl.js → ConnectionErrorPopup-7vpqgF0s.js} +1 -1
  7. package/dist/{ConnectionView-COnTTuA4.js → ConnectionView-7Jj_Ggdi.js} +49 -49
  8. package/dist/{CreateEditorFromDatasourcePopup-snOh1d5h.js → CreateEditorFromDatasourcePopup-CrVHUWFl.js} +4 -4
  9. package/dist/{Dashboard-BH9ZwMVJ.js → Dashboard-DxSi9W6Q.js} +276 -280
  10. package/dist/{DashboardImportSelector-DQSvu9T-.js → DashboardImportSelector-kuDRDYi8.js} +2 -2
  11. package/dist/{DashboardMobile-BUPtdN2V.js → DashboardMobile-CZEgTb0R.js} +39 -39
  12. package/dist/{DrilldownPane-CBs5ZojS.js → DrilldownPane-BheRHJMs.js} +5 -7
  13. package/dist/{Editor-DQsYpkwl.js → Editor-D6tdutTm.js} +105 -103
  14. package/dist/{ErrorMessage-XMn_08gJ.js → ErrorMessage-D5JeF3Iz.js} +4 -4
  15. package/dist/{GlobalChatPanel-DhnOaige.js → GlobalChatPanel-BXZh0sdD.js} +20 -21
  16. package/dist/{IDE-HLa8vybk.js → IDE-T8PmyAQ_.js} +200 -203
  17. package/dist/{JobsView-B97HBoIE.js → JobsView-Ca97MiSd.js} +13 -14
  18. package/dist/{LLMChat-CxJcPLEG.js → LLMChat-Cch33Yd_.js} +3 -3
  19. package/dist/{LLMView-C1MUf0c2.js → LLMView-BDb6wD74.js} +23 -23
  20. package/dist/{LoadingView-s1uznGwG.js → LoadingView-B-xFwd2N.js} +2 -2
  21. package/dist/{MarkdownRenderer-BNDuEyG-.js → MarkdownRenderer-BWvdx0k3.js} +531 -430
  22. package/dist/{MobileIDE-BpqXoaMR.js → MobileIDE-DpdEQEqc.js} +179 -182
  23. package/dist/{ModelCard-BhN25jaV.js → ModelCard-DkAMP4X9.js} +12 -13
  24. package/dist/{ModelView-DUDA_PtZ.js → ModelView-DomyhN8g.js} +7 -7
  25. package/dist/PageLoading-BAvKGo9h.js +5937 -0
  26. package/dist/{ResultComponent-CAn_r3BL.js → ResultComponent-zoOSoRLe.js} +8 -8
  27. package/dist/{Results-BJtlwebY.js → Results-dq-SlJbU.js} +17 -19
  28. package/dist/{StatusIcon-BylPx2EO.js → StatusIcon-AbxNvJ6p.js} +2 -2
  29. package/dist/{StoreTokenModal-zCSYhfrw.js → StoreTokenModal-CM8WXdu1.js} +2 -2
  30. package/dist/{SymbolsPane-KYSwN9Sv.js → SymbolsPane-DfaxeaPS.js} +6 -3
  31. package/dist/{TrilogyEmbedProvider-WA_dlv9e.js → TrilogyEmbedProvider-D3h0gYnX.js} +9 -9
  32. package/dist/{TutorialPage-NRcee6Dx.js → TutorialPage-BtEJG7cT.js} +27 -28
  33. package/dist/{VegaLiteChart-D1slfOUY.js → VegaLiteChart-BVyAab-o.js} +12131 -10947
  34. package/dist/{WelcomePage-D5mU2x1L.js → WelcomePage-BoqzYBLr.js} +5 -5
  35. package/dist/{embedTheme-Bub46ILG.js → _plugin-vue_export-helper-f9Rw-Il4.js} +14 -6
  36. package/dist/assets/{css.worker-9aDGcEUy.js → css.worker-niORQtzO.js} +14 -14
  37. package/dist/assets/{html.worker-D2LKDpnG.js → html.worker-CO5LvJpF.js} +17 -17
  38. package/dist/assets/json.worker-BezHzWUV.js +58 -0
  39. package/dist/assets/{ts.worker-Bz0-EaKK.js → ts.worker-CYhxGg0r.js} +107 -107
  40. package/dist/{results-DTgAKr5j.js → base-DuKnVD-A.js} +216 -45
  41. package/dist/components/FeedbackBanner.vue.d.ts +4 -0
  42. package/dist/components/FeedbackBanner.vue.d.ts.map +1 -0
  43. package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +54 -0
  44. package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
  45. package/dist/components/dashboard/DashboardProvenance.vue.d.ts +30 -0
  46. package/dist/components/dashboard/DashboardProvenance.vue.d.ts.map +1 -0
  47. package/dist/components/dashboard/ReportLayout.vue.d.ts +19 -0
  48. package/dist/components/dashboard/ReportLayout.vue.d.ts.map +1 -0
  49. package/dist/components/editor/Editor.vue.d.ts +3 -3
  50. package/dist/components/editor/EditorCreatorIcon.vue.d.ts +62 -0
  51. package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
  52. package/dist/components/editor/ValidationComponent.vue.d.ts +50 -0
  53. package/dist/components/editor/ValidationComponent.vue.d.ts.map +1 -0
  54. package/dist/components/model/ModelCard.vue.d.ts +3 -3
  55. package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
  56. package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  57. package/dist/components/tutorial/TutorialPrompt.vue.d.ts +3 -3
  58. package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
  59. package/dist/{remoteWorker-Dkv3TJ0j.js → connections-CWH3zwH2.js} +4544 -4126
  60. package/dist/connections.js +3 -4
  61. package/dist/{cssMode-D4Rzr1Cu.js → cssMode-zpO2ap2B.js} +5 -6
  62. package/dist/dashboard.js +28 -31
  63. package/dist/{dist-CXoL8kXK.js → dist-1z5KURzS.js} +55 -50
  64. package/dist/{dist-DKkuvbPb.js → dist-Bv3D2p5A.js} +20 -18
  65. package/dist/{editor.main-Cl8i7rHY.js → editor.main-BQh6DxDB.js} +33 -33
  66. package/dist/{editorRefinementRuntime-DoP9P5J2.js → editorStore-CAlMJftt.js} +1692 -575
  67. package/dist/embed.js +2 -2
  68. package/dist/{freemarker2-fW5NBILf.js → freemarker2-DQBqlEXc.js} +1 -1
  69. package/dist/{globalChatRuntime-DWZxeS57.js → globalChatRuntime-CyS7vH51.js} +16 -16
  70. package/dist/{handlebars-dG4w8UUY.js → handlebars-tgYxaM70.js} +1 -1
  71. package/dist/{helpers-BLQAgX3C.js → helpers-BbVlA3Pf.js} +34 -35
  72. package/dist/{html-1Dq70BdU.js → html-jJahD3Mi.js} +1 -1
  73. package/dist/{htmlMode--IQmLBeh.js → htmlMode-BA1-8l2e.js} +5 -6
  74. package/dist/{javascript-CTzBM4sF.js → javascript-Cypfo7va.js} +1 -1
  75. package/dist/{jsonMode-DzeJjIEH.js → jsonMode-xJye8PWS.js} +25 -25
  76. package/dist/{liquid-DlHThiki.js → liquid-BGDrv5da.js} +1 -1
  77. package/dist/llm-ClU-2rgk.js +18493 -0
  78. package/dist/llm.js +2 -3
  79. package/dist/{localStorage-D9uyOFEO.js → localStorage-CGQ1iJXt.js} +40 -43
  80. package/dist/{lspLanguageFeatures-Cdfs3EKq.js → lspLanguageFeatures-V3e_p9oN.js} +32 -32
  81. package/dist/{mdx-fn3g4PH5.js → mdx-BUR1aImW.js} +1 -1
  82. package/dist/monaco.js +3 -3
  83. package/dist/{python-CCVj0pFt.js → python-YLkl0pc6.js} +1 -1
  84. package/dist/{razor-Cj3flYnk.js → razor-BP8TRMDY.js} +1 -1
  85. package/dist/{reconcile-Dyf4UZmj.js → reconcile-DXIvGwBk.js} +1 -1
  86. package/dist/{remoteStoreSync-Z-yjlYtI.js → remoteStoreSync-CuQBWpWf.js} +3 -3
  87. package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  88. package/dist/static/test_import.vue.d.ts +4 -0
  89. package/dist/static/test_import.vue.d.ts.map +1 -0
  90. package/dist/stores-LlyiwSbK.js +2604 -0
  91. package/dist/stores.js +4 -7
  92. package/dist/trilogy-studio-components.css +1 -1
  93. package/dist/{tsMode-GI4xMYAl.js → tsMode-BH9HS_sH.js} +64 -66
  94. package/dist/{typescript-CPibXi3J.js → typescript-BM-ynfk9.js} +1 -1
  95. package/dist/{useChatWithTools-B0HZ_DVh.js → useChatWithTools-m3Jn_SV-.js} +11 -11
  96. package/dist/{useDashboard-CdSnPe_6.js → useDashboard-BOAuvVEw.js} +1014 -1022
  97. package/dist/{tabulator_esm-CxLvGDp8.js → useGlobalChatPanel-DuP1q7_f.js} +1729 -711
  98. package/dist/{useResizableDialog-B0ePSts4.js → useResizableDialog-Cs90WJdF.js} +2 -2
  99. package/dist/views/ModelView.vue.d.ts +6 -6
  100. package/dist/views/ModelView.vue.d.ts.map +1 -1
  101. package/dist/views/TutorialPage.vue.d.ts +9 -9
  102. package/dist/views/TutorialPage.vue.d.ts.map +1 -1
  103. package/dist/views.js +192 -194
  104. package/dist/{editor.api2-ClD5pp8H.js → workers-B9Eybl-M.js} +16252 -15926
  105. package/dist/{xml-BNyphceI.js → xml-M5WFPSpA.js} +1 -1
  106. package/dist/{yaml-DE5Vz0PH.js → yaml-CEeFwjz9.js} +1 -1
  107. package/package.json +29 -20
  108. package/dist/AssetAutoImporter-CBzvBaOt.js +0 -405
  109. package/dist/DashboardCreatorInline-CDU7kLy3.js +0 -129
  110. package/dist/DataTable-DoRDynP1.js +0 -365
  111. package/dist/EditorCreatorInline-D6_y1H_h.js +0 -125
  112. package/dist/LoadingButton-OH3frQuO.js +0 -138
  113. package/dist/ModalDialog-D1EOG4rl.js +0 -42
  114. package/dist/ModelCreator-CCdC7EXt.js +0 -253
  115. package/dist/PageLoading-BzniJM0C.js +0 -2669
  116. package/dist/Tooltip-Dihir4zs.js +0 -103
  117. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  118. package/dist/assets/json.worker-CJ5MmO5Q.js +0 -58
  119. package/dist/base-C8IuZWqY.js +0 -164
  120. package/dist/connectionHistoryStorage-DKJHiKJY.js +0 -111
  121. package/dist/connectionHistoryStore-DQeBvStZ.js +0 -61
  122. package/dist/connections-CJSb1TZl.js +0 -229
  123. package/dist/constants-DgFEYN2b.js +0 -7
  124. package/dist/dashboardStore-ppM6nGks.js +0 -641
  125. package/dist/demoSetup-mwa-RDC6.js +0 -2942
  126. package/dist/editorRefinementToolExecutor-CVY3FA7k.js +0 -4624
  127. package/dist/editorStore-BhhmXbi-.js +0 -1019
  128. package/dist/formatting-BbJ5ICgh.js +0 -6
  129. package/dist/llm-BBOVWb-F.js +0 -11967
  130. package/dist/llmStore-DJM2JhzY.js +0 -153
  131. package/dist/monaco.contribution-ikesdolO.js +0 -128
  132. package/dist/stores-BT9hTLny.js +0 -1708
  133. package/dist/trilogy-BroD2Qmp.js +0 -4
  134. package/dist/urlStore-52HG6lsX.js +0 -55
  135. package/dist/useGlobalChatPanel-D_0luajQ.js +0 -85
  136. package/dist/useIsMobile-CNpUQAvk.js +0 -8
  137. package/dist/usePrismHighlight-DVyDiDAL.js +0 -183
  138. package/dist/workers-Br7ThUKL.js +0 -47
@@ -1,19 +1,17 @@
1
- import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
2
- import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { r as n } from "./results-DTgAKr5j.js";
4
- import { t as r } from "./base-C8IuZWqY.js";
5
- import "./connections-CJSb1TZl.js";
6
- import { t as i } from "./connectionHistoryStore-DQeBvStZ.js";
7
- import { t as a } from "./LoadingButton-OH3frQuO.js";
8
- import { t as o } from "./DataTable-DoRDynP1.js";
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-LlyiwSbK.js";
5
+ import "./connections-CWH3zwH2.js";
6
+ import { r as a, u as o } from "./useGlobalChatPanel-DuP1q7_f.js";
7
+ import { t as s } from "./CodeBlock-BBsaC6hX.js";
8
+ import { t as c } from "./CreateEditorFromDatasourcePopup-CrVHUWFl.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: o,
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 n(/* @__PURE__ */ new Map(), []);
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 r = p(e.table);
58
- if (!(!t && a.value[r]?.data?.length > 0 && e.table.columns.length > 0)) {
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[r] = i || new n(/* @__PURE__ */ new Map(), []);
64
+ a.value[n] = i || new r(/* @__PURE__ */ new Map(), []);
67
65
  } catch (e) {
68
- console.error("Error loading sample data for", r, ":", e), s.value = e instanceof Error ? e.message : "Failed to load sample data";
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
- return k(() => e.table, async (e, n) => {
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: r,
90
+ AssetType: n,
91
91
  resultContainerRef: c,
92
92
  tabsRef: l,
93
93
  containerHeight: d,
94
- connectionInfo: u(() => f ? f.connectionByName(e.connectionName) : null)
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: a },
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 = w(i(u(() => t.connectionId).value)), r = w({}), a = w({}), o = u(() => n.value.history), c = u(() => n.value.isLoading), d = u(() => n.value.error), _ = (e) => {
425
- r.value[e] = !r.value[e];
426
- }, v = (e, t) => {
427
- event?.stopPropagation(), a.value[e] = t;
428
- }, y = (e) => {
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
- }, S = (e) => e < 1e3 ? `${e.toFixed(1)} ms` : `${(e / 1e3).toFixed(2)} s`, E = (e, t) => e.length > t ? `${e.substring(0, t)}...` : e, O = () => {
439
- n.value.refreshHistory();
440
- }, A = () => {
441
- n.value.clearHistory();
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
- r.value = {}, a.value = {}, n.value = i(e), O();
444
+ a.value = {}, o.value = {}, r.value = i(e), A();
445
445
  }, { immediate: !0 }), x(() => {
446
- O();
446
+ A();
447
447
  }), (t, n) => (C(), p("div", lt, [m("div", ut, [
448
448
  h(" Query History for " + D(e.connectionName) + " ", 1),
449
- o.value.length > 0 ? (C(), p("span", dt, "(" + D(o.value.length) + ")", 1)) : f("", !0),
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: O,
451
+ onClick: A,
452
452
  class: "refresh-btn",
453
453
  title: "Refresh history"
454
454
  }, "Refresh"), m("button", {
455
- onClick: A,
455
+ onClick: j,
456
456
  class: "clear-btn",
457
457
  title: "Clear history"
458
458
  }, "Clear")])
459
- ]), c.value ? (C(), p("div", ft, "Loading history...")) : d.value ? (C(), p("div", pt, [m("p", null, "Error: " + D(d.value), 1), m("button", { onClick: O }, "Retry")])) : o.value.length === 0 ? (C(), p("div", mt, " No queries have been executed yet. ")) : (C(), p("div", ht, [(C(!0), p(l, null, T(o.value, (e) => (C(), p("div", {
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) => _(e.id)
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(E(e.query, 50)), 1), m("div", bt, [
468
- m("span", xt, D(S(e.executionTime)), 1),
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(y(e.timestamp)), 1)
470
+ m("span", Ct, D(S(e.timestamp)), 1)
471
471
  ])]),
472
- m("div", wt, D(r.value[e.id] ? "▼" : "▶"), 1)
473
- ], 8, gt), r.value[e.id] ? (C(), p("div", Tt, [
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: !a.value[e.id] }]),
476
- onClick: (t) => v(e.id, !1)
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: a.value[e.id] }]),
479
- onClick: (t) => v(e.id, !0)
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: a.value[e.id] && e.generatedQuery ? e.generatedQuery : e.query,
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(y(e.timestamp)), 1),
488
- m("div", null, "Time: " + D(S(e.executionTime)), 1),
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-B3ysoDQm.js";
2
- import { r as t } from "./results-DTgAKr5j.js";
3
- import { t as n } from "./DataTable-DoRDynP1.js";
4
- import { t as r } from "./CodeBlock-PT4no49I.js";
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-DuP1q7_f.js";
4
+ import { t as r } from "./CodeBlock-BBsaC6hX.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 = {