@devtable/dashboard 10.20.1 → 10.20.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/dist/components/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +2 -2
- package/dist/components/plugins/plugin-context.d.ts +2 -2
- package/dist/contexts/panel-context.d.ts +4 -4
- package/dist/dashboard-editor/model/panels/panel.d.ts +1 -1
- package/dist/dashboard-editor/model/panels/panels.d.ts +8 -8
- package/dist/dashboard.es.js +15 -6
- package/dist/dashboard.umd.js +35 -35
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +1 -1
- package/dist/model/render-model/dashboard/content/panels/panels.d.ts +7 -7
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -2054,7 +2054,7 @@ export declare function usePanelFullScreen(view: ViewMetaInstance, panelID: stri
|
|
|
2054
2054
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
2055
2055
|
readonly data: TPanelData;
|
|
2056
2056
|
readonly dataLoading: boolean;
|
|
2057
|
-
readonly queryStateMessages: string
|
|
2057
|
+
readonly queryStateMessages: string;
|
|
2058
2058
|
readonly queryErrors: any[];
|
|
2059
2059
|
readonly canRenderViz: boolean;
|
|
2060
2060
|
} & {
|
|
@@ -3735,7 +3735,7 @@ export declare function usePanelFullScreen(view: ViewMetaInstance, panelID: stri
|
|
|
3735
3735
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
3736
3736
|
readonly data: TPanelData;
|
|
3737
3737
|
readonly dataLoading: boolean;
|
|
3738
|
-
readonly queryStateMessages: string
|
|
3738
|
+
readonly queryStateMessages: string;
|
|
3739
3739
|
readonly queryErrors: any[];
|
|
3740
3740
|
readonly canRenderViz: boolean;
|
|
3741
3741
|
} & {
|
|
@@ -2070,7 +2070,7 @@ export declare const tokens: {
|
|
|
2070
2070
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
2071
2071
|
readonly data: TPanelData;
|
|
2072
2072
|
readonly dataLoading: boolean;
|
|
2073
|
-
readonly queryStateMessages: string
|
|
2073
|
+
readonly queryStateMessages: string;
|
|
2074
2074
|
readonly queryErrors: any[];
|
|
2075
2075
|
readonly canRenderViz: boolean;
|
|
2076
2076
|
} & {
|
|
@@ -3761,7 +3761,7 @@ export declare const tokens: {
|
|
|
3761
3761
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
3762
3762
|
readonly data: TPanelData;
|
|
3763
3763
|
readonly dataLoading: boolean;
|
|
3764
|
-
readonly queryStateMessages: string
|
|
3764
|
+
readonly queryStateMessages: string;
|
|
3765
3765
|
readonly queryErrors: any[];
|
|
3766
3766
|
readonly canRenderViz: boolean;
|
|
3767
3767
|
} & {
|
|
@@ -2060,7 +2060,7 @@ export declare const useRenderPanelContext: () => {
|
|
|
2060
2060
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
2061
2061
|
readonly data: TPanelData;
|
|
2062
2062
|
readonly dataLoading: boolean;
|
|
2063
|
-
readonly queryStateMessages: string
|
|
2063
|
+
readonly queryStateMessages: string;
|
|
2064
2064
|
readonly queryErrors: any[];
|
|
2065
2065
|
readonly canRenderViz: boolean;
|
|
2066
2066
|
} & {
|
|
@@ -3741,7 +3741,7 @@ export declare const useRenderPanelContext: () => {
|
|
|
3741
3741
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
3742
3742
|
readonly data: TPanelData;
|
|
3743
3743
|
readonly dataLoading: boolean;
|
|
3744
|
-
readonly queryStateMessages: string
|
|
3744
|
+
readonly queryStateMessages: string;
|
|
3745
3745
|
readonly queryErrors: any[];
|
|
3746
3746
|
readonly canRenderViz: boolean;
|
|
3747
3747
|
} & {
|
|
@@ -5805,7 +5805,7 @@ export declare const useEditPanelContext: () => {
|
|
|
5805
5805
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
5806
5806
|
readonly data: TPanelData;
|
|
5807
5807
|
readonly dataLoading: boolean;
|
|
5808
|
-
readonly queryStateMessages: string
|
|
5808
|
+
readonly queryStateMessages: string;
|
|
5809
5809
|
readonly queryErrors: any[];
|
|
5810
5810
|
readonly canRenderViz: boolean;
|
|
5811
5811
|
} & {
|
|
@@ -7496,7 +7496,7 @@ export declare const useEditPanelContext: () => {
|
|
|
7496
7496
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
7497
7497
|
readonly data: TPanelData;
|
|
7498
7498
|
readonly dataLoading: boolean;
|
|
7499
|
-
readonly queryStateMessages: string
|
|
7499
|
+
readonly queryStateMessages: string;
|
|
7500
7500
|
readonly queryErrors: any[];
|
|
7501
7501
|
readonly canRenderViz: boolean;
|
|
7502
7502
|
} & {
|
|
@@ -1674,7 +1674,7 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
1674
1674
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
1675
1675
|
readonly data: TPanelData;
|
|
1676
1676
|
readonly dataLoading: boolean;
|
|
1677
|
-
readonly queryStateMessages: string
|
|
1677
|
+
readonly queryStateMessages: string;
|
|
1678
1678
|
readonly queryErrors: any[];
|
|
1679
1679
|
readonly canRenderViz: boolean;
|
|
1680
1680
|
} & {
|
|
@@ -1677,7 +1677,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
1677
1677
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
1678
1678
|
readonly data: TPanelData;
|
|
1679
1679
|
readonly dataLoading: boolean;
|
|
1680
|
-
readonly queryStateMessages: string
|
|
1680
|
+
readonly queryStateMessages: string;
|
|
1681
1681
|
readonly queryErrors: any[];
|
|
1682
1682
|
readonly canRenderViz: boolean;
|
|
1683
1683
|
} & {
|
|
@@ -3360,7 +3360,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
3360
3360
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
3361
3361
|
readonly data: TPanelData;
|
|
3362
3362
|
readonly dataLoading: boolean;
|
|
3363
|
-
readonly queryStateMessages: string
|
|
3363
|
+
readonly queryStateMessages: string;
|
|
3364
3364
|
readonly queryErrors: any[];
|
|
3365
3365
|
readonly canRenderViz: boolean;
|
|
3366
3366
|
} & {
|
|
@@ -5695,7 +5695,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
5695
5695
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
5696
5696
|
readonly data: TPanelData;
|
|
5697
5697
|
readonly dataLoading: boolean;
|
|
5698
|
-
readonly queryStateMessages: string
|
|
5698
|
+
readonly queryStateMessages: string;
|
|
5699
5699
|
readonly queryErrors: any[];
|
|
5700
5700
|
readonly canRenderViz: boolean;
|
|
5701
5701
|
} & {
|
|
@@ -7376,7 +7376,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
7376
7376
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
7377
7377
|
readonly data: TPanelData;
|
|
7378
7378
|
readonly dataLoading: boolean;
|
|
7379
|
-
readonly queryStateMessages: string
|
|
7379
|
+
readonly queryStateMessages: string;
|
|
7380
7380
|
readonly queryErrors: any[];
|
|
7381
7381
|
readonly canRenderViz: boolean;
|
|
7382
7382
|
} & {
|
|
@@ -9434,7 +9434,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
9434
9434
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
9435
9435
|
readonly data: TPanelData;
|
|
9436
9436
|
readonly dataLoading: boolean;
|
|
9437
|
-
readonly queryStateMessages: string
|
|
9437
|
+
readonly queryStateMessages: string;
|
|
9438
9438
|
readonly queryErrors: any[];
|
|
9439
9439
|
readonly canRenderViz: boolean;
|
|
9440
9440
|
} & {
|
|
@@ -11115,7 +11115,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
11115
11115
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
11116
11116
|
readonly data: TPanelData;
|
|
11117
11117
|
readonly dataLoading: boolean;
|
|
11118
|
-
readonly queryStateMessages: string
|
|
11118
|
+
readonly queryStateMessages: string;
|
|
11119
11119
|
readonly queryErrors: any[];
|
|
11120
11120
|
readonly canRenderViz: boolean;
|
|
11121
11121
|
} & {
|
|
@@ -13175,7 +13175,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
13175
13175
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
13176
13176
|
readonly data: TPanelData;
|
|
13177
13177
|
readonly dataLoading: boolean;
|
|
13178
|
-
readonly queryStateMessages: string
|
|
13178
|
+
readonly queryStateMessages: string;
|
|
13179
13179
|
readonly queryErrors: any[];
|
|
13180
13180
|
readonly canRenderViz: boolean;
|
|
13181
13181
|
} & {
|
|
@@ -14856,7 +14856,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
14856
14856
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
14857
14857
|
readonly data: TPanelData;
|
|
14858
14858
|
readonly dataLoading: boolean;
|
|
14859
|
-
readonly queryStateMessages: string
|
|
14859
|
+
readonly queryStateMessages: string;
|
|
14860
14860
|
readonly queryErrors: any[];
|
|
14861
14861
|
readonly canRenderViz: boolean;
|
|
14862
14862
|
} & {
|
package/dist/dashboard.es.js
CHANGED
|
@@ -1164,7 +1164,7 @@ class aa {
|
|
|
1164
1164
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
|
-
const dc = "10.20.
|
|
1167
|
+
const dc = "10.20.2", gf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1168
1168
|
__proto__: null,
|
|
1169
1169
|
version: dc
|
|
1170
1170
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -23223,13 +23223,22 @@ const Kd = MT.views((e) => ({
|
|
|
23223
23223
|
return this.queries.some((t) => t.state === "loading");
|
|
23224
23224
|
},
|
|
23225
23225
|
get queryStateMessages() {
|
|
23226
|
-
|
|
23226
|
+
const t = this.queries.filter((a) => !a.runByConditionsMet);
|
|
23227
|
+
if (t.length === 0)
|
|
23228
|
+
return "";
|
|
23229
|
+
const n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
23230
|
+
t.forEach((a) => {
|
|
23231
|
+
const s = a.conditionNames;
|
|
23232
|
+
s.context.forEach((l) => n.add(l)), s.filters.forEach((l) => r.add(l));
|
|
23233
|
+
});
|
|
23234
|
+
const o = [];
|
|
23235
|
+
return n.size > 0 && (console.log(n), o.push(`context: ${Array.from(n).join(", ")}`)), r.size > 0 && o.push(`filter${r.size > 1 ? "s" : ""}: ${Array.from(r).join(", ")}`), o.length === 2 && o.splice(1, 0, "and"), o.unshift("Waiting for"), o.join(" ");
|
|
23227
23236
|
},
|
|
23228
23237
|
get queryErrors() {
|
|
23229
23238
|
return this.queries.map((t) => t.error).filter((t) => !!t);
|
|
23230
23239
|
},
|
|
23231
23240
|
get canRenderViz() {
|
|
23232
|
-
return this.queryErrors.length === 0 && this.queryStateMessages
|
|
23241
|
+
return this.queryErrors.length === 0 && this.queryStateMessages === "" && !this.dataLoading;
|
|
23233
23242
|
}
|
|
23234
23243
|
})).actions((e) => ({
|
|
23235
23244
|
refreshData() {
|
|
@@ -23988,10 +23997,10 @@ const xD = D(function({
|
|
|
23988
23997
|
}), vD = D(({
|
|
23989
23998
|
panel: e
|
|
23990
23999
|
}) => /* @__PURE__ */ u(S, { children: [
|
|
23991
|
-
e.queryErrors.map((t, n) => /* @__PURE__ */ i(C, { color: "red", size: "
|
|
24000
|
+
e.queryErrors.map((t, n) => /* @__PURE__ */ i(C, { color: "red", size: "sm", align: "center", sx: {
|
|
23992
24001
|
fontFamily: "monospace"
|
|
23993
24002
|
}, children: t }, `${n}-${t}`)),
|
|
23994
|
-
|
|
24003
|
+
/* @__PURE__ */ i(C, { color: "gray", align: "center", size: "sm", children: e.queryStateMessages })
|
|
23995
24004
|
] })), du = D(({
|
|
23996
24005
|
panel: e,
|
|
23997
24006
|
height: t
|
|
@@ -27282,7 +27291,7 @@ function FM(e) {
|
|
|
27282
27291
|
const PM = D(({
|
|
27283
27292
|
panel: e
|
|
27284
27293
|
}) => {
|
|
27285
|
-
const t = Ht(), n = Oe(), r = Ce(), [o, a] = U("Data"), s = e.queries, c = FM(e.viz.type) && e.dataLoading, d = c || e.queryErrors.length > 0 || e.queryStateMessages
|
|
27294
|
+
const t = Ht(), n = Oe(), r = Ce(), [o, a] = U("Data"), s = e.queries, c = FM(e.viz.type) && e.dataLoading, d = c || e.queryErrors.length > 0 || e.queryStateMessages !== "" || s.length === 0, p = n.editor.path[1];
|
|
27286
27295
|
W(() => {
|
|
27287
27296
|
a((m) => d && m === "Visualization" ? "Data" : m);
|
|
27288
27297
|
}, [e.id, d]);
|