@opencorestack/opengridx 3.8.0 → 3.8.1

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 (36) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/ai.cjs.map +1 -1
  3. package/dist/ai.es.js.map +1 -1
  4. package/dist/index.d.ts +2 -2
  5. package/dist/opengridx.css +1 -1
  6. package/dist/opengridx.es.js +5210 -5199
  7. package/dist/opengridx.es.js.map +1 -1
  8. package/dist/opengridx.umd.js +16 -16
  9. package/dist/opengridx.umd.js.map +1 -1
  10. package/docs/API_REFERENCE.md +28 -0
  11. package/lib/components/AiAssistant/GridAiAssistantPanel.css +2 -2
  12. package/lib/components/Cell/Cell.css +1 -3
  13. package/lib/components/ColumnGroupHeader/ColumnGroupHeader.css +1 -2
  14. package/lib/components/DataGrid/DataGrid.css +1 -28
  15. package/lib/components/DataGrid/GridVirtualRows.tsx +2 -1
  16. package/lib/components/FilterPanel/FilterPanel.tsx +7 -39
  17. package/lib/components/Header/Header.css +2 -11
  18. package/lib/components/HeaderFilter/HeaderFilterCell.tsx +6 -37
  19. package/lib/components/ListView/ListView.css +0 -16
  20. package/lib/components/Row/Row.tsx +4 -1
  21. package/lib/hooks/features/useGridSpanning.ts +1 -1
  22. package/lib/styles/base/reset.css +6 -7
  23. package/lib/theme/__baseline__/default-theme.darwin.chromium.json +1 -1503
  24. package/lib/theme/__baseline__/default-theme.darwin.firefox.json +1 -1503
  25. package/lib/theme/__baseline__/default-theme.darwin.webkit.json +1 -1503
  26. package/lib/types/rows.ts +0 -2
  27. package/lib/utils/cellSelection.ts +0 -2
  28. package/lib/utils/editing/index.ts +1 -1
  29. package/lib/utils/filtering/filterInput.ts +45 -0
  30. package/lib/utils/filtering/index.ts +0 -28
  31. package/lib/utils/pinning/index.ts +0 -107
  32. package/lib/utils/sorting/index.ts +42 -33
  33. package/lib/utils/values.ts +5 -1
  34. package/llms.txt +7 -3
  35. package/package.json +1 -1
  36. package/lib/theme/defaultStyles.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,29 @@
5
5
 
6
6
  ---
7
7
 
8
+ ## [3.8.1] — 2026-10-13
9
+
10
+ ### Fixed
11
+
12
+ - **Buttons inside the grid show their own background and border again.** A reset rule from the first release (`.ogx button:not(.ogx-menu-item)`) out-ranked the buttons' own classes and removed their background and border: the AI assistant's Ask button had no fill (dark text on the dark panel in dark mode), its suggestions and the Undo / microphone buttons had no outline, and the open or active states of the toolbar's Columns / Filters buttons and the header filter's operator button had no background. The reset's background and border now have zero specificity (`:where()`); its font and cursor rules are unchanged. The default-theme baseline (`lib/theme/__baseline__/`) was regenerated: the only differences are those three open / active backgrounds.
13
+ - **`bigint` values sort exactly.** Values beyond ±2^53 were compared as their nearest double, so neighbours could tie or swap. When a column holds such a value, its numbers are ranked with an exact comparison (other columns are unchanged).
14
+ - **Number filters no longer read `0x10`, `0b1`, `0o7`, `Infinity` or `1e999` typed as text as numbers** (`toNumber` in `lib/utils/values.ts`, which number filters, the number column's quick-filter and sorting coercion share).
15
+ - The AI assistant's suggestion pills and change chips were drawn as ellipses: they read `--ogx-border-radius-round`, which is `50%`. They use a fixed pill radius now.
16
+
17
+
18
+ ### Internal
19
+
20
+ - Removed code nothing called: seven pinning helpers (`isColumnPinnable`, `pinColumn`, `unpinColumn`, `getPinnedColumnsWidth`, `pinRow`, `unpinRow`, `getPinnedRowsCount`), `isRowMatchingFilter`, `getDefaultOperator`, `compareRowsBySortModel`, `isSingleCellRange` and the empty `lib/theme/defaultStyles.ts` (none were exported from the package). Removed the CSS rules of nine classes the grid never sets: `ogx--dark`, `ogx--density-compact`, `ogx--density-comfortable`, `ogx--dragging`, `ogx--list-auto`, `ogx--loading`, `ogx__cell--editable`, `ogx__header-cell--focus-visible` and `ogx__menu-icon-btn--active`. CSS variables are kept (they are public tokens).
21
+ - Infinite-scroll placeholder rows are drawn through a `skeleton` prop on the internal `Row` instead of a `_isSkeleton` field, which is gone from `GridRowModel` (it was marked internal; the type's index signature still accepts any field).
22
+ - The filter panel and the header filter row share their value helpers (`lib/utils/filtering/filterInput.ts`) instead of two copies.
23
+
24
+ ### Documentation
25
+
26
+ - `llms.txt` updated to 3.8.1: corrected the row-limit note (Firefox's lower limit, the 3.5.1 height cap) and the RTL note (pinned columns work since 3.6), and added notes on replacing rows instead of mutating them, large-grid timings, styling buttons inside the grid and the quick filter's displayed text.
27
+ - `docs/API_REFERENCE.md` covers every export of the package: the export option types (`CsvExportOptions`, `JsonExportOptions`, `ExcelExportOptions`, `ExcelAdvancedExportOptions`, `ExcelSheetDefinition`, `ExcelColumnStyle`), the theme part types and `DataGridThemeProviderProps`, and `GridAlignment`, `GridSortDirection`, `GridSortModel`, `GridPinnedPosition`.
28
+
29
+ ---
30
+
8
31
  ## [3.8.0] — 2026-10-13
9
32
 
10
33
  ### Performance