@astrato-io/visualizations 0.11.0 → 0.12.0

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 (135) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +129 -4
  3. package/VISUALIZATION_DEFINITIONS.md +3 -1
  4. package/chunks/{Button-CPG4WX8X.js → Button-CQdoKSXX.js} +3 -3
  5. package/chunks/{CircularProgress-PSLW8HmD.js → CircularProgress-DpT1lwWw.js} +18 -18
  6. package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
  7. package/chunks/{LinearProgress-KQ2EQlGL.js → LinearProgress-B7S0Q26A.js} +8 -8
  8. package/chunks/{MenuOption-B-6K7kks.js → MenuOption-DpKFJxmo.js} +133 -133
  9. package/chunks/{Title-BmvwZYkh.js → Title-m5damhc0.js} +10 -10
  10. package/chunks/{_createAggregator-CFmH6gUN.js → _createAggregator-BA8_iU9q.js} +7 -7
  11. package/chunks/{app-filter-bar.compiler-BY5-T16I.js → app-filter-bar.compiler--T4Qz3Wu.js} +3 -3
  12. package/chunks/{bar-layout-BNou0dZF.js → bar-layout-OFhxn2Go.js} +2 -2
  13. package/chunks/{bar.compiler-BkhO7sDd.js → bar.compiler-hWZBYYvV.js} +62 -62
  14. package/chunks/{builder-CNjuqD2z.js → builder-7w_bgV_h.js} +31 -31
  15. package/chunks/{coloring-BOiP0rmn.js → coloring-Cd6p0GQJ.js} +88 -83
  16. package/chunks/{createSimplePaletteValueFilter-BkgQ7MFE.js → createSimplePaletteValueFilter-CiJT8s1s.js} +55 -55
  17. package/chunks/defaults-CMFqXvaJ.js +3 -0
  18. package/chunks/{definitions-AS9GcavE.js → definitions-DTauTjIX.js} +412 -406
  19. package/chunks/{escobar-cQ1eQ64G.js → escobar-CMvphKSK.js} +4787 -4717
  20. package/chunks/{extend-preset-BlCbcXKR.js → extend-preset-BpXttHFk.js} +371 -372
  21. package/chunks/{filter.compiler-CI7dDNM1.js → filter.compiler-DOGFweJz.js} +4 -4
  22. package/chunks/{filtering-Dwi7hDPZ.js → filtering-NOnDcGbo.js} +183 -183
  23. package/chunks/handlers-CyYFSfhM.js +15393 -0
  24. package/chunks/{icon-picker-styles-CBlxEu3s.js → icon-picker-styles-DuSERhBU.js} +2 -2
  25. package/chunks/{isEqual-BdHo6wqq.js → isEqual-4f8yUUtC.js} +1 -1
  26. package/chunks/{isFocusVisible-C1nlVUwL.js → isFocusVisible-Czm70MGc.js} +1 -1
  27. package/chunks/line.compiler-B-4H55_T.js +203 -0
  28. package/chunks/{logger-Bc-DqDM_.js → logger-Cioob-QV.js} +71 -70
  29. package/chunks/{map.compiler-CRO6XpdI.js → map.compiler-Cv5V6EhF.js} +13 -13
  30. package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
  31. package/chunks/{measure-format-default-B6ghxih7.js → measure-format-default-B_kuGSzi.js} +7 -3
  32. package/chunks/{metadata-CtkvZEhS.js → metadata-dGSe5UWy.js} +5 -5
  33. package/chunks/{number.compiler-kV4lobCZ.js → number.compiler-D7nMcEMv.js} +8 -8
  34. package/chunks/{operations-COl9wgqi.js → operations-CgfehCad.js} +11462 -11223
  35. package/chunks/{range-CMJ5yc5Z.js → range-Dmwp9kVB.js} +2 -2
  36. package/chunks/{react-dom-BjsCbYHq.js → react-dom-CfuL-m78.js} +24 -24
  37. package/chunks/{render-wrappers-DFHi3Wkr.js → render-wrappers--g-zPFBW.js} +1 -1
  38. package/chunks/{requirements-C5YLmHKe.js → requirements-DHayNJ2C.js} +83 -83
  39. package/chunks/{shared-DyqxOie0.js → shared-DoEN9nNM.js} +282 -277
  40. package/chunks/standalone-B3hRGgYi.js +773 -0
  41. package/chunks/{standalone-BYK2U0Vd.js → standalone-BPNXgFft.js} +380 -380
  42. package/chunks/standalone-BPTT8XEu.js +424 -0
  43. package/chunks/standalone-BgAeHROc.js +2 -0
  44. package/chunks/{standalone-I5kRIsp8.js → standalone-BkQxag7M.js} +81 -81
  45. package/chunks/{standalone-DYVYccmY.js → standalone-Bxa3x6dg.js} +913 -913
  46. package/chunks/standalone-C0If-V6O.js +773 -0
  47. package/chunks/standalone-C1TOyflX.js +287 -0
  48. package/chunks/{standalone-DaNxWIKn.js → standalone-CE5PwJN0.js} +21 -21
  49. package/chunks/{standalone-K2OvRAQM.js → standalone-CG7IFN6n.js} +121 -121
  50. package/chunks/{standalone-Db_HNuWx.js → standalone-CKlgGu80.js} +44 -44
  51. package/chunks/standalone-CNf-oA2U.js +355 -0
  52. package/chunks/{standalone-9jrQ3zJT.js → standalone-CXPdWFlw.js} +10 -10
  53. package/chunks/{standalone-c4CPN6ug.js → standalone-Cf0_5tbu.js} +5783 -5785
  54. package/chunks/{standalone-Bp4G3MDx.js → standalone-DMi4-Vp3.js} +118 -118
  55. package/chunks/{standalone-BrjtMIdd.js → standalone-DTEX67C8.js} +108 -108
  56. package/chunks/{standalone-iOnJhCvA.js → standalone-DU46-kYv.js} +181 -181
  57. package/chunks/standalone-Dbn3jSH6.js +690 -0
  58. package/chunks/{standalone-CS5VGoja.js → standalone-DdcAL_k_.js} +833 -837
  59. package/chunks/standalone-DwCIA0UG.js +1057 -0
  60. package/chunks/standalone-Dz13tl3P.js +357 -0
  61. package/chunks/{standalone-CIjNYyya.js → standalone-H9GFzFk_.js} +937 -938
  62. package/chunks/{standalone-ChfEHb28.js → standalone-MduR0qre.js} +1279 -1279
  63. package/chunks/standalone-ejTz66P3.js +2 -0
  64. package/chunks/{standalone-D9k5SCd8.js → standalone-keB-0wK3.js} +189 -189
  65. package/chunks/{standalone-Bsfz5vnJ.js → standalone-nnkuQd0K.js} +35 -35
  66. package/chunks/standalone-vGGR6Vcn.js +6 -0
  67. package/chunks/{table.compiler-CMH_dtYs.js → table.compiler-mS4UvhLT.js} +12 -12
  68. package/chunks/theme-MYp6Rj1J.js +232 -0
  69. package/chunks/{useFieldName-BfxBzhhH.js → useFieldName-AdSak4Ch.js} +1 -1
  70. package/chunks/{utils-BdJrEeIQ.js → utils-CUKgR7it.js} +3265 -3133
  71. package/chunks/{view-Q-_XIrWE.js → view-BeYwpcVD.js} +478 -478
  72. package/chunks/{visualization-filters-BwS0xUqs.js → visualization-filters-B9qik5_K.js} +2706 -2384
  73. package/chunks/{with-html-element-D_ooGNWI.js → with-html-element-1GSeLT59.js} +3888 -3870
  74. package/definitions.js +2 -2
  75. package/docs/operations/astrato-app-filter-bar.md +1 -1
  76. package/docs/operations/bar.md +115 -32
  77. package/docs/operations/combo.md +50 -17
  78. package/docs/operations/date-picker.md +4 -4
  79. package/docs/operations/distribution-gauge.md +18 -16
  80. package/docs/operations/dot.md +107 -24
  81. package/docs/operations/filter.md +10 -8
  82. package/docs/operations/gauge.md +20 -18
  83. package/docs/operations/heatMap.md +73 -21
  84. package/docs/operations/histogram.md +45 -12
  85. package/docs/operations/iframe.md +1 -1
  86. package/docs/operations/image.md +1 -1
  87. package/docs/operations/index.md +11 -11
  88. package/docs/operations/line.md +57 -24
  89. package/docs/operations/map.md +16 -16
  90. package/docs/operations/number.md +10 -9
  91. package/docs/operations/pie.md +23 -21
  92. package/docs/operations/radar.md +13 -11
  93. package/docs/operations/sankey.md +19 -17
  94. package/docs/operations/scatter.md +111 -28
  95. package/docs/operations/shape.md +5 -5
  96. package/docs/operations/simpleTextObject.md +4 -4
  97. package/docs/operations/slider.md +1 -1
  98. package/docs/operations/table.md +27 -25
  99. package/docs/operations/tree.md +5 -3
  100. package/docs/operations/treemap.md +70 -18
  101. package/docs/operations/waterfall.md +40 -7
  102. package/docs/operations/word-cloud.md +69 -17
  103. package/getters.js +2 -2
  104. package/index.js +474 -525
  105. package/metadata.js +2 -2
  106. package/operations.js +24 -17
  107. package/package.json +71 -72
  108. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1 -1
  109. package/src/definitions/model/definitions/schema-registry.d.ts +13 -12
  110. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -2
  111. package/src/definitions/model/definitions/schemas/common.schema.d.ts +5 -4
  112. package/src/definitions/model/definitions/schemas/line.schema.d.ts +3 -2
  113. package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
  115. package/src/index.d.ts +1 -1
  116. package/src/operations/index.d.ts +11 -1
  117. package/src/types.d.ts +166 -1
  118. package/chunks/FieldTypeIcon-5k2bkqd0.js +0 -22
  119. package/chunks/category-axis-D1OVyMrr.js +0 -20
  120. package/chunks/color-rules-DYJL4fIW.js +0 -15
  121. package/chunks/color-settings-DJFoFTip.js +0 -5
  122. package/chunks/defaults-B5_8S-J-.js +0 -3
  123. package/chunks/handlers-C63NVo7i.js +0 -15433
  124. package/chunks/line.compiler-DCv3h42f.js +0 -198
  125. package/chunks/standalone-06i1wmIX.js +0 -6
  126. package/chunks/standalone-B6zUvxNQ.js +0 -357
  127. package/chunks/standalone-Be5APcVv.js +0 -762
  128. package/chunks/standalone-BuXpKMnc.js +0 -2
  129. package/chunks/standalone-CUGt2FUF.js +0 -2
  130. package/chunks/standalone-CnF2OYLQ.js +0 -355
  131. package/chunks/standalone-CznEEiq3.js +0 -422
  132. package/chunks/standalone-DcuE8KBa.js +0 -287
  133. package/chunks/standalone-pCrzBiTy.js +0 -773
  134. package/chunks/standalone-qrZaimgC.js +0 -689
  135. package/chunks/standalone-yqDJ8h3K.js +0 -1012
@@ -1,10 +1,10 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Cc as t, Ec as n, Hc as r, Na as i, Pi as a, Uo as o, cr as s, fa as c, go as l, js as u, ln as d, mo as f, ri as p, yl as m } from "./visualization-filters-BwS0xUqs.js";
3
- import { Br as h, I as g, Mt as _, P as v, li as y, s as ee } from "./utils-BdJrEeIQ.js";
4
- import "./logger-Bc-DqDM_.js";
5
- import { An as b, Cn as x, L as S, Lt as C, On as w, R as T, Rt as E, Sn as D, Tn as O, _ as k, _n as te, bt as ne, hn as re, i as ie, jn as A, kn as j, mn as ae, n as oe, nn as se, on as M, tn as ce, wn as N } from "./escobar-cQ1eQ64G.js";
6
- import { _ as P } from "./MenuOption-B-6K7kks.js";
7
- import { i as le, o as ue, t as de } from "./coloring-BOiP0rmn.js";
2
+ import { $c as t, Sa as n, Ua as r, Ui as i, Vo as a, Xc as o, _n as s, di as c, gr as l, hl as u, ic as d, ms as f, ql as p, zo as m } from "./visualization-filters-B9qik5_K.js";
3
+ import { I as h, Mt as g, P as _, Ur as v, fi as y, s as b } from "./utils-CUKgR7it.js";
4
+ import "./logger-Cioob-QV.js";
5
+ import { An as x, Cn as S, En as C, F as w, Ft as T, Mn as E, P as D, Pt as ee, Sn as O, Tn as k, _ as te, _t as ne, i as re, jn as A, kn as j, mn as ie, n as ae, nn as oe, rn as se, sn as M, wn as N, xn as ce } from "./escobar-CMvphKSK.js";
6
+ import { _ as P } from "./MenuOption-DpKFJxmo.js";
7
+ import { i as le, o as ue, t as de } from "./coloring-Cd6p0GQJ.js";
8
8
  import { f as F, r as I, t as fe, u as pe } from "./src-D9XogOrc.js";
9
9
  var me = /* @__PURE__ */ e(y()), L = {
10
10
  sankey: "key-sankey",
@@ -24,14 +24,14 @@ var me = /* @__PURE__ */ e(y()), L = {
24
24
  dimensionIds = [];
25
25
  dimensionColoring = {};
26
26
  constructor(e, t, n) {
27
- super(e, t, n), this.dimensionIds = [], this.vSpec.dimensions.filter((e) => p(e)).forEach((e) => {
28
- let t = r(e.dataItem);
27
+ super(e, t, n), this.dimensionIds = [], this.vSpec.dimensions.filter((e) => c(e)).forEach((e) => {
28
+ let t = u(e.dataItem);
29
29
  this.dimensionColoring[t] = e.coloring, this.dimensionIds.push(t);
30
30
  });
31
31
  }
32
- getColorByScale(e, t = {}) {
33
- let { ref: r } = t, i = this.getDatumFromProp(e, r, "color"), a = i?.value, o = e.resources.scale(i.source?.field ?? i.label), s = i.source?.field, c = s ? this.dimensionColoring[s] : void 0;
34
- if (c?.type === n.Categorical && c.persistentColors === !0) {
32
+ getColorByScale(e, n = {}) {
33
+ let { ref: r } = n, i = this.getDatumFromProp(e, r, "color"), a = i?.value, o = e.resources.scale(i.source?.field ?? i.label), s = i.source?.field, c = s ? this.dimensionColoring[s] : void 0;
34
+ if (c?.type === t.Categorical && c.persistentColors === !0) {
35
35
  let e = o.range();
36
36
  return e[this.getHash(a) % e.length];
37
37
  }
@@ -71,84 +71,84 @@ var me = /* @__PURE__ */ e(y()), L = {
71
71
  }
72
72
  }, ge = (e, t) => e.data.value === t.data.value ? 0 : e.data.value < t.data.value ? 1 : -1, _e = (e, t) => e.data.value === t.data.value ? 0 : e.data.value < t.data.value ? -1 : 1, ve = (e, t) => e.data.flow.value === t.data.flow.value ? 0 : e.data.flow.value < t.data.flow.value ? 1 : -1, ye = (e, t) => e.data.flow.value === t.data.flow.value ? 0 : e.data.flow.value < t.data.flow.value ? -1 : 1;
73
73
  function be(e, t) {
74
- let n = e.dimensions.filter((e) => p(e)), i = (e.querySettings?.sortingOrder ?? []).map((e) => ({
75
- id: r(e.dataItem),
74
+ let n = e.dimensions.filter((e) => c(e)), r = (e.querySettings?.sortingOrder ?? []).map((e) => ({
75
+ id: u(e.dataItem),
76
76
  direction: e.sortDirection,
77
77
  type: e.fieldType
78
- })), a = i.find((e) => e.type === "measure"), o = a ? i.indexOf(a) : -1;
78
+ })), i = r.find((e) => e.type === "measure"), a = i ? r.indexOf(i) : -1;
79
79
  return n.map((n) => {
80
- let c = r(n.dataItem), l;
80
+ let o = u(n.dataItem), s;
81
81
  if (e.sankeySettings.applyDataSortOnNodeColumns) {
82
- let e = i.find((e) => e.id === c), t = e ? i.indexOf(e) : -1;
83
- e && t < o ? l = e.direction === "desc" ? ge : _e : a && (l = a.direction === "desc" ? ve : ye);
82
+ let e = r.find((e) => e.id === o), t = e ? r.indexOf(e) : -1;
83
+ e && t < a ? s = e.direction === "desc" ? ge : _e : i && (s = i.direction === "desc" ? ve : ye);
84
84
  }
85
85
  return {
86
- id: c,
87
- sort: l,
88
- isGrouped: s(e.dimensions, e.enableAlternate, t)
86
+ id: o,
87
+ sort: s,
88
+ isGrouped: l(e.dimensions, e.enableAlternate, t)
89
89
  };
90
90
  });
91
91
  }
92
92
  var xe = (e, t) => {
93
- let n = e.sankeySettings.linkColoring?.opacity ?? .3, r = t.valuePickerMode ?? !1, a = r ? t.valuePickerTargetDataItemId : "";
93
+ let n = e.sankeySettings.linkColoring?.opacity ?? .3, i = t.valuePickerMode ?? !1, a = i ? t.valuePickerTargetDataItemId : "";
94
94
  return {
95
95
  trigger: [{
96
- on: j.Tap,
97
- action: w.Toggle,
96
+ on: x.Tap,
97
+ action: j.Toggle,
98
98
  globalPropagation: "stop",
99
99
  data: ["", "linkTarget"],
100
- contexts: [N.Selection]
100
+ contexts: [k.Selection]
101
101
  }, {
102
- on: j.Over,
103
- action: w.Set,
102
+ on: x.Over,
103
+ action: j.Set,
104
104
  globalPropagation: "stop",
105
105
  data: ["", "linkTarget"],
106
- contexts: [N.Highlight]
106
+ contexts: [k.Highlight]
107
107
  }],
108
108
  consume: [
109
109
  {
110
- context: N.Selection,
110
+ context: k.Selection,
111
111
  data: ["", "linkTarget"],
112
112
  filter: (e) => e.data?.type?.value === "link",
113
- mode: b.Or,
113
+ mode: A.Or,
114
114
  style: { inactive: { opacity: n * .25 } }
115
115
  },
116
116
  {
117
- context: N.Selection,
117
+ context: k.Selection,
118
118
  data: [""],
119
119
  filter: (e) => e.data?.type?.value === "node",
120
- mode: b.Or,
120
+ mode: A.Or,
121
121
  style: { inactive: { fill: (e) => {
122
122
  let t = e, n = !t.fill || t.fill === "none" || t.fill === "transparent";
123
123
  switch (!0) {
124
124
  case n:
125
- case r && t.data.source.field === a: return t.fill;
126
- default: return ae(re(t.fill), .25);
125
+ case i && t.data.source.field === a: return t.fill;
126
+ default: return ce(O(t.fill), .25);
127
127
  }
128
128
  } } }
129
129
  },
130
130
  {
131
- context: N.Highlight,
131
+ context: k.Highlight,
132
132
  data: [""],
133
133
  filter: (e) => e.data?.type?.value === "node",
134
- mode: b.Or,
134
+ mode: A.Or,
135
135
  style: { active: {
136
- strokeWidth: (e) => r && e.data.source.field !== a ? 0 : 1,
137
- stroke: i.mainDarkNavy
136
+ strokeWidth: (e) => i && e.data.source.field !== a ? 0 : 1,
137
+ stroke: r.mainDarkNavy
138
138
  } }
139
139
  }
140
140
  ]
141
141
  };
142
- }, Se = (e, t, n, i, a, o) => {
143
- if (!o) throw Error("Missing Sankey visualization properties");
144
- let s = e.sankeySettings.nodeLabels.placements;
145
- if (!s) throw Error("Missing Sankey node label placements");
146
- let c = e.dimensions.filter((e) => p(e)), l = new he(e, t, a?.[0]?.itemsNotAffectedByFiltering), d = e.sankeySettings.linkColoring?.opacity ?? .3, f = e.sankeySettings.linkColoring, m = c.map((e) => r(e.dataItem)), h = m.map((e, t) => `dim${t}`), g = e.sankeySettings.showNullNodes ? (e, t) => h[m.indexOf(t) + 1] : (e, t) => {
142
+ }, Se = (e, t, n, r, i, a) => {
143
+ if (!a) throw Error("Missing Sankey visualization properties");
144
+ let o = e.sankeySettings.nodeLabels.placements;
145
+ if (!o) throw Error("Missing Sankey node label placements");
146
+ let s = e.dimensions.filter((e) => c(e)), l = new he(e, t, i?.[0]?.itemsNotAffectedByFiltering), f = e.sankeySettings.linkColoring?.opacity ?? .3, p = e.sankeySettings.linkColoring, m = s.map((e) => u(e.dataItem)), h = m.map((e, t) => `dim${t}`), g = e.sankeySettings.showNullNodes ? (e, t) => h[m.indexOf(t) + 1] : (e, t) => {
147
147
  let n = m.indexOf(t), r = m.slice(n + 1).find((t) => e[h[m.indexOf(t)]].value !== null), i = r === void 0 ? -1 : m.indexOf(r);
148
148
  return h[i];
149
149
  }, _ = {
150
150
  key: L.sankey,
151
- type: A.Sankey,
151
+ type: E.Sankey,
152
152
  data: { collection: "coll" },
153
153
  settings: {
154
154
  showNullNodes: e.sankeySettings.showNullNodes,
@@ -157,13 +157,13 @@ var xe = (e, t) => {
157
157
  linkMargin: e.sankeySettings.linkMargin,
158
158
  showColumnHeaderLabels: e.sankeySettings.showColumnHeaderLabels,
159
159
  linkFillStrategy: e.sankeySettings.linkColoring.type,
160
- ...u({ nodeFillOverride: e.sankeySettings.nodeColoring.override ? e.sankeySettings.nodeColoring.color || t.colors.brandColors[0] : void 0 }),
161
- ...u({ showNodeDimensionLabel: e.sankeySettings.nodeLabels.enabled && e.sankeySettings.nodeLabels.showDimensionValue }),
162
- ...u({ showNodeFlowLabel: e.sankeySettings.nodeLabels.enabled && e.sankeySettings.nodeLabels.showFlowValue }),
160
+ ...d({ nodeFillOverride: e.sankeySettings.nodeColoring.override ? e.sankeySettings.nodeColoring.color || t.colors.brandColors[0] : void 0 }),
161
+ ...d({ showNodeDimensionLabel: e.sankeySettings.nodeLabels.enabled && e.sankeySettings.nodeLabels.showDimensionValue }),
162
+ ...d({ showNodeFlowLabel: e.sankeySettings.nodeLabels.enabled && e.sankeySettings.nodeLabels.showFlowValue }),
163
163
  showNodeLabelBackdrop: e.sankeySettings.nodeLabels.showBackdrop !== !1,
164
- ...u({ nodeLabelBackdropColor: e.sankeySettings.nodeLabels.backdropColor }),
165
- columnFields: be(e, o.isPrintMode ?? !1),
166
- nodeLabelPlacements: s.filter((e) => e.enabled).map((e) => e.placement),
164
+ ...d({ nodeLabelBackdropColor: e.sankeySettings.nodeLabels.backdropColor }),
165
+ columnFields: be(e, a.isPrintMode ?? !1),
166
+ nodeLabelPlacements: o.filter((e) => e.enabled).map((e) => e.placement),
167
167
  node: {
168
168
  id: (e) => {
169
169
  let t = e.datum;
@@ -188,11 +188,11 @@ var xe = (e, t) => {
188
188
  },
189
189
  value: { ref: "flow" },
190
190
  dataFill: l.getLinkColorDefinition(),
191
- fill: () => f.override ? f.color || t.colors.brandColors[0] : void 0,
192
- opacity: d
191
+ fill: () => p.override ? p.color || t.colors.brandColors[0] : void 0,
192
+ opacity: f
193
193
  }
194
194
  },
195
- brush: o.disable?.brushing === !0 ? void 0 : xe(e, o),
195
+ brush: a.disable?.brushing === !0 ? void 0 : xe(e, a),
196
196
  animations: {
197
197
  presetId: "simple-opacity",
198
198
  enabled: !0
@@ -203,47 +203,47 @@ var xe = (e, t) => {
203
203
  components: [...n.components, _]
204
204
  };
205
205
  }, Ce = (e, t, n) => {
206
- let i = e.measures.filter((e) => p(e)), a = e.dimensions.filter((e) => p(e)), o = r(i[0].dataItem), s = a.map((e) => r(e.dataItem)), c = s.map((e) => ({
206
+ let r = e.measures.filter((e) => c(e)), i = e.dimensions.filter((e) => c(e)), a = u(r[0].dataItem), o = i.map((e) => u(e.dataItem)), s = o.map((e) => ({
207
207
  field: e,
208
208
  trackBy: (e) => e,
209
209
  reduce: "first",
210
210
  props: {
211
211
  [R.NodeFlow]: {
212
- field: o,
212
+ field: a,
213
213
  reduce: "sum"
214
214
  },
215
- [o]: {
216
- field: o,
215
+ [a]: {
216
+ field: a,
217
217
  reduce: "sum"
218
218
  },
219
219
  [R.NodeColor]: { field: e },
220
220
  type: "node"
221
221
  }
222
- })), l = s.slice(0, s.length - 1).map((e, t) => {
222
+ })), l = o.slice(0, o.length - 1).map((e, t) => {
223
223
  let n = {
224
- field: s[t],
224
+ field: o[t],
225
225
  props: {
226
- flow: { field: o },
227
- [o]: { field: o },
226
+ flow: { field: a },
227
+ [a]: { field: a },
228
228
  type: "link"
229
229
  }
230
230
  };
231
- return s.forEach((e, t) => {
231
+ return o.forEach((e, t) => {
232
232
  n.field !== e && (n.props[`dim${t}`] = { field: e });
233
233
  }), n;
234
- }), u = [{
234
+ }), d = [{
235
235
  key: "coll",
236
236
  data: {
237
- extract: [...c, ...l],
237
+ extract: [...s, ...l],
238
238
  filter: e.sankeySettings.showNullNodes ? void 0 : (e) => e.value !== null
239
239
  }
240
240
  }];
241
241
  return {
242
242
  ...n,
243
- collections: u,
243
+ collections: d,
244
244
  formatters: { flow: {
245
245
  type: "excel-format",
246
- format: i[0].formatter?.format
246
+ format: r[0].formatter?.format
247
247
  } }
248
248
  };
249
249
  }, B = (e, t) => ({
@@ -265,7 +265,7 @@ var xe = (e, t) => {
265
265
  }]
266
266
  }
267
267
  }
268
- }), V = 64, we = new P(D.fontLight), Te = new P(D.fontDark), H = (e, t, n) => {
268
+ }), V = 64, we = new P(S.fontLight), Te = new P(S.fontDark), H = (e, t, n) => {
269
269
  let r = new P(n.fonts.general.color);
270
270
  return {
271
271
  component: L.sankey,
@@ -300,12 +300,12 @@ var xe = (e, t) => {
300
300
  }
301
301
  }
302
302
  };
303
- }, Ee = (e, t, n, i, a, c, l, u) => {
304
- if (!c) throw Error("Missing Sankey visualization properties");
305
- let f = [];
306
- u && f.push(se(L.columnLabels, L.columnLabels, u));
303
+ }, Ee = (e, t, n, r, i, a, o, d) => {
304
+ if (!a) throw Error("Missing Sankey visualization properties");
305
+ let m = [];
306
+ d && m.push(se(L.columnLabels, L.columnLabels, d));
307
307
  let h = {
308
- type: A.Labels,
308
+ type: E.Labels,
309
309
  key: L.columnLabels,
310
310
  layout: { displayOrder: 2 },
311
311
  settings: { sources: [
@@ -318,32 +318,32 @@ var xe = (e, t) => {
318
318
  presetId: "simple-opacity",
319
319
  enabled: !0
320
320
  }
321
- }, g = e?.measures.find(p), _ = g ? r(g.dataItem) : void 0;
322
- u && g && e.measures.length > 1 && f.push(ce(A.Text, u));
321
+ }, g = e?.measures.find(c), _ = g ? u(g.dataItem) : void 0;
322
+ d && g && e.measures.length > 1 && m.push(oe(E.Text, d));
323
323
  let v;
324
324
  if (g && e.measures.length > 1) {
325
- let n = d(g) || g.label || g.dataItem?.name || "Measure";
325
+ let n = s(g) || g.label || g.dataItem?.name || "Measure";
326
326
  v = {
327
- type: A.Text,
327
+ type: E.Text,
328
328
  key: `text-${_}`,
329
- dataItemType: m.Measure,
329
+ dataItemType: p.Measure,
330
330
  dataItemRole: g.role,
331
- text: s(e.measures, e.enableAlternate, c.isPrintMode) ? M(n) : n,
331
+ text: l(e.measures, e.enableAlternate, a.isPrintMode) ? M(n) : n,
332
332
  layout: {
333
- dock: o.Bottom,
333
+ dock: f.Bottom,
334
334
  color: "red"
335
335
  },
336
336
  style: { text: {
337
337
  fontFamily: t.fonts.general.fontFamily,
338
- fontSize: `${D.fieldTitle.fontSize}px`,
338
+ fontSize: `${S.fieldTitle.fontSize}px`,
339
339
  fontStyle: "normal",
340
340
  fill: t.fonts.general.color
341
341
  } },
342
- anchor: o.Center
342
+ anchor: f.Center
343
343
  };
344
344
  }
345
345
  let y = {
346
- type: A.Labels,
346
+ type: E.Labels,
347
347
  key: L.labels,
348
348
  layout: { displayOrder: 2 },
349
349
  settings: { sources: [
@@ -352,16 +352,16 @@ var xe = (e, t) => {
352
352
  H(`.${z.NodeLabelRight}`, 1, t)
353
353
  ] },
354
354
  style: { label: "$label" },
355
- brush: c.disable?.brushing === !0 ? void 0 : {
355
+ brush: a.disable?.brushing === !0 ? void 0 : {
356
356
  trigger: [{
357
- on: j.Tap,
358
- action: w.Toggle,
357
+ on: x.Tap,
358
+ action: j.Toggle,
359
359
  globalPropagation: "stop",
360
360
  data: [""],
361
- contexts: [N.Selection]
361
+ contexts: [k.Selection]
362
362
  }],
363
363
  consume: [{
364
- context: N.Selection,
364
+ context: k.Selection,
365
365
  data: [""],
366
366
  style: { inactive: { opacity: .3 } }
367
367
  }]
@@ -379,55 +379,55 @@ var xe = (e, t) => {
379
379
  ...v ? [v] : [],
380
380
  y
381
381
  ],
382
- interactions: n.interactions ? [...n.interactions, ...f] : [...f]
382
+ interactions: n.interactions ? [...n.interactions, ...m] : [...m]
383
383
  };
384
- }, De = (e, t, i, o, s) => {
385
- if (i.type !== n.PerEachDimension) {
386
- let e = i.color || t?.colors?.brandColors?.[0] || "#aaa";
384
+ }, De = (e, n, r, a, o) => {
385
+ if (r.type !== t.PerEachDimension) {
386
+ let e = r.color || n?.colors?.brandColors?.[0] || "#aaa";
387
387
  return {
388
- type: O.CategoricalColor,
388
+ type: C.CategoricalColor,
389
389
  data: [],
390
390
  range: [e],
391
391
  unknown: e
392
392
  };
393
393
  }
394
- let c = o.coloring || {};
395
- if (c.type !== n.Categorical) {
396
- let n = s[e.dimensions.indexOf(o) % s.length], r = c.color || n || t?.colors?.brandColors?.[0] || "#aaa";
394
+ let s = a.coloring || {};
395
+ if (s.type !== t.Categorical) {
396
+ let t = o[e.dimensions.indexOf(a) % o.length], r = s.color || t || n?.colors?.brandColors?.[0] || "#aaa";
397
397
  return {
398
- type: O.CategoricalColor,
398
+ type: C.CategoricalColor,
399
399
  data: [],
400
400
  range: [r],
401
401
  unknown: r
402
402
  };
403
403
  }
404
- return E(e, t, r(o.dataItem), {
405
- customPalette: c.customPalette ?? a.customPalette,
406
- palette: c.palette
404
+ return T(e, n, u(a.dataItem), {
405
+ customPalette: s.customPalette ?? i.customPalette,
406
+ palette: s.palette
407
407
  });
408
408
  }, Oe = (e, t, n) => {
409
- let i = e.dimensions.filter((e) => p(e));
410
- if (!i[0]) return n;
411
- let o = e.coloring;
412
- if (!o) throw Error("Missing Sankey coloring settings");
413
- let s = {}, c = C({
414
- palette: o.palette,
415
- customPalette: o.customPalette ?? a.customPalette
409
+ let r = e.dimensions.filter((e) => c(e));
410
+ if (!r[0]) return n;
411
+ let a = e.coloring;
412
+ if (!a) throw Error("Missing Sankey coloring settings");
413
+ let o = {}, s = ee({
414
+ palette: a.palette,
415
+ customPalette: a.customPalette ?? i.customPalette
416
416
  }, t);
417
- return i.forEach((n) => {
418
- let i = r(n.dataItem);
419
- s[i] = De(e, t, o, n, c);
417
+ return r.forEach((n) => {
418
+ let r = u(n.dataItem);
419
+ o[r] = De(e, t, a, n, s);
420
420
  }), {
421
421
  ...n,
422
- scales: s
422
+ scales: o
423
423
  };
424
424
  }, ke = (e, t, n) => {
425
- let r = e.dimensions.filter((e) => p(e)), i = e.measures.filter((e) => p(e));
425
+ let r = e.dimensions.filter((e) => c(e)), i = e.measures.filter((e) => c(e));
426
426
  if (!r[0] || !i[0]) return n;
427
427
  let a = {
428
428
  "$font-family": t.fonts.general.fontFamily,
429
429
  "$font-color": t.fonts.general.color,
430
- "$font-size": `${te(e.sankeySettings?.nodeLabels?.fontSize)}px`,
430
+ "$font-size": `${ie(e.sankeySettings?.nodeLabels?.fontSize)}px`,
431
431
  $label: {
432
432
  fontSize: "$font-size",
433
433
  fontFamily: "$font-family",
@@ -436,7 +436,7 @@ var xe = (e, t) => {
436
436
  },
437
437
  $title: {
438
438
  "@extend": "$label",
439
- fontSize: `${D.fieldTitle.fontSize}px`,
439
+ fontSize: `${S.fieldTitle.fontSize}px`,
440
440
  padding: 4
441
441
  }
442
442
  };
@@ -445,18 +445,18 @@ var xe = (e, t) => {
445
445
  style: a
446
446
  };
447
447
  }, Ae = (e, t) => t?.data?.type?.value === "link" ? `${t.data.label} - ${t.data.linkTarget.label}` : t.data.label, je = (e, t, n, r, i, a, o) => {
448
- let s = [], c = d(e[0]) || e[0].label || e[0].dataItem.name || "", l = e.length ? c : "Count", u = t.desc?.flow ?? t.data?.flow.value, f = o ? n.formatter(ne())(u) : n.formatter("flow")(u);
449
- return s.push({
450
- label: l,
448
+ let c = [], l = s(e[0]) || e[0].label || e[0].dataItem.name || "", u = e.length ? l : "Count", d = t.desc?.flow ?? t.data?.flow.value, f = o ? n.formatter(ne())(d) : n.formatter("flow")(d);
449
+ return c.push({
450
+ label: u,
451
451
  value: f
452
- }), s;
452
+ }), c;
453
453
  }, Me = (e, t, n, r, i) => {
454
454
  let a = { placement: ({ nodes: e }) => ({
455
455
  area: "target",
456
456
  type: e[0]?.data?.type?.value === "link" ? "pointer" : "bounds"
457
457
  }) };
458
- return a.extract = T(e, t, je, Ae), S(e, t, n, a, "tooltip", i);
459
- }, Ne = class extends k {
458
+ return a.extract = w(e, t, je, Ae), D(e, t, n, a, "tooltip", i);
459
+ }, Ne = class extends te {
460
460
  constructor() {
461
461
  super([
462
462
  Ce,
@@ -468,13 +468,13 @@ var xe = (e, t) => {
468
468
  ]);
469
469
  }
470
470
  preCompile(e, t) {
471
- let n = e.measures.filter((e) => p(e)), i = e.dimensions.filter((e) => p(e)), a = n[0];
472
- if (!a) return;
473
- let o = r(a.dataItem), s = i.map((e) => r(e.dataItem));
471
+ let n = e.measures.filter((e) => c(e)), r = e.dimensions.filter((e) => c(e)), i = n[0];
472
+ if (!i) return;
473
+ let a = u(i.dataItem), o = r.map((e) => u(e.dataItem));
474
474
  t.forEach((t) => {
475
475
  if (t.items?.length) {
476
- if (t.items = t.items.filter((e) => e[o] > 0), !t.items.length) throw Error("Current data query resulted in only negative and/or null values which can not be displayed in this chart.");
477
- if (!e.sankeySettings.showNullNodes && !t.items.find((e) => s.find((t) => e[t] !== null))) throw Error("Current dataset contains only non-null dimension values and can not be displayed in the current configuration of this chart.");
476
+ if (t.items = t.items.filter((e) => e[a] > 0), !t.items.length) throw Error("Current data query resulted in only negative and/or null values which can not be displayed in this chart.");
477
+ if (!e.sankeySettings.showNullNodes && !t.items.find((e) => o.find((t) => e[t] !== null))) throw Error("Current dataset contains only non-null dimension values and can not be displayed in the current configuration of this chart.");
478
478
  }
479
479
  });
480
480
  }
@@ -484,14 +484,14 @@ var xe = (e, t) => {
484
484
  nodeWidth: .2,
485
485
  linkMargin: 0,
486
486
  showColumnHeaderLabels: !1,
487
- linkFillStrategy: f.Interpolated,
487
+ linkFillStrategy: m.Interpolated,
488
488
  nodeFillOverride: null,
489
489
  showNodeFlowLabel: !0,
490
490
  showNodeDimensionLabel: !0,
491
491
  showNodeLabelBackdrop: !0,
492
492
  nodeLabelBackdropColor: null,
493
493
  columnFields: [],
494
- nodeLabelPlacements: [l.Beside],
494
+ nodeLabelPlacements: [a.Beside],
495
495
  node: {
496
496
  id: "",
497
497
  fill: "#333333"
@@ -517,7 +517,7 @@ function Pe(e) {
517
517
  }
518
518
  function Fe(e) {
519
519
  return e.map((e) => ({
520
- type: x.Path,
520
+ type: N.Path,
521
521
  data: e.data,
522
522
  desc: { flow: e.value },
523
523
  d: Pe(e),
@@ -543,13 +543,13 @@ function Ie(e) {
543
543
  return s.filter((e) => !!e.linkTarget).forEach((e) => {
544
544
  let t = a[e.linkSource], n = a[e.linkTarget], i;
545
545
  if (!e.fill && !e.dataFill) switch (r.linkFillStrategy) {
546
- case f.Source:
546
+ case m.Source:
547
547
  e.fill = t.fill;
548
548
  break;
549
- case f.Target:
549
+ case m.Target:
550
550
  e.fill = n.fill;
551
551
  break;
552
- case f.Interpolated:
552
+ case m.Interpolated:
553
553
  e.fill = {
554
554
  type: "gradient",
555
555
  orientation: "linear",
@@ -612,7 +612,7 @@ function Re(e, t) {
612
612
  let o = a.reduce(([e, t], n) => [e + n.sourceSum, t + n.targetSum], [0, 0]), s = 1 - Math.max(...o) / e.value, c = e.y1 - e.y0, l = e.y0;
613
613
  n.push({
614
614
  id: e.id,
615
- type: x.Rect,
615
+ type: N.Rect,
616
616
  x: e.x0 + t.nodeMargin,
617
617
  width: e.x1 - e.x0 - t.nodeMargin * 2,
618
618
  y: l,
@@ -629,7 +629,7 @@ function Re(e, t) {
629
629
  let u = c * (Math.max(a, o) / e.value);
630
630
  n.push({
631
631
  id: `${e.id}::${s}`,
632
- type: x.Rect,
632
+ type: N.Rect,
633
633
  x: e.x0 + t.nodeMargin,
634
634
  width: e.x1 - e.x0 - t.nodeMargin * 2,
635
635
  y: l,
@@ -662,7 +662,7 @@ var G = (e, t, n = !1, r = [4, 2]) => ({
662
662
  return a < i ? [] : e.map((e) => {
663
663
  let t = n[e.layer], a = G(e, r, !1, [4, 0]), o = a.backdrop?.padding ?? [0, 0], s = t.align < .5 ? z.NodeLabelLeft : t.align > .5 ? z.NodeLabelRight : z.NodeLabelCenter;
664
664
  return {
665
- type: x.Rect,
665
+ type: N.Rect,
666
666
  id: `${e.id}::labelTarget`,
667
667
  x: t.fullX + (t.align < .5 ? r.nodeMargin + o[0] : 0),
668
668
  width: t.fullWidth - (t.align === .5 ? 0 : r.nodeMargin + o[0]),
@@ -677,7 +677,7 @@ var G = (e, t, n = !1, r = [4, 2]) => ({
677
677
  let { nodePadding: i } = r;
678
678
  return e.filter((e) => e.y1 - e.y0 + i >= r.nodeLabelHeight).map((e) => {
679
679
  let t = n[e.layer], a = t.align <= .5 ? z.NodeLabelLeft : z.NodeLabelRight, o = G(e, r, !1, [4, 2]), s = o.backdrop?.padding ?? [0, 0], c = [2, 2], l = [s[0] + c[0], s[1] + c[1]], u = {
680
- type: x.Rect,
680
+ type: N.Rect,
681
681
  id: `${e.id}::labelTarget`,
682
682
  x: t.gapX + l[0],
683
683
  width: t.gapWidth - 2 * l[0],
@@ -692,7 +692,7 @@ var G = (e, t, n = !1, r = [4, 2]) => ({
692
692
  }, He = (e) => e.columnGap >= 20, Ue = (e, t, n, r) => e.filter((e) => e.y1 - e.y0 >= r.nodeLabelHeight).map((e) => {
693
693
  let t = G(e, r, !0, [4, 2]);
694
694
  return {
695
- type: x.Rect,
695
+ type: N.Rect,
696
696
  id: `${e.id}::labelTarget`,
697
697
  x: e.x0 + r.nodeMargin,
698
698
  width: e.x1 - e.x0 - r.nodeMargin * 2,
@@ -703,15 +703,15 @@ var G = (e, t, n = !1, r = [4, 2]) => ({
703
703
  fill: "none"
704
704
  };
705
705
  }), We = (e) => e.columnWidth >= 80, K = {
706
- [l.Above]: {
706
+ [a.Above]: {
707
707
  condition: Be,
708
708
  create: ze
709
709
  },
710
- [l.Beside]: {
710
+ [a.Beside]: {
711
711
  condition: He,
712
712
  create: Ve
713
713
  },
714
- [l.Inside]: {
714
+ [a.Inside]: {
715
715
  condition: We,
716
716
  create: Ue
717
717
  }
@@ -731,7 +731,7 @@ function qe(e, t) {
731
731
  return e.map((e) => {
732
732
  let t = e.align < .5 ? z.ColumnTitleLeft : e.align > .5 ? z.ColumnTitleRight : z.ColumnTitleCenter;
733
733
  return {
734
- type: x.Rect,
734
+ type: N.Rect,
735
735
  id: `column::${e.field}::labelTarget`,
736
736
  tag: t,
737
737
  fill: "none",
@@ -827,21 +827,21 @@ function Qe(e, t, n) {
827
827
  });
828
828
  }
829
829
  function $e(e, t, n, r, i) {
830
- let a = Math.max(0, n.width / (e.length * 2) * t.nodeWidth), o = a > 0 ? t.linkMargin * .5 * Math.min(24, (n.width - a * e.length) / (e.length - 1) / 2) : 0;
831
- a += o * 2;
832
- let s = (n.width - a * e.length) / (e.length - 1), c = Math.max(...e.map((e) => e.count)), u = r.measureText(i.title).height + 2 * i.title.padding, d = 8 + u, f = t.showColumnHeaderLabels && n.height - 8 - d > 0, p = r.measureText(i.label).height + 2 * i.label.padding, m = f ? d : 0, h = n.height - m, g = h / c / 2 * t.nodePadding, _ = (t.showNodeDimensionLabel || t.showNodeFlowLabel) && p * c < h / 2, v = g, y = Ge({
830
+ let o = Math.max(0, n.width / (e.length * 2) * t.nodeWidth), s = o > 0 ? t.linkMargin * .5 * Math.min(24, (n.width - o * e.length) / (e.length - 1) / 2) : 0;
831
+ o += s * 2;
832
+ let c = (n.width - o * e.length) / (e.length - 1), l = Math.max(...e.map((e) => e.count)), u = r.measureText(i.title).height + 2 * i.title.padding, d = 8 + u, f = t.showColumnHeaderLabels && n.height - 8 - d > 0, p = r.measureText(i.label).height + 2 * i.label.padding, m = f ? d : 0, h = n.height - m, g = h / l / 2 * t.nodePadding, _ = (t.showNodeDimensionLabel || t.showNodeFlowLabel) && p * l < h / 2, v = g, y = Ge({
833
833
  canShowNodeLabelAboveNode: _,
834
- columnGap: s,
835
- columnWidth: a,
834
+ columnGap: c,
835
+ columnWidth: o,
836
836
  priority: t.nodeLabelPlacements
837
837
  });
838
- return _ && y === l.Above && (m += p, v = Math.max(p, g)), {
839
- columnGap: s,
840
- columnWidth: a,
838
+ return _ && y === a.Above && (m += p, v = Math.max(p, g)), {
839
+ columnGap: c,
840
+ columnWidth: o,
841
841
  nodePadding: v,
842
842
  availableHeight: h,
843
843
  nodeLabelHeight: p,
844
- nodeMargin: o,
844
+ nodeMargin: s,
845
845
  top: m,
846
846
  showHeader: f,
847
847
  headerTitleHeight: u,
@@ -883,24 +883,24 @@ function Q(e, t) {
883
883
  if (!n) throw Error("missing: " + t);
884
884
  return n;
885
885
  }
886
- function $({ nodes: e }) {
886
+ function it({ nodes: e }) {
887
887
  for (let t of e) {
888
888
  let e = t.y0, n = e;
889
889
  for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
890
890
  for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
891
891
  }
892
892
  }
893
- function it() {
893
+ function at() {
894
894
  let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = tt, c = et, l, u, d = nt, f = rt, p = 6;
895
895
  function m() {
896
896
  let e = {
897
897
  nodes: d.apply(null, arguments),
898
898
  links: f.apply(null, arguments)
899
899
  };
900
- return h(e), g(e), _(e), v(e), b(e), $(e), e;
900
+ return h(e), g(e), _(e), v(e), x(e), it(e), e;
901
901
  }
902
902
  m.update = function(e) {
903
- return $(e), e;
903
+ return it(e), e;
904
904
  }, m.nodeId = function(e) {
905
905
  return arguments.length ? (s = typeof e == "function" ? e : q(e), m) : s;
906
906
  }, m.nodeAlign = function(e) {
@@ -968,7 +968,7 @@ function it() {
968
968
  if (l) for (let e of o) e.sort(l);
969
969
  return o;
970
970
  }
971
- function ee(e) {
971
+ function b(e) {
972
972
  let n = pe(e, (e) => (r - t - (e.length - 1) * o) / I(e, Z));
973
973
  for (let i of e) {
974
974
  let e = t;
@@ -981,18 +981,18 @@ function it() {
981
981
  let n = i[t];
982
982
  n.y0 += e * (t + 1), n.y1 += e * (t + 1);
983
983
  }
984
- D(i);
984
+ ee(i);
985
985
  }
986
986
  }
987
- function b(e) {
987
+ function x(e) {
988
988
  let n = y(e);
989
- o = Math.min(a, (r - t) / (F(n, (e) => e.length) - 1)), ee(n);
989
+ o = Math.min(a, (r - t) / (F(n, (e) => e.length) - 1)), b(n);
990
990
  for (let e = 0; e < p; ++e) {
991
991
  let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
992
- S(n, t, r), x(n, t, r);
992
+ C(n, t, r), S(n, t, r);
993
993
  }
994
994
  }
995
- function x(e, t, n) {
995
+ function S(e, t, n) {
996
996
  for (let r = 1, i = e.length; r < i; ++r) {
997
997
  let i = e[r];
998
998
  for (let e of i) {
@@ -1003,12 +1003,12 @@ function it() {
1003
1003
  }
1004
1004
  if (!(r > 0)) continue;
1005
1005
  let i = (n / r - e.y0) * t;
1006
- e.y0 += i, e.y1 += i, E(e);
1006
+ e.y0 += i, e.y1 += i, D(e);
1007
1007
  }
1008
- l === void 0 && i.sort(X), C(i, n);
1008
+ l === void 0 && i.sort(X), w(i, n);
1009
1009
  }
1010
1010
  }
1011
- function S(e, t, n) {
1011
+ function C(e, t, n) {
1012
1012
  for (let r = e.length - 2; r >= 0; --r) {
1013
1013
  let i = e[r];
1014
1014
  for (let e of i) {
@@ -1019,34 +1019,34 @@ function it() {
1019
1019
  }
1020
1020
  if (!(r > 0)) continue;
1021
1021
  let i = (n / r - e.y0) * t;
1022
- e.y0 += i, e.y1 += i, E(e);
1022
+ e.y0 += i, e.y1 += i, D(e);
1023
1023
  }
1024
- l === void 0 && i.sort(X), C(i, n);
1024
+ l === void 0 && i.sort(X), w(i, n);
1025
1025
  }
1026
1026
  }
1027
- function C(e, n) {
1027
+ function w(e, n) {
1028
1028
  let i = e.length >> 1, a = e[i];
1029
- T(e, a.y0 - o, i - 1, n), w(e, a.y1 + o, i + 1, n), T(e, r, e.length - 1, n), w(e, t, 0, n);
1029
+ E(e, a.y0 - o, i - 1, n), T(e, a.y1 + o, i + 1, n), E(e, r, e.length - 1, n), T(e, t, 0, n);
1030
1030
  }
1031
- function w(e, t, n, r) {
1031
+ function T(e, t, n, r) {
1032
1032
  for (; n < e.length; ++n) {
1033
1033
  let i = e[n], a = (t - i.y0) * r;
1034
1034
  a > 1e-6 && (i.y0 += a, i.y1 += a), t = i.y1 + o;
1035
1035
  }
1036
1036
  }
1037
- function T(e, t, n, r) {
1037
+ function E(e, t, n, r) {
1038
1038
  for (; n >= 0; --n) {
1039
1039
  let i = e[n], a = (i.y1 - t) * r;
1040
1040
  a > 1e-6 && (i.y0 -= a, i.y1 -= a), t = i.y0 - o;
1041
1041
  }
1042
1042
  }
1043
- function E({ sourceLinks: e, targetLinks: t }) {
1043
+ function D({ sourceLinks: e, targetLinks: t }) {
1044
1044
  if (u === void 0) {
1045
1045
  for (let { source: { sourceLinks: e } } of t) e.sort(Y);
1046
1046
  for (let { target: { targetLinks: t } } of e) t.sort(J);
1047
1047
  }
1048
1048
  }
1049
- function D(e) {
1049
+ function ee(e) {
1050
1050
  if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Y), n.sort(J);
1051
1051
  }
1052
1052
  function O(e, t) {
@@ -1075,13 +1075,13 @@ function it() {
1075
1075
  }
1076
1076
  return m;
1077
1077
  }
1078
- var at = 4;
1078
+ var $ = 4;
1079
1079
  function ot(e) {
1080
1080
  let { columns: t, sankeyNodes: n, sankeyLinks: r, columnWidth: i, columnGap: a, nodePadding: o, top: s, rect: c } = e, l = t.map((e) => e.field), u = (e) => l.indexOf(e.data.source.field), d = t.find((e) => !!e.sort) ? (e, n) => {
1081
1081
  if (e.layer === void 0) throw Error("Missing Sankey node layer before sorting");
1082
1082
  let r = t[e.layer].sort;
1083
1083
  return r?.(e, n) ?? 0;
1084
- } : void 0, f = [[0, s + at], [c.width, c.height - 2 * at]], p = it().nodeId((e) => e.id).nodePadding(o).nodeWidth(i).linkSort((e, t) => e.dataFill && t.dataFill ? W(e, t) : e.dataFill ? 1 : -1).nodeSort(d).nodeAlign(u).extent(f).iterations(6)({
1084
+ } : void 0, f = [[0, s + $], [c.width, c.height - 2 * $]], p = at().nodeId((e) => e.id).nodePadding(o).nodeWidth(i).linkSort((e, t) => e.dataFill && t.dataFill ? W(e, t) : e.dataFill ? 1 : -1).nodeSort(d).nodeAlign(u).extent(f).iterations(6)({
1085
1085
  nodes: n,
1086
1086
  links: r
1087
1087
  }), m = Qe(t, p.nodes, a), { nodes: h, links: g } = Xe(p.nodes, p.links);
@@ -1145,25 +1145,25 @@ var st = {
1145
1145
  }
1146
1146
  };
1147
1147
  function ct(e) {
1148
- e.component(A.Sankey, st);
1148
+ e.component(E.Sankey, st);
1149
1149
  }
1150
- var lt = h(), ut = _(({ vSpec: e, vTheme: n, data: i, elementSize: a, vizProperties: o }) => {
1151
- let s = v(), [l] = (0, me.useState)(() => new Ne()), u = n || c, d = ee(), f = g(), p = oe();
1150
+ var lt = v(), ut = g(({ vSpec: e, vTheme: t, data: r, elementSize: i, vizProperties: a }) => {
1151
+ let s = _(), [c] = (0, me.useState)(() => new Ne()), l = t || n, d = b(), f = h(), p = ae();
1152
1152
  if (!e) return null;
1153
1153
  let m = d.targetDataItemId;
1154
1154
  if (!m && d.targetInternalKey) {
1155
1155
  let t = e.dimensions.find((e) => e.dataItem.internalKey === d.targetInternalKey);
1156
- t && (m = r(t.dataItem));
1156
+ t && (m = u(t.dataItem));
1157
1157
  }
1158
- let h = {
1159
- ...o,
1158
+ let g = {
1159
+ ...a,
1160
1160
  valuePickerMode: !!d.activeKey,
1161
1161
  valuePickerTargetDataItemId: m ?? void 0
1162
- }, _ = l.compile(e, u, i, a, h, t.Sankey, s, f, p);
1163
- return _ ? /* @__PURE__ */ (0, lt.jsx)(ie, {
1164
- config: o,
1165
- definition: _,
1166
- size: a,
1162
+ }, v = c.compile(e, l, r, i, g, o.Sankey, s, f, p);
1163
+ return v ? /* @__PURE__ */ (0, lt.jsx)(re, {
1164
+ config: a,
1165
+ definition: v,
1166
+ size: i,
1167
1167
  vSpec: e,
1168
1168
  escobarPlugins: [ct]
1169
1169
  }) : null;