@iapps/ng-dhis2-ui 1.2.117 → 1.2.118

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.
@@ -2919,6 +2919,7 @@ class OrganisationUnitSelectionConfig {
2919
2919
  this.batchSize = params?.batchSize;
2920
2920
  this.additionalQueryFields = params?.additionalQueryFields;
2921
2921
  this.allowCaching = params?.allowCaching;
2922
+ this.rootOrgUnits = params?.rootOrgUnits;
2922
2923
  }
2923
2924
  }
2924
2925
 
@@ -3047,8 +3048,8 @@ class OrganisationUnitSelectorModalComponent extends ReactWrapperModule {
3047
3048
  if (!this.elementRef)
3048
3049
  throw new Error('No element ref');
3049
3050
  this.reactDomRoot = ReactDOM.createRoot(this.elementRef.nativeElement);
3050
- const rootOrgUnits = this.rootOrgUnits && this.rootOrgUnits.length > 0
3051
- ? this.rootOrgUnits
3051
+ const rootOrgUnits = this.orgUnitSelectionConfig.rootOrgUnits && this.orgUnitSelectionConfig.rootOrgUnits.length > 0
3052
+ ? this.orgUnitSelectionConfig.rootOrgUnits
3052
3053
  : await this.getRootOrgUnits();
3053
3054
  const config = await this.getAppConfig();
3054
3055
  if (config) {
@@ -3135,7 +3136,7 @@ class OrganisationUnitSelectorModalComponent extends ReactWrapperModule {
3135
3136
  this.selectOrgUnits.emit(selectionEvent.items);
3136
3137
  }
3137
3138
  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 }); }
3138
- 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", rootOrgUnits: "rootOrgUnits" }, 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"] }); }
3139
+ 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"] }); }
3139
3140
  }
3140
3141
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: OrganisationUnitSelectorModalComponent, decorators: [{
3141
3142
  type: Component,
@@ -3144,8 +3145,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
3144
3145
  type: Input
3145
3146
  }], orgUnitSelectionConfig: [{
3146
3147
  type: Input
3147
- }], rootOrgUnits: [{
3148
- type: Input
3149
3148
  }], selectOrgUnits: [{
3150
3149
  type: Output
3151
3150
  }], cancel: [{