@apexcura/ui-components 0.0.14-Beta119 → 0.0.14-Beta120

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.css CHANGED
@@ -350,6 +350,9 @@ video {
350
350
  .table {
351
351
  display: table;
352
352
  }
353
+ .hidden {
354
+ display: none;
355
+ }
353
356
  .h-5 {
354
357
  height: 1.25rem;
355
358
  }
package/dist/index.js CHANGED
@@ -1114,13 +1114,34 @@ var CircleDonut = (props) => {
1114
1114
  };
1115
1115
  const options = {
1116
1116
  responsive: true,
1117
- rotation: -90,
1117
+ rotation: -180,
1118
1118
  plugins: {
1119
1119
  legend: {
1120
- position: "left"
1120
+ position: "left",
1121
+ labels: {
1122
+ generateLabels: (chart) => {
1123
+ const dataset = chart.data.datasets[0];
1124
+ return chart.data.labels.map((label, index) => {
1125
+ const value = dataset.data[index];
1126
+ return {
1127
+ text: `${label}: ${value}`,
1128
+ fillStyle: dataset.backgroundColor[index],
1129
+ hidden: isNaN(dataset.data[index]) || dataset.data[index] === null,
1130
+ index
1131
+ };
1132
+ });
1133
+ }
1134
+ }
1121
1135
  },
1122
1136
  tooltip: {
1123
- enabled: true
1137
+ enabled: true,
1138
+ callbacks: {
1139
+ label: function(context) {
1140
+ const label = context.label || "";
1141
+ const value = context.raw || 0;
1142
+ return `${label}: ${value}`;
1143
+ }
1144
+ }
1124
1145
  }
1125
1146
  }
1126
1147
  };
package/dist/index.mjs CHANGED
@@ -1059,13 +1059,34 @@ var CircleDonut = (props) => {
1059
1059
  };
1060
1060
  const options = {
1061
1061
  responsive: true,
1062
- rotation: -90,
1062
+ rotation: -180,
1063
1063
  plugins: {
1064
1064
  legend: {
1065
- position: "left"
1065
+ position: "left",
1066
+ labels: {
1067
+ generateLabels: (chart) => {
1068
+ const dataset = chart.data.datasets[0];
1069
+ return chart.data.labels.map((label, index) => {
1070
+ const value = dataset.data[index];
1071
+ return {
1072
+ text: `${label}: ${value}`,
1073
+ fillStyle: dataset.backgroundColor[index],
1074
+ hidden: isNaN(dataset.data[index]) || dataset.data[index] === null,
1075
+ index
1076
+ };
1077
+ });
1078
+ }
1079
+ }
1066
1080
  },
1067
1081
  tooltip: {
1068
- enabled: true
1082
+ enabled: true,
1083
+ callbacks: {
1084
+ label: function(context) {
1085
+ const label = context.label || "";
1086
+ const value = context.raw || 0;
1087
+ return `${label}: ${value}`;
1088
+ }
1089
+ }
1069
1090
  }
1070
1091
  }
1071
1092
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta119",
3
+ "version": "0.0.14-Beta120",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",