survey-angular-ui 1.12.46 → 1.12.47
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.
|
@@ -992,7 +992,15 @@
|
|
|
992
992
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
993
993
|
}
|
|
994
994
|
PopupService.prototype.createComponent = function (popupViewModel) {
|
|
995
|
-
var portalHost
|
|
995
|
+
var portalHost;
|
|
996
|
+
if (Number.parseInt(i0.VERSION.major) > 18) {
|
|
997
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
998
|
+
//@ts-ignore
|
|
999
|
+
portalHost = new portal.DomPortalOutlet(popupViewModel.container, this.applicationRef, this.injector);
|
|
1000
|
+
}
|
|
1001
|
+
else {
|
|
1002
|
+
portalHost = new portal.DomPortalOutlet(popupViewModel.container, this.componentFactoryResolver, this.applicationRef, this.injector);
|
|
1003
|
+
}
|
|
996
1004
|
var portal$1 = new portal.ComponentPortal(PopupBaseContainerComponent);
|
|
997
1005
|
var componentRef = portalHost.attach(portal$1);
|
|
998
1006
|
popupViewModel.setComponentElement(popupViewModel.container.children[0]);
|