serverside_pivot 0.0.90 → 0.0.91
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 +152 -135
- package/dist/react/chunks/{DetailDrawer-DtsvdhO4.mjs → DetailDrawer-Eb4EpVHG.mjs} +1 -1
- package/dist/react/chunks/{DetailSidePanel-v_7iU73g.mjs → DetailSidePanel-BTcHOiKr.mjs} +1 -1
- package/dist/react/chunks/{DetailSurfaceContent-BOXVc58A.mjs → DetailSurfaceContent-B3ZNKh7q.mjs} +1 -1
- package/dist/react/chunks/{ECharts2dRenderer-BGL_NVGU.mjs → ECharts2dRenderer-C3Qv0uAa.mjs} +1 -1
- package/dist/react/chunks/{ECharts3dRenderer-BF2YWlsP.mjs → ECharts3dRenderer-BB_7-fOt.mjs} +1 -1
- package/dist/react/chunks/{EditSidePanel-CuvtsKTK.mjs → EditSidePanel-C2cAvxlK.mjs} +1 -1
- package/dist/react/chunks/{InlineDetailPanel-Bmtlu3lc.mjs → InlineDetailPanel-BXLAw1o3.mjs} +1 -1
- package/dist/react/chunks/{PivotCharts-CA3_0bB8.mjs → PivotCharts-Bw6Swoa3.mjs} +3 -3
- package/dist/react/chunks/{ReportEditor-DYBr0HDz.mjs → ReportEditor-D4V0ry2B.mjs} +1 -1
- package/dist/react/chunks/{SidebarPanel-B64bhrUW.mjs → SidebarPanel-xO59p_2o.mjs} +2 -2
- package/dist/react/chunks/{SparklineDetailGraph-90WjWkhg.mjs → SparklineDetailGraph-Bu85X7OJ.mjs} +1 -1
- package/dist/react/chunks/{installCanvasRenderer-C8gE9ttC.mjs → installCanvasRenderer-B7sfDGoL.mjs} +1 -1
- package/dist/react/chunks/react-CPZZxtSo.mjs +26999 -0
- package/dist/react/chunks/{xlsx.mini.min-BwwnBtoK.mjs → xlsx.mini.min-vfxHk3Ry.mjs} +1 -1
- package/dist/react/components/DashTanstackPivot.react.d.ts +7 -0
- package/dist/react/components/PivotWorkspace.d.ts +1 -1
- package/dist/react/hooks/usePivotNormalization.d.ts +11 -1
- package/dist/react/index.mjs +14 -6
- package/dist/react/react.d.ts +1 -0
- package/dist/react/runtime/client/clientPivotTransport.d.ts +28 -0
- package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +20 -0
- package/dist/react/runtime/client/clientSqlPlanner.d.ts +5 -0
- package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +36 -0
- package/dist/react/runtime/client/index.d.ts +6 -0
- package/dist/react/runtime/client/modeResolver.d.ts +16 -0
- package/dist/react/runtime/client/types.d.ts +202 -0
- package/dist/react/runtime/useRuntimeStructuralSync.d.ts +4 -1
- package/package.json +28 -3
- package/dist/react/chunks/react-52jgz-em.mjs +0 -25301
package/README.md
CHANGED
|
@@ -1,165 +1,182 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ⚡ serverside_pivot
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
scrolling, grouping, totals, filters, formulas, charts, and controlled exports.
|
|
3
|
+
### **Turnkey Analytical Pivot Table & Virtualized Data Grid for React**
|
|
4
|
+
#### *Dual-Engine Architecture: Zero-Network In-Browser Analytics (DuckDB-WASM & In-Memory) + Scalable Server-Side Pushdown.*
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
[](https://www.npmjs.com/package/serverside_pivot)
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](https://www.typescriptlang.org/)
|
|
9
|
+
[](https://react.dev/)
|
|
10
|
+
[](https://duckdb.org/docs/api/wasm/overview)
|
|
11
|
+
[](https://echarts.apache.org/)
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
`serverside_pivot` is an enterprise-grade, low-code analytical pivot table and 2D virtualized grid for **React**. Built on **TanStack Table v8**, **DuckDB-WASM**, and **Apache ECharts 6**, it bridges the gap between lightweight client tables and heavy server-side BI tools.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 🚀 Why `serverside_pivot`?
|
|
12
18
|
|
|
13
|
-
|
|
19
|
+
Unlike traditional grid components that either crash browser memory with large datasets or force you to spend months building custom SQL backends:
|
|
20
|
+
|
|
21
|
+
1. **Dual Execution Engine (Hybrid)**:
|
|
22
|
+
- **Client-Side Mode (`DuckDB-WASM` & In-Memory)**: Run complete multi-dimensional pivots, $\mathcal{O}(D)$ level-based hierarchy expansions, multi-column sorting, Excel formulas, window functions, and ECharts visualizations **100% inside the browser with ZERO server roundtrips and zero latency**.
|
|
23
|
+
- **Server-Side Pushdown Mode**: Connect seamlessly to Python backend services (`serverside-pivot`) backed by **Snowflake, BigQuery, PostgreSQL, ClickHouse, MotherDuck, or DuckDB** to query hundreds of millions of rows with bounded 50-row virtual slices.
|
|
24
|
+
2. **2D Virtualization (Row + Column)**: Smoothly virtualizes both vertical rows (millions of records) and horizontal pivoted columns (1,000+ columns) with a **constant < 80 MB client RAM footprint**.
|
|
25
|
+
3. **Turnkey BI Analytics**: Built-in 23+ chart families (ECharts 2D/3D), inline cell sparklines, heatmaps, Excel-like calculated formulas (`[revenue] - [cost]`), window functions (`percent_of_grand_total`), 11 enterprise themes, and client-side SheetJS XLSX/CSV export.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 📦 Installation
|
|
14
30
|
|
|
15
31
|
```bash
|
|
16
|
-
|
|
32
|
+
npm install serverside_pivot
|
|
33
|
+
# or
|
|
34
|
+
yarn add serverside_pivot
|
|
35
|
+
# or
|
|
36
|
+
pnpm add serverside_pivot
|
|
17
37
|
```
|
|
18
38
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
For a publishing-ready comparison of the Dash, React, and Streamlit hosts,
|
|
23
|
-
see the [flagship host demos](https://github.com/Ramzy22/serverside_pivot/blob/main/examples/FLAGSHIP_DEMOS.md).
|
|
24
|
-
|
|
25
|
-
Cell editing and edit transactions are not a supported public capability in
|
|
26
|
-
this release. Legacy edit-related Dash inputs are accepted as no-ops only for
|
|
27
|
-
layout compatibility.
|
|
28
|
-
|
|
29
|
-
## Host-neutral runtime transport
|
|
30
|
-
|
|
31
|
-
All hosts use one wire format: Pivot Runtime Protocol V1 (`schemaVersion: 1`).
|
|
32
|
-
There is no V2 or host-specific variant. A `CompletePivotAPI` instance exposes
|
|
33
|
-
the authenticated endpoint at `POST /v1/runtime`; it validates the V1 request,
|
|
34
|
-
derives the session and row-level-security context from the authenticated user,
|
|
35
|
-
and returns the matching V1 response.
|
|
36
|
-
|
|
37
|
-
Large viewport payloads are returned as short-lived, user-scoped `payloadRef`
|
|
38
|
-
objects. Fetch `payloadRef.url` instead of putting rows into component state.
|
|
39
|
-
The endpoint emits transport profiling under `profile.transport` and supports
|
|
40
|
-
ETags for payload retrieval.
|
|
41
|
-
|
|
42
|
-
### Mutation security
|
|
43
|
-
|
|
44
|
-
The HTTP runtime is read-only by default, including when the authenticated
|
|
45
|
-
principal has an `editor` role. To enable a dataset explicitly, install a
|
|
46
|
-
server-owned policy when registering the route. It checks roles, dataset,
|
|
47
|
-
operation, and physical columns; authenticated `attributes` are applied to
|
|
48
|
-
every update/delete/upsert/aggregate predicate. Added and upserted rows must
|
|
49
|
-
include matching attribute values. Undo, redo, revert, and replacement actions
|
|
50
|
-
are scoped again when they replay history.
|
|
51
|
-
|
|
52
|
-
```python
|
|
53
|
-
from pivot_engine.runtime import RuntimeMutationAuthorizer, register_runtime_http_transport
|
|
54
|
-
|
|
55
|
-
mutation_policy = RuntimeMutationAuthorizer({
|
|
56
|
-
"sales": {
|
|
57
|
-
"roles": {"admin", "editor"},
|
|
58
|
-
"columns": {"tenant", "region", "sales"},
|
|
59
|
-
"operations": {"add", "remove", "update", "upsert", "aggregate", "history"},
|
|
60
|
-
}
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
register_runtime_http_transport(
|
|
64
|
-
app,
|
|
65
|
-
get_runtime_service,
|
|
66
|
-
current_user_dependency=get_current_user,
|
|
67
|
-
mutation_authorizer=mutation_policy,
|
|
68
|
-
)
|
|
39
|
+
### Peer Dependencies
|
|
40
|
+
```bash
|
|
41
|
+
npm install react react-dom styled-components
|
|
69
42
|
```
|
|
70
43
|
|
|
71
|
-
|
|
72
|
-
policy must be supplied by the server; browser payloads cannot grant access.
|
|
44
|
+
---
|
|
73
45
|
|
|
74
|
-
|
|
75
|
-
|
|
46
|
+
## ⚡ Quickstart
|
|
47
|
+
|
|
48
|
+
### 1. Zero-Backend Client-Side Pivot (DuckDB-WASM / In-Memory)
|
|
49
|
+
|
|
50
|
+
Feed your JSON records or CSV/Parquet data directly into `PivotWorkspace`. The internal `ClientPivotTransport` executes all groupings, multi-column aggregations, and expansions in browser WebAssembly:
|
|
76
51
|
|
|
77
52
|
```tsx
|
|
78
|
-
import
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
53
|
+
import React from 'react';
|
|
54
|
+
import { PivotWorkspace, ClientPivotTransport } from 'serverside_pivot/react';
|
|
55
|
+
|
|
56
|
+
const salesData = [
|
|
57
|
+
{ region: 'North America', country: 'USA', rep: 'Alice', year: '2024', revenue: 150000, cost: 95000 },
|
|
58
|
+
{ region: 'North America', country: 'USA', rep: 'Bob', year: '2025', revenue: 180000, cost: 110000 },
|
|
59
|
+
{ region: 'North America', country: 'Canada', rep: 'Charlie', year: '2024', revenue: 90000, cost: 60000 },
|
|
60
|
+
{ region: 'Europe', country: 'Germany', rep: 'David', year: '2024', revenue: 130000, cost: 85000 },
|
|
61
|
+
{ region: 'Europe', country: 'France', rep: 'Emma', year: '2025', revenue: 140000, cost: 90000 },
|
|
62
|
+
// ... up to 50,000+ rows
|
|
63
|
+
];
|
|
64
|
+
|
|
65
|
+
// Initialize client transport (runs 100% in-browser)
|
|
66
|
+
const clientTransport = new ClientPivotTransport({
|
|
67
|
+
tableName: 'sales',
|
|
68
|
+
data: salesData,
|
|
69
|
+
clientEngine: 'auto', // 'auto' (>= 1000 rows activates DuckDB-Wasm), 'duckdb-wasm', or 'memory'
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function App() {
|
|
73
|
+
return (
|
|
74
|
+
<div style={{ height: '800px', width: '100%' }}>
|
|
75
|
+
<PivotWorkspace
|
|
76
|
+
table="sales"
|
|
77
|
+
transport={clientTransport}
|
|
78
|
+
rowFields={['region', 'country', 'rep']}
|
|
79
|
+
colFields={['year']}
|
|
80
|
+
valConfigs={[
|
|
81
|
+
{ field: 'revenue', agg: 'sum', format: 'currency', label: 'Revenue ($)' },
|
|
82
|
+
{ field: 'cost', agg: 'sum', format: 'currency', label: 'Cost ($)' },
|
|
83
|
+
{
|
|
84
|
+
field: 'profit',
|
|
85
|
+
label: 'Gross Profit',
|
|
86
|
+
formula: '[revenue] - [cost]',
|
|
87
|
+
format: 'currency',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
field: 'rev_pct',
|
|
91
|
+
label: '% Total Revenue',
|
|
92
|
+
agg: 'sum',
|
|
93
|
+
windowFn: 'percent_of_grand_total',
|
|
94
|
+
format: 'percent',
|
|
95
|
+
},
|
|
96
|
+
]}
|
|
97
|
+
showRowTotals={true}
|
|
98
|
+
showColTotals={true}
|
|
99
|
+
defaultTheme="flash" // 'dark' | 'light' | 'bloomberg_black' | 'flash' | 'material' | ...
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
96
104
|
```
|
|
97
105
|
|
|
98
|
-
|
|
99
|
-
React application owns those singleton instances. The Streamlit adapter builds
|
|
100
|
-
from this exact React entry source; it adds only a V2 mounting/state wrapper.
|
|
101
|
-
|
|
102
|
-
Dash remains supported through its existing prop callback bridge; it adapts to
|
|
103
|
-
the same V1 service without changing the Dash Python API.
|
|
106
|
+
---
|
|
104
107
|
|
|
105
|
-
|
|
108
|
+
### 2. Scalable Server-Side Pushdown Mode
|
|
106
109
|
|
|
107
|
-
|
|
108
|
-
transport. Virtual scrolling therefore does not rerun the Streamlit script or
|
|
109
|
-
place row blocks in Streamlit state:
|
|
110
|
+
For datasets with millions or billions of rows, connect to any backend implementing the standard V1 runtime protocol:
|
|
110
111
|
|
|
111
|
-
```
|
|
112
|
-
|
|
112
|
+
```tsx
|
|
113
|
+
import React from 'react';
|
|
114
|
+
import {
|
|
115
|
+
PivotWorkspace,
|
|
116
|
+
HttpPivotTransport,
|
|
117
|
+
LatestViewportScheduler,
|
|
118
|
+
} from 'serverside_pivot/react';
|
|
119
|
+
|
|
120
|
+
// Wraps HTTP requests with auto-cancellation (latest-viewport-wins)
|
|
121
|
+
const transport = new LatestViewportScheduler(
|
|
122
|
+
new HttpPivotTransport({
|
|
123
|
+
endpoint: '/v1/runtime',
|
|
124
|
+
})
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
export function EnterpriseAnalytics() {
|
|
128
|
+
return (
|
|
129
|
+
<div style={{ height: '100vh', width: '100%' }}>
|
|
130
|
+
<PivotWorkspace
|
|
131
|
+
table="warehouse_orders"
|
|
132
|
+
transport={transport}
|
|
133
|
+
rowFields={['department', 'category', 'product']}
|
|
134
|
+
colFields={['quarter']}
|
|
135
|
+
valConfigs={[
|
|
136
|
+
{ field: 'sales_amount', agg: 'sum', format: 'currency' },
|
|
137
|
+
{ field: 'order_count', agg: 'count' },
|
|
138
|
+
]}
|
|
139
|
+
showRowTotals={true}
|
|
140
|
+
showColTotals={true}
|
|
141
|
+
defaultTheme="dark"
|
|
142
|
+
/>
|
|
143
|
+
</div>
|
|
144
|
+
);
|
|
145
|
+
}
|
|
113
146
|
```
|
|
114
147
|
|
|
115
|
-
|
|
116
|
-
from streamlit_pivot import pivot_workspace
|
|
117
|
-
|
|
118
|
-
pivot_workspace("sales", runtime_endpoint="/v1/runtime", key="sales-pivot")
|
|
119
|
-
```
|
|
148
|
+
---
|
|
120
149
|
|
|
121
|
-
|
|
122
|
-
the browser user (same-origin cookies are preferred). `view_state` is emitted
|
|
123
|
-
only for durable user-controlled changes; it is not a viewport data channel.
|
|
150
|
+
## ✨ Key Enterprise Capabilities
|
|
124
151
|
|
|
125
|
-
|
|
152
|
+
| Feature | Description |
|
|
153
|
+
| :--- | :--- |
|
|
154
|
+
| **Dual Execution Engine** | Seamlessly toggle between 100% in-browser WebAssembly execution (`ClientPivotTransport`) and server-side warehouse pushdown (`HttpPivotTransport`). |
|
|
155
|
+
| **2D Virtualization** | Constant < 80 MB browser memory whether scrolling through 10,000 rows or 1,000,000,000+ rows with 1,000+ dynamic pivoted columns. |
|
|
156
|
+
| **$\mathcal{O}(D)$ Level-Based Hierarchy** | Multi-level tree group expansions execute one single batched query per hierarchy depth level ($D$) rather than sequential $N$-query waterfalls. |
|
|
157
|
+
| **Visual Analytics & Charting** | Integrated **ECharts 6** & **ECharts-GL 3D**: 23+ chart types across 11 families (Bar, Line, Area, Pie, Radar, Scatter, Waterfall, 3D Bar/Surface) linked to live pivot state. |
|
|
158
|
+
| **In-Cell Sparklines & Data Bars** | High-performance inline SVG sparklines (Line, Area, Bar) and proportional cell data bars rendered directly inside grid cells with zero DOM bloat. |
|
|
159
|
+
| **Excel AST Formulas & Window Functions** | Excel-like calculated measures using `[Field]` syntax and built-in pivot window functions (`percent_of_row`, `percent_of_col`, `percent_of_grand_total`). |
|
|
160
|
+
| **4 Layout Modes** | Multidimensional Pivot (`pivot`), Parent-Child Tree (`tree`), Flat Record Grid (`table`), and Financial P&L Report Mode (`report`). |
|
|
161
|
+
| **Client SheetJS & Clipboard** | Instant client-side Excel XLSX and CSV streaming export with merged headers and formatting preserved. RFC-compliant HTML/TSV clipboard copy. |
|
|
162
|
+
| **11 Enterprise Themes** | Complete theme system: `light`, `dark`, `flash`, `material`, `balham`, `bloomberg`, `bloomberg_black`, `strata`, `crystal`, `alabaster`, `satin` with full `--sp-*` CSS variables. |
|
|
126
163
|
|
|
127
|
-
|
|
128
|
-
and viewport costs:
|
|
164
|
+
---
|
|
129
165
|
|
|
130
|
-
|
|
131
|
-
python scripts/benchmark_pivot_runtime.py --rows 100000 --repeat-runs 7
|
|
132
|
-
```
|
|
166
|
+
## 🌐 Multi-Framework Ecosystem
|
|
133
167
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
168
|
+
`serverside_pivot` is part of the `serverside-pivot` ecosystem:
|
|
169
|
+
- **Standalone React**: `serverside_pivot` (this package)
|
|
170
|
+
- **Python Plotly Dash**: `pip install serverside-pivot`
|
|
171
|
+
- **Streamlit**: `pip install "serverside-pivot[streamlit]"`
|
|
172
|
+
- **Backend Pushdown**: Powered by **DuckDB**, **PyArrow**, and **Ibis** (Snowflake, BigQuery, Postgres, ClickHouse, MotherDuck, Databricks, Trino)
|
|
137
173
|
|
|
138
|
-
|
|
139
|
-
scrolls through server-side viewport blocks, and reports end-to-end,
|
|
140
|
-
network/server, Dash callback, pivot service, and React-commit p50/p95
|
|
141
|
-
latency. It also prints the initial hydration sample separately, so a
|
|
142
|
-
warm-scroll result cannot hide a first-render regression. It needs Chrome and
|
|
143
|
-
a compatible ChromeDriver:
|
|
174
|
+
For comprehensive documentation, live Python/Dash showcases, and interactive examples, visit the **[GitHub Repository](https://github.com/Ramzy22/serverside_pivot)**.
|
|
144
175
|
|
|
145
|
-
|
|
146
|
-
python scripts/benchmark_browser_runtime.py --rows 100000 --requests 30
|
|
147
|
-
# Two independently positioned Chrome clients issue overlapping viewport
|
|
148
|
-
# requests against the same local Dash server.
|
|
149
|
-
python scripts/benchmark_browser_runtime.py --rows 1000000 --requests 20 --clients 2
|
|
150
|
-
```
|
|
176
|
+
> Cell editing and edit transactions are not a supported public capability in this release. Legacy edit-related Dash inputs are accepted as no-ops only for layout compatibility.
|
|
151
177
|
|
|
152
|
-
|
|
153
|
-
forwarding flags:
|
|
178
|
+
---
|
|
154
179
|
|
|
155
|
-
|
|
156
|
-
npm run benchmark:browser -- -- --rows 100000 --requests 30 --json
|
|
157
|
-
```
|
|
180
|
+
## 📄 License
|
|
158
181
|
|
|
159
|
-
|
|
160
|
-
once and sliced for later viewport requests when their Arrow result is at most
|
|
161
|
-
32 MiB. This eliminates repeated `IN (...)` aggregate queries while retaining
|
|
162
|
-
bounded memory. Tune or disable that optimization with
|
|
163
|
-
`PIVOT_COLLAPSED_ROOT_MATERIALIZATION_MAX_ROWS` and
|
|
164
|
-
`PIVOT_COLLAPSED_ROOT_MATERIALIZATION_MAX_BYTES` (set either to `0` to disable
|
|
165
|
-
it); larger results continue to use the paged-query path.
|
|
182
|
+
Distributed under the **MIT License**.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ir from "react";
|
|
2
|
-
import { r as Se, i as X, M as Le, U as va, a as N, S as gt, R as pt, b as Mt, c as da, _ as O, A as it, d as or, e as ee, p as sr, f as ha, L as lr, g as ae, h as ur, j as cr, k as vr, l as fa, m as ga, n as Bt, o as pa, q as ma, s as Ht, t as F, C as kt, u as re, v as dr, w as ya, x as hr, y as ne, z as ie, B as nt, D as at, E as G, F as T, G as Rt, H as rt, I as H, J as xa, K as oe, N as fr, O as gr, P as se, Q as Ce, T as Aa, V as mt, W as pr, X as mr, Y as _t, Z as dt, $ as Vt, a0 as ba, a1 as yr, a2 as le, a3 as Nt, a4 as Sa, a5 as Gt, a6 as xr, a7 as Ar, a8 as br, a9 as La, aa as Ca, ab as Sr, ac as Lr, ad as Cr, ae as Mr, af as ht, ag as ue, ah as Ma, ai as U, aj as et, ak as _r, al as wr, am as Tr, an as Me, ao as Pr, ap as _e, aq as we, ar as Dr, as as Xt, at as Ir, au as Te, av as Or, aw as Er, ax as Br, ay as Pe, az as kr, aA as Rr, aB as Nr, aC as Gr, aD as Wr, aE as De, aF as Vr, aG as $t, aH as _a, aI as wa, aJ as ce, aK as Lt, aL as Ta, aM as Pa, aN as Da, aO as Fr, aP as zr, aQ as Ur, aR as ve, aS as wt, aT as ft, aU as Yr, aV as Hr, aW as Xr, aX as $r, aY as Ia, aZ as Kr, a_ as Oa, a$ as ut, b0 as Tt, b1 as Ie, b2 as Oe, b3 as Zr, b4 as qr, b5 as jr, b6 as Qr, b7 as de, b8 as Jr, b9 as tn, ba as Kt, bb as en, bc as Pt, bd as an, be as rn, bf as nn, bg as Ea, bh as Ba, bi as Wt, bj as ct, bk as Ee, bl as ka, bm as Be, bn as on, bo as sn, bp as he, bq as Ra, br as ln, bs as Ft, bt as Na, bu as k, bv as Dt, bw as Ga, bx as un, by as cn, bz as vn, bA as dn, bB as ke, bC as hn, bD as fn, bE as gn, bF as pn, bG as mn, bH as It, bI as yn, bJ as xn, bK as An, bL as J, bM as bn, bN as Sn, bO as Ln, bP as Cn, bQ as Mn, bR as _n, bS as Re, bT as wn, bU as Wa, bV as Tn, bW as Pn, bX as Dn, bY as In, bZ as On, b_ as En, b$ as Bn, c0 as kn, c1 as Rn, c2 as Nn, c3 as Gn } from "./installCanvasRenderer-
|
|
2
|
+
import { r as Se, i as X, M as Le, U as va, a as N, S as gt, R as pt, b as Mt, c as da, _ as O, A as it, d as or, e as ee, p as sr, f as ha, L as lr, g as ae, h as ur, j as cr, k as vr, l as fa, m as ga, n as Bt, o as pa, q as ma, s as Ht, t as F, C as kt, u as re, v as dr, w as ya, x as hr, y as ne, z as ie, B as nt, D as at, E as G, F as T, G as Rt, H as rt, I as H, J as xa, K as oe, N as fr, O as gr, P as se, Q as Ce, T as Aa, V as mt, W as pr, X as mr, Y as _t, Z as dt, $ as Vt, a0 as ba, a1 as yr, a2 as le, a3 as Nt, a4 as Sa, a5 as Gt, a6 as xr, a7 as Ar, a8 as br, a9 as La, aa as Ca, ab as Sr, ac as Lr, ad as Cr, ae as Mr, af as ht, ag as ue, ah as Ma, ai as U, aj as et, ak as _r, al as wr, am as Tr, an as Me, ao as Pr, ap as _e, aq as we, ar as Dr, as as Xt, at as Ir, au as Te, av as Or, aw as Er, ax as Br, ay as Pe, az as kr, aA as Rr, aB as Nr, aC as Gr, aD as Wr, aE as De, aF as Vr, aG as $t, aH as _a, aI as wa, aJ as ce, aK as Lt, aL as Ta, aM as Pa, aN as Da, aO as Fr, aP as zr, aQ as Ur, aR as ve, aS as wt, aT as ft, aU as Yr, aV as Hr, aW as Xr, aX as $r, aY as Ia, aZ as Kr, a_ as Oa, a$ as ut, b0 as Tt, b1 as Ie, b2 as Oe, b3 as Zr, b4 as qr, b5 as jr, b6 as Qr, b7 as de, b8 as Jr, b9 as tn, ba as Kt, bb as en, bc as Pt, bd as an, be as rn, bf as nn, bg as Ea, bh as Ba, bi as Wt, bj as ct, bk as Ee, bl as ka, bm as Be, bn as on, bo as sn, bp as he, bq as Ra, br as ln, bs as Ft, bt as Na, bu as k, bv as Dt, bw as Ga, bx as un, by as cn, bz as vn, bA as dn, bB as ke, bC as hn, bD as fn, bE as gn, bF as pn, bG as mn, bH as It, bI as yn, bJ as xn, bK as An, bL as J, bM as bn, bN as Sn, bO as Ln, bP as Cn, bQ as Mn, bR as _n, bS as Re, bT as wn, bU as Wa, bV as Tn, bW as Pn, bX as Dn, bY as In, bZ as On, b_ as En, b$ as Bn, c0 as kn, c1 as Rn, c2 as Nn, c3 as Gn } from "./installCanvasRenderer-B7sfDGoL.mjs";
|
|
3
3
|
function Wn(a, t) {
|
|
4
4
|
var e = a.mapDimensionsAll("defaultedLabel"), r = e.length;
|
|
5
5
|
if (r === 1) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Es from "react";
|
|
2
|
-
import { c4 as jn, b2 as fn, c5 as Ss, ai as _t, c6 as Zn, ao as As, c7 as qe, P as Cs, c8 as Yn, c9 as Ai, ca as Ms, cb as Ls, cc as Ds, cd as cr, bg as Cn, ap as Kn, ce as Ps, c as Qn, aR as Rs, a3 as $r, E as $n, F as rt, cf as Ns, cg as Ci, ch as Jn, ci as Os, cj as Is, ck as Bs, a1 as Fs, Y as ea, aK as hn, Z as ta, cl as Us, bv as mi, c3 as mo, c0 as zs, cm as Hs, cn as _o, A as Mn, a4 as _i, C as Ln, bl as go, ae as yo, bM as xo, co as Gs, K as gi, cp as Vs, cq as ks, cr as Ws, cs as Xs, ct as qs, cu as js, cv as Zs, cw as Ys, cx as Ks, cy as Qs, cz as $s, cA as Js, cB as el, cC as To, cD as tl, cE as rl, cF as il, cG as nl, cH as al, cI as Dn, cJ as ol, cK as sl, cL as ra, cM as ll, cN as ul, cO as fl, cP as hl, cQ as cl, cR as dl, cS as vl, cT as pl, cU as ml, cV as _l, cW as gl, cX as yl, cY as xl, cZ as Tl, c_ as wl, c$ as bl, ac as El, d0 as Sl, d1 as Al, d2 as Cl, d3 as Ml, d4 as Ll, d5 as Dl, i as it, V as ia, d6 as wo, R as bo, d7 as Pn, d8 as Pl, d9 as Lr, da as na, aJ as Eo, db as Rl, dc as Nl, dd as Ol, aj as lt, de as Il, bN as ni, bO as ai, df as So, dg as Bl, dh as Fl, ar as Ao, di as Co, aI as Ul, dj as zl, dk as Hl, bK as Gl, al as Vl, bn as kl, b_ as Wl, b$ as Xl, c1 as ql, c2 as jl } from "./installCanvasRenderer-
|
|
2
|
+
import { c4 as jn, b2 as fn, c5 as Ss, ai as _t, c6 as Zn, ao as As, c7 as qe, P as Cs, c8 as Yn, c9 as Ai, ca as Ms, cb as Ls, cc as Ds, cd as cr, bg as Cn, ap as Kn, ce as Ps, c as Qn, aR as Rs, a3 as $r, E as $n, F as rt, cf as Ns, cg as Ci, ch as Jn, ci as Os, cj as Is, ck as Bs, a1 as Fs, Y as ea, aK as hn, Z as ta, cl as Us, bv as mi, c3 as mo, c0 as zs, cm as Hs, cn as _o, A as Mn, a4 as _i, C as Ln, bl as go, ae as yo, bM as xo, co as Gs, K as gi, cp as Vs, cq as ks, cr as Ws, cs as Xs, ct as qs, cu as js, cv as Zs, cw as Ys, cx as Ks, cy as Qs, cz as $s, cA as Js, cB as el, cC as To, cD as tl, cE as rl, cF as il, cG as nl, cH as al, cI as Dn, cJ as ol, cK as sl, cL as ra, cM as ll, cN as ul, cO as fl, cP as hl, cQ as cl, cR as dl, cS as vl, cT as pl, cU as ml, cV as _l, cW as gl, cX as yl, cY as xl, cZ as Tl, c_ as wl, c$ as bl, ac as El, d0 as Sl, d1 as Al, d2 as Cl, d3 as Ml, d4 as Ll, d5 as Dl, i as it, V as ia, d6 as wo, R as bo, d7 as Pn, d8 as Pl, d9 as Lr, da as na, aJ as Eo, db as Rl, dc as Nl, dd as Ol, aj as lt, de as Il, bN as ni, bO as ai, df as So, dg as Bl, dh as Fl, ar as Ao, di as Co, aI as Ul, dj as zl, dk as Hl, bK as Gl, al as Vl, bn as kl, b_ as Wl, b$ as Xl, c1 as ql, c2 as jl } from "./installCanvasRenderer-B7sfDGoL.mjs";
|
|
3
3
|
var ir = Math.PI * 2, xt = Ms.CMD, Zl = ["top", "right", "bottom", "left"];
|
|
4
4
|
function Yl(e, t, r, i, n) {
|
|
5
5
|
var a = r.width, o = r.height;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e, { useRef as Fe, useState as _, useLayoutEffect as Hr, useMemo as ot, useEffect as He, useCallback as je } from "react";
|
|
2
2
|
import { createPortal as un } from "react-dom";
|
|
3
|
-
import { C as or, r as Kr, c as pn, a as Wr, n as Yt, e as Wt, t as ge, l as dn, g as Ce, b as xn, d as Fr, f as fn, p as ur, h as Or, i as Yr, j as gr, k as Vr, m as zt, M as _r, o as Xr, q as zr, s as gn, I as mn, u as yn, v as bn, w as Zr, x as qr, y as lr, z as hn, A as vn, V as En, B as Qr, D as Jr, E as kn, F as mr, G as wn, H as Sn, J as Mn, K as An, L as jr, N as Cn, O as $n, P as Wn, Q as Gr, R as zn } from "./react-
|
|
3
|
+
import { C as or, r as Kr, c as pn, a as Wr, n as Yt, e as Wt, t as ge, l as dn, g as Ce, b as xn, d as Fr, f as fn, p as ur, h as Or, i as Yr, j as gr, k as Vr, m as zt, M as _r, o as Xr, q as zr, s as gn, I as mn, u as yn, v as bn, w as Zr, x as qr, y as lr, z as hn, A as vn, V as En, B as Qr, D as Jr, E as kn, F as mr, G as wn, H as Sn, J as Mn, K as An, L as jr, N as Cn, O as $n, P as Wn, Q as Gr, R as zn } from "./react-CPZZxtSo.mjs";
|
|
4
4
|
function Bn(t, n, o) {
|
|
5
5
|
const f = Math.min(n.width, Math.max(0, o.width - 16)), h = Math.max(0, o.height - 8 - t.bottom - 6), S = Math.max(0, t.top - 6 - 8), $ = n.height > h && S > h, R = $ ? S : h, C = Math.min(n.height, R);
|
|
6
6
|
return {
|
|
@@ -303,10 +303,10 @@ const Lr = [
|
|
|
303
303
|
`)}`], { type: "text/csv;charset=utf-8" }), `${n}.csv`);
|
|
304
304
|
}, aa = /* @__PURE__ */ new Set(["bar3d", "line3d", "scatter3d", "range", "boxplot", "nightingale"]), la = /* @__PURE__ */ new Set(["bar3d", "line3d", "scatter3d"]), oa = e.lazy(() => import(
|
|
305
305
|
/* webpackChunkName: "pivot-echarts-2d" */
|
|
306
|
-
"./ECharts2dRenderer-
|
|
306
|
+
"./ECharts2dRenderer-C3Qv0uAa.mjs"
|
|
307
307
|
)), ia = e.lazy(() => import(
|
|
308
308
|
/* webpackChunkName: "pivot-echarts-3d" */
|
|
309
|
-
"./ECharts3dRenderer-
|
|
309
|
+
"./ECharts3dRenderer-BB_7-fOt.mjs"
|
|
310
310
|
)), nr = ({ chartType: t, echartsRef: n, option: o }) => {
|
|
311
311
|
const i = la.has(t) ? ia : oa;
|
|
312
312
|
return /* @__PURE__ */ e.createElement(e.Suspense, { fallback: /* @__PURE__ */ e.createElement("div", { "aria-label": "Loading chart", style: { width: "100%", height: "100%" } }) }, /* @__PURE__ */ e.createElement(i, { echartsRef: n, option: o }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { useState as H, useRef as ke, useMemo as z, useCallback as B, useEffect as $e } from "react";
|
|
2
|
-
import { a9 as Et, am as St, y as v, an as Ct, ab as wt, Y as M, ao as At } from "./react-
|
|
2
|
+
import { a9 as Et, am as St, y as v, an as Ct, ab as wt, Y as M, ao as At } from "./react-CPZZxtSo.mjs";
|
|
3
3
|
const ae = () => `r${Date.now().toString(36)}${Math.random().toString(36).slice(2, 6)}`, Xe = [
|
|
4
4
|
{ value: "eq", label: "Equals" },
|
|
5
5
|
{ value: "not_eq", label: "Not equals" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e, { useState as be, useRef as mt, useEffect as er } from "react";
|
|
2
|
-
import { y as z, Y as fe, Z as Wr, _ as Br, $ as xt, a0 as Je, a1 as Ir, a2 as Lr, a3 as Pr, a4 as Fe, a5 as Qe, a6 as et, E as Or, a7 as Hr, a8 as Ur, a9 as jr, aa as Pe, ab as tr, ac as Vr, ad as Ht, ae as Yr, af as Zr, ag as Kr, ah as Gr, ai as Nr, aj as Xr } from "./react-
|
|
2
|
+
import { y as z, Y as fe, Z as Wr, _ as Br, $ as xt, a0 as Je, a1 as Ir, a2 as Lr, a3 as Pr, a4 as Fe, a5 as Qe, a6 as et, E as Or, a7 as Hr, a8 as Ur, a9 as jr, aa as Pe, ab as tr, ac as Vr, ad as Ht, ae as Yr, af as Zr, ag as Kr, ah as Gr, ai as Nr, aj as Xr } from "./react-CPZZxtSo.mjs";
|
|
3
3
|
const Jr = ({ column: t, theme: n, styles: s, onFilter: a, currentFilter: l, options: g, optionMeta: u, onSearchOptions: E, onLoadMoreOptions: d, onOpen: $ }) => {
|
|
4
4
|
const [i, m] = be(!1), T = l && (l.conditions || l.value), L = () => m(!1), _ = () => {
|
|
5
5
|
const D = !i;
|
|
@@ -405,7 +405,7 @@ const cn = (t, n) => (n && Array.isArray(n.rules) ? n.rules : []).map((s) => ({
|
|
|
405
405
|
count: t.reduce((a, l) => Pr(l, s.condition) ? a + 1 : a, 0)
|
|
406
406
|
})), un = e.lazy(() => import(
|
|
407
407
|
/* webpackChunkName: "pivot-report-editor" */
|
|
408
|
-
"./ReportEditor-
|
|
408
|
+
"./ReportEditor-D4V0ry2B.mjs"
|
|
409
409
|
).then((t) => ({
|
|
410
410
|
default: t.ReportEditor
|
|
411
411
|
}))), pn = (t) => /* @__PURE__ */ e.createElement(e.Suspense, { fallback: /* @__PURE__ */ e.createElement("div", { role: "status", style: { padding: "16px" } }, "Loading report builder…") }, /* @__PURE__ */ e.createElement(un, { ...t }));
|
package/dist/react/chunks/{SparklineDetailGraph-90WjWkhg.mjs → SparklineDetailGraph-Bu85X7OJ.mjs}
RENAMED
|
@@ -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-
|
|
2
|
+
import { S as et, T as nt, U as rt, W as w, X as at } from "./react-CPZZxtSo.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(() => {
|
package/dist/react/chunks/{installCanvasRenderer-C8gE9ttC.mjs → installCanvasRenderer-B7sfDGoL.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { al as xS, ak as MS } from "./react-
|
|
1
|
+
import { al as xS, ak as MS } from "./react-CPZZxtSo.mjs";
|
|
2
2
|
import DS from "react";
|
|
3
3
|
var Ha = {}, Xl = function(e, t) {
|
|
4
4
|
return Xl = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|