@wavemaker/app-ng-runtime 11.5.1-rc.5415 → 11.5.1-rc.5420
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.
- app-ng-runtime/components/chart/bundles/index.umd.js +31 -8
- app-ng-runtime/components/chart/esm2020/chart.utils.mjs +15 -8
- app-ng-runtime/components/chart/fesm2015/index.mjs +14 -7
- app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/chart/fesm2020/index.mjs +14 -7
- app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +18 -6
- app-ng-runtime/components/input/default/esm2020/number/number.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/color/input-color.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/email/input-email.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/number/input-number.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/text/input-text.props.mjs +4 -2
- app-ng-runtime/components/input/default/fesm2015/index.mjs +18 -6
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +18 -6
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/@wavemaker.com/nvd3/build/nv.d3.min.js +1 -1
|
@@ -429,7 +429,10 @@ const highlightPoints = (id, highlightpoints) => {
|
|
|
429
429
|
const setLineThickness = (id, thickness) => {
|
|
430
430
|
const chartSvg = id ? d3.select('#wmChart' + id + ' svg') : d3.select(chartId + ' svg');
|
|
431
431
|
thickness = thickness || 1.5;
|
|
432
|
-
chartSvg.selectAll('.nv-line')
|
|
432
|
+
const lines = chartSvg.selectAll('.nv-line');
|
|
433
|
+
if (lines.size() != 0) {
|
|
434
|
+
lines.style({ 'stroke-width': thickness });
|
|
435
|
+
}
|
|
433
436
|
};
|
|
434
437
|
// Constructing a common key value map for preview and canvas mode
|
|
435
438
|
const initProperties = (widgetContext, propertyValueMap) => {
|
|
@@ -455,14 +458,18 @@ const getDateFormatedData = (dateFormat, d) => {
|
|
|
455
458
|
* This is because it returns UTC time i.e. Coordinated Universal Time (UTC).
|
|
456
459
|
* To create date in local time use moment
|
|
457
460
|
*/
|
|
458
|
-
return d3.
|
|
461
|
+
return d3.timeFormat(dateFormat)(new Date(moment(moment(d).format()).valueOf()));
|
|
459
462
|
};
|
|
460
463
|
// Formats the given value according to number format
|
|
461
464
|
const getNumberFormatedData = (numberFormat, d) => {
|
|
462
465
|
let formattedData, divider, prefix;
|
|
463
466
|
// formatting the data based on number format selected
|
|
464
467
|
if (numberFormat) {
|
|
465
|
-
|
|
468
|
+
let numberFormatter = d3.format(numberFormat);
|
|
469
|
+
if (numberFormat == 'Thousand' || numberFormat == 'Million' || numberFormat == 'Billion') {
|
|
470
|
+
numberFormatter = d3.format(',.2s');
|
|
471
|
+
}
|
|
472
|
+
formattedData = numberFormatter(d);
|
|
466
473
|
// Getting the respective divider[1000,1000000,1000000000] based on the number format choosen
|
|
467
474
|
divider = (tickformats[numberFormat] && tickformats[numberFormat].divider) || 0;
|
|
468
475
|
prefix = tickformats[numberFormat] && tickformats[numberFormat].prefix;
|
|
@@ -745,10 +752,10 @@ const initChart = (widgetContext, xDomainValues, yDomainValues, propertyValueMap
|
|
|
745
752
|
const postPlotChartProcess = (widgetContext, isPreview) => {
|
|
746
753
|
const id = isPreview ? null : widgetContext.$id;
|
|
747
754
|
// If user sets to highlight the data points and increase the thickness of the line
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
755
|
+
if (isLineTypeChart(widgetContext.type)) {
|
|
756
|
+
setLineThickness(id, widgetContext.linethickness);
|
|
757
|
+
highlightPoints(id, widgetContext.highlightpoints);
|
|
758
|
+
}
|
|
752
759
|
// Modifying the legend position only when legend is shown
|
|
753
760
|
// if (widgetContext.showlegend) {
|
|
754
761
|
// modifyLegendPosition(widgetContext, widgetContext.showlegend, id);
|