react-open-source-grid 1.5.3 → 1.5.7

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 (89) hide show
  1. package/dist/lib/App.d.ts +3 -0
  2. package/dist/lib/chunk-FG3FLQAE.js +296 -0
  3. package/dist/lib/components/AccessibilityDemo.d.ts +8 -0
  4. package/dist/lib/components/ApiReferencePage.d.ts +2 -0
  5. package/dist/lib/components/BenchmarkDemo.d.ts +2 -0
  6. package/dist/lib/components/CellRenderersDemo.d.ts +16 -0
  7. package/dist/lib/components/CodeBlock.d.ts +10 -0
  8. package/dist/lib/components/ColumnFiltersDemo.d.ts +5 -0
  9. package/dist/lib/components/CompleteApiReferencePage.d.ts +2 -0
  10. package/dist/lib/components/ContextMenuDemo.d.ts +12 -0
  11. package/dist/lib/components/DataGrid/ARCHITECTURE.md.d.ts +288 -0
  12. package/dist/lib/components/DataGrid/AdvancedFilterBuilder.d.ts +12 -0
  13. package/dist/lib/components/DataGrid/CellRenderers.d.ts +64 -0
  14. package/dist/lib/components/DataGrid/ColumnChooser.d.ts +12 -0
  15. package/dist/lib/components/DataGrid/ColumnFilters.d.ts +16 -0
  16. package/dist/lib/components/DataGrid/ContextMenu.d.ts +10 -0
  17. package/dist/lib/components/DataGrid/DataGrid.d.ts +22 -0
  18. package/dist/lib/components/DataGrid/DensityToggle.d.ts +23 -0
  19. package/dist/lib/components/DataGrid/DragHandle.d.ts +7 -0
  20. package/dist/lib/components/DataGrid/DraggableRow.d.ts +14 -0
  21. package/dist/lib/components/DataGrid/ExportMenu.d.ts +12 -0
  22. package/dist/lib/components/DataGrid/FacetedSearch.d.ts +29 -0
  23. package/dist/lib/components/DataGrid/FilteredSearchBar.d.ts +36 -0
  24. package/dist/lib/components/DataGrid/FocusTrap.d.ts +12 -0
  25. package/dist/lib/components/DataGrid/GridApiDemo.d.ts +6 -0
  26. package/dist/lib/components/DataGrid/GridBody.d.ts +42 -0
  27. package/dist/lib/components/DataGrid/GridFooter.d.ts +18 -0
  28. package/dist/lib/components/DataGrid/GridHeader.d.ts +18 -0
  29. package/dist/lib/components/DataGrid/GridPagination.d.ts +10 -0
  30. package/dist/lib/components/DataGrid/GroupByPanel.d.ts +9 -0
  31. package/dist/lib/components/DataGrid/GroupRow.d.ts +31 -0
  32. package/dist/lib/components/DataGrid/InfiniteScrollDataGrid.d.ts +39 -0
  33. package/dist/lib/components/DataGrid/LayoutPresetsManager.d.ts +11 -0
  34. package/dist/lib/components/DataGrid/MarketDataEngine.d.ts +165 -0
  35. package/dist/lib/components/DataGrid/MarketDataGrid.d.ts +33 -0
  36. package/dist/lib/components/DataGrid/MarketDataGridUtils.d.ts +13 -0
  37. package/dist/lib/components/DataGrid/ScreenReaderAnnouncer.d.ts +8 -0
  38. package/dist/lib/components/DataGrid/ServerSideDataSource.d.ts +136 -0
  39. package/dist/lib/components/DataGrid/ThemeSelector.d.ts +12 -0
  40. package/dist/lib/components/DataGrid/Tooltip.d.ts +15 -0
  41. package/dist/lib/components/DataGrid/TreeRow.d.ts +31 -0
  42. package/dist/lib/components/DataGrid/VirtualScroller.d.ts +35 -0
  43. package/dist/lib/components/DataGrid/WebSocketMockFeed.d.ts +121 -0
  44. package/dist/lib/components/DataGrid/aggregationUtils.d.ts +25 -0
  45. package/dist/lib/components/DataGrid/contextMenuUtils.d.ts +36 -0
  46. package/dist/lib/components/DataGrid/demos/TooltipDemo.d.ts +1 -0
  47. package/dist/lib/components/DataGrid/densityModes.d.ts +42 -0
  48. package/dist/lib/components/DataGrid/dragRowUtils.d.ts +98 -0
  49. package/dist/lib/components/DataGrid/exportUtils.d.ts +30 -0
  50. package/dist/lib/components/DataGrid/filterUtils.d.ts +17 -0
  51. package/dist/lib/components/DataGrid/gridApi.d.ts +142 -0
  52. package/dist/lib/components/DataGrid/gridApi.types.d.ts +348 -0
  53. package/dist/lib/components/DataGrid/gridReducer.d.ts +4 -0
  54. package/dist/lib/components/DataGrid/groupingUtils.d.ts +17 -0
  55. package/dist/lib/components/DataGrid/index.d.ts +41 -0
  56. package/dist/lib/components/DataGrid/layoutPersistence.d.ts +95 -0
  57. package/dist/lib/components/DataGrid/themes.d.ts +113 -0
  58. package/dist/lib/components/DataGrid/treeDataUtils.d.ts +97 -0
  59. package/dist/lib/components/DataGrid/types.d.ts +536 -0
  60. package/dist/lib/components/DataGrid/useContextMenu.d.ts +31 -0
  61. package/dist/lib/components/DataGrid/useDensityMode.d.ts +36 -0
  62. package/dist/lib/components/DataGrid/useFocusTrap.d.ts +14 -0
  63. package/dist/lib/components/DataGrid/useMarketData.d.ts +57 -0
  64. package/dist/lib/components/DataGrid/useScreenReaderAnnouncements.d.ts +23 -0
  65. package/dist/lib/components/DataGrid/useTooltip.d.ts +21 -0
  66. package/dist/lib/components/DemoGridPage.d.ts +3 -0
  67. package/dist/lib/components/DensityModeDemo.d.ts +12 -0
  68. package/dist/lib/components/FacetedSearchDemo.d.ts +8 -0
  69. package/dist/lib/components/FeatureGallery.d.ts +2 -0
  70. package/dist/lib/components/FilteredSearchDemo.d.ts +7 -0
  71. package/dist/lib/components/GridApiDemoPage.d.ts +2 -0
  72. package/dist/lib/components/HomePage.d.ts +1 -0
  73. package/dist/lib/components/InfiniteScrollDemo.d.ts +13 -0
  74. package/dist/lib/components/LayoutPersistenceDemo.d.ts +2 -0
  75. package/dist/lib/components/LiveMarketDemo.d.ts +18 -0
  76. package/dist/lib/components/MarketDataExamples.d.ts +42 -0
  77. package/dist/lib/components/RowDraggingDemo.d.ts +3 -0
  78. package/dist/lib/components/RowPinningDemo.d.ts +12 -0
  79. package/dist/lib/components/ThemesDemo.d.ts +17 -0
  80. package/dist/lib/components/TooltipDemo.d.ts +1 -0
  81. package/dist/lib/components/TreeDataDemo.d.ts +3 -0
  82. package/dist/lib/components/VirtualScrollDemo.d.ts +13 -0
  83. package/dist/lib/index.cjs +12233 -0
  84. package/dist/lib/index.css +591 -0
  85. package/dist/lib/index.d.ts +2 -0
  86. package/dist/lib/index.js +11827 -0
  87. package/dist/lib/layoutPersistence-2MPTAEYI.js +20 -0
  88. package/dist/lib/main.d.ts +1 -0
  89. package/package.json +7 -3
@@ -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,3 @@
1
+ import React from 'react';
2
+ import 'react-open-source-grid/dist/lib/index.css';
3
+ export declare const DemoGridPage: React.FC;
@@ -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,8 @@
1
+ /**
2
+ * FacetedSearchDemo Component
3
+ *
4
+ * Demonstrates the FacetedSearch feature with e-commerce and analytics use cases.
5
+ */
6
+ import React from 'react';
7
+ export declare const FacetedSearchDemo: React.FC;
8
+ export default FacetedSearchDemo;
@@ -0,0 +1,2 @@
1
+ export declare const FeatureGallery: () => import("react/jsx-runtime").JSX.Element;
2
+ export default FeatureGallery;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ /**
3
+ * FilteredSearchDemo - Showcase of Advanced Search with Token-Based Filtering
4
+ * Similar to GitLab/GitHub's advanced search interface
5
+ */
6
+ export declare const FilteredSearchDemo: React.FC;
7
+ export default FilteredSearchDemo;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const GridApiDemoPage: 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,2 @@
1
+ import React from 'react';
2
+ export declare const LayoutPersistenceDemo: React.FC;
@@ -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,3 @@
1
+ import React from 'react';
2
+ export declare const RowDraggingDemo: React.FC;
3
+ export default RowDraggingDemo;
@@ -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,3 @@
1
+ import React from 'react';
2
+ export declare const TreeDataDemo: React.FC;
3
+ export default TreeDataDemo;
@@ -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;