@infinite-table/infinite-react 0.4.7 → 0.4.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/index.d.ts +1 -1
- package/index.esm.js +11 -5
- package/index.js +11 -5
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1703,7 +1703,7 @@ declare type InfiniteTableSelectionApi = {
|
|
|
1703
1703
|
deselectGroupRow(groupKeys: any[], children?: ArrayOfIds): void;
|
|
1704
1704
|
toggleGroupRowSelection(groupKeys: any[], children?: ArrayOfIds): void;
|
|
1705
1705
|
getGroupRowSelectionState(groupKeys: any[]): boolean | null;
|
|
1706
|
-
getSelectedPrimaryKeys(): (string | number)[];
|
|
1706
|
+
getSelectedPrimaryKeys(rowSelection?: RowSelectionStateObject): (string | number)[];
|
|
1707
1707
|
selectAll(): void;
|
|
1708
1708
|
deselectAll(): void;
|
|
1709
1709
|
};
|
package/index.esm.js
CHANGED
|
@@ -9404,11 +9404,17 @@ function getSelectionApi(param) {
|
|
|
9404
9404
|
}
|
|
9405
9405
|
return rowSelection.getGroupRowSelectionState(groupKeys);
|
|
9406
9406
|
},
|
|
9407
|
-
getSelectedPrimaryKeys: () => {
|
|
9407
|
+
getSelectedPrimaryKeys: (rowSelection) => {
|
|
9408
|
+
const state = getDataSourceState();
|
|
9409
|
+
const rowSelectionState = rowSelection ? new RowSelectionState(rowSelection, rowSelectionStateConfigGetter(state)) : state.rowSelection;
|
|
9408
9410
|
const selected = [];
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9411
|
+
if (state.lazyLoad) {
|
|
9412
|
+
console.error(`getSelectedPrimaryKeys should not be called for lazy-loaded datasources as it wont return reliable results`);
|
|
9413
|
+
}
|
|
9414
|
+
state.originalDataArray.forEach((data) => {
|
|
9415
|
+
const id = state.toPrimaryKey(data);
|
|
9416
|
+
if (rowSelectionState.isRowSelected(id)) {
|
|
9417
|
+
selected.push(id);
|
|
9412
9418
|
}
|
|
9413
9419
|
});
|
|
9414
9420
|
return selected;
|
|
@@ -12376,7 +12382,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
12376
12382
|
const valid = useMemo11(() => {
|
|
12377
12383
|
let valid2 = isValidLicense(licenseKey, {
|
|
12378
12384
|
publishedAt: 1624970570587,
|
|
12379
|
-
version: "0.4.
|
|
12385
|
+
version: "0.4.8"
|
|
12380
12386
|
});
|
|
12381
12387
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
12382
12388
|
return true;
|
package/index.js
CHANGED
|
@@ -9311,11 +9311,17 @@ function getSelectionApi(param) {
|
|
|
9311
9311
|
}
|
|
9312
9312
|
return rowSelection.getGroupRowSelectionState(groupKeys);
|
|
9313
9313
|
},
|
|
9314
|
-
getSelectedPrimaryKeys: () => {
|
|
9314
|
+
getSelectedPrimaryKeys: (rowSelection) => {
|
|
9315
|
+
const state = getDataSourceState();
|
|
9316
|
+
const rowSelectionState = rowSelection ? new RowSelectionState(rowSelection, rowSelectionStateConfigGetter(state)) : state.rowSelection;
|
|
9315
9317
|
const selected = [];
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9318
|
+
if (state.lazyLoad) {
|
|
9319
|
+
console.error(`getSelectedPrimaryKeys should not be called for lazy-loaded datasources as it wont return reliable results`);
|
|
9320
|
+
}
|
|
9321
|
+
state.originalDataArray.forEach((data) => {
|
|
9322
|
+
const id = state.toPrimaryKey(data);
|
|
9323
|
+
if (rowSelectionState.isRowSelected(id)) {
|
|
9324
|
+
selected.push(id);
|
|
9319
9325
|
}
|
|
9320
9326
|
});
|
|
9321
9327
|
return selected;
|
|
@@ -12277,7 +12283,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
12277
12283
|
const valid = (0, import_react44.useMemo)(() => {
|
|
12278
12284
|
let valid2 = isValidLicense(licenseKey, {
|
|
12279
12285
|
publishedAt: 1624970570587,
|
|
12280
|
-
version: "0.4.
|
|
12286
|
+
version: "0.4.8"
|
|
12281
12287
|
});
|
|
12282
12288
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
12283
12289
|
return true;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infinite-table/infinite-react",
|
|
3
3
|
"description": "Infinite Table for React",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.8",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.esm.js",
|
|
7
7
|
"typings": "index.d.ts",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "Commercial & Open Source",
|
|
16
16
|
"//": "will be updated at build time",
|
|
17
|
-
"publishedAt":
|
|
17
|
+
"publishedAt": 1660912348938
|
|
18
18
|
}
|