@iapps/ng-dhis2-ui 1.2.111 → 1.2.112

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,11 +1,10 @@
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';
@@ -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>;
@@ -263,7 +256,7 @@ declare class LineListTableComponent extends ReactWrapperModule {
263
256
  action: string;
264
257
  data: TrackedEntityInstance | DHIS2Event;
265
258
  }>;
266
- rowsSelected: EventEmitter<TrackedEntityInstance[] | DHIS2Event[]>;
259
+ rowsSelected: EventEmitter<DHIS2Event[] | TrackedEntityInstance[]>;
267
260
  showActionButtons: boolean;
268
261
  showEnrollmentDates: boolean;
269
262
  showDownloadButton: boolean;
@@ -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 {
@@ -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.112",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",