pixel-react-excel-sheet 1.0.29 → 1.0.31
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/lib/components/Charts/BarChart/BarChart.d.ts +1 -0
- package/lib/components/MenuOption/types.d.ts +1 -1
- package/lib/components/PopUpModal/types.d.ts +2 -1
- package/lib/components/StatusCard/types.d.ts +7 -1
- package/lib/index.d.ts +11 -3
- package/lib/index.esm.js +87 -74
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +87 -74
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Charts/BarChart/BarChart.stories.tsx +3 -0
- package/src/components/Charts/BarChart/BarChart.tsx +7 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.scss +4 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +1 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +10 -27
- package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +1 -5
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +4 -3
- package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +35 -27
- package/src/components/MenuOption/MenuOption.stories.tsx +2 -3
- package/src/components/MenuOption/MenuOption.tsx +9 -2
- package/src/components/MenuOption/types.ts +1 -1
- package/src/components/PopUpModal/types.ts +4 -3
- package/src/components/Search/Search.stories.tsx +1 -2
- package/src/components/Search/Search.tsx +1 -3
- package/src/components/StatusCard/StatusCard.scss +47 -4
- package/src/components/StatusCard/StatusCard.stories.tsx +1 -0
- package/src/components/StatusCard/StatusCard.tsx +28 -5
- package/src/components/StatusCard/types.ts +15 -10
- package/src/components/Toastify/Toastify.tsx +1 -0
|
@@ -5,7 +5,8 @@ export interface PopUpModalProps {
|
|
|
5
5
|
titleMessage: string;
|
|
6
6
|
subTitleMessage?: string;
|
|
7
7
|
iconName: string;
|
|
8
|
-
modalMessage: string;
|
|
8
|
+
modalMessage: string | React.ReactNode;
|
|
9
|
+
secondaryMessage?: string | React.ReactNode;
|
|
9
10
|
firstButtonLabel?: string;
|
|
10
11
|
secondButtonLabel: string;
|
|
11
12
|
buttonVariant: any;
|
|
@@ -2,9 +2,15 @@ export interface CardProps {
|
|
|
2
2
|
/** The icon to display in the card */
|
|
3
3
|
icon: string;
|
|
4
4
|
/** The status of the card (Passed, Failed, Warning, Skipped, Flaky) */
|
|
5
|
-
status: 'Passed' | 'Failed' | 'Warning' | 'Skipped' | 'Flaky';
|
|
5
|
+
status: 'Passed' | 'Failed' | 'Warning' | 'Skipped' | 'Flaky' | 'PASSED' | 'FAIL' | 'WARNING' | 'SKIPPED' | 'FLAKY';
|
|
6
6
|
/** The number displayed in the card */
|
|
7
7
|
count: number | string;
|
|
8
8
|
/** The description text displayed at the bottom of the card */
|
|
9
9
|
text: string;
|
|
10
|
+
/** Inline Styling */
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
/** toggle update */
|
|
13
|
+
handleToggleStatus?: (_status: boolean) => void;
|
|
14
|
+
/** call back */
|
|
15
|
+
onSelectedStatus?: (_status: string) => void;
|
|
10
16
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -949,7 +949,7 @@ interface MenuOptionProps {
|
|
|
949
949
|
* @optional
|
|
950
950
|
*/
|
|
951
951
|
optionCardVariant?: 'primary';
|
|
952
|
-
targetRef?: React.RefObject<HTMLElement>;
|
|
952
|
+
targetRef?: string | React.RefObject<HTMLElement>;
|
|
953
953
|
}
|
|
954
954
|
|
|
955
955
|
declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, zIndex, dropdownPlacement, optionCardVariant, targetRef, }: MenuOptionProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -2471,11 +2471,17 @@ interface CardProps {
|
|
|
2471
2471
|
/** The icon to display in the card */
|
|
2472
2472
|
icon: string;
|
|
2473
2473
|
/** The status of the card (Passed, Failed, Warning, Skipped, Flaky) */
|
|
2474
|
-
status: 'Passed' | 'Failed' | 'Warning' | 'Skipped' | 'Flaky';
|
|
2474
|
+
status: 'Passed' | 'Failed' | 'Warning' | 'Skipped' | 'Flaky' | 'PASSED' | 'FAIL' | 'WARNING' | 'SKIPPED' | 'FLAKY';
|
|
2475
2475
|
/** The number displayed in the card */
|
|
2476
2476
|
count: number | string;
|
|
2477
2477
|
/** The description text displayed at the bottom of the card */
|
|
2478
2478
|
text: string;
|
|
2479
|
+
/** Inline Styling */
|
|
2480
|
+
style?: React.CSSProperties;
|
|
2481
|
+
/** toggle update */
|
|
2482
|
+
handleToggleStatus?: (_status: boolean) => void;
|
|
2483
|
+
/** call back */
|
|
2484
|
+
onSelectedStatus?: (_status: string) => void;
|
|
2479
2485
|
}
|
|
2480
2486
|
|
|
2481
2487
|
declare const StatusCard: React__default.FC<CardProps>;
|
|
@@ -2822,6 +2828,7 @@ type BarChartProps = {
|
|
|
2822
2828
|
backgroundColor?: string;
|
|
2823
2829
|
legendPosition?: 'top' | 'bottom';
|
|
2824
2830
|
legendGap?: number;
|
|
2831
|
+
onSelectedBar?: (_label: string) => void;
|
|
2825
2832
|
};
|
|
2826
2833
|
declare const BarChart: React__default.FC<BarChartProps>;
|
|
2827
2834
|
|
|
@@ -2921,7 +2928,8 @@ interface PopUpModalProps {
|
|
|
2921
2928
|
titleMessage: string;
|
|
2922
2929
|
subTitleMessage?: string;
|
|
2923
2930
|
iconName: string;
|
|
2924
|
-
modalMessage: string;
|
|
2931
|
+
modalMessage: string | React.ReactNode;
|
|
2932
|
+
secondaryMessage?: string | React.ReactNode;
|
|
2925
2933
|
firstButtonLabel?: string;
|
|
2926
2934
|
secondButtonLabel: string;
|
|
2927
2935
|
buttonVariant: any;
|
package/lib/index.esm.js
CHANGED
|
@@ -3266,8 +3266,14 @@ const MenuOption = ({
|
|
|
3266
3266
|
closeDropDown();
|
|
3267
3267
|
};
|
|
3268
3268
|
const calculateDims = () => {
|
|
3269
|
-
|
|
3270
|
-
|
|
3269
|
+
let targetElement = null;
|
|
3270
|
+
if (typeof targetRef === 'string') {
|
|
3271
|
+
targetElement = document.getElementById(targetRef);
|
|
3272
|
+
} else if (targetRef && targetRef.current) {
|
|
3273
|
+
targetElement = targetRef.current;
|
|
3274
|
+
}
|
|
3275
|
+
if (targetElement) {
|
|
3276
|
+
const rect = targetElement.getBoundingClientRect();
|
|
3271
3277
|
setMenuPosition({
|
|
3272
3278
|
top: rect.top + window.scrollY,
|
|
3273
3279
|
left: rect.left + window.scrollX,
|
|
@@ -9777,9 +9783,7 @@ const Search = ({
|
|
|
9777
9783
|
};
|
|
9778
9784
|
const handleChange = data => {
|
|
9779
9785
|
setSearchValue(data);
|
|
9780
|
-
|
|
9781
|
-
onSearch('');
|
|
9782
|
-
}
|
|
9786
|
+
onSearch(data);
|
|
9783
9787
|
};
|
|
9784
9788
|
return jsxs("div", {
|
|
9785
9789
|
className: classNames('ff-search-container', {
|
|
@@ -23880,7 +23884,7 @@ const Paper = ({
|
|
|
23880
23884
|
});
|
|
23881
23885
|
};
|
|
23882
23886
|
|
|
23883
|
-
var css_248z$B = ".fontXs, .ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header, .ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n font-family: \"Poppins\";\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\";\n font-size: 12px;\n}\n\n.fontMd, .ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(2) {\n font-family: \"Poppins\";\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\";\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\";\n font-size: 18px;\n}\n\n.font2Xl, .ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(1) {\n font-family: \"Poppins\";\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\";\n font-size: 8px;\n}\n\n.font-size-20 {\n font-family: \"Poppins\";\n font-size: 20px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\";\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\";\n font-size: 80px;\n}\n\n.ff-dashboard-donut-chart-section {\n display: flex;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section.legend-position-bottom {\n flex-direction: column;\n}\n.ff-dashboard-donut-chart-section.legend-position-left {\n flex-direction: row-reverse;\n}\n.ff-dashboard-donut-chart-section-table-legend {\n flex-direction: row;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container {\n text-align: center;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg {\n display: block;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(1) {\n font-weight: 600;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(2) {\n font-weight: 500;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container .ff-donut-chart-tooltip {\n position: absolute;\n padding: 5px;\n border-radius: 4px;\n pointer-events: none;\n background-color: var(--tooltip-bg-color);\n color: var(--tooltip-text-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container {\n display: grid;\n grid-auto-rows: 1fr;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend {\n grid-template-columns: repeat(3, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend.ff-side-legend {\n grid-template-columns: repeat(2, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend .ff-legend-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend {\n grid-template-columns: repeat(2, 130px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item {\n display: flex;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item .ff-legend-capsule {\n background-color: var(--status-success-text-color);\n color: var(--tooltip-text-color);\n border-radius: 15px;\n min-width: 25px;\n height: 18px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item .ff-legend-key {\n margin-left: 8px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend {\n grid-template-columns: repeat(3, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend.ff-side-legend {\n grid-template-columns: repeat(2, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend .ff-legend-item {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table-wrapper {\n overflow: hidden;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n margin-left: 1rem;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table {\n width: 100%;\n min-width: 300px;\n border-collapse: collapse;\n text-align: left;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header {\n font-weight: bold;\n background-color: var(--tabs-bg-color);\n color: var(--input-hover-border-color);\n padding: 0.5rem;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header:last-child {\n text-align: right;\n padding-right: 10px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header:nth-last-child(2) {\n width: 58px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-capsule {\n background-color: var(--status-success-text-color);\n color: var(--tooltip-text-color);\n border-radius: 1rem;\n min-width: 22px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n padding: 0.5rem;\n color: var(--input-hover-border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name:last-child,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage:last-child,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count:last-child {\n padding-right: 22px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name {\n display: flex;\n align-items: baseline;\n gap: 5px;\n color: var(--input-hover-border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n text-align: right;\n}";
|
|
23887
|
+
var css_248z$B = ".fontXs, .ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header, .ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n font-family: \"Poppins\";\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\";\n font-size: 12px;\n}\n\n.fontMd, .ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(2) {\n font-family: \"Poppins\";\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\";\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\";\n font-size: 18px;\n}\n\n.font2Xl, .ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(1) {\n font-family: \"Poppins\";\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\";\n font-size: 8px;\n}\n\n.font-size-20 {\n font-family: \"Poppins\";\n font-size: 20px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\";\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\";\n font-size: 80px;\n}\n\n.ff-dashboard-donut-chart-section {\n display: flex;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section.legend-position-bottom {\n flex-direction: column;\n}\n.ff-dashboard-donut-chart-section.legend-position-left {\n flex-direction: row-reverse;\n}\n.ff-dashboard-donut-chart-section-table-legend {\n flex-direction: row;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container {\n text-align: center;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg {\n display: block;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(1) {\n font-weight: 600;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(2) {\n font-weight: 500;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container .ff-donut-chart-tooltip {\n position: absolute;\n padding: 5px;\n border-radius: 4px;\n pointer-events: none;\n background-color: var(--tooltip-bg-color);\n color: var(--tooltip-text-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container {\n display: grid;\n grid-auto-rows: 1fr;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend {\n grid-template-columns: repeat(3, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend.ff-side-legend {\n grid-template-columns: repeat(2, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-number-legend .ff-legend-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend {\n grid-template-columns: repeat(2, 130px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item {\n display: flex;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item .ff-legend-capsule {\n background-color: var(--status-success-text-color);\n color: var(--tooltip-text-color);\n border-radius: 15px;\n min-width: 25px;\n height: 18px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-pill-legend .ff-legend-item .ff-legend-key {\n margin-left: 8px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend {\n grid-template-columns: repeat(3, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend.ff-side-legend {\n grid-template-columns: repeat(2, 100px);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.ff-memory-legend .ff-legend-item {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table-wrapper {\n overflow: hidden;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n margin-left: 1rem;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table {\n width: 100%;\n min-width: 300px;\n border-collapse: collapse;\n text-align: left;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-table-thead {\n position: static;\n top: auto;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header {\n font-weight: bold;\n background-color: var(--tabs-bg-color);\n color: var(--input-hover-border-color);\n padding: 0.5rem;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header:last-child {\n text-align: right;\n padding-right: 10px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header:nth-last-child(2) {\n width: 58px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-capsule {\n background-color: var(--status-success-text-color);\n color: var(--tooltip-text-color);\n border-radius: 1rem;\n min-width: 22px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n padding: 0.5rem;\n color: var(--input-hover-border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name:last-child,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage:last-child,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count:last-child {\n padding-right: 22px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name {\n display: flex;\n align-items: baseline;\n gap: 5px;\n color: var(--input-hover-border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n text-align: right;\n}";
|
|
23884
23888
|
styleInject(css_248z$B);
|
|
23885
23889
|
|
|
23886
23890
|
const calculateArc$2 = (x, y, radius, startAngle, endAngle) => {
|
|
@@ -24124,6 +24128,7 @@ const DashboardDonutChart = ({
|
|
|
24124
24128
|
children: jsxs("table", {
|
|
24125
24129
|
className: "ff-legend-table",
|
|
24126
24130
|
children: [jsx("thead", {
|
|
24131
|
+
className: 'ff-legend-table-thead',
|
|
24127
24132
|
children: jsxs("tr", {
|
|
24128
24133
|
children: [jsx("th", {
|
|
24129
24134
|
className: "ff-table-header",
|
|
@@ -27323,7 +27328,8 @@ const Toastify = () => {
|
|
|
27323
27328
|
isOpen: toastProps.isOpen,
|
|
27324
27329
|
variant: toastProps.variant,
|
|
27325
27330
|
toastTitle: toastProps.toastTitle,
|
|
27326
|
-
toastMessage: toastProps.toastMessage
|
|
27331
|
+
toastMessage: toastProps.toastMessage,
|
|
27332
|
+
zIndex: 1000000000
|
|
27327
27333
|
});
|
|
27328
27334
|
};
|
|
27329
27335
|
// Utility to trigger toast messages outside of the Toastify component
|
|
@@ -31568,16 +31574,23 @@ const ColumnIndicator = ({
|
|
|
31568
31574
|
});
|
|
31569
31575
|
}, [onSelect, column, setContextMenu]);
|
|
31570
31576
|
return jsxs("th", {
|
|
31571
|
-
style: {
|
|
31572
|
-
minWidth: `${columnWidth}px`
|
|
31573
|
-
},
|
|
31574
31577
|
className: classNames('ff-spreadsheet-header', {
|
|
31575
31578
|
'ff-spreadsheet-header--selected': selected
|
|
31576
31579
|
}),
|
|
31580
|
+
style: {
|
|
31581
|
+
minWidth: `${columnWidth}px`
|
|
31582
|
+
},
|
|
31577
31583
|
onClick: handleClick,
|
|
31578
31584
|
onContextMenu: contextClick,
|
|
31579
31585
|
tabIndex: 0,
|
|
31580
|
-
children: [
|
|
31586
|
+
children: [jsx("div", {
|
|
31587
|
+
onClick: handleClick,
|
|
31588
|
+
onContextMenu: contextClick,
|
|
31589
|
+
tabIndex: 0
|
|
31590
|
+
}), jsx(Typography, {
|
|
31591
|
+
fontWeight: "medium",
|
|
31592
|
+
children: label !== undefined ? label : columnIndexToLabel(column)
|
|
31593
|
+
}), jsx("div", {
|
|
31581
31594
|
onMouseDown: onMouseDown,
|
|
31582
31595
|
onClick: () => activate$1({
|
|
31583
31596
|
row: -1,
|
|
@@ -31593,32 +31606,7 @@ const ColumnIndicator = ({
|
|
|
31593
31606
|
cursor: 'ew-resize'
|
|
31594
31607
|
}
|
|
31595
31608
|
})]
|
|
31596
|
-
})
|
|
31597
|
-
// <th
|
|
31598
|
-
// style={{ minWidth: `${columnWidth}px`}} //Dynamic value, Inline Styling required
|
|
31599
|
-
// className={classNames('ff-spreadsheet-header', {
|
|
31600
|
-
// 'ff-spreadsheet-header--selected': selected,
|
|
31601
|
-
// })}
|
|
31602
|
-
// onClick={handleClick}
|
|
31603
|
-
// onContextMenu={contextClick}
|
|
31604
|
-
// tabIndex={0}
|
|
31605
|
-
// >
|
|
31606
|
-
// {label !== undefined ? label : columnIndexToLabel(column)}
|
|
31607
|
-
// <div
|
|
31608
|
-
// onMouseDown={onMouseDown}
|
|
31609
|
-
// onClick={() => activate({ row: -1, column })}
|
|
31610
|
-
// style={{
|
|
31611
|
-
// zIndex: 'inherit',
|
|
31612
|
-
// width: '2px',
|
|
31613
|
-
// position: 'absolute',
|
|
31614
|
-
// right: 0,
|
|
31615
|
-
// top: 0,
|
|
31616
|
-
// height: '100%',
|
|
31617
|
-
// cursor: 'ew-resize',
|
|
31618
|
-
// }}
|
|
31619
|
-
// />
|
|
31620
|
-
// </th>
|
|
31621
|
-
;
|
|
31609
|
+
});
|
|
31622
31610
|
};
|
|
31623
31611
|
const enhance$2 = ColumnIndicatorComponent => {
|
|
31624
31612
|
return function ColumnIndicatorWrapper(props) {
|
|
@@ -31706,14 +31694,13 @@ const RowIndicator = ({
|
|
|
31706
31694
|
});
|
|
31707
31695
|
}, [onSelect, row, setContextMenu]);
|
|
31708
31696
|
return jsxs("th", {
|
|
31709
|
-
style: {
|
|
31710
|
-
height: `${rowHeight}px`,
|
|
31711
|
-
minWidth: '60px',
|
|
31712
|
-
position: 'relative'
|
|
31713
|
-
},
|
|
31714
31697
|
className: classNames('ff-spreadsheet-header', {
|
|
31715
31698
|
'ff-spreadsheet-header--selected': selected
|
|
31716
31699
|
}),
|
|
31700
|
+
style: {
|
|
31701
|
+
height: `${rowHeight}px`,
|
|
31702
|
+
minWidth: '60px'
|
|
31703
|
+
},
|
|
31717
31704
|
onClick: handleClick,
|
|
31718
31705
|
onContextMenu: contextClick,
|
|
31719
31706
|
tabIndex: 0,
|
|
@@ -32120,7 +32107,7 @@ const Copied = () => {
|
|
|
32120
32107
|
});
|
|
32121
32108
|
};
|
|
32122
32109
|
|
|
32123
|
-
var css_248z$n = ".fontXs {\n font-family: \"Poppins\";\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\";\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\";\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\";\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\";\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\";\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\";\n font-size: 8px;\n}\n\n.font-size-20 {\n font-family: \"Poppins\";\n font-size: 20px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\";\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\";\n font-size: 80px;\n}\n\n.ff-excel {\n display: flex;\n flex-direction: column;\n}\n.ff-excel .ff-excel-toolbar-container {\n position: relative;\n top: 0;\n background-color: var(--excel-toolbar-bg);\n padding: 4px 8px;\n margin-bottom: 20px;\n}\n.ff-excel .ff-spreadsheet {\n --background-color: var(--drawer-footer-bg);\n --text-color: var(--text-color);\n --readonly-text-color: var(--toggle-strip-active);\n --outline-color: var(--toggle-strip-active);\n --outline-background-color: var(--overlay-bg);\n --border-color: var(--excel-sheet-border);\n --header-background-color: var(--excel-header-bg);\n --elevation: var(--brand-color);\n position: relative;\n overflow: scroll;\n background: var(--background-color);\n color: var(--text-color);\n scrollbar-width: none;\n display: inline-block;\n}\n.ff-excel .ff-spreadsheet-active-cell {\n position: absolute;\n border: 2px solid var(--outline-color);\n box-sizing: border-box;\n}\n.ff-excel .ff-spreadsheet-active-cell--edit {\n background: var(--background-color);\n box-shadow: var(--elevation);\n}\n.ff-excel .ff-spreadsheet-table {\n overflow: scroll;\n top: 0;\n left: 0;\n margin: 0;\n position: relative;\n border-collapse: collapse;\n table-layout: fixed;\n}\n.ff-excel .ff-spreadsheet-table::-webkit-scrollbar {\n height: 0px;\n}\n.ff-excel .ff-spreadsheet-cell {\n outline: none;\n position: relative;\n z-index: 0;\n}\n.ff-excel .ff-spreadsheet-active-cell .select_dot {\n background-color: var(--elevation);\n height: 10px;\n width: 10px;\n border-radius: 50%;\n position: absolute;\n bottom: -5px;\n right: -5px;\n cursor: crosshair;\n z-index: 1000;\n}\n.ff-excel .ff-spreadsheet-cell--readonly {\n color: var(--readonly-text-color);\n}\n.ff-excel .ff-spreadsheet-cell,\n.ff-excel .ff-spreadsheet-header {\n border: 0.1px solid var(--border-color);\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-align: left;\n box-sizing: border-box;\n user-select: none;\n}\n.ff-excel .ff-spreadsheet-header {\n border: 0.1px solid var(--border-color);\n background-color: var(--header-background-color);\n color: var(--readonly-text-color);\n text-align: center;\n z-index: 1000;\n position: sticky;\n}\n.ff-excel .ff-spreadsheet-corner-header {\n position: fixed;\n z-index:
|
|
32110
|
+
var css_248z$n = ".fontXs {\n font-family: \"Poppins\";\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\";\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\";\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\";\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\";\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\";\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\";\n font-size: 8px;\n}\n\n.font-size-20 {\n font-family: \"Poppins\";\n font-size: 20px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\";\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\";\n font-size: 80px;\n}\n\n.ff-excel {\n display: flex;\n flex-direction: column;\n}\n.ff-excel .ff-excel-toolbar-container {\n position: relative;\n top: 0;\n background-color: var(--excel-toolbar-bg);\n padding: 4px 8px;\n margin-bottom: 20px;\n}\n.ff-excel .ff-spreadsheet {\n --background-color: var(--drawer-footer-bg);\n --text-color: var(--text-color);\n --readonly-text-color: var(--toggle-strip-active);\n --outline-color: var(--toggle-strip-active);\n --outline-background-color: var(--overlay-bg);\n --border-color: var(--excel-sheet-border);\n --header-background-color: var(--excel-header-bg);\n --elevation: var(--brand-color);\n position: relative;\n overflow: scroll;\n background: var(--background-color);\n color: var(--text-color);\n scrollbar-width: none;\n display: inline-block;\n}\n.ff-excel .ff-spreadsheet-active-cell {\n position: absolute;\n border: 2px solid var(--outline-color);\n box-sizing: border-box;\n}\n.ff-excel .ff-spreadsheet-active-cell--edit {\n background: var(--background-color);\n box-shadow: var(--elevation);\n}\n.ff-excel .ff-spreadsheet-table {\n overflow: scroll;\n top: 0;\n left: 0;\n margin: 0;\n position: relative;\n border-collapse: collapse;\n table-layout: fixed;\n}\n.ff-excel .ff-spreadsheet-table::-webkit-scrollbar {\n height: 0px;\n}\n.ff-excel .ff-spreadsheet-cell {\n outline: none;\n position: relative;\n z-index: 0;\n}\n.ff-excel .ff-spreadsheet-active-cell .select_dot {\n background-color: var(--elevation);\n height: 10px;\n width: 10px;\n border-radius: 50%;\n position: absolute;\n bottom: -5px;\n right: -5px;\n cursor: crosshair;\n z-index: 1000;\n}\n.ff-excel .ff-spreadsheet-cell--readonly {\n color: var(--readonly-text-color);\n}\n.ff-excel .ff-spreadsheet-cell,\n.ff-excel .ff-spreadsheet-header {\n border: 0.1px solid var(--border-color);\n overflow: hidden;\n word-break: keep-all;\n white-space: nowrap;\n text-align: left;\n box-sizing: border-box;\n user-select: none;\n}\n.ff-excel .ff-spreadsheet-header {\n border: 0.1px solid var(--border-color);\n background-color: var(--header-background-color);\n color: var(--readonly-text-color);\n text-align: center;\n z-index: 1000;\n position: sticky;\n top: 0;\n left: 0;\n}\n.ff-excel .ff-spreadsheet-corner-header {\n position: fixed;\n z-index: 3000;\n}\n.ff-excel .ff-spreadsheet-row-header {\n height: 34px;\n}\n.ff-excel .corner-header {\n border: 1px solid var(--border-color);\n background-color: var(--header-background-color);\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1100;\n top: -1px;\n width: 60px;\n height: 34px;\n left: -1px;\n}\n.ff-excel .ff-spreadsheet-header--selected {\n background: var(--brand-color);\n color: var(--tooltip-text-color);\n}\n.ff-excel .ff-spreadsheet-data-viewer,\n.ff-excel .ff-spreadsheet-data-editor input {\n padding: 4px;\n box-sizing: border-box;\n}\n.ff-excel .ff-spreadsheet-header {\n box-sizing: border-box;\n}\n.ff-excel .ff-spreadsheet-data-viewer--preserve-breaks {\n white-space: pre-wrap;\n}\n.ff-excel .ff-spreadsheet-data-editor,\n.ff-excel .ff-spreadsheet-data-editor input {\n width: 100%;\n height: 100%;\n}\n.ff-excel .ff-spreadsheet-data-editor input {\n font: inherit;\n color: inherit;\n background: none;\n border: none;\n outline: none;\n margin: 0;\n}\n.ff-excel .ff-spreadsheet-data-viewer--boolean {\n text-align: center;\n}\n.ff-excel .ff-spreadsheet-floating-rect {\n position: absolute;\n pointer-events: none;\n box-sizing: border-box;\n}\n.ff-excel .ff-spreadsheet-floating-rect--hidden {\n display: none;\n}\n.ff-excel .ff-spreadsheet-floating-rect--selected {\n background: var(--outline-background-color);\n border: 2px var(--outline-color) solid;\n}\n.ff-excel .ff-spreadsheet-floating-rect--dragging {\n border: none;\n}\n.ff-excel .ff-spreadsheet-floating-rect--copied {\n border: 2px var(--outline-color) dashed;\n}";
|
|
32124
32111
|
styleInject(css_248z$n);
|
|
32125
32112
|
|
|
32126
32113
|
var css_248z$m = ".ff-excel-toolbar {\n display: flex;\n height: 32px;\n align-items: center;\n}\n.ff-excel-toolbar .ff-excel-toolbar-divider {\n width: 1px;\n height: 24px;\n background-color: var(--excel-toolbar-divider);\n margin: 0 24px;\n border-radius: 1px;\n z-index: 1000;\n}\n.ff-excel-toolbar .ff-excel-toolbar-font {\n display: flex;\n gap: 8px;\n justify-content: space-between;\n}\n.ff-excel-toolbar .ff-excel-toolbar-font .ff-excel-toolbar-font-family {\n width: 120px;\n}\n.ff-excel-toolbar .ff-excel-toolbar-font .ff-excel-toolbar-font-size {\n width: 56px;\n}\n.ff-excel-toolbar .ff-excel-toolbar-text {\n width: 100px;\n height: 24px;\n display: flex;\n gap: 8px;\n justify-content: space-between;\n}\n.ff-excel-toolbar .ff-excel-toolbar-text .ff-excel-toolbar-icon-underline {\n display: flex;\n align-items: center;\n}\n.ff-excel-toolbar .ff-excel-toolbar-icon {\n width: 88px;\n height: 24px;\n display: flex;\n gap: 8px;\n justify-content: space-between;\n}\n.ff-excel-toolbar .ff-excel-toolbar-icon .ff-excel-toolbar-icon-color {\n width: 24px;\n height: 24px;\n border-radius: 4px;\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ff-excel-toolbar .ff-excel-toolbar-icon .ff-excel-toolbar-icon-color:hover {\n border-radius: 4px;\n background-color: var(--icon-hover-color);\n}\n.ff-icon-dark .ff-excel-toolbar .ff-excel-toolbar-icon .ff-excel-toolbar-icon-color {\n background-color: var(--brand-color);\n}\n.ff-icon-dark .ff-excel-toolbar .ff-excel-toolbar-icon .ff-excel-toolbar-icon-color.ff-icon-click:hover {\n background-color: var(--primary-button-text-color);\n}\n.ff-icon-dark .ff-excel-toolbar .ff-excel-toolbar-icon .ff-excel-toolbar-icon-color.ff-icon-click:hover svg path {\n fill: var(--brand-color);\n}\n.ff-excel-toolbar .ff-excel-toolbar-icon .ff-excel-toolbar-icon-color:hover {\n border-radius: 4px;\n background-color: var(--icon-hover-color);\n}\n.ff-icon-dark .ff-excel-toolbar .ff-excel-toolbar-icon .ff-excel-toolbar-icon-color {\n background-color: var(--brand-color);\n}\n.ff-icon-dark .ff-excel-toolbar .ff-excel-toolbar-icon .ff-excel-toolbar-icon-color.ff-icon-click:hover {\n background-color: var(--primary-button-text-color);\n}\n.ff-icon-dark .ff-excel-toolbar .ff-excel-toolbar-icon .ff-excel-toolbar-icon-color.ff-icon-click:hover svg path {\n fill: var(--brand-color);\n}\n.ff-excel-toolbar .ff-excel-toolbar-menu {\n display: flex;\n align-items: center;\n width: 36px;\n height: 24px;\n}\n.ff-excel-toolbar .ff-excel-toolbar-menu .ff-excel-toolbar-menu-option {\n display: flex;\n align-items: center;\n}";
|
|
@@ -32312,6 +32299,8 @@ const ExcelToolBar = ({
|
|
|
32312
32299
|
textAlign: 'center'
|
|
32313
32300
|
};
|
|
32314
32301
|
const [cellStyle, setCellStyle] = useState(cell?.style || basicStyle);
|
|
32302
|
+
const underLineMenuRef = useRef(null);
|
|
32303
|
+
const borderMenuRef = useRef(null);
|
|
32315
32304
|
useEffect(() => {
|
|
32316
32305
|
setCellStyle(cell?.style || basicStyle);
|
|
32317
32306
|
}, [cell]);
|
|
@@ -32566,18 +32555,22 @@ const ExcelToolBar = ({
|
|
|
32566
32555
|
disabled: toolbar === 'disable',
|
|
32567
32556
|
onClick: () => setUnderlineType(data, underLine, true),
|
|
32568
32557
|
name: getUnderlineIcon()
|
|
32569
|
-
}), jsx(
|
|
32570
|
-
|
|
32571
|
-
|
|
32572
|
-
|
|
32573
|
-
|
|
32574
|
-
|
|
32575
|
-
|
|
32576
|
-
|
|
32577
|
-
|
|
32578
|
-
|
|
32579
|
-
|
|
32580
|
-
|
|
32558
|
+
}), jsx("span", {
|
|
32559
|
+
ref: underLineMenuRef,
|
|
32560
|
+
children: jsx(MenuOption, {
|
|
32561
|
+
targetRef: underLineMenuRef,
|
|
32562
|
+
iconName: "arrow_down",
|
|
32563
|
+
zIndex: 1000,
|
|
32564
|
+
iconSize: 12,
|
|
32565
|
+
options: underlineTypeIcon,
|
|
32566
|
+
tooltipPlacement: "top",
|
|
32567
|
+
variant: "light",
|
|
32568
|
+
onOptionClick: e => {
|
|
32569
|
+
let selectedValue = e.value;
|
|
32570
|
+
setUnderlineType(data, selectedValue, true);
|
|
32571
|
+
setUnderLine(selectedValue);
|
|
32572
|
+
}
|
|
32573
|
+
})
|
|
32581
32574
|
})]
|
|
32582
32575
|
})
|
|
32583
32576
|
})]
|
|
@@ -32648,18 +32641,22 @@ const ExcelToolBar = ({
|
|
|
32648
32641
|
disabled: toolbar === 'disable',
|
|
32649
32642
|
onClick: () => setBorderType(data, border, 'black'),
|
|
32650
32643
|
name: getBorderIcon()
|
|
32651
|
-
}), jsx(
|
|
32652
|
-
|
|
32653
|
-
|
|
32654
|
-
|
|
32655
|
-
|
|
32656
|
-
|
|
32657
|
-
|
|
32658
|
-
|
|
32659
|
-
|
|
32660
|
-
|
|
32661
|
-
|
|
32662
|
-
|
|
32644
|
+
}), jsx("span", {
|
|
32645
|
+
ref: borderMenuRef,
|
|
32646
|
+
children: jsx(MenuOption, {
|
|
32647
|
+
iconName: "arrow_down",
|
|
32648
|
+
targetRef: borderMenuRef,
|
|
32649
|
+
iconSize: 12,
|
|
32650
|
+
zIndex: 1000,
|
|
32651
|
+
options: borderTypeIcon,
|
|
32652
|
+
tooltipPlacement: "top",
|
|
32653
|
+
variant: "light",
|
|
32654
|
+
onOptionClick: e => {
|
|
32655
|
+
let selectedValue = e.value;
|
|
32656
|
+
setBorderType(data, selectedValue, 'black');
|
|
32657
|
+
setBorder(selectedValue);
|
|
32658
|
+
}
|
|
32659
|
+
})
|
|
32663
32660
|
})]
|
|
32664
32661
|
})
|
|
32665
32662
|
})
|
|
@@ -33626,17 +33623,28 @@ const AttachImage = ({
|
|
|
33626
33623
|
});
|
|
33627
33624
|
};
|
|
33628
33625
|
|
|
33629
|
-
var css_248z$f = ".ff-card-container {\n
|
|
33626
|
+
var css_248z$f = ".ff-card-container {\n height: 78px;\n display: flex;\n align-items: center;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n overflow: hidden;\n cursor: pointer;\n}\n.ff-card-container:hover.passed {\n border-color: var(--ff-card-passed-status-bg-color);\n}\n.ff-card-container:hover.failed {\n border-color: var(--ff-card-failed-status-bg-color);\n}\n.ff-card-container:hover.warning {\n border-color: var(--ff-card-warning-status-bg-color);\n}\n.ff-card-container:hover.skipped {\n border-color: var(--ff-card-skipped-status-bg-color);\n}\n.ff-card-container:hover.flaky {\n border-color: var(--ff-card-flaky-status-bg-color);\n}\n.ff-card-container .ff-status-bar {\n width: 12%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: start;\n align-items: center;\n border-right: 1px solid var(--border-color);\n gap: 17px;\n}\n.ff-card-container .ff-status-bar .ff-status-text {\n transform: rotate(-90deg);\n transform-origin: center;\n display: inline-block;\n}\n.ff-card-container.passed .ff-status-bar {\n background-color: var(--ff-card-passed-status-bg-color);\n color: var(--base-bg-color);\n}\n.ff-card-container.failed .ff-status-bar {\n background-color: var(--ff-card-failed-status-bg-color);\n color: var(--base-bg-color);\n}\n.ff-card-container.warning .ff-status-bar {\n background-color: var(--ff-card-warning-status-bg-color);\n color: var(--base-bg-color);\n}\n.ff-card-container.skipped .ff-status-bar {\n background-color: var(--ff-card-skipped-status-bg-color);\n color: var(--base-bg-color);\n}\n.ff-card-container.flaky .ff-status-bar {\n background-color: var(--ff-card-flaky-status-bg-color);\n color: var(--base-bg-color);\n}\n.ff-card-container .ff-content {\n flex: 1;\n padding: 8px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.ff-card-container .ff-content .ff-number {\n margin-bottom: 4px;\n color: inherit;\n}\n.ff-card-container.passed .ff-number {\n color: var(--ff-card-passed-status-bg-color);\n}\n.ff-card-container.failed .ff-number {\n color: var(--ff-card-failed-status-bg-color);\n}\n.ff-card-container.warning .ff-number {\n color: var(--ff-card-warning-status-bg-color);\n}\n.ff-card-container.skipped .ff-number {\n color: var(--ff-card-skipped-status-bg-color);\n}\n.ff-card-container.flaky .ff-number {\n color: var(--ff-card-flaky-status-bg-color);\n}\n.ff-card-container.toggled.passed .ff-status-bar {\n background-color: var(--base-bg-color);\n color: var(--ff-card-passed-status-bg-color);\n}\n.ff-card-container.toggled.failed .ff-status-bar {\n background-color: var(--base-bg-color);\n color: var(--ff-card-failed-status-bg-color);\n}\n.ff-card-container.toggled.warning .ff-status-bar {\n background-color: var(--base-bg-color);\n color: var(--ff-card-warning-status-bg-color);\n}\n.ff-card-container.toggled.skipped .ff-status-bar {\n background-color: var(--base-bg-color);\n color: var(--ff-card-skipped-status-bg-color);\n}\n.ff-card-container.toggled.flaky .ff-status-bar {\n background-color: var(--base-bg-color);\n color: var(--ff-card-flaky-status-bg-color);\n}\n.ff-card-container.toggled.passed .ff-content {\n background-color: var(--ff-card-passed-status-bg-color);\n}\n.ff-card-container.toggled.failed .ff-content {\n background-color: var(--ff-card-failed-status-bg-color);\n}\n.ff-card-container.toggled.warning .ff-content {\n background-color: var(--ff-card-warning-status-bg-color);\n}\n.ff-card-container.toggled.skipped .ff-content {\n background-color: var(--ff-card-skipped-status-bg-color);\n}\n.ff-card-container.toggled.flaky .ff-content {\n background-color: var(--ff-card-flaky-status-bg-color);\n}";
|
|
33630
33627
|
styleInject(css_248z$f);
|
|
33631
33628
|
|
|
33632
33629
|
const StatusCard = ({
|
|
33633
33630
|
icon,
|
|
33634
33631
|
status,
|
|
33635
33632
|
count,
|
|
33636
|
-
text
|
|
33633
|
+
text,
|
|
33634
|
+
style = {
|
|
33635
|
+
width: '196.4px'
|
|
33636
|
+
},
|
|
33637
|
+
onSelectedStatus = _status => {}
|
|
33637
33638
|
}) => {
|
|
33639
|
+
const [isToggled, setIsToggled] = useState(false);
|
|
33640
|
+
const handleSelectStatus = status => {
|
|
33641
|
+
setIsToggled(true);
|
|
33642
|
+
onSelectedStatus(status);
|
|
33643
|
+
};
|
|
33638
33644
|
return jsxs("div", {
|
|
33639
|
-
className: `ff-card-container ${status.toLowerCase()}`,
|
|
33645
|
+
className: `ff-card-container ${status.toLowerCase()} ${isToggled ? 'toggled' : ''}`,
|
|
33646
|
+
style: style,
|
|
33647
|
+
onClick: () => handleSelectStatus(status),
|
|
33640
33648
|
children: [jsxs("div", {
|
|
33641
33649
|
className: "ff-status-bar",
|
|
33642
33650
|
children: [jsx("div", {
|
|
@@ -33649,7 +33657,6 @@ const StatusCard = ({
|
|
|
33649
33657
|
}), jsx(Typography, {
|
|
33650
33658
|
fontWeight: "semi-bold",
|
|
33651
33659
|
fontSize: "10px",
|
|
33652
|
-
color: "var(--ff-status-card-text-color)",
|
|
33653
33660
|
textAlign: "center",
|
|
33654
33661
|
lineHeight: "15px",
|
|
33655
33662
|
className: "ff-status-text",
|
|
@@ -33663,13 +33670,14 @@ const StatusCard = ({
|
|
|
33663
33670
|
fontSize: "24px",
|
|
33664
33671
|
className: "ff-number",
|
|
33665
33672
|
lineHeight: "36px",
|
|
33673
|
+
color: isToggled ? 'var(--base-bg-color)' : '',
|
|
33666
33674
|
children: count
|
|
33667
33675
|
}), jsx(Typography, {
|
|
33668
33676
|
fontWeight: "regular",
|
|
33669
33677
|
fontSize: "10px",
|
|
33670
33678
|
className: "ff-text",
|
|
33671
33679
|
lineHeight: "15px",
|
|
33672
|
-
color:
|
|
33680
|
+
color: isToggled ? 'var(--base-bg-color)' : 'var(--ff-card-status-text-color)',
|
|
33673
33681
|
children: text
|
|
33674
33682
|
})]
|
|
33675
33683
|
})]
|
|
@@ -39730,7 +39738,8 @@ const BarChart = ({
|
|
|
39730
39738
|
icons = [],
|
|
39731
39739
|
iconSize,
|
|
39732
39740
|
legendPosition = 'bottom',
|
|
39733
|
-
legendGap = 5
|
|
39741
|
+
legendGap = 5,
|
|
39742
|
+
onSelectedBar = _label => {}
|
|
39734
39743
|
}) => {
|
|
39735
39744
|
const [tooltip, setTooltip] = useState({
|
|
39736
39745
|
visible: false,
|
|
@@ -39788,6 +39797,9 @@ const BarChart = ({
|
|
|
39788
39797
|
borderColor: 'transparent'
|
|
39789
39798
|
});
|
|
39790
39799
|
};
|
|
39800
|
+
const handleSelectLabel = label => {
|
|
39801
|
+
onSelectedBar(label);
|
|
39802
|
+
};
|
|
39791
39803
|
return jsxs("div", {
|
|
39792
39804
|
className: "ff-bar-chart-container",
|
|
39793
39805
|
style: {
|
|
@@ -39862,7 +39874,8 @@ const BarChart = ({
|
|
|
39862
39874
|
ry: barBorderRadius,
|
|
39863
39875
|
onMouseEnter: e => handleMouseEnter(e, item.label, item.value, getBorderColor(index)),
|
|
39864
39876
|
onMouseMove: handleMouseMove,
|
|
39865
|
-
onMouseLeave: handleMouseLeave
|
|
39877
|
+
onMouseLeave: handleMouseLeave,
|
|
39878
|
+
onClick: () => handleSelectLabel(item.label)
|
|
39866
39879
|
}), showXAxisLabels && jsx("text", {
|
|
39867
39880
|
x: barX + barWidth / 2,
|
|
39868
39881
|
y: height + topPadding + 15,
|