@annalib/anna-core 31.4.14 → 31.4.16

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.
@@ -16,14 +16,14 @@ export declare class AnnaDateTimeFormatService {
16
16
  addZero(time: any): any;
17
17
  sortByTimeAscending(a: any, b: any): number;
18
18
  sortByTimeDescending(a: any, b: any): number;
19
- compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 0 | 1 | -1;
19
+ compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 1 | -1 | 0;
20
20
  convertNgbDateToMoment(ngbDate: NgbDate | NgbDateType): string;
21
21
  compareDate(a: string, b: string, isAsc: boolean): number;
22
22
  static formatTwentyFourHourTimeToHHMMAFormat(value: any, date?: string): string;
23
23
  static formatTwelveHourTimeToHHMMAFormat(timeValue: any, date?: string): string;
24
24
  formatDateAndHHMMATimeToStandardFormat(dateAndTime: any): string;
25
25
  compare(a: number | string, b: number | string, isAsc: boolean): number;
26
- sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 0 | 1 | -1;
26
+ sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 1 | -1 | 0;
27
27
  convertNgbDateToMomentInSpecificFormat(ngbDate: NgbDateType, format: string): string;
28
28
  getBroadcastWeek(startDate: any, format?: string): {
29
29
  start: dayjs.Dayjs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "31.4.14",
3
+ "version": "31.4.16",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^17.0.2",
6
6
  "@angular/common": "^17.3.12",
@@ -4,7 +4,7 @@
4
4
  @use "sass:map";
5
5
 
6
6
  @mixin sticky-left($leftOffset, $zIndex) {
7
- position: sticky;
7
+ position: sticky !important;
8
8
  left: $leftOffset;
9
9
  z-index: $zIndex !important;
10
10
  }
@@ -362,6 +362,9 @@
362
362
  }
363
363
  }
364
364
 
365
+ $map-length: length($sticky-left-map);
366
+ $last-column-index: if($map-length > 0, nth(map-keys($sticky-left-map), $map-length), null);
367
+
365
368
  @each $columnNumber, $sticky-prop in $sticky-left-map {
366
369
  $left-offset: map.get($sticky-prop, "left");
367
370
  $z-index: map.get($sticky-prop, "z-index");
@@ -370,6 +373,15 @@
370
373
  @include sticky-left($left-offset, $z-index);
371
374
  }
372
375
  }
376
+
377
+ @if ($last-column-index != null) {
378
+ td:nth-child(n + #{$last-column-index}),
379
+ th:nth-child(n + #{$last-column-index}) {
380
+ position: relative;
381
+ top: -1px;
382
+ // background-color: lightblue !important; /* Apply styles from non-sticky column to last column **/
383
+ }
384
+ }
373
385
  }
374
386
 
375
387
  @mixin table-data-shadow($columnNumber) {