@trilogy-data/trilogy-studio-components 0.1.24 → 0.1.26
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/README.md +5 -0
- package/dist/AssetAutoImporter-CBzvBaOt.js +405 -0
- package/dist/ChatCreatorModal-CL-jBnc3.js +218 -0
- package/dist/ChatModelSelect-Do-VRUFc.js +40 -0
- package/dist/{CommunityModels-CsDDXyIL.js → CommunityModels-Cmro0hV3.js} +101 -70
- package/dist/{Dashboard-BJfgRfRy.js → Dashboard-BH9ZwMVJ.js} +8 -8
- package/dist/{DashboardCreatorInline-wAlx6oH7.js → DashboardCreatorInline-CDU7kLy3.js} +3 -3
- package/dist/{DashboardImportSelector-D6ufVZIk.js → DashboardImportSelector-DQSvu9T-.js} +1 -1
- package/dist/{DashboardMobile-DoOyBHN7.js → DashboardMobile-BUPtdN2V.js} +4 -4
- package/dist/{Editor-Bs-h7edF.js → Editor-DQsYpkwl.js} +6 -6
- package/dist/{GlobalChatPanel-YsDZGxg8.js → GlobalChatPanel-DhnOaige.js} +155 -119
- package/dist/{IDE-CLF-KH2r.js → IDE-HLa8vybk.js} +9 -9
- package/dist/{JobsView-D1pp2xi5.js → JobsView-B97HBoIE.js} +8 -8
- package/dist/{LLMChat-CwM_brSg.js → LLMChat-CxJcPLEG.js} +1 -1
- package/dist/{LLMView-BiwCZb3Q.js → LLMView-C1MUf0c2.js} +21 -21
- package/dist/{MobileIDE-DrWh_OlB.js → MobileIDE-BpqXoaMR.js} +258 -253
- package/dist/{ModelCard-CsW4UwZI.js → ModelCard-BhN25jaV.js} +10 -10
- package/dist/{ModelCreator-C2douDis.js → ModelCreator-CCdC7EXt.js} +1 -1
- package/dist/{ModelView-D7ENFV2U.js → ModelView-DUDA_PtZ.js} +3 -3
- package/dist/{PageLoading-C5WK5i5Y.js → PageLoading-BzniJM0C.js} +622 -619
- package/dist/{ResultComponent-1MQlbELb.js → ResultComponent-CAn_r3BL.js} +3 -3
- package/dist/{Results-DXIYS4iW.js → Results-BJtlwebY.js} +3 -3
- package/dist/{SymbolsPane-BM6dUN-h.js → SymbolsPane-KYSwN9Sv.js} +1 -1
- package/dist/{TutorialPage-HXbXCznh.js → TutorialPage-NRcee6Dx.js} +8 -8
- package/dist/{VegaLiteChart-CS4h_t-K.js → VegaLiteChart-D1slfOUY.js} +11227 -11195
- package/dist/{WelcomePage-CLKvAvk-.js → WelcomePage-D5mU2x1L.js} +1 -1
- package/dist/components/AssetAutoImporter.vue.d.ts.map +1 -1
- 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/editor/Editor.vue.d.ts.map +1 -1
- 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/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/Sidebar.vue.d.ts +65 -99
- package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/dashboard.js +52 -52
- package/dist/{dashboardStore-BzmI4OCV.js → dashboardStore-ppM6nGks.js} +33 -33
- 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/{demoSetup-vmiMeH4_.js → demoSetup-mwa-RDC6.js} +19 -18
- package/dist/{editorRefinementRuntime-hC3u8GMO.js → editorRefinementRuntime-DoP9P5J2.js} +892 -871
- package/dist/{editorRefinementToolExecutor-Bomrpmns.js → editorRefinementToolExecutor-CVY3FA7k.js} +392 -267
- package/dist/{editorStore-Bj3Qnatp.js → editorStore-BhhmXbi-.js} +230 -183
- package/dist/entry.dashboard.d.ts +1 -0
- package/dist/entry.dashboard.d.ts.map +1 -1
- package/dist/{globalChatRuntime-DXI2KyGn.js → globalChatRuntime-DWZxeS57.js} +13 -13
- package/dist/{helpers-CFp2QCvv.js → helpers-BLQAgX3C.js} +17 -16
- package/dist/llm/chatAgentPrompt.d.ts.map +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-BuEsqH9Q.js → llm-BBOVWb-F.js} +7 -5
- package/dist/llm.js +3 -3
- package/dist/{llmStore-x5lRrKgx.js → llmStore-DJM2JhzY.js} +2 -2
- package/dist/{localStorage-C-ZtI6YA.js → localStorage-D9uyOFEO.js} +14 -14
- package/dist/models/helpers.d.ts.map +1 -1
- package/dist/monaco.js +1 -1
- package/dist/{reconcile-E5LR5p_f.js → reconcile-Dyf4UZmj.js} +1 -1
- package/dist/{remoteStoreSync-MwuJpHHt.js → remoteStoreSync-Z-yjlYtI.js} +1 -1
- 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/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-D-gHjj-_.js → stores-BT9hTLny.js} +47 -47
- package/dist/stores.js +7 -7
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{urlStore-Dgmwx1YI.js → urlStore-52HG6lsX.js} +1 -0
- package/dist/{useChatWithTools-BlCJrJT7.js → useChatWithTools-B0HZ_DVh.js} +1 -1
- package/dist/{useDashboard-CVlbV17V.js → useDashboard-CdSnPe_6.js} +186 -186
- package/dist/{useGlobalChatPanel-CNARTFYu.js → useGlobalChatPanel-D_0luajQ.js} +2 -2
- package/dist/views/MobileIDE.vue.d.ts.map +1 -1
- package/dist/views/TutorialPage.vue.d.ts +32 -49
- package/dist/views/TutorialPage.vue.d.ts.map +1 -1
- package/dist/views.js +16 -16
- package/package.json +1 -1
- package/dist/AssetAutoImporter-BD1P91Hq.js +0 -403
- package/dist/ChatCreatorModal-BTqY06B6.js +0 -177
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { i as n } from "./stores-D-gHjj-_.js";
|
|
4
|
-
import { l as r, n as i, s as a, u as o } from "./editorStore-Bj3Qnatp.js";
|
|
5
|
-
import "./dashboardStore-BzmI4OCV.js";
|
|
6
|
-
import { i as s, n as c, t as l } from "./urlStore-Dgmwx1YI.js";
|
|
7
|
-
import { t as ee } from "./trilogy-BroD2Qmp.js";
|
|
8
|
-
import { t as te } from "./helpers-CFp2QCvv.js";
|
|
9
|
-
import { n as u, r as d } from "./remoteStoreSync-MwuJpHHt.js";
|
|
10
|
-
import { Fragment as f, computed as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as ne, defineComponent as re, inject as v, normalizeClass as y, onBeforeUnmount as ie, onMounted as ae, openBlock as b, ref as x, toDisplayString as S, unref as oe, vModelText as C, withDirectives as w } from "vue";
|
|
11
|
-
//#region components/AssetAutoImporter.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var se = { class: "auto-import-container" }, ce = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "import-state error-state"
|
|
15
|
-
}, le = { class: "import-headline" }, ue = { class: "error-message" }, de = {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "import-state loading-state"
|
|
18
|
-
}, fe = { class: "loading-content" }, pe = ["src"], me = { class: "import-headline" }, he = { class: "step-indicator" }, ge = { class: "step-icon" }, _e = { key: 0 }, ve = { key: 1 }, ye = { class: "step-icon" }, be = { key: 0 }, xe = { key: 1 }, Se = { key: 2 }, Ce = { class: "step-icon" }, we = { key: 0 }, Te = { key: 1 }, Ee = { key: 2 }, De = { class: "step-icon" }, Oe = { key: 0 }, ke = { key: 1 }, Ae = { key: 2 }, je = { class: "step-text" }, Me = {
|
|
19
|
-
key: 2,
|
|
20
|
-
class: "import-form"
|
|
21
|
-
}, Ne = { class: "import-header" }, Pe = { class: "import-headline" }, Fe = { class: "import-details" }, Ie = {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "import-source"
|
|
24
|
-
}, Le = { class: "import-source" }, Re = { class: "connection-setup" }, ze = { class: "setup-description" }, Be = {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "form-group"
|
|
27
|
-
}, Ve = {
|
|
28
|
-
key: 1,
|
|
29
|
-
class: "form-group"
|
|
30
|
-
}, He = { class: "form-group" }, Ue = { class: "form-group" }, We = { class: "form-group" }, Ge = { class: "form-actions" }, Ke = ["disabled"], qe = 1500, T = /*@__PURE__*/ re({
|
|
31
|
-
__name: "AssetAutoImporter",
|
|
32
|
-
emits: ["importComplete", "fullScreen"],
|
|
33
|
-
setup(e, { emit: t }) {
|
|
34
|
-
let re = t, T = v("dashboardStore"), E = v("connectionStore"), D = v("editorStore"), O = v("modelStore"), k = v("communityApiStore"), A = v("queryExecutionService"), Je = v("saveDashboards"), Ye = v("saveAll"), Xe = v("storageSources", []), j = n(), Ze = p(() => Xe.find((e) => e.type === "remote"));
|
|
35
|
-
if (!T || !E || !D || !O || !Je || !A || !Ye) throw Error("Required stores not provided");
|
|
36
|
-
let M = x(!0), N = x(""), P = x(""), Qe = x(""), F = x(""), I = x(!1), L = x(""), R = x("dashboard"), z = x(""), B = x(""), V = x(null), H = x(!1), $e = x(""), U = x(!1), W = x("importing"), G = x(Date.now()), et = x(Date.now()), tt = x("0 ms"), K = null, q = x({
|
|
37
|
-
mdToken: "",
|
|
38
|
-
projectId: "",
|
|
39
|
-
username: "",
|
|
40
|
-
password: "",
|
|
41
|
-
account: "",
|
|
42
|
-
sshPrivateKey: ""
|
|
43
|
-
}), J = x(!0), Y = {
|
|
44
|
-
duckdb: {
|
|
45
|
-
fields: [],
|
|
46
|
-
autoImport: !0
|
|
47
|
-
},
|
|
48
|
-
motherduck: {
|
|
49
|
-
fields: ["mdToken"],
|
|
50
|
-
autoImport: !1
|
|
51
|
-
},
|
|
52
|
-
bigquery: {
|
|
53
|
-
fields: ["projectId"],
|
|
54
|
-
autoImport: !1
|
|
55
|
-
},
|
|
56
|
-
snowflake: {
|
|
57
|
-
fields: [
|
|
58
|
-
"username",
|
|
59
|
-
"account",
|
|
60
|
-
"sshPrivateKey"
|
|
61
|
-
],
|
|
62
|
-
autoImport: !1
|
|
63
|
-
}
|
|
64
|
-
}, nt = p(() => {
|
|
65
|
-
if (I.value) return !1;
|
|
66
|
-
let e = Y[B.value];
|
|
67
|
-
return !e || !e.autoImport;
|
|
68
|
-
}), rt = p(() => {
|
|
69
|
-
let e = Y[B.value];
|
|
70
|
-
return e ? e.fields : [];
|
|
71
|
-
}), it = p(() => {
|
|
72
|
-
let e = i.find((e) => e.value === B.value);
|
|
73
|
-
return e ? e.label : B.value;
|
|
74
|
-
}), X = p(() => {
|
|
75
|
-
switch (R.value) {
|
|
76
|
-
case "dashboard": return "Dashboard";
|
|
77
|
-
case "editor":
|
|
78
|
-
case "trilogy": return "Editor";
|
|
79
|
-
default: return "Asset";
|
|
80
|
-
}
|
|
81
|
-
}), at = p(() => `A model named "${z.value}" already exists. Overwriting will replace its imported sources. Continue?`), ot = p(() => {
|
|
82
|
-
switch (R.value) {
|
|
83
|
-
case "dashboard": return "Setting up your dashboard...";
|
|
84
|
-
case "editor":
|
|
85
|
-
case "trilogy": return "Setting up your editor...";
|
|
86
|
-
default: return "Setting up your asset...";
|
|
87
|
-
}
|
|
88
|
-
}), st = (e) => 100, Z = () => {
|
|
89
|
-
Q();
|
|
90
|
-
let e = Date.now() - et.value;
|
|
91
|
-
if (e < 1e3) tt.value = `${e} ms`;
|
|
92
|
-
else if (e < 6e4) {
|
|
93
|
-
let t = (e / 1e3).toFixed(1);
|
|
94
|
-
tt.value = `${t} sec`;
|
|
95
|
-
} else {
|
|
96
|
-
let t = Math.floor(e / 6e4), n = (e % 6e4 / 1e3).toFixed(1);
|
|
97
|
-
tt.value = n === "0.0" ? `${t} min` : `${t} min ${n} sec`;
|
|
98
|
-
}
|
|
99
|
-
if (!V.value && (M.value || H.value)) {
|
|
100
|
-
let t = st(e);
|
|
101
|
-
K = setTimeout(Z, t);
|
|
102
|
-
}
|
|
103
|
-
}, Q = () => {
|
|
104
|
-
K &&= (clearTimeout(K), null);
|
|
105
|
-
}, ct = async (e) => {
|
|
106
|
-
let t = Date.now() - G.value, n = Math.max(0, qe - t);
|
|
107
|
-
n > 0 && W.value !== "registering" && W.value !== "importing" && await new Promise((e) => setTimeout(e, n)), W.value = e, G.value = Date.now();
|
|
108
|
-
};
|
|
109
|
-
function $() {
|
|
110
|
-
if (!B.value) {
|
|
111
|
-
J.value = !1;
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
let e = rt.value;
|
|
115
|
-
for (let t of e) if (!q.value[t]) {
|
|
116
|
-
J.value = !1;
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
J.value = !0;
|
|
120
|
-
}
|
|
121
|
-
let lt = (e) => Qe.value || r(e), ut = async () => {
|
|
122
|
-
if (!P.value || !k) return;
|
|
123
|
-
let e = o(P.value), t = lt(e), n = k.stores.find((e) => e.id === t);
|
|
124
|
-
if (n) {
|
|
125
|
-
n.type === "generic" && (F.value && (n.token = F.value), I.value && z.value && (n.name = z.value)), console.log(`Store ${t} already registered`);
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
let r = {
|
|
129
|
-
type: "generic",
|
|
130
|
-
id: t,
|
|
131
|
-
name: I.value && z.value ? z.value : `Auto-registered: ${e}`,
|
|
132
|
-
baseUrl: e,
|
|
133
|
-
token: F.value || void 0
|
|
134
|
-
};
|
|
135
|
-
try {
|
|
136
|
-
await k.addStore(r), console.log(`Store ${t} registered successfully`);
|
|
137
|
-
} catch (e) {
|
|
138
|
-
console.warn(`Failed to register store ${t}:`, e);
|
|
139
|
-
}
|
|
140
|
-
}, dt = () => {
|
|
141
|
-
if (!P.value || !k) return null;
|
|
142
|
-
let e = o(P.value), t = lt(e), n = k.stores.find((e) => e.id === t);
|
|
143
|
-
return n?.type === "generic" ? n : null;
|
|
144
|
-
}, ft = () => {
|
|
145
|
-
U.value = !1, V.value = `Import cancelled. Existing model "${z.value}" was not overwritten.`, M.value = !1, Q();
|
|
146
|
-
}, pt = async () => {
|
|
147
|
-
U.value = !1, V.value = null, await _t();
|
|
148
|
-
}, mt = async () => {
|
|
149
|
-
if (!I.value && O.models[z.value]) {
|
|
150
|
-
M.value = !1, Q(), U.value = !0;
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
await _t();
|
|
154
|
-
}, ht = async () => {
|
|
155
|
-
if (!Ze.value) throw Error("Remote storage is not available in this context.");
|
|
156
|
-
let e = dt();
|
|
157
|
-
if (!e) throw Error("Remote imports require a valid store URL that can be registered.");
|
|
158
|
-
await u(Ze.value, e.id, D, E, O);
|
|
159
|
-
let t = a(e);
|
|
160
|
-
if (R.value === "dashboard") {
|
|
161
|
-
let e = Object.values(T.dashboards).find((e) => e.name === L.value && e.connection === t);
|
|
162
|
-
if (!e) throw Error(`Dashboard "${L.value}" is not part of the remote store. Remote stores don't serve dashboards — create one locally against this store's connection first.`);
|
|
163
|
-
return T.warmDashboardQueries(e.id, A, D), {
|
|
164
|
-
foundAssetId: e.id,
|
|
165
|
-
connectionName: t
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
let n = `remote:${e.id}:`, r = Object.values(D.editors).filter((e) => e.id.startsWith(n) && e.connection === t), i = (e) => e.replace(/\.[^.]+$/, ""), o = r.find((e) => e.name === L.value || i(e.name) === L.value);
|
|
169
|
-
if (!o) {
|
|
170
|
-
let e = r.map((e) => e.name).join(", ");
|
|
171
|
-
throw Error(`Editor "${L.value}" was not found in the remote store, have ${e}`);
|
|
172
|
-
}
|
|
173
|
-
return {
|
|
174
|
-
foundAssetId: o.id,
|
|
175
|
-
connectionName: t
|
|
176
|
-
};
|
|
177
|
-
}, gt = async () => {
|
|
178
|
-
let e = `${z.value}-connection`, t = new te(D, O, T);
|
|
179
|
-
O.models[z.value] || O.newModelConfig(z.value, !0), E.connectionByName(e) || E.newConnection(e, B.value, {
|
|
180
|
-
mdToken: q.value.mdToken,
|
|
181
|
-
projectId: q.value.projectId,
|
|
182
|
-
username: q.value.username,
|
|
183
|
-
password: q.value.password,
|
|
184
|
-
account: q.value.account,
|
|
185
|
-
privateKey: q.value.sshPrivateKey,
|
|
186
|
-
model: z.value
|
|
187
|
-
});
|
|
188
|
-
let n = dt(), r = await t.importModel(z.value, N.value, e, {
|
|
189
|
-
token: F.value || void 0,
|
|
190
|
-
remote: !1,
|
|
191
|
-
remoteStoreId: n?.id || null,
|
|
192
|
-
remoteBaseUrl: n?.baseUrl || P.value || null
|
|
193
|
-
});
|
|
194
|
-
if (E.connectionByName(e)?.setModel(z.value), R.value === "dashboard") {
|
|
195
|
-
let t = r?.dashboards.get(L.value), n = t ? T.dashboards[t] : void 0;
|
|
196
|
-
if (!n) {
|
|
197
|
-
let t = Object.values(T.dashboards).filter((t) => t.connection === e && t.storage !== "remote").map((e) => e.name).join(", ");
|
|
198
|
-
throw Error(`Dashboard "${L.value}" was not found in the imported model, have ${t}`);
|
|
199
|
-
}
|
|
200
|
-
return T.warmDashboardQueries(n.id, A, D), {
|
|
201
|
-
foundAssetId: n.id,
|
|
202
|
-
connectionName: e
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
let i = r?.trilogy.get(L.value) || r?.sql.get(L.value) || r?.python.get(L.value), a = i ? D.editors[i] : void 0;
|
|
206
|
-
if (!a) {
|
|
207
|
-
let t = Object.values(D.editors).filter((t) => t.connection === e && t.storage !== "remote").map((e) => e.name).join(", ");
|
|
208
|
-
throw Error(`Editor "${L.value}" was not found in the imported model, have ${t}`);
|
|
209
|
-
}
|
|
210
|
-
return {
|
|
211
|
-
foundAssetId: a.id,
|
|
212
|
-
connectionName: e
|
|
213
|
-
};
|
|
214
|
-
}, _t = async () => {
|
|
215
|
-
try {
|
|
216
|
-
if (!z.value || !L.value) {
|
|
217
|
-
V.value = "Missing required import parameters";
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
if (!I.value && !N.value) {
|
|
221
|
-
V.value = "Missing required import parameters";
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
et.value = Date.now(), G.value = Date.now(), M.value = !0, Z(), P.value ? (W.value = "registering", await ut(), await ct("importing")) : W.value = "importing";
|
|
225
|
-
let { foundAssetId: e, connectionName: t } = I.value ? await ht() : await gt();
|
|
226
|
-
await ct("connecting"), $e.value = e, I.value || await Ye();
|
|
227
|
-
let n = E.connectionByName(t);
|
|
228
|
-
n && await E.resetConnection(n.id), await ct("preparing"), M.value = !1, H.value = !0, K && clearTimeout(K), Z(), setTimeout(() => {
|
|
229
|
-
Q();
|
|
230
|
-
}, 2e3), re("importComplete", e, R.value), s(l.IMPORT), s(l.STORE), s(l.STORE_ID), s(l.TOKEN), s(l.ASSET_TYPE), s(l.ASSET_NAME), s(l.DASHBOARD), s(l.REMOTE), setTimeout(() => {
|
|
231
|
-
j.closeTab(null, "asset-import"), R.value === "dashboard" ? (j.openTab("dashboard", null, e), j.setActiveSidebarScreen("dashboard")) : (j.openTab("editors", null, e), j.setActiveSidebarScreen("editors"));
|
|
232
|
-
}, 500);
|
|
233
|
-
} catch (e) {
|
|
234
|
-
console.error("Import failed:", e), V.value = e instanceof Error ? e.message : "Import failed", M.value = !1, Q();
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
ae(async () => {
|
|
238
|
-
try {
|
|
239
|
-
et.value = Date.now(), G.value = Date.now(), Z();
|
|
240
|
-
let e = j.modelImport.value, t = c(l.STORE, ""), n = c(l.STORE_ID, ""), r = c(l.TOKEN, ""), i = c(l.REMOTE, ""), a = c(l.ASSET_TYPE, ""), o = c(l.ASSET_NAME, ""), s = c(l.DASHBOARD, ""), ee = c(l.MODEL_NAME, ""), te = c(l.CONNECTION, ""), u = "dashboard", d = "";
|
|
241
|
-
a && o ? (u = a, d = o) : s && (u = "dashboard", d = s);
|
|
242
|
-
let f = [
|
|
243
|
-
"true",
|
|
244
|
-
"1",
|
|
245
|
-
"yes"
|
|
246
|
-
].includes((i || "").toLowerCase());
|
|
247
|
-
if (!d || !ee || !f && (!e || !te) || f && !t) {
|
|
248
|
-
V.value = f ? "Missing required import parameters (store, assetName/dashboard, modelName)" : "Missing required import parameters (import, assetName/dashboard, modelName, connection)", M.value = !1, Q();
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
if (N.value = e ? decodeURIComponent(e) : "", P.value = t ? decodeURIComponent(t) : "", Qe.value = n ? decodeURIComponent(n) : "", F.value = r ? decodeURIComponent(r) : "", I.value = f, L.value = decodeURIComponent(d), R.value = u, z.value = decodeURIComponent(ee), B.value = te, !I.value && !Y[B.value]) {
|
|
252
|
-
V.value = `Unsupported connection type: ${B.value}`, M.value = !1, Q();
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
nt.value ? (M.value = !1, Q(), $()) : await mt();
|
|
256
|
-
} catch (e) {
|
|
257
|
-
console.error("Auto-import initialization failed:", e), V.value = e instanceof Error ? e.message : "Failed to initialize import", M.value = !1, Q();
|
|
258
|
-
}
|
|
259
|
-
}), ie(() => {
|
|
260
|
-
Q();
|
|
261
|
-
});
|
|
262
|
-
let vt = async () => {
|
|
263
|
-
if (M.value = !0, !J.value) throw Error("Form is not valid");
|
|
264
|
-
console.log("performing import"), await mt();
|
|
265
|
-
}, yt = () => {
|
|
266
|
-
R.value === "dashboard" ? (j.setActiveDashboard(null), j.setActiveScreen("dashboard")) : j.setActiveScreen("editors");
|
|
267
|
-
};
|
|
268
|
-
return (e, t) => (b(), h("div", se, [V.value ? (b(), h("div", ce, [
|
|
269
|
-
t[5] ||= g("div", { class: "error-icon" }, "⚠️", -1),
|
|
270
|
-
g("h2", le, S(X.value) + " Load Failed", 1),
|
|
271
|
-
g("p", ue, S(V.value), 1),
|
|
272
|
-
g("div", { class: "error-actions" }, [g("button", {
|
|
273
|
-
onClick: yt,
|
|
274
|
-
class: "manual-import-button"
|
|
275
|
-
}, " Try Manual Import ")])
|
|
276
|
-
])) : M.value || H.value ? (b(), h("div", de, [g("div", fe, [
|
|
277
|
-
g("img", {
|
|
278
|
-
src: oe(ee),
|
|
279
|
-
class: "trilogy-icon spinning",
|
|
280
|
-
alt: "Loading"
|
|
281
|
-
}, null, 8, pe),
|
|
282
|
-
g("h2", me, S(ot.value), 1),
|
|
283
|
-
g("div", he, [
|
|
284
|
-
P.value ? (b(), h("div", {
|
|
285
|
-
key: 0,
|
|
286
|
-
class: y(["step", {
|
|
287
|
-
active: W.value === "registering",
|
|
288
|
-
completed: W.value !== "registering"
|
|
289
|
-
}])
|
|
290
|
-
}, [g("div", ge, [W.value === "registering" ? (b(), h("span", _e, "⟳")) : (b(), h("span", ve, "✓"))]), t[6] ||= g("span", { class: "step-text" }, "Registering store", -1)], 2)) : m("", !0),
|
|
291
|
-
g("div", { class: y(["step", {
|
|
292
|
-
active: W.value === "importing",
|
|
293
|
-
completed: W.value !== "importing" && W.value !== "registering" && (W.value === "connecting" || W.value === "preparing" || H.value)
|
|
294
|
-
}]) }, [g("div", ye, [W.value === "importing" ? (b(), h("span", be, "⟳")) : W.value === "registering" ? (b(), h("span", xe, "○")) : (b(), h("span", Se, "✓"))]), t[7] ||= g("span", { class: "step-text" }, "Importing model", -1)], 2),
|
|
295
|
-
g("div", { class: y(["step", {
|
|
296
|
-
active: W.value === "connecting",
|
|
297
|
-
completed: W.value === "preparing" || H.value
|
|
298
|
-
}]) }, [g("div", Ce, [W.value === "connecting" ? (b(), h("span", we, "⟳")) : W.value === "preparing" || H.value ? (b(), h("span", Te, "✓")) : (b(), h("span", Ee, "○"))]), t[8] ||= g("span", { class: "step-text" }, "Establishing connection", -1)], 2),
|
|
299
|
-
g("div", { class: y(["step", {
|
|
300
|
-
active: W.value === "preparing" || H.value,
|
|
301
|
-
completed: H.value
|
|
302
|
-
}]) }, [g("div", De, [W.value === "preparing" ? (b(), h("span", Oe, "⟳")) : H.value ? (b(), h("span", ke, "✓")) : (b(), h("span", Ae, "○"))]), g("span", je, "Preparing " + S(X.value.toLowerCase()), 1)], 2)
|
|
303
|
-
]),
|
|
304
|
-
t[9] ||= g("p", { class: "import-details" }, "This may take a few seconds.", -1)
|
|
305
|
-
])])) : nt.value ? (b(), h("div", Me, [
|
|
306
|
-
g("div", Ne, [g("h2", Pe, "Import Model & " + S(X.value), 1), g("div", Fe, [
|
|
307
|
-
g("p", null, [t[10] ||= g("strong", null, "Model:", -1), _(" " + S(z.value), 1)]),
|
|
308
|
-
g("p", null, [g("strong", null, S(X.value) + ":", 1), _(" " + S(L.value), 1)]),
|
|
309
|
-
P.value ? (b(), h("p", Ie, [t[11] ||= g("strong", null, "Store:", -1), _(" " + S(P.value), 1)])) : m("", !0),
|
|
310
|
-
g("p", Le, [t[12] ||= g("strong", null, "From:", -1), _(" " + S(N.value), 1)])
|
|
311
|
-
])]),
|
|
312
|
-
g("div", Re, [
|
|
313
|
-
g("h3", null, S(it.value) + " Connection Setup", 1),
|
|
314
|
-
g("p", ze, " This model requires a " + S(B.value) + " connection. Please provide the required configuration: ", 1),
|
|
315
|
-
B.value === "motherduck" ? (b(), h("div", Be, [t[13] ||= g("label", { for: "md-token" }, "MotherDuck Token", -1), w(g("input", {
|
|
316
|
-
type: "text",
|
|
317
|
-
"onUpdate:modelValue": t[0] ||= (e) => q.value.mdToken = e,
|
|
318
|
-
id: "md-token",
|
|
319
|
-
placeholder: "Enter your MotherDuck token",
|
|
320
|
-
class: "connection-input",
|
|
321
|
-
onInput: $
|
|
322
|
-
}, null, 544), [[
|
|
323
|
-
C,
|
|
324
|
-
q.value.mdToken,
|
|
325
|
-
void 0,
|
|
326
|
-
{ trim: !0 }
|
|
327
|
-
]])])) : B.value === "bigquery" ? (b(), h("div", Ve, [t[14] ||= g("label", { for: "project-id" }, "BigQuery Project ID", -1), w(g("input", {
|
|
328
|
-
type: "text",
|
|
329
|
-
"onUpdate:modelValue": t[1] ||= (e) => q.value.projectId = e,
|
|
330
|
-
id: "project-id",
|
|
331
|
-
placeholder: "Enter your billing project ID",
|
|
332
|
-
class: "connection-input",
|
|
333
|
-
onInput: $
|
|
334
|
-
}, null, 544), [[
|
|
335
|
-
C,
|
|
336
|
-
q.value.projectId,
|
|
337
|
-
void 0,
|
|
338
|
-
{ trim: !0 }
|
|
339
|
-
]])])) : B.value === "snowflake" ? (b(), h(f, { key: 2 }, [
|
|
340
|
-
g("div", He, [t[15] ||= g("label", { for: "snowflake-username" }, "Username", -1), w(g("input", {
|
|
341
|
-
type: "text",
|
|
342
|
-
"onUpdate:modelValue": t[2] ||= (e) => q.value.username = e,
|
|
343
|
-
id: "snowflake-username",
|
|
344
|
-
placeholder: "Snowflake username",
|
|
345
|
-
class: "connection-input",
|
|
346
|
-
onInput: $
|
|
347
|
-
}, null, 544), [[
|
|
348
|
-
C,
|
|
349
|
-
q.value.username,
|
|
350
|
-
void 0,
|
|
351
|
-
{ trim: !0 }
|
|
352
|
-
]])]),
|
|
353
|
-
g("div", Ue, [t[16] ||= g("label", { for: "snowflake-account" }, "Account", -1), w(g("input", {
|
|
354
|
-
type: "text",
|
|
355
|
-
"onUpdate:modelValue": t[3] ||= (e) => q.value.account = e,
|
|
356
|
-
id: "snowflake-account",
|
|
357
|
-
placeholder: "Snowflake account identifier",
|
|
358
|
-
class: "connection-input",
|
|
359
|
-
onInput: $
|
|
360
|
-
}, null, 544), [[
|
|
361
|
-
C,
|
|
362
|
-
q.value.account,
|
|
363
|
-
void 0,
|
|
364
|
-
{ trim: !0 }
|
|
365
|
-
]])]),
|
|
366
|
-
g("div", We, [t[17] ||= g("label", { for: "snowflake-key" }, "Private Key", -1), w(g("input", {
|
|
367
|
-
type: "text",
|
|
368
|
-
"onUpdate:modelValue": t[4] ||= (e) => q.value.sshPrivateKey = e,
|
|
369
|
-
id: "snowflake-key",
|
|
370
|
-
placeholder: "Private key for authentication",
|
|
371
|
-
class: "connection-input",
|
|
372
|
-
onInput: $
|
|
373
|
-
}, null, 544), [[
|
|
374
|
-
C,
|
|
375
|
-
q.value.sshPrivateKey,
|
|
376
|
-
void 0,
|
|
377
|
-
{ trim: !0 }
|
|
378
|
-
]])])
|
|
379
|
-
], 64)) : m("", !0)
|
|
380
|
-
]),
|
|
381
|
-
g("div", Ge, [g("button", {
|
|
382
|
-
onClick: vt,
|
|
383
|
-
class: "import-button",
|
|
384
|
-
disabled: !J.value
|
|
385
|
-
}, " Import Model & " + S(X.value), 9, Ke), g("button", {
|
|
386
|
-
onClick: yt,
|
|
387
|
-
class: "cancel-button"
|
|
388
|
-
}, "Cancel")])
|
|
389
|
-
])) : m("", !0), ne(d, {
|
|
390
|
-
show: U.value,
|
|
391
|
-
title: "Overwrite Existing Model?",
|
|
392
|
-
message: at.value,
|
|
393
|
-
"confirm-label": "Overwrite",
|
|
394
|
-
"cancel-label": "Cancel",
|
|
395
|
-
"confirm-test-id": "confirm-overwrite-model",
|
|
396
|
-
"cancel-test-id": "cancel-overwrite-model",
|
|
397
|
-
onClose: ft,
|
|
398
|
-
onConfirm: pt
|
|
399
|
-
}, null, 8, ["show", "message"])]));
|
|
400
|
-
}
|
|
401
|
-
}), E = /* @__PURE__ */ e({ default: () => D }), D = /*#__PURE__*/ t(T, [["__scopeId", "data-v-708e13b8"]]);
|
|
402
|
-
//#endregion
|
|
403
|
-
export { E as n, D as t };
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { t } from "./StatusIcon-BylPx2EO.js";
|
|
3
|
-
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, inject as u, normalizeClass as d, openBlock as f, ref as p, renderList as m, resolveComponent as h, toDisplayString as g, vModelSelect as _, vModelText as v, watch as y, withDirectives as b, withModifiers as x } from "vue";
|
|
4
|
-
//#region components/llm/ChatCreatorModal.vue?vue&type=script&lang.ts
|
|
5
|
-
var S = l({
|
|
6
|
-
name: "ChatCreatorModal",
|
|
7
|
-
components: { StatusIcon: t },
|
|
8
|
-
props: {
|
|
9
|
-
visible: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: !1
|
|
12
|
-
},
|
|
13
|
-
preselectedConnection: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: ""
|
|
16
|
-
},
|
|
17
|
-
activeDataConnection: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: ""
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
emits: ["close", "chat-created"],
|
|
23
|
-
setup(e, { emit: t }) {
|
|
24
|
-
let n = u("llmConnectionStore"), i = u("connectionStore", null), a = u("chatStore", null), o = p(e.preselectedConnection || ""), s = p(""), c = p("");
|
|
25
|
-
y(() => e.preselectedConnection, (e) => {
|
|
26
|
-
e && (o.value = e);
|
|
27
|
-
}, { immediate: !0 }), y(() => e.visible, (t) => {
|
|
28
|
-
t && (e.preselectedConnection && (o.value = e.preselectedConnection), s.value = "", c.value = "");
|
|
29
|
-
});
|
|
30
|
-
let l = r(() => n ? Object.values(n.connections).filter((e) => !e.deleted).map((e) => ({
|
|
31
|
-
name: e.name,
|
|
32
|
-
model: e.model || "Unknown",
|
|
33
|
-
connected: e.connected === !0,
|
|
34
|
-
running: e.running === !0,
|
|
35
|
-
error: e.error || null
|
|
36
|
-
})) : []), d = r(() => [...l.value].sort((e, t) => e.connected && !t.connected ? -1 : !e.connected && t.connected ? 1 : e.name.localeCompare(t.name))), f = r(() => {
|
|
37
|
-
if (!o.value) return null;
|
|
38
|
-
let e = l.value.find((e) => e.name === o.value);
|
|
39
|
-
return e ? e.connected ? e.running ? {
|
|
40
|
-
status: "running",
|
|
41
|
-
message: "Running"
|
|
42
|
-
} : e.error ? {
|
|
43
|
-
status: "failed",
|
|
44
|
-
message: e.error
|
|
45
|
-
} : {
|
|
46
|
-
status: "connected",
|
|
47
|
-
message: "Connected"
|
|
48
|
-
} : {
|
|
49
|
-
status: "disabled",
|
|
50
|
-
message: "Disconnected"
|
|
51
|
-
} : null;
|
|
52
|
-
}), m = r(() => e.activeDataConnection ? e.activeDataConnection.split("+")[0] : ""), h = r(() => !m.value || !i ? "" : i.connectionByName(m.value)?.id || ""), g = r(() => i ? Object.values(i.connections).filter((e) => !e.deleted).map((e) => ({
|
|
53
|
-
id: e.id,
|
|
54
|
-
name: e.name,
|
|
55
|
-
connected: e.connected === !0,
|
|
56
|
-
running: e.running === !0,
|
|
57
|
-
error: e.error || null
|
|
58
|
-
})) : []);
|
|
59
|
-
return {
|
|
60
|
-
selectedLLMConnection: o,
|
|
61
|
-
selectedDataConnectionId: s,
|
|
62
|
-
chatName: c,
|
|
63
|
-
availableLLMConnections: l,
|
|
64
|
-
sortedLLMConnections: d,
|
|
65
|
-
selectedConnectionStatus: f,
|
|
66
|
-
availableDataConnections: g,
|
|
67
|
-
sortedDataConnections: r(() => [...g.value].sort((e, t) => e.connected && !t.connected ? -1 : !e.connected && t.connected ? 1 : e.name.localeCompare(t.name))),
|
|
68
|
-
selectedDataConnectionStatus: r(() => {
|
|
69
|
-
if (!s.value) return null;
|
|
70
|
-
let e = g.value.find((e) => e.id === s.value);
|
|
71
|
-
return e ? e.connected ? e.running ? {
|
|
72
|
-
status: "running",
|
|
73
|
-
message: "Running"
|
|
74
|
-
} : e.error ? {
|
|
75
|
-
status: "failed",
|
|
76
|
-
message: e.error
|
|
77
|
-
} : {
|
|
78
|
-
status: "connected",
|
|
79
|
-
message: "Connected"
|
|
80
|
-
} : {
|
|
81
|
-
status: "disabled",
|
|
82
|
-
message: "Disconnected"
|
|
83
|
-
} : null;
|
|
84
|
-
}),
|
|
85
|
-
activeDataConnectionName: m,
|
|
86
|
-
activeDataConnectionId: h,
|
|
87
|
-
createChat: () => {
|
|
88
|
-
if (!o.value || !a) return;
|
|
89
|
-
n && (n.activeConnection = o.value);
|
|
90
|
-
let e = s.value ? i?.connections[s.value] : null;
|
|
91
|
-
t("chat-created", a.newChat(o.value, e?.name || "", c.value || void 0, e?.id || "")), t("close");
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
}), C = { class: "chat-creator-form" }, w = { class: "form-group" }, T = { class: "select-with-status" }, E = ["disabled"], D = ["value", "disabled"], O = { key: 0 }, k = { class: "form-group" }, A = { class: "select-with-status" }, j = ["value"], M = { class: "form-group" }, N = { class: "button-container" }, P = ["disabled"];
|
|
96
|
-
function F(e, t, r, l, u, p) {
|
|
97
|
-
let y = h("status-icon");
|
|
98
|
-
return e.visible ? (f(), o("div", {
|
|
99
|
-
key: 0,
|
|
100
|
-
class: "confirmation-overlay",
|
|
101
|
-
onClick: t[6] ||= (t) => e.$emit("close")
|
|
102
|
-
}, [s("div", {
|
|
103
|
-
class: "confirmation-dialog",
|
|
104
|
-
"data-testid": "chat-creator-modal",
|
|
105
|
-
onClick: t[5] ||= x(() => {}, ["stop"])
|
|
106
|
-
}, [t[13] ||= s("h3", null, "Create New Chat", -1), s("div", C, [
|
|
107
|
-
s("div", w, [
|
|
108
|
-
t[8] ||= s("label", { for: "llm-connection" }, [c("LLM Connection: "), s("span", { class: "required" }, "*")], -1),
|
|
109
|
-
s("div", T, [b(s("select", {
|
|
110
|
-
id: "llm-connection",
|
|
111
|
-
"onUpdate:modelValue": t[0] ||= (t) => e.selectedLLMConnection = t,
|
|
112
|
-
required: "",
|
|
113
|
-
disabled: !!e.preselectedConnection,
|
|
114
|
-
"data-testid": "llm-connection-select"
|
|
115
|
-
}, [t[7] ||= s("option", {
|
|
116
|
-
value: "",
|
|
117
|
-
disabled: ""
|
|
118
|
-
}, "Select an LLM connection...", -1), (f(!0), o(n, null, m(e.sortedLLMConnections, (e) => (f(), o("option", {
|
|
119
|
-
key: e.name,
|
|
120
|
-
value: e.name,
|
|
121
|
-
disabled: !e.connected
|
|
122
|
-
}, g(e.name) + " (" + g(e.model) + ") ", 9, D))), 128))], 8, E), [[_, e.selectedLLMConnection]]), e.selectedConnectionStatus ? (f(), i(y, {
|
|
123
|
-
key: 0,
|
|
124
|
-
status: e.selectedConnectionStatus.status,
|
|
125
|
-
message: e.selectedConnectionStatus.message,
|
|
126
|
-
testName: e.selectedLLMConnection
|
|
127
|
-
}, null, 8, [
|
|
128
|
-
"status",
|
|
129
|
-
"message",
|
|
130
|
-
"testName"
|
|
131
|
-
])) : a("", !0)]),
|
|
132
|
-
e.selectedLLMConnection ? a("", !0) : (f(), o("small", O, " Required - Select which LLM to use for this chat "))
|
|
133
|
-
]),
|
|
134
|
-
s("div", k, [
|
|
135
|
-
t[10] ||= s("label", { for: "data-connection" }, "Data Connection:", -1),
|
|
136
|
-
s("div", A, [b(s("select", {
|
|
137
|
-
id: "data-connection",
|
|
138
|
-
"onUpdate:modelValue": t[1] ||= (t) => e.selectedDataConnectionId = t,
|
|
139
|
-
"data-testid": "data-connection-select"
|
|
140
|
-
}, [t[9] ||= s("option", { value: "" }, "None - Select later", -1), (f(!0), o(n, null, m(e.sortedDataConnections, (t) => (f(), o("option", {
|
|
141
|
-
key: t.id,
|
|
142
|
-
value: t.id,
|
|
143
|
-
class: d({ "active-connection": t.id === e.activeDataConnectionId })
|
|
144
|
-
}, g(t.name) + g(t.id === e.activeDataConnectionId ? " (active)" : ""), 11, j))), 128))], 512), [[_, e.selectedDataConnectionId]]), e.selectedDataConnectionStatus ? (f(), i(y, {
|
|
145
|
-
key: 0,
|
|
146
|
-
status: e.selectedDataConnectionStatus.status,
|
|
147
|
-
message: e.selectedDataConnectionStatus.message,
|
|
148
|
-
testName: "data-" + e.selectedDataConnectionId
|
|
149
|
-
}, null, 8, [
|
|
150
|
-
"status",
|
|
151
|
-
"message",
|
|
152
|
-
"testName"
|
|
153
|
-
])) : a("", !0)]),
|
|
154
|
-
t[11] ||= s("small", null, " Optional - Select a data source for running queries ", -1)
|
|
155
|
-
]),
|
|
156
|
-
s("div", M, [t[12] ||= s("label", { for: "chat-name" }, "Chat Name:", -1), b(s("input", {
|
|
157
|
-
id: "chat-name",
|
|
158
|
-
"onUpdate:modelValue": t[2] ||= (t) => e.chatName = t,
|
|
159
|
-
placeholder: "Auto-generated if empty",
|
|
160
|
-
maxlength: "100",
|
|
161
|
-
"data-testid": "chat-name-input"
|
|
162
|
-
}, null, 512), [[v, e.chatName]])]),
|
|
163
|
-
s("div", N, [s("button", {
|
|
164
|
-
class: "cancel-btn",
|
|
165
|
-
onClick: t[3] ||= (t) => e.$emit("close"),
|
|
166
|
-
"data-testid": "cancel-chat-create"
|
|
167
|
-
}, " Cancel "), s("button", {
|
|
168
|
-
class: "primary-button",
|
|
169
|
-
onClick: t[4] ||= (...t) => e.createChat && e.createChat(...t),
|
|
170
|
-
disabled: !e.selectedLLMConnection,
|
|
171
|
-
"data-testid": "create-chat-btn"
|
|
172
|
-
}, " Create Chat ", 8, P)])
|
|
173
|
-
])])])) : a("", !0);
|
|
174
|
-
}
|
|
175
|
-
var I = /*#__PURE__*/ e(S, [["render", F], ["__scopeId", "data-v-37d44aea"]]);
|
|
176
|
-
//#endregion
|
|
177
|
-
export { I as default };
|