serverside_pivot 0.0.91 → 0.0.96
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 +182 -182
- package/dist/react/chunks/ContextMenu-DJuS4qTZ.mjs +198 -0
- package/dist/react/chunks/{DetailDrawer-Eb4EpVHG.mjs → DetailDrawer-DgKSC5Vu.mjs} +1 -1
- package/dist/react/chunks/{DetailSidePanel-BTcHOiKr.mjs → DetailSidePanel-CC5Dugyl.mjs} +1 -1
- package/dist/react/chunks/{DetailSurfaceContent-B3ZNKh7q.mjs → DetailSurfaceContent-CrQVHlcU.mjs} +85 -77
- package/dist/react/chunks/{ECharts2dRenderer-C3Qv0uAa.mjs → ECharts2dRenderer-46gLrUdf.mjs} +412 -410
- package/dist/react/chunks/{ECharts3dRenderer-BB_7-fOt.mjs → ECharts3dRenderer-Dg4ta5Bl.mjs} +2211 -3197
- package/dist/react/chunks/{EditSidePanel-C2cAvxlK.mjs → EditSidePanel-CkShaByb.mjs} +77 -65
- package/dist/react/chunks/{InlineDetailPanel-BXLAw1o3.mjs → InlineDetailPanel-mnwjoD0I.mjs} +1 -1
- package/dist/react/chunks/PivotCharts-MX-Z7DlR.mjs +5076 -0
- package/dist/react/chunks/{ReportEditor-D4V0ry2B.mjs → ReportEditor-U0E42xKL.mjs} +952 -631
- package/dist/react/chunks/SidebarPanel-BzRW1Kgq.mjs +3944 -0
- package/dist/react/chunks/{SparklineDetailGraph-Bu85X7OJ.mjs → SparklineDetailGraph-35Tim_8B.mjs} +88 -58
- package/dist/react/chunks/installCanvasRenderer-DRq0xpXO.mjs +21174 -0
- package/dist/react/chunks/react-CL4GbEOd.mjs +33206 -0
- package/dist/react/chunks/{xlsx.mini.min-vfxHk3Ry.mjs → xlsx.mini.min-kfIgXMVB.mjs} +5 -5
- package/dist/react/components/Charts/ChartRenderers.d.ts +5 -73
- package/dist/react/components/Charts/ChartWorkspace.d.ts +3 -34
- package/dist/react/components/Charts/ECharts2dRenderer.d.ts +2 -5
- package/dist/react/components/Charts/ECharts3dRenderer.d.ts +2 -6
- package/dist/react/components/Charts/PivotCharts.d.ts +2 -9
- package/dist/react/components/Charts/chartEnhancements.d.ts +17 -66
- package/dist/react/components/Charts/chartExportPresentation.d.ts +5 -19
- package/dist/react/components/Charts/chartMath.d.ts +4 -4
- package/dist/react/components/Charts/useChartExportMenu.d.ts +4 -12
- package/dist/react/components/DashTanstackPivot.react.d.ts +40 -0
- package/dist/react/components/Filters/ColumnFilter.d.ts +2 -12
- package/dist/react/components/Filters/DateRangeFilter.d.ts +2 -7
- package/dist/react/components/Filters/FilterPopover.d.ts +2 -13
- package/dist/react/components/Filters/MultiSelectFilter.d.ts +2 -11
- package/dist/react/components/Filters/NumericRangeFilter.d.ts +2 -7
- package/dist/react/components/Notification.d.ts +2 -6
- package/dist/react/components/PivotAppBar.d.ts +2 -2
- package/dist/react/components/PivotErrorBoundary.d.ts +11 -7
- package/dist/react/components/PivotSmallComponents.d.ts +2 -3
- package/dist/react/components/PivotWorkspaceCanvas.d.ts +2 -5
- package/dist/react/components/PivotWorkspaceControls.d.ts +4 -8
- package/dist/react/components/PivotWorkspaceShell.d.ts +4 -12
- package/dist/react/components/RuntimeDataError.d.ts +2 -7
- package/dist/react/components/ShimmerFallback.d.ts +11 -0
- package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +2 -13
- package/dist/react/components/Sidebar/ReportEditor.d.ts +7 -20
- package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +2 -13
- package/dist/react/components/Sidebar/SidebarPanel.d.ts +1 -2
- package/dist/react/components/Sidebar/ToolPanelSection.d.ts +2 -13
- package/dist/react/components/Sidebar/customCategoryUtils.d.ts +31 -62
- package/dist/react/components/Sidebar/formulaUtils.d.ts +16 -18
- package/dist/react/components/SkeletonRow.d.ts +2 -5
- package/dist/react/components/Table/ContextMenu.d.ts +2 -8
- package/dist/react/components/Table/DetailDrawer.d.ts +2 -11
- package/dist/react/components/Table/DetailSidePanel.d.ts +2 -11
- package/dist/react/components/Table/DetailSurfaceContent.d.ts +2 -11
- package/dist/react/components/Table/EditSidePanel.d.ts +2 -20
- package/dist/react/components/Table/EditableCell.d.ts +2 -28
- package/dist/react/components/Table/InlineDetailPanel.d.ts +2 -13
- package/dist/react/components/Table/PivotTableBody.d.ts +3 -3
- package/dist/react/components/Table/SparklineCell.d.ts +2 -17
- package/dist/react/components/Table/SparklineDetailGraph.d.ts +2 -5
- package/dist/react/components/Table/StatusBar.d.ts +2 -7
- package/dist/react/components/ThemedSelect.d.ts +8 -0
- package/dist/react/contexts/PivotConfigContext.d.ts +5 -33
- package/dist/react/contexts/PivotThemeContext.d.ts +8 -4
- package/dist/react/contexts/PivotValueDisplayContext.d.ts +5 -9
- package/dist/react/hooks/useChartState.d.ts +2 -71
- package/dist/react/hooks/useColumnDefs.d.ts +3 -68
- package/dist/react/hooks/useColumnVirtualizer.d.ts +1 -30
- package/dist/react/hooks/useDetailDrillThrough.d.ts +2 -36
- package/dist/react/hooks/useFilteredData.d.ts +4 -2
- package/dist/react/hooks/useFormatState.d.ts +2 -39
- package/dist/react/hooks/usePersistence.d.ts +4 -5
- package/dist/react/hooks/usePivotFieldInteractions.d.ts +2 -23
- package/dist/react/hooks/usePivotNormalization.d.ts +127 -461
- package/dist/react/hooks/usePivotRenderCounter.d.ts +2 -1
- package/dist/react/hooks/usePivotTransactions.d.ts +2 -23
- package/dist/react/hooks/useRenderHelpers.d.ts +3 -71
- package/dist/react/hooks/useReportMode.d.ts +2 -28
- package/dist/react/hooks/useRowCache.d.ts +16 -15
- package/dist/react/hooks/useRuntimeDataCommit.d.ts +2 -22
- package/dist/react/hooks/useRuntimeProfiling.d.ts +2 -13
- package/dist/react/hooks/useRuntimeTransport.d.ts +2 -18
- package/dist/react/hooks/useServerSideRowModel.d.ts +1 -50
- package/dist/react/hooks/useServerSideViewportController.d.ts +1 -64
- package/dist/react/hooks/useSidebarUI.d.ts +2 -32
- package/dist/react/hooks/useStickyStyles.d.ts +2 -23
- package/dist/react/index.mjs +15 -9
- package/dist/react/presentation/headerFormatting.d.ts +28 -11
- package/dist/react/presentation/safeCellContent.d.ts +22 -5
- package/dist/react/react.d.ts +4 -1
- package/dist/react/runtime/PivotRuntimeRoot.d.ts +1 -1
- package/dist/react/runtime/client/clientPivotTransport.d.ts +6 -1
- package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +50 -0
- package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +3 -0
- package/dist/react/runtime/client/types.d.ts +17 -0
- package/dist/react/runtime/createRuntimeCellPresentation.d.ts +2 -7
- package/dist/react/runtime/createRuntimeExportCommands.d.ts +2 -71
- package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +2 -9
- package/dist/react/runtime/displayColumnOrder.d.ts +4 -4
- package/dist/react/runtime/httpTransport.d.ts +1 -0
- package/dist/react/runtime/runtime-contract.generated.d.ts +3 -0
- package/dist/react/runtime/runtimeContract.d.ts +3 -0
- package/dist/react/runtime/runtimeDomains.d.ts +110 -0
- package/dist/react/runtime/useChartWorkspacePresentation.d.ts +2 -45
- package/dist/react/runtime/useCoreRuntime.d.ts +4 -1
- package/dist/react/runtime/useCoreRuntimeStage.d.ts +1 -1
- package/dist/react/runtime/useRuntimeCellSelection.d.ts +2 -40
- package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +7 -31
- package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +2 -13
- package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +2 -9
- package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +2 -14
- package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +2 -28
- package/dist/react/runtime/useRuntimeChartModels.d.ts +2 -62
- package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +2 -12
- package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +2 -4
- package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +2 -152
- package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +2 -7
- package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +2 -55
- package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +2 -26
- package/dist/react/runtime/useRuntimeColumnCommands.d.ts +2 -22
- package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +2 -11
- package/dist/react/runtime/useRuntimeDataRetry.d.ts +2 -12
- package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +2 -11
- package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +2 -18
- package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +2 -28
- package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +2 -35
- package/dist/react/runtime/useRuntimeEditDispatch.d.ts +2 -43
- package/dist/react/runtime/useRuntimeEditOwnership.d.ts +2 -28
- package/dist/react/runtime/useRuntimeEditPresentation.d.ts +2 -32
- package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +2 -24
- package/dist/react/runtime/useRuntimeExportState.d.ts +5 -5
- package/dist/react/runtime/useRuntimeFilterPopover.d.ts +2 -19
- package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +2 -40
- package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +2 -27
- package/dist/react/runtime/useRuntimeRequestSession.d.ts +2 -76
- package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +2 -43
- package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +2 -15
- package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +2 -28
- package/dist/react/runtime/useRuntimeRowEditing.d.ts +2 -18
- package/dist/react/runtime/useRuntimeRowSelection.d.ts +2 -14
- package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +2 -30
- package/dist/react/runtime/useRuntimeStructuralSync.d.ts +2 -61
- package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +2 -5
- package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +2 -196
- package/dist/react/runtime/useRuntimeViewportTableData.d.ts +2 -23
- package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +2 -109
- package/dist/react/utils/Icons.d.ts +2 -45
- package/dist/react/utils/chartModelBuilders.d.ts +76 -230
- package/dist/react/utils/columnOrder.d.ts +8 -12
- package/dist/react/utils/dataBars.d.ts +4 -7
- package/dist/react/utils/domEvents.d.ts +2 -1
- package/dist/react/utils/editing.d.ts +12 -47
- package/dist/react/utils/exportUtils.d.ts +30 -101
- package/dist/react/utils/fieldPanelLayout.d.ts +12 -61
- package/dist/react/utils/filterOptions.d.ts +4 -4
- package/dist/react/utils/helpers.d.ts +21 -18
- package/dist/react/utils/horizontalViewport.d.ts +1 -12
- package/dist/react/utils/layoutRows.d.ts +3 -3
- package/dist/react/utils/measureAxis.d.ts +6 -22
- package/dist/react/utils/pivotLayoutUtils.d.ts +7 -2
- package/dist/react/utils/pivotProfiler.d.ts +3 -3
- package/dist/react/utils/reportEditorSelection.d.ts +1 -23
- package/dist/react/utils/rowSpanning.d.ts +3 -6
- package/dist/react/utils/savedReports.d.ts +4 -7
- package/dist/react/utils/sorting.d.ts +8 -14
- package/dist/react/utils/sparklineDetail.d.ts +5 -8
- package/dist/react/utils/sparklines.d.ts +10 -78
- package/dist/react/utils/styles.d.ts +19 -308
- package/package.json +114 -114
- package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +0 -192
- package/dist/react/chunks/PivotCharts-Bw6Swoa3.mjs +0 -4252
- package/dist/react/chunks/SidebarPanel-xO59p_2o.mjs +0 -3339
- package/dist/react/chunks/installCanvasRenderer-B7sfDGoL.mjs +0 -21281
- package/dist/react/chunks/react-CPZZxtSo.mjs +0 -26999
package/package.json
CHANGED
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "serverside_pivot",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Enterprise-grade analytical pivot table & virtualized data grid for React. Dual-engine: zero-network in-browser analytics (DuckDB-WASM & in-memory) and scalable server-side pushdown. Built with TanStack Table v8, ECharts 6, and 2D virtualization.",
|
|
5
|
-
"main": "./dist/react/index.mjs",
|
|
6
|
-
"types": "./dist/react/react.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist/react",
|
|
9
|
-
"README.md"
|
|
10
|
-
],
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"types": "./dist/react/react.d.ts",
|
|
14
|
-
"import": "./dist/react/index.mjs",
|
|
15
|
-
"default": "./dist/react/index.mjs"
|
|
16
|
-
},
|
|
17
|
-
"./react": {
|
|
18
|
-
"types": "./dist/react/react.d.ts",
|
|
19
|
-
"import": "./dist/react/index.mjs",
|
|
20
|
-
"default": "./dist/react/index.mjs"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"start": "webpack-dev-server --config ./webpack.serve.config.js --open",
|
|
25
|
-
"build:js": "webpack --mode production",
|
|
26
|
-
"build:react": "vite build --config vite.react.config.mjs && tsc --project tsconfig.react.build.json",
|
|
27
|
-
"build:streamlit": "npm --prefix streamlit_pivot/frontend ci && npm --prefix streamlit_pivot/frontend run build",
|
|
28
|
-
"build:py": "python scripts/build_py_strict.py",
|
|
29
|
-
"build": "npm run typecheck && npm run build:js && npm run build:react && npm run build:streamlit && npm run build:py",
|
|
30
|
-
"prepack": "npm run build:react",
|
|
31
|
-
"benchmark:runtime": "python ../scripts/benchmark_pivot_runtime.py",
|
|
32
|
-
"benchmark:browser": "python ../scripts/benchmark_browser_runtime.py",
|
|
33
|
-
"benchmark:flagship-transport": "python ../scripts/benchmark_flagship_transport.py",
|
|
34
|
-
"certify:flagship": "python ../scripts/certify_flagship.py",
|
|
35
|
-
"typecheck": "tsc --noEmit && npm run typecheck:js",
|
|
36
|
-
"typecheck:js": "tsc --project tsconfig.checked-js.json --noEmit && node scripts/verify_checked_js_gate.mjs",
|
|
37
|
-
"generate:runtime-contract-types": "json2ts -i pivot_engine/pivot_engine/runtime/runtime-contract.schema.json -o src/lib/runtime/runtime-contract.generated.ts && json2ts -i pivot_engine/pivot_engine/runtime/runtime-response.schema.json -o src/lib/runtime/runtime-response-contract.generated.ts"
|
|
38
|
-
},
|
|
39
|
-
"author": "Ramzy <ramzyelawady@gmail.com>",
|
|
40
|
-
"license": "MIT",
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"@tanstack/react-table": "^8.10.7",
|
|
43
|
-
"@tanstack/react-virtual": "^3.0.0",
|
|
44
|
-
"echarts": "^6.1.0",
|
|
45
|
-
"echarts-for-react": "^3.0.6",
|
|
46
|
-
"echarts-gl": "^2.1.0",
|
|
47
|
-
"file-saver": "^2.0.5",
|
|
48
|
-
"ramda": "^0.26.1",
|
|
49
|
-
"styled-components": "^5.3.11",
|
|
50
|
-
"xlsx": "npm:@e965/xlsx@^0.20.3"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@babel/core": "^7.29.0",
|
|
54
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
55
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.5.4",
|
|
56
|
-
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
57
|
-
"@babel/preset-env": "^7.5.4",
|
|
58
|
-
"@babel/preset-react": "^7.0.0",
|
|
59
|
-
"@babel/preset-typescript": "^7.27.1",
|
|
60
|
-
"@plotly/webpack-dash-dynamic-import": "^1.2.0",
|
|
61
|
-
"@types/prop-types": "^15.7.15",
|
|
62
|
-
"@types/react": "^18.3.18",
|
|
63
|
-
"@types/react-dom": "^18.3.5",
|
|
64
|
-
"@vitejs/plugin-react": "^4.4.1",
|
|
65
|
-
"babel-loader": "^8.0.6",
|
|
66
|
-
"css-loader": "^7.1.2",
|
|
67
|
-
"json-schema-to-typescript": "^15.0.4",
|
|
68
|
-
"npm": "^11.7.0",
|
|
69
|
-
"prop-types": "^15.7.2",
|
|
70
|
-
"react": "^16.8.6",
|
|
71
|
-
"react-docgen": "^8.0.3",
|
|
72
|
-
"react-dom": "^16.8.6",
|
|
73
|
-
"style-loader": "^0.23.1",
|
|
74
|
-
"typescript": "^5.8.3",
|
|
75
|
-
"vite": "^6.2.2",
|
|
76
|
-
"webpack": "^5.104.1",
|
|
77
|
-
"webpack-cli": "^6.0.1",
|
|
78
|
-
"webpack-dev-server": "^5.0.0"
|
|
79
|
-
},
|
|
80
|
-
"peerDependencies": {
|
|
81
|
-
"react": ">=16.8.6",
|
|
82
|
-
"react-dom": ">=16.8.6",
|
|
83
|
-
"styled-components": ">=5.3.0"
|
|
84
|
-
},
|
|
85
|
-
"engines": {
|
|
86
|
-
"node": ">=8.11.0",
|
|
87
|
-
"npm": ">=6.1.0"
|
|
88
|
-
},
|
|
89
|
-
"keywords": [
|
|
90
|
-
"react",
|
|
91
|
-
"pivot-table",
|
|
92
|
-
"pivot-grid",
|
|
93
|
-
"datagrid",
|
|
94
|
-
"table",
|
|
95
|
-
"tanstack-table",
|
|
96
|
-
"duckdb-wasm",
|
|
97
|
-
"analytics",
|
|
98
|
-
"virtualized-table",
|
|
99
|
-
"olap",
|
|
100
|
-
"echarts",
|
|
101
|
-
"data-visualization",
|
|
102
|
-
"excel-formulas",
|
|
103
|
-
"spreadsheet",
|
|
104
|
-
"hybrid-pivot"
|
|
105
|
-
],
|
|
106
|
-
"repository": {
|
|
107
|
-
"type": "git",
|
|
108
|
-
"url": "git+https://github.com/Ramzy22/serverside_pivot.git"
|
|
109
|
-
},
|
|
110
|
-
"homepage": "https://github.com/Ramzy22/serverside_pivot#readme",
|
|
111
|
-
"bugs": {
|
|
112
|
-
"url": "https://github.com/Ramzy22/serverside_pivot/issues"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "serverside_pivot",
|
|
3
|
+
"version": "0.0.96",
|
|
4
|
+
"description": "Enterprise-grade analytical pivot table & virtualized data grid for React. Dual-engine: zero-network in-browser analytics (DuckDB-WASM & in-memory) and scalable server-side pushdown. Built with TanStack Table v8, ECharts 6, and 2D virtualization.",
|
|
5
|
+
"main": "./dist/react/index.mjs",
|
|
6
|
+
"types": "./dist/react/react.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/react",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/react/react.d.ts",
|
|
14
|
+
"import": "./dist/react/index.mjs",
|
|
15
|
+
"default": "./dist/react/index.mjs"
|
|
16
|
+
},
|
|
17
|
+
"./react": {
|
|
18
|
+
"types": "./dist/react/react.d.ts",
|
|
19
|
+
"import": "./dist/react/index.mjs",
|
|
20
|
+
"default": "./dist/react/index.mjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"start": "webpack-dev-server --config ./webpack.serve.config.js --open",
|
|
25
|
+
"build:js": "webpack --mode production",
|
|
26
|
+
"build:react": "vite build --config vite.react.config.mjs && tsc --project tsconfig.react.build.json",
|
|
27
|
+
"build:streamlit": "npm --prefix streamlit_pivot/frontend ci && npm --prefix streamlit_pivot/frontend run build",
|
|
28
|
+
"build:py": "python scripts/build_py_strict.py",
|
|
29
|
+
"build": "npm run typecheck && npm run build:js && npm run build:react && npm run build:streamlit && npm run build:py",
|
|
30
|
+
"prepack": "npm run build:react",
|
|
31
|
+
"benchmark:runtime": "python ../scripts/benchmark_pivot_runtime.py",
|
|
32
|
+
"benchmark:browser": "python ../scripts/benchmark_browser_runtime.py",
|
|
33
|
+
"benchmark:flagship-transport": "python ../scripts/benchmark_flagship_transport.py",
|
|
34
|
+
"certify:flagship": "python ../scripts/certify_flagship.py",
|
|
35
|
+
"typecheck": "tsc --noEmit && npm run typecheck:js",
|
|
36
|
+
"typecheck:js": "tsc --project tsconfig.checked-js.json --noEmit && node scripts/verify_checked_js_gate.mjs",
|
|
37
|
+
"generate:runtime-contract-types": "json2ts -i pivot_engine/pivot_engine/runtime/runtime-contract.schema.json -o src/lib/runtime/runtime-contract.generated.ts && json2ts -i pivot_engine/pivot_engine/runtime/runtime-response.schema.json -o src/lib/runtime/runtime-response-contract.generated.ts"
|
|
38
|
+
},
|
|
39
|
+
"author": "Ramzy <ramzyelawady@gmail.com>",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@tanstack/react-table": "^8.10.7",
|
|
43
|
+
"@tanstack/react-virtual": "^3.0.0",
|
|
44
|
+
"echarts": "^6.1.0",
|
|
45
|
+
"echarts-for-react": "^3.0.6",
|
|
46
|
+
"echarts-gl": "^2.1.0",
|
|
47
|
+
"file-saver": "^2.0.5",
|
|
48
|
+
"ramda": "^0.26.1",
|
|
49
|
+
"styled-components": "^5.3.11",
|
|
50
|
+
"xlsx": "npm:@e965/xlsx@^0.20.3"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@babel/core": "^7.29.0",
|
|
54
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
55
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.5.4",
|
|
56
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
57
|
+
"@babel/preset-env": "^7.5.4",
|
|
58
|
+
"@babel/preset-react": "^7.0.0",
|
|
59
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
60
|
+
"@plotly/webpack-dash-dynamic-import": "^1.2.0",
|
|
61
|
+
"@types/prop-types": "^15.7.15",
|
|
62
|
+
"@types/react": "^18.3.18",
|
|
63
|
+
"@types/react-dom": "^18.3.5",
|
|
64
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
65
|
+
"babel-loader": "^8.0.6",
|
|
66
|
+
"css-loader": "^7.1.2",
|
|
67
|
+
"json-schema-to-typescript": "^15.0.4",
|
|
68
|
+
"npm": "^11.7.0",
|
|
69
|
+
"prop-types": "^15.7.2",
|
|
70
|
+
"react": "^16.8.6",
|
|
71
|
+
"react-docgen": "^8.0.3",
|
|
72
|
+
"react-dom": "^16.8.6",
|
|
73
|
+
"style-loader": "^0.23.1",
|
|
74
|
+
"typescript": "^5.8.3",
|
|
75
|
+
"vite": "^6.2.2",
|
|
76
|
+
"webpack": "^5.104.1",
|
|
77
|
+
"webpack-cli": "^6.0.1",
|
|
78
|
+
"webpack-dev-server": "^5.0.0"
|
|
79
|
+
},
|
|
80
|
+
"peerDependencies": {
|
|
81
|
+
"react": ">=16.8.6",
|
|
82
|
+
"react-dom": ">=16.8.6",
|
|
83
|
+
"styled-components": ">=5.3.0"
|
|
84
|
+
},
|
|
85
|
+
"engines": {
|
|
86
|
+
"node": ">=8.11.0",
|
|
87
|
+
"npm": ">=6.1.0"
|
|
88
|
+
},
|
|
89
|
+
"keywords": [
|
|
90
|
+
"react",
|
|
91
|
+
"pivot-table",
|
|
92
|
+
"pivot-grid",
|
|
93
|
+
"datagrid",
|
|
94
|
+
"table",
|
|
95
|
+
"tanstack-table",
|
|
96
|
+
"duckdb-wasm",
|
|
97
|
+
"analytics",
|
|
98
|
+
"virtualized-table",
|
|
99
|
+
"olap",
|
|
100
|
+
"echarts",
|
|
101
|
+
"data-visualization",
|
|
102
|
+
"excel-formulas",
|
|
103
|
+
"spreadsheet",
|
|
104
|
+
"hybrid-pivot"
|
|
105
|
+
],
|
|
106
|
+
"repository": {
|
|
107
|
+
"type": "git",
|
|
108
|
+
"url": "git+https://github.com/Ramzy22/serverside_pivot.git"
|
|
109
|
+
},
|
|
110
|
+
"homepage": "https://github.com/Ramzy22/serverside_pivot#readme",
|
|
111
|
+
"bugs": {
|
|
112
|
+
"url": "https://github.com/Ramzy22/serverside_pivot/issues"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import p, { useState as T, useRef as R, useCallback as v, useEffect as B, useLayoutEffect as O } from "react";
|
|
2
|
-
const G = 80, J = 220, N = ({ actions: e, theme: t, onClose: b, itemRefs: f, onItemMouseEnter: g, onKeyDown: D }) => /* @__PURE__ */ p.createElement(p.Fragment, null, e.map((u, o) => {
|
|
3
|
-
if (u === "separator")
|
|
4
|
-
return /* @__PURE__ */ p.createElement(
|
|
5
|
-
"div",
|
|
6
|
-
{
|
|
7
|
-
key: o,
|
|
8
|
-
role: "presentation",
|
|
9
|
-
style: { height: "1px", background: (t == null ? void 0 : t.border) || "#e0e0e0", margin: "4px 0" }
|
|
10
|
-
}
|
|
11
|
-
);
|
|
12
|
-
const a = !!u.disabled, d = Array.isArray(u.children) && u.children.length > 0;
|
|
13
|
-
return /* @__PURE__ */ p.createElement(
|
|
14
|
-
"div",
|
|
15
|
-
{
|
|
16
|
-
key: o,
|
|
17
|
-
ref: (l) => {
|
|
18
|
-
f && (f.current[o] = l);
|
|
19
|
-
},
|
|
20
|
-
role: "menuitem",
|
|
21
|
-
"aria-haspopup": d ? "menu" : void 0,
|
|
22
|
-
"aria-disabled": a || void 0,
|
|
23
|
-
tabIndex: a ? -1 : 0,
|
|
24
|
-
title: u.title || (typeof u.label == "string" ? u.label : void 0),
|
|
25
|
-
onMouseEnter: (l) => {
|
|
26
|
-
l.currentTarget.style.backgroundColor = a ? "" : (t == null ? void 0 : t.hover) || "#f5f5f5", g && g(o, d, a);
|
|
27
|
-
},
|
|
28
|
-
onMouseLeave: (l) => {
|
|
29
|
-
l.currentTarget.style.backgroundColor = "";
|
|
30
|
-
},
|
|
31
|
-
onClick: (l) => {
|
|
32
|
-
if (a || d) {
|
|
33
|
-
l.stopPropagation();
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
typeof u.onClick == "function" && u.onClick(), b();
|
|
37
|
-
},
|
|
38
|
-
onKeyDown: (l) => {
|
|
39
|
-
a || (l.key === "Enter" || l.key === " " ? (l.preventDefault(), l.stopPropagation(), !d && typeof u.onClick == "function" && u.onClick(), d ? g && g(o, !0, !1) : b()) : D && D(l, o));
|
|
40
|
-
},
|
|
41
|
-
style: {
|
|
42
|
-
padding: "7px 12px 7px 14px",
|
|
43
|
-
cursor: a ? "not-allowed" : "pointer",
|
|
44
|
-
display: "flex",
|
|
45
|
-
alignItems: "center",
|
|
46
|
-
gap: "8px",
|
|
47
|
-
color: a ? (t == null ? void 0 : t.textSec) || "#757575" : (t == null ? void 0 : t.text) || "#111",
|
|
48
|
-
opacity: a ? 0.48 : 1,
|
|
49
|
-
userSelect: "none"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
u.icon && /* @__PURE__ */ p.createElement("span", { style: { color: (t == null ? void 0 : t.textSec) || "#757575", display: "flex", flexShrink: 0 } }, u.icon),
|
|
53
|
-
/* @__PURE__ */ p.createElement("span", { style: { flex: 1 } }, u.label),
|
|
54
|
-
d && /* @__PURE__ */ p.createElement("span", { style: { color: (t == null ? void 0 : t.textSec) || "#9ca3af", fontSize: "10px", marginLeft: "4px" } }, "▶")
|
|
55
|
-
);
|
|
56
|
-
})), U = (e) => ({
|
|
57
|
-
background: (e == null ? void 0 : e.surfaceBg) || (e == null ? void 0 : e.background) || "#fff",
|
|
58
|
-
border: `1px solid ${(e == null ? void 0 : e.border) || "#ccc"}`,
|
|
59
|
-
boxShadow: (e == null ? void 0 : e.shadowMd) || "0 4px 20px rgba(0,0,0,0.15)",
|
|
60
|
-
padding: "6px 0",
|
|
61
|
-
borderRadius: (e == null ? void 0 : e.radiusSm) || "8px",
|
|
62
|
-
fontSize: "13px",
|
|
63
|
-
minWidth: "190px",
|
|
64
|
-
maxWidth: "300px",
|
|
65
|
-
color: (e == null ? void 0 : e.text) || "#111"
|
|
66
|
-
}), V = ({ x: e, y: t, onClose: b, actions: f, theme: g }) => {
|
|
67
|
-
const [D, u] = T({ x: e, y: t }), [o, a] = T(null), [d, l] = T(null), W = R(null), H = R(null), k = R([]), A = R(null), E = v((n, r = 1) => {
|
|
68
|
-
const s = f.length;
|
|
69
|
-
for (let i = 0; i < s; i++) {
|
|
70
|
-
const y = (n + i * r + s * 2) % s, c = f[y];
|
|
71
|
-
if (c && c !== "separator" && !c.disabled && k.current[y]) {
|
|
72
|
-
k.current[y].focus();
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}, [f]);
|
|
77
|
-
B(() => {
|
|
78
|
-
E(0, 1);
|
|
79
|
-
}, [E]), B(() => () => clearTimeout(A.current), []);
|
|
80
|
-
const K = v(() => {
|
|
81
|
-
clearTimeout(A.current), A.current = setTimeout(() => {
|
|
82
|
-
a(null), l(null);
|
|
83
|
-
}, J);
|
|
84
|
-
}, []), L = v(() => {
|
|
85
|
-
clearTimeout(A.current);
|
|
86
|
-
}, []), C = v((n) => {
|
|
87
|
-
clearTimeout(A.current), A.current = setTimeout(() => {
|
|
88
|
-
a(n);
|
|
89
|
-
const r = k.current[n];
|
|
90
|
-
r && l(r.getBoundingClientRect());
|
|
91
|
-
}, o !== null ? 0 : G);
|
|
92
|
-
}, [o]), Y = v((n, r, s) => {
|
|
93
|
-
s || (r ? C(n) : (L(), a(null), l(null)));
|
|
94
|
-
}, [C, L]), I = v((n, r) => {
|
|
95
|
-
if (n.key === "Escape")
|
|
96
|
-
n.preventDefault(), b();
|
|
97
|
-
else if (n.key === "ArrowDown")
|
|
98
|
-
n.preventDefault(), E(r + 1, 1);
|
|
99
|
-
else if (n.key === "ArrowUp")
|
|
100
|
-
n.preventDefault(), E(r - 1, -1);
|
|
101
|
-
else if (n.key === "Home")
|
|
102
|
-
n.preventDefault(), E(0, 1);
|
|
103
|
-
else if (n.key === "End")
|
|
104
|
-
n.preventDefault(), E(f.length - 1, -1);
|
|
105
|
-
else if (n.key === "ArrowRight" && o === null && Number.isFinite(r) && r >= 0) {
|
|
106
|
-
const s = f[r];
|
|
107
|
-
s && s !== "separator" && Array.isArray(s.children) && (n.preventDefault(), C(r));
|
|
108
|
-
}
|
|
109
|
-
}, [b, E, f, o, C]);
|
|
110
|
-
O(() => {
|
|
111
|
-
const n = () => {
|
|
112
|
-
var F;
|
|
113
|
-
const r = window.innerWidth, s = window.innerHeight, i = (F = W.current) == null ? void 0 : F.getBoundingClientRect(), y = (i == null ? void 0 : i.width) || 200, c = (i == null ? void 0 : i.height) || f.length * 32 + 20, x = 8;
|
|
114
|
-
let M = Math.max(x, Math.min(e, r - y - x)), q = Math.max(x, Math.min(t, s - c - x));
|
|
115
|
-
u({ x: M, y: q });
|
|
116
|
-
};
|
|
117
|
-
return n(), window.addEventListener("resize", n), window.addEventListener("scroll", n, !0), () => {
|
|
118
|
-
window.removeEventListener("resize", n), window.removeEventListener("scroll", n, !0);
|
|
119
|
-
};
|
|
120
|
-
}, [e, t, f.length]);
|
|
121
|
-
const [_, $] = T({ left: 0, top: 0 });
|
|
122
|
-
O(() => {
|
|
123
|
-
if (!d || o === null) return;
|
|
124
|
-
const n = H.current;
|
|
125
|
-
if (!n) return;
|
|
126
|
-
const r = window.innerWidth, s = window.innerHeight, i = n.offsetWidth || 200, y = n.offsetHeight || 200, c = 6;
|
|
127
|
-
let x = d.right + 2;
|
|
128
|
-
x + i > r - c && (x = d.left - i - 2);
|
|
129
|
-
let M = d.top - 6;
|
|
130
|
-
M + y > s - c && (M = s - y - c), $({ left: Math.max(c, x), top: Math.max(c, M) });
|
|
131
|
-
}, [d, o]);
|
|
132
|
-
const P = o !== null ? f[o] : null, w = P && Array.isArray(P.children) ? P.children : null, S = R([]), z = v((n, r = 1) => {
|
|
133
|
-
if (!w) return;
|
|
134
|
-
const s = w.length;
|
|
135
|
-
for (let i = 0; i < s; i++) {
|
|
136
|
-
const y = (n + i * r + s * 2) % s, c = w[y];
|
|
137
|
-
if (c && c !== "separator" && !c.disabled && S.current[y]) {
|
|
138
|
-
S.current[y].focus();
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}, [w]);
|
|
143
|
-
B(() => {
|
|
144
|
-
w && (S.current = S.current.slice(0, w.length));
|
|
145
|
-
}, [w]);
|
|
146
|
-
const j = v((n, r) => {
|
|
147
|
-
n.key === "Escape" || n.key === "ArrowLeft" ? (n.preventDefault(), n.stopPropagation(), a(null), l(null), o !== null && k.current[o] && k.current[o].focus()) : n.key === "ArrowDown" ? (n.preventDefault(), z(r + 1, 1)) : n.key === "ArrowUp" && (n.preventDefault(), z(r - 1, -1));
|
|
148
|
-
}, [z, o]);
|
|
149
|
-
return /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement(
|
|
150
|
-
"div",
|
|
151
|
-
{
|
|
152
|
-
ref: W,
|
|
153
|
-
role: "menu",
|
|
154
|
-
style: { position: "fixed", top: D.y, left: D.x, zIndex: 10001, ...U(g) },
|
|
155
|
-
onMouseLeave: K,
|
|
156
|
-
onMouseEnter: L
|
|
157
|
-
},
|
|
158
|
-
/* @__PURE__ */ p.createElement(
|
|
159
|
-
N,
|
|
160
|
-
{
|
|
161
|
-
actions: f,
|
|
162
|
-
theme: g,
|
|
163
|
-
onClose: b,
|
|
164
|
-
itemRefs: k,
|
|
165
|
-
onItemMouseEnter: Y,
|
|
166
|
-
onKeyDown: I
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
), w && /* @__PURE__ */ p.createElement(
|
|
170
|
-
"div",
|
|
171
|
-
{
|
|
172
|
-
ref: H,
|
|
173
|
-
role: "menu",
|
|
174
|
-
style: { position: "fixed", top: _.top, left: _.left, zIndex: 10002, ...U(g) },
|
|
175
|
-
onMouseEnter: L,
|
|
176
|
-
onMouseLeave: K
|
|
177
|
-
},
|
|
178
|
-
/* @__PURE__ */ p.createElement(
|
|
179
|
-
N,
|
|
180
|
-
{
|
|
181
|
-
actions: w,
|
|
182
|
-
theme: g,
|
|
183
|
-
onClose: b,
|
|
184
|
-
itemRefs: S,
|
|
185
|
-
onKeyDown: j
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
));
|
|
189
|
-
};
|
|
190
|
-
export {
|
|
191
|
-
V as default
|
|
192
|
-
};
|