@iapps/ng-dhis2-ui 1.2.75 → 1.2.80
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 +4 -0
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/lib/modules/form/containers/form/form.component.d.ts +3 -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/program-entry-form/program-entry-form.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EffectRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EffectRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { FieldsData, FormConfig, IMetadataRuleAction } from '../../models';
|
|
4
4
|
import { FormFieldComponent } from '../form-field/form-field.component';
|
|
5
5
|
import { IFormField } from '../../interfaces';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FormComponent implements OnChanges, OnDestroy {
|
|
7
|
+
export declare class FormComponent implements OnChanges, OnDestroy, OnInit {
|
|
8
8
|
#private;
|
|
9
9
|
formConfig: import("@angular/core").InputSignal<FormConfig>;
|
|
10
10
|
fields: IFormField<string>[];
|
|
@@ -24,6 +24,7 @@ export declare class FormComponent implements OnChanges, OnDestroy {
|
|
|
24
24
|
get layoutCssClass(): string;
|
|
25
25
|
ruleProcessor: EffectRef;
|
|
26
26
|
constructor();
|
|
27
|
+
ngOnInit(): void;
|
|
27
28
|
ngOnChanges(changes: SimpleChanges): void;
|
|
28
29
|
onSubmit(): void;
|
|
29
30
|
onFieldUpdate(form: FormGroup, field: IFormField<string>): void;
|
|
@@ -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" | "email" | "number" | "text" | "tel";
|
|
7
7
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
8
8
|
static getOptionEntities?(options: any[]): any;
|
|
9
9
|
}
|
|
@@ -34,7 +34,7 @@ export declare class LineListTableComponent extends ReactWrapperModule {
|
|
|
34
34
|
action: string;
|
|
35
35
|
data: TrackedEntityInstance | DHIS2Event;
|
|
36
36
|
}>;
|
|
37
|
-
rowsSelected: EventEmitter<
|
|
37
|
+
rowsSelected: EventEmitter<DHIS2Event[] | TrackedEntityInstance[]>;
|
|
38
38
|
showActionButtons: boolean;
|
|
39
39
|
showEnrollmentDates: boolean;
|
|
40
40
|
showDownloadButton: boolean;
|
|
@@ -17,11 +17,11 @@ export declare class ProgramEntryFormModule {
|
|
|
17
17
|
metaData: import("@angular/core").WritableSignal<IProgramEntryFormMetaData>;
|
|
18
18
|
isFormValid: import("@angular/core").WritableSignal<boolean>;
|
|
19
19
|
isFormValid$: Observable<boolean>;
|
|
20
|
-
instance: import("@angular/core").WritableSignal<
|
|
20
|
+
instance: import("@angular/core").WritableSignal<DHIS2Event | TrackedEntityInstance>;
|
|
21
21
|
instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
|
|
22
|
-
instanceSave: EventEmitter<
|
|
22
|
+
instanceSave: EventEmitter<DHIS2Event | TrackedEntityInstance>;
|
|
23
23
|
instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
|
|
24
|
-
instanceUpdate: EventEmitter<
|
|
24
|
+
instanceUpdate: EventEmitter<DHIS2Event | TrackedEntityInstance>;
|
|
25
25
|
formValidityUpdate: EventEmitter<boolean>;
|
|
26
26
|
formCancel: EventEmitter<any>;
|
|
27
27
|
FormLoader: () => React.JSX.Element;
|