@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.
- package/dist/AssetAutoImporter-OHphsfW9.js +403 -0
- package/dist/{ChatCreatorModal-CL-jBnc3.js → ChatCreatorModal-CuXha6Dg.js} +3 -3
- package/dist/{ChatModelSelect-Do-VRUFc.js → ChatModelSelect-Cz7axWjP.js} +1 -1
- package/dist/{CodeBlock-PT4no49I.js → CodeBlock-BBsaC6hX.js} +4 -4
- package/dist/{CommunityModels-Cmro0hV3.js → CommunityModels-CIQQhO-y.js} +7 -7
- 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-BH9ZwMVJ.js → Dashboard-DxSi9W6Q.js} +276 -280
- package/dist/{DashboardImportSelector-DQSvu9T-.js → DashboardImportSelector-kuDRDYi8.js} +2 -2
- package/dist/{DashboardMobile-BUPtdN2V.js → DashboardMobile-CZEgTb0R.js} +39 -39
- package/dist/{DrilldownPane-CBs5ZojS.js → DrilldownPane-BheRHJMs.js} +5 -7
- package/dist/{Editor-DQsYpkwl.js → Editor-D6tdutTm.js} +105 -103
- package/dist/{ErrorMessage-XMn_08gJ.js → ErrorMessage-D5JeF3Iz.js} +4 -4
- package/dist/{GlobalChatPanel-DhnOaige.js → GlobalChatPanel-BXZh0sdD.js} +20 -21
- package/dist/{IDE-HLa8vybk.js → IDE-T8PmyAQ_.js} +200 -203
- package/dist/{JobsView-B97HBoIE.js → JobsView-Ca97MiSd.js} +13 -14
- package/dist/{LLMChat-CxJcPLEG.js → LLMChat-Cch33Yd_.js} +3 -3
- package/dist/{LLMView-C1MUf0c2.js → LLMView-BDb6wD74.js} +23 -23
- package/dist/{LoadingView-s1uznGwG.js → LoadingView-B-xFwd2N.js} +2 -2
- package/dist/{MarkdownRenderer-BNDuEyG-.js → MarkdownRenderer-BWvdx0k3.js} +531 -430
- package/dist/{MobileIDE-BpqXoaMR.js → MobileIDE-DpdEQEqc.js} +179 -182
- package/dist/{ModelCard-BhN25jaV.js → ModelCard-DkAMP4X9.js} +12 -13
- package/dist/{ModelView-DUDA_PtZ.js → ModelView-DomyhN8g.js} +7 -7
- package/dist/PageLoading-BAvKGo9h.js +5937 -0
- package/dist/{ResultComponent-CAn_r3BL.js → ResultComponent-zoOSoRLe.js} +8 -8
- package/dist/{Results-BJtlwebY.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-KYSwN9Sv.js → SymbolsPane-DfaxeaPS.js} +6 -3
- package/dist/{TrilogyEmbedProvider-WA_dlv9e.js → TrilogyEmbedProvider-D3h0gYnX.js} +9 -9
- package/dist/{TutorialPage-NRcee6Dx.js → TutorialPage-BtEJG7cT.js} +27 -28
- package/dist/{VegaLiteChart-D1slfOUY.js → VegaLiteChart-BVyAab-o.js} +12131 -10947
- package/dist/{WelcomePage-D5mU2x1L.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/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/{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-CAlMJftt.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-CyS7vH51.js} +16 -16
- package/dist/{handlebars-dG4w8UUY.js → handlebars-tgYxaM70.js} +1 -1
- package/dist/{helpers-BLQAgX3C.js → helpers-BbVlA3Pf.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-ClU-2rgk.js +18493 -0
- package/dist/llm.js +2 -3
- package/dist/{localStorage-D9uyOFEO.js → localStorage-CGQ1iJXt.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 +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-Dyf4UZmj.js → reconcile-DXIvGwBk.js} +1 -1
- package/dist/{remoteStoreSync-Z-yjlYtI.js → remoteStoreSync-CuQBWpWf.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-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-B0HZ_DVh.js → useChatWithTools-m3Jn_SV-.js} +11 -11
- package/dist/{useDashboard-CdSnPe_6.js → useDashboard-BOAuvVEw.js} +1014 -1022
- 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/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/{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,11 +1,11 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
3
|
-
import {
|
|
4
|
-
import { n as r } from "./
|
|
5
|
-
import { t as i } from "./dist-
|
|
6
|
-
import { t as a } from "./LoadingView-
|
|
7
|
-
import { t as o } from "./Results-
|
|
8
|
-
import { t as s } from "./LLMChat-
|
|
1
|
+
import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
3
|
+
import { u as n } from "./base-DuKnVD-A.js";
|
|
4
|
+
import { n as r } from "./editorStore-CAlMJftt.js";
|
|
5
|
+
import { t as i } from "./dist-Bv3D2p5A.js";
|
|
6
|
+
import { t as a } from "./LoadingView-B-xFwd2N.js";
|
|
7
|
+
import { t as o } from "./Results-dq-SlJbU.js";
|
|
8
|
+
import { t as s } from "./LLMChat-Cch33Yd_.js";
|
|
9
9
|
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, inject as g, openBlock as _, ref as v, renderList as y, resolveComponent as b, toDisplayString as x, withCtx as S } from "vue";
|
|
10
10
|
//#region components/HintComponent.vue?vue&type=script&lang.ts
|
|
11
11
|
function C() {
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as d } from "./DataTable-DoRDynP1.js";
|
|
11
|
-
import { t as f } 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 { Zt as n } from "./llm-ClU-2rgk.js";
|
|
4
|
+
import { c as r, o as i, s as a } from "./stores-LlyiwSbK.js";
|
|
5
|
+
import { l as o, r as s, u as c } from "./useGlobalChatPanel-DuP1q7_f.js";
|
|
6
|
+
import { t as l } from "./ErrorMessage-D5JeF3Iz.js";
|
|
7
|
+
import { t as u } from "./VegaLiteChart-BVyAab-o.js";
|
|
8
|
+
import { t as d } from "./DrilldownPane-BheRHJMs.js";
|
|
9
|
+
import { t as f } from "./CodeBlock-BBsaC6hX.js";
|
|
12
10
|
import { Fragment as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as y, createVNode as b, inject as x, normalizeClass as S, openBlock as C, renderList as w, resolveComponent as T, toDisplayString as E, withCtx as D } from "vue";
|
|
13
11
|
//#region components/editor/Results.vue?vue&type=script&lang.ts
|
|
14
12
|
var O = {
|
|
15
13
|
name: "ResultsContainer",
|
|
16
14
|
components: {
|
|
17
|
-
DataTable:
|
|
18
|
-
VegaLiteChart:
|
|
19
|
-
ErrorMessage:
|
|
20
|
-
LoadingButton:
|
|
15
|
+
DataTable: s,
|
|
16
|
+
VegaLiteChart: u,
|
|
17
|
+
ErrorMessage: l,
|
|
18
|
+
LoadingButton: c,
|
|
21
19
|
CodeBlock: f,
|
|
22
|
-
DrilldownPane:
|
|
20
|
+
DrilldownPane: d
|
|
23
21
|
},
|
|
24
22
|
props: {
|
|
25
23
|
type: {
|
|
@@ -78,7 +76,7 @@ var O = {
|
|
|
78
76
|
} },
|
|
79
77
|
data() {
|
|
80
78
|
return {
|
|
81
|
-
activeTab: this.chartFromStatement ? "visualize" : this.defaultTab ||
|
|
79
|
+
activeTab: this.chartFromStatement ? "visualize" : this.defaultTab || a(i.ACTIVE_EDITOR_TAB, "results"),
|
|
82
80
|
activeDrilldown: null,
|
|
83
81
|
TABS_HEIGHT: 26
|
|
84
82
|
};
|
|
@@ -88,7 +86,7 @@ var O = {
|
|
|
88
86
|
this.type !== "sql" && this.setTab("visualize");
|
|
89
87
|
},
|
|
90
88
|
setTab(e) {
|
|
91
|
-
this.activeTab = e, i
|
|
89
|
+
this.activeTab = e, r(i.ACTIVE_EDITOR_TAB, e);
|
|
92
90
|
},
|
|
93
91
|
handleReconnect() {
|
|
94
92
|
if (this.connection) {
|
|
@@ -137,7 +135,7 @@ var O = {
|
|
|
137
135
|
}
|
|
138
136
|
},
|
|
139
137
|
setup() {
|
|
140
|
-
let e = x("connectionStore"), t =
|
|
138
|
+
let e = x("connectionStore"), t = o();
|
|
141
139
|
if (!e) throw Error("Requires injection of connection store");
|
|
142
140
|
return {
|
|
143
141
|
connectionStore: e,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
+
import { f as t } from "./useGlobalChatPanel-DuP1q7_f.js";
|
|
3
3
|
import { computed as n, createBlock as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, withCtx as l } from "vue";
|
|
4
4
|
//#region components/StatusIcon.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var u = ["data-testid"], d = ["data-testid"], f = /*#__PURE__*/ e(/* @__PURE__ */ o({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
+
import { p as t } from "./useGlobalChatPanel-DuP1q7_f.js";
|
|
3
3
|
import { createBlock as n, createElementVNode as r, defineComponent as i, openBlock as a, ref as o, toDisplayString as s, vModelText as c, watch as l, withCtx as u, withDirectives as d, withModifiers as f } from "vue";
|
|
4
4
|
//#region components/StoreTokenModal.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var p = { class: "form-group" }, m = { class: "store-name" }, h = { class: "form-group" }, g = { class: "dialog-actions" }, _ = ["disabled"], v = /*#__PURE__*/ e(/* @__PURE__ */ i({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
+
import { yt as t } from "./llm-ClU-2rgk.js";
|
|
3
3
|
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, nextTick as l, normalizeClass as u, normalizeStyle as d, openBlock as f, reactive as p, ref as m, renderList as h, toDisplayString as g, vModelCheckbox as _, vModelText as v, watch as y, withDirectives as b } from "vue";
|
|
4
4
|
//#region components/SymbolsPane.vue?vue&type=script&lang.ts
|
|
5
5
|
var x = {
|
|
@@ -126,7 +126,10 @@ var x = {
|
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
128
|
let r = n.value.toLowerCase().trim(), a = [...e.symbols];
|
|
129
|
-
s.value.showAutoDerived || (a = a.filter((e) =>
|
|
129
|
+
s.value.showAutoDerived || (a = a.filter((e) => {
|
|
130
|
+
let n = e.label || "";
|
|
131
|
+
return !t(n);
|
|
132
|
+
})), a = a.filter((e) => !(e.trilogySubType === "key" && !s.value.keys || e.trilogySubType === "property" && !s.value.properties || e.trilogySubType === "metric" && !s.value.metrics)), r && (a = a.filter((e) => {
|
|
130
133
|
let t = e.label.toLowerCase(), n = (e.description || "").toLowerCase();
|
|
131
134
|
return t.includes(r) || n.includes(r);
|
|
132
135
|
}).sort((e, t) => {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as r } from "./
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
+
import { a as t, i as n, r } from "./config-DwTONafa.js";
|
|
3
3
|
import { computed as i, createElementBlock as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderSlot as u } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region components/TrilogyEmbedProvider.vue
|
|
6
|
-
var d = /*#__PURE__*/
|
|
6
|
+
var d = /*#__PURE__*/ e(/* @__PURE__ */ o({
|
|
7
7
|
__name: "TrilogyEmbedProvider",
|
|
8
8
|
props: { theme: {} },
|
|
9
|
-
setup(
|
|
10
|
-
let o =
|
|
11
|
-
|
|
12
|
-
let
|
|
9
|
+
setup(e) {
|
|
10
|
+
let o = e, d = i(() => ({ theme: o.theme }));
|
|
11
|
+
r(d);
|
|
12
|
+
let f = i(() => n(o.theme)), p = i(() => t(o.theme));
|
|
13
13
|
return (e, t) => (l(), a("div", {
|
|
14
|
-
class: s(["trilogy-embed-provider", `trilogy-embed-theme-${
|
|
15
|
-
style: c(
|
|
14
|
+
class: s(["trilogy-embed-provider", `trilogy-embed-theme-${f.value}`]),
|
|
15
|
+
style: c(p.value)
|
|
16
16
|
}, [u(e.$slots, "default", {}, void 0, !0)], 6));
|
|
17
17
|
}
|
|
18
18
|
}), [["__scopeId", "data-v-9a14c043"]]);
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
2
|
-
import { t } from "./Dashboard-
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import { t as m } from "./ModelCard-BhN25jaV.js";
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
+
import { t } from "./Dashboard-DxSi9W6Q.js";
|
|
3
|
+
import "./stores-LlyiwSbK.js";
|
|
4
|
+
import { o as n } from "./editorStore-CAlMJftt.js";
|
|
5
|
+
import { l as r, u as i } from "./useGlobalChatPanel-DuP1q7_f.js";
|
|
6
|
+
import { t as a } from "./MarkdownRenderer-BWvdx0k3.js";
|
|
7
|
+
import { t as o } from "./CommunityModels-CIQQhO-y.js";
|
|
8
|
+
import { c as s, i as c, l, s as u } from "./PageLoading-BAvKGo9h.js";
|
|
9
|
+
import { t as d } from "./Editor-D6tdutTm.js";
|
|
10
|
+
import { t as f } from "./CodeBlock-BBsaC6hX.js";
|
|
11
|
+
import { t as p } from "./ResultComponent-zoOSoRLe.js";
|
|
12
|
+
import { t as m } from "./ModelCard-DkAMP4X9.js";
|
|
14
13
|
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, inject as w, normalizeClass as T, openBlock as E, ref as D, renderList as O, renderSlot as k, resolveComponent as A, toDisplayString as j, watch as M, withCtx as N } from "vue";
|
|
15
14
|
//#region components/tutorial/TutorialFunction.vue?vue&type=script&lang.ts
|
|
16
15
|
var ee = C({
|
|
@@ -72,9 +71,9 @@ var J = /*#__PURE__*/ e(ee, [["render", q], ["__scopeId", "data-v-4ab8a3dc"]]),
|
|
|
72
71
|
}), [["__scopeId", "data-v-0f045873"]]), X = {
|
|
73
72
|
name: "TutorialPromptComponent",
|
|
74
73
|
components: {
|
|
75
|
-
Editor:
|
|
76
|
-
ResultComponent:
|
|
77
|
-
CodeBlock:
|
|
74
|
+
Editor: d,
|
|
75
|
+
ResultComponent: p,
|
|
76
|
+
CodeBlock: f
|
|
78
77
|
},
|
|
79
78
|
props: {
|
|
80
79
|
prompts: {
|
|
@@ -206,16 +205,16 @@ var ve = /*#__PURE__*/ e(X, [["render", _e], ["__scopeId", "data-v-27c5ea9d"]]),
|
|
|
206
205
|
optional: !0
|
|
207
206
|
} },
|
|
208
207
|
setup() {
|
|
209
|
-
let e =
|
|
210
|
-
if (!t || !n || !
|
|
208
|
+
let e = r(), t = w("editorStore"), n = w("connectionStore"), i = w("modelStore"), a = w("dashboardStore"), o = w("llmConnectionStore"), s = w("saveEditors"), c = w("saveConnections"), l = w("saveModels"), u = w("saveDashboards");
|
|
209
|
+
if (!t || !n || !i || !a || !o) throw Error("Demo requires more stores!");
|
|
211
210
|
let d = Object.values(a?.dashboards).find((e) => e.name === "example-dashboard" && e.connection === "demo-model-connection")?.id;
|
|
212
|
-
if (!t || !n || !
|
|
211
|
+
if (!t || !n || !i || !a || !o || !s || !c || !l || !u) throw Error("Editor store is not provided!");
|
|
213
212
|
return {
|
|
214
213
|
editorStore: t,
|
|
215
214
|
connectionStore: n,
|
|
216
215
|
dashboardStore: a,
|
|
217
216
|
llmConnectionStore: o,
|
|
218
|
-
modelStore:
|
|
217
|
+
modelStore: i,
|
|
219
218
|
saveEditors: s,
|
|
220
219
|
saveConnections: c,
|
|
221
220
|
saveModels: l,
|
|
@@ -227,16 +226,16 @@ var ve = /*#__PURE__*/ e(X, [["render", _e], ["__scopeId", "data-v-27c5ea9d"]]),
|
|
|
227
226
|
};
|
|
228
227
|
},
|
|
229
228
|
components: {
|
|
230
|
-
LoadingButton:
|
|
231
|
-
ConnectionList:
|
|
232
|
-
LLMConnectionList:
|
|
233
|
-
EditorList:
|
|
229
|
+
LoadingButton: i,
|
|
230
|
+
ConnectionList: s,
|
|
231
|
+
LLMConnectionList: u,
|
|
232
|
+
EditorList: l,
|
|
234
233
|
ModelCard: m,
|
|
235
234
|
HighlightComponent: Y,
|
|
236
|
-
Editor:
|
|
237
|
-
ResultsView:
|
|
235
|
+
Editor: d,
|
|
236
|
+
ResultsView: p,
|
|
238
237
|
CommunityModels: o,
|
|
239
|
-
CodeBlock:
|
|
238
|
+
CodeBlock: f,
|
|
240
239
|
TutorialPrompt: ve,
|
|
241
240
|
Dashboard: t,
|
|
242
241
|
TutorialFunction: J,
|
|
@@ -282,7 +281,7 @@ var ve = /*#__PURE__*/ e(X, [["render", _e], ["__scopeId", "data-v-27c5ea9d"]]),
|
|
|
282
281
|
},
|
|
283
282
|
methods: {
|
|
284
283
|
setupDemo() {
|
|
285
|
-
|
|
284
|
+
c(this.editorStore, this.connectionStore, this.modelStore, this.dashboardStore, this.saveEditors, this.saveConnections, this.saveModels, this.saveDashboards);
|
|
286
285
|
},
|
|
287
286
|
saveEditorsCall() {
|
|
288
287
|
this.saveEditors();
|