@trilogy-data/trilogy-studio-components 0.1.27 → 0.1.28

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 (53) hide show
  1. package/dist/{AssetAutoImporter-OHphsfW9.js → AssetAutoImporter-C_7Ms9xe.js} +5 -5
  2. package/dist/{ChatCreatorModal-CuXha6Dg.js → ChatCreatorModal-Cd40SvdM.js} +1 -1
  3. package/dist/{CodeBlock-BBsaC6hX.js → CodeBlock-Dj-GfTbW.js} +1 -1
  4. package/dist/{CommunityModels-CIQQhO-y.js → CommunityModels-lX2RhHCG.js} +4 -4
  5. package/dist/{ConnectionView-7Jj_Ggdi.js → ConnectionView-CZ06qjjE.js} +4 -4
  6. package/dist/{CreateEditorFromDatasourcePopup-CrVHUWFl.js → CreateEditorFromDatasourcePopup-DwA938kf.js} +2 -2
  7. package/dist/{Dashboard-DxSi9W6Q.js → Dashboard-CQsIqWZC.js} +5 -5
  8. package/dist/{DashboardImportSelector-kuDRDYi8.js → DashboardImportSelector-CkqH52FX.js} +1 -1
  9. package/dist/{DashboardMobile-CZEgTb0R.js → DashboardMobile-DWFlel5p.js} +4 -4
  10. package/dist/{Editor-D6tdutTm.js → Editor-DQ66Vp6v.js} +6 -6
  11. package/dist/{GlobalChatPanel-BXZh0sdD.js → GlobalChatPanel-B_s3COHE.js} +6 -6
  12. package/dist/{IDE-T8PmyAQ_.js → IDE-4-Jg6gsM.js} +6 -6
  13. package/dist/{JobsView-Ca97MiSd.js → JobsView-B5NWDUgP.js} +5 -5
  14. package/dist/{LLMChat-Cch33Yd_.js → LLMChat-eKgEc-I3.js} +2 -2
  15. package/dist/{LLMView-BDb6wD74.js → LLMView-CdTwMLVV.js} +9 -9
  16. package/dist/{LoadingView-B-xFwd2N.js → LoadingView-Bu3wLJ7J.js} +1 -1
  17. package/dist/{MarkdownRenderer-BWvdx0k3.js → MarkdownRenderer-B6lqdkgc.js} +1 -1
  18. package/dist/{MobileIDE-DpdEQEqc.js → MobileIDE-CZlg20oa.js} +12 -12
  19. package/dist/{ModelCard-DkAMP4X9.js → ModelCard-Bs_d7Jis.js} +4 -4
  20. package/dist/{ModelView-DomyhN8g.js → ModelView-BP5yyecx.js} +4 -4
  21. package/dist/{PageLoading-BAvKGo9h.js → PageLoading-DKFeqkmK.js} +17 -17
  22. package/dist/{ResultComponent-zoOSoRLe.js → ResultComponent-BaDheojB.js} +4 -4
  23. package/dist/{Results-dq-SlJbU.js → Results-CrpHB101.js} +5 -5
  24. package/dist/{StatusIcon-AbxNvJ6p.js → StatusIcon-Clfyy-Yn.js} +1 -1
  25. package/dist/{StoreTokenModal-CM8WXdu1.js → StoreTokenModal-CO5hXMs3.js} +1 -1
  26. package/dist/{SymbolsPane-DfaxeaPS.js → SymbolsPane-XFVErDFb.js} +1 -1
  27. package/dist/{TutorialPage-BtEJG7cT.js → TutorialPage-CMcTYDOV.js} +11 -11
  28. package/dist/{VegaLiteChart-BVyAab-o.js → VegaLiteChart-DX_LbF3g.js} +2 -2
  29. package/dist/{WelcomePage-BoqzYBLr.js → WelcomePage-B6E35FUa.js} +3 -3
  30. package/dist/dashboard.js +9 -9
  31. package/dist/dashboards/dashboardQueryExecutor.d.ts +9 -0
  32. package/dist/dashboards/dashboardQueryExecutor.d.ts.map +1 -1
  33. package/dist/{editorStore-CAlMJftt.js → editorStore-CiWH_nGN.js} +1 -1
  34. package/dist/{globalChatRuntime-CyS7vH51.js → globalChatRuntime-DAERmOdu.js} +4 -4
  35. package/dist/{helpers-BbVlA3Pf.js → helpers-C2pARJoZ.js} +4 -4
  36. package/dist/llm/data/prompts.d.ts +1 -1
  37. package/dist/llm/data/prompts.d.ts.map +1 -1
  38. package/dist/llm/data/trilogySyntax.generated.d.ts +3 -3
  39. package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
  40. package/dist/{llm-ClU-2rgk.js → llm-Wf4Etiu9.js} +5 -5
  41. package/dist/llm.js +1 -1
  42. package/dist/{localStorage-CGQ1iJXt.js → localStorage-C3xms-ab.js} +3 -3
  43. package/dist/monaco.js +2 -2
  44. package/dist/{reconcile-DXIvGwBk.js → reconcile-BH_ReGDR.js} +1 -1
  45. package/dist/{remoteStoreSync-CuQBWpWf.js → remoteStoreSync-B0K8QScO.js} +2 -2
  46. package/dist/{stores-LlyiwSbK.js → stores-DTGQZ4_B.js} +13 -5
  47. package/dist/stores.js +3 -3
  48. package/dist/{useChatWithTools-m3Jn_SV-.js → useChatWithTools-BSrzJtYI.js} +1 -1
  49. package/dist/{useDashboard-BOAuvVEw.js → useDashboard-CGeIdDuX.js} +9 -9
  50. package/dist/{useGlobalChatPanel-DuP1q7_f.js → useGlobalChatPanel-D9kMZLeF.js} +4 -4
  51. package/dist/views.js +5 -5
  52. package/dist/{vocabulary-CKLGILtR.js → vocabulary-DQK5jB7m.js} +3 -1
  53. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { c as e, u as t } from "./base-DuKnVD-A.js";
2
- import { Ct as n, Dt as r, Et as i, Ft as a, Gt as o, It as s, Ot as c, Tt as l, _t as u, bt as d, fn as f, gt as p, kt as m, vt as h, wt as g } from "./llm-ClU-2rgk.js";
3
- import { C as _, F as v, H as y, I as b, L as x, N as S, P as C, R as ee, S as te, i as ne, it as w, q as re, s as ie, t as ae, z as T } from "./editorStore-CAlMJftt.js";
2
+ import { Ct as n, Dt as r, Et as i, Ft as a, Gt as o, It as s, Ot as c, Tt as l, _t as u, bt as d, fn as f, gt as p, kt as m, vt as h, wt as g } from "./llm-Wf4Etiu9.js";
3
+ import { C as _, F as v, H as y, I as b, L as x, N as S, P as C, R as ee, S as te, i as ne, it as w, q as re, s as ie, t as ae, z as T } from "./editorStore-CiWH_nGN.js";
4
4
  import { t as oe } from "./connections-CWH3zwH2.js";
5
5
  import { n as se, t as E } from "./chatHelpers-F_woEbYF.js";
6
6
  import { computed as D, ref as O } from "vue";
@@ -569,9 +569,17 @@ var M = class {
569
569
  }
570
570
  processBatch() {
571
571
  if (this.queryQueue.size === 0) return;
572
- let e = Array.from(this.queryQueue.values()).sort((e, t) => e.priority === t.priority ? e.timestamp - t.timestamp : e.priority - t.priority), t = this.maxConcurrentQueries - this.activeQueries.size, n = e.slice(0, t);
572
+ let e = Array.from(this.queryQueue.values()).sort((e, t) => e.priority === t.priority ? e.timestamp - t.timestamp : e.priority - t.priority), t = this.maxConcurrentQueries - this.activeQueries.size;
573
+ if (t <= 0) return;
574
+ let n = e.slice(0, t);
573
575
  this.executeBatchQueries(n);
574
576
  }
577
+ refillTimeout = null;
578
+ refillFreedSlot() {
579
+ this.queryQueue.size === 0 || this.refillTimeout || (this.refillTimeout = setTimeout(() => {
580
+ this.refillTimeout = null, this.processBatch();
581
+ }, this.batchDelay));
582
+ }
575
583
  async executeBatchQueries(e) {
576
584
  if (e.length !== 0) try {
577
585
  let t = this.getDashboardImports(), n = [], r = [];
@@ -588,10 +596,10 @@ var M = class {
588
596
  let i = Object.fromEntries(n.map((e) => [e.label, (t) => {
589
597
  r.find((t) => t.id === e.label)?.onSuccess(t);
590
598
  let n = this.queryWaiters.get(e.label);
591
- n && (n.resolve(t), this.queryWaiters.delete(e.label)), this.activeQueries.delete(e.label), this.settleQueryLoading(e.label), this.cleanupQueryTracking(e.label);
599
+ n && (n.resolve(t), this.queryWaiters.delete(e.label)), this.activeQueries.delete(e.label), this.settleQueryLoading(e.label), this.cleanupQueryTracking(e.label), this.refillFreedSlot();
592
600
  }])), a = Object.fromEntries(n.map((e) => [e.label, (t) => {
593
601
  let n = me(t), i = r.find((t) => t.id === e.label);
594
- i && this.handleQueryError(i, n), this.activeQueries.delete(e.label), this.settleQueryLoading(e.label), this.cleanupQueryTracking(e.label);
602
+ i && this.handleQueryError(i, n), this.activeQueries.delete(e.label), this.settleQueryLoading(e.label), this.cleanupQueryTracking(e.label), this.refillFreedSlot();
595
603
  }])), { resultPromise: o } = await this.queryExecutionService.executeQueriesBatch(this.connectionName, n, "trilogy", t, [], {}, () => {}, () => {}, a, i, !1, r[0]?.queryInput.extraContent || []), s = await o;
596
604
  console.log(`Batch query executed successfully with ${s.results.length} results`);
597
605
  } catch (t) {
package/dist/stores.js CHANGED
@@ -1,4 +1,4 @@
1
- import { dn as e, fn as t } from "./llm-ClU-2rgk.js";
2
- import { a as n, d as r, g as i, i as a, n as o, p as s, t as c, u as l } from "./stores-LlyiwSbK.js";
3
- import { C as u, Q as d, S as f, i as p, t as m } from "./editorStore-CAlMJftt.js";
1
+ import { dn as e, fn as t } from "./llm-Wf4Etiu9.js";
2
+ import { a as n, d as r, g as i, i as a, n as o, p as s, t as c, u as l } from "./stores-DTGQZ4_B.js";
3
+ import { C as u, Q as d, S as f, i as p, t as m } from "./editorStore-CiWH_nGN.js";
4
4
  export { c as ConnectionStoreExecutionConnectionProvider, o as QueryExecutionService, e as TrilogyResolver, p as useChatStore, u as useCommunityApiStore, f as useConnectionStore, s as useDashboardStore, m as useEditorStore, r as useJobsApiStore, i as useLLMConnectionStore, a as useMobileSidebarNavigation, d as useModelConfigStore, l as useProjectStore, n as useScreenNavigation, t as useUserSettingsStore };
@@ -1,4 +1,4 @@
1
- import { $ as e, U as t, ct as n } from "./llm-ClU-2rgk.js";
1
+ import { $ as e, U as t, ct as n } from "./llm-Wf4Etiu9.js";
2
2
  import { computed as r, ref as i, toValue as a, watch as o } from "vue";
3
3
  //#region composables/useChatWithTools.ts
4
4
  function s(s) {
@@ -1,20 +1,20 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
2
  import { o as t } from "./config-DwTONafa.js";
3
3
  import { c as n, u as r } from "./base-DuKnVD-A.js";
4
- import { $t as i, Ft as a, Gt as o, Kt as s, Zt as c, an as l, fn as u, in as d, ln as f, rn as p, tn as m, un as h } from "./llm-ClU-2rgk.js";
5
- import { a as g, f as _, g as v, p as y } from "./stores-LlyiwSbK.js";
6
- import { S as b, _ as x, b as S, d as C, et as w, f as ee, g as T, h as E, it as te, l as D, m as O, p as ne, t as re, u as ie } from "./editorStore-CAlMJftt.js";
7
- import { n as ae, t as oe } from "./DashboardImportSelector-kuDRDYi8.js";
8
- import { f as k, p as A, r as se, u as ce } from "./useGlobalChatPanel-DuP1q7_f.js";
4
+ import { $t as i, Ft as a, Gt as o, Kt as s, Zt as c, an as l, fn as u, in as d, ln as f, rn as p, tn as m, un as h } from "./llm-Wf4Etiu9.js";
5
+ import { a as g, f as _, g as v, p as y } from "./stores-DTGQZ4_B.js";
6
+ import { S as b, _ as x, b as S, d as C, et as w, f as ee, g as T, h as E, it as te, l as D, m as O, p as ne, t as re, u as ie } from "./editorStore-CiWH_nGN.js";
7
+ import { n as ae, t as oe } from "./DashboardImportSelector-CkqH52FX.js";
8
+ import { f as k, p as A, r as se, u as ce } from "./useGlobalChatPanel-D9kMZLeF.js";
9
9
  import { t as j } from "./ErrorMessage-D5JeF3Iz.js";
10
- import { t as le } from "./VegaLiteChart-BVyAab-o.js";
11
- import { t as ue } from "./LoadingView-B-xFwd2N.js";
10
+ import { t as le } from "./VegaLiteChart-DX_LbF3g.js";
11
+ import { t as ue } from "./LoadingView-Bu3wLJ7J.js";
12
12
  import { t as de } from "./DrilldownPane-BheRHJMs.js";
13
- import { t as fe } from "./MarkdownRenderer-BWvdx0k3.js";
13
+ import { t as fe } from "./MarkdownRenderer-B6lqdkgc.js";
14
14
  import { a as pe, d as me, l as he, o as M } from "./workers-B9Eybl-M.js";
15
15
  import "./editor.main-BQh6DxDB.js";
16
16
  import { t as ge } from "./tokenTheme-DBbeCrCg.js";
17
- import { t as _e } from "./SymbolsPane-DfaxeaPS.js";
17
+ import { t as _e } from "./SymbolsPane-XFVErDFb.js";
18
18
  import { n as ve, t as ye } from "./useResizableDialog-Cs90WJdF.js";
19
19
  import { Fragment as N, Teleport as be, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as z, createVNode as B, defineComponent as V, inject as H, nextTick as xe, normalizeClass as U, normalizeStyle as Se, onBeforeUnmount as Ce, onMounted as we, onUnmounted as Te, openBlock as W, ref as G, renderList as K, renderSlot as Ee, resolveComponent as q, resolveDynamicComponent as De, toDisplayString as J, unref as Y, vModelRadio as Oe, vModelText as ke, vShow as Ae, watch as X, withCtx as Z, withDirectives as je, withKeys as Me, withModifiers as Ne } from "vue";
20
20
  //#region components/dashboard/DashboardSharePopup.vue?vue&type=script&setup=true&lang.ts
@@ -2,10 +2,10 @@ import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
2
2
  import { t } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
3
3
  import { o as n } from "./config-DwTONafa.js";
4
4
  import { c as r, g as i } from "./base-DuKnVD-A.js";
5
- import { A as a } from "./llm-ClU-2rgk.js";
6
- import { a as o, c as s, l as c, o as l, s as u } from "./stores-LlyiwSbK.js";
7
- import { it as d } from "./editorStore-CAlMJftt.js";
8
- import { a as f, c as p, i as m, l as h, n as g, o as _, r as v, s as y, t as b, u as x } from "./vocabulary-CKLGILtR.js";
5
+ import { A as a } from "./llm-Wf4Etiu9.js";
6
+ import { a as o, c as s, l as c, o as l, s as u } from "./stores-DTGQZ4_B.js";
7
+ import { it as d } from "./editorStore-CiWH_nGN.js";
8
+ import { a as f, c as p, i as m, l as h, n as g, o as _, r as v, s as y, t as b, u as x } from "./vocabulary-DQK5jB7m.js";
9
9
  import { Fragment as S, Teleport as ee, Transition as te, computed as C, createBlock as ne, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createTextVNode as re, createVNode as D, defineComponent as ie, inject as O, markRaw as ae, mergeProps as oe, nextTick as se, normalizeClass as k, normalizeStyle as ce, onMounted as le, onUnmounted as ue, openBlock as A, ref as j, renderList as de, renderSlot as M, resolveComponent as fe, shallowRef as pe, toDisplayString as N, unref as me, useAttrs as he, vModelSelect as ge, vModelText as _e, watch as ve, withCtx as P, withDirectives as F, withKeys as ye, withModifiers as I } from "vue";
10
10
  import L from "prismjs";
11
11
  //#region components/ModalDialog.vue?vue&type=script&setup=true&lang.ts
package/dist/views.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
- import { dn as t, fn as n, pn as r } from "./llm-ClU-2rgk.js";
3
- import { a as i, d as a, g as o, n as s, p as c } from "./stores-LlyiwSbK.js";
4
- import { C as l, O as u, Q as d, S as f, i as p, t as m, y as h } from "./editorStore-CAlMJftt.js";
5
- import { t as g } from "./localStorage-CGQ1iJXt.js";
2
+ import { dn as t, fn as n, pn as r } from "./llm-Wf4Etiu9.js";
3
+ import { a as i, d as a, g as o, n as s, p as c } from "./stores-DTGQZ4_B.js";
4
+ import { C as l, O as u, Q as d, S as f, i as p, t as m, y as h } from "./editorStore-CiWH_nGN.js";
5
+ import { t as g } from "./localStorage-C3xms-ab.js";
6
6
  import { Fragment as _, Suspense as v, Teleport as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createVNode as T, defineAsyncComponent as E, defineComponent as D, onBeforeUnmount as ee, onMounted as te, openBlock as O, provide as k, ref as A, renderList as j, toDisplayString as M, unref as N, vModelText as P, withCtx as F, withDirectives as ne, withKeys as I } from "vue";
7
7
  //#region stores/CredentialManager.vue?vue&type=script&setup=true&lang.ts
8
8
  var re = { class: "confirmation-overlay" }, ie = { class: "confirmation-dialog" }, L = {
@@ -377,7 +377,7 @@ var de = /*#__PURE__*/ e(le, [["render", X], ["__scopeId", "data-v-263dbb39"]]),
377
377
  }
378
378
  },
379
379
  setup(e) {
380
- let t = E(() => import("./IDE-T8PmyAQ_.js")), n = E(() => import("./MobileIDE-DpdEQEqc.js")), a = e, o = A(!1), c = A(!1), l = A(""), u = A(null), d = A(!1), f = A([]), p = A([]), m = new se({ credentialPrefix: oe });
380
+ let t = E(() => import("./IDE-4-Jg6gsM.js")), n = E(() => import("./MobileIDE-CZlg20oa.js")), a = e, o = A(!1), c = A(!1), l = A(""), u = A(null), d = A(!1), f = A([]), p = A([]), m = new se({ credentialPrefix: oe });
381
381
  m.getIsCredentialApiSupported() && (console.log("Native Credential API supported"), d.value = !0);
382
382
  let g = async (e = null) => {
383
383
  try {
@@ -1,5 +1,5 @@
1
1
  //#region ../prism-trilogy/dist/vocabulary.js
2
- var e = /* @__PURE__ */ "import.from.self.as.select.where.having.order.by.limit.asc.desc.nulls.group.distinct.over.partition.filter.natural.join.left.inner.right.full.cross.subset.union.merge.align.derive.rowset.with.into.persist.append.overwrite.copy.datasource.grain.address.query.file.complete.root.refresh.within.incremental.freshness.def.type.drop.metadata.default.raw_sql.validate.matches.mock.publish.unpublish.create.chart.show.call.concept.concepts.datasources.all.and.or.not.is.in.between.case.when.then.else.end".split("."), t = [
2
+ var e = /* @__PURE__ */ "import.from.self.as.select.where.having.order.by.limit.asc.desc.nulls.group.distinct.over.partition.filter.natural.join.left.inner.right.full.cross.subset.union.merge.align.derive.rowset.with.into.persist.append.overwrite.copy.datasource.grain.address.query.file.complete.root.refresh.within.incremental.freshness.extends.assert.def.type.drop.metadata.default.raw_sql.validate.matches.mock.publish.unpublish.create.chart.show.call.concept.concepts.datasources.all.and.or.not.is.in.between.case.when.then.else.end".split("."), t = [
3
3
  String.raw`\bby\s+rollup\b`,
4
4
  String.raw`\bby\s+cube\b`,
5
5
  String.raw`\bby\s+grouping\s+sets\b`,
@@ -8,6 +8,7 @@ var e = /* @__PURE__ */ "import.from.self.as.select.where.having.order.by.limit.
8
8
  String.raw`\bif\s+not\s+exists\b`,
9
9
  String.raw`\bor\s+replace\b`,
10
10
  String.raw`\bwith\s+data\b`,
11
+ String.raw`\btemplate\b(?=\s+(?:partial\s+|~\s*)?datasource\b)`,
11
12
  String.raw`\bstate\s+(?:published|unpublished)\b`,
12
13
  String.raw`\blayer\s+(?:line|barh|bar|point|area|headline|donut|heatmap|boxplot|treemap)\b`,
13
14
  String.raw`\bplace\s+(?:hline|vline)\s+at\b`,
@@ -155,6 +156,7 @@ var e = /* @__PURE__ */ "import.from.self.as.select.where.having.order.by.limit.
155
156
  "len",
156
157
  "bool",
157
158
  "recurse_edge",
159
+ "prior",
158
160
  "struct",
159
161
  "unnest",
160
162
  "subselect",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-data/trilogy-studio-components",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"