axidio-styleguide-library1-v2 0.2.99 → 0.3.1
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,13 +7963,25 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7963
7963
|
if (isSmallScreen && labelInfo.isDate && labelInfo.isWeek) {
|
|
7964
7964
|
return d;
|
|
7965
7965
|
}
|
|
7966
|
-
// Mobile handling: keep
|
|
7966
|
+
// Mobile handling: keep full dates, format week numbers as W##
|
|
7967
7967
|
if (isMobile) {
|
|
7968
|
-
// If header is hidden (compact mobile)
|
|
7968
|
+
// If header is hidden (compact mobile)
|
|
7969
7969
|
if (!self.isHeaderVisible) {
|
|
7970
|
-
|
|
7971
|
-
//
|
|
7972
|
-
|
|
7970
|
+
const labelInfo = hasDateAndTime(d);
|
|
7971
|
+
// If it's a date, return it unchanged
|
|
7972
|
+
if (labelInfo.isDate && !labelInfo.isWeek) {
|
|
7973
|
+
return d;
|
|
7974
|
+
}
|
|
7975
|
+
// If it has week number, extract and format it
|
|
7976
|
+
if (labelInfo.isWeek) {
|
|
7977
|
+
const weekMatch = d.match(/(?:week|wk|w)\s*(\d+)/i);
|
|
7978
|
+
if (weekMatch) {
|
|
7979
|
+
return `W${weekMatch[1]}`;
|
|
7980
|
+
}
|
|
7981
|
+
}
|
|
7982
|
+
// For non-date labels, trim as before
|
|
7983
|
+
const firstPart = d.split(/[\s\-]+/)[0];
|
|
7984
|
+
return firstPart.substring(0, 3).toLowerCase();
|
|
7973
7985
|
}
|
|
7974
7986
|
}
|
|
7975
7987
|
// Check if value should be ignored
|