@iapps/ng-dhis2-ui 1.2.163 → 1.2.165

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, LineListRowActionFilterConfig, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRuleAction, ProgramRuleVariable, ProgramRule, Program, BaseTrackerQuery, BaseEventQuery, D2TrackerResponse, D2EventResponse } from '@iapps/d2-web-sdk';
7
+ import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, LineListRowActionFilterConfig, 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';
@@ -342,6 +342,7 @@ interface FormFieldExtension {
342
342
  isDataElementUnique?: boolean;
343
343
  optionsSourceCode?: string;
344
344
  organisationUnits?: any[];
345
+ orgUnitRoots?: string[];
345
346
  }
346
347
 
347
348
  interface IFormField<T> {
@@ -1433,7 +1434,7 @@ declare class D2FormModule {
1433
1434
  declare class FieldUtil {
1434
1435
  static getFieldDropdownOptions(field: any): DropdownOption[];
1435
1436
  static sanitizeOptions(options: any[]): any;
1436
- static getFieldType(valueType: string): "date" | "date-time" | "org-unit" | "file" | "number" | "tel" | "coordinate" | "text" | "email";
1437
+ static getFieldType(valueType: string): "date" | "email" | "number" | "text" | "tel" | "date-time" | "org-unit" | "file" | "coordinate";
1437
1438
  static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
1438
1439
  static getOptionEntities?(options: any[]): any;
1439
1440
  }
@@ -1443,7 +1444,7 @@ declare class FieldControlTypeUtil {
1443
1444
  }
1444
1445
 
1445
1446
  declare class FormFieldTypeUtil {
1446
- static getFieldType(valueType: string): "date-time" | "image" | "org-unit" | "file" | "number" | "tel" | "coordinate" | "text";
1447
+ static getFieldType(valueType: string): "number" | "text" | "tel" | "date-time" | "image" | "org-unit" | "file" | "coordinate";
1447
1448
  }
1448
1449
 
1449
1450
  declare class FormUtil {
@@ -1642,7 +1643,7 @@ declare class ProgramEntryFormModule {
1642
1643
  instance: TrackedEntityInstance | DHIS2Event;
1643
1644
  }) => void>;
1644
1645
  instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
1645
- instanceSaveCompleted: EventEmitter<D2TrackerResponse<TrackedEntityInstance> | D2EventResponse<DHIS2Event>>;
1646
+ instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
1646
1647
  instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
1647
1648
  formValidityUpdate: EventEmitter<boolean>;
1648
1649
  formCancel: EventEmitter<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iapps/ng-dhis2-ui",
3
- "version": "1.2.163",
3
+ "version": "1.2.165",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",