@azrico/reactgrid 1.3.16 → 1.3.18

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/CHANGELOG.md CHANGED
@@ -2,6 +2,36 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.3.18](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.3.18) (2023-08-20)
6
+
7
+
8
+ ### Features
9
+
10
+ * DataGridSearchWrapper ([ebf3acf](https://github.com/Azrideus/azrico-reactgrid/commit/ebf3acff5f90c45090fad86be8e83e28744dd9dd))
11
+ * editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
17
+ * onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
18
+ * styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
19
+
20
+ ### [1.3.17](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.3.17) (2023-08-19)
21
+
22
+
23
+ ### Features
24
+
25
+ * DataGridSearchWrapper ([ebf3acf](https://github.com/Azrideus/azrico-reactgrid/commit/ebf3acff5f90c45090fad86be8e83e28744dd9dd))
26
+ * editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
32
+ * onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
33
+ * styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
34
+
5
35
  ### [1.3.16](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.3.16) (2023-08-19)
6
36
 
7
37
 
@@ -2,7 +2,7 @@
2
2
  --grid-bg: '#fff';
3
3
  color: black;
4
4
  z-index: 1000;
5
- font-family: 'Nunito Sans', sans-serif;
5
+ font-family: 'Nunito Sans', 'Iran Sans', sans-serif;
6
6
  }
7
7
 
8
8
  .InovuaReactDataGrid__row {
@@ -290,7 +290,7 @@ function DataGridSearchWrapper(props) {
290
290
  if (currentSearch.current) {
291
291
  const visibleColumns = props.gridRef.current.visibleColumns;
292
292
  const columns_to_search = (0, _object.array_intersection)(props.advancedFilterFields || [], visibleColumns.map(r => r.id));
293
- const lowerSearchText = currentSearch.current.toLowerCase();
293
+ const lowerSearchText = currentSearch.current.toLowerCase().trim();
294
294
  if (!lowerSearchText) newData = currentDS.current;else newData = currentDS.current.filter(p => {
295
295
  for (let index = 0; index < columns_to_search.length; index++) {
296
296
  const col = columns_to_search[index];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/reactgrid",
3
- "version": "1.3.16",
3
+ "version": "1.3.18",
4
4
  "main": "dist/index.js",
5
5
  "description": "React Datagrid",
6
6
  "author": "Azrideus <MehrdadTavangar@gmail.com>",
@@ -2,7 +2,7 @@
2
2
  --grid-bg: '#fff';
3
3
  color: black;
4
4
  z-index: 1000;
5
- font-family: 'Nunito Sans', sans-serif;
5
+ font-family: 'Nunito Sans', 'Iran Sans', sans-serif;
6
6
  }
7
7
 
8
8
  .InovuaReactDataGrid__row {
@@ -454,7 +454,7 @@ function DataGridSearchWrapper(props: DataGridWrapperProps) {
454
454
  props.advancedFilterFields || [],
455
455
  visibleColumns.map((r) => r.id)
456
456
  );
457
- const lowerSearchText = currentSearch.current.toLowerCase();
457
+ const lowerSearchText = currentSearch.current.toLowerCase().trim();
458
458
  if (!lowerSearchText) newData = currentDS.current;
459
459
  else
460
460
  newData = currentDS.current.filter((p) => {
@@ -484,7 +484,7 @@ function DataGridSearchWrapper(props: DataGridWrapperProps) {
484
484
  currentSearch.current = search;
485
485
  searchIfNeeded();
486
486
  }, [search]);
487
-
487
+
488
488
  function searchIfNeeded() {
489
489
  if (!search) {
490
490
  set_filteredData(props.dataSource);