@milaboratories/graph-maker 1.2.0 → 1.2.2
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/assets/ui.css +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.css +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue.d.ts.map +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue2.js.map +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue3.js +1 -1
- package/dist/components/Chart.vue.d.ts.map +1 -1
- package/dist/components/Chart.vue.js +67 -66
- package/dist/components/Chart.vue.js.map +1 -1
- package/dist/components/ChartTruncationWarningAlert.css +1 -0
- package/dist/components/ChartTruncationWarningAlert.vue.d.ts +7 -0
- package/dist/components/ChartTruncationWarningAlert.vue.d.ts.map +1 -0
- package/dist/components/ChartTruncationWarningAlert.vue.js +10 -0
- package/dist/components/ChartTruncationWarningAlert.vue.js.map +1 -0
- package/dist/components/ChartTruncationWarningAlert.vue2.js +54 -0
- package/dist/components/ChartTruncationWarningAlert.vue2.js.map +1 -0
- package/dist/components/ChartTruncationWarningAlert.vue3.js +8 -0
- package/dist/components/ChartTruncationWarningAlert.vue3.js.map +1 -0
- package/dist/components/DragAndDrop/DnDBasketChip.vue.d.ts.map +1 -1
- package/dist/components/DragAndDrop/DnDBasketChip.vue.js +34 -31
- package/dist/components/DragAndDrop/DnDBasketChip.vue.js.map +1 -1
- package/dist/components/DragAndDrop/DnDRangeChip.vue.d.ts.map +1 -1
- package/dist/components/DragAndDrop/DnDRangeChip.vue.js +34 -31
- package/dist/components/DragAndDrop/DnDRangeChip.vue.js.map +1 -1
- package/dist/components/DragAndDrop/DndDoubleChip.vue.d.ts.map +1 -1
- package/dist/components/DragAndDrop/DndDoubleChip.vue.js +40 -35
- package/dist/components/DragAndDrop/DndDoubleChip.vue.js.map +1 -1
- package/dist/components/PanelModal.vue.d.ts.map +1 -1
- package/dist/components/PanelModal.vue.js +25 -11
- package/dist/components/PanelModal.vue.js.map +1 -1
- package/dist/components/ReorderForm.vue.d.ts.map +1 -1
- package/dist/components/ReorderForm.vue2.js +14 -13
- package/dist/components/ReorderForm.vue2.js.map +1 -1
- package/dist/constantsCommon.d.ts +7 -0
- package/dist/constantsCommon.d.ts.map +1 -1
- package/dist/constantsCommon.js +33 -28
- package/dist/constantsCommon.js.map +1 -1
- package/dist/dataBindAes.d.ts.map +1 -1
- package/dist/dataBindAes.js +88 -93
- package/dist/dataBindAes.js.map +1 -1
- package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.js +96 -78
- package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js +189 -161
- package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js +157 -139
- package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.js +154 -136
- package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js +232 -201
- package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/DataMappingForm/utils.js +58 -58
- package/dist/forms/DataMappingForm/utils.js.map +1 -1
- package/dist/forms/LayersForm/AesSelector.vue.d.ts.map +1 -1
- package/dist/forms/LayersForm/AesSelector.vue.js +86 -86
- package/dist/forms/LayersForm/AesSelector.vue.js.map +1 -1
- package/dist/index.vue.d.ts.map +1 -1
- package/dist/index.vue.js +183 -159
- package/dist/index.vue.js.map +1 -1
- package/dist/store.d.ts +2 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +135 -128
- package/dist/store.js.map +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/calculateDiscreteGroups.d.ts.map +1 -1
- package/dist/utils/calculateDiscreteGroups.js +6 -6
- package/dist/utils/calculateDiscreteGroups.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeBubbleSettings.d.ts +9 -0
- package/dist/utils/createChartSettingsForRender/composeBubbleSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeBubbleSettings.js +24 -22
- package/dist/utils/createChartSettingsForRender/composeBubbleSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeChartSettings.d.ts +19 -1
- package/dist/utils/createChartSettingsForRender/composeChartSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeChartSettings.js +74 -40
- package/dist/utils/createChartSettingsForRender/composeChartSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeDendroSettings.d.ts +16 -0
- package/dist/utils/createChartSettingsForRender/composeDendroSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeDendroSettings.js +22 -22
- package/dist/utils/createChartSettingsForRender/composeDendroSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +4 -468
- package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.js +48 -31
- package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +22 -0
- package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.js +24 -22
- package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeHistogramSettings.d.ts +5 -0
- package/dist/utils/createChartSettingsForRender/composeHistogramSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeHistogramSettings.js +24 -22
- package/dist/utils/createChartSettingsForRender/composeHistogramSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts +19 -0
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js +89 -71
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts +12 -0
- package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js +40 -35
- package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/getAxesDataFromForms.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/getAxesDataFromForms.js +28 -28
- package/dist/utils/createChartSettingsForRender/getAxesDataFromForms.js.map +1 -1
- package/dist/utils/loadUniqueValuesToSave.d.ts +3 -1
- package/dist/utils/loadUniqueValuesToSave.d.ts.map +1 -1
- package/dist/utils/loadUniqueValuesToSave.js +81 -63
- package/dist/utils/loadUniqueValuesToSave.js.map +1 -1
- package/package.json +2 -2
- package/dist/assets/drag-and-drop/img/chip-close.svg.js +0 -7
- package/dist/assets/drag-and-drop/img/chip-close.svg.js.map +0 -1
package/dist/index.vue.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { MiPlots as
|
|
3
|
-
import { DemoDataStore as
|
|
4
|
-
import { watchDebounced as
|
|
1
|
+
import { defineComponent as ve, mergeModels as J, useModel as K, ref as v, watch as s, toRaw as u, computed as f, shallowRef as z, onMounted as de, onUnmounted as pe, useSlots as me, createElementBlock as fe, openBlock as b, createElementVNode as ge, createVNode as $, createBlock as x, createCommentVNode as g, withCtx as B, renderSlot as E, unref as c, resolveDynamicComponent as he } from "vue";
|
|
2
|
+
import { MiPlots as Se } from "@milaboratories/miplots4";
|
|
3
|
+
import { DemoDataStore as ye } from "@milaboratories/pf-plots";
|
|
4
|
+
import { watchDebounced as h } from "@vueuse/core";
|
|
5
5
|
import './components/TransitionSlidePanel.css';import './assets/ui.css';/* empty css */
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import Te from "./components/Chart.vue.js";
|
|
7
|
+
import be from "./components/PanelModal.vue.js";
|
|
8
|
+
import we from "./components/SettingsTabs/index.vue.js";
|
|
9
|
+
import Ce from "./components/TransitionSlidePanel.vue.js";
|
|
10
10
|
/* empty css */
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
|
|
11
|
+
import De from "./components/ChartErrorNotificationAlert.vue.js";
|
|
12
|
+
import ke from "./components/ChartTruncationWarningAlert.vue.js";
|
|
13
|
+
import { useSettingsForm as xe, isOwnGraphMakerTab as Fe } from "./forms/index.js";
|
|
14
|
+
import { provideStore as Oe, createReactiveState as Pe } from "./store.js";
|
|
15
|
+
import { copyJSON as w } from "./utils/copyJSON.js";
|
|
16
|
+
import Be from "./components/GraphStatusScreen.vue.js";
|
|
17
|
+
import { composeChartSettings as Q } from "./utils/createChartSettingsForRender/composeChartSettings.js";
|
|
18
|
+
import { saveToFile as Ee } from "./utils/saveToFile.js";
|
|
19
|
+
const Ie = { class: "graph-maker" }, Re = { class: "graph-maker__main-pane" }, _e = /* @__PURE__ */ ve({
|
|
19
20
|
__name: "index",
|
|
20
|
-
props: /* @__PURE__ */
|
|
21
|
+
props: /* @__PURE__ */ J({
|
|
21
22
|
pFrame: {},
|
|
22
23
|
chartType: {},
|
|
23
24
|
defaultOptions: {},
|
|
@@ -38,53 +39,53 @@ const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, W
|
|
|
38
39
|
selection: {},
|
|
39
40
|
selectionModifiers: {}
|
|
40
41
|
}),
|
|
41
|
-
emits: /* @__PURE__ */
|
|
42
|
-
setup(d, { expose:
|
|
43
|
-
const l =
|
|
44
|
-
|
|
42
|
+
emits: /* @__PURE__ */ J(["delete-this-graph", "tooltip-btn-click"], ["update:modelValue", "update:selection"]),
|
|
43
|
+
setup(d, { expose: X, emit: Ge }) {
|
|
44
|
+
const l = K(d, "modelValue"), H = K(d, "selection"), n = d;
|
|
45
|
+
X({
|
|
45
46
|
/**
|
|
46
47
|
reset() will update data-mapping, axis-settings, layers-settings with the state that is in v-model at the moment.
|
|
47
48
|
In other cases editing of v-model fields doesn't make any impact to graphs and interface.
|
|
48
49
|
*/
|
|
49
|
-
reset:
|
|
50
|
+
reset: Y
|
|
50
51
|
});
|
|
51
|
-
const
|
|
52
|
-
|
|
52
|
+
const F = v(null);
|
|
53
|
+
s(() => n.pFrame, (e) => {
|
|
53
54
|
var o;
|
|
54
55
|
if (!e.ok || !e.value) {
|
|
55
|
-
|
|
56
|
+
F.value = null;
|
|
56
57
|
return;
|
|
57
58
|
}
|
|
58
59
|
const a = "platforma" in window ? (o = window.platforma) == null ? void 0 : o.pFrameDriver : n.driver;
|
|
59
60
|
if (!a)
|
|
60
61
|
throw new Error("PFrame driver is missing");
|
|
61
|
-
|
|
62
|
+
F.value = new ye(
|
|
62
63
|
e.value,
|
|
63
64
|
a,
|
|
64
65
|
n.labelsModifier
|
|
65
66
|
);
|
|
66
67
|
}, { immediate: !0, deep: !0 });
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
(e && a && JSON.stringify(e) !== JSON.stringify(a) || e && !a || a && !e) && (
|
|
68
|
+
const M = v(n.fixedOptions ?? []);
|
|
69
|
+
s(() => n.fixedOptions, (e, a) => {
|
|
70
|
+
(e && a && JSON.stringify(e) !== JSON.stringify(a) || e && !a || a && !e) && (M.value = e);
|
|
70
71
|
}, { deep: !0 });
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
const O = v(n.defaultOptions);
|
|
73
|
+
s(() => n.defaultOptions, (e) => {
|
|
74
|
+
O.value = e;
|
|
74
75
|
}, { deep: !0 });
|
|
75
|
-
const t =
|
|
76
|
+
const t = Oe(
|
|
76
77
|
u(l.value),
|
|
77
|
-
|
|
78
|
+
F,
|
|
78
79
|
n.chartType,
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
O,
|
|
81
|
+
M,
|
|
81
82
|
n.dataColumnPredicate,
|
|
82
83
|
n.metaColumnPredicate,
|
|
83
84
|
n.readonlyInputs,
|
|
84
85
|
n.defaultPalette
|
|
85
86
|
);
|
|
86
|
-
function
|
|
87
|
-
const e =
|
|
87
|
+
function Y() {
|
|
88
|
+
const e = Pe(
|
|
88
89
|
u(l.value),
|
|
89
90
|
n.chartType
|
|
90
91
|
);
|
|
@@ -94,108 +95,124 @@ const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, W
|
|
|
94
95
|
initialDefaults: !0,
|
|
95
96
|
inputGuide: !1,
|
|
96
97
|
chartData: !1
|
|
97
|
-
}),
|
|
98
|
+
}), O.value = n.defaultOptions;
|
|
98
99
|
}
|
|
99
|
-
const
|
|
100
|
+
const _ = f(() => xe(t.value.reactive.currentTab)), i = z(null), V = v(null), A = v(!1), S = v(null), C = f(
|
|
100
101
|
() => n.pFrame.ok && !n.pFrame.value && !n.pFrame.stable
|
|
101
|
-
),
|
|
102
|
-
() => t.value.loading.initialInputGuide &&
|
|
103
|
-
),
|
|
104
|
-
var
|
|
105
|
-
if (
|
|
102
|
+
), I = f(
|
|
103
|
+
() => t.value.loading.initialInputGuide && P.value === "loading"
|
|
104
|
+
), P = f((e) => {
|
|
105
|
+
var r, m;
|
|
106
|
+
if (C.value)
|
|
106
107
|
return "running";
|
|
107
108
|
if (n.pFrame.ok && n.pFrame.stable && !n.pFrame.value)
|
|
108
109
|
return "noPframe";
|
|
109
110
|
if (!n.pFrame.ok)
|
|
110
111
|
return "noPframeWithError";
|
|
111
112
|
const a = t.value.inputGuide.value, o = t.value.chartData.value;
|
|
112
|
-
return a.consistent ? a.ready ? o && ((
|
|
113
|
+
return a.consistent ? a.ready ? o && ((r = Object.values(o.data.byColumns.values)[0]) == null ? void 0 : r.length) === 0 ? "empty" : A.value ? ((m = S.value) == null ? void 0 : m.type) === "unknownError" ? "unknownError" : "knownError" : t.value.loading.initialCharts || e !== "ready" && t.value.loading.chartData || t.value.loading.chartRendering || i.value === null && (t.value.loading.inputGuide || t.value.loading.chartData) ? "loading" : "ready" : O.value === null || t.value.loading.defaults || t.value.loading.initialInputGuide ? "loading" : "notReady" : "inconsistent";
|
|
113
114
|
});
|
|
114
|
-
function
|
|
115
|
+
function ee(e) {
|
|
115
116
|
var a;
|
|
116
117
|
t.value.reactive.dendroSelectedNodeId = (a = e == null ? void 0 : e.info[0]) == null ? void 0 : a.id, t.value.reactive.dendroInfoByClick = e;
|
|
117
118
|
}
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
const p = v(null);
|
|
120
|
+
function y(e) {
|
|
121
|
+
const a = t.value.reactive;
|
|
122
|
+
if (e) {
|
|
123
|
+
if (a.tooltipHintWasShown) return;
|
|
124
|
+
p.value && (clearTimeout(p.value), p.value = null), a.showTooltipHint = !0, p.value = setTimeout(() => {
|
|
125
|
+
a.showTooltipHint = !1, a.tooltipHintWasShown = !0, p.value = null;
|
|
126
|
+
}, 3e3);
|
|
127
|
+
} else
|
|
128
|
+
a.showTooltipHint = !1;
|
|
120
129
|
}
|
|
121
130
|
function U(e, a) {
|
|
122
|
-
var
|
|
131
|
+
var D, k;
|
|
123
132
|
l.value = {
|
|
124
133
|
...l.value,
|
|
125
134
|
selectedPolygons: a
|
|
126
135
|
};
|
|
127
|
-
const o = (
|
|
136
|
+
const o = (k = (D = t.value.chartData.value) == null ? void 0 : D.data) == null ? void 0 : k.axesData;
|
|
128
137
|
if (e.length === 0 || !o) {
|
|
129
|
-
|
|
138
|
+
H.value = { axesSpec: [], selectedKeys: [] };
|
|
130
139
|
return;
|
|
131
140
|
}
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
axesSpec:
|
|
135
|
-
selectedKeys: e.map((
|
|
141
|
+
const r = Object.keys(o), m = t.value.inputGuide.value;
|
|
142
|
+
H.value = {
|
|
143
|
+
axesSpec: r.map((N) => m.getSourceInfo(N).spec),
|
|
144
|
+
selectedKeys: e.map((N) => r.map((ce) => o[ce][N]))
|
|
136
145
|
};
|
|
137
146
|
}
|
|
138
|
-
function
|
|
147
|
+
function W(e) {
|
|
139
148
|
t.value.reactive.lassoControlsState = e;
|
|
140
149
|
}
|
|
141
|
-
let
|
|
142
|
-
function
|
|
143
|
-
e ?
|
|
150
|
+
let R = null;
|
|
151
|
+
function te(e) {
|
|
152
|
+
e ? R = setTimeout(() => {
|
|
144
153
|
t.value.loading.chartRendering = !0;
|
|
145
|
-
}, 1e3) : (
|
|
154
|
+
}, 1e3) : (R && clearTimeout(R), t.value.loading.chartRendering = !1);
|
|
146
155
|
}
|
|
147
|
-
const j =
|
|
148
|
-
function
|
|
156
|
+
const j = v(!1);
|
|
157
|
+
function ae(e) {
|
|
149
158
|
j.value = e;
|
|
150
159
|
}
|
|
151
|
-
const
|
|
152
|
-
dendro: [
|
|
160
|
+
const le = {
|
|
161
|
+
dendro: [ee],
|
|
153
162
|
"scatterplot-umap": {
|
|
154
163
|
onPolygonUpdate: U,
|
|
155
|
-
onTooltipHintSwitch:
|
|
156
|
-
onLassoControlsStateUpdate:
|
|
157
|
-
onZoomChange:
|
|
164
|
+
onTooltipHintSwitch: y,
|
|
165
|
+
onLassoControlsStateUpdate: W,
|
|
166
|
+
onZoomChange: ae
|
|
158
167
|
},
|
|
159
|
-
discrete: [
|
|
168
|
+
discrete: [y],
|
|
160
169
|
scatterplot: {
|
|
161
170
|
onPolygonUpdate: U,
|
|
162
|
-
onTooltipHintSwitch:
|
|
163
|
-
onLassoControlsStateUpdate:
|
|
171
|
+
onTooltipHintSwitch: y,
|
|
172
|
+
onLassoControlsStateUpdate: W
|
|
164
173
|
},
|
|
165
|
-
histogram: [
|
|
166
|
-
heatmap: { onTooltipHintSwitch:
|
|
167
|
-
bubble: [
|
|
174
|
+
histogram: [y],
|
|
175
|
+
heatmap: { onTooltipHintSwitch: y, onLoadingChange: te },
|
|
176
|
+
bubble: [y]
|
|
168
177
|
};
|
|
169
178
|
function Z(e) {
|
|
170
|
-
var a, o,
|
|
179
|
+
var a, o, r, m, D;
|
|
171
180
|
if (e && ((a = Object.values(e.data.values)[0]) == null ? void 0 : a.length) > 0) {
|
|
172
|
-
if (
|
|
173
|
-
|
|
181
|
+
if (i.value)
|
|
182
|
+
i.value.updateSettingsAndData({ ...u(e.data), id: e.data.id + (n.pFrame.ok ? n.pFrame.value : "") }, u(e.settings));
|
|
174
183
|
else {
|
|
175
|
-
const
|
|
176
|
-
|
|
184
|
+
const k = document.getElementById("chartSvgContainer");
|
|
185
|
+
k && (i.value = Se.newPlot(u(e.data), u(e.settings), le[e.settings.type]), e.settings.type === "scatterplot-umap" && i.value.updateChartState("polygon", l.value.selectedPolygons ?? []), i.value.mount(k));
|
|
177
186
|
}
|
|
178
|
-
|
|
187
|
+
V.value = (o = i.value) != null && o.calculatedData ? { ...i.value.calculatedData } : null, A.value = ((r = i.value) == null ? void 0 : r.hasError) ?? !1, S.value = ((m = i.value) == null ? void 0 : m.errorInfo) ?? null;
|
|
179
188
|
} else
|
|
180
|
-
(
|
|
189
|
+
(D = i.value) == null || D.unmount(), i.value = null, S.value = null;
|
|
181
190
|
}
|
|
182
|
-
|
|
191
|
+
s(() => P.value, (e) => {
|
|
183
192
|
var a;
|
|
184
|
-
(e === "notReady" || e === "noPframe" ||
|
|
193
|
+
(e === "notReady" || e === "noPframe" || F.value === null) && ((a = i.value) == null || a.unmount(), i.value = null);
|
|
185
194
|
});
|
|
186
|
-
const
|
|
187
|
-
|
|
195
|
+
const G = z(null), T = v(null);
|
|
196
|
+
function q(e) {
|
|
197
|
+
if (!e) {
|
|
198
|
+
G.value = null, T.value = null;
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
G.value = { settings: e.settings, data: e.data }, T.value = e.truncationWarning;
|
|
202
|
+
}
|
|
203
|
+
s([
|
|
188
204
|
() => t.value.chartData.value
|
|
189
205
|
], ([e]) => {
|
|
190
|
-
|
|
206
|
+
q(Q(
|
|
191
207
|
u(e),
|
|
192
208
|
u(t.value.inputGuide.value),
|
|
193
209
|
u(t.value.uniqueValuesData.value),
|
|
194
210
|
u(t.value.filterLabelsInfo.value),
|
|
195
211
|
u(t.value.reactive),
|
|
196
|
-
u(t.value.defaultPalette)
|
|
197
|
-
|
|
198
|
-
|
|
212
|
+
u(t.value.defaultPalette),
|
|
213
|
+
u(t.value.facetValuesData.value)
|
|
214
|
+
));
|
|
215
|
+
}), s([
|
|
199
216
|
() => t.value.reactive.template,
|
|
200
217
|
() => t.value.reactive.layersSettings,
|
|
201
218
|
() => t.value.reactive.axesSettings,
|
|
@@ -203,52 +220,53 @@ const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, W
|
|
|
203
220
|
() => t.value.reactive.dataBindAes,
|
|
204
221
|
() => t.value.reactive.chartScale
|
|
205
222
|
], () => {
|
|
206
|
-
|
|
223
|
+
q(Q(
|
|
207
224
|
u(t.value.chartData.value),
|
|
208
225
|
u(t.value.inputGuide.value),
|
|
209
226
|
u(t.value.uniqueValuesData.value),
|
|
210
227
|
u(t.value.filterLabelsInfo.value),
|
|
211
228
|
u(t.value.reactive),
|
|
212
|
-
u(t.value.defaultPalette)
|
|
213
|
-
|
|
214
|
-
|
|
229
|
+
u(t.value.defaultPalette),
|
|
230
|
+
u(t.value.facetValuesData.value)
|
|
231
|
+
));
|
|
232
|
+
}, { deep: !0 }), s(() => G.value, (e) => {
|
|
215
233
|
Z(e);
|
|
216
|
-
}),
|
|
234
|
+
}), de(() => {
|
|
217
235
|
Z(null);
|
|
218
|
-
}),
|
|
236
|
+
}), pe(() => {
|
|
219
237
|
var e;
|
|
220
|
-
(e =
|
|
221
|
-
}),
|
|
238
|
+
p.value && (clearTimeout(p.value), p.value = null), (e = i.value) == null || e.unmount();
|
|
239
|
+
}), h(() => t.value.reactive.optionsState, (e) => {
|
|
222
240
|
l.value = {
|
|
223
241
|
...l.value,
|
|
224
|
-
optionsState:
|
|
242
|
+
optionsState: w(e)
|
|
225
243
|
};
|
|
226
|
-
}, { deep: !0, debounce: 1e3 }),
|
|
244
|
+
}, { deep: !0, debounce: 1e3 }), h(() => t.value.reactive.usedDefaultOptions, (e) => {
|
|
227
245
|
l.value = {
|
|
228
246
|
...l.value,
|
|
229
|
-
usedDefaultOptions:
|
|
247
|
+
usedDefaultOptions: w(e)
|
|
230
248
|
};
|
|
231
|
-
}, { deep: !0, debounce: 1e3 }),
|
|
249
|
+
}, { deep: !0, debounce: 1e3 }), h(() => t.value.reactive.statisticsSettings, (e) => {
|
|
232
250
|
l.value = {
|
|
233
251
|
...l.value,
|
|
234
|
-
statisticsSettings:
|
|
252
|
+
statisticsSettings: w(e)
|
|
235
253
|
};
|
|
236
|
-
}, { deep: !0, debounce: 1e3 }),
|
|
254
|
+
}, { deep: !0, debounce: 1e3 }), h(() => t.value.reactive.axesSettings, (e) => {
|
|
237
255
|
l.value = {
|
|
238
256
|
...l.value,
|
|
239
|
-
axesSettings:
|
|
257
|
+
axesSettings: w(e)
|
|
240
258
|
};
|
|
241
|
-
}, { deep: !0, debounce: 1e3 }),
|
|
259
|
+
}, { deep: !0, debounce: 1e3 }), h(() => t.value.reactive.layersSettings, (e) => {
|
|
242
260
|
l.value = {
|
|
243
261
|
...l.value,
|
|
244
|
-
layersSettings:
|
|
262
|
+
layersSettings: w(e)
|
|
245
263
|
};
|
|
246
|
-
}, { deep: !0, debounce: 1e3 }),
|
|
264
|
+
}, { deep: !0, debounce: 1e3 }), h(() => t.value.reactive.dataBindAes, (e) => {
|
|
247
265
|
l.value = {
|
|
248
266
|
...l.value,
|
|
249
|
-
dataBindAes:
|
|
267
|
+
dataBindAes: w(e)
|
|
250
268
|
};
|
|
251
|
-
}, { deep: !0, debounce: 1e3 }),
|
|
269
|
+
}, { deep: !0, debounce: 1e3 }), h([
|
|
252
270
|
() => t.value.reactive.chartScale,
|
|
253
271
|
() => t.value.reactive.template,
|
|
254
272
|
() => t.value.reactive.currentTab
|
|
@@ -259,110 +277,116 @@ const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, W
|
|
|
259
277
|
template: a,
|
|
260
278
|
currentTab: o
|
|
261
279
|
};
|
|
262
|
-
}, { debounce: 1e3 }),
|
|
280
|
+
}, { debounce: 1e3 }), s(() => t.value.reactive.tooltipHintWasShown, (e) => {
|
|
281
|
+
e && (l.value = { ...l.value, tooltipHintWasShown: !0 });
|
|
282
|
+
}), s(() => l.value.currentTab, (e) => {
|
|
263
283
|
t.value.reactive.currentTab = e === void 0 ? "dataMapping" : e;
|
|
264
|
-
}),
|
|
284
|
+
}), s(() => {
|
|
265
285
|
var e, a, o;
|
|
266
286
|
return (o = (a = (e = l.value) == null ? void 0 : e.layersSettings) == null ? void 0 : a.dendro) == null ? void 0 : o.showTable;
|
|
267
287
|
}, (e) => {
|
|
268
288
|
t.value.reactive.layersSettings.dendro.showTable = e ?? !1;
|
|
269
289
|
});
|
|
270
|
-
function
|
|
290
|
+
function ne() {
|
|
271
291
|
var e;
|
|
272
|
-
|
|
292
|
+
Ee(
|
|
273
293
|
new Blob([
|
|
274
|
-
((e =
|
|
294
|
+
((e = i.value) == null ? void 0 : e.export()) ?? ""
|
|
275
295
|
]),
|
|
276
296
|
"chart.svg"
|
|
277
297
|
);
|
|
278
298
|
}
|
|
279
|
-
function
|
|
299
|
+
function oe(e) {
|
|
280
300
|
l.value = {
|
|
281
301
|
...l.value,
|
|
282
302
|
title: e
|
|
283
303
|
};
|
|
284
304
|
}
|
|
285
|
-
function
|
|
305
|
+
function ue(e) {
|
|
286
306
|
var a;
|
|
287
|
-
t.value.reactive.dendroSelectedNodeId = e, (a =
|
|
307
|
+
t.value.reactive.dendroSelectedNodeId = e, (a = i.value) == null || a.updateChartState("selectedNode", e);
|
|
288
308
|
}
|
|
289
|
-
const
|
|
309
|
+
const L = me(), ie = f(() => !!L.annotationsSlot), re = f(() => !!L.settingsSlot), se = f(() => !!L.logSlot);
|
|
290
310
|
return (e, a) => {
|
|
291
311
|
var o;
|
|
292
|
-
return
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
"graph-status":
|
|
312
|
+
return b(), fe("div", Ie, [
|
|
313
|
+
ge("div", Re, [
|
|
314
|
+
$(Te, {
|
|
315
|
+
"graph-status": P.value,
|
|
296
316
|
graphTitle: l.value.title,
|
|
297
|
-
chartData:
|
|
298
|
-
"chart-ref":
|
|
299
|
-
"error-info":
|
|
317
|
+
chartData: V.value,
|
|
318
|
+
"chart-ref": i.value,
|
|
319
|
+
"error-info": S.value,
|
|
300
320
|
dendroTooltipButton: d.tooltipButton,
|
|
301
321
|
"custom-status-text": d.statusText,
|
|
302
322
|
"allow-title-editing": d.allowTitleEditing,
|
|
303
323
|
isScatterplotZoomChanged: j.value,
|
|
304
|
-
onGraphTitleUpdate:
|
|
305
|
-
onDendroNodeSelect:
|
|
306
|
-
onDendroTooltipBtnClick: a[0] || (a[0] = (
|
|
324
|
+
onGraphTitleUpdate: oe,
|
|
325
|
+
onDendroNodeSelect: ue,
|
|
326
|
+
onDendroTooltipBtnClick: a[0] || (a[0] = (r) => e.$emit("tooltip-btn-click", r))
|
|
307
327
|
}, {
|
|
308
|
-
default:
|
|
309
|
-
|
|
328
|
+
default: B(() => [
|
|
329
|
+
E(e.$slots, "titleLineSlot")
|
|
310
330
|
]),
|
|
311
331
|
_: 3
|
|
312
332
|
}, 8, ["graph-status", "graphTitle", "chartData", "chart-ref", "error-info", "dendroTooltipButton", "custom-status-text", "allow-title-editing", "isScatterplotZoomChanged"]),
|
|
313
|
-
|
|
333
|
+
I.value || C.value ? (b(), x(Be, {
|
|
314
334
|
key: 0,
|
|
315
|
-
graphStatus:
|
|
335
|
+
graphStatus: C.value ? "running" : "loading",
|
|
316
336
|
top: 67,
|
|
317
337
|
left: 12,
|
|
318
338
|
right: 12,
|
|
319
339
|
bottom: 12,
|
|
320
340
|
customStatusText: d.statusText
|
|
321
|
-
}, null, 8, ["graphStatus", "customStatusText"])) :
|
|
322
|
-
|
|
323
|
-
default:
|
|
324
|
-
|
|
341
|
+
}, null, 8, ["graphStatus", "customStatusText"])) : g("", !0),
|
|
342
|
+
$(Ce, { id: "graph-settings-modal" }, {
|
|
343
|
+
default: B(() => [
|
|
344
|
+
c(t).reactive.currentTab && !((I.value || C.value) && c(Fe)(c(t).reactive.currentTab)) ? (b(), x(be, {
|
|
325
345
|
key: 0,
|
|
326
|
-
onClose: a[1] || (a[1] = (
|
|
346
|
+
onClose: a[1] || (a[1] = (r) => c(t).reactive.currentTab = null)
|
|
327
347
|
}, {
|
|
328
|
-
default:
|
|
329
|
-
(
|
|
330
|
-
default:
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
348
|
+
default: B(() => [
|
|
349
|
+
(b(), x(he(_.value.value), null, {
|
|
350
|
+
default: B(() => [
|
|
351
|
+
c(t).reactive.currentTab === "annotations" ? E(e.$slots, "annotationsSlot", { key: 0 }) : g("", !0),
|
|
352
|
+
c(t).reactive.currentTab === "settings" ? E(e.$slots, "settingsSlot", { key: 1 }) : g("", !0),
|
|
353
|
+
c(t).reactive.currentTab === "log" ? E(e.$slots, "logSlot", { key: 2 }) : g("", !0)
|
|
334
354
|
]),
|
|
335
355
|
_: 3
|
|
336
356
|
}))
|
|
337
357
|
]),
|
|
338
358
|
_: 3
|
|
339
|
-
})) :
|
|
359
|
+
})) : g("", !0)
|
|
340
360
|
]),
|
|
341
361
|
_: 3
|
|
342
362
|
})
|
|
343
363
|
]),
|
|
344
|
-
|
|
345
|
-
modelValue:
|
|
346
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
347
|
-
"chart-type":
|
|
348
|
-
"graph-status":
|
|
364
|
+
$(we, {
|
|
365
|
+
modelValue: c(t).reactive.currentTab,
|
|
366
|
+
"onUpdate:modelValue": a[2] || (a[2] = (r) => c(t).reactive.currentTab = r),
|
|
367
|
+
"chart-type": c(t).reactive.chartType,
|
|
368
|
+
"graph-status": P.value,
|
|
349
369
|
allowDeleting: d.allowChartDeleting,
|
|
350
|
-
hasAnnotationsSlot:
|
|
351
|
-
hasSettingsSlot:
|
|
352
|
-
hasLogSlot:
|
|
353
|
-
initialLoading:
|
|
354
|
-
onExport:
|
|
355
|
-
onDelete: a[3] || (a[3] = (
|
|
370
|
+
hasAnnotationsSlot: ie.value,
|
|
371
|
+
hasSettingsSlot: re.value,
|
|
372
|
+
hasLogSlot: se.value,
|
|
373
|
+
initialLoading: I.value || C.value,
|
|
374
|
+
onExport: ne,
|
|
375
|
+
onDelete: a[3] || (a[3] = (r) => e.$emit("delete-this-graph"))
|
|
356
376
|
}, null, 8, ["modelValue", "chart-type", "graph-status", "allowDeleting", "hasAnnotationsSlot", "hasSettingsSlot", "hasLogSlot", "initialLoading"]),
|
|
357
|
-
((o =
|
|
377
|
+
((o = S.value) == null ? void 0 : o.type) === "unknownError" ? (b(), x(De, {
|
|
358
378
|
key: 0,
|
|
359
|
-
errorInfo:
|
|
360
|
-
}, null, 8, ["errorInfo"])) :
|
|
379
|
+
errorInfo: S.value
|
|
380
|
+
}, null, 8, ["errorInfo"])) : g("", !0),
|
|
381
|
+
T.value && (T.value.groups || T.value.facets) ? (b(), x(ke, {
|
|
382
|
+
key: 1,
|
|
383
|
+
"truncation-warning": T.value
|
|
384
|
+
}, null, 8, ["truncation-warning"])) : g("", !0)
|
|
361
385
|
]);
|
|
362
386
|
};
|
|
363
387
|
}
|
|
364
388
|
});
|
|
365
389
|
export {
|
|
366
|
-
|
|
390
|
+
_e as default
|
|
367
391
|
};
|
|
368
392
|
//# sourceMappingURL=index.vue.js.map
|