@iapps/ng-dhis2-ui 1.2.82 → 1.2.84
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 +131 -265
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/lib/modules/form/components/base-form-field.component.d.ts +5 -4
- package/lib/modules/form/containers/form/form.component.d.ts +10 -9
- package/lib/modules/form/containers/form-field/form-field.component.d.ts +8 -7
- package/lib/modules/form/shared/components/base-form-wrapper.component.d.ts +2 -1
- 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/components/table/tableHeader.d.ts +1 -1
- package/lib/modules/line-list/components/table/tableRow.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 +4 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, NgZone,
|
|
1
|
+
import { EventEmitter, NgZone, Signal } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
4
4
|
import React from 'react';
|
|
@@ -6,7 +6,7 @@ import { ReactWrapperModule } from '../../react-wrapper/react-wrapper.component'
|
|
|
6
6
|
import { IFormField } from '../interfaces';
|
|
7
7
|
import { FieldConfig } from '../models';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class BaseFormFieldComponent extends ReactWrapperModule
|
|
9
|
+
export declare class BaseFormFieldComponent extends ReactWrapperModule {
|
|
10
10
|
#private;
|
|
11
11
|
ngZone: NgZone;
|
|
12
12
|
httpClient: NgxDhis2HttpClientService;
|
|
@@ -17,6 +17,7 @@ export declare class BaseFormFieldComponent extends ReactWrapperModule implement
|
|
|
17
17
|
form: import("@angular/core").ModelSignal<FormGroup<any>>;
|
|
18
18
|
isValid: import("@angular/core").InputSignal<boolean>;
|
|
19
19
|
isValueAssigned: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
dataId: import("@angular/core").InputSignal<string>;
|
|
20
21
|
value: import("@angular/core").ModelSignal<string>;
|
|
21
22
|
protected value$: import("rxjs").Observable<string>;
|
|
22
23
|
protected isValueAssigned$: import("rxjs").Observable<boolean>;
|
|
@@ -33,8 +34,8 @@ export declare class BaseFormFieldComponent extends ReactWrapperModule implement
|
|
|
33
34
|
value: any;
|
|
34
35
|
}>;
|
|
35
36
|
ngAfterViewInit(): Promise<void>;
|
|
36
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
37
37
|
onChange(event: any): void;
|
|
38
|
+
searchForDuplicates(value: string): Promise<boolean>;
|
|
38
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormFieldComponent, never>;
|
|
39
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormFieldComponent, never, never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldError": { "alias": "fieldError"; "required": false; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": false; "isSignal": true; }; "isValueAssigned": { "alias": "isValueAssigned"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "form": "formChange"; "value": "valueChange"; "update": "update"; "immediateUpdate": "immediateUpdate"; }, never, never, true, never>;
|
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormFieldComponent, never, never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldError": { "alias": "fieldError"; "required": false; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": false; "isSignal": true; }; "isValueAssigned": { "alias": "isValueAssigned"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "form": "formChange"; "value": "valueChange"; "update": "update"; "immediateUpdate": "immediateUpdate"; }, never, never, true, never>;
|
|
40
41
|
}
|
|
@@ -7,15 +7,16 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class FormComponent implements OnChanges, OnDestroy {
|
|
8
8
|
#private;
|
|
9
9
|
formConfig: import("@angular/core").InputSignal<FormConfig>;
|
|
10
|
-
fields: IFormField<string>[]
|
|
11
|
-
form: FormGroup
|
|
12
|
-
isFormHorizontal: boolean
|
|
13
|
-
showSaveButton: boolean
|
|
14
|
-
fieldsData: FieldsData
|
|
15
|
-
fieldClass: string
|
|
16
|
-
shouldRenderAsCheckBoxesButton: boolean
|
|
10
|
+
fields: import("@angular/core").InputSignal<IFormField<string>[]>;
|
|
11
|
+
form: import("@angular/core").InputSignal<FormGroup<any>>;
|
|
12
|
+
isFormHorizontal: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
showSaveButton: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
fieldsData: import("@angular/core").InputSignal<FieldsData>;
|
|
15
|
+
fieldClass: import("@angular/core").InputSignal<string>;
|
|
16
|
+
shouldRenderAsCheckBoxesButton: import("@angular/core").InputSignal<boolean>;
|
|
17
17
|
programRuleActions: import("@angular/core").InputSignal<IMetadataRuleAction[]>;
|
|
18
|
-
dataEntities: any
|
|
18
|
+
dataEntities: import("@angular/core").InputSignal<any>;
|
|
19
|
+
dataId: import("@angular/core").InputSignal<string>;
|
|
19
20
|
configuration: import("@angular/core").Signal<FormConfig>;
|
|
20
21
|
formUpdate: EventEmitter<any>;
|
|
21
22
|
fieldComponents: FormFieldComponent[];
|
|
@@ -32,5 +33,5 @@ export declare class FormComponent implements OnChanges, OnDestroy {
|
|
|
32
33
|
onRunTimeOptionUpdate(result: any): void;
|
|
33
34
|
ngOnDestroy(): void;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "ng-dhis2-ui-form", never, { "formConfig": { "alias": "formConfig"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required":
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "ng-dhis2-ui-form", never, { "formConfig": { "alias": "formConfig"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isFormHorizontal": { "alias": "isFormHorizontal"; "required": false; "isSignal": true; }; "showSaveButton": { "alias": "showSaveButton"; "required": false; "isSignal": true; }; "fieldsData": { "alias": "fieldsData"; "required": false; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "shouldRenderAsCheckBoxesButton": { "alias": "shouldRenderAsCheckBoxesButton"; "required": false; "isSignal": true; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; "isSignal": true; }; "dataEntities": { "alias": "dataEntities"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; }, { "formUpdate": "formUpdate"; }, never, never, false, never>;
|
|
36
37
|
}
|
|
@@ -7,14 +7,15 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class FormFieldComponent implements OnInit, OnChanges, OnDestroy {
|
|
8
8
|
#private;
|
|
9
9
|
field: import("@angular/core").InputSignal<IFormField<string>>;
|
|
10
|
-
fieldConfig: FieldConfig
|
|
10
|
+
fieldConfig: import("@angular/core").InputSignal<FieldConfig>;
|
|
11
11
|
form: FormGroup;
|
|
12
|
-
isCheckBoxButton: boolean
|
|
13
|
-
fieldClass: string
|
|
12
|
+
isCheckBoxButton: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
fieldClass: import("@angular/core").InputSignal<string>;
|
|
14
14
|
programRuleActions: import("@angular/core").InputSignal<IMetadataRuleAction[]>;
|
|
15
|
-
dataEntities: any
|
|
16
|
-
minDate: any
|
|
17
|
-
maxDate: Date
|
|
15
|
+
dataEntities: import("@angular/core").InputSignal<any>;
|
|
16
|
+
minDate: import("@angular/core").InputSignal<any>;
|
|
17
|
+
maxDate: import("@angular/core").InputSignal<Date>;
|
|
18
|
+
dataId: import("@angular/core").InputSignal<string>;
|
|
18
19
|
color: string;
|
|
19
20
|
fieldUpdate: EventEmitter<FormGroup>;
|
|
20
21
|
immediateFieldUpdate: EventEmitter<{
|
|
@@ -52,5 +53,5 @@ export declare class FormFieldComponent implements OnInit, OnChanges, OnDestroy
|
|
|
52
53
|
onFieldUpdate(e?: any, isDate?: boolean, isDateTime?: boolean): void;
|
|
53
54
|
onUpdateRuntimeOptions(options: any[]): void;
|
|
54
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "ng-dhis2-ui-form-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required":
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "ng-dhis2-ui-form-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": false; }; "isCheckBoxButton": { "alias": "isCheckBoxButton"; "required": false; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; "isSignal": true; }; "dataEntities": { "alias": "dataEntities"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; }, { "fieldUpdate": "fieldUpdate"; "immediateFieldUpdate": "immediateFieldUpdate"; "runtimeOptionChange": "runtimeOptionChange"; }, never, never, false, never>;
|
|
56
57
|
}
|
|
@@ -9,6 +9,7 @@ export declare class BaseFormWrapperComponent implements OnDestroy {
|
|
|
9
9
|
fields: import("@angular/core").InputSignal<IFormField<string>[]>;
|
|
10
10
|
rules: import("@angular/core").InputSignal<IMetadataRule[]>;
|
|
11
11
|
dataValues: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
12
|
+
dataId: import("@angular/core").InputSignal<string>;
|
|
12
13
|
ruleActions: import("@angular/core").WritableSignal<IMetadataRuleAction[]>;
|
|
13
14
|
isFormValid: import("@angular/core").WritableSignal<boolean>;
|
|
14
15
|
formSave: EventEmitter<Record<string, unknown>>;
|
|
@@ -22,5 +23,5 @@ export declare class BaseFormWrapperComponent implements OnDestroy {
|
|
|
22
23
|
protected executeRules(): void;
|
|
23
24
|
ngOnDestroy(): void;
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormWrapperComponent, never>;
|
|
25
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormWrapperComponent, never, never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "rules": { "alias": "rules"; "required": false; "isSignal": true; }; "dataValues": { "alias": "dataValues"; "required": false; "isSignal": true; }; }, { "formSave": "formSave"; "formUpdate": "formUpdate"; "formCancel": "formCancel"; "formValidityUpdate": "formValidityUpdate"; }, never, never, true, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormWrapperComponent, never, never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "rules": { "alias": "rules"; "required": false; "isSignal": true; }; "dataValues": { "alias": "dataValues"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; }, { "formSave": "formSave"; "formUpdate": "formUpdate"; "formCancel": "formCancel"; "formValidityUpdate": "formValidityUpdate"; }, never, never, true, never>;
|
|
26
27
|
}
|
|
@@ -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): "text" | "tel" | "email" | "date" | "org-unit" | "file" | "number";
|
|
7
7
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
8
8
|
static getOptionEntities?(options: any[]): any;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const TableHeader: ({ columns, allSelected, onSelectAll, selectable, showActionButtons }: {
|
|
2
|
+
export declare const TableHeader: ({ columns, allSelected, onSelectAll, selectable, showActionButtons, }: {
|
|
3
3
|
columns: any[];
|
|
4
4
|
allSelected: boolean;
|
|
5
5
|
onSelectAll: (checked: boolean) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const TableRow: ({ row, columns, getTextColorFromBackGround, actionOptions, actionOptionOrientation, actionSelected, isChecked, onToggle, selectable, showActionButtons }: any) => React.JSX.Element;
|
|
2
|
+
export declare const TableRow: ({ row, columns, getTextColorFromBackGround, actionOptions, actionOptionOrientation, actionSelected, isChecked, onToggle, selectable, showActionButtons, }: any) => React.JSX.Element;
|
|
@@ -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<TrackedEntityInstance[] | DHIS2Event[]>;
|
|
38
38
|
showActionButtons: boolean;
|
|
39
39
|
showEnrollmentDates: boolean;
|
|
40
40
|
showDownloadButton: boolean;
|
|
@@ -17,14 +17,15 @@ 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<TrackedEntityInstance | DHIS2Event>;
|
|
21
21
|
instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
|
|
22
|
-
instanceSave: EventEmitter<
|
|
22
|
+
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
23
23
|
instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
|
|
24
|
-
instanceUpdate: EventEmitter<
|
|
24
|
+
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
25
25
|
formValidityUpdate: EventEmitter<boolean>;
|
|
26
26
|
formCancel: EventEmitter<any>;
|
|
27
27
|
FormLoader: () => React.JSX.Element;
|
|
28
|
+
dataId: import("@angular/core").Signal<any>;
|
|
28
29
|
FormActionButtons: import("@angular/core").Signal<React.JSX.Element | (() => React.JSX.Element)>;
|
|
29
30
|
ngOnInit(): Promise<void>;
|
|
30
31
|
onFormUpdate(dataValues: Record<string, unknown>): void;
|