@iapps/ng-dhis2-ui 1.0.5 → 1.0.8

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 (95) hide show
  1. package/README.md +60 -3
  2. package/fesm2022/iapps-ng-dhis2-ui.mjs +86 -72
  3. package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
  4. package/lib/modules/organisation-unit-selector/components/OrgUnitDimension.d.ts +3 -1
  5. package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.d.ts +3 -2
  6. package/lib/modules/organisation-unit-selector/index.d.ts +1 -0
  7. package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts +3 -2
  8. package/lib/shared/utils/axis.d.ts +1 -1
  9. package/lib/shared/utils/dimension.d.ts +20 -10
  10. package/lib/shared/utils/dimensionIsEmpty.d.ts +3 -1
  11. package/lib/shared/utils/dimensionIsValid.d.ts +3 -1
  12. package/lib/shared/utils/predefinedDimensions.d.ts +6 -6
  13. package/package.json +6 -8
  14. package/esm2022/iapps-ng-dhis2-ui.mjs +0 -5
  15. package/esm2022/index.mjs +0 -6
  16. package/esm2022/lib/modules/button/button.component.mjs +0 -60
  17. package/esm2022/lib/modules/button/button.module.mjs +0 -19
  18. package/esm2022/lib/modules/button/index.mjs +0 -6
  19. package/esm2022/lib/modules/header-bar/header-bar.component.mjs +0 -38
  20. package/esm2022/lib/modules/header-bar/header-bar.module.mjs +0 -19
  21. package/esm2022/lib/modules/header-bar/index.mjs +0 -6
  22. package/esm2022/lib/modules/header-bar/models/header-bar-app.model.mjs +0 -20
  23. package/esm2022/lib/modules/header-bar/models/header-bar-data.model.mjs +0 -46
  24. package/esm2022/lib/modules/header-bar/models/header-bar-notification.model.mjs +0 -11
  25. package/esm2022/lib/modules/header-bar/models/index.mjs +0 -6
  26. package/esm2022/lib/modules/header-bar/utils/apps.mjs +0 -221
  27. package/esm2022/lib/modules/header-bar/utils/debug-info/debug-info-menu-item.mjs +0 -51
  28. package/esm2022/lib/modules/header-bar/utils/debug-info/debug-info-modal.mjs +0 -30
  29. package/esm2022/lib/modules/header-bar/utils/debug-info/debug-info-table.mjs +0 -39
  30. package/esm2022/lib/modules/header-bar/utils/debug-info/use-debug-info.mjs +0 -12
  31. package/esm2022/lib/modules/header-bar/utils/header-bar-context.mjs +0 -17
  32. package/esm2022/lib/modules/header-bar/utils/header-bar.mjs +0 -56
  33. package/esm2022/lib/modules/header-bar/utils/join-path.mjs +0 -5
  34. package/esm2022/lib/modules/header-bar/utils/logo-image.mjs +0 -52
  35. package/esm2022/lib/modules/header-bar/utils/logo.mjs +0 -35
  36. package/esm2022/lib/modules/header-bar/utils/notification-icon.mjs +0 -76
  37. package/esm2022/lib/modules/header-bar/utils/notifications.mjs +0 -35
  38. package/esm2022/lib/modules/header-bar/utils/profile/use-on-doc-click.mjs +0 -21
  39. package/esm2022/lib/modules/header-bar/utils/profile-menu/index.mjs +0 -2
  40. package/esm2022/lib/modules/header-bar/utils/profile-menu/profile-header.mjs +0 -95
  41. package/esm2022/lib/modules/header-bar/utils/profile-menu/profile-menu.mjs +0 -101
  42. package/esm2022/lib/modules/header-bar/utils/profile-menu/update-notification.mjs +0 -54
  43. package/esm2022/lib/modules/header-bar/utils/profile.mjs +0 -58
  44. package/esm2022/lib/modules/header-bar/utils/title.mjs +0 -22
  45. package/esm2022/lib/modules/organisation-unit-selector/components/OrgUnitDimension.mjs +0 -216
  46. package/esm2022/lib/modules/organisation-unit-selector/components/index.mjs +0 -6
  47. package/esm2022/lib/modules/organisation-unit-selector/components/styles/OrgUnitDimension.style.mjs +0 -83
  48. package/esm2022/lib/modules/organisation-unit-selector/components/utils/index.mjs +0 -6
  49. package/esm2022/lib/modules/organisation-unit-selector/components/utils/ouIdHelper/index.mjs +0 -18
  50. package/esm2022/lib/modules/organisation-unit-selector/components/utils/ouLevelUtils/index.mjs +0 -27
  51. package/esm2022/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.mjs +0 -88
  52. package/esm2022/lib/modules/organisation-unit-selector/containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.mjs +0 -114
  53. package/esm2022/lib/modules/organisation-unit-selector/index.mjs +0 -7
  54. package/esm2022/lib/modules/organisation-unit-selector/models/index.mjs +0 -5
  55. package/esm2022/lib/modules/organisation-unit-selector/models/organisation-unit-config.model.mjs +0 -16
  56. package/esm2022/lib/modules/organisation-unit-selector/organisation-unit-selector.module.mjs +0 -28
  57. package/esm2022/lib/modules/period-selector/components/FixedPeriodFilter.mjs +0 -44
  58. package/esm2022/lib/modules/period-selector/components/PeriodDimension.mjs +0 -41
  59. package/esm2022/lib/modules/period-selector/components/PeriodTransfer.mjs +0 -110
  60. package/esm2022/lib/modules/period-selector/components/RelativePeriodFilter.mjs +0 -28
  61. package/esm2022/lib/modules/period-selector/components/utils/fixedPeriods.mjs +0 -308
  62. package/esm2022/lib/modules/period-selector/components/utils/index.mjs +0 -5
  63. package/esm2022/lib/modules/period-selector/components/utils/periodTypes.mjs +0 -23
  64. package/esm2022/lib/modules/period-selector/components/utils/relativePeriods.mjs +0 -139
  65. package/esm2022/lib/modules/period-selector/containers/period-selector/period-selector.component.mjs +0 -66
  66. package/esm2022/lib/modules/period-selector/containers/period-selector-modal/period-selector-modal.component.mjs +0 -82
  67. package/esm2022/lib/modules/period-selector/index.mjs +0 -7
  68. package/esm2022/lib/modules/period-selector/period-selector.module.mjs +0 -20
  69. package/esm2022/lib/modules/react-wrapper/index.mjs +0 -6
  70. package/esm2022/lib/modules/react-wrapper/react-wrapper.component.mjs +0 -55
  71. package/esm2022/lib/modules/react-wrapper/react-wrapper.module.mjs +0 -18
  72. package/esm2022/lib/shared/assets/AssignedCategoriesIcon.mjs +0 -12
  73. package/esm2022/lib/shared/assets/DimensionItemIcons/PeriodIcon.mjs +0 -4
  74. package/esm2022/lib/shared/components/TransferOption.mjs +0 -130
  75. package/esm2022/lib/shared/components/index.mjs +0 -6
  76. package/esm2022/lib/shared/index.mjs +0 -7
  77. package/esm2022/lib/shared/shared.module.mjs +0 -18
  78. package/esm2022/lib/shared/styles/DimensionSelector.style.mjs +0 -39
  79. package/esm2022/lib/shared/styles/index.mjs +0 -5
  80. package/esm2022/lib/shared/utils/axis.mjs +0 -25
  81. package/esm2022/lib/shared/utils/axisGetDimension.mjs +0 -5
  82. package/esm2022/lib/shared/utils/axisHasDimension.mjs +0 -3
  83. package/esm2022/lib/shared/utils/dimension.mjs +0 -52
  84. package/esm2022/lib/shared/utils/dimensionGetItems.mjs +0 -6
  85. package/esm2022/lib/shared/utils/dimensionIs.mjs +0 -3
  86. package/esm2022/lib/shared/utils/dimensionIsEmpty.mjs +0 -5
  87. package/esm2022/lib/shared/utils/dimensionIsValid.mjs +0 -16
  88. package/esm2022/lib/shared/utils/dimensionSelectorHelper.mjs +0 -4
  89. package/esm2022/lib/shared/utils/index.mjs +0 -15
  90. package/esm2022/lib/shared/utils/layoutGetAllAxes.mjs +0 -7
  91. package/esm2022/lib/shared/utils/layoutGetAllDimensions.mjs +0 -6
  92. package/esm2022/lib/shared/utils/layoutGetDimension.mjs +0 -4
  93. package/esm2022/lib/shared/utils/layoutReplaceDimension.mjs +0 -17
  94. package/esm2022/lib/shared/utils/list.mjs +0 -15
  95. package/esm2022/lib/shared/utils/predefinedDimensions.mjs +0 -47
package/README.md CHANGED
@@ -1,7 +1,64 @@
1
1
  # ng-dhis2-ui
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ An angular wrapper library that provide access to the react based DHIS2 UI components in angular applications running in DHIS2 platform
4
4
 
5
- ## Running unit tests
5
+ ## Library installation
6
6
 
7
- Run `nx test ng-dhis2-ui` to execute the unit tests.
7
+ `npm install @iapps/ng-dhis2-ui`
8
+
9
+ This library wraps most of react based DHIS2 libraries. Following packages should be installed
10
+
11
+ <!-- TODO: List of dependencies -->
12
+
13
+ For HTTP request, the library has used [NgxDhis2HttpClient](https://www.npmjs.com/package/@iapps/ngx-dhis2-http-client). Please follow the instructions on how to install and configure
14
+
15
+ **NOTE**: Under the hood the library uses react library, hence you will need to modify some your `tsconfig.json` under compilerOptions with the following
16
+
17
+ ```javascript
18
+ ........
19
+ "compilerOptions": {
20
+ "rootDir": ".",
21
+ "sourceMap": true,
22
+ "declaration": false,
23
+ "moduleResolution": "node",
24
+ "emitDecoratorMetadata": true,
25
+ "experimentalDecorators": true,
26
+ "importHelpers": true,
27
+ "target": "es2015",
28
+ "module": "esnext",
29
+ "jsx": "react",
30
+ "esModuleInterop": true,
31
+ "lib": ["es2020", "dom"],
32
+ "skipLibCheck": true,
33
+ "skipDefaultLibCheck": true,
34
+ "baseUrl": ".",
35
+ "paths": {
36
+ "@iapps/ng-dhis2-ui": ["ng-dhis2-ui/src/index.ts"]
37
+ }
38
+ },
39
+ ......
40
+ ```
41
+
42
+ ## Local development
43
+
44
+ If you want to collaborate to the codebase, to run the codebase locally;
45
+
46
+ 1. Clone the source code
47
+
48
+ `git clone https://github.com/udsm-dhis2-lab/ng-dhis2-ui.git`
49
+
50
+ 2. Install all needed dependencies
51
+
52
+ `npm install` or `yarn install`
53
+
54
+ **NOTE**: Sometimes npm installation may failed due to mismatch in resolving package version dependencies. If you are using npm then run `npm install --legacy-peer-deps` to ensure all packages regardless of unmatched dependencies are getting installed. This may however break the code if the packages dependencies are incompatible
55
+
56
+ 3. You will be required to set up a proxy config file named `proxy-config.json`. You can simply copy `proxy-config.example.json` and modify your access credentials to DHIS2 instances to run the demo application.
57
+
58
+ 4. To run the demo app, in order to view and test the components `nx serve demo`
59
+
60
+ ## Deployment
61
+
62
+ - To build, run `npm run build:dhis2-ui`
63
+ - To pack, run `npm run pack:dhis2-ui`
64
+ - To publish to npm, run`npm run publish:dhis2-ui`. But you will be required to have access to `@iapps` npm namespace and have already logged in under your terminal. Run `npm login` to login with your terminal
@@ -160,11 +160,11 @@ TransferOption.propTypes = {
160
160
  const sharedComponents = [];
161
161
 
162
162
  class SharedDhis2UiModule {
163
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: SharedDhis2UiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
164
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.4", ngImport: i0, type: SharedDhis2UiModule, imports: [CommonModule] }); }
165
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: SharedDhis2UiModule, imports: [CommonModule] }); }
163
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: SharedDhis2UiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
164
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: SharedDhis2UiModule, imports: [CommonModule] }); }
165
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: SharedDhis2UiModule, imports: [CommonModule] }); }
166
166
  }
167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: SharedDhis2UiModule, decorators: [{
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: SharedDhis2UiModule, decorators: [{
168
168
  type: NgModule,
169
169
  args: [{
170
170
  imports: [CommonModule],
@@ -1151,8 +1151,7 @@ class ReactWrapperComponent {
1151
1151
  this.render();
1152
1152
  }
1153
1153
  ngOnChanges() {
1154
- if (this.elementRef)
1155
- this.render();
1154
+ // if (this.elementRef) this.render();
1156
1155
  }
1157
1156
  ngOnDestroy() {
1158
1157
  this.reactDomRoot?.unmount();
@@ -1160,25 +1159,27 @@ class ReactWrapperComponent {
1160
1159
  render() {
1161
1160
  if (!this.component) {
1162
1161
  console.warn('React component must be supplied');
1163
- return;
1164
- }
1165
- if (!this.reactDomRoot)
1166
- return;
1167
- const jsxContent = this.content?.nativeElement?.outerHTML
1168
- ? parse(this.content?.nativeElement?.outerHTML)
1169
- : undefined;
1170
- this.reactDomRoot.render(React.createElement(this.component, { ...this.props },
1171
- " ",
1172
- jsxContent || '',
1173
- " "));
1174
- }
1175
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ReactWrapperComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1176
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.2.4", type: ReactWrapperComponent, selector: "ng-dhis2-ui-wrapper", inputs: { props: "props", component: "component" }, queries: [{ propertyName: "content", first: true, predicate: ["ngDhis2UiContent"], descendants: true }], usesOnChanges: true, ngImport: i0 }); }
1162
+ }
1163
+ else {
1164
+ if (!this.reactDomRoot)
1165
+ return;
1166
+ const jsxContent = this.content?.nativeElement?.outerHTML
1167
+ ? parse(this.content?.nativeElement?.outerHTML)
1168
+ : undefined;
1169
+ this.reactDomRoot.render(React.createElement(this.component, { ...this.props },
1170
+ " ",
1171
+ jsxContent || '',
1172
+ " "));
1173
+ }
1174
+ }
1175
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ReactWrapperComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1176
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.7", type: ReactWrapperComponent, isStandalone: false, selector: "ng-dhis2-ui-wrapper", inputs: { props: "props", component: "component" }, queries: [{ propertyName: "content", first: true, predicate: ["ngDhis2UiContent"], descendants: true }], usesOnChanges: true, ngImport: i0 }); }
1177
1177
  }
1178
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ReactWrapperComponent, decorators: [{
1178
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ReactWrapperComponent, decorators: [{
1179
1179
  type: Directive,
1180
1180
  args: [{
1181
1181
  selector: 'ng-dhis2-ui-wrapper',
1182
+ standalone: false
1182
1183
  }]
1183
1184
  }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { props: [{
1184
1185
  type: Input
@@ -1190,11 +1191,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImpor
1190
1191
  }] } });
1191
1192
 
1192
1193
  class ReactWrapperModule {
1193
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ReactWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1194
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.4", ngImport: i0, type: ReactWrapperModule, declarations: [ReactWrapperComponent], imports: [CommonModule], exports: [ReactWrapperComponent] }); }
1195
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ReactWrapperModule, imports: [CommonModule] }); }
1194
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ReactWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1195
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: ReactWrapperModule, declarations: [ReactWrapperComponent], imports: [CommonModule], exports: [ReactWrapperComponent] }); }
1196
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ReactWrapperModule, imports: [CommonModule] }); }
1196
1197
  }
1197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ReactWrapperModule, decorators: [{
1198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ReactWrapperModule, decorators: [{
1198
1199
  type: NgModule,
1199
1200
  args: [{
1200
1201
  imports: [CommonModule],
@@ -1223,23 +1224,24 @@ class HeaderBarComponent extends ReactWrapperComponent {
1223
1224
  : () => React__default.createElement("div", null, "Something went wrong");
1224
1225
  this.render();
1225
1226
  }
1226
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: HeaderBarComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
1227
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.4", type: HeaderBarComponent, selector: "ng-dhis2-ui-header-bar", usesInheritance: true, ngImport: i0, template: `<ng-container></ng-container>`, isInline: true }); }
1227
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HeaderBarComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
1228
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.7", type: HeaderBarComponent, isStandalone: false, selector: "ng-dhis2-ui-header-bar", usesInheritance: true, ngImport: i0, template: `<ng-container></ng-container>`, isInline: true }); }
1228
1229
  }
1229
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: HeaderBarComponent, decorators: [{
1230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HeaderBarComponent, decorators: [{
1230
1231
  type: Component,
1231
1232
  args: [{
1232
1233
  selector: 'ng-dhis2-ui-header-bar',
1233
1234
  template: `<ng-container></ng-container>`,
1235
+ standalone: false
1234
1236
  }]
1235
1237
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }] });
1236
1238
 
1237
1239
  class HeaderBarModule {
1238
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: HeaderBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1239
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.4", ngImport: i0, type: HeaderBarModule, declarations: [HeaderBarComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [HeaderBarComponent] }); }
1240
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: HeaderBarModule, imports: [CommonModule, SharedDhis2UiModule] }); }
1240
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HeaderBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1241
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: HeaderBarModule, declarations: [HeaderBarComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [HeaderBarComponent] }); }
1242
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HeaderBarModule, imports: [CommonModule, SharedDhis2UiModule] }); }
1241
1243
  }
1242
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: HeaderBarModule, decorators: [{
1244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: HeaderBarModule, decorators: [{
1243
1245
  type: NgModule,
1244
1246
  args: [{
1245
1247
  imports: [CommonModule, SharedDhis2UiModule],
@@ -1279,14 +1281,15 @@ class ButtonComponent extends ReactWrapperComponent {
1279
1281
  onButtonClick(event) {
1280
1282
  this.buttonClick.emit(event);
1281
1283
  }
1282
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1283
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.4", type: ButtonComponent, 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 }); }
1284
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1285
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.7", 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 }); }
1284
1286
  }
1285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ButtonComponent, decorators: [{
1287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ButtonComponent, decorators: [{
1286
1288
  type: Component,
1287
1289
  args: [{
1288
1290
  selector: 'ng-dhis2-ui-button',
1289
1291
  template: '<ng-content></ng-content>',
1292
+ standalone: false
1290
1293
  }]
1291
1294
  }], propDecorators: { label: [{
1292
1295
  type: Input
@@ -1307,11 +1310,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImpor
1307
1310
  }] } });
1308
1311
 
1309
1312
  class ButtonModule {
1310
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1311
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.4", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [ButtonComponent] }); }
1312
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ButtonModule, imports: [CommonModule, SharedDhis2UiModule] }); }
1313
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1314
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [ButtonComponent] }); }
1315
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ButtonModule, imports: [CommonModule, SharedDhis2UiModule] }); }
1313
1316
  }
1314
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: ButtonModule, decorators: [{
1317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ButtonModule, decorators: [{
1315
1318
  type: NgModule,
1316
1319
  args: [{
1317
1320
  declarations: [ButtonComponent],
@@ -1518,7 +1521,8 @@ const dimensionIsValid = (dimension, { requireItems } = {}) => {
1518
1521
  if (!requiredProps.every((prop) => prop.isValid(dimension[prop.name]))) {
1519
1522
  return false;
1520
1523
  }
1521
- if (requireItems === true && dimensionIsEmpty(dimension)) {
1524
+ if (requireItems === true &&
1525
+ dimensionIsEmpty(dimension)) {
1522
1526
  return false;
1523
1527
  }
1524
1528
  return true;
@@ -2298,12 +2302,12 @@ class PeriodSelectorModalComponent extends ReactWrapperComponent {
2298
2302
  onConfirm(selectedItems) {
2299
2303
  this.confirm.emit(selectedItems);
2300
2304
  }
2301
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: PeriodSelectorModalComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
2302
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.4", type: PeriodSelectorModalComponent, 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"] }); }
2305
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorModalComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
2306
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.7", 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"] }); }
2303
2307
  }
2304
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: PeriodSelectorModalComponent, decorators: [{
2308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorModalComponent, decorators: [{
2305
2309
  type: Component,
2306
- args: [{ selector: 'ng-dhis2-ui-period-selector-modal', template: `<ng-container></ng-container>`, styles: ["::ng-deep .layer{z-index:2!important}\n"] }]
2310
+ args: [{ selector: 'ng-dhis2-ui-period-selector-modal', template: `<ng-container></ng-container>`, standalone: false, styles: ["::ng-deep .layer{z-index:2!important}\n"] }]
2307
2311
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }], propDecorators: { selectedPeriods: [{
2308
2312
  type: Input
2309
2313
  }], cancel: [{
@@ -2313,9 +2317,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImpor
2313
2317
  }] } });
2314
2318
 
2315
2319
  class PeriodSelectorComponent extends ReactWrapperComponent {
2316
- constructor(elementRef, httpClient) {
2320
+ constructor(elementRef, httpClient, ngZone) {
2317
2321
  super(elementRef);
2318
2322
  this.httpClient = httpClient;
2323
+ this.ngZone = ngZone;
2319
2324
  this.selectedPeriods = [];
2320
2325
  this.selectPeriods = new EventEmitter();
2321
2326
  this.props = {
@@ -2349,30 +2354,32 @@ class PeriodSelectorComponent extends ReactWrapperComponent {
2349
2354
  this.reactDomRoot = ReactDOM.createRoot(this.elementRef.nativeElement);
2350
2355
  const systemInfo = await firstValueFrom(this.httpClient.systemInfo());
2351
2356
  const excludedPeriodTypes = this.getExcludedPeriodTypes(systemInfo);
2352
- this.component = () => (React__default.createElement(DataProvider, null, React__default.createElement(PeriodDimension, { selectedPeriods: this.selectedPeriods, onSelect: (selectionEvent) => this.onSelectItems(selectionEvent), excludedPeriodTypes: excludedPeriodTypes, systemInfo: systemInfo })));
2357
+ this.component = () => (React__default.createElement(DataProvider, null, React__default.createElement(PeriodDimension, { selectedPeriods: this.selectedPeriods, onSelect: (selectionEvent) => this.ngZone.run(() => {
2358
+ this.onSelectItems(selectionEvent);
2359
+ }), excludedPeriodTypes: excludedPeriodTypes, systemInfo: systemInfo })));
2353
2360
  this.render();
2354
2361
  }
2355
2362
  onSelectItems(selectionEvent) {
2356
2363
  this.selectPeriods.emit(selectionEvent.items);
2357
2364
  }
2358
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: PeriodSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
2359
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.4", type: PeriodSelectorComponent, 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"] }); }
2365
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2366
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.7", 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"] }); }
2360
2367
  }
2361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: PeriodSelectorComponent, decorators: [{
2368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorComponent, decorators: [{
2362
2369
  type: Component,
2363
- args: [{ selector: 'ng-dhis2-ui-period-selector', template: `<ng-container></ng-container>`, styles: ["::ng-deep .content-container{z-index:0!important}\n"] }]
2364
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }], propDecorators: { selectedPeriods: [{
2370
+ args: [{ selector: 'ng-dhis2-ui-period-selector', template: `<ng-container></ng-container>`, standalone: false, styles: ["::ng-deep .content-container{z-index:0!important}\n"] }]
2371
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }, { type: i0.NgZone }], propDecorators: { selectedPeriods: [{
2365
2372
  type: Input
2366
2373
  }], selectPeriods: [{
2367
2374
  type: Output
2368
2375
  }] } });
2369
2376
 
2370
2377
  class PeriodSelectorModule {
2371
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: PeriodSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2372
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.4", ngImport: i0, type: PeriodSelectorModule, declarations: [PeriodSelectorComponent, PeriodSelectorModalComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [PeriodSelectorComponent, PeriodSelectorModalComponent] }); }
2373
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: PeriodSelectorModule, imports: [CommonModule, SharedDhis2UiModule] }); }
2378
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2379
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorModule, declarations: [PeriodSelectorComponent, PeriodSelectorModalComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [PeriodSelectorComponent, PeriodSelectorModalComponent] }); }
2380
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorModule, imports: [CommonModule, SharedDhis2UiModule] }); }
2374
2381
  }
2375
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: PeriodSelectorModule, decorators: [{
2382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorModule, decorators: [{
2376
2383
  type: NgModule,
2377
2384
  args: [{
2378
2385
  imports: [CommonModule, SharedDhis2UiModule],
@@ -2523,12 +2530,13 @@ const DYNAMIC_ORG_UNITS = [
2523
2530
  USER_ORG_UNIT_CHILDREN,
2524
2531
  USER_ORG_UNIT_GRANDCHILDREN,
2525
2532
  ];
2526
- const OrgUnitDimension = ({ roots, selected, onSelect, hideGroupSelect, hideLevelSelect, hideUserOrgUnits, warning, orgUnitGroupPromise, orgUnitLevelPromise, }) => {
2533
+ const OrgUnitDimension = ({ roots, selected, onSelect, hideGroupSelect, hideLevelSelect, hideUserOrgUnits, allowSingleSelection, warning, orgUnitGroupPromise, orgUnitLevelPromise, }) => {
2527
2534
  const [ouLevels, setOuLevels] = useState([]);
2528
2535
  const [ouGroups, setOuGroups] = useState([]);
2529
2536
  const [selectedItems, setSelectedItems] = useState(selected);
2530
2537
  const dataEngine = useDataEngine();
2531
2538
  const onSelectItems = (selectedItem) => {
2539
+ console.log('WE ARE SELECTING HERE', selectedItem);
2532
2540
  const { id, checked, displayName, path } = selectedItem;
2533
2541
  let result = [...selectedItems];
2534
2542
  if (checked && DYNAMIC_ORG_UNITS.includes(id)) {
@@ -2707,11 +2715,13 @@ OrgUnitDimension.defaultProps = {
2707
2715
  hideGroupSelect: false,
2708
2716
  hideLevelSelect: false,
2709
2717
  hideUserOrgUnits: false,
2718
+ allowSingleSelection: false,
2710
2719
  };
2711
2720
  OrgUnitDimension.propTypes = {
2712
2721
  hideGroupSelect: PropTypes.bool,
2713
2722
  hideLevelSelect: PropTypes.bool,
2714
2723
  hideUserOrgUnits: PropTypes.bool,
2724
+ allowSingleSelection: PropTypes.bool,
2715
2725
  roots: PropTypes.arrayOf(PropTypes.string),
2716
2726
  selected: PropTypes.arrayOf(PropTypes.shape({
2717
2727
  id: PropTypes.string.isRequired,
@@ -2745,9 +2755,10 @@ class OrganisationUnitSelectionConfig {
2745
2755
  // license that can be found in the LICENSE file.
2746
2756
 
2747
2757
  class OrganisationUnitSelectorComponent extends ReactWrapperComponent {
2748
- constructor(elementRef, httpClient) {
2758
+ constructor(elementRef, httpClient, ngZone) {
2749
2759
  super(elementRef);
2750
2760
  this.httpClient = httpClient;
2761
+ this.ngZone = ngZone;
2751
2762
  this.selectedOrgUnits = [];
2752
2763
  this.orgUnitSelectionConfig = new OrganisationUnitSelectionConfig();
2753
2764
  this.selectOrgUnits = new EventEmitter();
@@ -2763,7 +2774,9 @@ class OrganisationUnitSelectorComponent extends ReactWrapperComponent {
2763
2774
  this.reactDomRoot = ReactDOM.createRoot(this.elementRef.nativeElement);
2764
2775
  const rootOrgUnits = await this.getRootOrgUnits();
2765
2776
  const config = await this.getAppConfig();
2766
- this.component = () => (React__default.createElement(Provider, { config: config }, React__default.createElement(OrgUnitDimension, { selected: this.selectedOrgUnits, hideGroupSelect: this.orgUnitSelectionConfig.hideGroupSelect, hideLevelSelect: this.orgUnitSelectionConfig.hideLevelSelect, hideUserOrgUnits: this.orgUnitSelectionConfig.hideUserOrgUnits, onSelect: (selectionEvent) => this.onSelectItems(selectionEvent), orgUnitGroupPromise: this.getOrgUnitGroups(), orgUnitLevelPromise: this.getOrgUnitLevels(), roots: rootOrgUnits })));
2777
+ 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(() => {
2778
+ this.onSelectItems(selectionEvent);
2779
+ }), orgUnitGroupPromise: this.getOrgUnitGroups(), orgUnitLevelPromise: this.getOrgUnitLevels(), roots: rootOrgUnits })));
2767
2780
  this.render();
2768
2781
  }
2769
2782
  async getAppConfig() {
@@ -2804,16 +2817,17 @@ class OrganisationUnitSelectorComponent extends ReactWrapperComponent {
2804
2817
  onSelectItems(selectionEvent) {
2805
2818
  this.selectOrgUnits.emit(selectionEvent.items);
2806
2819
  }
2807
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: OrganisationUnitSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
2808
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.4", type: OrganisationUnitSelectorComponent, 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 }); }
2820
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2821
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.7", 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 }); }
2809
2822
  }
2810
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: OrganisationUnitSelectorComponent, decorators: [{
2823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorComponent, decorators: [{
2811
2824
  type: Component,
2812
2825
  args: [{
2813
2826
  selector: 'ng-dhis2-ui-org-unit-selector',
2814
2827
  template: '<ng-container><ng-container>',
2828
+ standalone: false,
2815
2829
  }]
2816
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }], propDecorators: { selectedOrgUnits: [{
2830
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }, { type: i0.NgZone }], propDecorators: { selectedOrgUnits: [{
2817
2831
  type: Input
2818
2832
  }], orgUnitSelectionConfig: [{
2819
2833
  type: Input
@@ -2844,7 +2858,7 @@ class OrganisationUnitSelectorModalComponent extends ReactWrapperComponent {
2844
2858
  const config = await this.getAppConfig();
2845
2859
  this.component = () => {
2846
2860
  const [selected, setSelected] = useState(this.selectedOrgUnits);
2847
- return (React__default.createElement(Provider, { config: config }, React__default.createElement(Modal$1, { position: "middle", large: true },
2861
+ return (React__default.createElement(Provider, { config: config, plugin: false, parentAlertsAdd: undefined, showAlertsInPlugin: false }, React__default.createElement(Modal$1, { position: "middle", large: true },
2848
2862
  React__default.createElement(ModalTitle$1, null, "Organisation unit"),
2849
2863
  React__default.createElement(ModalContent$1, null,
2850
2864
  React__default.createElement(OrgUnitDimension, { selected: selected, hideGroupSelect: this.orgUnitSelectionConfig.hideGroupSelect, hideLevelSelect: this.orgUnitSelectionConfig.hideLevelSelect, hideUserOrgUnits: this.orgUnitSelectionConfig.hideUserOrgUnits, onSelect: (selectionEvent) => {
@@ -2905,12 +2919,12 @@ class OrganisationUnitSelectorModalComponent extends ReactWrapperComponent {
2905
2919
  onSelectItems(selectionEvent) {
2906
2920
  this.selectOrgUnits.emit(selectionEvent.items);
2907
2921
  }
2908
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: OrganisationUnitSelectorModalComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
2909
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.4", type: OrganisationUnitSelectorModalComponent, 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"] }); }
2922
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorModalComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
2923
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.7", 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"] }); }
2910
2924
  }
2911
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: OrganisationUnitSelectorModalComponent, decorators: [{
2925
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorModalComponent, decorators: [{
2912
2926
  type: Component,
2913
- args: [{ selector: 'ng-dhis2-ui-org-unit-selector-modal', template: '<ng-container><ng-container>', styles: ["::ng-deep .layer{z-index:2!important}\n"] }]
2927
+ 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"] }]
2914
2928
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }], propDecorators: { selectedOrgUnits: [{
2915
2929
  type: Input
2916
2930
  }], orgUnitSelectionConfig: [{
@@ -2924,13 +2938,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImpor
2924
2938
  }] } });
2925
2939
 
2926
2940
  class OrganisationUnitSelectorModule {
2927
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: OrganisationUnitSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2928
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.4", ngImport: i0, type: OrganisationUnitSelectorModule, declarations: [OrganisationUnitSelectorComponent,
2941
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2942
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorModule, declarations: [OrganisationUnitSelectorComponent,
2929
2943
  OrganisationUnitSelectorModalComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [OrganisationUnitSelectorComponent,
2930
2944
  OrganisationUnitSelectorModalComponent] }); }
2931
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: OrganisationUnitSelectorModule, imports: [CommonModule, SharedDhis2UiModule] }); }
2945
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorModule, imports: [CommonModule, SharedDhis2UiModule] }); }
2932
2946
  }
2933
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImport: i0, type: OrganisationUnitSelectorModule, decorators: [{
2947
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorModule, decorators: [{
2934
2948
  type: NgModule,
2935
2949
  args: [{
2936
2950
  imports: [CommonModule, SharedDhis2UiModule],
@@ -2953,5 +2967,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.4", ngImpor
2953
2967
  * Generated bundle index. Do not edit.
2954
2968
  */
2955
2969
 
2956
- export { ButtonComponent, ButtonModule, HeaderBarComponent, HeaderBarModule, OrganisationUnitSelectorComponent, OrganisationUnitSelectorModalComponent, OrganisationUnitSelectorModule, PeriodSelectorComponent, PeriodSelectorModalComponent, PeriodSelectorModule, ReactWrapperComponent, ReactWrapperModule };
2970
+ export { ButtonComponent, ButtonModule, HeaderBarComponent, HeaderBarModule, OrganisationUnitSelectionConfig, OrganisationUnitSelectorComponent, OrganisationUnitSelectorModalComponent, OrganisationUnitSelectorModule, PeriodSelectorComponent, PeriodSelectorModalComponent, PeriodSelectorModule, ReactWrapperComponent, ReactWrapperModule };
2957
2971
  //# sourceMappingURL=iapps-ng-dhis2-ui.mjs.map