@iapps/ng-dhis2-ui 1.2.99 → 1.2.100

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.
@@ -1,3 +1,3 @@
1
1
  export declare class FormFieldTypeUtil {
2
- static getFieldType(valueType: string): "text" | "image" | "org-unit" | "file" | "number";
2
+ static getFieldType(valueType: string): "number" | "text" | "image" | "org-unit" | "file";
3
3
  }
@@ -3,7 +3,7 @@ import { DropdownOption } from '../models';
3
3
  export declare class FieldUtil {
4
4
  static getFieldDropdownOptions(field: any): DropdownOption[];
5
5
  static sanitizeOptions(options: any[]): any;
6
- static getFieldType(valueType: string): "text" | "tel" | "email" | "date" | "org-unit" | "file" | "number";
6
+ static getFieldType(valueType: string): "email" | "number" | "text" | "tel" | "date" | "org-unit" | "file";
7
7
  static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
8
8
  static getOptionEntities?(options: any[]): any;
9
9
  }
@@ -36,7 +36,7 @@ export declare class LineListTableComponent extends ReactWrapperModule {
36
36
  action: string;
37
37
  data: TrackedEntityInstance | DHIS2Event;
38
38
  }>;
39
- rowsSelected: EventEmitter<TrackedEntityInstance[] | DHIS2Event[]>;
39
+ rowsSelected: EventEmitter<DHIS2Event[] | TrackedEntityInstance[]>;
40
40
  showActionButtons: boolean;
41
41
  showEnrollmentDates: boolean;
42
42
  showDownloadButton: boolean;
@@ -1,5 +1,4 @@
1
1
  import { ElementRef, EventEmitter, NgZone } from '@angular/core';
2
- import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
3
2
  import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
4
3
  import { OrganisationUnitSelectionConfig, OrganisationUnitSelectionUsageType } from '../../models';
5
4
  import * as i0 from "@angular/core";
@@ -8,13 +7,13 @@ type OrganisationUnitSelectionEvent = {
8
7
  items: Record<string, unknown>[];
9
8
  };
10
9
  export declare class OrganisationUnitSelectorComponent extends ReactWrapperModule {
11
- private httpClient;
12
10
  private ngZone;
11
+ d2: import("@iapps/d2-web-sdk").D2Web;
13
12
  selectedOrgUnits: any[];
14
13
  orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
15
14
  selectOrgUnits: EventEmitter<any>;
16
15
  props: Record<string, unknown>;
17
- constructor(elementRef: ElementRef<HTMLElement>, httpClient: NgxDhis2HttpClientService, ngZone: NgZone);
16
+ constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone);
18
17
  ngAfterViewInit(): Promise<void>;
19
18
  private getAppConfig;
20
19
  getOrgUnitAttributeByUsage(usageType: OrganisationUnitSelectionUsageType): "organisationUnits" | "dataViewOrganisationUnits";
@@ -8,5 +8,6 @@ export declare class OrganisationUnitSelectionConfig {
8
8
  allowSingleSelection?: boolean;
9
9
  batchSize?: number;
10
10
  additionalQueryFields?: string[];
11
+ allowCaching?: boolean;
11
12
  constructor(params?: Partial<OrganisationUnitSelectionConfig>);
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iapps/ng-dhis2-ui",
3
- "version": "1.2.99",
3
+ "version": "1.2.100",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",