@astrato-io/visualizations 0.8.0 → 0.9.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.
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +307 -378
- package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
- package/chunks/CircularProgress-DFS-LQb7.js +765 -0
- package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
- package/chunks/LinearProgress-CjIQfkNA.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
- package/chunks/Title-CtFw1bVg.js +1804 -0
- package/chunks/ToggleButton-Br9HCPCv.js +150 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
- package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
- package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
- package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
- package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
- package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
- package/chunks/isFocusVisible-B1_z03UT.js +144 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
- package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
- package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
- package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
- package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
- package/chunks/react-dom-BwZT0N3F.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
- package/chunks/{requirements-Dvd8jqYF.js → requirements-CYpVh65U.js} +52 -52
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
- package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
- package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
- package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
- package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
- package/chunks/{standalone-vBnBS2YC.js → standalone-BDrQMxLi.js} +98 -98
- package/chunks/standalone-BMoJXGYe.js +2 -0
- package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
- package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
- package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
- package/chunks/standalone-CMJJIi9v.js +2 -0
- package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
- package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
- package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
- package/chunks/standalone-C_Jd4gkj.js +6 -0
- package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
- package/chunks/standalone-CoQxJ6ov.js +3638 -0
- package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
- package/chunks/standalone-DBeXQrwH.js +468 -0
- package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
- package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
- package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
- package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
- package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
- package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
- package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
- package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-mWrD_uk_.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
- package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
- package/chunks/with-html-element-B0Clt4jY.js +15901 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +1 -1
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +2 -2
- package/docs/operations/line.md +1 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +1 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +66 -1
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +74 -68
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +67 -66
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
- package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
- package/src/visualization-catalog.d.ts +26 -26
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
- package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
- package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
- package/chunks/Title-CO5dP1ma.js +0 -1691
- package/chunks/ToggleButton-KOBAimC1.js +0 -112
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-DT0wKji7.js +0 -6
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
- /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { C as n, Ds as r,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./logger-
|
|
6
|
-
import { Et as ee, F as te, I as ne, Kt as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { a as
|
|
11
|
-
function
|
|
2
|
+
import { C as n, Ds as r, Gn as i, Hi as a, Kt as o, S as s, Ss as c, Us as l, Xa as u, _c as d, ga as f, gr as p, w as m, ws as h, y as g, zi as _, zr as v } from "./visualization-filters-mVnsnvLP.js";
|
|
3
|
+
import { F as y, N as b, Ot as x, ei as S, jr as C, s as w } from "./utils-DYYD4Zzf.js";
|
|
4
|
+
import { gm as T, hm as E } from "./handlers-CMbyj5y1.js";
|
|
5
|
+
import "./logger-3lng-wOw.js";
|
|
6
|
+
import { Et as ee, F as te, I as ne, Kt as re, Ot as ie, _n as D, cn as O, en as ae, et as oe, gn as k, hn as A, i as se, it as ce, ln as j, mn as M, n as le, rn as N, st as ue, tn as de, tt as fe, un as P, xt as pe } from "./escobar-C4Nm3eJ7.js";
|
|
7
|
+
import { _ as F } from "./MenuOption-Cb7B7x6z.js";
|
|
8
|
+
import { t as me } from "./coloring-B-Wa8D5P.js";
|
|
9
|
+
import { t as he } from "./set-coloring-datafield-B3uIS1Pe.js";
|
|
10
|
+
import { a as ge, n as _e } from "./accessors-DemrDevR.js";
|
|
11
|
+
function I() {
|
|
12
12
|
return 0;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function L(e) {
|
|
15
15
|
return function() {
|
|
16
16
|
return e;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function ve(e) {
|
|
20
20
|
e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ye(e, t, n, r, i) {
|
|
23
23
|
for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function be(e, t, n, r, i) {
|
|
26
26
|
for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
28
|
+
var xe = (1 + Math.sqrt(5)) / 2;
|
|
29
|
+
function Se(e, t, n, r, i, a) {
|
|
30
30
|
for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
|
|
31
31
|
p = i - n, m = a - r;
|
|
32
32
|
do
|
|
@@ -43,22 +43,22 @@ function xe(e, t, n, r, i, a) {
|
|
|
43
43
|
value: g,
|
|
44
44
|
dice: p < m,
|
|
45
45
|
children: s.slice(u, d)
|
|
46
|
-
}), c.dice ?
|
|
46
|
+
}), c.dice ? ye(c, n, r, i, h ? r += m * g / h : a) : be(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
|
|
47
47
|
}
|
|
48
48
|
return o;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var Ce = (function e(t) {
|
|
51
51
|
function n(e, n, r, i, a) {
|
|
52
|
-
|
|
52
|
+
Se(t, e, n, r, i, a);
|
|
53
53
|
}
|
|
54
54
|
return n.ratio = function(t) {
|
|
55
55
|
return e((t = +t) > 1 ? t : 1);
|
|
56
56
|
}, n;
|
|
57
|
-
})(
|
|
58
|
-
function
|
|
59
|
-
var e =
|
|
57
|
+
})(xe);
|
|
58
|
+
function we() {
|
|
59
|
+
var e = Ce, t = !1, n = 1, r = 1, i = [0], a = I, o = I, s = I, c = I, l = I;
|
|
60
60
|
function u(e) {
|
|
61
|
-
return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(
|
|
61
|
+
return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(ve), e;
|
|
62
62
|
}
|
|
63
63
|
function d(t) {
|
|
64
64
|
var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
|
|
@@ -69,48 +69,48 @@ function Ce() {
|
|
|
69
69
|
}, u.size = function(e) {
|
|
70
70
|
return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
|
|
71
71
|
}, u.tile = function(t) {
|
|
72
|
-
return arguments.length ? (e =
|
|
72
|
+
return arguments.length ? (e = _e(t), u) : e;
|
|
73
73
|
}, u.padding = function(e) {
|
|
74
74
|
return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
|
|
75
75
|
}, u.paddingInner = function(e) {
|
|
76
|
-
return arguments.length ? (a = typeof e == "function" ? e :
|
|
76
|
+
return arguments.length ? (a = typeof e == "function" ? e : L(+e), u) : a;
|
|
77
77
|
}, u.paddingOuter = function(e) {
|
|
78
78
|
return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
|
|
79
79
|
}, u.paddingTop = function(e) {
|
|
80
|
-
return arguments.length ? (o = typeof e == "function" ? e :
|
|
80
|
+
return arguments.length ? (o = typeof e == "function" ? e : L(+e), u) : o;
|
|
81
81
|
}, u.paddingRight = function(e) {
|
|
82
|
-
return arguments.length ? (s = typeof e == "function" ? e :
|
|
82
|
+
return arguments.length ? (s = typeof e == "function" ? e : L(+e), u) : s;
|
|
83
83
|
}, u.paddingBottom = function(e) {
|
|
84
|
-
return arguments.length ? (c = typeof e == "function" ? e :
|
|
84
|
+
return arguments.length ? (c = typeof e == "function" ? e : L(+e), u) : c;
|
|
85
85
|
}, u.paddingLeft = function(e) {
|
|
86
|
-
return arguments.length ? (l = typeof e == "function" ? e :
|
|
86
|
+
return arguments.length ? (l = typeof e == "function" ? e : L(+e), u) : l;
|
|
87
87
|
}, u;
|
|
88
88
|
}
|
|
89
|
-
var
|
|
89
|
+
var Te = /* @__PURE__ */ e(S()), R = /* @__PURE__ */ function(e) {
|
|
90
90
|
return e.cells = "key-cells", e.labels = "key-labels", e.selection = "key-selection", e;
|
|
91
|
-
}({}),
|
|
91
|
+
}({}), z = /* @__PURE__ */ function(e) {
|
|
92
92
|
return e.CellValue = "cellValue", e.Color = "color", e;
|
|
93
|
-
}({}),
|
|
93
|
+
}({}), B = /* @__PURE__ */ function(e) {
|
|
94
94
|
return e.MeasureFormatter = "total", e;
|
|
95
|
-
}({}),
|
|
95
|
+
}({}), V = /* @__PURE__ */ function(e) {
|
|
96
96
|
return e.Leaf = "leaf", e.Header = "header", e;
|
|
97
|
-
}({}),
|
|
98
|
-
let s = e.measures.filter(v),
|
|
97
|
+
}({}), Ee = (e, t, n, r, i, a, o) => {
|
|
98
|
+
let s = e.measures.filter(v), c = (e.supportingMeasures ?? []).filter((e) => v(e)), u = l(s[0].dataItem), d = ne(c), f = e.dimensions.filter(v).map((e) => l(e.dataItem)), p = f[f.length - 1], m = f.slice(0, f.length - 1), h = {};
|
|
99
99
|
m.forEach((e, t) => {
|
|
100
100
|
h[`dim${t}`] = { field: e };
|
|
101
101
|
});
|
|
102
102
|
let g = [{
|
|
103
103
|
field: p,
|
|
104
104
|
props: {
|
|
105
|
-
[
|
|
105
|
+
[z.CellValue]: { field: u },
|
|
106
106
|
...h,
|
|
107
107
|
[u]: { field: u },
|
|
108
108
|
...d
|
|
109
109
|
}
|
|
110
|
-
}], _ = e.coloring ?
|
|
110
|
+
}], _ = e.coloring ? ie(e, o) : null;
|
|
111
111
|
_ && (g[0].props = {
|
|
112
112
|
...g[0].props,
|
|
113
|
-
[
|
|
113
|
+
[z.Color]: { field: _ }
|
|
114
114
|
});
|
|
115
115
|
let y = [{
|
|
116
116
|
key: "coll",
|
|
@@ -119,116 +119,116 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
119
119
|
return {
|
|
120
120
|
...n,
|
|
121
121
|
collections: y,
|
|
122
|
-
formatters: { [
|
|
122
|
+
formatters: { [B.MeasureFormatter]: e.measures[0].formatter ?? {
|
|
123
123
|
type: "excel-format",
|
|
124
124
|
format: ""
|
|
125
125
|
} }
|
|
126
126
|
};
|
|
127
|
-
},
|
|
128
|
-
let i = n ?
|
|
127
|
+
}, H = "treemap-alternates-switcher", U = "treemap-alternates-switcher", De = new F(O.fontLight), Oe = new F(O.fontDark), W = (e) => o(e) || e.label || e.dataItem?.name || "Field", ke = (e, t, n, r) => {
|
|
128
|
+
let i = n ? l(n.dataItem) : void 0;
|
|
129
129
|
return {
|
|
130
130
|
type: "native",
|
|
131
|
-
key: `${
|
|
131
|
+
key: `${U}-interaction`,
|
|
132
132
|
events: { click(a) {
|
|
133
133
|
let o = this.element.getBoundingClientRect(), s = {
|
|
134
134
|
x: a.clientX - o.left,
|
|
135
135
|
y: a.clientY - o.top
|
|
136
136
|
}, c = this.chart.shapesAt(s, {
|
|
137
137
|
components: [{
|
|
138
|
-
key:
|
|
138
|
+
key: U,
|
|
139
139
|
propagation: "stop"
|
|
140
140
|
}],
|
|
141
141
|
propagation: "stop"
|
|
142
142
|
}).find((e) => e.data?.target === "measure" || e.data?.target === "dimension");
|
|
143
143
|
if (c?.data?.target === "measure" && n && i) {
|
|
144
|
-
r(
|
|
145
|
-
dataItemType:
|
|
144
|
+
r(D.Text, "click", `text-${i}`, a, c, {
|
|
145
|
+
dataItemType: d.Measure,
|
|
146
146
|
dataItemRole: n.role
|
|
147
147
|
});
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
150
|
-
c?.data?.target === "dimension" && e && r(
|
|
151
|
-
dataItemType:
|
|
150
|
+
c?.data?.target === "dimension" && e && r(D.Text, "click", `text-${e}`, a, c, {
|
|
151
|
+
dataItemType: d.Dimension,
|
|
152
152
|
dataItemRole: t
|
|
153
153
|
});
|
|
154
154
|
} }
|
|
155
155
|
};
|
|
156
|
-
},
|
|
157
|
-
let
|
|
156
|
+
}, Ae = (e, t, n, r, a, o = {}, s, c) => {
|
|
157
|
+
let f = e.dimensions.filter(v), p = e.measures.filter(v), m = f[0], h = p[0], g = m ? l(m.dataItem) : void 0;
|
|
158
158
|
if (!m && !h) return n;
|
|
159
|
-
let _ =
|
|
159
|
+
let _ = i(e.dimensions, e.enableAlternate, o.isPrintMode), y = i(e.measures, e.enableAlternate, o.isPrintMode);
|
|
160
160
|
if (!_ && !y) return n;
|
|
161
|
-
let b =
|
|
162
|
-
type:
|
|
163
|
-
key:
|
|
164
|
-
dimensionDataItemType: g ?
|
|
161
|
+
let b = o?.isPrintMode ?? !1, x = _ ? f.map((e) => W(e)).join(", ") : void 0, S = y && h ? W(h) : void 0, C = e.treemapSettings.branchColor ?? "rgba(150, 150, 150, 0.3)", w = new F(C).betterContrast(new F(t.fonts.general.color), De, Oe).rgb(), T = {
|
|
162
|
+
type: H,
|
|
163
|
+
key: U,
|
|
164
|
+
dimensionDataItemType: g ? d.Dimension : void 0,
|
|
165
165
|
dimensionDataItemRole: m?.role,
|
|
166
|
-
measureDataItemType: h ?
|
|
166
|
+
measureDataItemType: h ? d.Measure : void 0,
|
|
167
167
|
measureDataItemRole: h?.role,
|
|
168
168
|
layout: {
|
|
169
|
-
dock:
|
|
169
|
+
dock: u.Bottom,
|
|
170
170
|
displayOrder: 0
|
|
171
171
|
},
|
|
172
172
|
settings: {
|
|
173
|
-
dimensionLabel: x ?
|
|
174
|
-
measureLabel: S ?
|
|
173
|
+
dimensionLabel: x ? re(x) : void 0,
|
|
174
|
+
measureLabel: S ? re(S) : void 0,
|
|
175
175
|
backgroundColor: C,
|
|
176
176
|
fontFamily: t.fonts.general.fontFamily ?? void 0,
|
|
177
|
-
fontSize: `${
|
|
177
|
+
fontSize: `${O.fieldTitle.fontSize}px`,
|
|
178
178
|
color: w,
|
|
179
179
|
paddingLeft: 5,
|
|
180
180
|
paddingRight: 5,
|
|
181
181
|
paddingVertical: 5,
|
|
182
182
|
labelGap: 12
|
|
183
183
|
}
|
|
184
|
-
}, E =
|
|
184
|
+
}, E = c && !b ? [ke(g, m?.role, h, c)] : [];
|
|
185
185
|
return {
|
|
186
186
|
...n,
|
|
187
187
|
components: [...n.components, T],
|
|
188
188
|
interactions: n.interactions ? [...n.interactions, ...E] : [...E]
|
|
189
189
|
};
|
|
190
|
-
},
|
|
191
|
-
var n = m(), r =
|
|
192
|
-
function
|
|
193
|
-
return r(e) && r(t) && (c.set(t, e), n(e, t, void 0,
|
|
190
|
+
}, je = /* @__PURE__ */ t(((e, t) => {
|
|
191
|
+
var n = m(), r = p();
|
|
192
|
+
function i(e, t, a, o, s, c) {
|
|
193
|
+
return r(e) && r(t) && (c.set(t, e), n(e, t, void 0, i, c), c.delete(t)), e;
|
|
194
194
|
}
|
|
195
|
-
t.exports =
|
|
196
|
-
})),
|
|
197
|
-
var r = n(), i =
|
|
195
|
+
t.exports = i;
|
|
196
|
+
})), G = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
197
|
+
var r = n(), i = s(), a = je(), o = g();
|
|
198
198
|
t.exports = i(function(e) {
|
|
199
|
-
return e.push(void 0, a), r(
|
|
199
|
+
return e.push(void 0, a), r(o, void 0, e);
|
|
200
200
|
});
|
|
201
|
-
})))()),
|
|
201
|
+
})))()), Me = () => ({
|
|
202
202
|
trigger: [{
|
|
203
203
|
on: A.Tap,
|
|
204
|
-
action:
|
|
204
|
+
action: M.Toggle,
|
|
205
205
|
globalPropagation: "stop",
|
|
206
206
|
propagation: "stop",
|
|
207
|
-
contexts: [
|
|
207
|
+
contexts: [P.Selection]
|
|
208
208
|
}, {
|
|
209
209
|
on: A.Over,
|
|
210
|
-
action:
|
|
210
|
+
action: M.Set,
|
|
211
211
|
globalPropagation: "stop",
|
|
212
212
|
propagation: "stop",
|
|
213
|
-
contexts: [
|
|
213
|
+
contexts: [P.Highlight]
|
|
214
214
|
}],
|
|
215
215
|
consume: [{
|
|
216
|
-
context:
|
|
216
|
+
context: P.Selection,
|
|
217
217
|
data: [""],
|
|
218
|
-
mode:
|
|
218
|
+
mode: k.Or,
|
|
219
219
|
style: { inactive: { fill: (e) => {
|
|
220
220
|
let { fill: t } = e;
|
|
221
|
-
return !t || t === "none" || t === "transparent" ? t ?? "none" :
|
|
221
|
+
return !t || t === "none" || t === "transparent" ? t ?? "none" : ae(de(t), .25);
|
|
222
222
|
} } }
|
|
223
223
|
}]
|
|
224
|
-
}),
|
|
225
|
-
let s = e.dimensions.filter(v),
|
|
224
|
+
}), Ne = (e, t, n, i, a, o = {}) => {
|
|
225
|
+
let s = e.dimensions.filter(v), c = e.measures.filter(v).map((e) => l(e.dataItem)), u = new me(e, t, a?.[0]?.itemsNotAffectedByFiltering), d = [u.MAIN_FIELD];
|
|
226
226
|
s.slice(0, s.length - 1).forEach((e, t) => {
|
|
227
227
|
d.push(`dim${t}`);
|
|
228
228
|
});
|
|
229
|
-
let { labeling: f } = e.treemapSettings, p = (0,
|
|
230
|
-
key:
|
|
231
|
-
type:
|
|
229
|
+
let { labeling: f } = e.treemapSettings, p = (0, G.default)({}, f?.header, T.labeling.header), m = (0, G.default)({}, f?.leaf, T.labeling.leaf), h = {
|
|
230
|
+
key: R.cells,
|
|
231
|
+
type: D.Treemap,
|
|
232
232
|
data: { collection: "coll" },
|
|
233
233
|
settings: {
|
|
234
234
|
numDimensions: s.length || 0,
|
|
@@ -239,22 +239,22 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
239
239
|
headerLabels: {
|
|
240
240
|
show: p.show,
|
|
241
241
|
numLevels: p.numLevels,
|
|
242
|
-
fontSize:
|
|
242
|
+
fontSize: N(p.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax)
|
|
243
243
|
},
|
|
244
244
|
leafLabels: {
|
|
245
245
|
show: m.show,
|
|
246
|
-
fontSize:
|
|
246
|
+
fontSize: N(m.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax),
|
|
247
247
|
showDimension: m.showDimensionValue,
|
|
248
248
|
showMeasure: m.showMeasureValue,
|
|
249
249
|
dynamicFontSizeEnabled: m.dynamicFontSizeEnabled
|
|
250
250
|
},
|
|
251
251
|
leaf: { fill: u.getColorDefinition({
|
|
252
|
-
ref:
|
|
253
|
-
dataItemId: e.coloring?.type === r.Single ?
|
|
252
|
+
ref: z.Color,
|
|
253
|
+
dataItemId: e.coloring?.type === r.Single ? c[0] : void 0,
|
|
254
254
|
overwriteSources: d
|
|
255
255
|
}) }
|
|
256
256
|
},
|
|
257
|
-
brush: o.disable?.brushing === !0 ? void 0 :
|
|
257
|
+
brush: o.disable?.brushing === !0 ? void 0 : Me(),
|
|
258
258
|
animations: {
|
|
259
259
|
presetId: "simple-opacity",
|
|
260
260
|
enabled: !0
|
|
@@ -264,10 +264,10 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
264
264
|
...n,
|
|
265
265
|
components: [...n.components, h]
|
|
266
266
|
};
|
|
267
|
-
},
|
|
268
|
-
let r = new
|
|
267
|
+
}, K = new F(O.fontLight), q = new F(O.fontDark), J = (e) => e.desc, Pe = (e, t, n) => {
|
|
268
|
+
let r = new F(n.fonts.general.color), { showDimensionValue: i, showMeasureValue: a, fontSize: o, dynamicFontSizeEnabled: s, show: c } = t.leaf, l = s ? ({ node: e }) => J(e).dynamicFontSize ?? void 0 : N(o, void 0, E.labelFontSizeMin, E.labelFontSizeMax);
|
|
269
269
|
return {
|
|
270
|
-
component:
|
|
270
|
+
component: R.cells,
|
|
271
271
|
selector: e,
|
|
272
272
|
strategy: {
|
|
273
273
|
type: "rows",
|
|
@@ -281,35 +281,35 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
281
281
|
return e.attrs?.id;
|
|
282
282
|
},
|
|
283
283
|
fill({ node: e }) {
|
|
284
|
-
return new
|
|
284
|
+
return new F(J(e).background).betterContrast(r, K, q).rgb();
|
|
285
285
|
},
|
|
286
286
|
linkData({ node: e }) {
|
|
287
287
|
return e.data;
|
|
288
288
|
},
|
|
289
289
|
label({ node: e }) {
|
|
290
|
-
return
|
|
290
|
+
return J(e)?.label;
|
|
291
291
|
}
|
|
292
292
|
} : null, a && c !== !1 ? {
|
|
293
293
|
id({ node: e }) {
|
|
294
294
|
return `${e.attrs?.id}::value`;
|
|
295
295
|
},
|
|
296
296
|
fill({ node: e }) {
|
|
297
|
-
return new
|
|
297
|
+
return new F(J(e).background).betterContrast(r, K, q).rgb();
|
|
298
298
|
},
|
|
299
299
|
linkData({ node: e }) {
|
|
300
300
|
return e.data;
|
|
301
301
|
},
|
|
302
302
|
label({ node: e, formatter: t }) {
|
|
303
|
-
return t(
|
|
303
|
+
return t(B.MeasureFormatter)(J(e)?.total, void 0, e.data);
|
|
304
304
|
}
|
|
305
305
|
} : null].filter((e) => e !== null)
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
},
|
|
310
|
-
let r = new
|
|
309
|
+
}, Y = 128, Fe = (e, t, n) => {
|
|
310
|
+
let r = new F(n.fonts.general.color), i = N(t.header.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax), { showDimensionValue: a, showMeasureValue: o } = t.header;
|
|
311
311
|
return {
|
|
312
|
-
component:
|
|
312
|
+
component: R.cells,
|
|
313
313
|
selector: e,
|
|
314
314
|
strategy: {
|
|
315
315
|
type: "rows",
|
|
@@ -323,28 +323,28 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
323
323
|
return e.attrs?.id;
|
|
324
324
|
},
|
|
325
325
|
fill({ node: e }) {
|
|
326
|
-
return new
|
|
326
|
+
return new F(J(e).background).betterContrast(r, K, q).rgb();
|
|
327
327
|
},
|
|
328
328
|
linkData({ node: e }) {
|
|
329
329
|
return e.data;
|
|
330
330
|
},
|
|
331
331
|
label({ node: e, formatter: t }) {
|
|
332
|
-
let n =
|
|
333
|
-
return [a ? n?.label?.length >
|
|
332
|
+
let n = J(e), r = o ? t(B.MeasureFormatter)(n?.total) : void 0;
|
|
333
|
+
return [a ? n?.label?.length > Y - 1 ? `${n?.label?.substring(0, Y - 1).replace(/\s+$/, "")}…` : n?.label : void 0, r].filter(Boolean).join(": ");
|
|
334
334
|
}
|
|
335
335
|
}]
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
|
-
},
|
|
340
|
-
let o = (0,
|
|
341
|
-
type:
|
|
342
|
-
key:
|
|
339
|
+
}, Ie = (e, t, n, r, i, a = {}) => {
|
|
340
|
+
let o = (0, G.default)({}, e.treemapSettings?.labeling, T.labeling), s = {
|
|
341
|
+
type: D.Labels,
|
|
342
|
+
key: R.labels,
|
|
343
343
|
layout: { displayOrder: 2 },
|
|
344
|
-
settings: { sources: [
|
|
344
|
+
settings: { sources: [Pe(`.${V.Leaf}`, o, t), Fe(`.${V.Header}`, o, t)] },
|
|
345
345
|
style: { label: "$label" },
|
|
346
346
|
brush: a.disable?.brushing === !0 ? void 0 : { consume: [{
|
|
347
|
-
context:
|
|
347
|
+
context: P.Selection,
|
|
348
348
|
data: [""],
|
|
349
349
|
style: { inactive: { opacity: .3 } }
|
|
350
350
|
}] },
|
|
@@ -357,10 +357,10 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
357
357
|
...n,
|
|
358
358
|
components: [...n.components, s]
|
|
359
359
|
};
|
|
360
|
-
},
|
|
361
|
-
context:
|
|
360
|
+
}, Le = () => ({ consume: [{
|
|
361
|
+
context: P.Selection,
|
|
362
362
|
data: [""],
|
|
363
|
-
mode:
|
|
363
|
+
mode: k.Or,
|
|
364
364
|
style: {
|
|
365
365
|
active: {
|
|
366
366
|
strokeWidth: 2,
|
|
@@ -368,16 +368,16 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
368
368
|
},
|
|
369
369
|
inactive: { strokeWidth: 0 }
|
|
370
370
|
}
|
|
371
|
-
}] }),
|
|
371
|
+
}] }), Re = (e, t, n, r, i, a = {}) => {
|
|
372
372
|
let o = {
|
|
373
|
-
key:
|
|
374
|
-
type:
|
|
373
|
+
key: R.selection,
|
|
374
|
+
type: D.Deferred,
|
|
375
375
|
layout: { displayOrder: 10 },
|
|
376
376
|
settings: { sources: [{
|
|
377
|
-
component:
|
|
378
|
-
selector:
|
|
377
|
+
component: R.cells,
|
|
378
|
+
selector: j.Rect
|
|
379
379
|
}] },
|
|
380
|
-
brush: a.disable?.brushing === !0 ? void 0 :
|
|
380
|
+
brush: a.disable?.brushing === !0 ? void 0 : Le(),
|
|
381
381
|
animations: {
|
|
382
382
|
presetId: "simple-opacity",
|
|
383
383
|
enabled: !0
|
|
@@ -387,16 +387,16 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
387
387
|
...n,
|
|
388
388
|
components: [...n.components, o]
|
|
389
389
|
};
|
|
390
|
-
},
|
|
390
|
+
}, ze = (e, t, n, r, i, a, o) => {
|
|
391
391
|
if (!e.dimensions.filter(v)[0]) return n;
|
|
392
|
-
let s = n.collections?.[0]?.data.extract[0]?.props?.[
|
|
392
|
+
let s = n.collections?.[0]?.data.extract[0]?.props?.[z.Color], c;
|
|
393
393
|
s?.field && (c = s?.field);
|
|
394
394
|
let l = {};
|
|
395
|
-
return l = ee(
|
|
395
|
+
return l = ee(he(e, c ?? null), t, l, n.collections, o), {
|
|
396
396
|
...n,
|
|
397
397
|
scales: l
|
|
398
398
|
};
|
|
399
|
-
},
|
|
399
|
+
}, Be = (e, t, n) => {
|
|
400
400
|
let r = e.dimensions.filter(v), i = e.measures.filter(v);
|
|
401
401
|
if (!r[0] || !i[0]) return n;
|
|
402
402
|
let a = {
|
|
@@ -411,7 +411,7 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
411
411
|
},
|
|
412
412
|
$title: {
|
|
413
413
|
"@extend": "$label",
|
|
414
|
-
fontSize: `${
|
|
414
|
+
fontSize: `${O.fieldTitle.fontSize}px`,
|
|
415
415
|
padding: 4
|
|
416
416
|
}
|
|
417
417
|
};
|
|
@@ -419,52 +419,52 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
419
419
|
...n,
|
|
420
420
|
style: a
|
|
421
421
|
};
|
|
422
|
-
},
|
|
422
|
+
}, Ve = (e, t) => t.data.label, X = (e, t, n, r, i, a) => {
|
|
423
423
|
let o = t;
|
|
424
424
|
if (!r && i) o = n.formatter(i)(t, void 0, a);
|
|
425
425
|
else if (r) {
|
|
426
|
-
let e = typeof i == "string" ? i :
|
|
426
|
+
let e = typeof i == "string" ? i : ue(i);
|
|
427
427
|
o = n.formatter(e)(t, void 0, a);
|
|
428
428
|
}
|
|
429
429
|
return {
|
|
430
430
|
label: e,
|
|
431
431
|
value: o
|
|
432
432
|
};
|
|
433
|
-
}, He = (e, t, n, r, i, a,
|
|
434
|
-
let
|
|
435
|
-
return
|
|
436
|
-
let r =
|
|
433
|
+
}, He = (e, t, n, r, i, a, s, c) => {
|
|
434
|
+
let u = [], d = e.filter(v), f = ce(n), p = d.filter((e) => !f.has(l(e.dataItem)))[0] ?? d[0], m = (p ? o(p) : "") || p?.label || p?.dataItem.name || "", h = p ? m : "Count", g = Number(t.desc?.total), _ = t.data[z.CellValue]?.source ? t.data : void 0;
|
|
435
|
+
return u.push(X(h, g, n, c, B.MeasureFormatter, _)), d.filter((e) => f.has(l(e.dataItem))).forEach((e) => {
|
|
436
|
+
let r = l(e.dataItem), i = Object.keys(t.data).find((e) => t.data[e]?.source?.field === r);
|
|
437
437
|
if (!i) return;
|
|
438
|
-
let a =
|
|
439
|
-
|
|
440
|
-
}),
|
|
438
|
+
let a = o(e) || e.label || e.dataItem.name || "", s = Number(t.data[i]?.value);
|
|
439
|
+
u.push(X(a, s, n, c, e.formatter, t.data));
|
|
440
|
+
}), u;
|
|
441
441
|
}, Ue = (e, t, n, r, i) => {
|
|
442
442
|
let a = {
|
|
443
443
|
placement: () => ({
|
|
444
444
|
area: "target",
|
|
445
445
|
type: "pointer"
|
|
446
446
|
}),
|
|
447
|
-
filter: (e) => e.filter((e) => e.type !==
|
|
447
|
+
filter: (e) => e.filter((e) => e.type !== j.Text && e.key === R.cells)
|
|
448
448
|
};
|
|
449
|
-
return a.extract =
|
|
449
|
+
return a.extract = fe(e, t, He, Ve), oe(e, t, n, a, "tooltip", i);
|
|
450
450
|
}, We = class extends te {
|
|
451
451
|
constructor() {
|
|
452
452
|
super([
|
|
453
|
-
|
|
454
|
-
Re,
|
|
455
|
-
Me,
|
|
456
|
-
Le,
|
|
457
|
-
fe,
|
|
458
|
-
ke,
|
|
459
|
-
Fe,
|
|
453
|
+
Ee,
|
|
460
454
|
ze,
|
|
455
|
+
Ne,
|
|
456
|
+
Re,
|
|
457
|
+
pe,
|
|
458
|
+
Ae,
|
|
459
|
+
Ie,
|
|
460
|
+
Be,
|
|
461
461
|
Ue
|
|
462
462
|
]);
|
|
463
463
|
}
|
|
464
464
|
preCompile(e, t) {
|
|
465
465
|
let n = e.measures.filter(v)[0];
|
|
466
466
|
if (!n) return;
|
|
467
|
-
let r =
|
|
467
|
+
let r = l(n.dataItem);
|
|
468
468
|
t.forEach((e) => {
|
|
469
469
|
if (e.items?.length && (e.items = e.items.filter((e) => e[r] > 0), !e.items.length)) throw Error("Current data query resulted in only negative and/or null values which can not be displayed in this chart.");
|
|
470
470
|
});
|
|
@@ -509,27 +509,27 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
|
|
|
509
509
|
fill: e.branchColor ?? "rgba(150, 150, 150, 0.3)"
|
|
510
510
|
})), t]);
|
|
511
511
|
});
|
|
512
|
-
let o =
|
|
512
|
+
let o = ge(r);
|
|
513
513
|
return o.each((e) => delete e.data.children), o;
|
|
514
514
|
}, Je = (e) => e + Math.max(12, e * .5), Ye = (e, t, n) => e.y1 - e.y0 >= t + 12 && e.x1 - e.x0 >= n * 2;
|
|
515
515
|
function Xe(e) {
|
|
516
516
|
let { cellPadding: t, headerLabels: n } = e, { fontSize: r } = n, i = Je(r);
|
|
517
|
-
|
|
517
|
+
we().size([e.rect.width, e.rect.height]).paddingInner((e) => e.height > 1 ? t : 0).paddingOuter((e) => e.depth ? t : 0).paddingTop((n) => n.height && n.depth && e.headerLabels.show && e.headerLabels.numLevels >= n.depth && Ye(n, i, r) ? t + i : n.depth ? t : 0)(e.root);
|
|
518
518
|
}
|
|
519
519
|
var Ze = 8, Qe = "rgba(250, 250, 250, 0.8)", $e = "rgba(60, 60, 60, 0.8)", et = .12, tt = 24, nt = (e, t) => {
|
|
520
520
|
let n = null, r = null;
|
|
521
|
-
return !e.height && t.leafLabels?.show ? (r = et * Math.sqrt((e.y1 - e.y0) * (e.x1 - e.x0)), n = t.leafLabels?.dynamicFontSizeEnabled && r < Ze ? null :
|
|
521
|
+
return !e.height && t.leafLabels?.show ? (r = et * Math.sqrt((e.y1 - e.y0) * (e.x1 - e.x0)), n = t.leafLabels?.dynamicFontSizeEnabled && r < Ze ? null : V.Leaf) : e.height && t.headerLabels?.show && t.headerLabels.numLevels >= e.depth && (n = V.Header), {
|
|
522
522
|
labelTarget: n,
|
|
523
523
|
leafDynamicFontSize: r
|
|
524
524
|
};
|
|
525
525
|
}, rt = (e, t) => {
|
|
526
|
-
let n = [...Ge(e.numDimensions), "cell"].map((t, n) => Math.max(0, (e.cellRadius ?? Z.cellRadius) - (e.cellPadding ?? Z.cellPadding) * n * .25)), r = new
|
|
526
|
+
let n = [...Ge(e.numDimensions), "cell"].map((t, n) => Math.max(0, (e.cellRadius ?? Z.cellRadius) - (e.cellPadding ?? Z.cellPadding) * n * .25)), r = new F(e.branchColor ?? "rgba(150, 150, 150, 0.3)").isDark() ? $e : Qe, i = e.headerLabels?.fontSize ?? Z.headerLabels.fontSize, o = Je(i);
|
|
527
527
|
return t.descendants().slice(1).filter((e) => (e.x1 - e.x0) * (e.y1 - e.y0) >= 1).map((t) => {
|
|
528
528
|
let s = (t.children?.length ?? 0) > 0, c = t.y1 - t.y0, { labelTarget: l, leafDynamicFontSize: u } = nt(t, e), d = t.data.fill || a.black, f = n[t.depth - 1];
|
|
529
529
|
return {
|
|
530
530
|
id: t.data.id,
|
|
531
|
-
type:
|
|
532
|
-
tag: l ===
|
|
531
|
+
type: j.Rect,
|
|
532
|
+
tag: l === V.Header ? Ye(t, o, i) ? l : void 0 : l && c >= tt ? l : void 0,
|
|
533
533
|
x: t.x0,
|
|
534
534
|
y: t.y0,
|
|
535
535
|
rx: f,
|
|
@@ -550,8 +550,8 @@ var Ze = 8, Qe = "rgba(250, 250, 250, 0.8)", $e = "rgba(60, 60, 60, 0.8)", et =
|
|
|
550
550
|
};
|
|
551
551
|
});
|
|
552
552
|
}, it = {
|
|
553
|
-
[
|
|
554
|
-
[
|
|
553
|
+
[f.DESC]: (e, t) => t.height - e.height || (t.value ?? 0) - (e.value ?? 0),
|
|
554
|
+
[f.ASC]: (e, t) => t.height - e.height || (e.value ?? 0) - (t.value ?? 0)
|
|
555
555
|
}, at = {
|
|
556
556
|
require: [
|
|
557
557
|
"resolver",
|
|
@@ -677,7 +677,7 @@ var Ze = 8, Qe = "rgba(250, 250, 250, 0.8)", $e = "rgba(60, 60, 60, 0.8)", et =
|
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
679
|
function lt(e) {
|
|
680
|
-
e.component(
|
|
680
|
+
e.component(D.Treemap, at), e.component(H, ct);
|
|
681
681
|
}
|
|
682
682
|
var ut = {
|
|
683
683
|
require: [
|
|
@@ -693,7 +693,7 @@ var ut = {
|
|
|
693
693
|
return e.sources.forEach((e) => {
|
|
694
694
|
t.component(e.component) && t.findShapes(e.selector ?? "").filter((t) => t.key === e.component).forEach((e) => {
|
|
695
695
|
e.attrs && n.push({
|
|
696
|
-
type:
|
|
696
|
+
type: j.Rect,
|
|
697
697
|
height: e.attrs.height,
|
|
698
698
|
width: e.attrs.width,
|
|
699
699
|
x: e.attrs.x,
|
|
@@ -711,15 +711,15 @@ var ut = {
|
|
|
711
711
|
}
|
|
712
712
|
};
|
|
713
713
|
function dt(e) {
|
|
714
|
-
e.component(
|
|
714
|
+
e.component(D.Deferred, ut);
|
|
715
715
|
}
|
|
716
|
-
var ft =
|
|
717
|
-
let a =
|
|
718
|
-
if (!e || !
|
|
716
|
+
var ft = C(), pt = x(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
|
|
717
|
+
let a = b(), [o] = (0, Te.useState)(() => new We()), s = y(), u = t || _, d = w(), f = le();
|
|
718
|
+
if (!e || !c(e) || !r) return null;
|
|
719
719
|
let p = d.targetDataItemId;
|
|
720
720
|
if (!p && d.targetInternalKey) {
|
|
721
721
|
let t = e.dimensions.find((e) => e.dataItem.internalKey === d.targetInternalKey);
|
|
722
|
-
t && (p =
|
|
722
|
+
t && (p = l(t.dataItem));
|
|
723
723
|
}
|
|
724
724
|
let m = {
|
|
725
725
|
...i,
|
|
@@ -731,8 +731,8 @@ var ft = w(), pt = S(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizPropert
|
|
|
731
731
|
...i.disable,
|
|
732
732
|
multiDimSelection: !0
|
|
733
733
|
}
|
|
734
|
-
}, v = o.compile(e, u, n, r, m, h.Treemap, a,
|
|
735
|
-
return v ? /* @__PURE__ */ (0, ft.jsx)(
|
|
734
|
+
}, v = o.compile(e, u, n, r, m, h.Treemap, a, s, f);
|
|
735
|
+
return v ? /* @__PURE__ */ (0, ft.jsx)(se, {
|
|
736
736
|
config: g,
|
|
737
737
|
definition: v,
|
|
738
738
|
size: r,
|