survey-creator-angular 2.5.22 → 2.5.23
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-creator-angular.umd.js +28 -10
- package/bundles/survey-creator-angular.umd.js.map +1 -1
- package/esm2015/page-navigator/page-navigator.component.js +3 -5
- package/esm2015/tabs/preview/simulator.component.js +26 -4
- package/fesm2015/survey-creator-angular.js +27 -7
- package/fesm2015/survey-creator-angular.js.map +1 -1
- package/package.json +4 -4
- package/tabs/preview/simulator.component.d.ts +12 -1
|
@@ -965,10 +965,8 @@
|
|
|
965
965
|
return ["pagesController", "pageEditMode"];
|
|
966
966
|
};
|
|
967
967
|
PageNavigatorComponent.prototype.ngAfterViewInit = function () {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
this.model.attachToUI(el);
|
|
971
|
-
}
|
|
968
|
+
var el = this.container.nativeElement;
|
|
969
|
+
this.model.attachToUI(el);
|
|
972
970
|
};
|
|
973
971
|
PageNavigatorComponent.prototype.ngOnDestroy = function () {
|
|
974
972
|
_super.prototype.ngOnDestroy.call(this);
|
|
@@ -1694,9 +1692,29 @@
|
|
|
1694
1692
|
|
|
1695
1693
|
var SimulatorComponent = /** @class */ (function (_super) {
|
|
1696
1694
|
__extends(SimulatorComponent, _super);
|
|
1697
|
-
function SimulatorComponent() {
|
|
1698
|
-
return _super
|
|
1699
|
-
}
|
|
1695
|
+
function SimulatorComponent(changeDetectorRef, viewContainerRef) {
|
|
1696
|
+
return _super.call(this, changeDetectorRef, viewContainerRef) || this;
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* `BaseAngular` defers updates while `model.isRendering` is true during `ngDoCheck`, so
|
|
1700
|
+
* `popupOverlayHeight` (and frame-driving props) would not refresh the embedded template in time.
|
|
1701
|
+
* These properties must run synchronous `detectChanges` so `[style.--sv-popup-overlay-height]` applies.
|
|
1702
|
+
*/
|
|
1703
|
+
SimulatorComponent.prototype.getPropertiesToUpdateSync = function () {
|
|
1704
|
+
return ["popupOverlayHeight", "landscape", "device", "survey"];
|
|
1705
|
+
};
|
|
1706
|
+
SimulatorComponent.prototype.ngAfterViewInit = function () {
|
|
1707
|
+
this.model.queueSurveyLayoutRefresh();
|
|
1708
|
+
};
|
|
1709
|
+
SimulatorComponent.prototype.ngOnDestroy = function () {
|
|
1710
|
+
this.model.cancelSurveyLayoutRefresh();
|
|
1711
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
1712
|
+
};
|
|
1713
|
+
SimulatorComponent.prototype.afterUpdate = function (isSync) {
|
|
1714
|
+
if (isSync === void 0) { isSync = false; }
|
|
1715
|
+
_super.prototype.afterUpdate.call(this, isSync);
|
|
1716
|
+
this.model.queueSurveyLayoutRefresh();
|
|
1717
|
+
};
|
|
1700
1718
|
SimulatorComponent.prototype.getModel = function () {
|
|
1701
1719
|
return this.model;
|
|
1702
1720
|
};
|
|
@@ -1719,8 +1737,8 @@
|
|
|
1719
1737
|
};
|
|
1720
1738
|
return SimulatorComponent;
|
|
1721
1739
|
}(i1.BaseAngular));
|
|
1722
|
-
SimulatorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SimulatorComponent, deps:
|
|
1723
|
-
SimulatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SimulatorComponent, selector: "survey-simulator", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.getRootCss()\" (keydown)=\"model.tryToZoom($event, $event)\" (mouseover)=\"activateZoom()\"\n (mouseout)=\"deactivateZoom()\">\n <div *ngIf=\"model.hasFrame\" class=\"svd-simulator-wrapper\" id=\"svd-simulator-wrapper\"\n [style.width]=\"simulatorFrame.frameWidth + 'px'\" [style.height]=\"simulatorFrame.frameHeight + 'px'\">\n <div class=\"svd-simulator\" [style.width]=\"simulatorFrame.deviceWidth + 'px'\"\n [style.height]=\"simulatorFrame.deviceHeight + 'px'\"\n [style.transform]=\"'scale(' + simulatorFrame.scale + ') translate(-50%, -50%)'\">\n <div class=\"svd-simulator-content\">\n <ng-template [component]=\"{ name: 'survey-widget', data: { model: model.survey } }\"></ng-template>\n </div>\n </div>\n </div>\n <div *ngIf=\"!model.hasFrame\" class=\"svd-simulator-content\">\n <ng-template [component]=\"{ name: 'survey-widget', data: { model: model.survey } }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1740
|
+
SimulatorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SimulatorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1741
|
+
SimulatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SimulatorComponent, selector: "survey-simulator", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.getRootCss()\" (keydown)=\"model.tryToZoom($event, $event)\" (mouseover)=\"activateZoom()\"\n (mouseout)=\"deactivateZoom()\">\n <div *ngIf=\"model.hasFrame\" class=\"svd-simulator-wrapper\" id=\"svd-simulator-wrapper\"\n [style.width]=\"simulatorFrame.frameWidth + 'px'\" [style.height]=\"simulatorFrame.frameHeight + 'px'\">\n <div class=\"svd-simulator\" [style.width]=\"simulatorFrame.deviceWidth + 'px'\"\n [style.height]=\"simulatorFrame.deviceHeight + 'px'\"\n [style.transform]=\"'scale(' + simulatorFrame.scale + ') translate(-50%, -50%)'\">\n <div class=\"svd-simulator-content\"\n [style.--sv-popup-overlay-height]=\"model.popupOverlayHeight || null\">\n <ng-template [component]=\"{ name: 'survey-widget', data: { model: model.survey } }\"></ng-template>\n </div>\n </div>\n </div>\n <div *ngIf=\"!model.hasFrame\" class=\"svd-simulator-content\"\n [style.--sv-popup-overlay-height]=\"model.popupOverlayHeight || null\">\n <ng-template [component]=\"{ name: 'survey-widget', data: { model: model.survey } }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1724
1742
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SimulatorComponent, decorators: [{
|
|
1725
1743
|
type: i0.Component,
|
|
1726
1744
|
args: [{
|
|
@@ -1728,7 +1746,7 @@
|
|
|
1728
1746
|
templateUrl: "./simulator.component.html",
|
|
1729
1747
|
styles: [":host { display: none; }"]
|
|
1730
1748
|
}]
|
|
1731
|
-
}], propDecorators: { model: [{
|
|
1749
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ViewContainerRef }]; }, propDecorators: { model: [{
|
|
1732
1750
|
type: i0.Input
|
|
1733
1751
|
}] } });
|
|
1734
1752
|
|