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.cjs
CHANGED
@@ -11093,8 +11093,9 @@ var CollectionContextProvider = function CollectionContextProvider(props) {
|
|
11093
11093
|
};
|
11094
11094
|
}, [filters]);
|
11095
11095
|
React.useEffect(function () {
|
11096
|
-
|
11097
|
-
|
11096
|
+
console.log("Run custom filters", customFilters, all);
|
11097
|
+
if (all.length > 0) runCustomFilters();
|
11098
|
+
}, [all, customFilters]);
|
11098
11099
|
|
11099
11100
|
function clearSelection() {
|
11100
11101
|
setSelected(null);
|
@@ -11404,9 +11405,7 @@ var CollectionList = function CollectionList(props) {
|
|
11404
11405
|
sortBy = props.sortBy,
|
11405
11406
|
sortDir = props.sortDir;
|
11406
11407
|
var context = React.useContext(CollectionContext);
|
11407
|
-
var _context$
|
11408
|
-
all = _context$all === void 0 ? [] : _context$all,
|
11409
|
-
_context$filtered = context.filtered,
|
11408
|
+
var _context$filtered = context.filtered,
|
11410
11409
|
filtered = _context$filtered === void 0 ? [] : _context$filtered,
|
11411
11410
|
selected = context.selected;
|
11412
11411
|
|
@@ -11427,7 +11426,7 @@ var CollectionList = function CollectionList(props) {
|
|
11427
11426
|
return item[field];
|
11428
11427
|
}).join(' ').toLowerCase();
|
11429
11428
|
return text.includes(search.toLowerCase());
|
11430
|
-
}) :
|
11429
|
+
}) : filtered;
|
11431
11430
|
var sorted = sortBy ? searched.sort(function (a, b) {
|
11432
11431
|
var valueA = a[sortBy];
|
11433
11432
|
var valueB = b[sortBy];
|