@iapps/ng-dhis2-ui 1.2.133 → 1.2.134
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;
|
|
@@ -327,7 +327,7 @@ interface IFieldDropdown {
|
|
|
327
327
|
code?: string;
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
type FieldControlType = 'dropdown' | 'multi-dropdown' | 'textbox' | 'textarea' | 'checkbox' | 'date' | 'date-time' | 'image' | 'org-unit' | 'file' | 'boolean' | 'transfer' | 'coordinate' | 'search';
|
|
330
|
+
type FieldControlType = 'dropdown' | 'multi-dropdown' | 'textbox' | 'textarea' | 'checkbox' | 'date' | 'date-time' | 'image' | 'org-unit' | 'file' | 'boolean' | 'number' | 'tel' | 'transfer' | 'coordinate' | 'search';
|
|
331
331
|
|
|
332
332
|
type FormFieldMetaType = 'DATA_ELEMENT' | 'ATTRIBUTE';
|
|
333
333
|
|
|
@@ -1216,7 +1216,7 @@ declare class D2FormModule {
|
|
|
1216
1216
|
declare class FieldUtil {
|
|
1217
1217
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1218
1218
|
static sanitizeOptions(options: any[]): any;
|
|
1219
|
-
static getFieldType(valueType: string): "
|
|
1219
|
+
static getFieldType(valueType: string): "number" | "tel" | "text" | "email" | "date" | "date-time" | "org-unit" | "file" | "coordinate";
|
|
1220
1220
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1221
1221
|
static getOptionEntities?(options: any[]): any;
|
|
1222
1222
|
}
|
|
@@ -1226,14 +1226,14 @@ declare class FieldControlTypeUtil {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
|
|
1228
1228
|
declare class FormFieldTypeUtil {
|
|
1229
|
-
static getFieldType(valueType: string): "
|
|
1229
|
+
static getFieldType(valueType: string): "number" | "tel" | "text" | "date-time" | "image" | "org-unit" | "file" | "coordinate";
|
|
1230
1230
|
}
|
|
1231
1231
|
|
|
1232
1232
|
declare class FormUtil {
|
|
1233
1233
|
static getFormGroup(fields: IFormField<string>[], dataEntities: any): UntypedFormGroup;
|
|
1234
1234
|
static getFieldValue(field: IFormField<string>, dataEntities: Record<string, any>): any;
|
|
1235
1235
|
static getFormFields(fields: any[]): FormField<string>[];
|
|
1236
|
-
static createField(id: string, label: string, required: boolean, controlType: 'textbox' | 'dropdown' | 'textarea' | 'coordinate' | 'date-time' | 'transfer' | 'search' | 'file', disabled?: boolean, placeholder?: string, options?: Array<any>): FormField<string>;
|
|
1236
|
+
static createField(id: string, label: string, required: boolean, controlType: 'textbox' | 'dropdown' | 'textarea' | 'coordinate' | 'number' | 'tel' | 'date-time' | 'transfer' | 'search' | 'file', disabled?: boolean, placeholder?: string, options?: Array<any>): FormField<string>;
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
declare class FormValueUtil {
|
|
@@ -1424,7 +1424,7 @@ declare class ProgramEntryFormModule {
|
|
|
1424
1424
|
instance: TrackedEntityInstance | DHIS2Event;
|
|
1425
1425
|
}) => void>;
|
|
1426
1426
|
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1427
|
-
instanceSaveCompleted: EventEmitter<
|
|
1427
|
+
instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
|
|
1428
1428
|
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1429
1429
|
formValidityUpdate: EventEmitter<boolean>;
|
|
1430
1430
|
formCancel: EventEmitter<any>;
|