@annalib/anna-core 25.2.22 → 25.2.23

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "25.2.22",
3
+ "version": "25.2.23",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^16.0.1",
6
6
  "@angular/common": "^16.2.12",
@@ -116,6 +116,15 @@
116
116
  }
117
117
  }
118
118
 
119
+ @function convert-string-to-number($value) {
120
+ @if type-of($value) == "string" {
121
+ // Attempt to convert by doing a mathematical operation
122
+ @return $value * 1;
123
+ } @else {
124
+ @return $value; // Already a number
125
+ }
126
+ }
127
+
119
128
  @mixin table-header($sticky-left-map, $box-shadow-map, $bg-color: #ededed) {
120
129
  $last-sticky-col: 0;
121
130
  @if (list.length(map.keys($sticky-left-map)) > 0) {
@@ -136,6 +145,7 @@
136
145
 
137
146
  $box-shadow-start-index: map.get($box-shadow-map, "start-index");
138
147
  $box-shadow-end-index: map.get($box-shadow-map, "end-index");
148
+ $box-shadow-end-index: convert-string-to-number($box-shadow-end-index);
139
149
 
140
150
  @for $i from $box-shadow-start-index through $box-shadow-end-index {
141
151
  @if ($i == $box-shadow-start-index) {