@astrato-io/visualizations 0.10.0 → 0.11.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 (138) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/README.md +22 -4
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +59 -145
  5. package/chunks/{Button-CCF851ea.js → Button-CPG4WX8X.js} +3 -3
  6. package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-PSLW8HmD.js} +12 -12
  7. package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
  8. package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-KQ2EQlGL.js} +16 -16
  9. package/chunks/{MenuOption-CQpT79AP.js → MenuOption-B-6K7kks.js} +151 -151
  10. package/chunks/{Title-C-p4ZarD.js → Title-BmvwZYkh.js} +32 -32
  11. package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-CFmH6gUN.js} +11 -11
  12. package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
  13. package/chunks/{bar-layout-DStC-GNV.js → bar-layout-BNou0dZF.js} +2 -2
  14. package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-BkhO7sDd.js} +55 -53
  15. package/chunks/{builder-CScg1TOS.js → builder-CNjuqD2z.js} +107 -56
  16. package/chunks/category-axis-D1OVyMrr.js +20 -0
  17. package/chunks/{coloring-9jU3s_-p.js → coloring-BOiP0rmn.js} +54 -54
  18. package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
  19. package/chunks/defaults-B5_8S-J-.js +3 -0
  20. package/chunks/{definitions-C4grxhye.js → definitions-AS9GcavE.js} +263 -242
  21. package/chunks/{escobar-CjirINHP.js → escobar-cQ1eQ64G.js} +8528 -8461
  22. package/chunks/{extend-preset-D-l9u_we.js → extend-preset-BlCbcXKR.js} +421 -421
  23. package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CI7dDNM1.js} +12 -12
  24. package/chunks/{filtering-C1zakrrX.js → filtering-Dwi7hDPZ.js} +263 -263
  25. package/chunks/handlers-C63NVo7i.js +15433 -0
  26. package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-CBlxEu3s.js} +8 -8
  27. package/chunks/{isEqual-Ch9OEye3.js → isEqual-BdHo6wqq.js} +1 -1
  28. package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-C1nlVUwL.js} +9 -9
  29. package/chunks/line.compiler-DCv3h42f.js +198 -0
  30. package/chunks/linear-Bq_r9l5S.js +264 -0
  31. package/chunks/{logger-CKRjhSHQ.js → logger-Bc-DqDM_.js} +72 -72
  32. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  33. package/chunks/{map.compiler-CKzorLgK.js → map.compiler-CRO6XpdI.js} +43 -45
  34. package/chunks/measure-format-default-B6ghxih7.js +22 -0
  35. package/chunks/{metadata-Bb9pTXrq.js → metadata-CtkvZEhS.js} +1 -1
  36. package/chunks/number.compiler-kV4lobCZ.js +57 -0
  37. package/chunks/{operations-DZoY50VX.js → operations-COl9wgqi.js} +9893 -9831
  38. package/chunks/{range-D1BTmFMp.js → range-CMJ5yc5Z.js} +2 -2
  39. package/chunks/{react-dom-Dgv2azN2.js → react-dom-BjsCbYHq.js} +76 -76
  40. package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-DFHi3Wkr.js} +1 -1
  41. package/chunks/{requirements-NHNrR8Ie.js → requirements-C5YLmHKe.js} +251 -227
  42. package/chunks/{shared-UitWpq1J.js → shared-DyqxOie0.js} +290 -278
  43. package/chunks/standalone-06i1wmIX.js +6 -0
  44. package/chunks/{standalone-DtBk_iUz.js → standalone-9jrQ3zJT.js} +10 -10
  45. package/chunks/standalone-B6zUvxNQ.js +357 -0
  46. package/chunks/{standalone-Bnnr87pc.js → standalone-BYK2U0Vd.js} +418 -679
  47. package/chunks/standalone-Be5APcVv.js +762 -0
  48. package/chunks/standalone-Bp4G3MDx.js +396 -0
  49. package/chunks/{standalone-CbPk8bKn.js → standalone-BrjtMIdd.js} +132 -132
  50. package/chunks/{standalone-BOzHA_d4.js → standalone-Bsfz5vnJ.js} +57 -57
  51. package/chunks/standalone-BuXpKMnc.js +2 -0
  52. package/chunks/standalone-CIjNYyya.js +8378 -0
  53. package/chunks/{standalone-B0U6c3su.js → standalone-CS5VGoja.js} +358 -358
  54. package/chunks/standalone-CUGt2FUF.js +2 -0
  55. package/chunks/{standalone-BapqaniK.js → standalone-ChfEHb28.js} +2299 -1072
  56. package/chunks/standalone-CnF2OYLQ.js +355 -0
  57. package/chunks/standalone-CznEEiq3.js +422 -0
  58. package/chunks/{standalone-Ck63MZzj.js → standalone-D9k5SCd8.js} +165 -165
  59. package/chunks/{standalone-CRdDZYeM.js → standalone-DYVYccmY.js} +855 -855
  60. package/chunks/{standalone-CVknVdUC.js → standalone-DaNxWIKn.js} +27 -27
  61. package/chunks/{standalone-swGs70tD.js → standalone-Db_HNuWx.js} +50 -50
  62. package/chunks/standalone-DcuE8KBa.js +287 -0
  63. package/chunks/{standalone-U0WJwFlG.js → standalone-I5kRIsp8.js} +97 -97
  64. package/chunks/{standalone-BBu90BhK.js → standalone-K2OvRAQM.js} +125 -125
  65. package/chunks/{standalone-DCFY1MAV.js → standalone-c4CPN6ug.js} +4634 -4633
  66. package/chunks/{standalone-ByKKqT5L.js → standalone-iOnJhCvA.js} +302 -302
  67. package/chunks/standalone-pCrzBiTy.js +773 -0
  68. package/chunks/standalone-qrZaimgC.js +689 -0
  69. package/chunks/standalone-yqDJ8h3K.js +1012 -0
  70. package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-CMH_dtYs.js} +29 -29
  71. package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-BfxBzhhH.js} +1 -1
  72. package/chunks/{utils-3Igg6xmO.js → utils-BdJrEeIQ.js} +4037 -4015
  73. package/chunks/{view-DdMLZySj.js → view-Q-_XIrWE.js} +1615 -1615
  74. package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-BwS0xUqs.js} +1723 -1693
  75. package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-D_ooGNWI.js} +4006 -3994
  76. package/definitions.js +2 -2
  77. package/docs/operations/astrato-app-filter-bar.md +1 -1
  78. package/docs/operations/bar.md +30 -1
  79. package/docs/operations/combo.md +30 -1
  80. package/docs/operations/date-picker.md +1 -1
  81. package/docs/operations/distribution-gauge.md +1 -1
  82. package/docs/operations/dot.md +1 -1
  83. package/docs/operations/filter.md +1 -1
  84. package/docs/operations/gauge.md +1 -1
  85. package/docs/operations/heatMap.md +1 -1
  86. package/docs/operations/histogram.md +1 -1
  87. package/docs/operations/iframe.md +1 -1
  88. package/docs/operations/image.md +1 -1
  89. package/docs/operations/index.md +5 -4
  90. package/docs/operations/line.md +48 -1
  91. package/docs/operations/map.md +5274 -0
  92. package/docs/operations/number.md +1 -1
  93. package/docs/operations/pie.md +1 -1
  94. package/docs/operations/radar.md +1 -1
  95. package/docs/operations/sankey.md +1 -1
  96. package/docs/operations/scatter.md +1 -1
  97. package/docs/operations/shape.md +1 -1
  98. package/docs/operations/simpleTextObject.md +1 -1
  99. package/docs/operations/slider.md +1 -1
  100. package/docs/operations/table.md +1 -1
  101. package/docs/operations/tree.md +1 -1
  102. package/docs/operations/treemap.md +1 -1
  103. package/docs/operations/waterfall.md +1 -1
  104. package/docs/operations/word-cloud.md +1 -1
  105. package/getters.js +3 -3
  106. package/index.js +528 -504
  107. package/metadata.js +2 -2
  108. package/operations.js +6 -6
  109. package/package.json +73 -68
  110. package/src/definitions/index.d.ts +1 -1
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +34 -53
  112. package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
  113. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  115. package/src/definitions/model/definitions/schemas/common.schema.d.ts +14 -2
  116. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  117. package/src/definitions/model/definitions/schemas/line.schema.d.ts +1 -1
  118. package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
  119. package/src/types.d.ts +28 -28
  120. package/src/visualization-catalog.d.ts +3 -0
  121. package/styles.css +1 -1
  122. package/chunks/FieldTypeIcon-D_MzsdfY.js +0 -22
  123. package/chunks/defaults-cyNhn37t.js +0 -3
  124. package/chunks/handlers-ZviIUC-j.js +0 -15387
  125. package/chunks/line.compiler-De5fiKuR.js +0 -198
  126. package/chunks/number.compiler-CaTmJkmi.js +0 -53
  127. package/chunks/standalone-BEekPuA12.js +0 -357
  128. package/chunks/standalone-BR2JuRIC.js +0 -422
  129. package/chunks/standalone-BwJqDj2Z.js +0 -396
  130. package/chunks/standalone-CRfDOO1x.js +0 -287
  131. package/chunks/standalone-DZDGX3aa.js +0 -518
  132. package/chunks/standalone-DhfgeJIk.js +0 -1012
  133. package/chunks/standalone-DibjA73M.js +0 -6
  134. package/chunks/standalone-DxBAyqAu.js +0 -772
  135. package/chunks/standalone-KMQPsNsq.js +0 -2
  136. package/chunks/standalone-MBLSvsrY.js +0 -2
  137. package/chunks/standalone-wgFAVnnm.js +0 -355
  138. package/chunks/standalone-xGV0dqPV.js +0 -689
@@ -1,10 +1,10 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { $o as t, cc as n, io as r, oa as i, ro as a } from "./visualization-filters-CzvFHE6M.js";
3
- import { U as o, W as s, ci as c, f as l, jt as u, zr as d } from "./utils-3Igg6xmO.js";
2
+ import { fa as t, gc as n, lo as r, ss as i, uo as a } from "./visualization-filters-BwS0xUqs.js";
3
+ import { Br as o, G as s, Mt as c, W as l, f as u, li as d } from "./utils-BdJrEeIQ.js";
4
4
  import { t as f } from "./stroke-dash-UgMEcCS4.js";
5
- import { s as p } from "./coloring-9jU3s_-p.js";
6
- var m = /* @__PURE__ */ e(c()), h = (e) => e === r.Line || e === r.Elbow, g = {
7
- shape: r.Square,
5
+ import { c as p } from "./coloring-BOiP0rmn.js";
6
+ var m = /* @__PURE__ */ e(d()), h = (e) => e === a.Line || e === a.Elbow, g = {
7
+ shape: a.Square,
8
8
  backgroundColor: { code: "#c4c4c4" },
9
9
  backgroundType: "color",
10
10
  lineThickness: 2,
@@ -13,36 +13,36 @@ var m = /* @__PURE__ */ e(c()), h = (e) => e === r.Line || e === r.Elbow, g = {
13
13
  borderRadiusY: 0,
14
14
  preserveAspectRatio: !0,
15
15
  strokeColor: { code: "#8d8d8d" },
16
- imageFit: a.Fill,
16
+ imageFit: r.Fill,
17
17
  strokeDash: void 0,
18
18
  imageURL: void 0,
19
19
  scale: 1,
20
20
  rotate: 0,
21
21
  heightBasedSize: !1
22
- }, _ = (e, n) => {
23
- let i = { ...e?.shapeSettings }, a = 0, o = 0, s = i?.borderEnabled ?? g.borderEnabled;
24
- (i?.shape === r.Square || i?.shape === r.Rectangle) && i?.borderRadius && (a = i?.borderRadius, o = a, !i?.preserveAspectRatio && n && (n.width > n.height ? o = (n.width || 1) / (n.height || 1) * o : a = (n.height || 1) / (n.width || 1) * a)), h(i?.shape) && (i.backgroundColor = { code: "none" }, s = !0);
25
- let c = i?.rotate ?? g.rotate;
26
- i?.shape === r.Line && i?.heightBasedSize && (c += 90);
27
- let l = i?.borderStyle === t.Line ? void 0 : i?.strokeDash ?? g.strokeDash;
22
+ }, _ = (e, t) => {
23
+ let n = { ...e?.shapeSettings }, r = 0, o = 0, s = n?.borderEnabled ?? g.borderEnabled;
24
+ (n?.shape === a.Square || n?.shape === a.Rectangle) && n?.borderRadius && (r = n?.borderRadius, o = r, !n?.preserveAspectRatio && t && (t.width > t.height ? o = (t.width || 1) / (t.height || 1) * o : r = (t.height || 1) / (t.width || 1) * r)), h(n?.shape) && (n.backgroundColor = { code: "none" }, s = !0);
25
+ let c = n?.rotate ?? g.rotate;
26
+ n?.shape === a.Line && n?.heightBasedSize && (c += 90);
27
+ let l = n?.borderStyle === i.Line ? void 0 : n?.strokeDash ?? g.strokeDash;
28
28
  return {
29
- backgroundType: i?.backgroundType ?? "color",
30
- shape: i?.shape ?? g.shape,
31
- backgroundColor: i?.backgroundColor?.code ? i?.backgroundColor : g.backgroundColor,
32
- imageURL: i?.imageURL ?? g.imageURL,
33
- imageFit: i?.imageFit ?? g.imageFit,
29
+ backgroundType: n?.backgroundType ?? "color",
30
+ shape: n?.shape ?? g.shape,
31
+ backgroundColor: n?.backgroundColor?.code ? n?.backgroundColor : g.backgroundColor,
32
+ imageURL: n?.imageURL ?? g.imageURL,
33
+ imageFit: n?.imageFit ?? g.imageFit,
34
34
  strokeDash: l,
35
- lineThickness: i?.lineThickness ?? g.lineThickness,
35
+ lineThickness: n?.lineThickness ?? g.lineThickness,
36
36
  borderEnabled: s,
37
- strokeColor: i?.strokeColor?.code ? i?.strokeColor : g.strokeColor,
38
- preserveAspectRatio: i?.preserveAspectRatio ?? g.preserveAspectRatio,
39
- scale: i?.scale ?? g.scale,
37
+ strokeColor: n?.strokeColor?.code ? n?.strokeColor : g.strokeColor,
38
+ preserveAspectRatio: n?.preserveAspectRatio ?? g.preserveAspectRatio,
39
+ scale: n?.scale ?? g.scale,
40
40
  rotate: c,
41
- heightBasedSize: i?.heightBasedSize ?? g.heightBasedSize,
42
- borderRadiusX: a,
41
+ heightBasedSize: n?.heightBasedSize ?? g.heightBasedSize,
42
+ borderRadiusX: r,
43
43
  borderRadiusY: o
44
44
  };
45
- }, v = d(), y = ({ ...e }) => /* @__PURE__ */ (0, v.jsx)("path", {
45
+ }, v = o(), y = ({ ...e }) => /* @__PURE__ */ (0, v.jsx)("path", {
46
46
  d: "M0,50 L70,40 L70,20 L100,50 L70,80 L70,60 Z",
47
47
  vectorEffect: "non-scaling-stroke",
48
48
  ...e
@@ -83,14 +83,14 @@ var m = /* @__PURE__ */ e(c()), h = (e) => e === r.Line || e === r.Elbow, g = {
83
83
  ...e
84
84
  }), E = (e) => {
85
85
  switch (e) {
86
- case r.Circle: return b;
87
- case r.Rectangle:
88
- case r.Square: return w;
89
- case r.Triangle: return T;
90
- case r.Hexagon: return S;
91
- case r.Line: return C;
92
- case r.Arrow: return y;
93
- case r.Elbow: return x;
86
+ case a.Circle: return b;
87
+ case a.Rectangle:
88
+ case a.Square: return w;
89
+ case a.Triangle: return T;
90
+ case a.Hexagon: return S;
91
+ case a.Line: return C;
92
+ case a.Arrow: return y;
93
+ case a.Elbow: return x;
94
94
  default: return w;
95
95
  }
96
96
  }, D = s({
@@ -111,64 +111,64 @@ var m = /* @__PURE__ */ e(c()), h = (e) => e === r.Line || e === r.Elbow, g = {
111
111
  height: "100%",
112
112
  transition: "ease-in-out 300ms"
113
113
  }
114
- }), O = ({ patternId: e, imgUrl: t, onLoadCallback: n, imageFit: r = a.Fill }) => /* @__PURE__ */ (0, v.jsx)("defs", { children: /* @__PURE__ */ (0, v.jsx)("pattern", {
114
+ }), O = ({ patternId: e, imgUrl: t, onLoadCallback: n, imageFit: i = r.Fill }) => /* @__PURE__ */ (0, v.jsx)("defs", { children: /* @__PURE__ */ (0, v.jsx)("pattern", {
115
115
  id: e,
116
116
  viewBox: "0 0 1 1",
117
117
  patternUnits: "objectBoundingBox",
118
118
  width: "100%",
119
119
  height: "100%",
120
- preserveAspectRatio: r,
120
+ preserveAspectRatio: i,
121
121
  children: /* @__PURE__ */ (0, v.jsx)("image", {
122
122
  xlinkHref: t,
123
123
  x: "0",
124
124
  y: "0",
125
125
  width: "1",
126
126
  height: "1",
127
- preserveAspectRatio: r,
127
+ preserveAspectRatio: i,
128
128
  onLoad: n,
129
129
  onError: n
130
130
  })
131
- }) }), k = u(({ vSpec: e, vTheme: t, elementSize: a }) => {
132
- let s = t || i, c = _(e && n(e) ? e : void 0, a), u = D(), d = l(), y = E(c.shape), b = `${o()}-background-image-fill`, x = `${o()}-insideStroke`, S = p(s, c.backgroundColor?.code), C = p(s, c.strokeColor?.code), w = f(c.strokeDash), T = c.lineThickness ?? g.lineThickness, k = c.shape === r.Line ? T / 2 : T;
131
+ }) }), k = c(({ vSpec: e, vTheme: r, elementSize: i }) => {
132
+ let o = r || t, s = _(e && n(e) ? e : void 0, i), c = D(), d = u(), y = E(s.shape), b = `${l()}-background-image-fill`, x = `${l()}-insideStroke`, S = p(o, s.backgroundColor?.code), C = p(o, s.strokeColor?.code), w = f(s.strokeDash), T = s.lineThickness ?? g.lineThickness, k = s.shape === a.Line ? T / 2 : T;
133
133
  return (0, m.useEffect)(() => {
134
- (!c.imageURL || c.backgroundType === "color") && d();
134
+ (!s.imageURL || s.backgroundType === "color") && d();
135
135
  }, []), /* @__PURE__ */ (0, v.jsx)("div", {
136
- className: u.mainContainer,
136
+ className: c.mainContainer,
137
137
  "data-testid": "shape-container",
138
138
  children: /* @__PURE__ */ (0, v.jsxs)("svg", {
139
139
  viewBox: "0 0 100 100",
140
- className: u.svg,
141
- style: { transform: `rotate(${c.rotate ?? 0}deg) scale(${c.scale ?? 1})` },
142
- preserveAspectRatio: c.preserveAspectRatio ? "" : "none",
140
+ className: c.svg,
141
+ style: { transform: `rotate(${s.rotate ?? 0}deg) scale(${s.scale ?? 1})` },
142
+ preserveAspectRatio: s.preserveAspectRatio ? "" : "none",
143
143
  children: [
144
- c.backgroundType === "image" && c.imageURL !== void 0 ? /* @__PURE__ */ (0, v.jsx)(O, {
144
+ s.backgroundType === "image" && s.imageURL !== void 0 ? /* @__PURE__ */ (0, v.jsx)(O, {
145
145
  patternId: b,
146
- imgUrl: c.imageURL,
147
- imageFit: c.imageFit,
146
+ imgUrl: s.imageURL,
147
+ imageFit: s.imageFit,
148
148
  onLoadCallback: () => d()
149
149
  }) : null,
150
150
  /* @__PURE__ */ (0, v.jsx)("defs", { children: /* @__PURE__ */ (0, v.jsx)("clipPath", {
151
151
  id: x,
152
- className: u.shapeGroup,
153
- style: { opacity: c.opacity === void 0 ? 1 : c.opacity },
152
+ className: c.shapeGroup,
153
+ style: { opacity: s.opacity === void 0 ? 1 : s.opacity },
154
154
  children: /* @__PURE__ */ (0, v.jsx)(y, {
155
- rx: `${c.borderRadiusX ?? 0}px`,
156
- ry: `${c.borderRadiusY ?? 0}px`
155
+ rx: `${s.borderRadiusX ?? 0}px`,
156
+ ry: `${s.borderRadiusY ?? 0}px`
157
157
  })
158
158
  }) }),
159
159
  /* @__PURE__ */ (0, v.jsx)("g", {
160
- className: u.shapeGroup,
161
- style: { opacity: c.opacity === void 0 ? 1 : c.opacity },
162
- fill: c.imageURL && c.backgroundType === "image" ? `url(#${b})` : S,
160
+ className: c.shapeGroup,
161
+ style: { opacity: s.opacity === void 0 ? 1 : s.opacity },
162
+ fill: s.imageURL && s.backgroundType === "image" ? `url(#${b})` : S,
163
163
  stroke: C,
164
- strokeWidth: `${c.borderEnabled ? k : 0}px`,
164
+ strokeWidth: `${s.borderEnabled ? k : 0}px`,
165
165
  strokeDasharray: w,
166
166
  children: /* @__PURE__ */ (0, v.jsx)("g", {
167
- clipPath: h(c.shape) ? void 0 : `url(#${x})`,
167
+ clipPath: h(s.shape) ? void 0 : `url(#${x})`,
168
168
  children: /* @__PURE__ */ (0, v.jsx)(y, {
169
- rx: `${c.borderRadiusX ?? 0}px`,
170
- ry: `${c.borderRadiusY ?? 0}px`,
171
- ...c.shape === r.Line ? { heightBasedSize: c.heightBasedSize } : {}
169
+ rx: `${s.borderRadiusX ?? 0}px`,
170
+ ry: `${s.borderRadiusY ?? 0}px`,
171
+ ...s.shape === a.Line ? { heightBasedSize: s.heightBasedSize } : {}
172
172
  })
173
173
  })
174
174
  })
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./view-Q-_XIrWE.js";
2
+ export { e as DatePicker };