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.modern.js
CHANGED
|
@@ -27714,10 +27714,11 @@ var useTableHeader = function useTableHeader(props) {
|
|
|
27714
27714
|
}));
|
|
27715
27715
|
}, [JSON.stringify(popoverFilters)]);
|
|
27716
27716
|
var handleChangeFilters = useCallback(function (value, searchBy) {
|
|
27717
|
-
|
|
27718
|
-
|
|
27719
|
-
|
|
27720
|
-
|
|
27717
|
+
if (!!searchBy) {
|
|
27718
|
+
var _extends2;
|
|
27719
|
+
|
|
27720
|
+
onChangeFilters === null || onChangeFilters === void 0 ? void 0 : onChangeFilters(_extends({}, filters, (_extends2 = {}, _extends2[SearchBy[searchBy]] = value, _extends2)));
|
|
27721
|
+
}
|
|
27721
27722
|
}, [JSON.stringify(filters)]);
|
|
27722
27723
|
useEffect(function () {
|
|
27723
27724
|
popoverFilters.searchBy !== undefined && getData();
|
|
@@ -30403,7 +30404,9 @@ var useCategorySelector = function useCategorySelector() {
|
|
|
30403
30404
|
});
|
|
30404
30405
|
noParentCategories.forEach(function (c) {
|
|
30405
30406
|
var childrenOfCategory = categories.filter(function (cg) {
|
|
30406
|
-
|
|
30407
|
+
var _cg$parentCategoryId;
|
|
30408
|
+
|
|
30409
|
+
return (_cg$parentCategoryId = cg.parentCategoryId) === null || _cg$parentCategoryId === void 0 ? void 0 : _cg$parentCategoryId.includes(c.id);
|
|
30407
30410
|
});
|
|
30408
30411
|
|
|
30409
30412
|
var category = _extends({}, c, {
|
|
@@ -30419,7 +30422,9 @@ var useCategorySelector = function useCategorySelector() {
|
|
|
30419
30422
|
result.push(parent);
|
|
30420
30423
|
children === null || children === void 0 ? void 0 : children.forEach(function (c) {
|
|
30421
30424
|
var childrenOfCategory = categories.filter(function (cg) {
|
|
30422
|
-
|
|
30425
|
+
var _cg$parentCategoryId2;
|
|
30426
|
+
|
|
30427
|
+
return (_cg$parentCategoryId2 = cg.parentCategoryId) === null || _cg$parentCategoryId2 === void 0 ? void 0 : _cg$parentCategoryId2.includes(c.id);
|
|
30423
30428
|
});
|
|
30424
30429
|
|
|
30425
30430
|
var category = _extends({}, c, {
|