@trilogy-data/trilogy-studio-components 0.1.16 → 0.1.18
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-COld6ovI.js → AssetAutoImporter-CUqhhNvb.js} +14 -14
- package/dist/{CommunityModels-B5DGmouF.js → CommunityModels-BKBxewjm.js} +2 -2
- package/dist/{ConnectionView-C9-aVTdE.js → ConnectionView-Dyqm2oeV.js} +14 -14
- package/dist/{Dashboard-Djg-QyQG.js → Dashboard-Bsoj1oUW.js} +169 -169
- package/dist/{DashboardCreatorInline-DheLBs4U.js → DashboardCreatorInline-BLbkDxBF.js} +1 -1
- package/dist/{DashboardMobile-DIwLC8Sd.js → DashboardMobile-Ao8NtF1f.js} +16 -16
- package/dist/{DrilldownPane-mDNAGuxh.js → DrilldownPane-OZMttRBx.js} +4141 -4116
- package/dist/{Editor-DKEg-QmG.js → Editor-N40lTR0s.js} +1 -1
- package/dist/{IDE-mAy3Kq28.js → IDE-kbUDZPcL.js} +5 -5
- package/dist/{JobsView-DE0m37jI.js → JobsView-AYNUDnKG.js} +1 -1
- package/dist/{LLMChat-B7WdpPs5.js → LLMChat-CZTQUh53.js} +2 -2
- package/dist/{LLMConnectionList-cXc3m9rK.js → LLMConnectionList-BkvCZP5Q.js} +1 -1
- package/dist/{LLMView-BiF6W8Ql.js → LLMView-CaTlmLGb.js} +2 -2
- package/dist/{MobileIDE-qI_IZH95.js → MobileIDE-Bi7GNE2X.js} +10 -10
- package/dist/{ModelCard-DPtVjIMJ.js → ModelCard-Cd6OxExX.js} +2 -2
- package/dist/{ModelCreator-gJ86t8SP.js → ModelCreator-DeI-n86Z.js} +1 -1
- package/dist/{ModelView-C5y1IU22.js → ModelView-Surdb5KW.js} +2 -2
- package/dist/{ResultComponent-D1O-ASr7.js → ResultComponent-CXkTwZFS.js} +1 -1
- package/dist/{Sidebar-C6FJOAJk.js → Sidebar-CfOATms_.js} +60 -60
- package/dist/{TutorialPage-D17WxiUS.js → TutorialPage-IisHiPL6.js} +8 -8
- package/dist/{UserProfile-DPc9-B3S.js → UserProfile-CQAUnKyQ.js} +1 -1
- package/dist/components/chartHelpers.d.ts.map +1 -1
- package/dist/components/dashboard/useDashboard.d.ts.map +1 -1
- package/dist/composables/useCrossFilterEligibility.d.ts +18 -0
- package/dist/composables/useCrossFilterEligibility.d.ts.map +1 -0
- package/dist/composables/useResolvedCrossFilterController.d.ts +30 -0
- package/dist/composables/useResolvedCrossFilterController.d.ts.map +1 -0
- package/dist/dashboard.js +151 -77
- package/dist/dashboards/barChartSpec.d.ts +39 -0
- package/dist/dashboards/barChartSpec.d.ts.map +1 -1
- package/dist/dashboards/crossFilters.d.ts +3 -0
- package/dist/dashboards/crossFilters.d.ts.map +1 -1
- package/dist/entry.dashboard.d.ts +6 -2
- package/dist/entry.dashboard.d.ts.map +1 -1
- package/dist/main.d.ts +6 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/{queryExecutionService-obvMrWcu.js → queryExecutionService-KrjL0UCa.js} +167 -128
- package/dist/stores/queryExecutionService.d.ts +9 -0
- package/dist/stores/queryExecutionService.d.ts.map +1 -1
- package/dist/stores.js +1 -1
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{useDashboard-Cfrk1mUz.js → useDashboard-CtX3sEag.js} +275 -275
- package/dist/views.js +2 -2
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as J, ref as S, watch as de, createBlock as G, openBlock as m, withCtx as ne, createElementVNode as t, toDisplayString as N, normalizeClass as A, computed as p, createElementBlock as y, createCommentVNode as R, normalizeStyle as
|
|
1
|
+
import { defineComponent as J, ref as S, watch as de, createBlock as G, openBlock as m, withCtx as ne, createElementVNode as t, toDisplayString as N, normalizeClass as A, computed as p, createElementBlock as y, createCommentVNode as R, normalizeStyle as Ee, Fragment as me, renderList as be, createTextVNode as ge, unref as ie, createVNode as z, withDirectives as ue, withKeys as ye, vModelText as fe, onMounted as je, onUnmounted as nt, inject as j, resolveComponent as X, Teleport as ot, withModifiers as Be, resolveDynamicComponent as it, vModelRadio as rt, vShow as lt, renderSlot as Ne, onBeforeUnmount as at, nextTick as Pe } from "vue";
|
|
2
2
|
import { a as st, u as Ge, j as dt } from "./editorStore-BTPcljeQ.js";
|
|
3
3
|
import { u as ut } from "./toolLoopCore-CK_KVuAS.js";
|
|
4
|
-
import { u as ct, e as _e,
|
|
5
|
-
import { u as xe, D as
|
|
4
|
+
import { u as ct, e as _e, w as mt, h as w, a as ht, p as ft, q as vt, O as Ke } from "./queryExecutionService-KrjL0UCa.js";
|
|
5
|
+
import { u as xe, D as pt } from "./DashboardImportSelector-YRySr7k3.js";
|
|
6
6
|
import { M as ze } from "./ModalDialog-D-yprLG4.js";
|
|
7
7
|
import { _ as Y } from "./_plugin-vue_export-helper-BzkwV_Yn.js";
|
|
8
|
-
import { T as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { D as
|
|
12
|
-
import { L as
|
|
13
|
-
import { M as
|
|
14
|
-
import { D as
|
|
8
|
+
import { T as De } from "./Tooltip-D4kSH91A.js";
|
|
9
|
+
import yt from "./LoadingButton-BdM3Rygq.js";
|
|
10
|
+
import Ie from "./ErrorMessage-QW4GXCEn.js";
|
|
11
|
+
import { D as gt, V as bt } from "./DrilldownPane-OZMttRBx.js";
|
|
12
|
+
import { L as $e } from "./LoadingView-DXMQWonY.js";
|
|
13
|
+
import { M as Ct } from "./MarkdownRenderer-cdaHKql1.js";
|
|
14
|
+
import { D as wt } from "./DataTable-Bf7xeKSf.js";
|
|
15
15
|
import { C as ce, R as We } from "./snowflake-CY1Gnu3y.js";
|
|
16
|
-
import { u as
|
|
17
|
-
import { e as
|
|
18
|
-
import { S as
|
|
19
|
-
import { u as
|
|
20
|
-
const
|
|
16
|
+
import { u as kt } from "./config-AzVcp1pU.js";
|
|
17
|
+
import { e as Te, K as se, a as he, R as St } from "./toggleHighContrast-q6tdBRv8.js";
|
|
18
|
+
import { S as Dt } from "./SymbolsPane-CZaqqs5e.js";
|
|
19
|
+
import { u as Et, R as Tt } from "./useResizableDialog-BZgmdwim.js";
|
|
20
|
+
const It = { class: "share-popup-body" }, $t = { class: "json-container" }, Lt = {
|
|
21
21
|
"data-testid": "dashboard-json",
|
|
22
22
|
class: "json-code"
|
|
23
|
-
},
|
|
23
|
+
}, Mt = /* @__PURE__ */ J({
|
|
24
24
|
__name: "DashboardSharePopup",
|
|
25
25
|
props: {
|
|
26
26
|
dashboard: {},
|
|
@@ -88,20 +88,20 @@ const Tt = { class: "share-popup-body" }, It = { class: "json-container" }, $t =
|
|
|
88
88
|
])
|
|
89
89
|
]),
|
|
90
90
|
default: ne(() => [
|
|
91
|
-
t("div",
|
|
91
|
+
t("div", It, [
|
|
92
92
|
a[3] || (a[3] = t("p", { class: "share-popup-description" }, " Copy a definition of this dashboard; it can be imported by others with the same model defined. Existing runtime/results info is removed automatically. ", -1)),
|
|
93
|
-
t("div",
|
|
93
|
+
t("div", $t, [
|
|
94
94
|
a[2] || (a[2] = t("div", { class: "json-toolbar" }, [
|
|
95
95
|
t("span", { class: "json-toolbar-label" }, "dashboard.json")
|
|
96
96
|
], -1)),
|
|
97
|
-
t("pre",
|
|
97
|
+
t("pre", Lt, N(r.value), 1)
|
|
98
98
|
])
|
|
99
99
|
])
|
|
100
100
|
]),
|
|
101
101
|
_: 1
|
|
102
102
|
}, 8, ["show"]));
|
|
103
103
|
}
|
|
104
|
-
}),
|
|
104
|
+
}), Rt = /* @__PURE__ */ Y(Mt, [["__scopeId", "data-v-fc505fa3"]]), At = ["onClick"], qt = { class: "completion-details" }, Ft = { class: "completion-label" }, xt = { class: "completion-description" }, Ht = /* @__PURE__ */ J({
|
|
105
105
|
__name: "DashboardFilterAutocomplete",
|
|
106
106
|
props: {
|
|
107
107
|
inputValue: {
|
|
@@ -176,7 +176,7 @@ const Tt = { class: "share-popup-body" }, It = { class: "json-container" }, $t =
|
|
|
176
176
|
ref_key: "dropdown",
|
|
177
177
|
ref: a,
|
|
178
178
|
class: "autocomplete-dropdown",
|
|
179
|
-
style:
|
|
179
|
+
style: Ee(v.value)
|
|
180
180
|
}, [
|
|
181
181
|
(m(!0), y(me, null, be(C.value, (T, H) => (m(), y("div", {
|
|
182
182
|
key: H,
|
|
@@ -193,28 +193,28 @@ const Tt = { class: "share-popup-body" }, It = { class: "json-container" }, $t =
|
|
|
193
193
|
ge(N(T.type === "function" ? "ƒ" : T.type === "variable" ? "V" : T.type === "class" ? "C" : T.type === "interface" ? "I" : T.type === "method" ? "M" : T.type === "property" ? "P" : T.type === "field" ? "F" : T.type === "constant" ? "K" : T.type === "enum" ? "E" : T.type === "keyword" ? "K" : "S"), 1)
|
|
194
194
|
], 64))
|
|
195
195
|
], 2),
|
|
196
|
-
t("div",
|
|
197
|
-
t("div",
|
|
198
|
-
t("div",
|
|
196
|
+
t("div", qt, [
|
|
197
|
+
t("div", Ft, N(T.label), 1),
|
|
198
|
+
t("div", xt, N(T.description), 1)
|
|
199
199
|
])
|
|
200
|
-
], 10,
|
|
200
|
+
], 10, At))), 128))
|
|
201
201
|
], 4)) : R("", !0);
|
|
202
202
|
}
|
|
203
|
-
}),
|
|
203
|
+
}), Vt = /* @__PURE__ */ Y(Ht, [["__scopeId", "data-v-89468628"]]), Ot = { class: "filter-container" }, Qt = { class: "filter-input-wrapper" }, Bt = ["value", "disabled"], Nt = ["value", "placeholder", "disabled"], Pt = {
|
|
204
204
|
key: 0,
|
|
205
205
|
class: "dropdown-error-message",
|
|
206
206
|
"data-testid": "dropdown-error-message"
|
|
207
|
-
},
|
|
207
|
+
}, Kt = { class: "dropdown-actions" }, Wt = ["disabled"], Ut = ["disabled"], jt = {
|
|
208
208
|
key: 0,
|
|
209
209
|
class: "loader-container"
|
|
210
|
-
},
|
|
210
|
+
}, Gt = ["disabled"], _t = { class: "filter-inline-actions" }, zt = {
|
|
211
211
|
key: 0,
|
|
212
212
|
class: "filter-status error",
|
|
213
213
|
"data-testid": "filter-error-icon"
|
|
214
|
-
},
|
|
214
|
+
}, Jt = ["disabled"], Yt = { class: "button-content" }, Zt = ["disabled"], Xt = { class: "button-content" }, en = {
|
|
215
215
|
key: 0,
|
|
216
216
|
class: "loader-container"
|
|
217
|
-
},
|
|
217
|
+
}, tn = ["disabled"], nn = { class: "button-content" }, on = /* @__PURE__ */ J({
|
|
218
218
|
__name: "DashboardHeaderFilterInput",
|
|
219
219
|
props: {
|
|
220
220
|
filterValue: {
|
|
@@ -302,8 +302,8 @@ const Tt = { class: "share-popup-body" }, It = { class: "json-container" }, $t =
|
|
|
302
302
|
{
|
|
303
303
|
enabled: () => E.value
|
|
304
304
|
}
|
|
305
|
-
), (b, h) => (m(), y("div",
|
|
306
|
-
t("div",
|
|
305
|
+
), (b, h) => (m(), y("div", Ot, [
|
|
306
|
+
t("div", Qt, [
|
|
307
307
|
t("input", {
|
|
308
308
|
id: "filter",
|
|
309
309
|
ref_key: "filterInputRef",
|
|
@@ -317,7 +317,7 @@ const Tt = { class: "share-popup-body" }, It = { class: "json-container" }, $t =
|
|
|
317
317
|
placeholder: "Add a global filter...",
|
|
318
318
|
class: A({ "filter-error": g.value === "error" }),
|
|
319
319
|
disabled: i.value
|
|
320
|
-
}, null, 42,
|
|
320
|
+
}, null, 42, Bt),
|
|
321
321
|
E.value ? (m(), y("div", {
|
|
322
322
|
key: 0,
|
|
323
323
|
ref_key: "filterDropdownRef",
|
|
@@ -346,12 +346,12 @@ Use Ctrl+Enter to apply, Ctrl+Shift+Enter for text to SQL` : `Use a SQL conditio
|
|
|
346
346
|
Use Ctrl+Enter to apply`,
|
|
347
347
|
disabled: i.value,
|
|
348
348
|
rows: "4"
|
|
349
|
-
}, null, 42,
|
|
350
|
-
e.filterError ? (m(), y("div",
|
|
349
|
+
}, null, 42, Nt),
|
|
350
|
+
e.filterError ? (m(), y("div", Pt, [
|
|
351
351
|
h[2] || (h[2] = t("i", { class: "mdi mdi-alert-circle-outline" }, null, -1)),
|
|
352
352
|
t("span", null, N(e.filterError), 1)
|
|
353
353
|
])) : R("", !0),
|
|
354
|
-
t("div",
|
|
354
|
+
t("div", Kt, [
|
|
355
355
|
t("button", {
|
|
356
356
|
onClick: V,
|
|
357
357
|
class: A(["apply-button", { "has-changes": v.value }]),
|
|
@@ -360,7 +360,7 @@ Use Ctrl+Enter to apply`,
|
|
|
360
360
|
}, [...h[3] || (h[3] = [
|
|
361
361
|
t("i", { class: "mdi mdi-check" }, null, -1),
|
|
362
362
|
ge(" Apply ", -1)
|
|
363
|
-
])], 10,
|
|
363
|
+
])], 10, Wt),
|
|
364
364
|
ie(r).hasActiveDefaultConnection ? (m(), y("button", {
|
|
365
365
|
key: 0,
|
|
366
366
|
onClick: K,
|
|
@@ -371,11 +371,11 @@ Use Ctrl+Enter to apply`,
|
|
|
371
371
|
t("i", {
|
|
372
372
|
class: A(["mdi mdi-auto-fix", { hidden: i.value }])
|
|
373
373
|
}, null, 2),
|
|
374
|
-
i.value ? (m(), y("div",
|
|
374
|
+
i.value ? (m(), y("div", jt, [...h[4] || (h[4] = [
|
|
375
375
|
t("div", { class: "loader" }, null, -1)
|
|
376
376
|
])])) : R("", !0),
|
|
377
377
|
h[5] || (h[5] = ge(" Text to Filter ", -1))
|
|
378
|
-
], 8,
|
|
378
|
+
], 8, Ut)) : R("", !0),
|
|
379
379
|
t("button", {
|
|
380
380
|
onClick: k,
|
|
381
381
|
class: "clear-button",
|
|
@@ -384,20 +384,20 @@ Use Ctrl+Enter to apply`,
|
|
|
384
384
|
}, [...h[6] || (h[6] = [
|
|
385
385
|
t("i", { class: "mdi mdi-close-circle-outline" }, null, -1),
|
|
386
386
|
ge(" Clear ", -1)
|
|
387
|
-
])], 8,
|
|
387
|
+
])], 8, Gt)
|
|
388
388
|
])
|
|
389
389
|
], 512)) : R("", !0),
|
|
390
|
-
(E.value ? f.value : s.value) ? (m(), G(
|
|
390
|
+
(E.value ? f.value : s.value) ? (m(), G(Vt, {
|
|
391
391
|
key: 1,
|
|
392
392
|
"input-value": a.value,
|
|
393
393
|
"completion-items": e.globalCompletion,
|
|
394
394
|
"input-element": E.value ? f.value : s.value,
|
|
395
395
|
onSelectCompletion: B
|
|
396
396
|
}, null, 8, ["input-value", "completion-items", "input-element"])) : R("", !0),
|
|
397
|
-
t("div",
|
|
398
|
-
g.value === "error" ? (m(), y("div",
|
|
397
|
+
t("div", _t, [
|
|
398
|
+
g.value === "error" ? (m(), y("div", zt, [
|
|
399
399
|
h[8] || (h[8] = t("i", { class: "mdi mdi-alert-circle-outline" }, null, -1)),
|
|
400
|
-
z(
|
|
400
|
+
z(De, {
|
|
401
401
|
content: e.filterError || "Unknown Error",
|
|
402
402
|
position: "bottom"
|
|
403
403
|
}, {
|
|
@@ -417,9 +417,9 @@ Use Ctrl+Enter to apply`,
|
|
|
417
417
|
disabled: i.value,
|
|
418
418
|
title: "Apply filter (Enter)"
|
|
419
419
|
}, [
|
|
420
|
-
t("div",
|
|
420
|
+
t("div", Yt, [
|
|
421
421
|
h[10] || (h[10] = t("i", { class: "mdi mdi-magnify" }, null, -1)),
|
|
422
|
-
z(
|
|
422
|
+
z(De, {
|
|
423
423
|
content: v.value ? "Apply changes (Enter)" : "Search (Enter)",
|
|
424
424
|
position: "top"
|
|
425
425
|
}, {
|
|
@@ -429,7 +429,7 @@ Use Ctrl+Enter to apply`,
|
|
|
429
429
|
_: 1
|
|
430
430
|
}, 8, ["content"])
|
|
431
431
|
])
|
|
432
|
-
], 10,
|
|
432
|
+
], 10, Jt),
|
|
433
433
|
ie(r).hasActiveDefaultConnection ? (m(), y("button", {
|
|
434
434
|
key: 1,
|
|
435
435
|
onClick: K,
|
|
@@ -438,14 +438,14 @@ Use Ctrl+Enter to apply`,
|
|
|
438
438
|
disabled: i.value,
|
|
439
439
|
title: "Transform text to filter if you have a configured LLM connection"
|
|
440
440
|
}, [
|
|
441
|
-
t("div",
|
|
441
|
+
t("div", Xt, [
|
|
442
442
|
t("i", {
|
|
443
443
|
class: A(["mdi mdi-auto-fix", { hidden: i.value }])
|
|
444
444
|
}, null, 2),
|
|
445
|
-
i.value ? (m(), y("div",
|
|
445
|
+
i.value ? (m(), y("div", en, [...h[11] || (h[11] = [
|
|
446
446
|
t("div", { class: "loader" }, null, -1)
|
|
447
447
|
])])) : R("", !0),
|
|
448
|
-
z(
|
|
448
|
+
z(De, {
|
|
449
449
|
content: i.value ? "Processing..." : "Text to filter (Ctrl+Shift+Enter)",
|
|
450
450
|
position: "top"
|
|
451
451
|
}, {
|
|
@@ -455,7 +455,7 @@ Use Ctrl+Enter to apply`,
|
|
|
455
455
|
_: 1
|
|
456
456
|
}, 8, ["content"])
|
|
457
457
|
])
|
|
458
|
-
], 8,
|
|
458
|
+
], 8, Zt)) : R("", !0),
|
|
459
459
|
D.value ? (m(), y("button", {
|
|
460
460
|
key: 2,
|
|
461
461
|
onClick: k,
|
|
@@ -464,9 +464,9 @@ Use Ctrl+Enter to apply`,
|
|
|
464
464
|
disabled: i.value,
|
|
465
465
|
title: "Clear all filters"
|
|
466
466
|
}, [
|
|
467
|
-
t("div",
|
|
467
|
+
t("div", nn, [
|
|
468
468
|
h[14] || (h[14] = t("i", { class: "mdi mdi-close" }, null, -1)),
|
|
469
|
-
z(
|
|
469
|
+
z(De, {
|
|
470
470
|
content: "Clear all filters",
|
|
471
471
|
position: "top"
|
|
472
472
|
}, {
|
|
@@ -476,31 +476,31 @@ Use Ctrl+Enter to apply`,
|
|
|
476
476
|
_: 1
|
|
477
477
|
})
|
|
478
478
|
])
|
|
479
|
-
], 8,
|
|
479
|
+
], 8, tn)) : R("", !0)
|
|
480
480
|
])
|
|
481
481
|
])
|
|
482
482
|
]));
|
|
483
483
|
}
|
|
484
|
-
}),
|
|
484
|
+
}), rn = /* @__PURE__ */ Y(on, [["__scopeId", "data-v-ff037c5f"]]), ln = {
|
|
485
485
|
class: "dashboard-controls",
|
|
486
486
|
"data-testid": "dashboard-controls"
|
|
487
|
-
},
|
|
487
|
+
}, an = {
|
|
488
488
|
key: 0,
|
|
489
489
|
class: "editable-text"
|
|
490
|
-
},
|
|
490
|
+
}, sn = { class: "title-text" }, dn = {
|
|
491
491
|
key: 0,
|
|
492
492
|
class: "edit-indicator",
|
|
493
493
|
"data-testid": "edit-dashboard-title"
|
|
494
|
-
},
|
|
494
|
+
}, un = {
|
|
495
495
|
key: 0,
|
|
496
496
|
class: "dashboard-right-controls"
|
|
497
|
-
},
|
|
497
|
+
}, cn = {
|
|
498
498
|
class: "connection-selector",
|
|
499
499
|
"data-testid": "connection-selector-wrapper"
|
|
500
|
-
},
|
|
500
|
+
}, mn = { class: "select-wrapper" }, hn = ["value", "title"], fn = ["value"], vn = { class: "grid-actions top-actions" }, pn = { class: "controls-row filter-row" }, yn = { class: "grid-actions filter-actions" }, gn = {
|
|
501
501
|
class: "mode-selector",
|
|
502
502
|
"data-testid": "mode-selector-wrapper"
|
|
503
|
-
},
|
|
503
|
+
}, bn = { class: "select-wrapper" }, Cn = ["value", "disabled"], wn = /* @__PURE__ */ J({
|
|
504
504
|
__name: "DashboardHeader",
|
|
505
505
|
props: {
|
|
506
506
|
dashboard: {
|
|
@@ -595,7 +595,7 @@ Use Ctrl+Enter to apply`,
|
|
|
595
595
|
});
|
|
596
596
|
return (h, I) => {
|
|
597
597
|
var Z, re;
|
|
598
|
-
return m(), y("div",
|
|
598
|
+
return m(), y("div", ln, [
|
|
599
599
|
t("div", {
|
|
600
600
|
class: A(["controls-row title-row", { "view-title-row": e.dashboard.state !== "editing" }])
|
|
601
601
|
}, [
|
|
@@ -618,16 +618,16 @@ Use Ctrl+Enter to apply`,
|
|
|
618
618
|
type: "text"
|
|
619
619
|
}, null, 544)), [
|
|
620
620
|
[fe, v.value]
|
|
621
|
-
]) : (m(), y("span",
|
|
622
|
-
t("span",
|
|
623
|
-
e.editsLocked ? R("", !0) : (m(), y("span",
|
|
621
|
+
]) : (m(), y("span", an, [
|
|
622
|
+
t("span", sn, N(((Z = e.dashboard) == null ? void 0 : Z.name) || "Untitled Dashboard"), 1),
|
|
623
|
+
e.editsLocked ? R("", !0) : (m(), y("span", dn, [...I[6] || (I[6] = [
|
|
624
624
|
t("i", { class: "mdi mdi-pencil-outline" }, null, -1)
|
|
625
625
|
])]))
|
|
626
626
|
]))
|
|
627
627
|
]),
|
|
628
|
-
e.dashboard.state === "editing" ? (m(), y("div",
|
|
629
|
-
t("div",
|
|
630
|
-
t("div",
|
|
628
|
+
e.dashboard.state === "editing" ? (m(), y("div", un, [
|
|
629
|
+
t("div", cn, [
|
|
630
|
+
t("div", mn, [
|
|
631
631
|
I[7] || (I[7] = t("i", { class: "mdi mdi-database-outline select-icon" }, null, -1)),
|
|
632
632
|
t("select", {
|
|
633
633
|
id: "connection",
|
|
@@ -641,17 +641,17 @@ Use Ctrl+Enter to apply`,
|
|
|
641
641
|
), (U) => (m(), y("option", {
|
|
642
642
|
key: U.name,
|
|
643
643
|
value: U.name
|
|
644
|
-
}, N(U.name), 9,
|
|
645
|
-
], 40,
|
|
644
|
+
}, N(U.name), 9, fn))), 128))
|
|
645
|
+
], 40, hn)
|
|
646
646
|
])
|
|
647
647
|
]),
|
|
648
|
-
z(
|
|
648
|
+
z(pt, {
|
|
649
649
|
"available-imports": O.value,
|
|
650
650
|
"active-imports": $.value,
|
|
651
651
|
"onUpdate:imports": g,
|
|
652
652
|
onExplore: I[2] || (I[2] = (U) => ie(s).openTab("editors", null, U.id))
|
|
653
653
|
}, null, 8, ["available-imports", "active-imports"]),
|
|
654
|
-
t("div",
|
|
654
|
+
t("div", vn, [
|
|
655
655
|
t("button", {
|
|
656
656
|
onClick: I[3] || (I[3] = (U) => h.$emit("add-item")),
|
|
657
657
|
class: "btn btn-success",
|
|
@@ -679,8 +679,8 @@ Use Ctrl+Enter to apply`,
|
|
|
679
679
|
])
|
|
680
680
|
])) : R("", !0)
|
|
681
681
|
], 2),
|
|
682
|
-
t("div",
|
|
683
|
-
z(
|
|
682
|
+
t("div", pn, [
|
|
683
|
+
z(rn, {
|
|
684
684
|
"filter-value": ((re = e.dashboard) == null ? void 0 : re.filter) || "",
|
|
685
685
|
"filter-error": e.filterError,
|
|
686
686
|
"is-loading": f.value,
|
|
@@ -689,8 +689,8 @@ Use Ctrl+Enter to apply`,
|
|
|
689
689
|
onFilterApply: V,
|
|
690
690
|
onClearFilter: I[5] || (I[5] = (U) => h.$emit("clear-filter", ""))
|
|
691
691
|
}, null, 8, ["filter-value", "filter-error", "is-loading", "global-completion", "validate-filter"]),
|
|
692
|
-
t("div",
|
|
693
|
-
z(
|
|
692
|
+
t("div", yn, [
|
|
693
|
+
z(yt, {
|
|
694
694
|
action: k,
|
|
695
695
|
"use-default-style": !1,
|
|
696
696
|
class: "btn btn-secondary filter-action-btn",
|
|
@@ -734,8 +734,8 @@ Use Ctrl+Enter to apply`,
|
|
|
734
734
|
}, null, -1),
|
|
735
735
|
t("span", { class: "filter-action-label" }, "Refresh", -1)
|
|
736
736
|
])]),
|
|
737
|
-
t("div",
|
|
738
|
-
t("div",
|
|
737
|
+
t("div", gn, [
|
|
738
|
+
t("div", bn, [
|
|
739
739
|
t("i", {
|
|
740
740
|
class: A(b.value + " select-icon")
|
|
741
741
|
}, null, 2),
|
|
@@ -759,12 +759,12 @@ Use Ctrl+Enter to apply`,
|
|
|
759
759
|
value: "fullscreen",
|
|
760
760
|
"data-testid": "fullscreen-mode-option"
|
|
761
761
|
}, "Fullscreen", -1)
|
|
762
|
-
])], 40,
|
|
762
|
+
])], 40, Cn)
|
|
763
763
|
])
|
|
764
764
|
])
|
|
765
765
|
])
|
|
766
766
|
]),
|
|
767
|
-
z(
|
|
767
|
+
z(Rt, {
|
|
768
768
|
dashboard: e.dashboard,
|
|
769
769
|
"is-open": c.value,
|
|
770
770
|
onClose: D
|
|
@@ -772,8 +772,8 @@ Use Ctrl+Enter to apply`,
|
|
|
772
772
|
]);
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
-
}),
|
|
776
|
-
function
|
|
775
|
+
}), Ki = /* @__PURE__ */ Y(wn, [["__scopeId", "data-v-4c51e2bc"]]);
|
|
776
|
+
function Le(e) {
|
|
777
777
|
const o = S(null), n = S(!1), l = S(null), r = S(!1), i = S(null), s = S(!1), f = () => {
|
|
778
778
|
i.value && (clearTimeout(i.value), i.value = null);
|
|
779
779
|
}, c = () => {
|
|
@@ -841,13 +841,13 @@ function Me(e) {
|
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
843
|
}
|
|
844
|
-
const
|
|
844
|
+
const kn = J({
|
|
845
845
|
name: "DashboardChart",
|
|
846
846
|
components: {
|
|
847
|
-
VegaLiteChart:
|
|
848
|
-
ErrorMessage:
|
|
849
|
-
LoadingView:
|
|
850
|
-
DrilldownPane:
|
|
847
|
+
VegaLiteChart: bt,
|
|
848
|
+
ErrorMessage: Ie,
|
|
849
|
+
LoadingView: $e,
|
|
850
|
+
DrilldownPane: gt
|
|
851
851
|
},
|
|
852
852
|
props: {
|
|
853
853
|
dashboardId: {
|
|
@@ -912,7 +912,7 @@ const wn = J({
|
|
|
912
912
|
handleLocalRefresh: b,
|
|
913
913
|
onChartMouseEnter: h,
|
|
914
914
|
onChartMouseLeave: I
|
|
915
|
-
} =
|
|
915
|
+
} = Le({
|
|
916
916
|
dashboardId: () => e.dashboardId,
|
|
917
917
|
itemId: () => e.itemId,
|
|
918
918
|
query: r,
|
|
@@ -993,11 +993,11 @@ const wn = J({
|
|
|
993
993
|
hasDrilldown: k
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
}),
|
|
996
|
+
}), Sn = {
|
|
997
997
|
key: 3,
|
|
998
998
|
class: "loading-overlay"
|
|
999
999
|
};
|
|
1000
|
-
function
|
|
1000
|
+
function Dn(e, o, n, l, r, i) {
|
|
1001
1001
|
const s = X("drilldown-pane"), f = X("ErrorMessage"), c = X("VegaLiteChart"), a = X("LoadingView");
|
|
1002
1002
|
return m(), y("div", {
|
|
1003
1003
|
ref: "chartContainer",
|
|
@@ -1037,7 +1037,7 @@ function Sn(e, o, n, l, r, i) {
|
|
|
1037
1037
|
onDrilldownClick: e.activateDrilldown,
|
|
1038
1038
|
onRevertDrilldown: e.revertDrilldown
|
|
1039
1039
|
}, null, 8, ["id", "columns", "data", "showControls", "initialConfig", "containerHeight", "container-width", "onChartConfigChange", "chartSelection", "chartTitle", "drilldown-active", "onDimensionClick", "onBackgroundClick", "onRefreshClick", "onDrilldownClick", "onRevertDrilldown"])) : R("", !0),
|
|
1040
|
-
e.loading && e.showLoading ? (m(), y("div",
|
|
1040
|
+
e.loading && e.showLoading ? (m(), y("div", Sn, [
|
|
1041
1041
|
z(a, {
|
|
1042
1042
|
startTime: e.startTime,
|
|
1043
1043
|
text: "",
|
|
@@ -1067,11 +1067,11 @@ function Sn(e, o, n, l, r, i) {
|
|
|
1067
1067
|
], 2)) : R("", !0)
|
|
1068
1068
|
], 34);
|
|
1069
1069
|
}
|
|
1070
|
-
const
|
|
1070
|
+
const En = /* @__PURE__ */ Y(kn, [["render", Dn], ["__scopeId", "data-v-36046d80"]]), Tn = J({
|
|
1071
1071
|
name: "DynamicMarkdownChart",
|
|
1072
1072
|
components: {
|
|
1073
|
-
ErrorMessage:
|
|
1074
|
-
MarkdownRenderer:
|
|
1073
|
+
ErrorMessage: Ie,
|
|
1074
|
+
MarkdownRenderer: Ct
|
|
1075
1075
|
},
|
|
1076
1076
|
props: {
|
|
1077
1077
|
dashboardId: {
|
|
@@ -1112,7 +1112,7 @@ const Dn = /* @__PURE__ */ Y(wn, [["render", Sn], ["__scopeId", "data-v-36046d80
|
|
|
1112
1112
|
handleLocalRefresh: M,
|
|
1113
1113
|
onChartMouseEnter: T,
|
|
1114
1114
|
onChartMouseLeave: H
|
|
1115
|
-
} =
|
|
1115
|
+
} = Le({
|
|
1116
1116
|
dashboardId: () => e.dashboardId,
|
|
1117
1117
|
itemId: () => e.itemId,
|
|
1118
1118
|
query: r,
|
|
@@ -1141,7 +1141,7 @@ const Dn = /* @__PURE__ */ Y(wn, [["render", Sn], ["__scopeId", "data-v-36046d80
|
|
|
1141
1141
|
};
|
|
1142
1142
|
}
|
|
1143
1143
|
});
|
|
1144
|
-
function
|
|
1144
|
+
function In(e, o, n, l, r, i) {
|
|
1145
1145
|
const s = X("ErrorMessage"), f = X("MarkdownRenderer");
|
|
1146
1146
|
return m(), y("div", {
|
|
1147
1147
|
ref: "chartContainer",
|
|
@@ -1176,12 +1176,12 @@ function Tn(e, o, n, l, r, i) {
|
|
|
1176
1176
|
], 2)) : R("", !0)
|
|
1177
1177
|
], 34);
|
|
1178
1178
|
}
|
|
1179
|
-
const
|
|
1179
|
+
const $n = /* @__PURE__ */ Y(Tn, [["render", In], ["__scopeId", "data-v-ffafce48"]]), Ln = J({
|
|
1180
1180
|
name: "DashboardTable",
|
|
1181
1181
|
components: {
|
|
1182
|
-
DataTable:
|
|
1183
|
-
ErrorMessage:
|
|
1184
|
-
LoadingView:
|
|
1182
|
+
DataTable: wt,
|
|
1183
|
+
ErrorMessage: Ie,
|
|
1184
|
+
LoadingView: $e
|
|
1185
1185
|
},
|
|
1186
1186
|
props: {
|
|
1187
1187
|
dashboardId: {
|
|
@@ -1223,7 +1223,7 @@ const In = /* @__PURE__ */ Y(En, [["render", Tn], ["__scopeId", "data-v-ffafce48
|
|
|
1223
1223
|
handleLocalRefresh: H,
|
|
1224
1224
|
onChartMouseEnter: K,
|
|
1225
1225
|
onChartMouseLeave: O
|
|
1226
|
-
} =
|
|
1226
|
+
} = Le({
|
|
1227
1227
|
dashboardId: () => e.dashboardId,
|
|
1228
1228
|
itemId: () => e.itemId,
|
|
1229
1229
|
query: l,
|
|
@@ -1265,11 +1265,11 @@ const In = /* @__PURE__ */ Y(En, [["render", Tn], ["__scopeId", "data-v-ffafce48
|
|
|
1265
1265
|
onChartMouseLeave: O
|
|
1266
1266
|
};
|
|
1267
1267
|
}
|
|
1268
|
-
}),
|
|
1268
|
+
}), Mn = {
|
|
1269
1269
|
key: 2,
|
|
1270
1270
|
class: "loading-overlay"
|
|
1271
1271
|
};
|
|
1272
|
-
function
|
|
1272
|
+
function Rn(e, o, n, l, r, i) {
|
|
1273
1273
|
const s = X("ErrorMessage"), f = X("data-table"), c = X("LoadingView");
|
|
1274
1274
|
return m(), y("div", {
|
|
1275
1275
|
ref: "chartContainer",
|
|
@@ -1295,7 +1295,7 @@ function Mn(e, o, n, l, r, i) {
|
|
|
1295
1295
|
onCellClick: e.handleDimensionClick,
|
|
1296
1296
|
onBackgroundClick: e.handleBackgroundClick
|
|
1297
1297
|
}, null, 8, ["id", "headers", "results", "containerHeight", "onCellClick", "onBackgroundClick"])) : R("", !0),
|
|
1298
|
-
e.loading && e.showLoading ? (m(), y("div",
|
|
1298
|
+
e.loading && e.showLoading ? (m(), y("div", Mn, [
|
|
1299
1299
|
z(c, {
|
|
1300
1300
|
startTime: e.startTime,
|
|
1301
1301
|
text: "",
|
|
@@ -1317,7 +1317,7 @@ function Mn(e, o, n, l, r, i) {
|
|
|
1317
1317
|
], 2)) : R("", !0)
|
|
1318
1318
|
], 34);
|
|
1319
1319
|
}
|
|
1320
|
-
const
|
|
1320
|
+
const An = /* @__PURE__ */ Y(Ln, [["render", Rn], ["__scopeId", "data-v-2fa93a82"]]), qn = {
|
|
1321
1321
|
data() {
|
|
1322
1322
|
return {
|
|
1323
1323
|
selectedValue: "",
|
|
@@ -1357,7 +1357,7 @@ const Rn = /* @__PURE__ */ Y($n, [["render", Mn], ["__scopeId", "data-v-2fa93a82
|
|
|
1357
1357
|
}
|
|
1358
1358
|
},
|
|
1359
1359
|
setup() {
|
|
1360
|
-
const e = j("userSettingsStore", null), o =
|
|
1360
|
+
const e = j("userSettingsStore", null), o = kt(e);
|
|
1361
1361
|
return {
|
|
1362
1362
|
settingsStore: e,
|
|
1363
1363
|
currentTheme: o
|
|
@@ -1490,15 +1490,15 @@ const Rn = /* @__PURE__ */ Y($n, [["render", Mn], ["__scopeId", "data-v-2fa93a82
|
|
|
1490
1490
|
});
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
|
-
},
|
|
1493
|
+
}, Fn = { class: "result-select row pa-0 ba-0" }, xn = { class: "select-container" }, Hn = { class: "search-input-wrapper" }, Vn = {
|
|
1494
1494
|
key: 0,
|
|
1495
1495
|
class: "inline-label"
|
|
1496
|
-
},
|
|
1497
|
-
function
|
|
1498
|
-
return m(), y("div",
|
|
1499
|
-
t("div",
|
|
1500
|
-
t("div",
|
|
1501
|
-
i.hasSelection ? (m(), y("span",
|
|
1496
|
+
}, On = ["placeholder", "disabled"], Qn = ["onMousedown", "innerHTML"];
|
|
1497
|
+
function Bn(e, o, n, l, r, i) {
|
|
1498
|
+
return m(), y("div", Fn, [
|
|
1499
|
+
t("div", xn, [
|
|
1500
|
+
t("div", Hn, [
|
|
1501
|
+
i.hasSelection ? (m(), y("span", Vn, N(i.fieldLabel) + ": ", 1)) : R("", !0),
|
|
1502
1502
|
ue(t("input", {
|
|
1503
1503
|
ref: "searchInput",
|
|
1504
1504
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => r.searchText = s),
|
|
@@ -1509,7 +1509,7 @@ function Qn(e, o, n, l, r, i) {
|
|
|
1509
1509
|
onFocus: o[1] || (o[1] = (...s) => i.handleFocus && i.handleFocus(...s)),
|
|
1510
1510
|
onInput: o[2] || (o[2] = (...s) => i.onSearchInput && i.onSearchInput(...s)),
|
|
1511
1511
|
onBlur: o[3] || (o[3] = (...s) => i.handleBlur && i.handleBlur(...s))
|
|
1512
|
-
}, null, 42,
|
|
1512
|
+
}, null, 42, On), [
|
|
1513
1513
|
[fe, r.searchText]
|
|
1514
1514
|
]),
|
|
1515
1515
|
o[5] || (o[5] = t("span", { class: "search-icon" }, [
|
|
@@ -1535,7 +1535,7 @@ function Qn(e, o, n, l, r, i) {
|
|
|
1535
1535
|
r.showDropdown && i.filteredOptions.length > 0 ? (m(), y("div", {
|
|
1536
1536
|
key: 0,
|
|
1537
1537
|
class: "dropdown-list",
|
|
1538
|
-
style:
|
|
1538
|
+
style: Ee(i.dropdownStyle)
|
|
1539
1539
|
}, [
|
|
1540
1540
|
t("div", {
|
|
1541
1541
|
class: A(["dropdown-item select-all", { selected: !r.selectedValue }]),
|
|
@@ -1546,12 +1546,12 @@ function Qn(e, o, n, l, r, i) {
|
|
|
1546
1546
|
class: A(["dropdown-item", { selected: r.selectedValue === s.value }]),
|
|
1547
1547
|
onMousedown: Be((c) => i.selectOption(s), ["prevent"]),
|
|
1548
1548
|
innerHTML: i.highlightMatch(s.label)
|
|
1549
|
-
}, null, 42,
|
|
1549
|
+
}, null, 42, Qn))), 128))
|
|
1550
1550
|
], 4)) : R("", !0),
|
|
1551
1551
|
r.showDropdown && r.searchText && i.filteredOptions.length === 0 ? (m(), y("div", {
|
|
1552
1552
|
key: 1,
|
|
1553
1553
|
class: "dropdown-list",
|
|
1554
|
-
style:
|
|
1554
|
+
style: Ee(i.dropdownStyle)
|
|
1555
1555
|
}, [...o[6] || (o[6] = [
|
|
1556
1556
|
t("div", { class: "dropdown-item no-results" }, "No matches found", -1)
|
|
1557
1557
|
])], 4)) : R("", !0)
|
|
@@ -1559,12 +1559,12 @@ function Qn(e, o, n, l, r, i) {
|
|
|
1559
1559
|
])
|
|
1560
1560
|
]);
|
|
1561
1561
|
}
|
|
1562
|
-
const
|
|
1562
|
+
const Nn = /* @__PURE__ */ Y(qn, [["render", Bn], ["__scopeId", "data-v-660a47c4"]]), Pn = J({
|
|
1563
1563
|
name: "DashboardFilter",
|
|
1564
1564
|
components: {
|
|
1565
|
-
DashboardDataSelector:
|
|
1566
|
-
ErrorMessage:
|
|
1567
|
-
LoadingView:
|
|
1565
|
+
DashboardDataSelector: Nn,
|
|
1566
|
+
ErrorMessage: Ie,
|
|
1567
|
+
LoadingView: $e
|
|
1568
1568
|
},
|
|
1569
1569
|
props: {
|
|
1570
1570
|
dashboardId: {
|
|
@@ -1606,7 +1606,7 @@ const Bn = /* @__PURE__ */ Y(An, [["render", Qn], ["__scopeId", "data-v-660a47c4
|
|
|
1606
1606
|
handleLocalRefresh: H,
|
|
1607
1607
|
onChartMouseEnter: K,
|
|
1608
1608
|
onChartMouseLeave: O
|
|
1609
|
-
} =
|
|
1609
|
+
} = Le({
|
|
1610
1610
|
dashboardId: () => e.dashboardId,
|
|
1611
1611
|
itemId: () => e.itemId,
|
|
1612
1612
|
query: l,
|
|
@@ -1648,11 +1648,11 @@ const Bn = /* @__PURE__ */ Y(An, [["render", Qn], ["__scopeId", "data-v-660a47c4
|
|
|
1648
1648
|
onChartMouseLeave: O
|
|
1649
1649
|
};
|
|
1650
1650
|
}
|
|
1651
|
-
}),
|
|
1651
|
+
}), Kn = {
|
|
1652
1652
|
key: 2,
|
|
1653
1653
|
class: "loading-overlay"
|
|
1654
1654
|
};
|
|
1655
|
-
function
|
|
1655
|
+
function Wn(e, o, n, l, r, i) {
|
|
1656
1656
|
const s = X("ErrorMessage"), f = X("dashboard-data-selector"), c = X("LoadingView");
|
|
1657
1657
|
return m(), y("div", {
|
|
1658
1658
|
ref: "chartContainer",
|
|
@@ -1677,7 +1677,7 @@ function Kn(e, o, n, l, r, i) {
|
|
|
1677
1677
|
onCellClick: e.handleDimensionClick,
|
|
1678
1678
|
onBackgroundClick: e.handleBackgroundClick
|
|
1679
1679
|
}, null, 8, ["id", "headers", "results", "containerHeight", "onCellClick", "onBackgroundClick"])) : R("", !0),
|
|
1680
|
-
e.loading && e.showLoading ? (m(), y("div",
|
|
1680
|
+
e.loading && e.showLoading ? (m(), y("div", Kn, [
|
|
1681
1681
|
z(c, {
|
|
1682
1682
|
startTime: e.startTime,
|
|
1683
1683
|
text: "",
|
|
@@ -1686,25 +1686,25 @@ function Kn(e, o, n, l, r, i) {
|
|
|
1686
1686
|
])) : R("", !0)
|
|
1687
1687
|
], 34);
|
|
1688
1688
|
}
|
|
1689
|
-
const
|
|
1689
|
+
const Un = /* @__PURE__ */ Y(Pn, [["render", Wn], ["__scopeId", "data-v-9f88e03e"]]), jn = ["data-testid"], Gn = ["data-testid"], _n = ["data-testid"], zn = ["data-testid"], Jn = {
|
|
1690
1690
|
key: 1,
|
|
1691
1691
|
class: "grid-item-header"
|
|
1692
|
-
},
|
|
1692
|
+
}, Yn = { class: "grid-item-header-left" }, Zn = {
|
|
1693
1693
|
key: 0,
|
|
1694
1694
|
class: "drag-handle-icon grid-item-drag-handle"
|
|
1695
|
-
},
|
|
1695
|
+
}, Xn = { class: "item-title-container no-drag" }, eo = ["title"], to = { class: "item-title-text" }, no = {
|
|
1696
1696
|
key: 0,
|
|
1697
1697
|
class: "mdi mdi-pencil-outline edit-indicator"
|
|
1698
|
-
},
|
|
1698
|
+
}, oo = ["id", "placeholder"], io = { class: "grid-item-header-right" }, ro = {
|
|
1699
1699
|
key: 0,
|
|
1700
1700
|
class: "header-filters no-drag"
|
|
1701
|
-
},
|
|
1701
|
+
}, lo = ["title"], ao = { class: "filter-content" }, so = { class: "filter-source" }, uo = { class: "filter-value" }, co = ["onClick", "title"], mo = ["title"], ho = ["title"], fo = { class: "section-header-text" }, vo = ["id", "placeholder"], po = ["data-testid"], yo = ["data-testid"], go = ["data-testid"], bo = ["data-testid", "title"], Co = {
|
|
1702
1702
|
key: 0,
|
|
1703
1703
|
class: "mdi mdi-filter-remove-outline icon"
|
|
1704
|
-
},
|
|
1704
|
+
}, wo = {
|
|
1705
1705
|
key: 1,
|
|
1706
1706
|
class: "mdi mdi-filter-outline icon"
|
|
1707
|
-
},
|
|
1707
|
+
}, ko = ["data-testid"], So = ["data-testid"], Do = /* @__PURE__ */ J({
|
|
1708
1708
|
__name: "DashboardGridItem",
|
|
1709
1709
|
props: {
|
|
1710
1710
|
dashboardId: {},
|
|
@@ -1791,16 +1791,16 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
1791
1791
|
const b = p(() => n.getItemData(n.item.i, n.dashboardId)), h = p(() => b.value.type === w.SECTION_HEADER), I = p(() => {
|
|
1792
1792
|
switch (b.value.type) {
|
|
1793
1793
|
case w.CHART:
|
|
1794
|
-
return
|
|
1794
|
+
return En;
|
|
1795
1795
|
case w.TABLE:
|
|
1796
|
-
return
|
|
1796
|
+
return An;
|
|
1797
1797
|
case w.FILTER:
|
|
1798
|
-
return
|
|
1798
|
+
return Un;
|
|
1799
1799
|
case w.SECTION_HEADER:
|
|
1800
1800
|
return null;
|
|
1801
1801
|
case w.MARKDOWN:
|
|
1802
1802
|
default:
|
|
1803
|
-
return
|
|
1803
|
+
return $n;
|
|
1804
1804
|
}
|
|
1805
1805
|
}), Z = p(() => {
|
|
1806
1806
|
switch (b.value.type) {
|
|
@@ -1832,16 +1832,16 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
1832
1832
|
} : { text: P, level: 3 };
|
|
1833
1833
|
}
|
|
1834
1834
|
const oe = p(() => _(b.value.name, Z.value)), ee = p(() => oe.value.text), te = p(() => `item-title-level-${oe.value.level}`), pe = p(() => s.value && !r.value && !f.value);
|
|
1835
|
-
function
|
|
1835
|
+
function Me() {
|
|
1836
1836
|
pe.value && (f.value = !0, s.value = !1);
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1838
|
+
function Re() {
|
|
1839
1839
|
s.value = !0, f.value = !1;
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function Ae() {
|
|
1842
1842
|
s.value = !1, f.value = !1;
|
|
1843
1843
|
}
|
|
1844
|
-
return xe([c, a],
|
|
1844
|
+
return xe([c, a], Me, {
|
|
1845
1845
|
enabled: () => pe.value,
|
|
1846
1846
|
eventName: "mousedown"
|
|
1847
1847
|
}), (W, q) => (m(), y("div", {
|
|
@@ -1854,8 +1854,8 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
1854
1854
|
"grid-item-edit-style": e.editMode
|
|
1855
1855
|
}]),
|
|
1856
1856
|
"data-testid": `dashboard-component-${e.item.i}`,
|
|
1857
|
-
onMouseenter:
|
|
1858
|
-
onMouseleave:
|
|
1857
|
+
onMouseenter: Re,
|
|
1858
|
+
onMouseleave: Ae
|
|
1859
1859
|
}, [
|
|
1860
1860
|
e.editMode && h.value ? (m(), y("div", {
|
|
1861
1861
|
key: 0,
|
|
@@ -1874,7 +1874,7 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
1874
1874
|
title: "Edit title"
|
|
1875
1875
|
}, [...q[2] || (q[2] = [
|
|
1876
1876
|
t("i", { class: "mdi mdi-pencil-outline icon" }, null, -1)
|
|
1877
|
-
])], 8,
|
|
1877
|
+
])], 8, Gn),
|
|
1878
1878
|
t("button", {
|
|
1879
1879
|
onClick: O,
|
|
1880
1880
|
class: "control-btn",
|
|
@@ -1882,7 +1882,7 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
1882
1882
|
title: "Copy item"
|
|
1883
1883
|
}, [...q[3] || (q[3] = [
|
|
1884
1884
|
t("i", { class: "mdi mdi-content-copy icon" }, null, -1)
|
|
1885
|
-
])], 8,
|
|
1885
|
+
])], 8, _n),
|
|
1886
1886
|
t("button", {
|
|
1887
1887
|
onClick: K,
|
|
1888
1888
|
class: "control-btn dashboard-remove-btn",
|
|
@@ -1890,12 +1890,12 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
1890
1890
|
title: "Remove item"
|
|
1891
1891
|
}, [...q[4] || (q[4] = [
|
|
1892
1892
|
t("i", { class: "mdi mdi-delete-outline icon" }, null, -1)
|
|
1893
|
-
])], 8,
|
|
1893
|
+
])], 8, zn)
|
|
1894
1894
|
], 512)
|
|
1895
1895
|
], 2)) : R("", !0),
|
|
1896
|
-
h.value ? R("", !0) : (m(), y("div",
|
|
1897
|
-
t("div",
|
|
1898
|
-
e.editMode ? (m(), y("div",
|
|
1896
|
+
h.value ? R("", !0) : (m(), y("div", Jn, [
|
|
1897
|
+
t("div", Yn, [
|
|
1898
|
+
e.editMode ? (m(), y("div", Zn, [...q[5] || (q[5] = [
|
|
1899
1899
|
t("svg", {
|
|
1900
1900
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1901
1901
|
width: "16",
|
|
@@ -1928,7 +1928,7 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
1928
1928
|
})
|
|
1929
1929
|
], -1)
|
|
1930
1930
|
])])) : R("", !0),
|
|
1931
|
-
t("div",
|
|
1931
|
+
t("div", Xn, [
|
|
1932
1932
|
r.value ? ue((m(), y("input", {
|
|
1933
1933
|
key: 1,
|
|
1934
1934
|
id: `title-input-${e.item.i}`,
|
|
@@ -1941,7 +1941,7 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
1941
1941
|
class: "title-input",
|
|
1942
1942
|
type: "text",
|
|
1943
1943
|
placeholder: Z.value
|
|
1944
|
-
}, null, 40,
|
|
1944
|
+
}, null, 40, oo)), [
|
|
1945
1945
|
[fe, i.value]
|
|
1946
1946
|
]) : (m(), y("div", {
|
|
1947
1947
|
key: 0,
|
|
@@ -1949,34 +1949,34 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
1949
1949
|
title: ee.value,
|
|
1950
1950
|
onClick: C
|
|
1951
1951
|
}, [
|
|
1952
|
-
t("span",
|
|
1953
|
-
e.editMode ? (m(), y("i",
|
|
1954
|
-
], 10,
|
|
1952
|
+
t("span", to, N(ee.value), 1),
|
|
1953
|
+
e.editMode ? (m(), y("i", no)) : R("", !0)
|
|
1954
|
+
], 10, eo))
|
|
1955
1955
|
])
|
|
1956
1956
|
]),
|
|
1957
|
-
t("div",
|
|
1958
|
-
re.value && U.value > 0 ? (m(), y("div",
|
|
1957
|
+
t("div", io, [
|
|
1958
|
+
re.value && U.value > 0 ? (m(), y("div", ro, [
|
|
1959
1959
|
(m(!0), y(me, null, be(Ce.value, (P, le) => (m(), y("div", {
|
|
1960
1960
|
key: `${P.source}-${P.value}-${le}`,
|
|
1961
1961
|
class: "header-filter-chip",
|
|
1962
1962
|
title: v(P.value)
|
|
1963
1963
|
}, [
|
|
1964
|
-
t("span",
|
|
1965
|
-
t("span",
|
|
1966
|
-
t("span",
|
|
1964
|
+
t("span", ao, [
|
|
1965
|
+
t("span", so, N(P.source === "global" ? P.source : "cross") + ": ", 1),
|
|
1966
|
+
t("span", uo, N(E(P.value, 40)), 1)
|
|
1967
1967
|
]),
|
|
1968
1968
|
e.editMode && P.source !== "global" ? (m(), y("button", {
|
|
1969
1969
|
key: 0,
|
|
1970
1970
|
class: "filter-remove-btn",
|
|
1971
1971
|
onClick: (we) => B(P.source),
|
|
1972
1972
|
title: `Remove ${P.source} filter`
|
|
1973
|
-
}, " x ", 8,
|
|
1974
|
-
], 8,
|
|
1973
|
+
}, " x ", 8, co)) : R("", !0)
|
|
1974
|
+
], 8, lo))), 128)),
|
|
1975
1975
|
ve.value > 0 ? (m(), y("div", {
|
|
1976
1976
|
key: 0,
|
|
1977
1977
|
class: "header-filter-chip filter-overflow",
|
|
1978
1978
|
title: `${ve.value} more filter(s)`
|
|
1979
|
-
}, " +" + N(ve.value), 9,
|
|
1979
|
+
}, " +" + N(ve.value), 9, mo)) : R("", !0)
|
|
1980
1980
|
])) : R("", !0)
|
|
1981
1981
|
])
|
|
1982
1982
|
])),
|
|
@@ -1996,7 +1996,7 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
1996
1996
|
class: "title-input section-header-input no-drag",
|
|
1997
1997
|
type: "text",
|
|
1998
1998
|
placeholder: Z.value
|
|
1999
|
-
}, null, 40,
|
|
1999
|
+
}, null, 40, vo)), [
|
|
2000
2000
|
[fe, i.value]
|
|
2001
2001
|
]) : (m(), y("div", {
|
|
2002
2002
|
key: 0,
|
|
@@ -2004,8 +2004,8 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
2004
2004
|
title: ee.value,
|
|
2005
2005
|
onClick: C
|
|
2006
2006
|
}, [
|
|
2007
|
-
t("span",
|
|
2008
|
-
], 10,
|
|
2007
|
+
t("span", fo, N(ee.value), 1)
|
|
2008
|
+
], 10, ho))
|
|
2009
2009
|
], 64)) : (m(), G(it(I.value), {
|
|
2010
2010
|
key: 1,
|
|
2011
2011
|
dashboardId: n.dashboardId,
|
|
@@ -2035,7 +2035,7 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
2035
2035
|
title: "Increase height"
|
|
2036
2036
|
}, [...q[6] || (q[6] = [
|
|
2037
2037
|
t("i", { class: "mdi mdi-plus icon" }, null, -1)
|
|
2038
|
-
])], 8,
|
|
2038
|
+
])], 8, po),
|
|
2039
2039
|
t("button", {
|
|
2040
2040
|
onClick: M,
|
|
2041
2041
|
class: "control-btn",
|
|
@@ -2043,7 +2043,7 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
2043
2043
|
title: "Decrease height"
|
|
2044
2044
|
}, [...q[7] || (q[7] = [
|
|
2045
2045
|
t("i", { class: "mdi mdi-minus icon" }, null, -1)
|
|
2046
|
-
])], 8,
|
|
2046
|
+
])], 8, yo),
|
|
2047
2047
|
t("button", {
|
|
2048
2048
|
onClick: H,
|
|
2049
2049
|
class: "control-btn",
|
|
@@ -2051,15 +2051,15 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
2051
2051
|
title: "Edit data"
|
|
2052
2052
|
}, [...q[8] || (q[8] = [
|
|
2053
2053
|
t("i", { class: "mdi mdi-database-edit-outline icon" }, null, -1)
|
|
2054
|
-
])], 8,
|
|
2054
|
+
])], 8, go),
|
|
2055
2055
|
t("button", {
|
|
2056
2056
|
onClick: V,
|
|
2057
2057
|
class: "control-btn",
|
|
2058
2058
|
"data-testid": `toggle-crossfilter-item-content-${e.item.i}`,
|
|
2059
2059
|
title: b.value.allowCrossFilter ? "Toggle cross-filtering OFF" : "Toggle cross-filtering ON"
|
|
2060
2060
|
}, [
|
|
2061
|
-
b.value.allowCrossFilter ? (m(), y("i",
|
|
2062
|
-
], 8,
|
|
2061
|
+
b.value.allowCrossFilter ? (m(), y("i", Co)) : (m(), y("i", wo))
|
|
2062
|
+
], 8, bo),
|
|
2063
2063
|
t("button", {
|
|
2064
2064
|
onClick: O,
|
|
2065
2065
|
class: "control-btn",
|
|
@@ -2067,7 +2067,7 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
2067
2067
|
title: "Copy item"
|
|
2068
2068
|
}, [...q[9] || (q[9] = [
|
|
2069
2069
|
t("i", { class: "mdi mdi-content-copy icon" }, null, -1)
|
|
2070
|
-
])], 8,
|
|
2070
|
+
])], 8, ko),
|
|
2071
2071
|
t("button", {
|
|
2072
2072
|
onClick: K,
|
|
2073
2073
|
class: "control-btn dashboard-remove-btn",
|
|
@@ -2075,20 +2075,20 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
2075
2075
|
title: "Remove item"
|
|
2076
2076
|
}, [...q[10] || (q[10] = [
|
|
2077
2077
|
t("i", { class: "mdi mdi-delete-outline icon" }, null, -1)
|
|
2078
|
-
])], 8,
|
|
2078
|
+
])], 8, So)
|
|
2079
2079
|
], 512)
|
|
2080
2080
|
], 2)) : R("", !0)
|
|
2081
2081
|
], 2)
|
|
2082
|
-
], 42,
|
|
2082
|
+
], 42, jn));
|
|
2083
2083
|
}
|
|
2084
|
-
}),
|
|
2084
|
+
}), Wi = /* @__PURE__ */ Y(Do, [["__scopeId", "data-v-354fb06e"]]), Eo = { class: "add-item-content" }, To = {
|
|
2085
2085
|
class: "item-type-grid",
|
|
2086
2086
|
role: "radiogroup",
|
|
2087
2087
|
"aria-label": "Dashboard item type"
|
|
2088
|
-
},
|
|
2088
|
+
}, Io = ["data-testid"], $o = ["value", "data-testid"], Lo = { class: "item-option-card" }, Mo = {
|
|
2089
2089
|
class: "item-option-icon",
|
|
2090
2090
|
"aria-hidden": "true"
|
|
2091
|
-
},
|
|
2091
|
+
}, Ro = { class: "item-option-text" }, Ao = { class: "item-option-label" }, qo = { class: "item-option-help" }, Fo = /* @__PURE__ */ J({
|
|
2092
2092
|
__name: "DashboardAddItemModal",
|
|
2093
2093
|
props: {
|
|
2094
2094
|
show: { type: Boolean }
|
|
@@ -2157,9 +2157,9 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
2157
2157
|
}, " Add Item ")
|
|
2158
2158
|
]),
|
|
2159
2159
|
default: ne(() => [
|
|
2160
|
-
t("div",
|
|
2160
|
+
t("div", Eo, [
|
|
2161
2161
|
c[1] || (c[1] = t("p", { class: "add-item-description" }, "Choose the kind of block you want to add to the dashboard.", -1)),
|
|
2162
|
-
t("div",
|
|
2162
|
+
t("div", To, [
|
|
2163
2163
|
(m(), y(me, null, be(r, (a) => t("label", {
|
|
2164
2164
|
key: a.value,
|
|
2165
2165
|
class: A(["item-option", { selected: l.value === a.value }]),
|
|
@@ -2172,31 +2172,31 @@ const Wn = /* @__PURE__ */ Y(Nn, [["render", Kn], ["__scopeId", "data-v-9f88e03e
|
|
|
2172
2172
|
name: "dashboard-add-item-type",
|
|
2173
2173
|
value: a.value,
|
|
2174
2174
|
"data-testid": a.testId
|
|
2175
|
-
}, null, 8,
|
|
2175
|
+
}, null, 8, $o), [
|
|
2176
2176
|
[rt, l.value]
|
|
2177
2177
|
]),
|
|
2178
|
-
t("span",
|
|
2179
|
-
t("span",
|
|
2178
|
+
t("span", Lo, [
|
|
2179
|
+
t("span", Mo, [
|
|
2180
2180
|
t("i", {
|
|
2181
2181
|
class: A(["mdi", a.icon])
|
|
2182
2182
|
}, null, 2)
|
|
2183
2183
|
]),
|
|
2184
|
-
t("span",
|
|
2185
|
-
t("span",
|
|
2186
|
-
t("span",
|
|
2184
|
+
t("span", Ro, [
|
|
2185
|
+
t("span", Ao, N(a.label), 1),
|
|
2186
|
+
t("span", qo, N(a.description), 1)
|
|
2187
2187
|
])
|
|
2188
2188
|
])
|
|
2189
|
-
], 10,
|
|
2189
|
+
], 10, Io)), 64))
|
|
2190
2190
|
])
|
|
2191
2191
|
])
|
|
2192
2192
|
]),
|
|
2193
2193
|
_: 1
|
|
2194
2194
|
}, 8, ["show"]));
|
|
2195
2195
|
}
|
|
2196
|
-
}),
|
|
2197
|
-
function
|
|
2196
|
+
}), Ui = /* @__PURE__ */ Y(Fo, [["__scopeId", "data-v-ee048740"]]);
|
|
2197
|
+
function xo(e = "dark") {
|
|
2198
2198
|
const o = e === "light";
|
|
2199
|
-
|
|
2199
|
+
Te.defineTheme("trilogyStudio", {
|
|
2200
2200
|
base: o ? "vs" : "vs-dark",
|
|
2201
2201
|
inherit: !0,
|
|
2202
2202
|
rules: [
|
|
@@ -2229,9 +2229,9 @@ function Fo(e = "dark") {
|
|
|
2229
2229
|
"editorWidget.background": o ? "#ffffff" : "#111318",
|
|
2230
2230
|
"editorWidget.border": o ? "#d6dde6" : "#2a2f37"
|
|
2231
2231
|
}
|
|
2232
|
-
}),
|
|
2232
|
+
}), Te.setTheme("trilogyStudio");
|
|
2233
2233
|
}
|
|
2234
|
-
function
|
|
2234
|
+
function Ho(e, o = {}) {
|
|
2235
2235
|
const l = { ...{
|
|
2236
2236
|
automaticLayout: !0,
|
|
2237
2237
|
autoClosingBrackets: "always",
|
|
@@ -2241,7 +2241,7 @@ function xo(e, o = {}) {
|
|
|
2241
2241
|
tabCompletion: "on",
|
|
2242
2242
|
theme: "trilogyStudio"
|
|
2243
2243
|
}, ...o };
|
|
2244
|
-
return
|
|
2244
|
+
return Te.create(e, l);
|
|
2245
2245
|
}
|
|
2246
2246
|
function Ue(e, o = "") {
|
|
2247
2247
|
var r;
|
|
@@ -2250,7 +2250,7 @@ function Ue(e, o = "") {
|
|
|
2250
2250
|
let l = n && !(n.startColumn === n.endColumn && n.startLineNumber === n.endLineNumber) ? ((r = e.getModel()) == null ? void 0 : r.getValueInRange(n)) || "" : e.getValue();
|
|
2251
2251
|
return l || (l = o), l;
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2253
|
+
function Vo(e, o = {}) {
|
|
2254
2254
|
const { onValidate: n, onRun: l, onSave: r } = o;
|
|
2255
2255
|
if (n && e.addCommand(se.CtrlCmd | se.Shift | he.KeyV, n), l && e.addCommand(se.CtrlCmd | he.Enter, l), r && e.addCommand(se.CtrlCmd | he.KeyS, r), e.addCommand(se.CtrlCmd | he.KeyZ, () => {
|
|
2256
2256
|
e.trigger("ide", "undo", {});
|
|
@@ -2266,11 +2266,11 @@ function Ho(e, o = {}) {
|
|
|
2266
2266
|
}
|
|
2267
2267
|
}
|
|
2268
2268
|
let F = null;
|
|
2269
|
-
const
|
|
2269
|
+
const Oo = J({
|
|
2270
2270
|
name: "EnhancedEditor",
|
|
2271
2271
|
components: {
|
|
2272
|
-
SymbolsPane:
|
|
2273
|
-
LoadingView:
|
|
2272
|
+
SymbolsPane: Dt,
|
|
2273
|
+
LoadingView: $e
|
|
2274
2274
|
},
|
|
2275
2275
|
props: {
|
|
2276
2276
|
onSave: {
|
|
@@ -2356,7 +2356,7 @@ const Vo = J({
|
|
|
2356
2356
|
return (e || o || "dark") === "light" ? "light" : "dark";
|
|
2357
2357
|
},
|
|
2358
2358
|
applyEditorTheme() {
|
|
2359
|
-
|
|
2359
|
+
xo(this.getResolvedTheme());
|
|
2360
2360
|
},
|
|
2361
2361
|
// New methods for panel management
|
|
2362
2362
|
togglePanel(e) {
|
|
@@ -2380,10 +2380,10 @@ const Vo = J({
|
|
|
2380
2380
|
}
|
|
2381
2381
|
},
|
|
2382
2382
|
createEditor() {
|
|
2383
|
-
this.applyEditorTheme(), F =
|
|
2383
|
+
this.applyEditorTheme(), F = Ho(this.$refs.editorElement, {
|
|
2384
2384
|
value: this.editor.contents || "",
|
|
2385
2385
|
language: this.editor.type === "sql" ? "sql" : "trilogy"
|
|
2386
|
-
}),
|
|
2386
|
+
}), Vo(F, {
|
|
2387
2387
|
onValidate: () => this.validateQuery(),
|
|
2388
2388
|
onRun: () => this.runQuery(),
|
|
2389
2389
|
onGenerateLLM: () => this.generateLLMQuery()
|
|
@@ -2416,7 +2416,7 @@ const Vo = J({
|
|
|
2416
2416
|
const o = F.getPosition();
|
|
2417
2417
|
o && e.insertText && (F.executeEdits("", [
|
|
2418
2418
|
{
|
|
2419
|
-
range: new
|
|
2419
|
+
range: new St(
|
|
2420
2420
|
o.lineNumber,
|
|
2421
2421
|
o.column,
|
|
2422
2422
|
o.lineNumber,
|
|
@@ -2444,7 +2444,7 @@ const Vo = J({
|
|
|
2444
2444
|
);
|
|
2445
2445
|
if (s && e) {
|
|
2446
2446
|
const f = F.getModel();
|
|
2447
|
-
f &&
|
|
2447
|
+
f && Te.setModelMarkers(f, "owner", s.data.items || []), s.data.completion_items && (this.editor.completionSymbols = s.data.completion_items);
|
|
2448
2448
|
}
|
|
2449
2449
|
return s ? s.data.imports : [];
|
|
2450
2450
|
} catch (l) {
|
|
@@ -2592,28 +2592,28 @@ const Vo = J({
|
|
|
2592
2592
|
return F ? F.getValue() : this.editor.contents || "";
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
2595
|
-
}),
|
|
2595
|
+
}), Qo = { class: "editor-container" }, Bo = { class: "menu-bar" }, No = { class: "menu-actions" }, Po = { class: "editor-content" }, Ko = { class: "sidebar-panel" }, Wo = { class: "be-sidebar-container" }, Uo = { class: "be-sidebar-icons" }, jo = { class: "result-wrapper" }, Go = {
|
|
2596
2596
|
key: 1,
|
|
2597
2597
|
class: "error-message"
|
|
2598
|
-
},
|
|
2598
|
+
}, _o = {
|
|
2599
2599
|
key: 2,
|
|
2600
2600
|
class: "results-summary",
|
|
2601
2601
|
"data-testid": "simple-editor-results"
|
|
2602
|
-
},
|
|
2602
|
+
}, zo = { class: "results-details" }, Jo = {
|
|
2603
2603
|
key: 0,
|
|
2604
2604
|
class: "timing"
|
|
2605
|
-
},
|
|
2605
|
+
}, Yo = {
|
|
2606
2606
|
key: 1,
|
|
2607
2607
|
class: "row-count"
|
|
2608
|
-
},
|
|
2608
|
+
}, Zo = {
|
|
2609
2609
|
key: 2,
|
|
2610
2610
|
class: "operation-type"
|
|
2611
2611
|
};
|
|
2612
|
-
function
|
|
2612
|
+
function Xo(e, o, n, l, r, i) {
|
|
2613
2613
|
const s = X("SymbolsPane"), f = X("loading-view");
|
|
2614
|
-
return m(), y("div",
|
|
2615
|
-
t("div",
|
|
2616
|
-
t("div",
|
|
2614
|
+
return m(), y("div", Qo, [
|
|
2615
|
+
t("div", Bo, [
|
|
2616
|
+
t("div", No, [
|
|
2617
2617
|
t("button", {
|
|
2618
2618
|
class: "action-item",
|
|
2619
2619
|
onClick: o[0] || (o[0] = (...c) => e.generateLLMQuery && e.generateLLMQuery(...c)),
|
|
@@ -2638,7 +2638,7 @@ function Zo(e, o, n, l, r, i) {
|
|
|
2638
2638
|
}, N(e.editor.loading ? "Cancel" : "Test"), 3)
|
|
2639
2639
|
])
|
|
2640
2640
|
]),
|
|
2641
|
-
t("div",
|
|
2641
|
+
t("div", Po, [
|
|
2642
2642
|
t("div", {
|
|
2643
2643
|
ref: "editorElement",
|
|
2644
2644
|
class: A(["editor-obj", {
|
|
@@ -2647,7 +2647,7 @@ function Zo(e, o, n, l, r, i) {
|
|
|
2647
2647
|
}]),
|
|
2648
2648
|
"data-testid": "simple-editor-content"
|
|
2649
2649
|
}, null, 2),
|
|
2650
|
-
ue(t("div",
|
|
2650
|
+
ue(t("div", Ko, [
|
|
2651
2651
|
z(s, {
|
|
2652
2652
|
symbols: e.editor.completionSymbols || [],
|
|
2653
2653
|
onSelectSymbol: e.insertSymbol,
|
|
@@ -2656,8 +2656,8 @@ function Zo(e, o, n, l, r, i) {
|
|
|
2656
2656
|
], 512), [
|
|
2657
2657
|
[lt, e.isPanelVisible]
|
|
2658
2658
|
]),
|
|
2659
|
-
t("div",
|
|
2660
|
-
t("div",
|
|
2659
|
+
t("div", Wo, [
|
|
2660
|
+
t("div", Uo, [
|
|
2661
2661
|
t("button", {
|
|
2662
2662
|
class: A(["sidebar-icon-button", { active: e.isPanelVisible }]),
|
|
2663
2663
|
onClick: o[4] || (o[4] = (c) => e.togglePanel("symbols")),
|
|
@@ -2668,26 +2668,26 @@ function Zo(e, o, n, l, r, i) {
|
|
|
2668
2668
|
])
|
|
2669
2669
|
])
|
|
2670
2670
|
]),
|
|
2671
|
-
t("div",
|
|
2671
|
+
t("div", jo, [
|
|
2672
2672
|
e.editor.loading ? (m(), G(f, {
|
|
2673
2673
|
key: 0,
|
|
2674
2674
|
class: "loading-view",
|
|
2675
2675
|
text: "Loading...",
|
|
2676
2676
|
startTime: e.editor.startTime
|
|
2677
|
-
}, null, 8, ["startTime"])) : e.editor.error ? (m(), y("div",
|
|
2677
|
+
}, null, 8, ["startTime"])) : e.editor.error ? (m(), y("div", Go, N(e.editor.error), 1)) : e.lastOperation ? (m(), y("div", _o, [
|
|
2678
2678
|
t("div", {
|
|
2679
2679
|
class: A(["status-badge", e.lastOperation.success ? "success" : "error"])
|
|
2680
2680
|
}, N(e.lastOperation.success ? "SUCCESS" : "FAILED"), 3),
|
|
2681
|
-
t("div",
|
|
2682
|
-
e.lastOperation.duration ? (m(), y("div",
|
|
2683
|
-
e.lastOperation.rows !== void 0 ? (m(), y("div",
|
|
2684
|
-
e.lastOperation.type ? (m(), y("div",
|
|
2681
|
+
t("div", zo, [
|
|
2682
|
+
e.lastOperation.duration ? (m(), y("div", Jo, N(e.lastOperation.duration) + "ms", 1)) : R("", !0),
|
|
2683
|
+
e.lastOperation.rows !== void 0 ? (m(), y("div", Yo, N(e.lastOperation.rows) + " " + N(e.lastOperation.rows === 1 ? "row" : "rows"), 1)) : R("", !0),
|
|
2684
|
+
e.lastOperation.type ? (m(), y("div", Zo, N(e.lastOperation.type), 1)) : R("", !0)
|
|
2685
2685
|
])
|
|
2686
2686
|
])) : R("", !0)
|
|
2687
2687
|
])
|
|
2688
2688
|
]);
|
|
2689
2689
|
}
|
|
2690
|
-
const Je = /* @__PURE__ */ Y(
|
|
2690
|
+
const Je = /* @__PURE__ */ Y(Oo, [["render", Xo], ["__scopeId", "data-v-e4c72cff"]]), ei = { class: "editor-overlay" }, ti = { class: "editor-actions" }, ni = ["data-testid"], oi = /* @__PURE__ */ J({
|
|
2691
2691
|
__name: "DashboardEditorDialog",
|
|
2692
2692
|
props: {
|
|
2693
2693
|
initialWidth: {},
|
|
@@ -2699,38 +2699,38 @@ const Je = /* @__PURE__ */ Y(Vo, [["render", Zo], ["__scopeId", "data-v-e4c72cff
|
|
|
2699
2699
|
},
|
|
2700
2700
|
emits: ["save", "cancel"],
|
|
2701
2701
|
setup(e, { emit: o }) {
|
|
2702
|
-
const n = e, l = o, { editorElement: r, dialogStyle: i, startResize: s } =
|
|
2702
|
+
const n = e, l = o, { editorElement: r, dialogStyle: i, startResize: s } = Et(() => l("cancel"), {
|
|
2703
2703
|
initialWidth: n.initialWidth,
|
|
2704
2704
|
initialHeight: n.initialHeight,
|
|
2705
2705
|
minWidth: n.minWidth,
|
|
2706
2706
|
minHeight: n.minHeight
|
|
2707
2707
|
});
|
|
2708
|
-
return (f, c) => (m(), y("div",
|
|
2708
|
+
return (f, c) => (m(), y("div", ei, [
|
|
2709
2709
|
t("div", {
|
|
2710
2710
|
ref_key: "editorElement",
|
|
2711
2711
|
ref: r,
|
|
2712
2712
|
class: "content-editor",
|
|
2713
|
-
style:
|
|
2713
|
+
style: Ee(ie(i))
|
|
2714
2714
|
}, [
|
|
2715
2715
|
Ne(f.$slots, "default", {}, void 0, !0),
|
|
2716
|
-
t("div",
|
|
2716
|
+
t("div", ti, [
|
|
2717
2717
|
Ne(f.$slots, "actions", {}, () => [
|
|
2718
2718
|
t("button", {
|
|
2719
2719
|
class: "save-button",
|
|
2720
2720
|
"data-testid": n.saveTestId || void 0,
|
|
2721
2721
|
onClick: c[0] || (c[0] = (a) => l("save"))
|
|
2722
|
-
}, N(n.saveLabel), 9,
|
|
2722
|
+
}, N(n.saveLabel), 9, ni),
|
|
2723
2723
|
t("button", {
|
|
2724
2724
|
class: "cancel-button",
|
|
2725
2725
|
onClick: c[1] || (c[1] = (a) => l("cancel"))
|
|
2726
2726
|
}, "Cancel")
|
|
2727
2727
|
], !0)
|
|
2728
2728
|
]),
|
|
2729
|
-
z(
|
|
2729
|
+
z(Tt, { onStartResize: ie(s) }, null, 8, ["onStartResize"])
|
|
2730
2730
|
], 4)
|
|
2731
2731
|
]));
|
|
2732
2732
|
}
|
|
2733
|
-
}), Ye = /* @__PURE__ */ Y(
|
|
2733
|
+
}), Ye = /* @__PURE__ */ Y(oi, [["__scopeId", "data-v-580721a8"]]), ii = { class: "editor-body" }, ri = /* @__PURE__ */ J({
|
|
2734
2734
|
__name: "DashboardChartEditor",
|
|
2735
2735
|
props: {
|
|
2736
2736
|
content: {},
|
|
@@ -2758,7 +2758,7 @@ const Je = /* @__PURE__ */ Y(Vo, [["render", Zo], ["__scopeId", "data-v-e4c72cff
|
|
|
2758
2758
|
onCancel: c
|
|
2759
2759
|
}, {
|
|
2760
2760
|
default: ne(() => [
|
|
2761
|
-
t("div",
|
|
2761
|
+
t("div", ii, [
|
|
2762
2762
|
z(Je, {
|
|
2763
2763
|
class: "editor-content",
|
|
2764
2764
|
initContent: r.value,
|
|
@@ -2773,13 +2773,13 @@ const Je = /* @__PURE__ */ Y(Vo, [["render", Zo], ["__scopeId", "data-v-e4c72cff
|
|
|
2773
2773
|
_: 1
|
|
2774
2774
|
}, 8, ["initialWidth", "initialHeight"]));
|
|
2775
2775
|
}
|
|
2776
|
-
}),
|
|
2776
|
+
}), ji = /* @__PURE__ */ Y(ri, [["__scopeId", "data-v-9717eaff"]]), li = { class: "tab-header" }, ai = { class: "editor-body" }, si = {
|
|
2777
2777
|
key: 0,
|
|
2778
2778
|
class: "tab-content"
|
|
2779
|
-
},
|
|
2779
|
+
}, di = {
|
|
2780
2780
|
key: 1,
|
|
2781
2781
|
class: "tab-content"
|
|
2782
|
-
},
|
|
2782
|
+
}, ui = /* @__PURE__ */ J({
|
|
2783
2783
|
__name: "DashboardMarkdownEditor",
|
|
2784
2784
|
props: {
|
|
2785
2785
|
content: {},
|
|
@@ -2853,7 +2853,7 @@ const Je = /* @__PURE__ */ Y(Vo, [["render", Zo], ["__scopeId", "data-v-e4c72cff
|
|
|
2853
2853
|
onCancel: E
|
|
2854
2854
|
}, {
|
|
2855
2855
|
default: ne(() => [
|
|
2856
|
-
t("div",
|
|
2856
|
+
t("div", li, [
|
|
2857
2857
|
t("button", {
|
|
2858
2858
|
onClick: g[0] || (g[0] = (B) => C("markdown")),
|
|
2859
2859
|
class: A([{ active: a.value === "markdown" }, "tab-button"])
|
|
@@ -2869,8 +2869,8 @@ const Je = /* @__PURE__ */ Y(Vo, [["render", Zo], ["__scopeId", "data-v-e4c72cff
|
|
|
2869
2869
|
t("span", null, "Data Query", -1)
|
|
2870
2870
|
])], 2)
|
|
2871
2871
|
]),
|
|
2872
|
-
t("div",
|
|
2873
|
-
a.value === "markdown" ? (m(), y("div",
|
|
2872
|
+
t("div", ai, [
|
|
2873
|
+
a.value === "markdown" ? (m(), y("div", si, [
|
|
2874
2874
|
t("div", { class: "markdown-toolbar" }, [
|
|
2875
2875
|
t("button", {
|
|
2876
2876
|
onClick: V,
|
|
@@ -2929,7 +2929,7 @@ Template examples:
|
|
|
2929
2929
|
[fe, i.value]
|
|
2930
2930
|
])
|
|
2931
2931
|
])) : R("", !0),
|
|
2932
|
-
a.value === "query" ? (m(), y("div",
|
|
2932
|
+
a.value === "query" ? (m(), y("div", di, [
|
|
2933
2933
|
g[11] || (g[11] = t("div", { class: "query-help" }, [
|
|
2934
2934
|
t("p", null, " Write a query to fetch data for your markdown template. Leave empty if no data is needed. ")
|
|
2935
2935
|
], -1)),
|
|
@@ -2948,13 +2948,13 @@ Template examples:
|
|
|
2948
2948
|
_: 1
|
|
2949
2949
|
}, 8, ["initialWidth", "initialHeight"]));
|
|
2950
2950
|
}
|
|
2951
|
-
}),
|
|
2951
|
+
}), Gi = /* @__PURE__ */ Y(ui, [["__scopeId", "data-v-d2f32030"]]), ci = { class: "dashboard-setup" }, mi = { class: "setup-section" }, hi = {
|
|
2952
2952
|
key: 0,
|
|
2953
2953
|
class: "setup-section"
|
|
2954
|
-
},
|
|
2954
|
+
}, fi = { class: "action-row" }, vi = ["disabled"], pi = {
|
|
2955
2955
|
key: 0,
|
|
2956
2956
|
class: "error-message"
|
|
2957
|
-
},
|
|
2957
|
+
}, yi = { class: "setup-section" }, gi = { class: "templates-grid" }, bi = ["onClick", "data-testid"], Ci = { class: "template-icon" }, wi = { class: "template-info" }, ki = { class: "template-title" }, Si = { class: "template-desc" }, Q = 20, _i = /* @__PURE__ */ J({
|
|
2958
2958
|
__name: "DashboardCTA",
|
|
2959
2959
|
props: {
|
|
2960
2960
|
dashboardId: {}
|
|
@@ -3076,12 +3076,12 @@ Template examples:
|
|
|
3076
3076
|
C.value = !1;
|
|
3077
3077
|
}
|
|
3078
3078
|
}
|
|
3079
|
-
return (O, $) => (m(), y("div",
|
|
3079
|
+
return (O, $) => (m(), y("div", ci, [
|
|
3080
3080
|
$[7] || ($[7] = t("div", { class: "setup-header" }, [
|
|
3081
3081
|
t("h2", { class: "setup-title" }, "An Empty Dashboard"),
|
|
3082
3082
|
t("p", { class: "setup-subtitle" }, " Choose a template or start from scratch by using the 'add item' button to add charts, tables, and more. ")
|
|
3083
3083
|
], -1)),
|
|
3084
|
-
t("div",
|
|
3084
|
+
t("div", mi, [
|
|
3085
3085
|
$[3] || ($[3] = t("h3", { class: "section-title" }, "Description", -1)),
|
|
3086
3086
|
ue(t("textarea", {
|
|
3087
3087
|
"onUpdate:modelValue": $[0] || ($[0] = (g) => v.value = g),
|
|
@@ -3100,7 +3100,7 @@ Template examples:
|
|
|
3100
3100
|
ge(" Save ", -1)
|
|
3101
3101
|
])])
|
|
3102
3102
|
]),
|
|
3103
|
-
c.value ? (m(), y("div",
|
|
3103
|
+
c.value ? (m(), y("div", hi, [
|
|
3104
3104
|
$[4] || ($[4] = t("h3", { class: "section-title" }, "AI Copilot", -1)),
|
|
3105
3105
|
$[5] || ($[5] = t("p", { class: "section-desc" }, " Let AI help build your dashboard based on your data and description ", -1)),
|
|
3106
3106
|
ue(t("textarea", {
|
|
@@ -3112,7 +3112,7 @@ Template examples:
|
|
|
3112
3112
|
}, null, 512), [
|
|
3113
3113
|
[fe, E.value]
|
|
3114
3114
|
]),
|
|
3115
|
-
t("div",
|
|
3115
|
+
t("div", fi, [
|
|
3116
3116
|
t("button", {
|
|
3117
3117
|
onClick: K,
|
|
3118
3118
|
class: "action-button llm-button",
|
|
@@ -3123,35 +3123,35 @@ Template examples:
|
|
|
3123
3123
|
class: A(["mdi", C.value ? "mdi-loading mdi-spin" : "mdi-creation"])
|
|
3124
3124
|
}, null, 2),
|
|
3125
3125
|
ge(" " + N(C.value ? "Generating..." : "Generate with AI"), 1)
|
|
3126
|
-
], 8,
|
|
3127
|
-
D.value ? (m(), y("div",
|
|
3126
|
+
], 8, vi),
|
|
3127
|
+
D.value ? (m(), y("div", pi, N(D.value), 1)) : R("", !0)
|
|
3128
3128
|
])
|
|
3129
3129
|
])) : R("", !0),
|
|
3130
|
-
t("div",
|
|
3130
|
+
t("div", yi, [
|
|
3131
3131
|
$[6] || ($[6] = t("h3", { class: "section-title" }, "Templates", -1)),
|
|
3132
|
-
t("div",
|
|
3132
|
+
t("div", gi, [
|
|
3133
3133
|
(m(), y(me, null, be(M, (g) => t("div", {
|
|
3134
3134
|
key: g.id,
|
|
3135
3135
|
class: A(["template-card", { selected: V.value === g.id }]),
|
|
3136
3136
|
onClick: (B) => T(g.id),
|
|
3137
3137
|
"data-testid": `template-card-${g.id}`
|
|
3138
3138
|
}, [
|
|
3139
|
-
t("div",
|
|
3139
|
+
t("div", Ci, [
|
|
3140
3140
|
t("i", {
|
|
3141
3141
|
class: A(["mdi", g.icon])
|
|
3142
3142
|
}, null, 2)
|
|
3143
3143
|
]),
|
|
3144
|
-
t("div",
|
|
3145
|
-
t("h4",
|
|
3146
|
-
t("p",
|
|
3144
|
+
t("div", wi, [
|
|
3145
|
+
t("h4", ki, N(g.name), 1),
|
|
3146
|
+
t("p", Si, N(g.description), 1)
|
|
3147
3147
|
])
|
|
3148
|
-
], 10,
|
|
3148
|
+
], 10, bi)), 64))
|
|
3149
3149
|
])
|
|
3150
3150
|
])
|
|
3151
3151
|
]));
|
|
3152
3152
|
}
|
|
3153
3153
|
});
|
|
3154
|
-
function
|
|
3154
|
+
function zi(e, o, n, l) {
|
|
3155
3155
|
const r = ht(), i = Ge();
|
|
3156
3156
|
let s = j("queryExecutionService");
|
|
3157
3157
|
const { setActiveDashboard: f } = _e();
|
|
@@ -3298,15 +3298,15 @@ function _i(e, o, n, l) {
|
|
|
3298
3298
|
function pe(u) {
|
|
3299
3299
|
!e.value || !e.value.id || r.copyItemInDashboard(e.value.id, u);
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function Me() {
|
|
3302
3302
|
k.value = !1;
|
|
3303
3303
|
}
|
|
3304
|
-
function
|
|
3304
|
+
function Re(u) {
|
|
3305
3305
|
if (C.value = u, !e.value || !e.value.id) return;
|
|
3306
3306
|
const d = e.value.gridItems[u.i];
|
|
3307
3307
|
d && (d.type === w.CHART ? D.value = !0 : d.type === w.MARKDOWN ? V.value = !0 : d.type === w.TABLE || d.type === w.FILTER ? D.value = !0 : d.type === w.SECTION_HEADER && (C.value = null));
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function Ae(u) {
|
|
3310
3310
|
if (!e.value || !e.value.id || !C.value) return;
|
|
3311
3311
|
const L = C.value.i;
|
|
3312
3312
|
P(L, e.value.id, { content: u }), W();
|
|
@@ -3367,14 +3367,14 @@ function _i(e, o, n, l) {
|
|
|
3367
3367
|
return Oe.source === "global" && Oe.value === ((Qe = e.value) == null ? void 0 : Qe.filter);
|
|
3368
3368
|
}
|
|
3369
3369
|
) || (ae = [{ value: e.value.filter, source: "global" }, ...x]));
|
|
3370
|
-
function Se
|
|
3371
|
-
return
|
|
3370
|
+
function qe(Se) {
|
|
3371
|
+
return Se && typeof Se == "object" && typeof Se.markdown == "string" && typeof Se.query == "string";
|
|
3372
3372
|
}
|
|
3373
|
-
let Fe = !1, He =
|
|
3373
|
+
let Fe = !1, He = qe(d.content) ? d.content : {
|
|
3374
3374
|
markdown: d.type === "markdown" ? d.content : "",
|
|
3375
3375
|
query: d.type !== "markdown" ? d.content : ""
|
|
3376
3376
|
};
|
|
3377
|
-
d.drilldown && (Fe = !0, He =
|
|
3377
|
+
d.drilldown && (Fe = !0, He = qe(d.drilldown) ? d.drilldown : {
|
|
3378
3378
|
markdown: d.type === "markdown" ? d.drilldown : "",
|
|
3379
3379
|
query: d.type !== "markdown" ? d.drilldown : ""
|
|
3380
3380
|
});
|
|
@@ -3383,7 +3383,7 @@ function _i(e, o, n, l) {
|
|
|
3383
3383
|
type: d.type,
|
|
3384
3384
|
// check if it's MarkdownData, and if so, extract markdown
|
|
3385
3385
|
//
|
|
3386
|
-
content:
|
|
3386
|
+
content: qe(d.content) ? d.content.markdown : d.content || "",
|
|
3387
3387
|
// display the drilldown of set
|
|
3388
3388
|
structured_content: He,
|
|
3389
3389
|
name: d.name,
|
|
@@ -3461,7 +3461,7 @@ function _i(e, o, n, l) {
|
|
|
3461
3461
|
function Ze(u) {
|
|
3462
3462
|
var ae;
|
|
3463
3463
|
if (!e.value || !e.value.id) return;
|
|
3464
|
-
const L = M.value
|
|
3464
|
+
const L = ft(M.value), d = vt(u.filters, L);
|
|
3465
3465
|
if (!d || Object.keys(d).length === 0) {
|
|
3466
3466
|
console.log("No valid filters to apply from cross-filter event, given ", u.filters);
|
|
3467
3467
|
return;
|
|
@@ -3517,9 +3517,9 @@ function _i(e, o, n, l) {
|
|
|
3517
3517
|
clearItems: ee,
|
|
3518
3518
|
removeItem: te,
|
|
3519
3519
|
copyItem: pe,
|
|
3520
|
-
closeAddModal:
|
|
3521
|
-
openEditor:
|
|
3522
|
-
saveContent:
|
|
3520
|
+
closeAddModal: Me,
|
|
3521
|
+
openEditor: Re,
|
|
3522
|
+
saveContent: Ae,
|
|
3523
3523
|
closeEditors: W,
|
|
3524
3524
|
getDashboardQueryExecutor: le,
|
|
3525
3525
|
getItemData: q,
|
|
@@ -3533,16 +3533,16 @@ function _i(e, o, n, l) {
|
|
|
3533
3533
|
};
|
|
3534
3534
|
}
|
|
3535
3535
|
export {
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3536
|
+
ji as C,
|
|
3537
|
+
Ki as D,
|
|
3538
|
+
Gi as M,
|
|
3539
|
+
_i as _,
|
|
3540
|
+
Wi as a,
|
|
3541
|
+
Ui as b,
|
|
3542
|
+
En as c,
|
|
3543
|
+
An as d,
|
|
3544
|
+
Un as e,
|
|
3545
|
+
$n as f,
|
|
3546
|
+
Nn as g,
|
|
3547
|
+
zi as u
|
|
3548
3548
|
};
|