@iapps/ng-dhis2-ui 1.2.136 → 1.2.137
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/fesm2022/iapps-ng-dhis2-ui.mjs +448 -135
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/package.json +1 -1
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;
|
|
@@ -1221,7 +1221,7 @@ declare class D2FormModule {
|
|
|
1221
1221
|
declare class FieldUtil {
|
|
1222
1222
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1223
1223
|
static sanitizeOptions(options: any[]): any;
|
|
1224
|
-
static getFieldType(valueType: string): "
|
|
1224
|
+
static getFieldType(valueType: string): "number" | "tel" | "email" | "org-unit" | "date" | "date-time" | "file" | "coordinate" | "text";
|
|
1225
1225
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1226
1226
|
static getOptionEntities?(options: any[]): any;
|
|
1227
1227
|
}
|
|
@@ -1231,7 +1231,7 @@ declare class FieldControlTypeUtil {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
|
|
1233
1233
|
declare class FormFieldTypeUtil {
|
|
1234
|
-
static getFieldType(valueType: string): "number" | "
|
|
1234
|
+
static getFieldType(valueType: string): "number" | "tel" | "org-unit" | "date-time" | "file" | "coordinate" | "text" | "image";
|
|
1235
1235
|
}
|
|
1236
1236
|
|
|
1237
1237
|
declare class FormUtil {
|
|
@@ -1429,7 +1429,7 @@ declare class ProgramEntryFormModule {
|
|
|
1429
1429
|
instance: TrackedEntityInstance | DHIS2Event;
|
|
1430
1430
|
}) => void>;
|
|
1431
1431
|
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1432
|
-
instanceSaveCompleted: EventEmitter<
|
|
1432
|
+
instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
|
|
1433
1433
|
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1434
1434
|
formValidityUpdate: EventEmitter<boolean>;
|
|
1435
1435
|
formCancel: EventEmitter<any>;
|