@iapps/ng-dhis2-ui 1.2.103 → 1.2.105

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.
Files changed (200) hide show
  1. package/fesm2022/iapps-ng-dhis2-ui.mjs +604 -384
  2. package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
  3. package/index.d.ts +1306 -13
  4. package/package.json +1 -1
  5. package/lib/modules/breadcrumb/breadcrumb.module.d.ts +0 -8
  6. package/lib/modules/breadcrumb/components/breadcrumb-item.component.d.ts +0 -6
  7. package/lib/modules/breadcrumb/containers/breadcrumb.component.d.ts +0 -12
  8. package/lib/modules/breadcrumb/index.d.ts +0 -3
  9. package/lib/modules/breadcrumb/models/breadcrumb-item.model.d.ts +0 -6
  10. package/lib/modules/breadcrumb/models/index.d.ts +0 -1
  11. package/lib/modules/button/button.component.d.ts +0 -18
  12. package/lib/modules/button/button.module.d.ts +0 -9
  13. package/lib/modules/button/index.d.ts +0 -2
  14. package/lib/modules/data-table-ui/components/dropdown-menu/dropdown-menu.d.ts +0 -19
  15. package/lib/modules/data-table-ui/components/dropdown-menu/dropdown-menu.styles.d.ts +0 -5
  16. package/lib/modules/data-table-ui/components/dropdown-menu/index.d.ts +0 -1
  17. package/lib/modules/data-table-ui/containers/data-table-ui/data-table-ui.component.d.ts +0 -20
  18. package/lib/modules/data-table-ui/data-table-ui.module.d.ts +0 -10
  19. package/lib/modules/data-table-ui/hooks/index.d.ts +0 -1
  20. package/lib/modules/data-table-ui/hooks/use-dynamic-styles.hook.d.ts +0 -1
  21. package/lib/modules/data-table-ui/index.d.ts +0 -3
  22. package/lib/modules/data-table-ui/models/data-table.models.d.ts +0 -10
  23. package/lib/modules/event-form/event-form.component.d.ts +0 -21
  24. package/lib/modules/event-form/event-form.module.d.ts +0 -9
  25. package/lib/modules/event-form/index.d.ts +0 -2
  26. package/lib/modules/form/components/base-form-field.component.d.ts +0 -41
  27. package/lib/modules/form/components/file-upload-field.component.d.ts +0 -15
  28. package/lib/modules/form/components/form-field-item.component.d.ts +0 -6
  29. package/lib/modules/form/components/org-unit-form-field.component.d.ts +0 -20
  30. package/lib/modules/form/containers/flat-form/flat-form.component.d.ts +0 -11
  31. package/lib/modules/form/containers/form/form.component.d.ts +0 -41
  32. package/lib/modules/form/containers/form-field/form-field.component.d.ts +0 -59
  33. package/lib/modules/form/containers/repeatable-form/repeatable-form.component.d.ts +0 -38
  34. package/lib/modules/form/containers/section-form/section-form.component.d.ts +0 -33
  35. package/lib/modules/form/form.module.d.ts +0 -16
  36. package/lib/modules/form/hooks/field-validation.hook.d.ts +0 -13
  37. package/lib/modules/form/hooks/index.d.ts +0 -1
  38. package/lib/modules/form/index.d.ts +0 -9
  39. package/lib/modules/form/interfaces/field-control-type.interface.d.ts +0 -1
  40. package/lib/modules/form/interfaces/field-dropdown.interface.d.ts +0 -7
  41. package/lib/modules/form/interfaces/field-type.interface.d.ts +0 -16
  42. package/lib/modules/form/interfaces/form-configuration.model.d.ts +0 -63
  43. package/lib/modules/form/interfaces/form-field-extension.interface.d.ts +0 -6
  44. package/lib/modules/form/interfaces/form-field-group.interface.d.ts +0 -15
  45. package/lib/modules/form/interfaces/form-field-meta-type.interface.d.ts +0 -1
  46. package/lib/modules/form/interfaces/form-field.interface.d.ts +0 -47
  47. package/lib/modules/form/interfaces/form-metadata-section.interface.d.ts +0 -10
  48. package/lib/modules/form/interfaces/form-metadata.interface.d.ts +0 -11
  49. package/lib/modules/form/interfaces/index.d.ts +0 -10
  50. package/lib/modules/form/models/boolean.model.d.ts +0 -5
  51. package/lib/modules/form/models/check-box.model.d.ts +0 -5
  52. package/lib/modules/form/models/date-field.model.d.ts +0 -7
  53. package/lib/modules/form/models/date-range-value.model.d.ts +0 -4
  54. package/lib/modules/form/models/dropdown-option.model.d.ts +0 -6
  55. package/lib/modules/form/models/dropdown.model.d.ts +0 -5
  56. package/lib/modules/form/models/field-config.model.d.ts +0 -5
  57. package/lib/modules/form/models/field-dropdown.model.d.ts +0 -10
  58. package/lib/modules/form/models/fields-data.model.d.ts +0 -8
  59. package/lib/modules/form/models/form-config.model.d.ts +0 -10
  60. package/lib/modules/form/models/form-field-group.model.d.ts +0 -23
  61. package/lib/modules/form/models/form-field.model.d.ts +0 -50
  62. package/lib/modules/form/models/form-metadata-rule.model.d.ts +0 -35
  63. package/lib/modules/form/models/form-metadata-section.model.d.ts +0 -33
  64. package/lib/modules/form/models/form-metadata.model.d.ts +0 -26
  65. package/lib/modules/form/models/form-value.model.d.ts +0 -19
  66. package/lib/modules/form/models/form.model.d.ts +0 -14
  67. package/lib/modules/form/models/index.d.ts +0 -17
  68. package/lib/modules/form/shared/components/base-form-wrapper.component.d.ts +0 -29
  69. package/lib/modules/form/shared/components/index.d.ts +0 -1
  70. package/lib/modules/form/shared/index.d.ts +0 -1
  71. package/lib/modules/form/utils/field-control-type.util.d.ts +0 -4
  72. package/lib/modules/form/utils/field-type.util.d.ts +0 -3
  73. package/lib/modules/form/utils/field.util.d.ts +0 -9
  74. package/lib/modules/form/utils/form-value.util.d.ts +0 -4
  75. package/lib/modules/form/utils/form.util.d.ts +0 -9
  76. package/lib/modules/form/utils/index.d.ts +0 -6
  77. package/lib/modules/form/utils/translation.util.d.ts +0 -3
  78. package/lib/modules/header-bar/header-bar.component.d.ts +0 -11
  79. package/lib/modules/header-bar/header-bar.module.d.ts +0 -9
  80. package/lib/modules/header-bar/index.d.ts +0 -2
  81. package/lib/modules/header-bar/models/header-bar-app.model.d.ts +0 -10
  82. package/lib/modules/header-bar/models/header-bar-data.model.d.ts +0 -16
  83. package/lib/modules/header-bar/models/header-bar-notification.model.d.ts +0 -5
  84. package/lib/modules/header-bar/models/index.d.ts +0 -2
  85. package/lib/modules/header-bar/utils/apps.d.ts +0 -16
  86. package/lib/modules/header-bar/utils/debug-info/debug-info-menu-item.d.ts +0 -15
  87. package/lib/modules/header-bar/utils/debug-info/debug-info-modal.d.ts +0 -8
  88. package/lib/modules/header-bar/utils/debug-info/debug-info-table.d.ts +0 -8
  89. package/lib/modules/header-bar/utils/debug-info/use-debug-info.d.ts +0 -7
  90. package/lib/modules/header-bar/utils/header-bar-context.d.ts +0 -14
  91. package/lib/modules/header-bar/utils/header-bar.d.ts +0 -19
  92. package/lib/modules/header-bar/utils/join-path.d.ts +0 -1
  93. package/lib/modules/header-bar/utils/logo-image.d.ts +0 -8
  94. package/lib/modules/header-bar/utils/logo.d.ts +0 -12
  95. package/lib/modules/header-bar/utils/notification-icon.d.ts +0 -21
  96. package/lib/modules/header-bar/utils/notifications.d.ts +0 -16
  97. package/lib/modules/header-bar/utils/profile/use-on-doc-click.d.ts +0 -1
  98. package/lib/modules/header-bar/utils/profile-menu/index.d.ts +0 -1
  99. package/lib/modules/header-bar/utils/profile-menu/profile-header.d.ts +0 -16
  100. package/lib/modules/header-bar/utils/profile-menu/profile-menu.d.ts +0 -13
  101. package/lib/modules/header-bar/utils/profile-menu/update-notification.d.ts +0 -14
  102. package/lib/modules/header-bar/utils/profile.d.ts +0 -18
  103. package/lib/modules/header-bar/utils/title.d.ts +0 -15
  104. package/lib/modules/line-list/components/data-table-actions/data-table-actions.d.ts +0 -9
  105. package/lib/modules/line-list/components/data-table-actions/index.d.ts +0 -1
  106. package/lib/modules/line-list/components/dropdown-menu/dropdown-menu.d.ts +0 -12
  107. package/lib/modules/line-list/components/dropdown-menu/dropdown-menu.styles.d.ts +0 -5
  108. package/lib/modules/line-list/components/dropdown-menu/index.d.ts +0 -1
  109. package/lib/modules/line-list/components/org-unit-form-field.component.d.ts +0 -14
  110. package/lib/modules/line-list/components/orgUnitSelector.d.ts +0 -2
  111. package/lib/modules/line-list/components/table/filterToolbar.d.ts +0 -3
  112. package/lib/modules/line-list/components/table/lineListTable.d.ts +0 -2
  113. package/lib/modules/line-list/components/table/pagination.d.ts +0 -8
  114. package/lib/modules/line-list/components/table/tableBody.d.ts +0 -2
  115. package/lib/modules/line-list/components/table/tableCell.d.ts +0 -5
  116. package/lib/modules/line-list/components/table/tableFooter.d.ts +0 -2
  117. package/lib/modules/line-list/components/table/tableHeader.d.ts +0 -8
  118. package/lib/modules/line-list/components/table/tableRow.d.ts +0 -2
  119. package/lib/modules/line-list/containers/line-list.component.d.ts +0 -52
  120. package/lib/modules/line-list/hooks/index.d.ts +0 -1
  121. package/lib/modules/line-list/hooks/use-dynamic-styles.hook.d.ts +0 -1
  122. package/lib/modules/line-list/index.d.ts +0 -3
  123. package/lib/modules/line-list/line-list.module.d.ts +0 -10
  124. package/lib/modules/line-list/models/action-option-orientation.model.d.ts +0 -1
  125. package/lib/modules/line-list/models/attribute-filter.model.d.ts +0 -10
  126. package/lib/modules/line-list/models/dropdown-menu.model.d.ts +0 -9
  127. package/lib/modules/line-list/models/filter-config.model.d.ts +0 -6
  128. package/lib/modules/line-list/models/index.d.ts +0 -3
  129. package/lib/modules/line-list/models/line-list-action-option.model.d.ts +0 -6
  130. package/lib/modules/line-list/models/line-list.models.d.ts +0 -262
  131. package/lib/modules/line-list/services/line-list.service.d.ts +0 -13
  132. package/lib/modules/line-list/utils/event-table-data-util.d.ts +0 -6
  133. package/lib/modules/line-list/utils/tei-table-data-utils.d.ts +0 -9
  134. package/lib/modules/organisation-unit-selector/components/OrgUnitDimension.d.ts +0 -28
  135. package/lib/modules/organisation-unit-selector/components/index.d.ts +0 -2
  136. package/lib/modules/organisation-unit-selector/components/styles/OrgUnitDimension.style.d.ts +0 -1
  137. package/lib/modules/organisation-unit-selector/components/utils/index.d.ts +0 -2
  138. package/lib/modules/organisation-unit-selector/components/utils/ouIdHelper/index.d.ts +0 -10
  139. package/lib/modules/organisation-unit-selector/components/utils/ouLevelUtils/index.d.ts +0 -1
  140. package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.d.ts +0 -27
  141. package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.d.ts +0 -30
  142. package/lib/modules/organisation-unit-selector/index.d.ts +0 -4
  143. package/lib/modules/organisation-unit-selector/models/index.d.ts +0 -1
  144. package/lib/modules/organisation-unit-selector/models/organisation-unit-config.model.d.ts +0 -13
  145. package/lib/modules/organisation-unit-selector/organisation-unit-selector.module.d.ts +0 -10
  146. package/lib/modules/period-selector/components/FixedPeriodFilter.d.ts +0 -18
  147. package/lib/modules/period-selector/components/PeriodDimension.d.ts +0 -15
  148. package/lib/modules/period-selector/components/PeriodTransfer.d.ts +0 -28
  149. package/lib/modules/period-selector/components/RelativePeriodFilter.d.ts +0 -11
  150. package/lib/modules/period-selector/components/utils/fixedPeriods.d.ts +0 -17
  151. package/lib/modules/period-selector/components/utils/index.d.ts +0 -4
  152. package/lib/modules/period-selector/components/utils/periodTypes.d.ts +0 -19
  153. package/lib/modules/period-selector/components/utils/relativePeriods.d.ts +0 -17
  154. package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts +0 -21
  155. package/lib/modules/period-selector/containers/period-selector-modal/period-selector-modal.component.d.ts +0 -16
  156. package/lib/modules/period-selector/index.d.ts +0 -3
  157. package/lib/modules/period-selector/period-selector.module.d.ts +0 -10
  158. package/lib/modules/program-entry-form/index.d.ts +0 -2
  159. package/lib/modules/program-entry-form/models/index.d.ts +0 -3
  160. package/lib/modules/program-entry-form/models/program-entry-form-metadata.d.ts +0 -29
  161. package/lib/modules/program-entry-form/models/program-entry-form-section.model.d.ts +0 -16
  162. package/lib/modules/program-entry-form/models/program-entry-form.config.d.ts +0 -58
  163. package/lib/modules/program-entry-form/program-entry-form.component.d.ts +0 -38
  164. package/lib/modules/program-entry-form/utils/index.d.ts +0 -2
  165. package/lib/modules/program-entry-form/utils/program-entry-form-field.util.d.ts +0 -80
  166. package/lib/modules/program-entry-form/utils/program-entry-form-section.util.d.ts +0 -8
  167. package/lib/modules/react-wrapper/react-wrapper.component.d.ts +0 -17
  168. package/lib/modules/selection-filters-ui/containers/selection-filters-ui/selection-filters-ui.component.d.ts +0 -39
  169. package/lib/modules/selection-filters-ui/index.d.ts +0 -2
  170. package/lib/modules/selection-filters-ui/models/selection-filters-ui.model.d.ts +0 -54
  171. package/lib/modules/selection-filters-ui/selection-filters-ui.module.d.ts +0 -11
  172. package/lib/modules/tracker-form/index.d.ts +0 -2
  173. package/lib/modules/tracker-form/tracker-form.component.d.ts +0 -19
  174. package/lib/modules/tracker-form/tracker-form.module.d.ts +0 -9
  175. package/lib/shared/assets/AssignedCategoriesIcon.d.ts +0 -2
  176. package/lib/shared/assets/DimensionItemIcons/PeriodIcon.d.ts +0 -3
  177. package/lib/shared/components/index.d.ts +0 -1
  178. package/lib/shared/components/transfer-option.component.d.ts +0 -19
  179. package/lib/shared/hooks/dynamic-styles.hook.d.ts +0 -1
  180. package/lib/shared/hooks/index.d.ts +0 -1
  181. package/lib/shared/index.d.ts +0 -4
  182. package/lib/shared/shared.module.d.ts +0 -7
  183. package/lib/shared/styles/DimensionSelector.style.d.ts +0 -2
  184. package/lib/shared/styles/index.d.ts +0 -1
  185. package/lib/shared/utils/axis.d.ts +0 -11
  186. package/lib/shared/utils/axisGetDimension.d.ts +0 -1
  187. package/lib/shared/utils/axisHasDimension.d.ts +0 -1
  188. package/lib/shared/utils/dimension.d.ts +0 -55
  189. package/lib/shared/utils/dimensionGetItems.d.ts +0 -1
  190. package/lib/shared/utils/dimensionIs.d.ts +0 -1
  191. package/lib/shared/utils/dimensionIsEmpty.d.ts +0 -3
  192. package/lib/shared/utils/dimensionIsValid.d.ts +0 -3
  193. package/lib/shared/utils/dimensionSelectorHelper.d.ts +0 -3
  194. package/lib/shared/utils/index.d.ts +0 -11
  195. package/lib/shared/utils/layoutGetAllAxes.d.ts +0 -1
  196. package/lib/shared/utils/layoutGetAllDimensions.d.ts +0 -1
  197. package/lib/shared/utils/layoutGetDimension.d.ts +0 -1
  198. package/lib/shared/utils/layoutReplaceDimension.d.ts +0 -1
  199. package/lib/shared/utils/list.d.ts +0 -1
  200. package/lib/shared/utils/predefinedDimensions.d.ts +0 -67
@@ -1,29 +0,0 @@
1
- import { Program } from '@iapps/d2-web-sdk';
2
- import { ProgramEntryFormConfig } from './program-entry-form.config';
3
- import { IFormField, IMetadataRule } from '../../form';
4
- import { IProgramEntryFormSection } from './program-entry-form-section.model';
5
- export interface IProgramEntryFormMetaData {
6
- id: string;
7
- name: string;
8
- description?: string;
9
- program: Program;
10
- formFields: IFormField<string>[];
11
- sections: IProgramEntryFormSection[];
12
- rules: IMetadataRule[];
13
- }
14
- export declare class ProgramEntryFormMetaData implements IProgramEntryFormMetaData {
15
- #private;
16
- id: string;
17
- name: string;
18
- description?: string;
19
- d2: import("@iapps/d2-web-sdk").D2Web;
20
- config: ProgramEntryFormConfig;
21
- program: Program;
22
- setConfig(config: ProgramEntryFormConfig): ProgramEntryFormMetaData;
23
- getProgramPromise(): Promise<import("@iapps/d2-web-sdk").D2Response<Program>>;
24
- get formFields(): IFormField<string>[];
25
- get sections(): IProgramEntryFormSection[];
26
- get rules(): IMetadataRule[];
27
- toJson(): IProgramEntryFormMetaData;
28
- get(): Promise<IProgramEntryFormMetaData>;
29
- }
@@ -1,16 +0,0 @@
1
- import { IFormField } from '../../form';
2
- export interface IProgramEntryFormSection {
3
- id: string;
4
- name: string;
5
- description?: string;
6
- formFields: IFormField<string>[];
7
- orientation: 'HORIZONTAL' | 'VERTICAL';
8
- }
9
- export declare class ProgramEntryFormSection implements IProgramEntryFormSection {
10
- id: string;
11
- name: string;
12
- description?: string;
13
- formFields: IFormField<string>[];
14
- orientation: 'HORIZONTAL' | 'VERTICAL';
15
- constructor(props: IProgramEntryFormSection);
16
- }
@@ -1,58 +0,0 @@
1
- import { FormFieldExtension } from '../../form';
2
- export type AutoAssignedValues = {
3
- field: string;
4
- value: string;
5
- };
6
- export interface IProgramEntryFormConfig {
7
- program: string;
8
- programStage?: string;
9
- displayType: 'FLAT' | 'SECTION' | 'CUSTOM';
10
- formType: 'TRACKER' | 'EVENT';
11
- hideRegistrationUnit?: boolean;
12
- hideEnrollmentDate?: boolean;
13
- hideTrackedEntityTypeAttributes?: boolean;
14
- disableRegistrationUnit?: boolean;
15
- disableEnrollmentDate?: boolean;
16
- disabledIncidentDate?: boolean;
17
- excludeProgramStages?: boolean;
18
- excludeInheritedAttributes?: boolean;
19
- includedProgramStages?: string[];
20
- submitButtonLabel?: string;
21
- cancelButtonLabel?: string;
22
- hideActionButtons?: boolean;
23
- hideSubmitButton?: boolean;
24
- hideCancelButton?: boolean;
25
- ignoreRepeatability?: boolean;
26
- autoAssignedValues?: AutoAssignedValues[];
27
- hideCustomAssignedFields?: boolean;
28
- autoComplete?: boolean;
29
- formFieldExtensions?: FormFieldExtension[];
30
- updateTeiOrgUnit?: boolean;
31
- }
32
- export declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
33
- program: string;
34
- programStage?: string;
35
- displayType: 'FLAT' | 'SECTION' | 'CUSTOM';
36
- formType: 'TRACKER' | 'EVENT';
37
- hideRegistrationUnit?: boolean;
38
- hideEnrollmentDate?: boolean;
39
- hideTrackedEntityTypeAttributes?: boolean;
40
- disableRegistrationUnit?: boolean;
41
- disableEnrollmentDate?: boolean;
42
- disabledIncidentDate?: boolean;
43
- excludeProgramStages?: boolean;
44
- excludeInheritedAttributes?: boolean;
45
- includedProgramStages?: string[];
46
- submitButtonLabel: string;
47
- cancelButtonLabel: string;
48
- hideActionButtons?: boolean;
49
- hideSubmitButton?: boolean;
50
- hideCancelButton?: boolean;
51
- ignoreRepeatability?: boolean;
52
- autoAssignedValues?: AutoAssignedValues[];
53
- hideCustomAssignedFields?: boolean;
54
- autoComplete?: boolean;
55
- formFieldExtensions?: FormFieldExtension[];
56
- updateTeiOrgUnit: boolean;
57
- constructor(config: IProgramEntryFormConfig);
58
- }
@@ -1,38 +0,0 @@
1
- import { EventEmitter, NgZone } from '@angular/core';
2
- import { IProgramEntryFormMetaData, ProgramEntryFormConfig } from './models';
3
- import React from 'react';
4
- import { Observable } from 'rxjs';
5
- import { BaseEventQuery, BaseTrackerQuery, D2EventResponse, D2TrackerResponse, DHIS2Event, TrackedEntityInstance } from '@iapps/d2-web-sdk';
6
- import { CustomOrgUnitConfig } from '../form/components/org-unit-form-field.component';
7
- import * as i0 from "@angular/core";
8
- export declare class ProgramEntryFormModule {
9
- #private;
10
- config: import("@angular/core").InputSignal<ProgramEntryFormConfig>;
11
- trackedEntity: import("@angular/core").InputSignal<string>;
12
- event: import("@angular/core").InputSignal<string>;
13
- enrollment: import("@angular/core").InputSignal<string>;
14
- orgUnit: import("@angular/core").InputSignal<string>;
15
- customOrgUnitRoots: import("@angular/core").InputSignal<CustomOrgUnitConfig[]>;
16
- ngZone: NgZone;
17
- d2: import("@iapps/d2-web-sdk").D2Web;
18
- loading: import("@angular/core").WritableSignal<boolean>;
19
- metaData: import("@angular/core").WritableSignal<IProgramEntryFormMetaData>;
20
- isFormValid: import("@angular/core").WritableSignal<boolean>;
21
- isFormValid$: Observable<boolean>;
22
- instance: import("@angular/core").WritableSignal<TrackedEntityInstance | DHIS2Event>;
23
- instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
24
- instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
25
- instanceSaveCompleted: EventEmitter<D2TrackerResponse<TrackedEntityInstance> | D2EventResponse<DHIS2Event>>;
26
- instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
27
- formValidityUpdate: EventEmitter<boolean>;
28
- formCancel: EventEmitter<any>;
29
- FormLoader: () => React.JSX.Element;
30
- dataId: import("@angular/core").Signal<any>;
31
- FormActionButtons: import("@angular/core").Signal<React.JSX.Element | (() => React.JSX.Element)>;
32
- ngOnInit(): Promise<void>;
33
- onFormUpdate(dataValues: Record<string, unknown>): void;
34
- onValidityUpdate(isFormValid: boolean): void;
35
- onCancel(): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgramEntryFormModule, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgramEntryFormModule, "ng-dhis2-ui-program-entry-form", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "trackedEntity": { "alias": "trackedEntity"; "required": false; "isSignal": true; }; "event": { "alias": "event"; "required": false; "isSignal": true; }; "enrollment": { "alias": "enrollment"; "required": false; "isSignal": true; }; "orgUnit": { "alias": "orgUnit"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; }, { "instanceSave": "instanceSave"; "instanceSaveCompleted": "instanceSaveCompleted"; "instanceUpdate": "instanceUpdate"; "formValidityUpdate": "formValidityUpdate"; "formCancel": "formCancel"; }, never, never, true, never>;
38
- }
@@ -1,2 +0,0 @@
1
- export * from './program-entry-form-field.util';
2
- export * from './program-entry-form-section.util';
@@ -1,80 +0,0 @@
1
- import { Program } from '@iapps/d2-web-sdk';
2
- import { ProgramEntryFormConfig } from '../models';
3
- import { FormField, IFormField } from '../../form';
4
- export declare class ProgramEntryFormFieldUtil {
5
- #private;
6
- private program;
7
- private config;
8
- constructor(program: Program, config: ProgramEntryFormConfig);
9
- get attributes(): {
10
- sortOrder: number;
11
- mandatory: boolean;
12
- allowFutureDate: boolean;
13
- trackedEntityType: string;
14
- metaType: string;
15
- stepId: any;
16
- formName?: string;
17
- valueType: string;
18
- aggregationType?: string;
19
- generated?: boolean;
20
- pattern?: string;
21
- unique?: boolean;
22
- optionSetValue?: boolean;
23
- optionSetValueCount?: number;
24
- optionSet?: import("@iapps/d2-web-sdk").OptionSet;
25
- id: string;
26
- lastUpdated: string;
27
- created: string;
28
- name: string;
29
- displayName: string;
30
- shortName: string;
31
- code?: string;
32
- attributeValues?: any[];
33
- }[];
34
- get dataElements(): ({
35
- sortOrder: number;
36
- mandatory: boolean;
37
- allowFutureDate: boolean;
38
- stepId: string;
39
- metaType: string;
40
- formName?: string;
41
- valueType: string;
42
- aggregationType: string;
43
- domainType: string;
44
- displayDescription?: string;
45
- displayFormName?: string;
46
- skipSynchronization?: boolean;
47
- zeroIsSignificant?: boolean;
48
- periodOffset?: number;
49
- optionSetValue?: boolean;
50
- optionSet?: import("@iapps/d2-web-sdk").OptionSet;
51
- programStageId?: string;
52
- isProgramStageRepeatable?: boolean;
53
- id: string;
54
- lastUpdated: string;
55
- created: string;
56
- name: string;
57
- displayName: string;
58
- shortName: string;
59
- code?: string;
60
- attributeValues?: any[];
61
- } | {
62
- id: string;
63
- code: string;
64
- formName: string;
65
- name: string;
66
- shortName: string;
67
- displayName: string;
68
- sortOrder: number;
69
- mandatory: boolean;
70
- stepId: string;
71
- valueType: string;
72
- metaType: string;
73
- domainType: string;
74
- aggregationType: string;
75
- lastUpdated: string;
76
- created: string;
77
- })[];
78
- get reportFields(): FormField<string>[];
79
- get fields(): IFormField<string>[];
80
- }
@@ -1,8 +0,0 @@
1
- import { Program } from '@iapps/d2-web-sdk';
2
- import { IProgramEntryFormSection, ProgramEntryFormConfig } from '../models';
3
- export declare class ProgramEntryFormSectionUtil {
4
- private program;
5
- private config;
6
- constructor(program: Program, config: ProgramEntryFormConfig);
7
- get sections(): IProgramEntryFormSection[];
8
- }
@@ -1,17 +0,0 @@
1
- import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
- import { ComponentProps } from 'react';
3
- import * as ReactDOM from 'react-dom/client';
4
- import * as i0 from "@angular/core";
5
- export declare class ReactWrapperModule implements OnDestroy, AfterViewInit {
6
- protected elementRef: ElementRef<HTMLElement>;
7
- props?: ComponentProps<any>;
8
- component: any;
9
- content: ElementRef<HTMLElement>;
10
- protected reactDomRoot?: ReactDOM.Root;
11
- constructor(elementRef: ElementRef<HTMLElement>);
12
- ngAfterViewInit(): void;
13
- ngOnDestroy(): void;
14
- protected render(): void;
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
- }
@@ -1,39 +0,0 @@
1
- import { AfterViewInit, EventEmitter, NgZone } from '@angular/core';
2
- import React from 'react';
3
- import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
4
- import { ProgramAttributesFilter, ProgramStageDataElementFilter, SelectionFiltersProps, TableRow } from '../../models/selection-filters-ui.model';
5
- import { OrganisationUnitSelectionConfig } from '../../../organisation-unit-selector';
6
- import * as i0 from "@angular/core";
7
- export declare class SelectionFiltersComponent extends ReactWrapperModule implements AfterViewInit {
8
- d2: import("@iapps/d2-web-sdk").D2Web;
9
- actionOptions: {
10
- label: string;
11
- onClick: (row: TableRow) => void;
12
- }[];
13
- programAttributesFilters: ProgramAttributesFilter[];
14
- programStageDataElementFilters: ProgramStageDataElementFilter[];
15
- startDate?: string;
16
- endDate?: string;
17
- program?: string;
18
- organisationUnit?: string;
19
- actionSelected: EventEmitter<SelectionFiltersProps>;
20
- ngZone: NgZone;
21
- private getAppConfig;
22
- getRootOrgUnits(): Promise<string[]>;
23
- getOrgUnitGroups(): Promise<any>;
24
- getOrgUnitLevels(): Promise<any>;
25
- onSelectOrgUnit(selectedOrgUnits: Record<string, string>[]): void;
26
- getOrgUnitAttributeByUsage(usageType: string): "organisationUnits" | "dataViewOrganisationUnits";
27
- FieldOrgUnitSelector: (props: {
28
- onSelectOrgUnit: (selectedOrgUnits: any) => void;
29
- onCancelOrgUnit: () => void;
30
- }) => React.JSX.Element;
31
- showOrgUnitTree: import("@angular/core").WritableSignal<boolean>;
32
- orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
33
- selectedOrgUnit: import("@angular/core").WritableSignal<any>;
34
- selectedOrgUnit$: import("rxjs").Observable<any>;
35
- SelectionFiltersUI: () => React.JSX.Element;
36
- ngAfterViewInit(): Promise<void>;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectionFiltersComponent, never>;
38
- 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>;
39
- }
@@ -1,2 +0,0 @@
1
- export * from './selection-filters-ui.module';
2
- export * from './containers/selection-filters-ui/selection-filters-ui.component';
@@ -1,54 +0,0 @@
1
- export interface SelectionFiltersProps {
2
- actionOptions: ActionOption[];
3
- programAttributesFilters: ProgramAttributesFilter[];
4
- programStageDataElementFilters: ProgramStageDataElementFilter[];
5
- startDate: string;
6
- endDate: string;
7
- program: string;
8
- organisationUnit: string;
9
- }
10
- export interface ActionOption {
11
- label: string;
12
- onClick: () => void;
13
- }
14
- export interface Option {
15
- id: string;
16
- code: string;
17
- name: string;
18
- }
19
- export interface ProgramAttributesFilter {
20
- attribute: string;
21
- program: string;
22
- operator: string;
23
- valueType?: string;
24
- name: string;
25
- hasOptions: boolean;
26
- shortName: string;
27
- formName: string;
28
- code: string;
29
- value: string;
30
- options: Option[];
31
- }
32
- export interface ProgramStageDataElementFilter {
33
- programStage: string;
34
- program: string;
35
- dataElement: string;
36
- hasOptions: boolean;
37
- valueType?: string;
38
- name: string;
39
- operator: string;
40
- shortName: string;
41
- formName: string;
42
- value: string;
43
- options: Option[];
44
- }
45
- export interface TableRow {
46
- [key: string]: string | number;
47
- index: number;
48
- }
49
- export interface ColumnDefinition {
50
- column: string;
51
- display: string;
52
- index?: string;
53
- visible?: boolean;
54
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./containers/selection-filters-ui/selection-filters-ui.component.tsx";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../../shared/shared.module";
5
- import * as i4 from "../react-wrapper/react-wrapper.component.tsx";
6
- import * as i5 from "../organisation-unit-selector/organisation-unit-selector.module";
7
- export declare class SelectionFiltersUiModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectionFiltersUiModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<SelectionFiltersUiModule, [typeof i1.SelectionFiltersComponent], [typeof i2.CommonModule, typeof i3.SharedDhis2UiModule, typeof i4.ReactWrapperModule, typeof i5.OrganisationUnitSelectorModule], [typeof i1.SelectionFiltersComponent]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<SelectionFiltersUiModule>;
11
- }
@@ -1,2 +0,0 @@
1
- export * from './tracker-form.module';
2
- export * from './tracker-form.component';
@@ -1,19 +0,0 @@
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
- programStage: import("@angular/core").InputSignal<string>;
8
- trackedEntity: import("@angular/core").InputSignal<string>;
9
- d2: import("@iapps/d2-web-sdk").D2Web;
10
- trackerQuery: BaseTrackerQuery<TrackedEntityInstance>;
11
- formMetaData: IFormMetadata;
12
- instance: TrackedEntityInstance;
13
- ngOnInit(): Promise<void>;
14
- onFormUpdate(values: any): void;
15
- onSave(event: any): void;
16
- onCancel(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<TrackerFormComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<TrackerFormComponent, "ng-dhis2-ui-tracker-form", never, { "program": { "alias": "program"; "required": true; "isSignal": true; }; "programStage": { "alias": "programStage"; "required": false; "isSignal": true; }; "trackedEntity": { "alias": "trackedEntity"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
19
- }
@@ -1,9 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- export declare const AssignedCategoriesIcon: () => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.JSX.Element;
3
- export default _default;
@@ -1 +0,0 @@
1
- export * from './transfer-option.component';
@@ -1,19 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- export declare const TransferOption: {
4
- ({ disabled, label, highlighted, selected, onClick, onDoubleClick, value, icon, active, tooltipText, dataTest, onEditClick, }: any): React.JSX.Element;
5
- propTypes: {
6
- label: PropTypes.Validator<string>;
7
- value: PropTypes.Validator<string>;
8
- active: PropTypes.Requireable<boolean>;
9
- dataTest: PropTypes.Requireable<string>;
10
- disabled: PropTypes.Requireable<boolean>;
11
- highlighted: PropTypes.Requireable<boolean>;
12
- icon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
13
- selected: PropTypes.Requireable<boolean>;
14
- tooltipText: PropTypes.Requireable<string>;
15
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
16
- onDoubleClick: PropTypes.Requireable<(...args: any[]) => any>;
17
- onEditClick: PropTypes.Requireable<(...args: any[]) => any>;
18
- };
19
- };
@@ -1 +0,0 @@
1
- export declare const useDynamicStyles: <T extends Record<string, any>>(stylesObj: T) => { [K in keyof T]: string; };
@@ -1 +0,0 @@
1
- export * from './dynamic-styles.hook';
@@ -1,4 +0,0 @@
1
- export * from './utils';
2
- export * from './styles';
3
- export * from './components';
4
- export * from './hooks';
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- export declare class SharedDhis2UiModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<SharedDhis2UiModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDhis2UiModule, never, [typeof i1.CommonModule], never>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<SharedDhis2UiModule>;
7
- }
@@ -1,2 +0,0 @@
1
- declare const _default: string;
2
- export default _default;
@@ -1 +0,0 @@
1
- export * from './DimensionSelector.style';
@@ -1,11 +0,0 @@
1
- export declare const AXIS: {
2
- defaultValue: any[];
3
- isValid: (axis: any) => axis is any[];
4
- };
5
- export declare const AXIS_ID_COLUMNS = "columns";
6
- export declare const AXIS_ID_ROWS = "rows";
7
- export declare const AXIS_ID_FILTERS = "filters";
8
- export declare const AXIS_ID_YEAR_OVER_YEAR_SERIES = "yearOverYearSeries";
9
- export declare const AXIS_ID_YEAR_OVER_YEAR_CATEGORY = "yearOverYearCategory";
10
- export declare const DEFAULT_AXIS_IDS: string[];
11
- export declare const ALL_AXIS_IDS: string[];
@@ -1 +0,0 @@
1
- export declare const axisGetDimension: (axis: any, dimensionId: string) => any;
@@ -1 +0,0 @@
1
- export declare const axisHasDimension: (axis: any, dimensionId: string) => boolean;
@@ -1,55 +0,0 @@
1
- export declare const DIMENSION: {
2
- isValid: (dimension: any) => dimension is object;
3
- };
4
- export declare const DIMENSION_PROP_ID: {
5
- name: string;
6
- defaultValue: string;
7
- required: boolean;
8
- isValid: (prop: any) => prop is string;
9
- };
10
- export declare const DIMENSION_PROP_ITEMS: {
11
- name: string;
12
- defaultValue: any[];
13
- required: boolean;
14
- isValid: (prop: any) => prop is any[];
15
- };
16
- export declare const DIMENSION_PROP_FILTER: {
17
- name: string;
18
- defaultValue: any[];
19
- required: boolean;
20
- isValid: (prop: any) => prop is string;
21
- };
22
- export declare const DIMENSION_PROP_LEGEND_SET: {
23
- name: string;
24
- defaultValue: any[];
25
- required: boolean;
26
- isValid: (prop: any) => prop is string;
27
- };
28
- export declare const DIMENSION_PROP_PROGRAM_STAGE: {
29
- name: string;
30
- defaultValue: {};
31
- required: boolean;
32
- isValid: (prop: any) => prop is object;
33
- };
34
- export declare const DIMENSION_PROP_REPETITION: {
35
- name: string;
36
- defaultValue: any[];
37
- required: boolean;
38
- isValid: (prop: any) => prop is any[];
39
- };
40
- export declare const DIMENSION_PROPS: ({
41
- name: string;
42
- defaultValue: string;
43
- required: boolean;
44
- isValid: (prop: any) => prop is string;
45
- } | {
46
- name: string;
47
- defaultValue: any[];
48
- required: boolean;
49
- isValid: (prop: any) => prop is string;
50
- } | {
51
- name: string;
52
- defaultValue: {};
53
- required: boolean;
54
- isValid: (prop: any) => prop is object;
55
- })[];
@@ -1 +0,0 @@
1
- export declare const dimensionGetItems: (dimension: any) => any;
@@ -1 +0,0 @@
1
- export declare const dimensionIs: (dimension: any, dimensionId: string) => boolean;
@@ -1,3 +0,0 @@
1
- export declare const dimensionIsEmpty: (dimension: {
2
- [x: string]: any[];
3
- }) => boolean;
@@ -1,3 +0,0 @@
1
- export declare const dimensionIsValid: (dimension: {
2
- [x: string]: unknown;
3
- }, { requireItems }?: any) => boolean;
@@ -1,3 +0,0 @@
1
- export declare const TRANSFER_OPTIONS_WIDTH = "420px";
2
- export declare const TRANSFER_SELECTED_WIDTH = "298px";
3
- export declare const TRANSFER_HEIGHT = "512px";
@@ -1,11 +0,0 @@
1
- export * from './dimensionSelectorHelper';
2
- export * from './predefinedDimensions';
3
- export * from './list';
4
- export * from './axis';
5
- export * from './axisHasDimension';
6
- export * from './dimension';
7
- export * from './dimensionSelectorHelper';
8
- export * from './layoutReplaceDimension';
9
- export * from './layoutGetDimension';
10
- export * from './layoutGetAllDimensions';
11
- export * from './dimensionGetItems';
@@ -1 +0,0 @@
1
- export declare const layoutGetAllAxes: (layout: any) => any[];
@@ -1 +0,0 @@
1
- export declare const layoutGetAllDimensions: (layout: any) => any;
@@ -1 +0,0 @@
1
- export declare const layoutGetDimension: (layout: any, dimensionId: string) => any;
@@ -1 +0,0 @@
1
- export declare const layoutReplaceDimension: (layout: any, dimensionId: any, items: any) => any;
@@ -1 +0,0 @@
1
- export declare const formatList: (items: any) => any;