@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.
- package/dist/GraphMaker/constantsCommon.d.ts +0 -9
- package/dist/GraphMaker/constantsCommon.d.ts.map +1 -1
- package/dist/GraphMaker/constantsCommon.js +74 -81
- package/dist/GraphMaker/constantsCommon.js.map +1 -1
- package/dist/GraphMaker/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js +8 -2
- package/dist/GraphMaker/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js.map +1 -1
- package/dist/GraphMaker/forms/DataMappingForm/DiscreteForm.vue.js +26 -20
- package/dist/GraphMaker/forms/DataMappingForm/DiscreteForm.vue.js.map +1 -1
- package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot/Scatter.vue.d.ts.map +1 -1
- package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot/Scatter.vue.js +37 -31
- package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot/Scatter.vue.js.map +1 -1
- package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot-umap/Scatter.vue.js +30 -24
- package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot-umap/Scatter.vue.js.map +1 -1
- package/dist/GraphMaker/forms/StatisticsForm/DiscreteStatisticsForm.vue.js +33 -27
- package/dist/GraphMaker/forms/StatisticsForm/DiscreteStatisticsForm.vue.js.map +1 -1
- package/dist/GraphMaker/index.vue.js +8 -2
- package/dist/GraphMaker/index.vue.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.js +22 -16
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.js +17 -11
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.js +26 -20
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.js +29 -23
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js +83 -68
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js +25 -19
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js.map +1 -1
- package/dist/GraphMaker/utils/getUsedAesInMapping.js +37 -31
- package/dist/GraphMaker/utils/getUsedAesInMapping.js.map +1 -1
- package/dist/GraphMaker/utils/loadDefaultSources.d.ts.map +1 -1
- package/dist/GraphMaker/utils/loadDefaultSources.js +36 -31
- package/dist/GraphMaker/utils/loadDefaultSources.js.map +1 -1
- package/dist/_virtual/stringify.js +5 -0
- package/dist/_virtual/stringify.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js +106 -107
- 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 +120 -121
- 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 +83 -84
- 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 +4 -4
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/discrete.js +11 -11
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/heatmap.js +123 -124
- 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 +8 -8
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot-umap.js +88 -89
- 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 +103 -105
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js +148 -119
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/components/PlDataTable.js +4 -4
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js +5 -5
- 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
- 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
- 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
- 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
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/errors.js +18 -0
- 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
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/json.js +12 -0
- 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
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/plid.js +7 -0
- 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
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/node_modules/@milaboratories/pl-model-common/dist/ref.js +8 -0
- 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
- package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js +105 -111
- package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js +158 -163
- package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js.map +1 -1
- package/dist/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.js +36 -0
- package/dist/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.js.map +1 -0
- package/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js +8 -0
- package/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js.map +1 -0
- package/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js +52 -0
- package/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js.map +1 -0
- package/dist/node_modules/@milaboratories/pl-model-common/dist/plid.js +7 -0
- package/dist/node_modules/@milaboratories/pl-model-common/dist/plid.js.map +1 -0
- package/dist/node_modules/@milaboratories/pl-model-common/dist/ref.js +8 -0
- package/dist/node_modules/@milaboratories/pl-model-common/dist/ref.js.map +1 -0
- package/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js +16 -0
- package/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js.map +1 -0
- package/dist/node_modules/json-stringify-safe/stringify.js +20 -0
- package/dist/node_modules/json-stringify-safe/stringify.js.map +1 -0
- package/dist/node_modules/zod/lib/index.js +2978 -0
- package/dist/node_modules/zod/lib/index.js.map +1 -0
- package/package.json +3 -3
- package/dist/node_modules/@milaboratories/pf-plots/dist/constants.js +0 -18
- package/dist/node_modules/@milaboratories/pf-plots/dist/constants.js.map +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
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
|
|
5
|
-
import { AxisId as
|
|
6
|
-
import { createLinkerMap as
|
|
7
|
-
var
|
|
8
|
-
const
|
|
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
|
|
27
|
+
function I(u, e) {
|
|
29
28
|
if (!e.length)
|
|
30
29
|
return [];
|
|
31
|
-
const t = e.map((i) =>
|
|
32
|
-
for (let i = 0; i <
|
|
33
|
-
const a = t.map((
|
|
34
|
-
const
|
|
35
|
-
return b(
|
|
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
|
|
40
|
+
class te extends K {
|
|
42
41
|
constructor() {
|
|
43
42
|
super(
|
|
44
43
|
{
|
|
45
|
-
value: new
|
|
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
|
|
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
|
|
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
|
|
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" ?
|
|
86
|
-
(o) =>
|
|
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
|
|
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
|
|
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
|
|
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" ?
|
|
121
|
-
(o) =>
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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" ?
|
|
164
|
-
(o) =>
|
|
165
|
-
) :
|
|
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
|
|
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
|
|
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" ?
|
|
183
|
-
(o) =>
|
|
184
|
-
) :
|
|
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
|
|
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
|
|
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
|
-
),
|
|
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
|
|
221
|
-
return !o || o.kind !== "column" ? /* @__PURE__ */ new Set() : new Set(o.spec.axesSpec.map((i) =>
|
|
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
|
|
225
|
-
const o = (
|
|
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 =
|
|
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:
|
|
232
|
+
id: E(t.components) ?? "",
|
|
234
233
|
values: {}
|
|
235
|
-
},
|
|
234
|
+
}, x = await M(e), f = await V(e), P = [
|
|
236
235
|
...t.components.filters.selectorStates,
|
|
237
236
|
...t.components.tabBy.selectorStates
|
|
238
|
-
], k =
|
|
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:
|
|
249
|
-
L.push(...await
|
|
247
|
+
for (const { selectedSource: s } of P)
|
|
248
|
+
L.push(...await X(
|
|
250
249
|
e,
|
|
250
|
+
x,
|
|
251
251
|
f,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
l
|
|
252
|
+
g,
|
|
253
|
+
s
|
|
255
254
|
));
|
|
256
|
-
for (const
|
|
257
|
-
for (const { selectedSource:
|
|
258
|
-
h.push(
|
|
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
|
-
|
|
262
|
-
|
|
263
|
-
p
|
|
261
|
+
g,
|
|
262
|
+
m
|
|
264
263
|
));
|
|
265
|
-
const j = await
|
|
264
|
+
const j = await v(e, m, A);
|
|
266
265
|
j && h.push(j);
|
|
267
266
|
}
|
|
268
|
-
const
|
|
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((
|
|
275
|
-
const
|
|
276
|
-
a.values[
|
|
277
|
-
}), a.values[i.toCanonicalString()] =
|
|
278
|
-
const
|
|
279
|
-
a.values[n] =
|
|
280
|
-
const
|
|
281
|
-
|
|
282
|
-
async (
|
|
283
|
-
var
|
|
284
|
-
return ((
|
|
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 =
|
|
289
|
-
const
|
|
290
|
-
a.values[
|
|
291
|
-
const O = t.components.y.selectorStates.map((
|
|
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 (
|
|
294
|
-
var
|
|
295
|
-
return ((
|
|
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 =
|
|
298
|
+
return a.values.yLabelsKey = I(d, D), { byColumns: a };
|
|
300
299
|
}
|
|
301
300
|
async createChartSettings(e, t) {
|
|
302
|
-
var
|
|
303
|
-
const o = (
|
|
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 =
|
|
305
|
+
const i = w(o);
|
|
307
306
|
if (!b(i))
|
|
308
307
|
throw Error("Value column is not valid");
|
|
309
|
-
const a = [o],
|
|
308
|
+
const a = [o], x = {
|
|
310
309
|
type: "column",
|
|
311
310
|
value: o,
|
|
312
|
-
label: await
|
|
313
|
-
},
|
|
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
|
|
314
|
+
var r;
|
|
316
315
|
return {
|
|
317
316
|
type: "column",
|
|
318
|
-
value: ((
|
|
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
|
|
322
|
+
var r;
|
|
324
323
|
return {
|
|
325
324
|
type: "column",
|
|
326
|
-
label: await
|
|
325
|
+
label: await C(e, n.selectedSource, a),
|
|
327
326
|
value: n.selectedSource,
|
|
328
|
-
valueLabels: ((
|
|
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
|
|
332
|
+
var r;
|
|
334
333
|
return {
|
|
335
334
|
type: "column",
|
|
336
|
-
label: await
|
|
335
|
+
label: await C(e, n.selectedSource, a),
|
|
337
336
|
value: n.selectedSource,
|
|
338
|
-
valueLabels: ((
|
|
337
|
+
valueLabels: ((r = await v(e, n.selectedSource, a)) == null ? void 0 : r.toCanonicalString()) ?? n.selectedSource
|
|
339
338
|
};
|
|
340
339
|
})
|
|
341
|
-
),
|
|
340
|
+
), g = await e.pFrameProvider.getColumnSpecById(i), F = await Promise.all(
|
|
342
341
|
t.components.annotationsX.selectorStates.map(async (n) => {
|
|
343
|
-
var
|
|
344
|
-
const
|
|
345
|
-
(D) =>
|
|
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:
|
|
352
|
-
label: await
|
|
353
|
-
valueLabels: ((
|
|
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
|
|
361
|
-
const
|
|
362
|
-
(D) =>
|
|
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:
|
|
369
|
-
label: await
|
|
370
|
-
valueLabels: ((
|
|
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) =>
|
|
376
|
+
(n) => C(e, n.selectedSource, a)
|
|
378
377
|
)
|
|
379
|
-
)).join(", "),
|
|
378
|
+
)).join(", "), d = (await Promise.all(
|
|
380
379
|
t.components.y.selectorStates.map(
|
|
381
|
-
(n) =>
|
|
380
|
+
(n) => C(e, n.selectedSource, a)
|
|
382
381
|
)
|
|
383
|
-
)).join(", "),
|
|
382
|
+
)).join(", "), G = await Promise.all(
|
|
384
383
|
t.components.tooltipContent.selectorStates.map(async (n) => {
|
|
385
|
-
var
|
|
386
|
-
const
|
|
384
|
+
var r;
|
|
385
|
+
const p = n.selectedSource, c = await J(e, p, a);
|
|
387
386
|
return {
|
|
388
387
|
type: "column",
|
|
389
|
-
label: await
|
|
390
|
-
value:
|
|
391
|
-
valueLabels: ((
|
|
392
|
-
format: (
|
|
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:
|
|
399
|
-
valueType: N(
|
|
397
|
+
valueColumn: x,
|
|
398
|
+
valueType: N(g) ? "discrete" : "continuous",
|
|
400
399
|
xColumn: {
|
|
401
400
|
type: "column",
|
|
402
|
-
value:
|
|
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:
|
|
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:
|
|
417
|
+
content: G
|
|
419
418
|
}
|
|
420
419
|
};
|
|
421
420
|
}
|
|
422
421
|
}
|
|
423
422
|
export {
|
|
424
|
-
|
|
425
|
-
|
|
423
|
+
te as HeatmapStateController,
|
|
424
|
+
ee as InitialHeatmapState
|
|
426
425
|
};
|
|
427
426
|
//# sourceMappingURL=heatmap.js.map
|