@iapps/ng-dhis2-ui 1.2.100 → 1.2.102
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/fesm2022/iapps-ng-dhis2-ui.mjs +82 -76
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/lib/modules/form/components/base-form-field.component.d.ts +0 -2
- package/lib/modules/form/utils/field-type.util.d.ts +1 -1
- package/lib/modules/form/utils/field.util.d.ts +1 -1
- package/lib/modules/line-list/containers/line-list.component.d.ts +1 -1
- package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.d.ts +2 -3
- package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts +2 -3
- package/lib/modules/period-selector/containers/period-selector-modal/period-selector-modal.component.d.ts +2 -3
- package/lib/modules/program-entry-form/program-entry-form.component.d.ts +1 -1
- package/lib/modules/selection-filters-ui/containers/selection-filters-ui/selection-filters-ui.component.d.ts +4 -6
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, NgZone, Signal } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import { ReactWrapperModule } from '../../react-wrapper/react-wrapper.component';
|
|
6
5
|
import { IFormField } from '../interfaces';
|
|
@@ -10,7 +9,6 @@ import * as i0 from "@angular/core";
|
|
|
10
9
|
export declare class BaseFormFieldComponent extends ReactWrapperModule {
|
|
11
10
|
#private;
|
|
12
11
|
ngZone: NgZone;
|
|
13
|
-
httpClient: NgxDhis2HttpClientService;
|
|
14
12
|
fieldType: string;
|
|
15
13
|
field: import("@angular/core").InputSignal<IFormField<string>>;
|
|
16
14
|
fieldError: import("@angular/core").InputSignal<string>;
|
|
@@ -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): "
|
|
6
|
+
static getFieldType(valueType: string): "date" | "org-unit" | "file" | "text" | "number" | "email" | "tel";
|
|
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<
|
|
39
|
+
rowsSelected: EventEmitter<TrackedEntityInstance[] | DHIS2Event[]>;
|
|
40
40
|
showActionButtons: boolean;
|
|
41
41
|
showEnrollmentDates: boolean;
|
|
42
42
|
showDownloadButton: boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter } 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,14 +7,14 @@ type OrganisationUnitSelectionEvent = {
|
|
|
8
7
|
items: Record<string, unknown>[];
|
|
9
8
|
};
|
|
10
9
|
export declare class OrganisationUnitSelectorModalComponent extends ReactWrapperModule {
|
|
11
|
-
|
|
10
|
+
d2: import("@iapps/d2-web-sdk").D2Web;
|
|
12
11
|
selectedOrgUnits: any[];
|
|
13
12
|
orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
|
|
14
13
|
selectOrgUnits: EventEmitter<any>;
|
|
15
14
|
cancel: EventEmitter<any>;
|
|
16
15
|
confirm: EventEmitter<any>;
|
|
17
16
|
props: Record<string, unknown>;
|
|
18
|
-
constructor(elementRef: ElementRef<HTMLElement
|
|
17
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
19
18
|
ngAfterViewInit(): Promise<void>;
|
|
20
19
|
onCancel(): void;
|
|
21
20
|
onConfirm(selectedItems: any[]): void;
|
package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts
CHANGED
|
@@ -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 * as i0 from "@angular/core";
|
|
5
4
|
type PeriodSelectionEvent = {
|
|
@@ -7,12 +6,12 @@ type PeriodSelectionEvent = {
|
|
|
7
6
|
items: Record<string, unknown>[];
|
|
8
7
|
};
|
|
9
8
|
export declare class PeriodSelectorComponent extends ReactWrapperModule {
|
|
10
|
-
private httpClient;
|
|
11
9
|
private ngZone;
|
|
10
|
+
d2: import("@iapps/d2-web-sdk").D2Web;
|
|
12
11
|
selectedPeriods: any[];
|
|
13
12
|
selectPeriods: EventEmitter<any>;
|
|
14
13
|
props: Record<string, unknown>;
|
|
15
|
-
constructor(elementRef: ElementRef<HTMLElement>,
|
|
14
|
+
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone);
|
|
16
15
|
ngAfterViewInit(): Promise<void>;
|
|
17
16
|
onSelectItems(selectionEvent: PeriodSelectionEvent): void;
|
|
18
17
|
getExcludedPeriodTypes: (systemSettings?: any) => any[];
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter } 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 * as i0 from "@angular/core";
|
|
5
4
|
export declare class PeriodSelectorModalComponent extends ReactWrapperModule {
|
|
6
|
-
|
|
5
|
+
d2: import("@iapps/d2-web-sdk").D2Web;
|
|
7
6
|
selectedPeriods: any[];
|
|
8
7
|
cancel: EventEmitter<any>;
|
|
9
8
|
confirm: EventEmitter<any>;
|
|
10
|
-
constructor(elementRef: ElementRef<HTMLElement
|
|
9
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
11
10
|
ngAfterViewInit(): Promise<void>;
|
|
12
11
|
onCancel(): void;
|
|
13
12
|
onConfirm(selectedItems: any[]): void;
|
|
@@ -22,7 +22,7 @@ export declare class ProgramEntryFormModule {
|
|
|
22
22
|
instance: import("@angular/core").WritableSignal<TrackedEntityInstance | DHIS2Event>;
|
|
23
23
|
instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
|
|
24
24
|
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
25
|
-
instanceSaveCompleted: EventEmitter<
|
|
25
|
+
instanceSaveCompleted: EventEmitter<D2TrackerResponse<TrackedEntityInstance> | D2EventResponse<DHIS2Event>>;
|
|
26
26
|
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
27
27
|
formValidityUpdate: EventEmitter<boolean>;
|
|
28
28
|
formCancel: EventEmitter<any>;
|
|
@@ -2,11 +2,10 @@ import { AfterViewInit, EventEmitter, NgZone } from '@angular/core';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
|
|
4
4
|
import { ProgramAttributesFilter, ProgramStageDataElementFilter, SelectionFiltersProps, TableRow } from '../../models/selection-filters-ui.model';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
7
5
|
import { OrganisationUnitSelectionConfig } from '../../../organisation-unit-selector';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
9
7
|
export declare class SelectionFiltersComponent extends ReactWrapperModule implements AfterViewInit {
|
|
8
|
+
d2: import("@iapps/d2-web-sdk").D2Web;
|
|
10
9
|
actionOptions: {
|
|
11
10
|
label: string;
|
|
12
11
|
onClick: (row: TableRow) => void;
|
|
@@ -18,13 +17,12 @@ export declare class SelectionFiltersComponent extends ReactWrapperModule implem
|
|
|
18
17
|
program?: string;
|
|
19
18
|
organisationUnit?: string;
|
|
20
19
|
actionSelected: EventEmitter<SelectionFiltersProps>;
|
|
21
|
-
httpClient: NgxDhis2HttpClientService;
|
|
22
20
|
ngZone: NgZone;
|
|
23
21
|
private getAppConfig;
|
|
24
|
-
getRootOrgUnits():
|
|
22
|
+
getRootOrgUnits(): Promise<string[]>;
|
|
23
|
+
getOrgUnitGroups(): Promise<any>;
|
|
25
24
|
getOrgUnitLevels(): Promise<any>;
|
|
26
25
|
onSelectOrgUnit(selectedOrgUnits: Record<string, string>[]): void;
|
|
27
|
-
getOrgUnitGroups(): Promise<any>;
|
|
28
26
|
getOrgUnitAttributeByUsage(usageType: string): "organisationUnits" | "dataViewOrganisationUnits";
|
|
29
27
|
FieldOrgUnitSelector: (props: {
|
|
30
28
|
onSelectOrgUnit: (selectedOrgUnits: any) => void;
|
|
@@ -33,7 +31,7 @@ export declare class SelectionFiltersComponent extends ReactWrapperModule implem
|
|
|
33
31
|
showOrgUnitTree: import("@angular/core").WritableSignal<boolean>;
|
|
34
32
|
orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
|
|
35
33
|
selectedOrgUnit: import("@angular/core").WritableSignal<any>;
|
|
36
|
-
selectedOrgUnit$: Observable<any>;
|
|
34
|
+
selectedOrgUnit$: import("rxjs").Observable<any>;
|
|
37
35
|
SelectionFiltersUI: () => React.JSX.Element;
|
|
38
36
|
ngAfterViewInit(): Promise<void>;
|
|
39
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionFiltersComponent, never>;
|