react-open-source-grid 1.5.3 → 1.5.4
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/dist/lib/App.d.ts +3 -0
- package/dist/lib/chunk-FG3FLQAE.js +296 -0
- package/dist/lib/components/AccessibilityDemo.d.ts +8 -0
- package/dist/lib/components/ApiReferencePage.d.ts +2 -0
- package/dist/lib/components/BenchmarkDemo.d.ts +2 -0
- package/dist/lib/components/CellRenderersDemo.d.ts +16 -0
- package/dist/lib/components/CodeBlock.d.ts +10 -0
- package/dist/lib/components/ColumnFiltersDemo.d.ts +5 -0
- package/dist/lib/components/CompleteApiReferencePage.d.ts +2 -0
- package/dist/lib/components/ContextMenuDemo.d.ts +12 -0
- package/dist/lib/components/DataGrid/ARCHITECTURE.md.d.ts +288 -0
- package/dist/lib/components/DataGrid/AdvancedFilterBuilder.d.ts +12 -0
- package/dist/lib/components/DataGrid/CellRenderers.d.ts +64 -0
- package/dist/lib/components/DataGrid/ColumnChooser.d.ts +12 -0
- package/dist/lib/components/DataGrid/ColumnFilters.d.ts +16 -0
- package/dist/lib/components/DataGrid/ContextMenu.d.ts +10 -0
- package/dist/lib/components/DataGrid/DataGrid.d.ts +22 -0
- package/dist/lib/components/DataGrid/DensityToggle.d.ts +23 -0
- package/dist/lib/components/DataGrid/DragHandle.d.ts +7 -0
- package/dist/lib/components/DataGrid/DraggableRow.d.ts +14 -0
- package/dist/lib/components/DataGrid/ExportMenu.d.ts +12 -0
- package/dist/lib/components/DataGrid/FacetedSearch.d.ts +29 -0
- package/dist/lib/components/DataGrid/FilteredSearchBar.d.ts +36 -0
- package/dist/lib/components/DataGrid/FocusTrap.d.ts +12 -0
- package/dist/lib/components/DataGrid/GridApiDemo.d.ts +6 -0
- package/dist/lib/components/DataGrid/GridBody.d.ts +42 -0
- package/dist/lib/components/DataGrid/GridFooter.d.ts +18 -0
- package/dist/lib/components/DataGrid/GridHeader.d.ts +18 -0
- package/dist/lib/components/DataGrid/GridPagination.d.ts +10 -0
- package/dist/lib/components/DataGrid/GroupByPanel.d.ts +9 -0
- package/dist/lib/components/DataGrid/GroupRow.d.ts +31 -0
- package/dist/lib/components/DataGrid/InfiniteScrollDataGrid.d.ts +39 -0
- package/dist/lib/components/DataGrid/LayoutPresetsManager.d.ts +11 -0
- package/dist/lib/components/DataGrid/MarketDataEngine.d.ts +165 -0
- package/dist/lib/components/DataGrid/MarketDataGrid.d.ts +33 -0
- package/dist/lib/components/DataGrid/MarketDataGridUtils.d.ts +13 -0
- package/dist/lib/components/DataGrid/ScreenReaderAnnouncer.d.ts +8 -0
- package/dist/lib/components/DataGrid/ServerSideDataSource.d.ts +136 -0
- package/dist/lib/components/DataGrid/ThemeSelector.d.ts +12 -0
- package/dist/lib/components/DataGrid/Tooltip.d.ts +15 -0
- package/dist/lib/components/DataGrid/TreeRow.d.ts +31 -0
- package/dist/lib/components/DataGrid/VirtualScroller.d.ts +35 -0
- package/dist/lib/components/DataGrid/WebSocketMockFeed.d.ts +121 -0
- package/dist/lib/components/DataGrid/aggregationUtils.d.ts +25 -0
- package/dist/lib/components/DataGrid/contextMenuUtils.d.ts +36 -0
- package/dist/lib/components/DataGrid/demos/TooltipDemo.d.ts +1 -0
- package/dist/lib/components/DataGrid/densityModes.d.ts +42 -0
- package/dist/lib/components/DataGrid/dragRowUtils.d.ts +98 -0
- package/dist/lib/components/DataGrid/exportUtils.d.ts +30 -0
- package/dist/lib/components/DataGrid/filterUtils.d.ts +17 -0
- package/dist/lib/components/DataGrid/gridApi.d.ts +142 -0
- package/dist/lib/components/DataGrid/gridApi.types.d.ts +348 -0
- package/dist/lib/components/DataGrid/gridReducer.d.ts +4 -0
- package/dist/lib/components/DataGrid/groupingUtils.d.ts +17 -0
- package/dist/lib/components/DataGrid/index.d.ts +41 -0
- package/dist/lib/components/DataGrid/layoutPersistence.d.ts +95 -0
- package/dist/lib/components/DataGrid/themes.d.ts +113 -0
- package/dist/lib/components/DataGrid/treeDataUtils.d.ts +97 -0
- package/dist/lib/components/DataGrid/types.d.ts +536 -0
- package/dist/lib/components/DataGrid/useContextMenu.d.ts +31 -0
- package/dist/lib/components/DataGrid/useDensityMode.d.ts +36 -0
- package/dist/lib/components/DataGrid/useFocusTrap.d.ts +14 -0
- package/dist/lib/components/DataGrid/useMarketData.d.ts +57 -0
- package/dist/lib/components/DataGrid/useScreenReaderAnnouncements.d.ts +23 -0
- package/dist/lib/components/DataGrid/useTooltip.d.ts +21 -0
- package/dist/lib/components/DemoGridPage.d.ts +2 -0
- package/dist/lib/components/DensityModeDemo.d.ts +12 -0
- package/dist/lib/components/FacetedSearchDemo.d.ts +8 -0
- package/dist/lib/components/FeatureGallery.d.ts +2 -0
- package/dist/lib/components/FilteredSearchDemo.d.ts +7 -0
- package/dist/lib/components/GridApiDemoPage.d.ts +2 -0
- package/dist/lib/components/HomePage.d.ts +1 -0
- package/dist/lib/components/InfiniteScrollDemo.d.ts +13 -0
- package/dist/lib/components/LayoutPersistenceDemo.d.ts +2 -0
- package/dist/lib/components/LiveMarketDemo.d.ts +18 -0
- package/dist/lib/components/MarketDataExamples.d.ts +42 -0
- package/dist/lib/components/RowDraggingDemo.d.ts +3 -0
- package/dist/lib/components/RowPinningDemo.d.ts +12 -0
- package/dist/lib/components/ThemesDemo.d.ts +17 -0
- package/dist/lib/components/TooltipDemo.d.ts +1 -0
- package/dist/lib/components/TreeDataDemo.d.ts +3 -0
- package/dist/lib/components/VirtualScrollDemo.d.ts +13 -0
- package/dist/lib/index.cjs +12233 -0
- package/dist/lib/index.css +465 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +11827 -0
- package/dist/lib/layoutPersistence-2MPTAEYI.js +20 -0
- package/dist/lib/main.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TooltipState, TooltipConfig, Row, Column } from './types';
|
|
2
|
+
interface UseTooltipProps {
|
|
3
|
+
config?: TooltipConfig;
|
|
4
|
+
}
|
|
5
|
+
interface TooltipHandlers {
|
|
6
|
+
onCellMouseEnter: (event: React.MouseEvent, row: Row, column: Column, value: any) => void;
|
|
7
|
+
onCellMouseLeave: () => void;
|
|
8
|
+
onRowMouseEnter: (event: React.MouseEvent, row: Row, rowIndex: number) => void;
|
|
9
|
+
onRowMouseLeave: () => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* useTooltip Hook
|
|
13
|
+
*
|
|
14
|
+
* Manages tooltip state with hover detection, delay handling, and smart positioning.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useTooltip: ({ config }?: UseTooltipProps) => {
|
|
17
|
+
tooltipState: TooltipState;
|
|
18
|
+
tooltipHandlers: TooltipHandlers;
|
|
19
|
+
hideTooltip: () => void;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* DensityModeDemo - Showcase of DataGrid Density Modes
|
|
4
|
+
*
|
|
5
|
+
* Demonstrates:
|
|
6
|
+
* - Compact mode: Minimal spacing for maximum data density
|
|
7
|
+
* - Normal mode: Balanced spacing for general use
|
|
8
|
+
* - Comfortable mode: Generous spacing for accessibility
|
|
9
|
+
* - Persistent density preference (localStorage)
|
|
10
|
+
* - Segmented control UI
|
|
11
|
+
*/
|
|
12
|
+
export declare const DensityModeDemo: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function HomePage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InfiniteScrollDemo Component
|
|
3
|
+
*
|
|
4
|
+
* Demonstrates infinite scrolling with server-side data source
|
|
5
|
+
* handling 100M+ rows with:
|
|
6
|
+
* - Server-side filtering
|
|
7
|
+
* - Server-side sorting
|
|
8
|
+
* - Block caching
|
|
9
|
+
* - Virtual scrolling
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export declare const InfiniteScrollDemo: React.FC;
|
|
13
|
+
export default InfiniteScrollDemo;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LiveMarketDemo.tsx
|
|
3
|
+
*
|
|
4
|
+
* Full demo page showcasing high-performance market data grid with:
|
|
5
|
+
* - Live streaming data (WebSocket mock feed)
|
|
6
|
+
* - 50 symbols with continuous updates
|
|
7
|
+
* - Pause/Resume controls
|
|
8
|
+
* - Performance metrics
|
|
9
|
+
* - Connection status
|
|
10
|
+
* - Density mode toggle
|
|
11
|
+
* - Flash animations
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import './LiveMarketDemo.css';
|
|
15
|
+
/**
|
|
16
|
+
* LiveMarketDemo Component
|
|
17
|
+
*/
|
|
18
|
+
export declare const LiveMarketDemo: React.FC;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MARKET_DATA_EXAMPLE.tsx
|
|
3
|
+
*
|
|
4
|
+
* Complete working example of Market Data Mode implementation.
|
|
5
|
+
* Copy this file to get started quickly with live market data.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* Simple Market Data Example
|
|
10
|
+
*
|
|
11
|
+
* This example demonstrates:
|
|
12
|
+
* - Creating a market data engine
|
|
13
|
+
* - Setting up a mock WebSocket feed
|
|
14
|
+
* - Configuring columns for market data
|
|
15
|
+
* - Rendering the grid with live updates
|
|
16
|
+
*/
|
|
17
|
+
export declare const SimpleMarketExample: React.FC;
|
|
18
|
+
/**
|
|
19
|
+
* Advanced Market Data Example
|
|
20
|
+
*
|
|
21
|
+
* This example demonstrates:
|
|
22
|
+
* - Full control panel with pause/resume
|
|
23
|
+
* - Performance metrics display
|
|
24
|
+
* - Density mode toggle
|
|
25
|
+
* - Flash animation toggle
|
|
26
|
+
* - Connection status
|
|
27
|
+
*/
|
|
28
|
+
export declare const AdvancedMarketExample: React.FC;
|
|
29
|
+
/**
|
|
30
|
+
* Real WebSocket Example
|
|
31
|
+
*
|
|
32
|
+
* This example shows how to connect to a real WebSocket server.
|
|
33
|
+
* Replace the URL with your actual WebSocket endpoint.
|
|
34
|
+
*/
|
|
35
|
+
export declare const RealWebSocketExample: React.FC;
|
|
36
|
+
/**
|
|
37
|
+
* Custom Formatting Example
|
|
38
|
+
*
|
|
39
|
+
* Shows how to customize cell rendering for market data.
|
|
40
|
+
*/
|
|
41
|
+
export declare const CustomFormattingExample: React.FC;
|
|
42
|
+
export default SimpleMarketExample;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* RowPinningDemo - Demonstrates row pinning feature
|
|
4
|
+
*
|
|
5
|
+
* This demo showcases:
|
|
6
|
+
* - Pin rows to top or bottom
|
|
7
|
+
* - Pinned rows remain sticky during scroll
|
|
8
|
+
* - Works with sorting and filtering
|
|
9
|
+
* - Works with virtual scrolling
|
|
10
|
+
* - Context menu integration
|
|
11
|
+
*/
|
|
12
|
+
export declare const RowPinningDemo: React.FC;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* ThemesDemo - Showcase of DataGrid Theme System
|
|
4
|
+
*
|
|
5
|
+
* Demonstrates all available themes:
|
|
6
|
+
* - Quartz (Modern White)
|
|
7
|
+
* - Alpine (Classic Business)
|
|
8
|
+
* - Material
|
|
9
|
+
* - Dark Mode
|
|
10
|
+
* - Nord (Arctic)
|
|
11
|
+
* - Dracula
|
|
12
|
+
* - Solarized Light
|
|
13
|
+
* - Solarized Dark
|
|
14
|
+
* - Monokai
|
|
15
|
+
* - One Dark
|
|
16
|
+
*/
|
|
17
|
+
export declare const ThemesDemo: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TooltipDemo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* VirtualScrollDemo - Demonstrates virtual scrolling with large datasets
|
|
4
|
+
*
|
|
5
|
+
* This demo showcases:
|
|
6
|
+
* - 50,000+ rows
|
|
7
|
+
* - 200+ columns
|
|
8
|
+
* - Ultra-fast rendering with windowing
|
|
9
|
+
* - Dynamic row heights
|
|
10
|
+
* - Cell recycling
|
|
11
|
+
*/
|
|
12
|
+
export declare const VirtualScrollDemo: React.FC;
|
|
13
|
+
export default VirtualScrollDemo;
|