@iapps/ng-dhis2-ui 1.2.81 → 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()
|
|
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
|
|
@@ -6562,10 +6561,6 @@ class FormComponent {
|
|
|
6562
6561
|
this.#processRules(this.programRuleActions());
|
|
6563
6562
|
});
|
|
6564
6563
|
}
|
|
6565
|
-
ngOnInit() {
|
|
6566
|
-
this.values = this.form.getRawValue();
|
|
6567
|
-
this.formUpdate.emit(new FormValue(this.form, this.fields));
|
|
6568
|
-
}
|
|
6569
6564
|
ngOnChanges(changes) {
|
|
6570
6565
|
this.values = this.form.getRawValue();
|
|
6571
6566
|
}
|
|
@@ -6899,6 +6894,7 @@ class FlatFormComponent extends BaseFormWrapperComponent {
|
|
|
6899
6894
|
this.onFormUpdate();
|
|
6900
6895
|
}
|
|
6901
6896
|
onFormUpdate() {
|
|
6897
|
+
console.log('WE ARE UPDATING HERE');
|
|
6902
6898
|
this.updateDataValues(this.formGroup.getRawValue());
|
|
6903
6899
|
this.updateFormValidity(this.formGroup.valid);
|
|
6904
6900
|
}
|