@milaboratories/graph-maker 1.1.182 → 1.1.183
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/components/AesSettings/AesDataMappingDiscrete.vue.d.ts +1 -3
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue.js +7 -323
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue.js.map +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue2.js +215 -2
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue2.js.map +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue3.js +11 -0
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue3.js.map +1 -0
- package/dist/components/AesSettings/DiscreteRow.vue.d.ts +27 -0
- package/dist/components/AesSettings/DiscreteRow.vue.js +10 -0
- package/dist/components/AesSettings/DiscreteRow.vue.js.map +1 -0
- package/dist/components/AesSettings/DiscreteRow.vue2.js +159 -0
- package/dist/components/AesSettings/DiscreteRow.vue2.js.map +1 -0
- package/dist/components/AesSettings/DiscreteRow.vue3.js +19 -0
- package/dist/components/AesSettings/DiscreteRow.vue3.js.map +1 -0
- package/dist/components/ReorderForm.vue.d.ts +1 -3
- package/dist/components/ReorderForm.vue.js +7 -43
- package/dist/components/ReorderForm.vue.js.map +1 -1
- package/dist/components/ReorderForm.vue2.js +50 -2
- package/dist/components/ReorderForm.vue2.js.map +1 -1
- package/dist/components/ReorderForm.vue3.js +11 -0
- package/dist/components/ReorderForm.vue3.js.map +1 -0
- package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js +20 -20
- package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js +53 -53
- package/dist/forms/LayersForm/AesSelector.vue.js +29 -29
- package/dist/utils/createChartSettingsForRender/getLayersDataFromForms.js +49 -52
- package/dist/utils/createChartSettingsForRender/getLayersDataFromForms.js.map +1 -1
- package/package.json +1 -1
- package/dist/icons/Reorder.vue.d.ts +0 -2
- package/dist/icons/Reorder.vue.js +0 -19
- package/dist/icons/Reorder.vue.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as Z, computed as m, ref as p, createElementBlock as d, openBlock as a, createElementVNode as s, createVNode as i, createCommentVNode as u, withCtx as
|
|
1
|
+
import { defineComponent as Z, computed as m, ref as p, createElementBlock as d, openBlock as a, createElementVNode as s, createVNode as i, createCommentVNode as u, withCtx as f, unref as l, createBlock as b } from "vue";
|
|
2
2
|
import { PlBtnGroup as g, PlTextField as C, PlToggleSwitch as T, Slider as h } from "@platforma-sdk/ui-vue";
|
|
3
3
|
import { useStore as ee } from "../../store.js";
|
|
4
4
|
import O from "../../components/CollapsableBlock.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import E from "../../icons/Right.vue.js";
|
|
6
|
+
import I from "../../icons/Down.vue.js";
|
|
7
7
|
import X from "../../components/BtnIconGroup.vue.js";
|
|
8
8
|
import te from "../../icons/AlignLeft.vue.js";
|
|
9
9
|
import le from "../../icons/AlignCenter.vue.js";
|
|
@@ -14,16 +14,16 @@ import ne from "../../icons/FrameLeft.vue.js";
|
|
|
14
14
|
import ae from "../../icons/FrameBottom.vue.js";
|
|
15
15
|
import ue from "../../icons/FrameLeftBottom.vue.js";
|
|
16
16
|
import Y from "../../components/AesButton.vue.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
17
|
+
import q from "../../components/AesSettings/FormWrapper.vue.js";
|
|
18
|
+
import z from "../../components/Popup.vue.js";
|
|
19
|
+
import _ from "../../components/AesSettings/FixedLineTypeList.vue.js";
|
|
20
20
|
import { getPopupHeightForFixedAesList as re } from "../../utils/getPopupHeightForFixedAesList.js";
|
|
21
21
|
import { FIXED_LINE_TYPES as de } from "../../constantsAesthetic.js";
|
|
22
22
|
import j from "../../components/ReorderForm.vue.js";
|
|
23
23
|
import me from "../../icons/Rotation0.vue.js";
|
|
24
24
|
import pe from "../../icons/Rotation45.vue.js";
|
|
25
25
|
import ve from "../../icons/Rotation90.vue.js";
|
|
26
|
-
const
|
|
26
|
+
const xe = { class: "axes-settings-list" }, fe = { class: "axes-settings-options-row block" }, ge = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "axes-settings-input"
|
|
29
29
|
}, Ve = { class: "axes-settings-options-row" }, Se = { class: "axes-settings-options-row block" }, ye = { key: 0 }, ke = {
|
|
@@ -35,7 +35,7 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
35
35
|
}, Te = {
|
|
36
36
|
key: 3,
|
|
37
37
|
class: "axes-settings-options-row"
|
|
38
|
-
}, Xe = { class: "axes-settings-options-row table" }, Ye = { class: "axes-settings-options-row table" }, Le = { class: "axes-settings-options-row" },
|
|
38
|
+
}, Xe = { class: "axes-settings-options-row table" }, Ye = { class: "axes-settings-options-row table" }, Le = { class: "axes-settings-options-row" }, Re = { class: "fixed-aes-list fixed-aes-list__rows" }, we = { class: "axes-settings-options-row block" }, ce = { key: 0 }, Ae = {
|
|
39
39
|
key: 1,
|
|
40
40
|
class: "axes-settings-options-row block"
|
|
41
41
|
}, Ue = {
|
|
@@ -44,10 +44,10 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
44
44
|
}, Fe = {
|
|
45
45
|
key: 3,
|
|
46
46
|
class: "axes-settings-options-row"
|
|
47
|
-
}, Pe = { class: "axes-settings-options-row table" }, Ce = { class: "axes-settings-options-row table" }, Oe = { class: "axes-settings-options-row" },
|
|
47
|
+
}, Pe = { class: "axes-settings-options-row table" }, Ce = { class: "axes-settings-options-row table" }, Oe = { class: "axes-settings-options-row" }, Ee = { class: "fixed-aes-list fixed-aes-list__rows" }, Ie = {
|
|
48
48
|
key: 0,
|
|
49
49
|
class: "other"
|
|
50
|
-
},
|
|
50
|
+
}, $e = { class: "axes-settings-options-row" }, Ne = { class: "axes-settings-options-row" }, Be = { class: "axes-settings-options-row block" }, pt = /* @__PURE__ */ Z({
|
|
51
51
|
__name: "ScatterplotAxesSettingsForm",
|
|
52
52
|
setup(Me) {
|
|
53
53
|
const r = ee(), o = r.value.reactive.axesSettings, J = m(() => r.value.reactive.chartType), L = {
|
|
@@ -58,11 +58,11 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
58
58
|
{ value: "left", icon: te },
|
|
59
59
|
{ value: "center", icon: le },
|
|
60
60
|
{ value: "right", icon: oe }
|
|
61
|
-
],
|
|
61
|
+
], R = [
|
|
62
62
|
{ value: "auto", text: "Auto" },
|
|
63
63
|
{ value: "custom", text: "Custom" },
|
|
64
64
|
{ value: "hidden", text: "Hide" }
|
|
65
|
-
],
|
|
65
|
+
], $ = [
|
|
66
66
|
{ value: "linear", text: "Linear" },
|
|
67
67
|
{ value: "log", text: "Log" }
|
|
68
68
|
], Q = [
|
|
@@ -80,13 +80,13 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
80
80
|
{ value: "center", icon: me },
|
|
81
81
|
{ value: "45deg", icon: pe },
|
|
82
82
|
{ value: "90deg", icon: ve }
|
|
83
|
-
],
|
|
83
|
+
], w = p(o.axisX.significantLinesStyle), c = p(o.axisY.significantLinesStyle), B = m(() => re(de.length, "lineType")), M = p(), D = p(), V = p(!1), S = p(!1), v = m(() => {
|
|
84
84
|
const n = r.value.reactive.optionsState.components.x.selectorStates;
|
|
85
85
|
return n.length ? n[0].selectedSource : null;
|
|
86
|
-
}),
|
|
86
|
+
}), x = m(() => {
|
|
87
87
|
const n = r.value.reactive.optionsState.components.y.selectorStates;
|
|
88
88
|
return n.length ? n[0].selectedSource : null;
|
|
89
|
-
}), y = m(() => v.value ? r.value.inputGuide.value.getSourceInfo(v.value).type === "String" : !1), k = m(() =>
|
|
89
|
+
}), y = m(() => v.value ? r.value.inputGuide.value.getSourceInfo(v.value).type === "String" : !1), k = m(() => x.value ? r.value.inputGuide.value.getSourceInfo(x.value).type === "String" : !1), A = p(!1), U = p(!1), F = m({
|
|
90
90
|
get: () => {
|
|
91
91
|
var e;
|
|
92
92
|
if (!y.value || !v.value)
|
|
@@ -103,14 +103,14 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
103
103
|
}), P = m({
|
|
104
104
|
get: () => {
|
|
105
105
|
var e;
|
|
106
|
-
if (!k.value || !
|
|
106
|
+
if (!k.value || !x.value)
|
|
107
107
|
return null;
|
|
108
108
|
const n = r.value.reactive.axesSettings.axisY.order;
|
|
109
|
-
return (n == null ? void 0 : n.source) ===
|
|
109
|
+
return (n == null ? void 0 : n.source) === x.value ? n.options : (e = r.value.uniqueValuesData.value[x.value]) == null ? void 0 : e.options;
|
|
110
110
|
},
|
|
111
111
|
set: (n) => {
|
|
112
|
-
|
|
113
|
-
source:
|
|
112
|
+
x.value && n && (r.value.reactive.axesSettings.axisY.order = {
|
|
113
|
+
source: x.value,
|
|
114
114
|
options: n
|
|
115
115
|
});
|
|
116
116
|
}
|
|
@@ -134,20 +134,20 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
134
134
|
onClick: e[34] || (e[34] = (t) => t.stopPropagation())
|
|
135
135
|
}, [
|
|
136
136
|
e[47] || (e[47] = s("h3", { class: "axes-title" }, " Axes ", -1)),
|
|
137
|
-
s("div",
|
|
137
|
+
s("div", xe, [
|
|
138
138
|
i(O, {
|
|
139
139
|
title: "Title",
|
|
140
140
|
settings: L,
|
|
141
|
-
icon:
|
|
142
|
-
"icon-open":
|
|
141
|
+
icon: E,
|
|
142
|
+
"icon-open": I
|
|
143
143
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
s("div",
|
|
144
|
+
default: f(() => [
|
|
145
|
+
s("div", fe, [
|
|
146
146
|
i(l(g), {
|
|
147
147
|
modelValue: l(o).title.mode,
|
|
148
148
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => l(o).title.mode = t),
|
|
149
149
|
label: "Title",
|
|
150
|
-
options:
|
|
150
|
+
options: R
|
|
151
151
|
}, null, 8, ["modelValue"])
|
|
152
152
|
]),
|
|
153
153
|
l(o).title.mode === "custom" ? (a(), d("div", ge, [
|
|
@@ -172,16 +172,16 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
172
172
|
i(O, {
|
|
173
173
|
title: "X-axis",
|
|
174
174
|
settings: L,
|
|
175
|
-
icon:
|
|
176
|
-
"icon-open":
|
|
175
|
+
icon: E,
|
|
176
|
+
"icon-open": I
|
|
177
177
|
}, {
|
|
178
|
-
default:
|
|
178
|
+
default: f(() => [
|
|
179
179
|
s("div", Se, [
|
|
180
180
|
i(l(g), {
|
|
181
181
|
modelValue: l(o).axisX.titleMode,
|
|
182
182
|
"onUpdate:modelValue": e[3] || (e[3] = (t) => l(o).axisX.titleMode = t),
|
|
183
183
|
label: "Title",
|
|
184
|
-
options:
|
|
184
|
+
options: R
|
|
185
185
|
}, null, 8, ["modelValue"])
|
|
186
186
|
]),
|
|
187
187
|
l(o).axisX.titleMode === "custom" ? (a(), d("div", ye, [
|
|
@@ -197,7 +197,7 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
197
197
|
modelValue: l(o).axisX.scale,
|
|
198
198
|
"onUpdate:modelValue": e[5] || (e[5] = (t) => l(o).axisX.scale = t),
|
|
199
199
|
label: "Scale",
|
|
200
|
-
options:
|
|
200
|
+
options: $
|
|
201
201
|
}, null, 8, ["modelValue"])
|
|
202
202
|
])),
|
|
203
203
|
y.value && F.value ? (a(), d("div", be, [
|
|
@@ -206,13 +206,13 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
206
206
|
data: { type: "data", value: null },
|
|
207
207
|
onClick: e[6] || (e[6] = (t) => A.value = !0)
|
|
208
208
|
}),
|
|
209
|
-
A.value ? (a(), b(
|
|
209
|
+
A.value ? (a(), b(q, {
|
|
210
210
|
key: 0,
|
|
211
211
|
title: "Reorder X axis values",
|
|
212
212
|
"back-title": "Axes Settings",
|
|
213
213
|
"onForm:close": e[8] || (e[8] = (t) => A.value = !1)
|
|
214
214
|
}, {
|
|
215
|
-
default:
|
|
215
|
+
default: f(() => [
|
|
216
216
|
i(j, {
|
|
217
217
|
modelValue: F.value,
|
|
218
218
|
"onUpdate:modelValue": e[7] || (e[7] = (t) => F.value = t)
|
|
@@ -246,22 +246,22 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
246
246
|
s("div", Le, [
|
|
247
247
|
e[40] || (e[40] = s("span", null, "Significant lines style", -1)),
|
|
248
248
|
i(Y, {
|
|
249
|
-
data: { type: "lineType", value:
|
|
249
|
+
data: { type: "lineType", value: w.value },
|
|
250
250
|
onClick: e[12] || (e[12] = (t) => V.value = !V.value),
|
|
251
251
|
onRef: e[13] || (e[13] = (t) => M.value = t)
|
|
252
252
|
}, null, 8, ["data"]),
|
|
253
|
-
V.value ? (a(), b(
|
|
253
|
+
V.value ? (a(), b(z, {
|
|
254
254
|
key: 0,
|
|
255
255
|
height: B.value,
|
|
256
256
|
targetRef: M.value,
|
|
257
257
|
"onPopup:close": e[16] || (e[16] = (t) => V.value = !1)
|
|
258
258
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
s("div",
|
|
261
|
-
i(
|
|
262
|
-
modelValue:
|
|
259
|
+
default: f(() => [
|
|
260
|
+
s("div", Re, [
|
|
261
|
+
i(_, {
|
|
262
|
+
modelValue: w.value,
|
|
263
263
|
"onUpdate:modelValue": [
|
|
264
|
-
e[14] || (e[14] = (t) =>
|
|
264
|
+
e[14] || (e[14] = (t) => w.value = t),
|
|
265
265
|
e[15] || (e[15] = (t) => l(o).axisX.significantLinesStyle = t)
|
|
266
266
|
]
|
|
267
267
|
}, null, 8, ["modelValue"])
|
|
@@ -276,16 +276,16 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
276
276
|
i(O, {
|
|
277
277
|
title: "Y-axis",
|
|
278
278
|
settings: L,
|
|
279
|
-
icon:
|
|
280
|
-
"icon-open":
|
|
279
|
+
icon: E,
|
|
280
|
+
"icon-open": I
|
|
281
281
|
}, {
|
|
282
|
-
default:
|
|
283
|
-
s("div",
|
|
282
|
+
default: f(() => [
|
|
283
|
+
s("div", we, [
|
|
284
284
|
i(l(g), {
|
|
285
285
|
modelValue: l(o).axisY.titleMode,
|
|
286
286
|
"onUpdate:modelValue": e[17] || (e[17] = (t) => l(o).axisY.titleMode = t),
|
|
287
287
|
label: "Title",
|
|
288
|
-
options:
|
|
288
|
+
options: R
|
|
289
289
|
}, null, 8, ["modelValue"])
|
|
290
290
|
]),
|
|
291
291
|
l(o).axisY.titleMode === "custom" ? (a(), d("div", ce, [
|
|
@@ -301,7 +301,7 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
301
301
|
modelValue: l(o).axisY.scale,
|
|
302
302
|
"onUpdate:modelValue": e[19] || (e[19] = (t) => l(o).axisY.scale = t),
|
|
303
303
|
label: "Scale",
|
|
304
|
-
options:
|
|
304
|
+
options: $
|
|
305
305
|
}, null, 8, ["modelValue"])
|
|
306
306
|
])),
|
|
307
307
|
k.value && P.value ? (a(), d("div", Ue, [
|
|
@@ -310,13 +310,13 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
310
310
|
data: { type: "data", value: null },
|
|
311
311
|
onClick: e[20] || (e[20] = (t) => U.value = !0)
|
|
312
312
|
}),
|
|
313
|
-
U.value ? (a(), b(
|
|
313
|
+
U.value ? (a(), b(q, {
|
|
314
314
|
key: 0,
|
|
315
315
|
title: "Reorder Y axis values",
|
|
316
316
|
"back-title": "Axes Settings",
|
|
317
317
|
"onForm:close": e[22] || (e[22] = (t) => U.value = !1)
|
|
318
318
|
}, {
|
|
319
|
-
default:
|
|
319
|
+
default: f(() => [
|
|
320
320
|
i(j, {
|
|
321
321
|
modelValue: P.value,
|
|
322
322
|
"onUpdate:modelValue": e[21] || (e[21] = (t) => P.value = t)
|
|
@@ -354,15 +354,15 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
354
354
|
onClick: e[26] || (e[26] = (t) => S.value = !S.value),
|
|
355
355
|
onRef: e[27] || (e[27] = (t) => D.value = t)
|
|
356
356
|
}, null, 8, ["data"]),
|
|
357
|
-
S.value ? (a(), b(
|
|
357
|
+
S.value ? (a(), b(z, {
|
|
358
358
|
key: 0,
|
|
359
359
|
height: B.value,
|
|
360
360
|
targetRef: D.value,
|
|
361
361
|
"onPopup:close": e[30] || (e[30] = (t) => S.value = !1)
|
|
362
362
|
}, {
|
|
363
|
-
default:
|
|
364
|
-
s("div",
|
|
365
|
-
i(
|
|
363
|
+
default: f(() => [
|
|
364
|
+
s("div", Ee, [
|
|
365
|
+
i(_, {
|
|
366
366
|
modelValue: c.value,
|
|
367
367
|
"onUpdate:modelValue": [
|
|
368
368
|
e[28] || (e[28] = (t) => c.value = t),
|
|
@@ -377,8 +377,8 @@ const fe = { class: "axes-settings-list" }, xe = { class: "axes-settings-options
|
|
|
377
377
|
]),
|
|
378
378
|
_: 1
|
|
379
379
|
}),
|
|
380
|
-
J.value === "scatterplot" ? (a(), d("div",
|
|
381
|
-
s("div",
|
|
380
|
+
J.value === "scatterplot" ? (a(), d("div", Ie, [
|
|
381
|
+
s("div", $e, [
|
|
382
382
|
e[46] || (e[46] = s("span", null, "Frame", -1)),
|
|
383
383
|
i(X, {
|
|
384
384
|
modelValue: l(o).other.frame,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as Z, computed as
|
|
1
|
+
import { defineComponent as Z, computed as g, ref as F, watch as q, createElementBlock as _, openBlock as y, Fragment as ee, createElementVNode as O, createBlock as S, createCommentVNode as T, createVNode as R, withModifiers as te, unref as A, withCtx as L, normalizeClass as le } from "vue";
|
|
2
2
|
import { PlDropdown as ae } from "@platforma-sdk/ui-vue";
|
|
3
3
|
import { createDefaultMapping as oe, createContinuousMappingFromPalette as ue } from "../../dataBindAes.js";
|
|
4
|
-
import { FIXED_COLORS as
|
|
4
|
+
import { FIXED_COLORS as w, DEFAULT_LINE_TYPE as ie, DEFAULT_DOT_SHAPE as ne, FIXED_LINE_TYPES as se, FIXES_DOT_SHAPES as re, DEFAULT_CONTINUOUS_PALETTE as pe } from "../../constantsAesthetic.js";
|
|
5
5
|
import de from "../../components/AesButton.vue.js";
|
|
6
6
|
import { useStore as ve } from "../../store.js";
|
|
7
7
|
import { isMappedAes as M } from "../../constantsCommon.js";
|
|
8
8
|
import ce from "../../components/Popup.vue.js";
|
|
9
9
|
import fe from "../../components/AesSettings/FixedColorsList.vue.js";
|
|
10
10
|
import me from "../../components/AesSettings/FixedDotShapeList.vue.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
11
|
+
import ge from "../../components/AesSettings/FixedLineTypeList.vue.js";
|
|
12
|
+
import ye from "../../components/AesSettings/FormWrapper.vue.js";
|
|
13
13
|
import Se from "../../components/AesSettings/AesDataMappingDiscrete.vue.js";
|
|
14
14
|
import Te from "../../components/AesSettings/AesDataMappingContinuous.vue.js";
|
|
15
15
|
const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
@@ -27,7 +27,7 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
27
27
|
emits: ["aes-update", "aes-selector-close"],
|
|
28
28
|
setup(i, { emit: W }) {
|
|
29
29
|
var P, h;
|
|
30
|
-
const r = i, p = ve(), o =
|
|
30
|
+
const r = i, p = ve(), o = g(() => p.value.reactive.chartType), $ = W, X = {
|
|
31
31
|
discrete: ["primaryGrouping", "secondaryGrouping"],
|
|
32
32
|
scatterplot: ["grouping"],
|
|
33
33
|
"scatterplot-umap": ["grouping"],
|
|
@@ -35,7 +35,7 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
35
35
|
heatmap: [],
|
|
36
36
|
histogram: ["grouping"],
|
|
37
37
|
bubble: []
|
|
38
|
-
}, G = r.possibleAesSourceInputs ?? X[o.value], Y =
|
|
38
|
+
}, G = r.possibleAesSourceInputs ?? X[o.value], Y = g(
|
|
39
39
|
() => p.value.commonHelpersData.usedAesInMapping.value
|
|
40
40
|
);
|
|
41
41
|
function V(l) {
|
|
@@ -44,25 +44,25 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
44
44
|
const s = F(
|
|
45
45
|
M(r.selected) ? V(r.selected) : "fix"
|
|
46
46
|
), z = {
|
|
47
|
-
fill:
|
|
48
|
-
stroke:
|
|
47
|
+
fill: w[0].color,
|
|
48
|
+
stroke: w[0].color,
|
|
49
49
|
dotShape: ne,
|
|
50
50
|
lineType: ie,
|
|
51
51
|
size: ""
|
|
52
52
|
// temporary
|
|
53
|
-
}, K =
|
|
53
|
+
}, K = g(() => p.value.inputGuide.value), j = g(() => p.value.uniqueValuesData.value), H = /* @__PURE__ */ new Set([
|
|
54
54
|
"scatterplot",
|
|
55
55
|
"scatterplot-umap",
|
|
56
56
|
"heatmap"
|
|
57
|
-
]), d =
|
|
57
|
+
]), d = g(() => {
|
|
58
58
|
const l = {}, e = p.value.reactive.optionsState.components;
|
|
59
59
|
function v(a, t) {
|
|
60
|
-
const u = K.value.getSourceInfo(t), c = j.value[t], b = (c == null ? void 0 : c.list) ?? [], f = (c == null ? void 0 : c.labels) ?? {},
|
|
60
|
+
const u = K.value.getSourceInfo(t), c = j.value[t], b = (c == null ? void 0 : c.list) ?? [], f = (c == null ? void 0 : c.labels) ?? {}, D = V({ type: a, value: t });
|
|
61
61
|
if (H.has(o.value) && u.type === "String" || !H.has(o.value)) {
|
|
62
62
|
const C = p.value.reactive.dataBindAes[t] ?? oe(b);
|
|
63
|
-
l[
|
|
63
|
+
l[D] = {
|
|
64
64
|
type: "dataCategorical",
|
|
65
|
-
value:
|
|
65
|
+
value: D,
|
|
66
66
|
initialData: C,
|
|
67
67
|
inputName: a,
|
|
68
68
|
selectedSource: t,
|
|
@@ -75,9 +75,9 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
75
75
|
};
|
|
76
76
|
} else {
|
|
77
77
|
const C = p.value.reactive.dataBindAes[t] ?? ue(pe);
|
|
78
|
-
l[
|
|
78
|
+
l[D] = {
|
|
79
79
|
type: "dataContinuous",
|
|
80
|
-
value:
|
|
80
|
+
value: D,
|
|
81
81
|
initialData: C,
|
|
82
82
|
inputName: a,
|
|
83
83
|
selectedSource: t,
|
|
@@ -96,14 +96,14 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
96
96
|
value: "fix",
|
|
97
97
|
initialData: M(r.selected) ? z[r.type] : r.selected
|
|
98
98
|
}), l;
|
|
99
|
-
}), n =
|
|
99
|
+
}), n = g(
|
|
100
100
|
() => d.value[s.value] ?? null
|
|
101
101
|
);
|
|
102
102
|
function J(l, e) {
|
|
103
103
|
var v, a, t, u;
|
|
104
104
|
return l.type === "fix" ? "Fixed" : e === l.value ? `${(v = l.selectedSourceInfo) == null ? void 0 : v.label}` : o.value === "discrete" ? `${l.value === "primaryGrouping" ? "Primary" : "Secondary"} grouping: ${(a = l.selectedSourceInfo) == null ? void 0 : a.label}` : o.value === "scatterplot" || o.value === "dendro" ? `Grouping: ${(t = l.selectedSourceInfo) == null ? void 0 : t.label}` : ((u = l.selectedSourceInfo) == null ? void 0 : u.label) ?? "";
|
|
105
105
|
}
|
|
106
|
-
const N =
|
|
106
|
+
const N = g(() => {
|
|
107
107
|
const l = [], e = p.value.reactive.optionsState.components;
|
|
108
108
|
function v(a, t) {
|
|
109
109
|
const u = V({
|
|
@@ -136,20 +136,20 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
136
136
|
() => s.value,
|
|
137
137
|
(l) => {
|
|
138
138
|
const e = d.value[l];
|
|
139
|
-
e.type === "fix" ?
|
|
139
|
+
e.type === "fix" ? $("aes-update", m.value, e) : e.type === "dataCategorical" ? (x.value = e.initialData, $("aes-update", e.initialData, e)) : e.type === "dataContinuous" && (I.value = e.initialData, $("aes-update", e.initialData, e));
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
|
-
const U = F(), Q =
|
|
142
|
+
const U = F(), Q = g(() => r.type === "lineType" ? se.length * 32 + 32 : r.type === "dotShape" ? Math.ceil(re.length / 6) * 36 + 40 : r.type === "fill" || r.type === "stroke" ? Math.ceil(w.length / 6) * 36 + 40 : 0);
|
|
143
143
|
return (l, e) => {
|
|
144
144
|
var v, a;
|
|
145
|
-
return
|
|
145
|
+
return y(), _(ee, null, [
|
|
146
146
|
O("div", Ee, [
|
|
147
147
|
O("div", {
|
|
148
148
|
class: "aes-input-select",
|
|
149
149
|
onClick: e[1] || (e[1] = te(() => {
|
|
150
150
|
}, ["stop"]))
|
|
151
151
|
}, [
|
|
152
|
-
R(
|
|
152
|
+
R(A(ae), {
|
|
153
153
|
modelValue: s.value,
|
|
154
154
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => s.value = t),
|
|
155
155
|
disabled: i.disabled || N.value.length < 2,
|
|
@@ -165,7 +165,7 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
165
165
|
onClick: e[2] || (e[2] = (t) => E.value = !E.value),
|
|
166
166
|
onRef: e[3] || (e[3] = (t) => U.value = t)
|
|
167
167
|
}, null, 8, ["data"]),
|
|
168
|
-
s.value === "fix" && E.value && m.value ? (
|
|
168
|
+
s.value === "fix" && E.value && m.value ? (y(), S(ce, {
|
|
169
169
|
key: 0,
|
|
170
170
|
height: Q.value,
|
|
171
171
|
targetRef: U.value,
|
|
@@ -175,7 +175,7 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
175
175
|
O("div", {
|
|
176
176
|
class: le(["fixed-aes-list", { "fixed-aes-list__rows": i.type === "lineType" }])
|
|
177
177
|
}, [
|
|
178
|
-
i.type === "fill" || i.type === "stroke" ? (
|
|
178
|
+
i.type === "fill" || i.type === "stroke" ? (y(), S(fe, {
|
|
179
179
|
key: 0,
|
|
180
180
|
modelValue: m.value,
|
|
181
181
|
"onUpdate:modelValue": [
|
|
@@ -184,7 +184,7 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
184
184
|
],
|
|
185
185
|
"color-using": i.type
|
|
186
186
|
}, null, 8, ["modelValue", "color-using"])) : T("", !0),
|
|
187
|
-
i.type === "dotShape" ? (
|
|
187
|
+
i.type === "dotShape" ? (y(), S(me, {
|
|
188
188
|
key: 1,
|
|
189
189
|
modelValue: m.value,
|
|
190
190
|
"onUpdate:modelValue": [
|
|
@@ -192,7 +192,7 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
192
192
|
e[7] || (e[7] = (t) => l.$emit("aes-update", t, d.value.fix))
|
|
193
193
|
]
|
|
194
194
|
}, null, 8, ["modelValue"])) : T("", !0),
|
|
195
|
-
i.type === "lineType" ? (
|
|
195
|
+
i.type === "lineType" ? (y(), S(ge, {
|
|
196
196
|
key: 2,
|
|
197
197
|
modelValue: m.value,
|
|
198
198
|
"onUpdate:modelValue": [
|
|
@@ -205,7 +205,7 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
205
205
|
_: 1
|
|
206
206
|
}, 8, ["height", "targetRef"])) : T("", !0)
|
|
207
207
|
]),
|
|
208
|
-
(((v = n.value) == null ? void 0 : v.type) === "dataCategorical" && x.value || ((a = n.value) == null ? void 0 : a.type) === "dataContinuous" && I.value) && E.value ? (
|
|
208
|
+
(((v = n.value) == null ? void 0 : v.type) === "dataCategorical" && x.value || ((a = n.value) == null ? void 0 : a.type) === "dataContinuous" && I.value) && E.value ? (y(), S(ye, {
|
|
209
209
|
key: 0,
|
|
210
210
|
title: i.formTitle,
|
|
211
211
|
"back-title": i.formBackTitle,
|
|
@@ -214,7 +214,7 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
214
214
|
default: L(() => {
|
|
215
215
|
var t, u, c, b;
|
|
216
216
|
return [
|
|
217
|
-
((t = n.value) == null ? void 0 : t.type) === "dataCategorical" && x.value ? (
|
|
217
|
+
((t = n.value) == null ? void 0 : t.type) === "dataCategorical" && x.value ? (y(), S(Se, {
|
|
218
218
|
key: 0,
|
|
219
219
|
modelValue: x.value,
|
|
220
220
|
"onUpdate:modelValue": [
|
|
@@ -226,9 +226,9 @@ const Ee = { class: "aes-input-row" }, Ne = /* @__PURE__ */ Z({
|
|
|
226
226
|
"used-aes-in-mapping": Y.value[n.value.selectedSource],
|
|
227
227
|
"allow-hiding": o.value === "discrete",
|
|
228
228
|
"allow-reordering": o.value === "discrete" || o.value === "histogram" || o.value === "scatterplot" || o.value === "scatterplot-umap",
|
|
229
|
-
"allow-null-option": o.value === "discrete" && (s.value === "primaryGrouping" &&
|
|
229
|
+
"allow-null-option": o.value === "discrete" && (s.value === "primaryGrouping" && A(p).reactive.axesSettings.axisX.allowNullPrimaryGroups || s.value === "secondaryGrouping" && A(p).reactive.axesSettings.axisX.allowNullSecondaryGroups) || o.value === "scatterplot" || o.value === "scatterplot-umap"
|
|
230
230
|
}, null, 8, ["modelValue", "column-value-labels", "data-column-label", "used-aes-in-mapping", "allow-hiding", "allow-reordering", "allow-null-option"])) : T("", !0),
|
|
231
|
-
((c = n.value) == null ? void 0 : c.type) === "dataContinuous" && I.value ? (
|
|
231
|
+
((c = n.value) == null ? void 0 : c.type) === "dataContinuous" && I.value ? (y(), S(Te, {
|
|
232
232
|
key: 1,
|
|
233
233
|
modelValue: I.value,
|
|
234
234
|
"onUpdate:modelValue": [
|