@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,13 +1,13 @@
1
1
  import * as i1$1 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { NgModule, Directive, Input, ContentChild, Component, EventEmitter, Output, inject, NgZone, input, ChangeDetectionStrategy, Injectable, model, computed, signal, effect, ViewChildren } from '@angular/core';
4
+ import { NgModule, ContentChild, Input, Directive, Component, EventEmitter, Output, inject, NgZone, input, ChangeDetectionStrategy, Injectable, model, computed, signal, effect, ViewChildren } from '@angular/core';
5
5
  import { useDataQuery, useConfig, useAlert, clearSensitiveCaches, DataProvider, useDataEngine, Provider } from '@dhis2/app-runtime';
6
6
  import * as i1 from '@iapps/ngx-dhis2-http-client';
7
7
  import * as React from 'react';
8
8
  import React__default, { useState, useCallback, useRef, useEffect, createContext, useContext, useMemo } from 'react';
9
9
  import * as ReactDOM from 'react-dom/client';
10
- import { catchError, of, map, zip, firstValueFrom, filter, take, Subject, takeUntil } from 'rxjs';
10
+ import { catchError, of, map, zip, firstValueFrom, from, filter, take, Subject, takeUntil } from 'rxjs';
11
11
  import i18n from '@dhis2/d2-i18n';
12
12
  import { colors, theme, spacers } from '@dhis2/ui-constants';
13
13
  import PropTypes from 'prop-types';
@@ -24,7 +24,7 @@ import { Layer } from '@dhis2-ui/layer';
24
24
  import { CircularLoader } from '@dhis2-ui/loader';
25
25
  import { MenuItem, MenuDivider } from '@dhis2-ui/menu';
26
26
  import parse from 'html-react-parser';
27
- import { Button as Button$1, IconDimensionData16, IconClock16, IconDimensionOrgUnit16, spacers as spacers$1, colors as colors$1, IconEdit16, theme as theme$1, Tooltip, IconChevronRight16, SingleSelectField, SingleSelectOption, InputField as InputField$1, TabBar, Tab, Transfer, Modal as Modal$1, ModalTitle as ModalTitle$1, ModalContent as ModalContent$1, ModalActions as ModalActions$1, ButtonStrip as ButtonStrip$1, Checkbox, OrganisationUnitTree, MultiSelect, MultiSelectOption, IconWarningFilled16, CircularLoader as CircularLoader$1, Chip, DataTableToolbar, DropdownButton, FlyoutMenu, CalendarInput, TableHead, DataTableRow, DataTableColumnHeader, Layer as Layer$1, Popper, MenuItem as MenuItem$1, IconMore24, DataTableCell, TableBody as TableBody$1, Pagination as Pagination$1, TableFoot, DataTable, FileInputField, FileListItem, MultiSelectField, TextAreaField } from '@dhis2/ui';
27
+ import { Button as Button$1, IconDimensionOrgUnit16, IconClock16, IconDimensionData16, spacers as spacers$1, colors as colors$1, IconEdit16, theme as theme$1, Tooltip, IconChevronRight16, SingleSelectField, SingleSelectOption, InputField as InputField$1, TabBar, Tab, Transfer, Modal as Modal$1, ModalTitle as ModalTitle$1, ModalContent as ModalContent$1, ModalActions as ModalActions$1, ButtonStrip as ButtonStrip$1, Checkbox, OrganisationUnitTree, MultiSelect, MultiSelectOption, IconWarningFilled16, CircularLoader as CircularLoader$1, Chip, DataTableToolbar, DropdownButton, FlyoutMenu, CalendarInput, TableHead, DataTableRow, DataTableColumnHeader, Layer as Layer$1, Popper, MenuItem as MenuItem$1, IconMore24, DataTableCell, TableBody as TableBody$1, Pagination as Pagination$1, TableFoot, DataTable, FileInputField, FileListItem, MultiSelectField, TextAreaField } from '@dhis2/ui';
28
28
  import { isObject, isString, debounce, sortBy, isArray, find, camelCase, flatten, isUndefined, head, isEmpty } from 'lodash';
29
29
  import cx from 'classnames';
30
30
  import { getNowInCalendar, generateFixedPeriods } from '@dhis2/multi-calendar-dates';
@@ -38,11 +38,11 @@ import { toObservable } from '@angular/core/rxjs-interop';
38
38
  import moment from 'moment';
39
39
 
40
40
  class SharedDhis2UiModule {
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SharedDhis2UiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
42
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: SharedDhis2UiModule, imports: [CommonModule] }); }
43
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SharedDhis2UiModule, imports: [CommonModule] }); }
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SharedDhis2UiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
42
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: SharedDhis2UiModule, imports: [CommonModule] }); }
43
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SharedDhis2UiModule, imports: [CommonModule] }); }
44
44
  }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SharedDhis2UiModule, decorators: [{
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SharedDhis2UiModule, decorators: [{
46
46
  type: NgModule,
47
47
  args: [{
48
48
  imports: [CommonModule],
@@ -1041,16 +1041,13 @@ class ReactWrapperModule {
1041
1041
  const jsxContent = this.content?.nativeElement?.outerHTML
1042
1042
  ? parse(this.content?.nativeElement?.outerHTML)
1043
1043
  : undefined;
1044
- this.reactDomRoot.render(React.createElement(this.component, { ...this.props },
1045
- " ",
1046
- jsxContent || '',
1047
- " "));
1044
+ this.reactDomRoot.render(React.createElement(this.component, this.props, jsxContent || ''));
1048
1045
  }
1049
1046
  }
1050
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ReactWrapperModule, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1051
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.8", type: ReactWrapperModule, isStandalone: true, selector: "ng-dhis2-ui-wrapper", inputs: { props: "props", component: "component" }, queries: [{ propertyName: "content", first: true, predicate: ["ngDhis2UiContent"], descendants: true }], ngImport: i0 }); }
1047
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ReactWrapperModule, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1048
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.3", type: ReactWrapperModule, isStandalone: true, selector: "ng-dhis2-ui-wrapper", inputs: { props: "props", component: "component" }, queries: [{ propertyName: "content", first: true, predicate: ["ngDhis2UiContent"], descendants: true }], ngImport: i0 }); }
1052
1049
  }
1053
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ReactWrapperModule, decorators: [{
1050
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ReactWrapperModule, decorators: [{
1054
1051
  type: Directive,
1055
1052
  args: [{
1056
1053
  selector: 'ng-dhis2-ui-wrapper',
@@ -1076,14 +1073,20 @@ class HeaderBarComponent extends ReactWrapperModule {
1076
1073
  const manifest = await firstValueFrom(this.httpClient.manifest());
1077
1074
  const data = await firstValueFrom(new HeaderBarData(this.httpClient).get());
1078
1075
  this.component = data
1079
- ? () => (React__default.createElement(DataProvider, null, React__default.createElement(HeaderBar, { appName: manifest?.name, data: data })))
1080
- : () => React__default.createElement("div", null, "Something went wrong");
1076
+ ? () => {
1077
+ const headerBarElement = React__default.createElement(HeaderBar, {
1078
+ appName: manifest?.name,
1079
+ data: data,
1080
+ });
1081
+ return React__default.createElement(DataProvider, null, headerBarElement);
1082
+ }
1083
+ : () => React__default.createElement('div', null, 'Something went wrong');
1081
1084
  this.render();
1082
1085
  }
1083
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: HeaderBarComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
1084
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: HeaderBarComponent, isStandalone: false, selector: "ng-dhis2-ui-header-bar", usesInheritance: true, ngImport: i0, template: `<ng-container></ng-container>`, isInline: true }); }
1086
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HeaderBarComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
1087
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: HeaderBarComponent, isStandalone: false, selector: "ng-dhis2-ui-header-bar", usesInheritance: true, ngImport: i0, template: `<ng-container></ng-container>`, isInline: true }); }
1085
1088
  }
1086
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: HeaderBarComponent, decorators: [{
1089
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HeaderBarComponent, decorators: [{
1087
1090
  type: Component,
1088
1091
  args: [{
1089
1092
  selector: 'ng-dhis2-ui-header-bar',
@@ -1093,11 +1096,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
1093
1096
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }] });
1094
1097
 
1095
1098
  class HeaderBarModule {
1096
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: HeaderBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1097
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: HeaderBarModule, declarations: [HeaderBarComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [HeaderBarComponent] }); }
1098
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: HeaderBarModule, imports: [CommonModule, SharedDhis2UiModule] }); }
1099
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HeaderBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1100
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: HeaderBarModule, declarations: [HeaderBarComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [HeaderBarComponent] }); }
1101
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HeaderBarModule, imports: [CommonModule, SharedDhis2UiModule] }); }
1099
1102
  }
1100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: HeaderBarModule, decorators: [{
1103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: HeaderBarModule, decorators: [{
1101
1104
  type: NgModule,
1102
1105
  args: [{
1103
1106
  imports: [CommonModule, SharedDhis2UiModule],
@@ -1119,9 +1122,21 @@ class ButtonComponent extends ReactWrapperModule {
1119
1122
  if (!this.elementRef)
1120
1123
  throw new Error('No element ref');
1121
1124
  this.reactDomRoot = ReactDOM.createRoot(this.elementRef.nativeElement);
1122
- this.component = () => (React__default.createElement(Button$1, { onClick: (e) => {
1123
- this.onButtonClick(e);
1124
- }, primary: this.primary, secondary: this.secondary, destructive: this.destructive, disabled: this.disabled, small: this.small, large: this.large, ...this.props }, this.label));
1125
+ this.component = () => {
1126
+ const buttonProps = {
1127
+ onClick: (e) => {
1128
+ this.onButtonClick(e);
1129
+ },
1130
+ primary: this.primary,
1131
+ secondary: this.secondary,
1132
+ destructive: this.destructive,
1133
+ disabled: this.disabled,
1134
+ small: this.small,
1135
+ large: this.large,
1136
+ ...this.props,
1137
+ };
1138
+ return React__default.createElement(Button$1, buttonProps, this.label);
1139
+ };
1125
1140
  this.render();
1126
1141
  }
1127
1142
  ngOnInit() {
@@ -1137,10 +1152,10 @@ class ButtonComponent extends ReactWrapperModule {
1137
1152
  onButtonClick(event) {
1138
1153
  this.buttonClick.emit(event);
1139
1154
  }
1140
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: ButtonComponent, isStandalone: false, selector: "ng-dhis2-ui-button", inputs: { label: "label", primary: "primary", secondary: "secondary", destructive: "destructive", disabled: "disabled", small: "small", large: "large" }, outputs: { buttonClick: "buttonClick" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
1155
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1156
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: ButtonComponent, isStandalone: false, selector: "ng-dhis2-ui-button", inputs: { label: "label", primary: "primary", secondary: "secondary", destructive: "destructive", disabled: "disabled", small: "small", large: "large" }, outputs: { buttonClick: "buttonClick" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
1142
1157
  }
1143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ButtonComponent, decorators: [{
1158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
1144
1159
  type: Component,
1145
1160
  args: [{
1146
1161
  selector: 'ng-dhis2-ui-button',
@@ -1166,11 +1181,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
1166
1181
  }] } });
1167
1182
 
1168
1183
  class ButtonModule {
1169
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1170
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [ButtonComponent] }); }
1171
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ButtonModule, imports: [CommonModule, SharedDhis2UiModule] }); }
1184
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1185
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [ButtonComponent] }); }
1186
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ButtonModule, imports: [CommonModule, SharedDhis2UiModule] }); }
1172
1187
  }
1173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ButtonModule, decorators: [{
1188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ButtonModule, decorators: [{
1174
1189
  type: NgModule,
1175
1190
  args: [{
1176
1191
  declarations: [ButtonComponent],
@@ -1667,7 +1682,7 @@ class BreadcrumbComponent extends ReactWrapperModule {
1667
1682
  constructor() {
1668
1683
  super(...arguments);
1669
1684
  this.#ngZone = inject(NgZone);
1670
- this.breadcrumbs = input.required();
1685
+ this.breadcrumbs = input.required(...(ngDevMode ? [{ debugName: "breadcrumbs" }] : []));
1671
1686
  this.selectBreadcrumb = new EventEmitter();
1672
1687
  }
1673
1688
  #ngZone;
@@ -1683,20 +1698,23 @@ class BreadcrumbComponent extends ReactWrapperModule {
1683
1698
  };
1684
1699
  this.component = () => {
1685
1700
  const classes = useDynamicStyles$2(breadcrumbStyles);
1686
- return (React__default.createElement("div", { className: classes.container }, this.breadcrumbs().map((breadcrumb, index) => (React__default.createElement(React__default.Fragment, { key: index },
1687
- React__default.createElement(BreadcrumbItemComponent, { key: index, breadcrumb: breadcrumb, onClick: () => {
1688
- this.#ngZone.run(() => {
1689
- this.selectBreadcrumb.emit(breadcrumb);
1690
- });
1691
- } }),
1692
- index < this.breadcrumbs().length - 1 && (React__default.createElement(IconChevronRight16, { color: colors$1.grey800 })))))));
1701
+ return React__default.createElement('div', { className: classes.container }, this.breadcrumbs().map((breadcrumb, index) => React__default.createElement(React__default.Fragment, { key: index }, React__default.createElement(BreadcrumbItemComponent, {
1702
+ key: index,
1703
+ breadcrumb: breadcrumb,
1704
+ onClick: () => {
1705
+ this.#ngZone.run(() => {
1706
+ this.selectBreadcrumb.emit(breadcrumb);
1707
+ });
1708
+ },
1709
+ }), index < this.breadcrumbs().length - 1 &&
1710
+ React__default.createElement(IconChevronRight16, { color: colors$1.grey800 }))));
1693
1711
  };
1694
1712
  this.render();
1695
1713
  }
1696
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: BreadcrumbComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1697
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.8", type: BreadcrumbComponent, isStandalone: false, selector: "ng-dhis2-ui-breadcrumb", inputs: { breadcrumbs: { classPropertyName: "breadcrumbs", publicName: "breadcrumbs", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { selectBreadcrumb: "selectBreadcrumb" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1714
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BreadcrumbComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1715
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.3", type: BreadcrumbComponent, isStandalone: false, selector: "ng-dhis2-ui-breadcrumb", inputs: { breadcrumbs: { classPropertyName: "breadcrumbs", publicName: "breadcrumbs", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { selectBreadcrumb: "selectBreadcrumb" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1698
1716
  }
1699
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: BreadcrumbComponent, decorators: [{
1717
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BreadcrumbComponent, decorators: [{
1700
1718
  type: Component,
1701
1719
  args: [{
1702
1720
  selector: 'ng-dhis2-ui-breadcrumb',
@@ -1709,11 +1727,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
1709
1727
  }] } });
1710
1728
 
1711
1729
  class BreadcrumbModule {
1712
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: BreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1713
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: BreadcrumbModule, declarations: [BreadcrumbComponent], imports: [CommonModule], exports: [BreadcrumbComponent] }); }
1714
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: BreadcrumbModule, imports: [CommonModule] }); }
1730
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1731
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: BreadcrumbModule, declarations: [BreadcrumbComponent], imports: [CommonModule], exports: [BreadcrumbComponent] }); }
1732
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BreadcrumbModule, imports: [CommonModule] }); }
1715
1733
  }
1716
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: BreadcrumbModule, decorators: [{
1734
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BreadcrumbModule, decorators: [{
1717
1735
  type: NgModule,
1718
1736
  args: [{
1719
1737
  declarations: [BreadcrumbComponent],
@@ -2425,18 +2443,22 @@ class PeriodSelectorModalComponent extends ReactWrapperModule {
2425
2443
  const excludedPeriodTypes = this.getExcludedPeriodTypes(systemInfo);
2426
2444
  this.component = () => {
2427
2445
  const [selected, setSelected] = useState(this.selectedPeriods);
2428
- return (React__default.createElement(DataProvider, null, React__default.createElement(Modal$1, { position: "middle", large: true },
2429
- React__default.createElement(ModalTitle$1, null, "Period"),
2430
- React__default.createElement(ModalContent$1, null,
2431
- React__default.createElement(PeriodDimension, { selectedPeriods: selected, onSelect: (selectionEvent) => setSelected(selectionEvent.items), excludedPeriodTypes: excludedPeriodTypes, systemInfo: systemInfo })),
2432
- React__default.createElement(ModalActions$1, null,
2433
- React__default.createElement(ButtonStrip$1, { end: true },
2434
- React__default.createElement(Button$1, { onClick: () => {
2435
- this.onCancel();
2436
- } }, "Cancel"),
2437
- React__default.createElement(Button$1, { primary: true, disabled: selected.length === 0, onClick: () => {
2438
- this.onConfirm(selected);
2439
- } }, "Confirm"))))));
2446
+ return React__default.createElement(DataProvider, null, React__default.createElement(Modal$1, { position: 'middle', large: true }, React__default.createElement(ModalTitle$1, null, 'Period'), React__default.createElement(ModalContent$1, null, React__default.createElement(PeriodDimension, {
2447
+ selectedPeriods: selected,
2448
+ onSelect: (selectionEvent) => setSelected(selectionEvent.items),
2449
+ excludedPeriodTypes: excludedPeriodTypes,
2450
+ systemInfo: systemInfo,
2451
+ })), React__default.createElement(ModalActions$1, null, React__default.createElement(ButtonStrip$1, { end: true }, React__default.createElement(Button$1, {
2452
+ onClick: () => {
2453
+ this.onCancel();
2454
+ },
2455
+ }, 'Cancel'), React__default.createElement(Button$1, {
2456
+ primary: true,
2457
+ disabled: selected.length === 0,
2458
+ onClick: () => {
2459
+ this.onConfirm(selected);
2460
+ },
2461
+ }, 'Confirm')))));
2440
2462
  };
2441
2463
  this.render();
2442
2464
  }
@@ -2446,10 +2468,10 @@ class PeriodSelectorModalComponent extends ReactWrapperModule {
2446
2468
  onConfirm(selectedItems) {
2447
2469
  this.confirm.emit(selectedItems);
2448
2470
  }
2449
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PeriodSelectorModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
2450
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: PeriodSelectorModalComponent, isStandalone: false, selector: "ng-dhis2-ui-period-selector-modal", inputs: { selectedPeriods: "selectedPeriods" }, outputs: { cancel: "cancel", confirm: "confirm" }, usesInheritance: true, ngImport: i0, template: `<ng-container></ng-container>`, isInline: true, styles: ["::ng-deep .layer{z-index:2!important}\n"] }); }
2471
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PeriodSelectorModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
2472
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: PeriodSelectorModalComponent, isStandalone: false, selector: "ng-dhis2-ui-period-selector-modal", inputs: { selectedPeriods: "selectedPeriods" }, outputs: { cancel: "cancel", confirm: "confirm" }, usesInheritance: true, ngImport: i0, template: `<ng-container></ng-container>`, isInline: true, styles: ["::ng-deep .layer{z-index:2!important}\n"] }); }
2451
2473
  }
2452
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PeriodSelectorModalComponent, decorators: [{
2474
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PeriodSelectorModalComponent, decorators: [{
2453
2475
  type: Component,
2454
2476
  args: [{ selector: 'ng-dhis2-ui-period-selector-modal', template: `<ng-container></ng-container>`, standalone: false, styles: ["::ng-deep .layer{z-index:2!important}\n"] }]
2455
2477
  }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { selectedPeriods: [{
@@ -2498,18 +2520,23 @@ class PeriodSelectorComponent extends ReactWrapperModule {
2498
2520
  this.reactDomRoot = ReactDOM.createRoot(this.elementRef.nativeElement);
2499
2521
  const systemInfo = this.d2.systemInfo;
2500
2522
  const excludedPeriodTypes = this.getExcludedPeriodTypes(systemInfo);
2501
- this.component = () => (React__default.createElement(DataProvider, null, React__default.createElement(PeriodDimension, { selectedPeriods: this.selectedPeriods, onSelect: (selectionEvent) => this.ngZone.run(() => {
2523
+ this.component = () => (React__default.createElement(DataProvider, null, React__default.createElement(PeriodDimension, {
2524
+ selectedPeriods: this.selectedPeriods,
2525
+ onSelect: (selectionEvent) => this.ngZone.run(() => {
2502
2526
  this.onSelectItems(selectionEvent);
2503
- }), excludedPeriodTypes: excludedPeriodTypes, systemInfo: systemInfo })));
2527
+ }),
2528
+ excludedPeriodTypes: excludedPeriodTypes,
2529
+ systemInfo: systemInfo
2530
+ })));
2504
2531
  this.render();
2505
2532
  }
2506
2533
  onSelectItems(selectionEvent) {
2507
2534
  this.selectPeriods.emit(selectionEvent.items);
2508
2535
  }
2509
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PeriodSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2510
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: PeriodSelectorComponent, isStandalone: false, selector: "ng-dhis2-ui-period-selector", inputs: { selectedPeriods: "selectedPeriods" }, outputs: { selectPeriods: "selectPeriods" }, usesInheritance: true, ngImport: i0, template: `<ng-container></ng-container>`, isInline: true, styles: ["::ng-deep .content-container{z-index:0!important}\n"] }); }
2536
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PeriodSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2537
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: PeriodSelectorComponent, isStandalone: false, selector: "ng-dhis2-ui-period-selector", inputs: { selectedPeriods: "selectedPeriods" }, outputs: { selectPeriods: "selectPeriods" }, usesInheritance: true, ngImport: i0, template: `<ng-container></ng-container>`, isInline: true, styles: ["::ng-deep .content-container{z-index:0!important}\n"] }); }
2511
2538
  }
2512
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PeriodSelectorComponent, decorators: [{
2539
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PeriodSelectorComponent, decorators: [{
2513
2540
  type: Component,
2514
2541
  args: [{ selector: 'ng-dhis2-ui-period-selector', template: `<ng-container></ng-container>`, standalone: false, styles: ["::ng-deep .content-container{z-index:0!important}\n"] }]
2515
2542
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { selectedPeriods: [{
@@ -2519,11 +2546,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
2519
2546
  }] } });
2520
2547
 
2521
2548
  class PeriodSelectorModule {
2522
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PeriodSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2523
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: PeriodSelectorModule, declarations: [PeriodSelectorComponent, PeriodSelectorModalComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [PeriodSelectorComponent, PeriodSelectorModalComponent] }); }
2524
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PeriodSelectorModule, imports: [CommonModule, SharedDhis2UiModule] }); }
2549
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PeriodSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2550
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: PeriodSelectorModule, declarations: [PeriodSelectorComponent, PeriodSelectorModalComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [PeriodSelectorComponent, PeriodSelectorModalComponent] }); }
2551
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PeriodSelectorModule, imports: [CommonModule, SharedDhis2UiModule] }); }
2525
2552
  }
2526
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PeriodSelectorModule, decorators: [{
2553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PeriodSelectorModule, decorators: [{
2527
2554
  type: NgModule,
2528
2555
  args: [{
2529
2556
  imports: [CommonModule, SharedDhis2UiModule],
@@ -2919,9 +2946,24 @@ class OrganisationUnitSelectorComponent extends ReactWrapperModule {
2919
2946
  const rootOrgUnits = await this.getRootOrgUnits();
2920
2947
  const config = await this.getAppConfig();
2921
2948
  if (config) {
2922
- this.component = () => (React__default.createElement(Provider, { config: config, plugin: false, parentAlertsAdd: undefined, showAlertsInPlugin: false }, React__default.createElement(OrgUnitDimension, { selected: this.selectedOrgUnits, hideGroupSelect: this.orgUnitSelectionConfig.hideGroupSelect, hideLevelSelect: this.orgUnitSelectionConfig.hideLevelSelect, hideUserOrgUnits: this.orgUnitSelectionConfig.hideUserOrgUnits, onSelect: (selectionEvent) => this.ngZone.run(() => {
2923
- this.onSelectItems(selectionEvent);
2924
- }), orgUnitGroupPromise: this.getOrgUnitGroups(), orgUnitLevelPromise: this.getOrgUnitLevels(), roots: rootOrgUnits })));
2949
+ this.component = () => React__default.createElement(Provider, {
2950
+ config: config,
2951
+ plugin: false,
2952
+ parentAlertsAdd: undefined,
2953
+ showAlertsInPlugin: false,
2954
+ children: React__default.createElement(OrgUnitDimension, {
2955
+ selected: this.selectedOrgUnits,
2956
+ hideGroupSelect: this.orgUnitSelectionConfig.hideGroupSelect,
2957
+ hideLevelSelect: this.orgUnitSelectionConfig.hideLevelSelect,
2958
+ hideUserOrgUnits: this.orgUnitSelectionConfig.hideUserOrgUnits,
2959
+ onSelect: (selectionEvent) => this.ngZone.run(() => {
2960
+ this.onSelectItems(selectionEvent);
2961
+ }),
2962
+ orgUnitGroupPromise: this.getOrgUnitGroups(),
2963
+ orgUnitLevelPromise: this.getOrgUnitLevels(),
2964
+ roots: rootOrgUnits,
2965
+ }),
2966
+ });
2925
2967
  this.render();
2926
2968
  }
2927
2969
  }
@@ -2967,10 +3009,10 @@ class OrganisationUnitSelectorComponent extends ReactWrapperModule {
2967
3009
  onSelectItems(selectionEvent) {
2968
3010
  this.selectOrgUnits.emit(selectionEvent.items);
2969
3011
  }
2970
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganisationUnitSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2971
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: OrganisationUnitSelectorComponent, isStandalone: false, selector: "ng-dhis2-ui-org-unit-selector", inputs: { selectedOrgUnits: "selectedOrgUnits", orgUnitSelectionConfig: "orgUnitSelectionConfig" }, outputs: { selectOrgUnits: "selectOrgUnits" }, usesInheritance: true, ngImport: i0, template: '<ng-container><ng-container>', isInline: true }); }
3012
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: OrganisationUnitSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
3013
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: OrganisationUnitSelectorComponent, isStandalone: false, selector: "ng-dhis2-ui-org-unit-selector", inputs: { selectedOrgUnits: "selectedOrgUnits", orgUnitSelectionConfig: "orgUnitSelectionConfig" }, outputs: { selectOrgUnits: "selectOrgUnits" }, usesInheritance: true, ngImport: i0, template: '<ng-container><ng-container>', isInline: true }); }
2972
3014
  }
2973
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganisationUnitSelectorComponent, decorators: [{
3015
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: OrganisationUnitSelectorComponent, decorators: [{
2974
3016
  type: Component,
2975
3017
  args: [{
2976
3018
  selector: 'ng-dhis2-ui-org-unit-selector',
@@ -3009,20 +3051,34 @@ class OrganisationUnitSelectorModalComponent extends ReactWrapperModule {
3009
3051
  if (config) {
3010
3052
  this.component = () => {
3011
3053
  const [selected, setSelected] = useState(this.selectedOrgUnits);
3012
- return (React__default.createElement(Provider, { config: config, plugin: false, parentAlertsAdd: undefined, showAlertsInPlugin: false }, React__default.createElement(Modal$1, { position: "middle", large: true },
3013
- React__default.createElement(ModalTitle$1, null, "Organisation unit"),
3014
- React__default.createElement(ModalContent$1, null,
3015
- React__default.createElement(OrgUnitDimension, { selected: selected, hideGroupSelect: this.orgUnitSelectionConfig.hideGroupSelect, hideLevelSelect: this.orgUnitSelectionConfig.hideLevelSelect, hideUserOrgUnits: this.orgUnitSelectionConfig.hideUserOrgUnits, onSelect: (selectionEvent) => {
3016
- setSelected(selectionEvent.items);
3017
- }, orgUnitGroupPromise: this.getOrgUnitGroups(), orgUnitLevelPromise: this.getOrgUnitLevels(), roots: rootOrgUnits })),
3018
- React__default.createElement(ModalActions$1, null,
3019
- React__default.createElement(ButtonStrip$1, { end: true },
3020
- React__default.createElement(Button$1, { onClick: () => {
3021
- this.onCancel();
3022
- } }, "Cancel"),
3023
- React__default.createElement(Button$1, { primary: true, disabled: selected.length === 0, onClick: () => {
3024
- this.onConfirm(selected);
3025
- } }, "Confirm"))))));
3054
+ return React__default.createElement(Provider, {
3055
+ config: config,
3056
+ plugin: false,
3057
+ parentAlertsAdd: undefined,
3058
+ showAlertsInPlugin: false,
3059
+ children: React__default.createElement(Modal$1, { position: 'middle', large: true }, React__default.createElement(ModalTitle$1, null, 'Organisation unit'), React__default.createElement(ModalContent$1, null, React__default.createElement(OrgUnitDimension, {
3060
+ selected: selected,
3061
+ hideGroupSelect: this.orgUnitSelectionConfig.hideGroupSelect,
3062
+ hideLevelSelect: this.orgUnitSelectionConfig.hideLevelSelect,
3063
+ hideUserOrgUnits: this.orgUnitSelectionConfig.hideUserOrgUnits,
3064
+ onSelect: (selectionEvent) => {
3065
+ setSelected(selectionEvent.items);
3066
+ },
3067
+ orgUnitGroupPromise: this.getOrgUnitGroups(),
3068
+ orgUnitLevelPromise: this.getOrgUnitLevels(),
3069
+ roots: rootOrgUnits,
3070
+ })), React__default.createElement(ModalActions$1, null, React__default.createElement(ButtonStrip$1, { end: true }, React__default.createElement(Button$1, {
3071
+ onClick: () => {
3072
+ this.onCancel();
3073
+ },
3074
+ }, 'Cancel'), React__default.createElement(Button$1, {
3075
+ primary: true,
3076
+ disabled: selected.length === 0,
3077
+ onClick: () => {
3078
+ this.onConfirm(selected);
3079
+ },
3080
+ }, 'Confirm')))),
3081
+ });
3026
3082
  };
3027
3083
  this.render();
3028
3084
  }
@@ -3075,10 +3131,10 @@ class OrganisationUnitSelectorModalComponent extends ReactWrapperModule {
3075
3131
  onSelectItems(selectionEvent) {
3076
3132
  this.selectOrgUnits.emit(selectionEvent.items);
3077
3133
  }
3078
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganisationUnitSelectorModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
3079
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: OrganisationUnitSelectorModalComponent, isStandalone: false, selector: "ng-dhis2-ui-org-unit-selector-modal", inputs: { selectedOrgUnits: "selectedOrgUnits", orgUnitSelectionConfig: "orgUnitSelectionConfig" }, outputs: { selectOrgUnits: "selectOrgUnits", cancel: "cancel", confirm: "confirm" }, usesInheritance: true, ngImport: i0, template: '<ng-container><ng-container>', isInline: true, styles: ["::ng-deep .layer{z-index:2!important}\n"] }); }
3134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: OrganisationUnitSelectorModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
3135
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: OrganisationUnitSelectorModalComponent, isStandalone: false, selector: "ng-dhis2-ui-org-unit-selector-modal", inputs: { selectedOrgUnits: "selectedOrgUnits", orgUnitSelectionConfig: "orgUnitSelectionConfig" }, outputs: { selectOrgUnits: "selectOrgUnits", cancel: "cancel", confirm: "confirm" }, usesInheritance: true, ngImport: i0, template: '<ng-container><ng-container>', isInline: true, styles: ["::ng-deep .layer{z-index:2!important}\n"] }); }
3080
3136
  }
3081
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganisationUnitSelectorModalComponent, decorators: [{
3137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: OrganisationUnitSelectorModalComponent, decorators: [{
3082
3138
  type: Component,
3083
3139
  args: [{ selector: 'ng-dhis2-ui-org-unit-selector-modal', template: '<ng-container><ng-container>', standalone: false, styles: ["::ng-deep .layer{z-index:2!important}\n"] }]
3084
3140
  }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { selectedOrgUnits: [{
@@ -3094,13 +3150,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
3094
3150
  }] } });
3095
3151
 
3096
3152
  class OrganisationUnitSelectorModule {
3097
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganisationUnitSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3098
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: OrganisationUnitSelectorModule, declarations: [OrganisationUnitSelectorComponent,
3153
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: OrganisationUnitSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3154
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: OrganisationUnitSelectorModule, declarations: [OrganisationUnitSelectorComponent,
3099
3155
  OrganisationUnitSelectorModalComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [OrganisationUnitSelectorComponent,
3100
3156
  OrganisationUnitSelectorModalComponent] }); }
3101
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganisationUnitSelectorModule, imports: [CommonModule, SharedDhis2UiModule] }); }
3157
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: OrganisationUnitSelectorModule, imports: [CommonModule, SharedDhis2UiModule] }); }
3102
3158
  }
3103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganisationUnitSelectorModule, decorators: [{
3159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: OrganisationUnitSelectorModule, decorators: [{
3104
3160
  type: NgModule,
3105
3161
  args: [{
3106
3162
  imports: [CommonModule, SharedDhis2UiModule],
@@ -3337,7 +3393,7 @@ const FilterToolbar = ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setO
3337
3393
  React__default.createElement(DropdownButton, { name: "customDropdown", open: isOpenOrgUnitDropdown, onClick: () => setIsOpenOrgUnitDropdown(!isOpenOrgUnitDropdown), component: React__default.createElement("div", null,
3338
3394
  React__default.createElement(FlyoutMenu, null,
3339
3395
  React__default.createElement("div", { style: { padding: '16px' } },
3340
- React__default.createElement(InputField$1, { key: "location", placeholder: orgUnitLabel ? orgUnitLabel : 'registering unit', value: selectedOrgUnit, onFocus: () => {
3396
+ React__default.createElement(InputField$1, { key: "location", placeholder: orgUnitLabel ? orgUnitLabel : 'Registering unit', value: selectedOrgUnit, onFocus: () => {
3341
3397
  SetOrgUnitModalVisible(true);
3342
3398
  setHide(false);
3343
3399
  } }),
@@ -3351,15 +3407,15 @@ const FilterToolbar = ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setO
3351
3407
  setPrevSelectedOrgUnit(selectedOrgUnit);
3352
3408
  handleOrgUnitFilter();
3353
3409
  setIsOpenOrgUnitDropdown(false);
3354
- } }, "update"),
3410
+ } }, "Update"),
3355
3411
  React__default.createElement(Button$1, { disabled: !selectedOrgUnit, onClick: () => {
3356
3412
  setSelectedOrgUnit('');
3357
3413
  setPrevSelectedOrgUnit('');
3358
3414
  setOrgUnitState(defaultOrgUnit);
3359
3415
  setTempOrgUnitState(defaultOrgUnit);
3360
3416
  setIsOpenOrgUnitDropdown(false);
3361
- } }, "reset filter")))))) },
3362
- orgUnitLabel ? orgUnitLabel : 'registering unit',
3417
+ } }, "Reset")))))) },
3418
+ orgUnitLabel ? orgUnitLabel : 'Registering unit',
3363
3419
  ' ',
3364
3420
  prevSelectedOrgUnit && ':',
3365
3421
  " ",
@@ -3399,15 +3455,15 @@ const FilterToolbar = ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setO
3399
3455
  handleStartDateFilter();
3400
3456
  handleEndDateFilter();
3401
3457
  setIsOpen(false);
3402
- } }, "update"),
3458
+ } }, "Update"),
3403
3459
  React__default.createElement(Button$1, { onClick: () => {
3404
3460
  setStartDateState(null);
3405
3461
  setTempEndDateState(null);
3406
3462
  setTempStartDateState(null);
3407
3463
  setEndDateState(null);
3408
3464
  setIsOpen(false);
3409
- } }, "reset")))))) },
3410
- "registration dates ",
3465
+ } }, "Reset")))))) },
3466
+ "Enrollment dates ",
3411
3467
  (startDateState || endDateState) && ':',
3412
3468
  ' ',
3413
3469
  startDateState,
@@ -3423,7 +3479,7 @@ const FilterToolbar = ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setO
3423
3479
  React__default.createElement(ClearIcon, { className: "my-icon-class" }))))))),
3424
3480
  (visibleFilters ?? []).map(({ label, key, valueType, options, type }) => {
3425
3481
  if (valueType === 'DATE') {
3426
- return (React__default.createElement(DropdownButton, { name: "customDropdown", open: openDropdownKey === key, onClick: () => {
3482
+ return (React__default.createElement(DropdownButton, { name: "customDropdown", key: key, open: openDropdownKey === key, onClick: () => {
3427
3483
  setOpenDropdownKey(openDropdownKey === key ? null : key);
3428
3484
  }, component: React__default.createElement("div", null,
3429
3485
  React__default.createElement(FlyoutMenu, null,
@@ -3444,10 +3500,10 @@ const FilterToolbar = ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setO
3444
3500
  }));
3445
3501
  handleAdditionalFilters();
3446
3502
  setOpenDropdownKey(null);
3447
- } }, "update"),
3503
+ } }, "Update"),
3448
3504
  React__default.createElement(Button$1, { onClick: () => {
3449
3505
  setIsOpen(false);
3450
- } }, "reset")))))) },
3506
+ } }, "Reset")))))) },
3451
3507
  label,
3452
3508
  " ",
3453
3509
  prevDateStates[key] && ':',
@@ -3474,7 +3530,7 @@ const FilterToolbar = ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setO
3474
3530
  /* TODO: I HAVE DUPLICATED DROPDOWN AND CLEAR ICON IN MULTIPLE PLACES REQUIRED TO CREATE A REUSABLE DROPDOWN COMPONENT WITH THE CLEAR ICON TO AVOID DUPLICATION */
3475
3531
  }
3476
3532
  if (options && options.options.length > 0) {
3477
- return (React__default.createElement(DropdownButton, { name: "customDropdown", open: openDropdownKey === key, onClick: () => {
3533
+ return (React__default.createElement(DropdownButton, { name: "customDropdown", key: key, open: openDropdownKey === key, onClick: () => {
3478
3534
  setOpenDropdownKey(openDropdownKey === key ? null : key);
3479
3535
  }, component: React__default.createElement("div", null,
3480
3536
  React__default.createElement(FlyoutMenu, null,
@@ -3500,7 +3556,7 @@ const FilterToolbar = ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setO
3500
3556
  }));
3501
3557
  handleAdditionalFilters();
3502
3558
  setOpenDropdownKey(null);
3503
- } }, "update"),
3559
+ } }, "Update"),
3504
3560
  React__default.createElement(Button$1, { disabled: !inputValues[key], onClick: () => {
3505
3561
  setInputValues((prevValues) => ({
3506
3562
  ...prevValues,
@@ -3515,7 +3571,7 @@ const FilterToolbar = ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setO
3515
3571
  setDataQueryFiltersState(filteredFilters);
3516
3572
  setTempDataQueryFiltersState(filteredFilters);
3517
3573
  setOpenDropdownKey(null);
3518
- } }, "reset")))))) },
3574
+ } }, "Reset")))))) },
3519
3575
  label,
3520
3576
  " ",
3521
3577
  prevInputValues[key] && ':',
@@ -3566,7 +3622,7 @@ const FilterToolbar = ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setO
3566
3622
  }));
3567
3623
  handleAdditionalFilters();
3568
3624
  setOpenDropdownKey(null);
3569
- } }, "update"),
3625
+ } }, "Update"),
3570
3626
  React__default.createElement(Button$1, { disabled: !inputValues[key], onClick: () => {
3571
3627
  setInputValues((prevValues) => ({
3572
3628
  ...prevValues,
@@ -3581,7 +3637,7 @@ const FilterToolbar = ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setO
3581
3637
  setDataQueryFiltersState(filteredFilters);
3582
3638
  setTempDataQueryFiltersState(filteredFilters);
3583
3639
  setOpenDropdownKey(null);
3584
- } }, "reset")))))) },
3640
+ } }, "Reset")))))) },
3585
3641
  label,
3586
3642
  " ",
3587
3643
  prevInputValues[key] && ':',
@@ -3985,30 +4041,23 @@ const LineListTable = ({ columns, data, pager, setPager, getTextColorFromBackGro
3985
4041
  };
3986
4042
 
3987
4043
  class LineListService {
3988
- constructor(httpClient) {
3989
- this.httpClient = httpClient;
3990
- }
3991
- /**
3992
- * Fetch orgUnit names for given orgUnit IDs
3993
- */
3994
4044
  fetchOrgUnits(orgUnitIds) {
4045
+ const d2 = window.d2Web;
3995
4046
  const idsQuery = `filter=id:in:[${orgUnitIds}]`;
3996
- return this.httpClient
3997
- .get(`organisationUnits.json?fields=id,name&paging=false&${idsQuery}`)
3998
- .pipe(map$1((response) => {
4047
+ return from(d2.httpInstance.get(`organisationUnits.json?fields=id,name&paging=false&${idsQuery}`)).pipe(map$1((response) => {
3999
4048
  const orgUnitsMap = new Map();
4000
- response.organisationUnits.forEach((orgUnit) => {
4049
+ (response?.data?.['organisationUnits'] || []).forEach((orgUnit) => {
4001
4050
  orgUnitsMap.set(orgUnit.id, orgUnit.name);
4002
4051
  });
4003
4052
  return orgUnitsMap;
4004
4053
  }));
4005
4054
  }
4006
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: LineListService, deps: [{ token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4007
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: LineListService }); }
4055
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: LineListService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4056
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: LineListService }); }
4008
4057
  }
4009
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: LineListService, decorators: [{
4058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: LineListService, decorators: [{
4010
4059
  type: Injectable
4011
- }], ctorParameters: () => [{ type: i1.NgxDhis2HttpClientService }] });
4060
+ }] });
4012
4061
 
4013
4062
  const getTrackedEntityTableData = (response, programId, pager, metaData, searcheableDataElements) => {
4014
4063
  const teisRaw = response.data
@@ -4056,7 +4105,7 @@ const getTrackedEntityTableData = (response, programId, pager, metaData, searche
4056
4105
  }));
4057
4106
  const tableColumns = [
4058
4107
  {
4059
- label: orgUnitLabel || 'registering unit',
4108
+ label: orgUnitLabel || 'Registering unit',
4060
4109
  key: 'orgUnit',
4061
4110
  },
4062
4111
  ...attributeColumns,
@@ -4665,28 +4714,103 @@ class LineListTableComponent extends ReactWrapperModule {
4665
4714
  // Returns black for light backgrounds, white for dark backgrounds
4666
4715
  return yiq >= 128 ? colors$1.grey700 : '#FFFFFF';
4667
4716
  }
4668
- return (React__default.createElement("div", null, loading ? (React__default.createElement("div", { style: {
4669
- display: 'flex',
4670
- alignItems: 'center',
4671
- gap: 8,
4672
- padding: 8,
4673
- } },
4674
- React__default.createElement(CircularLoader$1, { small: true }),
4675
- React__default.createElement("div", { style: {
4676
- fontSize: 14,
4677
- } }, "Loading"))) : (React__default.createElement("div", null,
4678
- this.showDownloadButton && (React__default.createElement("div", { style: {
4679
- paddingBottom: '1rem',
4717
+ return React__default.createElement('div', null, loading
4718
+ ? React__default.createElement('div', {
4719
+ style: {
4680
4720
  display: 'flex',
4681
- justifyContent: 'flex-end',
4682
- } },
4683
- React__default.createElement(DropdownButton, { name: "Download", component: React__default.createElement("span", null,
4684
- ' ',
4685
- React__default.createElement(MenuItem$1, { label: "Download Csv", onClick: handleCsvDownload }),
4686
- React__default.createElement(MenuItem$1, { label: "Download Excel", onClick: handleExcelDownload })), value: "Download" }, "Download"))),
4687
- orgUnitModalVisible && (React__default.createElement(OrgUnitSelector, { hide: hide, setHide: setHide, selectedOrgUnit: selectedOrgUnit, setSelectedOrgUnit: setSelectedOrgUnit, setOrgUnitState: setOrgUnitState, setTempOrgUnitState: setTempOrgUnitState, tempOrgUnitState: tempOrgUnitState })),
4688
- this.showFilters && (React__default.createElement(FilterToolbar, { orgUnitLabel: orgUnitLabel, selectedOrgUnit: selectedOrgUnit, setSelectedOrgUnit: setSelectedOrgUnit, setOrgUnitState: setOrgUnitState, defaultOrgUnit: defaultOrgUnit, setHide: setHide, startDateState: startDateState, setStartDateState: setStartDateState, endDateState: endDateState, setEndDateState: setEndDateState, visibleFilters: visibleFilters, dateStates: dateStates, inputValues: inputValues, setInputValues: setInputValues, handleInputChange: handleInputChange, handleInputChangeForSelectField: handleInputChangeForSelectField, handleDateSelect: handleDateSelect, showAllFilters: showAllFilters, setShowAllFilters: setShowAllFilters, setTempStartDateState: setTempStartDateState, setTempEndDateState: setTempEndDateState, setTempOrgUnitState: setTempOrgUnitState, tempStartDateState: tempStartDateState, tempEndDateState: tempEndDateState, tempOrgUnitState: tempOrgUnitState, dataQueryFiltersState: dataQueryFiltersState, setDataQueryFiltersState: setDataQueryFiltersState, SetOrgUnitModalVisible: setOrgUnitModalVisible, showEnrollmentDates: this.showEnrollmentDates, handleAdditionalFilters: handleAdditionalFilters, handleStartDateFilter: handleStartDateFilter, handleEndDateFilter: handleEndDateFilter, handleOrgUnitFilter: handleOrgUnitFilter, setDateStates: setDateStates, prevInputValues: prevInputValues, setPrevInputValues: setPrevInputValues, setTempDataQueryFiltersState: setTempDataQueryFiltersState, prevDateStates: prevDateStates, setPrevDateStates: setPrevDateStates, prevSelectedOrgUnit: prevSelectedOrgUnit, setPrevSelectedOrgUnit: setPrevSelectedOrgUnit })),
4689
- React__default.createElement(LineListTable, { columns: columns, data: data, pager: pager, setPager: setPager, getTextColorFromBackGround: getTextColorFromBackGround, actionOptions: this.actionOptions, actionOptionOrientation: this.actionOptionOrientation, actionSelected: this.actionSelected, selectable: selectable, rowsSelected: this.rowsSelected, showActionButtons: showActionButtons, error: error })))));
4721
+ alignItems: 'center',
4722
+ gap: 8,
4723
+ padding: 8,
4724
+ },
4725
+ }, React__default.createElement(CircularLoader$1, { small: true }), React__default.createElement('div', {
4726
+ style: {
4727
+ fontSize: 14,
4728
+ },
4729
+ }, 'Loading'))
4730
+ : React__default.createElement('div', null, this.showDownloadButton &&
4731
+ React__default.createElement('div', {
4732
+ style: {
4733
+ paddingBottom: '1rem',
4734
+ display: 'flex',
4735
+ justifyContent: 'flex-end',
4736
+ },
4737
+ }, React__default.createElement(DropdownButton, {
4738
+ name: 'Download',
4739
+ component: React__default.createElement('span', null, ' ', React__default.createElement(MenuItem$1, {
4740
+ label: 'Download Csv',
4741
+ onClick: handleCsvDownload,
4742
+ }), React__default.createElement(MenuItem$1, {
4743
+ label: 'Download Excel',
4744
+ onClick: handleExcelDownload,
4745
+ })),
4746
+ value: 'Download',
4747
+ }, 'Download')), orgUnitModalVisible &&
4748
+ React__default.createElement(OrgUnitSelector, {
4749
+ hide: hide,
4750
+ setHide: setHide,
4751
+ selectedOrgUnit: selectedOrgUnit,
4752
+ setSelectedOrgUnit: setSelectedOrgUnit,
4753
+ setOrgUnitState: setOrgUnitState,
4754
+ setTempOrgUnitState: setTempOrgUnitState,
4755
+ tempOrgUnitState: tempOrgUnitState,
4756
+ }), this.showFilters &&
4757
+ React__default.createElement(FilterToolbar, {
4758
+ orgUnitLabel: orgUnitLabel,
4759
+ selectedOrgUnit: selectedOrgUnit,
4760
+ setSelectedOrgUnit: setSelectedOrgUnit,
4761
+ setOrgUnitState: setOrgUnitState,
4762
+ defaultOrgUnit: defaultOrgUnit,
4763
+ setHide: setHide,
4764
+ startDateState: startDateState,
4765
+ setStartDateState: setStartDateState,
4766
+ endDateState: endDateState,
4767
+ setEndDateState: setEndDateState,
4768
+ visibleFilters: visibleFilters,
4769
+ dateStates: dateStates,
4770
+ inputValues: inputValues,
4771
+ setInputValues: setInputValues,
4772
+ handleInputChange: handleInputChange,
4773
+ handleInputChangeForSelectField: handleInputChangeForSelectField,
4774
+ handleDateSelect: handleDateSelect,
4775
+ showAllFilters: showAllFilters,
4776
+ setShowAllFilters: setShowAllFilters,
4777
+ setTempStartDateState: setTempStartDateState,
4778
+ setTempEndDateState: setTempEndDateState,
4779
+ setTempOrgUnitState: setTempOrgUnitState,
4780
+ tempStartDateState: tempStartDateState,
4781
+ tempEndDateState: tempEndDateState,
4782
+ tempOrgUnitState: tempOrgUnitState,
4783
+ dataQueryFiltersState: dataQueryFiltersState,
4784
+ setDataQueryFiltersState: setDataQueryFiltersState,
4785
+ SetOrgUnitModalVisible: setOrgUnitModalVisible,
4786
+ showEnrollmentDates: this.showEnrollmentDates,
4787
+ handleAdditionalFilters: handleAdditionalFilters,
4788
+ handleStartDateFilter: handleStartDateFilter,
4789
+ handleEndDateFilter: handleEndDateFilter,
4790
+ handleOrgUnitFilter: handleOrgUnitFilter,
4791
+ setDateStates: setDateStates,
4792
+ prevInputValues: prevInputValues,
4793
+ setPrevInputValues: setPrevInputValues,
4794
+ setTempDataQueryFiltersState: setTempDataQueryFiltersState,
4795
+ prevDateStates: prevDateStates,
4796
+ setPrevDateStates: setPrevDateStates,
4797
+ prevSelectedOrgUnit: prevSelectedOrgUnit,
4798
+ setPrevSelectedOrgUnit: setPrevSelectedOrgUnit,
4799
+ // filteredFilters: filteredFilters
4800
+ }), React__default.createElement(LineListTable, {
4801
+ columns: columns,
4802
+ data: data,
4803
+ pager: pager,
4804
+ setPager: setPager,
4805
+ getTextColorFromBackGround: getTextColorFromBackGround,
4806
+ actionOptions: this.actionOptions,
4807
+ actionOptionOrientation: this.actionOptionOrientation,
4808
+ actionSelected: this.actionSelected,
4809
+ selectable: selectable,
4810
+ rowsSelected: this.rowsSelected,
4811
+ showActionButtons: showActionButtons,
4812
+ error: error,
4813
+ })));
4690
4814
  };
4691
4815
  }
4692
4816
  ngOnChanges(changes) {
@@ -4734,10 +4858,10 @@ class LineListTableComponent extends ReactWrapperModule {
4734
4858
  this.component = this.LineList;
4735
4859
  this.render();
4736
4860
  }
4737
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: LineListTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
4738
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: LineListTableComponent, isStandalone: false, selector: "ng-dhis2-ui-line-list", inputs: { triggerToken: "triggerToken", programId: "programId", orgUnit: "orgUnit", programStageId: "programStageId", actionOptions: "actionOptions", actionOptionOrientation: "actionOptionOrientation", attributeFilters: "attributeFilters", useOuModeWithOlderDHIS2Instance: "useOuModeWithOlderDHIS2Instance", startDate: "startDate", endDate: "endDate", dataQueryFilters: "dataQueryFilters", ouMode: "ouMode", isButtonLoading: "isButtonLoading", buttonFilter: "buttonFilter", filterRootOrgUnit: "filterRootOrgUnit", showFilters: "showFilters", isOptionSetNameVisible: "isOptionSetNameVisible", allowRowsSelection: "allowRowsSelection", enrollmentStatus: "enrollmentStatus", filterableColumnIds: "filterableColumnIds", triggerRefetch: "triggerRefetch", eventStatus: "eventStatus", showActionButtons: "showActionButtons", showEnrollmentDates: "showEnrollmentDates", showDownloadButton: "showDownloadButton", searcheableDataElements: "searcheableDataElements" }, outputs: { actionSelected: "actionSelected", rowsSelected: "rowsSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@charset \"UTF-8\";::ng-deep .custom-input{display:flex!important;gap:4px!important;align-items:center!important;border:1px solid #9fadba!important;border-radius:4px!important;margin:0;padding:0 0 0 8px;background-color:#fff!important}::ng-deep .custom-input div{margin:0!important}::ng-deep .custom-input label{font-size:12px;padding-right:0}::ng-deep .custom-input input{border:none!important;font-size:12px!important;display:flex;align-items:center;padding-left:4px;height:40px;outline:none!important;box-shadow:none!important}::ng-deep .custom-input input:focus{border:none!important;box-shadow:none!important}::ng-deep .custom-input [data-test=calendar-clear-button]{background-color:#f2f2f2!important;color:#870808!important;border-radius:6px!important;padding:4px 10px!important;font-size:0!important}::ng-deep .custom-input [data-test=calendar-clear-button]:before{content:\"\\2715\";font-size:14px;color:#870808}::ng-deep .custom-input [data-test=calendar-clear-button]:hover{background-color:#ddd}::ng-deep .calendar-input-wrapper{position:relative}::ng-deep .calendar-input-wrapper .custom-input{position:relative;width:100%;display:flex;align-items:center}::ng-deep .calendar-input-wrapper [data-test=calendar-clear-button]{right:8px;bottom:14px;margin:auto;display:flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:0!important;background-color:#a0adba!important;border-radius:50%;padding:2px;cursor:pointer}::ng-deep .calendar-input-wrapper [data-test=calendar-clear-button]:before{content:\"\\2715\";font-size:10px;color:#f0f0f0}::ng-deep .calendar-input-wrapper input{padding-right:40px!important;height:40px;line-height:40px;box-sizing:border-box}::ng-deep .custom-input label{color:gray!important;opacity:1}::ng-deep .table-top-toolbar{background-color:var(--colors-grey100)!important;color:var(--colors-grey900)!important}::ng-deep .custom-select-input{display:flex!important;gap:4px!important;align-items:center!important;border:1px solid #9fadba!important;border-radius:4px!important;margin:0;padding:0 0 0 8px;background-color:#fff!important}::ng-deep .custom-select-input div{margin:0!important}::ng-deep .custom-select-input [data-test=dhis2-uiwidgets-singleselectfield-label]{font-size:12px;color:gray!important}::ng-deep .custom-select-input [data-test=dhis2-uicore-select-input]{border:none!important;font-size:12px!important;display:flex;align-items:center;padding-left:4px;height:40px;outline:none!important;box-shadow:none!important}::ng-deep .custom-select-input [data-test=dhis2-uicore-select-input]:focus-within{box-shadow:none!important}::ng-deep .custom-select-input input:focus{border:none!important;box-shadow:none!important}\n"] }); }
4861
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: LineListTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
4862
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: LineListTableComponent, isStandalone: false, selector: "ng-dhis2-ui-line-list", inputs: { triggerToken: "triggerToken", programId: "programId", orgUnit: "orgUnit", programStageId: "programStageId", actionOptions: "actionOptions", actionOptionOrientation: "actionOptionOrientation", attributeFilters: "attributeFilters", useOuModeWithOlderDHIS2Instance: "useOuModeWithOlderDHIS2Instance", startDate: "startDate", endDate: "endDate", dataQueryFilters: "dataQueryFilters", ouMode: "ouMode", isButtonLoading: "isButtonLoading", buttonFilter: "buttonFilter", filterRootOrgUnit: "filterRootOrgUnit", showFilters: "showFilters", isOptionSetNameVisible: "isOptionSetNameVisible", allowRowsSelection: "allowRowsSelection", enrollmentStatus: "enrollmentStatus", filterableColumnIds: "filterableColumnIds", triggerRefetch: "triggerRefetch", eventStatus: "eventStatus", showActionButtons: "showActionButtons", showEnrollmentDates: "showEnrollmentDates", showDownloadButton: "showDownloadButton", searcheableDataElements: "searcheableDataElements" }, outputs: { actionSelected: "actionSelected", rowsSelected: "rowsSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@charset \"UTF-8\";::ng-deep .custom-input{display:flex!important;gap:4px!important;align-items:center!important;border:1px solid #9fadba!important;border-radius:4px!important;margin:0;padding:0 0 0 8px;background-color:#fff!important}::ng-deep .custom-input div{margin:0!important}::ng-deep .custom-input label{font-size:12px;padding-right:0}::ng-deep .custom-input input{border:none!important;font-size:12px!important;display:flex;align-items:center;padding-left:4px;height:40px;outline:none!important;box-shadow:none!important}::ng-deep .custom-input input:focus{border:none!important;box-shadow:none!important}::ng-deep .custom-input [data-test=calendar-clear-button]{background-color:#f2f2f2!important;color:#870808!important;border-radius:6px!important;padding:4px 10px!important;font-size:0!important}::ng-deep .custom-input [data-test=calendar-clear-button]:before{content:\"\\2715\";font-size:14px;color:#870808}::ng-deep .custom-input [data-test=calendar-clear-button]:hover{background-color:#ddd}::ng-deep .calendar-input-wrapper{position:relative}::ng-deep .calendar-input-wrapper .custom-input{position:relative;width:100%;display:flex;align-items:center}::ng-deep .calendar-input-wrapper [data-test=calendar-clear-button]{right:8px;bottom:14px;margin:auto;display:flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:0!important;background-color:#a0adba!important;border-radius:50%;padding:2px;cursor:pointer}::ng-deep .calendar-input-wrapper [data-test=calendar-clear-button]:before{content:\"\\2715\";font-size:10px;color:#f0f0f0}::ng-deep .calendar-input-wrapper input{padding-right:40px!important;height:40px;line-height:40px;box-sizing:border-box}::ng-deep .custom-input label{color:gray!important;opacity:1}::ng-deep .table-top-toolbar{background-color:var(--colors-grey100)!important;color:var(--colors-grey900)!important}::ng-deep .custom-select-input{display:flex!important;gap:4px!important;align-items:center!important;border:1px solid #9fadba!important;border-radius:4px!important;margin:0;padding:0 0 0 8px;background-color:#fff!important}::ng-deep .custom-select-input div{margin:0!important}::ng-deep .custom-select-input [data-test=dhis2-uiwidgets-singleselectfield-label]{font-size:12px;color:gray!important}::ng-deep .custom-select-input [data-test=dhis2-uicore-select-input]{border:none!important;font-size:12px!important;display:flex;align-items:center;padding-left:4px;height:40px;outline:none!important;box-shadow:none!important}::ng-deep .custom-select-input [data-test=dhis2-uicore-select-input]:focus-within{box-shadow:none!important}::ng-deep .custom-select-input input:focus{border:none!important;box-shadow:none!important}\n"] }); }
4739
4863
  }
4740
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: LineListTableComponent, decorators: [{
4864
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: LineListTableComponent, decorators: [{
4741
4865
  type: Component,
4742
4866
  args: [{ selector: 'ng-dhis2-ui-line-list', template: '<ng-content></ng-content>', standalone: false, styles: ["@charset \"UTF-8\";::ng-deep .custom-input{display:flex!important;gap:4px!important;align-items:center!important;border:1px solid #9fadba!important;border-radius:4px!important;margin:0;padding:0 0 0 8px;background-color:#fff!important}::ng-deep .custom-input div{margin:0!important}::ng-deep .custom-input label{font-size:12px;padding-right:0}::ng-deep .custom-input input{border:none!important;font-size:12px!important;display:flex;align-items:center;padding-left:4px;height:40px;outline:none!important;box-shadow:none!important}::ng-deep .custom-input input:focus{border:none!important;box-shadow:none!important}::ng-deep .custom-input [data-test=calendar-clear-button]{background-color:#f2f2f2!important;color:#870808!important;border-radius:6px!important;padding:4px 10px!important;font-size:0!important}::ng-deep .custom-input [data-test=calendar-clear-button]:before{content:\"\\2715\";font-size:14px;color:#870808}::ng-deep .custom-input [data-test=calendar-clear-button]:hover{background-color:#ddd}::ng-deep .calendar-input-wrapper{position:relative}::ng-deep .calendar-input-wrapper .custom-input{position:relative;width:100%;display:flex;align-items:center}::ng-deep .calendar-input-wrapper [data-test=calendar-clear-button]{right:8px;bottom:14px;margin:auto;display:flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:0!important;background-color:#a0adba!important;border-radius:50%;padding:2px;cursor:pointer}::ng-deep .calendar-input-wrapper [data-test=calendar-clear-button]:before{content:\"\\2715\";font-size:10px;color:#f0f0f0}::ng-deep .calendar-input-wrapper input{padding-right:40px!important;height:40px;line-height:40px;box-sizing:border-box}::ng-deep .custom-input label{color:gray!important;opacity:1}::ng-deep .table-top-toolbar{background-color:var(--colors-grey100)!important;color:var(--colors-grey900)!important}::ng-deep .custom-select-input{display:flex!important;gap:4px!important;align-items:center!important;border:1px solid #9fadba!important;border-radius:4px!important;margin:0;padding:0 0 0 8px;background-color:#fff!important}::ng-deep .custom-select-input div{margin:0!important}::ng-deep .custom-select-input [data-test=dhis2-uiwidgets-singleselectfield-label]{font-size:12px;color:gray!important}::ng-deep .custom-select-input [data-test=dhis2-uicore-select-input]{border:none!important;font-size:12px!important;display:flex;align-items:center;padding-left:4px;height:40px;outline:none!important;box-shadow:none!important}::ng-deep .custom-select-input [data-test=dhis2-uicore-select-input]:focus-within{box-shadow:none!important}::ng-deep .custom-select-input input:focus{border:none!important;box-shadow:none!important}\n"] }]
4743
4867
  }], propDecorators: { triggerToken: [{
@@ -4799,11 +4923,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
4799
4923
  }] } });
4800
4924
 
4801
4925
  class LineListModule {
4802
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: LineListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4803
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: LineListModule, declarations: [LineListTableComponent], imports: [CommonModule, SharedDhis2UiModule, ReactWrapperModule], exports: [LineListTableComponent] }); }
4804
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: LineListModule, providers: [LineListService], imports: [CommonModule, SharedDhis2UiModule] }); }
4926
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: LineListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4927
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: LineListModule, declarations: [LineListTableComponent], imports: [CommonModule, SharedDhis2UiModule, ReactWrapperModule], exports: [LineListTableComponent] }); }
4928
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: LineListModule, providers: [LineListService], imports: [CommonModule, SharedDhis2UiModule] }); }
4805
4929
  }
4806
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: LineListModule, decorators: [{
4930
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: LineListModule, decorators: [{
4807
4931
  type: NgModule,
4808
4932
  args: [{
4809
4933
  declarations: [LineListTableComponent],
@@ -4953,27 +5077,29 @@ class DataTableUIComponent extends ReactWrapperModule {
4953
5077
  },
4954
5078
  }));
4955
5079
  };
4956
- return (React__default.createElement("div", null, loading ? (React__default.createElement("div", { style: {
4957
- display: 'flex',
4958
- alignItems: 'center',
4959
- gap: 8,
4960
- padding: 8,
4961
- } },
4962
- React__default.createElement(CircularLoader$1, { small: true }),
4963
- React__default.createElement("div", { style: {
5080
+ return React__default.createElement('div', null, loading
5081
+ ? React__default.createElement('div', {
5082
+ style: {
5083
+ display: 'flex',
5084
+ alignItems: 'center',
5085
+ gap: 8,
5086
+ padding: 8,
5087
+ },
5088
+ }, React__default.createElement(CircularLoader$1, { small: true }), React__default.createElement('div', {
5089
+ style: {
4964
5090
  fontSize: 14,
4965
- } }, "Loading"))) : (React__default.createElement(DataTable, null,
4966
- React__default.createElement(TableHead, null,
4967
- React__default.createElement(DataTableRow, null,
4968
- columns.map((col) => (React__default.createElement(DataTableColumnHeader, { key: col.column }, col.display))),
4969
- this.actionOptions && this.actionOptions.length > 0 && (React__default.createElement(DataTableColumnHeader, null, "Actions")))),
4970
- React__default.createElement(TableBody$1, null, tableData.map((row, rowIndex) => (React__default.createElement(DataTableRow, { key: rowIndex },
4971
- columns.map((col) => (React__default.createElement(DataTableCell, { key: col.column }, row[col.column] || '-'))),
4972
- this.actionOptions && this.actionOptions.length > 0 && (React__default.createElement(DataTableCell, null,
4973
- React__default.createElement(DropdownMenu, { dropdownOptions: getDropdownOptions(row), onClick: (option) => option.onClick?.(row) }))))))),
4974
- React__default.createElement(TableFoot, null,
4975
- React__default.createElement(DataTableRow, null,
4976
- React__default.createElement(DataTableCell, { colSpan: (columns.length || 0 + 1).toString() })))))));
5091
+ },
5092
+ }, 'Loading'))
5093
+ : React__default.createElement(DataTable, null, React__default.createElement(TableHead, null, React__default.createElement(DataTableRow, null, ...columns.map((col) => React__default.createElement(DataTableColumnHeader, { key: col.column }, col.display)), this.actionOptions && this.actionOptions.length > 0
5094
+ ? React__default.createElement(DataTableColumnHeader, null, 'Actions')
5095
+ : null)), React__default.createElement(TableBody$1, null, ...tableData.map((row, rowIndex) => React__default.createElement(DataTableRow, { key: rowIndex }, ...columns.map((col) => React__default.createElement(DataTableCell, { key: col.column }, row[col.column] || '-')), this.actionOptions && this.actionOptions.length > 0
5096
+ ? React__default.createElement(DataTableCell, null, React__default.createElement(DropdownMenu, {
5097
+ dropdownOptions: getDropdownOptions(row),
5098
+ onClick: (option) => option.onClick?.(row),
5099
+ }))
5100
+ : null))), React__default.createElement(TableFoot, null, React__default.createElement(DataTableRow, null, React__default.createElement(DataTableCell, {
5101
+ colSpan: (columns.length + 1).toString(),
5102
+ })))));
4977
5103
  };
4978
5104
  }
4979
5105
  async ngAfterViewInit() {
@@ -4992,10 +5118,10 @@ class DataTableUIComponent extends ReactWrapperModule {
4992
5118
  this.render();
4993
5119
  }
4994
5120
  }
4995
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DataTableUIComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
4996
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: DataTableUIComponent, isStandalone: false, selector: "app-data-table-ui", inputs: { data: "data", columnDefinitions: "columnDefinitions", actionOptions: "actionOptions" }, outputs: { actionSelected: "actionSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [""] }); }
5121
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DataTableUIComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
5122
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: DataTableUIComponent, isStandalone: false, selector: "app-data-table-ui", inputs: { data: "data", columnDefinitions: "columnDefinitions", actionOptions: "actionOptions" }, outputs: { actionSelected: "actionSelected" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [""] }); }
4997
5123
  }
4998
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DataTableUIComponent, decorators: [{
5124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DataTableUIComponent, decorators: [{
4999
5125
  type: Component,
5000
5126
  args: [{ selector: 'app-data-table-ui', standalone: false, template: '<ng-content></ng-content>' }]
5001
5127
  }], propDecorators: { data: [{
@@ -5009,11 +5135,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
5009
5135
  }] } });
5010
5136
 
5011
5137
  class DataTableUIModule {
5012
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DataTableUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5013
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: DataTableUIModule, declarations: [DataTableUIComponent], imports: [CommonModule, SharedDhis2UiModule, ReactWrapperModule], exports: [DataTableUIComponent] }); }
5014
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DataTableUIModule, imports: [CommonModule, SharedDhis2UiModule] }); }
5138
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DataTableUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5139
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: DataTableUIModule, declarations: [DataTableUIComponent], imports: [CommonModule, SharedDhis2UiModule, ReactWrapperModule], exports: [DataTableUIComponent] }); }
5140
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DataTableUIModule, imports: [CommonModule, SharedDhis2UiModule] }); }
5015
5141
  }
5016
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DataTableUIModule, decorators: [{
5142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DataTableUIModule, decorators: [{
5017
5143
  type: NgModule,
5018
5144
  args: [{
5019
5145
  declarations: [DataTableUIComponent],
@@ -6455,24 +6581,24 @@ class BaseFormFieldComponent extends ReactWrapperModule {
6455
6581
  super(...arguments);
6456
6582
  this.ngZone = inject(NgZone);
6457
6583
  this.fieldType = 'textbox';
6458
- this.field = input.required();
6459
- this.fieldError = input();
6460
- this.fieldConfig = input(new FieldConfig());
6461
- this.form = model.required();
6462
- this.isValid = input();
6463
- this.isValueAssigned = input();
6464
- this.dataId = input();
6465
- this.customOrgUnitRoots = input();
6466
- this.value = model();
6584
+ this.field = input.required(...(ngDevMode ? [{ debugName: "field" }] : []));
6585
+ this.fieldError = input(...(ngDevMode ? [undefined, { debugName: "fieldError" }] : []));
6586
+ this.fieldConfig = input(new FieldConfig(), ...(ngDevMode ? [{ debugName: "fieldConfig" }] : []));
6587
+ this.form = model.required(...(ngDevMode ? [{ debugName: "form" }] : []));
6588
+ this.isValid = input(...(ngDevMode ? [undefined, { debugName: "isValid" }] : []));
6589
+ this.isValueAssigned = input(...(ngDevMode ? [undefined, { debugName: "isValueAssigned" }] : []));
6590
+ this.dataId = input(...(ngDevMode ? [undefined, { debugName: "dataId" }] : []));
6591
+ this.customOrgUnitRoots = input(...(ngDevMode ? [undefined, { debugName: "customOrgUnitRoots" }] : []));
6592
+ this.value = model(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
6467
6593
  this.value$ = toObservable(this.value);
6468
6594
  this.isValueAssigned$ = toObservable(this.isValueAssigned);
6469
6595
  this.fieldError$ = toObservable(this.fieldError);
6470
6596
  this.label = computed(() => {
6471
6597
  return !this.fieldConfig()?.hideLabel ? this.field().label : undefined;
6472
- });
6598
+ }, ...(ngDevMode ? [{ debugName: "label" }] : []));
6473
6599
  this.placeholder = computed(() => {
6474
6600
  return (this.field()?.placeholder || `Enter ${this.field()?.label || 'value'}`);
6475
- });
6601
+ }, ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
6476
6602
  this.InputField = this.#getInputField();
6477
6603
  this.update = new EventEmitter();
6478
6604
  this.immediateUpdate = new EventEmitter();
@@ -6698,10 +6824,10 @@ class BaseFormFieldComponent extends ReactWrapperModule {
6698
6824
  return false;
6699
6825
  }
6700
6826
  }
6701
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: BaseFormFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
6702
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.8", type: BaseFormFieldComponent, isStandalone: true, inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, fieldError: { classPropertyName: "fieldError", publicName: "fieldError", isSignal: true, isRequired: false, transformFunction: null }, fieldConfig: { classPropertyName: "fieldConfig", publicName: "fieldConfig", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: true, transformFunction: null }, isValid: { classPropertyName: "isValid", publicName: "isValid", isSignal: true, isRequired: false, transformFunction: null }, isValueAssigned: { classPropertyName: "isValueAssigned", publicName: "isValueAssigned", isSignal: true, isRequired: false, transformFunction: null }, dataId: { classPropertyName: "dataId", publicName: "dataId", isSignal: true, isRequired: false, transformFunction: null }, customOrgUnitRoots: { classPropertyName: "customOrgUnitRoots", publicName: "customOrgUnitRoots", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { form: "formChange", value: "valueChange", update: "update", immediateUpdate: "immediateUpdate" }, usesInheritance: true, ngImport: i0 }); }
6827
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BaseFormFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
6828
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.3", type: BaseFormFieldComponent, isStandalone: true, inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, fieldError: { classPropertyName: "fieldError", publicName: "fieldError", isSignal: true, isRequired: false, transformFunction: null }, fieldConfig: { classPropertyName: "fieldConfig", publicName: "fieldConfig", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: true, transformFunction: null }, isValid: { classPropertyName: "isValid", publicName: "isValid", isSignal: true, isRequired: false, transformFunction: null }, isValueAssigned: { classPropertyName: "isValueAssigned", publicName: "isValueAssigned", isSignal: true, isRequired: false, transformFunction: null }, dataId: { classPropertyName: "dataId", publicName: "dataId", isSignal: true, isRequired: false, transformFunction: null }, customOrgUnitRoots: { classPropertyName: "customOrgUnitRoots", publicName: "customOrgUnitRoots", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { form: "formChange", value: "valueChange", update: "update", immediateUpdate: "immediateUpdate" }, usesInheritance: true, ngImport: i0 }); }
6703
6829
  }
6704
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: BaseFormFieldComponent, decorators: [{
6830
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BaseFormFieldComponent, decorators: [{
6705
6831
  type: Directive
6706
6832
  }], propDecorators: { update: [{
6707
6833
  type: Output
@@ -6710,10 +6836,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
6710
6836
  }] } });
6711
6837
 
6712
6838
  class FormFieldItemComponent extends BaseFormFieldComponent {
6713
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: FormFieldItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
6714
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: FormFieldItemComponent, isStandalone: false, selector: "ng-dhis2-ui-form-field-item", usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
6839
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: FormFieldItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
6840
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: FormFieldItemComponent, isStandalone: false, selector: "ng-dhis2-ui-form-field-item", usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
6715
6841
  }
6716
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: FormFieldItemComponent, decorators: [{
6842
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: FormFieldItemComponent, decorators: [{
6717
6843
  type: Component,
6718
6844
  args: [{
6719
6845
  selector: 'ng-dhis2-ui-form-field-item',
@@ -6724,30 +6850,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
6724
6850
 
6725
6851
  class FormFieldComponent {
6726
6852
  constructor() {
6727
- this.field = input.required();
6728
- this.fieldConfig = input.required();
6729
- this.isCheckBoxButton = input();
6730
- this.fieldClass = input('');
6731
- this.programRuleActions = input([]);
6732
- this.dataEntities = input({});
6733
- this.minDate = input();
6734
- this.maxDate = input(new Date());
6735
- this.dataId = input();
6736
- this.customOrgUnitRoots = input();
6853
+ this.field = input.required(...(ngDevMode ? [{ debugName: "field" }] : []));
6854
+ this.fieldConfig = input.required(...(ngDevMode ? [{ debugName: "fieldConfig" }] : []));
6855
+ this.isCheckBoxButton = input(...(ngDevMode ? [undefined, { debugName: "isCheckBoxButton" }] : []));
6856
+ this.fieldClass = input('', ...(ngDevMode ? [{ debugName: "fieldClass" }] : []));
6857
+ this.programRuleActions = input([], ...(ngDevMode ? [{ debugName: "programRuleActions" }] : []));
6858
+ this.dataEntities = input({}, ...(ngDevMode ? [{ debugName: "dataEntities" }] : []));
6859
+ this.minDate = input(...(ngDevMode ? [undefined, { debugName: "minDate" }] : []));
6860
+ this.maxDate = input(new Date(), ...(ngDevMode ? [{ debugName: "maxDate" }] : []));
6861
+ this.dataId = input(...(ngDevMode ? [undefined, { debugName: "dataId" }] : []));
6862
+ this.customOrgUnitRoots = input(...(ngDevMode ? [undefined, { debugName: "customOrgUnitRoots" }] : []));
6737
6863
  this.color = 'primary';
6738
6864
  this.fieldUpdate = new EventEmitter();
6739
6865
  this.immediateFieldUpdate = new EventEmitter();
6740
6866
  this.runtimeOptionChange = new EventEmitter();
6741
- this.value = signal('');
6742
- this.runtimeError = signal(undefined);
6867
+ this.value = signal('', ...(ngDevMode ? [{ debugName: "value" }] : []));
6868
+ this.runtimeError = signal(undefined, ...(ngDevMode ? [{ debugName: "runtimeError" }] : []));
6743
6869
  this._runtimeOptions = [];
6744
6870
  this.runtimeOptions = [];
6745
6871
  this.fieldFilterControl = new FormControl();
6746
6872
  this._onDestroy = new Subject();
6747
- this.isValueAssigned = signal(false);
6873
+ this.isValueAssigned = signal(false, ...(ngDevMode ? [{ debugName: "isValueAssigned" }] : []));
6748
6874
  this.ruleProcessor = effect(() => {
6749
6875
  this.#processRules(this.programRuleActions());
6750
- });
6876
+ }, ...(ngDevMode ? [{ debugName: "ruleProcessor" }] : []));
6751
6877
  }
6752
6878
  ngOnChanges(changes) {
6753
6879
  if (changes && changes['dataEntities'] && this.field()?.dependentField) {
@@ -6911,10 +7037,10 @@ class FormFieldComponent {
6911
7037
  onUpdateRuntimeOptions(options) {
6912
7038
  this._runtimeOptions = [...options];
6913
7039
  }
6914
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6915
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.8", type: FormFieldComponent, isStandalone: false, selector: "ng-dhis2-ui-form-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, fieldConfig: { classPropertyName: "fieldConfig", publicName: "fieldConfig", isSignal: true, isRequired: true, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: false, isRequired: false, transformFunction: null }, isCheckBoxButton: { classPropertyName: "isCheckBoxButton", publicName: "isCheckBoxButton", isSignal: true, isRequired: false, transformFunction: null }, fieldClass: { classPropertyName: "fieldClass", publicName: "fieldClass", isSignal: true, isRequired: false, transformFunction: null }, programRuleActions: { classPropertyName: "programRuleActions", publicName: "programRuleActions", isSignal: true, isRequired: false, transformFunction: null }, dataEntities: { classPropertyName: "dataEntities", publicName: "dataEntities", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, dataId: { classPropertyName: "dataId", publicName: "dataId", isSignal: true, isRequired: false, transformFunction: null }, customOrgUnitRoots: { classPropertyName: "customOrgUnitRoots", publicName: "customOrgUnitRoots", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fieldUpdate: "fieldUpdate", immediateFieldUpdate: "immediateFieldUpdate", runtimeOptionChange: "runtimeOptionChange" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"field()\" class=\"form-field-item\">\n <ng-dhis2-ui-form-field-item\n [field]=\"field()\"\n [fieldError]=\"runtimeError()\"\n [isValueAssigned]=\"isValueAssigned()\"\n [fieldConfig]=\"fieldConfig()\"\n [(form)]=\"form\"\n [dataId]=\"dataId()\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n [value]=\"value()\"\n (update)=\"onValueChange()\"\n (immediateUpdate)=\"onImmediateChange($event)\"\n />\n</div>\n", styles: [".form-field-item{margin-bottom:16px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FormFieldItemComponent, selector: "ng-dhis2-ui-form-field-item" }] }); }
7040
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7041
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.3", type: FormFieldComponent, isStandalone: false, selector: "ng-dhis2-ui-form-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, fieldConfig: { classPropertyName: "fieldConfig", publicName: "fieldConfig", isSignal: true, isRequired: true, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: false, isRequired: false, transformFunction: null }, isCheckBoxButton: { classPropertyName: "isCheckBoxButton", publicName: "isCheckBoxButton", isSignal: true, isRequired: false, transformFunction: null }, fieldClass: { classPropertyName: "fieldClass", publicName: "fieldClass", isSignal: true, isRequired: false, transformFunction: null }, programRuleActions: { classPropertyName: "programRuleActions", publicName: "programRuleActions", isSignal: true, isRequired: false, transformFunction: null }, dataEntities: { classPropertyName: "dataEntities", publicName: "dataEntities", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, dataId: { classPropertyName: "dataId", publicName: "dataId", isSignal: true, isRequired: false, transformFunction: null }, customOrgUnitRoots: { classPropertyName: "customOrgUnitRoots", publicName: "customOrgUnitRoots", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fieldUpdate: "fieldUpdate", immediateFieldUpdate: "immediateFieldUpdate", runtimeOptionChange: "runtimeOptionChange" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"field()\" class=\"form-field-item\">\n <ng-dhis2-ui-form-field-item\n [field]=\"field()\"\n [fieldError]=\"runtimeError()\"\n [isValueAssigned]=\"isValueAssigned()\"\n [fieldConfig]=\"fieldConfig()\"\n [(form)]=\"form\"\n [dataId]=\"dataId()\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n [value]=\"value()\"\n (update)=\"onValueChange()\"\n (immediateUpdate)=\"onImmediateChange($event)\"\n />\n</div>\n", styles: [".form-field-item{margin-bottom:16px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FormFieldItemComponent, selector: "ng-dhis2-ui-form-field-item" }] }); }
6916
7042
  }
6917
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: FormFieldComponent, decorators: [{
7043
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: FormFieldComponent, decorators: [{
6918
7044
  type: Component,
6919
7045
  args: [{ selector: 'ng-dhis2-ui-form-field', standalone: false, template: "<div *ngIf=\"field()\" class=\"form-field-item\">\n <ng-dhis2-ui-form-field-item\n [field]=\"field()\"\n [fieldError]=\"runtimeError()\"\n [isValueAssigned]=\"isValueAssigned()\"\n [fieldConfig]=\"fieldConfig()\"\n [(form)]=\"form\"\n [dataId]=\"dataId()\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n [value]=\"value()\"\n (update)=\"onValueChange()\"\n (immediateUpdate)=\"onImmediateChange($event)\"\n />\n</div>\n", styles: [".form-field-item{margin-bottom:16px}\n"] }]
6920
7046
  }], ctorParameters: () => [], propDecorators: { form: [{
@@ -6964,18 +7090,18 @@ class FormComponent {
6964
7090
  return 'col-sm-4';
6965
7091
  }
6966
7092
  constructor() {
6967
- this.formConfig = input();
6968
- this.fields = input.required();
6969
- this.form = input.required();
6970
- this.isFormHorizontal = input(false);
6971
- this.showSaveButton = input(false);
6972
- this.fieldsData = input();
6973
- this.fieldClass = input('');
6974
- this.shouldRenderAsCheckBoxesButton = input(false);
6975
- this.programRuleActions = input([]);
6976
- this.dataEntities = input(undefined);
6977
- this.dataId = input();
6978
- this.customOrgUnitRoots = input();
7093
+ this.formConfig = input(...(ngDevMode ? [undefined, { debugName: "formConfig" }] : []));
7094
+ this.fields = input.required(...(ngDevMode ? [{ debugName: "fields" }] : []));
7095
+ this.form = input.required(...(ngDevMode ? [{ debugName: "form" }] : []));
7096
+ this.isFormHorizontal = input(false, ...(ngDevMode ? [{ debugName: "isFormHorizontal" }] : []));
7097
+ this.showSaveButton = input(false, ...(ngDevMode ? [{ debugName: "showSaveButton" }] : []));
7098
+ this.fieldsData = input(...(ngDevMode ? [undefined, { debugName: "fieldsData" }] : []));
7099
+ this.fieldClass = input('', ...(ngDevMode ? [{ debugName: "fieldClass" }] : []));
7100
+ this.shouldRenderAsCheckBoxesButton = input(false, ...(ngDevMode ? [{ debugName: "shouldRenderAsCheckBoxesButton" }] : []));
7101
+ this.programRuleActions = input([], ...(ngDevMode ? [{ debugName: "programRuleActions" }] : []));
7102
+ this.dataEntities = input(undefined, ...(ngDevMode ? [{ debugName: "dataEntities" }] : []));
7103
+ this.dataId = input(...(ngDevMode ? [undefined, { debugName: "dataId" }] : []));
7104
+ this.customOrgUnitRoots = input(...(ngDevMode ? [undefined, { debugName: "customOrgUnitRoots" }] : []));
6979
7105
  this.configuration = computed(() => {
6980
7106
  if (!this.formConfig()) {
6981
7107
  return new FormConfig({
@@ -6983,12 +7109,12 @@ class FormComponent {
6983
7109
  });
6984
7110
  }
6985
7111
  return this.formConfig();
6986
- });
7112
+ }, ...(ngDevMode ? [{ debugName: "configuration" }] : []));
6987
7113
  this.formUpdate = new EventEmitter();
6988
7114
  this.formValidityUpdate = new EventEmitter();
6989
7115
  this.ruleProcessor = effect(() => {
6990
7116
  this.#processRules(this.programRuleActions());
6991
- });
7117
+ }, ...(ngDevMode ? [{ debugName: "ruleProcessor" }] : []));
6992
7118
  }
6993
7119
  ngOnInit() {
6994
7120
  this.values = this.form().getRawValue();
@@ -7051,10 +7177,10 @@ class FormComponent {
7051
7177
  ngOnDestroy() {
7052
7178
  this.ruleProcessor.destroy();
7053
7179
  }
7054
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7055
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.8", type: FormComponent, isStandalone: false, selector: "ng-dhis2-ui-form", inputs: { formConfig: { classPropertyName: "formConfig", publicName: "formConfig", isSignal: true, isRequired: false, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: true, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: true, transformFunction: null }, isFormHorizontal: { classPropertyName: "isFormHorizontal", publicName: "isFormHorizontal", isSignal: true, isRequired: false, transformFunction: null }, showSaveButton: { classPropertyName: "showSaveButton", publicName: "showSaveButton", isSignal: true, isRequired: false, transformFunction: null }, fieldsData: { classPropertyName: "fieldsData", publicName: "fieldsData", isSignal: true, isRequired: false, transformFunction: null }, fieldClass: { classPropertyName: "fieldClass", publicName: "fieldClass", isSignal: true, isRequired: false, transformFunction: null }, shouldRenderAsCheckBoxesButton: { classPropertyName: "shouldRenderAsCheckBoxesButton", publicName: "shouldRenderAsCheckBoxesButton", isSignal: true, isRequired: false, transformFunction: null }, programRuleActions: { classPropertyName: "programRuleActions", publicName: "programRuleActions", isSignal: true, isRequired: false, transformFunction: null }, dataEntities: { classPropertyName: "dataEntities", publicName: "dataEntities", isSignal: true, isRequired: false, transformFunction: null }, dataId: { classPropertyName: "dataId", publicName: "dataId", isSignal: true, isRequired: false, transformFunction: null }, customOrgUnitRoots: { classPropertyName: "customOrgUnitRoots", publicName: "customOrgUnitRoots", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { formUpdate: "formUpdate", formValidityUpdate: "formValidityUpdate" }, viewQueries: [{ propertyName: "fieldComponents", predicate: FormFieldComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"form()\" class=\"{{ configuration().directionClassName }}\">\n <!-- form name -->\n <div class=\"form-name\">\n <h2>{{ configuration().formName }}</h2>\n </div>\n <div\n *ngFor=\"let field of sanitizedFields\"\n class=\"form-field-{{ configuration().direction }}\"\n >\n <ng-dhis2-ui-form-field\n [field]=\"field\"\n [fieldConfig]=\"configuration().fieldConfig\"\n [form]=\"form()\"\n [fieldClass]=\"fieldClass()\"\n [dataEntities]=\"dataEntities()\"\n [dataId]=\"dataId()\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n [programRuleActions]=\"programRuleActions()\"\n [isCheckBoxButton]=\"shouldRenderAsCheckBoxesButton()\"\n (fieldUpdate)=\"onFieldUpdate($event, field)\"\n (runtimeOptionChange)=\"onRunTimeOptionUpdate($event)\"\n />\n </div>\n</form>\n", styles: [".form-horizontal{display:flex;flex-wrap:wrap;gap:16px;width:100%}.hidden-field{display:none}.units-and-ranges span{margin-left:1%;font-weight:600}.for-warning{margin-left:8px}.form-field-vertical{margin-bottom:8px}.form-field-horizontal{flex:1;margin-bottom:8px;width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: FormFieldComponent, selector: "ng-dhis2-ui-form-field", inputs: ["field", "fieldConfig", "form", "isCheckBoxButton", "fieldClass", "programRuleActions", "dataEntities", "minDate", "maxDate", "dataId", "customOrgUnitRoots"], outputs: ["fieldUpdate", "immediateFieldUpdate", "runtimeOptionChange"] }] }); }
7180
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7181
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.3", type: FormComponent, isStandalone: false, selector: "ng-dhis2-ui-form", inputs: { formConfig: { classPropertyName: "formConfig", publicName: "formConfig", isSignal: true, isRequired: false, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: true, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: true, transformFunction: null }, isFormHorizontal: { classPropertyName: "isFormHorizontal", publicName: "isFormHorizontal", isSignal: true, isRequired: false, transformFunction: null }, showSaveButton: { classPropertyName: "showSaveButton", publicName: "showSaveButton", isSignal: true, isRequired: false, transformFunction: null }, fieldsData: { classPropertyName: "fieldsData", publicName: "fieldsData", isSignal: true, isRequired: false, transformFunction: null }, fieldClass: { classPropertyName: "fieldClass", publicName: "fieldClass", isSignal: true, isRequired: false, transformFunction: null }, shouldRenderAsCheckBoxesButton: { classPropertyName: "shouldRenderAsCheckBoxesButton", publicName: "shouldRenderAsCheckBoxesButton", isSignal: true, isRequired: false, transformFunction: null }, programRuleActions: { classPropertyName: "programRuleActions", publicName: "programRuleActions", isSignal: true, isRequired: false, transformFunction: null }, dataEntities: { classPropertyName: "dataEntities", publicName: "dataEntities", isSignal: true, isRequired: false, transformFunction: null }, dataId: { classPropertyName: "dataId", publicName: "dataId", isSignal: true, isRequired: false, transformFunction: null }, customOrgUnitRoots: { classPropertyName: "customOrgUnitRoots", publicName: "customOrgUnitRoots", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { formUpdate: "formUpdate", formValidityUpdate: "formValidityUpdate" }, viewQueries: [{ propertyName: "fieldComponents", predicate: FormFieldComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"form()\" class=\"{{ configuration().directionClassName }}\">\n <!-- form name -->\n <div class=\"form-name\">\n <h2>{{ configuration().formName }}</h2>\n </div>\n <div\n *ngFor=\"let field of sanitizedFields\"\n class=\"form-field-{{ configuration().direction }}\"\n >\n <ng-dhis2-ui-form-field\n [field]=\"field\"\n [fieldConfig]=\"configuration().fieldConfig\"\n [form]=\"form()\"\n [fieldClass]=\"fieldClass()\"\n [dataEntities]=\"dataEntities()\"\n [dataId]=\"dataId()\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n [programRuleActions]=\"programRuleActions()\"\n [isCheckBoxButton]=\"shouldRenderAsCheckBoxesButton()\"\n (fieldUpdate)=\"onFieldUpdate($event, field)\"\n (runtimeOptionChange)=\"onRunTimeOptionUpdate($event)\"\n />\n </div>\n</form>\n", styles: [".form-horizontal{display:flex;flex-wrap:wrap;gap:16px;width:100%}.hidden-field{display:none}.units-and-ranges span{margin-left:1%;font-weight:600}.for-warning{margin-left:8px}.form-field-vertical{margin-bottom:8px}.form-field-horizontal{flex:1;margin-bottom:8px;width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: FormFieldComponent, selector: "ng-dhis2-ui-form-field", inputs: ["field", "fieldConfig", "form", "isCheckBoxButton", "fieldClass", "programRuleActions", "dataEntities", "minDate", "maxDate", "dataId", "customOrgUnitRoots"], outputs: ["fieldUpdate", "immediateFieldUpdate", "runtimeOptionChange"] }] }); }
7056
7182
  }
7057
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: FormComponent, decorators: [{
7183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: FormComponent, decorators: [{
7058
7184
  type: Component,
7059
7185
  args: [{ selector: 'ng-dhis2-ui-form', standalone: false, template: "<form [formGroup]=\"form()\" class=\"{{ configuration().directionClassName }}\">\n <!-- form name -->\n <div class=\"form-name\">\n <h2>{{ configuration().formName }}</h2>\n </div>\n <div\n *ngFor=\"let field of sanitizedFields\"\n class=\"form-field-{{ configuration().direction }}\"\n >\n <ng-dhis2-ui-form-field\n [field]=\"field\"\n [fieldConfig]=\"configuration().fieldConfig\"\n [form]=\"form()\"\n [fieldClass]=\"fieldClass()\"\n [dataEntities]=\"dataEntities()\"\n [dataId]=\"dataId()\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n [programRuleActions]=\"programRuleActions()\"\n [isCheckBoxButton]=\"shouldRenderAsCheckBoxesButton()\"\n (fieldUpdate)=\"onFieldUpdate($event, field)\"\n (runtimeOptionChange)=\"onRunTimeOptionUpdate($event)\"\n />\n </div>\n</form>\n", styles: [".form-horizontal{display:flex;flex-wrap:wrap;gap:16px;width:100%}.hidden-field{display:none}.units-and-ranges span{margin-left:1%;font-weight:600}.for-warning{margin-left:8px}.form-field-vertical{margin-bottom:8px}.form-field-horizontal{flex:1;margin-bottom:8px;width:100%}\n"] }]
7060
7186
  }], ctorParameters: () => [], propDecorators: { formUpdate: [{
@@ -7072,15 +7198,15 @@ class RepeatableFormComponent {
7072
7198
  #events$;
7073
7199
  constructor() {
7074
7200
  this.ngZone = inject(NgZone);
7075
- this.fieldGroup = input.required();
7076
- this.events = model();
7077
- this.dataEntities = input.required();
7201
+ this.fieldGroup = input.required(...(ngDevMode ? [{ debugName: "fieldGroup" }] : []));
7202
+ this.events = model(...(ngDevMode ? [undefined, { debugName: "events" }] : []));
7203
+ this.dataEntities = input.required(...(ngDevMode ? [{ debugName: "dataEntities" }] : []));
7078
7204
  this.repeatableEvents = [];
7079
7205
  this.repeatableData = {};
7080
7206
  this.repeatableStageUpdate = new EventEmitter();
7081
- this.eventFormValue = signal(null);
7082
- this.showForm = signal(false);
7083
- this.eventIndex = signal(0);
7207
+ this.eventFormValue = signal(null, ...(ngDevMode ? [{ debugName: "eventFormValue" }] : []));
7208
+ this.showForm = signal(false, ...(ngDevMode ? [{ debugName: "showForm" }] : []));
7209
+ this.eventIndex = signal(0, ...(ngDevMode ? [{ debugName: "eventIndex" }] : []));
7084
7210
  this.#eventFormValue$ = toObservable(this.eventFormValue);
7085
7211
  this.#showForm$ = toObservable(this.showForm);
7086
7212
  this.#events$ = toObservable(this.events);
@@ -7115,10 +7241,10 @@ class RepeatableFormComponent {
7115
7241
  [this.eventIndex()]: formValue,
7116
7242
  };
7117
7243
  }
7118
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RepeatableFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7119
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RepeatableFormComponent, isStandalone: false, selector: "ng-dhis2-ui-repeatable-form", inputs: { formObject: { classPropertyName: "formObject", publicName: "formObject", isSignal: false, isRequired: false, transformFunction: null }, formData: { classPropertyName: "formData", publicName: "formData", isSignal: false, isRequired: false, transformFunction: null }, fieldGroup: { classPropertyName: "fieldGroup", publicName: "fieldGroup", isSignal: true, isRequired: true, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: false, isRequired: false, transformFunction: null }, numberOfRows: { classPropertyName: "numberOfRows", publicName: "numberOfRows", isSignal: false, isRequired: false, transformFunction: null }, programRuleActions: { classPropertyName: "programRuleActions", publicName: "programRuleActions", isSignal: false, isRequired: false, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, program: { classPropertyName: "program", publicName: "program", isSignal: false, isRequired: false, transformFunction: null }, programStage: { classPropertyName: "programStage", publicName: "programStage", isSignal: false, isRequired: false, transformFunction: null }, repeatDependentField: { classPropertyName: "repeatDependentField", publicName: "repeatDependentField", isSignal: false, isRequired: false, transformFunction: null }, dataEntities: { classPropertyName: "dataEntities", publicName: "dataEntities", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { events: "eventsChange", repeatableStageUpdate: "repeatableStageUpdate" }, ngImport: i0, template: "<div class=\"form__repeatable-stage-container\">\n <!-- <ng-dhis2-ui-wrapper [component]=\"EventTable()\"></ng-dhis2-ui-wrapper> -->\n @if(showForm()) {\n <div class=\"form__repeatable-stage-form\">\n <ng-dhis2-ui-form\n [fields]=\"fieldGroup().fields || []\"\n [form]=\"eventForm\"\n [programRuleActions]=\"programRuleActions\"\n [dataEntities]=\"{}\"\n [isFormHorizontal]=\"false\"\n (formUpdate)=\"onFormUpdate($event)\"\n >\n </ng-dhis2-ui-form>\n\n <!-- <ng-dhis2-ui-wrapper [component]=\"FormActionButtons\"></ng-dhis2-ui-wrapper> -->\n </div>\n }\n</div>\n", styles: [".form__repeatable-stage-container{margin-top:16px}.form__repeatable-stage-form{border:solid 1px rgb(232,237,242);border-top-style:none;background-color:#fff;padding:16px}\n"], dependencies: [{ kind: "component", type: FormComponent, selector: "ng-dhis2-ui-form", inputs: ["formConfig", "fields", "form", "isFormHorizontal", "showSaveButton", "fieldsData", "fieldClass", "shouldRenderAsCheckBoxesButton", "programRuleActions", "dataEntities", "dataId", "customOrgUnitRoots"], outputs: ["formUpdate", "formValidityUpdate"] }] }); }
7244
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RepeatableFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7245
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: RepeatableFormComponent, isStandalone: false, selector: "ng-dhis2-ui-repeatable-form", inputs: { formObject: { classPropertyName: "formObject", publicName: "formObject", isSignal: false, isRequired: false, transformFunction: null }, formData: { classPropertyName: "formData", publicName: "formData", isSignal: false, isRequired: false, transformFunction: null }, fieldGroup: { classPropertyName: "fieldGroup", publicName: "fieldGroup", isSignal: true, isRequired: true, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: false, isRequired: false, transformFunction: null }, numberOfRows: { classPropertyName: "numberOfRows", publicName: "numberOfRows", isSignal: false, isRequired: false, transformFunction: null }, programRuleActions: { classPropertyName: "programRuleActions", publicName: "programRuleActions", isSignal: false, isRequired: false, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, program: { classPropertyName: "program", publicName: "program", isSignal: false, isRequired: false, transformFunction: null }, programStage: { classPropertyName: "programStage", publicName: "programStage", isSignal: false, isRequired: false, transformFunction: null }, repeatDependentField: { classPropertyName: "repeatDependentField", publicName: "repeatDependentField", isSignal: false, isRequired: false, transformFunction: null }, dataEntities: { classPropertyName: "dataEntities", publicName: "dataEntities", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { events: "eventsChange", repeatableStageUpdate: "repeatableStageUpdate" }, ngImport: i0, template: "<div class=\"form__repeatable-stage-container\">\n <!-- <ng-dhis2-ui-wrapper [component]=\"EventTable()\"></ng-dhis2-ui-wrapper> -->\n @if(showForm()) {\n <div class=\"form__repeatable-stage-form\">\n <ng-dhis2-ui-form\n [fields]=\"fieldGroup().fields || []\"\n [form]=\"eventForm\"\n [programRuleActions]=\"programRuleActions\"\n [dataEntities]=\"{}\"\n [isFormHorizontal]=\"false\"\n (formUpdate)=\"onFormUpdate($event)\"\n >\n </ng-dhis2-ui-form>\n\n <!-- <ng-dhis2-ui-wrapper [component]=\"FormActionButtons\"></ng-dhis2-ui-wrapper> -->\n </div>\n }\n</div>\n", styles: [".form__repeatable-stage-container{margin-top:16px}.form__repeatable-stage-form{border:solid 1px rgb(232,237,242);border-top-style:none;background-color:#fff;padding:16px}\n"], dependencies: [{ kind: "component", type: FormComponent, selector: "ng-dhis2-ui-form", inputs: ["formConfig", "fields", "form", "isFormHorizontal", "showSaveButton", "fieldsData", "fieldClass", "shouldRenderAsCheckBoxesButton", "programRuleActions", "dataEntities", "dataId", "customOrgUnitRoots"], outputs: ["formUpdate", "formValidityUpdate"] }] }); }
7120
7246
  }
7121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RepeatableFormComponent, decorators: [{
7247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RepeatableFormComponent, decorators: [{
7122
7248
  type: Component,
7123
7249
  args: [{ selector: 'ng-dhis2-ui-repeatable-form', standalone: false, template: "<div class=\"form__repeatable-stage-container\">\n <!-- <ng-dhis2-ui-wrapper [component]=\"EventTable()\"></ng-dhis2-ui-wrapper> -->\n @if(showForm()) {\n <div class=\"form__repeatable-stage-form\">\n <ng-dhis2-ui-form\n [fields]=\"fieldGroup().fields || []\"\n [form]=\"eventForm\"\n [programRuleActions]=\"programRuleActions\"\n [dataEntities]=\"{}\"\n [isFormHorizontal]=\"false\"\n (formUpdate)=\"onFormUpdate($event)\"\n >\n </ng-dhis2-ui-form>\n\n <!-- <ng-dhis2-ui-wrapper [component]=\"FormActionButtons\"></ng-dhis2-ui-wrapper> -->\n </div>\n }\n</div>\n", styles: [".form__repeatable-stage-container{margin-top:16px}.form__repeatable-stage-form{border:solid 1px rgb(232,237,242);border-top-style:none;background-color:#fff;padding:16px}\n"] }]
7124
7250
  }], ctorParameters: () => [], propDecorators: { formObject: [{
@@ -7145,18 +7271,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
7145
7271
  class SectionFormComponent {
7146
7272
  constructor() {
7147
7273
  this.ngZone = inject(NgZone);
7148
- this.loading = input();
7149
- this.formMetaData = input.required();
7150
- this.dataValueEntities = input.required();
7274
+ this.loading = input(...(ngDevMode ? [undefined, { debugName: "loading" }] : []));
7275
+ this.formMetaData = input.required(...(ngDevMode ? [{ debugName: "formMetaData" }] : []));
7276
+ this.dataValueEntities = input.required(...(ngDevMode ? [{ debugName: "dataValueEntities" }] : []));
7151
7277
  this.formGroups = {};
7152
7278
  this.formValueEntity = {};
7153
7279
  this.repeatableFormValueEntity = {};
7154
- this.ruleActions = signal([]);
7280
+ this.ruleActions = signal([], ...(ngDevMode ? [{ debugName: "ruleActions" }] : []));
7155
7281
  this.save = new EventEmitter();
7156
7282
  this.formUpdate = new EventEmitter();
7157
7283
  this.cancel = new EventEmitter();
7158
7284
  this.formValidityUpdate = new EventEmitter();
7159
- this.inValid = signal(true);
7285
+ this.inValid = signal(true, ...(ngDevMode ? [{ debugName: "inValid" }] : []));
7160
7286
  this.inValid$ = toObservable(this.inValid);
7161
7287
  }
7162
7288
  ngOnInit() {
@@ -7243,10 +7369,10 @@ class SectionFormComponent {
7243
7369
  .some((validity) => !validity);
7244
7370
  return valueValidity || repeatableDataValidity;
7245
7371
  }
7246
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SectionFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7247
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: SectionFormComponent, isStandalone: false, selector: "ng-dhis2-ui-section-form", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, formMetaData: { classPropertyName: "formMetaData", publicName: "formMetaData", isSignal: true, isRequired: true, transformFunction: null }, dataValueEntities: { classPropertyName: "dataValueEntities", publicName: "dataValueEntities", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { save: "save", formUpdate: "formUpdate", cancel: "cancel", formValidityUpdate: "formValidityUpdate" }, ngImport: i0, template: "<ng-container *ngIf=\"formMetaData()\">\n <ng-container *ngFor=\"let formSection of formMetaData().sections\">\n @if(formSection?.name; as sectionName) {\n <div class=\"form__section-name\">\n {{ sectionName }}\n </div>\n }\n <div class=\"form__section-content\">\n <ng-container *ngIf=\"formSection\">\n <div *ngFor=\"let fieldGroup of formSection?.fieldGroups\">\n <ng-container *ngIf=\"formGroups[fieldGroup.id] as formGroup\">\n <div\n *ngIf=\"fieldGroup.name && !fieldGroup.repeatableStage\"\n class=\"form__field-group-name\"\n >\n {{ fieldGroup?.name }}\n </div>\n <div *ngIf=\"fieldGroup.fields\">\n <!-- Single stage form section -->\n <ng-container *ngIf=\"!fieldGroup.repeatableStage\">\n <ng-dhis2-ui-form\n *ngIf=\"fieldGroup.fields.length > 0\"\n [fields]=\"fieldGroup.fields\"\n [form]=\"formGroup\"\n [dataEntities]=\"dataValueEntities()\"\n [programRuleActions]=\"ruleActions()\"\n [isFormHorizontal]=\"fieldGroup.isFormHorizontal || false\"\n (formUpdate)=\"onFormUpdate($event, fieldGroup.id)\"\n ></ng-dhis2-ui-form>\n </ng-container>\n\n <!-- Repeatable stage form section -->\n <ng-container *ngIf=\"fieldGroup.repeatableStage\">\n @if(fieldGroup.repeatDependentField) {\n\n <ng-container *ngIf=\"fieldGroup.repeatDependentField\">\n <ng-container\n *ngIf=\"{\n numberOfRows:\n dataValueEntities()[fieldGroup.repeatDependentField]\n } as dataParams\"\n >\n <ng-dhis2-ui-repeatable-form\n *ngIf=\"\n dataParams.numberOfRows &&\n dataParams.numberOfRows !== '0'\n \"\n [fieldGroup]=\"fieldGroup\"\n [dataEntities]=\"dataValueEntities()\"\n [form]=\"formGroup\"\n [program]=\"formSection.program || ''\"\n [programStage]=\"fieldGroup.repeatableStage\"\n [programRuleActions]=\"ruleActions()\"\n [numberOfRows]=\"+dataParams.numberOfRows\"\n [repeatDependentField]=\"\n fieldGroup.repeatDependentField || ''\n \"\n [events]=\"dataValueEntities()[fieldGroup.dataKey!]\"\n (repeatableStageUpdate)=\"\n onUpdateRepeatableStage($event, fieldGroup)\n \"\n ></ng-dhis2-ui-repeatable-form\n ></ng-container>\n </ng-container>\n } @else {\n <ng-dhis2-ui-repeatable-form\n [fieldGroup]=\"fieldGroup\"\n [dataEntities]=\"dataValueEntities()\"\n [form]=\"formGroup\"\n [program]=\"formSection.program || ''\"\n [programStage]=\"fieldGroup.repeatableStage\"\n [programRuleActions]=\"ruleActions()\"\n [numberOfRows]=\"1\"\n [repeatDependentField]=\"fieldGroup.repeatDependentField || ''\"\n [events]=\"dataValueEntities()[fieldGroup.dataKey!]\"\n (repeatableStageUpdate)=\"\n onUpdateRepeatableStage($event, fieldGroup)\n \"\n ></ng-dhis2-ui-repeatable-form>\n }\n </ng-container>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n", styles: [".form__section-name{font-size:16px;font-weight:600;margin-bottom:16px}.form__section-content{margin-bottom:24px}.form__field-group-name{font-size:14px;font-weight:500;padding-bottom:8px;border-bottom:solid 1px rgb(232,237,242);margin-bottom:16px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FormComponent, selector: "ng-dhis2-ui-form", inputs: ["formConfig", "fields", "form", "isFormHorizontal", "showSaveButton", "fieldsData", "fieldClass", "shouldRenderAsCheckBoxesButton", "programRuleActions", "dataEntities", "dataId", "customOrgUnitRoots"], outputs: ["formUpdate", "formValidityUpdate"] }, { kind: "component", type: RepeatableFormComponent, selector: "ng-dhis2-ui-repeatable-form", inputs: ["formObject", "formData", "fieldGroup", "form", "numberOfRows", "programRuleActions", "events", "program", "programStage", "repeatDependentField", "dataEntities"], outputs: ["eventsChange", "repeatableStageUpdate"] }] }); }
7372
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SectionFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7373
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: SectionFormComponent, isStandalone: false, selector: "ng-dhis2-ui-section-form", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, formMetaData: { classPropertyName: "formMetaData", publicName: "formMetaData", isSignal: true, isRequired: true, transformFunction: null }, dataValueEntities: { classPropertyName: "dataValueEntities", publicName: "dataValueEntities", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { save: "save", formUpdate: "formUpdate", cancel: "cancel", formValidityUpdate: "formValidityUpdate" }, ngImport: i0, template: "<ng-container *ngIf=\"formMetaData()\">\n <ng-container *ngFor=\"let formSection of formMetaData().sections\">\n @if(formSection?.name; as sectionName) {\n <div class=\"form__section-name\">\n {{ sectionName }}\n </div>\n }\n <div class=\"form__section-content\">\n <ng-container *ngIf=\"formSection\">\n <div *ngFor=\"let fieldGroup of formSection?.fieldGroups\">\n <ng-container *ngIf=\"formGroups[fieldGroup.id] as formGroup\">\n <div\n *ngIf=\"fieldGroup.name && !fieldGroup.repeatableStage\"\n class=\"form__field-group-name\"\n >\n {{ fieldGroup?.name }}\n </div>\n <div *ngIf=\"fieldGroup.fields\">\n <!-- Single stage form section -->\n <ng-container *ngIf=\"!fieldGroup.repeatableStage\">\n <ng-dhis2-ui-form\n *ngIf=\"fieldGroup.fields.length > 0\"\n [fields]=\"fieldGroup.fields\"\n [form]=\"formGroup\"\n [dataEntities]=\"dataValueEntities()\"\n [programRuleActions]=\"ruleActions()\"\n [isFormHorizontal]=\"fieldGroup.isFormHorizontal || false\"\n (formUpdate)=\"onFormUpdate($event, fieldGroup.id)\"\n ></ng-dhis2-ui-form>\n </ng-container>\n\n <!-- Repeatable stage form section -->\n <ng-container *ngIf=\"fieldGroup.repeatableStage\">\n @if(fieldGroup.repeatDependentField) {\n\n <ng-container *ngIf=\"fieldGroup.repeatDependentField\">\n <ng-container\n *ngIf=\"{\n numberOfRows:\n dataValueEntities()[fieldGroup.repeatDependentField]\n } as dataParams\"\n >\n <ng-dhis2-ui-repeatable-form\n *ngIf=\"\n dataParams.numberOfRows &&\n dataParams.numberOfRows !== '0'\n \"\n [fieldGroup]=\"fieldGroup\"\n [dataEntities]=\"dataValueEntities()\"\n [form]=\"formGroup\"\n [program]=\"formSection.program || ''\"\n [programStage]=\"fieldGroup.repeatableStage\"\n [programRuleActions]=\"ruleActions()\"\n [numberOfRows]=\"+dataParams.numberOfRows\"\n [repeatDependentField]=\"\n fieldGroup.repeatDependentField || ''\n \"\n [events]=\"dataValueEntities()[fieldGroup.dataKey!]\"\n (repeatableStageUpdate)=\"\n onUpdateRepeatableStage($event, fieldGroup)\n \"\n ></ng-dhis2-ui-repeatable-form\n ></ng-container>\n </ng-container>\n } @else {\n <ng-dhis2-ui-repeatable-form\n [fieldGroup]=\"fieldGroup\"\n [dataEntities]=\"dataValueEntities()\"\n [form]=\"formGroup\"\n [program]=\"formSection.program || ''\"\n [programStage]=\"fieldGroup.repeatableStage\"\n [programRuleActions]=\"ruleActions()\"\n [numberOfRows]=\"1\"\n [repeatDependentField]=\"fieldGroup.repeatDependentField || ''\"\n [events]=\"dataValueEntities()[fieldGroup.dataKey!]\"\n (repeatableStageUpdate)=\"\n onUpdateRepeatableStage($event, fieldGroup)\n \"\n ></ng-dhis2-ui-repeatable-form>\n }\n </ng-container>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n", styles: [".form__section-name{font-size:16px;font-weight:600;margin-bottom:16px}.form__section-content{margin-bottom:24px}.form__field-group-name{font-size:14px;font-weight:500;padding-bottom:8px;border-bottom:solid 1px rgb(232,237,242);margin-bottom:16px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FormComponent, selector: "ng-dhis2-ui-form", inputs: ["formConfig", "fields", "form", "isFormHorizontal", "showSaveButton", "fieldsData", "fieldClass", "shouldRenderAsCheckBoxesButton", "programRuleActions", "dataEntities", "dataId", "customOrgUnitRoots"], outputs: ["formUpdate", "formValidityUpdate"] }, { kind: "component", type: RepeatableFormComponent, selector: "ng-dhis2-ui-repeatable-form", inputs: ["formObject", "formData", "fieldGroup", "form", "numberOfRows", "programRuleActions", "events", "program", "programStage", "repeatDependentField", "dataEntities"], outputs: ["eventsChange", "repeatableStageUpdate"] }] }); }
7248
7374
  }
7249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SectionFormComponent, decorators: [{
7375
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SectionFormComponent, decorators: [{
7250
7376
  type: Component,
7251
7377
  args: [{ selector: 'ng-dhis2-ui-section-form', standalone: false, template: "<ng-container *ngIf=\"formMetaData()\">\n <ng-container *ngFor=\"let formSection of formMetaData().sections\">\n @if(formSection?.name; as sectionName) {\n <div class=\"form__section-name\">\n {{ sectionName }}\n </div>\n }\n <div class=\"form__section-content\">\n <ng-container *ngIf=\"formSection\">\n <div *ngFor=\"let fieldGroup of formSection?.fieldGroups\">\n <ng-container *ngIf=\"formGroups[fieldGroup.id] as formGroup\">\n <div\n *ngIf=\"fieldGroup.name && !fieldGroup.repeatableStage\"\n class=\"form__field-group-name\"\n >\n {{ fieldGroup?.name }}\n </div>\n <div *ngIf=\"fieldGroup.fields\">\n <!-- Single stage form section -->\n <ng-container *ngIf=\"!fieldGroup.repeatableStage\">\n <ng-dhis2-ui-form\n *ngIf=\"fieldGroup.fields.length > 0\"\n [fields]=\"fieldGroup.fields\"\n [form]=\"formGroup\"\n [dataEntities]=\"dataValueEntities()\"\n [programRuleActions]=\"ruleActions()\"\n [isFormHorizontal]=\"fieldGroup.isFormHorizontal || false\"\n (formUpdate)=\"onFormUpdate($event, fieldGroup.id)\"\n ></ng-dhis2-ui-form>\n </ng-container>\n\n <!-- Repeatable stage form section -->\n <ng-container *ngIf=\"fieldGroup.repeatableStage\">\n @if(fieldGroup.repeatDependentField) {\n\n <ng-container *ngIf=\"fieldGroup.repeatDependentField\">\n <ng-container\n *ngIf=\"{\n numberOfRows:\n dataValueEntities()[fieldGroup.repeatDependentField]\n } as dataParams\"\n >\n <ng-dhis2-ui-repeatable-form\n *ngIf=\"\n dataParams.numberOfRows &&\n dataParams.numberOfRows !== '0'\n \"\n [fieldGroup]=\"fieldGroup\"\n [dataEntities]=\"dataValueEntities()\"\n [form]=\"formGroup\"\n [program]=\"formSection.program || ''\"\n [programStage]=\"fieldGroup.repeatableStage\"\n [programRuleActions]=\"ruleActions()\"\n [numberOfRows]=\"+dataParams.numberOfRows\"\n [repeatDependentField]=\"\n fieldGroup.repeatDependentField || ''\n \"\n [events]=\"dataValueEntities()[fieldGroup.dataKey!]\"\n (repeatableStageUpdate)=\"\n onUpdateRepeatableStage($event, fieldGroup)\n \"\n ></ng-dhis2-ui-repeatable-form\n ></ng-container>\n </ng-container>\n } @else {\n <ng-dhis2-ui-repeatable-form\n [fieldGroup]=\"fieldGroup\"\n [dataEntities]=\"dataValueEntities()\"\n [form]=\"formGroup\"\n [program]=\"formSection.program || ''\"\n [programStage]=\"fieldGroup.repeatableStage\"\n [programRuleActions]=\"ruleActions()\"\n [numberOfRows]=\"1\"\n [repeatDependentField]=\"fieldGroup.repeatDependentField || ''\"\n [events]=\"dataValueEntities()[fieldGroup.dataKey!]\"\n (repeatableStageUpdate)=\"\n onUpdateRepeatableStage($event, fieldGroup)\n \"\n ></ng-dhis2-ui-repeatable-form>\n }\n </ng-container>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n", styles: [".form__section-name{font-size:16px;font-weight:600;margin-bottom:16px}.form__section-content{margin-bottom:24px}.form__field-group-name{font-size:14px;font-weight:500;padding-bottom:8px;border-bottom:solid 1px rgb(232,237,242);margin-bottom:16px}\n"] }]
7252
7378
  }], ctorParameters: () => [], propDecorators: { save: [{
@@ -7266,15 +7392,15 @@ class BaseFormWrapperComponent {
7266
7392
  #updatedDataValues;
7267
7393
  constructor() {
7268
7394
  this.ngZone = inject(NgZone);
7269
- this.name = input();
7270
- this.fields = input.required();
7271
- this.rules = input([]);
7272
- this.dataValues = input({});
7273
- this.dataId = input();
7274
- this.customOrgUnitRoots = input();
7275
- this.ruleActions = signal([]);
7276
- this.isFormValid = signal(true);
7277
- this.#updatedDataValues = signal({});
7395
+ this.name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : []));
7396
+ this.fields = input.required(...(ngDevMode ? [{ debugName: "fields" }] : []));
7397
+ this.rules = input([], ...(ngDevMode ? [{ debugName: "rules" }] : []));
7398
+ this.dataValues = input({}, ...(ngDevMode ? [{ debugName: "dataValues" }] : []));
7399
+ this.dataId = input(...(ngDevMode ? [undefined, { debugName: "dataId" }] : []));
7400
+ this.customOrgUnitRoots = input(...(ngDevMode ? [undefined, { debugName: "customOrgUnitRoots" }] : []));
7401
+ this.ruleActions = signal([], ...(ngDevMode ? [{ debugName: "ruleActions" }] : []));
7402
+ this.isFormValid = signal(true, ...(ngDevMode ? [{ debugName: "isFormValid" }] : []));
7403
+ this.#updatedDataValues = signal({}, ...(ngDevMode ? [{ debugName: "#updatedDataValues" }] : []));
7278
7404
  this.formSave = new EventEmitter();
7279
7405
  this.formUpdate = new EventEmitter();
7280
7406
  this.formCancel = new EventEmitter();
@@ -7283,7 +7409,7 @@ class BaseFormWrapperComponent {
7283
7409
  if (this.#updatedDataValues()) {
7284
7410
  this.executeRules();
7285
7411
  }
7286
- });
7412
+ }, ...(ngDevMode ? [{ debugName: "ruleProcessor" }] : []));
7287
7413
  }
7288
7414
  updateDataValues(dataValues) {
7289
7415
  this.#updatedDataValues.set(dataValues);
@@ -7302,10 +7428,10 @@ class BaseFormWrapperComponent {
7302
7428
  ngOnDestroy() {
7303
7429
  this.ruleProcessor.destroy();
7304
7430
  }
7305
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: BaseFormWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
7306
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.8", type: BaseFormWrapperComponent, isStandalone: true, inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: true, transformFunction: null }, rules: { classPropertyName: "rules", publicName: "rules", isSignal: true, isRequired: false, transformFunction: null }, dataValues: { classPropertyName: "dataValues", publicName: "dataValues", isSignal: true, isRequired: false, transformFunction: null }, dataId: { classPropertyName: "dataId", publicName: "dataId", isSignal: true, isRequired: false, transformFunction: null }, customOrgUnitRoots: { classPropertyName: "customOrgUnitRoots", publicName: "customOrgUnitRoots", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { formSave: "formSave", formUpdate: "formUpdate", formCancel: "formCancel", formValidityUpdate: "formValidityUpdate" }, ngImport: i0 }); }
7431
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BaseFormWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
7432
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.3", type: BaseFormWrapperComponent, isStandalone: true, inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: true, transformFunction: null }, rules: { classPropertyName: "rules", publicName: "rules", isSignal: true, isRequired: false, transformFunction: null }, dataValues: { classPropertyName: "dataValues", publicName: "dataValues", isSignal: true, isRequired: false, transformFunction: null }, dataId: { classPropertyName: "dataId", publicName: "dataId", isSignal: true, isRequired: false, transformFunction: null }, customOrgUnitRoots: { classPropertyName: "customOrgUnitRoots", publicName: "customOrgUnitRoots", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { formSave: "formSave", formUpdate: "formUpdate", formCancel: "formCancel", formValidityUpdate: "formValidityUpdate" }, ngImport: i0 }); }
7307
7433
  }
7308
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: BaseFormWrapperComponent, decorators: [{
7434
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: BaseFormWrapperComponent, decorators: [{
7309
7435
  type: Directive
7310
7436
  }], ctorParameters: () => [], propDecorators: { formSave: [{
7311
7437
  type: Output
@@ -7334,17 +7460,17 @@ class FlatFormComponent extends BaseFormWrapperComponent {
7334
7460
  this.updateDataValues(this.formGroup.getRawValue());
7335
7461
  this.updateFormValidity(this.formGroup.valid);
7336
7462
  }
7337
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: FlatFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
7338
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: FlatFormComponent, isStandalone: false, selector: "ng-dhis2-ui-flat-form", usesInheritance: true, ngImport: i0, template: "<ng-dhis2-ui-form\n [fields]=\"fields()\"\n [form]=\"formGroup\"\n [dataEntities]=\"dataValues()\"\n [dataId]=\"dataId()\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n [programRuleActions]=\"ruleActions()\"\n (formUpdate)=\"onFormUpdate()\"\n/>\n", dependencies: [{ kind: "component", type: FormComponent, selector: "ng-dhis2-ui-form", inputs: ["formConfig", "fields", "form", "isFormHorizontal", "showSaveButton", "fieldsData", "fieldClass", "shouldRenderAsCheckBoxesButton", "programRuleActions", "dataEntities", "dataId", "customOrgUnitRoots"], outputs: ["formUpdate", "formValidityUpdate"] }] }); }
7463
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: FlatFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
7464
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: FlatFormComponent, isStandalone: false, selector: "ng-dhis2-ui-flat-form", usesInheritance: true, ngImport: i0, template: "<ng-dhis2-ui-form\n [fields]=\"fields()\"\n [form]=\"formGroup\"\n [dataEntities]=\"dataValues()\"\n [dataId]=\"dataId()\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n [programRuleActions]=\"ruleActions()\"\n (formUpdate)=\"onFormUpdate()\"\n/>\n", dependencies: [{ kind: "component", type: FormComponent, selector: "ng-dhis2-ui-form", inputs: ["formConfig", "fields", "form", "isFormHorizontal", "showSaveButton", "fieldsData", "fieldClass", "shouldRenderAsCheckBoxesButton", "programRuleActions", "dataEntities", "dataId", "customOrgUnitRoots"], outputs: ["formUpdate", "formValidityUpdate"] }] }); }
7339
7465
  }
7340
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: FlatFormComponent, decorators: [{
7466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: FlatFormComponent, decorators: [{
7341
7467
  type: Component,
7342
7468
  args: [{ selector: 'ng-dhis2-ui-flat-form', standalone: false, template: "<ng-dhis2-ui-form\n [fields]=\"fields()\"\n [form]=\"formGroup\"\n [dataEntities]=\"dataValues()\"\n [dataId]=\"dataId()\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n [programRuleActions]=\"ruleActions()\"\n (formUpdate)=\"onFormUpdate()\"\n/>\n" }]
7343
7469
  }] });
7344
7470
 
7345
7471
  class D2FormModule {
7346
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: D2FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7347
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: D2FormModule, declarations: [FormFieldComponent,
7472
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: D2FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7473
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: D2FormModule, declarations: [FormFieldComponent,
7348
7474
  FormComponent,
7349
7475
  RepeatableFormComponent,
7350
7476
  SectionFormComponent,
@@ -7357,11 +7483,11 @@ class D2FormModule {
7357
7483
  RepeatableFormComponent,
7358
7484
  SectionFormComponent,
7359
7485
  FlatFormComponent] }); }
7360
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: D2FormModule, imports: [CommonModule,
7486
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: D2FormModule, imports: [CommonModule,
7361
7487
  ReactiveFormsModule,
7362
7488
  OrganisationUnitSelectorModule] }); }
7363
7489
  }
7364
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: D2FormModule, decorators: [{
7490
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: D2FormModule, decorators: [{
7365
7491
  type: NgModule,
7366
7492
  args: [{
7367
7493
  declarations: [
@@ -7431,22 +7557,38 @@ class SelectionFiltersComponent extends ReactWrapperModule {
7431
7557
  subscription.unsubscribe(); // Cleanup to avoid memory leaks
7432
7558
  };
7433
7559
  }, []);
7434
- return config ? (React__default.createElement(Provider, { config: config, plugin: false, parentAlertsAdd: undefined, showAlertsInPlugin: false }, React__default.createElement(Modal$1, { position: "middle", large: true },
7435
- React__default.createElement(ModalTitle$1, null, "Organisation unit"),
7436
- React__default.createElement(ModalContent$1, null,
7437
- React__default.createElement(OrgUnitDimension, { selected: selected, hideGroupSelect: this.orgUnitSelectionConfig.hideGroupSelect, hideLevelSelect: this.orgUnitSelectionConfig.hideLevelSelect, hideUserOrgUnits: this.orgUnitSelectionConfig.hideUserOrgUnits, onSelect: (selectionEvent) => {
7560
+ return config
7561
+ ? React__default.createElement(Provider, {
7562
+ config: config,
7563
+ plugin: false,
7564
+ parentAlertsAdd: undefined,
7565
+ showAlertsInPlugin: false,
7566
+ children: React__default.createElement(Modal$1, { position: 'middle', large: true }, React__default.createElement(ModalTitle$1, null, 'Organisation unit'), React__default.createElement(ModalContent$1, null, React__default.createElement(OrgUnitDimension, {
7567
+ selected: selected,
7568
+ hideGroupSelect: this.orgUnitSelectionConfig.hideGroupSelect,
7569
+ hideLevelSelect: this.orgUnitSelectionConfig.hideLevelSelect,
7570
+ hideUserOrgUnits: this.orgUnitSelectionConfig.hideUserOrgUnits,
7571
+ onSelect: (selectionEvent) => {
7438
7572
  setSelected(selectionEvent.items);
7439
- }, orgUnitGroupPromise: this.getOrgUnitGroups(), orgUnitLevelPromise: this.getOrgUnitLevels(), roots: rootOrgUnits })),
7440
- React__default.createElement(ModalActions$1, null,
7441
- React__default.createElement(ButtonStrip$1, { end: true },
7442
- React__default.createElement(Button$1, { onClick: () => {
7443
- onCancelOrgUnit();
7444
- } }, "Cancel"),
7445
- React__default.createElement(Button$1, { primary: true, disabled: selected.length === 0, onClick: () => {
7446
- onSelectOrgUnit(selected);
7447
- } }, "Confirm")))))) : (React__default.createElement(CircularLoader$1, { small: true }));
7573
+ },
7574
+ orgUnitGroupPromise: this.getOrgUnitGroups(),
7575
+ orgUnitLevelPromise: this.getOrgUnitLevels(),
7576
+ roots: rootOrgUnits,
7577
+ })), React__default.createElement(ModalActions$1, null, React__default.createElement(ButtonStrip$1, { end: true }, React__default.createElement(Button$1, {
7578
+ onClick: () => {
7579
+ onCancelOrgUnit();
7580
+ },
7581
+ }, 'Cancel'), React__default.createElement(Button$1, {
7582
+ primary: true,
7583
+ disabled: selected.length === 0,
7584
+ onClick: () => {
7585
+ onSelectOrgUnit(selected);
7586
+ },
7587
+ }, 'Confirm')))),
7588
+ })
7589
+ : React__default.createElement(CircularLoader$1, { small: true });
7448
7590
  };
7449
- this.showOrgUnitTree = signal(false);
7591
+ this.showOrgUnitTree = signal(false, ...(ngDevMode ? [{ debugName: "showOrgUnitTree" }] : []));
7450
7592
  this.orgUnitSelectionConfig = {
7451
7593
  hideGroupSelect: true,
7452
7594
  hideLevelSelect: true,
@@ -7454,7 +7596,7 @@ class SelectionFiltersComponent extends ReactWrapperModule {
7454
7596
  allowSingleSelection: true,
7455
7597
  usageType: 'DATA_ENTRY',
7456
7598
  };
7457
- this.selectedOrgUnit = signal(null);
7599
+ this.selectedOrgUnit = signal(null, ...(ngDevMode ? [{ debugName: "selectedOrgUnit" }] : []));
7458
7600
  this.selectedOrgUnit$ = toObservable(this.selectedOrgUnit);
7459
7601
  this.SelectionFiltersUI = () => {
7460
7602
  const [filters, setFilters] = useState({
@@ -7582,66 +7724,144 @@ class SelectionFiltersComponent extends ReactWrapperModule {
7582
7724
  }
7583
7725
  return 'span 1';
7584
7726
  };
7585
- return (React__default.createElement("div", { style: {
7727
+ return React__default.createElement('div', {
7728
+ style: {
7586
7729
  fontFamily: 'Arial, sans-serif',
7587
7730
  padding: '20px',
7588
7731
  backgroundColor: '#f9f9f9',
7589
7732
  borderRadius: '8px',
7590
7733
  boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)',
7591
- } },
7592
- React__default.createElement("div", { style: {
7734
+ },
7735
+ }, React__default.createElement('div', {
7736
+ style: {
7737
+ display: 'grid',
7738
+ gridTemplateColumns: '1fr 1fr 1fr auto', // Ensure proper button sizing
7739
+ gap: '16px',
7740
+ alignItems: 'center', // Align inputs and button on the same row
7741
+ marginBottom: '16px',
7742
+ },
7743
+ },
7744
+ /* Organization Unit Selector */
7745
+ React__default.createElement('div', { style: { width: '100%' } }, React__default.createElement(InputField$1, {
7746
+ value: displayValue,
7747
+ label: 'Organization Unit',
7748
+ readOnly: false,
7749
+ onFocus: () => setShowOrgUnit(true),
7750
+ onBlur: () => {
7751
+ setTouched(true);
7752
+ },
7753
+ }), showOrgUnit &&
7754
+ React__default.createElement(this.FieldOrgUnitSelector, {
7755
+ onCancelOrgUnit: () => {
7756
+ setShowOrgUnit(false);
7757
+ setTouched(true);
7758
+ },
7759
+ onSelectOrgUnit: (selectedOrgUnits) => {
7760
+ if ((selectedOrgUnits || [])[0]) {
7761
+ const selectedOrgUnit = selectedOrgUnits[0];
7762
+ setDisplayValue(selectedOrgUnit.name);
7763
+ setSelected(selectedOrgUnit.id);
7764
+ setSelectedOrganisationUnit(selectedOrgUnit.id);
7765
+ setValue(selectedOrgUnit.id);
7766
+ setShowOrgUnit(false);
7767
+ setTouched(true);
7768
+ }
7769
+ },
7770
+ })),
7771
+ /* Start Date */
7772
+ React__default.createElement(InputField$1, {
7773
+ className: 'input-field',
7774
+ label: 'Start Date',
7775
+ type: 'date',
7776
+ value: filters.startDate,
7777
+ onChange: (event) => setFilters({ ...filters, startDate: event.value }),
7778
+ }),
7779
+ /* End Date */
7780
+ React__default.createElement(InputField$1, {
7781
+ className: 'input-field',
7782
+ label: 'End Date',
7783
+ type: 'date',
7784
+ value: filters.endDate,
7785
+ onChange: (event) => setFilters({ ...filters, endDate: event.value }),
7786
+ }),
7787
+ /* Toggle Button with Hidden Label */
7788
+ React__default.createElement('div', {
7789
+ style: {
7790
+ display: 'flex',
7791
+ flexDirection: 'column',
7792
+ alignItems: 'center',
7793
+ justifyContent: 'center',
7794
+ height: '100%',
7795
+ },
7796
+ }, React__default.createElement('label', {
7797
+ style: {
7798
+ color: 'transparent', // Hides label text but keeps spacing
7799
+ fontSize: '14px',
7800
+ marginBottom: '4px',
7801
+ },
7802
+ }, 'Toggle'), React__default.createElement(Button$1, {
7803
+ style: { height: '40px' }, // Match input field height
7804
+ onClick: () => setShowMoreFilters(!showMoreFilters),
7805
+ }, showMoreFilters ? 'Hide Filters' : 'More Filters')), showMoreFilters &&
7806
+ React__default.createElement(React__default.Fragment, null,
7807
+ /* Attribute Filters Grid */
7808
+ React__default.createElement('div', {
7809
+ style: {
7593
7810
  display: 'grid',
7594
- gridTemplateColumns: '1fr 1fr 1fr auto', // Ensure proper button sizing
7811
+ gridTemplateColumns: 'repeat(4, 1fr)',
7595
7812
  gap: '16px',
7596
- alignItems: 'center', // Align inputs and button on the same row
7597
- marginBottom: '16px',
7598
- } },
7599
- React__default.createElement("div", { style: { width: '100%' } },
7600
- React__default.createElement(InputField$1, { value: displayValue, label: "Organization Unit", readOnly: false, onFocus: () => setShowOrgUnit(true), onBlur: () => {
7601
- setTouched(true);
7602
- } }),
7603
- showOrgUnit && (React__default.createElement(this.FieldOrgUnitSelector, { onCancelOrgUnit: () => {
7604
- setShowOrgUnit(false);
7605
- setTouched(true);
7606
- }, onSelectOrgUnit: (selectedOrgUnits) => {
7607
- if ((selectedOrgUnits || [])[0]) {
7608
- const selectedOrgUnit = selectedOrgUnits[0];
7609
- setDisplayValue(selectedOrgUnit.name);
7610
- setSelected(selectedOrgUnit.id);
7611
- setSelectedOrganisationUnit(selectedOrgUnit.id);
7612
- setValue(selectedOrgUnit.id);
7613
- setShowOrgUnit(false);
7614
- setTouched(true);
7615
- }
7616
- } }))),
7617
- React__default.createElement(InputField$1, { className: "input-field", label: "Start Date", type: "date", value: filters.startDate, onChange: (event) => setFilters({ ...filters, startDate: event.value }) }),
7618
- React__default.createElement(InputField$1, { className: "input-field", label: "End Date", type: "date", value: filters.endDate, onChange: (event) => setFilters({ ...filters, endDate: event.value }) }),
7619
- React__default.createElement("div", { style: {
7620
- display: 'flex',
7621
- flexDirection: 'column',
7622
- alignItems: 'center',
7623
- justifyContent: 'center',
7624
- height: '100%',
7625
- } },
7626
- React__default.createElement("label", { style: {
7627
- color: 'transparent', // Hides label text but keeps spacing
7628
- fontSize: '14px',
7629
- marginBottom: '4px',
7630
- } }, "Toggle"),
7631
- React__default.createElement(Button$1, { style: { height: '40px' }, onClick: () => setShowMoreFilters(!showMoreFilters) }, showMoreFilters ? 'Hide Filters' : 'More Filters'))),
7632
- showMoreFilters && (React__default.createElement(React__default.Fragment, null,
7633
- React__default.createElement("div", { style: {
7634
- display: 'grid',
7635
- gridTemplateColumns: 'repeat(4, 1fr)',
7636
- gap: '16px',
7637
- } }, filters.programAttributesFilters.map((filter, index) => (React__default.createElement("div", { key: index, style: { gridColumn: getAttributeColumnSpan(index) } }, filter.hasOptions && filter.options.length > 0 ? (React__default.createElement(SingleSelectField, { className: "single-select", label: filter.name || 'Select Option', selected: filter.value, onChange: (event) => handleAttributeChange(index, event.selected) }, filter.options.map((option, i) => (React__default.createElement(SingleSelectOption, { key: crypto.randomUUID() || i, label: option.name, value: option.code }))))) : (React__default.createElement(InputField$1, { className: "input-field", label: filter.name || 'Program name', type: filter.valueType, value: filter.value, onChange: (event) => handleAttributeChange(index, event.value) })))))),
7638
- React__default.createElement("div", { style: {
7639
- display: 'grid',
7640
- gridTemplateColumns: 'repeat(4, 1fr)',
7641
- gap: '16px',
7642
- } }, filters.programStageDataElementFilters.map((filter, index) => (React__default.createElement("div", { key: index, style: { gridColumn: getDataElementColumnSpan(index) } }, filter.hasOptions && filter.options.length > 0 ? (React__default.createElement(SingleSelectField, { className: "single-select", label: filter.name || 'Aggregation type', selected: filter.value, onChange: (event) => handleDataElementChange(index, event.selected) }, filter.options.map((option, i) => (React__default.createElement(SingleSelectOption, { key: crypto.randomUUID() || i, label: option.name, value: option.code }))))) : (React__default.createElement(InputField$1, { className: "input-field", type: filter.valueType, label: filter.name || 'Program name', value: filter.value, onChange: (event) => handleDataElementChange(index, event.value) })))))),
7643
- React__default.createElement("div", { style: { textAlign: 'right', marginTop: '16px' } },
7644
- React__default.createElement(Button$1, { onClick: handleSearch }, "Search"))))));
7813
+ },
7814
+ }, filters.programAttributesFilters.map((filter, index) => React__default.createElement('div', {
7815
+ key: index,
7816
+ style: { gridColumn: getAttributeColumnSpan(index) },
7817
+ }, filter.hasOptions && filter.options.length > 0
7818
+ ? React__default.createElement(SingleSelectField, {
7819
+ className: 'single-select',
7820
+ label: filter.name || 'Select Option',
7821
+ selected: filter.value,
7822
+ onChange: (event) => handleAttributeChange(index, event.selected),
7823
+ }, filter.options.map((option, i) => React__default.createElement(SingleSelectOption, {
7824
+ key: crypto.randomUUID() || i,
7825
+ label: option.name,
7826
+ value: option.code,
7827
+ })))
7828
+ : React__default.createElement(InputField$1, {
7829
+ className: 'input-field',
7830
+ label: filter.name || 'Program name',
7831
+ type: filter.valueType,
7832
+ value: filter.value,
7833
+ onChange: (event) => handleAttributeChange(index, event.value),
7834
+ })))),
7835
+ /* Data Element Filters Grid */
7836
+ React__default.createElement('div', {
7837
+ style: {
7838
+ display: 'grid',
7839
+ gridTemplateColumns: 'repeat(4, 1fr)',
7840
+ gap: '16px',
7841
+ },
7842
+ }, filters.programStageDataElementFilters.map((filter, index) => React__default.createElement('div', {
7843
+ key: index,
7844
+ style: { gridColumn: getDataElementColumnSpan(index) },
7845
+ }, filter.hasOptions && filter.options.length > 0
7846
+ ? React__default.createElement(SingleSelectField, {
7847
+ className: 'single-select',
7848
+ label: filter.name || 'Aggregation type',
7849
+ selected: filter.value,
7850
+ onChange: (event) => handleDataElementChange(index, event.selected),
7851
+ }, filter.options.map((option, i) => React__default.createElement(SingleSelectOption, {
7852
+ key: crypto.randomUUID() || i,
7853
+ label: option.name,
7854
+ value: option.code,
7855
+ })))
7856
+ : React__default.createElement(InputField$1, {
7857
+ className: 'input-field',
7858
+ type: filter.valueType,
7859
+ label: filter.name || 'Program name',
7860
+ value: filter.value,
7861
+ onChange: (event) => handleDataElementChange(index, event.value),
7862
+ })))),
7863
+ /* Search Button */
7864
+ React__default.createElement('div', { style: { textAlign: 'right', marginTop: '16px' } }, React__default.createElement(Button$1, { onClick: handleSearch }, 'Search')))));
7645
7865
  };
7646
7866
  }
7647
7867
  async getAppConfig() {
@@ -7696,10 +7916,10 @@ class SelectionFiltersComponent extends ReactWrapperModule {
7696
7916
  this.component = this.SelectionFiltersUI;
7697
7917
  this.render();
7698
7918
  }
7699
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SelectionFiltersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
7700
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: SelectionFiltersComponent, isStandalone: false, selector: "app-selection-filters-ui", inputs: { actionOptions: "actionOptions", programAttributesFilters: "programAttributesFilters", programStageDataElementFilters: "programStageDataElementFilters", startDate: "startDate", endDate: "endDate", program: "program", organisationUnit: "organisationUnit" }, outputs: { actionSelected: "actionSelected" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".react-filters-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:20px}.input-field,.single-select{width:100%}\n"] }); }
7919
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SelectionFiltersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
7920
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: SelectionFiltersComponent, isStandalone: false, selector: "app-selection-filters-ui", inputs: { actionOptions: "actionOptions", programAttributesFilters: "programAttributesFilters", programStageDataElementFilters: "programStageDataElementFilters", startDate: "startDate", endDate: "endDate", program: "program", organisationUnit: "organisationUnit" }, outputs: { actionSelected: "actionSelected" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".react-filters-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:20px}.input-field,.single-select{width:100%}\n"] }); }
7701
7921
  }
7702
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SelectionFiltersComponent, decorators: [{
7922
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SelectionFiltersComponent, decorators: [{
7703
7923
  type: Component,
7704
7924
  args: [{ selector: 'app-selection-filters-ui', template: '<ng-content></ng-content>', standalone: false, styles: [".react-filters-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:20px}.input-field,.single-select{width:100%}\n"] }]
7705
7925
  }], propDecorators: { actionOptions: [{
@@ -7721,11 +7941,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
7721
7941
  }] } });
7722
7942
 
7723
7943
  class SelectionFiltersUiModule {
7724
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SelectionFiltersUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7725
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: SelectionFiltersUiModule, declarations: [SelectionFiltersComponent], imports: [CommonModule, SharedDhis2UiModule, ReactWrapperModule, OrganisationUnitSelectorModule], exports: [SelectionFiltersComponent] }); }
7726
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SelectionFiltersUiModule, imports: [CommonModule, SharedDhis2UiModule, OrganisationUnitSelectorModule] }); }
7944
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SelectionFiltersUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7945
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: SelectionFiltersUiModule, declarations: [SelectionFiltersComponent], imports: [CommonModule, SharedDhis2UiModule, ReactWrapperModule, OrganisationUnitSelectorModule], exports: [SelectionFiltersComponent] }); }
7946
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SelectionFiltersUiModule, imports: [CommonModule, SharedDhis2UiModule, OrganisationUnitSelectorModule] }); }
7727
7947
  }
7728
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SelectionFiltersUiModule, decorators: [{
7948
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: SelectionFiltersUiModule, decorators: [{
7729
7949
  type: NgModule,
7730
7950
  args: [{
7731
7951
  declarations: [SelectionFiltersComponent],
@@ -7736,9 +7956,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
7736
7956
 
7737
7957
  class TrackerFormComponent {
7738
7958
  constructor() {
7739
- this.program = input.required();
7740
- this.programStage = input();
7741
- this.trackedEntity = input();
7959
+ this.program = input.required(...(ngDevMode ? [{ debugName: "program" }] : []));
7960
+ this.programStage = input(...(ngDevMode ? [undefined, { debugName: "programStage" }] : []));
7961
+ this.trackedEntity = input(...(ngDevMode ? [undefined, { debugName: "trackedEntity" }] : []));
7742
7962
  this.d2 = window.d2Web;
7743
7963
  }
7744
7964
  async ngOnInit() {
@@ -7764,20 +7984,20 @@ class TrackerFormComponent {
7764
7984
  }
7765
7985
  onSave(event) { }
7766
7986
  onCancel() { }
7767
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: TrackerFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7768
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: TrackerFormComponent, isStandalone: false, selector: "ng-dhis2-ui-tracker-form", inputs: { program: { classPropertyName: "program", publicName: "program", isSignal: true, isRequired: true, transformFunction: null }, programStage: { classPropertyName: "programStage", publicName: "programStage", isSignal: true, isRequired: false, transformFunction: null }, trackedEntity: { classPropertyName: "trackedEntity", publicName: "trackedEntity", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if(formMetaData) {\n<ng-dhis2-ui-section-form\n [formMetaData]=\"formMetaData\"\n [dataValueEntities]=\"instance\"\n (formUpdate)=\"onFormUpdate($event)\"\n (save)=\"onSave($event)\"\n (cancel)=\"onCancel()\"\n/>\n}\n", dependencies: [{ kind: "component", type: SectionFormComponent, selector: "ng-dhis2-ui-section-form", inputs: ["loading", "formMetaData", "dataValueEntities"], outputs: ["save", "formUpdate", "cancel", "formValidityUpdate"] }] }); }
7987
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: TrackerFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7988
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: TrackerFormComponent, isStandalone: false, selector: "ng-dhis2-ui-tracker-form", inputs: { program: { classPropertyName: "program", publicName: "program", isSignal: true, isRequired: true, transformFunction: null }, programStage: { classPropertyName: "programStage", publicName: "programStage", isSignal: true, isRequired: false, transformFunction: null }, trackedEntity: { classPropertyName: "trackedEntity", publicName: "trackedEntity", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if(formMetaData) {\n<ng-dhis2-ui-section-form\n [formMetaData]=\"formMetaData\"\n [dataValueEntities]=\"instance\"\n (formUpdate)=\"onFormUpdate($event)\"\n (save)=\"onSave($event)\"\n (cancel)=\"onCancel()\"\n/>\n}\n", dependencies: [{ kind: "component", type: SectionFormComponent, selector: "ng-dhis2-ui-section-form", inputs: ["loading", "formMetaData", "dataValueEntities"], outputs: ["save", "formUpdate", "cancel", "formValidityUpdate"] }] }); }
7769
7989
  }
7770
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: TrackerFormComponent, decorators: [{
7990
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: TrackerFormComponent, decorators: [{
7771
7991
  type: Component,
7772
7992
  args: [{ selector: 'ng-dhis2-ui-tracker-form', standalone: false, template: "@if(formMetaData) {\n<ng-dhis2-ui-section-form\n [formMetaData]=\"formMetaData\"\n [dataValueEntities]=\"instance\"\n (formUpdate)=\"onFormUpdate($event)\"\n (save)=\"onSave($event)\"\n (cancel)=\"onCancel()\"\n/>\n}\n" }]
7773
7993
  }] });
7774
7994
 
7775
7995
  class TrackerFormModule {
7776
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: TrackerFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7777
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: TrackerFormModule, declarations: [TrackerFormComponent], imports: [CommonModule, D2FormModule], exports: [TrackerFormComponent] }); }
7778
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: TrackerFormModule, imports: [CommonModule, D2FormModule] }); }
7996
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: TrackerFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7997
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: TrackerFormModule, declarations: [TrackerFormComponent], imports: [CommonModule, D2FormModule], exports: [TrackerFormComponent] }); }
7998
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: TrackerFormModule, imports: [CommonModule, D2FormModule] }); }
7779
7999
  }
7780
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: TrackerFormModule, decorators: [{
8000
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: TrackerFormModule, decorators: [{
7781
8001
  type: NgModule,
7782
8002
  args: [{
7783
8003
  imports: [CommonModule, D2FormModule],
@@ -7792,11 +8012,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
7792
8012
 
7793
8013
  class EventFormComponent {
7794
8014
  constructor() {
7795
- this.program = input.required();
7796
- this.programStage = input.required();
7797
- this.eventId = input();
7798
- this.enrollment = input();
7799
- this.trackedEntity = input();
8015
+ this.program = input.required(...(ngDevMode ? [{ debugName: "program" }] : []));
8016
+ this.programStage = input.required(...(ngDevMode ? [{ debugName: "programStage" }] : []));
8017
+ this.eventId = input(...(ngDevMode ? [undefined, { debugName: "eventId" }] : []));
8018
+ this.enrollment = input(...(ngDevMode ? [undefined, { debugName: "enrollment" }] : []));
8019
+ this.trackedEntity = input(...(ngDevMode ? [undefined, { debugName: "trackedEntity" }] : []));
7800
8020
  this.d2 = window.d2Web;
7801
8021
  }
7802
8022
  async ngOnInit() {
@@ -7823,20 +8043,20 @@ class EventFormComponent {
7823
8043
  }
7824
8044
  onSave(event) { }
7825
8045
  onCancel() { }
7826
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EventFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7827
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: EventFormComponent, isStandalone: false, selector: "ng-dhis2-ui-event-form", inputs: { program: { classPropertyName: "program", publicName: "program", isSignal: true, isRequired: true, transformFunction: null }, programStage: { classPropertyName: "programStage", publicName: "programStage", isSignal: true, isRequired: true, transformFunction: null }, eventId: { classPropertyName: "eventId", publicName: "eventId", isSignal: true, isRequired: false, transformFunction: null }, enrollment: { classPropertyName: "enrollment", publicName: "enrollment", isSignal: true, isRequired: false, transformFunction: null }, trackedEntity: { classPropertyName: "trackedEntity", publicName: "trackedEntity", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if(formMetaData) {\n<ng-dhis2-ui-section-form\n [formMetaData]=\"formMetaData\"\n [dataValueEntities]=\"instance\"\n (formUpdate)=\"onFormUpdate($event)\"\n (save)=\"onSave($event)\"\n (cancel)=\"onCancel()\"\n/>\n}\n", dependencies: [{ kind: "component", type: SectionFormComponent, selector: "ng-dhis2-ui-section-form", inputs: ["loading", "formMetaData", "dataValueEntities"], outputs: ["save", "formUpdate", "cancel", "formValidityUpdate"] }] }); }
8046
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: EventFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8047
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: EventFormComponent, isStandalone: false, selector: "ng-dhis2-ui-event-form", inputs: { program: { classPropertyName: "program", publicName: "program", isSignal: true, isRequired: true, transformFunction: null }, programStage: { classPropertyName: "programStage", publicName: "programStage", isSignal: true, isRequired: true, transformFunction: null }, eventId: { classPropertyName: "eventId", publicName: "eventId", isSignal: true, isRequired: false, transformFunction: null }, enrollment: { classPropertyName: "enrollment", publicName: "enrollment", isSignal: true, isRequired: false, transformFunction: null }, trackedEntity: { classPropertyName: "trackedEntity", publicName: "trackedEntity", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if(formMetaData) {\n<ng-dhis2-ui-section-form\n [formMetaData]=\"formMetaData\"\n [dataValueEntities]=\"instance\"\n (formUpdate)=\"onFormUpdate($event)\"\n (save)=\"onSave($event)\"\n (cancel)=\"onCancel()\"\n/>\n}\n", dependencies: [{ kind: "component", type: SectionFormComponent, selector: "ng-dhis2-ui-section-form", inputs: ["loading", "formMetaData", "dataValueEntities"], outputs: ["save", "formUpdate", "cancel", "formValidityUpdate"] }] }); }
7828
8048
  }
7829
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EventFormComponent, decorators: [{
8049
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: EventFormComponent, decorators: [{
7830
8050
  type: Component,
7831
8051
  args: [{ selector: 'ng-dhis2-ui-event-form', standalone: false, template: "@if(formMetaData) {\n<ng-dhis2-ui-section-form\n [formMetaData]=\"formMetaData\"\n [dataValueEntities]=\"instance\"\n (formUpdate)=\"onFormUpdate($event)\"\n (save)=\"onSave($event)\"\n (cancel)=\"onCancel()\"\n/>\n}\n" }]
7832
8052
  }] });
7833
8053
 
7834
8054
  class EventFormModule {
7835
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EventFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7836
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: EventFormModule, declarations: [EventFormComponent], imports: [CommonModule, D2FormModule], exports: [EventFormComponent] }); }
7837
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EventFormModule, imports: [CommonModule, D2FormModule] }); }
8055
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: EventFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
8056
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: EventFormModule, declarations: [EventFormComponent], imports: [CommonModule, D2FormModule], exports: [EventFormComponent] }); }
8057
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: EventFormModule, imports: [CommonModule, D2FormModule] }); }
7838
8058
  }
7839
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EventFormModule, decorators: [{
8059
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: EventFormModule, decorators: [{
7840
8060
  type: NgModule,
7841
8061
  args: [{
7842
8062
  imports: [CommonModule, D2FormModule],
@@ -8220,19 +8440,19 @@ class ProgramEntryFormSection {
8220
8440
  // eslint-disable-next-line @angular-eslint/component-class-suffix
8221
8441
  class ProgramEntryFormModule {
8222
8442
  constructor() {
8223
- this.config = input.required();
8224
- this.trackedEntity = input();
8225
- this.event = input();
8226
- this.enrollment = input();
8227
- this.orgUnit = input();
8228
- this.customOrgUnitRoots = input();
8443
+ this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
8444
+ this.trackedEntity = input(...(ngDevMode ? [undefined, { debugName: "trackedEntity" }] : []));
8445
+ this.event = input(...(ngDevMode ? [undefined, { debugName: "event" }] : []));
8446
+ this.enrollment = input(...(ngDevMode ? [undefined, { debugName: "enrollment" }] : []));
8447
+ this.orgUnit = input(...(ngDevMode ? [undefined, { debugName: "orgUnit" }] : []));
8448
+ this.customOrgUnitRoots = input(...(ngDevMode ? [undefined, { debugName: "customOrgUnitRoots" }] : []));
8229
8449
  this.ngZone = inject(NgZone);
8230
8450
  this.d2 = window.d2Web;
8231
- this.loading = signal(false);
8232
- this.metaData = signal(null);
8233
- this.isFormValid = signal(true);
8451
+ this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
8452
+ this.metaData = signal(null, ...(ngDevMode ? [{ debugName: "metaData" }] : []));
8453
+ this.isFormValid = signal(true, ...(ngDevMode ? [{ debugName: "isFormValid" }] : []));
8234
8454
  this.isFormValid$ = toObservable(this.isFormValid);
8235
- this.instance = signal(null);
8455
+ this.instance = signal(null, ...(ngDevMode ? [{ debugName: "instance" }] : []));
8236
8456
  this.instanceSave = new EventEmitter();
8237
8457
  this.instanceSaveCompleted = new EventEmitter();
8238
8458
  this.instanceUpdate = new EventEmitter();
@@ -8252,7 +8472,7 @@ class ProgramEntryFormModule {
8252
8472
  return this.instance()?.trackedEntity;
8253
8473
  }
8254
8474
  return undefined;
8255
- });
8475
+ }, ...(ngDevMode ? [{ debugName: "dataId" }] : []));
8256
8476
  this.FormActionButtons = computed(() => {
8257
8477
  if (this.config().hideActionButtons) {
8258
8478
  return React__default.createElement(React__default.Fragment, null);
@@ -8284,7 +8504,7 @@ class ProgramEntryFormModule {
8284
8504
  });
8285
8505
  } }, this.config().cancelButtonLabel))));
8286
8506
  };
8287
- });
8507
+ }, ...(ngDevMode ? [{ debugName: "FormActionButtons" }] : []));
8288
8508
  }
8289
8509
  async ngOnInit() {
8290
8510
  this.loading.set(true);
@@ -8406,10 +8626,10 @@ class ProgramEntryFormModule {
8406
8626
  return firstValueFrom(of(null));
8407
8627
  }
8408
8628
  }
8409
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ProgramEntryFormModule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8410
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: ProgramEntryFormModule, isStandalone: true, selector: "ng-dhis2-ui-program-entry-form", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, trackedEntity: { classPropertyName: "trackedEntity", publicName: "trackedEntity", isSignal: true, isRequired: false, transformFunction: null }, event: { classPropertyName: "event", publicName: "event", isSignal: true, isRequired: false, transformFunction: null }, enrollment: { classPropertyName: "enrollment", publicName: "enrollment", isSignal: true, isRequired: false, transformFunction: null }, orgUnit: { classPropertyName: "orgUnit", publicName: "orgUnit", isSignal: true, isRequired: false, transformFunction: null }, customOrgUnitRoots: { classPropertyName: "customOrgUnitRoots", publicName: "customOrgUnitRoots", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { instanceSave: "instanceSave", instanceSaveCompleted: "instanceSaveCompleted", instanceUpdate: "instanceUpdate", formValidityUpdate: "formValidityUpdate", formCancel: "formCancel" }, ngImport: i0, template: "@if (loading()) {\n<div className=\"program-entry__form-loader\">\n <ng-dhis2-ui-wrapper [component]=\"FormLoader\" />\n</div>\n} @else if(metaData()) {\n\n<div>\n <!-- Form content -->\n @switch (config().displayType) {\n\n <!-- Flat display -->\n @case ('FLAT') {\n\n <ng-dhis2-ui-flat-form\n [name]=\"metaData()!.name\"\n [dataValues]=\"instance() || {}\"\n [dataId]=\"dataId()\"\n [rules]=\"metaData()!.rules\"\n [fields]=\"metaData()!.formFields\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n (formUpdate)=\"onFormUpdate($event)\"\n (formValidityUpdate)=\"onValidityUpdate($event)\"\n />\n }\n\n <!-- SECTION display -->\n @case ('SECTION') { Section form }\n\n <!-- CUSTOM FORM -->\n @case ('CUSTOM') { } }\n\n <!-- Action buttons -->\n\n @if(!config().hideActionButtons) {\n <ng-dhis2-ui-wrapper [component]=\"FormActionButtons()\" />\n }\n</div>\n}\n", styles: ["::ng-deep .program-entry__form-loader{padding:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: D2FormModule }, { kind: "component", type: FlatFormComponent, selector: "ng-dhis2-ui-flat-form" }, { kind: "directive", type: ReactWrapperModule, selector: "ng-dhis2-ui-wrapper", inputs: ["props", "component"] }] }); }
8629
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ProgramEntryFormModule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8630
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: ProgramEntryFormModule, isStandalone: true, selector: "ng-dhis2-ui-program-entry-form", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, trackedEntity: { classPropertyName: "trackedEntity", publicName: "trackedEntity", isSignal: true, isRequired: false, transformFunction: null }, event: { classPropertyName: "event", publicName: "event", isSignal: true, isRequired: false, transformFunction: null }, enrollment: { classPropertyName: "enrollment", publicName: "enrollment", isSignal: true, isRequired: false, transformFunction: null }, orgUnit: { classPropertyName: "orgUnit", publicName: "orgUnit", isSignal: true, isRequired: false, transformFunction: null }, customOrgUnitRoots: { classPropertyName: "customOrgUnitRoots", publicName: "customOrgUnitRoots", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { instanceSave: "instanceSave", instanceSaveCompleted: "instanceSaveCompleted", instanceUpdate: "instanceUpdate", formValidityUpdate: "formValidityUpdate", formCancel: "formCancel" }, ngImport: i0, template: "@if (loading()) {\n<div className=\"program-entry__form-loader\">\n <ng-dhis2-ui-wrapper [component]=\"FormLoader\" />\n</div>\n} @else if(metaData()) {\n\n<div>\n <!-- Form content -->\n @switch (config().displayType) {\n\n <!-- Flat display -->\n @case ('FLAT') {\n\n <ng-dhis2-ui-flat-form\n [name]=\"metaData()!.name\"\n [dataValues]=\"instance() || {}\"\n [dataId]=\"dataId()\"\n [rules]=\"metaData()!.rules\"\n [fields]=\"metaData()!.formFields\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n (formUpdate)=\"onFormUpdate($event)\"\n (formValidityUpdate)=\"onValidityUpdate($event)\"\n />\n }\n\n <!-- SECTION display -->\n @case ('SECTION') { Section form }\n\n <!-- CUSTOM FORM -->\n @case ('CUSTOM') { } }\n\n <!-- Action buttons -->\n\n @if(!config().hideActionButtons) {\n <ng-dhis2-ui-wrapper [component]=\"FormActionButtons()\" />\n }\n</div>\n}\n", styles: ["::ng-deep .program-entry__form-loader{padding:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: D2FormModule }, { kind: "component", type: FlatFormComponent, selector: "ng-dhis2-ui-flat-form" }, { kind: "directive", type: ReactWrapperModule, selector: "ng-dhis2-ui-wrapper", inputs: ["props", "component"] }] }); }
8411
8631
  }
8412
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ProgramEntryFormModule, decorators: [{
8632
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ProgramEntryFormModule, decorators: [{
8413
8633
  type: Component,
8414
8634
  args: [{ selector: 'ng-dhis2-ui-program-entry-form', imports: [CommonModule, D2FormModule, ReactWrapperModule], template: "@if (loading()) {\n<div className=\"program-entry__form-loader\">\n <ng-dhis2-ui-wrapper [component]=\"FormLoader\" />\n</div>\n} @else if(metaData()) {\n\n<div>\n <!-- Form content -->\n @switch (config().displayType) {\n\n <!-- Flat display -->\n @case ('FLAT') {\n\n <ng-dhis2-ui-flat-form\n [name]=\"metaData()!.name\"\n [dataValues]=\"instance() || {}\"\n [dataId]=\"dataId()\"\n [rules]=\"metaData()!.rules\"\n [fields]=\"metaData()!.formFields\"\n [customOrgUnitRoots]=\"customOrgUnitRoots()\"\n (formUpdate)=\"onFormUpdate($event)\"\n (formValidityUpdate)=\"onValidityUpdate($event)\"\n />\n }\n\n <!-- SECTION display -->\n @case ('SECTION') { Section form }\n\n <!-- CUSTOM FORM -->\n @case ('CUSTOM') { } }\n\n <!-- Action buttons -->\n\n @if(!config().hideActionButtons) {\n <ng-dhis2-ui-wrapper [component]=\"FormActionButtons()\" />\n }\n</div>\n}\n", styles: ["::ng-deep .program-entry__form-loader{padding:8px}\n"] }]
8415
8635
  }], propDecorators: { instanceSave: [{