@codezee/sixtify-brahma 0.2.66 → 0.2.68

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 (20) hide show
  1. package/package.json +1 -1
  2. package/packages/shared-components/dist/AgGrid/AgGrid.js +1 -1
  3. package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.d.ts +9 -3
  4. package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.d.ts.map +1 -1
  5. package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.js +26 -6
  6. package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.d.ts +2 -1
  7. package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.d.ts.map +1 -1
  8. package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.js +4 -1
  9. package/packages/shared-components/dist/CellSelectionTable/utils/helper.d.ts +2 -0
  10. package/packages/shared-components/dist/CellSelectionTable/utils/helper.d.ts.map +1 -1
  11. package/packages/shared-components/dist/CellSelectionTable/utils/helper.js +18 -0
  12. package/packages/shared-components/dist/CellSelectionTable/utils/index.d.ts +1 -0
  13. package/packages/shared-components/dist/CellSelectionTable/utils/index.d.ts.map +1 -1
  14. package/packages/shared-components/dist/CellSelectionTable/utils/index.js +1 -0
  15. package/packages/shared-components/dist/CellSelectionTable/utils/types.d.ts +9 -0
  16. package/packages/shared-components/dist/CellSelectionTable/utils/types.d.ts.map +1 -1
  17. package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerMenuItemList.d.ts.map +1 -1
  18. package/packages/shared-components/dist/Drawer/CloseDrawer/CloseDrawerMenuItemList.js +3 -0
  19. package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.d.ts.map +1 -1
  20. package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.js +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codezee/sixtify-brahma",
3
- "version": "0.2.66",
3
+ "version": "0.2.68",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hardikranpariya/sixtify-brahma.git"
@@ -34,6 +34,6 @@ exports.AgGrid = (0, react_1.forwardRef)((props, ref) => {
34
34
  backgroundColor: color.butterflyBlue[700],
35
35
  }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", children: "No result found" }) }));
36
36
  }
37
- return ((0, jsx_runtime_1.jsxs)("div", { className: "ag-theme-quartz ", style: { width: "100%", height, position: "relative" }, children: [(0, jsx_runtime_1.jsx)(ag_grid_react_1.AgGridReact, { ref: ref, cacheBlockSize: cacheBlockSize, defaultColDef: defaultColDef, rowHeight: rowHeight, rowModelType: rowModelType, rowBuffer: rowBuffer, infiniteInitialRowCount: infiniteInitialRowCount, overlayNoRowsTemplate: overlayNoRowsTemplate, pagination: pagination, ...(pagination ? { paginationPageSize: exports.defaultPageSize } : {}), paginationPageSizeSelector: pagination ? exports.pageSizeOptions : false, ...rest }), !!props.selectedItems && ((0, jsx_runtime_1.jsx)(material_1.Box, { position: "absolute", bottom: "15px", children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { paddingLeft: "20px" }, children: (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", children: ["Selected Rows ", props.selectedItems] }) }) }))] }));
37
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "ag-theme-quartz ", style: { width: "100%", height, position: "relative" }, children: [(0, jsx_runtime_1.jsx)(ag_grid_react_1.AgGridReact, { ref: ref, cacheBlockSize: cacheBlockSize, defaultColDef: defaultColDef, rowHeight: rowHeight, rowModelType: rowModelType, rowBuffer: rowBuffer, infiniteInitialRowCount: infiniteInitialRowCount, overlayNoRowsTemplate: overlayNoRowsTemplate, pagination: pagination, ...(pagination ? { paginationPageSize: exports.defaultPageSize } : {}), paginationPageSizeSelector: pagination ? exports.pageSizeOptions : false, ...rest }), !!props.selectedItems && pagination && ((0, jsx_runtime_1.jsx)(material_1.Box, { position: "absolute", bottom: "15px", children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { paddingLeft: "20px" }, children: (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", children: ["Selected Rows ", props.selectedItems] }) }) }))] }));
38
38
  });
39
39
  exports.AgGrid.displayName = "AgGrid";
@@ -1,13 +1,19 @@
1
1
  import type { Dictionary } from "lodash";
2
- import { type MouseEvent } from "react";
2
+ import { type MouseEvent, type ReactNode } from "react";
3
3
  import type { CellCoord, Column } from "./utils/types";
4
+ export type Cell = {
5
+ cellLabel: string;
6
+ [key: string]: ReactNode;
7
+ };
8
+ export type TableDataRow = Record<string, string | Cell>;
4
9
  export type CellSelectionTableProps = {
5
10
  columns: Column[];
6
- data: Record<string, string>[];
11
+ data: TableDataRow[];
7
12
  onCellSelection: (selectedCells: Dictionary<CellCoord[]>, e: MouseEvent) => void;
8
13
  cellColors?: (status: string) => string;
9
14
  height?: string | number;
10
15
  loading?: boolean;
16
+ getCellTextColor?: (status: string) => string;
11
17
  };
12
- export declare const CellSelectionTable: ({ columns, data, onCellSelection, cellColors, height, loading, }: Readonly<CellSelectionTableProps>) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const CellSelectionTable: ({ columns, data, onCellSelection, cellColors, height, loading, getCellTextColor, }: Readonly<CellSelectionTableProps>) => import("react/jsx-runtime").JSX.Element;
13
19
  //# sourceMappingURL=CellSelectionTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CellSelectionTable.d.ts","sourceRoot":"","sources":["../../src/CellSelectionTable/CellSelectionTable.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGzC,OAAO,EAAE,KAAK,UAAU,EAA0C,MAAM,OAAO,CAAC;AAUhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAoB,MAAM,eAAe,CAAC;AAEzE,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,EAAE,C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G,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,oFAQhC,QAAQ,CAAC,uBAAuB,CAAC,4CA6QnC,CAAC"}
@@ -14,7 +14,7 @@ const Tooltip_1 = require("../Tooltip");
14
14
  const EmployeeCell_1 = require("./SubComponents/EmployeeCell");
15
15
  const TableBodyLoader_1 = require("./SubComponents/TableBodyLoader");
16
16
  const helper_1 = require("./utils/helper");
17
- const CellSelectionTable = ({ columns, data, onCellSelection, cellColors, height, loading = false, }) => {
17
+ const CellSelectionTable = ({ columns, data, onCellSelection, cellColors, height, loading = false, getCellTextColor = () => "", }) => {
18
18
  const theme = (0, material_1.useTheme)();
19
19
  const { slate, iron, butterflyBlue } = theme.palette.app.color;
20
20
  const selectingRef = (0, react_1.useRef)(false);
@@ -95,18 +95,38 @@ const CellSelectionTable = ({ columns, data, onCellSelection, cellColors, height
95
95
  padding: "5px",
96
96
  height: "50px",
97
97
  },
98
- }, children: [(0, jsx_runtime_1.jsx)(material_1.TableHead, { children: (0, jsx_runtime_1.jsx)(material_1.TableRow, { children: columns.map(({ key, label, minWidth = "auto", align = "left" }) => ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: align, sx: {
98
+ }, children: [(0, jsx_runtime_1.jsx)(material_1.TableHead, { children: (0, jsx_runtime_1.jsx)(material_1.TableRow, { children: columns.map(({ key, label, minWidth = "auto", lockPinned = false, align = "left", }) => ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: align, sx: {
99
+ ...(lockPinned && {
100
+ left: 0,
101
+ zIndex: 5,
102
+ position: "sticky",
103
+ }),
99
104
  backgroundColor: slate[700],
100
105
  minWidth,
101
106
  padding: "5px 10px",
102
- }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle2", children: label }) }, key))) }) }), loading ? ((0, jsx_runtime_1.jsx)(TableBodyLoader_1.TableBodyLoader, { columns: columns, rowCount: 25 })) : ((0, jsx_runtime_1.jsx)(material_1.TableBody, { children: memoizedData.map((row, ri) => ((0, jsx_runtime_1.jsx)(material_1.TableRow, { sx: { backgroundColor: iron[600] }, children: columns.map(({ key, maxWidth = "auto", minWidth = "auto", isEmployee, align = "center", }, ci) => {
107
+ }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle2", children: label }) }, key))) }) }), loading ? ((0, jsx_runtime_1.jsx)(TableBodyLoader_1.TableBodyLoader, { columns: columns, rowCount: 25 })) : ((0, jsx_runtime_1.jsx)(material_1.TableBody, { children: memoizedData.map((row, ri) => ((0, jsx_runtime_1.jsx)(material_1.TableRow, { sx: { backgroundColor: iron[600] }, children: columns.map(({ key, maxWidth = "auto", minWidth = "auto", isEmployee, align = "center", lockPinned = false, }, ci) => {
108
+ const cell = row[key];
109
+ const getRowTitle = (0, helper_1.getCellValue)(cell, "cellLabel");
110
+ const tooltip = typeof cell !== "string" &&
111
+ typeof cell?.["cellTooltip"] === "object"
112
+ ? cell["cellTooltip"]
113
+ : (0, helper_1.getCellValue)(cell, "cellTooltip");
114
+ const getColor = (0, helper_1.getCellValue)(cell, "cellBackgroundConditionKey");
115
+ const cellActive = (0, helper_1.getCellValue)(cell, "cellActive");
103
116
  return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: align, sx: {
117
+ ...(lockPinned && {
118
+ left: 0,
119
+ zIndex: 5,
120
+ position: "sticky",
121
+ }),
104
122
  userSelect: "none",
105
123
  overflow: "hidden",
106
124
  bgcolor: (0, material_1.lighten)(getCellColor({
107
- cellKey: row[key],
125
+ cellKey: getColor,
108
126
  isSelected: isSelectedCell(ri, ci),
109
127
  }), 0.8),
128
+ ...(cellActive &&
129
+ ci > 0 && { color: getCellTextColor(cellActive) }),
110
130
  padding: "5px 10px",
111
131
  cursor: "pointer",
112
132
  maxWidth,
@@ -119,7 +139,7 @@ const CellSelectionTable = ({ columns, data, onCellSelection, cellColors, height
119
139
  ? handleCellMouseUp
120
140
  : undefined, onContextMenu: !columns[ci]?.disableSelection
121
141
  ? handleContextMenuCallback(ri, ci)
122
- : undefined, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: row[key], children: isEmployee ? ((0, jsx_runtime_1.jsx)(EmployeeCell_1.EmployeeCell, { row: row })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, { title: row[key], children: row[key] })) }) }, key));
123
- }) }, row.id))) }))] }) }));
142
+ : undefined, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: tooltip, children: isEmployee ? ((0, jsx_runtime_1.jsx)(EmployeeCell_1.EmployeeCell, { row: row })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: getRowTitle })) }) }, key));
143
+ }) }, typeof row.id === "string" ? row.id : ""))) }))] }) }));
124
144
  };
125
145
  exports.CellSelectionTable = CellSelectionTable;
@@ -1,5 +1,6 @@
1
+ import type { ModifyCellObj } from "../utils";
1
2
  type EmployeeCellProps = {
2
- row: Record<string, string>;
3
+ row: Record<string, string | ModifyCellObj | undefined>;
3
4
  };
4
5
  export declare const EmployeeCell: ({ row }: EmployeeCellProps) => import("react/jsx-runtime").JSX.Element;
5
6
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"EmployeeCell.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/SubComponents/EmployeeCell.tsx"],"names":[],"mappings":"AAEA,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,SAAS,iBAAiB,4CAatD,CAAC"}
1
+ {"version":3,"file":"EmployeeCell.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/SubComponents/EmployeeCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC,CAAC;CACzD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,SAAS,iBAAiB,4CAiBtD,CAAC"}
@@ -3,8 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EmployeeCell = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
+ const helper_1 = require("../utils/helper");
6
7
  const EmployeeCell = ({ row }) => {
7
- const { avatar, name, employee_code } = row ?? {};
8
+ const avatar = (0, helper_1.getCellValue)(row.avatar, "avatar");
9
+ const name = (0, helper_1.getCellValue)(row.name, "name");
10
+ const employee_code = (0, helper_1.getCellValue)(row.employee_code, "employee_code");
8
11
  return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: "10px", children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { src: avatar, alt: name, sx: { width: 40, height: 40 } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { children: name }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", children: employee_code })] })] }));
9
12
  };
10
13
  exports.EmployeeCell = EmployeeCell;
@@ -1,6 +1,8 @@
1
1
  import type { HandleContextMenuArgs, HandleMouseDownArgs, HandleMouseEnterArgs, HandleMunseUpArgs } from "./types";
2
+ import type { Cell } from "../CellSelectionTable";
2
3
  export declare function handleMouseEnter({ selectingRef, anchorRef, hoveringRef, ri, ci, setSelectedRanges, }: HandleMouseEnterArgs): void;
3
4
  export declare function handleMouseDown({ e, ri, ci, selectingRef, anchorRef, setSelectedRanges, }: HandleMouseDownArgs): void;
4
5
  export declare function handleMouseUp({ e, selectingRef, anchorRef, hoveringRef, setSelectedRanges, }: HandleMunseUpArgs): void;
5
6
  export declare function handleContextMenu({ e, ri, ci, setSelectedRanges, onCellSelection, selectedRanges, }: HandleContextMenuArgs): void;
7
+ export declare const getCellValue: (cell: string | Cell | undefined, key: string) => string;
6
8
  //# sourceMappingURL=helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/utils/helper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAgCjB,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,EACZ,SAAS,EACT,WAAW,EACX,EAAE,EACF,EAAE,EACF,iBAAiB,GAClB,EAAE,oBAAoB,QAOtB;AAED,wBAAgB,eAAe,CAAC,EAC9B,CAAC,EACD,EAAE,EACF,EAAE,EACF,YAAY,EACZ,SAAS,EACT,iBAAiB,GAClB,EAAE,mBAAmB,QAkBrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,CAAC,EACD,YAAY,EACZ,SAAS,EACT,WAAW,EACX,iBAAiB,GAClB,EAAE,iBAAiB,QAQnB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,CAAC,EACD,EAAE,EACF,EAAE,EACF,iBAAiB,EACjB,eAAe,EACf,cAAc,GACf,EAAE,qBAAqB,QAkCvB"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/utils/helper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAgClD,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,EACZ,SAAS,EACT,WAAW,EACX,EAAE,EACF,EAAE,EACF,iBAAiB,GAClB,EAAE,oBAAoB,QAOtB;AAED,wBAAgB,eAAe,CAAC,EAC9B,CAAC,EACD,EAAE,EACF,EAAE,EACF,YAAY,EACZ,SAAS,EACT,iBAAiB,GAClB,EAAE,mBAAmB,QAkBrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,CAAC,EACD,YAAY,EACZ,SAAS,EACT,WAAW,EACX,iBAAiB,GAClB,EAAE,iBAAiB,QAQnB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,CAAC,EACD,EAAE,EACF,EAAE,EACF,iBAAiB,EACjB,eAAe,EACf,cAAc,GACf,EAAE,qBAAqB,QAkCvB;AACD,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,EAC/B,KAAK,MAAM,KACV,MAoBF,CAAC"}
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getCellValue = void 0;
6
7
  exports.handleMouseEnter = handleMouseEnter;
7
8
  exports.handleMouseDown = handleMouseDown;
8
9
  exports.handleMouseUp = handleMouseUp;
@@ -75,3 +76,20 @@ function handleContextMenu({ e, ri, ci, setSelectedRanges, onCellSelection, sele
75
76
  setSelectedRanges(singleCell);
76
77
  onCellSelection?.({ selectedCells: singleCell }, e);
77
78
  }
79
+ const getCellValue = (cell, key) => {
80
+ if (typeof cell === "string") {
81
+ return cell;
82
+ }
83
+ const value = cell?.[key];
84
+ if (typeof value === "string") {
85
+ return value;
86
+ }
87
+ if (typeof value === "number") {
88
+ return value.toString();
89
+ }
90
+ if (value === true) {
91
+ return "active";
92
+ }
93
+ return "";
94
+ };
95
+ exports.getCellValue = getCellValue;
@@ -1,2 +1,3 @@
1
+ export * from "./helper";
1
2
  export * from "./types";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./helper"), exports);
17
18
  __exportStar(require("./types"), exports);
@@ -9,6 +9,8 @@ export type Column = {
9
9
  maxWidth?: string | number;
10
10
  align?: TableCellProps["align"];
11
11
  disableSelection?: boolean;
12
+ lockPinned?: boolean;
13
+ colorKey?: string;
12
14
  };
13
15
  export type OptionsType = {
14
16
  value: string;
@@ -53,5 +55,12 @@ export type HandleContextMenuArgs = {
53
55
  export type GetCellColorArgs = {
54
56
  cellKey?: string;
55
57
  isSelected: boolean;
58
+ colorKey?: string;
59
+ };
60
+ export type ModifyCellObj = {
61
+ cellActive?: boolean;
62
+ cellBackgroundConditionKey?: string;
63
+ cellLabel: string;
64
+ cellTooltip?: string;
56
65
  };
57
66
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GA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,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,iCAGrC,4BAA4B,4CAkF9B,CAAC"}
1
+ {"version":3,"file":"CloseDrawerMenuItemList.d.ts","sourceRoot":"","sources":["../../../src/Drawer/CloseDrawer/CloseDrawerMenuItemList.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAQ1C,KAAK,4BAA4B,GAAG;IAClC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,iCAGrC,4BAA4B,4CAsF9B,CAAC"}
@@ -26,6 +26,9 @@ const CloseDrawerMenuItemList = ({ menuItems, currentPathname, }) => {
26
26
  setAnchorEl(null);
27
27
  };
28
28
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [menuItems.map((menuItem, i) => {
29
+ if (menuItem.isView === false) {
30
+ return null;
31
+ }
29
32
  const { onClick, key: key1, icon, menuItems = [] } = menuItem;
30
33
  const handleClick = (target) => {
31
34
  if (onClick) {
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/FormFields/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAE5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGlE,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GACxE,kBAAkB,CAAC,eAAe,CAAC,GACnC,OAAO,CAAC;IACN,KAAK,CAAC,EAAE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CAAC;AAKzB,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GACxE,kBAAkB,CAAC,eAAe,CAAC,GACnC,OAAO,CAAC;IACN,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,CACR,IAAI,EAAE,MAAM,CAAC,EACb,KAAK,EAAE,UAAU,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KACnD,IAAI,CAAC;CACX,CAAC,CAAC;AAEL,eAAO,MAAM,WAAW;;;CAGvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAcjC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAclC,CAAC;AAEF,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,EAAE,EAChD,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,QAAgB,EAChB,KAAK,EACL,QAAgB,EAChB,IAAI,EACJ,KAAa,EACb,UAAU,EACV,OAAe,EACf,QAAgB,EAChB,SAAgB,EAChB,KAAK,EACL,oBAA4B,EAC5B,MAAqC,EACrC,GAAG,SAAS,EACb,EAAE,eAAe,CAAC,CAAC,CAAC,2CAyIpB"}
@@ -120,7 +120,15 @@ function DatePicker({ setError, control, defaultValue, disabled = false, label,
120
120
  leftArrowIcon: exports.LeftArrowIcon,
121
121
  rightArrowIcon: exports.RightArrowIcon,
122
122
  switchViewIcon: EmptyIcon,
123
- }, dayOfWeekFormatter: (weekday) => `${weekday.toFormat("ccc")}`, onChange: (value, details) => {
123
+ }, dayOfWeekFormatter: (weekday) => `${weekday.toFormat("ccc")}`, onAccept: (value, details) => {
124
+ if (restProps?.onAccept) {
125
+ restProps.onAccept(value, details);
126
+ }
127
+ }, onChange: (value, details) => {
128
+ if (restProps?.onChange) {
129
+ restProps.onChange(value, details);
130
+ return;
131
+ }
124
132
  if (details.validationError && value && value.year >= 1000) {
125
133
  if ((0, isFunction_1.default)(setError)) {
126
134
  setError(name, {