@revolist/react-datagrid 4.26.2 → 4.27.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 (2) hide show
  1. package/README.md +41 -6
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -9,9 +9,7 @@
9
9
  <p align="center">
10
10
  <a href="https://www.npmjs.com/package/@revolist/revogrid"><img src="https://img.shields.io/npm/v/@revolist/revogrid" alt="Latest Version on NPM"/></a>
11
11
  <a href="https://github.com/revolist/revogrid/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/@revolist/revogrid" alt="Software License"/></a>
12
- <img src="https://badgen.net/bundlephobia/dependency-count/@revolist/revogrid" alt="Dependency count"/>
13
- <img src="https://badgen.net/bundlephobia/tree-shaking/@revolist/revogrid" alt="Tree shaking"/>
14
- <img src="https://img.shields.io/bundlephobia/min/@revolist/revogrid" alt="Bundle size"/>
12
+ <a href="https://www.npmjs.com/package/@revolist/revogrid"><img src="https://img.shields.io/npm/dm/@revolist/revogrid" alt="NPM downloads per month"/></a>
15
13
  <img src="https://sonarcloud.io/api/project_badges/measure?project=revolist_revogrid&metric=alert_status" alt="Sonar Quality Gate"/>
16
14
  <a href="https://github.com/revolist/revogrid/actions/workflows/unit.yml">
17
15
  <img src="https://github.com/revolist/revogrid/actions/workflows/unit.yml/badge.svg" alt="Workflow status badge" loading="lazy" height="20">
@@ -58,7 +56,7 @@ Used by some of the largest companies in Europe and the United States.
58
56
  - Seamless copy/paste from Excel, Google Sheets, or any other sheet format.
59
57
 
60
58
 
61
- - **Lightweight**: Minimal initial bundle size ![Min size](https://badgen.net/bundlephobia/min/@revolist/revogrid@latest). Can be imported with polyfills or as a module for modern browsers.
59
+ - **Lightweight**: Minimal initial bundle size. Can be imported with polyfills or as a module for modern browsers.
62
60
 
63
61
  - **[Intelligent Virtual DOM](https://rv-grid.com/guide/overview#VNode-Reactive-DOM)**: Smart row recombination to minimize redraws.
64
62
 
@@ -78,6 +76,40 @@ Used by some of the largest companies in Europe and the United States.
78
76
  - Header filtering.
79
77
  - Custom filters to extend system filters with your own set.
80
78
 
79
+ Blank filters preserve source-value identity and own-property presence. By default,
80
+ `null`, owned `undefined`, exactly `""`, and missing own properties are blank;
81
+ whitespace-only strings, `false`, `0`, `NaN`, arrays, and objects are not. The
82
+ policy can be configured at grid level and overridden field-by-field per column
83
+ with `blankSemantics`. Existing saved `empty` and `notEmpty` operator IDs remain
84
+ compatible and are labeled “Is blank” and “Is not blank.”
85
+
86
+ ```ts
87
+ const filter = {
88
+ blankSemantics: {
89
+ whitespaceOnlyString: true,
90
+ emptyArray: true,
91
+ isBlank(value, context, fallbackResult) {
92
+ return value === 'N/A' || fallbackResult;
93
+ },
94
+ },
95
+ };
96
+
97
+ const columns = [{
98
+ prop: 'tags',
99
+ filter: 'array',
100
+ // Partial column policy; other fields inherit the grid policy.
101
+ blankSemantics: { emptyArray: false },
102
+ }];
103
+ ```
104
+
105
+ An inherited property counts as missing. A `cellParser` supplies the value for
106
+ ordinary comparisons but does not replace the raw value used for blank checks.
107
+ The callback receives the source value, row model, column, property, parsed
108
+ value, own-property status, effective policy, and fallback result. “Is not
109
+ blank” is the exact inverse of the resolved blank predicate. Typed operators
110
+ remain strict; blank configuration never normalizes `false`, `0`, or arrays
111
+ into another source value.
112
+
81
113
  - **[Export](https://rv-grid.com/guide/export.plugin)**:
82
114
  - **[CSV](https://rv-grid.com/guide/export.plugin)**: Built-in file export for core RevoGrid data workflows.
83
115
  - **[PDF](https://rv-grid.com/guide/pdf-export)**: Browser-side PDF export with the lightweight [`@revolist/revogrid-pdf-export`](https://www.npmjs.com/package/@revolist/revogrid-pdf-export) plugin.
@@ -86,6 +118,7 @@ Used by some of the largest companies in Europe and the United States.
86
118
  - **Custom Sizes**: Define custom sizes for [columns](https://rv-grid.com/guide/column/#Column-Size) and [rows](https://rv-grid.com/guide/row/height). Automatic sizing based on content.
87
119
 
88
120
  - **[Column Resizing](https://rv-grid.com/guide/column/resize)**: Adjust column widths.
121
+ - **[Row Resizing](https://rv-grid.com/guide/row/resize)**: Resize from row-header edges or enable full-row resize edges with optional height limits.
89
122
  - **Auto Size Columns**: Intelligent column width adjustment that automatically adapts to content, ensuring optimal readability and layout efficiency.
90
123
 
91
124
  - **Pinned/Sticky/Freezed Elements**:
@@ -393,8 +426,10 @@ export default App
393
426
  - [![React](./assets/react.svg) React](https://rv-grid.com/guide/react/)
394
427
  - [![Angular](./assets/angular.svg) Angular](https://rv-grid.com/guide/angular/)
395
428
  - [![Svelte](./assets/svelte.svg) Svelte](https://rv-grid.com/guide/svelte/)
429
+ - [![Python](./assets/python.svg) Dash / Python](https://rv-grid.com/guide/dash/)
396
430
  - [![JavaScript](./assets/js.svg) JavaScript](https://rv-grid.com/guide/)
397
431
 
432
+
398
433
  ## Versions
399
434
 
400
435
  - **2.0+**: Introduced the plugin system, grouping, sorting, and filtering.
@@ -453,8 +488,8 @@ Thank you for supporting RevoGrid! 🙏
453
488
 
454
489
  ## Testing
455
490
 
456
- [![Unit Tests](https://github.com/revolist/revogrid/actions/workflows/ci-unit.yml/badge.svg?branch=main)](https://github.com/revolist/revogrid/actions/workflows/ci-unit.yml)
457
- [![E2E Tests](https://github.com/revolist/revogrid/actions/workflows/ci-e2e.yml/badge.svg?branch=main)](https://github.com/revolist/revogrid/actions/workflows/ci-e2e.yml)
491
+ [![Unit Tests](https://github.com/revolist/revogrid/actions/workflows/unit.yml/badge.svg?branch=main)](https://github.com/revolist/revogrid/actions/workflows/unit.yml)
492
+ [![E2E Tests](https://github.com/revolist/revogrid/actions/workflows/e2e.yml/badge.svg?branch=main)](https://github.com/revolist/revogrid/actions/workflows/e2e.yml)
458
493
 
459
494
  RevoGrid is thoroughly tested to ensure reliability and stability.
460
495
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@revolist/react-datagrid",
3
3
  "sideEffects": false,
4
- "version": "4.26.2",
4
+ "version": "4.27.1",
5
5
  "description": "React DataGrid Spreadsheet component with native cell render support",
6
6
  "main": "./dist/react-datagrid.umd.cjs",
7
7
  "module": "./dist/react-datagrid.js",
@@ -64,7 +64,7 @@
64
64
  "homepage": "https://github.com/revolist/revogrid#readme",
65
65
  "license": "MIT",
66
66
  "dependencies": {
67
- "@revolist/revogrid": "4.26.2"
67
+ "@revolist/revogrid": "4.27.1"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@stencil/core": "^4.43.2",