axidio-styleguide-library1-v2 0.3.1 → 0.3.3

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.
@@ -7963,16 +7963,24 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
7963
7963
  if (isSmallScreen && labelInfo.isDate && labelInfo.isWeek) {
7964
7964
  return d;
7965
7965
  }
7966
- // Mobile handling: keep full dates, format week numbers as W##
7966
+ // Mobile handling: format date and week on separate lines
7967
7967
  if (isMobile) {
7968
7968
  // If header is hidden (compact mobile)
7969
7969
  if (!self.isHeaderVisible) {
7970
7970
  const labelInfo = hasDateAndTime(d);
7971
- // If it's a date, return it unchanged
7972
- if (labelInfo.isDate && !labelInfo.isWeek) {
7971
+ // If it has both date and week, split them
7972
+ if (labelInfo.isDate && labelInfo.isWeek) {
7973
+ const datePart = d.match(/\d{2}[-\/]\d{2}[-\/]\d{2,4}/)?.[0] || '';
7974
+ const weekMatch = d.match(/(?:week|wk|w)\s*(\d+)/i);
7975
+ if (weekMatch) {
7976
+ return `${datePart}\nW${weekMatch[1]}`;
7977
+ }
7978
+ }
7979
+ // If it's just a date, return it unchanged
7980
+ if (labelInfo.isDate) {
7973
7981
  return d;
7974
7982
  }
7975
- // If it has week number, extract and format it
7983
+ // If it has just week number, format it
7976
7984
  if (labelInfo.isWeek) {
7977
7985
  const weekMatch = d.match(/(?:week|wk|w)\s*(\d+)/i);
7978
7986
  if (weekMatch) {