@annalib/anna-core 4.4.4 → 5.0.0

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.
@@ -346,11 +346,11 @@ class AnnaDateTimeFormatService {
346
346
  a = dayjs(a, format);
347
347
  b = dayjs(b, format);
348
348
  let results;
349
- results = a.duration().hours() > b.duration().hours() ? 1 : a.duration().hours() < b.duration().hours() ? -1 : 0;
349
+ results = a.get('hour') > b.get('hour') ? 1 : a.get('hour') < b.get('hour') ? -1 : 0;
350
350
  if (results === 0)
351
- results = a.duration().minutes() > b.duration().minutes() ? 1 : a.duration().minutes() < b.duration().minutes() ? -1 : 0;
351
+ results = a.get('minute') > b.get('minute') ? 1 : a.get('minute') < b.get('minute') ? -1 : 0;
352
352
  if (results === 0)
353
- results = a.duration().seconds() > b.duration().seconds() ? 1 : a.duration().seconds() < b.duration().seconds() ? -1 : 0;
353
+ results = a.get('second') > b.get('second') ? 1 : a.get('second') < b.get('second') ? -1 : 0;
354
354
  return results;
355
355
  }
356
356
  sortByTimeDescending(a, b) {
@@ -358,11 +358,11 @@ class AnnaDateTimeFormatService {
358
358
  a = dayjs(a, format);
359
359
  b = dayjs(b, format);
360
360
  let results;
361
- results = a.duration().hours() < b.duration().hours() ? 1 : a.duration().hours() > b.duration().hours() ? -1 : 0;
361
+ results = a.get('hour') < b.get('hour') ? 1 : a.get('hour') > b.get('hour') ? -1 : 0;
362
362
  if (results === 0)
363
- results = a.duration().minutes() < b.duration().minutes() ? 1 : a.duration().minutes() > b.duration().minutes() ? -1 : 0;
363
+ results = a.get('minute') < b.get('minute') ? 1 : a.get('minute') > b.get('minute') ? -1 : 0;
364
364
  if (results === 0)
365
- results = a.duration().seconds() < b.duration().seconds() ? 1 : a.duration().seconds() > b.duration().seconds() ? -1 : 0;
365
+ results = a.get('second') < b.get('second') ? 1 : a.get('second') > b.get('second') ? -1 : 0;
366
366
  return results;
367
367
  }
368
368
  convertNgbDateToMoment(ngbDate) {
@@ -2422,10 +2422,8 @@ class AnnaNonEditableGenericTableComponent {
2422
2422
  this.disableSliderApplyButton = false;
2423
2423
  this.incorrectSliderInput = false;
2424
2424
  }
2425
- console.log(this.sliderEnteredMinValue);
2426
2425
  }
2427
2426
  else {
2428
- console.log('inside else condition');
2429
2427
  this.sliderEnteredMinValue = this.options.floor;
2430
2428
  this.isMinTextBoxEmpty = true;
2431
2429
  this.showSliderMinValueError = false;
@@ -2482,7 +2480,6 @@ class AnnaNonEditableGenericTableComponent {
2482
2480
  this.sliderEnteredMaxValue = this.options.ceil;
2483
2481
  this.isMaxTextBoxEmpty = true;
2484
2482
  this.showSliderMaxValueError = false;
2485
- console.log(this.sliderEnteredMaxValue);
2486
2483
  }
2487
2484
  this.showErrorForMinAndMaxValue();
2488
2485
  }
@@ -3283,7 +3280,6 @@ class AnnaNonEditableGenericTableComponent {
3283
3280
  checkIfSortingChanged() {
3284
3281
  this.isSortChanged = this.tempSortOrder != null && this.tempSortOrder != this.annaSortService.columnSortState.get(this.annaFilterService.selectedRadio);
3285
3282
  ;
3286
- console.log(this.isSortChanged);
3287
3283
  return this.isSortChanged;
3288
3284
  }
3289
3285
  disableApplyButtonOfSelectedFilter() {