@annalib/anna-core 25.2.23 → 25.2.26

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": "25.2.23",
3
+ "version": "25.2.26",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^16.0.1",
6
6
  "@angular/common": "^16.2.12",
@@ -116,15 +116,6 @@
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
-
128
119
  @mixin table-header($sticky-left-map, $box-shadow-map, $bg-color: #ededed) {
129
120
  $last-sticky-col: 0;
130
121
  @if (list.length(map.keys($sticky-left-map)) > 0) {
@@ -145,7 +136,6 @@
145
136
 
146
137
  $box-shadow-start-index: map.get($box-shadow-map, "start-index");
147
138
  $box-shadow-end-index: map.get($box-shadow-map, "end-index");
148
- $box-shadow-end-index: convert-string-to-number($box-shadow-end-index);
149
139
 
150
140
  @for $i from $box-shadow-start-index through $box-shadow-end-index {
151
141
  @if ($i == $box-shadow-start-index) {