survey-angular-ui 1.12.46 → 1.12.48
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.
- package/bundles/survey-angular-ui.umd.js +10 -1
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/esm2015/components/popup/popup.service.js +11 -3
- package/esm2015/survey-content.component.js +2 -1
- package/fesm2015/survey-angular-ui.js +11 -2
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
|
@@ -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]);
|
|
@@ -1647,6 +1655,7 @@
|
|
|
1647
1655
|
};
|
|
1648
1656
|
SurveyContentComponent.prototype.ngAfterViewChecked = function () {
|
|
1649
1657
|
if (!!this.model && this.isSurveyUpdated) {
|
|
1658
|
+
this.isSurveyUpdated = false;
|
|
1650
1659
|
this.model.afterRenderSurvey(this.rootEl.nativeElement);
|
|
1651
1660
|
this.model.startTimerFromUI();
|
|
1652
1661
|
}
|