@codezee/sixtify-brahma 0.2.28 → 0.2.30

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.
Files changed (75) hide show
  1. package/package.json +1 -1
  2. package/packages/shared-components/dist/Actions/AddAction.d.ts.map +1 -1
  3. package/packages/shared-components/dist/Actions/AddAction.js +2 -1
  4. package/packages/shared-components/dist/Actions/CalendarAction.d.ts.map +1 -1
  5. package/packages/shared-components/dist/Actions/CalendarAction.js +2 -1
  6. package/packages/shared-components/dist/Actions/ConfigureAction.d.ts.map +1 -1
  7. package/packages/shared-components/dist/Actions/ConfigureAction.js +2 -1
  8. package/packages/shared-components/dist/Actions/DeleteAction.d.ts.map +1 -1
  9. package/packages/shared-components/dist/Actions/DeleteAction.js +2 -1
  10. package/packages/shared-components/dist/Actions/DownloadAction.d.ts.map +1 -1
  11. package/packages/shared-components/dist/Actions/DownloadAction.js +2 -1
  12. package/packages/shared-components/dist/Actions/EditAction.d.ts.map +1 -1
  13. package/packages/shared-components/dist/Actions/EditAction.js +2 -1
  14. package/packages/shared-components/dist/Actions/ExportAction.d.ts +4 -0
  15. package/packages/shared-components/dist/Actions/ExportAction.d.ts.map +1 -0
  16. package/packages/shared-components/dist/Actions/ExportAction.js +11 -0
  17. package/packages/shared-components/dist/Actions/FilterAction.d.ts +4 -0
  18. package/packages/shared-components/dist/Actions/FilterAction.d.ts.map +1 -0
  19. package/packages/shared-components/dist/Actions/FilterAction.js +11 -0
  20. package/packages/shared-components/dist/Actions/HistoryAction.d.ts.map +1 -1
  21. package/packages/shared-components/dist/Actions/HistoryAction.js +2 -1
  22. package/packages/shared-components/dist/Actions/ImportAction.d.ts +4 -0
  23. package/packages/shared-components/dist/Actions/ImportAction.d.ts.map +1 -0
  24. package/packages/shared-components/dist/Actions/ImportAction.js +11 -0
  25. package/packages/shared-components/dist/Actions/ViewAction.d.ts +4 -0
  26. package/packages/shared-components/dist/Actions/ViewAction.d.ts.map +1 -0
  27. package/packages/shared-components/dist/Actions/ViewAction.js +11 -0
  28. package/packages/shared-components/dist/Actions/index.d.ts +4 -0
  29. package/packages/shared-components/dist/Actions/index.d.ts.map +1 -1
  30. package/packages/shared-components/dist/Actions/index.js +4 -0
  31. package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItem.d.ts +2 -1
  32. package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItem.d.ts.map +1 -1
  33. package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItem.js +2 -2
  34. package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItemList.d.ts +1 -0
  35. package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItemList.d.ts.map +1 -1
  36. package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItemList.js +22 -10
  37. package/packages/shared-components/dist/FilterList/DateRangePickerPopUp.d.ts +14 -0
  38. package/packages/shared-components/dist/FilterList/DateRangePickerPopUp.d.ts.map +1 -0
  39. package/packages/shared-components/dist/FilterList/DateRangePickerPopUp.js +33 -0
  40. package/packages/shared-components/dist/FilterList/FilterList.d.ts.map +1 -1
  41. package/packages/shared-components/dist/FilterList/FilterList.js +8 -8
  42. package/packages/shared-components/dist/FilterList/FilterListV2.d.ts +2 -1
  43. package/packages/shared-components/dist/FilterList/FilterListV2.d.ts.map +1 -1
  44. package/packages/shared-components/dist/FilterList/FilterListV2.js +113 -25
  45. package/packages/shared-components/dist/FilterList/FilterPopup.d.ts +4 -2
  46. package/packages/shared-components/dist/FilterList/FilterPopup.d.ts.map +1 -1
  47. package/packages/shared-components/dist/FilterList/FilterPopup.js +8 -5
  48. package/packages/shared-components/dist/FilterList/FilterPopupWrapper.d.ts +12 -4
  49. package/packages/shared-components/dist/FilterList/FilterPopupWrapper.d.ts.map +1 -1
  50. package/packages/shared-components/dist/FilterList/FilterPopupWrapper.js +11 -24
  51. package/packages/shared-components/dist/FilterList/FilterTypeWrapper.d.ts +3 -1
  52. package/packages/shared-components/dist/FilterList/FilterTypeWrapper.d.ts.map +1 -1
  53. package/packages/shared-components/dist/FilterList/GetFilterPopupComponent.d.ts +5 -0
  54. package/packages/shared-components/dist/FilterList/GetFilterPopupComponent.d.ts.map +1 -0
  55. package/packages/shared-components/dist/FilterList/GetFilterPopupComponent.js +26 -0
  56. package/packages/shared-components/dist/FormFields/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  57. package/packages/shared-components/dist/FormFields/DateRangePicker/DateRangePicker.js +2 -2
  58. package/packages/shared-components/dist/FormFields/DateTimePicker/DateTimePicker.d.ts.map +1 -1
  59. package/packages/shared-components/dist/FormFields/DateTimePicker/DateTimePicker.js +3 -0
  60. package/packages/shared-components/dist/Layouts/FormRow/FormRow.styled.js +1 -1
  61. package/packages/shared-components/dist/Svgs/SvgExport.d.ts +3 -0
  62. package/packages/shared-components/dist/Svgs/SvgExport.d.ts.map +1 -0
  63. package/packages/shared-components/dist/Svgs/SvgExport.js +8 -0
  64. package/packages/shared-components/dist/Svgs/SvgImport.d.ts +3 -0
  65. package/packages/shared-components/dist/Svgs/SvgImport.d.ts.map +1 -0
  66. package/packages/shared-components/dist/Svgs/SvgImport.js +8 -0
  67. package/packages/shared-components/dist/Svgs/SvgProfile.d.ts +2 -0
  68. package/packages/shared-components/dist/Svgs/SvgProfile.d.ts.map +1 -0
  69. package/packages/shared-components/dist/Svgs/SvgProfile.js +6 -0
  70. package/packages/shared-components/dist/Svgs/SvgView.d.ts +3 -0
  71. package/packages/shared-components/dist/Svgs/SvgView.d.ts.map +1 -0
  72. package/packages/shared-components/dist/Svgs/SvgView.js +6 -0
  73. package/packages/shared-components/dist/Svgs/index.d.ts +4 -0
  74. package/packages/shared-components/dist/Svgs/index.d.ts.map +1 -1
  75. package/packages/shared-components/dist/Svgs/index.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codezee/sixtify-brahma",
3
- "version": "0.2.28",
3
+ "version": "0.2.30",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hardikranpariya/sixtify-brahma.git"
@@ -1 +1 @@
1
- {"version":3,"file":"AddAction.d.ts","sourceRoot":"","sources":["../../src/Actions/AddAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAE7C,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,4CAM9C,CAAC"}
1
+ {"version":3,"file":"AddAction.d.ts","sourceRoot":"","sources":["../../src/Actions/AddAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAE7C,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,4CAQ9C,CAAC"}
@@ -4,7 +4,8 @@ exports.AddAction = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const Svgs_1 = require("../Svgs");
7
+ const Tooltip_1 = require("../Tooltip");
7
8
  const AddAction = (props) => {
8
- return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgAdd, {}) }));
9
+ return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Add", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgAdd, {}) }) }));
9
10
  };
10
11
  exports.AddAction = AddAction;
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarAction.d.ts","sourceRoot":"","sources":["../../src/Actions/CalendarAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,4CAMxD,CAAC"}
1
+ {"version":3,"file":"CalendarAction.d.ts","sourceRoot":"","sources":["../../src/Actions/CalendarAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,4CAQxD,CAAC"}
@@ -4,7 +4,8 @@ exports.CalendarAction = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const Svgs_1 = require("../Svgs");
7
+ const Tooltip_1 = require("../Tooltip");
7
8
  const CalendarAction = (props) => {
8
- return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { sx: { color: "#4C5D70" }, ...props, children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgCalendar, {}) }));
9
+ return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { sx: { color: "#4C5D70" }, ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Calendar", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgCalendar, {}) }) }));
9
10
  };
10
11
  exports.CalendarAction = CalendarAction;
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigureAction.d.ts","sourceRoot":"","sources":["../../src/Actions/ConfigureAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC;AAEnD,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,4CAM1D,CAAC"}
1
+ {"version":3,"file":"ConfigureAction.d.ts","sourceRoot":"","sources":["../../src/Actions/ConfigureAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC;AAEnD,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,4CAQ1D,CAAC"}
@@ -4,7 +4,8 @@ exports.ConfigureAction = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const Svgs_1 = require("../Svgs");
7
+ const Tooltip_1 = require("../Tooltip");
7
8
  const ConfigureAction = (props) => {
8
- return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgConfigure, {}) }));
9
+ return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Configure", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgConfigure, {}) }) }));
9
10
  };
10
11
  exports.ConfigureAction = ConfigureAction;
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteAction.d.ts","sourceRoot":"","sources":["../../src/Actions/DeleteAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAEhD,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CAMpD,CAAC"}
1
+ {"version":3,"file":"DeleteAction.d.ts","sourceRoot":"","sources":["../../src/Actions/DeleteAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAEhD,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CAQpD,CAAC"}
@@ -4,7 +4,8 @@ exports.DeleteAction = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const SvgDelete_1 = require("../Svgs/SvgDelete");
7
+ const Tooltip_1 = require("../Tooltip");
7
8
  const DeleteAction = (props) => {
8
- return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(SvgDelete_1.SvgDelete, {}) }));
9
+ return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Delete", children: (0, jsx_runtime_1.jsx)(SvgDelete_1.SvgDelete, {}) }) }));
9
10
  };
10
11
  exports.DeleteAction = DeleteAction;
@@ -1 +1 @@
1
- {"version":3,"file":"DownloadAction.d.ts","sourceRoot":"","sources":["../../src/Actions/DownloadAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,4CAMxD,CAAC"}
1
+ {"version":3,"file":"DownloadAction.d.ts","sourceRoot":"","sources":["../../src/Actions/DownloadAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,4CAQxD,CAAC"}
@@ -4,7 +4,8 @@ exports.DownloadAction = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const Svgs_1 = require("../Svgs");
7
+ const Tooltip_1 = require("../Tooltip");
7
8
  const DownloadAction = (props) => {
8
- return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgDownload, {}) }));
9
+ return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Download", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgDownload, {}) }) }));
9
10
  };
10
11
  exports.DownloadAction = DownloadAction;
@@ -1 +1 @@
1
- {"version":3,"file":"EditAction.d.ts","sourceRoot":"","sources":["../../src/Actions/EditAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;AAE9C,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,4CAMhD,CAAC"}
1
+ {"version":3,"file":"EditAction.d.ts","sourceRoot":"","sources":["../../src/Actions/EditAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;AAE9C,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,4CAQhD,CAAC"}
@@ -4,7 +4,8 @@ exports.EditAction = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const SvgsEdit_1 = require("../Svgs/SvgsEdit");
7
+ const Tooltip_1 = require("../Tooltip");
7
8
  const EditAction = (props) => {
8
- return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(SvgsEdit_1.SvgsEdit, {}) }));
9
+ return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Edit", children: (0, jsx_runtime_1.jsx)(SvgsEdit_1.SvgsEdit, {}) }) }));
9
10
  };
10
11
  exports.EditAction = EditAction;
@@ -0,0 +1,4 @@
1
+ import type { IconButtonProps } from "@mui/material";
2
+ export type ExportActionProps = IconButtonProps;
3
+ export declare const ExportAction: (props: ExportActionProps) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=ExportAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExportAction.d.ts","sourceRoot":"","sources":["../../src/Actions/ExportAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAEhD,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CAQpD,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExportAction = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const Svgs_1 = require("../Svgs");
7
+ const Tooltip_1 = require("../Tooltip");
8
+ const ExportAction = (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, {}) }) }));
10
+ };
11
+ exports.ExportAction = ExportAction;
@@ -0,0 +1,4 @@
1
+ import type { IconButtonProps } from "@mui/material";
2
+ export type FilterActionProps = IconButtonProps;
3
+ export declare const FilterAction: (props: FilterActionProps) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=FilterAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterAction.d.ts","sourceRoot":"","sources":["../../src/Actions/FilterAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAEhD,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CAQpD,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FilterAction = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const SvgFilterList_1 = require("../Svgs/SvgFilterList");
7
+ const Tooltip_1 = require("../Tooltip");
8
+ const FilterAction = (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, {}) }) }));
10
+ };
11
+ exports.FilterAction = FilterAction;
@@ -1 +1 @@
1
- {"version":3,"file":"HistoryAction.d.ts","sourceRoot":"","sources":["../../src/Actions/HistoryAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAEjD,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,4CAMtD,CAAC"}
1
+ {"version":3,"file":"HistoryAction.d.ts","sourceRoot":"","sources":["../../src/Actions/HistoryAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAEjD,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,4CAQtD,CAAC"}
@@ -4,7 +4,8 @@ exports.HistoryAction = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const SvgsHistory_1 = require("../Svgs/SvgsHistory");
7
+ const Tooltip_1 = require("../Tooltip");
7
8
  const HistoryAction = (props) => {
8
- return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(SvgsHistory_1.SvgsHistory, {}) }));
9
+ return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "History", children: (0, jsx_runtime_1.jsx)(SvgsHistory_1.SvgsHistory, {}) }) }));
9
10
  };
10
11
  exports.HistoryAction = HistoryAction;
@@ -0,0 +1,4 @@
1
+ import type { IconButtonProps } from "@mui/material";
2
+ export type ImportActionProps = IconButtonProps;
3
+ export declare const ImportAction: (props: ImportActionProps) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=ImportAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImportAction.d.ts","sourceRoot":"","sources":["../../src/Actions/ImportAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAEhD,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CAQpD,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImportAction = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const Svgs_1 = require("../Svgs");
7
+ const Tooltip_1 = require("../Tooltip");
8
+ const ImportAction = (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, {}) }) }));
10
+ };
11
+ exports.ImportAction = ImportAction;
@@ -0,0 +1,4 @@
1
+ import type { IconButtonProps } from "@mui/material";
2
+ export type ViewActionProps = IconButtonProps;
3
+ export declare const ViewAction: (props: ViewActionProps) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=ViewAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewAction.d.ts","sourceRoot":"","sources":["../../src/Actions/ViewAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;AAE9C,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,4CAQhD,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewAction = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const Svgs_1 = require("../Svgs");
7
+ const Tooltip_1 = require("../Tooltip");
8
+ const ViewAction = (props) => {
9
+ return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "View", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgView, {}) }) }));
10
+ };
11
+ exports.ViewAction = ViewAction;
@@ -4,5 +4,9 @@ export * from "./ConfigureAction";
4
4
  export * from "./DeleteAction";
5
5
  export * from "./DownloadAction";
6
6
  export * from "./EditAction";
7
+ export * from "./ExportAction";
8
+ export * from "./FilterAction";
7
9
  export * from "./HistoryAction";
10
+ export * from "./ImportAction";
11
+ export * from "./ViewAction";
8
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
@@ -20,4 +20,8 @@ __exportStar(require("./ConfigureAction"), exports);
20
20
  __exportStar(require("./DeleteAction"), exports);
21
21
  __exportStar(require("./DownloadAction"), exports);
22
22
  __exportStar(require("./EditAction"), exports);
23
+ __exportStar(require("./ExportAction"), exports);
24
+ __exportStar(require("./FilterAction"), exports);
23
25
  __exportStar(require("./HistoryAction"), exports);
26
+ __exportStar(require("./ImportAction"), exports);
27
+ __exportStar(require("./ViewAction"), exports);
@@ -7,7 +7,8 @@ type OpenDrawerMenuItemProps = {
7
7
  selected?: MenuItemProps["selected"];
8
8
  onClick: MenuItemProps["onClick"];
9
9
  sx?: SxProps<Theme>;
10
+ isExpanded?: boolean;
10
11
  };
11
- export declare const OpenDrawerMenuItem: ({ icon, title, isShowEndAdornment, selected, onClick, sx, }: OpenDrawerMenuItemProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const OpenDrawerMenuItem: ({ icon, title, isShowEndAdornment, selected, onClick, isExpanded, sx, }: OpenDrawerMenuItemProps) => import("react/jsx-runtime").JSX.Element;
12
13
  export {};
13
14
  //# sourceMappingURL=OpenDrawerMenuItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenDrawerMenuItem.d.ts","sourceRoot":"","sources":["../../../src/Drawer/OpenDrawer/OpenDrawerMenuItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,KAAK,uBAAuB,GAAG;IAC7B,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,6DAOhC,uBAAuB,4CAuBzB,CAAC"}
1
+ {"version":3,"file":"OpenDrawerMenuItem.d.ts","sourceRoot":"","sources":["../../../src/Drawer/OpenDrawer/OpenDrawerMenuItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,KAAK,uBAAuB,GAAG;IAC7B,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,yEAQhC,uBAAuB,4CAuBzB,CAAC"}
@@ -6,11 +6,11 @@ const icons_material_1 = require("@mui/icons-material");
6
6
  const material_1 = require("@mui/material");
7
7
  const Bullet_1 = require("../Bullet");
8
8
  const MenuItem_1 = require("../MenuItem");
9
- const OpenDrawerMenuItem = ({ icon = (0, jsx_runtime_1.jsx)(Bullet_1.Bullet, {}), title, isShowEndAdornment = false, selected = false, onClick, sx, }) => {
9
+ const OpenDrawerMenuItem = ({ icon = (0, jsx_runtime_1.jsx)(Bullet_1.Bullet, {}), title, isShowEndAdornment = false, selected = false, onClick, isExpanded, sx, }) => {
10
10
  const theme = (0, material_1.useTheme)();
11
11
  const { butterflyBlue } = theme.palette.app.color;
12
12
  return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
13
13
  bgcolor: selected && !isShowEndAdornment ? butterflyBlue[900] : "",
14
- }, children: (0, jsx_runtime_1.jsx)(MenuItem_1.MenuItem, { sx: sx, title: title, icon: icon, onClick: onClick, selected: selected, endAdornment: isShowEndAdornment && (selected ? (0, jsx_runtime_1.jsx)(icons_material_1.ExpandLess, {}) : (0, jsx_runtime_1.jsx)(icons_material_1.ExpandMore, {})) }) }));
14
+ }, children: (0, jsx_runtime_1.jsx)(MenuItem_1.MenuItem, { sx: sx, title: title, icon: icon, onClick: onClick, selected: selected, endAdornment: isShowEndAdornment && (isExpanded ? (0, jsx_runtime_1.jsx)(icons_material_1.ExpandLess, {}) : (0, jsx_runtime_1.jsx)(icons_material_1.ExpandMore, {})) }) }));
15
15
  };
16
16
  exports.OpenDrawerMenuItem = OpenDrawerMenuItem;
@@ -16,6 +16,7 @@ type MenuItemRecursiveProps = {
16
16
  setSubMenusOpen: (value: NestedMenuState | ((prev: NestedMenuState) => NestedMenuState)) => void;
17
17
  currentPathMenuOpen: NestedMenuState;
18
18
  };
19
+ export declare const isPathInCurrentSelection: (state: NestedMenuState, path: string[]) => boolean;
19
20
  export declare const isMenuOpen: (state: NestedMenuState, path: string[]) => boolean;
20
21
  export declare const MenuItemRecursive: ({ menuItem, level, parentPath, subMenusOpen, setSubMenusOpen, currentPathMenuOpen, }: MenuItemRecursiveProps) => import("react/jsx-runtime").JSX.Element | undefined;
21
22
  export declare const OpenDrawerMenuItemList: ({ menuItems, currentPathname, }: OpenDrawerMenuItemListProps) => import("react/jsx-runtime").JSX.Element[];
@@ -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,OAAO,GAAG,eAAe;KACtD;CACN,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,eAAe,CAAC;IAC9B,eAAe,EAAE,CACf,KAAK,EAAE,eAAe,GAAG,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,eAAe,CAAC,KAClE,IAAI,CAAC;IACV,mBAAmB,EAAE,eAAe,CAAC;CACtC,CAAC;AA4BF,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,EAAE,MAAM,MAAM,EAAE,YAIhE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,sFAO/B,sBAAsB,wDA6FxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,iCAGpC,2BAA2B,8CA6B7B,CAAC"}
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,OAAO,GAAG,eAAe;KACtD;CACN,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,eAAe,CAAC;IAC9B,eAAe,EAAE,CACf,KAAK,EAAE,eAAe,GAAG,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,eAAe,CAAC,KAClE,IAAI,CAAC;IACV,mBAAmB,EAAE,eAAe,CAAC;CACtC,CAAC;AA0BF,eAAO,MAAM,wBAAwB,GACnC,OAAO,eAAe,EACtB,MAAM,MAAM,EAAE,KACb,OAUF,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,8CAgC7B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.OpenDrawerMenuItemList = exports.MenuItemRecursive = exports.isMenuOpen = void 0;
4
+ exports.OpenDrawerMenuItemList = exports.MenuItemRecursive = exports.isMenuOpen = exports.isPathInCurrentSelection = void 0;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const material_1 = require("@mui/material");
7
7
  const lodash_1 = require("lodash");
@@ -16,17 +16,26 @@ const getNestedMenuState = (state, path) => {
16
16
  if (typeof state !== "object") {
17
17
  return false;
18
18
  }
19
- const first = path[0];
19
+ const [first, ...rest] = path;
20
20
  if (!first) {
21
21
  return false;
22
22
  }
23
- const rest = path.slice(1);
24
23
  const nextState = state[first];
25
24
  if (rest.length === 0) {
26
25
  return Boolean(nextState);
27
26
  }
28
27
  return getNestedMenuState(nextState, rest);
29
28
  };
29
+ const isPathInCurrentSelection = (state, path) => {
30
+ const result = path.reduce((acc, segment) => {
31
+ if (typeof acc !== "object" || acc === null || !(segment in acc)) {
32
+ return undefined;
33
+ }
34
+ return acc[segment];
35
+ }, state);
36
+ return result === true;
37
+ };
38
+ exports.isPathInCurrentSelection = isPathInCurrentSelection;
30
39
  const isMenuOpen = (state, path) => {
31
40
  const value = getNestedMenuState(state, path);
32
41
  return Boolean(value);
@@ -44,7 +53,8 @@ const MenuItemRecursive = ({ menuItem, level = 0, parentPath = "", subMenusOpen,
44
53
  }
45
54
  const currentPath = parentPath ? `${parentPath}/${key}` : key;
46
55
  const pathArray = currentPath.split("/");
47
- const isMenuSelected = (0, exports.isMenuOpen)(subMenusOpen, pathArray);
56
+ const isMenuExpanded = (0, exports.isMenuOpen)(subMenusOpen, pathArray);
57
+ const isMenuSelected = (0, exports.isPathInCurrentSelection)(currentPathMenuOpen, pathArray);
48
58
  const dynamicPadding = level * 3 + 1.5;
49
59
  const handleClick = (target) => {
50
60
  if (menuItems.length > 0) {
@@ -62,7 +72,7 @@ const MenuItemRecursive = ({ menuItem, level = 0, parentPath = "", subMenusOpen,
62
72
  }
63
73
  const lastSegment = pathArray[pathArray.length - 1];
64
74
  if (lastSegment) {
65
- current[lastSegment] = !isMenuSelected;
75
+ current[lastSegment] = !isMenuExpanded;
66
76
  }
67
77
  return newState;
68
78
  });
@@ -78,21 +88,23 @@ const MenuItemRecursive = ({ menuItem, level = 0, parentPath = "", subMenusOpen,
78
88
  border: `1px solid ${butterflyBlue[900]}`,
79
89
  backgroundColor: slate[900],
80
90
  },
81
- }, onClick: handleClick, icon: level === 0 ? icon : undefined, title: title, isShowEndAdornment: menuItems.length > 0 && level < 2, selected: isMenuSelected }), menuItems.length > 0 && ((0, jsx_runtime_1.jsx)(OpenDrawerCollapse_1.OpenDrawerCollapse, { in: isMenuSelected, children: (0, jsx_runtime_1.jsx)(material_1.List, { component: "div", disablePadding: true, children: menuItems.map((subMenuItem) => ((0, jsx_runtime_1.jsx)(exports.MenuItemRecursive, { menuItem: subMenuItem, level: level + 1, parentPath: currentPath, subMenusOpen: subMenusOpen, setSubMenusOpen: setSubMenusOpen, currentPathMenuOpen: currentPathMenuOpen }, subMenuItem.key))) }) }))] }, key));
91
+ }, onClick: handleClick, icon: level === 0 ? icon : undefined, title: title, isShowEndAdornment: menuItems.length > 0 && level < 2, selected: isMenuSelected, isExpanded: isMenuExpanded }), menuItems.length > 0 && ((0, jsx_runtime_1.jsx)(OpenDrawerCollapse_1.OpenDrawerCollapse, { in: isMenuExpanded, children: (0, jsx_runtime_1.jsx)(material_1.List, { component: "div", disablePadding: true, children: menuItems.map((subMenuItem) => ((0, jsx_runtime_1.jsx)(exports.MenuItemRecursive, { menuItem: subMenuItem, level: level + 1, parentPath: currentPath, subMenusOpen: subMenusOpen, setSubMenusOpen: setSubMenusOpen, currentPathMenuOpen: currentPathMenuOpen }, subMenuItem.key))) }) }))] }, key));
82
92
  };
83
93
  exports.MenuItemRecursive = MenuItemRecursive;
84
94
  const OpenDrawerMenuItemList = ({ menuItems, currentPathname, }) => {
85
95
  const [subMenusOpen, setSubMenusOpen] = (0, react_1.useState)({});
86
96
  const [currentPathMenuOpen, setCurrentPathMenuOpen] = (0, react_1.useState)({});
87
97
  (0, react_1.useEffect)(() => {
88
- const obj = (0, urlToNestedObject_1.urlToNestedObject)(currentPathname);
89
- if ((0, lodash_1.isEmpty)(obj)) {
98
+ const navObj = (0, urlToNestedObject_1.urlToNestedObject)(currentPathname);
99
+ if ((0, lodash_1.isEmpty)(navObj)) {
90
100
  setSubMenusOpen({ home: true });
91
101
  setCurrentPathMenuOpen({ home: true });
92
102
  return;
93
103
  }
94
- setSubMenusOpen(obj);
95
- setCurrentPathMenuOpen(obj);
104
+ const subState = JSON.parse(JSON.stringify(navObj));
105
+ const selState = JSON.parse(JSON.stringify(navObj));
106
+ setSubMenusOpen(subState);
107
+ setCurrentPathMenuOpen(selState);
96
108
  }, [currentPathname]);
97
109
  return menuItems.map((menuItem) => ((0, jsx_runtime_1.jsx)(exports.MenuItemRecursive, { menuItem: menuItem, subMenusOpen: subMenusOpen, setSubMenusOpen: setSubMenusOpen, currentPathMenuOpen: currentPathMenuOpen }, menuItem.key)));
98
110
  };
@@ -0,0 +1,14 @@
1
+ import type { PopoverProps } from "@mui/material";
2
+ import { type PropsWithChildren } from "react";
3
+ type DateRangePickerPopUpProps = Partial<PropsWithChildren<PopoverProps> & {
4
+ onApply: () => void;
5
+ showFooter: boolean;
6
+ showDivider: boolean;
7
+ title: string;
8
+ required: boolean;
9
+ background: boolean;
10
+ open: boolean;
11
+ }>;
12
+ export declare const DateRangePickerPopUp: ({ open, anchorEl, onClose, children, onApply, showDivider, showFooter, title, required, background, }: DateRangePickerPopUpProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=DateRangePickerPopUp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateRangePickerPopUp.d.ts","sourceRoot":"","sources":["../../src/FilterList/DateRangePickerPopUp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAYlD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,KAAK,yBAAyB,GAAG,OAAO,CACtC,iBAAiB,CAAC,YAAY,CAAC,GAAG;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;CACf,CACF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,uGAWlC,yBAAyB,4CAmF3B,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DateRangePickerPopUp = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const x_date_pickers_1 = require("@mui/x-date-pickers");
7
+ const lodash_1 = require("lodash");
8
+ const Button_1 = require("../Button");
9
+ const PadBox_1 = require("../PadBox");
10
+ const DateRangePickerPopUp = ({ open = false, anchorEl, onClose, children, onApply, showDivider = false, showFooter = true, title, required, background = false, }) => {
11
+ const theme = (0, material_1.useTheme)();
12
+ const { slate } = theme.palette.app.color;
13
+ const handleApply = () => {
14
+ if ((0, lodash_1.isFunction)(onApply)) {
15
+ onApply();
16
+ }
17
+ };
18
+ const handleClose = () => {
19
+ if ((0, lodash_1.isFunction)(onClose)) {
20
+ onClose({}, "backdropClick");
21
+ }
22
+ };
23
+ return ((0, jsx_runtime_1.jsxs)(material_1.Popover, { open: open, anchorEl: anchorEl, anchorOrigin: { vertical: "bottom", horizontal: "left" }, onClose: (_event, reason) => {
24
+ if (reason === "backdropClick") {
25
+ return;
26
+ }
27
+ handleClose();
28
+ }, sx: { "& .MuiPaper-root": { minWidth: "300px" } }, children: [showDivider && ((0, jsx_runtime_1.jsxs)(material_1.Stack, { alignItems: "flex-end", children: [(0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "8px" }, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", width: "100%", alignItems: "center", children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: "5px", children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "h6", children: [title, " "] }), required && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", color: "error", children: "*" }))] }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: handleClose, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.ClearIcon, {}) })] }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: { width: "100%" } })] })), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
29
+ background: background ? slate[600] : "transparent",
30
+ borderRadius: "5px",
31
+ }, children: children }), showFooter && ((0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "10px" }, children: (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", justifyContent: "flex-end", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: handleApply, variant: "text", sx: { maxWidth: "40px" }, children: "Submit" }) }) }))] }));
32
+ };
33
+ exports.DateRangePickerPopUp = DateRangePickerPopUp;
@@ -1 +1 @@
1
- {"version":3,"file":"FilterList.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAY1D,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,cAAc,EAAE,CAAC;CACnC,CAAC;AACF,eAAO,MAAM,UAAU,GAAI,qBAAqB,eAAe,4CA0J9D,CAAC"}
1
+ {"version":3,"file":"FilterList.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterList.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI1D,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,cAAc,EAAE,CAAC;CACnC,CAAC;AACF,eAAO,MAAM,UAAU,GAAI,qBAAqB,eAAe,4CAkK9D,CAAC"}
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FilterList = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
5
  const material_1 = require("@mui/material");
7
- const FilterTypeWrapper_1 = require("./FilterTypeWrapper");
8
- const FilterPopup_1 = require("./FilterPopup");
9
- const FilterPopupWrapper_1 = require("./FilterPopupWrapper");
6
+ const react_1 = require("react");
10
7
  const react_hook_form_1 = require("react-hook-form");
11
- const SvgFilterList_1 = require("../Svgs/SvgFilterList");
12
8
  const Button_1 = require("../Button");
13
- const Tooltip_1 = require("../Tooltip");
14
9
  const FilterPill_1 = require("../Chips/FilterPill");
10
+ const SvgFilterList_1 = require("../Svgs/SvgFilterList");
11
+ const Tooltip_1 = require("../Tooltip");
12
+ const FilterPopup_1 = require("./FilterPopup");
13
+ const FilterPopupWrapper_1 = require("./FilterPopupWrapper");
14
+ const FilterTypeWrapper_1 = require("./FilterTypeWrapper");
15
15
  const getFormData_1 = require("./getFormData");
16
16
  const FilterList = ({ filterListItems }) => {
17
17
  const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
@@ -19,7 +19,7 @@ const FilterList = ({ filterListItems }) => {
19
19
  const [openFilterPopup, setOpenFilterPopup] = (0, react_1.useState)(false);
20
20
  const [filterListData, setFilterListData] = (0, react_1.useState)();
21
21
  const [currentFilter, setCurrentFilter] = (0, react_1.useState)(null);
22
- const { control, handleSubmit, setValue, reset, watch } = (0, react_hook_form_1.useForm)();
22
+ const { control, handleSubmit, setValue, reset, formState: { errors }, watch, } = (0, react_hook_form_1.useForm)();
23
23
  const handleClose = () => {
24
24
  setAnchorEl(null);
25
25
  };
@@ -85,6 +85,6 @@ const FilterList = ({ filterListItems }) => {
85
85
  handleSubmit(onSubmit)();
86
86
  }, children: filterListItems.map((filter) => ((0, jsx_runtime_1.jsx)(material_1.Box, { onClick: () => filter.type !== "switch" && handleFilterItemClick(filter), children: (0, jsx_runtime_1.jsx)(FilterTypeWrapper_1.FilterTypeWrapper, { filter: filter, control: control }) }, filter.key))) }), currentFilter && currentFilter.type !== "switch" && ((0, jsx_runtime_1.jsx)(FilterPopupWrapper_1.FilterPopupWrapper, { open: openFilterPopup, onClose: handleCloseFilterPopup, onApply: () => {
87
87
  handleSubmit(onSubmit)();
88
- }, control: control, currentFilterValue: currentFilterValue, anchorEl: filterPopupAnchorElm.current, filterItem: currentFilter }))] }));
88
+ }, control: control, currentFilterValue: currentFilterValue, anchorEl: filterPopupAnchorElm.current, filterItem: currentFilter, errors: errors }))] }));
89
89
  };
90
90
  exports.FilterList = FilterList;
@@ -1,10 +1,11 @@
1
1
  import type { FieldValues } from "react-hook-form";
2
2
  import type { FilterListType } from "./FilterTypeWrapper";
3
+ export type FilterKeys = "company_id" | "business_unit_id" | "department_id" | "switch";
3
4
  export type FilterListV2Props = {
4
5
  filterListItems: FilterListType[];
5
6
  isDisabled?: boolean;
6
7
  filterListData?: FieldValues;
7
- onApply: (data: FieldValues, isPopup?: boolean, key?: string) => void;
8
+ onApply: (data: FieldValues, isPopup?: boolean, key?: FilterKeys) => void;
8
9
  onChange: (data: FieldValues, isPopup: boolean) => void;
9
10
  onClear: () => void;
10
11
  resetFormBasedOnFields?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FilterListV2.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterListV2.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAanD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACtE,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AACF,eAAO,MAAM,YAAY,GAAI,wFAQ1B,iBAAiB,4CA+cnB,CAAC"}
1
+ {"version":3,"file":"FilterListV2.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterListV2.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAenD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI1D,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ,kBAAkB,GAClB,eAAe,GACf,QAAQ,CAAC;AAEb,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1E,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AACF,eAAO,MAAM,YAAY,GAAI,wFAQ1B,iBAAiB,4CA0lBnB,CAAC"}