@blazes/data-visualization 1.0.0-alpha.0 → 1.0.0-alpha.2
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/README.md +20 -0
- package/dist/.vite/manifest.json +26 -26
- package/dist/core/config/dashboard-config-schema.d.ts +13 -0
- package/dist/core/config/dashboard-config-schema.d.ts.map +1 -1
- package/dist/core/config/dashboard-config.d.ts +4 -0
- package/dist/core/config/dashboard-config.d.ts.map +1 -1
- package/dist/core/export/index.d.ts +1 -0
- package/dist/core/export/index.d.ts.map +1 -1
- package/dist/core/export/panel-export.d.ts +4 -0
- package/dist/core/export/panel-export.d.ts.map +1 -0
- package/dist/core/index.js +63 -61
- package/dist/core/runtime/dashboard-runtime.d.ts +4 -0
- package/dist/core/runtime/dashboard-runtime.d.ts.map +1 -1
- package/dist/{dashboard-runtime-8a-9P8Ku.js → dashboard-runtime-6VlVQIuQ.js} +27 -27
- package/dist/{dashboard-runtime-8a-9P8Ku.js.map → dashboard-runtime-6VlVQIuQ.js.map} +1 -1
- package/dist/experimental/s2/index.js +12 -12
- package/dist/index.css +1 -1
- package/dist/index.js +63 -61
- package/dist/{csv-Dyrr2yMA.js → panel-export-Di_5Frul.js} +24 -19
- package/dist/panel-export-Di_5Frul.js.map +1 -0
- package/dist/renderers/word-cloud/index.js +1 -1
- package/dist/{runtime-schema-BO2qLlvE.js → runtime-schema-BmeEvFU-.js} +42 -34
- package/dist/runtime-schema-BmeEvFU-.js.map +1 -0
- package/dist/{standard-definitions-DHtaLAf1.js → standard-definitions-hgJ-kOoz.js} +5 -5
- package/dist/{standard-definitions-DHtaLAf1.js.map → standard-definitions-hgJ-kOoz.js.map} +1 -1
- package/dist/vue/components/DashboardPanel.vue.d.ts.map +1 -1
- package/dist/vue/components/DashboardRenderer.vue.d.ts.map +1 -1
- package/dist/vue/index.js +620 -592
- package/dist/vue/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/csv-Dyrr2yMA.js.map +0 -1
- package/dist/runtime-schema-BO2qLlvE.js.map +0 -1
package/README.md
CHANGED
|
@@ -127,6 +127,26 @@ export const rendererRegistry = registerStandardVueRenderers(createVueRendererRe
|
|
|
127
127
|
可在看板元素或其祖先设置 CSS 变量 `--dv-primary` 覆盖主色,默认使用 `#315fc4`。卡片 loading、筛选栏
|
|
128
128
|
刷新按钮与普通表格分页的选中、hover、键盘聚焦颜色均使用该主色,分页的浅色背景由主色生成。
|
|
129
129
|
|
|
130
|
+
### 面板导出开关
|
|
131
|
+
|
|
132
|
+
可通过单个 Panel 的 `export` 配置分别关闭 CSV 或 PNG 导出:
|
|
133
|
+
|
|
134
|
+
```ts
|
|
135
|
+
{
|
|
136
|
+
id: "session-insights",
|
|
137
|
+
title: "阶段性会话洞察",
|
|
138
|
+
rendererId: "table",
|
|
139
|
+
binding: { type: "table", datasetId: "session-insights", columns: ["count", "report"] },
|
|
140
|
+
export: { csv: false },
|
|
141
|
+
layout: { span: { xs: 24 } }
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
省略 `export` 或某个格式时,沿用渲染器的导出能力。`false` 会隐藏对应菜单并阻止
|
|
146
|
+
`DashboardRenderer.exportCsv()` / `exportPng()` 导出该面板;两个格式均不可用时隐藏下载按钮。
|
|
147
|
+
`true` 仍要求渲染器支持该格式,不能为表格等不支持 PNG 的渲染器开启图片导出。该配置不影响其他面板,
|
|
148
|
+
也不改变 Dataset 或底层 `serializePanelCsv()` 的文本序列化行为。
|
|
149
|
+
|
|
130
150
|
### 卡片标题说明
|
|
131
151
|
|
|
132
152
|
所有 Panel 可配置 `titleNote`,在标题旁常驻展示补充说明,使用浅灰色小号文字,空间不足时自动换行。
|
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"file": "
|
|
4
|
-
"name": "
|
|
2
|
+
"_dashboard-runtime-6VlVQIuQ.js": {
|
|
3
|
+
"file": "dashboard-runtime-6VlVQIuQ.js",
|
|
4
|
+
"name": "dashboard-runtime",
|
|
5
5
|
"imports": [
|
|
6
|
+
"_panel-export-Di_5Frul.js",
|
|
6
7
|
"_serializable-DOOpLZyk.js",
|
|
7
|
-
"
|
|
8
|
+
"_standard-definitions-hgJ-kOoz.js",
|
|
9
|
+
"_runtime-schema-BmeEvFU-.js"
|
|
8
10
|
]
|
|
9
11
|
},
|
|
10
|
-
"
|
|
11
|
-
"file": "
|
|
12
|
-
"name": "
|
|
12
|
+
"_panel-export-Di_5Frul.js": {
|
|
13
|
+
"file": "panel-export-Di_5Frul.js",
|
|
14
|
+
"name": "panel-export",
|
|
13
15
|
"imports": [
|
|
14
|
-
"_csv-Dyrr2yMA.js",
|
|
15
16
|
"_serializable-DOOpLZyk.js",
|
|
16
|
-
"
|
|
17
|
-
"_runtime-schema-BO2qLlvE.js"
|
|
17
|
+
"_value-formatter-D5QmLSMG.js"
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
|
-
"_runtime-schema-
|
|
21
|
-
"file": "runtime-schema-
|
|
20
|
+
"_runtime-schema-BmeEvFU-.js": {
|
|
21
|
+
"file": "runtime-schema-BmeEvFU-.js",
|
|
22
22
|
"name": "runtime-schema"
|
|
23
23
|
},
|
|
24
24
|
"_serializable-DOOpLZyk.js": {
|
|
25
25
|
"file": "serializable-DOOpLZyk.js",
|
|
26
26
|
"name": "serializable"
|
|
27
27
|
},
|
|
28
|
-
"_standard-definitions-
|
|
29
|
-
"file": "standard-definitions-
|
|
28
|
+
"_standard-definitions-hgJ-kOoz.js": {
|
|
29
|
+
"file": "standard-definitions-hgJ-kOoz.js",
|
|
30
30
|
"name": "standard-definitions",
|
|
31
31
|
"imports": [
|
|
32
32
|
"_serializable-DOOpLZyk.js",
|
|
33
|
-
"_runtime-schema-
|
|
33
|
+
"_runtime-schema-BmeEvFU-.js"
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
"_value-formatter-D5QmLSMG.js": {
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"src": "src/core/index.ts",
|
|
48
48
|
"isEntry": true,
|
|
49
49
|
"imports": [
|
|
50
|
-
"_dashboard-runtime-
|
|
51
|
-
"_runtime-schema-
|
|
52
|
-
"
|
|
53
|
-
"_standard-definitions-
|
|
50
|
+
"_dashboard-runtime-6VlVQIuQ.js",
|
|
51
|
+
"_runtime-schema-BmeEvFU-.js",
|
|
52
|
+
"_panel-export-Di_5Frul.js",
|
|
53
|
+
"_standard-definitions-hgJ-kOoz.js",
|
|
54
54
|
"_value-formatter-D5QmLSMG.js",
|
|
55
55
|
"_serializable-DOOpLZyk.js"
|
|
56
56
|
]
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"src": "src/experimental/s2/index.ts",
|
|
71
71
|
"isEntry": true,
|
|
72
72
|
"imports": [
|
|
73
|
-
"_runtime-schema-
|
|
73
|
+
"_runtime-schema-BmeEvFU-.js"
|
|
74
74
|
],
|
|
75
75
|
"dynamicImports": [
|
|
76
76
|
"src/experimental/s2/PivotTableS2Renderer.vue"
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"src": "src/index.ts",
|
|
83
83
|
"isEntry": true,
|
|
84
84
|
"imports": [
|
|
85
|
-
"_dashboard-runtime-
|
|
86
|
-
"_runtime-schema-
|
|
87
|
-
"
|
|
88
|
-
"_standard-definitions-
|
|
85
|
+
"_dashboard-runtime-6VlVQIuQ.js",
|
|
86
|
+
"_runtime-schema-BmeEvFU-.js",
|
|
87
|
+
"_panel-export-Di_5Frul.js",
|
|
88
|
+
"_standard-definitions-hgJ-kOoz.js",
|
|
89
89
|
"_value-formatter-D5QmLSMG.js",
|
|
90
90
|
"_serializable-DOOpLZyk.js"
|
|
91
91
|
]
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"src": "src/renderers/word-cloud/index.ts",
|
|
107
107
|
"isEntry": true,
|
|
108
108
|
"imports": [
|
|
109
|
-
"_standard-definitions-
|
|
109
|
+
"_standard-definitions-hgJ-kOoz.js"
|
|
110
110
|
],
|
|
111
111
|
"dynamicImports": [
|
|
112
112
|
"src/renderers/word-cloud/WordCloudRenderer.vue"
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"imports": [
|
|
121
121
|
"_visual-theme-DH-k3L51.js",
|
|
122
122
|
"_value-formatter-D5QmLSMG.js",
|
|
123
|
-
"
|
|
123
|
+
"_panel-export-Di_5Frul.js"
|
|
124
124
|
],
|
|
125
125
|
"css": [
|
|
126
126
|
"index.css"
|
|
@@ -741,6 +741,10 @@ export declare const VisualizationEnhancementSchema: import("@sinclair/typebox")
|
|
|
741
741
|
}>>;
|
|
742
742
|
pivotTableS2: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
|
|
743
743
|
}>]>;
|
|
744
|
+
export declare const PanelExportConfigSchema: import("@sinclair/typebox").TObject<{
|
|
745
|
+
csv: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
746
|
+
png: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
747
|
+
}>;
|
|
744
748
|
export declare const PanelConfigSchema: import("@sinclair/typebox").TObject<{
|
|
745
749
|
id: import("@sinclair/typebox").TString;
|
|
746
750
|
title: import("@sinclair/typebox").TString;
|
|
@@ -956,6 +960,10 @@ export declare const PanelConfigSchema: import("@sinclair/typebox").TObject<{
|
|
|
956
960
|
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
957
961
|
actionId: import("@sinclair/typebox").TString;
|
|
958
962
|
}>>>;
|
|
963
|
+
export: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
964
|
+
csv: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
965
|
+
png: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
966
|
+
}>>;
|
|
959
967
|
layout: import("@sinclair/typebox").TObject<{
|
|
960
968
|
span: import("@sinclair/typebox").TObject<{
|
|
961
969
|
xs: import("@sinclair/typebox").TInteger;
|
|
@@ -1316,6 +1324,10 @@ export declare const DashboardConfigSchema: import("@sinclair/typebox").TObject<
|
|
|
1316
1324
|
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1317
1325
|
actionId: import("@sinclair/typebox").TString;
|
|
1318
1326
|
}>>>;
|
|
1327
|
+
export: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
1328
|
+
csv: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1329
|
+
png: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1330
|
+
}>>;
|
|
1319
1331
|
layout: import("@sinclair/typebox").TObject<{
|
|
1320
1332
|
span: import("@sinclair/typebox").TObject<{
|
|
1321
1333
|
xs: import("@sinclair/typebox").TInteger;
|
|
@@ -1355,6 +1367,7 @@ export type TableEnhancement = Static<typeof TableEnhancementSchema>;
|
|
|
1355
1367
|
export type WordCloudEnhancement = Static<typeof WordCloudEnhancementSchema>;
|
|
1356
1368
|
export type PivotTableS2Enhancement = Static<typeof PivotTableS2EnhancementSchema>;
|
|
1357
1369
|
export type VisualizationEnhancement = Static<typeof VisualizationEnhancementSchema>;
|
|
1370
|
+
export type PanelExportConfig = Static<typeof PanelExportConfigSchema>;
|
|
1358
1371
|
export type PanelConfig = Static<typeof PanelConfigSchema>;
|
|
1359
1372
|
export type DashboardConfig = Static<typeof DashboardConfigSchema>;
|
|
1360
1373
|
//# sourceMappingURL=dashboard-config-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-config-schema.d.ts","sourceRoot":"","sources":["../../../src/core/config/dashboard-config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAMtD,eAAO,MAAM,gBAAgB,qCAA4D,CAAC;AAE1F,eAAO,MAAM,eAAe,qZAW3B,CA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CAAC,OAAO,8BAA8B,CAAC,CAAC;AACrF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC3D,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-config.d.ts","sourceRoot":"","sources":["../../../src/core/config/dashboard-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAIzG,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"dashboard-config.d.ts","sourceRoot":"","sources":["../../../src/core/config/dashboard-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAIzG,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuE,CAAC;AAEjH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAYpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/export/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/export/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RendererCapabilities } from "../adapter";
|
|
2
|
+
import type { PanelConfig, PanelExportConfig } from "../config";
|
|
3
|
+
export declare function isPanelExportEnabled(panel: Pick<PanelConfig, "export">, capabilities: Readonly<RendererCapabilities>, format: keyof PanelExportConfig): boolean;
|
|
4
|
+
//# sourceMappingURL=panel-export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panel-export.d.ts","sourceRoot":"","sources":["../../../src/core/export/panel-export.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEhE,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,EAClC,YAAY,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC5C,MAAM,EAAE,MAAM,iBAAiB,GAC9B,OAAO,CAET"}
|
package/dist/core/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as s, D as n, a as r, b as t, c as i, d as o, P as c, R as m, e as h, f as l, g as d, h as S, i as D, j as u, k as b, l as
|
|
2
|
-
import { B as v, a as z, b as q, C as F, D as w, c as y, d as _, e as N, f as J, g as L, h as M, i as j, j as O, I as W, J as H, L as U, k, l as G, M as K, m as Q, n as X, P as Y, o as Z, p as $, q as aa, r as ea, s as sa, t as na, u as ra,
|
|
3
|
-
import { D as
|
|
4
|
-
import { S as
|
|
5
|
-
import { V as
|
|
6
|
-
import { c as
|
|
1
|
+
import { B as s, D as n, a as r, b as t, c as i, d as o, P as c, R as m, e as h, f as l, g as d, h as S, i as D, j as u, k as b, l as E, m as R, n as C, o as g, p as f, q as p, r as V, s as P, t as A, u as B, v as T, w as x } from "../dashboard-runtime-6VlVQIuQ.js";
|
|
2
|
+
import { B as v, a as z, b as q, C as F, D as w, c as y, d as _, e as N, f as J, g as L, h as M, i as j, j as O, I as W, J as H, L as U, k, l as G, M as K, m as Q, n as X, P as Y, o as Z, p as $, q as aa, r as ea, s as sa, t as na, u as ra, v as ta, R as ia, w as oa, T as ca, x as ma, y as ha, z as la, A as da, V as Sa, E as Da, W as ua, F as ba, G as Ea, H as Ra, K as Ca } from "../runtime-schema-BmeEvFU-.js";
|
|
3
|
+
import { D as fa, P as pa, R as Va, b as Pa, c as Aa, a as Ba, e as Ta, g as xa, i as Ia, r as va, d as za, s as qa, w as Fa } from "../panel-export-Di_5Frul.js";
|
|
4
|
+
import { S as ya, a as _a, b as Na, c as Ja, l as La, d as Ma, m as ja, e as Oa, p as Wa, f as Ha, t as Ua, g as ka, w as Ga, h as Ka } from "../standard-definitions-hgJ-kOoz.js";
|
|
5
|
+
import { V as Xa, v as Ya } from "../value-formatter-D5QmLSMG.js";
|
|
6
|
+
import { c as $a, i as ae, j as ee, s as se } from "../serializable-DOOpLZyk.js";
|
|
7
7
|
export {
|
|
8
8
|
s as BUILT_IN_REQUEST_VALUE_CODECS,
|
|
9
9
|
v as BarBindingSchema,
|
|
@@ -18,7 +18,7 @@ export {
|
|
|
18
18
|
N as DashboardFilterControlConfigSchema,
|
|
19
19
|
t as DashboardRuntime,
|
|
20
20
|
J as DashboardVariableConfigSchema,
|
|
21
|
-
|
|
21
|
+
fa as DashboardVariableError,
|
|
22
22
|
L as DataRequestConfigSchema,
|
|
23
23
|
M as DatasetConfigSchema,
|
|
24
24
|
i as DatasetExecutionError,
|
|
@@ -35,77 +35,79 @@ export {
|
|
|
35
35
|
X as MetricVisualizationEnhancementSchema,
|
|
36
36
|
Y as PanelBindingSchema,
|
|
37
37
|
Z as PanelConfigSchema,
|
|
38
|
-
$ as
|
|
39
|
-
aa as
|
|
40
|
-
ea as
|
|
41
|
-
sa as
|
|
42
|
-
na as
|
|
43
|
-
ra as
|
|
44
|
-
|
|
38
|
+
$ as PanelExportConfigSchema,
|
|
39
|
+
aa as PieBindingSchema,
|
|
40
|
+
ea as PieEnhancementSchema,
|
|
41
|
+
sa as PieVisualizationEnhancementSchema,
|
|
42
|
+
na as PivotTableS2BindingSchema,
|
|
43
|
+
ra as PivotTableS2EnhancementSchema,
|
|
44
|
+
ta as PivotTableS2VisualizationEnhancementSchema,
|
|
45
|
+
pa as PluginRegistry,
|
|
45
46
|
c as ProviderInputValidationError,
|
|
46
47
|
Va as RegistryError,
|
|
47
48
|
m as RequestExecutor,
|
|
48
49
|
h as RequestInputError,
|
|
49
|
-
|
|
50
|
+
ia as RequestValueBindingSchema,
|
|
50
51
|
l as RequestValueCodecError,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
52
|
+
oa as RuntimeSchemaValidationError,
|
|
53
|
+
ya as STANDARD_ADAPTERS,
|
|
54
|
+
_a as STANDARD_RENDERER_DEFINITIONS,
|
|
55
|
+
ca as TableBindingSchema,
|
|
56
|
+
ma as TableCellDisplaySchema,
|
|
57
|
+
ha as TableCellToneSchema,
|
|
58
|
+
la as TableEnhancementSchema,
|
|
59
|
+
da as TableVisualizationEnhancementSchema,
|
|
60
|
+
Sa as ValueFormatSchema,
|
|
61
|
+
Xa as ValueFormatter,
|
|
62
|
+
Da as VisualizationEnhancementSchema,
|
|
63
|
+
ua as WordCloudBindingSchema,
|
|
64
|
+
ba as WordCloudEnhancementSchema,
|
|
65
|
+
Ea as WordCloudVisualizationEnhancementSchema,
|
|
65
66
|
d as assertDashboardConfig,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
Na as barAdapter,
|
|
68
|
+
Ja as barRendererDefinition,
|
|
69
|
+
Pa as buildDashboardSearch,
|
|
70
|
+
$a as cloneJsonValue,
|
|
70
71
|
S as collectDownstreamDatasetIds,
|
|
71
72
|
D as collectDownstreamPanelIds,
|
|
72
73
|
u as createCoreRegistries,
|
|
73
|
-
|
|
74
|
+
Aa as createDashboardContext,
|
|
74
75
|
b as createDashboardDataRuntime,
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
E as createDashboardDependencyGraph,
|
|
77
|
+
R as createDashboardRuntime,
|
|
77
78
|
Ra as createJsonSchemaRuntimeSchema,
|
|
78
|
-
|
|
79
|
+
Ba as createPanelCsvFilename,
|
|
79
80
|
C as createRequestCacheKey,
|
|
80
81
|
g as createRequestValueCodecRegistry,
|
|
81
82
|
f as createStandardCoreRegistries,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
Ca as createTypeBoxRuntimeSchema,
|
|
84
|
+
p as dashboardConfigRuntimeSchema,
|
|
85
|
+
Ta as emitTelemetry,
|
|
86
|
+
xa as getPanelExportFields,
|
|
87
|
+
ae as isJsonValue,
|
|
88
|
+
Ia as isPanelExportEnabled,
|
|
89
|
+
ee as jsonValuesEqual,
|
|
90
|
+
La as lineAdapter,
|
|
91
|
+
Ma as lineRendererDefinition,
|
|
92
|
+
ja as metricAdapter,
|
|
93
|
+
Oa as metricRendererDefinition,
|
|
94
|
+
V as normalizeDatasetRows,
|
|
93
95
|
P as parseDashboardConfig,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
Wa as pieAdapter,
|
|
97
|
+
Ha as pieRendererDefinition,
|
|
98
|
+
va as readDashboardVariable,
|
|
97
99
|
A as readValueAtPath,
|
|
98
100
|
B as registerStandardCore,
|
|
99
101
|
T as resolveDataRequestInput,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
za as restoreDashboardContextFromSearch,
|
|
103
|
+
qa as serializePanelCsv,
|
|
104
|
+
se as stableSerializeJson,
|
|
105
|
+
Ua as tableAdapter,
|
|
106
|
+
ka as tableRendererDefinition,
|
|
107
|
+
x as validateDashboardConfig,
|
|
108
|
+
Ya as valueFormatter,
|
|
109
|
+
Ga as wordCloudAdapter,
|
|
110
|
+
Ka as wordCloudRendererDefinition,
|
|
111
|
+
Fa as writeDashboardVariable
|
|
110
112
|
};
|
|
111
113
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-runtime.d.ts","sourceRoot":"","sources":["../../../src/core/runtime/dashboard-runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAwB,kBAAkB,EAA8B,MAAM,YAAY,CAAC;AAGvG,OAAO,EAA0B,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,KAAK,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAClG,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EAMvB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC1E,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAqCD,qBAAa,gBAAgB;;IAiBf,QAAQ,CAAC,OAAO,EAAE,uBAAuB;I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IAAI,IAAI;IAYf,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,qBAAqB;IAQ7B,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,uBAAuB;IAoB/B,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,iBAAiB;YAyCX,gBAAgB;IAyE9B,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,UAAU;IA2ClB,OAAO,CAAC,SAAS;IAcjB,OAAO,CAAC,oBAAoB;YAYd,aAAa;YAqDb,QAAQ;CAmIvB;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,uBAAuB,GAAG,gBAAgB,CAEzF"}
|
|
@@ -13,10 +13,10 @@ var W = (s, e, t, r) => ({
|
|
|
13
13
|
return n(s, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { e as V, r as ke, P as J, c as Me, d as Te, w as Ne } from "./
|
|
16
|
+
import { e as V, r as ke, P as J, c as Me, d as Te, w as Ne } from "./panel-export-Di_5Frul.js";
|
|
17
17
|
import { i as he, s as le, c as $e } from "./serializable-DOOpLZyk.js";
|
|
18
|
-
import { S as Be, a as xe } from "./standard-definitions-
|
|
19
|
-
import {
|
|
18
|
+
import { S as Be, a as xe } from "./standard-definitions-hgJ-kOoz.js";
|
|
19
|
+
import { K as Le, J as Ue, c as Ke, w as We } from "./runtime-schema-BmeEvFU-.js";
|
|
20
20
|
const Ae = Le(Ke, [Ue]);
|
|
21
21
|
function Rt(s) {
|
|
22
22
|
if (!he(s))
|
|
@@ -74,7 +74,7 @@ function Ye(s, e, t, r, i, a) {
|
|
|
74
74
|
path: `/panels/${e}/binding`
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Qe(s, e, t, r) {
|
|
78
78
|
var u, p;
|
|
79
79
|
const i = (f) => f.role === "metric" && f.dataType === "number", a = (f) => f.role === "dimension" || f.role === "time", d = (f) => f.role === "dimension", c = (f, m, b) => Ye(s, t, r.get(f), f, m, b);
|
|
80
80
|
switch (e.binding.type) {
|
|
@@ -136,7 +136,7 @@ function He(s, e, t, r) {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Ze(s, e, t, r) {
|
|
140
140
|
const i = e.bindingSchema.validate(t.binding);
|
|
141
141
|
if (i.success || i.issues.forEach(
|
|
142
142
|
(a) => s.push({
|
|
@@ -157,7 +157,7 @@ function Qe(s, e, t, r) {
|
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function He(s, e, t = {}) {
|
|
161
161
|
var m, b;
|
|
162
162
|
if (!he(s))
|
|
163
163
|
return {
|
|
@@ -288,7 +288,7 @@ function Ze(s, e, t = {}) {
|
|
|
288
288
|
});
|
|
289
289
|
});
|
|
290
290
|
}), i.panels.forEach((o, h) => {
|
|
291
|
-
var g, _,
|
|
291
|
+
var g, _, H, B, I, M, pe, ge, be, ye, we, _e, ve, De;
|
|
292
292
|
const y = p.get(o.binding.datasetId);
|
|
293
293
|
if (!y)
|
|
294
294
|
a.push({
|
|
@@ -313,7 +313,7 @@ function Ze(s, e, t = {}) {
|
|
|
313
313
|
message: `Panel format override references missing field ${A} in dataset ${y.id}.`,
|
|
314
314
|
path: `/panels/${h}/enhancement/common/formatOverrides/${A}`
|
|
315
315
|
});
|
|
316
|
-
}),
|
|
316
|
+
}), Qe(a, o, h, v), ((H = o.enhancement) == null ? void 0 : H.type) === "table" && (/* @__PURE__ */ new Set([
|
|
317
317
|
...((B = o.enhancement.table) == null ? void 0 : B.sortableFields) ?? [],
|
|
318
318
|
...((I = o.enhancement.table) == null ? void 0 : I.filterableFields) ?? [],
|
|
319
319
|
...Object.keys(((M = o.enhancement.table) == null ? void 0 : M.columnWidths) ?? {}),
|
|
@@ -350,7 +350,7 @@ function Ze(s, e, t = {}) {
|
|
|
350
350
|
path: `/panels/${h}/rendererId`
|
|
351
351
|
});
|
|
352
352
|
else {
|
|
353
|
-
|
|
353
|
+
Ze(a, l, o, h);
|
|
354
354
|
const v = o.adapterId ?? l.defaultAdapterId;
|
|
355
355
|
e.adapters.has(v) || a.push({
|
|
356
356
|
level: "error",
|
|
@@ -401,7 +401,7 @@ function Ze(s, e, t = {}) {
|
|
|
401
401
|
}), a.length ? { valid: !1, diagnostics: Object.freeze(a) } : { valid: !0, config: i, diagnostics: [] };
|
|
402
402
|
}
|
|
403
403
|
function Xe(s, e, t = {}) {
|
|
404
|
-
const r =
|
|
404
|
+
const r = He(s, e, t);
|
|
405
405
|
if (!r.valid)
|
|
406
406
|
throw new Je(r.diagnostics);
|
|
407
407
|
return r.config;
|
|
@@ -796,10 +796,10 @@ function gt(s) {
|
|
|
796
796
|
const e = s.map((t) => Date.parse(t.execution.updatedAt)).filter(Number.isFinite);
|
|
797
797
|
return e.length ? new Date(Math.max(...e)).toISOString() : (/* @__PURE__ */ new Date()).toISOString();
|
|
798
798
|
}
|
|
799
|
-
var
|
|
799
|
+
var Q, L;
|
|
800
800
|
class bt {
|
|
801
801
|
constructor(e, t, r, i = {}) {
|
|
802
|
-
w(this,
|
|
802
|
+
w(this, Q, /* @__PURE__ */ new Map());
|
|
803
803
|
w(this, L, /* @__PURE__ */ new Map());
|
|
804
804
|
this.config = e, this.requestExecutor = t, this.transformers = r, this.options = i;
|
|
805
805
|
}
|
|
@@ -818,7 +818,7 @@ class bt {
|
|
|
818
818
|
try {
|
|
819
819
|
const u = await Promise.all(
|
|
820
820
|
Pe(i).map(async ([g, _]) => {
|
|
821
|
-
const
|
|
821
|
+
const H = await this.requestExecutor.execute(_.requestId, t, r), B = me(H.response, _.responsePath);
|
|
822
822
|
if (_.responsePath && B === void 0)
|
|
823
823
|
throw new N(
|
|
824
824
|
i.id,
|
|
@@ -837,7 +837,7 @@ class bt {
|
|
|
837
837
|
name: g,
|
|
838
838
|
requestId: _.requestId,
|
|
839
839
|
..._.responsePath ? { responsePath: _.responsePath } : {},
|
|
840
|
-
execution:
|
|
840
|
+
execution: H,
|
|
841
841
|
value: B
|
|
842
842
|
};
|
|
843
843
|
})
|
|
@@ -849,7 +849,7 @@ class bt {
|
|
|
849
849
|
transformerId: i.transformerId ?? null
|
|
850
850
|
});
|
|
851
851
|
d || this.trackCacheKey(i.id, f);
|
|
852
|
-
const m = d ? void 0 : n(this,
|
|
852
|
+
const m = d ? void 0 : n(this, Q).get(f);
|
|
853
853
|
if (!r.force && m)
|
|
854
854
|
return V(this.options.telemetry, {
|
|
855
855
|
name: "dataset_cache_hit",
|
|
@@ -896,7 +896,7 @@ class bt {
|
|
|
896
896
|
requestVersions: p,
|
|
897
897
|
diagnostics: y.diagnostics
|
|
898
898
|
});
|
|
899
|
-
return d || n(this,
|
|
899
|
+
return d || n(this, Q).set(f, l), V(this.options.telemetry, {
|
|
900
900
|
name: "dataset_succeeded",
|
|
901
901
|
dashboardId: t.dashboardId,
|
|
902
902
|
datasetId: i.id,
|
|
@@ -923,18 +923,18 @@ class bt {
|
|
|
923
923
|
}
|
|
924
924
|
invalidateDataset(e) {
|
|
925
925
|
for (const t of n(this, L).get(e) ?? [])
|
|
926
|
-
n(this,
|
|
926
|
+
n(this, Q).delete(t);
|
|
927
927
|
n(this, L).delete(e);
|
|
928
928
|
}
|
|
929
929
|
clear() {
|
|
930
|
-
n(this,
|
|
930
|
+
n(this, Q).clear(), n(this, L).clear(), this.requestExecutor.clear();
|
|
931
931
|
}
|
|
932
932
|
trackCacheKey(e, t) {
|
|
933
933
|
const r = n(this, L).get(e) ?? /* @__PURE__ */ new Set();
|
|
934
934
|
r.add(t), n(this, L).set(e, r);
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
|
-
|
|
937
|
+
Q = new WeakMap(), L = new WeakMap();
|
|
938
938
|
var ae, te, ne;
|
|
939
939
|
class je {
|
|
940
940
|
constructor(e) {
|
|
@@ -1051,12 +1051,12 @@ function ie(s) {
|
|
|
1051
1051
|
function fe(s) {
|
|
1052
1052
|
return Object.freeze(Object.fromEntries(s));
|
|
1053
1053
|
}
|
|
1054
|
-
var
|
|
1054
|
+
var Z, z, $, R, q, S, P, j, oe, O, U, K, F;
|
|
1055
1055
|
class _t {
|
|
1056
1056
|
constructor(e) {
|
|
1057
1057
|
E(this, "dataRuntime");
|
|
1058
1058
|
E(this, "graph");
|
|
1059
|
-
w(this,
|
|
1059
|
+
w(this, Z, /* @__PURE__ */ new Set());
|
|
1060
1060
|
w(this, z, /* @__PURE__ */ new Map());
|
|
1061
1061
|
w(this, $, /* @__PURE__ */ new Map());
|
|
1062
1062
|
w(this, R, /* @__PURE__ */ new Map());
|
|
@@ -1094,7 +1094,7 @@ class _t {
|
|
|
1094
1094
|
});
|
|
1095
1095
|
}
|
|
1096
1096
|
subscribe(e) {
|
|
1097
|
-
return n(this,
|
|
1097
|
+
return n(this, Z).add(e), () => n(this, Z).delete(e);
|
|
1098
1098
|
}
|
|
1099
1099
|
load() {
|
|
1100
1100
|
return this.schedule(new Set(this.config.datasets.map((e) => e.id)), !1);
|
|
@@ -1168,7 +1168,7 @@ class _t {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
destroy() {
|
|
1170
1170
|
var e;
|
|
1171
|
-
D(this, F, !0), (e = n(this, O)) == null || e.abort(), D(this, O, void 0), n(this, U).clear(), D(this, K, !1), this.cancelPanelLoads(new Set(n(this, S).keys())), this.cancelPanelRefreshes(new Set(n(this, q).keys())), n(this,
|
|
1171
|
+
D(this, F, !0), (e = n(this, O)) == null || e.abort(), D(this, O, void 0), n(this, U).clear(), D(this, K, !1), this.cancelPanelLoads(new Set(n(this, S).keys())), this.cancelPanelRefreshes(new Set(n(this, q).keys())), n(this, Z).clear(), this.dataRuntime.clear();
|
|
1172
1172
|
}
|
|
1173
1173
|
requirePanel(e) {
|
|
1174
1174
|
const t = this.config.panels.find((r) => r.id === e);
|
|
@@ -1178,7 +1178,7 @@ class _t {
|
|
|
1178
1178
|
notify() {
|
|
1179
1179
|
if (n(this, F)) return;
|
|
1180
1180
|
const e = this.snapshot;
|
|
1181
|
-
n(this,
|
|
1181
|
+
n(this, Z).forEach((t) => t(e));
|
|
1182
1182
|
}
|
|
1183
1183
|
requestIdsForDatasets(e) {
|
|
1184
1184
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -1504,7 +1504,7 @@ class _t {
|
|
|
1504
1504
|
), c === n(this, j) && n(this, O) === d && (D(this, O, void 0), n(this, U).clear(), D(this, K, !1), this.notify()), this.snapshot;
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
|
-
|
|
1507
|
+
Z = new WeakMap(), z = new WeakMap(), $ = new WeakMap(), R = new WeakMap(), q = new WeakMap(), S = new WeakMap(), P = new WeakMap(), j = new WeakMap(), oe = new WeakMap(), O = new WeakMap(), U = new WeakMap(), K = new WeakMap(), F = new WeakMap();
|
|
1508
1508
|
function Pt(s) {
|
|
1509
1509
|
return new _t(s);
|
|
1510
1510
|
}
|
|
@@ -1535,6 +1535,6 @@ export {
|
|
|
1535
1535
|
me as t,
|
|
1536
1536
|
dt as u,
|
|
1537
1537
|
st as v,
|
|
1538
|
-
|
|
1538
|
+
He as w
|
|
1539
1539
|
};
|
|
1540
|
-
//# sourceMappingURL=dashboard-runtime-
|
|
1540
|
+
//# sourceMappingURL=dashboard-runtime-6VlVQIuQ.js.map
|