@iapps/ng-dhis2-ui 1.2.116 → 1.2.117
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.
|
@@ -3047,7 +3047,9 @@ class OrganisationUnitSelectorModalComponent extends ReactWrapperModule {
|
|
|
3047
3047
|
if (!this.elementRef)
|
|
3048
3048
|
throw new Error('No element ref');
|
|
3049
3049
|
this.reactDomRoot = ReactDOM.createRoot(this.elementRef.nativeElement);
|
|
3050
|
-
const rootOrgUnits =
|
|
3050
|
+
const rootOrgUnits = this.rootOrgUnits && this.rootOrgUnits.length > 0
|
|
3051
|
+
? this.rootOrgUnits
|
|
3052
|
+
: await this.getRootOrgUnits();
|
|
3051
3053
|
const config = await this.getAppConfig();
|
|
3052
3054
|
if (config) {
|
|
3053
3055
|
this.component = () => {
|
|
@@ -3133,7 +3135,7 @@ class OrganisationUnitSelectorModalComponent extends ReactWrapperModule {
|
|
|
3133
3135
|
this.selectOrgUnits.emit(selectionEvent.items);
|
|
3134
3136
|
}
|
|
3135
3137
|
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 }); }
|
|
3136
|
-
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"] }); }
|
|
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"] }); }
|
|
3137
3139
|
}
|
|
3138
3140
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: OrganisationUnitSelectorModalComponent, decorators: [{
|
|
3139
3141
|
type: Component,
|
|
@@ -3142,6 +3144,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
3142
3144
|
type: Input
|
|
3143
3145
|
}], orgUnitSelectionConfig: [{
|
|
3144
3146
|
type: Input
|
|
3147
|
+
}], rootOrgUnits: [{
|
|
3148
|
+
type: Input
|
|
3145
3149
|
}], selectOrgUnits: [{
|
|
3146
3150
|
type: Output
|
|
3147
3151
|
}], cancel: [{
|