serverside_pivot 0.0.91 → 0.0.95

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 (166) hide show
  1. package/README.md +182 -182
  2. package/dist/react/chunks/{ContextMenu-Bt5_3bmD.mjs → ContextMenu-1G-o1ms9.mjs} +52 -49
  3. package/dist/react/chunks/{DetailDrawer-Eb4EpVHG.mjs → DetailDrawer-DCKIxSpW.mjs} +1 -1
  4. package/dist/react/chunks/{DetailSidePanel-BTcHOiKr.mjs → DetailSidePanel-DgUWPBQk.mjs} +1 -1
  5. package/dist/react/chunks/{DetailSurfaceContent-B3ZNKh7q.mjs → DetailSurfaceContent-BEL6xuaZ.mjs} +46 -37
  6. package/dist/react/chunks/{ECharts2dRenderer-C3Qv0uAa.mjs → ECharts2dRenderer-Dgkp9_1P.mjs} +412 -410
  7. package/dist/react/chunks/{ECharts3dRenderer-BB_7-fOt.mjs → ECharts3dRenderer-70VOp8V0.mjs} +2211 -3197
  8. package/dist/react/chunks/{EditSidePanel-C2cAvxlK.mjs → EditSidePanel-CygqVXLX.mjs} +77 -65
  9. package/dist/react/chunks/{InlineDetailPanel-BXLAw1o3.mjs → InlineDetailPanel-BUBRWdFW.mjs} +1 -1
  10. package/dist/react/chunks/{PivotCharts-Bw6Swoa3.mjs → PivotCharts-VX5-mEEp.mjs} +2206 -1396
  11. package/dist/react/chunks/{ReportEditor-D4V0ry2B.mjs → ReportEditor-B5j-CU9-.mjs} +614 -319
  12. package/dist/react/chunks/{SidebarPanel-xO59p_2o.mjs → SidebarPanel-LXUE6nPd.mjs} +1793 -1390
  13. package/dist/react/chunks/{SparklineDetailGraph-Bu85X7OJ.mjs → SparklineDetailGraph-Cfe2KcOp.mjs} +88 -58
  14. package/dist/react/chunks/installCanvasRenderer-C4h5pc1p.mjs +21174 -0
  15. package/dist/react/chunks/react-CDa-ADnG.mjs +31199 -0
  16. package/dist/react/chunks/{xlsx.mini.min-vfxHk3Ry.mjs → xlsx.mini.min-CzdkdH3N.mjs} +5 -5
  17. package/dist/react/components/Charts/ChartRenderers.d.ts +5 -73
  18. package/dist/react/components/Charts/ChartWorkspace.d.ts +3 -34
  19. package/dist/react/components/Charts/ECharts2dRenderer.d.ts +2 -5
  20. package/dist/react/components/Charts/ECharts3dRenderer.d.ts +2 -6
  21. package/dist/react/components/Charts/PivotCharts.d.ts +2 -9
  22. package/dist/react/components/Charts/chartEnhancements.d.ts +17 -66
  23. package/dist/react/components/Charts/chartExportPresentation.d.ts +5 -19
  24. package/dist/react/components/Charts/chartMath.d.ts +4 -4
  25. package/dist/react/components/Charts/useChartExportMenu.d.ts +4 -12
  26. package/dist/react/components/DashTanstackPivot.react.d.ts +36 -0
  27. package/dist/react/components/Filters/ColumnFilter.d.ts +2 -12
  28. package/dist/react/components/Filters/DateRangeFilter.d.ts +2 -7
  29. package/dist/react/components/Filters/FilterPopover.d.ts +2 -13
  30. package/dist/react/components/Filters/MultiSelectFilter.d.ts +2 -11
  31. package/dist/react/components/Filters/NumericRangeFilter.d.ts +2 -7
  32. package/dist/react/components/Notification.d.ts +2 -6
  33. package/dist/react/components/PivotAppBar.d.ts +2 -2
  34. package/dist/react/components/PivotErrorBoundary.d.ts +11 -7
  35. package/dist/react/components/PivotSmallComponents.d.ts +2 -3
  36. package/dist/react/components/PivotWorkspaceCanvas.d.ts +2 -5
  37. package/dist/react/components/PivotWorkspaceControls.d.ts +4 -8
  38. package/dist/react/components/PivotWorkspaceShell.d.ts +4 -12
  39. package/dist/react/components/RuntimeDataError.d.ts +2 -7
  40. package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +2 -13
  41. package/dist/react/components/Sidebar/ReportEditor.d.ts +7 -20
  42. package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +2 -13
  43. package/dist/react/components/Sidebar/SidebarPanel.d.ts +1 -2
  44. package/dist/react/components/Sidebar/ToolPanelSection.d.ts +2 -13
  45. package/dist/react/components/Sidebar/customCategoryUtils.d.ts +31 -62
  46. package/dist/react/components/Sidebar/formulaUtils.d.ts +16 -18
  47. package/dist/react/components/SkeletonRow.d.ts +2 -5
  48. package/dist/react/components/Table/ContextMenu.d.ts +2 -8
  49. package/dist/react/components/Table/DetailDrawer.d.ts +2 -11
  50. package/dist/react/components/Table/DetailSidePanel.d.ts +2 -11
  51. package/dist/react/components/Table/DetailSurfaceContent.d.ts +2 -11
  52. package/dist/react/components/Table/EditSidePanel.d.ts +2 -20
  53. package/dist/react/components/Table/EditableCell.d.ts +2 -28
  54. package/dist/react/components/Table/InlineDetailPanel.d.ts +2 -13
  55. package/dist/react/components/Table/PivotTableBody.d.ts +3 -3
  56. package/dist/react/components/Table/SparklineCell.d.ts +2 -17
  57. package/dist/react/components/Table/SparklineDetailGraph.d.ts +2 -5
  58. package/dist/react/components/Table/StatusBar.d.ts +2 -7
  59. package/dist/react/contexts/PivotConfigContext.d.ts +5 -33
  60. package/dist/react/contexts/PivotThemeContext.d.ts +7 -4
  61. package/dist/react/contexts/PivotValueDisplayContext.d.ts +5 -9
  62. package/dist/react/hooks/useChartState.d.ts +2 -71
  63. package/dist/react/hooks/useColumnDefs.d.ts +3 -68
  64. package/dist/react/hooks/useColumnVirtualizer.d.ts +1 -30
  65. package/dist/react/hooks/useDetailDrillThrough.d.ts +2 -36
  66. package/dist/react/hooks/useFilteredData.d.ts +4 -2
  67. package/dist/react/hooks/useFormatState.d.ts +2 -39
  68. package/dist/react/hooks/usePersistence.d.ts +4 -5
  69. package/dist/react/hooks/usePivotFieldInteractions.d.ts +2 -23
  70. package/dist/react/hooks/usePivotNormalization.d.ts +127 -461
  71. package/dist/react/hooks/usePivotRenderCounter.d.ts +2 -1
  72. package/dist/react/hooks/usePivotTransactions.d.ts +2 -23
  73. package/dist/react/hooks/useRenderHelpers.d.ts +3 -71
  74. package/dist/react/hooks/useReportMode.d.ts +2 -28
  75. package/dist/react/hooks/useRowCache.d.ts +16 -15
  76. package/dist/react/hooks/useRuntimeDataCommit.d.ts +2 -22
  77. package/dist/react/hooks/useRuntimeProfiling.d.ts +2 -13
  78. package/dist/react/hooks/useRuntimeTransport.d.ts +2 -18
  79. package/dist/react/hooks/useServerSideRowModel.d.ts +1 -50
  80. package/dist/react/hooks/useServerSideViewportController.d.ts +1 -64
  81. package/dist/react/hooks/useSidebarUI.d.ts +2 -32
  82. package/dist/react/hooks/useStickyStyles.d.ts +2 -23
  83. package/dist/react/index.mjs +15 -9
  84. package/dist/react/presentation/headerFormatting.d.ts +28 -11
  85. package/dist/react/presentation/safeCellContent.d.ts +22 -5
  86. package/dist/react/react.d.ts +3 -0
  87. package/dist/react/runtime/PivotRuntimeRoot.d.ts +1 -1
  88. package/dist/react/runtime/client/clientPivotTransport.d.ts +5 -1
  89. package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +50 -0
  90. package/dist/react/runtime/client/types.d.ts +5 -0
  91. package/dist/react/runtime/createRuntimeCellPresentation.d.ts +2 -7
  92. package/dist/react/runtime/createRuntimeExportCommands.d.ts +2 -71
  93. package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +2 -9
  94. package/dist/react/runtime/displayColumnOrder.d.ts +4 -4
  95. package/dist/react/runtime/httpTransport.d.ts +1 -0
  96. package/dist/react/runtime/runtime-contract.generated.d.ts +3 -0
  97. package/dist/react/runtime/runtimeContract.d.ts +3 -0
  98. package/dist/react/runtime/runtimeDomains.d.ts +18 -0
  99. package/dist/react/runtime/useChartWorkspacePresentation.d.ts +2 -45
  100. package/dist/react/runtime/useCoreRuntime.d.ts +4 -1
  101. package/dist/react/runtime/useCoreRuntimeStage.d.ts +1 -1
  102. package/dist/react/runtime/useRuntimeCellSelection.d.ts +2 -40
  103. package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +7 -31
  104. package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +2 -13
  105. package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +2 -9
  106. package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +2 -14
  107. package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +2 -28
  108. package/dist/react/runtime/useRuntimeChartModels.d.ts +2 -62
  109. package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +2 -12
  110. package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +2 -4
  111. package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +2 -152
  112. package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +2 -7
  113. package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +2 -55
  114. package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +2 -26
  115. package/dist/react/runtime/useRuntimeColumnCommands.d.ts +2 -22
  116. package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +2 -11
  117. package/dist/react/runtime/useRuntimeDataRetry.d.ts +2 -12
  118. package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +2 -11
  119. package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +2 -18
  120. package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +2 -28
  121. package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +2 -35
  122. package/dist/react/runtime/useRuntimeEditDispatch.d.ts +2 -43
  123. package/dist/react/runtime/useRuntimeEditOwnership.d.ts +2 -28
  124. package/dist/react/runtime/useRuntimeEditPresentation.d.ts +2 -32
  125. package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +2 -24
  126. package/dist/react/runtime/useRuntimeExportState.d.ts +5 -5
  127. package/dist/react/runtime/useRuntimeFilterPopover.d.ts +2 -19
  128. package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +2 -40
  129. package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +2 -27
  130. package/dist/react/runtime/useRuntimeRequestSession.d.ts +2 -76
  131. package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +2 -43
  132. package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +2 -15
  133. package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +2 -28
  134. package/dist/react/runtime/useRuntimeRowEditing.d.ts +2 -18
  135. package/dist/react/runtime/useRuntimeRowSelection.d.ts +2 -14
  136. package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +2 -30
  137. package/dist/react/runtime/useRuntimeStructuralSync.d.ts +2 -61
  138. package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +2 -5
  139. package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +2 -196
  140. package/dist/react/runtime/useRuntimeViewportTableData.d.ts +2 -23
  141. package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +2 -109
  142. package/dist/react/utils/Icons.d.ts +2 -45
  143. package/dist/react/utils/chartModelBuilders.d.ts +76 -230
  144. package/dist/react/utils/columnOrder.d.ts +8 -12
  145. package/dist/react/utils/dataBars.d.ts +3 -7
  146. package/dist/react/utils/domEvents.d.ts +1 -1
  147. package/dist/react/utils/editing.d.ts +12 -47
  148. package/dist/react/utils/exportUtils.d.ts +30 -101
  149. package/dist/react/utils/fieldPanelLayout.d.ts +12 -61
  150. package/dist/react/utils/filterOptions.d.ts +4 -4
  151. package/dist/react/utils/helpers.d.ts +16 -18
  152. package/dist/react/utils/horizontalViewport.d.ts +1 -12
  153. package/dist/react/utils/layoutRows.d.ts +3 -3
  154. package/dist/react/utils/measureAxis.d.ts +6 -22
  155. package/dist/react/utils/pivotLayoutUtils.d.ts +3 -2
  156. package/dist/react/utils/pivotProfiler.d.ts +3 -3
  157. package/dist/react/utils/reportEditorSelection.d.ts +1 -23
  158. package/dist/react/utils/rowSpanning.d.ts +3 -6
  159. package/dist/react/utils/savedReports.d.ts +4 -7
  160. package/dist/react/utils/sorting.d.ts +8 -14
  161. package/dist/react/utils/sparklineDetail.d.ts +5 -8
  162. package/dist/react/utils/sparklines.d.ts +10 -78
  163. package/dist/react/utils/styles.d.ts +19 -308
  164. package/package.json +114 -114
  165. package/dist/react/chunks/installCanvasRenderer-B7sfDGoL.mjs +0 -21281
  166. package/dist/react/chunks/react-CPZZxtSo.mjs +0 -26999
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { S as et, T as nt, U as rt, W as w, X as at } from "./react-CPZZxtSo.mjs";
2
+ import { T as et, U as nt, W as rt, X as w, Y as at } from "./react-CDa-ADnG.mjs";
3
3
  function it({ modal: M, theme: n }) {
4
4
  const l = Array.isArray(M && M.points) ? M.points : [], S = M && M.sparklineConfig ? M.sparklineConfig : {}, s = ["line", "area", "column", "bar"].includes(S.type) ? S.type : "line", x = 640, i = 300, a = 46, [D, A] = e.useState(null), [X, v] = e.useState(null);
5
5
  e.useEffect(() => {
@@ -19,25 +19,34 @@ function it({ modal: M, theme: n }) {
19
19
  ), E = nt(m), y = e.useMemo(
20
20
  () => rt(E, s),
21
21
  [E, s]
22
- ), k = e.useMemo(() => s === "bar" ? f.bars.map((t, r) => ({
23
- ...t,
24
- pointIndex: r,
25
- fullIndex: u.start + r,
26
- markerX: Number(t.value) >= 0 ? t.x + t.width : t.x,
27
- markerY: t.y + t.height / 2
28
- })) : s === "column" ? f.bars.map((t, r) => ({
29
- ...t,
30
- pointIndex: r,
31
- fullIndex: u.start + r,
32
- markerX: t.x + t.width / 2,
33
- markerY: Number(t.value) >= 0 ? t.y : t.y + t.height
34
- })) : f.points.map((t, r) => ({
35
- ...t,
36
- pointIndex: r,
37
- fullIndex: u.start + r,
38
- markerX: t.x,
39
- markerY: t.y
40
- })), [f.bars, f.points, u.start, s]), B = e.useMemo(() => Array.from({ length: 5 }, (r, c) => {
22
+ ), k = e.useMemo(() => s === "bar" ? f.bars.map(
23
+ /** @param {any} [bar] @param {any} [index] @returns {any} */
24
+ (t, r) => ({
25
+ ...t,
26
+ pointIndex: r,
27
+ fullIndex: u.start + r,
28
+ markerX: Number(t.value) >= 0 ? t.x + t.width : t.x,
29
+ markerY: t.y + t.height / 2
30
+ })
31
+ ) : s === "column" ? f.bars.map(
32
+ /** @param {any} [bar] @param {any} [index] @returns {any} */
33
+ (t, r) => ({
34
+ ...t,
35
+ pointIndex: r,
36
+ fullIndex: u.start + r,
37
+ markerX: t.x + t.width / 2,
38
+ markerY: Number(t.value) >= 0 ? t.y : t.y + t.height
39
+ })
40
+ ) : f.points.map(
41
+ /** @param {any} [point] @param {any} [index] @returns {any} */
42
+ (t, r) => ({
43
+ ...t,
44
+ pointIndex: r,
45
+ fullIndex: u.start + r,
46
+ markerX: t.x,
47
+ markerY: t.y
48
+ })
49
+ ), [f.bars, f.points, u.start, s]), B = e.useMemo(() => Array.from({ length: 5 }, (r, c) => {
41
50
  const d = c / 4;
42
51
  return {
43
52
  value: y.max - (y.max - y.min) * d,
@@ -52,18 +61,27 @@ function it({ modal: M, theme: n }) {
52
61
  Math.floor(t * 0.5),
53
62
  Math.floor(t * 0.75),
54
63
  t
55
- ])).map((c) => {
56
- const d = m[c], p = k.find((h) => h.pointIndex === c);
57
- return !d || !p ? null : { index: c, label: d.label, x: p.markerX };
58
- }).filter(Boolean);
64
+ ])).map(
65
+ /** @param {any} [index] @returns {any} */
66
+ (c) => {
67
+ const d = m[c], p = k.find(
68
+ /** @param {any} [candidate] @returns {any} */
69
+ (h) => h.pointIndex === c
70
+ );
71
+ return !d || !p ? null : { index: c, label: d.label, x: p.markerX };
72
+ }
73
+ ).filter(Boolean);
59
74
  }, [k, m]), $ = S.color || n.primary || "#2563EB", H = S.positiveColor || (n.isDark ? "#86EFAC" : "#2F855A"), U = S.negativeColor || (n.isDark ? "#FDA4AF" : "#B91C1C"), q = E.length ? w(Math.min(...E)) : "", J = E.length ? w(Math.max(...E)) : "", T = m[0], V = m[m.length - 1], P = y.min < 0 && y.max > 0 ? at(0, y.min, y.max, a, i - a) : null, o = D !== null && k[D] ? k[D] : null, R = 172, Z = 54, L = o ? Math.max(10, Math.min(x - R - 10, o.markerX + (o.markerX > x * 0.66 ? -R - 14 : 14))) : 0, N = o ? Math.max(10, Math.min(i - Z - 10, o.markerY + (o.markerY > i * 0.55 ? -Z - 14 : 14))) : 0, K = e.useCallback((t) => {
60
75
  if (!k.length) return;
61
76
  const r = t.currentTarget.getBoundingClientRect(), c = (t.clientX - r.left) / Math.max(r.width, 1) * x, d = (t.clientY - r.top) / Math.max(r.height, 1) * i;
62
77
  let p = 0, h = Number.POSITIVE_INFINITY;
63
- k.forEach((I, W) => {
64
- const C = c - I.markerX, F = d - I.markerY, G = s === "bar" ? C * C + F * F : Math.abs(C) + Math.abs(F) * 0.08;
65
- G < h && (h = G, p = W);
66
- }), A(p);
78
+ k.forEach(
79
+ /** @param {any} [mark] @param {any} [index] @returns {any} */
80
+ (I, W) => {
81
+ const C = c - I.markerX, F = d - I.markerY, G = s === "bar" ? C * C + F * F : Math.abs(C) + Math.abs(F) * 0.08;
82
+ G < h && (h = G, p = W);
83
+ }
84
+ ), A(p);
67
85
  }, [k, i, s, x]), O = e.useCallback((t, r) => {
68
86
  if (l.length <= 0) {
69
87
  v(null);
@@ -152,41 +170,53 @@ function it({ modal: M, theme: n }) {
152
170
  style: { display: "block", width: "100%", height: "320px", cursor: k.length ? "crosshair" : "default" }
153
171
  },
154
172
  /* @__PURE__ */ e.createElement("rect", { x: "0", y: "0", width: x, height: i, fill: n.background || "#fff", opacity: "0.72" }),
155
- B.map((t, r) => /* @__PURE__ */ e.createElement("g", { key: `y-tick-${r}` }, /* @__PURE__ */ e.createElement("line", { x1: a, y1: t.y, x2: x - a, y2: t.y, stroke: n.border, strokeWidth: "1", opacity: r === B.length - 1 ? 0.9 : 0.45, strokeDasharray: r === B.length - 1 ? "" : "4 6" }), /* @__PURE__ */ e.createElement("text", { x: a - 8, y: t.y + 4, fill: n.textSec, fontSize: "10", textAnchor: "end" }, w(t.value)))),
156
- j.map((t) => /* @__PURE__ */ e.createElement("g", { key: `x-tick-${t.index}` }, /* @__PURE__ */ e.createElement("line", { x1: t.x, y1: a, x2: t.x, y2: i - a, stroke: n.border, strokeWidth: "1", opacity: "0.28", strokeDasharray: "3 8" }), /* @__PURE__ */ e.createElement("text", { x: t.x, y: i - 12, fill: n.textSec, fontSize: "10", textAnchor: "middle" }, String(t.label || "").slice(0, 18)))),
173
+ B.map(
174
+ /** @param {any} [tick] @param {any} [index] @returns {any} */
175
+ (t, r) => /* @__PURE__ */ e.createElement("g", { key: `y-tick-${r}` }, /* @__PURE__ */ e.createElement("line", { x1: a, y1: t.y, x2: x - a, y2: t.y, stroke: n.border, strokeWidth: "1", opacity: r === B.length - 1 ? 0.9 : 0.45, strokeDasharray: r === B.length - 1 ? "" : "4 6" }), /* @__PURE__ */ e.createElement("text", { x: a - 8, y: t.y + 4, fill: n.textSec, fontSize: "10", textAnchor: "end" }, w(t.value)))
176
+ ),
177
+ j.map(
178
+ /** @param {any} [tick] @returns {any} */
179
+ (t) => /* @__PURE__ */ e.createElement("g", { key: `x-tick-${t.index}` }, /* @__PURE__ */ e.createElement("line", { x1: t.x, y1: a, x2: t.x, y2: i - a, stroke: n.border, strokeWidth: "1", opacity: "0.28", strokeDasharray: "3 8" }), /* @__PURE__ */ e.createElement("text", { x: t.x, y: i - 12, fill: n.textSec, fontSize: "10", textAnchor: "middle" }, String(t.label || "").slice(0, 18)))
180
+ ),
157
181
  P !== null ? /* @__PURE__ */ e.createElement("line", { x1: a, y1: P, x2: x - a, y2: P, stroke: n.textSec, strokeWidth: "1.2", opacity: "0.5" }) : null,
158
182
  /* @__PURE__ */ e.createElement("line", { x1: a, y1: i - a, x2: x - a, y2: i - a, stroke: n.border, strokeWidth: "1.2" }),
159
183
  /* @__PURE__ */ e.createElement("line", { x1: a, y1: a, x2: a, y2: i - a, stroke: n.border, strokeWidth: "1.2" }),
160
184
  s === "area" && f.areaPath ? /* @__PURE__ */ e.createElement("path", { d: f.areaPath, fill: $, opacity: S.areaOpacity || 0.14 }) : null,
161
- s === "line" || s === "area" ? /* @__PURE__ */ e.createElement(e.Fragment, null, f.linePath ? /* @__PURE__ */ e.createElement("path", { d: f.linePath, fill: "none", stroke: $, strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }) : null, k.map((t, r) => /* @__PURE__ */ e.createElement(
162
- "circle",
163
- {
164
- key: `${t.label || "point"}-${r}`,
165
- "data-pivot-sparkline-detail-point": "true",
166
- cx: t.markerX,
167
- cy: t.markerY,
168
- r: o && o.pointIndex === t.pointIndex ? "5.4" : "3.6",
169
- fill: $,
170
- stroke: n.background,
171
- strokeWidth: "1.4"
172
- },
173
- /* @__PURE__ */ e.createElement("title", null, `${t.label}: ${w(t.value, 6)}`)
174
- ))) : null,
175
- s === "column" || s === "bar" ? k.map((t, r) => /* @__PURE__ */ e.createElement(
176
- "rect",
177
- {
178
- key: `${t.label || "bar"}-${r}`,
179
- x: t.x,
180
- y: t.y,
181
- width: t.width,
182
- height: t.height,
183
- rx: "2",
184
- ry: "2",
185
- fill: t.positive ? H : U,
186
- opacity: o && o.fullIndex === t.fullIndex ? 1 : 0.88
187
- },
188
- /* @__PURE__ */ e.createElement("title", null, `${t.label}: ${w(t.value, 6)}`)
185
+ s === "line" || s === "area" ? /* @__PURE__ */ e.createElement(e.Fragment, null, f.linePath ? /* @__PURE__ */ e.createElement("path", { d: f.linePath, fill: "none", stroke: $, strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }) : null, k.map(
186
+ /** @param {any} [point] @param {any} [index] @returns {any} */
187
+ (t, r) => /* @__PURE__ */ e.createElement(
188
+ "circle",
189
+ {
190
+ key: `${t.label || "point"}-${r}`,
191
+ "data-pivot-sparkline-detail-point": "true",
192
+ cx: t.markerX,
193
+ cy: t.markerY,
194
+ r: o && o.pointIndex === t.pointIndex ? "5.4" : "3.6",
195
+ fill: $,
196
+ stroke: n.background,
197
+ strokeWidth: "1.4"
198
+ },
199
+ /* @__PURE__ */ e.createElement("title", null, `${t.label}: ${w(t.value, 6)}`)
200
+ )
189
201
  )) : null,
202
+ s === "column" || s === "bar" ? k.map(
203
+ /** @param {any} [bar] @param {any} [index] @returns {any} */
204
+ (t, r) => /* @__PURE__ */ e.createElement(
205
+ "rect",
206
+ {
207
+ key: `${t.label || "bar"}-${r}`,
208
+ x: t.x,
209
+ y: t.y,
210
+ width: t.width,
211
+ height: t.height,
212
+ rx: "2",
213
+ ry: "2",
214
+ fill: t.positive ? H : U,
215
+ opacity: o && o.fullIndex === t.fullIndex ? 1 : 0.88
216
+ },
217
+ /* @__PURE__ */ e.createElement("title", null, `${t.label}: ${w(t.value, 6)}`)
218
+ )
219
+ ) : null,
190
220
  o ? /* @__PURE__ */ e.createElement("g", { "data-pivot-sparkline-tooltip": "true", pointerEvents: "none" }, s !== "bar" ? /* @__PURE__ */ e.createElement("line", { x1: o.markerX, y1: a, x2: o.markerX, y2: i - a, stroke: $, strokeWidth: "1", opacity: "0.55", strokeDasharray: "5 5" }) : null, /* @__PURE__ */ e.createElement("circle", { cx: o.markerX, cy: o.markerY, r: "6.4", fill: $, stroke: n.background, strokeWidth: "2" }), /* @__PURE__ */ e.createElement("rect", { x: L, y: N, width: R, height: Z, rx: "7", fill: n.background || "#fff", stroke: n.border, strokeWidth: "1.2", opacity: "0.98" }), /* @__PURE__ */ e.createElement("text", { x: L + 10, y: N + 18, fill: n.textSec, fontSize: "10", fontWeight: "700" }, String(o.label || o.pointIndex + 1).slice(0, 28)), /* @__PURE__ */ e.createElement("text", { x: L + 10, y: N + 38, fill: n.text, fontSize: "15", fontWeight: "800" }, w(o.value, 6))) : null,
191
221
  f.maxValue !== null ? /* @__PURE__ */ e.createElement("text", { x: x - a, y: "22", fill: n.textSec, fontSize: "11", fontWeight: "700", textAnchor: "end" }, "Max ", J) : null,
192
222
  f.minValue !== null ? /* @__PURE__ */ e.createElement("text", { x: x - a, y: i - 28, fill: n.textSec, fontSize: "11", fontWeight: "700", textAnchor: "end" }, "Min ", q) : null,