@adiba-banking-cloud/backoffice 0.0.104 → 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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DtyYkhep.js');
3
+ var index = require('./index-BLpjQkzt.js');
4
4
 
5
5
  function _mergeNamespaces(n, m) {
6
6
  m.forEach(function (e) {
@@ -11416,34 +11416,40 @@ const StackedColumn = props => {
11416
11416
  }));
11417
11417
  };
11418
11418
  const initSeries$3 = props => {
11419
- const renderXAxis = (categories, showXLabel) => ({
11420
- categories,
11421
- labels: {
11422
- enabled: showXLabel,
11423
- style: {
11424
- textTransform: "uppercase",
11425
- color: "#575E77"
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, showYLabel) => ({
11430
- allowDecimals: false,
11431
- title: {
11432
- text: null
11433
- },
11434
- gridLineDashStyle: "Dot",
11435
- gridLineWidth: 2,
11436
- labels: {
11437
- enabled: showYLabel,
11438
- formatter: ctx => {
11439
- if (!equalizer || series.length > 1) {
11440
- return ctx.value;
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: config.title !== undefined ? {
11908
- text: config.title
11909
- } : defaultYAxis.title,
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: config.title !== undefined ? {
11923
- text: config.title
11924
- } : defaultYAxis.title,
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-CMbh3f40.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
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);
@@ -12342,6 +12355,8 @@ const initCalendarSeries = props => {
12342
12355
  });
12343
12356
  const renderYAxis = () => ({
12344
12357
  categories: weeks,
12358
+ reversed: props.reversed || false,
12359
+ // Configurable: reverse the y-axis (oldest at top when true)
12345
12360
  title: {
12346
12361
  text: null
12347
12362
  },
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DtyYkhep.js');
3
+ var index = require('./index-BLpjQkzt.js');
4
4
  require('@mantine/modals');
5
5
  require('react');
6
6
  require('@mantine/core');
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from './index-BfazjC7j.js';
1
+ import { g as getDefaultExportFromCjs } from './index-CWjYoFnK.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -11395,34 +11395,40 @@ const StackedColumn = props => {
11395
11395
  }));
11396
11396
  };
11397
11397
  const initSeries$3 = props => {
11398
- const renderXAxis = (categories, showXLabel) => ({
11399
- categories,
11400
- labels: {
11401
- enabled: showXLabel,
11402
- style: {
11403
- textTransform: "uppercase",
11404
- color: "#575E77"
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, showYLabel) => ({
11409
- allowDecimals: false,
11410
- title: {
11411
- text: null
11412
- },
11413
- gridLineDashStyle: "Dot",
11414
- gridLineWidth: 2,
11415
- labels: {
11416
- enabled: showYLabel,
11417
- formatter: ctx => {
11418
- if (!equalizer || series.length > 1) {
11419
- return ctx.value;
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: config.title !== undefined ? {
11887
- text: config.title
11888
- } : defaultYAxis.title,
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: config.title !== undefined ? {
11902
- text: config.title
11903
- } : defaultYAxis.title,
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-OI5flU15.js').then(function (n) { return n.h; }).then(heatmapModule => {
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);
@@ -12321,6 +12334,8 @@ const initCalendarSeries = props => {
12321
12334
  });
12322
12335
  const renderYAxis = () => ({
12323
12336
  categories: weeks,
12337
+ reversed: props.reversed || false,
12338
+ // Configurable: reverse the y-axis (oldest at top when true)
12324
12339
  title: {
12325
12340
  text: null
12326
12341
  },
@@ -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-BfazjC7j.js';
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<{
@@ -25,6 +25,7 @@ export interface BaseHeatmapProps {
25
25
  showXLabel?: boolean;
26
26
  showYLabel?: boolean;
27
27
  valueLabel?: string;
28
+ reversed?: boolean;
28
29
  colorScale?: {
29
30
  min?: number;
30
31
  max?: number;
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.104",
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",