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