@fto-consult/expo-ui 2.24.3 → 2.24.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "2.24.3",
3
+ "version": "2.24.5",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,6 +11,7 @@ const AppexChartComponent = React.forwardRef(({chartContext,style,options,...pro
11
11
  chartContext.current.render();
12
12
  React.setRef(ref,chartContext.current)
13
13
  return ()=>{
14
+ React.setRef(ref,chartContext.current)
14
15
  destroyChart(chartContext.current);
15
16
  }
16
17
  },[]);
@@ -25,8 +25,8 @@ const ChartComponent = React.forwardRef(({options,style,height,width,chartId:cus
25
25
  options.chart = defaultObj(options.chart);
26
26
  const chartIdRef = React.useRef(options.chart.id,customChartID,uniqid("chart-id"));
27
27
  const chartId = chartIdRef.current;
28
- width = options.chart.width = defaultVal(options.chart.width,width);
29
- height = options.chart.height = defaultVal(options.chart.height,height)
28
+ options.chart.width = defaultVal(options.chart.width,width);
29
+ options.chart.height = defaultVal(options.chart.height,height,350)
30
30
  options.chart.id = chartId;
31
31
  testID = defaultStr(testID,"RN_ChartComponent");
32
32
  React.useEffect(()=>{
@@ -1722,11 +1722,11 @@ export default class CommonDatagridComponent extends AppComponent {
1722
1722
  const xLabels = chartOptions.xaxis.labels = defaultObj(chartOptions.xaxis.labels);
1723
1723
  xLabels.style = defaultObj(xLabels.style)
1724
1724
  xLabels.style.colors = (Array.isArray(xLabels.style.colors) && xLabels.style.colors.length || theme.Colors.isValid(xLabels.style.colors)) ? xLabels.style.colors : labelColor;
1725
- chartOptions.yaxis = extendObj(true,{},{type: 'category'},chartProps.yaxis);
1726
1725
  } else {
1727
1726
  delete chartOptions.xaxis;
1728
1727
  //delete chartOptions.yaxis;
1729
1728
  }
1729
+ chartOptions.yaxis = extendObj(true,{},{type: 'category'},chartProps.yaxis);
1730
1730
  const yLabels = chartOptions.yaxis.labels = defaultObj(chartOptions.yaxis.labels);
1731
1731
  yLabels.style = defaultObj(yLabels.style)
1732
1732
  yLabels.style.colors = (Array.isArray(yLabels.style.colors) && yLabels.style.colors.length || theme.Colors.isValid(yLabels.style.colors)) ? yLabels.style.colors : labelColor;