@masterteam/dashboard-builder 0.0.22 → 0.0.23
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.
|
@@ -439,7 +439,7 @@ class DashboardStoreService {
|
|
|
439
439
|
/** Dynamic key-value store */
|
|
440
440
|
dynamicStore = signal({}, ...(ngDevMode ? [{ debugName: "dynamicStore" }] : /* istanbul ignore next */ []));
|
|
441
441
|
/** Language code */
|
|
442
|
-
languageCode = signal(document.dir == '
|
|
442
|
+
languageCode = signal(document.dir == 'rtl' ? 'ar' : 'en', ...(ngDevMode ? [{ debugName: "languageCode" }] : /* istanbul ignore next */ []));
|
|
443
443
|
/** Direction */
|
|
444
444
|
direction = signal(document.dir || 'ltr', ...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
445
445
|
/** Inside Report Viewer flag - controls text truncation in charts */
|
|
@@ -9205,29 +9205,14 @@ class BarChartHandler {
|
|
|
9205
9205
|
}
|
|
9206
9206
|
if (isHorizontal) {
|
|
9207
9207
|
if (languageCode === 'ar') {
|
|
9208
|
-
lastItem.itemStyle.borderRadius = [
|
|
9209
|
-
borderRadius,
|
|
9210
|
-
0,
|
|
9211
|
-
0,
|
|
9212
|
-
borderRadius,
|
|
9213
|
-
];
|
|
9208
|
+
lastItem.itemStyle.borderRadius = [borderRadius, 0, 0, borderRadius];
|
|
9214
9209
|
}
|
|
9215
9210
|
else {
|
|
9216
|
-
lastItem.itemStyle.borderRadius = [
|
|
9217
|
-
0,
|
|
9218
|
-
borderRadius,
|
|
9219
|
-
borderRadius,
|
|
9220
|
-
0,
|
|
9221
|
-
];
|
|
9211
|
+
lastItem.itemStyle.borderRadius = [0, borderRadius, borderRadius, 0];
|
|
9222
9212
|
}
|
|
9223
9213
|
}
|
|
9224
9214
|
else {
|
|
9225
|
-
lastItem.itemStyle.borderRadius = [
|
|
9226
|
-
borderRadius,
|
|
9227
|
-
borderRadius,
|
|
9228
|
-
0,
|
|
9229
|
-
0,
|
|
9230
|
-
];
|
|
9215
|
+
lastItem.itemStyle.borderRadius = [borderRadius, borderRadius, 0, 0];
|
|
9231
9216
|
}
|
|
9232
9217
|
}
|
|
9233
9218
|
const xAxisLabels = xAxisData;
|
|
@@ -9270,7 +9255,9 @@ class BarChartHandler {
|
|
|
9270
9255
|
* - number/string => that numeric value
|
|
9271
9256
|
*/
|
|
9272
9257
|
resolveBarBorderRadius(borderRadius) {
|
|
9273
|
-
if (borderRadius === undefined ||
|
|
9258
|
+
if (borderRadius === undefined ||
|
|
9259
|
+
borderRadius === null ||
|
|
9260
|
+
borderRadius === true) {
|
|
9274
9261
|
return 8;
|
|
9275
9262
|
}
|
|
9276
9263
|
if (borderRadius === false) {
|
|
@@ -10114,7 +10101,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
10114
10101
|
class StackBarChartHandler {
|
|
10115
10102
|
storeService = inject(DashboardStoreService);
|
|
10116
10103
|
resolveStackBarBorderRadius(borderRadius) {
|
|
10117
|
-
if (borderRadius === undefined ||
|
|
10104
|
+
if (borderRadius === undefined ||
|
|
10105
|
+
borderRadius === null ||
|
|
10106
|
+
borderRadius === true) {
|
|
10118
10107
|
return 8;
|
|
10119
10108
|
}
|
|
10120
10109
|
if (borderRadius === false) {
|
|
@@ -10776,7 +10765,8 @@ class StackBarChartHandler {
|
|
|
10776
10765
|
if (!yAxis.axisLabel) {
|
|
10777
10766
|
yAxis.axisLabel = {};
|
|
10778
10767
|
}
|
|
10779
|
-
yAxis.axisLabel.fontFamily =
|
|
10768
|
+
yAxis.axisLabel.fontFamily =
|
|
10769
|
+
generalConfiguration?.fontConfig?.fontFamily;
|
|
10780
10770
|
if (!yAxis.axisLabel.formatter) {
|
|
10781
10771
|
yAxis.axisLabel.formatter = (value) => {
|
|
10782
10772
|
const yAxisFormat = stackBarOverride?.yAxisFormat;
|