dp-widgets-framework 1.3.1 → 1.3.3
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.esm.js +17 -11
- package/dist/index.js +17 -11
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -15038,7 +15038,7 @@ const Line = /* #__PURE__ */ createTypedChart('line', LineController);
|
|
|
15038
15038
|
const Bar = /* #__PURE__ */ createTypedChart('bar', BarController);
|
|
15039
15039
|
const Pie = /* #__PURE__ */ createTypedChart('pie', PieController);
|
|
15040
15040
|
|
|
15041
|
-
Chart$1.register(CategoryScale, LinearScale, BarElement, plugin_title, plugin_tooltip, plugin_legend);
|
|
15041
|
+
Chart$1.register(CategoryScale, LinearScale, BarElement, plugin_title, plugin_tooltip, plugin_legend, ChartDataLabels);
|
|
15042
15042
|
function BarChart({ orientation, title, data, options, className, units, content }) {
|
|
15043
15043
|
const formatValue = (value) => {
|
|
15044
15044
|
const numValue = typeof value === 'string' ? parseFloat(value) : value;
|
|
@@ -15071,6 +15071,9 @@ function BarChart({ orientation, title, data, options, className, units, content
|
|
|
15071
15071
|
datalabels: {
|
|
15072
15072
|
display: (context) => { var _a; return context.dataset.data[context.dataIndex] !== null && ((_a = content === null || content === void 0 ? void 0 : content.showLabels) !== null && _a !== void 0 ? _a : false); },
|
|
15073
15073
|
color: "white",
|
|
15074
|
+
anchor: "center",
|
|
15075
|
+
align: "center",
|
|
15076
|
+
offset: 0,
|
|
15074
15077
|
font: { size: 12 },
|
|
15075
15078
|
formatter: (value) => value,
|
|
15076
15079
|
},
|
|
@@ -15113,10 +15116,10 @@ function BarChart({ orientation, title, data, options, className, units, content
|
|
|
15113
15116
|
},
|
|
15114
15117
|
},
|
|
15115
15118
|
};
|
|
15116
|
-
return (jsxRuntimeExports.jsx(Bar, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions
|
|
15119
|
+
return (jsxRuntimeExports.jsx(Bar, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions }));
|
|
15117
15120
|
}
|
|
15118
15121
|
|
|
15119
|
-
Chart$1.register(CategoryScale, LinearScale, BarElement, plugin_title, plugin_tooltip, plugin_legend);
|
|
15122
|
+
Chart$1.register(CategoryScale, LinearScale, BarElement, plugin_title, plugin_tooltip, plugin_legend, ChartDataLabels);
|
|
15120
15123
|
function SeriesChart({ orientation, title, data, options, className, units, content }) {
|
|
15121
15124
|
const formatValue = (value) => {
|
|
15122
15125
|
const numValue = typeof value === 'string' ? parseFloat(value) : value;
|
|
@@ -15149,6 +15152,9 @@ function SeriesChart({ orientation, title, data, options, className, units, cont
|
|
|
15149
15152
|
datalabels: {
|
|
15150
15153
|
display: (context) => { var _a; return context.dataset.data[context.dataIndex] !== null && ((_a = content === null || content === void 0 ? void 0 : content.showLabels) !== null && _a !== void 0 ? _a : false); },
|
|
15151
15154
|
color: "white",
|
|
15155
|
+
anchor: "center",
|
|
15156
|
+
align: "center",
|
|
15157
|
+
offset: 0,
|
|
15152
15158
|
font: { size: 12 },
|
|
15153
15159
|
formatter: (value) => value,
|
|
15154
15160
|
},
|
|
@@ -15187,10 +15193,10 @@ function SeriesChart({ orientation, title, data, options, className, units, cont
|
|
|
15187
15193
|
},
|
|
15188
15194
|
},
|
|
15189
15195
|
};
|
|
15190
|
-
return (jsxRuntimeExports.jsx(Bar, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions
|
|
15196
|
+
return (jsxRuntimeExports.jsx(Bar, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions }));
|
|
15191
15197
|
}
|
|
15192
15198
|
|
|
15193
|
-
Chart$1.register(CategoryScale, LinearScale, PointElement, LineElement, plugin_title, plugin_tooltip, plugin_legend);
|
|
15199
|
+
Chart$1.register(CategoryScale, LinearScale, PointElement, LineElement, plugin_title, plugin_tooltip, plugin_legend, ChartDataLabels);
|
|
15194
15200
|
function SeriesLineChart({ orientation, title, data, options, className, units, content }) {
|
|
15195
15201
|
const formatValue = (value) => {
|
|
15196
15202
|
const numValue = typeof value === 'string' ? parseFloat(value) : value;
|
|
@@ -15272,10 +15278,10 @@ function SeriesLineChart({ orientation, title, data, options, className, units,
|
|
|
15272
15278
|
},
|
|
15273
15279
|
},
|
|
15274
15280
|
};
|
|
15275
|
-
return (jsxRuntimeExports.jsx(Line, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions
|
|
15281
|
+
return (jsxRuntimeExports.jsx(Line, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions }));
|
|
15276
15282
|
}
|
|
15277
15283
|
|
|
15278
|
-
Chart$1.register(ArcElement, plugin_tooltip, plugin_legend);
|
|
15284
|
+
Chart$1.register(ArcElement, plugin_tooltip, plugin_legend, ChartDataLabels);
|
|
15279
15285
|
const PieChart = (props) => {
|
|
15280
15286
|
const { data, title, options, units, content } = props;
|
|
15281
15287
|
const formatValue = (value) => {
|
|
@@ -15300,7 +15306,7 @@ const PieChart = (props) => {
|
|
|
15300
15306
|
display: (context) => { var _a; return context.dataset.data[context.dataIndex] !== null && ((_a = content === null || content === void 0 ? void 0 : content.showLabels) !== null && _a !== void 0 ? _a : false); },
|
|
15301
15307
|
color: "white",
|
|
15302
15308
|
font: { size: 12 },
|
|
15303
|
-
formatter: (value) => value,
|
|
15309
|
+
formatter: (value) => formatValue(value),
|
|
15304
15310
|
},
|
|
15305
15311
|
title: {
|
|
15306
15312
|
display: true,
|
|
@@ -15329,10 +15335,10 @@ const PieChart = (props) => {
|
|
|
15329
15335
|
},
|
|
15330
15336
|
},
|
|
15331
15337
|
};
|
|
15332
|
-
return jsxRuntimeExports.jsx(Pie, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions
|
|
15338
|
+
return jsxRuntimeExports.jsx(Pie, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions });
|
|
15333
15339
|
};
|
|
15334
15340
|
|
|
15335
|
-
Chart$1.register(CategoryScale, LinearScale, PointElement, LineElement, plugin_title, plugin_tooltip, plugin_legend);
|
|
15341
|
+
Chart$1.register(CategoryScale, LinearScale, PointElement, LineElement, plugin_title, plugin_tooltip, plugin_legend, ChartDataLabels);
|
|
15336
15342
|
function LineChart({ title, data, options, className, units, content }) {
|
|
15337
15343
|
const formatValue = (value) => {
|
|
15338
15344
|
const numValue = typeof value === 'string' ? parseFloat(value) : value;
|
|
@@ -15406,7 +15412,7 @@ function LineChart({ title, data, options, className, units, content }) {
|
|
|
15406
15412
|
},
|
|
15407
15413
|
},
|
|
15408
15414
|
};
|
|
15409
|
-
return (jsxRuntimeExports.jsx(Line, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions
|
|
15415
|
+
return (jsxRuntimeExports.jsx(Line, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions }));
|
|
15410
15416
|
}
|
|
15411
15417
|
|
|
15412
15418
|
function DataGrid({ title, data, className }) {
|
package/dist/index.js
CHANGED
|
@@ -15065,7 +15065,7 @@ const Line = /* #__PURE__ */ createTypedChart('line', LineController);
|
|
|
15065
15065
|
const Bar = /* #__PURE__ */ createTypedChart('bar', BarController);
|
|
15066
15066
|
const Pie = /* #__PURE__ */ createTypedChart('pie', PieController);
|
|
15067
15067
|
|
|
15068
|
-
Chart$1.register(CategoryScale, LinearScale, BarElement, plugin_title, plugin_tooltip, plugin_legend);
|
|
15068
|
+
Chart$1.register(CategoryScale, LinearScale, BarElement, plugin_title, plugin_tooltip, plugin_legend, ChartDataLabels);
|
|
15069
15069
|
function BarChart({ orientation, title, data, options, className, units, content }) {
|
|
15070
15070
|
const formatValue = (value) => {
|
|
15071
15071
|
const numValue = typeof value === 'string' ? parseFloat(value) : value;
|
|
@@ -15098,6 +15098,9 @@ function BarChart({ orientation, title, data, options, className, units, content
|
|
|
15098
15098
|
datalabels: {
|
|
15099
15099
|
display: (context) => { var _a; return context.dataset.data[context.dataIndex] !== null && ((_a = content === null || content === void 0 ? void 0 : content.showLabels) !== null && _a !== void 0 ? _a : false); },
|
|
15100
15100
|
color: "white",
|
|
15101
|
+
anchor: "center",
|
|
15102
|
+
align: "center",
|
|
15103
|
+
offset: 0,
|
|
15101
15104
|
font: { size: 12 },
|
|
15102
15105
|
formatter: (value) => value,
|
|
15103
15106
|
},
|
|
@@ -15140,10 +15143,10 @@ function BarChart({ orientation, title, data, options, className, units, content
|
|
|
15140
15143
|
},
|
|
15141
15144
|
},
|
|
15142
15145
|
};
|
|
15143
|
-
return (jsxRuntimeExports.jsx(Bar, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions
|
|
15146
|
+
return (jsxRuntimeExports.jsx(Bar, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions }));
|
|
15144
15147
|
}
|
|
15145
15148
|
|
|
15146
|
-
Chart$1.register(CategoryScale, LinearScale, BarElement, plugin_title, plugin_tooltip, plugin_legend);
|
|
15149
|
+
Chart$1.register(CategoryScale, LinearScale, BarElement, plugin_title, plugin_tooltip, plugin_legend, ChartDataLabels);
|
|
15147
15150
|
function SeriesChart({ orientation, title, data, options, className, units, content }) {
|
|
15148
15151
|
const formatValue = (value) => {
|
|
15149
15152
|
const numValue = typeof value === 'string' ? parseFloat(value) : value;
|
|
@@ -15176,6 +15179,9 @@ function SeriesChart({ orientation, title, data, options, className, units, cont
|
|
|
15176
15179
|
datalabels: {
|
|
15177
15180
|
display: (context) => { var _a; return context.dataset.data[context.dataIndex] !== null && ((_a = content === null || content === void 0 ? void 0 : content.showLabels) !== null && _a !== void 0 ? _a : false); },
|
|
15178
15181
|
color: "white",
|
|
15182
|
+
anchor: "center",
|
|
15183
|
+
align: "center",
|
|
15184
|
+
offset: 0,
|
|
15179
15185
|
font: { size: 12 },
|
|
15180
15186
|
formatter: (value) => value,
|
|
15181
15187
|
},
|
|
@@ -15214,10 +15220,10 @@ function SeriesChart({ orientation, title, data, options, className, units, cont
|
|
|
15214
15220
|
},
|
|
15215
15221
|
},
|
|
15216
15222
|
};
|
|
15217
|
-
return (jsxRuntimeExports.jsx(Bar, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions
|
|
15223
|
+
return (jsxRuntimeExports.jsx(Bar, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions }));
|
|
15218
15224
|
}
|
|
15219
15225
|
|
|
15220
|
-
Chart$1.register(CategoryScale, LinearScale, PointElement, LineElement, plugin_title, plugin_tooltip, plugin_legend);
|
|
15226
|
+
Chart$1.register(CategoryScale, LinearScale, PointElement, LineElement, plugin_title, plugin_tooltip, plugin_legend, ChartDataLabels);
|
|
15221
15227
|
function SeriesLineChart({ orientation, title, data, options, className, units, content }) {
|
|
15222
15228
|
const formatValue = (value) => {
|
|
15223
15229
|
const numValue = typeof value === 'string' ? parseFloat(value) : value;
|
|
@@ -15299,10 +15305,10 @@ function SeriesLineChart({ orientation, title, data, options, className, units,
|
|
|
15299
15305
|
},
|
|
15300
15306
|
},
|
|
15301
15307
|
};
|
|
15302
|
-
return (jsxRuntimeExports.jsx(Line, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions
|
|
15308
|
+
return (jsxRuntimeExports.jsx(Line, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions }));
|
|
15303
15309
|
}
|
|
15304
15310
|
|
|
15305
|
-
Chart$1.register(ArcElement, plugin_tooltip, plugin_legend);
|
|
15311
|
+
Chart$1.register(ArcElement, plugin_tooltip, plugin_legend, ChartDataLabels);
|
|
15306
15312
|
const PieChart = (props) => {
|
|
15307
15313
|
const { data, title, options, units, content } = props;
|
|
15308
15314
|
const formatValue = (value) => {
|
|
@@ -15327,7 +15333,7 @@ const PieChart = (props) => {
|
|
|
15327
15333
|
display: (context) => { var _a; return context.dataset.data[context.dataIndex] !== null && ((_a = content === null || content === void 0 ? void 0 : content.showLabels) !== null && _a !== void 0 ? _a : false); },
|
|
15328
15334
|
color: "white",
|
|
15329
15335
|
font: { size: 12 },
|
|
15330
|
-
formatter: (value) => value,
|
|
15336
|
+
formatter: (value) => formatValue(value),
|
|
15331
15337
|
},
|
|
15332
15338
|
title: {
|
|
15333
15339
|
display: true,
|
|
@@ -15356,10 +15362,10 @@ const PieChart = (props) => {
|
|
|
15356
15362
|
},
|
|
15357
15363
|
},
|
|
15358
15364
|
};
|
|
15359
|
-
return jsxRuntimeExports.jsx(Pie, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions
|
|
15365
|
+
return jsxRuntimeExports.jsx(Pie, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions });
|
|
15360
15366
|
};
|
|
15361
15367
|
|
|
15362
|
-
Chart$1.register(CategoryScale, LinearScale, PointElement, LineElement, plugin_title, plugin_tooltip, plugin_legend);
|
|
15368
|
+
Chart$1.register(CategoryScale, LinearScale, PointElement, LineElement, plugin_title, plugin_tooltip, plugin_legend, ChartDataLabels);
|
|
15363
15369
|
function LineChart({ title, data, options, className, units, content }) {
|
|
15364
15370
|
const formatValue = (value) => {
|
|
15365
15371
|
const numValue = typeof value === 'string' ? parseFloat(value) : value;
|
|
@@ -15433,7 +15439,7 @@ function LineChart({ title, data, options, className, units, content }) {
|
|
|
15433
15439
|
},
|
|
15434
15440
|
},
|
|
15435
15441
|
};
|
|
15436
|
-
return (jsxRuntimeExports.jsx(Line, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions
|
|
15442
|
+
return (jsxRuntimeExports.jsx(Line, { data: data, options: options !== null && options !== void 0 ? options : defaultOptions }));
|
|
15437
15443
|
}
|
|
15438
15444
|
|
|
15439
15445
|
function DataGrid({ title, data, className }) {
|