@iapps/ng-dhis2-ui 1.2.132 → 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, D2TrackerResponse, D2EventResponse } from '@iapps/d2-web-sdk';
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<TrackedEntityInstance[] | DHIS2Event[]>;
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
 
@@ -363,6 +363,7 @@ interface IFormField<T> {
363
363
  isDataElement?: boolean;
364
364
  isAttribute?: boolean;
365
365
  isOrgUnit?: boolean;
366
+ isGeometryField?: boolean;
366
367
  isEnrollmentDate?: boolean;
367
368
  event?: string;
368
369
  programStage?: string;
@@ -528,6 +529,7 @@ declare class FormField<T> implements IFormField<T>, FormFieldFunction<T> {
528
529
  isDataElement?: boolean;
529
530
  isAttribute?: boolean;
530
531
  isOrgUnit?: boolean;
532
+ isGeometryField?: boolean;
531
533
  isEnrollmentDate?: boolean;
532
534
  event?: string;
533
535
  programStage?: string;
@@ -1011,12 +1013,15 @@ interface IProgramEntryFormConfig {
1011
1013
  formType: 'TRACKER' | 'EVENT';
1012
1014
  hideRegistrationUnit?: boolean;
1013
1015
  hideEnrollmentDate?: boolean;
1016
+ hideGeometryField?: boolean;
1014
1017
  hideTrackedEntityTypeAttributes?: boolean;
1015
1018
  disableRegistrationUnit?: boolean;
1016
1019
  disableEnrollmentDate?: boolean;
1017
1020
  disabledIncidentDate?: boolean;
1018
1021
  excludeProgramStages?: boolean;
1019
1022
  excludeInheritedAttributes?: boolean;
1023
+ disableEventDate?: boolean;
1024
+ hideEventDate?: boolean;
1020
1025
  includedProgramStages?: string[];
1021
1026
  submitButtonLabel?: string;
1022
1027
  cancelButtonLabel?: string;
@@ -1037,10 +1042,13 @@ declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
1037
1042
  formType: 'TRACKER' | 'EVENT';
1038
1043
  hideRegistrationUnit?: boolean;
1039
1044
  hideEnrollmentDate?: boolean;
1045
+ hideGeometryField?: boolean;
1040
1046
  hideTrackedEntityTypeAttributes?: boolean;
1041
1047
  disableRegistrationUnit?: boolean;
1042
1048
  disableEnrollmentDate?: boolean;
1043
1049
  disabledIncidentDate?: boolean;
1050
+ disableEventDate?: boolean;
1051
+ hideEventDate?: boolean;
1044
1052
  excludeProgramStages?: boolean;
1045
1053
  excludeInheritedAttributes?: boolean;
1046
1054
  includedProgramStages?: string[];
@@ -1208,7 +1216,7 @@ declare class D2FormModule {
1208
1216
  declare class FieldUtil {
1209
1217
  static getFieldDropdownOptions(field: any): DropdownOption[];
1210
1218
  static sanitizeOptions(options: any[]): any;
1211
- static getFieldType(valueType: string): "date" | "date-time" | "org-unit" | "file" | "coordinate" | "text" | "number" | "email" | "tel";
1219
+ static getFieldType(valueType: string): "number" | "tel" | "text" | "email" | "date" | "date-time" | "org-unit" | "file" | "coordinate";
1212
1220
  static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
1213
1221
  static getOptionEntities?(options: any[]): any;
1214
1222
  }
@@ -1218,14 +1226,14 @@ declare class FieldControlTypeUtil {
1218
1226
  }
1219
1227
 
1220
1228
  declare class FormFieldTypeUtil {
1221
- static getFieldType(valueType: string): "date-time" | "image" | "org-unit" | "file" | "coordinate" | "text" | "number";
1229
+ static getFieldType(valueType: string): "number" | "tel" | "text" | "date-time" | "image" | "org-unit" | "file" | "coordinate";
1222
1230
  }
1223
1231
 
1224
1232
  declare class FormUtil {
1225
1233
  static getFormGroup(fields: IFormField<string>[], dataEntities: any): UntypedFormGroup;
1226
1234
  static getFieldValue(field: IFormField<string>, dataEntities: Record<string, any>): any;
1227
1235
  static getFormFields(fields: any[]): FormField<string>[];
1228
- 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>;
1229
1237
  }
1230
1238
 
1231
1239
  declare class FormValueUtil {
@@ -1416,7 +1424,7 @@ declare class ProgramEntryFormModule {
1416
1424
  instance: TrackedEntityInstance | DHIS2Event;
1417
1425
  }) => void>;
1418
1426
  instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
1419
- instanceSaveCompleted: EventEmitter<D2TrackerResponse<TrackedEntityInstance> | D2EventResponse<DHIS2Event>>;
1427
+ instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
1420
1428
  instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
1421
1429
  formValidityUpdate: EventEmitter<boolean>;
1422
1430
  formCancel: EventEmitter<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iapps/ng-dhis2-ui",
3
- "version": "1.2.132",
3
+ "version": "1.2.134",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",