@j2inn/fin5-ui-utils 8.2.0 → 9.0.0-beta.0
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/dist/fantomProps/createFin5Props/index.d.ts +12 -12
- package/dist/fantomProps/createFin5Props/index.js +146 -146
- package/dist/fantomProps/createFin5Props/index.js.map +1 -1
- package/dist/fantomProps/createFin5Props/runCreateFin5Props.d.ts +2 -2
- package/dist/fantomProps/createFin5Props/runCreateFin5Props.js +20 -20
- package/dist/fantomProps/createFin5Props/runCreateFin5Props.js.map +1 -1
- package/dist/fantomProps/fantomPropsToObject.d.ts +8 -8
- package/dist/fantomProps/fantomPropsToObject.js +182 -183
- package/dist/fantomProps/fantomPropsToObject.js.map +1 -1
- package/dist/fantomProps/generateJsonFromFantomPropsFile.d.ts +4 -4
- package/dist/fantomProps/generateJsonFromFantomPropsFile.js +51 -41
- package/dist/fantomProps/generateJsonFromFantomPropsFile.js.map +1 -1
- package/dist/fantomProps/localePropsToJson.d.ts +1 -1
- package/dist/fantomProps/localePropsToJson.js +60 -50
- package/dist/fantomProps/localePropsToJson.js.map +1 -1
- package/dist/fantomProps/readFantomPropsFile.d.ts +5 -5
- package/dist/fantomProps/readFantomPropsFile.js +74 -65
- package/dist/fantomProps/readFantomPropsFile.js.map +1 -1
- package/dist/fin5Top/fin5FileUpload.d.ts +24 -24
- package/dist/fin5Top/fin5FileUpload.js +51 -51
- package/dist/fin5Top/fin5FileUpload.js.map +1 -1
- package/dist/fin5Top/fin5Top.d.ts +188 -188
- package/dist/fin5Top/fin5Top.js +86 -86
- package/dist/fin5Top/fin5Top.js.map +1 -1
- package/dist/fin5Top/finEdge2Cloud.d.ts +6 -6
- package/dist/fin5Top/finEdge2Cloud.js +15 -15
- package/dist/fin5Top/getFin5BinUrl.d.ts +2 -2
- package/dist/fin5Top/getFin5BinUrl.js +9 -9
- package/dist/fin5Top/openFin5Alarm.d.ts +22 -22
- package/dist/fin5Top/openFin5Alarm.js +23 -23
- package/dist/fin5Top/openFin5Alarm.js.map +1 -1
- package/dist/fin5Top/openFin5Historian.d.ts +3 -3
- package/dist/fin5Top/openFin5Historian.js +19 -19
- package/dist/fin5Top/openFin5Historian.js.map +1 -1
- package/dist/fin5Top/useFin5AppURLHashParameter.d.ts +18 -18
- package/dist/fin5Top/useFin5AppURLHashParameter.js +133 -133
- package/dist/fin5Top/useFin5AppURLHashParameter.js.map +1 -1
- package/dist/index.d.ts +35 -35
- package/dist/index.js +69 -69
- package/dist/jobs/jobUtils.d.ts +14 -14
- package/dist/jobs/jobUtils.js +15 -15
- package/dist/jobs/jobUtils.js.map +1 -1
- package/dist/react/app/Fin5AppContainer.d.ts +36 -36
- package/dist/react/app/Fin5AppContainer.js +171 -161
- package/dist/react/app/Fin5AppContainer.js.map +1 -1
- package/dist/react/app/Fin5AppRootStore.d.ts +42 -42
- package/dist/react/app/Fin5AppRootStore.js +114 -114
- package/dist/react/app/Fin5AppRootStore.js.map +1 -1
- package/dist/react/components/ErrorBoundary.d.ts +57 -57
- package/dist/react/components/ErrorBoundary.js +160 -150
- package/dist/react/components/ErrorBoundary.js.map +1 -1
- package/dist/react/components/ErrorDisplayer.d.ts +19 -19
- package/dist/react/components/ErrorDisplayer.js +36 -36
- package/dist/react/components/ErrorDisplayer.js.map +1 -1
- package/dist/react/components/Loader.d.ts +9 -9
- package/dist/react/components/Loader.js +17 -17
- package/dist/react/components/LoadingSpinner.d.ts +2 -2
- package/dist/react/components/LoadingSpinner.js +27 -27
- package/dist/react/components/RecordImage.d.ts +20 -20
- package/dist/react/components/RecordImage.js +61 -51
- package/dist/react/components/RecordImage.js.map +1 -1
- package/dist/react/components/charts/QRCode.d.ts +25 -25
- package/dist/react/components/charts/QRCode.js +92 -82
- package/dist/react/components/charts/QRCode.js.map +1 -1
- package/dist/react/components/charts/line-bar/Chart.d.ts +166 -166
- package/dist/react/components/charts/line-bar/Chart.js +452 -442
- package/dist/react/components/charts/line-bar/Chart.js.map +1 -1
- package/dist/react/components/charts/line-bar/HGridChart.d.ts +58 -58
- package/dist/react/components/charts/line-bar/HGridChart.js +295 -285
- package/dist/react/components/charts/line-bar/HGridChart.js.map +1 -1
- package/dist/react/components/charts/pie/PieChart.d.ts +94 -94
- package/dist/react/components/charts/pie/PieChart.js +214 -204
- package/dist/react/components/charts/pie/PieChart.js.map +1 -1
- package/dist/react/components/charts/pie/SimplePieChart.d.ts +21 -21
- package/dist/react/components/charts/pie/SimplePieChart.js +65 -55
- package/dist/react/components/charts/pie/SimplePieChart.js.map +1 -1
- package/dist/react/components/graphics/GraphicViewer.d.ts +10 -10
- package/dist/react/components/graphics/GraphicViewer.js +29 -29
- package/dist/react/components/graphics/GraphicsTabViewer.d.ts +17 -17
- package/dist/react/components/graphics/GraphicsTabViewer.js +100 -90
- package/dist/react/components/graphics/GraphicsTabViewer.js.map +1 -1
- package/dist/react/components/makeCustomElement.d.ts +16 -16
- package/dist/react/components/makeCustomElement.js +150 -150
- package/dist/react/components/makeCustomElement.js.map +1 -1
- package/dist/react/components/navigation/BasicLayout.d.ts +41 -41
- package/dist/react/components/navigation/BasicLayout.js +165 -155
- package/dist/react/components/navigation/BasicLayout.js.map +1 -1
- package/dist/react/components/navigation/HeaderSiderLayout.d.ts +13 -13
- package/dist/react/components/navigation/HeaderSiderLayout.js +119 -110
- package/dist/react/components/navigation/HeaderSiderLayout.js.map +1 -1
- package/dist/react/components/navigation/MenuPage.d.ts +37 -37
- package/dist/react/components/navigation/MenuPage.js +35 -36
- package/dist/react/components/navigation/MenuPage.js.map +1 -1
- package/dist/react/components/navigation/MenuTrigger.d.ts +9 -9
- package/dist/react/components/navigation/MenuTrigger.js +33 -33
- package/dist/react/components/navigation/ReactRouterHeaderSiderLayout.d.ts +11 -11
- package/dist/react/components/navigation/ReactRouterHeaderSiderLayout.js +25 -25
- package/dist/react/components/navigation/ReactRouterHeaderSiderLayout.js.map +1 -1
- package/dist/react/components/navigation/ReactRouterLayout.d.ts +45 -46
- package/dist/react/components/navigation/ReactRouterLayout.js +142 -132
- package/dist/react/components/navigation/ReactRouterLayout.js.map +1 -1
- package/dist/react/components/navigation/customRouting/Router.d.ts +12 -12
- package/dist/react/components/navigation/customRouting/Router.js +54 -45
- package/dist/react/components/navigation/customRouting/Router.js.map +1 -1
- package/dist/react/components/navigation/customRouting/RouterLayout.d.ts +11 -11
- package/dist/react/components/navigation/customRouting/RouterLayout.js +71 -61
- package/dist/react/components/navigation/customRouting/RouterLayout.js.map +1 -1
- package/dist/react/components/resolvable/configurationForm/ConfigurationForm.d.ts +26 -27
- package/dist/react/components/resolvable/configurationForm/ConfigurationForm.js +105 -95
- package/dist/react/components/resolvable/configurationForm/ConfigurationForm.js.map +1 -1
- package/dist/react/components/resolvable/configurationForm/ConfigurationFormEntry.d.ts +15 -16
- package/dist/react/components/resolvable/configurationForm/ConfigurationFormEntry.js +98 -88
- package/dist/react/components/resolvable/configurationForm/ConfigurationFormEntry.js.map +1 -1
- package/dist/react/components/resolvable/configurationForm/getSectionDefault.d.ts +16 -16
- package/dist/react/components/resolvable/configurationForm/getSectionDefault.js +99 -99
- package/dist/react/components/resolvable/configurationForm/getSectionDefault.js.map +1 -1
- package/dist/react/hooks/useFin5BinUrl.d.ts +6 -6
- package/dist/react/hooks/useFin5BinUrl.js +15 -15
- package/dist/react/hooks/useFin5ColorScheme.d.ts +2 -2
- package/dist/react/hooks/useFin5ColorScheme.js +55 -56
- package/dist/react/hooks/useFin5ColorScheme.js.map +1 -1
- package/dist/react/hooks/useScreenSize.d.ts +7 -7
- package/dist/react/hooks/useScreenSize.js +31 -31
- package/dist_es/fantomProps/createFin5Props/index.d.ts +12 -12
- package/dist_es/fantomProps/createFin5Props/index.js +140 -140
- package/dist_es/fantomProps/createFin5Props/index.js.map +1 -1
- package/dist_es/fantomProps/createFin5Props/runCreateFin5Props.d.ts +2 -2
- package/dist_es/fantomProps/createFin5Props/runCreateFin5Props.js +15 -15
- package/dist_es/fantomProps/createFin5Props/runCreateFin5Props.js.map +1 -1
- package/dist_es/fantomProps/fantomPropsToObject.d.ts +8 -8
- package/dist_es/fantomProps/fantomPropsToObject.js +178 -178
- package/dist_es/fantomProps/fantomPropsToObject.js.map +1 -1
- package/dist_es/fantomProps/generateJsonFromFantomPropsFile.d.ts +4 -4
- package/dist_es/fantomProps/generateJsonFromFantomPropsFile.js +12 -12
- package/dist_es/fantomProps/localePropsToJson.d.ts +1 -1
- package/dist_es/fantomProps/localePropsToJson.js +21 -21
- package/dist_es/fantomProps/localePropsToJson.js.map +1 -1
- package/dist_es/fantomProps/readFantomPropsFile.d.ts +5 -5
- package/dist_es/fantomProps/readFantomPropsFile.js +38 -39
- package/dist_es/fantomProps/readFantomPropsFile.js.map +1 -1
- package/dist_es/fin5Top/fin5FileUpload.d.ts +24 -24
- package/dist_es/fin5Top/fin5FileUpload.js +47 -47
- package/dist_es/fin5Top/fin5FileUpload.js.map +1 -1
- package/dist_es/fin5Top/fin5Top.d.ts +188 -188
- package/dist_es/fin5Top/fin5Top.js +81 -81
- package/dist_es/fin5Top/fin5Top.js.map +1 -1
- package/dist_es/fin5Top/finEdge2Cloud.d.ts +6 -6
- package/dist_es/fin5Top/finEdge2Cloud.js +11 -11
- package/dist_es/fin5Top/getFin5BinUrl.d.ts +2 -2
- package/dist_es/fin5Top/getFin5BinUrl.js +5 -5
- package/dist_es/fin5Top/openFin5Alarm.d.ts +22 -22
- package/dist_es/fin5Top/openFin5Alarm.js +19 -19
- package/dist_es/fin5Top/openFin5Alarm.js.map +1 -1
- package/dist_es/fin5Top/openFin5Historian.d.ts +3 -3
- package/dist_es/fin5Top/openFin5Historian.js +15 -15
- package/dist_es/fin5Top/openFin5Historian.js.map +1 -1
- package/dist_es/fin5Top/useFin5AppURLHashParameter.d.ts +18 -18
- package/dist_es/fin5Top/useFin5AppURLHashParameter.js +124 -124
- package/dist_es/fin5Top/useFin5AppURLHashParameter.js.map +1 -1
- package/dist_es/index.d.ts +35 -35
- package/dist_es/index.js +53 -53
- package/dist_es/jobs/jobUtils.d.ts +14 -14
- package/dist_es/jobs/jobUtils.js +9 -9
- package/dist_es/react/app/Fin5AppContainer.d.ts +36 -36
- package/dist_es/react/app/Fin5AppContainer.js +132 -132
- package/dist_es/react/app/Fin5AppContainer.js.map +1 -1
- package/dist_es/react/app/Fin5AppRootStore.d.ts +42 -42
- package/dist_es/react/app/Fin5AppRootStore.js +110 -110
- package/dist_es/react/app/Fin5AppRootStore.js.map +1 -1
- package/dist_es/react/components/ErrorBoundary.d.ts +57 -57
- package/dist_es/react/components/ErrorBoundary.js +123 -123
- package/dist_es/react/components/ErrorDisplayer.d.ts +19 -19
- package/dist_es/react/components/ErrorDisplayer.js +28 -28
- package/dist_es/react/components/ErrorDisplayer.js.map +1 -1
- package/dist_es/react/components/Loader.d.ts +9 -9
- package/dist_es/react/components/Loader.js +12 -12
- package/dist_es/react/components/LoadingSpinner.d.ts +2 -2
- package/dist_es/react/components/LoadingSpinner.js +20 -20
- package/dist_es/react/components/RecordImage.d.ts +20 -20
- package/dist_es/react/components/RecordImage.js +24 -24
- package/dist_es/react/components/RecordImage.js.map +1 -1
- package/dist_es/react/components/charts/QRCode.d.ts +25 -25
- package/dist_es/react/components/charts/QRCode.js +52 -52
- package/dist_es/react/components/charts/QRCode.js.map +1 -1
- package/dist_es/react/components/charts/line-bar/Chart.d.ts +166 -166
- package/dist_es/react/components/charts/line-bar/Chart.js +415 -415
- package/dist_es/react/components/charts/line-bar/Chart.js.map +1 -1
- package/dist_es/react/components/charts/line-bar/HGridChart.d.ts +58 -58
- package/dist_es/react/components/charts/line-bar/HGridChart.js +250 -250
- package/dist_es/react/components/charts/line-bar/HGridChart.js.map +1 -1
- package/dist_es/react/components/charts/pie/PieChart.d.ts +94 -94
- package/dist_es/react/components/charts/pie/PieChart.js +177 -177
- package/dist_es/react/components/charts/pie/PieChart.js.map +1 -1
- package/dist_es/react/components/charts/pie/SimplePieChart.d.ts +21 -21
- package/dist_es/react/components/charts/pie/SimplePieChart.js +25 -25
- package/dist_es/react/components/graphics/GraphicViewer.d.ts +10 -10
- package/dist_es/react/components/graphics/GraphicViewer.js +22 -22
- package/dist_es/react/components/graphics/GraphicsTabViewer.d.ts +17 -17
- package/dist_es/react/components/graphics/GraphicsTabViewer.js +60 -60
- package/dist_es/react/components/graphics/GraphicsTabViewer.js.map +1 -1
- package/dist_es/react/components/makeCustomElement.d.ts +16 -16
- package/dist_es/react/components/makeCustomElement.js +142 -142
- package/dist_es/react/components/makeCustomElement.js.map +1 -1
- package/dist_es/react/components/navigation/BasicLayout.d.ts +41 -41
- package/dist_es/react/components/navigation/BasicLayout.js +124 -124
- package/dist_es/react/components/navigation/BasicLayout.js.map +1 -1
- package/dist_es/react/components/navigation/HeaderSiderLayout.d.ts +13 -13
- package/dist_es/react/components/navigation/HeaderSiderLayout.js +80 -80
- package/dist_es/react/components/navigation/HeaderSiderLayout.js.map +1 -1
- package/dist_es/react/components/navigation/MenuPage.d.ts +37 -37
- package/dist_es/react/components/navigation/MenuPage.js +30 -30
- package/dist_es/react/components/navigation/MenuPage.js.map +1 -1
- package/dist_es/react/components/navigation/MenuTrigger.d.ts +9 -9
- package/dist_es/react/components/navigation/MenuTrigger.js +28 -28
- package/dist_es/react/components/navigation/ReactRouterHeaderSiderLayout.d.ts +11 -11
- package/dist_es/react/components/navigation/ReactRouterHeaderSiderLayout.js +18 -18
- package/dist_es/react/components/navigation/ReactRouterHeaderSiderLayout.js.map +1 -1
- package/dist_es/react/components/navigation/ReactRouterLayout.d.ts +45 -46
- package/dist_es/react/components/navigation/ReactRouterLayout.js +99 -99
- package/dist_es/react/components/navigation/ReactRouterLayout.js.map +1 -1
- package/dist_es/react/components/navigation/customRouting/Router.d.ts +12 -12
- package/dist_es/react/components/navigation/customRouting/Router.js +18 -18
- package/dist_es/react/components/navigation/customRouting/Router.js.map +1 -1
- package/dist_es/react/components/navigation/customRouting/RouterLayout.d.ts +11 -11
- package/dist_es/react/components/navigation/customRouting/RouterLayout.js +34 -34
- package/dist_es/react/components/navigation/customRouting/RouterLayout.js.map +1 -1
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationForm.d.ts +26 -27
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationForm.js +64 -64
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationForm.js.map +1 -1
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationFormEntry.d.ts +15 -16
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationFormEntry.js +58 -58
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationFormEntry.js.map +1 -1
- package/dist_es/react/components/resolvable/configurationForm/getSectionDefault.d.ts +16 -16
- package/dist_es/react/components/resolvable/configurationForm/getSectionDefault.js +94 -94
- package/dist_es/react/components/resolvable/configurationForm/getSectionDefault.js.map +1 -1
- package/dist_es/react/hooks/useFin5BinUrl.d.ts +6 -6
- package/dist_es/react/hooks/useFin5BinUrl.js +11 -11
- package/dist_es/react/hooks/useFin5ColorScheme.d.ts +2 -2
- package/dist_es/react/hooks/useFin5ColorScheme.js +52 -52
- package/dist_es/react/hooks/useFin5ColorScheme.js.map +1 -1
- package/dist_es/react/hooks/useScreenSize.d.ts +7 -7
- package/dist_es/react/hooks/useScreenSize.js +27 -27
- package/package.json +26 -49
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HGridChart.js","sourceRoot":"","sources":["../../../../../src/react/components/charts/line-bar/HGridChart.tsx"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"HGridChart.js","sourceRoot":"","sources":["../../../../../src/react/components/charts/line-bar/HGridChart.tsx"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,yDAA0C;AAM1C,iDAYsB;AACtB,8CAAwE;AACxE,+CAA4C;AAC5C,yCAAoC;AACpC,gEAA4D;AAC5D,mCAQgB;AAEhB,IAAK,UAIJ;AAJD,WAAK,UAAU;IACd,2BAAa,CAAA;IACb,yBAA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AA;IAEvC,OAAO,CACN,uCAAK,SAAS,EAAE,SAAS;QACxB,8BAAC,aAAK,IACL,WAAW,EAAE,WAAW,EACxB,MAAM,QACN,eAAe,EAAE,wBAAwB,EACzC,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,EAAE,qBAAqB,EAAE,CAAC,EAAE,EAC1C,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,IAAA,4BAAoB,EACnC,IAAI,IAAI,qBAAK,CAAC,IAAI,EAAE,EACpB,cAAc,CACd,EACD,oBAAoB,EAAE,oBAAoB,EAC1C,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE;gBACb,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC;aACpC,EACD,SAAS,EAAC,IAAI,EACd,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE;gBAChB,QAAQ,EAAE,QAAQ;aAClB,EACD,oBAAoB,EAAE;gBACrB,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;gBAChC,QAAQ,EAAE,QAAQ;aAClB,EACD,qBAAqB,EAAE;gBACtB,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,CAAC;gBACT,OAAO,EAAE,IAAI;aACb,GACA,CACG,CACN,CAAA;AACF,CAAC,CAAC,CAAA;AAEF,kBAAe,kBAAU,CAAA"}
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import * as am5 from '@amcharts/amcharts5';
|
|
2
|
-
import * as am5percent from '@amcharts/amcharts5/percent';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export
|
|
5
|
-
[Property in keyof am5.IInterfaceColorsSettings]: string;
|
|
6
|
-
};
|
|
7
|
-
export interface PieChartColorPalette {
|
|
8
|
-
interfaceColors?: Partial<PieChartInterfaceColors>;
|
|
9
|
-
series?: string[];
|
|
10
|
-
}
|
|
11
|
-
export interface PieChartSliceData {
|
|
12
|
-
value: number;
|
|
13
|
-
category: string;
|
|
14
|
-
}
|
|
15
|
-
export interface PieChartProps {
|
|
16
|
-
/**
|
|
17
|
-
* Data used to populate the chart
|
|
18
|
-
*/
|
|
19
|
-
data: PieChartSliceData[];
|
|
20
|
-
/**
|
|
21
|
-
* Color palette for the chart slices and interface colors @see https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/#Interface_colors
|
|
22
|
-
*/
|
|
23
|
-
colorPalette?: Partial<PieChartColorPalette>;
|
|
24
|
-
/**
|
|
25
|
-
* Number formatting options @see https://www.amcharts.com/docs/v5/tutorials/formatting-date-time-and-numbers-using-intl-object/#Formatting_numbers
|
|
26
|
-
*/
|
|
27
|
-
numberFormat?: Intl.NumberFormatOptions;
|
|
28
|
-
/**
|
|
29
|
-
* amcharts5 theme classes to be used by the chart @see https://www.amcharts.com/docs/v5/concepts/themes/
|
|
30
|
-
*/
|
|
31
|
-
chartThemes?: typeof am5.Theme[];
|
|
32
|
-
/**
|
|
33
|
-
* Settings for chart customization @see https://www.amcharts.com/docs/v5/reference/piechart/#Settings
|
|
34
|
-
* The function accepts the chart root as a parameter to allow layout configuration.
|
|
35
|
-
*/
|
|
36
|
-
chartSettingsProvider?: (root: am5.Root) => am5percent.IPieChartSettings;
|
|
37
|
-
/**
|
|
38
|
-
* Function to get settings for legend customization @see https://www.amcharts.com/docs/v5/reference/legend/#Settings
|
|
39
|
-
* The function accepts the chart root as a parameter to allow layout configuration.
|
|
40
|
-
*/
|
|
41
|
-
legendSettingsProvider?: (root: am5.Root) => am5.ILegendSettings;
|
|
42
|
-
/**
|
|
43
|
-
* Settings for legend labels customization @see https://www.amcharts.com/docs/v5/reference/label/#Settings
|
|
44
|
-
*/
|
|
45
|
-
legendLabelsSettings?: Partial<am5.ILabelSettings>;
|
|
46
|
-
/**
|
|
47
|
-
* Settings for legend value labels customization @see https://www.amcharts.com/docs/v5/reference/label/#Settings
|
|
48
|
-
*/
|
|
49
|
-
legendValueLabelsSettings?: Partial<am5.ILabelSettings>;
|
|
50
|
-
/**
|
|
51
|
-
* Settings for legend markers customization @see https://www.amcharts.com/docs/v5/reference/label/#Settings
|
|
52
|
-
*/
|
|
53
|
-
legendMarkersSettings?: Partial<am5.ILabelSettings>;
|
|
54
|
-
/**
|
|
55
|
-
* Settings for chart series customization @see https://www.amcharts.com/docs/v5/reference/pieseries/#Settings
|
|
56
|
-
*/
|
|
57
|
-
seriesSettings?: am5percent.IPieSeriesSettings;
|
|
58
|
-
/**
|
|
59
|
-
* Settings for series labels customization @see https://www.amcharts.com/docs/v5/reference/pieseries/#Settings
|
|
60
|
-
*/
|
|
61
|
-
seriesLabelsSettings?: Partial<am5.IRadialLabelSettings>;
|
|
62
|
-
/**
|
|
63
|
-
* Settings for central label customization, useful for donut charts, if not specified no center label will be shown @see https://www.amcharts.com/docs/v5/reference/radiallabel/#Settings
|
|
64
|
-
*/
|
|
65
|
-
centerLabelSettings?: am5.ILabelSettings;
|
|
66
|
-
/**
|
|
67
|
-
* Settings for pie slices customization @see https://www.amcharts.com/docs/v5/reference/slice/#Settings
|
|
68
|
-
*/
|
|
69
|
-
slicesSettings?: Partial<am5.ISliceSettings>;
|
|
70
|
-
/**
|
|
71
|
-
* List of adapters to be applied to the slices @see https://www.amcharts.com/docs/v5/concepts/settings/adapters
|
|
72
|
-
*/
|
|
73
|
-
sliceAdapters?: SliceAdapter[];
|
|
74
|
-
/**
|
|
75
|
-
* Optional DOM id for the chart container, if not specified it will be automatically generated.
|
|
76
|
-
* It can also be an HTMLElement, in that case the element will be used as a parent.
|
|
77
|
-
*/
|
|
78
|
-
DOMtargetId?: string | HTMLElement;
|
|
79
|
-
}
|
|
80
|
-
export
|
|
81
|
-
T,
|
|
82
|
-
(context: {
|
|
83
|
-
root: am5.Root;
|
|
84
|
-
chart: am5percent.PieChart;
|
|
85
|
-
series: am5percent.PieSeries;
|
|
86
|
-
}) => (value: am5.ISliceSettings[T], target: am5.Slice, key: T) => am5.ISliceSettings[T]
|
|
87
|
-
];
|
|
88
|
-
/**
|
|
89
|
-
* Highly customizable pie chart component based on amcharts5
|
|
90
|
-
* @see https://www.amcharts.com/docs/v5/charts/percent-charts/pie-chart/
|
|
91
|
-
*
|
|
92
|
-
* This component wraps some of the chart configuration trying to make it more react-friendly
|
|
93
|
-
*/
|
|
94
|
-
export declare const PieChart: React.FC<PieChartProps>;
|
|
1
|
+
import * as am5 from '@amcharts/amcharts5';
|
|
2
|
+
import * as am5percent from '@amcharts/amcharts5/percent';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export type PieChartInterfaceColors = {
|
|
5
|
+
[Property in keyof am5.IInterfaceColorsSettings]: string;
|
|
6
|
+
};
|
|
7
|
+
export interface PieChartColorPalette {
|
|
8
|
+
interfaceColors?: Partial<PieChartInterfaceColors>;
|
|
9
|
+
series?: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface PieChartSliceData {
|
|
12
|
+
value: number;
|
|
13
|
+
category: string;
|
|
14
|
+
}
|
|
15
|
+
export interface PieChartProps {
|
|
16
|
+
/**
|
|
17
|
+
* Data used to populate the chart
|
|
18
|
+
*/
|
|
19
|
+
data: PieChartSliceData[];
|
|
20
|
+
/**
|
|
21
|
+
* Color palette for the chart slices and interface colors @see https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/#Interface_colors
|
|
22
|
+
*/
|
|
23
|
+
colorPalette?: Partial<PieChartColorPalette>;
|
|
24
|
+
/**
|
|
25
|
+
* Number formatting options @see https://www.amcharts.com/docs/v5/tutorials/formatting-date-time-and-numbers-using-intl-object/#Formatting_numbers
|
|
26
|
+
*/
|
|
27
|
+
numberFormat?: Intl.NumberFormatOptions;
|
|
28
|
+
/**
|
|
29
|
+
* amcharts5 theme classes to be used by the chart @see https://www.amcharts.com/docs/v5/concepts/themes/
|
|
30
|
+
*/
|
|
31
|
+
chartThemes?: (typeof am5.Theme)[];
|
|
32
|
+
/**
|
|
33
|
+
* Settings for chart customization @see https://www.amcharts.com/docs/v5/reference/piechart/#Settings
|
|
34
|
+
* The function accepts the chart root as a parameter to allow layout configuration.
|
|
35
|
+
*/
|
|
36
|
+
chartSettingsProvider?: (root: am5.Root) => am5percent.IPieChartSettings;
|
|
37
|
+
/**
|
|
38
|
+
* Function to get settings for legend customization @see https://www.amcharts.com/docs/v5/reference/legend/#Settings
|
|
39
|
+
* The function accepts the chart root as a parameter to allow layout configuration.
|
|
40
|
+
*/
|
|
41
|
+
legendSettingsProvider?: (root: am5.Root) => am5.ILegendSettings;
|
|
42
|
+
/**
|
|
43
|
+
* Settings for legend labels customization @see https://www.amcharts.com/docs/v5/reference/label/#Settings
|
|
44
|
+
*/
|
|
45
|
+
legendLabelsSettings?: Partial<am5.ILabelSettings>;
|
|
46
|
+
/**
|
|
47
|
+
* Settings for legend value labels customization @see https://www.amcharts.com/docs/v5/reference/label/#Settings
|
|
48
|
+
*/
|
|
49
|
+
legendValueLabelsSettings?: Partial<am5.ILabelSettings>;
|
|
50
|
+
/**
|
|
51
|
+
* Settings for legend markers customization @see https://www.amcharts.com/docs/v5/reference/label/#Settings
|
|
52
|
+
*/
|
|
53
|
+
legendMarkersSettings?: Partial<am5.ILabelSettings>;
|
|
54
|
+
/**
|
|
55
|
+
* Settings for chart series customization @see https://www.amcharts.com/docs/v5/reference/pieseries/#Settings
|
|
56
|
+
*/
|
|
57
|
+
seriesSettings?: am5percent.IPieSeriesSettings;
|
|
58
|
+
/**
|
|
59
|
+
* Settings for series labels customization @see https://www.amcharts.com/docs/v5/reference/pieseries/#Settings
|
|
60
|
+
*/
|
|
61
|
+
seriesLabelsSettings?: Partial<am5.IRadialLabelSettings>;
|
|
62
|
+
/**
|
|
63
|
+
* Settings for central label customization, useful for donut charts, if not specified no center label will be shown @see https://www.amcharts.com/docs/v5/reference/radiallabel/#Settings
|
|
64
|
+
*/
|
|
65
|
+
centerLabelSettings?: am5.ILabelSettings;
|
|
66
|
+
/**
|
|
67
|
+
* Settings for pie slices customization @see https://www.amcharts.com/docs/v5/reference/slice/#Settings
|
|
68
|
+
*/
|
|
69
|
+
slicesSettings?: Partial<am5.ISliceSettings>;
|
|
70
|
+
/**
|
|
71
|
+
* List of adapters to be applied to the slices @see https://www.amcharts.com/docs/v5/concepts/settings/adapters
|
|
72
|
+
*/
|
|
73
|
+
sliceAdapters?: SliceAdapter[];
|
|
74
|
+
/**
|
|
75
|
+
* Optional DOM id for the chart container, if not specified it will be automatically generated.
|
|
76
|
+
* It can also be an HTMLElement, in that case the element will be used as a parent.
|
|
77
|
+
*/
|
|
78
|
+
DOMtargetId?: string | HTMLElement;
|
|
79
|
+
}
|
|
80
|
+
export type SliceAdapter<T extends keyof am5.ISliceSettings = keyof am5.ISliceSettings> = [
|
|
81
|
+
T,
|
|
82
|
+
(context: {
|
|
83
|
+
root: am5.Root;
|
|
84
|
+
chart: am5percent.PieChart;
|
|
85
|
+
series: am5percent.PieSeries;
|
|
86
|
+
}) => (value: am5.ISliceSettings[T], target: am5.Slice, key: T) => am5.ISliceSettings[T]
|
|
87
|
+
];
|
|
88
|
+
/**
|
|
89
|
+
* Highly customizable pie chart component based on amcharts5
|
|
90
|
+
* @see https://www.amcharts.com/docs/v5/charts/percent-charts/pie-chart/
|
|
91
|
+
*
|
|
92
|
+
* This component wraps some of the chart configuration trying to make it more react-friendly
|
|
93
|
+
*/
|
|
94
|
+
export declare const PieChart: React.FC<PieChartProps>;
|