@devtable/dashboard 14.42.2 → 14.43.1

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.
@@ -138,14 +138,17 @@ export declare const DataSourceModel: import("mobx-state-tree").IModelType<{
138
138
  } | {
139
139
  group: string;
140
140
  description: string;
141
- items: {
141
+ items: ({
142
+ label: string;
143
+ value: string;
144
+ } | {
142
145
  id: string;
143
146
  description: string;
144
147
  field: string;
145
148
  dataType: import("./mm-info").DimensionColDataType;
146
149
  label: string;
147
150
  value: string;
148
- }[];
151
+ })[];
149
152
  })[];
150
153
  }[];
151
154
  readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
@@ -140,14 +140,17 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
140
140
  } | {
141
141
  group: string;
142
142
  description: string;
143
- items: {
143
+ items: ({
144
+ label: string;
145
+ value: string;
146
+ } | {
144
147
  id: string;
145
148
  description: string;
146
149
  field: string;
147
150
  dataType: import("./mm-info").DimensionColDataType;
148
151
  label: string;
149
152
  value: string;
150
- }[];
153
+ })[];
151
154
  })[];
152
155
  }[];
153
156
  readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
@@ -469,14 +472,17 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
469
472
  } | {
470
473
  group: string;
471
474
  description: string;
472
- items: {
475
+ items: ({
476
+ label: string;
477
+ value: string;
478
+ } | {
473
479
  id: string;
474
480
  description: string;
475
481
  field: string;
476
482
  dataType: import("./mm-info").DimensionColDataType;
477
483
  label: string;
478
484
  value: string;
479
- }[];
485
+ })[];
480
486
  })[];
481
487
  }[];
482
488
  readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
@@ -531,14 +537,17 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
531
537
  } | {
532
538
  group: string;
533
539
  description: string;
534
- items: {
540
+ items: ({
541
+ label: string;
542
+ value: string;
543
+ } | {
535
544
  id: string;
536
545
  description: string;
537
546
  field: string;
538
547
  dataType: import("./mm-info").DimensionColDataType;
539
548
  label: string;
540
549
  value: string;
541
- }[];
550
+ })[];
542
551
  })[];
543
552
  }[];
544
553
  readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
@@ -625,14 +634,17 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
625
634
  } | {
626
635
  group: string;
627
636
  description: string;
628
- items: {
637
+ items: ({
638
+ label: string;
639
+ value: string;
640
+ } | {
629
641
  id: string;
630
642
  description: string;
631
643
  field: string;
632
644
  dataType: import("./mm-info").DimensionColDataType;
633
645
  label: string;
634
646
  value: string;
635
- }[];
647
+ })[];
636
648
  })[];
637
649
  }[];
638
650
  readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
@@ -807,14 +819,17 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
807
819
  } | {
808
820
  group: string;
809
821
  description: string;
810
- items: {
822
+ items: ({
823
+ label: string;
824
+ value: string;
825
+ } | {
811
826
  id: string;
812
827
  description: string;
813
828
  field: string;
814
829
  dataType: import("./mm-info").DimensionColDataType;
815
830
  label: string;
816
831
  value: string;
817
- }[];
832
+ })[];
818
833
  })[];
819
834
  }[];
820
835
  readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
@@ -33,14 +33,17 @@ export declare const MetricDetailModel: import("mobx-state-tree").IModelType<{
33
33
  } | {
34
34
  group: string;
35
35
  description: string;
36
- items: {
36
+ items: ({
37
+ label: string;
38
+ value: string;
39
+ } | {
37
40
  id: string;
38
41
  description: string;
39
42
  field: string;
40
43
  dataType: import("./metric-detail.types").DimensionColDataType;
41
44
  label: string;
42
45
  value: string;
43
- }[];
46
+ })[];
44
47
  })[];
45
48
  }[];
46
49
  readonly groupByColOptions: MetricGroupByColOption[];
@@ -6,7 +6,7 @@ export type DimensionInfo = {
6
6
  description: string;
7
7
  field: string;
8
8
  dataType: DimensionColDataType;
9
- }[];
9
+ }[] | string[];
10
10
  };
11
11
  export type MetricSourceCol_Simple = {
12
12
  id: string;
@@ -27,14 +27,17 @@ export declare function makeFilterColOptions(cols: Array<CombinedMetricCol | Met
27
27
  } | {
28
28
  group: string;
29
29
  description: string;
30
- items: {
30
+ items: ({
31
+ label: string;
32
+ value: string;
33
+ } | {
31
34
  id: string;
32
35
  description: string;
33
36
  field: string;
34
37
  dataType: DimensionColDataType;
35
38
  label: string;
36
39
  value: string;
37
- }[];
40
+ })[];
38
41
  })[];
39
42
  }[];
40
43
  export type MetricGroupByColOption = {
@@ -52,14 +52,17 @@ export declare const MMInfoModel: import("mobx-state-tree").IModelType<{
52
52
  } | {
53
53
  group: string;
54
54
  description: string;
55
- items: {
55
+ items: ({
56
+ label: string;
57
+ value: string;
58
+ } | {
56
59
  id: string;
57
60
  description: string;
58
61
  field: string;
59
62
  dataType: import("./metric-detail.types").DimensionColDataType;
60
63
  label: string;
61
64
  value: string;
62
- }[];
65
+ })[];
63
66
  })[];
64
67
  }[];
65
68
  readonly groupByColOptions: import("./metric-detail.utils").MetricGroupByColOption[];
@@ -2474,7 +2474,7 @@ function Vm() {
2474
2474
  } = R.useContext(ps);
2475
2475
  return e ? document.getElementById(e) : null;
2476
2476
  }
2477
- const gs = "14.42.2", $m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2477
+ const gs = "14.43.1", $m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2478
2478
  __proto__: null,
2479
2479
  version: gs
2480
2480
  }, Symbol.toStringTag, { value: "Module" }));
@@ -30853,11 +30853,14 @@ function V4(e) {
30853
30853
  return s ? {
30854
30854
  group: o.name,
30855
30855
  description: o.description,
30856
- items: s.fields.map((c) => ({
30856
+ items: s.fields.map((c) => typeof c == "string" ? {
30857
+ label: c,
30858
+ value: c
30859
+ } : {
30857
30860
  label: c.field,
30858
30861
  value: `${o.name} -> ${c.field}`,
30859
30862
  ...c
30860
- }))
30863
+ })
30861
30864
  } : {
30862
30865
  label: o.name,
30863
30866
  value: o.name,
@@ -36387,7 +36390,7 @@ const EI = [{
36387
36390
  const a = [];
36388
36391
  return t && a.push("sub-option"), n && a.push("disabled"), /* @__PURE__ */ r(Wt.Option, { value: e.value, className: a.join(" "), disabled: n, children: /* @__PURE__ */ u(T, { gap: 1, children: [
36389
36392
  /* @__PURE__ */ u(y, { gap: 4, children: [
36390
- /* @__PURE__ */ r(to, { type: e.dataType }),
36393
+ !!e.dataType && /* @__PURE__ */ r(to, { type: e.dataType }),
36391
36394
  /* @__PURE__ */ r(k, { size: "xs", children: e.label })
36392
36395
  ] }),
36393
36396
  /* @__PURE__ */ r(k, { size: "xs", c: "dimmed", pl: 18, children: e.description })
@@ -36706,7 +36709,7 @@ const EI = [{
36706
36709
  const d = i.getGroupByOptions(c), h = [];
36707
36710
  d.forEach((p) => {
36708
36711
  p.dimension ? p.dimension.fields.forEach((g) => {
36709
- h.push(`${p.value} -> ${g.field}`);
36712
+ typeof g == "string" ? h.push(g) : h.push(`${p.value} -> ${g.field}`);
36710
36713
  }) : h.push(p.value);
36711
36714
  }), t.setGroupBys(h);
36712
36715
  };