@adiba-banking-cloud/backoffice 0.0.105 → 0.0.106
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/build/index.cjs.js/{heatmap-iI7S3gXi.js → heatmap-BJmii0aO.js} +1 -1
- package/build/index.cjs.js/{index-FFda0udd.js → index-BLpjQkzt.js} +47 -34
- package/build/index.cjs.js/index.js +1 -1
- package/build/index.esm.js/{heatmap-B5TomJs2.js → heatmap-yNnNxsAY.js} +1 -1
- package/build/index.esm.js/{index-D_S62F0o.js → index-CWjYoFnK.js} +47 -34
- package/build/index.esm.js/index.js +1 -1
- package/build/typings/components/charts/area/Area.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -11416,34 +11416,40 @@ const StackedColumn = props => {
|
|
|
11416
11416
|
}));
|
|
11417
11417
|
};
|
|
11418
11418
|
const initSeries$3 = props => {
|
|
11419
|
-
const renderXAxis = (categories
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11419
|
+
const renderXAxis = function (categories) {
|
|
11420
|
+
let showXLabel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
11421
|
+
return {
|
|
11422
|
+
categories,
|
|
11423
|
+
labels: {
|
|
11424
|
+
enabled: showXLabel,
|
|
11425
|
+
style: {
|
|
11426
|
+
textTransform: "uppercase",
|
|
11427
|
+
color: "#575E77"
|
|
11428
|
+
}
|
|
11426
11429
|
}
|
|
11427
|
-
}
|
|
11428
|
-
}
|
|
11429
|
-
const renderYAxis = (equalizer, series
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11430
|
+
};
|
|
11431
|
+
};
|
|
11432
|
+
const renderYAxis = function (equalizer, series) {
|
|
11433
|
+
let showYLabel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
11434
|
+
return {
|
|
11435
|
+
allowDecimals: false,
|
|
11436
|
+
title: {
|
|
11437
|
+
text: null
|
|
11438
|
+
},
|
|
11439
|
+
gridLineDashStyle: "Dot",
|
|
11440
|
+
gridLineWidth: 2,
|
|
11441
|
+
labels: {
|
|
11442
|
+
enabled: showYLabel,
|
|
11443
|
+
formatter: ctx => {
|
|
11444
|
+
if (!equalizer || series.length > 1) {
|
|
11445
|
+
return ctx.value;
|
|
11446
|
+
}
|
|
11447
|
+
const axisLabel = ctx.value * computeBoundary(series[0]) / 100;
|
|
11448
|
+
return axisLabel.toFixed();
|
|
11441
11449
|
}
|
|
11442
|
-
const axisLabel = ctx.value * computeBoundary(series[0]) / 100;
|
|
11443
|
-
return axisLabel.toFixed();
|
|
11444
11450
|
}
|
|
11445
|
-
}
|
|
11446
|
-
}
|
|
11451
|
+
};
|
|
11452
|
+
};
|
|
11447
11453
|
const renderSeries = (seriesData, seriesColors, equalizer, showDataLabels, showAxisLabel) => {
|
|
11448
11454
|
if (seriesData.length > 1 || !equalizer) {
|
|
11449
11455
|
let br = undefined;
|
|
@@ -11592,8 +11598,8 @@ const initSeries$3 = props => {
|
|
|
11592
11598
|
return plot;
|
|
11593
11599
|
};
|
|
11594
11600
|
return {
|
|
11595
|
-
xAxis: renderXAxis(props.xAxisLabel, props.showXLabel),
|
|
11596
|
-
yAxis: renderYAxis(props.equalizer, props.series, props.showYLabel),
|
|
11601
|
+
xAxis: renderXAxis(props.xAxisLabel, props.showXLabel ?? true),
|
|
11602
|
+
yAxis: renderYAxis(props.equalizer, props.series, props.showYLabel ?? true),
|
|
11597
11603
|
plotOptions: renderPlot(props.equalizer),
|
|
11598
11604
|
series: renderSeries(props.series, props?.colors, props.equalizer, props.showDataLabels, props.showAxisLabel)
|
|
11599
11605
|
};
|
|
@@ -11893,20 +11899,27 @@ const initMultiAxisSeries = props => {
|
|
|
11893
11899
|
const yAxesCount = props.series.length;
|
|
11894
11900
|
const yAxes = [];
|
|
11895
11901
|
const showYAxisArray = Array.isArray(props.showYAxis) ? props.showYAxis : props.showYAxis === false ? new Array(yAxesCount).fill(false) : new Array(yAxesCount).fill(true);
|
|
11902
|
+
|
|
11903
|
+
// Handle showYAxisTitle - default to true if not specified
|
|
11904
|
+
const showYAxisTitleArray = Array.isArray(props.showYAxisTitle) ? props.showYAxisTitle : props.showYAxisTitle === false ? new Array(yAxesCount).fill(false) : new Array(yAxesCount).fill(true);
|
|
11896
11905
|
for (let i = 0; i < yAxesCount; i++) {
|
|
11897
11906
|
const config = props.yAxisConfig?.[i] || {};
|
|
11898
11907
|
// showYAxisArray[i] will be true or false (never undefined due to fill logic above)
|
|
11899
11908
|
// We want to show the axis unless it's explicitly false
|
|
11900
11909
|
const shouldShowYAxis = showYAxisArray[i] !== false;
|
|
11910
|
+
const shouldShowTitle = showYAxisTitleArray[i] !== false;
|
|
11911
|
+
|
|
11912
|
+
// Determine title text - hide if showYAxisTitle is false, otherwise use config.title or null
|
|
11913
|
+
const titleText = shouldShowTitle && config.title !== undefined ? config.title : null;
|
|
11901
11914
|
|
|
11902
11915
|
// Hide yAxis labels and grid if showYAxis is explicitly false for this axis
|
|
11903
11916
|
if (!shouldShowYAxis) {
|
|
11904
11917
|
yAxes.push({
|
|
11905
11918
|
...defaultYAxis,
|
|
11906
11919
|
...config,
|
|
11907
|
-
title:
|
|
11908
|
-
text:
|
|
11909
|
-
}
|
|
11920
|
+
title: {
|
|
11921
|
+
text: titleText
|
|
11922
|
+
},
|
|
11910
11923
|
labels: {
|
|
11911
11924
|
enabled: false
|
|
11912
11925
|
},
|
|
@@ -11919,9 +11932,9 @@ const initMultiAxisSeries = props => {
|
|
|
11919
11932
|
yAxes.push({
|
|
11920
11933
|
...defaultYAxis,
|
|
11921
11934
|
...config,
|
|
11922
|
-
title:
|
|
11923
|
-
text:
|
|
11924
|
-
}
|
|
11935
|
+
title: {
|
|
11936
|
+
text: titleText
|
|
11937
|
+
},
|
|
11925
11938
|
labels: {
|
|
11926
11939
|
enabled: true,
|
|
11927
11940
|
color: "#575E77",
|
|
@@ -12153,7 +12166,7 @@ const initChart$1 = props => {
|
|
|
12153
12166
|
}
|
|
12154
12167
|
|
|
12155
12168
|
// Fallback: use dynamic import (async, but will work in Vite/Storybook)
|
|
12156
|
-
Promise.resolve().then(function () { return require('./heatmap-
|
|
12169
|
+
Promise.resolve().then(function () { return require('./heatmap-BJmii0aO.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
|
|
12157
12170
|
const moduleFn = typeof heatmapModule === "function" ? heatmapModule : heatmapModule?.default || heatmapModule;
|
|
12158
12171
|
if (typeof moduleFn === "function") {
|
|
12159
12172
|
moduleFn(Highcharts);
|
|
@@ -11395,34 +11395,40 @@ const StackedColumn = props => {
|
|
|
11395
11395
|
}));
|
|
11396
11396
|
};
|
|
11397
11397
|
const initSeries$3 = props => {
|
|
11398
|
-
const renderXAxis = (categories
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11403
|
-
|
|
11404
|
-
|
|
11398
|
+
const renderXAxis = function (categories) {
|
|
11399
|
+
let showXLabel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
11400
|
+
return {
|
|
11401
|
+
categories,
|
|
11402
|
+
labels: {
|
|
11403
|
+
enabled: showXLabel,
|
|
11404
|
+
style: {
|
|
11405
|
+
textTransform: "uppercase",
|
|
11406
|
+
color: "#575E77"
|
|
11407
|
+
}
|
|
11405
11408
|
}
|
|
11406
|
-
}
|
|
11407
|
-
}
|
|
11408
|
-
const renderYAxis = (equalizer, series
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11409
|
+
};
|
|
11410
|
+
};
|
|
11411
|
+
const renderYAxis = function (equalizer, series) {
|
|
11412
|
+
let showYLabel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
11413
|
+
return {
|
|
11414
|
+
allowDecimals: false,
|
|
11415
|
+
title: {
|
|
11416
|
+
text: null
|
|
11417
|
+
},
|
|
11418
|
+
gridLineDashStyle: "Dot",
|
|
11419
|
+
gridLineWidth: 2,
|
|
11420
|
+
labels: {
|
|
11421
|
+
enabled: showYLabel,
|
|
11422
|
+
formatter: ctx => {
|
|
11423
|
+
if (!equalizer || series.length > 1) {
|
|
11424
|
+
return ctx.value;
|
|
11425
|
+
}
|
|
11426
|
+
const axisLabel = ctx.value * computeBoundary(series[0]) / 100;
|
|
11427
|
+
return axisLabel.toFixed();
|
|
11420
11428
|
}
|
|
11421
|
-
const axisLabel = ctx.value * computeBoundary(series[0]) / 100;
|
|
11422
|
-
return axisLabel.toFixed();
|
|
11423
11429
|
}
|
|
11424
|
-
}
|
|
11425
|
-
}
|
|
11430
|
+
};
|
|
11431
|
+
};
|
|
11426
11432
|
const renderSeries = (seriesData, seriesColors, equalizer, showDataLabels, showAxisLabel) => {
|
|
11427
11433
|
if (seriesData.length > 1 || !equalizer) {
|
|
11428
11434
|
let br = undefined;
|
|
@@ -11571,8 +11577,8 @@ const initSeries$3 = props => {
|
|
|
11571
11577
|
return plot;
|
|
11572
11578
|
};
|
|
11573
11579
|
return {
|
|
11574
|
-
xAxis: renderXAxis(props.xAxisLabel, props.showXLabel),
|
|
11575
|
-
yAxis: renderYAxis(props.equalizer, props.series, props.showYLabel),
|
|
11580
|
+
xAxis: renderXAxis(props.xAxisLabel, props.showXLabel ?? true),
|
|
11581
|
+
yAxis: renderYAxis(props.equalizer, props.series, props.showYLabel ?? true),
|
|
11576
11582
|
plotOptions: renderPlot(props.equalizer),
|
|
11577
11583
|
series: renderSeries(props.series, props?.colors, props.equalizer, props.showDataLabels, props.showAxisLabel)
|
|
11578
11584
|
};
|
|
@@ -11872,20 +11878,27 @@ const initMultiAxisSeries = props => {
|
|
|
11872
11878
|
const yAxesCount = props.series.length;
|
|
11873
11879
|
const yAxes = [];
|
|
11874
11880
|
const showYAxisArray = Array.isArray(props.showYAxis) ? props.showYAxis : props.showYAxis === false ? new Array(yAxesCount).fill(false) : new Array(yAxesCount).fill(true);
|
|
11881
|
+
|
|
11882
|
+
// Handle showYAxisTitle - default to true if not specified
|
|
11883
|
+
const showYAxisTitleArray = Array.isArray(props.showYAxisTitle) ? props.showYAxisTitle : props.showYAxisTitle === false ? new Array(yAxesCount).fill(false) : new Array(yAxesCount).fill(true);
|
|
11875
11884
|
for (let i = 0; i < yAxesCount; i++) {
|
|
11876
11885
|
const config = props.yAxisConfig?.[i] || {};
|
|
11877
11886
|
// showYAxisArray[i] will be true or false (never undefined due to fill logic above)
|
|
11878
11887
|
// We want to show the axis unless it's explicitly false
|
|
11879
11888
|
const shouldShowYAxis = showYAxisArray[i] !== false;
|
|
11889
|
+
const shouldShowTitle = showYAxisTitleArray[i] !== false;
|
|
11890
|
+
|
|
11891
|
+
// Determine title text - hide if showYAxisTitle is false, otherwise use config.title or null
|
|
11892
|
+
const titleText = shouldShowTitle && config.title !== undefined ? config.title : null;
|
|
11880
11893
|
|
|
11881
11894
|
// Hide yAxis labels and grid if showYAxis is explicitly false for this axis
|
|
11882
11895
|
if (!shouldShowYAxis) {
|
|
11883
11896
|
yAxes.push({
|
|
11884
11897
|
...defaultYAxis,
|
|
11885
11898
|
...config,
|
|
11886
|
-
title:
|
|
11887
|
-
text:
|
|
11888
|
-
}
|
|
11899
|
+
title: {
|
|
11900
|
+
text: titleText
|
|
11901
|
+
},
|
|
11889
11902
|
labels: {
|
|
11890
11903
|
enabled: false
|
|
11891
11904
|
},
|
|
@@ -11898,9 +11911,9 @@ const initMultiAxisSeries = props => {
|
|
|
11898
11911
|
yAxes.push({
|
|
11899
11912
|
...defaultYAxis,
|
|
11900
11913
|
...config,
|
|
11901
|
-
title:
|
|
11902
|
-
text:
|
|
11903
|
-
}
|
|
11914
|
+
title: {
|
|
11915
|
+
text: titleText
|
|
11916
|
+
},
|
|
11904
11917
|
labels: {
|
|
11905
11918
|
enabled: true,
|
|
11906
11919
|
color: "#575E77",
|
|
@@ -12132,7 +12145,7 @@ const initChart$1 = props => {
|
|
|
12132
12145
|
}
|
|
12133
12146
|
|
|
12134
12147
|
// Fallback: use dynamic import (async, but will work in Vite/Storybook)
|
|
12135
|
-
import('./heatmap-
|
|
12148
|
+
import('./heatmap-yNnNxsAY.js').then(function (n) { return n.h; }).then(heatmapModule => {
|
|
12136
12149
|
const moduleFn = typeof heatmapModule === "function" ? heatmapModule : heatmapModule?.default || heatmapModule;
|
|
12137
12150
|
if (typeof moduleFn === "function") {
|
|
12138
12151
|
moduleFn(Highcharts);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ApplicationMenu, o as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, n as ConnectionPanel, D as DonutChart, z as Drawer, e as DynamicLogo, f as DynamicShigaLogo, E as EqualizerColumn, u as ErrorModal, F as File, d as Icons, v as InfoModal, I as InterpolatedHeatmap, L as LabelPanel, H as MaskedTilePanel, M as MultiAxisArea, P as PageTitle, q as PaymentMethod, r as PaymentMethodAdd, j as SearchPanel, h as SideMenu, b as SimpleArea, S as SimpleColumn, G as SimpleForm, w as SimpleModal, i as SimplePanel, s as SimpleTable, l as SimpleText, c as StackedArea, a as StackedColumn, p as SubscriptionPlans, x as SuccessModal, J as TilePanel, m as TitleWithIndex, T as TitledPanel, y as TwoFactorModal, U as UserMenu, t as theme, N as useManagedModals, K as useModal } from './index-
|
|
1
|
+
export { A as ApplicationMenu, o as ApplicationPanel, k as AvatarLabelPanel, B as BasicHeatmap, C as CalendarHeatmap, n as ConnectionPanel, D as DonutChart, z as Drawer, e as DynamicLogo, f as DynamicShigaLogo, E as EqualizerColumn, u as ErrorModal, F as File, d as Icons, v as InfoModal, I as InterpolatedHeatmap, L as LabelPanel, H as MaskedTilePanel, M as MultiAxisArea, P as PageTitle, q as PaymentMethod, r as PaymentMethodAdd, j as SearchPanel, h as SideMenu, b as SimpleArea, S as SimpleColumn, G as SimpleForm, w as SimpleModal, i as SimplePanel, s as SimpleTable, l as SimpleText, c as StackedArea, a as StackedColumn, p as SubscriptionPlans, x as SuccessModal, J as TilePanel, m as TitleWithIndex, T as TitledPanel, y as TwoFactorModal, U as UserMenu, t as theme, N as useManagedModals, K as useModal } from './index-CWjYoFnK.js';
|
|
2
2
|
import '@mantine/modals';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@mantine/core';
|
|
@@ -91,6 +91,7 @@ export interface MultiAxisAreaChartProps {
|
|
|
91
91
|
verticalAlign?: "top" | "middle" | "bottom";
|
|
92
92
|
};
|
|
93
93
|
showYAxis?: boolean | boolean[];
|
|
94
|
+
showYAxisTitle?: boolean | boolean[];
|
|
94
95
|
aggregator?: "sum" | "average";
|
|
95
96
|
step?: false | "left" | "center" | "right";
|
|
96
97
|
yAxisConfig?: Array<{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adiba-banking-cloud/backoffice",
|
|
3
3
|
"author": "TUROG Technologies",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.106",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|