@iapps/ng-dhis2-ui 1.2.82 → 1.2.83

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.
@@ -31,7 +31,7 @@ import cx from 'classnames';
31
31
  import { getNowInCalendar, generateFixedPeriods } from '@dhis2/multi-calendar-dates';
32
32
  import { Pager, DataOrderCriteria, DataQueryFilter, DataFilterCondition, ProgramRuleEngine } from '@iapps/d2-web-sdk';
33
33
  import { map as map$1 } from 'rxjs/operators';
34
- import { format, parse as parse$1 } from 'date-fns';
34
+ import { format, parse as parse$1, addDays } from 'date-fns';
35
35
  import * as XLSX from 'xlsx';
36
36
  import * as i2 from '@angular/forms';
37
37
  import { Validators, UntypedFormControl, UntypedFormGroup, FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
@@ -4015,7 +4015,6 @@ const getEvents = (response, programStageId, pager, metaData) => {
4015
4015
  return { columns: entityColumns, data: dataElementsData };
4016
4016
  };
4017
4017
 
4018
- // src/app/line-list-table.component.ts
4019
4018
  class LineListTableComponent extends ReactWrapperModule {
4020
4019
  constructor() {
4021
4020
  super(...arguments);
@@ -4120,7 +4119,7 @@ class LineListTableComponent extends ReactWrapperModule {
4120
4119
  }
4121
4120
  const isTracker = metaData.programType === 'WITH_REGISTRATION';
4122
4121
  const isEvent = metaData.programType === 'WITHOUT_REGISTRATION';
4123
- const endDate = endDateState ?? new Date().toISOString().split('T')[0];
4122
+ const endDate = endDateState ?? format(addDays(new Date(), 1), 'yyyy-MM-dd');
4124
4123
  if (this.programStageId || isEvent) {
4125
4124
  setLoading(true);
4126
4125
  d2.eventModule.event