@iapps/ng-dhis2-ui 1.2.119 → 1.2.121
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.
package/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import React, { ComponentProps } from 'react';
|
|
|
4
4
|
import * as ReactDOM from 'react-dom/client';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
6
6
|
import * as _iapps_d2_web_sdk from '@iapps/d2-web-sdk';
|
|
7
|
-
import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRuleAction, ProgramRuleVariable, ProgramRule, Program, BaseTrackerQuery, BaseEventQuery,
|
|
7
|
+
import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRuleAction, ProgramRuleVariable, ProgramRule, Program, BaseTrackerQuery, BaseEventQuery, D2EventResponse, D2TrackerResponse } from '@iapps/d2-web-sdk';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
9
9
|
import { Observable, Subject } from 'rxjs';
|
|
10
10
|
import * as i8 from '@angular/forms';
|
|
@@ -257,7 +257,7 @@ declare class LineListTableComponent extends ReactWrapperModule {
|
|
|
257
257
|
action: string;
|
|
258
258
|
data: TrackedEntityInstance | DHIS2Event;
|
|
259
259
|
}>;
|
|
260
|
-
rowsSelected: EventEmitter<
|
|
260
|
+
rowsSelected: EventEmitter<DHIS2Event[] | TrackedEntityInstance[]>;
|
|
261
261
|
showActionButtons: boolean;
|
|
262
262
|
showEnrollmentDates: boolean;
|
|
263
263
|
showDownloadButton: boolean;
|
|
@@ -1008,7 +1008,7 @@ declare class D2FormModule {
|
|
|
1008
1008
|
declare class FieldUtil {
|
|
1009
1009
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1010
1010
|
static sanitizeOptions(options: any[]): any;
|
|
1011
|
-
static getFieldType(valueType: string): "
|
|
1011
|
+
static getFieldType(valueType: string): "email" | "number" | "text" | "tel" | "date" | "org-unit" | "file";
|
|
1012
1012
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1013
1013
|
static getOptionEntities?(options: any[]): any;
|
|
1014
1014
|
}
|
|
@@ -1018,7 +1018,7 @@ declare class FieldControlTypeUtil {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
|
|
1020
1020
|
declare class FormFieldTypeUtil {
|
|
1021
|
-
static getFieldType(valueType: string): "
|
|
1021
|
+
static getFieldType(valueType: string): "number" | "text" | "image" | "org-unit" | "file";
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
1024
|
declare class FormUtil {
|
|
@@ -1309,7 +1309,7 @@ declare class ProgramEntryFormModule {
|
|
|
1309
1309
|
instance: i0.WritableSignal<TrackedEntityInstance | DHIS2Event>;
|
|
1310
1310
|
instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
|
|
1311
1311
|
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1312
|
-
instanceSaveCompleted: EventEmitter<
|
|
1312
|
+
instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
|
|
1313
1313
|
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1314
1314
|
formValidityUpdate: EventEmitter<boolean>;
|
|
1315
1315
|
formCancel: EventEmitter<any>;
|