ywana-core8 0.0.798 → 0.0.800
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.cjs +5 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain2/CollectionContext.js +3 -2
- package/src/domain2/CollectionList.js +1 -1
package/dist/index.umd.js
CHANGED
@@ -11087,8 +11087,9 @@
|
|
11087
11087
|
};
|
11088
11088
|
}, [filters]);
|
11089
11089
|
React.useEffect(function () {
|
11090
|
-
|
11091
|
-
|
11090
|
+
console.log("Run custom filters", customFilters, all);
|
11091
|
+
if (all.length > 0) runCustomFilters();
|
11092
|
+
}, [all, customFilters]);
|
11092
11093
|
|
11093
11094
|
function clearSelection() {
|
11094
11095
|
setSelected(null);
|
@@ -11398,9 +11399,7 @@
|
|
11398
11399
|
sortBy = props.sortBy,
|
11399
11400
|
sortDir = props.sortDir;
|
11400
11401
|
var context = React.useContext(CollectionContext);
|
11401
|
-
var _context$
|
11402
|
-
all = _context$all === void 0 ? [] : _context$all,
|
11403
|
-
_context$filtered = context.filtered,
|
11402
|
+
var _context$filtered = context.filtered,
|
11404
11403
|
filtered = _context$filtered === void 0 ? [] : _context$filtered,
|
11405
11404
|
selected = context.selected;
|
11406
11405
|
|
@@ -11421,7 +11420,7 @@
|
|
11421
11420
|
return item[field];
|
11422
11421
|
}).join(' ').toLowerCase();
|
11423
11422
|
return text.includes(search.toLowerCase());
|
11424
|
-
}) :
|
11423
|
+
}) : filtered;
|
11425
11424
|
var sorted = sortBy ? searched.sort(function (a, b) {
|
11426
11425
|
var valueA = a[sortBy];
|
11427
11426
|
var valueB = b[sortBy];
|