mario-core 2.9.203-release → 2.9.205-release
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
CHANGED
|
@@ -27717,10 +27717,11 @@ var useTableHeader = function useTableHeader(props) {
|
|
|
27717
27717
|
}));
|
|
27718
27718
|
}, [JSON.stringify(popoverFilters)]);
|
|
27719
27719
|
var handleChangeFilters = React.useCallback(function (value, searchBy) {
|
|
27720
|
-
|
|
27721
|
-
|
|
27722
|
-
|
|
27723
|
-
|
|
27720
|
+
if (!!searchBy) {
|
|
27721
|
+
var _extends2;
|
|
27722
|
+
|
|
27723
|
+
onChangeFilters === null || onChangeFilters === void 0 ? void 0 : onChangeFilters(_extends({}, filters, (_extends2 = {}, _extends2[SearchBy[searchBy]] = value, _extends2)));
|
|
27724
|
+
}
|
|
27724
27725
|
}, [JSON.stringify(filters)]);
|
|
27725
27726
|
React.useEffect(function () {
|
|
27726
27727
|
popoverFilters.searchBy !== undefined && getData();
|
|
@@ -30406,7 +30407,9 @@ var useCategorySelector = function useCategorySelector() {
|
|
|
30406
30407
|
});
|
|
30407
30408
|
noParentCategories.forEach(function (c) {
|
|
30408
30409
|
var childrenOfCategory = categories.filter(function (cg) {
|
|
30409
|
-
|
|
30410
|
+
var _cg$parentCategoryId;
|
|
30411
|
+
|
|
30412
|
+
return (_cg$parentCategoryId = cg.parentCategoryId) === null || _cg$parentCategoryId === void 0 ? void 0 : _cg$parentCategoryId.includes(c.id);
|
|
30410
30413
|
});
|
|
30411
30414
|
|
|
30412
30415
|
var category = _extends({}, c, {
|
|
@@ -30422,7 +30425,9 @@ var useCategorySelector = function useCategorySelector() {
|
|
|
30422
30425
|
result.push(parent);
|
|
30423
30426
|
children === null || children === void 0 ? void 0 : children.forEach(function (c) {
|
|
30424
30427
|
var childrenOfCategory = categories.filter(function (cg) {
|
|
30425
|
-
|
|
30428
|
+
var _cg$parentCategoryId2;
|
|
30429
|
+
|
|
30430
|
+
return (_cg$parentCategoryId2 = cg.parentCategoryId) === null || _cg$parentCategoryId2 === void 0 ? void 0 : _cg$parentCategoryId2.includes(c.id);
|
|
30426
30431
|
});
|
|
30427
30432
|
|
|
30428
30433
|
var category = _extends({}, c, {
|