serverside_pivot 0.0.0-stage → 0.0.90

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 (178) hide show
  1. package/README.md +165 -3
  2. package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +192 -0
  3. package/dist/react/chunks/DetailDrawer-DtsvdhO4.mjs +37 -0
  4. package/dist/react/chunks/DetailSidePanel-v_7iU73g.mjs +36 -0
  5. package/dist/react/chunks/DetailSurfaceContent-BOXVc58A.mjs +200 -0
  6. package/dist/react/chunks/ECharts2dRenderer-BGL_NVGU.mjs +3299 -0
  7. package/dist/react/chunks/ECharts3dRenderer-BF2YWlsP.mjs +21573 -0
  8. package/dist/react/chunks/EditSidePanel-CuvtsKTK.mjs +298 -0
  9. package/dist/react/chunks/InlineDetailPanel-Bmtlu3lc.mjs +41 -0
  10. package/dist/react/chunks/PivotCharts-CA3_0bB8.mjs +4252 -0
  11. package/dist/react/chunks/ReportEditor-DYBr0HDz.mjs +1726 -0
  12. package/dist/react/chunks/SidebarPanel-B64bhrUW.mjs +3339 -0
  13. package/dist/react/chunks/SparklineDetailGraph-90WjWkhg.mjs +200 -0
  14. package/dist/react/chunks/installCanvasRenderer-C8gE9ttC.mjs +21281 -0
  15. package/dist/react/chunks/react-52jgz-em.mjs +25301 -0
  16. package/dist/react/chunks/xlsx.mini.min-BwwnBtoK.mjs +7996 -0
  17. package/dist/react/components/Charts/ChartRenderers.d.ts +73 -0
  18. package/dist/react/components/Charts/ChartWorkspace.d.ts +38 -0
  19. package/dist/react/components/Charts/ECharts2dRenderer.d.ts +5 -0
  20. package/dist/react/components/Charts/ECharts3dRenderer.d.ts +6 -0
  21. package/dist/react/components/Charts/PivotCharts.d.ts +9 -0
  22. package/dist/react/components/Charts/chartEnhancements.d.ts +66 -0
  23. package/dist/react/components/Charts/chartExportPresentation.d.ts +19 -0
  24. package/dist/react/components/Charts/chartMath.d.ts +4 -0
  25. package/dist/react/components/Charts/useChartExportMenu.d.ts +12 -0
  26. package/dist/react/components/DashTanstackPivot.react.d.ts +365 -0
  27. package/dist/react/components/Filters/ColumnFilter.d.ts +13 -0
  28. package/dist/react/components/Filters/DateRangeFilter.d.ts +8 -0
  29. package/dist/react/components/Filters/FilterPopover.d.ts +14 -0
  30. package/dist/react/components/Filters/MultiSelectFilter.d.ts +12 -0
  31. package/dist/react/components/Filters/NumericRangeFilter.d.ts +8 -0
  32. package/dist/react/components/Notification.d.ts +7 -0
  33. package/dist/react/components/PivotAppBar.d.ts +2 -0
  34. package/dist/react/components/PivotErrorBoundary.d.ts +15 -0
  35. package/dist/react/components/PivotSmallComponents.d.ts +6 -0
  36. package/dist/react/components/PivotWorkspace.d.ts +19 -0
  37. package/dist/react/components/PivotWorkspaceCanvas.d.ts +5 -0
  38. package/dist/react/components/PivotWorkspaceControls.d.ts +12 -0
  39. package/dist/react/components/PivotWorkspaceShell.d.ts +12 -0
  40. package/dist/react/components/RuntimeDataError.d.ts +7 -0
  41. package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +14 -0
  42. package/dist/react/components/Sidebar/ReportEditor.d.ts +21 -0
  43. package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +14 -0
  44. package/dist/react/components/Sidebar/SidebarPanel.d.ts +2 -0
  45. package/dist/react/components/Sidebar/ToolPanelSection.d.ts +14 -0
  46. package/dist/react/components/Sidebar/customCategoryUtils.d.ts +62 -0
  47. package/dist/react/components/Sidebar/formulaUtils.d.ts +22 -0
  48. package/dist/react/components/SkeletonRow.d.ts +6 -0
  49. package/dist/react/components/Table/ContextMenu.d.ts +9 -0
  50. package/dist/react/components/Table/DetailDrawer.d.ts +12 -0
  51. package/dist/react/components/Table/DetailSidePanel.d.ts +12 -0
  52. package/dist/react/components/Table/DetailSurfaceContent.d.ts +12 -0
  53. package/dist/react/components/Table/EditSidePanel.d.ts +21 -0
  54. package/dist/react/components/Table/EditableCell.d.ts +29 -0
  55. package/dist/react/components/Table/InlineDetailPanel.d.ts +14 -0
  56. package/dist/react/components/Table/PivotTableBody.d.ts +9 -0
  57. package/dist/react/components/Table/SparklineCell.d.ts +17 -0
  58. package/dist/react/components/Table/SparklineDetailGraph.d.ts +5 -0
  59. package/dist/react/components/Table/StatusBar.d.ts +8 -0
  60. package/dist/react/contexts/PivotConfigContext.d.ts +34 -0
  61. package/dist/react/contexts/PivotThemeContext.d.ts +7 -0
  62. package/dist/react/contexts/PivotValueDisplayContext.d.ts +10 -0
  63. package/dist/react/hooks/useCellInteraction.d.ts +31 -0
  64. package/dist/react/hooks/useChartState.d.ts +76 -0
  65. package/dist/react/hooks/useColumnDefs.d.ts +82 -0
  66. package/dist/react/hooks/useColumnVirtualizer.d.ts +30 -0
  67. package/dist/react/hooks/useDetailDrillThrough.d.ts +38 -0
  68. package/dist/react/hooks/useFilteredData.d.ts +2 -0
  69. package/dist/react/hooks/useFormatState.d.ts +44 -0
  70. package/dist/react/hooks/usePersistence.d.ts +5 -0
  71. package/dist/react/hooks/usePivotFieldInteractions.d.ts +28 -0
  72. package/dist/react/hooks/usePivotNormalization.d.ts +473 -0
  73. package/dist/react/hooks/usePivotRenderCounter.d.ts +1 -0
  74. package/dist/react/hooks/usePivotTransactions.d.ts +29 -0
  75. package/dist/react/hooks/useRenderHelpers.d.ts +85 -0
  76. package/dist/react/hooks/useReportMode.d.ts +32 -0
  77. package/dist/react/hooks/useRowCache.d.ts +19 -0
  78. package/dist/react/hooks/useRuntimeDataCommit.d.ts +26 -0
  79. package/dist/react/hooks/useRuntimeProfiling.d.ts +19 -0
  80. package/dist/react/hooks/useRuntimeTransport.d.ts +24 -0
  81. package/dist/react/hooks/useServerSideRowModel.d.ts +50 -0
  82. package/dist/react/hooks/useServerSideViewportController.d.ts +64 -0
  83. package/dist/react/hooks/useSidebarUI.d.ts +37 -0
  84. package/dist/react/hooks/useStickyStyles.d.ts +24 -0
  85. package/dist/react/index.mjs +8 -0
  86. package/dist/react/presentation/headerFormatting.d.ts +13 -0
  87. package/dist/react/presentation/safeCellContent.d.ts +16 -0
  88. package/dist/react/react.d.ts +7 -0
  89. package/dist/react/runtime/PivotRuntimeRoot.d.ts +7 -0
  90. package/dist/react/runtime/cellSelectionAnchor.d.ts +45 -0
  91. package/dist/react/runtime/createRuntimeCellPresentation.d.ts +7 -0
  92. package/dist/react/runtime/createRuntimeExportCommands.d.ts +77 -0
  93. package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +9 -0
  94. package/dist/react/runtime/createWorkspacePresentation.d.ts +7 -0
  95. package/dist/react/runtime/displayColumnOrder.d.ts +4 -0
  96. package/dist/react/runtime/httpTransport.d.ts +65 -0
  97. package/dist/react/runtime/runtime-contract.generated.d.ts +48 -0
  98. package/dist/react/runtime/runtime-response-contract.generated.d.ts +34 -0
  99. package/dist/react/runtime/runtimeContract.d.ts +115 -0
  100. package/dist/react/runtime/runtimeDomains.d.ts +642 -0
  101. package/dist/react/runtime/runtimeDomains.type-test.d.ts +1 -0
  102. package/dist/react/runtime/runtimeResponseDedup.d.ts +36 -0
  103. package/dist/react/runtime/useChartWorkspacePresentation.d.ts +50 -0
  104. package/dist/react/runtime/useCommandRuntime.d.ts +3 -0
  105. package/dist/react/runtime/useCommandRuntimeStage.d.ts +1 -0
  106. package/dist/react/runtime/useCoreRuntime.d.ts +3 -0
  107. package/dist/react/runtime/useCoreRuntimeStage.d.ts +3 -0
  108. package/dist/react/runtime/useRuntimeCellSelection.d.ts +44 -0
  109. package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +36 -0
  110. package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +13 -0
  111. package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +9 -0
  112. package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +14 -0
  113. package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +28 -0
  114. package/dist/react/runtime/useRuntimeChartModels.d.ts +69 -0
  115. package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +12 -0
  116. package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +7 -0
  117. package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +159 -0
  118. package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +7 -0
  119. package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +55 -0
  120. package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +26 -0
  121. package/dist/react/runtime/useRuntimeColumnCommands.d.ts +22 -0
  122. package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +16 -0
  123. package/dist/react/runtime/useRuntimeDataRetry.d.ts +12 -0
  124. package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +17 -0
  125. package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +22 -0
  126. package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +28 -0
  127. package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +35 -0
  128. package/dist/react/runtime/useRuntimeEditDispatch.d.ts +47 -0
  129. package/dist/react/runtime/useRuntimeEditOwnership.d.ts +32 -0
  130. package/dist/react/runtime/useRuntimeEditPresentation.d.ts +32 -0
  131. package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +28 -0
  132. package/dist/react/runtime/useRuntimeExportState.d.ts +20 -0
  133. package/dist/react/runtime/useRuntimeFilterPopover.d.ts +23 -0
  134. package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +44 -0
  135. package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +27 -0
  136. package/dist/react/runtime/useRuntimeRequestSession.d.ts +79 -0
  137. package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +47 -0
  138. package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +15 -0
  139. package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +28 -0
  140. package/dist/react/runtime/useRuntimeRowEditing.d.ts +18 -0
  141. package/dist/react/runtime/useRuntimeRowSelection.d.ts +14 -0
  142. package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +36 -0
  143. package/dist/react/runtime/useRuntimeStructuralSync.d.ts +62 -0
  144. package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +9 -0
  145. package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +203 -0
  146. package/dist/react/runtime/useRuntimeViewportTableData.d.ts +23 -0
  147. package/dist/react/runtime/useTransportRuntime.d.ts +12 -0
  148. package/dist/react/runtime/useViewportRuntime.d.ts +3 -0
  149. package/dist/react/runtime/useViewportRuntimeStage.d.ts +1 -0
  150. package/dist/react/runtime/useWorkspaceRuntime.d.ts +3 -0
  151. package/dist/react/runtime/useWorkspaceRuntimeStage.d.ts +1 -0
  152. package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +115 -0
  153. package/dist/react/runtime/workspaceViewModel.d.ts +7 -0
  154. package/dist/react/utils/Icons.d.ts +46 -0
  155. package/dist/react/utils/chartModelBuilders.d.ts +236 -0
  156. package/dist/react/utils/columnOrder.d.ts +12 -0
  157. package/dist/react/utils/dataBars.d.ts +7 -0
  158. package/dist/react/utils/domEvents.d.ts +1 -0
  159. package/dist/react/utils/editing.d.ts +47 -0
  160. package/dist/react/utils/exportUtils.d.ts +121 -0
  161. package/dist/react/utils/fieldPanelLayout.d.ts +61 -0
  162. package/dist/react/utils/filterOptions.d.ts +4 -0
  163. package/dist/react/utils/formatting.d.ts +1 -0
  164. package/dist/react/utils/helpers.d.ts +20 -0
  165. package/dist/react/utils/horizontalViewport.d.ts +12 -0
  166. package/dist/react/utils/layoutRows.d.ts +3 -0
  167. package/dist/react/utils/measureAxis.d.ts +22 -0
  168. package/dist/react/utils/pivotLayoutUtils.d.ts +2 -0
  169. package/dist/react/utils/pivotProfiler.d.ts +4 -0
  170. package/dist/react/utils/rawTableTsv.d.ts +21 -0
  171. package/dist/react/utils/reportEditorSelection.d.ts +23 -0
  172. package/dist/react/utils/rowSpanning.d.ts +6 -0
  173. package/dist/react/utils/savedReports.d.ts +7 -0
  174. package/dist/react/utils/sorting.d.ts +14 -0
  175. package/dist/react/utils/sparklineDetail.d.ts +8 -0
  176. package/dist/react/utils/sparklines.d.ts +78 -0
  177. package/dist/react/utils/styles.d.ts +957 -0
  178. package/package.json +89 -6
@@ -0,0 +1,200 @@
1
+ import e from "react";
2
+ import { S as et, T as nt, U as rt, W as w, X as at } from "./react-52jgz-em.mjs";
3
+ function it({ modal: M, theme: n }) {
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
+ e.useEffect(() => {
6
+ A(null), v(null);
7
+ }, [l.length, s]);
8
+ const u = e.useMemo(() => {
9
+ const t = Math.max(0, l.length - 1);
10
+ if (!X || l.length === 0) return { start: 0, end: t };
11
+ const r = Math.max(0, Math.min(t, Math.floor(Number(X.start) || 0))), c = Math.max(r, Math.min(t, Math.floor(Number(X.end) || t)));
12
+ return { start: r, end: c };
13
+ }, [l.length, X]), m = e.useMemo(
14
+ () => l.slice(u.start, u.end + 1),
15
+ [u, l]
16
+ ), _ = m.length, b = l.length > 4, z = b && _ > 4, g = b && (u.start > 0 || u.end < l.length - 1), f = e.useMemo(
17
+ () => et({ points: m, type: s, width: x, height: i, padding: a }),
18
+ [m, s]
19
+ ), E = nt(m), y = e.useMemo(
20
+ () => rt(E, s),
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) => {
41
+ const d = c / 4;
42
+ return {
43
+ value: y.max - (y.max - y.min) * d,
44
+ y: a + (i - a * 2) * d
45
+ };
46
+ }), [i, a, y]), j = e.useMemo(() => {
47
+ if (!Array.isArray(m) || m.length === 0) return [];
48
+ const t = m.length - 1;
49
+ return Array.from(/* @__PURE__ */ new Set([
50
+ 0,
51
+ Math.floor(t * 0.25),
52
+ Math.floor(t * 0.5),
53
+ Math.floor(t * 0.75),
54
+ 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);
59
+ }, [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
+ if (!k.length) return;
61
+ 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
+ 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);
67
+ }, [k, i, s, x]), O = e.useCallback((t, r) => {
68
+ if (l.length <= 0) {
69
+ v(null);
70
+ return;
71
+ }
72
+ const c = l.length - 1, d = Math.min(4, l.length), p = Math.max(0, Math.min(c, Math.floor(t))), h = Math.max(p, Math.min(c, Math.floor(r)));
73
+ if (h - p + 1 >= l.length) {
74
+ v(null);
75
+ return;
76
+ }
77
+ if (h - p + 1 < d) {
78
+ const I = Math.round((p + h) / 2), W = Math.floor(d / 2), C = Math.max(0, Math.min(c - d + 1, I - W));
79
+ v({ start: C, end: C + d - 1 });
80
+ return;
81
+ }
82
+ v({ start: p, end: h });
83
+ }, [l.length]), Y = e.useCallback((t) => {
84
+ if (!b) return;
85
+ const r = u.start, c = u.end, d = c - r + 1, p = Math.min(4, l.length), h = Math.max(p, Math.min(l.length, Math.round(d * t))), I = o ? o.fullIndex : Math.round((r + c) / 2), W = Math.max(0, Math.min(l.length - h, Math.round(I - h / 2)));
86
+ O(W, W + h - 1);
87
+ }, [o, b, u, l.length, O]), Q = e.useCallback(() => {
88
+ A(null), v(null);
89
+ }, []), tt = e.useCallback((t) => {
90
+ b && (t.preventDefault(), Y(t.deltaY < 0 ? 0.68 : 1.42));
91
+ }, [b, Y]);
92
+ return /* @__PURE__ */ e.createElement(
93
+ "div",
94
+ {
95
+ "data-pivot-sparkline-detail-graph": "true",
96
+ style: {
97
+ flex: "1 1 430px",
98
+ minWidth: "300px",
99
+ padding: "14px",
100
+ borderRight: `1px solid ${n.border}`,
101
+ background: n.headerSubtleBg || n.background
102
+ }
103
+ },
104
+ b && /* @__PURE__ */ e.createElement(
105
+ "div",
106
+ {
107
+ "data-pivot-sparkline-zoom-controls": "true",
108
+ style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: "10px", marginBottom: "8px" }
109
+ },
110
+ /* @__PURE__ */ e.createElement("span", { style: { fontSize: "11px", fontWeight: 700, color: n.textSec } }, g ? `${u.start + 1}-${u.end + 1} of ${l.length}` : `${l.length} points`),
111
+ /* @__PURE__ */ e.createElement("div", { style: { display: "flex", gap: "6px", alignItems: "center" } }, /* @__PURE__ */ e.createElement(
112
+ "button",
113
+ {
114
+ type: "button",
115
+ "data-pivot-sparkline-zoom-in": "true",
116
+ disabled: !z,
117
+ onClick: () => Y(0.62),
118
+ style: { border: `1px solid ${n.border}`, background: z ? n.background : n.headerSubtleBg, color: z ? n.text : n.textSec, borderRadius: "6px", padding: "4px 8px", fontSize: "11px", fontWeight: 700, cursor: z ? "pointer" : "default", opacity: z ? 1 : 0.55 }
119
+ },
120
+ "Zoom In"
121
+ ), /* @__PURE__ */ e.createElement(
122
+ "button",
123
+ {
124
+ type: "button",
125
+ "data-pivot-sparkline-zoom-out": "true",
126
+ disabled: !g,
127
+ onClick: () => Y(1.62),
128
+ style: { border: `1px solid ${n.border}`, background: g ? n.background : n.headerSubtleBg, color: g ? n.text : n.textSec, borderRadius: "6px", padding: "4px 8px", fontSize: "11px", fontWeight: 700, cursor: g ? "pointer" : "default", opacity: g ? 1 : 0.55 }
129
+ },
130
+ "Zoom Out"
131
+ ), /* @__PURE__ */ e.createElement(
132
+ "button",
133
+ {
134
+ type: "button",
135
+ "data-pivot-sparkline-zoom-reset": "true",
136
+ disabled: !g,
137
+ onClick: Q,
138
+ style: { border: `1px solid ${n.border}`, background: g ? n.background : n.headerSubtleBg, color: g ? n.text : n.textSec, borderRadius: "6px", padding: "4px 8px", fontSize: "11px", fontWeight: 700, cursor: g ? "pointer" : "default", opacity: g ? 1 : 0.55 }
139
+ },
140
+ "Reset"
141
+ ))
142
+ ),
143
+ /* @__PURE__ */ e.createElement(
144
+ "svg",
145
+ {
146
+ "data-pivot-sparkline-detail-svg": "true",
147
+ viewBox: `0 0 ${x} ${i}`,
148
+ "aria-label": "Sparkline detail chart",
149
+ onMouseMove: K,
150
+ onMouseLeave: () => A(null),
151
+ onWheel: tt,
152
+ style: { display: "block", width: "100%", height: "320px", cursor: k.length ? "crosshair" : "default" }
153
+ },
154
+ /* @__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)))),
157
+ 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
+ /* @__PURE__ */ e.createElement("line", { x1: a, y1: i - a, x2: x - a, y2: i - a, stroke: n.border, strokeWidth: "1.2" }),
159
+ /* @__PURE__ */ e.createElement("line", { x1: a, y1: a, x2: a, y2: i - a, stroke: n.border, strokeWidth: "1.2" }),
160
+ 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)}`)
189
+ )) : null,
190
+ 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
+ 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
+ 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,
193
+ /* @__PURE__ */ e.createElement("rect", { "data-pivot-sparkline-hover-target": "true", x: "0", y: "0", width: x, height: i, fill: "transparent" })
194
+ ),
195
+ /* @__PURE__ */ e.createElement("div", { style: { display: "flex", justifyContent: "space-between", gap: "10px", marginTop: "6px", fontSize: "11px", color: n.textSec } }, /* @__PURE__ */ e.createElement("span", { style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } }, T ? T.label : ""), /* @__PURE__ */ e.createElement("span", { style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", textAlign: "right" } }, V ? V.label : ""))
196
+ );
197
+ }
198
+ export {
199
+ it as SparklineDetailGraph
200
+ };