@trilogy-data/trilogy-studio-components 0.1.19 → 0.1.20

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 (106) hide show
  1. package/dist/{AssetAutoImporter-CUqhhNvb.js → AssetAutoImporter-9QMzD3ho.js} +2 -2
  2. package/dist/{ChatCreatorModal-CixOpWSH.js → ChatCreatorModal-CpkL5ah4.js} +1 -1
  3. package/dist/{CommunityModels-BKBxewjm.js → CommunityModels-Dk7uEXRw.js} +2 -2
  4. package/dist/{ConnectionView-Dyqm2oeV.js → ConnectionView-DQTOod_j.js} +2 -2
  5. package/dist/{Dashboard-Bsoj1oUW.js → Dashboard-BcCVnVqI.js} +3 -3
  6. package/dist/{DashboardCreatorInline-BLbkDxBF.js → DashboardCreatorInline-C2ShZBai.js} +1 -1
  7. package/dist/{DashboardMobile-Ao8NtF1f.js → DashboardMobile-CKaqqZkb.js} +3 -3
  8. package/dist/{DrilldownPane-OZMttRBx.js → DrilldownPane-iReKVNZE.js} +1 -1
  9. package/dist/{Editor-N40lTR0s.js → Editor-DUQhJCtJ.js} +2 -2
  10. package/dist/{EditorCreatorInline-DCFnyl5w.js → EditorCreatorInline-D9h8RNE8.js} +1 -1
  11. package/dist/{IDE-kbUDZPcL.js → IDE-nbO1W7BN.js} +7 -7
  12. package/dist/{JobsView-AYNUDnKG.js → JobsView-BRgAiTvy.js} +1 -1
  13. package/dist/{LLMChat-CZTQUh53.js → LLMChat-B5WBKFfx.js} +3 -3
  14. package/dist/{LLMConnectionList-BkvCZP5Q.js → LLMConnectionList-JatTlgKd.js} +5 -5
  15. package/dist/{LLMView-CaTlmLGb.js → LLMView-BTq1yptw.js} +2 -2
  16. package/dist/{LoadingButton-BdM3Rygq.js → LoadingButton--jhQCgPi.js} +1 -1
  17. package/dist/{MobileIDE-Bi7GNE2X.js → MobileIDE-BFZxnpvD.js} +12 -12
  18. package/dist/{ModelCard-Cd6OxExX.js → ModelCard-BdSi4Tb5.js} +3 -3
  19. package/dist/{ModelCreator-DeI-n86Z.js → ModelCreator-BPfMWQL3.js} +3 -3
  20. package/dist/{ModelView-Surdb5KW.js → ModelView-CsaxXoLJ.js} +3 -3
  21. package/dist/{ResultComponent-CXkTwZFS.js → ResultComponent-DSRcNmRC.js} +1 -1
  22. package/dist/{Sidebar-CfOATms_.js → Sidebar-BKacsmb3.js} +7 -7
  23. package/dist/{StatusIcon-CahClDuz.js → StatusIcon-ytnp_iom.js} +1 -1
  24. package/dist/Tooltip-CDt1VNAs.js +104 -0
  25. package/dist/{TutorialPage-IisHiPL6.js → TutorialPage-ZSgVaEzU.js} +9 -9
  26. package/dist/{UserProfile-CQAUnKyQ.js → UserProfile-BNx75xfc.js} +1 -1
  27. package/dist/{WelcomePage-Bq-h9f64.js → WelcomePage-jGXRVqLL.js} +1 -1
  28. package/dist/components/LoadingButton.vue.d.ts +6 -5
  29. package/dist/components/LoadingButton.vue.d.ts.map +1 -1
  30. package/dist/components/Tooltip.vue.d.ts +6 -5
  31. package/dist/components/Tooltip.vue.d.ts.map +1 -1
  32. package/dist/components/VegaLiteChart.vue.d.ts +6 -5
  33. package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
  34. package/dist/components/connection/ConnectionDatabase.vue.d.ts +6 -5
  35. package/dist/components/connection/ConnectionDatabase.vue.d.ts.map +1 -1
  36. package/dist/components/dashboard/DashboardChart.vue.d.ts +6 -5
  37. package/dist/components/dashboard/DashboardChart.vue.d.ts.map +1 -1
  38. package/dist/components/dashboard/DashboardGridItem.vue.d.ts.map +1 -1
  39. package/dist/components/editor/Editor.vue.d.ts +12 -10
  40. package/dist/components/editor/Editor.vue.d.ts.map +1 -1
  41. package/dist/components/editor/EditorCreatorInline.vue.d.ts +6 -5
  42. package/dist/components/editor/EditorCreatorInline.vue.d.ts.map +1 -1
  43. package/dist/components/editor/EditorHeader.vue.d.ts +6 -5
  44. package/dist/components/editor/EditorHeader.vue.d.ts.map +1 -1
  45. package/dist/components/editor/ResultComponent.vue.d.ts +48 -40
  46. package/dist/components/editor/ResultComponent.vue.d.ts.map +1 -1
  47. package/dist/components/editor/Results.vue.d.ts +12 -10
  48. package/dist/components/editor/Results.vue.d.ts.map +1 -1
  49. package/dist/components/llm/ArtifactsPane.vue.d.ts +12 -10
  50. package/dist/components/llm/ArtifactsPane.vue.d.ts.map +1 -1
  51. package/dist/components/llm/ChatArtifact.vue.d.ts +6 -5
  52. package/dist/components/llm/ChatArtifact.vue.d.ts.map +1 -1
  53. package/dist/components/llm/LLMChatSplitView.vue.d.ts +12 -10
  54. package/dist/components/llm/LLMChatSplitView.vue.d.ts.map +1 -1
  55. package/dist/components/llm/LLMEditorRefinement.vue.d.ts +12 -10
  56. package/dist/components/llm/LLMEditorRefinement.vue.d.ts.map +1 -1
  57. package/dist/components/model/ModelCard.vue.d.ts +18 -15
  58. package/dist/components/model/ModelCard.vue.d.ts.map +1 -1
  59. package/dist/components/model/ModelCreator.vue.d.ts +12 -10
  60. package/dist/components/model/ModelCreator.vue.d.ts.map +1 -1
  61. package/dist/components/sidebar/ConnectionList.vue.d.ts +18 -15
  62. package/dist/components/sidebar/ConnectionList.vue.d.ts.map +1 -1
  63. package/dist/components/sidebar/ConnectionListItem.vue.d.ts +6 -5
  64. package/dist/components/sidebar/ConnectionListItem.vue.d.ts.map +1 -1
  65. package/dist/components/sidebar/DashboardList.vue.d.ts +14 -12
  66. package/dist/components/sidebar/DashboardList.vue.d.ts.map +1 -1
  67. package/dist/components/sidebar/DashboardListItem.vue.d.ts +7 -6
  68. package/dist/components/sidebar/DashboardListItem.vue.d.ts.map +1 -1
  69. package/dist/components/sidebar/EditorList.vue.d.ts +18 -15
  70. package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -1
  71. package/dist/components/sidebar/EditorListItem.vue.d.ts +6 -5
  72. package/dist/components/sidebar/EditorListItem.vue.d.ts.map +1 -1
  73. package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts +6 -5
  74. package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts.map +1 -1
  75. package/dist/components/sidebar/LLMConnectionList.vue.d.ts +12 -10
  76. package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
  77. package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts +6 -5
  78. package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts.map +1 -1
  79. package/dist/components/sidebar/ModelSidebar.vue.d.ts +24 -20
  80. package/dist/components/sidebar/ModelSidebar.vue.d.ts.map +1 -1
  81. package/dist/components/sidebar/Sidebar.vue.d.ts +92 -77
  82. package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  83. package/dist/components/tutorial/TutorialPrompt.vue.d.ts +60 -50
  84. package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
  85. package/dist/dashboard.js +5 -5
  86. package/dist/dashboards/base.d.ts +4 -3
  87. package/dist/dashboards/base.d.ts.map +1 -1
  88. package/dist/dashboards/crossFilters.d.ts +4 -2
  89. package/dist/dashboards/crossFilters.d.ts.map +1 -1
  90. package/dist/{queryExecutionService-KrjL0UCa.js → queryExecutionService-BxU16oNE.js} +97 -94
  91. package/dist/stores/dashboardStore.d.ts +2 -1
  92. package/dist/stores/dashboardStore.d.ts.map +1 -1
  93. package/dist/stores.js +1 -1
  94. package/dist/trilogy-studio-components.css +1 -1
  95. package/dist/{useDashboard-CtX3sEag.js → useDashboard-Cl_8almf.js} +1063 -1057
  96. package/dist/views/ConnectionView.vue.d.ts +6 -5
  97. package/dist/views/ConnectionView.vue.d.ts.map +1 -1
  98. package/dist/views/LLMView.vue.d.ts +36 -30
  99. package/dist/views/LLMView.vue.d.ts.map +1 -1
  100. package/dist/views/ModelView.vue.d.ts +36 -30
  101. package/dist/views/ModelView.vue.d.ts.map +1 -1
  102. package/dist/views/TutorialPage.vue.d.ts +193 -161
  103. package/dist/views/TutorialPage.vue.d.ts.map +1 -1
  104. package/dist/views.js +2 -2
  105. package/package.json +1 -1
  106. package/dist/Tooltip-D4k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-181,7 +181,7 @@ class W {
181
181
  return this.cache.size;
182
182
  }
183
183
  }
184
- class ur {
184
+ class hr {
185
185
  constructor(e, t = 100) {
186
186
  w(this, "settingStore");
187
187
  w(this, "validateCache");
@@ -491,11 +491,14 @@ function wt(r = []) {
491
491
  function B(r) {
492
492
  return { ...r };
493
493
  }
494
+ function vt(r, e) {
495
+ return Array.isArray(r) && Array.isArray(e) ? r.length === e.length && r.every((t, s) => t === e[s]) : r === e;
496
+ }
494
497
  function ae(r, e) {
495
498
  const t = Object.keys(r).sort(), s = Object.keys(e).sort();
496
- return t.length !== s.length ? !1 : t.every((o, i) => o === s[i] && r[o] === e[o]);
499
+ return t.length !== s.length ? !1 : t.every((o, i) => o === s[i] && vt(r[o], e[o]));
497
500
  }
498
- function vt(r, e, t) {
501
+ function St(r, e, t) {
499
502
  if (e.size === 0)
500
503
  return t && r.startsWith("local.") ? r.replace(/^local\./, "") : r;
501
504
  if (e.has(r))
@@ -507,12 +510,12 @@ function vt(r, e, t) {
507
510
  }
508
511
  return null;
509
512
  }
510
- function St(r, e = [], t = {}) {
513
+ function Ct(r, e = [], t = {}) {
511
514
  const s = new Set(e), o = t.normalizeLocalFields ?? !1;
512
515
  return Object.entries(r).reduce((i, [n, a]) => {
513
- if (typeof a != "string")
516
+ if (typeof a != "string" && typeof a != "number" && !(a instanceof Date) && !Array.isArray(a))
514
517
  return i;
515
- const c = vt(n, s, o);
518
+ const c = St(n, s, o);
516
519
  return c && (i[c] = a), i;
517
520
  }, {});
518
521
  }
@@ -537,7 +540,7 @@ function ke(r, e, t, s) {
537
540
  const a = i.some((c) => ae(c.value, t)) ? i.filter((c) => !ae(c.value, t)) : [...i, { source: e, value: B(t) }];
538
541
  return [...o, ...a];
539
542
  }
540
- function Ct(r, e, t, s, o) {
543
+ function Et(r, e, t, s, o) {
541
544
  const i = [];
542
545
  return Object.entries(r).forEach(([n, a]) => {
543
546
  if (n === e) {
@@ -563,7 +566,7 @@ function Ct(r, e, t, s, o) {
563
566
  (u || l) && i.push(n);
564
567
  }), i;
565
568
  }
566
- function Et(r, e, t) {
569
+ function Dt(r, e, t) {
567
570
  const s = r[e];
568
571
  if (!s)
569
572
  return !1;
@@ -574,7 +577,7 @@ function Et(r, e, t) {
574
577
  const n = le(s);
575
578
  return i || n;
576
579
  }
577
- function Dt(r, e) {
580
+ function xt(r, e) {
578
581
  const t = [];
579
582
  return Object.entries(r).forEach(([s, o]) => {
580
583
  if (s === e) {
@@ -589,7 +592,7 @@ function Dt(r, e) {
589
592
  (n || a) && t.push(s);
590
593
  }), t;
591
594
  }
592
- function xt(r) {
595
+ function Tt(r) {
593
596
  const e = [];
594
597
  return Object.entries(r).forEach(([t, s]) => {
595
598
  var i, n, a;
@@ -597,12 +600,12 @@ function xt(r) {
597
600
  s.conceptFilters = [], s.chartFilters = [], s.filters = [], o && e.push(t);
598
601
  }), e;
599
602
  }
600
- function Tt(r = {}) {
603
+ function $t(r = {}) {
601
604
  const e = /* @__PURE__ */ new Map(), t = () => {
602
605
  const o = r.validFields ? Be(r.validFields) : [];
603
606
  return new Set(o);
604
607
  }, s = (o) => {
605
- const i = St(o.filters, t(), {
608
+ const i = Ct(o.filters, t(), {
606
609
  normalizeLocalFields: r.normalizeLocalFields ?? !0
607
610
  });
608
611
  return {
@@ -669,8 +672,8 @@ function Tt(r = {}) {
669
672
  }
670
673
  };
671
674
  }
672
- function hr(r = {}) {
673
- const e = Q(0), t = Tt(Be(r)), s = () => {
675
+ function dr(r = {}) {
676
+ const e = Q(0), t = $t(Be(r)), s = () => {
674
677
  e.value += 1;
675
678
  };
676
679
  return {
@@ -887,21 +890,21 @@ Enter your markdown content here.`;
887
890
  t && le(t) && (this.updatedAt = /* @__PURE__ */ new Date(), this.changed = !0);
888
891
  }
889
892
  removeItemCrossFilter(e, t) {
890
- Et(this.gridItems, e, t) && (this.updatedAt = /* @__PURE__ */ new Date(), this.changed = !0);
893
+ Dt(this.gridItems, e, t) && (this.updatedAt = /* @__PURE__ */ new Date(), this.changed = !0);
891
894
  }
892
895
  removeItemCrossFilterSource(e) {
893
896
  var o, i;
894
- const t = !!((i = (o = this.gridItems[e]) == null ? void 0 : o.chartFilters) != null && i.length), s = Dt(this.gridItems, e);
897
+ const t = !!((i = (o = this.gridItems[e]) == null ? void 0 : o.chartFilters) != null && i.length), s = xt(this.gridItems, e);
895
898
  return (s.length > 0 || t) && (this.updatedAt = /* @__PURE__ */ new Date(), this.changed = !0), s;
896
899
  }
897
900
  removeAllFilters() {
898
- const e = xt(this.gridItems);
901
+ const e = Tt(this.gridItems);
899
902
  for (const t in this.gridItems)
900
903
  this.gridItems[t].parameters = {};
901
904
  return e.length > 0 && (this.updatedAt = /* @__PURE__ */ new Date(), this.changed = !0), e;
902
905
  }
903
906
  updateItemCrossFilters(e, t, s, o) {
904
- const i = Ct(
907
+ const i = Et(
905
908
  this.gridItems,
906
909
  e,
907
910
  t,
@@ -1041,7 +1044,7 @@ const fe = (r) => {
1041
1044
  return o[o.length - 1];
1042
1045
  }
1043
1046
  return r;
1044
- }, dr = V("llmConnections", {
1047
+ }, fr = V("llmConnections", {
1045
1048
  state: () => ({
1046
1049
  connections: {},
1047
1050
  activeConnection: ""
@@ -1242,7 +1245,7 @@ You had given a response: """${l}""" that failed validation on this error: ${g}.
1242
1245
  hasActiveDefaultConnection: (r) => Object.values(r.connections).some((e) => e.isDefault && e.connected)
1243
1246
  }
1244
1247
  });
1245
- class $t {
1248
+ class At {
1246
1249
  constructor(e, t, s, o, i, n, a = {}) {
1247
1250
  w(this, "queryQueue", /* @__PURE__ */ new Map());
1248
1251
  w(this, "activeQueries", /* @__PURE__ */ new Set());
@@ -1611,7 +1614,7 @@ class $t {
1611
1614
  }
1612
1615
  }
1613
1616
  }
1614
- const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
1617
+ const Ft = (r) => r.replace(/\s+/g, ""), Qt = V("dashboards", {
1615
1618
  state: () => ({
1616
1619
  dashboards: {},
1617
1620
  activeDashboardId: "",
@@ -1635,7 +1638,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
1635
1638
  throw new Error(`Dashboard with ID "${r}" not found.`);
1636
1639
  if (this.queryExecutors[r])
1637
1640
  return this.queryExecutors[r];
1638
- const t = new $t(
1641
+ const t = new At(
1639
1642
  e.queryExecutionService,
1640
1643
  e.connectionName,
1641
1644
  e.dashboardId,
@@ -1762,7 +1765,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
1762
1765
  updateDashboardFilter(r, e) {
1763
1766
  if (this.dashboards[r]) {
1764
1767
  let t = this.dashboards[r].filter;
1765
- return (!e || At(e) === "") && (this.dashboards[r].filter = null, t != null) ? Object.entries(this.dashboards[r].gridItems).map(([s, o]) => s) : (this.dashboards[r].filter = e, t !== e ? Object.entries(this.dashboards[r].gridItems).map(([s, o]) => s) : []);
1768
+ return (!e || Ft(e) === "") && (this.dashboards[r].filter = null, t != null) ? Object.entries(this.dashboards[r].gridItems).map(([s, o]) => s) : (this.dashboards[r].filter = e, t !== e ? Object.entries(this.dashboards[r].gridItems).map(([s, o]) => s) : []);
1766
1769
  } else
1767
1770
  throw new Error(`Dashboard with ID "${r}" not found.`);
1768
1771
  },
@@ -2072,8 +2075,8 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2072
2075
  }
2073
2076
  }
2074
2077
  }
2075
- }), qe = (r) => new Promise((e) => setTimeout(e, r)), Qt = /* @__PURE__ */ new Set(), Me = /* @__PURE__ */ new Set(), Le = (r) => {
2076
- if (Qt.has(r))
2078
+ }), qe = (r) => new Promise((e) => setTimeout(e, r)), Ot = /* @__PURE__ */ new Set(), Me = /* @__PURE__ */ new Set(), Le = (r) => {
2079
+ if (Ot.has(r))
2077
2080
  return !0;
2078
2081
  let e = r;
2079
2082
  r.includes("://") || (e = `http://${r}`);
@@ -2114,7 +2117,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2114
2117
  `Network error, retrying after ${i}ms (Attempt ${o + 1}/${t})`
2115
2118
  ), await qe(i), i = i * 2 * (0.8 + Math.random() * 0.4), o++;
2116
2119
  }
2117
- }, Ot = (r, e, t, s, o) => r.filter((i) => {
2120
+ }, _t = (r, e, t, s, o) => r.filter((i) => {
2118
2121
  const n = i.name.toLowerCase().includes(e.toLowerCase()), a = !t || i.engine === t;
2119
2122
  let c = !0;
2120
2123
  if (s !== "all") {
@@ -2122,7 +2125,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2122
2125
  c = s === "imported" && u || s === "not-imported" && !u;
2123
2126
  }
2124
2127
  return n && a && c;
2125
- }), fr = (r) => {
2128
+ }), mr = (r) => {
2126
2129
  switch (r) {
2127
2130
  case "bigquery":
2128
2131
  return "new-bigquery-oauth";
@@ -2131,7 +2134,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2131
2134
  default:
2132
2135
  return `new-${r}`;
2133
2136
  }
2134
- }, _t = (r) => {
2137
+ }, kt = (r) => {
2135
2138
  const e = /* @__PURE__ */ new Set();
2136
2139
  return r.forEach((t) => {
2137
2140
  t.engine && e.add(t.engine);
@@ -2150,15 +2153,15 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2150
2153
  "X-Trilogy-Token": r
2151
2154
  }
2152
2155
  };
2153
- }, kt = async (r) => {
2156
+ }, qt = async (r) => {
2154
2157
  const e = `${r.baseUrl}/index.json`, t = await ce(e, Ke(r.token));
2155
2158
  if (!t.ok)
2156
2159
  throw new Error(`Failed to fetch store index: ${t.status} ${t.statusText}`);
2157
2160
  return t.json();
2158
- }, qt = async (r) => {
2161
+ }, Mt = async (r) => {
2159
2162
  let e = null, t = [];
2160
2163
  try {
2161
- const o = (await kt(r)).models.map(async (n) => {
2164
+ const o = (await qt(r)).models.map(async (n) => {
2162
2165
  try {
2163
2166
  const a = await ce(n.url, Ke(r.token));
2164
2167
  if (!a.ok)
@@ -2174,7 +2177,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2174
2177
  s instanceof Error ? e = s.message : e = "Error fetching store data", console.error("Error fetching from generic store:", s);
2175
2178
  }
2176
2179
  return { files: t, error: e };
2177
- }, Mt = async (r) => {
2180
+ }, Lt = async (r) => {
2178
2181
  let e = null, t = [];
2179
2182
  try {
2180
2183
  let s, o;
@@ -2201,7 +2204,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2201
2204
  s instanceof Error ? e = s.message : e = "Error fetching files", console.error("Error fetching from GitHub store:", s);
2202
2205
  }
2203
2206
  return { files: t, error: e };
2204
- }, Ue = async (r) => r.type === "github" ? Mt(r) : qt(r), Lt = async (r, e) => {
2207
+ }, Ue = async (r) => r.type === "github" ? Lt(r) : Mt(r), Pt = async (r, e) => {
2205
2208
  const t = {}, s = {};
2206
2209
  return await Promise.all(
2207
2210
  r.map(async (o) => {
@@ -2221,7 +2224,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2221
2224
  } catch {
2222
2225
  return we(R(r));
2223
2226
  }
2224
- }, ze = (r) => we(r.name || ve(r.baseUrl)), mr = (r) => ze(r), gr = (r) => ze(r), Ie = "trilogy-community-stores", je = (r) => {
2227
+ }, ze = (r) => we(r.name || ve(r.baseUrl)), gr = (r) => ze(r), yr = (r) => ze(r), Ie = "trilogy-community-stores", je = (r) => {
2225
2228
  const e = new URLSearchParams(window.location.search), t = e.get("store"), s = e.get("token");
2226
2229
  if (!t || !s)
2227
2230
  return;
@@ -2263,7 +2266,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2263
2266
  const e = [];
2264
2267
  return Object.values(r.filesByStore).forEach((t) => {
2265
2268
  e.push(...t);
2266
- }), _t(e);
2269
+ }), kt(e);
2267
2270
  },
2268
2271
  // Check if any store has errors
2269
2272
  hasErrors: (r) => Object.keys(r.errors).length > 0,
@@ -2340,7 +2343,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2340
2343
  console.log(
2341
2344
  `Fetching community model files from ${this.stores.map((e) => e.id).join(", ")}...`
2342
2345
  );
2343
- const r = await Lt(this.stores, (e, t) => {
2346
+ const r = await Pt(this.stores, (e, t) => {
2344
2347
  this.filesByStore[e] = t.files, t.error ? (this.errors[e] = t.error, this.storeStatus[e] = "failed") : this.storeStatus[e] = "connected", console.log(`Store ${e} completed: ${t.error ? "failed" : "success"}`);
2345
2348
  });
2346
2349
  console.log("All stores fetched:", r);
@@ -2374,7 +2377,7 @@ const At = (r) => r.replace(/\s+/g, ""), Ft = V("dashboards", {
2374
2377
  filteredFiles(r, e, t, s, o = null) {
2375
2378
  const i = (a) => a in s.models;
2376
2379
  let n = this.allFiles;
2377
- return o && (n = this.filesByStore[o]), n ? Ot(n, r, e, t, i) : [];
2380
+ return o && (n = this.filesByStore[o]), n ? _t(n, r, e, t, i) : [];
2378
2381
  },
2379
2382
  /**
2380
2383
  * Get files from a specific store
@@ -2525,7 +2528,7 @@ const P = (r, e = {}) => {
2525
2528
  t = "";
2526
2529
  }
2527
2530
  throw new Se(t || e, r.status);
2528
- }, Pt = async (r) => {
2531
+ }, It = async (r) => {
2529
2532
  const e = await fetch(
2530
2533
  `${r.baseUrl}/files`,
2531
2534
  P(r.token, {
@@ -2533,7 +2536,7 @@ const P = (r, e = {}) => {
2533
2536
  })
2534
2537
  );
2535
2538
  return await I(e, `Failed to fetch files for ${r.name}`), e.json();
2536
- }, yr = async (r, e) => {
2539
+ }, pr = async (r, e) => {
2537
2540
  const t = Ce(e), s = await fetch(
2538
2541
  `${r.baseUrl}/files/${t}`,
2539
2542
  P(r.token, {
@@ -2550,7 +2553,7 @@ const P = (r, e = {}) => {
2550
2553
  })
2551
2554
  );
2552
2555
  return await I(o, `Failed to fetch ${e}`), o.text();
2553
- }, pr = async (r, e, t) => {
2556
+ }, br = async (r, e, t) => {
2554
2557
  const s = await fetch(
2555
2558
  `${r.baseUrl}/files`,
2556
2559
  P(r.token, {
@@ -2562,7 +2565,7 @@ const P = (r, e = {}) => {
2562
2565
  })
2563
2566
  );
2564
2567
  await I(s, `Failed to create ${e}`);
2565
- }, br = async (r, e, t) => {
2568
+ }, wr = async (r, e, t) => {
2566
2569
  const s = await fetch(
2567
2570
  `${r.baseUrl}/files/${Ce(e)}`,
2568
2571
  P(r.token, {
@@ -2574,7 +2577,7 @@ const P = (r, e = {}) => {
2574
2577
  })
2575
2578
  );
2576
2579
  await I(s, `Failed to update ${e}`);
2577
- }, wr = async (r, e) => {
2580
+ }, vr = async (r, e) => {
2578
2581
  const t = await fetch(
2579
2582
  `${r.baseUrl}/files/${Ce(e)}`,
2580
2583
  P(r.token, {
@@ -2582,7 +2585,7 @@ const P = (r, e = {}) => {
2582
2585
  })
2583
2586
  );
2584
2587
  await I(t, `Failed to delete ${e}`);
2585
- }, It = async (r, e, t) => {
2588
+ }, jt = async (r, e, t) => {
2586
2589
  const s = await fetch(
2587
2590
  `${r.baseUrl}/${e}`,
2588
2591
  P(r.token, {
@@ -2594,7 +2597,7 @@ const P = (r, e = {}) => {
2594
2597
  })
2595
2598
  );
2596
2599
  return await I(s, `Failed to ${e} ${t}`), s.json();
2597
- }, jt = async (r, e) => {
2600
+ }, Nt = async (r, e) => {
2598
2601
  const t = await fetch(
2599
2602
  `${r.baseUrl}/jobs/${e}`,
2600
2603
  P(r.token, {
@@ -2602,7 +2605,7 @@ const P = (r, e = {}) => {
2602
2605
  })
2603
2606
  );
2604
2607
  return await I(t, `Failed to fetch job ${e}`), t.json();
2605
- }, Nt = async (r, e) => {
2608
+ }, Jt = async (r, e) => {
2606
2609
  const t = await fetch(
2607
2610
  `${r.baseUrl}/jobs/${e}/cancel`,
2608
2611
  P(r.token, {
@@ -2610,14 +2613,14 @@ const P = (r, e = {}) => {
2610
2613
  })
2611
2614
  );
2612
2615
  return await I(t, `Failed to cancel job ${e}`), t.json();
2613
- }, U = /* @__PURE__ */ new Map(), Ne = "trilogy-jobs-api-state", Je = (r, e, t) => `${r}::${t}::${e}`, z = (r, e) => `${r}::${e}`, Jt = (r) => {
2616
+ }, U = /* @__PURE__ */ new Map(), Ne = "trilogy-jobs-api-state", Je = (r, e, t) => `${r}::${t}::${e}`, z = (r, e) => `${r}::${e}`, Bt = (r) => {
2614
2617
  const e = r.pollingState, t = e === "unable-to-fetch" ? "stopped" : r.pollingState ?? "ok";
2615
2618
  return {
2616
2619
  ...r,
2617
2620
  pollingState: t,
2618
2621
  pollingError: t === "stopped" && !r.pollingError && e === "unable-to-fetch" ? "Polling stopped locally." : r.pollingError ?? null
2619
2622
  };
2620
- }, se = (r) => [...r].sort((e, t) => t.submittedAt - e.submittedAt), vr = V("jobsApi", {
2623
+ }, se = (r) => [...r].sort((e, t) => t.submittedAt - e.submittedAt), Sr = V("jobsApi", {
2621
2624
  state: () => ({
2622
2625
  filesByStore: {},
2623
2626
  jobsByStore: {},
@@ -2686,7 +2689,7 @@ const P = (r, e = {}) => {
2686
2689
  this.jobsByStore = Object.fromEntries(
2687
2690
  Object.entries(e).map(([t, s]) => [
2688
2691
  t,
2689
- (s || []).map((o) => Jt(o))
2692
+ (s || []).map((o) => Bt(o))
2690
2693
  ])
2691
2694
  );
2692
2695
  } catch (r) {
@@ -2725,7 +2728,7 @@ const P = (r, e = {}) => {
2725
2728
  if (e) {
2726
2729
  this.loadingByStore[r] = !0, this.storeStatus[r] = "idle";
2727
2730
  try {
2728
- this.filesByStore[r] = await Pt(e), delete this.errors[r], this.storeStatus[r] = "connected";
2731
+ this.filesByStore[r] = await It(e), delete this.errors[r], this.storeStatus[r] = "connected";
2729
2732
  } catch (t) {
2730
2733
  const s = t instanceof Error ? t.message : "Failed to fetch files";
2731
2734
  this.errors[r] = s, this.storeStatus[r] = "failed";
@@ -2800,7 +2803,7 @@ const P = (r, e = {}) => {
2800
2803
  const o = Je(r, e, t);
2801
2804
  this.submittingByTarget[o] = !0;
2802
2805
  try {
2803
- const i = await It(s, t, e), n = this.buildLocalJob(r, e, t, i);
2806
+ const i = await jt(s, t, e), n = this.buildLocalJob(r, e, t, i);
2804
2807
  return this.upsertJob(r, n), delete this.errors[r], this.storeStatus[r] = "connected", n.status === "running" && this.startPolling(r, n.job_id), n;
2805
2808
  } catch (i) {
2806
2809
  const n = i instanceof Error ? i.message : `Failed to ${t} ${e}`;
@@ -2820,7 +2823,7 @@ const P = (r, e = {}) => {
2820
2823
  return;
2821
2824
  }
2822
2825
  try {
2823
- const i = await jt(s, e), n = this.buildLocalJob(
2826
+ const i = await Nt(s, e), n = this.buildLocalJob(
2824
2827
  r,
2825
2828
  o.target,
2826
2829
  o.operation,
@@ -2856,7 +2859,7 @@ const P = (r, e = {}) => {
2856
2859
  }
2857
2860
  this.stoppingByJob[t] = !0, this.stopPolling(r, e), delete this.pollingByJob[t];
2858
2861
  try {
2859
- const i = await Nt(s, e), n = this.buildLocalJob(
2862
+ const i = await Jt(s, e), n = this.buildLocalJob(
2860
2863
  r,
2861
2864
  o.target,
2862
2865
  o.operation,
@@ -2878,7 +2881,7 @@ const P = (r, e = {}) => {
2878
2881
  }
2879
2882
  }
2880
2883
  });
2881
- class Bt {
2884
+ class Rt {
2882
2885
  constructor(e, t, s, o) {
2883
2886
  w(this, "queryExecutionService");
2884
2887
  w(this, "connectionStore");
@@ -3510,7 +3513,7 @@ ${JSON.stringify(o, null, 2)}`
3510
3513
  } : { success: !0, message: o.length > 0 ? `Hidden ${i.length} artifact(s). Not found: ${o.join(", ")}. Hidden artifacts remain accessible to you via list_artifacts and can be restored by the user.` : `Hidden ${i.length} artifact(s). They remain accessible via list_artifacts and can be restored by the user.` };
3511
3514
  }
3512
3515
  }
3513
- const Rt = V("chats", {
3516
+ const Kt = V("chats", {
3514
3517
  state: () => ({
3515
3518
  chats: {},
3516
3519
  activeChatId: "",
@@ -3709,7 +3712,7 @@ const Rt = V("chats", {
3709
3712
  });
3710
3713
  },
3711
3714
  getMessages: () => o.messages
3712
- }, m = new Bt(
3715
+ }, m = new Rt(
3713
3716
  a,
3714
3717
  n,
3715
3718
  this,
@@ -3788,14 +3791,14 @@ function L(r) {
3788
3791
  const e = window.location.hash, t = new URLSearchParams(e.slice(1));
3789
3792
  t.delete(r), window.location.hash = `#${t.toString()}`;
3790
3793
  }
3791
- function Kt(r) {
3794
+ function Ut(r) {
3792
3795
  const e = window.location.hash, t = new URLSearchParams(e.slice(1));
3793
3796
  r.forEach((s) => {
3794
3797
  t.delete(s);
3795
3798
  }), window.location.hash = `#${t.toString()}`;
3796
3799
  }
3797
- const Ut = () => {
3798
- const r = Ft(), e = Ye(), t = ot(), s = ie(), o = Rt();
3800
+ const zt = () => {
3801
+ const r = Qt(), e = Ye(), t = ot(), s = ie(), o = Kt();
3799
3802
  let i = null;
3800
3803
  const n = {
3801
3804
  activeScreen: Q(F("screen", "")),
@@ -3930,7 +3933,7 @@ const Ut = () => {
3930
3933
  n.tabs.value = n.tabs.value.filter((b) => b.id === f), C || (n.tabs.value.length > 0 ? S(n.tabs.value[0].id) : d("welcome", "Welcome", "welcome")), m();
3931
3934
  }, m = () => {
3932
3935
  let f = n.tabs.value.map((b) => b.screen), C = [];
3933
- f.includes("editors") || (n.activeEditor.value = "", C.push("editors"), C.push("activeEditorTab")), f.includes("dashboard") || (n.activeDashboard.value = "", C.push("dashboard")), f.includes("connections") || (n.activeConnectionKey.value = "", C.push("connections")), f.includes("models") || (n.activeModelKey.value = "", C.push("model")), f.includes("community-models") || (n.activeCommunityModelKey.value = "", C.push("community-models")), f.includes("jobs") || (n.activeJobsKey.value = "", C.push("jobs")), f.includes("tutorial") || (n.activeDocumentationKey.value = "", C.push("tutorial")), f.includes("llms") || (n.activeLLMConnectionKey.value = "", C.push("llms")), f.includes("settings") || C.push("settings"), f.includes("profile") || C.push("profile"), f.includes("welcome") || C.push("welcome"), Kt(C);
3936
+ f.includes("editors") || (n.activeEditor.value = "", C.push("editors"), C.push("activeEditorTab")), f.includes("dashboard") || (n.activeDashboard.value = "", C.push("dashboard")), f.includes("connections") || (n.activeConnectionKey.value = "", C.push("connections")), f.includes("models") || (n.activeModelKey.value = "", C.push("model")), f.includes("community-models") || (n.activeCommunityModelKey.value = "", C.push("community-models")), f.includes("jobs") || (n.activeJobsKey.value = "", C.push("jobs")), f.includes("tutorial") || (n.activeDocumentationKey.value = "", C.push("tutorial")), f.includes("llms") || (n.activeLLMConnectionKey.value = "", C.push("llms")), f.includes("settings") || C.push("settings"), f.includes("profile") || C.push("profile"), f.includes("welcome") || C.push("welcome"), Ut(C);
3934
3937
  }, y = (f) => {
3935
3938
  const C = n.tabs.value.findIndex((b) => b.id === f);
3936
3939
  if (C !== -1) {
@@ -4225,11 +4228,11 @@ const Ut = () => {
4225
4228
  };
4226
4229
  };
4227
4230
  let me = null;
4228
- function Sr() {
4229
- return me || (me = Ut()), me;
4231
+ function Cr() {
4232
+ return me || (me = zt()), me;
4230
4233
  }
4231
4234
  const ge = 100;
4232
- class zt {
4235
+ class Ht {
4233
4236
  constructor() {
4234
4237
  w(this, "dbName");
4235
4238
  w(this, "storeName");
@@ -4344,7 +4347,7 @@ class zt {
4344
4347
  }
4345
4348
  }
4346
4349
  let ye = null;
4347
- const pe = () => (ye || (ye = new zt()), ye);
4350
+ const pe = () => (ye || (ye = new Ht()), ye);
4348
4351
  function ne(r) {
4349
4352
  const e = Q([]), t = Q(!0), s = Q(null), o = async () => {
4350
4353
  t.value = !0;
@@ -4401,7 +4404,7 @@ function ne(r) {
4401
4404
  refreshHistory: o
4402
4405
  };
4403
4406
  }
4404
- class Ht {
4407
+ class Wt {
4405
4408
  constructor(e) {
4406
4409
  this.connection = e;
4407
4410
  }
@@ -4418,13 +4421,13 @@ class Ht {
4418
4421
  return this.connection.query(e, t ?? null);
4419
4422
  }
4420
4423
  }
4421
- class Wt {
4424
+ class Gt {
4422
4425
  constructor(e) {
4423
4426
  this.connectionStore = e;
4424
4427
  }
4425
4428
  getConnection(e) {
4426
4429
  const t = this.connectionStore.connections[e];
4427
- return t ? new Ht(t) : null;
4430
+ return t ? new Wt(t) : null;
4428
4431
  }
4429
4432
  async ensureConnected(e) {
4430
4433
  const t = this.connectionStore.connections[e];
@@ -4436,16 +4439,16 @@ class Wt {
4436
4439
  return this.connectionStore.getConnectionSources(e);
4437
4440
  }
4438
4441
  }
4439
- function Gt(r) {
4442
+ function Vt(r) {
4440
4443
  return typeof r.getConnection == "function" && typeof r.ensureConnected == "function";
4441
4444
  }
4442
- class Cr {
4445
+ class Er {
4443
4446
  constructor(e, t, s = !0) {
4444
4447
  w(this, "trilogyResolver");
4445
4448
  w(this, "connectionProvider");
4446
4449
  w(this, "storeHistory");
4447
4450
  w(this, "eligibleCrossFilterFieldsCache", /* @__PURE__ */ new Map());
4448
- this.trilogyResolver = e, this.connectionProvider = Gt(t) ? t : new Wt(t), this.storeHistory = s;
4451
+ this.trilogyResolver = e, this.connectionProvider = Vt(t) ? t : new Gt(t), this.storeHistory = s;
4449
4452
  }
4450
4453
  async executeQueriesBatch(e, t, s, o = [], i, n = {}, a, c, u, l, h = !1, d) {
4451
4454
  if (s === "python")
@@ -4971,45 +4974,45 @@ class Cr {
4971
4974
  export {
4972
4975
  ne as A,
4973
4976
  Ue as B,
4974
- Wt as C,
4975
- $t as D,
4976
- Pt as E,
4977
- mr as F,
4978
- gr as G,
4979
- yr as H,
4977
+ Gt as C,
4978
+ At as D,
4979
+ It as E,
4980
+ gr as F,
4981
+ yr as G,
4982
+ pr as H,
4980
4983
  ze as I,
4981
- wr as J,
4982
- pr as K,
4983
- br as L,
4984
+ vr as J,
4985
+ br as K,
4986
+ wr as L,
4984
4987
  ve as M,
4985
4988
  re as N,
4986
- At as O,
4987
- Cr as Q,
4988
- ur as T,
4989
- Ft as a,
4989
+ Ft as O,
4990
+ Er as Q,
4991
+ hr as T,
4992
+ Qt as a,
4990
4993
  ie as b,
4991
- vr as c,
4992
- Rt as d,
4993
- Sr as e,
4994
+ Sr as c,
4995
+ Kt as d,
4996
+ Cr as e,
4994
4997
  Pe as f,
4995
4998
  F as g,
4996
4999
  M as h,
4997
- hr as i,
5000
+ dr as i,
4998
5001
  G as j,
4999
- Ct as k,
5002
+ Et as k,
5000
5003
  Re as l,
5001
- xt as m,
5004
+ Tt as m,
5002
5005
  R as n,
5003
- Tt as o,
5006
+ $t as o,
5004
5007
  wt as p,
5005
- St as q,
5008
+ Ct as q,
5006
5009
  L as r,
5007
- Et as s,
5008
- Dt as t,
5009
- dr as u,
5010
+ Dt as s,
5011
+ xt as t,
5012
+ fr as u,
5010
5013
  le as v,
5011
5014
  bt as w,
5012
5015
  oe as x,
5013
- fr as y,
5016
+ mr as y,
5014
5017
  fe as z
5015
5018
  };
@@ -1,3 +1,4 @@
1
+ import { CrossFilterValueMap } from '../dashboards/crossFilters';
1
2
  import { LayoutItem, CellType, DashboardImport, DashboardState, DashboardModel, DashboardTypes, ItemPropertyUpdates } from '../dashboards/base';
2
3
  import { PromptDashboard } from '../dashboards/prompts';
3
4
  import { LLMConnectionStoreType } from './llmStore';
@@ -96,7 +97,7 @@ export declare const useDashboardStore: import('pinia').StoreDefinition<"dashboa
96
97
  updateItemDrilldown(dashboardId: string, itemId: string, drilldown: string | null): void;
97
98
  updateItemDrilldownChartConfig(dashboardId: string, itemId: string, drilldownChartConfig: ChartConfig | null): void;
98
99
  updateItemType(dashboardId: string, itemId: string, type: DashboardTypes["CellType"]): void;
99
- updateItemCrossFilters(dashboardId: string, itemId: string, conceptMap: Record<string, string>, chartMap: Record<string, string>, operation: "add" | "append" | "remove"): string[];
100
+ updateItemCrossFilters(dashboardId: string, itemId: string, conceptMap: CrossFilterValueMap, chartMap: CrossFilterValueMap, operation: "add" | "append" | "remove"): string[];
100
101
  removeItemCrossFilter(dashboardId: string, itemId: string, source: string): string;
101
102
  removeItemCrossFilterSource(dashboardId: string, itemId: string): string[];
102
103
  updateItemName(dashboardId: string, itemId: string, name: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"dashboardStore.d.ts","sourceRoot":"","sources":["../../stores/dashboardStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,Q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,GAAG;8CASvD,MAAM,UACX,MAAM,WACL,mBAAmB,GAC3B,IAAI;2CAUgC,MAAM,cAAc,MAAM;4CAQzB,MAAM,eAAe,MAAM;uCAShC,MAAM,aAAa,UAAU,EAAE;sCAShC,MAAM,UAAU,MAAM,SAAS,MAAM,UAAU,MAAM;4CASxE,MAAM,UACX,MAAM,MACX,MAAM,GAAG,IAAI,MACb,MAAM,GAAG,IAAI,MACb,MAAM,GAAG,IAAI,MACb,MAAM,GAAG,IAAI;yCAUmB,MAAM,UAAU,MAAM;qCAQ1B,MAAM,UAAU,MAAM;qCAUtB,MAAM;;sCAqBxB,MAAM,yBACI,qBAAqB,eAC/B,eAAe;oCA6Bf,MAAM,yBACI,qBAAqB,eAC/B,eAAe;oCA4Bf,MAAM,yBACI,qBAAqB,eAC/B,eAAe,GAC3B,OAAO,CAAC,iBAAiB,EAAE,CAAC;+BAcrB,MAAM,YACJ,sBAAsB,yBACT,qBAAqB,eAC/B,eAAe;wCAoBf,MAAM,gBACL,eAAe,YACnB,sBAAsB,yBACT,qBAAqB,eAC/B,eAAe;EA2FhC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;AACrE,eAAe,iBAAiB,CAAA"}
package/dist/stores.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as s, u as r, b as t } from "./editorStore-BTPcljeQ.js";
2
2
  import { u as n } from "./toolLoopCore-CK_KVuAS.js";
3
- import { C as u, Q as S, T as c, d as C, b as d, a as m, c as p, u as x, e as b } from "./queryExecutionService-KrjL0UCa.js";
3
+ import { C as u, Q as S, T as c, d as C, b as d, a as m, c as p, u as x, e as b } from "./queryExecutionService-BxU16oNE.js";
4
4
  export {
5
5
  u as ConnectionStoreExecutionConnectionProvider,
6
6
  S as QueryExecutionService,