@iapps/ng-dhis2-ui 1.2.114 → 1.2.115
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 +178 -71
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +7 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -335,6 +335,8 @@ interface FormFieldExtension {
|
|
|
335
335
|
accept?: string[];
|
|
336
336
|
sizeLimit?: number;
|
|
337
337
|
isDataElementUnique?: boolean;
|
|
338
|
+
optionSetGroup?: string;
|
|
339
|
+
organisationUnits?: any[];
|
|
338
340
|
}
|
|
339
341
|
|
|
340
342
|
interface IFormField<T> {
|
|
@@ -597,7 +599,7 @@ declare class FieldDropdown implements IFieldDropdown {
|
|
|
597
599
|
order?: number | undefined;
|
|
598
600
|
constructor(params: IFieldDropdown);
|
|
599
601
|
toJson(): IFieldDropdown;
|
|
600
|
-
static getDropdownOptions(field: any, locale?: string): FieldDropdown[];
|
|
602
|
+
static getDropdownOptions(field: any, locale?: string, extension?: FormFieldExtension): FieldDropdown[];
|
|
601
603
|
}
|
|
602
604
|
|
|
603
605
|
type FormDirection = 'horizontal' | 'vertical';
|
|
@@ -1001,7 +1003,7 @@ declare class D2FormModule {
|
|
|
1001
1003
|
declare class FieldUtil {
|
|
1002
1004
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1003
1005
|
static sanitizeOptions(options: any[]): any;
|
|
1004
|
-
static getFieldType(valueType: string): "
|
|
1006
|
+
static getFieldType(valueType: string): "email" | "number" | "text" | "tel" | "date" | "org-unit" | "file";
|
|
1005
1007
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1006
1008
|
static getOptionEntities?(options: any[]): any;
|
|
1007
1009
|
}
|
|
@@ -1011,7 +1013,7 @@ declare class FieldControlTypeUtil {
|
|
|
1011
1013
|
}
|
|
1012
1014
|
|
|
1013
1015
|
declare class FormFieldTypeUtil {
|
|
1014
|
-
static getFieldType(valueType: string): "
|
|
1016
|
+
static getFieldType(valueType: string): "number" | "text" | "image" | "org-unit" | "file";
|
|
1015
1017
|
}
|
|
1016
1018
|
|
|
1017
1019
|
declare class FormUtil {
|
|
@@ -1096,8 +1098,6 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1096
1098
|
endDate?: string;
|
|
1097
1099
|
program?: string;
|
|
1098
1100
|
organisationUnit?: string;
|
|
1099
|
-
selectedOrgUnit?: any;
|
|
1100
|
-
orgUnitFieldTitle?: string;
|
|
1101
1101
|
actionSelected: EventEmitter<SelectionFiltersProps>;
|
|
1102
1102
|
ngZone: NgZone;
|
|
1103
1103
|
private getAppConfig;
|
|
@@ -1119,7 +1119,7 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1119
1119
|
}> | React.FunctionComponentElement<_dhis2_ui_loader.CircularLoaderProps>;
|
|
1120
1120
|
showOrgUnitTree: i0.WritableSignal<boolean>;
|
|
1121
1121
|
orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
|
|
1122
|
-
|
|
1122
|
+
selectedOrgUnit: i0.WritableSignal<any>;
|
|
1123
1123
|
selectedOrgUnit$: rxjs.Observable<any>;
|
|
1124
1124
|
SelectionFiltersUI: () => React.DetailedReactHTMLElement<{
|
|
1125
1125
|
style: {
|
|
@@ -1132,7 +1132,7 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1132
1132
|
}, HTMLElement>;
|
|
1133
1133
|
ngAfterViewInit(): Promise<void>;
|
|
1134
1134
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionFiltersComponent, never>;
|
|
1135
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectionFiltersComponent, "app-selection-filters-ui", never, { "actionOptions": { "alias": "actionOptions"; "required": false; }; "programAttributesFilters": { "alias": "programAttributesFilters"; "required": false; }; "programStageDataElementFilters": { "alias": "programStageDataElementFilters"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "program": { "alias": "program"; "required": false; }; "organisationUnit": { "alias": "organisationUnit"; "required": false; };
|
|
1135
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectionFiltersComponent, "app-selection-filters-ui", never, { "actionOptions": { "alias": "actionOptions"; "required": false; }; "programAttributesFilters": { "alias": "programAttributesFilters"; "required": false; }; "programStageDataElementFilters": { "alias": "programStageDataElementFilters"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "program": { "alias": "program"; "required": false; }; "organisationUnit": { "alias": "organisationUnit"; "required": false; }; }, { "actionSelected": "actionSelected"; }, never, ["*"], false, never>;
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
1138
|
declare class SelectionFiltersUiModule {
|