@devtable/dashboard 10.20.0 → 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.
@@ -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
  } & {
@@ -1164,7 +1164,7 @@ class aa {
1164
1164
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1165
1165
  }
1166
1166
  }
1167
- const dc = "10.20.0", gf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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
- return this.queries.map((t) => t.stateMessage).filter((t) => !!t);
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.length === 0 && !this.dataLoading;
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: "md", align: "center", sx: {
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
- e.queryStateMessages.map((t, n) => /* @__PURE__ */ i(C, { color: "gray", align: "center", children: t }, `${n}-${t}`))
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
@@ -24319,10 +24328,11 @@ const FD = D(({
24319
24328
  const t = Ke(), n = e.config;
24320
24329
  return /* @__PURE__ */ u(g, { className: "render-view-tabs", variant: n.variant, orientation: n.orientation, defaultValue: n.tabs.length > 0 ? n.tabs[0].id : "0", styles: {
24321
24330
  root: {
24322
- height: "100%"
24331
+ height: "100%",
24332
+ overflow: n.orientation === "horizontal" ? "hidden" : "auto"
24323
24333
  },
24324
24334
  panel: {
24325
- padding: n.orientation === "horizontal" ? "16px 0px" : "0",
24335
+ padding: n.orientation === "horizontal" ? "8px 0px 8px" : "0",
24326
24336
  height: "100%",
24327
24337
  overflow: "auto"
24328
24338
  }
@@ -24424,7 +24434,8 @@ const WD = D(({
24424
24434
  }) => {
24425
24435
  const n = {
24426
24436
  root: {
24427
- height: "100%"
24437
+ height: "100%",
24438
+ overflow: "hidden"
24428
24439
  },
24429
24440
  tab: {},
24430
24441
  panel: {
@@ -27280,7 +27291,7 @@ function FM(e) {
27280
27291
  const PM = D(({
27281
27292
  panel: e
27282
27293
  }) => {
27283
- 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.length > 0 || s.length === 0, p = n.editor.path[1];
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];
27284
27295
  W(() => {
27285
27296
  a((m) => d && m === "Visualization" ? "Data" : m);
27286
27297
  }, [e.id, d]);