awing-library 2.1.80-beta → 2.1.81-beta

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.
@@ -1,13 +1,13 @@
1
1
  import { DataObject } from '../../AWING/interface';
2
2
  import { ChartOptions, ChartType } from 'chart.js';
3
3
  import 'chartjs-adapter-moment';
4
- import { ChartProps } from 'react-chartjs-2/dist/types';
5
- interface IChartJsContainer extends ChartProps {
4
+ import { BaseChartComponent, ChartProps } from 'react-chartjs-2/dist/types';
5
+ export interface IChartJsContainer extends ChartProps {
6
6
  width?: number;
7
7
  height?: number;
8
8
  timeline?: number;
9
9
  optionCustom?: ChartOptions<ChartType>;
10
- chart: any;
10
+ chart: BaseChartComponent;
11
11
  dataChart: DataObject[];
12
12
  optionsDefault?: boolean;
13
13
  }
@@ -170,8 +170,8 @@ function DataInput(props) {
170
170
  }
171
171
  case 'number': {
172
172
  return ((0, jsx_runtime_1.jsx)(AWING_1.NumberFormat, __assign({ id: fieldName.toString(), name: fieldName.toString(), fullWidth: true, variant: "standard" }, other, { value: value !== null && value !== void 0 ? value : '', onChange: function (event) {
173
- var newValue = event.target.value;
174
- onChange(event.target.value, checkValidationValue(fieldDefinition, newValue));
173
+ var newValue = Number(event.target.value);
174
+ onChange(newValue, checkValidationValue(fieldDefinition, newValue));
175
175
  }, error: error, helperText: !disableHelperText && error
176
176
  ? (_e = fieldDefinition.helperText) !== null && _e !== void 0 ? _e : t('Common.InvalidData')
177
177
  : '' })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.80-beta",
3
+ "version": "2.1.81-beta",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",