@iapps/ng-dhis2-ui 1.2.102 → 1.2.104
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 +658 -376
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +1311 -13
- package/package.json +1 -1
- package/lib/modules/breadcrumb/breadcrumb.module.d.ts +0 -8
- package/lib/modules/breadcrumb/components/breadcrumb-item.component.d.ts +0 -6
- package/lib/modules/breadcrumb/containers/breadcrumb.component.d.ts +0 -12
- package/lib/modules/breadcrumb/index.d.ts +0 -3
- package/lib/modules/breadcrumb/models/breadcrumb-item.model.d.ts +0 -6
- package/lib/modules/breadcrumb/models/index.d.ts +0 -1
- package/lib/modules/button/button.component.d.ts +0 -18
- package/lib/modules/button/button.module.d.ts +0 -9
- package/lib/modules/button/index.d.ts +0 -2
- package/lib/modules/data-table-ui/components/dropdown-menu/dropdown-menu.d.ts +0 -19
- package/lib/modules/data-table-ui/components/dropdown-menu/dropdown-menu.styles.d.ts +0 -5
- package/lib/modules/data-table-ui/components/dropdown-menu/index.d.ts +0 -1
- package/lib/modules/data-table-ui/containers/data-table-ui/data-table-ui.component.d.ts +0 -20
- package/lib/modules/data-table-ui/data-table-ui.module.d.ts +0 -10
- package/lib/modules/data-table-ui/hooks/index.d.ts +0 -1
- package/lib/modules/data-table-ui/hooks/use-dynamic-styles.hook.d.ts +0 -1
- package/lib/modules/data-table-ui/index.d.ts +0 -3
- package/lib/modules/data-table-ui/models/data-table.models.d.ts +0 -10
- package/lib/modules/event-form/event-form.component.d.ts +0 -21
- package/lib/modules/event-form/event-form.module.d.ts +0 -9
- package/lib/modules/event-form/index.d.ts +0 -2
- package/lib/modules/form/components/base-form-field.component.d.ts +0 -41
- package/lib/modules/form/components/file-upload-field.component.d.ts +0 -15
- package/lib/modules/form/components/form-field-item.component.d.ts +0 -6
- package/lib/modules/form/components/org-unit-form-field.component.d.ts +0 -20
- package/lib/modules/form/containers/flat-form/flat-form.component.d.ts +0 -11
- package/lib/modules/form/containers/form/form.component.d.ts +0 -41
- package/lib/modules/form/containers/form-field/form-field.component.d.ts +0 -59
- package/lib/modules/form/containers/repeatable-form/repeatable-form.component.d.ts +0 -38
- package/lib/modules/form/containers/section-form/section-form.component.d.ts +0 -33
- package/lib/modules/form/form.module.d.ts +0 -16
- package/lib/modules/form/hooks/field-validation.hook.d.ts +0 -13
- package/lib/modules/form/hooks/index.d.ts +0 -1
- package/lib/modules/form/index.d.ts +0 -9
- package/lib/modules/form/interfaces/field-control-type.interface.d.ts +0 -1
- package/lib/modules/form/interfaces/field-dropdown.interface.d.ts +0 -7
- package/lib/modules/form/interfaces/field-type.interface.d.ts +0 -16
- package/lib/modules/form/interfaces/form-configuration.model.d.ts +0 -63
- package/lib/modules/form/interfaces/form-field-extension.interface.d.ts +0 -6
- package/lib/modules/form/interfaces/form-field-group.interface.d.ts +0 -15
- package/lib/modules/form/interfaces/form-field-meta-type.interface.d.ts +0 -1
- package/lib/modules/form/interfaces/form-field.interface.d.ts +0 -47
- package/lib/modules/form/interfaces/form-metadata-section.interface.d.ts +0 -10
- package/lib/modules/form/interfaces/form-metadata.interface.d.ts +0 -11
- package/lib/modules/form/interfaces/index.d.ts +0 -10
- package/lib/modules/form/models/boolean.model.d.ts +0 -5
- package/lib/modules/form/models/check-box.model.d.ts +0 -5
- package/lib/modules/form/models/date-field.model.d.ts +0 -7
- package/lib/modules/form/models/date-range-value.model.d.ts +0 -4
- package/lib/modules/form/models/dropdown-option.model.d.ts +0 -6
- package/lib/modules/form/models/dropdown.model.d.ts +0 -5
- package/lib/modules/form/models/field-config.model.d.ts +0 -5
- package/lib/modules/form/models/field-dropdown.model.d.ts +0 -10
- package/lib/modules/form/models/fields-data.model.d.ts +0 -8
- package/lib/modules/form/models/form-config.model.d.ts +0 -10
- package/lib/modules/form/models/form-field-group.model.d.ts +0 -23
- package/lib/modules/form/models/form-field.model.d.ts +0 -50
- package/lib/modules/form/models/form-metadata-rule.model.d.ts +0 -35
- package/lib/modules/form/models/form-metadata-section.model.d.ts +0 -33
- package/lib/modules/form/models/form-metadata.model.d.ts +0 -26
- package/lib/modules/form/models/form-value.model.d.ts +0 -19
- package/lib/modules/form/models/form.model.d.ts +0 -14
- package/lib/modules/form/models/index.d.ts +0 -17
- package/lib/modules/form/shared/components/base-form-wrapper.component.d.ts +0 -29
- package/lib/modules/form/shared/components/index.d.ts +0 -1
- package/lib/modules/form/shared/index.d.ts +0 -1
- package/lib/modules/form/utils/field-control-type.util.d.ts +0 -4
- package/lib/modules/form/utils/field-type.util.d.ts +0 -3
- package/lib/modules/form/utils/field.util.d.ts +0 -9
- package/lib/modules/form/utils/form-value.util.d.ts +0 -4
- package/lib/modules/form/utils/form.util.d.ts +0 -9
- package/lib/modules/form/utils/index.d.ts +0 -6
- package/lib/modules/form/utils/translation.util.d.ts +0 -3
- package/lib/modules/header-bar/header-bar.component.d.ts +0 -11
- package/lib/modules/header-bar/header-bar.module.d.ts +0 -9
- package/lib/modules/header-bar/index.d.ts +0 -2
- package/lib/modules/header-bar/models/header-bar-app.model.d.ts +0 -10
- package/lib/modules/header-bar/models/header-bar-data.model.d.ts +0 -16
- package/lib/modules/header-bar/models/header-bar-notification.model.d.ts +0 -5
- package/lib/modules/header-bar/models/index.d.ts +0 -2
- package/lib/modules/header-bar/utils/apps.d.ts +0 -16
- package/lib/modules/header-bar/utils/debug-info/debug-info-menu-item.d.ts +0 -15
- package/lib/modules/header-bar/utils/debug-info/debug-info-modal.d.ts +0 -8
- package/lib/modules/header-bar/utils/debug-info/debug-info-table.d.ts +0 -8
- package/lib/modules/header-bar/utils/debug-info/use-debug-info.d.ts +0 -7
- package/lib/modules/header-bar/utils/header-bar-context.d.ts +0 -14
- package/lib/modules/header-bar/utils/header-bar.d.ts +0 -19
- package/lib/modules/header-bar/utils/join-path.d.ts +0 -1
- package/lib/modules/header-bar/utils/logo-image.d.ts +0 -8
- package/lib/modules/header-bar/utils/logo.d.ts +0 -12
- package/lib/modules/header-bar/utils/notification-icon.d.ts +0 -21
- package/lib/modules/header-bar/utils/notifications.d.ts +0 -16
- package/lib/modules/header-bar/utils/profile/use-on-doc-click.d.ts +0 -1
- package/lib/modules/header-bar/utils/profile-menu/index.d.ts +0 -1
- package/lib/modules/header-bar/utils/profile-menu/profile-header.d.ts +0 -16
- package/lib/modules/header-bar/utils/profile-menu/profile-menu.d.ts +0 -13
- package/lib/modules/header-bar/utils/profile-menu/update-notification.d.ts +0 -14
- package/lib/modules/header-bar/utils/profile.d.ts +0 -18
- package/lib/modules/header-bar/utils/title.d.ts +0 -15
- package/lib/modules/line-list/components/data-table-actions/data-table-actions.d.ts +0 -9
- package/lib/modules/line-list/components/data-table-actions/index.d.ts +0 -1
- package/lib/modules/line-list/components/dropdown-menu/dropdown-menu.d.ts +0 -12
- package/lib/modules/line-list/components/dropdown-menu/dropdown-menu.styles.d.ts +0 -5
- package/lib/modules/line-list/components/dropdown-menu/index.d.ts +0 -1
- package/lib/modules/line-list/components/org-unit-form-field.component.d.ts +0 -14
- package/lib/modules/line-list/components/orgUnitSelector.d.ts +0 -2
- package/lib/modules/line-list/components/table/filterToolbar.d.ts +0 -3
- package/lib/modules/line-list/components/table/lineListTable.d.ts +0 -2
- package/lib/modules/line-list/components/table/pagination.d.ts +0 -8
- package/lib/modules/line-list/components/table/tableBody.d.ts +0 -2
- package/lib/modules/line-list/components/table/tableCell.d.ts +0 -5
- package/lib/modules/line-list/components/table/tableFooter.d.ts +0 -2
- package/lib/modules/line-list/components/table/tableHeader.d.ts +0 -8
- package/lib/modules/line-list/components/table/tableRow.d.ts +0 -2
- package/lib/modules/line-list/containers/line-list.component.d.ts +0 -52
- package/lib/modules/line-list/hooks/index.d.ts +0 -1
- package/lib/modules/line-list/hooks/use-dynamic-styles.hook.d.ts +0 -1
- package/lib/modules/line-list/index.d.ts +0 -3
- package/lib/modules/line-list/line-list.module.d.ts +0 -10
- package/lib/modules/line-list/models/action-option-orientation.model.d.ts +0 -1
- package/lib/modules/line-list/models/attribute-filter.model.d.ts +0 -10
- package/lib/modules/line-list/models/dropdown-menu.model.d.ts +0 -9
- package/lib/modules/line-list/models/filter-config.model.d.ts +0 -6
- package/lib/modules/line-list/models/index.d.ts +0 -3
- package/lib/modules/line-list/models/line-list-action-option.model.d.ts +0 -6
- package/lib/modules/line-list/models/line-list.models.d.ts +0 -262
- package/lib/modules/line-list/services/line-list.service.d.ts +0 -13
- package/lib/modules/line-list/utils/event-table-data-util.d.ts +0 -6
- package/lib/modules/line-list/utils/tei-table-data-utils.d.ts +0 -9
- package/lib/modules/organisation-unit-selector/components/OrgUnitDimension.d.ts +0 -28
- package/lib/modules/organisation-unit-selector/components/index.d.ts +0 -2
- package/lib/modules/organisation-unit-selector/components/styles/OrgUnitDimension.style.d.ts +0 -1
- package/lib/modules/organisation-unit-selector/components/utils/index.d.ts +0 -2
- package/lib/modules/organisation-unit-selector/components/utils/ouIdHelper/index.d.ts +0 -10
- package/lib/modules/organisation-unit-selector/components/utils/ouLevelUtils/index.d.ts +0 -1
- package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.d.ts +0 -27
- package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.d.ts +0 -30
- package/lib/modules/organisation-unit-selector/index.d.ts +0 -4
- package/lib/modules/organisation-unit-selector/models/index.d.ts +0 -1
- package/lib/modules/organisation-unit-selector/models/organisation-unit-config.model.d.ts +0 -13
- package/lib/modules/organisation-unit-selector/organisation-unit-selector.module.d.ts +0 -10
- package/lib/modules/period-selector/components/FixedPeriodFilter.d.ts +0 -18
- package/lib/modules/period-selector/components/PeriodDimension.d.ts +0 -15
- package/lib/modules/period-selector/components/PeriodTransfer.d.ts +0 -28
- package/lib/modules/period-selector/components/RelativePeriodFilter.d.ts +0 -11
- package/lib/modules/period-selector/components/utils/fixedPeriods.d.ts +0 -17
- package/lib/modules/period-selector/components/utils/index.d.ts +0 -4
- package/lib/modules/period-selector/components/utils/periodTypes.d.ts +0 -19
- package/lib/modules/period-selector/components/utils/relativePeriods.d.ts +0 -17
- package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts +0 -21
- package/lib/modules/period-selector/containers/period-selector-modal/period-selector-modal.component.d.ts +0 -16
- package/lib/modules/period-selector/index.d.ts +0 -3
- package/lib/modules/period-selector/period-selector.module.d.ts +0 -10
- package/lib/modules/program-entry-form/index.d.ts +0 -2
- package/lib/modules/program-entry-form/models/index.d.ts +0 -3
- package/lib/modules/program-entry-form/models/program-entry-form-metadata.d.ts +0 -29
- package/lib/modules/program-entry-form/models/program-entry-form-section.model.d.ts +0 -16
- package/lib/modules/program-entry-form/models/program-entry-form.config.d.ts +0 -58
- package/lib/modules/program-entry-form/program-entry-form.component.d.ts +0 -38
- package/lib/modules/program-entry-form/utils/index.d.ts +0 -2
- package/lib/modules/program-entry-form/utils/program-entry-form-field.util.d.ts +0 -80
- package/lib/modules/program-entry-form/utils/program-entry-form-section.util.d.ts +0 -8
- package/lib/modules/react-wrapper/react-wrapper.component.d.ts +0 -17
- package/lib/modules/selection-filters-ui/containers/selection-filters-ui/selection-filters-ui.component.d.ts +0 -39
- package/lib/modules/selection-filters-ui/index.d.ts +0 -2
- package/lib/modules/selection-filters-ui/models/selection-filters-ui.model.d.ts +0 -54
- package/lib/modules/selection-filters-ui/selection-filters-ui.module.d.ts +0 -11
- package/lib/modules/tracker-form/index.d.ts +0 -2
- package/lib/modules/tracker-form/tracker-form.component.d.ts +0 -19
- package/lib/modules/tracker-form/tracker-form.module.d.ts +0 -9
- package/lib/shared/assets/AssignedCategoriesIcon.d.ts +0 -2
- package/lib/shared/assets/DimensionItemIcons/PeriodIcon.d.ts +0 -3
- package/lib/shared/components/index.d.ts +0 -1
- package/lib/shared/components/transfer-option.component.d.ts +0 -19
- package/lib/shared/hooks/dynamic-styles.hook.d.ts +0 -1
- package/lib/shared/hooks/index.d.ts +0 -1
- package/lib/shared/index.d.ts +0 -4
- package/lib/shared/shared.module.d.ts +0 -7
- package/lib/shared/styles/DimensionSelector.style.d.ts +0 -2
- package/lib/shared/styles/index.d.ts +0 -1
- package/lib/shared/utils/axis.d.ts +0 -11
- package/lib/shared/utils/axisGetDimension.d.ts +0 -1
- package/lib/shared/utils/axisHasDimension.d.ts +0 -1
- package/lib/shared/utils/dimension.d.ts +0 -55
- package/lib/shared/utils/dimensionGetItems.d.ts +0 -1
- package/lib/shared/utils/dimensionIs.d.ts +0 -1
- package/lib/shared/utils/dimensionIsEmpty.d.ts +0 -3
- package/lib/shared/utils/dimensionIsValid.d.ts +0 -3
- package/lib/shared/utils/dimensionSelectorHelper.d.ts +0 -3
- package/lib/shared/utils/index.d.ts +0 -11
- package/lib/shared/utils/layoutGetAllAxes.d.ts +0 -1
- package/lib/shared/utils/layoutGetAllDimensions.d.ts +0 -1
- package/lib/shared/utils/layoutGetDimension.d.ts +0 -1
- package/lib/shared/utils/layoutReplaceDimension.d.ts +0 -1
- package/lib/shared/utils/list.d.ts +0 -1
- package/lib/shared/utils/predefinedDimensions.d.ts +0 -67
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export interface FormGroupField {
|
|
2
|
-
id: string;
|
|
3
|
-
label?: string;
|
|
4
|
-
formName?: string;
|
|
5
|
-
fieldType: 'ATTRIBUTE' | 'DATA_ELEMENT' | 'ORG_UNIT' | 'ENROLLMENT_DATE' | 'CUSTOM';
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
mandatory?: boolean;
|
|
8
|
-
fieldOptionsDependsOn?: string;
|
|
9
|
-
optionType?: 'ORG_UNIT' | 'PORT_OF_ENTRY' | 'CUSTOM';
|
|
10
|
-
hasOptions?: boolean;
|
|
11
|
-
valueType?: string;
|
|
12
|
-
openFutureDays?: number;
|
|
13
|
-
openPreviousDays?: number;
|
|
14
|
-
skipSaving?: boolean;
|
|
15
|
-
stageId?: string;
|
|
16
|
-
trackedEntityInstance?: string;
|
|
17
|
-
event?: string;
|
|
18
|
-
min?: number | Date | string;
|
|
19
|
-
max?: number | Date | string;
|
|
20
|
-
optionSet?: any;
|
|
21
|
-
translations?: any;
|
|
22
|
-
}
|
|
23
|
-
interface FormFieldGroup {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
translations?: any;
|
|
27
|
-
isFormHorizontal?: boolean;
|
|
28
|
-
attributes?: string[] | object[];
|
|
29
|
-
dataElements?: string[] | object[];
|
|
30
|
-
booleanGroupedDataElements?: string[] | object[];
|
|
31
|
-
fields: any[];
|
|
32
|
-
repeatableStage?: string;
|
|
33
|
-
repeatDependentField?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface FormSection {
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
sectionStateComplete?: boolean;
|
|
39
|
-
description?: string;
|
|
40
|
-
translations?: any;
|
|
41
|
-
fieldGroups: FormFieldGroup[];
|
|
42
|
-
}
|
|
43
|
-
export interface AddtionalAttributeFilter {
|
|
44
|
-
attribute: string;
|
|
45
|
-
value: any;
|
|
46
|
-
}
|
|
47
|
-
export interface FormConfiguration {
|
|
48
|
-
id: string;
|
|
49
|
-
name: string;
|
|
50
|
-
description?: string;
|
|
51
|
-
program: string;
|
|
52
|
-
topOrgUnit?: string;
|
|
53
|
-
trackedEntityType?: string;
|
|
54
|
-
autoFilledAttributes?: string[];
|
|
55
|
-
reservedAttribute?: string;
|
|
56
|
-
sections: FormSection[];
|
|
57
|
-
additionalAttributeFilters?: AddtionalAttributeFilter[];
|
|
58
|
-
downloadSqlView?: string;
|
|
59
|
-
sectionCategories?: Record<string, string[]>;
|
|
60
|
-
optionGroups?: string[];
|
|
61
|
-
dataElementGroup?: string[];
|
|
62
|
-
}
|
|
63
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IFormField } from './form-field.interface';
|
|
2
|
-
export interface IFormFieldGroup {
|
|
3
|
-
dataKey?: string;
|
|
4
|
-
id: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
sortOrder?: number;
|
|
7
|
-
translations?: any;
|
|
8
|
-
isFormHorizontal?: boolean;
|
|
9
|
-
attributes?: string[] | object[];
|
|
10
|
-
dataElements?: string[] | object[];
|
|
11
|
-
booleanGroupedDataElements?: string[] | object[];
|
|
12
|
-
fields: IFormField<string>[];
|
|
13
|
-
repeatableStage?: string;
|
|
14
|
-
repeatDependentField?: string;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type FormFieldMetaType = 'DATA_ELEMENT' | 'ATTRIBUTE';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { IFieldDropdown } from './field-dropdown.interface';
|
|
2
|
-
import { FieldControlType } from './field-control-type.interface';
|
|
3
|
-
import { FormFieldMetaType } from './form-field-meta-type.interface';
|
|
4
|
-
import { FormFieldExtension } from './form-field-extension.interface';
|
|
5
|
-
export interface IFormField<T> {
|
|
6
|
-
value?: T | '';
|
|
7
|
-
id: string;
|
|
8
|
-
code?: string;
|
|
9
|
-
key: string;
|
|
10
|
-
referenceKey?: string;
|
|
11
|
-
label: string;
|
|
12
|
-
required: boolean;
|
|
13
|
-
order?: number;
|
|
14
|
-
controlType: FieldControlType;
|
|
15
|
-
type: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
options?: IFieldDropdown[];
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
min?: number | Date | string;
|
|
20
|
-
max?: number | Date | string;
|
|
21
|
-
maxLength?: number | string;
|
|
22
|
-
hidden: boolean;
|
|
23
|
-
units?: string;
|
|
24
|
-
generated?: boolean;
|
|
25
|
-
isDataElement?: boolean;
|
|
26
|
-
isAttribute?: boolean;
|
|
27
|
-
isOrgUnit?: boolean;
|
|
28
|
-
isEnrollmentDate?: boolean;
|
|
29
|
-
event?: string;
|
|
30
|
-
programStage?: string;
|
|
31
|
-
program?: string;
|
|
32
|
-
trackedEntityInstance?: string;
|
|
33
|
-
trackedEntityType?: string;
|
|
34
|
-
hasOptions?: boolean;
|
|
35
|
-
dependentField?: any;
|
|
36
|
-
fieldOptionsDependsOn?: string;
|
|
37
|
-
displayInList?: boolean;
|
|
38
|
-
displayInReports?: boolean;
|
|
39
|
-
searchable?: boolean;
|
|
40
|
-
unique?: boolean;
|
|
41
|
-
metaType?: FormFieldMetaType;
|
|
42
|
-
stepId?: string;
|
|
43
|
-
availableOptionsLabel?: string;
|
|
44
|
-
selectedOptionsLabel?: string;
|
|
45
|
-
allowFutureDate?: boolean;
|
|
46
|
-
extension?: FormFieldExtension;
|
|
47
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IFormFieldGroup } from './form-field-group.interface';
|
|
2
|
-
export interface IFormMetadataSection {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
program?: string;
|
|
6
|
-
sectionStateComplete?: boolean;
|
|
7
|
-
description?: string;
|
|
8
|
-
translations?: any;
|
|
9
|
-
fieldGroups: IFormFieldGroup[];
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IFormField } from './form-field.interface';
|
|
2
|
-
import { IFormMetadataSection } from './form-metadata-section.interface';
|
|
3
|
-
export interface IFormMetadata {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
fields: IFormField<string>[];
|
|
8
|
-
sections: IFormMetadataSection[];
|
|
9
|
-
rules: any[];
|
|
10
|
-
downloadSqlView?: string;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './form-field.interface';
|
|
2
|
-
export * from './field-dropdown.interface';
|
|
3
|
-
export * from './field-control-type.interface';
|
|
4
|
-
export * from './field-type.interface';
|
|
5
|
-
export * from './form-field-meta-type.interface';
|
|
6
|
-
export * from './form-configuration.model';
|
|
7
|
-
export * from './form-field-group.interface';
|
|
8
|
-
export * from './form-metadata-section.interface';
|
|
9
|
-
export * from './form-metadata.interface';
|
|
10
|
-
export * from './form-field-extension.interface';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IFieldDropdown } from '../interfaces';
|
|
2
|
-
export declare class FieldDropdown implements IFieldDropdown {
|
|
3
|
-
key: string;
|
|
4
|
-
value: string;
|
|
5
|
-
label: string;
|
|
6
|
-
order?: number | undefined;
|
|
7
|
-
constructor(params: IFieldDropdown);
|
|
8
|
-
toJson(): IFieldDropdown;
|
|
9
|
-
static getDropdownOptions(field: any, locale?: string): FieldDropdown[];
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FieldConfig } from './field-config.model';
|
|
2
|
-
export type FormDirection = 'horizontal' | 'vertical';
|
|
3
|
-
export declare class FormConfig {
|
|
4
|
-
direction: FormDirection;
|
|
5
|
-
showSaveButton: boolean;
|
|
6
|
-
formName?: string;
|
|
7
|
-
fieldConfig: FieldConfig;
|
|
8
|
-
constructor(config?: Partial<FormConfig>);
|
|
9
|
-
get directionClassName(): "form-vertical" | "form-horizontal";
|
|
10
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { IFormField, IFormFieldGroup } from '../interfaces';
|
|
2
|
-
import { FormFieldExtension } from '../interfaces/form-field-extension.interface';
|
|
3
|
-
export declare class FormFieldGroup implements IFormFieldGroup {
|
|
4
|
-
private params;
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
translations?: any;
|
|
8
|
-
isFormHorizontal?: boolean | undefined;
|
|
9
|
-
attributes?: string[] | object[] | undefined;
|
|
10
|
-
dataElements?: string[] | object[] | undefined;
|
|
11
|
-
booleanGroupedDataElements?: string[] | object[] | undefined;
|
|
12
|
-
repeatableStage?: string | undefined;
|
|
13
|
-
repeatDependentField?: string | undefined;
|
|
14
|
-
dataKey?: string | undefined;
|
|
15
|
-
constructor(params: {
|
|
16
|
-
formFieldGroup: Partial<FormFieldGroup>;
|
|
17
|
-
fieldMetaData: Record<string, unknown>[];
|
|
18
|
-
locale?: string;
|
|
19
|
-
formFieldExtensions?: FormFieldExtension[];
|
|
20
|
-
});
|
|
21
|
-
get fields(): IFormField<string>[];
|
|
22
|
-
toJson(): IFormFieldGroup;
|
|
23
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { FieldControlType, FormFieldMetaType, IFormField, IFieldDropdown, FormFieldExtension } from '../interfaces';
|
|
2
|
-
interface FormFieldFunction<T> {
|
|
3
|
-
setMax: (field: Partial<IFormField<T>>) => string | number | Date | undefined;
|
|
4
|
-
}
|
|
5
|
-
export declare class FormField<T> implements IFormField<T>, FormFieldFunction<T> {
|
|
6
|
-
value?: T | '';
|
|
7
|
-
id: string;
|
|
8
|
-
code?: string;
|
|
9
|
-
key: string;
|
|
10
|
-
referenceKey?: string;
|
|
11
|
-
label: string;
|
|
12
|
-
required: boolean;
|
|
13
|
-
order?: number;
|
|
14
|
-
controlType: FieldControlType;
|
|
15
|
-
type: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
options?: IFieldDropdown[];
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
min?: number | Date | string;
|
|
20
|
-
max?: number | Date | string;
|
|
21
|
-
maxLength?: number | string;
|
|
22
|
-
hidden: boolean;
|
|
23
|
-
units?: string;
|
|
24
|
-
generated?: boolean;
|
|
25
|
-
unique?: boolean;
|
|
26
|
-
isDataElement?: boolean;
|
|
27
|
-
isAttribute?: boolean;
|
|
28
|
-
isOrgUnit?: boolean;
|
|
29
|
-
isEnrollmentDate?: boolean;
|
|
30
|
-
event?: string;
|
|
31
|
-
programStage?: string;
|
|
32
|
-
program?: string;
|
|
33
|
-
trackedEntityInstance?: string;
|
|
34
|
-
trackedEntityType?: string;
|
|
35
|
-
hasOptions?: boolean;
|
|
36
|
-
dependentField?: any;
|
|
37
|
-
fieldOptionsDependsOn?: string;
|
|
38
|
-
displayInList?: boolean;
|
|
39
|
-
displayInReports?: boolean;
|
|
40
|
-
searchable?: boolean;
|
|
41
|
-
metaType?: FormFieldMetaType;
|
|
42
|
-
stepId?: string;
|
|
43
|
-
availableOptionsLabel?: string;
|
|
44
|
-
selectedOptionsLabel?: string;
|
|
45
|
-
allowFutureDate?: boolean;
|
|
46
|
-
extension?: FormFieldExtension;
|
|
47
|
-
constructor(options?: Partial<FormField<T>>);
|
|
48
|
-
setMax(field: Partial<FormField<T>>): string | number | Date | undefined;
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Option, ProgramRule, ProgramRuleAction, ProgramRuleVariable } from '@iapps/d2-web-sdk';
|
|
2
|
-
interface JsonTransformer<T> {
|
|
3
|
-
toJson: () => T;
|
|
4
|
-
}
|
|
5
|
-
export interface IMetadataRuleAction {
|
|
6
|
-
field: string;
|
|
7
|
-
actionType: string;
|
|
8
|
-
assignedData?: string;
|
|
9
|
-
displayedContent?: string;
|
|
10
|
-
options?: Partial<Option>[];
|
|
11
|
-
}
|
|
12
|
-
export declare class MetadataRuleAction implements IMetadataRuleAction, JsonTransformer<IMetadataRuleAction> {
|
|
13
|
-
private ruleAction;
|
|
14
|
-
private ruleVariables;
|
|
15
|
-
constructor(ruleAction: ProgramRuleAction, ruleVariables: ProgramRuleVariable[]);
|
|
16
|
-
get field(): string;
|
|
17
|
-
get actionType(): string;
|
|
18
|
-
get assignedData(): string | undefined;
|
|
19
|
-
get displayedContent(): string | undefined;
|
|
20
|
-
get options(): Partial<Option>[] | undefined;
|
|
21
|
-
toJson(): IMetadataRuleAction;
|
|
22
|
-
}
|
|
23
|
-
export interface IMetadataRule {
|
|
24
|
-
actions: IMetadataRuleAction[];
|
|
25
|
-
condition: string;
|
|
26
|
-
}
|
|
27
|
-
export declare class MetadataRule implements IMetadataRule, JsonTransformer<IMetadataRule> {
|
|
28
|
-
private rule;
|
|
29
|
-
private ruleVariables;
|
|
30
|
-
constructor(rule: ProgramRule, ruleVariables: ProgramRuleVariable[]);
|
|
31
|
-
get actions(): MetadataRuleAction[];
|
|
32
|
-
get condition(): string;
|
|
33
|
-
toJson(): IMetadataRule;
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { IFormMetadataSection, IFormFieldGroup, FormFieldExtension } 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
|
-
inheritedAttributes: any[];
|
|
11
|
-
constructor(params: {
|
|
12
|
-
section: Partial<IFormMetadataSection>;
|
|
13
|
-
program: Record<string, unknown>;
|
|
14
|
-
locale?: string;
|
|
15
|
-
excludeInheritedAttributes?: boolean;
|
|
16
|
-
formFieldExtensions?: FormFieldExtension[];
|
|
17
|
-
});
|
|
18
|
-
get attributes(): {
|
|
19
|
-
sortOrder: unknown;
|
|
20
|
-
mandatory: unknown;
|
|
21
|
-
allowFutureDate: unknown;
|
|
22
|
-
trackedEntityType: unknown;
|
|
23
|
-
metaType: string;
|
|
24
|
-
}[];
|
|
25
|
-
get dataElements(): {
|
|
26
|
-
mandatory: unknown;
|
|
27
|
-
allowFutureDate: unknown;
|
|
28
|
-
stepId: unknown;
|
|
29
|
-
metaType: string;
|
|
30
|
-
}[];
|
|
31
|
-
get fieldGroups(): IFormFieldGroup[];
|
|
32
|
-
toJson(): IFormMetadataSection;
|
|
33
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IMetadataRule } from './form-metadata-rule.model';
|
|
2
|
-
import { Program } from '@iapps/d2-web-sdk';
|
|
3
|
-
import { IFormField, IFormMetadata, IFormMetadataSection, FormFieldExtension } from '../interfaces';
|
|
4
|
-
export declare class FormMetaData implements IFormMetadata {
|
|
5
|
-
#private;
|
|
6
|
-
private params;
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
description?: string | undefined;
|
|
10
|
-
downloadSqlView?: string | undefined;
|
|
11
|
-
constructor(params: {
|
|
12
|
-
programs: Program[];
|
|
13
|
-
locale?: string;
|
|
14
|
-
splitRegistrationSection?: boolean;
|
|
15
|
-
includeAllProgramStages?: boolean;
|
|
16
|
-
disableEnrollmentDate?: boolean;
|
|
17
|
-
excludeInheritedAttributes?: boolean;
|
|
18
|
-
programStage?: string;
|
|
19
|
-
customFormMetaData?: Partial<FormMetaData>;
|
|
20
|
-
formFieldExtensions?: FormFieldExtension[];
|
|
21
|
-
});
|
|
22
|
-
get sections(): IFormMetadataSection[];
|
|
23
|
-
get fields(): IFormField<string>[];
|
|
24
|
-
get rules(): IMetadataRule[];
|
|
25
|
-
toJson(): IFormMetadata;
|
|
26
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FormGroup } from '@angular/forms';
|
|
2
|
-
import { IFormField } from '../interfaces';
|
|
3
|
-
export declare class FormValue {
|
|
4
|
-
form: FormGroup;
|
|
5
|
-
fields: IFormField<string>[];
|
|
6
|
-
changedField?: IFormField<string>;
|
|
7
|
-
constructor(form: FormGroup, fields: IFormField<string>[], changedField?: IFormField<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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { EffectRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
-
import { IFormField } from '../../interfaces';
|
|
3
|
-
import { IMetadataRule, IMetadataRuleAction } from '../../models';
|
|
4
|
-
import { CustomOrgUnitConfig } from '../../components/org-unit-form-field.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class BaseFormWrapperComponent implements OnDestroy {
|
|
7
|
-
#private;
|
|
8
|
-
ngZone: NgZone;
|
|
9
|
-
name: import("@angular/core").InputSignal<string>;
|
|
10
|
-
fields: import("@angular/core").InputSignal<IFormField<string>[]>;
|
|
11
|
-
rules: import("@angular/core").InputSignal<IMetadataRule[]>;
|
|
12
|
-
dataValues: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
13
|
-
dataId: import("@angular/core").InputSignal<string>;
|
|
14
|
-
customOrgUnitRoots: import("@angular/core").InputSignal<CustomOrgUnitConfig[]>;
|
|
15
|
-
ruleActions: import("@angular/core").WritableSignal<IMetadataRuleAction[]>;
|
|
16
|
-
isFormValid: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
-
formSave: EventEmitter<Record<string, unknown>>;
|
|
18
|
-
formUpdate: EventEmitter<Record<string, unknown>>;
|
|
19
|
-
formCancel: EventEmitter<void>;
|
|
20
|
-
formValidityUpdate: EventEmitter<boolean>;
|
|
21
|
-
ruleProcessor: EffectRef;
|
|
22
|
-
constructor();
|
|
23
|
-
updateDataValues(dataValues: Record<string, unknown>): void;
|
|
24
|
-
updateFormValidity(isFormValid: boolean): void;
|
|
25
|
-
protected executeRules(): void;
|
|
26
|
-
ngOnDestroy(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormWrapperComponent, never>;
|
|
28
|
-
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; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; }, { "formSave": "formSave"; "formUpdate": "formUpdate"; "formCancel": "formCancel"; "formValidityUpdate": "formValidityUpdate"; }, never, never, true, never>;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './base-form-wrapper.component';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
|
@@ -1,9 +0,0 @@
|
|
|
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): "date" | "org-unit" | "file" | "text" | "number" | "email" | "tel";
|
|
7
|
-
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
8
|
-
static getOptionEntities?(options: any[]): any;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UntypedFormGroup } from '@angular/forms';
|
|
2
|
-
import { FormField } from '../models';
|
|
3
|
-
import { IFormField } from '../interfaces';
|
|
4
|
-
export declare class FormUtil {
|
|
5
|
-
static getFormGroup(fields: IFormField<string>[], dataEntities: any): UntypedFormGroup;
|
|
6
|
-
static getFieldValue(field: IFormField<string>, dataEntities: Record<string, any>): any;
|
|
7
|
-
static getFormFields(fields: any[]): FormField<string>[];
|
|
8
|
-
static createField(id: string, label: string, required: boolean, controlType: 'textbox' | 'dropdown' | 'textarea' | 'transfer' | 'search' | 'file', disabled?: boolean, placeholder?: string, options?: Array<any>): FormField<string>;
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
3
|
-
import { ReactWrapperModule } from '../react-wrapper/react-wrapper.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class HeaderBarComponent extends ReactWrapperModule {
|
|
6
|
-
private httpClient;
|
|
7
|
-
constructor(elementRef: ElementRef<HTMLElement>, httpClient: NgxDhis2HttpClientService);
|
|
8
|
-
ngAfterViewInit(): Promise<void>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderBarComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderBarComponent, "ng-dhis2-ui-header-bar", never, {}, {}, never, never, false, never>;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./header-bar.component.tsx";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../../shared/shared.module";
|
|
5
|
-
export declare class HeaderBarModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderBarModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HeaderBarModule, [typeof i1.HeaderBarComponent], [typeof i2.CommonModule, typeof i3.SharedDhis2UiModule], [typeof i1.HeaderBarComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<HeaderBarModule>;
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { HeaderBarApp } from './header-bar-app.model';
|
|
4
|
-
import { HeaderBarNotification } from './header-bar-notification.model';
|
|
5
|
-
export declare class HeaderBarData {
|
|
6
|
-
private httpClient;
|
|
7
|
-
apps: HeaderBarApp[];
|
|
8
|
-
title: string;
|
|
9
|
-
help: any;
|
|
10
|
-
notifications: HeaderBarNotification;
|
|
11
|
-
user: Record<string, unknown>;
|
|
12
|
-
constructor(httpClient: NgxDhis2HttpClientService);
|
|
13
|
-
getApps(): Observable<HeaderBarApp[]>;
|
|
14
|
-
getNotifications(): Observable<HeaderBarNotification | null>;
|
|
15
|
-
get(): Observable<HeaderBarData | null>;
|
|
16
|
-
}
|