@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.
- package/dist/{AssetAutoImporter-CUqhhNvb.js → AssetAutoImporter-9QMzD3ho.js} +2 -2
- package/dist/{ChatCreatorModal-CixOpWSH.js → ChatCreatorModal-CpkL5ah4.js} +1 -1
- package/dist/{CommunityModels-BKBxewjm.js → CommunityModels-Dk7uEXRw.js} +2 -2
- package/dist/{ConnectionView-Dyqm2oeV.js → ConnectionView-DQTOod_j.js} +2 -2
- package/dist/{Dashboard-Bsoj1oUW.js → Dashboard-BcCVnVqI.js} +3 -3
- package/dist/{DashboardCreatorInline-BLbkDxBF.js → DashboardCreatorInline-C2ShZBai.js} +1 -1
- package/dist/{DashboardMobile-Ao8NtF1f.js → DashboardMobile-CKaqqZkb.js} +3 -3
- package/dist/{DrilldownPane-OZMttRBx.js → DrilldownPane-iReKVNZE.js} +1 -1
- package/dist/{Editor-N40lTR0s.js → Editor-DUQhJCtJ.js} +2 -2
- package/dist/{EditorCreatorInline-DCFnyl5w.js → EditorCreatorInline-D9h8RNE8.js} +1 -1
- package/dist/{IDE-kbUDZPcL.js → IDE-nbO1W7BN.js} +7 -7
- package/dist/{JobsView-AYNUDnKG.js → JobsView-BRgAiTvy.js} +1 -1
- package/dist/{LLMChat-CZTQUh53.js → LLMChat-B5WBKFfx.js} +3 -3
- package/dist/{LLMConnectionList-BkvCZP5Q.js → LLMConnectionList-JatTlgKd.js} +5 -5
- package/dist/{LLMView-CaTlmLGb.js → LLMView-BTq1yptw.js} +2 -2
- package/dist/{LoadingButton-BdM3Rygq.js → LoadingButton--jhQCgPi.js} +1 -1
- package/dist/{MobileIDE-Bi7GNE2X.js → MobileIDE-BFZxnpvD.js} +12 -12
- package/dist/{ModelCard-Cd6OxExX.js → ModelCard-BdSi4Tb5.js} +3 -3
- package/dist/{ModelCreator-DeI-n86Z.js → ModelCreator-BPfMWQL3.js} +3 -3
- package/dist/{ModelView-Surdb5KW.js → ModelView-CsaxXoLJ.js} +3 -3
- package/dist/{ResultComponent-CXkTwZFS.js → ResultComponent-DSRcNmRC.js} +1 -1
- package/dist/{Sidebar-CfOATms_.js → Sidebar-BKacsmb3.js} +7 -7
- package/dist/{StatusIcon-CahClDuz.js → StatusIcon-ytnp_iom.js} +1 -1
- package/dist/Tooltip-CDt1VNAs.js +104 -0
- package/dist/{TutorialPage-IisHiPL6.js → TutorialPage-ZSgVaEzU.js} +9 -9
- package/dist/{UserProfile-CQAUnKyQ.js → UserProfile-BNx75xfc.js} +1 -1
- package/dist/{WelcomePage-Bq-h9f64.js → WelcomePage-jGXRVqLL.js} +1 -1
- package/dist/components/LoadingButton.vue.d.ts +6 -5
- package/dist/components/LoadingButton.vue.d.ts.map +1 -1
- package/dist/components/Tooltip.vue.d.ts +6 -5
- package/dist/components/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/VegaLiteChart.vue.d.ts +6 -5
- package/dist/components/VegaLiteChart.vue.d.ts.map +1 -1
- package/dist/components/connection/ConnectionDatabase.vue.d.ts +6 -5
- package/dist/components/connection/ConnectionDatabase.vue.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardChart.vue.d.ts +6 -5
- package/dist/components/dashboard/DashboardChart.vue.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardGridItem.vue.d.ts.map +1 -1
- package/dist/components/editor/Editor.vue.d.ts +12 -10
- package/dist/components/editor/Editor.vue.d.ts.map +1 -1
- package/dist/components/editor/EditorCreatorInline.vue.d.ts +6 -5
- package/dist/components/editor/EditorCreatorInline.vue.d.ts.map +1 -1
- package/dist/components/editor/EditorHeader.vue.d.ts +6 -5
- package/dist/components/editor/EditorHeader.vue.d.ts.map +1 -1
- package/dist/components/editor/ResultComponent.vue.d.ts +48 -40
- package/dist/components/editor/ResultComponent.vue.d.ts.map +1 -1
- package/dist/components/editor/Results.vue.d.ts +12 -10
- package/dist/components/editor/Results.vue.d.ts.map +1 -1
- package/dist/components/llm/ArtifactsPane.vue.d.ts +12 -10
- package/dist/components/llm/ArtifactsPane.vue.d.ts.map +1 -1
- package/dist/components/llm/ChatArtifact.vue.d.ts +6 -5
- package/dist/components/llm/ChatArtifact.vue.d.ts.map +1 -1
- package/dist/components/llm/LLMChatSplitView.vue.d.ts +12 -10
- package/dist/components/llm/LLMChatSplitView.vue.d.ts.map +1 -1
- package/dist/components/llm/LLMEditorRefinement.vue.d.ts +12 -10
- package/dist/components/llm/LLMEditorRefinement.vue.d.ts.map +1 -1
- package/dist/components/model/ModelCard.vue.d.ts +18 -15
- package/dist/components/model/ModelCard.vue.d.ts.map +1 -1
- package/dist/components/model/ModelCreator.vue.d.ts +12 -10
- package/dist/components/model/ModelCreator.vue.d.ts.map +1 -1
- package/dist/components/sidebar/ConnectionList.vue.d.ts +18 -15
- package/dist/components/sidebar/ConnectionList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/ConnectionListItem.vue.d.ts +6 -5
- package/dist/components/sidebar/ConnectionListItem.vue.d.ts.map +1 -1
- package/dist/components/sidebar/DashboardList.vue.d.ts +14 -12
- package/dist/components/sidebar/DashboardList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/DashboardListItem.vue.d.ts +7 -6
- package/dist/components/sidebar/DashboardListItem.vue.d.ts.map +1 -1
- package/dist/components/sidebar/EditorList.vue.d.ts +18 -15
- package/dist/components/sidebar/EditorList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/EditorListItem.vue.d.ts +6 -5
- package/dist/components/sidebar/EditorListItem.vue.d.ts.map +1 -1
- package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts +6 -5
- package/dist/components/sidebar/LLMConnectionCreator.vue.d.ts.map +1 -1
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts +12 -10
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts +6 -5
- package/dist/components/sidebar/LLMConnectionListItem.vue.d.ts.map +1 -1
- package/dist/components/sidebar/ModelSidebar.vue.d.ts +24 -20
- package/dist/components/sidebar/ModelSidebar.vue.d.ts.map +1 -1
- package/dist/components/sidebar/Sidebar.vue.d.ts +92 -77
- package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts +60 -50
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
- package/dist/dashboard.js +5 -5
- package/dist/dashboards/base.d.ts +4 -3
- package/dist/dashboards/base.d.ts.map +1 -1
- package/dist/dashboards/crossFilters.d.ts +4 -2
- package/dist/dashboards/crossFilters.d.ts.map +1 -1
- package/dist/{queryExecutionService-KrjL0UCa.js → queryExecutionService-BxU16oNE.js} +97 -94
- package/dist/stores/dashboardStore.d.ts +2 -1
- package/dist/stores/dashboardStore.d.ts.map +1 -1
- package/dist/stores.js +1 -1
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{useDashboard-CtX3sEag.js → useDashboard-Cl_8almf.js} +1063 -1057
- package/dist/views/ConnectionView.vue.d.ts +6 -5
- package/dist/views/ConnectionView.vue.d.ts.map +1 -1
- package/dist/views/LLMView.vue.d.ts +36 -30
- package/dist/views/LLMView.vue.d.ts.map +1 -1
- package/dist/views/ModelView.vue.d.ts +36 -30
- package/dist/views/ModelView.vue.d.ts.map +1 -1
- package/dist/views/TutorialPage.vue.d.ts +193 -161
- package/dist/views/TutorialPage.vue.d.ts.map +1 -1
- package/dist/views.js +2 -2
- package/package.json +1 -1
- package/dist/Tooltip-D4kSH91A.js +0 -62
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crossFilters.d.ts","sourceRoot":"","sources":["../../dashboards/crossFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,gBAAgB,EAAW,MAAM,KAAK,CAAA;AAGnE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"crossFilters.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AE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAC9C,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAkBT;AAED,wBAAgB,oCAAoC,CAClD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAC9C,QAAQ,EAAE,MAAM,GACf,MAAM,EAAE,CA0BV;AAED,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAC7C,MAAM,EAAE,CAmBV;AAED,wBAAgB,2BAA2B,CACzC,OAAO,GAAE,kCAAuC,GAC/C,qBAAqB,CAyGvB;AAED,wBAAgB,wBAAwB,CACtC,OAAO,GAAE,gBAAgB,CAAC,kCAAkC,CAAM;;mCAWjC,oBAAoB,cAAc,oBAAoB;wBAKjE,MAAM;;6BAQD,MAAM;;;kCAYD,MAAM;kCAIN,MAAM;mCAIL,MAAM;6BAIZ,MAAM,gBAAe,MAAM,EAAE;EAKzD"}
|
|
@@ -181,7 +181,7 @@ class W {
|
|
|
181
181
|
return this.cache.size;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
class
|
|
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]
|
|
499
|
+
return t.length !== s.length ? !1 : t.every((o, i) => o === s[i] && vt(r[o], e[o]));
|
|
497
500
|
}
|
|
498
|
-
function
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
673
|
-
const e = Q(0), t =
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
},
|
|
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
|
|
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
|
|
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
|
|
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 ||
|
|
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)),
|
|
2076
|
-
if (
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
2161
|
+
}, Mt = async (r) => {
|
|
2159
2162
|
let e = null, t = [];
|
|
2160
2163
|
try {
|
|
2161
|
-
const o = (await
|
|
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
|
-
},
|
|
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" ?
|
|
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)),
|
|
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
|
-
}),
|
|
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
|
|
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 ?
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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}`,
|
|
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),
|
|
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) =>
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3798
|
-
const r =
|
|
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"),
|
|
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
|
|
4229
|
-
return me || (me =
|
|
4231
|
+
function Cr() {
|
|
4232
|
+
return me || (me = zt()), me;
|
|
4230
4233
|
}
|
|
4231
4234
|
const ge = 100;
|
|
4232
|
-
class
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
4442
|
+
function Vt(r) {
|
|
4440
4443
|
return typeof r.getConnection == "function" && typeof r.ensureConnected == "function";
|
|
4441
4444
|
}
|
|
4442
|
-
class
|
|
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 =
|
|
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
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
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
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
+
vr as J,
|
|
4985
|
+
br as K,
|
|
4986
|
+
wr as L,
|
|
4984
4987
|
ve as M,
|
|
4985
4988
|
re as N,
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4989
|
+
Ft as O,
|
|
4990
|
+
Er as Q,
|
|
4991
|
+
hr as T,
|
|
4992
|
+
Qt as a,
|
|
4990
4993
|
ie as b,
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
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
|
-
|
|
5000
|
+
dr as i,
|
|
4998
5001
|
G as j,
|
|
4999
|
-
|
|
5002
|
+
Et as k,
|
|
5000
5003
|
Re as l,
|
|
5001
|
-
|
|
5004
|
+
Tt as m,
|
|
5002
5005
|
R as n,
|
|
5003
|
-
|
|
5006
|
+
$t as o,
|
|
5004
5007
|
wt as p,
|
|
5005
|
-
|
|
5008
|
+
Ct as q,
|
|
5006
5009
|
L as r,
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
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
|
-
|
|
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:
|
|
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,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,EAEL,cAAc,EACd,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,uBAAuB,CAAA;AAChF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,qBAAqB,M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,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-
|
|
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,
|