@codezee/sixtify-brahma 0.2.34 → 0.2.35
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/package.json +1 -1
- package/packages/shared-components/dist/Actions/ExportIconAction.js +1 -1
- package/packages/shared-components/dist/Actions/FilterIconAction.js +1 -1
- package/packages/shared-components/dist/Actions/ImportIconAction.js +1 -1
- package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItemList.d.ts.map +1 -1
- package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItemList.js +10 -6
package/package.json
CHANGED
|
@@ -6,6 +6,6 @@ const material_1 = require("@mui/material");
|
|
|
6
6
|
const Svgs_1 = require("../Svgs");
|
|
7
7
|
const Tooltip_1 = require("../Tooltip");
|
|
8
8
|
const ExportIconAction = (props) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Export", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgExport, {}) }) }));
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, sx: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Export", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgExport, {}) }) }));
|
|
10
10
|
};
|
|
11
11
|
exports.ExportIconAction = ExportIconAction;
|
|
@@ -6,6 +6,6 @@ const material_1 = require("@mui/material");
|
|
|
6
6
|
const SvgFilterList_1 = require("../Svgs/SvgFilterList");
|
|
7
7
|
const Tooltip_1 = require("../Tooltip");
|
|
8
8
|
const FilterIconAction = (props) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Filter", children: (0, jsx_runtime_1.jsx)(SvgFilterList_1.SvgFilterList, {}) }) }));
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, sx: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Filter", children: (0, jsx_runtime_1.jsx)(SvgFilterList_1.SvgFilterList, {}) }) }));
|
|
10
10
|
};
|
|
11
11
|
exports.FilterIconAction = FilterIconAction;
|
|
@@ -6,6 +6,6 @@ const material_1 = require("@mui/material");
|
|
|
6
6
|
const Svgs_1 = require("../Svgs");
|
|
7
7
|
const Tooltip_1 = require("../Tooltip");
|
|
8
8
|
const ImportIconAction = (props) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Import", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgImport, {}) }) }));
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, sx: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Import", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgImport, {}) }) }));
|
|
10
10
|
};
|
|
11
11
|
exports.ImportIconAction = ImportIconAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenDrawerMenuItemList.d.ts","sourceRoot":"","sources":["../../../src/Drawer/OpenDrawer/OpenDrawerMenuItemList.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1C,KAAK,2BAA2B,GAAG;IACjC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;KAC3B,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EACnB,OAAO,GACP;SACG,IAAI,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAA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CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,EAAE,MAAM,MAAM,EAAE,YAIhE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,sFAO/B,sBAAsB,wDAmGxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,iCAGpC,2BAA2B,8CAiC7B,CAAC"}
|
|
@@ -26,6 +26,15 @@ const getNestedMenuState = (state, path) => {
|
|
|
26
26
|
}
|
|
27
27
|
return getNestedMenuState(nextState, rest);
|
|
28
28
|
};
|
|
29
|
+
const checkCurrentSelectedPath = (obj) => {
|
|
30
|
+
if (obj === true) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
if (typeof obj !== "object" || obj === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return Object.values(obj).every(checkCurrentSelectedPath);
|
|
37
|
+
};
|
|
29
38
|
const isPathInCurrentSelection = (state, path) => {
|
|
30
39
|
const result = path.reduce((acc, segment) => {
|
|
31
40
|
if (typeof acc !== "object" || acc === null || !(segment in acc)) {
|
|
@@ -33,12 +42,7 @@ const isPathInCurrentSelection = (state, path) => {
|
|
|
33
42
|
}
|
|
34
43
|
return acc[segment];
|
|
35
44
|
}, state);
|
|
36
|
-
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
return !!(typeof result === "object" &&
|
|
40
|
-
result !== null &&
|
|
41
|
-
Object.values(result).every((v) => v === true));
|
|
45
|
+
return checkCurrentSelectedPath(result);
|
|
42
46
|
};
|
|
43
47
|
exports.isPathInCurrentSelection = isPathInCurrentSelection;
|
|
44
48
|
const isMenuOpen = (state, path) => {
|