@codezee/sixtify-brahma 0.2.84 → 0.2.85
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/README.md +3 -1
- package/package.json +1 -1
- package/packages/shared-components/dist/Actions/InboxIconAction.d.ts +4 -0
- package/packages/shared-components/dist/Actions/InboxIconAction.d.ts.map +1 -0
- package/packages/shared-components/dist/Actions/InboxIconAction.js +11 -0
- package/packages/shared-components/dist/Actions/index.d.ts +1 -0
- package/packages/shared-components/dist/Actions/index.d.ts.map +1 -1
- package/packages/shared-components/dist/Actions/index.js +1 -0
- package/packages/shared-components/dist/Charts/BarChart.d.ts +27 -0
- package/packages/shared-components/dist/Charts/BarChart.d.ts.map +1 -0
- package/packages/shared-components/dist/Charts/BarChart.js +29 -0
- package/packages/shared-components/dist/Charts/index.d.ts +1 -0
- package/packages/shared-components/dist/Charts/index.d.ts.map +1 -1
- package/packages/shared-components/dist/Charts/index.js +1 -0
- package/packages/shared-components/dist/FilterList/DateRangePickerPopUp.d.ts +1 -2
- package/packages/shared-components/dist/FilterList/DateRangePickerPopUp.d.ts.map +1 -1
- package/packages/shared-components/dist/FilterList/DateRangePickerPopUp.js +5 -11
- package/packages/shared-components/dist/FilterList/FilterListV2.d.ts.map +1 -1
- package/packages/shared-components/dist/FilterList/FilterListV2.js +4 -0
- package/packages/shared-components/dist/FilterList/FilterPopupWrapper.d.ts.map +1 -1
- package/packages/shared-components/dist/FilterList/FilterPopupWrapper.js +1 -1
- package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.js +30 -19
- package/packages/shared-components/dist/FormFields/DateRangePicker/DateRangePicker.js +2 -2
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgArrival.d.ts +3 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgArrival.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgArrival.js +8 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgDeparture.d.ts +3 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgDeparture.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgDeparture.js +8 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgHoliday.d.ts +3 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgHoliday.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgHoliday.js +8 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgLeaveCalendar.d.ts +3 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgLeaveCalendar.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgLeaveCalendar.js +8 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgUnverifieduser.d.ts +3 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgUnverifieduser.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgUnverifieduser.js +8 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgUser.d.ts +3 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgUser.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgUser.js +8 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgVerifiedUser.d.ts +3 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgVerifiedUser.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgVerifiedUser.js +8 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgWeekoffCalendar.d.ts +3 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgWeekoffCalendar.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/SvgWeekoffCalendar.js +8 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/index.d.ts +9 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/index.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/AttendanceDashboard/index.js +24 -0
- package/packages/shared-components/dist/Svgs/index.d.ts +1 -0
- package/packages/shared-components/dist/Svgs/index.d.ts.map +1 -1
- package/packages/shared-components/dist/Svgs/index.js +1 -0
- package/packages/shared-components/dist/Tooltip/Tooltip.d.ts +2 -1
- package/packages/shared-components/dist/Tooltip/Tooltip.d.ts.map +1 -1
- package/packages/shared-components/dist/Tooltip/Tooltip.js +4 -5
- package/packages/shared-components/dist/utils/theme/colorPalette.d.ts +1 -0
- package/packages/shared-components/dist/utils/theme/colorPalette.d.ts.map +1 -1
- package/packages/shared-components/dist/utils/theme/colorPalette.js +17 -1
package/README.md
CHANGED
|
@@ -90,4 +90,6 @@ For detailed usage and examples, check out the full documentation:
|
|
|
90
90
|
[See Documentation](https://hardikranpariya.github.io/sixtify-brahma/)
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
<!-- Security scan triggered at 2025-09-02 02:28:41 -->
|
|
93
|
+
<!-- Security scan triggered at 2025-09-02 02:28:41 -->
|
|
94
|
+
|
|
95
|
+
<!-- Security scan triggered at 2025-09-09 05:35:08 -->
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InboxIconAction.d.ts","sourceRoot":"","sources":["../../src/Actions/InboxIconAction.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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InboxIconAction = 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 InboxIconAction = (props) => {
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, sx: { padding: "10px" }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Inbox", children: (0, jsx_runtime_1.jsx)(Svgs_1.InboxIcon, {}) }) }));
|
|
10
|
+
};
|
|
11
|
+
exports.InboxIconAction = InboxIconAction;
|
|
@@ -9,6 +9,7 @@ export * from "./ExportIconAction";
|
|
|
9
9
|
export * from "./FilterIconAction";
|
|
10
10
|
export * from "./HistoryIconAction";
|
|
11
11
|
export * from "./ImportIconAction";
|
|
12
|
+
export * from "./InboxIconAction";
|
|
12
13
|
export * from "./ProcessIconAction";
|
|
13
14
|
export * from "./ViewIconAction";
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
@@ -25,5 +25,6 @@ __exportStar(require("./ExportIconAction"), exports);
|
|
|
25
25
|
__exportStar(require("./FilterIconAction"), exports);
|
|
26
26
|
__exportStar(require("./HistoryIconAction"), exports);
|
|
27
27
|
__exportStar(require("./ImportIconAction"), exports);
|
|
28
|
+
__exportStar(require("./InboxIconAction"), exports);
|
|
28
29
|
__exportStar(require("./ProcessIconAction"), exports);
|
|
29
30
|
__exportStar(require("./ViewIconAction"), exports);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BarSeriesType } from "@mui/x-charts";
|
|
2
|
+
import type { BarChartProps as MuiBarChartProps } from "@mui/x-charts/BarChart";
|
|
3
|
+
import type { AnchorPosition } from "@mui/x-charts/ChartsLegend/legend.types";
|
|
4
|
+
import type { MakeOptional } from "@mui/x-charts/internals";
|
|
5
|
+
type ExtendedBarSeriesType = MakeOptional<BarSeriesType, "type"> & {
|
|
6
|
+
color?: string;
|
|
7
|
+
colorMap?: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
getColor?: (value: number, index: number, data: readonly (number | null)[]) => string;
|
|
11
|
+
};
|
|
12
|
+
type BarChartProps = Omit<MuiBarChartProps, "series"> & {
|
|
13
|
+
series: ExtendedBarSeriesType[];
|
|
14
|
+
xAxisData?: string[];
|
|
15
|
+
yAxisLabel?: string;
|
|
16
|
+
xAxisLabel?: string;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
layout?: MuiBarChartProps["layout"];
|
|
19
|
+
height?: MuiBarChartProps["height"];
|
|
20
|
+
width?: MuiBarChartProps["width"];
|
|
21
|
+
skipAnimation?: boolean;
|
|
22
|
+
hideLegend?: boolean;
|
|
23
|
+
legendPosition?: AnchorPosition;
|
|
24
|
+
};
|
|
25
|
+
export declare const BarChart: ({ height, width, skipAnimation, loading, tooltip, series, layout, margin, hideLegend, legendPosition, ...rest }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=BarChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../src/Charts/BarChart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEhF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,KAAK,qBAAqB,GAAG,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,GAAG;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,KAC7B,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,aAAa,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAAG;IACtD,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAkBF,eAAO,MAAM,QAAQ,GAAI,iHAYtB,aAAa,4CAkBf,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BarChart = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const styles_1 = require("@mui/material/styles");
|
|
7
|
+
const BarChart_1 = require("@mui/x-charts/BarChart");
|
|
8
|
+
const StyledBarChart = (0, styles_1.styled)(BarChart_1.BarChart)(({ theme }) => ({
|
|
9
|
+
"& .MuiChartsAxis-tick": {
|
|
10
|
+
stroke: theme.palette.text.secondary,
|
|
11
|
+
},
|
|
12
|
+
"& .MuiChartsAxis-line": {
|
|
13
|
+
stroke: theme.palette.divider,
|
|
14
|
+
},
|
|
15
|
+
"& .MuiChartsAxis-tickLabel": {
|
|
16
|
+
fill: theme.palette.text.secondary,
|
|
17
|
+
fontSize: 12,
|
|
18
|
+
},
|
|
19
|
+
"& .MuiChartsLegend-mark": {
|
|
20
|
+
rx: 4,
|
|
21
|
+
},
|
|
22
|
+
}));
|
|
23
|
+
const BarChart = ({ height = 300, width, skipAnimation = false, loading = false, tooltip, series, layout = "vertical", margin = { top: 30, right: 30, bottom: 30, left: 30 }, hideLegend = false, legendPosition = { horizontal: "right", vertical: "top" }, ...rest }) => {
|
|
24
|
+
if (loading) {
|
|
25
|
+
return (0, jsx_runtime_1.jsx)(material_1.Skeleton, { height: height, width: width, variant: "rectangular" });
|
|
26
|
+
}
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(StyledBarChart, { height: height, width: width, series: series, margin: margin, layout: layout, skipAnimation: skipAnimation, tooltip: tooltip, slotProps: { legend: { hidden: hideLegend, position: legendPosition } }, ...rest }));
|
|
28
|
+
};
|
|
29
|
+
exports.BarChart = BarChart;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Charts/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Charts/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,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("./BarChart"), exports);
|
|
17
18
|
__exportStar(require("./PieChart"), exports);
|
|
@@ -2,13 +2,12 @@ import type { PopoverProps } from "@mui/material";
|
|
|
2
2
|
import { type PropsWithChildren } from "react";
|
|
3
3
|
type DateRangePickerPopUpProps = Partial<PropsWithChildren<PopoverProps> & {
|
|
4
4
|
onApply: () => void;
|
|
5
|
-
showFooter: boolean;
|
|
6
5
|
showDivider: boolean;
|
|
7
6
|
title: string;
|
|
8
7
|
required: boolean;
|
|
9
8
|
background: boolean;
|
|
10
9
|
open: boolean;
|
|
11
10
|
}>;
|
|
12
|
-
export declare const DateRangePickerPopUp: ({ open, anchorEl, onClose, children, onApply, showDivider,
|
|
11
|
+
export declare const DateRangePickerPopUp: ({ open, anchorEl, onClose, children, onApply, showDivider, title, required, }: DateRangePickerPopUpProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export {};
|
|
14
13
|
//# sourceMappingURL=DateRangePickerPopUp.d.ts.map
|
|
@@ -1 +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;
|
|
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;AAG/C,KAAK,yBAAyB,GAAG,OAAO,CACtC,iBAAiB,CAAC,YAAY,CAAC,GAAG;IAChC,OAAO,EAAE,MAAM,IAAI,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,+EASlC,yBAAyB,4CAgE3B,CAAC"}
|
|
@@ -5,29 +5,23 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const x_date_pickers_1 = require("@mui/x-date-pickers");
|
|
7
7
|
const lodash_1 = require("lodash");
|
|
8
|
-
const Button_1 = require("../Button");
|
|
9
8
|
const PadBox_1 = require("../PadBox");
|
|
10
|
-
const DateRangePickerPopUp = ({ open = false, anchorEl, onClose, children, onApply, showDivider = false,
|
|
9
|
+
const DateRangePickerPopUp = ({ open = false, anchorEl, onClose, children, onApply, showDivider = false, title, required, }) => {
|
|
11
10
|
const theme = (0, material_1.useTheme)();
|
|
12
11
|
const { slate } = theme.palette.app.color;
|
|
13
|
-
const
|
|
12
|
+
const handleClose = () => {
|
|
14
13
|
if ((0, lodash_1.isFunction)(onApply)) {
|
|
15
14
|
onApply();
|
|
16
15
|
}
|
|
17
|
-
};
|
|
18
|
-
const handleClose = () => {
|
|
19
16
|
if ((0, lodash_1.isFunction)(onClose)) {
|
|
20
17
|
onClose({}, "backdropClick");
|
|
21
18
|
}
|
|
22
19
|
};
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Popover, { open: open, anchorEl: anchorEl, anchorOrigin: { vertical: "bottom", horizontal: "left" }, onClose: (
|
|
24
|
-
if (reason === "backdropClick") {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Popover, { open: open, anchorEl: anchorEl, anchorOrigin: { vertical: "bottom", horizontal: "left" }, onClose: () => {
|
|
27
21
|
handleClose();
|
|
28
22
|
}, 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:
|
|
23
|
+
background: slate[600],
|
|
30
24
|
borderRadius: "5px",
|
|
31
|
-
}, children: children })
|
|
25
|
+
}, children: children })] }));
|
|
32
26
|
};
|
|
33
27
|
exports.DateRangePickerPopUp = DateRangePickerPopUp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterListV2.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterListV2.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAgBnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI1D,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;CACjC,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,WAAW,EACjB,eAAe,EAAE,cAAc,EAAE,GAChC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAiB7B;AAED,eAAO,MAAM,YAAY,GAAI,8EAO1B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"FilterListV2.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterListV2.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAgBnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI1D,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;CACjC,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,WAAW,EACjB,eAAe,EAAE,cAAc,EAAE,GAChC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAiB7B;AAED,eAAO,MAAM,YAAY,GAAI,8EAO1B,iBAAiB,4CAsnBnB,CAAC"}
|
|
@@ -287,9 +287,13 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
287
287
|
}, children: (0, jsx_runtime_1.jsx)(icons_1.ClearIcon, {}) })] }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: { width: "100%" } })] }), (0, jsx_runtime_1.jsx)(material_1.Stack, { flexGrow: 1, sx: { overflowX: "hidden" }, children: filterListItems.map((filter) => filter.type === "switch" ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", width: "80%", sx: { padding: "10px 5px 10px 20px ", margin: "auto" }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: filter.label }), (0, jsx_runtime_1.jsx)(SwitchField_1.SwitchField, { control: control, name: filter.key })] }, filter.key)) : ((0, jsx_runtime_1.jsxs)(material_1.Accordion, { defaultExpanded: !!filterListData?.[filter.key] ||
|
|
288
288
|
!!defaultValues?.[filter.key] ||
|
|
289
289
|
filter.required, disabled: filter.isDisabled, sx: {
|
|
290
|
+
boxShadow: "none",
|
|
290
291
|
"&.MuiAccordion-root.Mui-expanded": {
|
|
291
292
|
margin: "0 !important",
|
|
292
293
|
},
|
|
294
|
+
"&.MuiAccordion-root.Mui-disabled": {
|
|
295
|
+
backgroundColor: "transparent",
|
|
296
|
+
},
|
|
293
297
|
}, children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(icons_material_1.ExpandMore, {}), "aria-controls": "panel1a-content", id: "panel1a-header", sx: {
|
|
294
298
|
flexDirection: "row-reverse",
|
|
295
299
|
"& MuiAccordionSummary-root.Mui-expanded": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterPopupWrapper.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterPopupWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,KAAK,sBAAsB,GAAG,iBAAiB,CAAC,YAAY,CAAC,GAAG;IAC9D,UAAU,EAAE,cAAc,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,MAAM,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,KAAK,gCAAgC,GAAG,iBAAiB,CAAC,YAAY,CAAC,GAAG;IACxE,UAAU,EAAE,cAAc,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,MAAM,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC3B,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,+FAUhC,sBAAsB,4CAyCxB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,oEAQzC,gCAAgC,
|
|
1
|
+
{"version":3,"file":"FilterPopupWrapper.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterPopupWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,KAAK,sBAAsB,GAAG,iBAAiB,CAAC,YAAY,CAAC,GAAG;IAC9D,UAAU,EAAE,cAAc,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,MAAM,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,KAAK,gCAAgC,GAAG,iBAAiB,CAAC,YAAY,CAAC,GAAG;IACxE,UAAU,EAAE,cAAc,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,MAAM,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC3B,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,+FAUhC,sBAAsB,4CAyCxB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,oEAQzC,gCAAgC,4CAuBlC,CAAC"}
|
|
@@ -17,7 +17,7 @@ const FilterPopupWrapper = ({ open, anchorEl, filterItem, onClose, control, erro
|
|
|
17
17
|
};
|
|
18
18
|
exports.FilterPopupWrapper = FilterPopupWrapper;
|
|
19
19
|
const FilterPopUpDateRangeWrapper = ({ open, anchorEl, filterItem, onClose, control, errors, onApply, }) => {
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(DateRangePickerPopUp_1.DateRangePickerPopUp, { title: filterItem.label, required: filterItem.required, open: open, onClose: onClose, anchorEl: anchorEl, onApply: onApply,
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(DateRangePickerPopUp_1.DateRangePickerPopUp, { title: filterItem.label, required: filterItem.required, open: open, onClose: onClose, anchorEl: anchorEl, onApply: onApply, showDivider: true, background: true, children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "10px" }, children: (0, GetFilterPopupComponent_1.getFilterPopupComponent)({
|
|
21
21
|
selectedFilter: filterItem,
|
|
22
22
|
control,
|
|
23
23
|
errors,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/FormFields/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,IAAI,oBAAoB,EAC1C,MAAM,eAAe,CAAC;AAmBvB,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAOzB,MAAM,MAAM,MAAM,GAAG;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAC1E,IAAI,CACF,IAAI,CACF,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EACvD,aAAa,CACd,EACD,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAC/B,GAAG;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CACb,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,EACrC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,KACzB,GAAG,CAAC,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,aAAa,CAAC,EAAE,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACrE,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEJ,wBAAgB,YAAY,CAAC,CAAC,SAAS,WAAW,EAAE,EAClD,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,QAAgB,EAChB,KAAK,EACL,QAAgB,EAChB,QAAgB,EAChB,OAAY,EACZ,KAAK,EACL,OAAe,EACf,UAAU,EACV,KAAK,EACL,SAAiB,EACjB,WAAgB,EAChB,QAAQ,EACR,mBAA2B,EAC3B,eAAsB,EACtB,YAAoB,EACpB,kBAA0B,EAC1B,mBAA2B,EAC3B,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,EACb,gBAA0C,EAC1C,GAAG,SAAS,EACb,EAAE,iBAAiB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/FormFields/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,IAAI,oBAAoB,EAC1C,MAAM,eAAe,CAAC;AAmBvB,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAOzB,MAAM,MAAM,MAAM,GAAG;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAC1E,IAAI,CACF,IAAI,CACF,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EACvD,aAAa,CACd,EACD,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAC/B,GAAG;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CACb,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,EACrC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,KACzB,GAAG,CAAC,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,aAAa,CAAC,EAAE,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACrE,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEJ,wBAAgB,YAAY,CAAC,CAAC,SAAS,WAAW,EAAE,EAClD,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,QAAgB,EAChB,KAAK,EACL,QAAgB,EAChB,QAAgB,EAChB,OAAY,EACZ,KAAK,EACL,OAAe,EACf,UAAU,EACV,KAAK,EACL,SAAiB,EACjB,WAAgB,EAChB,QAAQ,EACR,mBAA2B,EAC3B,eAAsB,EACtB,YAAoB,EACpB,kBAA0B,EAC1B,mBAA2B,EAC3B,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,EACb,gBAA0C,EAC1C,GAAG,SAAS,EACb,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CA2ZtB"}
|
|
@@ -75,9 +75,9 @@ function Autocomplete({ control, defaultValue, name, required = false, label, mu
|
|
|
75
75
|
const { palette: { app: { color }, }, } = (0, material_1.useTheme)();
|
|
76
76
|
const StyledPaper = (0, styles_1.styled)(material_1.Paper)(({ theme }) => ({
|
|
77
77
|
"& .MuiAutocomplete-listbox": {
|
|
78
|
-
maxHeight:
|
|
78
|
+
maxHeight: 150,
|
|
79
79
|
overflowY: "auto",
|
|
80
|
-
marginTop: "
|
|
80
|
+
marginTop: "0px",
|
|
81
81
|
"&::-webkit-scrollbar": {
|
|
82
82
|
width: "6px",
|
|
83
83
|
},
|
|
@@ -119,23 +119,29 @@ function Autocomplete({ control, defaultValue, name, required = false, label, mu
|
|
|
119
119
|
highlightedOptionRef.current = option.value;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
}, disableCloseOnSelect: shouldCloseOnSelect, disabled: disabled, freeSolo: freeSolo, ...restProps, ...restField, disableClearable: disableClearable, renderTags: (value, getTagProps) =>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
122
|
+
}, disableCloseOnSelect: shouldCloseOnSelect, disabled: disabled, freeSolo: freeSolo, ...restProps, ...restField, disableClearable: disableClearable, renderTags: (value, getTagProps) => ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
123
|
+
display: "flex",
|
|
124
|
+
flexWrap: "wrap",
|
|
125
|
+
gap: 0.2,
|
|
126
|
+
maxHeight: 150,
|
|
127
|
+
overflowY: "auto",
|
|
128
|
+
}, children: value.map((option, index) => {
|
|
129
|
+
const { key, ...tagProps } = getTagProps({ index });
|
|
130
|
+
const label = typeof option === "string" ? option : option.label;
|
|
131
|
+
let avatarContent = "";
|
|
132
|
+
let avatar = undefined;
|
|
133
|
+
if (isShowAvatar) {
|
|
134
|
+
if (!option.avatar) {
|
|
135
|
+
const initials = option.label
|
|
136
|
+
.split(" ")
|
|
137
|
+
.map((word) => word[0]?.toUpperCase())
|
|
138
|
+
.join("");
|
|
139
|
+
avatarContent = `${initials}`;
|
|
140
|
+
}
|
|
141
|
+
avatar = option.avatar ? ((0, jsx_runtime_1.jsx)(material_1.Avatar, { src: option.avatar, alt: option.label })) : ((0, jsx_runtime_1.jsx)(material_1.Avatar, { children: avatarContent }));
|
|
134
142
|
}
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Chip, { avatar: avatar, label: label, ...tagProps, disabled: option.disabled || disabled }, key));
|
|
138
|
-
}), renderOption: (props, option, { selected }) => {
|
|
143
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Chip, { avatar: avatar, label: label, ...tagProps, disabled: option.disabled || disabled }, key));
|
|
144
|
+
}) })), renderOption: (props, option, { selected }) => {
|
|
139
145
|
if (renderOption) {
|
|
140
146
|
return renderOption(props, option, { selected });
|
|
141
147
|
}
|
|
@@ -220,7 +226,12 @@ function Autocomplete({ control, defaultValue, name, required = false, label, mu
|
|
|
220
226
|
return onChange(values);
|
|
221
227
|
}
|
|
222
228
|
onChange(newValue ? newValue.value : null);
|
|
223
|
-
}, groupBy: (option) => option.heading ?? "", renderGroup: (params) =>
|
|
229
|
+
}, groupBy: (option) => option.heading ?? "", renderGroup: (params) => {
|
|
230
|
+
if (!params.group) {
|
|
231
|
+
return (0, jsx_runtime_1.jsx)(material_1.Box, { children: params.children });
|
|
232
|
+
}
|
|
233
|
+
return ((0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)(GroupHeader, { children: params.group }), (0, jsx_runtime_1.jsx)(GroupItems, { children: params.children })] }, params.key));
|
|
234
|
+
}, getOptionDisabled: (option) => !!option.disabled, onBlur: () => {
|
|
224
235
|
setInputValue("");
|
|
225
236
|
} }), onAction && (0, jsx_runtime_1.jsx)(Actions_1.EditIconAction, { disabled: disabled, onClick: onAction })] })] }));
|
|
226
237
|
}
|
|
@@ -12,8 +12,8 @@ function DateRangePicker({ control, defaultValue, disabled = false, label, name,
|
|
|
12
12
|
const { field: { onChange }, } = (0, react_hook_form_1.useController)({ name, control, defaultValue, rules });
|
|
13
13
|
const [range, setRange] = (0, react_1.useState)([
|
|
14
14
|
{
|
|
15
|
-
startDate: new Date(),
|
|
16
|
-
endDate: new Date(),
|
|
15
|
+
startDate: defaultValue?.[0] ? new Date(defaultValue[0]) : new Date(),
|
|
16
|
+
endDate: defaultValue?.[1] ? new Date(defaultValue[1]) : new Date(),
|
|
17
17
|
key: "selection",
|
|
18
18
|
},
|
|
19
19
|
]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgArrival.d.ts","sourceRoot":"","sources":["../../../src/Svgs/AttendanceDashboard/SvgArrival.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,UAAU,GAAI,OAAO,YAAY,4CA4B7C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SvgArrival = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SvgArrival = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "57", height: "56", viewBox: "0 0 57 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { x: "0.5", width: "56", height: "56", rx: "8", fill: props.fill ?? "currentColor", fillOpacity: "0.1" }), (0, jsx_runtime_1.jsx)("path", { d: "M30.2249 16.7285C26.4199 16.7285 23.0479 18.6182 21.0078 21.5132L22.5342 22.5992C24.233 20.1849 27.04 18.6071 30.2249 18.6071C35.4241 18.6071 39.618 22.8011 39.618 28.0003C39.618 33.1996 35.4241 37.3935 30.2249 37.3935C27.04 37.3935 24.2367 35.8157 22.5342 33.4014L21.0078 34.4875C23.0479 37.3825 26.4199 39.2721 30.2249 39.2721C36.4405 39.2721 41.4967 34.216 41.4967 28.0003C41.4967 21.7847 36.4405 16.7285 30.2249 16.7285Z", fill: props.fill ?? "currentColor" }), (0, jsx_runtime_1.jsx)("path", { d: "M26.1554 23.792L24.8051 25.1423L26.9479 27.2851H15.5V29.1637H26.9479L24.8051 31.3065L26.1554 32.6568L29.9126 28.8995L30.5584 28.2244L29.9126 27.5493L26.1554 23.792Z", fill: props.fill ?? "currentColor" })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.SvgArrival = SvgArrival;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgDeparture.d.ts","sourceRoot":"","sources":["../../../src/Svgs/AttendanceDashboard/SvgDeparture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,4CA4B/C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SvgDeparture = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SvgDeparture = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "57", height: "56", viewBox: "0 0 57 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { x: "0.25", width: "56", height: "56", rx: "8", fill: props.fill ?? "currentColor", fillOpacity: "0.1" }), (0, jsx_runtime_1.jsx)("path", { d: "M25.7517 39.2725C29.5567 39.2725 32.9287 37.3828 34.9687 34.4878L33.4424 33.4017C31.7435 35.8161 28.9366 37.3938 25.7517 37.3938C20.5524 37.3938 16.3585 33.1999 16.3585 28.0007C16.3585 22.8014 20.5524 18.6075 25.7517 18.6075C28.9366 18.6075 31.7398 20.1852 33.4424 22.5996L34.9687 21.5135C32.9287 18.6185 29.5567 16.7289 25.7517 16.7289C19.5361 16.7289 14.4799 21.785 14.4799 28.0007C14.4799 34.2163 19.5361 39.2725 25.7517 39.2725Z", fill: props.fill ?? "currentColor" }), (0, jsx_runtime_1.jsx)("path", { d: "M37.6163 23.7949L36.266 25.1452L38.4089 27.288H26.9609V29.1666H38.4089L36.266 31.3095L37.6163 32.6597L41.3736 28.9025L42.0194 28.2273L41.3736 27.5522L37.6163 23.7949Z", fill: props.fill ?? "currentColor" })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.SvgDeparture = SvgDeparture;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgHoliday.d.ts","sourceRoot":"","sources":["../../../src/Svgs/AttendanceDashboard/SvgHoliday.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,UAAU,GAAI,OAAO,YAAY,4CAwB7C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SvgHoliday = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SvgHoliday = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "57", height: "56", viewBox: "0 0 57 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { x: "0.5", width: "56", height: "56", rx: "8", fill: props.fill ?? "currentColor", fillOpacity: "0.1" }), (0, jsx_runtime_1.jsx)("path", { d: "M26.8073 14.3195C26.5423 14.3236 26.2898 14.4327 26.1052 14.6229C25.9207 14.8131 25.8191 15.0688 25.8229 15.3338V15.714C22.691 15.9858 20.5257 17.5023 19.2018 19.0057C17.7411 20.6646 17.2031 22.365 17.2031 22.365C17.1557 22.5149 17.1442 22.6738 17.1696 22.8289C17.1951 22.984 17.2567 23.1309 17.3495 23.2577C17.4424 23.3846 17.5638 23.4877 17.704 23.5588C17.8441 23.63 17.9991 23.6671 18.1562 23.6671H25.8229V33.0004H17.4896C16.2129 33.0004 15.1562 34.0571 15.1562 35.3338V36.6671C15.1562 37.9437 16.2129 39.0004 17.4896 39.0004H17.8229V40.6671C17.821 40.7996 17.8455 40.9312 17.8949 41.0542C17.9444 41.1771 18.0177 41.289 18.1108 41.3834C18.2038 41.4778 18.3147 41.5527 18.4369 41.6039C18.5592 41.655 18.6904 41.6814 18.8229 41.6814C18.9554 41.6814 19.0866 41.655 19.2089 41.6039C19.3312 41.5527 19.442 41.4778 19.5351 41.3834C19.6281 41.289 19.7015 41.1771 19.7509 41.0542C19.8003 40.9312 19.8248 40.7996 19.8229 40.6671V39.0004H37.1562V40.6671C37.1544 40.7996 37.1789 40.9312 37.2283 41.0542C37.2777 41.1771 37.351 41.289 37.4441 41.3834C37.5371 41.4778 37.648 41.5527 37.7703 41.6039C37.8925 41.655 38.0237 41.6814 38.1562 41.6814C38.2888 41.6814 38.42 41.655 38.5422 41.6039C38.6645 41.5527 38.7754 41.4778 38.8684 41.3834C38.9615 41.289 39.0348 41.1771 39.0842 41.0542C39.1336 40.9312 39.1581 40.7996 39.1562 40.6671V39.0004H39.4896C40.7662 39.0004 41.8229 37.9437 41.8229 36.6671V35.3338C41.8229 34.0571 40.7662 33.0004 39.4896 33.0004H33.1094L41.2109 29.589C41.4301 29.5009 41.611 29.3382 41.7216 29.1295C41.8323 28.9209 41.8655 28.6798 41.8155 28.449C41.7654 28.2182 41.6353 28.0126 41.4481 27.8685C41.261 27.7244 41.0289 27.6512 40.793 27.6619C40.6695 27.6673 40.5481 27.6956 40.4349 27.7452L27.9531 33.0004H27.8229V23.6671H35.4896C35.6468 23.6671 35.8017 23.63 35.9419 23.5588C36.082 23.4877 36.2035 23.3846 36.2963 23.2577C36.3891 23.1309 36.4508 22.984 36.4762 22.8289C36.5016 22.6738 36.4902 22.5149 36.4427 22.365C36.4427 22.365 35.9048 20.6646 34.444 19.0057C33.1202 17.5023 30.9549 15.9858 27.8229 15.714V15.3338C27.8248 15.1999 27.7999 15.0671 27.7495 14.9431C27.6991 14.819 27.6244 14.7064 27.5296 14.6118C27.4349 14.5172 27.3222 14.4426 27.1981 14.3924C27.074 14.3422 26.9411 14.3174 26.8073 14.3195ZM26.8229 17.6671C29.9107 17.6671 31.7618 18.9875 32.9427 20.3286C33.3763 20.8209 33.6089 21.2481 33.8529 21.6671H26.987C26.9276 21.6569 26.8675 21.6521 26.8073 21.6528C26.7584 21.654 26.7097 21.6588 26.6615 21.6671H19.793C20.0369 21.2481 20.2696 20.8209 20.7031 20.3286C21.884 18.9875 23.7352 17.6671 26.8229 17.6671ZM17.4896 35.0004H26.6589C26.7662 35.0181 26.8757 35.0181 26.9831 35.0004H39.4896C39.6863 35.0004 39.8229 35.1371 39.8229 35.3338V36.6671C39.8229 36.8638 39.6863 37.0004 39.4896 37.0004H38.3203C38.261 36.9903 38.2008 36.9855 38.1406 36.9861C38.0917 36.9873 38.043 36.9921 37.9948 37.0004H18.987C18.9276 36.9903 18.8675 36.9855 18.8073 36.9861C18.7584 36.9873 18.7097 36.9921 18.6615 37.0004H17.4896C17.2929 37.0004 17.1562 36.8638 17.1562 36.6671V35.3338C17.1562 35.1371 17.2929 35.0004 17.4896 35.0004Z", fill: props.fill ?? "currentColor" })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.SvgHoliday = SvgHoliday;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgLeaveCalendar.d.ts","sourceRoot":"","sources":["../../../src/Svgs/AttendanceDashboard/SvgLeaveCalendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,gBAAgB,GAAI,OAAO,YAAY,4CAuBnD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SvgLeaveCalendar = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SvgLeaveCalendar = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { width: "56", height: "56", rx: "8", fill: props.fill ?? "currentColor", fillOpacity: "0.1" }), (0, jsx_runtime_1.jsx)("path", { d: "M21 16.5V17.5H17V39.5H39V17.5H35V16.5H33V17.5H23V16.5H21ZM19 19.5H21V20.5H23V19.5H33V20.5H35V19.5H37V21.5H19V19.5ZM19 23.5H37V37.5H19V23.5ZM27 25.5V31.5H29V25.5H27ZM27 33.5V35.5H29V33.5H27Z", fill: props.fill ?? "currentColor" })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.SvgLeaveCalendar = SvgLeaveCalendar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgUnverifieduser.d.ts","sourceRoot":"","sources":["../../../src/Svgs/AttendanceDashboard/SvgUnverifieduser.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,iBAAiB,GAAI,OAAO,YAAY,4CAwBpD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SvgUnverifieduser = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SvgUnverifieduser = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "57", height: "56", viewBox: "0 0 57 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { x: "0.75", width: "56", height: "56", rx: "8", fill: props.fill ?? "currentColor", fillOpacity: "0.1" }), (0, jsx_runtime_1.jsx)("path", { d: "M24.75 14C20.85 14 17.75 17.1 17.75 21C17.75 23.4 18.9496 25.6008 20.8496 26.8008C17.2496 28.3008 14.75 31.9 14.75 36H16.75C16.75 31.6 20.35 28 24.75 28C26.15 28 27.4508 28.4 28.5508 29C27.4508 30.4 26.75 32.1 26.75 34C26.75 38.4 30.35 42 34.75 42C39.15 42 42.75 38.4 42.75 34C42.75 29.6 39.15 26 34.75 26C33.05 26 31.3508 26.6 30.0508 27.5C29.6508 27.2 29.1504 27.0008 28.6504 26.8008C30.5504 25.5008 31.75 23.4 31.75 21C31.75 17.1 28.65 14 24.75 14ZM24.75 16C27.55 16 29.75 18.2 29.75 21C29.75 23.8 27.55 26 24.75 26C21.95 26 19.75 23.8 19.75 21C19.75 18.2 21.95 16 24.75 16ZM34.75 28C38.05 28 40.75 30.7 40.75 34C40.75 37.3 38.05 40 34.75 40C31.45 40 28.75 37.3 28.75 34C28.75 30.7 31.45 28 34.75 28ZM30.75 33V35H38.75V33H30.75Z", fill: props.fill ?? "currentColor" })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.SvgUnverifieduser = SvgUnverifieduser;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgUser.d.ts","sourceRoot":"","sources":["../../../src/Svgs/AttendanceDashboard/SvgUser.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,4CAuB1C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SvgUser = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SvgUser = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { width: "56", height: "56", rx: "8", fill: props.fill ?? "currentColor", fillOpacity: "0.1" }), (0, jsx_runtime_1.jsx)("path", { d: "M28 16.5C23.9518 16.5 20.65 19.7875 20.65 23.8182C20.65 26.3379 21.942 28.5758 23.8984 29.8949C20.1537 31.4957 17.5 35.1957 17.5 39.5H19.6C19.6 36.478 21.2037 33.848 23.6031 32.3778C24.3086 34.1012 26.0271 35.3182 28 35.3182C29.9729 35.3182 31.6914 34.1012 32.3969 32.3778C34.7963 33.848 36.4 36.478 36.4 39.5H38.5C38.5 35.1957 35.8463 31.4957 32.1016 29.8949C34.058 28.5758 35.35 26.3379 35.35 23.8182C35.35 19.7875 32.0482 16.5 28 16.5ZM28 18.5909C30.9121 18.5909 33.25 20.9187 33.25 23.8182C33.25 26.7177 30.9121 29.0455 28 29.0455C25.0879 29.0455 22.75 26.7177 22.75 23.8182C22.75 20.9187 25.0879 18.5909 28 18.5909ZM28 31.1364C28.8613 31.1364 29.6816 31.2589 30.4609 31.4957C30.0959 32.5044 29.1443 33.2273 28 33.2273C26.8557 33.2273 25.9041 32.5044 25.5391 31.4957C26.3184 31.2589 27.1387 31.1364 28 31.1364Z", fill: props.fill ?? "currentColor" })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.SvgUser = SvgUser;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgVerifiedUser.d.ts","sourceRoot":"","sources":["../../../src/Svgs/AttendanceDashboard/SvgVerifiedUser.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,eAAe,GAAI,OAAO,YAAY,4CAwBlD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SvgVerifiedUser = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SvgVerifiedUser = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "57", height: "56", viewBox: "0 0 57 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { x: "0.25", width: "56", height: "56", rx: "8", fill: props.fill ?? "currentColor", fillOpacity: "0.1" }), (0, jsx_runtime_1.jsx)("path", { d: "M24.25 14C20.3945 14 17.25 17.1445 17.25 21C17.25 23.4102 18.4805 25.5508 20.3438 26.8125C16.7773 28.3438 14.25 31.8828 14.25 36H16.25C16.25 31.5703 19.8203 28 24.25 28C25.625 28 26.9062 28.3594 28.0312 28.9688C26.9219 30.3438 26.25 32.1016 26.25 34C26.25 38.4062 29.8438 42 34.25 42C38.6562 42 42.25 38.4062 42.25 34C42.25 29.5938 38.6562 26 34.25 26C32.5039 26 30.8789 26.5742 29.5625 27.5312C29.1211 27.2539 28.6406 27.0195 28.1562 26.8125C30.0195 25.5508 31.25 23.4102 31.25 21C31.25 17.1445 28.1055 14 24.25 14ZM24.25 16C27.0234 16 29.25 18.2266 29.25 21C29.25 23.7734 27.0234 26 24.25 26C21.4766 26 19.25 23.7734 19.25 21C19.25 18.2266 21.4766 16 24.25 16ZM34.25 28C37.5742 28 40.25 30.6758 40.25 34C40.25 37.3242 37.5742 40 34.25 40C30.9258 40 28.25 37.3242 28.25 34C28.25 30.6758 30.9258 28 34.25 28ZM37.5312 31.2812L34.25 34.5625L31.9688 32.2812L30.5312 33.7188L33.5312 36.7188L34.25 37.4062L34.9688 36.7188L38.9688 32.7188L37.5312 31.2812Z", fill: props.fill ?? "currentColor" })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.SvgVerifiedUser = SvgVerifiedUser;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgWeekoffCalendar.d.ts","sourceRoot":"","sources":["../../../src/Svgs/AttendanceDashboard/SvgWeekoffCalendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,kBAAkB,GAAI,OAAO,YAAY,4CAuBrD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SvgWeekoffCalendar = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SvgWeekoffCalendar = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "57", height: "56", viewBox: "0 0 57 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("rect", { x: "0.75", width: "56", height: "56", rx: "8", fill: props.fill ?? "currentColor", fillOpacity: "0.1" }), (0, jsx_runtime_1.jsx)("path", { d: "M21.75 16.5V17.5H17.75V39.5H39.75V17.5H35.75V16.5H33.75V17.5H23.75V16.5H21.75ZM19.75 19.5H21.75V20.5H23.75V19.5H33.75V20.5H35.75V19.5H37.75V21.5H19.75V19.5ZM19.75 23.5H37.75V37.5H19.75V23.5ZM25.75 25.5V27.5H27.75V25.5H25.75ZM29.75 25.5V27.5H31.75V25.5H29.75ZM33.75 25.5V27.5H35.75V25.5H33.75ZM21.75 29.5V31.5H23.75V29.5H21.75ZM25.75 29.5V31.5H27.75V29.5H25.75ZM29.75 29.5V31.5H31.75V29.5H29.75ZM33.75 29.5V31.5H35.75V29.5H33.75ZM21.75 33.5V35.5H35.75V33.5H21.75Z", fill: props.fill ?? "currentColor" })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.SvgWeekoffCalendar = SvgWeekoffCalendar;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./SvgArrival";
|
|
2
|
+
export * from "./SvgDeparture";
|
|
3
|
+
export * from "./SvgHoliday";
|
|
4
|
+
export * from "./SvgLeaveCalendar";
|
|
5
|
+
export * from "./SvgUnverifieduser";
|
|
6
|
+
export * from "./SvgUser";
|
|
7
|
+
export * from "./SvgVerifiedUser";
|
|
8
|
+
export * from "./SvgWeekoffCalendar";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Svgs/AttendanceDashboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./SvgArrival"), exports);
|
|
18
|
+
__exportStar(require("./SvgDeparture"), exports);
|
|
19
|
+
__exportStar(require("./SvgHoliday"), exports);
|
|
20
|
+
__exportStar(require("./SvgLeaveCalendar"), exports);
|
|
21
|
+
__exportStar(require("./SvgUnverifieduser"), exports);
|
|
22
|
+
__exportStar(require("./SvgUser"), exports);
|
|
23
|
+
__exportStar(require("./SvgVerifiedUser"), exports);
|
|
24
|
+
__exportStar(require("./SvgWeekoffCalendar"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Svgs/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Svgs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
@@ -14,6 +14,7 @@ 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("./AttendanceDashboard"), exports);
|
|
17
18
|
__exportStar(require("./Company"), exports);
|
|
18
19
|
__exportStar(require("./Drawer"), exports);
|
|
19
20
|
__exportStar(require("./FormAction"), exports);
|
|
@@ -4,7 +4,8 @@ type TooltipProps = PropsWithChildren<{
|
|
|
4
4
|
toolTipLabel: ReactNode;
|
|
5
5
|
placement?: MuiTooltipProps["placement"];
|
|
6
6
|
hidden?: MuiTooltipProps["hidden"];
|
|
7
|
+
checkOverflow?: boolean;
|
|
7
8
|
}>;
|
|
8
|
-
export declare const Tooltip: ({ toolTipLabel, children, placement, hidden, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Tooltip: ({ toolTipLabel, children, placement, hidden, checkOverflow, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
10
11
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1D,KAAK,YAAY,GAAG,iBAAiB,CAAC;IACpC,YAAY,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1D,KAAK,YAAY,GAAG,iBAAiB,CAAC;IACpC,YAAY,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO,GAAI,uEAOrB,YAAY,4CA2Cd,CAAC"}
|
|
@@ -4,18 +4,17 @@ exports.Tooltip = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
-
const Tooltip = ({ toolTipLabel, children, placement = "top-start", hidden = false, ...rest }) => {
|
|
7
|
+
const Tooltip = ({ toolTipLabel, children, placement = "top-start", hidden = false, checkOverflow = false, ...rest }) => {
|
|
8
8
|
const wrapperRef = (0, react_1.useRef)(null);
|
|
9
9
|
const [isOverflowed, setIsOverflowed] = (0, react_1.useState)(false);
|
|
10
|
-
// Tried Managing with useMemo but it didn't work as expected
|
|
11
10
|
(0, react_1.useEffect)(() => {
|
|
12
|
-
if (wrapperRef.current) {
|
|
11
|
+
if (checkOverflow && wrapperRef.current) {
|
|
13
12
|
const el = wrapperRef.current;
|
|
14
13
|
setIsOverflowed(el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight);
|
|
15
14
|
}
|
|
16
15
|
}, [children]);
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { arrow: true, placement: placement, title:
|
|
18
|
-
maxWidth: "
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { arrow: true, placement: placement, title: toolTipLabel, disableHoverListener: checkOverflow ? !isOverflowed || hidden : hidden, ...rest, children: (0, jsx_runtime_1.jsx)(material_1.Box, { ref: wrapperRef, sx: {
|
|
17
|
+
maxWidth: "100%",
|
|
19
18
|
overflow: "hidden",
|
|
20
19
|
textOverflow: "ellipsis",
|
|
21
20
|
whiteSpace: "nowrap",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorPalette.d.ts","sourceRoot":"","sources":["../../../src/utils/theme/colorPalette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,KAAK,CAAC;IACtB,WAAW,EAAE,KAAK,CAAC;IACnB,UAAU,EAAE,KAAK,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC;IAChB,YAAY,EAAE,KAAK,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC;IAChB,aAAa,EAAE,KAAK,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC;IACd,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,KAAK,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"colorPalette.d.ts","sourceRoot":"","sources":["../../../src/utils/theme/colorPalette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,KAAK,CAAC;IACtB,WAAW,EAAE,KAAK,CAAC;IACnB,UAAU,EAAE,KAAK,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC;IAChB,YAAY,EAAE,KAAK,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC;IAChB,aAAa,EAAE,KAAK,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC;IACd,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,KAAK,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,YAiP1B,CAAC"}
|
|
@@ -154,7 +154,7 @@ exports.colorPalette = {
|
|
|
154
154
|
500: "hsla(203, 82%, 96%, 1)",
|
|
155
155
|
400: "hsla(208, 25%, 66%, 1)", //primary.light
|
|
156
156
|
300: "hsla(207, 17%, 88%, 1)",
|
|
157
|
-
50: "hsla(
|
|
157
|
+
50: "hsla(209, 83%, 53%, 1)",
|
|
158
158
|
100: "hsla(0, 0%, 0%, 0)",
|
|
159
159
|
200: "hsla(0, 0%, 0%, 0)",
|
|
160
160
|
A100: "hsla(0, 0%, 0%, 0)",
|
|
@@ -226,4 +226,20 @@ exports.colorPalette = {
|
|
|
226
226
|
A400: "hsla(0, 0%, 0%, 0)",
|
|
227
227
|
A700: "hsla(0, 0%, 0%, 0)",
|
|
228
228
|
},
|
|
229
|
+
violet: {
|
|
230
|
+
900: "hsla(244, 58%, 25%, 1)",
|
|
231
|
+
800: "hsla(244, 58%, 35%, 1)",
|
|
232
|
+
700: "hsla(244, 58%, 50%, 1)",
|
|
233
|
+
600: "hsla(244, 58%, 65%, 1)",
|
|
234
|
+
500: "hsla(244, 58%, 59%, 1)",
|
|
235
|
+
400: "hsla(244, 58%, 59%, 0.85)",
|
|
236
|
+
300: "hsla(244, 58%, 59%, 0.35)",
|
|
237
|
+
200: "hsla(244, 58%, 59%, 0.2)",
|
|
238
|
+
100: "hsla(244, 58%, 59%, 0.1)",
|
|
239
|
+
50: "hsla(244, 58%, 59%, 0.05)",
|
|
240
|
+
A100: "hsla(244, 58%, 59%, 0.1)",
|
|
241
|
+
A200: "hsla(244, 58%, 59%, 0.2)",
|
|
242
|
+
A400: "hsla(244, 58%, 59%, 0.4)",
|
|
243
|
+
A700: "hsla(244, 58%, 59%, 0.7)",
|
|
244
|
+
},
|
|
229
245
|
};
|