@ssa-ui-kit/core 1.1.55-canary-dbf4f10-20250224 → 2.0.0-canary-1cc9a72-20250305
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/LICENSE +21 -21
- package/dist/components/Charts/PieChart/PieChart.d.ts +1 -0
- package/dist/components/Charts/SegmentedPieChart/SegmentedPieChart.d.ts +5 -1
- package/dist/components/Charts/SegmentedPieChart/hooks/useData.d.ts +2 -1
- package/dist/contexts/Translation/TranslationContext.d.ts +1 -1
- package/dist/contexts/Translation/types.d.ts +1 -1
- package/dist/index.js +162 -133
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 SSA Group
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 SSA Group
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PieChartProps } from './types';
|
|
2
|
+
export declare const PieChartComponent: (props: PieChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
3
|
export declare const PieChart: {
|
|
3
4
|
(props: PieChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
5
|
displayName: string;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { SegmentedPieChartProps } from './types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const SegmentedPieChartComponent: ({ data, pieChartProps, pieChartLegendProps, legendBackgrounds, pieChartColors, currency, otherLabel, totalAmount, totalDimension, legendValueRoundingDigits, legendPercentageRoundingDigits, showDimensions, showPercentage, titleTooltipOptions, tooltipConfig, renderTitleTooltipContent, }: SegmentedPieChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const SegmentedPieChart: {
|
|
4
|
+
(props: SegmentedPieChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BalanceDataForGraph, SegmentedPieChartProps } from '../types';
|
|
2
|
-
export declare const useData: ({ data, pieChartColors, legendValueRoundingDigits, }: Pick<SegmentedPieChartProps, "data" | "pieChartColors" | "legendValueRoundingDigits">) => {
|
|
2
|
+
export declare const useData: ({ data, pieChartColors, legendValueRoundingDigits, legendBackgrounds, }: Pick<SegmentedPieChartProps, "data" | "pieChartColors" | "legendValueRoundingDigits" | "legendBackgrounds">) => {
|
|
3
3
|
balanceDataForTheGraph: BalanceDataForGraph[];
|
|
4
4
|
balanceDataForTheLegend: BalanceDataForGraph[];
|
|
5
|
+
legendColors: string[];
|
|
5
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { JSONObject } from '
|
|
2
|
+
import { JSONObject } from '../../types/json';
|
|
3
3
|
import { TranslationContextContent } from './types';
|
|
4
4
|
export declare const TranslationContext: import("react").Context<TranslationContextContent>;
|
|
5
5
|
export declare const TranslationProvider: ({ children, defaultTranslations, }: {
|
package/dist/index.js
CHANGED
|
@@ -129,6 +129,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
129
129
|
PaginationContext: () => (/* reexport */ PaginationContext),
|
|
130
130
|
PaginationContextProvider: () => (/* reexport */ PaginationContextProvider),
|
|
131
131
|
PieChart: () => (/* reexport */ PieChart),
|
|
132
|
+
PieChartComponent: () => (/* reexport */ PieChartComponent),
|
|
132
133
|
PieChartLegend: () => (/* reexport */ PieChartLegend),
|
|
133
134
|
Popover: () => (/* reexport */ Popover),
|
|
134
135
|
PopoverClose: () => (/* reexport */ PopoverClose),
|
|
@@ -154,6 +155,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
154
155
|
SearchBoxInput: () => (/* reexport */ SearchBoxInput),
|
|
155
156
|
SearchBoxWrapper: () => (/* reexport */ SearchBoxWrapper),
|
|
156
157
|
SegmentedPieChart: () => (/* reexport */ SegmentedPieChart),
|
|
158
|
+
SegmentedPieChartComponent: () => (/* reexport */ SegmentedPieChartComponent),
|
|
157
159
|
SimpleChartTooltip: () => (/* reexport */ SimpleChartTooltip),
|
|
158
160
|
Step: () => (/* reexport */ Step_Step),
|
|
159
161
|
StepConnector: () => (/* reexport */ StepConnector_StepConnector),
|
|
@@ -3857,16 +3859,16 @@ function Dropdown_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to s
|
|
|
3857
3859
|
|
|
3858
3860
|
|
|
3859
3861
|
|
|
3860
|
-
/**
|
|
3861
|
-
* The structure of the component:
|
|
3862
|
-
*
|
|
3863
|
-
* Dropdown
|
|
3864
|
-
* DropdownToggle
|
|
3865
|
-
* DropdownOptions
|
|
3866
|
-
* DropdownOption
|
|
3867
|
-
*
|
|
3868
|
-
* Aria attributes are set according to
|
|
3869
|
-
* https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
|
|
3862
|
+
/**
|
|
3863
|
+
* The structure of the component:
|
|
3864
|
+
*
|
|
3865
|
+
* Dropdown
|
|
3866
|
+
* DropdownToggle
|
|
3867
|
+
* DropdownOptions
|
|
3868
|
+
* DropdownOption
|
|
3869
|
+
*
|
|
3870
|
+
* Aria attributes are set according to
|
|
3871
|
+
* https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
|
|
3870
3872
|
**/
|
|
3871
3873
|
|
|
3872
3874
|
const DropdownBase = /*#__PURE__*/base_default()("div", true ? {
|
|
@@ -4970,16 +4972,16 @@ const DropdownPlaceholderLabel = /*#__PURE__*/base_default()("div", true ? {
|
|
|
4970
4972
|
styles: "white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
|
|
4971
4973
|
} : 0);
|
|
4972
4974
|
|
|
4973
|
-
/**
|
|
4974
|
-
* The structure of the component:
|
|
4975
|
-
*
|
|
4976
|
-
* MultipleDropdown
|
|
4977
|
-
* DropdownToggle
|
|
4978
|
-
* MultipleDropdownOptions
|
|
4979
|
-
* DropdownOption
|
|
4980
|
-
*
|
|
4981
|
-
* Aria attributes are set according to
|
|
4982
|
-
* https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
|
|
4975
|
+
/**
|
|
4976
|
+
* The structure of the component:
|
|
4977
|
+
*
|
|
4978
|
+
* MultipleDropdown
|
|
4979
|
+
* DropdownToggle
|
|
4980
|
+
* MultipleDropdownOptions
|
|
4981
|
+
* DropdownOption
|
|
4982
|
+
*
|
|
4983
|
+
* Aria attributes are set according to
|
|
4984
|
+
* https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
|
|
4983
4985
|
**/
|
|
4984
4986
|
function MultipleDropdownInner({
|
|
4985
4987
|
selectedItems = [],
|
|
@@ -5224,8 +5226,8 @@ const NavToggle = ({
|
|
|
5224
5226
|
|
|
5225
5227
|
|
|
5226
5228
|
|
|
5227
|
-
/**
|
|
5228
|
-
* UI Component that shows the navigation bar
|
|
5229
|
+
/**
|
|
5230
|
+
* UI Component that shows the navigation bar
|
|
5229
5231
|
*/
|
|
5230
5232
|
const NavBar = ({
|
|
5231
5233
|
items
|
|
@@ -5673,8 +5675,8 @@ const PieChartBase = /*#__PURE__*/base_default()("div", true ? {
|
|
|
5673
5675
|
const PieChartTextBase = /*#__PURE__*/base_default()("div", true ? {
|
|
5674
5676
|
target: "eq9zdmm0"
|
|
5675
5677
|
} : 0)( true ? {
|
|
5676
|
-
name: "
|
|
5677
|
-
styles: "position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;width:calc(100% - 34px);height:calc(100% - 34px);left:17px;top:17px;border-radius:50
|
|
5678
|
+
name: "1e5nn9x",
|
|
5679
|
+
styles: "position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;width:calc(100% - 34px);height:calc(100% - 34px);left:17px;top:17px;border-radius:50%;pointer-events:none"
|
|
5678
5680
|
} : 0);
|
|
5679
5681
|
;// ./src/components/Charts/PieChart/styles.ts
|
|
5680
5682
|
|
|
@@ -6475,12 +6477,12 @@ const ProgressVertical = ({
|
|
|
6475
6477
|
/* harmony default export */ const ProgressVertical_ProgressVertical = (ProgressVertical);
|
|
6476
6478
|
;// ./src/components/ResponsiveImage/ResponsiveImage.tsx
|
|
6477
6479
|
|
|
6478
|
-
/**
|
|
6479
|
-
* A simple wrapper over the `<img />` tag.
|
|
6480
|
-
*
|
|
6481
|
-
* Don't forget to adjust Device Pixel Ratio in DevTools
|
|
6482
|
-
* when testing srcSet, and use Hard Reload to force the
|
|
6483
|
-
* browser to load an image of another resolution.
|
|
6480
|
+
/**
|
|
6481
|
+
* A simple wrapper over the `<img />` tag.
|
|
6482
|
+
*
|
|
6483
|
+
* Don't forget to adjust Device Pixel Ratio in DevTools
|
|
6484
|
+
* when testing srcSet, and use Hard Reload to force the
|
|
6485
|
+
* browser to load an image of another resolution.
|
|
6484
6486
|
* */
|
|
6485
6487
|
const ResponsiveImage = ({
|
|
6486
6488
|
src,
|
|
@@ -6891,12 +6893,12 @@ const TabBarBase = /*#__PURE__*/base_default()("div", true ? {
|
|
|
6891
6893
|
target: "e1hg26v10"
|
|
6892
6894
|
} : 0)( true ? "" : 0);
|
|
6893
6895
|
|
|
6894
|
-
/**
|
|
6895
|
-
* This component doesn't show contents of the selected tab,
|
|
6896
|
-
* however it accepts a required `renderContent()` render
|
|
6897
|
-
* prop and stores it into the Context. This lets the parent
|
|
6898
|
-
* component to decide where to render the contents of the
|
|
6899
|
-
* selected tab.
|
|
6896
|
+
/**
|
|
6897
|
+
* This component doesn't show contents of the selected tab,
|
|
6898
|
+
* however it accepts a required `renderContent()` render
|
|
6899
|
+
* prop and stores it into the Context. This lets the parent
|
|
6900
|
+
* component to decide where to render the contents of the
|
|
6901
|
+
* selected tab.
|
|
6900
6902
|
* */
|
|
6901
6903
|
const TabBar = ({
|
|
6902
6904
|
children
|
|
@@ -7213,13 +7215,13 @@ const useTooltipContext = () => {
|
|
|
7213
7215
|
|
|
7214
7216
|
|
|
7215
7217
|
|
|
7216
|
-
/*
|
|
7217
|
-
* <Tooltip>
|
|
7218
|
-
* <TooltipTrigger>
|
|
7219
|
-
* <Button />
|
|
7220
|
-
* </TooltipTrigger>
|
|
7221
|
-
* <TooltipContent>Tooltip</TooltipContent>
|
|
7222
|
-
* </Tooltip>
|
|
7218
|
+
/*
|
|
7219
|
+
* <Tooltip>
|
|
7220
|
+
* <TooltipTrigger>
|
|
7221
|
+
* <Button />
|
|
7222
|
+
* </TooltipTrigger>
|
|
7223
|
+
* <TooltipContent>Tooltip</TooltipContent>
|
|
7224
|
+
* </Tooltip>
|
|
7223
7225
|
* */
|
|
7224
7226
|
const Tooltip = ({
|
|
7225
7227
|
children,
|
|
@@ -7693,9 +7695,9 @@ var CardList_ref = true ? {
|
|
|
7693
7695
|
name: "1fgo50s",
|
|
7694
7696
|
styles: "list-style:none;padding:0;li{margin-bottom:15px;}"
|
|
7695
7697
|
} : 0;
|
|
7696
|
-
/**
|
|
7697
|
-
*
|
|
7698
|
-
* UI Component that renders a list of items with a custom render function
|
|
7698
|
+
/**
|
|
7699
|
+
*
|
|
7700
|
+
* UI Component that renders a list of items with a custom render function
|
|
7699
7701
|
*/
|
|
7700
7702
|
const CardList = ({
|
|
7701
7703
|
title,
|
|
@@ -8519,6 +8521,7 @@ const NavBarItemWithoutSubMenu = ({
|
|
|
8519
8521
|
return (0,jsx_runtime_namespaceObject.jsx)(CollapsibleNavBar_CollapsibleNavBarItem, {
|
|
8520
8522
|
children: (0,jsx_runtime_namespaceObject.jsxs)(CollapsibleNavBar_CollapsibleNavBarLink, {
|
|
8521
8523
|
to: isExternalLink ? path : '/' + path,
|
|
8524
|
+
end: true,
|
|
8522
8525
|
onClick: onClick,
|
|
8523
8526
|
navbartheme: theme,
|
|
8524
8527
|
"data-customicon": !!CustomIcon,
|
|
@@ -8564,8 +8567,8 @@ const SCREEN_SIZES = {
|
|
|
8564
8567
|
|
|
8565
8568
|
|
|
8566
8569
|
|
|
8567
|
-
/**
|
|
8568
|
-
* UI Component that shows the collapsible navigation bar
|
|
8570
|
+
/**
|
|
8571
|
+
* UI Component that shows the collapsible navigation bar
|
|
8569
8572
|
*/
|
|
8570
8573
|
|
|
8571
8574
|
const CollapsibleNavBar = ({
|
|
@@ -11642,62 +11645,79 @@ const LegendItem = ({
|
|
|
11642
11645
|
;// ./src/components/Charts/SegmentedPieChart/hooks/useData.ts
|
|
11643
11646
|
|
|
11644
11647
|
|
|
11648
|
+
|
|
11645
11649
|
const useData = ({
|
|
11646
11650
|
data,
|
|
11647
11651
|
pieChartColors = defaultPieChartColors,
|
|
11648
|
-
legendValueRoundingDigits
|
|
11652
|
+
legendValueRoundingDigits,
|
|
11653
|
+
legendBackgrounds
|
|
11649
11654
|
}) => {
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11655
|
+
const {
|
|
11656
|
+
isFullscreenMode
|
|
11657
|
+
} = useFullscreenMode();
|
|
11658
|
+
const safeData = Array.isArray(data) ? data : [];
|
|
11659
|
+
const safeColors = Array.isArray(pieChartColors) ? pieChartColors : [[]];
|
|
11660
|
+
const totalAmount = safeData.reduce((acc, item) => acc + Number(item.value), 0);
|
|
11661
|
+
const getRoundingDigits = item => (0,utils_namespaceObject.propOr)(legendValueRoundingDigits, 'legendValueRoundingDigits')(item);
|
|
11656
11662
|
const balanceDataForTheGraph = [];
|
|
11657
11663
|
const balanceDataForTheLegend = [];
|
|
11658
|
-
|
|
11659
|
-
const
|
|
11660
|
-
const
|
|
11661
|
-
|
|
11664
|
+
safeData.forEach((item, itemIndex) => {
|
|
11665
|
+
const mainValue = Number(item.value);
|
|
11666
|
+
const mainPercentage = totalAmount ? mainValue * 100 / totalAmount : 0;
|
|
11667
|
+
const mainSlice = {
|
|
11668
|
+
value: mainValue,
|
|
11662
11669
|
label: item.label,
|
|
11663
11670
|
percentage: mainPercentage,
|
|
11664
11671
|
mainId: Number(item.id),
|
|
11665
|
-
mainValue
|
|
11672
|
+
mainValue,
|
|
11666
11673
|
legendLabel: item.legendLabel,
|
|
11667
11674
|
legendValue: item.legendValue,
|
|
11668
|
-
legendValueRoundingDigits: (
|
|
11669
|
-
color:
|
|
11675
|
+
legendValueRoundingDigits: getRoundingDigits(item),
|
|
11676
|
+
color: safeColors?.[itemIndex]?.[0],
|
|
11670
11677
|
id: `${itemIndex}0`
|
|
11671
11678
|
};
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11679
|
+
const partedSlices = (item.parts || []).filter(part => !!part.value).map((part, partIndex) => {
|
|
11680
|
+
const partValue = Number(part.value);
|
|
11681
|
+
const partPercentage = totalAmount ? partValue * 100 / totalAmount : 0;
|
|
11682
|
+
return {
|
|
11683
|
+
value: partValue,
|
|
11684
|
+
label: `${item.label}, ${part.label}`,
|
|
11685
|
+
percentage: partPercentage,
|
|
11686
|
+
mainId: Number(item.id),
|
|
11687
|
+
mainValue: Number(item.value),
|
|
11688
|
+
legendLabel: item.legendLabel,
|
|
11689
|
+
legendValue: part.legendValue,
|
|
11690
|
+
legendValueRoundingDigits: getRoundingDigits(item),
|
|
11691
|
+
color: safeColors?.[itemIndex]?.[partIndex],
|
|
11692
|
+
id: `${itemIndex}${partIndex}`,
|
|
11693
|
+
partIndex,
|
|
11694
|
+
partLabel: part.label,
|
|
11695
|
+
partPercentage,
|
|
11696
|
+
partValue,
|
|
11697
|
+
partLegendValue: part.legendValue
|
|
11698
|
+
};
|
|
11699
|
+
});
|
|
11700
|
+
if (partedSlices.length) {
|
|
11701
|
+
balanceDataForTheGraph.push(...partedSlices);
|
|
11694
11702
|
} else {
|
|
11695
|
-
balanceDataForTheGraph.push(
|
|
11703
|
+
balanceDataForTheGraph.push(mainSlice);
|
|
11704
|
+
}
|
|
11705
|
+
if (isFullscreenMode && partedSlices.length) {
|
|
11706
|
+
balanceDataForTheLegend.push(...partedSlices);
|
|
11707
|
+
} else {
|
|
11708
|
+
balanceDataForTheLegend.push(mainSlice);
|
|
11696
11709
|
}
|
|
11697
11710
|
});
|
|
11711
|
+
let legendColors;
|
|
11712
|
+
if (isFullscreenMode) {
|
|
11713
|
+
legendColors = balanceDataForTheLegend.map(item => item.color);
|
|
11714
|
+
} else {
|
|
11715
|
+
legendColors = legendBackgrounds || [];
|
|
11716
|
+
}
|
|
11698
11717
|
return {
|
|
11699
11718
|
balanceDataForTheGraph,
|
|
11700
|
-
balanceDataForTheLegend
|
|
11719
|
+
balanceDataForTheLegend,
|
|
11720
|
+
legendColors
|
|
11701
11721
|
};
|
|
11702
11722
|
};
|
|
11703
11723
|
;// ./src/components/Charts/SegmentedPieChart/SegmentedPieChart.tsx
|
|
@@ -11709,6 +11729,7 @@ function SegmentedPieChart_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have t
|
|
|
11709
11729
|
|
|
11710
11730
|
|
|
11711
11731
|
|
|
11732
|
+
|
|
11712
11733
|
var SegmentedPieChart_ref = true ? {
|
|
11713
11734
|
name: "1h72o96",
|
|
11714
11735
|
styles: "h6{font-weight:700;}"
|
|
@@ -11717,11 +11738,7 @@ var SegmentedPieChart_ref2 = true ? {
|
|
|
11717
11738
|
name: "fddz1h",
|
|
11718
11739
|
styles: "width:10px;height:10px"
|
|
11719
11740
|
} : 0;
|
|
11720
|
-
|
|
11721
|
-
name: "14q9ynm",
|
|
11722
|
-
styles: "width:400px;margin:40px 120px"
|
|
11723
|
-
} : 0;
|
|
11724
|
-
const SegmentedPieChart = ({
|
|
11741
|
+
const SegmentedPieChartComponent = ({
|
|
11725
11742
|
data,
|
|
11726
11743
|
pieChartProps,
|
|
11727
11744
|
pieChartLegendProps,
|
|
@@ -11740,13 +11757,18 @@ const SegmentedPieChart = ({
|
|
|
11740
11757
|
renderTitleTooltipContent
|
|
11741
11758
|
}) => {
|
|
11742
11759
|
const theme = (0,react_namespaceObject.useTheme)();
|
|
11760
|
+
const {
|
|
11761
|
+
isFullscreenMode
|
|
11762
|
+
} = useFullscreenMode();
|
|
11743
11763
|
const {
|
|
11744
11764
|
balanceDataForTheGraph,
|
|
11745
|
-
balanceDataForTheLegend
|
|
11765
|
+
balanceDataForTheLegend,
|
|
11766
|
+
legendColors
|
|
11746
11767
|
} = useData({
|
|
11747
11768
|
data,
|
|
11748
11769
|
legendValueRoundingDigits,
|
|
11749
|
-
pieChartColors
|
|
11770
|
+
pieChartColors,
|
|
11771
|
+
legendBackgrounds
|
|
11750
11772
|
});
|
|
11751
11773
|
return (0,jsx_runtime_namespaceObject.jsx)(SegmentedPieChartProvider, {
|
|
11752
11774
|
legendPercentageRoundingDigits: legendPercentageRoundingDigits,
|
|
@@ -11760,10 +11782,16 @@ const SegmentedPieChart = ({
|
|
|
11760
11782
|
currency: currency,
|
|
11761
11783
|
renderTitleTooltipContent: renderTitleTooltipContent,
|
|
11762
11784
|
tooltipConfig: tooltipConfig,
|
|
11763
|
-
children: (0,jsx_runtime_namespaceObject.jsx)(
|
|
11785
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(PieChartComponent, {
|
|
11764
11786
|
data: balanceDataForTheGraph,
|
|
11765
11787
|
animate: true,
|
|
11766
|
-
css:
|
|
11788
|
+
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
11789
|
+
...(isFullscreenMode ? {
|
|
11790
|
+
padding: '20px'
|
|
11791
|
+
} : {
|
|
11792
|
+
margin: '40px 120px'
|
|
11793
|
+
})
|
|
11794
|
+
}, true ? "" : 0, true ? "" : 0),
|
|
11767
11795
|
isInteractive: true,
|
|
11768
11796
|
activeInnerRadiusOffset: 0,
|
|
11769
11797
|
activeOuterRadiusOffset: 0,
|
|
@@ -11774,7 +11802,7 @@ const SegmentedPieChart = ({
|
|
|
11774
11802
|
...pieChartProps,
|
|
11775
11803
|
children: (0,jsx_runtime_namespaceObject.jsx)(PieChartLegend, {
|
|
11776
11804
|
data: balanceDataForTheLegend,
|
|
11777
|
-
backgroundColors:
|
|
11805
|
+
backgroundColors: legendColors,
|
|
11778
11806
|
renderValue: props => (0,jsx_runtime_namespaceObject.jsx)(LegendItem, {
|
|
11779
11807
|
...props,
|
|
11780
11808
|
legendValueRoundingDigits: props.legendValueRoundingDigits
|
|
@@ -11787,6 +11815,7 @@ const SegmentedPieChart = ({
|
|
|
11787
11815
|
})
|
|
11788
11816
|
});
|
|
11789
11817
|
};
|
|
11818
|
+
const SegmentedPieChart = WithFullscreenMode(SegmentedPieChartComponent);
|
|
11790
11819
|
;// ./src/components/Charts/SegmentedPieChart/index.ts
|
|
11791
11820
|
|
|
11792
11821
|
;// ./src/components/Charts/BarLineComplexChart/colorPalette.ts
|
|
@@ -12269,29 +12298,29 @@ const BarLineComplexChartView = ({
|
|
|
12269
12298
|
debouncedFn();
|
|
12270
12299
|
};
|
|
12271
12300
|
const handleHover = () => {
|
|
12272
|
-
/**
|
|
12273
|
-
* Show tooltip on hover
|
|
12274
|
-
* event: Readonly<Plotly.PlotHoverEvent>
|
|
12275
|
-
* - event = {}
|
|
12276
|
-
* - points:
|
|
12277
|
-
* Array<{
|
|
12278
|
-
* bbox: { x0: number; x1: number; y0: number; y1: number; };
|
|
12279
|
-
* curveNumber: number;
|
|
12280
|
-
* data: Plotly.Data;
|
|
12281
|
-
* fullData: Plotly.Data;
|
|
12282
|
-
* label: number;
|
|
12283
|
-
* pointIndex: number;
|
|
12284
|
-
* pointNumber: number;
|
|
12285
|
-
* value: number;
|
|
12286
|
-
* x: number;
|
|
12287
|
-
* y: number;
|
|
12288
|
-
* xaxis: string;
|
|
12289
|
-
* yaxis: string;
|
|
12290
|
-
* }>
|
|
12291
|
-
* - xaxes: Array<{}>
|
|
12292
|
-
* - xvals: Array<number>
|
|
12293
|
-
* - yaxes: Array<{}>
|
|
12294
|
-
* - yvals: Array<number>
|
|
12301
|
+
/**
|
|
12302
|
+
* Show tooltip on hover
|
|
12303
|
+
* event: Readonly<Plotly.PlotHoverEvent>
|
|
12304
|
+
* - event = {}
|
|
12305
|
+
* - points:
|
|
12306
|
+
* Array<{
|
|
12307
|
+
* bbox: { x0: number; x1: number; y0: number; y1: number; };
|
|
12308
|
+
* curveNumber: number;
|
|
12309
|
+
* data: Plotly.Data;
|
|
12310
|
+
* fullData: Plotly.Data;
|
|
12311
|
+
* label: number;
|
|
12312
|
+
* pointIndex: number;
|
|
12313
|
+
* pointNumber: number;
|
|
12314
|
+
* value: number;
|
|
12315
|
+
* x: number;
|
|
12316
|
+
* y: number;
|
|
12317
|
+
* xaxis: string;
|
|
12318
|
+
* yaxis: string;
|
|
12319
|
+
* }>
|
|
12320
|
+
* - xaxes: Array<{}>
|
|
12321
|
+
* - xvals: Array<number>
|
|
12322
|
+
* - yaxes: Array<{}>
|
|
12323
|
+
* - yvals: Array<number>
|
|
12295
12324
|
*/
|
|
12296
12325
|
setIsOpen(false);
|
|
12297
12326
|
};
|
|
@@ -12359,18 +12388,18 @@ const BarLineComplexChartView = ({
|
|
|
12359
12388
|
title: typeof title === 'string' ? title : {
|
|
12360
12389
|
x: 0,
|
|
12361
12390
|
y: 1,
|
|
12391
|
+
font: {
|
|
12392
|
+
size: isFullscreenMode ? 24 : (0,utils_namespaceObject.propOr)(TITLE_FONT_SIZE.other, deviceType)(TITLE_FONT_SIZE),
|
|
12393
|
+
weight: 700,
|
|
12394
|
+
family: FONT_FAMILY,
|
|
12395
|
+
...titlefont
|
|
12396
|
+
},
|
|
12362
12397
|
pad: {
|
|
12363
12398
|
l: (0,utils_namespaceObject.propOr)(TITLE_PADDING_LEFT.other, deviceType)(TITLE_PADDING_LEFT),
|
|
12364
12399
|
t: (0,utils_namespaceObject.propOr)(TITLE_PADDING_TOP.other, deviceType)(TITLE_PADDING_TOP)
|
|
12365
12400
|
},
|
|
12366
12401
|
...title
|
|
12367
12402
|
},
|
|
12368
|
-
titlefont: {
|
|
12369
|
-
size: isFullscreenMode ? 24 : (0,utils_namespaceObject.propOr)(TITLE_FONT_SIZE.other, deviceType)(TITLE_FONT_SIZE),
|
|
12370
|
-
weight: 700,
|
|
12371
|
-
family: FONT_FAMILY,
|
|
12372
|
-
...titlefont
|
|
12373
|
-
},
|
|
12374
12403
|
barmode: 'group',
|
|
12375
12404
|
autosize: false,
|
|
12376
12405
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -13467,14 +13496,14 @@ var Typeahead_ref = true ? {
|
|
|
13467
13496
|
name: "1d3w5wq",
|
|
13468
13497
|
styles: "width:100%"
|
|
13469
13498
|
} : 0;
|
|
13470
|
-
/**
|
|
13471
|
-
* The structure of the component:
|
|
13472
|
-
* - TypeaheadTrigger
|
|
13473
|
-
* - TypeaheadOptions
|
|
13474
|
-
* - FormHelperText
|
|
13475
|
-
*
|
|
13476
|
-
* Aria attributes are set according to
|
|
13477
|
-
* https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
13499
|
+
/**
|
|
13500
|
+
* The structure of the component:
|
|
13501
|
+
* - TypeaheadTrigger
|
|
13502
|
+
* - TypeaheadOptions
|
|
13503
|
+
* - FormHelperText
|
|
13504
|
+
*
|
|
13505
|
+
* Aria attributes are set according to
|
|
13506
|
+
* https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
13478
13507
|
**/
|
|
13479
13508
|
const Typeahead = ({
|
|
13480
13509
|
name = 'typeahead-search',
|