@iapps/ng-dhis2-ui 1.2.165 → 1.2.167
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 +363 -94
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +17 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -270,7 +270,9 @@ declare class LineListTableComponent extends ReactWrapperModule implements OnCha
|
|
|
270
270
|
setReactStateUpdaters: (updaters: any) => void;
|
|
271
271
|
ngOnChanges(changes: SimpleChanges): void;
|
|
272
272
|
lineListService: LineListService;
|
|
273
|
-
LineList: () => React.DetailedReactHTMLElement<
|
|
273
|
+
LineList: () => React.DetailedReactHTMLElement<{
|
|
274
|
+
className: string;
|
|
275
|
+
}, HTMLElement>;
|
|
274
276
|
ngAfterViewInit(): Promise<void>;
|
|
275
277
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LineListTableComponent, never>;
|
|
276
278
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineListTableComponent, "ng-dhis2-ui-line-list", never, { "triggerToken": { "alias": "triggerToken"; "required": false; }; "programId": { "alias": "programId"; "required": false; }; "orgUnit": { "alias": "orgUnit"; "required": false; }; "programStageId": { "alias": "programStageId"; "required": false; }; "actionOptions": { "alias": "actionOptions"; "required": false; }; "actionOptionOrientation": { "alias": "actionOptionOrientation"; "required": false; }; "attributeFilters": { "alias": "attributeFilters"; "required": false; }; "useOuModeWithOlderDHIS2Instance": { "alias": "useOuModeWithOlderDHIS2Instance"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "dataQueryFilters": { "alias": "dataQueryFilters"; "required": false; }; "lineListRowActionFilterConfig": { "alias": "lineListRowActionFilterConfig"; "required": false; }; "hydrateForActionFiltering": { "alias": "hydrateForActionFiltering"; "required": false; }; "ouMode": { "alias": "ouMode"; "required": false; }; "isButtonLoading": { "alias": "isButtonLoading"; "required": false; }; "buttonFilter": { "alias": "buttonFilter"; "required": false; }; "filterRootOrgUnit": { "alias": "filterRootOrgUnit"; "required": false; }; "showFilters": { "alias": "showFilters"; "required": false; }; "isOptionSetNameVisible": { "alias": "isOptionSetNameVisible"; "required": false; }; "allowRowsSelection": { "alias": "allowRowsSelection"; "required": false; }; "enrollmentStatus": { "alias": "enrollmentStatus"; "required": false; }; "filterableColumnIds": { "alias": "filterableColumnIds"; "required": false; }; "triggerRefetch": { "alias": "triggerRefetch"; "required": false; }; "eventStatus": { "alias": "eventStatus"; "required": false; }; "showActionButtons": { "alias": "showActionButtons"; "required": false; }; "showEnrollmentDates": { "alias": "showEnrollmentDates"; "required": false; }; "showDownloadButton": { "alias": "showDownloadButton"; "required": false; }; "searcheableDataElements": { "alias": "searcheableDataElements"; "required": false; }; "columnNameSource": { "alias": "columnNameSource"; "required": false; }; "customDisplayInReportsIds": { "alias": "customDisplayInReportsIds"; "required": false; }; }, { "actionSelected": "actionSelected"; "rowsSelected": "rowsSelected"; }, never, ["*"], false, never>;
|
|
@@ -329,6 +331,7 @@ interface IFieldDropdown {
|
|
|
329
331
|
label: string;
|
|
330
332
|
order?: number;
|
|
331
333
|
code?: string;
|
|
334
|
+
options?: IFieldDropdown[];
|
|
332
335
|
}
|
|
333
336
|
|
|
334
337
|
type FieldControlType = 'dropdown' | 'multi-dropdown' | 'textbox' | 'textarea' | 'checkbox' | 'date' | 'date-time' | 'image' | 'org-unit' | 'file' | 'boolean' | 'number' | 'tel' | 'transfer' | 'coordinate' | 'search';
|
|
@@ -607,6 +610,7 @@ declare class FieldDropdown implements IFieldDropdown {
|
|
|
607
610
|
value: string;
|
|
608
611
|
label: string;
|
|
609
612
|
order?: number | undefined;
|
|
613
|
+
options?: FieldDropdown[];
|
|
610
614
|
constructor(params: IFieldDropdown);
|
|
611
615
|
toJson(): IFieldDropdown;
|
|
612
616
|
static getDropdownOptions(field: any, locale?: string, extension?: FormFieldExtension): FieldDropdown[];
|
|
@@ -1285,6 +1289,14 @@ declare class ProgramEntryFormSection implements IProgramEntryFormSection {
|
|
|
1285
1289
|
constructor(props: IProgramEntryFormSection);
|
|
1286
1290
|
}
|
|
1287
1291
|
|
|
1292
|
+
interface CustomFieldConfiguration {
|
|
1293
|
+
id: string;
|
|
1294
|
+
fieldOptionsDependsOn?: string;
|
|
1295
|
+
optionSet?: {
|
|
1296
|
+
options: any[];
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1288
1300
|
interface IProgramEntryFormMetaData {
|
|
1289
1301
|
id: string;
|
|
1290
1302
|
name: string;
|
|
@@ -1294,6 +1306,7 @@ interface IProgramEntryFormMetaData {
|
|
|
1294
1306
|
sections: IProgramEntryFormSection[];
|
|
1295
1307
|
programStageSections: IProgramEntryFormSection[];
|
|
1296
1308
|
rules: IMetadataRule[];
|
|
1309
|
+
customFieldConfigurations?: Record<string, CustomFieldConfiguration>;
|
|
1297
1310
|
}
|
|
1298
1311
|
declare class ProgramEntryFormMetaData implements IProgramEntryFormMetaData {
|
|
1299
1312
|
#private;
|
|
@@ -1303,6 +1316,7 @@ declare class ProgramEntryFormMetaData implements IProgramEntryFormMetaData {
|
|
|
1303
1316
|
d2: _iapps_d2_web_sdk.D2Web;
|
|
1304
1317
|
config: ProgramEntryFormConfig;
|
|
1305
1318
|
program: Program;
|
|
1319
|
+
customFieldConfigurations: Record<string, CustomFieldConfiguration>;
|
|
1306
1320
|
private autoAssignedFieldIdSet?;
|
|
1307
1321
|
setConfig(config: ProgramEntryFormConfig): ProgramEntryFormMetaData;
|
|
1308
1322
|
private getFieldIdentifiers;
|
|
@@ -1434,7 +1448,7 @@ declare class D2FormModule {
|
|
|
1434
1448
|
declare class FieldUtil {
|
|
1435
1449
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1436
1450
|
static sanitizeOptions(options: any[]): any;
|
|
1437
|
-
static getFieldType(valueType: string): "date" | "
|
|
1451
|
+
static getFieldType(valueType: string): "date" | "number" | "tel" | "email" | "org-unit" | "date-time" | "file" | "coordinate" | "text";
|
|
1438
1452
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1439
1453
|
static getOptionEntities?(options: any[]): any;
|
|
1440
1454
|
}
|
|
@@ -1444,7 +1458,7 @@ declare class FieldControlTypeUtil {
|
|
|
1444
1458
|
}
|
|
1445
1459
|
|
|
1446
1460
|
declare class FormFieldTypeUtil {
|
|
1447
|
-
static getFieldType(valueType: string): "number" | "
|
|
1461
|
+
static getFieldType(valueType: string): "number" | "tel" | "org-unit" | "date-time" | "file" | "coordinate" | "text" | "image";
|
|
1448
1462
|
}
|
|
1449
1463
|
|
|
1450
1464
|
declare class FormUtil {
|