@iapps/ng-dhis2-ui 1.2.111 → 1.2.113

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
@@ -1,17 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnDestroy, AfterViewInit, ElementRef, EventEmitter, NgZone, SimpleChanges, OnChanges, OnInit, EffectRef, Signal } from '@angular/core';
3
- import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
4
3
  import React, { ComponentProps } from 'react';
5
4
  import * as ReactDOM from 'react-dom/client';
6
5
  import * as i2 from '@angular/common';
7
6
  import * as _iapps_d2_web_sdk from '@iapps/d2-web-sdk';
8
- 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';
9
8
  import * as rxjs from 'rxjs';
10
9
  import { Observable, Subject } from 'rxjs';
11
10
  import * as i8 from '@angular/forms';
12
11
  import { FormGroup, FormControl, UntypedFormGroup } from '@angular/forms';
13
- import * as _dhis2_ui_loader from '@dhis2-ui/loader';
14
12
  import * as _dhis2_app_service_config from '@dhis2/app-service-config';
13
+ import * as _dhis2_ui_loader from '@dhis2-ui/loader';
15
14
 
16
15
  declare class ReactWrapperModule implements OnDestroy, AfterViewInit {
17
16
  protected elementRef: ElementRef<HTMLElement>;
@@ -28,8 +27,7 @@ declare class ReactWrapperModule implements OnDestroy, AfterViewInit {
28
27
  }
29
28
 
30
29
  declare class HeaderBarComponent extends ReactWrapperModule {
31
- private httpClient;
32
- constructor(elementRef: ElementRef<HTMLElement>, httpClient: NgxDhis2HttpClientService);
30
+ constructor();
33
31
  ngAfterViewInit(): Promise<void>;
34
32
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderBarComponent, never>;
35
33
  static ɵcmp: i0.ɵɵComponentDeclaration<HeaderBarComponent, "ng-dhis2-ui-header-bar", never, {}, {}, never, never, false, never>;
@@ -223,11 +221,6 @@ interface AttributeFilter {
223
221
  }
224
222
 
225
223
  declare class LineListService {
226
- private httpClient;
227
- constructor(httpClient: NgxDhis2HttpClientService);
228
- /**
229
- * Fetch orgUnit names for given orgUnit IDs
230
- */
231
224
  fetchOrgUnits(orgUnitIds: string[]): Observable<Map<string, string>>;
232
225
  static ɵfac: i0.ɵɵFactoryDeclaration<LineListService, never>;
233
226
  static ɵprov: i0.ɵɵInjectableDeclaration<LineListService>;
@@ -1008,7 +1001,7 @@ declare class D2FormModule {
1008
1001
  declare class FieldUtil {
1009
1002
  static getFieldDropdownOptions(field: any): DropdownOption[];
1010
1003
  static sanitizeOptions(options: any[]): any;
1011
- static getFieldType(valueType: string): "date" | "org-unit" | "file" | "email" | "tel" | "text" | "number";
1004
+ static getFieldType(valueType: string): "email" | "number" | "text" | "tel" | "date" | "org-unit" | "file";
1012
1005
  static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
1013
1006
  static getOptionEntities?(options: any[]): any;
1014
1007
  }
@@ -1018,7 +1011,7 @@ declare class FieldControlTypeUtil {
1018
1011
  }
1019
1012
 
1020
1013
  declare class FormFieldTypeUtil {
1021
- static getFieldType(valueType: string): "image" | "org-unit" | "file" | "text" | "number";
1014
+ static getFieldType(valueType: string): "number" | "text" | "image" | "org-unit" | "file";
1022
1015
  }
1023
1016
 
1024
1017
  declare class FormUtil {
@@ -1114,14 +1107,14 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
1114
1107
  FieldOrgUnitSelector: (props: {
1115
1108
  onSelectOrgUnit: (selectedOrgUnits: any) => void;
1116
1109
  onCancelOrgUnit: () => void;
1117
- }) => React.FunctionComponentElement<{
1110
+ }) => React.FunctionComponentElement<_dhis2_ui_loader.CircularLoaderProps> | React.FunctionComponentElement<{
1118
1111
  config: _dhis2_app_service_config.Config;
1119
1112
  children: React.ReactNode;
1120
1113
  offlineInterface?: any;
1121
1114
  plugin: boolean;
1122
1115
  parentAlertsAdd: any;
1123
1116
  showAlertsInPlugin: boolean;
1124
- }> | React.FunctionComponentElement<_dhis2_ui_loader.CircularLoaderProps>;
1117
+ }>;
1125
1118
  showOrgUnitTree: i0.WritableSignal<boolean>;
1126
1119
  orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
1127
1120
  selectedOrgUnit: i0.WritableSignal<any>;
@@ -1309,7 +1302,7 @@ declare class ProgramEntryFormModule {
1309
1302
  instance: i0.WritableSignal<TrackedEntityInstance | DHIS2Event>;
1310
1303
  instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
1311
1304
  instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
1312
- instanceSaveCompleted: EventEmitter<D2TrackerResponse<TrackedEntityInstance> | D2EventResponse<DHIS2Event>>;
1305
+ instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
1313
1306
  instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
1314
1307
  formValidityUpdate: EventEmitter<boolean>;
1315
1308
  formCancel: EventEmitter<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iapps/ng-dhis2-ui",
3
- "version": "1.2.111",
3
+ "version": "1.2.113",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",