@trilogy-data/trilogy-studio-components 0.1.25 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AssetAutoImporter-OHphsfW9.js +403 -0
- package/dist/ChatCreatorModal-CuXha6Dg.js +218 -0
- package/dist/ChatModelSelect-Cz7axWjP.js +40 -0
- package/dist/{CodeBlock-PT4no49I.js → CodeBlock-BBsaC6hX.js} +4 -4
- package/dist/{CommunityModels-D7zWnHgG.js → CommunityModels-CIQQhO-y.js} +106 -75
- package/dist/{ConnectionErrorPopup-FSs7U-Yl.js → ConnectionErrorPopup-7vpqgF0s.js} +1 -1
- package/dist/{ConnectionView-COnTTuA4.js → ConnectionView-7Jj_Ggdi.js} +49 -49
- package/dist/{CreateEditorFromDatasourcePopup-snOh1d5h.js → CreateEditorFromDatasourcePopup-CrVHUWFl.js} +4 -4
- package/dist/{Dashboard-D1ZCTw5r.js → Dashboard-DxSi9W6Q.js} +276 -280
- package/dist/{DashboardImportSelector-CNxibXlS.js → DashboardImportSelector-kuDRDYi8.js} +2 -2
- package/dist/{DashboardMobile-D_m0xv17.js → DashboardMobile-CZEgTb0R.js} +39 -39
- package/dist/{DrilldownPane-CBs5ZojS.js → DrilldownPane-BheRHJMs.js} +5 -7
- package/dist/{Editor-DhsP18KE.js → Editor-D6tdutTm.js} +106 -104
- package/dist/{ErrorMessage-XMn_08gJ.js → ErrorMessage-D5JeF3Iz.js} +4 -4
- package/dist/{GlobalChatPanel-DFx9A4yP.js → GlobalChatPanel-BXZh0sdD.js} +169 -134
- package/dist/{IDE-BRMLxTfP.js → IDE-T8PmyAQ_.js} +200 -203
- package/dist/{JobsView-C9PYS6pZ.js → JobsView-Ca97MiSd.js} +12 -13
- package/dist/{LLMChat-Cqg6pTgC.js → LLMChat-Cch33Yd_.js} +3 -3
- package/dist/{LLMView-VkJpP-49.js → LLMView-BDb6wD74.js} +26 -26
- package/dist/{LoadingView-s1uznGwG.js → LoadingView-B-xFwd2N.js} +2 -2
- package/dist/{MarkdownRenderer-BNDuEyG-.js → MarkdownRenderer-BWvdx0k3.js} +531 -430
- package/dist/MobileIDE-DpdEQEqc.js +783 -0
- package/dist/{ModelCard-D8tKkK9-.js → ModelCard-DkAMP4X9.js} +19 -20
- package/dist/{ModelView-rAurf9n8.js → ModelView-DomyhN8g.js} +7 -7
- package/dist/PageLoading-BAvKGo9h.js +5937 -0
- package/dist/{ResultComponent-_-1qZCfv.js → ResultComponent-zoOSoRLe.js} +8 -8
- package/dist/{Results-CQGpFmPQ.js → Results-dq-SlJbU.js} +17 -19
- package/dist/{StatusIcon-BylPx2EO.js → StatusIcon-AbxNvJ6p.js} +2 -2
- package/dist/{StoreTokenModal-zCSYhfrw.js → StoreTokenModal-CM8WXdu1.js} +2 -2
- package/dist/{SymbolsPane-BpmL___H.js → SymbolsPane-DfaxeaPS.js} +6 -3
- package/dist/{TrilogyEmbedProvider-WA_dlv9e.js → TrilogyEmbedProvider-D3h0gYnX.js} +9 -9
- package/dist/{TutorialPage-CZGBRJdq.js → TutorialPage-BtEJG7cT.js} +27 -28
- package/dist/{VegaLiteChart-CmkOw6yD.js → VegaLiteChart-BVyAab-o.js} +12191 -10975
- package/dist/{WelcomePage-CLKvAvk-.js → WelcomePage-BoqzYBLr.js} +5 -5
- package/dist/{embedTheme-Bub46ILG.js → _plugin-vue_export-helper-f9Rw-Il4.js} +14 -6
- package/dist/assets/{css.worker-9aDGcEUy.js → css.worker-niORQtzO.js} +14 -14
- package/dist/assets/{html.worker-D2LKDpnG.js → html.worker-CO5LvJpF.js} +17 -17
- package/dist/assets/json.worker-BezHzWUV.js +58 -0
- package/dist/assets/{ts.worker-Bz0-EaKK.js → ts.worker-CYhxGg0r.js} +107 -107
- package/dist/{results-DTgAKr5j.js → base-DuKnVD-A.js} +216 -45
- package/dist/components/AssetAutoImporter.vue.d.ts.map +1 -1
- package/dist/components/FeedbackBanner.vue.d.ts +4 -0
- package/dist/components/FeedbackBanner.vue.d.ts.map +1 -0
- package/dist/components/TipsCTA.vue.d.ts +1 -1
- package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
- package/dist/components/chartHelpers.d.ts +9 -1
- package/dist/components/chartHelpers.d.ts.map +1 -1
- package/dist/components/chartRenderManager.d.ts +4 -1
- package/dist/components/chartRenderManager.d.ts.map +1 -1
- package/dist/components/community/AddStoreModal.vue.d.ts +1 -1
- package/dist/components/community/AddStoreModal.vue.d.ts.map +1 -1
- package/dist/components/community/CommunityModelCard.vue.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +54 -0
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardProvenance.vue.d.ts +30 -0
- package/dist/components/dashboard/DashboardProvenance.vue.d.ts.map +1 -0
- package/dist/components/dashboard/ReportLayout.vue.d.ts +19 -0
- package/dist/components/dashboard/ReportLayout.vue.d.ts.map +1 -0
- package/dist/components/editor/Editor.vue.d.ts +3 -3
- package/dist/components/editor/Editor.vue.d.ts.map +1 -1
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts +62 -0
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/editor/ValidationComponent.vue.d.ts +50 -0
- package/dist/components/editor/ValidationComponent.vue.d.ts.map +1 -0
- package/dist/components/jobs/JobsAddStoreModal.vue.d.ts.map +1 -1
- package/dist/components/llm/ChatCreatorModal.vue.d.ts +17 -1
- package/dist/components/llm/ChatCreatorModal.vue.d.ts.map +1 -1
- package/dist/components/llm/ChatModelSelect.vue.d.ts +13 -0
- package/dist/components/llm/ChatModelSelect.vue.d.ts.map +1 -0
- package/dist/components/llm/GlobalChatPanel.vue.d.ts.map +1 -1
- package/dist/components/model/ModelCard.vue.d.ts +3 -3
- package/dist/components/sidebar/CommunityModelList.vue.d.ts +33 -50
- package/dist/components/sidebar/CommunityModelList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CommunityModelListItem.vue.d.ts.map +1 -1
- package/dist/components/sidebar/EditorList.vue.d.ts +32 -49
- package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/Sidebar.vue.d.ts +65 -99
- package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts +3 -3
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
- package/dist/{remoteWorker-Dkv3TJ0j.js → connections-CWH3zwH2.js} +4544 -4126
- package/dist/connections.js +3 -4
- package/dist/{cssMode-D4Rzr1Cu.js → cssMode-zpO2ap2B.js} +5 -6
- package/dist/dashboard.js +54 -57
- package/dist/dashboards/layerSpec.d.ts +38 -4
- package/dist/dashboards/layerSpec.d.ts.map +1 -1
- package/dist/dashboards/lineAreaSpec.d.ts +8 -80
- package/dist/dashboards/lineAreaSpec.d.ts.map +1 -1
- package/dist/dashboards/mapSpec.d.ts +1 -0
- package/dist/dashboards/mapSpec.d.ts.map +1 -1
- package/dist/dashboards/spec.d.ts.map +1 -1
- package/dist/data/tutorial/documentation.d.ts.map +1 -1
- package/dist/data/tutorial/startupScripts.d.ts +3 -0
- package/dist/data/tutorial/startupScripts.d.ts.map +1 -0
- package/dist/{dist-CXoL8kXK.js → dist-1z5KURzS.js} +55 -50
- package/dist/{dist-DKkuvbPb.js → dist-Bv3D2p5A.js} +20 -18
- package/dist/{editor.main-Cl8i7rHY.js → editor.main-BQh6DxDB.js} +33 -33
- package/dist/{editorRefinementRuntime-C_YmXRy4.js → editorStore-CAlMJftt.js} +2084 -946
- package/dist/embed.js +2 -2
- package/dist/entry.dashboard.d.ts +1 -0
- package/dist/entry.dashboard.d.ts.map +1 -1
- package/dist/{freemarker2-fW5NBILf.js → freemarker2-DQBqlEXc.js} +1 -1
- package/dist/{globalChatRuntime-oMLiPLNC.js → globalChatRuntime-CyS7vH51.js} +18 -18
- package/dist/{handlebars-dG4w8UUY.js → handlebars-tgYxaM70.js} +1 -1
- package/dist/{helpers-DcWCa6bX.js → helpers-BbVlA3Pf.js} +39 -39
- package/dist/{html-1Dq70BdU.js → html-jJahD3Mi.js} +1 -1
- package/dist/{htmlMode--IQmLBeh.js → htmlMode-BA1-8l2e.js} +5 -6
- package/dist/{javascript-CTzBM4sF.js → javascript-Cypfo7va.js} +1 -1
- package/dist/{jsonMode-DzeJjIEH.js → jsonMode-xJye8PWS.js} +25 -25
- package/dist/{liquid-DlHThiki.js → liquid-BGDrv5da.js} +1 -1
- package/dist/llm/data/constants.d.ts +1 -1
- package/dist/llm/data/constants.d.ts.map +1 -1
- package/dist/llm/data/trilogySyntax.generated.d.ts +7 -1
- package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
- package/dist/llm/docsIndex.d.ts.map +1 -1
- package/dist/llm/openai.d.ts +2 -1
- package/dist/llm/openai.d.ts.map +1 -1
- package/dist/llm-ClU-2rgk.js +18493 -0
- package/dist/llm.js +2 -3
- package/dist/{localStorage-CSuYS7QE.js → localStorage-CGQ1iJXt.js} +39 -42
- package/dist/{lspLanguageFeatures-Cdfs3EKq.js → lspLanguageFeatures-V3e_p9oN.js} +32 -32
- package/dist/{mdx-fn3g4PH5.js → mdx-BUR1aImW.js} +1 -1
- package/dist/models/helpers.d.ts.map +1 -1
- package/dist/monaco.js +3 -3
- package/dist/{python-CCVj0pFt.js → python-YLkl0pc6.js} +1 -1
- package/dist/{razor-Cj3flYnk.js → razor-BP8TRMDY.js} +1 -1
- package/dist/{reconcile-Bk7M797_.js → reconcile-DXIvGwBk.js} +1 -1
- package/dist/{remoteStoreSync-CLvZJrTK.js → remoteStoreSync-CuQBWpWf.js} +3 -3
- package/dist/remotes/displayHelpers.d.ts.map +1 -1
- package/dist/remotes/genericStoreMetadata.d.ts +1 -0
- package/dist/remotes/genericStoreMetadata.d.ts.map +1 -1
- package/dist/remotes/models.d.ts +37 -5
- package/dist/remotes/models.d.ts.map +1 -1
- package/dist/remotes/staticStorePresets.d.ts +22 -0
- package/dist/remotes/staticStorePresets.d.ts.map +1 -0
- package/dist/remotes/storeService.d.ts +25 -4
- package/dist/remotes/storeService.d.ts.map +1 -1
- package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/static/test_import.vue.d.ts +4 -0
- package/dist/static/test_import.vue.d.ts.map +1 -0
- package/dist/stores/communityApiStore.d.ts +32 -60
- package/dist/stores/communityApiStore.d.ts.map +1 -1
- package/dist/stores/connectionStore.d.ts.map +1 -1
- package/dist/stores/resolver.d.ts +5 -0
- package/dist/stores/resolver.d.ts.map +1 -1
- package/dist/stores/urlStore.d.ts +1 -0
- package/dist/stores/urlStore.d.ts.map +1 -1
- package/dist/stores-LlyiwSbK.js +2604 -0
- package/dist/stores.js +4 -7
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{tsMode-GI4xMYAl.js → tsMode-BH9HS_sH.js} +64 -66
- package/dist/{typescript-CPibXi3J.js → typescript-BM-ynfk9.js} +1 -1
- package/dist/{useChatWithTools-GV1ufcqw.js → useChatWithTools-m3Jn_SV-.js} +11 -11
- package/dist/{useDashboard-OoBKkkuQ.js → useDashboard-BOAuvVEw.js} +1013 -1021
- package/dist/{tabulator_esm-CxLvGDp8.js → useGlobalChatPanel-DuP1q7_f.js} +1729 -711
- package/dist/{useResizableDialog-B0ePSts4.js → useResizableDialog-Cs90WJdF.js} +2 -2
- package/dist/views/MobileIDE.vue.d.ts.map +1 -1
- package/dist/views/ModelView.vue.d.ts +6 -6
- package/dist/views/ModelView.vue.d.ts.map +1 -1
- package/dist/views/TutorialPage.vue.d.ts +41 -58
- package/dist/views/TutorialPage.vue.d.ts.map +1 -1
- package/dist/views.js +193 -195
- package/dist/{editor.api2-ClD5pp8H.js → workers-B9Eybl-M.js} +16252 -15926
- package/dist/{xml-BNyphceI.js → xml-M5WFPSpA.js} +1 -1
- package/dist/{yaml-DE5Vz0PH.js → yaml-CEeFwjz9.js} +1 -1
- package/package.json +29 -20
- package/dist/AssetAutoImporter-DfMd_DSk.js +0 -403
- package/dist/ChatCreatorModal-BTqY06B6.js +0 -177
- package/dist/DashboardCreatorInline-LWvf--2x.js +0 -129
- package/dist/DataTable-DoRDynP1.js +0 -365
- package/dist/EditorCreatorInline-D6_y1H_h.js +0 -125
- package/dist/LoadingButton-OH3frQuO.js +0 -138
- package/dist/MobileIDE-CHGJoh05.js +0 -781
- package/dist/ModalDialog-D1EOG4rl.js +0 -42
- package/dist/ModelCreator-DrxLxeyH.js +0 -253
- package/dist/PageLoading-I6mr-7NB.js +0 -2666
- package/dist/Tooltip-Dihir4zs.js +0 -103
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/assets/json.worker-CJ5MmO5Q.js +0 -58
- package/dist/base-C8IuZWqY.js +0 -164
- package/dist/connectionHistoryStorage-DKJHiKJY.js +0 -111
- package/dist/connectionHistoryStore-DQeBvStZ.js +0 -61
- package/dist/connections-CJSb1TZl.js +0 -229
- package/dist/constants-DgFEYN2b.js +0 -7
- package/dist/dashboardStore-CNkWQ4r7.js +0 -641
- package/dist/demoSetup-DiW3ROFQ.js +0 -2941
- package/dist/editorRefinementToolExecutor-mX8ClQ63.js +0 -4498
- package/dist/editorStore-Ch7k-gse.js +0 -972
- package/dist/formatting-BbJ5ICgh.js +0 -6
- package/dist/llm-_807I79k.js +0 -11965
- package/dist/llmStore-CSzM1IZd.js +0 -153
- package/dist/monaco.contribution-ikesdolO.js +0 -128
- package/dist/stores-C1wUWiFm.js +0 -1708
- package/dist/trilogy-BroD2Qmp.js +0 -4
- package/dist/urlStore-Dgmwx1YI.js +0 -54
- package/dist/useGlobalChatPanel-CIeUyZba.js +0 -85
- package/dist/useIsMobile-CNpUQAvk.js +0 -8
- package/dist/usePrismHighlight-DVyDiDAL.js +0 -183
- package/dist/workers-Br7ThUKL.js +0 -47
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { Teleport as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeStyle as s, openBlock as c, renderSlot as l, toDisplayString as u, withModifiers as d } from "vue";
|
|
3
|
-
//#region components/ModalDialog.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var f = ["data-testid"], p = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "modal-header"
|
|
7
|
-
}, m = { class: "modal-title" }, h = { class: "modal-body" }, g = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "modal-footer"
|
|
10
|
-
}, _ = /*#__PURE__*/ e(/* @__PURE__ */ o({
|
|
11
|
-
__name: "ModalDialog",
|
|
12
|
-
props: {
|
|
13
|
-
show: { type: Boolean },
|
|
14
|
-
title: { default: "" },
|
|
15
|
-
maxWidth: { default: "400px" },
|
|
16
|
-
testId: { default: "" },
|
|
17
|
-
closeOnOverlay: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: !0
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
emits: ["close"],
|
|
23
|
-
setup(e, { emit: o }) {
|
|
24
|
-
let _ = e, v = o;
|
|
25
|
-
return (e, o) => (c(), n(t, { to: "body" }, [_.show ? (c(), i("div", {
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "modal-overlay",
|
|
28
|
-
onClick: o[1] ||= (e) => _.closeOnOverlay ? v("close") : void 0
|
|
29
|
-
}, [a("div", {
|
|
30
|
-
class: "modal-panel",
|
|
31
|
-
style: s({ maxWidth: _.maxWidth }),
|
|
32
|
-
"data-testid": _.testId || void 0,
|
|
33
|
-
onClick: o[0] ||= d(() => {}, ["stop"])
|
|
34
|
-
}, [
|
|
35
|
-
_.title || e.$slots.header ? (c(), i("div", p, [l(e.$slots, "header", {}, () => [a("h3", m, u(_.title), 1)], !0)])) : r("", !0),
|
|
36
|
-
a("div", h, [l(e.$slots, "default", {}, void 0, !0)]),
|
|
37
|
-
e.$slots.footer ? (c(), i("div", g, [l(e.$slots, "footer", {}, void 0, !0)])) : r("", !0)
|
|
38
|
-
], 12, f)])) : r("", !0)]));
|
|
39
|
-
}
|
|
40
|
-
}), [["__scopeId", "data-v-587355bb"]]);
|
|
41
|
-
//#endregion
|
|
42
|
-
export { _ as t };
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { t } from "./Tooltip-Dihir4zs.js";
|
|
3
|
-
import { t as n } from "./LoadingButton-OH3frQuO.js";
|
|
4
|
-
import { t as r } from "./helpers-DcWCa6bX.js";
|
|
5
|
-
import { Fragment as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, inject as d, openBlock as f, ref as p, renderList as m, resolveComponent as h, toDisplayString as g, vModelSelect as _, vModelText as v, withCtx as y, withDirectives as b } from "vue";
|
|
6
|
-
//#region components/model/ModelCreator.vue?vue&type=script&lang.ts
|
|
7
|
-
var x = u({
|
|
8
|
-
name: "ModelCreator",
|
|
9
|
-
components: {
|
|
10
|
-
Tooltip: t,
|
|
11
|
-
LoadingButton: n
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
formDefaults: {
|
|
15
|
-
type: Object,
|
|
16
|
-
required: !1,
|
|
17
|
-
default: () => ({})
|
|
18
|
-
},
|
|
19
|
-
visible: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
required: !0
|
|
22
|
-
},
|
|
23
|
-
testTag: {
|
|
24
|
-
type: String,
|
|
25
|
-
required: !1,
|
|
26
|
-
default: ""
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
methods: { close() {
|
|
30
|
-
this.$emit("close");
|
|
31
|
-
} },
|
|
32
|
-
setup(e, { emit: t }) {
|
|
33
|
-
let n = e.formDefaults.importAddress ? "Import" : "New", i = !e.formDefaults.importAddress, a = p(!1), o = p({
|
|
34
|
-
name: e.formDefaults.name || "",
|
|
35
|
-
importAddress: e.formDefaults.importAddress,
|
|
36
|
-
importToken: e.formDefaults.importToken || "",
|
|
37
|
-
connection: e.formDefaults.connection || "",
|
|
38
|
-
options: {
|
|
39
|
-
mdToken: "",
|
|
40
|
-
projectId: "",
|
|
41
|
-
username: "",
|
|
42
|
-
password: "",
|
|
43
|
-
account: "",
|
|
44
|
-
sshPrivateKey: ""
|
|
45
|
-
}
|
|
46
|
-
}), s = d("connectionStore"), c = d("modelStore"), l = d("editorStore"), u = d("dashboardStore"), f = d("saveAll");
|
|
47
|
-
if (!s || !c || !l || !f || !u) throw "must inject modelStore to ModelCreator";
|
|
48
|
-
let m = new r(l, c, u), h = s.connections;
|
|
49
|
-
function g() {
|
|
50
|
-
if (!o.value.name || !o.value.connection) {
|
|
51
|
-
a.value = !1;
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
if (o.value.connection === "new-motherduck" && !o.value.options.mdToken) {
|
|
55
|
-
a.value = !1;
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
if (o.value.connection === "new-bigquery-oauth" && !o.value.options.projectId) {
|
|
59
|
-
a.value = !1;
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (o.value.connection === "new-snowflake" && (!o.value.options.username || !o.value.options.account || !o.value.options.sshPrivateKey)) {
|
|
63
|
-
a.value = !1;
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
a.value = !0;
|
|
67
|
-
}
|
|
68
|
-
return g(), {
|
|
69
|
-
modelDetails: o,
|
|
70
|
-
connections: h,
|
|
71
|
-
createModel: () => {
|
|
72
|
-
o.value.name = e.formDefaults.name || "", o.value.importAddress = e.formDefaults.importAddress, o.value.importToken = e.formDefaults.importToken || "", o.value.connection = e.formDefaults.connection || "", o.value.options = {
|
|
73
|
-
mdToken: "",
|
|
74
|
-
projectId: "",
|
|
75
|
-
username: "",
|
|
76
|
-
password: "",
|
|
77
|
-
account: "",
|
|
78
|
-
sshPrivateKey: ""
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
|
-
performSubmit: async () => {
|
|
82
|
-
if (!o.value.name) throw Error("Model name is required");
|
|
83
|
-
c.models[o.value.name] || c.newModelConfig(o.value.name);
|
|
84
|
-
let e = o.value.connection;
|
|
85
|
-
if (e.startsWith("new-")) {
|
|
86
|
-
let t = e.replace("new-", "");
|
|
87
|
-
e = `${o.value.name}-connection`, h[e] || s.newConnection(e, t, {
|
|
88
|
-
mdToken: o.value.options.mdToken,
|
|
89
|
-
projectId: o.value.options.projectId,
|
|
90
|
-
username: o.value.options.username,
|
|
91
|
-
password: o.value.options.password,
|
|
92
|
-
account: o.value.options.account,
|
|
93
|
-
privateKey: o.value.options.sshPrivateKey
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
if (s.connectionByName(e)?.setModel(o.value.name), o.value.importAddress) try {
|
|
97
|
-
await m.importModel(o.value.name, o.value.importAddress, e, { token: o.value.importToken || void 0 });
|
|
98
|
-
} catch (e) {
|
|
99
|
-
throw console.error("Error importing model:", e), Error("Failed to import model definition");
|
|
100
|
-
}
|
|
101
|
-
await f(), await new Promise((e) => setTimeout(e, 500)), t("close");
|
|
102
|
-
},
|
|
103
|
-
validateForm: g,
|
|
104
|
-
isFormValid: a,
|
|
105
|
-
text: n,
|
|
106
|
-
isPopupControl: i
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
}), S = {
|
|
110
|
-
key: 0,
|
|
111
|
-
class: "creator-container"
|
|
112
|
-
}, C = { class: "form-row" }, w = { class: "form-row" }, T = ["value"], E = {
|
|
113
|
-
key: 0,
|
|
114
|
-
class: "form-row"
|
|
115
|
-
}, D = {
|
|
116
|
-
key: 1,
|
|
117
|
-
class: "form-row"
|
|
118
|
-
}, O = { class: "form-row" }, k = { class: "form-row" }, A = { class: "form-row" }, j = { class: "form-row" }, M = { class: "button-row" };
|
|
119
|
-
function N(e, t, n, r, u, d) {
|
|
120
|
-
let p = h("loading-button");
|
|
121
|
-
return e.visible ? (f(), o("div", S, [s("form", null, [s("div", null, [
|
|
122
|
-
s("div", C, [t[17] ||= s("label", { for: "model-name" }, "Name", -1), b(s("input", {
|
|
123
|
-
type: "text",
|
|
124
|
-
"onUpdate:modelValue": t[0] ||= (t) => e.modelDetails.name = t,
|
|
125
|
-
class: "sidebar-control-input",
|
|
126
|
-
id: "model-name",
|
|
127
|
-
required: "",
|
|
128
|
-
onInput: t[1] ||= (...t) => e.validateForm && e.validateForm(...t)
|
|
129
|
-
}, null, 544), [[
|
|
130
|
-
v,
|
|
131
|
-
e.modelDetails.name,
|
|
132
|
-
void 0,
|
|
133
|
-
{ trim: !0 }
|
|
134
|
-
]])]),
|
|
135
|
-
s("div", w, [t[22] ||= s("label", { for: "model-import" }, "Assign To Connection", -1), b(s("select", {
|
|
136
|
-
"onUpdate:modelValue": t[2] ||= (t) => e.modelDetails.connection = t,
|
|
137
|
-
class: "sidebar-control-select",
|
|
138
|
-
id: "model-connection",
|
|
139
|
-
placeholder: "Models must have a connection.",
|
|
140
|
-
"data-testid": "model-creator-connection",
|
|
141
|
-
required: "",
|
|
142
|
-
onChange: t[3] ||= (...t) => e.validateForm && e.validateForm(...t)
|
|
143
|
-
}, [
|
|
144
|
-
(f(!0), o(i, null, m(e.connections, (e) => (f(), o("option", {
|
|
145
|
-
key: e.name,
|
|
146
|
-
value: e.name
|
|
147
|
-
}, g(e.name), 9, T))), 128)),
|
|
148
|
-
t[18] ||= s("option", { value: "new-duckdb" }, "New DuckDB", -1),
|
|
149
|
-
t[19] ||= s("option", { value: "new-motherduck" }, "New MotherDuck", -1),
|
|
150
|
-
t[20] ||= s("option", { value: "new-bigquery-oauth" }, "New Bigquery Oauth", -1),
|
|
151
|
-
t[21] ||= s("option", { value: "new-snowflake" }, "New Snowflake", -1)
|
|
152
|
-
], 544), [[_, e.modelDetails.connection]])]),
|
|
153
|
-
e.modelDetails.connection === "new-motherduck" ? (f(), o("div", E, [t[23] ||= s("label", { for: "md-token" }, "MotherDuck Token", -1), b(s("input", {
|
|
154
|
-
type: "text",
|
|
155
|
-
"onUpdate:modelValue": t[4] ||= (t) => e.modelDetails.options.mdToken = t,
|
|
156
|
-
class: "sidebar-control-input",
|
|
157
|
-
id: "md-token",
|
|
158
|
-
placeholder: "MotherDuck Token",
|
|
159
|
-
required: "",
|
|
160
|
-
onInput: t[5] ||= (...t) => e.validateForm && e.validateForm(...t)
|
|
161
|
-
}, null, 544), [[
|
|
162
|
-
v,
|
|
163
|
-
e.modelDetails.options.mdToken,
|
|
164
|
-
void 0,
|
|
165
|
-
{ trim: !0 }
|
|
166
|
-
]])])) : a("", !0),
|
|
167
|
-
e.modelDetails.connection === "new-bigquery-oauth" ? (f(), o("div", D, [t[24] ||= s("label", { for: "project-id" }, "BigQuery Project ID", -1), b(s("input", {
|
|
168
|
-
type: "text",
|
|
169
|
-
"onUpdate:modelValue": t[6] ||= (t) => e.modelDetails.options.projectId = t,
|
|
170
|
-
class: "sidebar-control-input",
|
|
171
|
-
id: "project-id",
|
|
172
|
-
placeholder: "Billing Project ID",
|
|
173
|
-
required: "",
|
|
174
|
-
onInput: t[7] ||= (...t) => e.validateForm && e.validateForm(...t)
|
|
175
|
-
}, null, 544), [[
|
|
176
|
-
v,
|
|
177
|
-
e.modelDetails.options.projectId,
|
|
178
|
-
void 0,
|
|
179
|
-
{ trim: !0 }
|
|
180
|
-
]])])) : a("", !0),
|
|
181
|
-
e.modelDetails.connection === "new-snowflake" ? (f(), o(i, { key: 2 }, [
|
|
182
|
-
s("div", O, [t[25] ||= s("label", { for: "snowflake-username" }, "Username", -1), b(s("input", {
|
|
183
|
-
type: "text",
|
|
184
|
-
"onUpdate:modelValue": t[8] ||= (t) => e.modelDetails.options.username = t,
|
|
185
|
-
class: "sidebar-control-input",
|
|
186
|
-
id: "snowflake-username",
|
|
187
|
-
placeholder: "Snowflake Username",
|
|
188
|
-
required: "",
|
|
189
|
-
onInput: t[9] ||= (...t) => e.validateForm && e.validateForm(...t)
|
|
190
|
-
}, null, 544), [[
|
|
191
|
-
v,
|
|
192
|
-
e.modelDetails.options.username,
|
|
193
|
-
void 0,
|
|
194
|
-
{ trim: !0 }
|
|
195
|
-
]])]),
|
|
196
|
-
s("div", k, [t[26] ||= s("label", { for: "snowflake-account" }, "Account", -1), b(s("input", {
|
|
197
|
-
type: "text",
|
|
198
|
-
"onUpdate:modelValue": t[10] ||= (t) => e.modelDetails.options.account = t,
|
|
199
|
-
class: "sidebar-control-input",
|
|
200
|
-
id: "snowflake-account",
|
|
201
|
-
placeholder: "Snowflake Account",
|
|
202
|
-
required: "",
|
|
203
|
-
onInput: t[11] ||= (...t) => e.validateForm && e.validateForm(...t)
|
|
204
|
-
}, null, 544), [[
|
|
205
|
-
v,
|
|
206
|
-
e.modelDetails.options.account,
|
|
207
|
-
void 0,
|
|
208
|
-
{ trim: !0 }
|
|
209
|
-
]])]),
|
|
210
|
-
s("div", A, [t[27] ||= s("label", { for: "snowflake-ssh-private-key" }, "Private Key", -1), b(s("input", {
|
|
211
|
-
type: "text",
|
|
212
|
-
"onUpdate:modelValue": t[12] ||= (t) => e.modelDetails.options.sshPrivateKey = t,
|
|
213
|
-
class: "sidebar-control-input",
|
|
214
|
-
id: "snowflake-ssh-private-key",
|
|
215
|
-
placeholder: "Private Key",
|
|
216
|
-
required: "",
|
|
217
|
-
onInput: t[13] ||= (...t) => e.validateForm && e.validateForm(...t)
|
|
218
|
-
}, null, 544), [[
|
|
219
|
-
v,
|
|
220
|
-
e.modelDetails.options.sshPrivateKey,
|
|
221
|
-
void 0,
|
|
222
|
-
{ trim: !0 }
|
|
223
|
-
]])])
|
|
224
|
-
], 64)) : a("", !0),
|
|
225
|
-
s("div", j, [t[28] ||= s("label", { for: "model-import" }, "Import From Address", -1), b(s("input", {
|
|
226
|
-
placeholder: "Optional. Import github definition.",
|
|
227
|
-
type: "text",
|
|
228
|
-
"onUpdate:modelValue": t[14] ||= (t) => e.modelDetails.importAddress = t,
|
|
229
|
-
class: "sidebar-control-input",
|
|
230
|
-
id: "model-import",
|
|
231
|
-
onInput: t[15] ||= (...t) => e.validateForm && e.validateForm(...t)
|
|
232
|
-
}, null, 544), [[
|
|
233
|
-
v,
|
|
234
|
-
e.modelDetails.importAddress,
|
|
235
|
-
void 0,
|
|
236
|
-
{ trim: !0 }
|
|
237
|
-
]])])
|
|
238
|
-
]), s("div", M, [l(p, {
|
|
239
|
-
"data-testid": "model-creation-submit",
|
|
240
|
-
action: e.performSubmit,
|
|
241
|
-
class: "submit-button",
|
|
242
|
-
disabled: !e.isFormValid
|
|
243
|
-
}, {
|
|
244
|
-
default: y(() => [c(g(e.modelDetails.importAddress ? "Import" : "Create"), 1)]),
|
|
245
|
-
_: 1
|
|
246
|
-
}, 8, ["action", "disabled"]), s("button", {
|
|
247
|
-
type: "button",
|
|
248
|
-
onClick: t[16] ||= (t) => e.close()
|
|
249
|
-
}, "Cancel")])])])) : a("", !0);
|
|
250
|
-
}
|
|
251
|
-
var P = /*#__PURE__*/ e(x, [["render", N], ["__scopeId", "data-v-acdd5351"]]);
|
|
252
|
-
//#endregion
|
|
253
|
-
export { P as t };
|