@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.
Files changed (113) hide show
  1. package/dist/assets/ui.css +1 -1
  2. package/dist/components/AesSettings/AesDataMappingDiscrete.css +1 -1
  3. package/dist/components/AesSettings/AesDataMappingDiscrete.vue.d.ts.map +1 -1
  4. package/dist/components/AesSettings/AesDataMappingDiscrete.vue2.js.map +1 -1
  5. package/dist/components/AesSettings/AesDataMappingDiscrete.vue3.js +1 -1
  6. package/dist/components/Chart.vue.d.ts.map +1 -1
  7. package/dist/components/Chart.vue.js +67 -66
  8. package/dist/components/Chart.vue.js.map +1 -1
  9. package/dist/components/ChartTruncationWarningAlert.css +1 -0
  10. package/dist/components/ChartTruncationWarningAlert.vue.d.ts +7 -0
  11. package/dist/components/ChartTruncationWarningAlert.vue.d.ts.map +1 -0
  12. package/dist/components/ChartTruncationWarningAlert.vue.js +10 -0
  13. package/dist/components/ChartTruncationWarningAlert.vue.js.map +1 -0
  14. package/dist/components/ChartTruncationWarningAlert.vue2.js +54 -0
  15. package/dist/components/ChartTruncationWarningAlert.vue2.js.map +1 -0
  16. package/dist/components/ChartTruncationWarningAlert.vue3.js +8 -0
  17. package/dist/components/ChartTruncationWarningAlert.vue3.js.map +1 -0
  18. package/dist/components/DragAndDrop/DnDBasketChip.vue.d.ts.map +1 -1
  19. package/dist/components/DragAndDrop/DnDBasketChip.vue.js +34 -31
  20. package/dist/components/DragAndDrop/DnDBasketChip.vue.js.map +1 -1
  21. package/dist/components/DragAndDrop/DnDRangeChip.vue.d.ts.map +1 -1
  22. package/dist/components/DragAndDrop/DnDRangeChip.vue.js +34 -31
  23. package/dist/components/DragAndDrop/DnDRangeChip.vue.js.map +1 -1
  24. package/dist/components/DragAndDrop/DndDoubleChip.vue.d.ts.map +1 -1
  25. package/dist/components/DragAndDrop/DndDoubleChip.vue.js +40 -35
  26. package/dist/components/DragAndDrop/DndDoubleChip.vue.js.map +1 -1
  27. package/dist/components/PanelModal.vue.d.ts.map +1 -1
  28. package/dist/components/PanelModal.vue.js +25 -11
  29. package/dist/components/PanelModal.vue.js.map +1 -1
  30. package/dist/components/ReorderForm.vue.d.ts.map +1 -1
  31. package/dist/components/ReorderForm.vue2.js +14 -13
  32. package/dist/components/ReorderForm.vue2.js.map +1 -1
  33. package/dist/constantsCommon.d.ts +7 -0
  34. package/dist/constantsCommon.d.ts.map +1 -1
  35. package/dist/constantsCommon.js +33 -28
  36. package/dist/constantsCommon.js.map +1 -1
  37. package/dist/dataBindAes.d.ts.map +1 -1
  38. package/dist/dataBindAes.js +88 -93
  39. package/dist/dataBindAes.js.map +1 -1
  40. package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.d.ts.map +1 -1
  41. package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.js +96 -78
  42. package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.js.map +1 -1
  43. package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.d.ts.map +1 -1
  44. package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js +189 -161
  45. package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js.map +1 -1
  46. package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.d.ts.map +1 -1
  47. package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js +157 -139
  48. package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js.map +1 -1
  49. package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.d.ts.map +1 -1
  50. package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.js +154 -136
  51. package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.js.map +1 -1
  52. package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.d.ts.map +1 -1
  53. package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js +232 -201
  54. package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js.map +1 -1
  55. package/dist/forms/DataMappingForm/utils.js +58 -58
  56. package/dist/forms/DataMappingForm/utils.js.map +1 -1
  57. package/dist/forms/LayersForm/AesSelector.vue.d.ts.map +1 -1
  58. package/dist/forms/LayersForm/AesSelector.vue.js +86 -86
  59. package/dist/forms/LayersForm/AesSelector.vue.js.map +1 -1
  60. package/dist/index.vue.d.ts.map +1 -1
  61. package/dist/index.vue.js +183 -159
  62. package/dist/index.vue.js.map +1 -1
  63. package/dist/store.d.ts +2 -1
  64. package/dist/store.d.ts.map +1 -1
  65. package/dist/store.js +135 -128
  66. package/dist/store.js.map +1 -1
  67. package/dist/types.d.ts +5 -0
  68. package/dist/types.d.ts.map +1 -1
  69. package/dist/utils/calculateDiscreteGroups.d.ts.map +1 -1
  70. package/dist/utils/calculateDiscreteGroups.js +6 -6
  71. package/dist/utils/calculateDiscreteGroups.js.map +1 -1
  72. package/dist/utils/createChartSettingsForRender/composeBubbleSettings.d.ts +9 -0
  73. package/dist/utils/createChartSettingsForRender/composeBubbleSettings.d.ts.map +1 -1
  74. package/dist/utils/createChartSettingsForRender/composeBubbleSettings.js +24 -22
  75. package/dist/utils/createChartSettingsForRender/composeBubbleSettings.js.map +1 -1
  76. package/dist/utils/createChartSettingsForRender/composeChartSettings.d.ts +19 -1
  77. package/dist/utils/createChartSettingsForRender/composeChartSettings.d.ts.map +1 -1
  78. package/dist/utils/createChartSettingsForRender/composeChartSettings.js +74 -40
  79. package/dist/utils/createChartSettingsForRender/composeChartSettings.js.map +1 -1
  80. package/dist/utils/createChartSettingsForRender/composeDendroSettings.d.ts +16 -0
  81. package/dist/utils/createChartSettingsForRender/composeDendroSettings.d.ts.map +1 -1
  82. package/dist/utils/createChartSettingsForRender/composeDendroSettings.js +22 -22
  83. package/dist/utils/createChartSettingsForRender/composeDendroSettings.js.map +1 -1
  84. package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +4 -468
  85. package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts.map +1 -1
  86. package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.js +48 -31
  87. package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.js.map +1 -1
  88. package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +22 -0
  89. package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts.map +1 -1
  90. package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.js +24 -22
  91. package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.js.map +1 -1
  92. package/dist/utils/createChartSettingsForRender/composeHistogramSettings.d.ts +5 -0
  93. package/dist/utils/createChartSettingsForRender/composeHistogramSettings.d.ts.map +1 -1
  94. package/dist/utils/createChartSettingsForRender/composeHistogramSettings.js +24 -22
  95. package/dist/utils/createChartSettingsForRender/composeHistogramSettings.js.map +1 -1
  96. package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts +19 -0
  97. package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
  98. package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js +89 -71
  99. package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
  100. package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts +12 -0
  101. package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts.map +1 -1
  102. package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js +40 -35
  103. package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js.map +1 -1
  104. package/dist/utils/createChartSettingsForRender/getAxesDataFromForms.d.ts.map +1 -1
  105. package/dist/utils/createChartSettingsForRender/getAxesDataFromForms.js +28 -28
  106. package/dist/utils/createChartSettingsForRender/getAxesDataFromForms.js.map +1 -1
  107. package/dist/utils/loadUniqueValuesToSave.d.ts +3 -1
  108. package/dist/utils/loadUniqueValuesToSave.d.ts.map +1 -1
  109. package/dist/utils/loadUniqueValuesToSave.js +81 -63
  110. package/dist/utils/loadUniqueValuesToSave.js.map +1 -1
  111. package/package.json +2 -2
  112. package/dist/assets/drag-and-drop/img/chip-close.svg.js +0 -7
  113. 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 ie, mergeModels as q, useModel as H, ref as p, watch as c, toRaw as u, 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";
2
- import { MiPlots as ge } from "@milaboratories/miplots4";
3
- import { DemoDataStore as fe } from "@milaboratories/pf-plots";
4
- import { watchDebounced as g } from "@vueuse/core";
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 he from "./components/Chart.vue.js";
7
- import Se from "./components/PanelModal.vue.js";
8
- import ye from "./components/SettingsTabs/index.vue.js";
9
- import be from "./components/TransitionSlidePanel.vue.js";
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 Te from "./components/ChartErrorNotificationAlert.vue.js";
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 { copyJSON as y } from "./utils/copyJSON.js";
15
- import xe from "./components/GraphStatusScreen.vue.js";
16
- import { composeChartSettings as K } from "./utils/createChartSettingsForRender/composeChartSettings.js";
17
- import { saveToFile as Fe } from "./utils/saveToFile.js";
18
- const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, We = /* @__PURE__ */ ie({
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__ */ q({
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__ */ q(["delete-this-graph", "tooltip-btn-click"], ["update:modelValue", "update:selection"]),
42
- setup(d, { expose: W, emit: Be }) {
43
- const l = H(d, "modelValue"), R = H(d, "selection"), n = d;
44
- W({
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: z
50
+ reset: Y
50
51
  });
51
- const w = p(null);
52
- c(() => n.pFrame, (e) => {
52
+ const F = v(null);
53
+ s(() => n.pFrame, (e) => {
53
54
  var o;
54
55
  if (!e.ok || !e.value) {
55
- w.value = null;
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
- w.value = new fe(
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 $ = p(n.fixedOptions ?? []);
68
- c(() => n.fixedOptions, (e, a) => {
69
- (e && a && JSON.stringify(e) !== JSON.stringify(a) || e && !a || a && !e) && ($.value = 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 k = p(n.defaultOptions);
72
- c(() => n.defaultOptions, (e) => {
73
- k.value = e;
72
+ const O = v(n.defaultOptions);
73
+ s(() => n.defaultOptions, (e) => {
74
+ O.value = e;
74
75
  }, { deep: !0 });
75
- const t = we(
76
+ const t = Oe(
76
77
  u(l.value),
77
- w,
78
+ F,
78
79
  n.chartType,
79
- k,
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 z() {
87
- const e = ke(
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
- }), k.value = n.defaultOptions;
98
+ }), O.value = n.defaultOptions;
98
99
  }
99
- const Q = m(() => Ce(t.value.reactive.currentTab)), r = J(null), M = p(null), A = p(!1), f = p(null), b = m(
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
- ), B = m(
102
- () => t.value.loading.initialInputGuide && x.value === "loading"
103
- ), x = m((e) => {
104
- var i, v;
105
- if (b.value)
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 && ((i = Object.values(o.data.byColumns.values)[0]) == null ? void 0 : i.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";
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 X(e) {
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
- function h(e) {
119
- t.value.reactive.showTooltipHint = e;
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 T, C;
131
+ var D, k;
123
132
  l.value = {
124
133
  ...l.value,
125
134
  selectedPolygons: a
126
135
  };
127
- const o = (C = (T = t.value.chartData.value) == null ? void 0 : T.data) == null ? void 0 : C.axesData;
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
- R.value = { axesSpec: [], selectedKeys: [] };
138
+ H.value = { axesSpec: [], selectedKeys: [] };
130
139
  return;
131
140
  }
132
- const i = Object.keys(o), v = t.value.inputGuide.value;
133
- R.value = {
134
- axesSpec: i.map((L) => v.getSourceInfo(L).spec),
135
- selectedKeys: e.map((L) => i.map((ue) => o[ue][L]))
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 V(e) {
147
+ function W(e) {
139
148
  t.value.reactive.lassoControlsState = e;
140
149
  }
141
- let E = null;
142
- function Y(e) {
143
- e ? E = setTimeout(() => {
150
+ let R = null;
151
+ function te(e) {
152
+ e ? R = setTimeout(() => {
144
153
  t.value.loading.chartRendering = !0;
145
- }, 1e3) : (E && clearTimeout(E), t.value.loading.chartRendering = !1);
154
+ }, 1e3) : (R && clearTimeout(R), t.value.loading.chartRendering = !1);
146
155
  }
147
- const j = p(!1);
148
- function _(e) {
156
+ const j = v(!1);
157
+ function ae(e) {
149
158
  j.value = e;
150
159
  }
151
- const ee = {
152
- dendro: [X],
160
+ const le = {
161
+ dendro: [ee],
153
162
  "scatterplot-umap": {
154
163
  onPolygonUpdate: U,
155
- onTooltipHintSwitch: h,
156
- onLassoControlsStateUpdate: V,
157
- onZoomChange: _
164
+ onTooltipHintSwitch: y,
165
+ onLassoControlsStateUpdate: W,
166
+ onZoomChange: ae
158
167
  },
159
- discrete: [h],
168
+ discrete: [y],
160
169
  scatterplot: {
161
170
  onPolygonUpdate: U,
162
- onTooltipHintSwitch: h,
163
- onLassoControlsStateUpdate: V
171
+ onTooltipHintSwitch: y,
172
+ onLassoControlsStateUpdate: W
164
173
  },
165
- histogram: [h],
166
- heatmap: { onTooltipHintSwitch: h, onLoadingChange: Y },
167
- bubble: [h]
174
+ histogram: [y],
175
+ heatmap: { onTooltipHintSwitch: y, onLoadingChange: te },
176
+ bubble: [y]
168
177
  };
169
178
  function Z(e) {
170
- var a, o, i, v, T;
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 (r.value)
173
- r.value.updateSettingsAndData({ ...u(e.data), id: e.data.id + (n.pFrame.ok ? n.pFrame.value : "") }, u(e.settings));
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 C = document.getElementById("chartSvgContainer");
176
- C && (r.value = ge.newPlot(u(e.data), u(e.settings), ee[e.settings.type]), e.settings.type === "scatterplot-umap" && r.value.updateChartState("polygon", l.value.selectedPolygons ?? []), r.value.mount(C));
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
- M.value = (o = r.value) != null && o.calculatedData ? { ...r.value.calculatedData } : null, A.value = ((i = r.value) == null ? void 0 : i.hasError) ?? !1, f.value = ((v = r.value) == null ? void 0 : v.errorInfo) ?? null;
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
- (T = r.value) == null || T.unmount(), r.value = null, f.value = null;
189
+ (D = i.value) == null || D.unmount(), i.value = null, S.value = null;
181
190
  }
182
- c(() => x.value, (e) => {
191
+ s(() => P.value, (e) => {
183
192
  var a;
184
- (e === "notReady" || e === "noPframe" || w.value === null) && ((a = r.value) == null || a.unmount(), r.value = null);
193
+ (e === "notReady" || e === "noPframe" || F.value === null) && ((a = i.value) == null || a.unmount(), i.value = null);
185
194
  });
186
- const I = J(null);
187
- c([
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
- I.value = K(
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
- }), c([
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
- I.value = K(
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
- }, { deep: !0 }), c(() => I.value, (e) => {
229
+ u(t.value.defaultPalette),
230
+ u(t.value.facetValuesData.value)
231
+ ));
232
+ }, { deep: !0 }), s(() => G.value, (e) => {
215
233
  Z(e);
216
- }), se(() => {
234
+ }), de(() => {
217
235
  Z(null);
218
- }), ce(() => {
236
+ }), pe(() => {
219
237
  var e;
220
- (e = r.value) == null || e.unmount();
221
- }), g(() => t.value.reactive.optionsState, (e) => {
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: y(e)
242
+ optionsState: w(e)
225
243
  };
226
- }, { deep: !0, debounce: 1e3 }), g(() => t.value.reactive.usedDefaultOptions, (e) => {
244
+ }, { deep: !0, debounce: 1e3 }), h(() => t.value.reactive.usedDefaultOptions, (e) => {
227
245
  l.value = {
228
246
  ...l.value,
229
- usedDefaultOptions: y(e)
247
+ usedDefaultOptions: w(e)
230
248
  };
231
- }, { deep: !0, debounce: 1e3 }), g(() => t.value.reactive.statisticsSettings, (e) => {
249
+ }, { deep: !0, debounce: 1e3 }), h(() => t.value.reactive.statisticsSettings, (e) => {
232
250
  l.value = {
233
251
  ...l.value,
234
- statisticsSettings: y(e)
252
+ statisticsSettings: w(e)
235
253
  };
236
- }, { deep: !0, debounce: 1e3 }), g(() => t.value.reactive.axesSettings, (e) => {
254
+ }, { deep: !0, debounce: 1e3 }), h(() => t.value.reactive.axesSettings, (e) => {
237
255
  l.value = {
238
256
  ...l.value,
239
- axesSettings: y(e)
257
+ axesSettings: w(e)
240
258
  };
241
- }, { deep: !0, debounce: 1e3 }), g(() => t.value.reactive.layersSettings, (e) => {
259
+ }, { deep: !0, debounce: 1e3 }), h(() => t.value.reactive.layersSettings, (e) => {
242
260
  l.value = {
243
261
  ...l.value,
244
- layersSettings: y(e)
262
+ layersSettings: w(e)
245
263
  };
246
- }, { deep: !0, debounce: 1e3 }), g(() => t.value.reactive.dataBindAes, (e) => {
264
+ }, { deep: !0, debounce: 1e3 }), h(() => t.value.reactive.dataBindAes, (e) => {
247
265
  l.value = {
248
266
  ...l.value,
249
- dataBindAes: y(e)
267
+ dataBindAes: w(e)
250
268
  };
251
- }, { deep: !0, debounce: 1e3 }), g([
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 }), c(() => l.value.currentTab, (e) => {
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
- }), c(() => {
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 te() {
290
+ function ne() {
271
291
  var e;
272
- Fe(
292
+ Ee(
273
293
  new Blob([
274
- ((e = r.value) == null ? void 0 : e.export()) ?? ""
294
+ ((e = i.value) == null ? void 0 : e.export()) ?? ""
275
295
  ]),
276
296
  "chart.svg"
277
297
  );
278
298
  }
279
- function ae(e) {
299
+ function oe(e) {
280
300
  l.value = {
281
301
  ...l.value,
282
302
  title: e
283
303
  };
284
304
  }
285
- function le(e) {
305
+ function ue(e) {
286
306
  var a;
287
- t.value.reactive.dendroSelectedNodeId = e, (a = r.value) == null || a.updateChartState("selectedNode", e);
307
+ t.value.reactive.dendroSelectedNodeId = e, (a = i.value) == null || a.updateChartState("selectedNode", e);
288
308
  }
289
- const G = de(), ne = m(() => !!G.annotationsSlot), oe = m(() => !!G.settingsSlot), re = m(() => !!G.logSlot);
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 D(), ve("div", Oe, [
293
- pe("div", Pe, [
294
- N(he, {
295
- "graph-status": x.value,
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: M.value,
298
- "chart-ref": r.value,
299
- "error-info": f.value,
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: ae,
305
- onDendroNodeSelect: le,
306
- onDendroTooltipBtnClick: a[0] || (a[0] = (i) => e.$emit("tooltip-btn-click", i))
324
+ onGraphTitleUpdate: oe,
325
+ onDendroNodeSelect: ue,
326
+ onDendroTooltipBtnClick: a[0] || (a[0] = (r) => e.$emit("tooltip-btn-click", r))
307
327
  }, {
308
- default: O(() => [
309
- P(e.$slots, "titleLineSlot")
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
- B.value || b.value ? (D(), F(xe, {
333
+ I.value || C.value ? (b(), x(Be, {
314
334
  key: 0,
315
- graphStatus: b.value ? "running" : "loading",
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"])) : S("", !0),
322
- N(be, { id: "graph-settings-modal" }, {
323
- default: O(() => [
324
- s(t).reactive.currentTab && !((B.value || b.value) && s(De)(s(t).reactive.currentTab)) ? (D(), F(Se, {
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] = (i) => s(t).reactive.currentTab = null)
346
+ onClose: a[1] || (a[1] = (r) => c(t).reactive.currentTab = null)
327
347
  }, {
328
- default: O(() => [
329
- (D(), F(me(Q.value.value), null, {
330
- default: O(() => [
331
- s(t).reactive.currentTab === "annotations" ? P(e.$slots, "annotationsSlot", { key: 0 }) : S("", !0),
332
- s(t).reactive.currentTab === "settings" ? P(e.$slots, "settingsSlot", { key: 1 }) : S("", !0),
333
- s(t).reactive.currentTab === "log" ? P(e.$slots, "logSlot", { key: 2 }) : S("", !0)
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
- })) : S("", !0)
359
+ })) : g("", !0)
340
360
  ]),
341
361
  _: 3
342
362
  })
343
363
  ]),
344
- N(ye, {
345
- modelValue: s(t).reactive.currentTab,
346
- "onUpdate:modelValue": a[2] || (a[2] = (i) => s(t).reactive.currentTab = i),
347
- "chart-type": s(t).reactive.chartType,
348
- "graph-status": x.value,
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: ne.value,
351
- hasSettingsSlot: oe.value,
352
- hasLogSlot: re.value,
353
- initialLoading: B.value || b.value,
354
- onExport: te,
355
- onDelete: a[3] || (a[3] = (i) => e.$emit("delete-this-graph"))
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 = f.value) == null ? void 0 : o.type) === "unknownError" ? (D(), F(Te, {
377
+ ((o = S.value) == null ? void 0 : o.type) === "unknownError" ? (b(), x(De, {
358
378
  key: 0,
359
- errorInfo: f.value
360
- }, null, 8, ["errorInfo"])) : S("", !0)
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
- We as default
390
+ _e as default
367
391
  };
368
392
  //# sourceMappingURL=index.vue.js.map