@iapps/ng-dhis2-ui 1.0.7 → 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 (88) hide show
  1. package/fesm2022/iapps-ng-dhis2-ui.mjs +59 -52
  2. package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
  3. package/lib/modules/organisation-unit-selector/components/OrgUnitDimension.d.ts +3 -1
  4. package/lib/modules/organisation-unit-selector/index.d.ts +1 -0
  5. package/lib/shared/utils/predefinedDimensions.d.ts +6 -6
  6. package/package.json +6 -8
  7. package/esm2022/iapps-ng-dhis2-ui.mjs +0 -5
  8. package/esm2022/index.mjs +0 -6
  9. package/esm2022/lib/modules/button/button.component.mjs +0 -60
  10. package/esm2022/lib/modules/button/button.module.mjs +0 -19
  11. package/esm2022/lib/modules/button/index.mjs +0 -6
  12. package/esm2022/lib/modules/header-bar/header-bar.component.mjs +0 -38
  13. package/esm2022/lib/modules/header-bar/header-bar.module.mjs +0 -19
  14. package/esm2022/lib/modules/header-bar/index.mjs +0 -6
  15. package/esm2022/lib/modules/header-bar/models/header-bar-app.model.mjs +0 -20
  16. package/esm2022/lib/modules/header-bar/models/header-bar-data.model.mjs +0 -46
  17. package/esm2022/lib/modules/header-bar/models/header-bar-notification.model.mjs +0 -11
  18. package/esm2022/lib/modules/header-bar/models/index.mjs +0 -6
  19. package/esm2022/lib/modules/header-bar/utils/apps.mjs +0 -221
  20. package/esm2022/lib/modules/header-bar/utils/debug-info/debug-info-menu-item.mjs +0 -51
  21. package/esm2022/lib/modules/header-bar/utils/debug-info/debug-info-modal.mjs +0 -30
  22. package/esm2022/lib/modules/header-bar/utils/debug-info/debug-info-table.mjs +0 -39
  23. package/esm2022/lib/modules/header-bar/utils/debug-info/use-debug-info.mjs +0 -12
  24. package/esm2022/lib/modules/header-bar/utils/header-bar-context.mjs +0 -17
  25. package/esm2022/lib/modules/header-bar/utils/header-bar.mjs +0 -56
  26. package/esm2022/lib/modules/header-bar/utils/join-path.mjs +0 -5
  27. package/esm2022/lib/modules/header-bar/utils/logo-image.mjs +0 -52
  28. package/esm2022/lib/modules/header-bar/utils/logo.mjs +0 -35
  29. package/esm2022/lib/modules/header-bar/utils/notification-icon.mjs +0 -76
  30. package/esm2022/lib/modules/header-bar/utils/notifications.mjs +0 -35
  31. package/esm2022/lib/modules/header-bar/utils/profile/use-on-doc-click.mjs +0 -21
  32. package/esm2022/lib/modules/header-bar/utils/profile-menu/index.mjs +0 -2
  33. package/esm2022/lib/modules/header-bar/utils/profile-menu/profile-header.mjs +0 -95
  34. package/esm2022/lib/modules/header-bar/utils/profile-menu/profile-menu.mjs +0 -101
  35. package/esm2022/lib/modules/header-bar/utils/profile-menu/update-notification.mjs +0 -54
  36. package/esm2022/lib/modules/header-bar/utils/profile.mjs +0 -58
  37. package/esm2022/lib/modules/header-bar/utils/title.mjs +0 -22
  38. package/esm2022/lib/modules/organisation-unit-selector/components/OrgUnitDimension.mjs +0 -216
  39. package/esm2022/lib/modules/organisation-unit-selector/components/index.mjs +0 -6
  40. package/esm2022/lib/modules/organisation-unit-selector/components/styles/OrgUnitDimension.style.mjs +0 -83
  41. package/esm2022/lib/modules/organisation-unit-selector/components/utils/index.mjs +0 -6
  42. package/esm2022/lib/modules/organisation-unit-selector/components/utils/ouIdHelper/index.mjs +0 -18
  43. package/esm2022/lib/modules/organisation-unit-selector/components/utils/ouLevelUtils/index.mjs +0 -27
  44. package/esm2022/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.mjs +0 -91
  45. package/esm2022/lib/modules/organisation-unit-selector/containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.mjs +0 -114
  46. package/esm2022/lib/modules/organisation-unit-selector/index.mjs +0 -7
  47. package/esm2022/lib/modules/organisation-unit-selector/models/index.mjs +0 -5
  48. package/esm2022/lib/modules/organisation-unit-selector/models/organisation-unit-config.model.mjs +0 -16
  49. package/esm2022/lib/modules/organisation-unit-selector/organisation-unit-selector.module.mjs +0 -28
  50. package/esm2022/lib/modules/period-selector/components/FixedPeriodFilter.mjs +0 -44
  51. package/esm2022/lib/modules/period-selector/components/PeriodDimension.mjs +0 -41
  52. package/esm2022/lib/modules/period-selector/components/PeriodTransfer.mjs +0 -110
  53. package/esm2022/lib/modules/period-selector/components/RelativePeriodFilter.mjs +0 -28
  54. package/esm2022/lib/modules/period-selector/components/utils/fixedPeriods.mjs +0 -308
  55. package/esm2022/lib/modules/period-selector/components/utils/index.mjs +0 -5
  56. package/esm2022/lib/modules/period-selector/components/utils/periodTypes.mjs +0 -23
  57. package/esm2022/lib/modules/period-selector/components/utils/relativePeriods.mjs +0 -139
  58. package/esm2022/lib/modules/period-selector/containers/period-selector/period-selector.component.mjs +0 -69
  59. package/esm2022/lib/modules/period-selector/containers/period-selector-modal/period-selector-modal.component.mjs +0 -82
  60. package/esm2022/lib/modules/period-selector/index.mjs +0 -7
  61. package/esm2022/lib/modules/period-selector/period-selector.module.mjs +0 -20
  62. package/esm2022/lib/modules/react-wrapper/index.mjs +0 -6
  63. package/esm2022/lib/modules/react-wrapper/react-wrapper.component.mjs +0 -55
  64. package/esm2022/lib/modules/react-wrapper/react-wrapper.module.mjs +0 -18
  65. package/esm2022/lib/shared/assets/AssignedCategoriesIcon.mjs +0 -12
  66. package/esm2022/lib/shared/assets/DimensionItemIcons/PeriodIcon.mjs +0 -4
  67. package/esm2022/lib/shared/components/TransferOption.mjs +0 -130
  68. package/esm2022/lib/shared/components/index.mjs +0 -6
  69. package/esm2022/lib/shared/index.mjs +0 -7
  70. package/esm2022/lib/shared/shared.module.mjs +0 -18
  71. package/esm2022/lib/shared/styles/DimensionSelector.style.mjs +0 -39
  72. package/esm2022/lib/shared/styles/index.mjs +0 -5
  73. package/esm2022/lib/shared/utils/axis.mjs +0 -25
  74. package/esm2022/lib/shared/utils/axisGetDimension.mjs +0 -5
  75. package/esm2022/lib/shared/utils/axisHasDimension.mjs +0 -3
  76. package/esm2022/lib/shared/utils/dimension.mjs +0 -52
  77. package/esm2022/lib/shared/utils/dimensionGetItems.mjs +0 -6
  78. package/esm2022/lib/shared/utils/dimensionIs.mjs +0 -3
  79. package/esm2022/lib/shared/utils/dimensionIsEmpty.mjs +0 -5
  80. package/esm2022/lib/shared/utils/dimensionIsValid.mjs +0 -17
  81. package/esm2022/lib/shared/utils/dimensionSelectorHelper.mjs +0 -4
  82. package/esm2022/lib/shared/utils/index.mjs +0 -15
  83. package/esm2022/lib/shared/utils/layoutGetAllAxes.mjs +0 -7
  84. package/esm2022/lib/shared/utils/layoutGetAllDimensions.mjs +0 -6
  85. package/esm2022/lib/shared/utils/layoutGetDimension.mjs +0 -4
  86. package/esm2022/lib/shared/utils/layoutReplaceDimension.mjs +0 -17
  87. package/esm2022/lib/shared/utils/list.mjs +0 -15
  88. package/esm2022/lib/shared/utils/predefinedDimensions.mjs +0 -47
@@ -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: "18.1.1", ngImport: i0, type: SharedDhis2UiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
164
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.1", ngImport: i0, type: SharedDhis2UiModule, imports: [CommonModule] }); }
165
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.1", 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: "18.1.1", 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],
@@ -1172,13 +1172,14 @@ class ReactWrapperComponent {
1172
1172
  " "));
1173
1173
  }
1174
1174
  }
1175
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: ReactWrapperComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1176
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.1", 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 }); }
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: "18.1.1", 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: "18.1.1", ngImpor
1190
1191
  }] } });
1191
1192
 
1192
1193
  class ReactWrapperModule {
1193
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: ReactWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1194
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.1", ngImport: i0, type: ReactWrapperModule, declarations: [ReactWrapperComponent], imports: [CommonModule], exports: [ReactWrapperComponent] }); }
1195
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.1", 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: "18.1.1", 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: "18.1.1", 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: "18.1.1", 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: "18.1.1", 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: "18.1.1", ngImport: i0, type: HeaderBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1239
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.1", ngImport: i0, type: HeaderBarModule, declarations: [HeaderBarComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [HeaderBarComponent] }); }
1240
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.1", 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: "18.1.1", 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: "18.1.1", ngImport: i0, type: ButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1283
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", 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: "18.1.1", 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: "18.1.1", ngImpor
1307
1310
  }] } });
1308
1311
 
1309
1312
  class ButtonModule {
1310
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1311
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.1", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [ButtonComponent] }); }
1312
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.1", 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: "18.1.1", 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],
@@ -2299,12 +2302,12 @@ class PeriodSelectorModalComponent extends ReactWrapperComponent {
2299
2302
  onConfirm(selectedItems) {
2300
2303
  this.confirm.emit(selectedItems);
2301
2304
  }
2302
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: PeriodSelectorModalComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
2303
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", 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"] }); }
2304
2307
  }
2305
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: PeriodSelectorModalComponent, decorators: [{
2308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorModalComponent, decorators: [{
2306
2309
  type: Component,
2307
- 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"] }]
2308
2311
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }], propDecorators: { selectedPeriods: [{
2309
2312
  type: Input
2310
2313
  }], cancel: [{
@@ -2359,12 +2362,12 @@ class PeriodSelectorComponent extends ReactWrapperComponent {
2359
2362
  onSelectItems(selectionEvent) {
2360
2363
  this.selectPeriods.emit(selectionEvent.items);
2361
2364
  }
2362
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: PeriodSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2363
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", 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"] }); }
2364
2367
  }
2365
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: PeriodSelectorComponent, decorators: [{
2368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorComponent, decorators: [{
2366
2369
  type: Component,
2367
- args: [{ selector: 'ng-dhis2-ui-period-selector', template: `<ng-container></ng-container>`, styles: ["::ng-deep .content-container{z-index:0!important}\n"] }]
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"] }]
2368
2371
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }, { type: i0.NgZone }], propDecorators: { selectedPeriods: [{
2369
2372
  type: Input
2370
2373
  }], selectPeriods: [{
@@ -2372,11 +2375,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
2372
2375
  }] } });
2373
2376
 
2374
2377
  class PeriodSelectorModule {
2375
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: PeriodSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2376
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.1", ngImport: i0, type: PeriodSelectorModule, declarations: [PeriodSelectorComponent, PeriodSelectorModalComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [PeriodSelectorComponent, PeriodSelectorModalComponent] }); }
2377
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.1", 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] }); }
2378
2381
  }
2379
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: PeriodSelectorModule, decorators: [{
2382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: PeriodSelectorModule, decorators: [{
2380
2383
  type: NgModule,
2381
2384
  args: [{
2382
2385
  imports: [CommonModule, SharedDhis2UiModule],
@@ -2527,12 +2530,13 @@ const DYNAMIC_ORG_UNITS = [
2527
2530
  USER_ORG_UNIT_CHILDREN,
2528
2531
  USER_ORG_UNIT_GRANDCHILDREN,
2529
2532
  ];
2530
- const OrgUnitDimension = ({ roots, selected, onSelect, hideGroupSelect, hideLevelSelect, hideUserOrgUnits, warning, orgUnitGroupPromise, orgUnitLevelPromise, }) => {
2533
+ const OrgUnitDimension = ({ roots, selected, onSelect, hideGroupSelect, hideLevelSelect, hideUserOrgUnits, allowSingleSelection, warning, orgUnitGroupPromise, orgUnitLevelPromise, }) => {
2531
2534
  const [ouLevels, setOuLevels] = useState([]);
2532
2535
  const [ouGroups, setOuGroups] = useState([]);
2533
2536
  const [selectedItems, setSelectedItems] = useState(selected);
2534
2537
  const dataEngine = useDataEngine();
2535
2538
  const onSelectItems = (selectedItem) => {
2539
+ console.log('WE ARE SELECTING HERE', selectedItem);
2536
2540
  const { id, checked, displayName, path } = selectedItem;
2537
2541
  let result = [...selectedItems];
2538
2542
  if (checked && DYNAMIC_ORG_UNITS.includes(id)) {
@@ -2711,11 +2715,13 @@ OrgUnitDimension.defaultProps = {
2711
2715
  hideGroupSelect: false,
2712
2716
  hideLevelSelect: false,
2713
2717
  hideUserOrgUnits: false,
2718
+ allowSingleSelection: false,
2714
2719
  };
2715
2720
  OrgUnitDimension.propTypes = {
2716
2721
  hideGroupSelect: PropTypes.bool,
2717
2722
  hideLevelSelect: PropTypes.bool,
2718
2723
  hideUserOrgUnits: PropTypes.bool,
2724
+ allowSingleSelection: PropTypes.bool,
2719
2725
  roots: PropTypes.arrayOf(PropTypes.string),
2720
2726
  selected: PropTypes.arrayOf(PropTypes.shape({
2721
2727
  id: PropTypes.string.isRequired,
@@ -2768,7 +2774,7 @@ class OrganisationUnitSelectorComponent extends ReactWrapperComponent {
2768
2774
  this.reactDomRoot = ReactDOM.createRoot(this.elementRef.nativeElement);
2769
2775
  const rootOrgUnits = await this.getRootOrgUnits();
2770
2776
  const config = await this.getAppConfig();
2771
- 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.ngZone.run(() => {
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(() => {
2772
2778
  this.onSelectItems(selectionEvent);
2773
2779
  }), orgUnitGroupPromise: this.getOrgUnitGroups(), orgUnitLevelPromise: this.getOrgUnitLevels(), roots: rootOrgUnits })));
2774
2780
  this.render();
@@ -2811,14 +2817,15 @@ class OrganisationUnitSelectorComponent extends ReactWrapperComponent {
2811
2817
  onSelectItems(selectionEvent) {
2812
2818
  this.selectOrgUnits.emit(selectionEvent.items);
2813
2819
  }
2814
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: OrganisationUnitSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
2815
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", 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 }); }
2816
2822
  }
2817
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: OrganisationUnitSelectorComponent, decorators: [{
2823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorComponent, decorators: [{
2818
2824
  type: Component,
2819
2825
  args: [{
2820
2826
  selector: 'ng-dhis2-ui-org-unit-selector',
2821
2827
  template: '<ng-container><ng-container>',
2828
+ standalone: false,
2822
2829
  }]
2823
2830
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }, { type: i0.NgZone }], propDecorators: { selectedOrgUnits: [{
2824
2831
  type: Input
@@ -2851,7 +2858,7 @@ class OrganisationUnitSelectorModalComponent extends ReactWrapperComponent {
2851
2858
  const config = await this.getAppConfig();
2852
2859
  this.component = () => {
2853
2860
  const [selected, setSelected] = useState(this.selectedOrgUnits);
2854
- 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 },
2855
2862
  React__default.createElement(ModalTitle$1, null, "Organisation unit"),
2856
2863
  React__default.createElement(ModalContent$1, null,
2857
2864
  React__default.createElement(OrgUnitDimension, { selected: selected, hideGroupSelect: this.orgUnitSelectionConfig.hideGroupSelect, hideLevelSelect: this.orgUnitSelectionConfig.hideLevelSelect, hideUserOrgUnits: this.orgUnitSelectionConfig.hideUserOrgUnits, onSelect: (selectionEvent) => {
@@ -2912,12 +2919,12 @@ class OrganisationUnitSelectorModalComponent extends ReactWrapperComponent {
2912
2919
  onSelectItems(selectionEvent) {
2913
2920
  this.selectOrgUnits.emit(selectionEvent.items);
2914
2921
  }
2915
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: OrganisationUnitSelectorModalComponent, deps: [{ token: i0.ElementRef }, { token: i1.NgxDhis2HttpClientService }], target: i0.ɵɵFactoryTarget.Component }); }
2916
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", 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"] }); }
2917
2924
  }
2918
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: OrganisationUnitSelectorModalComponent, decorators: [{
2925
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorModalComponent, decorators: [{
2919
2926
  type: Component,
2920
- 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"] }]
2921
2928
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NgxDhis2HttpClientService }], propDecorators: { selectedOrgUnits: [{
2922
2929
  type: Input
2923
2930
  }], orgUnitSelectionConfig: [{
@@ -2931,13 +2938,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
2931
2938
  }] } });
2932
2939
 
2933
2940
  class OrganisationUnitSelectorModule {
2934
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: OrganisationUnitSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2935
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.1", 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,
2936
2943
  OrganisationUnitSelectorModalComponent], imports: [CommonModule, SharedDhis2UiModule], exports: [OrganisationUnitSelectorComponent,
2937
2944
  OrganisationUnitSelectorModalComponent] }); }
2938
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.1", 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] }); }
2939
2946
  }
2940
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: OrganisationUnitSelectorModule, decorators: [{
2947
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: OrganisationUnitSelectorModule, decorators: [{
2941
2948
  type: NgModule,
2942
2949
  args: [{
2943
2950
  imports: [CommonModule, SharedDhis2UiModule],
@@ -2960,5 +2967,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
2960
2967
  * Generated bundle index. Do not edit.
2961
2968
  */
2962
2969
 
2963
- 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 };
2964
2971
  //# sourceMappingURL=iapps-ng-dhis2-ui.mjs.map