@rhc-shared-components/packages-table 0.2.3 → 0.2.4
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/dist/index.js +1 -1
- package/dist/index.modern.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1312,7 +1312,6 @@ function FilterableTable(_ref) {
|
|
|
1312
1312
|
var sortedRows = sortFn ? lodash.sortBy(filteredItems, sortFn) : sortField ? lodash.sortBy(filteredItems, function (item) {
|
|
1313
1313
|
return item[sortField];
|
|
1314
1314
|
}) : filteredItems;
|
|
1315
|
-
setPage(1);
|
|
1316
1315
|
setSortTableBy({
|
|
1317
1316
|
index: index,
|
|
1318
1317
|
direction: direction
|
|
@@ -1364,6 +1363,7 @@ function FilterableTable(_ref) {
|
|
|
1364
1363
|
*/
|
|
1365
1364
|
|
|
1366
1365
|
var onFilterChange = function onFilterChange(selected, index) {
|
|
1366
|
+
handleItemsPropChangeCallback();
|
|
1367
1367
|
setTableFilters(function (prevState) {
|
|
1368
1368
|
prevState[index] = selected;
|
|
1369
1369
|
return [].concat(prevState);
|
package/dist/index.modern.js
CHANGED
|
@@ -1267,7 +1267,6 @@ function FilterableTable({
|
|
|
1267
1267
|
const sortField = columns == null ? void 0 : (_columns$index = columns[index]) == null ? void 0 : _columns$index.sortField;
|
|
1268
1268
|
const sortFn = columns == null ? void 0 : (_columns$index2 = columns[index]) == null ? void 0 : _columns$index2.sortFn;
|
|
1269
1269
|
const sortedRows = sortFn ? sortBy(filteredItems, sortFn) : sortField ? sortBy(filteredItems, item => item[sortField]) : filteredItems;
|
|
1270
|
-
setPage(1);
|
|
1271
1270
|
setSortTableBy({
|
|
1272
1271
|
index,
|
|
1273
1272
|
direction
|
|
@@ -1313,6 +1312,7 @@ function FilterableTable({
|
|
|
1313
1312
|
*/
|
|
1314
1313
|
|
|
1315
1314
|
const onFilterChange = (selected, index) => {
|
|
1315
|
+
handleItemsPropChangeCallback();
|
|
1316
1316
|
setTableFilters(prevState => {
|
|
1317
1317
|
prevState[index] = selected;
|
|
1318
1318
|
return [...prevState];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhc-shared-components/packages-table",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "project description",
|
|
5
5
|
"author": "redhatofficial",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "ac41ad2aacd69501d4aac8572f96bffd173a34d4"
|
|
81
81
|
}
|