@adiba-banking-cloud/backoffice 0.0.103 → 0.0.105

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-D42CDlY2.js');
3
+ var index = require('./index-FFda0udd.js');
4
4
 
5
5
  function _mergeNamespaces(n, m) {
6
6
  m.forEach(function (e) {
@@ -12105,10 +12105,12 @@ const initChart$1 = props => {
12105
12105
  if (daysToAdd < 0) daysToAdd += 7; // Handle week wrap
12106
12106
  date.setDate(date.getDate() + daysToAdd);
12107
12107
  }
12108
- return `<b>${date.toLocaleDateString()}</b><br/>Value: <b>${point.value}</b>`;
12108
+ const valueLabel = props.valueLabel || "Value";
12109
+ return `<b>${date.toLocaleDateString()}</b><br/>${valueLabel}: <b>${point.value}</b>`;
12109
12110
  }
12110
12111
  const point = this.point;
12111
- return `<b>${point.series.xAxis.categories[point.x]}</b>, <b>${point.series.yAxis.categories[point.y]}</b><br/>Value: <b>${point.value}</b>`;
12112
+ const valueLabel = props.valueLabel || "Value";
12113
+ return `<b>${point.series.xAxis.categories[point.x]}</b>, <b>${point.series.yAxis.categories[point.y]}</b><br/>${valueLabel}: <b>${point.value}</b>`;
12112
12114
  }
12113
12115
  },
12114
12116
  credits: {
@@ -12151,7 +12153,7 @@ const initChart$1 = props => {
12151
12153
  }
12152
12154
 
12153
12155
  // Fallback: use dynamic import (async, but will work in Vite/Storybook)
12154
- Promise.resolve().then(function () { return require('./heatmap-o4CTbuGa.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
12156
+ Promise.resolve().then(function () { return require('./heatmap-iI7S3gXi.js'); }).then(function (n) { return n.heatmap; }).then(heatmapModule => {
12155
12157
  const moduleFn = typeof heatmapModule === "function" ? heatmapModule : heatmapModule?.default || heatmapModule;
12156
12158
  if (typeof moduleFn === "function") {
12157
12159
  moduleFn(Highcharts);
@@ -12204,6 +12206,9 @@ const initBasicSeries = props => {
12204
12206
  });
12205
12207
  const renderYAxis = () => ({
12206
12208
  categories: props.yAxisLabel,
12209
+ title: {
12210
+ text: null
12211
+ },
12207
12212
  labels: {
12208
12213
  enabled: props.showYLabel,
12209
12214
  style: {
@@ -12222,7 +12227,7 @@ const initBasicSeries = props => {
12222
12227
  const renderSeries = () => {
12223
12228
  const data = props.data.map(point => [point.x, point.y, point.value]);
12224
12229
  return [{
12225
- name: "Value",
12230
+ name: props.valueLabel || "Value",
12226
12231
  data,
12227
12232
  turboThreshold: 0
12228
12233
  }];
@@ -12247,6 +12252,9 @@ const initInterpolatedSeries = props => {
12247
12252
  });
12248
12253
  const renderYAxis = () => ({
12249
12254
  categories: props.yAxisLabel,
12255
+ title: {
12256
+ text: null
12257
+ },
12250
12258
  labels: {
12251
12259
  enabled: props.showYLabel,
12252
12260
  style: {
@@ -12265,7 +12273,7 @@ const initInterpolatedSeries = props => {
12265
12273
  const renderSeries = () => {
12266
12274
  const data = props.data.map(point => [point.x, point.y, point.value]);
12267
12275
  return [{
12268
- name: "Value",
12276
+ name: props.valueLabel || "Value",
12269
12277
  data,
12270
12278
  turboThreshold: 0
12271
12279
  }];
@@ -12314,7 +12322,11 @@ const initCalendarSeries = props => {
12314
12322
  x: dayOfWeek,
12315
12323
  y: weekIndex,
12316
12324
  value: value,
12317
- date: dateForPoint.toISOString() // Store as ISO string for tooltip
12325
+ date: dateForPoint.toISOString(),
12326
+ // Store as ISO string for tooltip
12327
+ custom: {
12328
+ monthDay: dateForPoint.getDate() // Day of month (1-31) for dataLabel
12329
+ }
12318
12330
  });
12319
12331
  currentDate.setDate(currentDate.getDate() + 1);
12320
12332
  }
@@ -12330,6 +12342,11 @@ const initCalendarSeries = props => {
12330
12342
  });
12331
12343
  const renderYAxis = () => ({
12332
12344
  categories: weeks,
12345
+ reversed: props.reversed || false,
12346
+ // Configurable: reverse the y-axis (oldest at top when true)
12347
+ title: {
12348
+ text: null
12349
+ },
12333
12350
  labels: {
12334
12351
  enabled: props.showYLabel,
12335
12352
  style: {
@@ -12346,10 +12363,28 @@ const initCalendarSeries = props => {
12346
12363
  }
12347
12364
  });
12348
12365
  const renderSeries = () => [{
12349
- name: "Value",
12366
+ name: props.valueLabel || "Value",
12350
12367
  data: calendarData,
12351
12368
  turboThreshold: 0,
12352
- showInLegend: false // Hide series name from legend for calendar heatmap
12369
+ showInLegend: false,
12370
+ // Hide series name from legend for calendar heatmap
12371
+ dataLabels: [{
12372
+ enabled: true,
12373
+ align: "left",
12374
+ verticalAlign: "top",
12375
+ format: "{point.custom.monthDay}",
12376
+ backgroundColor: "whitesmoke",
12377
+ padding: 2,
12378
+ style: {
12379
+ textOutline: "none",
12380
+ color: "rgba(70, 70, 92, 1)",
12381
+ fontSize: "0.8rem",
12382
+ fontWeight: "bold",
12383
+ opacity: 0.5
12384
+ },
12385
+ x: 1,
12386
+ y: 1
12387
+ }]
12353
12388
  }];
12354
12389
  return {
12355
12390
  xAxis: renderXAxis(),
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-D42CDlY2.js');
3
+ var index = require('./index-FFda0udd.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-ezLwqFHW.js';
1
+ import { g as getDefaultExportFromCjs } from './index-D_S62F0o.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -12084,10 +12084,12 @@ const initChart$1 = props => {
12084
12084
  if (daysToAdd < 0) daysToAdd += 7; // Handle week wrap
12085
12085
  date.setDate(date.getDate() + daysToAdd);
12086
12086
  }
12087
- return `<b>${date.toLocaleDateString()}</b><br/>Value: <b>${point.value}</b>`;
12087
+ const valueLabel = props.valueLabel || "Value";
12088
+ return `<b>${date.toLocaleDateString()}</b><br/>${valueLabel}: <b>${point.value}</b>`;
12088
12089
  }
12089
12090
  const point = this.point;
12090
- return `<b>${point.series.xAxis.categories[point.x]}</b>, <b>${point.series.yAxis.categories[point.y]}</b><br/>Value: <b>${point.value}</b>`;
12091
+ const valueLabel = props.valueLabel || "Value";
12092
+ return `<b>${point.series.xAxis.categories[point.x]}</b>, <b>${point.series.yAxis.categories[point.y]}</b><br/>${valueLabel}: <b>${point.value}</b>`;
12091
12093
  }
12092
12094
  },
12093
12095
  credits: {
@@ -12130,7 +12132,7 @@ const initChart$1 = props => {
12130
12132
  }
12131
12133
 
12132
12134
  // Fallback: use dynamic import (async, but will work in Vite/Storybook)
12133
- import('./heatmap-Co9MSbVA.js').then(function (n) { return n.h; }).then(heatmapModule => {
12135
+ import('./heatmap-B5TomJs2.js').then(function (n) { return n.h; }).then(heatmapModule => {
12134
12136
  const moduleFn = typeof heatmapModule === "function" ? heatmapModule : heatmapModule?.default || heatmapModule;
12135
12137
  if (typeof moduleFn === "function") {
12136
12138
  moduleFn(Highcharts);
@@ -12183,6 +12185,9 @@ const initBasicSeries = props => {
12183
12185
  });
12184
12186
  const renderYAxis = () => ({
12185
12187
  categories: props.yAxisLabel,
12188
+ title: {
12189
+ text: null
12190
+ },
12186
12191
  labels: {
12187
12192
  enabled: props.showYLabel,
12188
12193
  style: {
@@ -12201,7 +12206,7 @@ const initBasicSeries = props => {
12201
12206
  const renderSeries = () => {
12202
12207
  const data = props.data.map(point => [point.x, point.y, point.value]);
12203
12208
  return [{
12204
- name: "Value",
12209
+ name: props.valueLabel || "Value",
12205
12210
  data,
12206
12211
  turboThreshold: 0
12207
12212
  }];
@@ -12226,6 +12231,9 @@ const initInterpolatedSeries = props => {
12226
12231
  });
12227
12232
  const renderYAxis = () => ({
12228
12233
  categories: props.yAxisLabel,
12234
+ title: {
12235
+ text: null
12236
+ },
12229
12237
  labels: {
12230
12238
  enabled: props.showYLabel,
12231
12239
  style: {
@@ -12244,7 +12252,7 @@ const initInterpolatedSeries = props => {
12244
12252
  const renderSeries = () => {
12245
12253
  const data = props.data.map(point => [point.x, point.y, point.value]);
12246
12254
  return [{
12247
- name: "Value",
12255
+ name: props.valueLabel || "Value",
12248
12256
  data,
12249
12257
  turboThreshold: 0
12250
12258
  }];
@@ -12293,7 +12301,11 @@ const initCalendarSeries = props => {
12293
12301
  x: dayOfWeek,
12294
12302
  y: weekIndex,
12295
12303
  value: value,
12296
- date: dateForPoint.toISOString() // Store as ISO string for tooltip
12304
+ date: dateForPoint.toISOString(),
12305
+ // Store as ISO string for tooltip
12306
+ custom: {
12307
+ monthDay: dateForPoint.getDate() // Day of month (1-31) for dataLabel
12308
+ }
12297
12309
  });
12298
12310
  currentDate.setDate(currentDate.getDate() + 1);
12299
12311
  }
@@ -12309,6 +12321,11 @@ const initCalendarSeries = props => {
12309
12321
  });
12310
12322
  const renderYAxis = () => ({
12311
12323
  categories: weeks,
12324
+ reversed: props.reversed || false,
12325
+ // Configurable: reverse the y-axis (oldest at top when true)
12326
+ title: {
12327
+ text: null
12328
+ },
12312
12329
  labels: {
12313
12330
  enabled: props.showYLabel,
12314
12331
  style: {
@@ -12325,10 +12342,28 @@ const initCalendarSeries = props => {
12325
12342
  }
12326
12343
  });
12327
12344
  const renderSeries = () => [{
12328
- name: "Value",
12345
+ name: props.valueLabel || "Value",
12329
12346
  data: calendarData,
12330
12347
  turboThreshold: 0,
12331
- showInLegend: false // Hide series name from legend for calendar heatmap
12348
+ showInLegend: false,
12349
+ // Hide series name from legend for calendar heatmap
12350
+ dataLabels: [{
12351
+ enabled: true,
12352
+ align: "left",
12353
+ verticalAlign: "top",
12354
+ format: "{point.custom.monthDay}",
12355
+ backgroundColor: "whitesmoke",
12356
+ padding: 2,
12357
+ style: {
12358
+ textOutline: "none",
12359
+ color: "rgba(70, 70, 92, 1)",
12360
+ fontSize: "0.8rem",
12361
+ fontWeight: "bold",
12362
+ opacity: 0.5
12363
+ },
12364
+ x: 1,
12365
+ y: 1
12366
+ }]
12332
12367
  }];
12333
12368
  return {
12334
12369
  xAxis: renderXAxis(),
@@ -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-ezLwqFHW.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-D_S62F0o.js';
2
2
  import '@mantine/modals';
3
3
  import 'react';
4
4
  import '@mantine/core';
@@ -24,6 +24,8 @@ export interface BaseHeatmapProps {
24
24
  withLegend?: boolean;
25
25
  showXLabel?: boolean;
26
26
  showYLabel?: boolean;
27
+ valueLabel?: string;
28
+ reversed?: boolean;
27
29
  colorScale?: {
28
30
  min?: number;
29
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.103",
4
+ "version": "0.0.105",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",