@milaboratories/graph-maker 1.1.166 → 1.1.167

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.
Files changed (91) hide show
  1. package/dist/GraphMaker/constantsCommon.d.ts +0 -9
  2. package/dist/GraphMaker/constantsCommon.d.ts.map +1 -1
  3. package/dist/GraphMaker/constantsCommon.js +74 -81
  4. package/dist/GraphMaker/constantsCommon.js.map +1 -1
  5. package/dist/GraphMaker/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js +8 -2
  6. package/dist/GraphMaker/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js.map +1 -1
  7. package/dist/GraphMaker/forms/DataMappingForm/DiscreteForm.vue.js +26 -20
  8. package/dist/GraphMaker/forms/DataMappingForm/DiscreteForm.vue.js.map +1 -1
  9. package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot/Scatter.vue.d.ts.map +1 -1
  10. package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot/Scatter.vue.js +37 -31
  11. package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot/Scatter.vue.js.map +1 -1
  12. package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot-umap/Scatter.vue.js +30 -24
  13. package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot-umap/Scatter.vue.js.map +1 -1
  14. package/dist/GraphMaker/forms/StatisticsForm/DiscreteStatisticsForm.vue.js +33 -27
  15. package/dist/GraphMaker/forms/StatisticsForm/DiscreteStatisticsForm.vue.js.map +1 -1
  16. package/dist/GraphMaker/index.vue.js +8 -2
  17. package/dist/GraphMaker/index.vue.js.map +1 -1
  18. package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.js +22 -16
  19. package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.js.map +1 -1
  20. package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.js +17 -11
  21. package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.js.map +1 -1
  22. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.js +26 -20
  23. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.js.map +1 -1
  24. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.js +29 -23
  25. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.js.map +1 -1
  26. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
  27. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js +83 -68
  28. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
  29. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js +25 -19
  30. package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js.map +1 -1
  31. package/dist/GraphMaker/utils/getUsedAesInMapping.js +37 -31
  32. package/dist/GraphMaker/utils/getUsedAesInMapping.js.map +1 -1
  33. package/dist/GraphMaker/utils/loadDefaultSources.d.ts.map +1 -1
  34. package/dist/GraphMaker/utils/loadDefaultSources.js +36 -31
  35. package/dist/GraphMaker/utils/loadDefaultSources.js.map +1 -1
  36. package/dist/_virtual/stringify.js +5 -0
  37. package/dist/_virtual/stringify.js.map +1 -0
  38. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js +106 -107
  39. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js.map +1 -1
  40. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ControllerBase.js +120 -121
  41. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ControllerBase.js.map +1 -1
  42. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/bubble.js +83 -84
  43. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/bubble.js.map +1 -1
  44. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/dendro.js +4 -4
  45. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/discrete.js +11 -11
  46. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/heatmap.js +123 -124
  47. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/heatmap.js.map +1 -1
  48. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/histogram.js +8 -8
  49. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot-umap.js +88 -89
  50. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot-umap.js.map +1 -1
  51. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js +103 -105
  52. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js.map +1 -1
  53. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js +148 -119
  54. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js.map +1 -1
  55. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/components/PlDataTable.js +4 -4
  56. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js +5 -5
  57. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js +8 -0
  58. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js.map +1 -0
  59. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js +182 -0
  60. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js.map +1 -0
  61. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/errors.js +18 -0
  62. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/errors.js.map +1 -0
  63. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/json.js +12 -0
  64. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/json.js.map +1 -0
  65. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/plid.js +7 -0
  66. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/plid.js.map +1 -0
  67. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/ref.js +8 -0
  68. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/ref.js.map +1 -0
  69. package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js +105 -111
  70. package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js.map +1 -1
  71. package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js +158 -163
  72. package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js.map +1 -1
  73. package/dist/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.js +36 -0
  74. package/dist/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.js.map +1 -0
  75. package/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js +8 -0
  76. package/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js.map +1 -0
  77. package/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js +52 -0
  78. package/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js.map +1 -0
  79. package/dist/node_modules/@milaboratories/pl-model-common/dist/plid.js +7 -0
  80. package/dist/node_modules/@milaboratories/pl-model-common/dist/plid.js.map +1 -0
  81. package/dist/node_modules/@milaboratories/pl-model-common/dist/ref.js +8 -0
  82. package/dist/node_modules/@milaboratories/pl-model-common/dist/ref.js.map +1 -0
  83. package/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js +16 -0
  84. package/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js.map +1 -0
  85. package/dist/node_modules/json-stringify-safe/stringify.js +20 -0
  86. package/dist/node_modules/json-stringify-safe/stringify.js.map +1 -0
  87. package/dist/node_modules/zod/lib/index.js +2978 -0
  88. package/dist/node_modules/zod/lib/index.js.map +1 -0
  89. package/package.json +3 -3
  90. package/dist/node_modules/@milaboratories/pf-plots/dist/constants.js +0 -18
  91. package/dist/node_modules/@milaboratories/pf-plots/dist/constants.js.map +0 -1
@@ -1,11 +1,10 @@
1
- import Y from "../../_virtual/canonicalize.js";
2
- import { FORMAT as E } from "../../constants.js";
1
+ import E from "../../_virtual/canonicalize.js";
3
2
  import { ControllerBase as K } from "../ControllerBase.js";
4
- import { ComponentController as m } from "../ComponentController.js";
5
- import { AxisId as v, columnOrAxisIdFromString as g, isColumnId as b } from "../../spec.js";
6
- import { createLinkerMap as V, createMultipliesByMap as q, getFiltersFromStates as H, getAxesSpecsFromSources as W, getLinkerColumnsForSource as M, getColumnOrAxisValueLabelsId as w, getColumnOrAxisLabel as x, getColumnOrAxisSpec as J } from "../../utils.js";
7
- var R = Object.defineProperty, U = (u, e, t) => e in u ? R(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t, X = (u, e, t) => U(u, typeof e != "symbol" ? e + "" : e, t);
8
- const te = {
3
+ import { ComponentController as S } from "../ComponentController.js";
4
+ import { AxisId as y, columnOrAxisIdFromString as w, isColumnId as b } from "../../spec.js";
5
+ import { createLinkerMap as M, createMultipliesByMap as V, getFiltersFromStates as q, getAxesSpecsFromSources as H, getLinkerColumnsForSource as X, getColumnOrAxisValueLabelsId as v, getColumnOrAxisLabel as C, getColumnOrAxisSpec as J, getFormat as U } from "../../utils.js";
6
+ var Z = Object.defineProperty, z = (u, e, t) => e in u ? Z(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t, Y = (u, e, t) => z(u, typeof e != "symbol" ? e + "" : e, t);
7
+ const ee = {
9
8
  type: "heatmap",
10
9
  components: {
11
10
  value: { type: "simple", selectorStates: [] },
@@ -25,24 +24,24 @@ const te = {
25
24
  function N(u) {
26
25
  return u ? "kind" in u && u.kind === "PColumn" ? u.valueType === "String" : u.type === "String" : !0;
27
26
  }
28
- function G(u, e) {
27
+ function I(u, e) {
29
28
  if (!e.length)
30
29
  return [];
31
- const t = e.map((i) => g(i)), r = Object.values(u.columnsData)[0].length, o = [];
32
- for (let i = 0; i < r; i++) {
33
- const a = t.map((f) => {
34
- const B = f.toCanonicalString();
35
- return b(f) ? u.columnsData[B][i] : u.axesData[B][i];
30
+ const t = e.map((i) => w(i)), l = Object.values(u.columnsData)[0].length, o = [];
31
+ for (let i = 0; i < l; i++) {
32
+ const a = t.map((x) => {
33
+ const f = x.toCanonicalString();
34
+ return b(x) ? u.columnsData[f][i] : u.axesData[f][i];
36
35
  }).join(", ");
37
36
  o.push(a);
38
37
  }
39
38
  return o;
40
39
  }
41
- class oe extends K {
40
+ class te extends K {
42
41
  constructor() {
43
42
  super(
44
43
  {
45
- value: new m({
44
+ value: new S({
46
45
  componentName: "value",
47
46
  allowedTypes: ["Int", "Long", "Double", "Float", "String"],
48
47
  settings: {
@@ -52,7 +51,7 @@ class oe extends K {
52
51
  required: !0
53
52
  }
54
53
  }),
55
- x: new m({
54
+ x: new S({
56
55
  componentName: "x",
57
56
  allowedTypes: ["Int", "String", "Long"],
58
57
  strictlyDependsOnParents: !0,
@@ -65,7 +64,7 @@ class oe extends K {
65
64
  columnsAllowed: !1
66
65
  }
67
66
  }),
68
- xGroupBy: new m({
67
+ xGroupBy: new S({
69
68
  componentName: "xGroupBy",
70
69
  allowedTypes: ["Int", "String", "Long"],
71
70
  strictlyDependsOnParents: !0,
@@ -78,16 +77,16 @@ class oe extends K {
78
77
  },
79
78
  dependsOn: ["x"],
80
79
  checkSourceBySpec: (e, t) => {
81
- const r = /* @__PURE__ */ new Set([
80
+ const l = /* @__PURE__ */ new Set([
82
81
  ...t.components.x.selectorStates.map((o) => o.selectedSource),
83
82
  ...t.components.xGroupBy.selectorStates.map((o) => o.selectedSource)
84
83
  ]);
85
- return "kind" in e && e.kind === "PColumn" ? v.fromAxesSpec(e.axesSpec).every(
86
- (o) => r.has(o.toCanonicalString())
84
+ return "kind" in e && e.kind === "PColumn" ? y.fromAxesSpec(e.axesSpec).every(
85
+ (o) => l.has(o.toCanonicalString())
87
86
  ) : !0;
88
87
  }
89
88
  }),
90
- y: new m({
89
+ y: new S({
91
90
  componentName: "y",
92
91
  allowedTypes: ["Int", "String", "Long"],
93
92
  strictlyDependsOnParents: !0,
@@ -100,7 +99,7 @@ class oe extends K {
100
99
  columnsAllowed: !0
101
100
  }
102
101
  }),
103
- yGroupBy: new m({
102
+ yGroupBy: new S({
104
103
  componentName: "yGroupBy",
105
104
  allowedTypes: ["Int", "String", "Long"],
106
105
  strictlyDependsOnParents: !0,
@@ -113,16 +112,16 @@ class oe extends K {
113
112
  },
114
113
  dependsOn: ["y"],
115
114
  checkSourceBySpec: (e, t) => {
116
- const r = /* @__PURE__ */ new Set([
115
+ const l = /* @__PURE__ */ new Set([
117
116
  ...t.components.y.selectorStates.map((o) => o.selectedSource),
118
117
  ...t.components.yGroupBy.selectorStates.map((o) => o.selectedSource)
119
118
  ]);
120
- return "kind" in e && e.kind === "PColumn" ? v.fromAxesSpec(e.axesSpec).every(
121
- (o) => r.has(o.toCanonicalString())
119
+ return "kind" in e && e.kind === "PColumn" ? y.fromAxesSpec(e.axesSpec).every(
120
+ (o) => l.has(o.toCanonicalString())
122
121
  ) : !0;
123
122
  }
124
123
  }),
125
- tooltipContent: new m({
124
+ tooltipContent: new S({
126
125
  componentName: "tooltipContent",
127
126
  allowedTypes: ["String", "Int", "Long", "Float", "Double"],
128
127
  strictlyDependsOnParents: !0,
@@ -134,7 +133,7 @@ class oe extends K {
134
133
  multipleSelectors: !0
135
134
  }
136
135
  }),
137
- facetBy: new m({
136
+ facetBy: new S({
138
137
  componentName: "facetBy",
139
138
  allowedTypes: ["String", "Int", "Long"],
140
139
  strictlyDependsOnParents: !0,
@@ -146,7 +145,7 @@ class oe extends K {
146
145
  multipleSelectors: !0
147
146
  }
148
147
  }),
149
- annotationsX: new m({
148
+ annotationsX: new S({
150
149
  componentName: "annotationsX",
151
150
  allowedTypes: ["Int", "Long", "Double", "Float", "String"],
152
151
  parentComponents: ["value"],
@@ -156,16 +155,16 @@ class oe extends K {
156
155
  },
157
156
  dependsOn: ["x"],
158
157
  checkSourceBySpec: (e, t) => {
159
- const r = /* @__PURE__ */ new Set([
158
+ const l = /* @__PURE__ */ new Set([
160
159
  ...t.components.x.selectorStates.map((o) => o.selectedSource),
161
160
  ...t.components.xGroupBy.selectorStates.map((o) => o.selectedSource)
162
161
  ]);
163
- return "kind" in e && e.kind === "PColumn" ? v.fromAxesSpec(e.axesSpec).every(
164
- (o) => r.has(o.toCanonicalString())
165
- ) : r.has(v.fromAxisSpec(e).toCanonicalString());
162
+ return "kind" in e && e.kind === "PColumn" ? y.fromAxesSpec(e.axesSpec).every(
163
+ (o) => l.has(o.toCanonicalString())
164
+ ) : l.has(y.fromAxisSpec(e).toCanonicalString());
166
165
  }
167
166
  }),
168
- annotationsY: new m({
167
+ annotationsY: new S({
169
168
  componentName: "annotationsY",
170
169
  allowedTypes: ["Int", "Long", "Double", "Float", "String"],
171
170
  parentComponents: ["value"],
@@ -175,18 +174,18 @@ class oe extends K {
175
174
  },
176
175
  dependsOn: ["y"],
177
176
  checkSourceBySpec: (e, t) => {
178
- const r = /* @__PURE__ */ new Set([
177
+ const l = /* @__PURE__ */ new Set([
179
178
  ...t.components.y.selectorStates.map((o) => o.selectedSource),
180
179
  ...t.components.yGroupBy.selectorStates.map((o) => o.selectedSource)
181
180
  ]);
182
- return "kind" in e && e.kind === "PColumn" ? v.fromAxesSpec(e.axesSpec).every(
183
- (o) => r.has(o.toCanonicalString())
184
- ) : r.has(v.fromAxisSpec(e).toCanonicalString());
181
+ return "kind" in e && e.kind === "PColumn" ? y.fromAxesSpec(e.axesSpec).every(
182
+ (o) => l.has(o.toCanonicalString())
183
+ ) : l.has(y.fromAxisSpec(e).toCanonicalString());
185
184
  }
186
185
  })
187
186
  },
188
187
  {
189
- filters: new m({
188
+ filters: new S({
190
189
  componentName: "filters",
191
190
  allowedTypes: ["String", "Int", "Long", "Double", "Long"],
192
191
  strictlyDependsOnParents: !1,
@@ -199,7 +198,7 @@ class oe extends K {
199
198
  multipleSelectors: !0
200
199
  }
201
200
  }),
202
- tabBy: new m({
201
+ tabBy: new S({
203
202
  componentName: "tabBy",
204
203
  allowedTypes: ["String", "Int"],
205
204
  strictlyDependsOnParents: !1,
@@ -212,30 +211,30 @@ class oe extends K {
212
211
  }
213
212
  })
214
213
  }
215
- ), X(this, "dataInputs", ["value"]), X(this, "dontAllowUnfilteredHighCardinality", !0);
214
+ ), Y(this, "dataInputs", ["value"]), Y(this, "dontAllowUnfilteredHighCardinality", !0);
216
215
  }
217
216
  getMustBeConsumedAxes(e, t) {
218
217
  if (!e.components.value.selectorStates.length)
219
218
  return /* @__PURE__ */ new Set();
220
- const r = e.components.value.selectorStates[0].selectedSource, o = t.get(r);
221
- return !o || o.kind !== "column" ? /* @__PURE__ */ new Set() : new Set(o.spec.axesSpec.map((i) => v.fromAxisSpec(i).toCanonicalString()));
219
+ const l = e.components.value.selectorStates[0].selectedSource, o = t.get(l);
220
+ return !o || o.kind !== "column" ? /* @__PURE__ */ new Set() : new Set(o.spec.axesSpec.map((i) => y.fromAxisSpec(i).toCanonicalString()));
222
221
  }
223
222
  async createDataByColumns(e, t) {
224
- var r;
225
- const o = (r = t.components.value.selectorStates[0]) == null ? void 0 : r.selectedSource;
223
+ var l;
224
+ const o = (l = t.components.value.selectorStates[0]) == null ? void 0 : l.selectedSource;
226
225
  if (!o)
227
226
  throw Error("Value column is not valid");
228
- const i = g(o);
227
+ const i = w(o);
229
228
  if (!b(i))
230
229
  throw Error("Value column is not valid");
231
230
  const a = {
232
231
  type: "columns",
233
- id: Y(t.components) ?? "",
232
+ id: E(t.components) ?? "",
234
233
  values: {}
235
- }, f = await V(e), B = await q(e), P = [
234
+ }, x = await M(e), f = await V(e), P = [
236
235
  ...t.components.filters.selectorStates,
237
236
  ...t.components.tabBy.selectorStates
238
- ], k = H(P), T = P.map((l) => g(l.selectedSource)).filter(b), A = [o], C = await W(e, A), F = [
237
+ ], k = q(P), T = P.map((s) => w(s.selectedSource)).filter(b), A = [o], g = await H(e, A), F = [
239
238
  t.components.facetBy,
240
239
  t.components.annotationsX,
241
240
  t.components.annotationsY,
@@ -245,168 +244,168 @@ class oe extends K {
245
244
  t.components.yGroupBy,
246
245
  t.components.tooltipContent
247
246
  ], h = [], L = [];
248
- for (const { selectedSource: l } of P)
249
- L.push(...await M(
247
+ for (const { selectedSource: s } of P)
248
+ L.push(...await X(
250
249
  e,
250
+ x,
251
251
  f,
252
- B,
253
- C,
254
- l
252
+ g,
253
+ s
255
254
  ));
256
- for (const l of F)
257
- for (const { selectedSource: p } of l.selectorStates) {
258
- h.push(g(p)), L.push(...await M(
255
+ for (const s of F)
256
+ for (const { selectedSource: m } of s.selectorStates) {
257
+ h.push(w(m)), L.push(...await X(
259
258
  e,
259
+ x,
260
260
  f,
261
- B,
262
- C,
263
- p
261
+ g,
262
+ m
264
263
  ));
265
- const j = await w(e, p, A);
264
+ const j = await v(e, m, A);
266
265
  j && h.push(j);
267
266
  }
268
- const y = await e.pFrameProvider.getTableOuterJoin(
267
+ const d = await e.pFrameProvider.getTableOuterJoin(
269
268
  [i, ...L, ...T],
270
269
  h,
271
270
  k,
272
271
  !0
273
272
  );
274
- h.forEach((l) => {
275
- const p = l.toCanonicalString();
276
- a.values[p] = b(l) ? y.columnsData[p] : y.axesData[p];
277
- }), a.values[i.toCanonicalString()] = y.columnsData[i.toCanonicalString()];
278
- const I = t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map((l) => l.selectedSource), n = I.join(", ");
279
- a.values[n] = G(y, I);
280
- const c = t.components.x.selectorStates.map((l) => l.selectedSource), S = await Promise.all(
281
- c.map(
282
- async (l) => {
283
- var p;
284
- return ((p = await w(e, l, A)) == null ? void 0 : p.toCanonicalString()) ?? l;
273
+ h.forEach((s) => {
274
+ const m = s.toCanonicalString();
275
+ a.values[m] = b(s) ? d.columnsData[m] : d.axesData[m];
276
+ }), a.values[i.toCanonicalString()] = d.columnsData[i.toCanonicalString()];
277
+ const G = t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map((s) => s.selectedSource), n = G.join(", ");
278
+ a.values[n] = I(d, G);
279
+ const r = t.components.x.selectorStates.map((s) => s.selectedSource), p = await Promise.all(
280
+ r.map(
281
+ async (s) => {
282
+ var m;
283
+ return ((m = await v(e, s, A)) == null ? void 0 : m.toCanonicalString()) ?? s;
285
284
  }
286
285
  )
287
286
  );
288
- a.values.xLabelsKey = G(y, S);
289
- const s = t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map((l) => l.selectedSource), d = s.join(", ");
290
- a.values[d] = G(y, s);
291
- const O = t.components.y.selectorStates.map((l) => l.selectedSource), D = await Promise.all(
287
+ a.values.xLabelsKey = I(d, p);
288
+ const c = t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map((s) => s.selectedSource), B = c.join(", ");
289
+ a.values[B] = I(d, c);
290
+ const O = t.components.y.selectorStates.map((s) => s.selectedSource), D = await Promise.all(
292
291
  O.map(
293
- async (l) => {
294
- var p;
295
- return ((p = await w(e, l, A)) == null ? void 0 : p.toCanonicalString()) ?? l;
292
+ async (s) => {
293
+ var m;
294
+ return ((m = await v(e, s, A)) == null ? void 0 : m.toCanonicalString()) ?? s;
296
295
  }
297
296
  )
298
297
  );
299
- return a.values.yLabelsKey = G(y, D), { byColumns: a };
298
+ return a.values.yLabelsKey = I(d, D), { byColumns: a };
300
299
  }
301
300
  async createChartSettings(e, t) {
302
- var r;
303
- const o = (r = t.components.value.selectorStates[0]) == null ? void 0 : r.selectedSource;
301
+ var l;
302
+ const o = (l = t.components.value.selectorStates[0]) == null ? void 0 : l.selectedSource;
304
303
  if (!o)
305
304
  throw Error("Value column is not valid");
306
- const i = g(o);
305
+ const i = w(o);
307
306
  if (!b(i))
308
307
  throw Error("Value column is not valid");
309
- const a = [o], f = {
308
+ const a = [o], x = {
310
309
  type: "column",
311
310
  value: o,
312
- label: await x(e, o, [])
313
- }, B = t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({ selectedSource: n }) => g(n)).map((n) => n.toCanonicalString()).join(", "), P = t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({ selectedSource: n }) => g(n)).map((n) => n.toCanonicalString()).join(", "), k = await Promise.all(
311
+ label: await C(e, o, [])
312
+ }, f = t.components.x.selectorStates.concat(t.components.xGroupBy.selectorStates).map(({ selectedSource: n }) => w(n)).map((n) => n.toCanonicalString()).join(", "), P = t.components.y.selectorStates.concat(t.components.yGroupBy.selectorStates).map(({ selectedSource: n }) => w(n)).map((n) => n.toCanonicalString()).join(", "), k = await Promise.all(
314
313
  t.components.facetBy.selectorStates.map(async (n) => {
315
- var c;
314
+ var r;
316
315
  return {
317
316
  type: "column",
318
- value: ((c = await w(e, n.selectedSource, a)) == null ? void 0 : c.toCanonicalString()) ?? n.selectedSource
317
+ value: ((r = await v(e, n.selectedSource, a)) == null ? void 0 : r.toCanonicalString()) ?? n.selectedSource
319
318
  };
320
319
  })
321
320
  ), T = await Promise.all(
322
321
  t.components.xGroupBy.selectorStates.map(async (n) => {
323
- var c;
322
+ var r;
324
323
  return {
325
324
  type: "column",
326
- label: await x(e, n.selectedSource, a),
325
+ label: await C(e, n.selectedSource, a),
327
326
  value: n.selectedSource,
328
- valueLabels: ((c = await w(e, n.selectedSource, a)) == null ? void 0 : c.toCanonicalString()) ?? n.selectedSource
327
+ valueLabels: ((r = await v(e, n.selectedSource, a)) == null ? void 0 : r.toCanonicalString()) ?? n.selectedSource
329
328
  };
330
329
  })
331
330
  ), A = await Promise.all(
332
331
  t.components.yGroupBy.selectorStates.map(async (n) => {
333
- var c;
332
+ var r;
334
333
  return {
335
334
  type: "column",
336
- label: await x(e, n.selectedSource, a),
335
+ label: await C(e, n.selectedSource, a),
337
336
  value: n.selectedSource,
338
- valueLabels: ((c = await w(e, n.selectedSource, a)) == null ? void 0 : c.toCanonicalString()) ?? n.selectedSource
337
+ valueLabels: ((r = await v(e, n.selectedSource, a)) == null ? void 0 : r.toCanonicalString()) ?? n.selectedSource
339
338
  };
340
339
  })
341
- ), C = await e.pFrameProvider.getColumnSpecById(i), F = await Promise.all(
340
+ ), g = await e.pFrameProvider.getColumnSpecById(i), F = await Promise.all(
342
341
  t.components.annotationsX.selectorStates.map(async (n) => {
343
- var c, S;
344
- const s = n.selectedSource, d = g(s), O = b(d) ? await e.pFrameProvider.getColumnSpecById(d) : ((c = C == null ? void 0 : C.axesSpec) == null ? void 0 : c.find(
345
- (D) => v.fromAxisSpec(D).toCanonicalString() === s
342
+ var r, p;
343
+ const c = n.selectedSource, B = w(c), O = b(B) ? await e.pFrameProvider.getColumnSpecById(B) : ((r = g == null ? void 0 : g.axesSpec) == null ? void 0 : r.find(
344
+ (D) => y.fromAxisSpec(D).toCanonicalString() === c
346
345
  )) ?? null;
347
346
  return {
348
347
  axis: "x",
349
348
  valueColumn: {
350
349
  type: "column",
351
- value: s,
352
- label: await x(e, s, a),
353
- valueLabels: ((S = await w(e, s, a)) == null ? void 0 : S.toCanonicalString()) ?? s
350
+ value: c,
351
+ label: await C(e, c, a),
352
+ valueLabels: ((p = await v(e, c, a)) == null ? void 0 : p.toCanonicalString()) ?? c
354
353
  },
355
354
  type: N(O) ? "discrete" : "continuous"
356
355
  };
357
356
  })
358
357
  ), h = await Promise.all(
359
358
  t.components.annotationsY.selectorStates.map(async (n) => {
360
- var c, S;
361
- const s = n.selectedSource, d = g(s), O = b(d) ? await e.pFrameProvider.getColumnSpecById(d) : ((c = C == null ? void 0 : C.axesSpec) == null ? void 0 : c.find(
362
- (D) => v.fromAxisSpec(D).toCanonicalString() === s
359
+ var r, p;
360
+ const c = n.selectedSource, B = w(c), O = b(B) ? await e.pFrameProvider.getColumnSpecById(B) : ((r = g == null ? void 0 : g.axesSpec) == null ? void 0 : r.find(
361
+ (D) => y.fromAxisSpec(D).toCanonicalString() === c
363
362
  )) ?? null;
364
363
  return {
365
364
  axis: "y",
366
365
  valueColumn: {
367
366
  type: "column",
368
- value: s,
369
- label: await x(e, s, a),
370
- valueLabels: ((S = await w(e, s, a)) == null ? void 0 : S.toCanonicalString()) ?? s
367
+ value: c,
368
+ label: await C(e, c, a),
369
+ valueLabels: ((p = await v(e, c, a)) == null ? void 0 : p.toCanonicalString()) ?? c
371
370
  },
372
371
  type: N(O) ? "discrete" : "continuous"
373
372
  };
374
373
  })
375
374
  ), L = (await Promise.all(
376
375
  t.components.x.selectorStates.map(
377
- (n) => x(e, n.selectedSource, a)
376
+ (n) => C(e, n.selectedSource, a)
378
377
  )
379
- )).join(", "), y = (await Promise.all(
378
+ )).join(", "), d = (await Promise.all(
380
379
  t.components.y.selectorStates.map(
381
- (n) => x(e, n.selectedSource, a)
380
+ (n) => C(e, n.selectedSource, a)
382
381
  )
383
- )).join(", "), I = await Promise.all(
382
+ )).join(", "), G = await Promise.all(
384
383
  t.components.tooltipContent.selectorStates.map(async (n) => {
385
- var c, S;
386
- const s = n.selectedSource, d = await J(e, s, a);
384
+ var r;
385
+ const p = n.selectedSource, c = await J(e, p, a);
387
386
  return {
388
387
  type: "column",
389
- label: await x(e, s, a) || s,
390
- value: s,
391
- valueLabels: ((c = await w(e, s, a)) == null ? void 0 : c.toCanonicalString()) ?? s,
392
- format: ((S = d == null ? void 0 : d.annotations) == null ? void 0 : S[E]) ?? ".0%"
388
+ label: await C(e, p, a) || p,
389
+ value: p,
390
+ valueLabels: ((r = await v(e, p, a)) == null ? void 0 : r.toCanonicalString()) ?? p,
391
+ format: U(c)
393
392
  };
394
393
  })
395
394
  );
396
395
  return {
397
396
  type: "heatmap",
398
- valueColumn: f,
399
- valueType: N(C) ? "discrete" : "continuous",
397
+ valueColumn: x,
398
+ valueType: N(g) ? "discrete" : "continuous",
400
399
  xColumn: {
401
400
  type: "column",
402
- value: B,
401
+ value: f,
403
402
  label: L,
404
403
  valueLabels: "xLabelsKey"
405
404
  },
406
405
  yColumn: {
407
406
  type: "column",
408
407
  value: P,
409
- label: y,
408
+ label: d,
410
409
  valueLabels: "yLabelsKey"
411
410
  },
412
411
  facetBy: k,
@@ -415,13 +414,13 @@ class oe extends K {
415
414
  annotations: [...F, ...h],
416
415
  tooltips: {
417
416
  show: !0,
418
- content: I
417
+ content: G
419
418
  }
420
419
  };
421
420
  }
422
421
  }
423
422
  export {
424
- oe as HeatmapStateController,
425
- te as InitialHeatmapState
423
+ te as HeatmapStateController,
424
+ ee as InitialHeatmapState
426
425
  };
427
426
  //# sourceMappingURL=heatmap.js.map