@azrico/reactgrid 1.2.15 → 1.2.16
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,8 @@
|
|
|
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.2.16](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.15...v1.2.16) (2023-04-02)
|
|
6
|
+
|
|
5
7
|
### [1.2.15](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.14...v1.2.15) (2023-04-01)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -30,6 +30,7 @@ export declare function get_col_header(obj: any): string;
|
|
|
30
30
|
* @returns
|
|
31
31
|
*/
|
|
32
32
|
export declare function get_row_id(obj: any): any;
|
|
33
|
+
export declare function set_row_id(obj: any, val: any): any;
|
|
33
34
|
/**
|
|
34
35
|
* Gets default activation key for grid plugin
|
|
35
36
|
* @returns
|
|
@@ -9,6 +9,7 @@ exports.get_col_header = get_col_header;
|
|
|
9
9
|
exports.get_col_name = get_col_name;
|
|
10
10
|
exports.get_default_key = get_default_key;
|
|
11
11
|
exports.get_row_id = get_row_id;
|
|
12
|
+
exports.set_row_id = set_row_id;
|
|
12
13
|
exports.to_datasource = to_datasource;
|
|
13
14
|
exports.validateCache = validateCache;
|
|
14
15
|
var _BoolEditor = _interopRequireDefault(require("@inovua/reactdatagrid-community/BoolEditor"));
|
|
@@ -264,6 +265,10 @@ function get_row_id(obj) {
|
|
|
264
265
|
if (typeof obj != 'object') return '-1';
|
|
265
266
|
return obj.__table_id || obj.id || '-1';
|
|
266
267
|
}
|
|
268
|
+
function set_row_id(obj, val) {
|
|
269
|
+
obj.__table_id = val;
|
|
270
|
+
return obj.__table_id;
|
|
271
|
+
}
|
|
267
272
|
/**
|
|
268
273
|
* Gets default activation key for grid plugin
|
|
269
274
|
* @returns
|
package/package.json
CHANGED
package/src/func/func_grid.ts
CHANGED
|
@@ -269,6 +269,10 @@ export function get_row_id(obj: any): any {
|
|
|
269
269
|
if (typeof obj != 'object') return '-1';
|
|
270
270
|
return obj.__table_id || obj.id || '-1';
|
|
271
271
|
}
|
|
272
|
+
export function set_row_id(obj: any, val): any {
|
|
273
|
+
obj.__table_id = val;
|
|
274
|
+
return obj.__table_id;
|
|
275
|
+
}
|
|
272
276
|
|
|
273
277
|
/**
|
|
274
278
|
* Gets default activation key for grid plugin
|