ui-kit-ck-consultant 0.5.203 → 0.5.206
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/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -2107,14 +2107,16 @@ var BarChart = /*#__PURE__*/function (_React$Component) {
|
|
2107
2107
|
var optionsCurrency = {
|
2108
2108
|
style: 'currency',
|
2109
2109
|
currency: 'EUR',
|
2110
|
-
minimumFractionDigits: digits
|
2110
|
+
minimumFractionDigits: digits,
|
2111
|
+
maximumFractionDigits: digits
|
2111
2112
|
};
|
2112
2113
|
var value = new Intl.NumberFormat('fr-FR', optionsCurrency).format(tooltipItem.yLabel);
|
2113
2114
|
return name + " : " + value;
|
2114
2115
|
} else if (_this.props.format === 'percentage') {
|
2115
2116
|
var optionsPercentage = {
|
2116
2117
|
style: 'percent',
|
2117
|
-
minimumFractionDigits: digits
|
2118
|
+
minimumFractionDigits: digits,
|
2119
|
+
maximumFractionDigits: digits
|
2118
2120
|
};
|
2119
2121
|
|
2120
2122
|
var _value = new Intl.NumberFormat('fr-FR', optionsPercentage).format(tooltipItem.yLabel / 100);
|
@@ -2122,7 +2124,8 @@ var BarChart = /*#__PURE__*/function (_React$Component) {
|
|
2122
2124
|
return name + " : " + _value;
|
2123
2125
|
} else {
|
2124
2126
|
var options = {
|
2125
|
-
minimumFractionDigits: digits
|
2127
|
+
minimumFractionDigits: digits,
|
2128
|
+
maximumFractionDigits: digits
|
2126
2129
|
};
|
2127
2130
|
|
2128
2131
|
var _value2 = new Intl.NumberFormat('fr-FR', options).format(tooltipItem.yLabel);
|
@@ -2324,8 +2327,8 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
|
|
2324
2327
|
data: this.createDatasets(this.props.data.length),
|
2325
2328
|
legend: {
|
2326
2329
|
display: this.legendDisplayData(),
|
2327
|
-
position: 'bottom',
|
2328
|
-
align: 'center',
|
2330
|
+
position: this.props.positionLegend || 'bottom',
|
2331
|
+
align: this.props.alignLegend || 'center',
|
2329
2332
|
labels: {
|
2330
2333
|
usePointStyle: true,
|
2331
2334
|
boxWidth: 10,
|
@@ -9870,7 +9873,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9870
9873
|
return 1;
|
9871
9874
|
} else {
|
9872
9875
|
if (_this.props.enabledDates && _this.props.enabledDates.length) {
|
9873
|
-
if (_this.props.enabledDates.includes(currentDate)) {
|
9876
|
+
if (_this.props.enabledDates.includes(currentDate) && !(_this.props.minDate && moment(_this.props.minDate).isAfter(moment(currentDate)))) {
|
9874
9877
|
return 0;
|
9875
9878
|
} else {
|
9876
9879
|
return 2;
|