@trilogy-data/trilogy-studio-components 0.1.25 → 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.
Files changed (114) hide show
  1. package/dist/AssetAutoImporter-CBzvBaOt.js +405 -0
  2. package/dist/ChatCreatorModal-CL-jBnc3.js +218 -0
  3. package/dist/ChatModelSelect-Do-VRUFc.js +40 -0
  4. package/dist/{CommunityModels-D7zWnHgG.js → CommunityModels-Cmro0hV3.js} +101 -70
  5. package/dist/{Dashboard-D1ZCTw5r.js → Dashboard-BH9ZwMVJ.js} +8 -8
  6. package/dist/{DashboardCreatorInline-LWvf--2x.js → DashboardCreatorInline-CDU7kLy3.js} +3 -3
  7. package/dist/{DashboardImportSelector-CNxibXlS.js → DashboardImportSelector-DQSvu9T-.js} +1 -1
  8. package/dist/{DashboardMobile-D_m0xv17.js → DashboardMobile-BUPtdN2V.js} +4 -4
  9. package/dist/{Editor-DhsP18KE.js → Editor-DQsYpkwl.js} +6 -6
  10. package/dist/{GlobalChatPanel-DFx9A4yP.js → GlobalChatPanel-DhnOaige.js} +155 -119
  11. package/dist/{IDE-BRMLxTfP.js → IDE-HLa8vybk.js} +9 -9
  12. package/dist/{JobsView-C9PYS6pZ.js → JobsView-B97HBoIE.js} +8 -8
  13. package/dist/{LLMChat-Cqg6pTgC.js → LLMChat-CxJcPLEG.js} +1 -1
  14. package/dist/{LLMView-VkJpP-49.js → LLMView-C1MUf0c2.js} +21 -21
  15. package/dist/{MobileIDE-CHGJoh05.js → MobileIDE-BpqXoaMR.js} +258 -253
  16. package/dist/{ModelCard-D8tKkK9-.js → ModelCard-BhN25jaV.js} +10 -10
  17. package/dist/{ModelCreator-DrxLxeyH.js → ModelCreator-CCdC7EXt.js} +1 -1
  18. package/dist/{ModelView-rAurf9n8.js → ModelView-DUDA_PtZ.js} +3 -3
  19. package/dist/{PageLoading-I6mr-7NB.js → PageLoading-BzniJM0C.js} +622 -619
  20. package/dist/{ResultComponent-_-1qZCfv.js → ResultComponent-CAn_r3BL.js} +3 -3
  21. package/dist/{Results-CQGpFmPQ.js → Results-BJtlwebY.js} +3 -3
  22. package/dist/{SymbolsPane-BpmL___H.js → SymbolsPane-KYSwN9Sv.js} +1 -1
  23. package/dist/{TutorialPage-CZGBRJdq.js → TutorialPage-NRcee6Dx.js} +8 -8
  24. package/dist/{VegaLiteChart-CmkOw6yD.js → VegaLiteChart-D1slfOUY.js} +11227 -11195
  25. package/dist/{WelcomePage-CLKvAvk-.js → WelcomePage-D5mU2x1L.js} +1 -1
  26. package/dist/components/AssetAutoImporter.vue.d.ts.map +1 -1
  27. package/dist/components/TipsCTA.vue.d.ts +1 -1
  28. package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
  29. package/dist/components/chartHelpers.d.ts +9 -1
  30. package/dist/components/chartHelpers.d.ts.map +1 -1
  31. package/dist/components/chartRenderManager.d.ts +4 -1
  32. package/dist/components/chartRenderManager.d.ts.map +1 -1
  33. package/dist/components/community/AddStoreModal.vue.d.ts +1 -1
  34. package/dist/components/community/AddStoreModal.vue.d.ts.map +1 -1
  35. package/dist/components/community/CommunityModelCard.vue.d.ts.map +1 -1
  36. package/dist/components/editor/Editor.vue.d.ts.map +1 -1
  37. package/dist/components/jobs/JobsAddStoreModal.vue.d.ts.map +1 -1
  38. package/dist/components/llm/ChatCreatorModal.vue.d.ts +17 -1
  39. package/dist/components/llm/ChatCreatorModal.vue.d.ts.map +1 -1
  40. package/dist/components/llm/ChatModelSelect.vue.d.ts +13 -0
  41. package/dist/components/llm/ChatModelSelect.vue.d.ts.map +1 -0
  42. package/dist/components/llm/GlobalChatPanel.vue.d.ts.map +1 -1
  43. package/dist/components/sidebar/CommunityModelList.vue.d.ts +33 -50
  44. package/dist/components/sidebar/CommunityModelList.vue.d.ts.map +1 -1
  45. package/dist/components/sidebar/CommunityModelListItem.vue.d.ts.map +1 -1
  46. package/dist/components/sidebar/EditorList.vue.d.ts +32 -49
  47. package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -1
  48. package/dist/components/sidebar/Sidebar.vue.d.ts +65 -99
  49. package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  50. package/dist/dashboard.js +52 -52
  51. package/dist/{dashboardStore-CNkWQ4r7.js → dashboardStore-ppM6nGks.js} +33 -33
  52. package/dist/dashboards/layerSpec.d.ts +38 -4
  53. package/dist/dashboards/layerSpec.d.ts.map +1 -1
  54. package/dist/dashboards/lineAreaSpec.d.ts +8 -80
  55. package/dist/dashboards/lineAreaSpec.d.ts.map +1 -1
  56. package/dist/dashboards/mapSpec.d.ts +1 -0
  57. package/dist/dashboards/mapSpec.d.ts.map +1 -1
  58. package/dist/dashboards/spec.d.ts.map +1 -1
  59. package/dist/data/tutorial/documentation.d.ts.map +1 -1
  60. package/dist/data/tutorial/startupScripts.d.ts +3 -0
  61. package/dist/data/tutorial/startupScripts.d.ts.map +1 -0
  62. package/dist/{demoSetup-DiW3ROFQ.js → demoSetup-mwa-RDC6.js} +19 -18
  63. package/dist/{editorRefinementRuntime-C_YmXRy4.js → editorRefinementRuntime-DoP9P5J2.js} +892 -871
  64. package/dist/{editorRefinementToolExecutor-mX8ClQ63.js → editorRefinementToolExecutor-CVY3FA7k.js} +389 -263
  65. package/dist/{editorStore-Ch7k-gse.js → editorStore-BhhmXbi-.js} +230 -183
  66. package/dist/entry.dashboard.d.ts +1 -0
  67. package/dist/entry.dashboard.d.ts.map +1 -1
  68. package/dist/{globalChatRuntime-oMLiPLNC.js → globalChatRuntime-DWZxeS57.js} +13 -13
  69. package/dist/{helpers-DcWCa6bX.js → helpers-BLQAgX3C.js} +17 -16
  70. package/dist/llm/data/constants.d.ts +1 -1
  71. package/dist/llm/data/constants.d.ts.map +1 -1
  72. package/dist/llm/data/trilogySyntax.generated.d.ts +7 -1
  73. package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
  74. package/dist/llm/docsIndex.d.ts.map +1 -1
  75. package/dist/llm/openai.d.ts +2 -1
  76. package/dist/llm/openai.d.ts.map +1 -1
  77. package/dist/{llm-_807I79k.js → llm-BBOVWb-F.js} +7 -5
  78. package/dist/llm.js +3 -3
  79. package/dist/{llmStore-CSzM1IZd.js → llmStore-DJM2JhzY.js} +2 -2
  80. package/dist/{localStorage-CSuYS7QE.js → localStorage-D9uyOFEO.js} +14 -14
  81. package/dist/models/helpers.d.ts.map +1 -1
  82. package/dist/monaco.js +1 -1
  83. package/dist/{reconcile-Bk7M797_.js → reconcile-Dyf4UZmj.js} +1 -1
  84. package/dist/{remoteStoreSync-CLvZJrTK.js → remoteStoreSync-Z-yjlYtI.js} +1 -1
  85. package/dist/remotes/displayHelpers.d.ts.map +1 -1
  86. package/dist/remotes/genericStoreMetadata.d.ts +1 -0
  87. package/dist/remotes/genericStoreMetadata.d.ts.map +1 -1
  88. package/dist/remotes/models.d.ts +37 -5
  89. package/dist/remotes/models.d.ts.map +1 -1
  90. package/dist/remotes/staticStorePresets.d.ts +22 -0
  91. package/dist/remotes/staticStorePresets.d.ts.map +1 -0
  92. package/dist/remotes/storeService.d.ts +25 -4
  93. package/dist/remotes/storeService.d.ts.map +1 -1
  94. package/dist/stores/communityApiStore.d.ts +32 -60
  95. package/dist/stores/communityApiStore.d.ts.map +1 -1
  96. package/dist/stores/connectionStore.d.ts.map +1 -1
  97. package/dist/stores/resolver.d.ts +5 -0
  98. package/dist/stores/resolver.d.ts.map +1 -1
  99. package/dist/stores/urlStore.d.ts +1 -0
  100. package/dist/stores/urlStore.d.ts.map +1 -1
  101. package/dist/{stores-C1wUWiFm.js → stores-BT9hTLny.js} +47 -47
  102. package/dist/stores.js +7 -7
  103. package/dist/trilogy-studio-components.css +1 -1
  104. package/dist/{urlStore-Dgmwx1YI.js → urlStore-52HG6lsX.js} +1 -0
  105. package/dist/{useChatWithTools-GV1ufcqw.js → useChatWithTools-B0HZ_DVh.js} +1 -1
  106. package/dist/{useDashboard-OoBKkkuQ.js → useDashboard-CdSnPe_6.js} +186 -186
  107. package/dist/{useGlobalChatPanel-CIeUyZba.js → useGlobalChatPanel-D_0luajQ.js} +2 -2
  108. package/dist/views/MobileIDE.vue.d.ts.map +1 -1
  109. package/dist/views/TutorialPage.vue.d.ts +32 -49
  110. package/dist/views/TutorialPage.vue.d.ts.map +1 -1
  111. package/dist/views.js +16 -16
  112. package/package.json +1 -1
  113. package/dist/AssetAutoImporter-DfMd_DSk.js +0 -403
  114. package/dist/ChatCreatorModal-BTqY06B6.js +0 -177
@@ -1,14 +1,14 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { r as t, t as n } from "./results-DTgAKr5j.js";
3
- import { Dt as r, Et as i, gt as a } from "./editorRefinementToolExecutor-mX8ClQ63.js";
4
- import { t as o } from "./llmStore-CSzM1IZd.js";
5
- import { t as s } from "./DashboardImportSelector-CNxibXlS.js";
3
+ import { Ot as r, _t as i, kt as a } from "./editorRefinementToolExecutor-CVY3FA7k.js";
4
+ import { t as o } from "./llmStore-DJM2JhzY.js";
5
+ import { t as s } from "./DashboardImportSelector-DQSvu9T-.js";
6
6
  import { t as c } from "./MarkdownRenderer-BNDuEyG-.js";
7
- import { t as l } from "./SymbolsPane-BpmL___H.js";
8
- import { t as u } from "./useChatWithTools-GV1ufcqw.js";
7
+ import { t as l } from "./SymbolsPane-KYSwN9Sv.js";
8
+ import { t as u } from "./useChatWithTools-B0HZ_DVh.js";
9
9
  import { t as d } from "./CodeBlock-PT4no49I.js";
10
- import { t as f } from "./Results-CQGpFmPQ.js";
11
- import { t as p } from "./LLMChat-Cqg6pTgC.js";
10
+ import { t as f } from "./Results-BJtlwebY.js";
11
+ import { t as p } from "./LLMChat-CxJcPLEG.js";
12
12
  import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, guardReactiveProps as C, inject as w, nextTick as T, normalizeClass as E, normalizeProps as D, normalizeStyle as O, onMounted as ee, openBlock as k, ref as A, renderList as j, renderSlot as M, resolveComponent as N, toDisplayString as P, vModelSelect as te, vModelText as F, vShow as I, watch as L, withCtx as R, withDirectives as z, withKeys as ne, withModifiers as B } from "vue";
13
13
  //#region components/llm/ArtifactsPane.vue?vue&type=script&lang.ts
14
14
  var V = 450, H = 25, U = 120, W = 450, G = 20, K = 80, q = 350, J = 800, Y = S({
@@ -568,7 +568,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
568
568
  {
569
569
  name: "Basic Query",
570
570
  description: "Tests if the LLM can create a simple trilogy query from user input.",
571
- prompt: a("what were sales for the last 3 months by order date?", Q),
571
+ prompt: i("what were sales for the last 3 months by order date?", Q),
572
572
  expectedResponse: {
573
573
  contains: ["extended_price"],
574
574
  mustIdentify: "order.date",
@@ -578,7 +578,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
578
578
  {
579
579
  name: "Aggregate Query",
580
580
  description: "Tests if the LLM can generate an aggregate query.",
581
- prompt: a("what are sales by supplier name and nation?", Q),
581
+ prompt: i("what are sales by supplier name and nation?", Q),
582
582
  expectedResponse: {
583
583
  contains: ["extended_price"],
584
584
  mustIdentify: "supplier.nation.name",
@@ -588,7 +588,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
588
588
  {
589
589
  name: "Complex Query",
590
590
  description: "Tests for a more complex query, with limits and ordering.",
591
- prompt: a("Who were the top ten customers by sales in august 1995?", Q),
591
+ prompt: i("Who were the top ten customers by sales in august 1995?", Q),
592
592
  expectedResponse: {
593
593
  contains: [
594
594
  "extended_price",
@@ -602,7 +602,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
602
602
  {
603
603
  name: "Multi-part Conditions",
604
604
  description: "Tests for a query that includes multiple conditions.",
605
- prompt: a("Who were the top ten customers by sales in august 1995 who had orders that shipped in october or september?", Q),
605
+ prompt: i("Who were the top ten customers by sales in august 1995 who had orders that shipped in october or september?", Q),
606
606
  expectedResponse: {
607
607
  contains: [
608
608
  "extended_price",
@@ -616,7 +616,7 @@ var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__scopeId", "data-v-fee8f6a1"]])
616
616
  {
617
617
  name: "Test Count(*) Handling",
618
618
  description: "Test proper counting of identifiers",
619
- prompt: a("How many customers are there by country?", Q),
619
+ prompt: i("How many customers are there by country?", Q),
620
620
  expectedResponse: {
621
621
  contains: ["order.customer.id"],
622
622
  mustIdentify: "order.customer.nation.name",
@@ -851,7 +851,7 @@ var rt = /*#__PURE__*/ e(Oe, [["render", nt], ["__scopeId", "data-v-28356d02"]])
851
851
  //#endregion
852
852
  //#region chats/publishArtifactsToDashboard.ts
853
853
  function it(e, t) {
854
- let n = t.name || "Chat Artifacts", i = new r({
854
+ let n = t.name || "Chat Artifacts", r = new a({
855
855
  id: n,
856
856
  name: n,
857
857
  connection: t.connection,
@@ -859,21 +859,21 @@ function it(e, t) {
859
859
  storage: "local",
860
860
  state: "editing"
861
861
  });
862
- t.imports && (i.imports = t.imports.map((e) => ({ ...e })));
862
+ t.imports && (r.imports = t.imports.map((e) => ({ ...e })));
863
863
  for (let t of e) {
864
864
  let e = at(t);
865
865
  if (!e) continue;
866
- let { type: n, content: r, name: a, chartConfig: o, height: s } = e, c = i.addItem(n, 0, 0, 20, s, null, a);
867
- i.gridItems[c].content = r, o && (i.gridItems[c].chartConfig = o);
866
+ let { type: n, content: i, name: a, chartConfig: o, height: s } = e, c = r.addItem(n, 0, 0, 20, s, null, a);
867
+ r.gridItems[c].content = i, o && (r.gridItems[c].chartConfig = o);
868
868
  }
869
- return i.changed = !0, i;
869
+ return r.changed = !0, r;
870
870
  }
871
871
  function at(e) {
872
872
  switch (e.type) {
873
873
  case "chart": {
874
874
  let t = e.config?.query || "";
875
875
  return {
876
- type: i.CHART,
876
+ type: r.CHART,
877
877
  content: t,
878
878
  name: e.config?.title || "Chart",
879
879
  chartConfig: e.config?.chartConfig,
@@ -883,7 +883,7 @@ function at(e) {
883
883
  case "results": {
884
884
  let t = e.config?.query || "";
885
885
  return {
886
- type: i.TABLE,
886
+ type: r.TABLE,
887
887
  content: t,
888
888
  name: e.config?.title || "Table",
889
889
  height: 10
@@ -895,7 +895,7 @@ function at(e) {
895
895
  query: e.data?.query || ""
896
896
  };
897
897
  return {
898
- type: i.MARKDOWN,
898
+ type: r.MARKDOWN,
899
899
  content: t,
900
900
  name: e.config?.title || "Markdown",
901
901
  height: t.query ? 10 : 4
@@ -904,7 +904,7 @@ function at(e) {
904
904
  case "code": {
905
905
  let t = `\`\`\`${e.config?.language || "sql"}\n${e.data || ""}\n\`\`\``;
906
906
  return {
907
- type: i.MARKDOWN,
907
+ type: r.MARKDOWN,
908
908
  content: t,
909
909
  name: e.config?.title || "Code",
910
910
  height: 4