@smartnet360/svelte-components 0.0.49 → 0.0.50
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.
|
@@ -63,14 +63,18 @@ function expandKPIs(baseKPIs, cells, stylingConfig, stackGroupMode = 'none') {
|
|
|
63
63
|
if (stylingConfig) {
|
|
64
64
|
// Apply custom styling (band colors, sector line styles)
|
|
65
65
|
const styledKPI = createStyledKPI(baseKPI.rawName, record, baseKPI.unit, stylingConfig);
|
|
66
|
-
expandedKPIs.push(
|
|
66
|
+
expandedKPIs.push({
|
|
67
|
+
...styledKPI,
|
|
68
|
+
stackGroup: undefined // Initialize for treeshake-safe property assignment
|
|
69
|
+
});
|
|
67
70
|
}
|
|
68
71
|
else {
|
|
69
72
|
// Use Chart component default behavior: keep base KPI name
|
|
70
73
|
// Just update rawName to reference the pivoted column
|
|
71
74
|
expandedKPIs.push({
|
|
72
75
|
...baseKPI,
|
|
73
|
-
rawName: `${baseKPI.rawName}_${cellName}
|
|
76
|
+
rawName: `${baseKPI.rawName}_${cellName}`,
|
|
77
|
+
stackGroup: undefined // Initialize for treeshake-safe property assignment
|
|
74
78
|
});
|
|
75
79
|
}
|
|
76
80
|
});
|
|
@@ -435,17 +435,20 @@
|
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
.floating-controls-panel :global(.btn-outline-primary) {
|
|
438
|
-
|
|
438
|
+
color: var(--bs-primary, #0d6efd);
|
|
439
|
+
border-color: color-mix(in srgb, var(--bs-primary, #0d6efd) 30%, transparent);
|
|
439
440
|
}
|
|
440
441
|
|
|
441
442
|
.floating-controls-panel :global(.btn-outline-primary:hover) {
|
|
442
|
-
|
|
443
|
-
|
|
443
|
+
color: var(--bs-btn-hover-color, #fff);
|
|
444
|
+
background-color: color-mix(in srgb, var(--bs-primary, #0d6efd) 10%, transparent);
|
|
445
|
+
border-color: color-mix(in srgb, var(--bs-primary, #0d6efd) 50%, transparent);
|
|
444
446
|
}
|
|
445
447
|
|
|
446
448
|
.floating-controls-panel :global(.btn-check:checked + .btn-outline-primary) {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
+
color: var(--bs-btn-active-color, #fff);
|
|
450
|
+
background-color: var(--bs-primary, #0d6efd);
|
|
451
|
+
border-color: var(--bs-primary, #0d6efd);
|
|
449
452
|
}
|
|
450
453
|
|
|
451
454
|
.floating-controls-panel :global(.btn-group) {
|