@iapps/ng-dhis2-ui 1.3.5 → 1.3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iapps/ng-dhis2-ui",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",
@@ -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, ProgramRule, ProgramRuleVariable, ProgramRuleAction, Program, BaseTrackerQuery, BaseEventQuery, D2TrackerResponse, D2EventResponse } from '@iapps/d2-web-sdk';
7
+ import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, LineListRowActionFilterConfig, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRule, ProgramRuleVariable, ProgramRuleAction, 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';
@@ -1279,6 +1279,7 @@ interface IProgramEntryFormConfig {
1279
1279
  updateTeiOrgUnit?: boolean;
1280
1280
  optionCascadeConfigs?: OptionsPathCascadeConfig[];
1281
1281
  coordinatePickerGeoConfig?: CoordinatePickerGeoConfig;
1282
+ enableCustomFieldConfigurations?: boolean;
1282
1283
  }
1283
1284
  declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
1284
1285
  program: string;
@@ -1314,6 +1315,7 @@ declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
1314
1315
  updateTeiOrgUnit: boolean;
1315
1316
  optionCascadeConfigs?: OptionsPathCascadeConfig[];
1316
1317
  coordinatePickerGeoConfig?: CoordinatePickerGeoConfig;
1318
+ enableCustomFieldConfigurations: boolean;
1317
1319
  constructor(config: IProgramEntryFormConfig);
1318
1320
  }
1319
1321
 
@@ -1474,7 +1476,7 @@ declare class D2FormModule {
1474
1476
  declare class FieldUtil {
1475
1477
  static getFieldDropdownOptions(field: any): DropdownOption[];
1476
1478
  static sanitizeOptions(options: any[]): any;
1477
- static getFieldType(valueType: string): "org-unit" | "date" | "date-time" | "file" | "number" | "tel" | "coordinate" | "email" | "text";
1479
+ static getFieldType(valueType: string): "email" | "number" | "text" | "tel" | "date" | "date-time" | "org-unit" | "file" | "coordinate";
1478
1480
  static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
1479
1481
  static getOptionEntities?(options: any[]): any;
1480
1482
  }
@@ -1484,7 +1486,7 @@ declare class FieldControlTypeUtil {
1484
1486
  }
1485
1487
 
1486
1488
  declare class FormFieldTypeUtil {
1487
- static getFieldType(valueType: string): "org-unit" | "date-time" | "image" | "file" | "number" | "tel" | "coordinate" | "text";
1489
+ static getFieldType(valueType: string): "number" | "text" | "tel" | "date-time" | "image" | "org-unit" | "file" | "coordinate";
1488
1490
  }
1489
1491
 
1490
1492
  declare class FormUtil {
@@ -1685,7 +1687,7 @@ declare class ProgramEntryFormModule {
1685
1687
  instance: TrackedEntityInstance | DHIS2Event;
1686
1688
  }) => void>;
1687
1689
  instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
1688
- instanceSaveCompleted: EventEmitter<D2TrackerResponse<TrackedEntityInstance> | D2EventResponse<DHIS2Event>>;
1690
+ instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
1689
1691
  instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
1690
1692
  formValidityUpdate: EventEmitter<boolean>;
1691
1693
  formCancel: EventEmitter<any>;