@milaboratories/graph-maker 1.1.227 → 1.2.1

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