@azrico/reactgrid 1.3.6 → 1.3.8
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 +28 -0
- package/dist/src/example.js +1 -0
- package/dist/src/func/func_grid.js +8 -6
- package/dist/src/views/DataGrid.d.ts +2 -2
- package/package.json +1 -1
- package/src/example.tsx +1 -0
- package/src/func/func_grid.ts +7 -6
- package/src/views/DataGrid.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
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.8](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.3.8) (2023-08-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
|
|
16
|
+
* onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
|
|
17
|
+
* styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
|
|
18
|
+
|
|
19
|
+
### [1.3.7](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.3.7) (2023-08-09)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
|
|
30
|
+
* onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
|
|
31
|
+
* styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
|
|
32
|
+
|
|
5
33
|
### [1.3.6](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.3.6) (2023-08-07)
|
|
6
34
|
|
|
7
35
|
|
package/dist/src/example.js
CHANGED
|
@@ -14,11 +14,12 @@ exports.set_row_id = set_row_id;
|
|
|
14
14
|
exports.to_datasource = to_datasource;
|
|
15
15
|
exports.validateCache = validateCache;
|
|
16
16
|
var _BoolEditor = _interopRequireDefault(require("@inovua/reactdatagrid-community/BoolEditor"));
|
|
17
|
-
var _NumericEditor = _interopRequireDefault(require("@inovua/reactdatagrid-community/NumericEditor"));
|
|
18
17
|
var _SelectEditor = _interopRequireDefault(require("@inovua/reactdatagrid-community/SelectEditor"));
|
|
19
18
|
var _func_child = require("./func_child");
|
|
20
19
|
var _object = require("@azrico/object");
|
|
21
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
// import NumericEditor from '@inovua/reactdatagrid-community/NumericEditor';
|
|
22
|
+
|
|
22
23
|
const defaultColumnOptions = {
|
|
23
24
|
draggable: false,
|
|
24
25
|
lockable: false,
|
|
@@ -163,13 +164,14 @@ function ApplyColumnData(column_data) {
|
|
|
163
164
|
//@ts-ignore
|
|
164
165
|
col.editor = _SelectEditor.default;
|
|
165
166
|
break;
|
|
166
|
-
case 'number':
|
|
167
|
-
case 'numberic':
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
// case 'number':
|
|
168
|
+
// case 'numberic':
|
|
169
|
+
// //@ts-ignore
|
|
170
|
+
// col.editor = NumericEditor;
|
|
171
|
+
// break;
|
|
171
172
|
case 'truefalse':
|
|
172
173
|
case 'bool':
|
|
174
|
+
case 'boolean':
|
|
173
175
|
//@ts-ignore
|
|
174
176
|
col.editor = _BoolEditor.default;
|
|
175
177
|
break;
|
|
@@ -34,7 +34,7 @@ type loose_column_fields = loose_column_names & {
|
|
|
34
34
|
items: any[];
|
|
35
35
|
};
|
|
36
36
|
export type LooseColumnDefinition = Partial<loose_column_fields & ColumnDefinition>;
|
|
37
|
-
type
|
|
37
|
+
export type CustomColumnDefinition = {
|
|
38
38
|
name: string;
|
|
39
39
|
render: (cell: any, formatterParams: any, onRendered: any) => React.ReactNode | undefined | null;
|
|
40
40
|
};
|
|
@@ -52,7 +52,7 @@ export type AzGridProps = {
|
|
|
52
52
|
editableColumns?: string[];
|
|
53
53
|
leftColumns?: string[];
|
|
54
54
|
rightColumns?: string[];
|
|
55
|
-
customColumns?:
|
|
55
|
+
customColumns?: CustomColumnDefinition[];
|
|
56
56
|
contextMenuItems?: ConvertableToMenuItem;
|
|
57
57
|
highlightedRow?: any;
|
|
58
58
|
RowDetail?: RowDetailsFunc;
|
package/package.json
CHANGED
package/src/example.tsx
CHANGED
package/src/func/func_grid.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnDefinition, LooseColumnDefinition } from '../views/DataGrid';
|
|
2
2
|
|
|
3
3
|
import BoolEditor from '@inovua/reactdatagrid-community/BoolEditor';
|
|
4
|
-
import NumericEditor from '@inovua/reactdatagrid-community/NumericEditor';
|
|
4
|
+
// import NumericEditor from '@inovua/reactdatagrid-community/NumericEditor';
|
|
5
5
|
import SelectEditor from '@inovua/reactdatagrid-community/SelectEditor';
|
|
6
6
|
import { fix_parent_child_relations } from './func_child';
|
|
7
7
|
import { object_equals } from '@azrico/object';
|
|
@@ -161,13 +161,14 @@ export function ApplyColumnData(column_data: any): ColumnDefinition[] {
|
|
|
161
161
|
//@ts-ignore
|
|
162
162
|
col.editor = SelectEditor;
|
|
163
163
|
break;
|
|
164
|
-
case 'number':
|
|
165
|
-
case 'numberic':
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
164
|
+
// case 'number':
|
|
165
|
+
// case 'numberic':
|
|
166
|
+
// //@ts-ignore
|
|
167
|
+
// col.editor = NumericEditor;
|
|
168
|
+
// break;
|
|
169
169
|
case 'truefalse':
|
|
170
170
|
case 'bool':
|
|
171
|
+
case 'boolean':
|
|
171
172
|
//@ts-ignore
|
|
172
173
|
col.editor = BoolEditor;
|
|
173
174
|
break;
|
package/src/views/DataGrid.tsx
CHANGED
|
@@ -66,7 +66,7 @@ type loose_column_fields = loose_column_names & {
|
|
|
66
66
|
export type LooseColumnDefinition = Partial<loose_column_fields & ColumnDefinition>;
|
|
67
67
|
//
|
|
68
68
|
|
|
69
|
-
type
|
|
69
|
+
export type CustomColumnDefinition = {
|
|
70
70
|
name: string;
|
|
71
71
|
render: (cell: any, formatterParams, onRendered) => React.ReactNode | undefined | null;
|
|
72
72
|
};
|
|
@@ -89,7 +89,7 @@ export type AzGridProps = {
|
|
|
89
89
|
editableColumns?: string[];
|
|
90
90
|
leftColumns?: string[];
|
|
91
91
|
rightColumns?: string[];
|
|
92
|
-
customColumns?:
|
|
92
|
+
customColumns?: CustomColumnDefinition[];
|
|
93
93
|
|
|
94
94
|
contextMenuItems?: ConvertableToMenuItem;
|
|
95
95
|
|