@iapps/ng-dhis2-ui 1.2.134 → 1.2.136
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 +285 -31
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +10 -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, D2TrackerResponse, D2EventResponse } 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<TrackedEntityInstance[] | DHIS2Event[]>;
|
|
261
261
|
showActionButtons: boolean;
|
|
262
262
|
showEnrollmentDates: boolean;
|
|
263
263
|
showDownloadButton: boolean;
|
|
@@ -1100,7 +1100,12 @@ declare class ProgramEntryFormMetaData implements IProgramEntryFormMetaData {
|
|
|
1100
1100
|
d2: _iapps_d2_web_sdk.D2Web;
|
|
1101
1101
|
config: ProgramEntryFormConfig;
|
|
1102
1102
|
program: Program;
|
|
1103
|
+
private autoAssignedFieldIdSet?;
|
|
1103
1104
|
setConfig(config: ProgramEntryFormConfig): ProgramEntryFormMetaData;
|
|
1105
|
+
private getFieldIdentifiers;
|
|
1106
|
+
private getAutoAssignedFieldIdSet;
|
|
1107
|
+
private shouldDisableField;
|
|
1108
|
+
private withDisabledFlags;
|
|
1104
1109
|
getProgramPromise(): Promise<_iapps_d2_web_sdk.D2Response<Program>>;
|
|
1105
1110
|
get formFields(): IFormField<string>[];
|
|
1106
1111
|
get sections(): IProgramEntryFormSection[];
|
|
@@ -1216,7 +1221,7 @@ declare class D2FormModule {
|
|
|
1216
1221
|
declare class FieldUtil {
|
|
1217
1222
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1218
1223
|
static sanitizeOptions(options: any[]): any;
|
|
1219
|
-
static getFieldType(valueType: string): "
|
|
1224
|
+
static getFieldType(valueType: string): "email" | "number" | "text" | "tel" | "date" | "date-time" | "org-unit" | "file" | "coordinate";
|
|
1220
1225
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1221
1226
|
static getOptionEntities?(options: any[]): any;
|
|
1222
1227
|
}
|
|
@@ -1226,7 +1231,7 @@ declare class FieldControlTypeUtil {
|
|
|
1226
1231
|
}
|
|
1227
1232
|
|
|
1228
1233
|
declare class FormFieldTypeUtil {
|
|
1229
|
-
static getFieldType(valueType: string): "number" | "
|
|
1234
|
+
static getFieldType(valueType: string): "number" | "text" | "tel" | "date-time" | "image" | "org-unit" | "file" | "coordinate";
|
|
1230
1235
|
}
|
|
1231
1236
|
|
|
1232
1237
|
declare class FormUtil {
|
|
@@ -1424,7 +1429,7 @@ declare class ProgramEntryFormModule {
|
|
|
1424
1429
|
instance: TrackedEntityInstance | DHIS2Event;
|
|
1425
1430
|
}) => void>;
|
|
1426
1431
|
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1427
|
-
instanceSaveCompleted: EventEmitter<
|
|
1432
|
+
instanceSaveCompleted: EventEmitter<D2TrackerResponse<TrackedEntityInstance> | D2EventResponse<DHIS2Event>>;
|
|
1428
1433
|
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1429
1434
|
formValidityUpdate: EventEmitter<boolean>;
|
|
1430
1435
|
formCancel: EventEmitter<any>;
|