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