@iapps/ng-dhis2-ui 1.1.0 → 1.1.2
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 +2198 -469
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +3 -1
- package/lib/modules/button/button.component.d.ts +2 -2
- package/lib/modules/form/components/base-form-field.component.d.ts +53 -0
- package/lib/modules/form/components/form-field-item.component.d.ts +6 -0
- package/lib/modules/form/containers/form/form.component.d.ts +32 -0
- package/lib/modules/form/containers/form-field/form-field.component.d.ts +50 -0
- package/lib/modules/form/containers/repeatable-form/repeatable-form.component.d.ts +38 -0
- package/lib/modules/form/containers/section-form/section-form.component.d.ts +32 -0
- package/lib/modules/form/form.module.d.ts +15 -0
- package/lib/modules/form/index.d.ts +8 -0
- package/lib/modules/form/interfaces/field-control-type.interface.d.ts +1 -0
- package/lib/modules/form/interfaces/field-dropdown.interface.d.ts +7 -0
- package/lib/modules/form/interfaces/field-type.interface.d.ts +15 -0
- package/lib/modules/form/interfaces/form-configuration.model.d.ts +63 -0
- package/lib/modules/form/interfaces/form-field-group.interface.d.ts +15 -0
- package/lib/modules/form/interfaces/form-field-meta-type.interface.d.ts +1 -0
- package/lib/modules/form/interfaces/form-field.interface.d.ts +40 -0
- package/lib/modules/form/interfaces/form-metadata-section.interface.d.ts +10 -0
- package/lib/modules/form/interfaces/form-metadata.interface.d.ts +11 -0
- package/lib/modules/form/interfaces/index.d.ts +9 -0
- package/lib/modules/form/models/boolean.model.d.ts +5 -0
- package/lib/modules/form/models/check-box.model.d.ts +5 -0
- package/lib/modules/form/models/date-field.model.d.ts +7 -0
- package/lib/modules/form/models/date-range-value.model.d.ts +4 -0
- package/lib/modules/form/models/dropdown-option.model.d.ts +6 -0
- package/lib/modules/form/models/dropdown.model.d.ts +5 -0
- package/lib/modules/form/models/field-config.model.d.ts +5 -0
- package/lib/modules/form/models/field-dropdown.model.d.ts +10 -0
- package/lib/modules/form/models/fields-data.model.d.ts +8 -0
- package/lib/modules/form/models/form-config.model.d.ts +10 -0
- package/lib/modules/form/models/form-field-group.model.d.ts +21 -0
- package/lib/modules/form/models/form-field.model.d.ts +41 -0
- package/lib/modules/form/models/form-metadata-rule.model.d.ts +28 -0
- package/lib/modules/form/models/form-metadata-section.model.d.ts +28 -0
- package/lib/modules/form/models/form-metadata.model.d.ts +21 -0
- package/lib/modules/form/models/form-value.model.d.ts +19 -0
- package/lib/modules/form/models/form.model.d.ts +14 -0
- package/lib/modules/form/models/index.d.ts +17 -0
- package/lib/modules/form/utils/field-control-type.util.d.ts +4 -0
- package/lib/modules/form/utils/field-type.util.d.ts +3 -0
- package/lib/modules/form/utils/field.util.d.ts +9 -0
- package/lib/modules/form/utils/form-value.util.d.ts +4 -0
- package/lib/modules/form/utils/form.util.d.ts +8 -0
- package/lib/modules/form/utils/index.d.ts +6 -0
- package/lib/modules/form/utils/translation.util.d.ts +3 -0
- package/lib/modules/header-bar/header-bar.component.d.ts +2 -2
- package/lib/modules/line-list/containers/line-list.component.d.ts +6 -5
- package/lib/modules/line-list/models/line-list.models.d.ts +43 -0
- package/lib/modules/line-list/services/line-list.service.d.ts +1 -1
- package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.d.ts +2 -2
- package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.d.ts +2 -2
- package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts +2 -2
- package/lib/modules/period-selector/containers/period-selector-modal/period-selector-modal.component.d.ts +2 -2
- package/lib/modules/react-wrapper/react-wrapper.component.d.ts +3 -3
- package/lib/modules/tracker-form/index.d.ts +2 -0
- package/lib/modules/tracker-form/tracker-form.component.d.ts +15 -0
- package/lib/modules/tracker-form/tracker-form.module.d.ts +9 -0
- package/lib/shared/components/index.d.ts +1 -2
- package/lib/shared/utils/predefinedDimensions.d.ts +6 -6
- package/package.json +1 -1
- package/lib/modules/react-wrapper/index.d.ts +0 -2
- package/lib/modules/react-wrapper/react-wrapper.module.d.ts +0 -8
- /package/lib/shared/components/{TransferOption.d.ts → transfer-option.component.d.ts} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IFormMetadataSection, IFormFieldGroup } from '../interfaces';
|
|
2
|
+
export declare class FormMetadataSection implements IFormMetadataSection {
|
|
3
|
+
private params;
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
program?: string | undefined;
|
|
7
|
+
sectionStateComplete?: boolean | undefined;
|
|
8
|
+
description?: string | undefined;
|
|
9
|
+
translations?: any;
|
|
10
|
+
constructor(params: {
|
|
11
|
+
section: Partial<IFormMetadataSection>;
|
|
12
|
+
program: Record<string, unknown>;
|
|
13
|
+
locale?: string;
|
|
14
|
+
});
|
|
15
|
+
get attributes(): {
|
|
16
|
+
formName: unknown;
|
|
17
|
+
sortOrder: unknown;
|
|
18
|
+
mandatory: unknown;
|
|
19
|
+
metaType: string;
|
|
20
|
+
}[];
|
|
21
|
+
get dataElements(): {
|
|
22
|
+
mandatory: unknown;
|
|
23
|
+
stepId: unknown;
|
|
24
|
+
metaType: string;
|
|
25
|
+
}[];
|
|
26
|
+
get fieldGroups(): IFormFieldGroup[];
|
|
27
|
+
toJson(): IFormMetadataSection;
|
|
28
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IMetadataRule } from './form-metadata-rule.model';
|
|
2
|
+
import { FormField } from './form-field.model';
|
|
3
|
+
import { Program } from '@iapps/d2-web-sdk';
|
|
4
|
+
import { IFormMetadata, IFormMetadataSection } from '../interfaces';
|
|
5
|
+
export declare class FormMetaData implements IFormMetadata {
|
|
6
|
+
#private;
|
|
7
|
+
private params;
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
downloadSqlView?: string | undefined;
|
|
12
|
+
constructor(params: {
|
|
13
|
+
programs: Program[];
|
|
14
|
+
locale?: string;
|
|
15
|
+
customFormMetaData?: Partial<FormMetaData>;
|
|
16
|
+
});
|
|
17
|
+
get sections(): IFormMetadataSection[];
|
|
18
|
+
get fields(): FormField<string>[];
|
|
19
|
+
get rules(): IMetadataRule[];
|
|
20
|
+
toJson(): IFormMetadata;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { FormField } from './form-field.model';
|
|
3
|
+
export declare class FormValue {
|
|
4
|
+
form: FormGroup;
|
|
5
|
+
fields: FormField<string>[];
|
|
6
|
+
changedField?: FormField<string>;
|
|
7
|
+
constructor(form: FormGroup, fields: FormField<string>[], changedField?: FormField<string>);
|
|
8
|
+
get isValid(): boolean;
|
|
9
|
+
clear(): void;
|
|
10
|
+
getValues(options?: {
|
|
11
|
+
valueOnly?: boolean;
|
|
12
|
+
}): {
|
|
13
|
+
[id: string]: {
|
|
14
|
+
id: string;
|
|
15
|
+
value: string;
|
|
16
|
+
options: any[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DropdownOption } from './dropdown-option.model';
|
|
2
|
+
import { FormField } from './form-field.model';
|
|
3
|
+
export interface EocForm {
|
|
4
|
+
id: string;
|
|
5
|
+
uuid: string;
|
|
6
|
+
name: string;
|
|
7
|
+
setMembers: EocForm[];
|
|
8
|
+
options?: DropdownOption[];
|
|
9
|
+
dataType?: string;
|
|
10
|
+
formClass: string;
|
|
11
|
+
formField?: FormField<string>;
|
|
12
|
+
formFields: FormField<string>[];
|
|
13
|
+
concept?: any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './boolean.model';
|
|
2
|
+
export * from './check-box.model';
|
|
3
|
+
export * from './date-field.model';
|
|
4
|
+
export * from './dropdown-option.model';
|
|
5
|
+
export * from './dropdown.model';
|
|
6
|
+
export * from './form-field.model';
|
|
7
|
+
export * from './fields-data.model';
|
|
8
|
+
export * from './field-config.model';
|
|
9
|
+
export * from './date-range-value.model';
|
|
10
|
+
export * from './field-dropdown.model';
|
|
11
|
+
export * from './form-config.model';
|
|
12
|
+
export * from './form-field-group.model';
|
|
13
|
+
export * from './form-metadata-rule.model';
|
|
14
|
+
export * from './form-metadata-section.model';
|
|
15
|
+
export * from './form-metadata.model';
|
|
16
|
+
export * from './form-value.model';
|
|
17
|
+
export * from './form.model';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FieldControlType } from '../interfaces';
|
|
2
|
+
import { DropdownOption } from '../models';
|
|
3
|
+
export declare class FieldUtil {
|
|
4
|
+
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
5
|
+
static sanitizeOptions(options: any[]): any;
|
|
6
|
+
static getFieldType(valueType: string): "number" | "date" | "org-unit" | "file" | "tel" | "text";
|
|
7
|
+
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
8
|
+
static getOptionEntities?(options: any[]): any;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
2
|
+
import { FormField } from '../models';
|
|
3
|
+
export declare class FormUtil {
|
|
4
|
+
static getFormGroup(fields: FormField<string>[], dataEntities: any): UntypedFormGroup;
|
|
5
|
+
static getFieldValue(field: FormField<string>, dataEntities: Record<string, any>): any;
|
|
6
|
+
static getFormFields(fields: any[]): FormField<string>[];
|
|
7
|
+
static createField(id: string, label: string, required: boolean, controlType: 'textbox' | 'dropdown' | 'textarea' | 'transfer' | 'search' | 'file', disabled?: boolean, placeholder?: string, options?: Array<any>): FormField<string>;
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
3
|
-
import {
|
|
3
|
+
import { ReactWrapperModule } from '../react-wrapper/react-wrapper.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class HeaderBarComponent extends
|
|
5
|
+
export declare class HeaderBarComponent extends ReactWrapperModule {
|
|
6
6
|
private httpClient;
|
|
7
7
|
constructor(elementRef: ElementRef<HTMLElement>, httpClient: NgxDhis2HttpClientService);
|
|
8
8
|
ngAfterViewInit(): Promise<void>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EventEmitter, SimpleChanges } from '@angular/core';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { ReactWrapperModule } from '../../react-wrapper/react-wrapper.component';
|
|
4
4
|
import { DropdownMenuOption } from '../components/dropdown-menu';
|
|
5
|
-
import { TableRow } from '../models/line-list.models';
|
|
6
5
|
import { AttributeFilter } from '../models/attribute-filter.model';
|
|
7
|
-
import { ReactWrapperComponent } from '../../react-wrapper';
|
|
8
6
|
import { FilterConfig } from '../models/filter-config.model';
|
|
7
|
+
import { TableRow } from '../models/line-list.models';
|
|
8
|
+
import { LineListService } from '../services/line-list.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class LineListTableComponent extends
|
|
10
|
+
export declare class LineListTableComponent extends ReactWrapperModule {
|
|
11
11
|
programId: string;
|
|
12
12
|
orgUnit: string;
|
|
13
13
|
programStageId?: string;
|
|
@@ -16,6 +16,7 @@ export declare class LineListTableComponent extends ReactWrapperComponent {
|
|
|
16
16
|
startDate?: string;
|
|
17
17
|
endDate?: string;
|
|
18
18
|
filters?: FilterConfig[];
|
|
19
|
+
ouMode?: string;
|
|
19
20
|
actionSelected: EventEmitter<{
|
|
20
21
|
action: string;
|
|
21
22
|
row: TableRow;
|
|
@@ -27,5 +28,5 @@ export declare class LineListTableComponent extends ReactWrapperComponent {
|
|
|
27
28
|
LineList: () => React.JSX.Element;
|
|
28
29
|
ngAfterViewInit(): Promise<void>;
|
|
29
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<LineListTableComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LineListTableComponent, "app-line-list", never, { "programId": { "alias": "programId"; "required": false; }; "orgUnit": { "alias": "orgUnit"; "required": false; }; "programStageId": { "alias": "programStageId"; "required": false; }; "actionOptions": { "alias": "actionOptions"; "required": false; }; "attributeFilters": { "alias": "attributeFilters"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; }, { "actionSelected": "actionSelected"; }, never, ["*"], false, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LineListTableComponent, "app-line-list", never, { "programId": { "alias": "programId"; "required": false; }; "orgUnit": { "alias": "orgUnit"; "required": false; }; "programStageId": { "alias": "programStageId"; "required": false; }; "actionOptions": { "alias": "actionOptions"; "required": false; }; "attributeFilters": { "alias": "attributeFilters"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "ouMode": { "alias": "ouMode"; "required": false; }; }, { "actionSelected": "actionSelected"; }, never, ["*"], false, never>;
|
|
31
32
|
}
|
|
@@ -102,6 +102,7 @@ export interface ProgramMetadata {
|
|
|
102
102
|
id: string;
|
|
103
103
|
name: string;
|
|
104
104
|
}[];
|
|
105
|
+
programTrackedEntityAttributes: ProgramTrackedEntityAttribute[];
|
|
105
106
|
}
|
|
106
107
|
export interface LineListResponse {
|
|
107
108
|
metadata: ProgramMetadata;
|
|
@@ -127,3 +128,45 @@ export interface CreatedByUserInfo {
|
|
|
127
128
|
surname: string;
|
|
128
129
|
username: string;
|
|
129
130
|
}
|
|
131
|
+
export interface ProgramTrackedEntityAttribute {
|
|
132
|
+
access: {
|
|
133
|
+
read: boolean;
|
|
134
|
+
update: boolean;
|
|
135
|
+
externalize: boolean;
|
|
136
|
+
delete: boolean;
|
|
137
|
+
write: boolean;
|
|
138
|
+
};
|
|
139
|
+
attributeValues: any[];
|
|
140
|
+
created: string;
|
|
141
|
+
displayInList: boolean;
|
|
142
|
+
displayName: string;
|
|
143
|
+
displayShortName: string;
|
|
144
|
+
externalAccess: boolean;
|
|
145
|
+
favorite: boolean;
|
|
146
|
+
favorites: any[];
|
|
147
|
+
id: string;
|
|
148
|
+
lastUpdated: string;
|
|
149
|
+
mandatory: boolean;
|
|
150
|
+
name: string;
|
|
151
|
+
program: {
|
|
152
|
+
id: string;
|
|
153
|
+
};
|
|
154
|
+
programTrackedEntityAttributeGroups: any[];
|
|
155
|
+
renderOptionsAsRadio: boolean;
|
|
156
|
+
searchable: boolean;
|
|
157
|
+
sharing: {
|
|
158
|
+
userGroups: any;
|
|
159
|
+
external: boolean;
|
|
160
|
+
users: any;
|
|
161
|
+
};
|
|
162
|
+
sortOrder: number;
|
|
163
|
+
trackedEntityAttribute: {
|
|
164
|
+
id: string;
|
|
165
|
+
name: string;
|
|
166
|
+
valueType: string;
|
|
167
|
+
};
|
|
168
|
+
translations: any[];
|
|
169
|
+
userAccesses: any[];
|
|
170
|
+
userGroupAccesses: any[];
|
|
171
|
+
valueType: string;
|
|
172
|
+
}
|
|
@@ -10,7 +10,7 @@ export declare class LineListService {
|
|
|
10
10
|
private getTrackedEntityInstances;
|
|
11
11
|
private getEvents;
|
|
12
12
|
private getEventsByProgramStage;
|
|
13
|
-
getLineListData(programId: string, orgUnit?: string, programStageId?: string, page?: number, pageSize?: number, filters?: AttributeFilter[], startDate?: string, endDate?: string): Observable<LineListResponse>;
|
|
13
|
+
getLineListData(programId: string, orgUnit?: string, programStageId?: string, page?: number, pageSize?: number, filters?: AttributeFilter[], startDate?: string, endDate?: string, ouMode?: string): Observable<LineListResponse>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LineListService, never>;
|
|
15
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<LineListService>;
|
|
16
16
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
2
|
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
3
|
-
import {
|
|
3
|
+
import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
|
|
4
4
|
import { OrganisationUnitSelectionConfig, OrganisationUnitSelectionUsageType } from '../../models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
type OrganisationUnitSelectionEvent = {
|
|
7
7
|
dimensionId: string;
|
|
8
8
|
items: Record<string, unknown>[];
|
|
9
9
|
};
|
|
10
|
-
export declare class OrganisationUnitSelectorComponent extends
|
|
10
|
+
export declare class OrganisationUnitSelectorComponent extends ReactWrapperModule {
|
|
11
11
|
private httpClient;
|
|
12
12
|
private ngZone;
|
|
13
13
|
selectedOrgUnits: any[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
3
|
-
import {
|
|
3
|
+
import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
|
|
4
4
|
import { OrganisationUnitSelectionConfig, OrganisationUnitSelectionUsageType } from '../../models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
type OrganisationUnitSelectionEvent = {
|
|
7
7
|
dimensionId: string;
|
|
8
8
|
items: Record<string, unknown>[];
|
|
9
9
|
};
|
|
10
|
-
export declare class OrganisationUnitSelectorModalComponent extends
|
|
10
|
+
export declare class OrganisationUnitSelectorModalComponent extends ReactWrapperModule {
|
|
11
11
|
private httpClient;
|
|
12
12
|
selectedOrgUnits: any[];
|
|
13
13
|
orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
|
package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
2
|
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
3
|
-
import {
|
|
3
|
+
import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
type PeriodSelectionEvent = {
|
|
6
6
|
dimensionId: string;
|
|
7
7
|
items: Record<string, unknown>[];
|
|
8
8
|
};
|
|
9
|
-
export declare class PeriodSelectorComponent extends
|
|
9
|
+
export declare class PeriodSelectorComponent extends ReactWrapperModule {
|
|
10
10
|
private httpClient;
|
|
11
11
|
private ngZone;
|
|
12
12
|
selectedPeriods: any[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
3
|
-
import {
|
|
3
|
+
import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class PeriodSelectorModalComponent extends
|
|
5
|
+
export declare class PeriodSelectorModalComponent extends ReactWrapperModule {
|
|
6
6
|
private httpClient;
|
|
7
7
|
selectedPeriods: any[];
|
|
8
8
|
cancel: EventEmitter<any>;
|
|
@@ -2,7 +2,7 @@ import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
3
|
import * as ReactDOM from 'react-dom/client';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ReactWrapperModule implements OnDestroy, AfterViewInit {
|
|
6
6
|
protected elementRef: ElementRef<HTMLElement>;
|
|
7
7
|
props?: ComponentProps<any>;
|
|
8
8
|
component: any;
|
|
@@ -12,6 +12,6 @@ export declare class ReactWrapperComponent implements OnDestroy, AfterViewInit {
|
|
|
12
12
|
ngAfterViewInit(): void;
|
|
13
13
|
ngOnDestroy(): void;
|
|
14
14
|
protected render(): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReactWrapperModule, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReactWrapperModule, "ng-dhis2-ui-wrapper", never, { "props": { "alias": "props"; "required": false; }; "component": { "alias": "component"; "required": false; }; }, {}, ["content"], never, true, never>;
|
|
17
17
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseTrackerQuery, TrackedEntityInstance } from '@iapps/d2-web-sdk';
|
|
3
|
+
import { IFormMetadata } from '../form';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TrackerFormComponent implements OnInit {
|
|
6
|
+
program: import("@angular/core").InputSignal<string>;
|
|
7
|
+
d2: import("@iapps/d2-web-sdk").D2Web;
|
|
8
|
+
trackerQuery: BaseTrackerQuery<TrackedEntityInstance>;
|
|
9
|
+
formMetaData: IFormMetadata;
|
|
10
|
+
ngOnInit(): Promise<void>;
|
|
11
|
+
onSave(event: any): void;
|
|
12
|
+
onCancel(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrackerFormComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TrackerFormComponent, "ng-dhis2-ui-tracker-form", never, { "program": { "alias": "program"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tracker-form.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../form/form.module";
|
|
5
|
+
export declare class TrackerFormModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrackerFormModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TrackerFormModule, [typeof i1.TrackerFormComponent], [typeof i2.CommonModule, typeof i3.D2FormModule], [typeof i1.TrackerFormComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TrackerFormModule>;
|
|
9
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './TransferOption';
|
|
1
|
+
export * from './transfer-option.component';
|
|
@@ -11,19 +11,19 @@ export declare const getFixedDimensions: () => {
|
|
|
11
11
|
id: string;
|
|
12
12
|
name: any;
|
|
13
13
|
iconName: string;
|
|
14
|
-
icon:
|
|
14
|
+
icon: any;
|
|
15
15
|
};
|
|
16
16
|
pe: {
|
|
17
17
|
id: string;
|
|
18
18
|
name: any;
|
|
19
19
|
iconName: string;
|
|
20
|
-
icon:
|
|
20
|
+
icon: any;
|
|
21
21
|
};
|
|
22
22
|
ou: {
|
|
23
23
|
id: string;
|
|
24
24
|
name: any;
|
|
25
25
|
iconName: string;
|
|
26
|
-
icon:
|
|
26
|
+
icon: any;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
export declare const getDynamicDimensions: () => {
|
|
@@ -47,19 +47,19 @@ export declare const getPredefinedDimensions: () => {
|
|
|
47
47
|
id: string;
|
|
48
48
|
name: any;
|
|
49
49
|
iconName: string;
|
|
50
|
-
icon:
|
|
50
|
+
icon: any;
|
|
51
51
|
};
|
|
52
52
|
pe: {
|
|
53
53
|
id: string;
|
|
54
54
|
name: any;
|
|
55
55
|
iconName: string;
|
|
56
|
-
icon:
|
|
56
|
+
icon: any;
|
|
57
57
|
};
|
|
58
58
|
ou: {
|
|
59
59
|
id: string;
|
|
60
60
|
name: any;
|
|
61
61
|
iconName: string;
|
|
62
|
-
icon:
|
|
62
|
+
icon: any;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
export declare const filterOutPredefinedDimensions: (dimensionIds: string[]) => string[];
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./react-wrapper.component.tsx";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class ReactWrapperModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ReactWrapperModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ReactWrapperModule, [typeof i1.ReactWrapperComponent], [typeof i2.CommonModule], [typeof i1.ReactWrapperComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ReactWrapperModule>;
|
|
8
|
-
}
|
|
File without changes
|