@codezee/sixtify-brahma 0.2.97 → 0.2.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/packages/shared-components/dist/Charts/BarChart.d.ts +6 -7
- package/packages/shared-components/dist/Charts/BarChart.d.ts.map +1 -1
- package/packages/shared-components/dist/Charts/BarChart.js +2 -2
- package/packages/shared-components/dist/Charts/LineChart.d.ts +6 -6
- package/packages/shared-components/dist/Charts/LineChart.d.ts.map +1 -1
- package/packages/shared-components/dist/Charts/LineChart.js +4 -2
- package/packages/shared-components/dist/Charts/PieChart.d.ts +5 -3
- package/packages/shared-components/dist/Charts/PieChart.d.ts.map +1 -1
- package/packages/shared-components/dist/Charts/PieChart.js +14 -4
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/FilePreview.d.ts +8 -1
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/FilePreview.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/FilePreview.js +58 -13
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.js +13 -21
- package/packages/shared-components/dist/FormFields/FileUpload/DownloadAction.d.ts +3 -0
- package/packages/shared-components/dist/FormFields/FileUpload/DownloadAction.d.ts.map +1 -0
- package/packages/shared-components/dist/FormFields/FileUpload/DownloadAction.js +14 -0
- package/packages/shared-components/dist/FormFields/FileUpload/index.d.ts +1 -0
- package/packages/shared-components/dist/FormFields/FileUpload/index.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/FileUpload/index.js +1 -0
- package/packages/shared-components/dist/FormFields/RadioGroupField/RadioGroupField.js +1 -1
- package/packages/shared-components/dist/Svgs/SvgDownload.d.ts +6 -1
- package/packages/shared-components/dist/Svgs/SvgDownload.d.ts.map +1 -1
- package/packages/shared-components/dist/Svgs/SvgDownload.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codezee/sixtify-brahma",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.99",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/hardikranpariya/sixtify-brahma.git"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@mui/icons-material": "^5.15.20",
|
|
58
58
|
"@mui/material": "^5.15.20",
|
|
59
59
|
"@mui/styled-engine-sc": "6.0.0-alpha.18",
|
|
60
|
-
"@mui/x-charts": "^
|
|
60
|
+
"@mui/x-charts": "^8.12.0",
|
|
61
61
|
"@mui/x-data-grid": "^7.6.2",
|
|
62
62
|
"@mui/x-date-pickers": "^7.8.0",
|
|
63
63
|
"@tanstack/react-query": "^5.48.0",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Theme } from "@mui/material/styles";
|
|
2
|
+
import type { BarSeriesType, ChartsTooltipProps } from "@mui/x-charts";
|
|
2
3
|
import type { BarChartProps as MuiBarChartProps } from "@mui/x-charts/BarChart";
|
|
3
|
-
|
|
4
|
-
import type { MakeOptional } from "@mui/x-charts/internals";
|
|
5
|
-
type ExtendedBarSeriesType = MakeOptional<BarSeriesType, "type"> & {
|
|
4
|
+
type ExtendedBarSeriesType = Partial<BarSeriesType> & {
|
|
6
5
|
color?: string;
|
|
7
6
|
colorMap?: {
|
|
8
7
|
[key: string]: string;
|
|
@@ -19,9 +18,9 @@ type BarChartProps = Omit<MuiBarChartProps, "series"> & {
|
|
|
19
18
|
height?: MuiBarChartProps["height"];
|
|
20
19
|
width?: MuiBarChartProps["width"];
|
|
21
20
|
skipAnimation?: boolean;
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
tooltip?: ChartsTooltipProps["trigger"];
|
|
22
|
+
theme?: Theme;
|
|
24
23
|
};
|
|
25
|
-
export declare const BarChart: ({ height, width, skipAnimation, loading, tooltip, series, layout,
|
|
24
|
+
export declare const BarChart: ({ height, width, skipAnimation, loading, tooltip, series, layout, ...rest }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
25
|
export {};
|
|
27
26
|
//# sourceMappingURL=BarChart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../src/Charts/BarChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../src/Charts/BarChart.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAGhF,KAAK,qBAAqB,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG;IACpD,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,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAkBF,eAAO,MAAM,QAAQ,GAAI,6EAStB,aAAa,4CAgBf,CAAC"}
|
|
@@ -20,10 +20,10 @@ const StyledBarChart = (0, styles_1.styled)(BarChart_1.BarChart)(({ theme }) =>
|
|
|
20
20
|
rx: 4,
|
|
21
21
|
},
|
|
22
22
|
}));
|
|
23
|
-
const BarChart = ({ height = 300, width, skipAnimation = false, loading = false, tooltip
|
|
23
|
+
const BarChart = ({ height = 300, width, skipAnimation = false, loading = false, tooltip = "item", series, layout = "vertical", ...rest }) => {
|
|
24
24
|
if (loading) {
|
|
25
25
|
return (0, jsx_runtime_1.jsx)(material_1.Skeleton, { height: height, width: width, variant: "rectangular" });
|
|
26
26
|
}
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)(StyledBarChart, { height: height, width: width, series: series,
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(StyledBarChart, { height: height, width: width, series: series, layout: layout, skipAnimation: skipAnimation, slotProps: { tooltip: { trigger: tooltip } }, ...rest }));
|
|
28
28
|
};
|
|
29
29
|
exports.BarChart = BarChart;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
import type { MakeOptional } from "@mui/x-charts/internals";
|
|
1
|
+
import { type Theme } from "@mui/material/styles";
|
|
2
|
+
import type { ChartsTooltipProps, LineSeriesType } from "@mui/x-charts";
|
|
4
3
|
import type { LineChartProps as MuiLineChartProps } from "@mui/x-charts/LineChart";
|
|
5
|
-
type ExtendedLineSeriesType =
|
|
4
|
+
type ExtendedLineSeriesType = Partial<LineSeriesType> & {
|
|
6
5
|
color?: string;
|
|
7
6
|
colorMap?: {
|
|
8
7
|
[key: string]: string;
|
|
@@ -19,12 +18,13 @@ type LineChartProps = Omit<MuiLineChartProps, "series"> & {
|
|
|
19
18
|
height?: MuiLineChartProps["height"];
|
|
20
19
|
width?: MuiLineChartProps["width"];
|
|
21
20
|
hideLegend?: boolean;
|
|
22
|
-
legendPosition?: AnchorPosition;
|
|
23
21
|
grid?: {
|
|
24
22
|
horizontal?: boolean;
|
|
25
23
|
vertical?: boolean;
|
|
26
24
|
};
|
|
25
|
+
tooltip?: ChartsTooltipProps["trigger"];
|
|
26
|
+
theme?: Theme;
|
|
27
27
|
};
|
|
28
|
-
export declare const LineChart: ({ height, width, skipAnimation, loading, tooltip, series, xAxisData, yAxisLabel, xAxisLabel,
|
|
28
|
+
export declare const LineChart: ({ height, width, skipAnimation, loading, tooltip, series, xAxisData, yAxisLabel, xAxisLabel, grid, ...rest }: LineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
30
30
|
//# sourceMappingURL=LineChart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../src/Charts/LineChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../src/Charts/LineChart.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGnF,KAAK,sBAAsB,GAAG,OAAO,CAAC,cAAc,CAAC,GAAG;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,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,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,GAAG;IACxD,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,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,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACpD,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAkBF,eAAO,MAAM,SAAS,GAAI,8GAYvB,cAAc,4CAuChB,CAAC"}
|
|
@@ -20,7 +20,7 @@ const StyledLineChart = (0, styles_1.styled)(LineChart_1.LineChart)(({ theme })
|
|
|
20
20
|
rx: 4,
|
|
21
21
|
},
|
|
22
22
|
}));
|
|
23
|
-
const LineChart = ({ height = 300, width, skipAnimation = false, loading = false, tooltip, series, xAxisData, yAxisLabel, xAxisLabel,
|
|
23
|
+
const LineChart = ({ height = 300, width, skipAnimation = false, loading = false, tooltip = "item", series, xAxisData, yAxisLabel, xAxisLabel, grid = { horizontal: false, vertical: false }, ...rest }) => {
|
|
24
24
|
if (loading) {
|
|
25
25
|
return (0, jsx_runtime_1.jsx)(material_1.Skeleton, { height: height, width: width, variant: "rectangular" });
|
|
26
26
|
}
|
|
@@ -41,6 +41,8 @@ const LineChart = ({ height = 300, width, skipAnimation = false, loading = false
|
|
|
41
41
|
},
|
|
42
42
|
]
|
|
43
43
|
: undefined;
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)(StyledLineChart, { height: height, width: width, series: series, xAxis: xAxisConfig, yAxis: yAxisConfig, skipAnimation: skipAnimation,
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(StyledLineChart, { height: height, width: width, series: series, xAxis: xAxisConfig, yAxis: yAxisConfig, skipAnimation: skipAnimation, grid: grid, slotProps: {
|
|
45
|
+
tooltip: { trigger: tooltip },
|
|
46
|
+
}, ...rest }));
|
|
45
47
|
};
|
|
46
48
|
exports.LineChart = LineChart;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
1
|
+
import { type Theme } from "@mui/material/styles";
|
|
2
|
+
import type { ChartsTooltipProps, PieSeriesType, PieValueType } from "@mui/x-charts";
|
|
3
3
|
import type { PieChartProps as MuiPieChartProps } from "@mui/x-charts/PieChart";
|
|
4
4
|
type PieChartProps = Omit<MuiPieChartProps, "series"> & {
|
|
5
|
-
series:
|
|
5
|
+
series: Partial<PieSeriesType<Partial<PieValueType>>>;
|
|
6
6
|
label?: string;
|
|
7
7
|
valueFormatter?: (item: {
|
|
8
8
|
value: number;
|
|
9
9
|
}) => string;
|
|
10
10
|
loading?: boolean;
|
|
11
|
+
tooltip?: ChartsTooltipProps["trigger"];
|
|
12
|
+
theme?: Theme;
|
|
11
13
|
};
|
|
12
14
|
export declare const PieChart: ({ height, skipAnimation, loading, valueFormatter, tooltip, label, series, ...rest }: PieChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PieChart.d.ts","sourceRoot":"","sources":["../../src/Charts/PieChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PieChart.d.ts","sourceRoot":"","sources":["../../src/Charts/PieChart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAKhF,KAAK,aAAa,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAAG;IACtD,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAMF,eAAO,MAAM,QAAQ,GAAI,qFAStB,aAAa,4CA6Df,CAAC"}
|
|
@@ -6,7 +6,7 @@ const styles_1 = require("@mui/material/styles");
|
|
|
6
6
|
const hooks_1 = require("@mui/x-charts/hooks");
|
|
7
7
|
const PieChart_1 = require("@mui/x-charts/PieChart");
|
|
8
8
|
const Skeleton_1 = require("./Skeleton");
|
|
9
|
-
const PieChart = ({ height = 235, skipAnimation = false, loading = false, valueFormatter = (item) => `${item.value}%`, tooltip, label, series, ...rest }) => {
|
|
9
|
+
const PieChart = ({ height = 235, skipAnimation = false, loading = false, valueFormatter = (item) => `${item.value}%`, tooltip = "item", label, series, ...rest }) => {
|
|
10
10
|
const StyledText = (0, styles_1.styled)("text")(({ theme }) => ({
|
|
11
11
|
fill: theme.palette.text.primary,
|
|
12
12
|
textAnchor: "middle",
|
|
@@ -25,15 +25,25 @@ const PieChart = ({ height = 235, skipAnimation = false, loading = false, valueF
|
|
|
25
25
|
return (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { height: height, radius: radius });
|
|
26
26
|
}
|
|
27
27
|
return ((0, jsx_runtime_1.jsx)(PieChart_1.PieChart, { height: height, sx: {
|
|
28
|
-
transform: "translate(
|
|
28
|
+
transform: "translate(0px, 0px)",
|
|
29
29
|
overflow: "visible",
|
|
30
|
+
"& .MuiPieArcLabel-root": {
|
|
31
|
+
display: "none",
|
|
32
|
+
},
|
|
30
33
|
}, series: [
|
|
31
34
|
{
|
|
35
|
+
type: "pie",
|
|
36
|
+
data: series.data,
|
|
32
37
|
arcLabel: (params) => params.label ?? "",
|
|
33
38
|
arcLabelMinAngle: 20,
|
|
34
39
|
valueFormatter,
|
|
35
|
-
|
|
40
|
+
innerRadius: series.innerRadius,
|
|
41
|
+
outerRadius: series.outerRadius,
|
|
42
|
+
},
|
|
43
|
+
], slotProps: {
|
|
44
|
+
tooltip: {
|
|
45
|
+
trigger: tooltip,
|
|
36
46
|
},
|
|
37
|
-
|
|
47
|
+
}, ...rest, skipAnimation: skipAnimation, children: (0, jsx_runtime_1.jsx)(PieCenterLabel, { children: label }) }));
|
|
38
48
|
};
|
|
39
49
|
exports.PieChart = PieChart;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
type FilePreviewProps = {
|
|
2
2
|
fileName: string;
|
|
3
3
|
resetTrigger?: number;
|
|
4
|
+
showActions?: boolean;
|
|
5
|
+
onZoomChange?: (zoomOffset: number) => void;
|
|
6
|
+
};
|
|
7
|
+
export type FilePreviewRef = {
|
|
8
|
+
resetZoom: () => void;
|
|
9
|
+
zoomIn: () => void;
|
|
10
|
+
zoomOut: () => void;
|
|
4
11
|
};
|
|
5
12
|
export declare const SUPPORTED_IMAGE_FORMATS: readonly [".png", ".jpg", ".jpeg"];
|
|
6
13
|
export declare const SUPPORTED_PDF_FORMATS: readonly [".pdf"];
|
|
7
14
|
export declare const SUPPORTED_DOC_FORMATS: readonly [".doc", ".docx"];
|
|
8
15
|
export declare const SUPPORTED_EXCEL_FORMATS: readonly [".xls", ".xlsx"];
|
|
9
16
|
export declare function isFileType(url: string, extensions: readonly string[]): boolean;
|
|
10
|
-
export declare const FilePreview: (
|
|
17
|
+
export declare const FilePreview: import("react").ForwardRefExoticComponent<FilePreviewProps & import("react").RefAttributes<FilePreviewRef>>;
|
|
11
18
|
export {};
|
|
12
19
|
//# sourceMappingURL=FilePreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../src/FormFields/FileUpload/Dialogs/FilePreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../src/FormFields/FileUpload/Dialogs/FilePreview.tsx"],"names":[],"mappings":"AA8BA,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,uBAAuB,oCAAqC,CAAC;AAE1E,eAAO,MAAM,qBAAqB,mBAAoB,CAAC;AAEvD,eAAO,MAAM,qBAAqB,4BAA6B,CAAC;AAEhE,eAAO,MAAM,uBAAuB,4BAA6B,CAAC;AASlE,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B,OAAO,CAET;AAED,eAAO,MAAM,WAAW,6GAqUvB,CAAC"}
|
|
@@ -9,10 +9,12 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
9
9
|
const ZoomInOutlined_1 = __importDefault(require("@mui/icons-material/ZoomInOutlined"));
|
|
10
10
|
const ZoomOutOutlined_1 = __importDefault(require("@mui/icons-material/ZoomOutOutlined"));
|
|
11
11
|
const material_1 = require("@mui/material");
|
|
12
|
+
const isFunction_1 = __importDefault(require("lodash/isFunction"));
|
|
12
13
|
const react_1 = require("react");
|
|
13
14
|
const Button_1 = require("../../../Button");
|
|
14
15
|
const Layouts_1 = require("../../../Layouts");
|
|
15
16
|
const PadBox_1 = require("../../../PadBox");
|
|
17
|
+
const utils_1 = require("../../../utils");
|
|
16
18
|
exports.SUPPORTED_IMAGE_FORMATS = [".png", ".jpg", ".jpeg"];
|
|
17
19
|
exports.SUPPORTED_PDF_FORMATS = [".pdf"];
|
|
18
20
|
exports.SUPPORTED_DOC_FORMATS = [".doc", ".docx"];
|
|
@@ -20,18 +22,19 @@ exports.SUPPORTED_EXCEL_FORMATS = [".xls", ".xlsx"];
|
|
|
20
22
|
const DEFAULT_ZOOM_CONFIG = {
|
|
21
23
|
min: 0.5,
|
|
22
24
|
max: 2,
|
|
23
|
-
step:
|
|
25
|
+
step: 2,
|
|
24
26
|
sensitivity: 0.1,
|
|
25
27
|
};
|
|
26
28
|
function isFileType(url, extensions) {
|
|
27
29
|
return extensions.some((ext) => url.toLowerCase().endsWith(ext));
|
|
28
30
|
}
|
|
29
|
-
|
|
31
|
+
exports.FilePreview = (0, react_1.forwardRef)(({ fileName, resetTrigger, showActions = true, onZoomChange, }, ref) => {
|
|
30
32
|
const [isDragging, setIsDragging] = (0, react_1.useState)(false);
|
|
31
33
|
const [position, setPosition] = (0, react_1.useState)({ x: 0, y: 0 });
|
|
32
34
|
const [startPos, setStartPos] = (0, react_1.useState)({ x: 0, y: 0 });
|
|
33
35
|
const [zoomLevel, setZoomLevel] = (0, react_1.useState)(1);
|
|
34
36
|
const imageContainerRef = (0, react_1.useRef)(null);
|
|
37
|
+
const { isDesktop } = (0, utils_1.useGetDeviceType)();
|
|
35
38
|
const theme = (0, material_1.useTheme)();
|
|
36
39
|
const { slate } = theme.palette.app.color;
|
|
37
40
|
const { sensitivity, min, max, step } = DEFAULT_ZOOM_CONFIG;
|
|
@@ -72,12 +75,12 @@ const FilePreview = ({ fileName, resetTrigger }) => {
|
|
|
72
75
|
setZoomLevel(newZoom);
|
|
73
76
|
}
|
|
74
77
|
};
|
|
75
|
-
const
|
|
78
|
+
const resetZoom = () => {
|
|
76
79
|
setZoomLevel(1);
|
|
77
80
|
setPosition({ x: 0, y: 0 });
|
|
78
81
|
};
|
|
79
82
|
(0, react_1.useMemo)(() => {
|
|
80
|
-
|
|
83
|
+
resetZoom();
|
|
81
84
|
}, [resetTrigger]);
|
|
82
85
|
const updateZoomLevel = (delta) => {
|
|
83
86
|
setZoomLevel((prev) => {
|
|
@@ -94,7 +97,7 @@ const FilePreview = ({ fileName, resetTrigger }) => {
|
|
|
94
97
|
const { offsetX, offsetY } = calculateOffset(e, container);
|
|
95
98
|
const newZoom = zoomLevel > 1 ? 1 : Math.min(zoomLevel + step, max);
|
|
96
99
|
if (zoomLevel > 1) {
|
|
97
|
-
|
|
100
|
+
resetZoom();
|
|
98
101
|
setZoomLevel(newZoom);
|
|
99
102
|
return;
|
|
100
103
|
}
|
|
@@ -107,11 +110,49 @@ const FilePreview = ({ fileName, resetTrigger }) => {
|
|
|
107
110
|
const endDrag = () => {
|
|
108
111
|
setIsDragging(false);
|
|
109
112
|
};
|
|
113
|
+
const zoomOut = () => {
|
|
114
|
+
updateZoomLevel(-0.3);
|
|
115
|
+
};
|
|
116
|
+
const zoomIn = () => {
|
|
117
|
+
updateZoomLevel(0.3);
|
|
118
|
+
};
|
|
119
|
+
(0, react_1.useMemo)(() => {
|
|
120
|
+
if ((0, isFunction_1.default)(onZoomChange)) {
|
|
121
|
+
onZoomChange(zoomLevel);
|
|
122
|
+
}
|
|
123
|
+
}, [zoomLevel]);
|
|
124
|
+
(0, react_1.useEffect)(() => {
|
|
125
|
+
const handleKeyDown = (e) => {
|
|
126
|
+
if (e.key === "Escape") {
|
|
127
|
+
resetZoom();
|
|
128
|
+
}
|
|
129
|
+
if (e.key === "ArrowUp") {
|
|
130
|
+
zoomIn();
|
|
131
|
+
}
|
|
132
|
+
if (e.key === "ArrowDown") {
|
|
133
|
+
zoomOut();
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
window.addEventListener("keyup", handleKeyDown);
|
|
137
|
+
return () => window.removeEventListener("keyup", handleKeyDown);
|
|
138
|
+
}, []);
|
|
139
|
+
(0, react_1.useImperativeHandle)(ref, () => {
|
|
140
|
+
return {
|
|
141
|
+
resetZoom,
|
|
142
|
+
zoomIn,
|
|
143
|
+
zoomOut,
|
|
144
|
+
};
|
|
145
|
+
}, [zoomLevel, resetZoom, zoomIn, zoomOut]);
|
|
146
|
+
const pointerEvent = isDesktop ? "auto" : "none";
|
|
110
147
|
if (isFileType(fileName, exports.SUPPORTED_PDF_FORMATS)) {
|
|
111
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
148
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { onClick: () => window.open(fileName, "_blank"), height: "100%", children: (0, jsx_runtime_1.jsx)("iframe", { src: `${fileName}#toolbar=0`, style: {
|
|
149
|
+
width: "100%",
|
|
150
|
+
height: "100%",
|
|
151
|
+
pointerEvents: pointerEvent,
|
|
152
|
+
} }) }));
|
|
112
153
|
}
|
|
113
154
|
if (isFileType(fileName, exports.SUPPORTED_IMAGE_FORMATS)) {
|
|
114
|
-
return ((0, jsx_runtime_1.jsxs)(Layouts_1.FilePreviewContainer, { children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { flexDirection: "row", alignItems: "center", justifyContent: "center", gap: "10px", sx: {
|
|
155
|
+
return ((0, jsx_runtime_1.jsxs)(Layouts_1.FilePreviewContainer, { height: "100%", children: [showActions && ((0, jsx_runtime_1.jsxs)(material_1.Stack, { flexDirection: "row", alignItems: "center", justifyContent: "center", gap: "10px", sx: {
|
|
115
156
|
position: "absolute",
|
|
116
157
|
top: 10,
|
|
117
158
|
right: 66,
|
|
@@ -120,15 +161,15 @@ const FilePreview = ({ fileName, resetTrigger }) => {
|
|
|
120
161
|
backgroundColor: slate[900],
|
|
121
162
|
minWidth: "42px",
|
|
122
163
|
height: "42px",
|
|
123
|
-
}, onClick: () =>
|
|
164
|
+
}, onClick: () => resetZoom(), children: "Reset" })), (0, jsx_runtime_1.jsx)(Button_1.Button, { sx: {
|
|
124
165
|
backgroundColor: slate[900],
|
|
125
166
|
minWidth: "42px",
|
|
126
167
|
height: "42px",
|
|
127
|
-
}, onClick:
|
|
168
|
+
}, onClick: zoomOut, children: (0, jsx_runtime_1.jsx)(ZoomOutOutlined_1.default, {}) }), (0, jsx_runtime_1.jsx)(Button_1.Button, { sx: {
|
|
128
169
|
backgroundColor: slate[900],
|
|
129
170
|
minWidth: "42px",
|
|
130
171
|
height: "42px",
|
|
131
|
-
}, onClick:
|
|
172
|
+
}, onClick: zoomIn, children: (0, jsx_runtime_1.jsx)(ZoomInOutlined_1.default, {}) })] })), (0, jsx_runtime_1.jsx)(material_1.Box, { ref: imageContainerRef, style: {
|
|
132
173
|
position: "relative",
|
|
133
174
|
width: "100%",
|
|
134
175
|
height: "100%",
|
|
@@ -147,8 +188,12 @@ const FilePreview = ({ fileName, resetTrigger }) => {
|
|
|
147
188
|
}
|
|
148
189
|
if (isFileType(fileName, exports.SUPPORTED_DOC_FORMATS) ||
|
|
149
190
|
isFileType(fileName, exports.SUPPORTED_EXCEL_FORMATS)) {
|
|
150
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
191
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { onClick: () => window.open(fileName, "_blank"), height: "100%", children: (0, jsx_runtime_1.jsx)("iframe", { src: `https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(fileName)}`, style: {
|
|
192
|
+
width: "100%",
|
|
193
|
+
height: "100%",
|
|
194
|
+
pointerEvents: pointerEvent,
|
|
195
|
+
} }) }));
|
|
151
196
|
}
|
|
152
197
|
return ((0, jsx_runtime_1.jsx)(Layouts_1.FilePreviewContainer, { children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "10px" }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", sx: { textAlign: "center" }, children: "File Preview Not Supported" }) }) }));
|
|
153
|
-
};
|
|
154
|
-
exports.FilePreview = FilePreview;
|
|
198
|
+
});
|
|
199
|
+
exports.FilePreview.displayName = "FilePreview";
|
package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewFilePreviewDialog.d.ts","sourceRoot":"","sources":["../../../../src/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewFilePreviewDialog.d.ts","sourceRoot":"","sources":["../../../../src/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.tsx"],"names":[],"mappings":"AAkBA,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,8BAInC,0BAA0B,4CAwE5B,CAAC"}
|
package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.js
CHANGED
|
@@ -2,33 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ViewFilePreviewDialog = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const icons_material_1 = require("@mui/icons-material");
|
|
5
6
|
const material_1 = require("@mui/material");
|
|
6
|
-
const
|
|
7
|
+
const react_1 = require("react");
|
|
7
8
|
const Dialog_1 = require("../../../Dialog");
|
|
8
9
|
const PadBox_1 = require("../../../PadBox");
|
|
9
10
|
const download_1 = require("../../../utils/download");
|
|
11
|
+
const DownloadAction_1 = require("../DownloadAction");
|
|
10
12
|
const FilePreview_1 = require("./FilePreview");
|
|
11
13
|
const ViewFilePreviewDialog = ({ open, onClose, fileName, }) => {
|
|
12
14
|
const theme = (0, material_1.useTheme)();
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, children: [(0, jsx_runtime_1.jsx)(Actions_1.DownloadIconAction
|
|
24
|
-
// eslint-disable-next-line sonarjs/no-misused-promises
|
|
25
|
-
, {
|
|
26
|
-
// eslint-disable-next-line sonarjs/no-misused-promises
|
|
27
|
-
onClick: () => (0, download_1.downloadFile)(fileName, fileName), sx: {
|
|
28
|
-
position: "absolute",
|
|
29
|
-
top: 5,
|
|
30
|
-
right: 10,
|
|
31
|
-
zIndex: 10,
|
|
32
|
-
} }), (0, jsx_runtime_1.jsx)(FilePreview_1.FilePreview, { fileName: fileName })] }) }) }) }));
|
|
15
|
+
const [zoomLevel, setZoomLevel] = (0, react_1.useState)(0);
|
|
16
|
+
const filePreviewRef = (0, react_1.useRef)(null);
|
|
17
|
+
const { butterflyBlue, slate } = theme.palette.app.color;
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { maxWidth: "lg", onClose: onClose, open: open, title: "View File Preview", actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, { height: 30, minHeight: 30, maxHeight: 30, direction: "row", children: [(0, FilePreview_1.isFileType)(fileName, FilePreview_1.SUPPORTED_IMAGE_FORMATS) && ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignContent: "center", justifyContent: "end", children: [zoomLevel !== 1 && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => filePreviewRef.current?.resetZoom(), children: (0, jsx_runtime_1.jsx)(icons_material_1.RotateLeft, {}) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => filePreviewRef.current?.zoomIn(), children: (0, jsx_runtime_1.jsx)(icons_material_1.ZoomInOutlined, {}) }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => filePreviewRef.current?.zoomOut(), children: (0, jsx_runtime_1.jsx)(icons_material_1.ZoomOutOutlined, {}) })] })), (0, jsx_runtime_1.jsx)(DownloadAction_1.DownloadAction, { onClick: () => {
|
|
19
|
+
(0, download_1.downloadFile)(fileName, fileName);
|
|
20
|
+
} })] }), children: (0, jsx_runtime_1.jsx)(material_1.Stack, { bgcolor: butterflyBlue[700], position: "relative", borderRadius: "5px", children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: { sm: "20px 50px 20px 50px", xs: "0" } }, children: (0, jsx_runtime_1.jsx)(material_1.Box, { bgcolor: slate[600], borderRadius: 1, overflow: "hidden", height: "calc(100vh - 335px)", sx: {
|
|
21
|
+
userSelect: "none",
|
|
22
|
+
}, children: (0, jsx_runtime_1.jsx)(FilePreview_1.FilePreview, { ref: filePreviewRef, fileName: fileName, resetTrigger: 1, showActions: false, onZoomChange: (zoomOffset) => {
|
|
23
|
+
setZoomLevel(zoomOffset);
|
|
24
|
+
} }) }) }) }) }));
|
|
33
25
|
};
|
|
34
26
|
exports.ViewFilePreviewDialog = ViewFilePreviewDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownloadAction.d.ts","sourceRoot":"","sources":["../../../src/FormFields/FileUpload/DownloadAction.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAIjE,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,4CAcpD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DownloadAction = 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 DownloadAction = (props) => {
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { sx: {
|
|
10
|
+
height: "30px",
|
|
11
|
+
width: "50px",
|
|
12
|
+
}, ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Download", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgDownload, { fontColor: "white", fill: "none" }) }) }));
|
|
13
|
+
};
|
|
14
|
+
exports.DownloadAction = DownloadAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FormFields/FileUpload/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FormFields/FileUpload/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Dialogs"), exports);
|
|
18
|
+
__exportStar(require("./DownloadAction"), exports);
|
|
18
19
|
__exportStar(require("./FileNames"), exports);
|
|
19
20
|
__exportStar(require("./FileUpload"), exports);
|
|
@@ -27,6 +27,6 @@ function RadioGroupField({ name, rules, label, control, options, defaultValue, s
|
|
|
27
27
|
}, children: (0, jsx_runtime_1.jsx)(material_1.Stack, { gap: direction === "column" ? "5px" : "10px", direction: direction, ...containerProps, children: options?.map(({ label, values, disabled }, index) => {
|
|
28
28
|
return (
|
|
29
29
|
// eslint-disable-next-line sonarjs/no-array-index-key
|
|
30
|
-
(0, jsx_runtime_1.jsx)(material_1.Box, {
|
|
30
|
+
(0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: values, control: (0, jsx_runtime_1.jsx)(Radio_1.default, { ...restField, ...restRadioButtonProps, color: color, size: size }), disabled: disabled, label: label, sx: sx }) }, index));
|
|
31
31
|
}) }) })] }));
|
|
32
32
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import type { SvgIconProps } from "@mui/material";
|
|
2
|
-
|
|
2
|
+
type SvgDownloadProps = SvgIconProps & {
|
|
3
|
+
fill?: string;
|
|
4
|
+
fontColor?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const SvgDownload: ({ fill, fontColor, ...props }: SvgDownloadProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
3
8
|
//# sourceMappingURL=SvgDownload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SvgDownload.d.ts","sourceRoot":"","sources":["../../src/Svgs/SvgDownload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,WAAW,GAAI,
|
|
1
|
+
{"version":3,"file":"SvgDownload.d.ts","sourceRoot":"","sources":["../../src/Svgs/SvgDownload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,KAAK,gBAAgB,GAAG,YAAY,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7E,eAAO,MAAM,WAAW,GAAI,+BAIzB,gBAAgB,4CAiBlB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SvgDownload = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const SvgDownload = (props) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 42, height: 42, fill: "none",
|
|
5
|
+
const SvgDownload = ({ fill = "#4C5D70", fontColor = "white", ...props }) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 42, height: 42, fill: "none", style: { color: "inherit" }, ...props, children: [(0, jsx_runtime_1.jsx)("rect", { width: "42", height: "42", rx: "5", fill: fill }), (0, jsx_runtime_1.jsx)("path", { d: "M26.75 21.5C26.5511 21.5 26.3603 21.579 26.2197 21.7197C26.079 21.8603 26 22.0511 26 22.25V25.25C26 25.4489 25.921 25.6397 25.7803 25.7803C25.6397 25.921 25.4489 26 25.25 26H14.75C14.5511 26 14.3603 25.921 14.2197 25.7803C14.079 25.6397 14 25.4489 14 25.25V22.25C14 22.0511 13.921 21.8603 13.7803 21.7197C13.6397 21.579 13.4489 21.5 13.25 21.5C13.0511 21.5 12.8603 21.579 12.7197 21.7197C12.579 21.8603 12.5 22.0511 12.5 22.25V25.25C12.5 25.8467 12.7371 26.419 13.159 26.841C13.581 27.2629 14.1533 27.5 14.75 27.5H25.25C25.8467 27.5 26.419 27.2629 26.841 26.841C27.2629 26.419 27.5 25.8467 27.5 25.25V22.25C27.5 22.0511 27.421 21.8603 27.2803 21.7197C27.1397 21.579 26.9489 21.5 26.75 21.5ZM19.4675 22.7825C19.5388 22.8508 19.6229 22.9043 19.715 22.94C19.8048 22.9797 19.9018 23.0002 20 23.0002C20.0982 23.0002 20.1952 22.9797 20.285 22.94C20.3771 22.9043 20.4612 22.8508 20.5325 22.7825L23.5325 19.7825C23.6737 19.6413 23.7531 19.4497 23.7531 19.25C23.7531 19.0503 23.6737 18.8587 23.5325 18.7175C23.3913 18.5763 23.1997 18.4969 23 18.4969C22.8003 18.4969 22.6087 18.5763 22.4675 18.7175L20.75 20.4425V13.25C20.75 13.0511 20.671 12.8603 20.5303 12.7197C20.3897 12.579 20.1989 12.5 20 12.5C19.8011 12.5 19.6103 12.579 19.4697 12.7197C19.329 12.8603 19.25 13.0511 19.25 13.25V20.4425L17.5325 18.7175C17.4626 18.6476 17.3796 18.5921 17.2882 18.5543C17.1968 18.5164 17.0989 18.4969 17 18.4969C16.9011 18.4969 16.8032 18.5164 16.7118 18.5543C16.6204 18.5921 16.5374 18.6476 16.4675 18.7175C16.3976 18.7874 16.3421 18.8704 16.3043 18.9618C16.2664 19.0532 16.2469 19.1511 16.2469 19.25C16.2469 19.3489 16.2664 19.4468 16.3043 19.5382C16.3421 19.6296 16.3976 19.7126 16.4675 19.7825L19.4675 22.7825Z", fill: fontColor })] }));
|
|
7
7
|
};
|
|
8
8
|
exports.SvgDownload = SvgDownload;
|