survey-creator-angular 1.12.52 → 1.12.53
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/angular-ui.module.d.ts +5 -4
- package/bundles/survey-creator-angular.umd.js +104 -52
- package/bundles/survey-creator-angular.umd.js.map +1 -1
- package/esm2015/angular-ui.module.js +4 -3
- package/esm2015/page-wrapper.component.js +53 -0
- package/esm2015/tabs/designer/designer-pages.component.js +3 -3
- package/esm2015/tabs/designer/designer-survey.component.js +6 -5
- package/esm2015/tabs/designer/designer.component.js +3 -3
- package/fesm2015/survey-creator-angular.js +95 -47
- package/fesm2015/survey-creator-angular.js.map +1 -1
- package/package.json +4 -4
- package/page-wrapper.component.d.ts +21 -0
package/angular-ui.module.d.ts
CHANGED
|
@@ -73,11 +73,12 @@ import * as i71 from "./custom-questions/text-with-reset.component";
|
|
|
73
73
|
import * as i72 from "./custom-questions/boolean-switch.component";
|
|
74
74
|
import * as i73 from "./tabs/translation/translate-from-action.component";
|
|
75
75
|
import * as i74 from "./add-question-type-selector.component";
|
|
76
|
-
import * as i75 from "
|
|
77
|
-
import * as i76 from "@angular/
|
|
78
|
-
import * as i77 from "
|
|
76
|
+
import * as i75 from "./page-wrapper.component";
|
|
77
|
+
import * as i76 from "@angular/common";
|
|
78
|
+
import * as i77 from "@angular/forms";
|
|
79
|
+
import * as i78 from "survey-angular-ui";
|
|
79
80
|
export declare class SurveyCreatorModule {
|
|
80
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyCreatorModule, never>;
|
|
81
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SurveyCreatorModule, [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.TabbledMenuComponent, typeof i7.TabbedMenuItemComponent, typeof i8.TabbedMenuItemWrapperComponent, typeof i9.SidebarComponent, typeof i10.SidebarPageComponent, typeof i11.SidebarDefaultHeaderComponent, typeof i12.ObjectSelectorComponent, typeof i13.SidebarPropertyGridHeaderComponent, typeof i14.PropertyGridPlaceholderComponent, typeof i15.SidebarHeaderComponent, typeof i16.TabControlComponent, typeof i17.TabsComponent, typeof i18.TabButtonComponent, typeof i19.PropertyGridComponent, typeof i20.SearchComponent, typeof i21.ScrollComponent, typeof i22.TextareaJsonEditorComponent, typeof i23.AceJsonEditorComponent, typeof i24.LogicTabComponent, typeof i25.LogicAddButtonComponent, typeof i26.ActionButtonComponent, typeof i27.QuestionPgErrorComponent, typeof i28.SurfacePlaceholderComponent, typeof i29.SwitcherComponent, typeof i30.LinkValueQuestionComponent, typeof i31.EmbeddedSurveyQuestionComponent, typeof i32.TranslationTabComponent, typeof i33.TranslationSkeletonComponent, typeof i34.SimulatorComponent, typeof i35.TestTabComponent, typeof i36.TestAgainActionComponent, typeof i37.SurveyResultsComponent, typeof i38.SurveyResultsTableRowComponent, typeof i39.ThemeTabComponent, typeof i40.AdaptiveToolboxComponent, typeof i41.ToolboxToolComponent, typeof i42.ToolboxItemComponent, typeof i43.ToolboxItemGroupComponent, typeof i44.ToolboxListComponent, typeof i45.ToolboxCategoryComponent, typeof i46.StringEditorComponent, typeof i47.PageNavigatorComponent, typeof i48.PageNavigatorItemComponent, typeof i49.QuestionDropdownDesignerComponent, typeof i49.QuestionDropdownAdornerDesignerComponent, typeof i50.QuestionImageDesignerComponent, typeof i50.QuestionImageAdornerDesignerComponent, typeof i51.ItemValueDesignerComponent, typeof i52.ImageItemValueDesignerComponent, typeof i53.LogicOperatorComponent, typeof i54.MatrixCellComponent, typeof i55.QuestionEditorComponent, typeof i56.CellQuestionDropdownComponent, typeof i57.CreatorRowComponent, typeof i58.DesignerPagesComponent, typeof i59.DesignerSurveyComponent, typeof i60.CellQuestionComponent, typeof i61.QuestionWidgetDesignerComponent, typeof i62.CreatorLogoImageComponent, typeof i63.QuestionRatingAdornerDesignerComponent, typeof i63.QuestionRatingDesignerComponent, typeof i64.QuestionSpinEditorComponent, typeof i65.ColorItemComponent, typeof i66.QuestionColorComponent, typeof i67.QuestionFileEditorComponent, typeof i68.AddQuestionButtonComponent, typeof i69.QuestionBannerComponent, typeof i70.JsonErrorItemComponent, typeof i71.QuestionTextWithResetComponent, typeof i72.BooleanSwitchComponent, typeof i73.TranslateFromAction, typeof i74.AddQuestionTypeSelectorComponent], [typeof
|
|
82
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SurveyCreatorModule, [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.TabbledMenuComponent, typeof i7.TabbedMenuItemComponent, typeof i8.TabbedMenuItemWrapperComponent, typeof i9.SidebarComponent, typeof i10.SidebarPageComponent, typeof i11.SidebarDefaultHeaderComponent, typeof i12.ObjectSelectorComponent, typeof i13.SidebarPropertyGridHeaderComponent, typeof i14.PropertyGridPlaceholderComponent, typeof i15.SidebarHeaderComponent, typeof i16.TabControlComponent, typeof i17.TabsComponent, typeof i18.TabButtonComponent, typeof i19.PropertyGridComponent, typeof i20.SearchComponent, typeof i21.ScrollComponent, typeof i22.TextareaJsonEditorComponent, typeof i23.AceJsonEditorComponent, typeof i24.LogicTabComponent, typeof i25.LogicAddButtonComponent, typeof i26.ActionButtonComponent, typeof i27.QuestionPgErrorComponent, typeof i28.SurfacePlaceholderComponent, typeof i29.SwitcherComponent, typeof i30.LinkValueQuestionComponent, typeof i31.EmbeddedSurveyQuestionComponent, typeof i32.TranslationTabComponent, typeof i33.TranslationSkeletonComponent, typeof i34.SimulatorComponent, typeof i35.TestTabComponent, typeof i36.TestAgainActionComponent, typeof i37.SurveyResultsComponent, typeof i38.SurveyResultsTableRowComponent, typeof i39.ThemeTabComponent, typeof i40.AdaptiveToolboxComponent, typeof i41.ToolboxToolComponent, typeof i42.ToolboxItemComponent, typeof i43.ToolboxItemGroupComponent, typeof i44.ToolboxListComponent, typeof i45.ToolboxCategoryComponent, typeof i46.StringEditorComponent, typeof i47.PageNavigatorComponent, typeof i48.PageNavigatorItemComponent, typeof i49.QuestionDropdownDesignerComponent, typeof i49.QuestionDropdownAdornerDesignerComponent, typeof i50.QuestionImageDesignerComponent, typeof i50.QuestionImageAdornerDesignerComponent, typeof i51.ItemValueDesignerComponent, typeof i52.ImageItemValueDesignerComponent, typeof i53.LogicOperatorComponent, typeof i54.MatrixCellComponent, typeof i55.QuestionEditorComponent, typeof i56.CellQuestionDropdownComponent, typeof i57.CreatorRowComponent, typeof i58.DesignerPagesComponent, typeof i59.DesignerSurveyComponent, typeof i60.CellQuestionComponent, typeof i61.QuestionWidgetDesignerComponent, typeof i62.CreatorLogoImageComponent, typeof i63.QuestionRatingAdornerDesignerComponent, typeof i63.QuestionRatingDesignerComponent, typeof i64.QuestionSpinEditorComponent, typeof i65.ColorItemComponent, typeof i66.QuestionColorComponent, typeof i67.QuestionFileEditorComponent, typeof i68.AddQuestionButtonComponent, typeof i69.QuestionBannerComponent, typeof i70.JsonErrorItemComponent, typeof i71.QuestionTextWithResetComponent, typeof i72.BooleanSwitchComponent, typeof i73.TranslateFromAction, typeof i74.AddQuestionTypeSelectorComponent, typeof i75.PageWrapperComponent], [typeof i76.CommonModule, typeof i77.FormsModule, typeof i78.SurveyModule], [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.TabbledMenuComponent, typeof i7.TabbedMenuItemComponent, typeof i8.TabbedMenuItemWrapperComponent, typeof i9.SidebarComponent, typeof i10.SidebarPageComponent, typeof i11.SidebarDefaultHeaderComponent, typeof i13.SidebarPropertyGridHeaderComponent, typeof i14.PropertyGridPlaceholderComponent, typeof i15.SidebarHeaderComponent, typeof i16.TabControlComponent, typeof i17.TabsComponent, typeof i18.TabButtonComponent, typeof i12.ObjectSelectorComponent, typeof i19.PropertyGridComponent, typeof i20.SearchComponent, typeof i21.ScrollComponent, typeof i22.TextareaJsonEditorComponent, typeof i23.AceJsonEditorComponent, typeof i24.LogicTabComponent, typeof i25.LogicAddButtonComponent, typeof i26.ActionButtonComponent, typeof i27.QuestionPgErrorComponent, typeof i28.SurfacePlaceholderComponent, typeof i29.SwitcherComponent, typeof i30.LinkValueQuestionComponent, typeof i31.EmbeddedSurveyQuestionComponent, typeof i32.TranslationTabComponent, typeof i33.TranslationSkeletonComponent, typeof i34.SimulatorComponent, typeof i35.TestTabComponent, typeof i36.TestAgainActionComponent, typeof i37.SurveyResultsComponent, typeof i38.SurveyResultsTableRowComponent, typeof i39.ThemeTabComponent, typeof i40.AdaptiveToolboxComponent, typeof i41.ToolboxToolComponent, typeof i42.ToolboxItemComponent, typeof i43.ToolboxItemGroupComponent, typeof i44.ToolboxListComponent, typeof i45.ToolboxCategoryComponent, typeof i46.StringEditorComponent, typeof i47.PageNavigatorComponent, typeof i48.PageNavigatorItemComponent, typeof i49.QuestionDropdownDesignerComponent, typeof i49.QuestionDropdownAdornerDesignerComponent, typeof i50.QuestionImageDesignerComponent, typeof i50.QuestionImageAdornerDesignerComponent, typeof i51.ItemValueDesignerComponent, typeof i52.ImageItemValueDesignerComponent, typeof i53.LogicOperatorComponent, typeof i54.MatrixCellComponent, typeof i55.QuestionEditorComponent, typeof i56.CellQuestionDropdownComponent, typeof i57.CreatorRowComponent, typeof i58.DesignerPagesComponent, typeof i59.DesignerSurveyComponent, typeof i60.CellQuestionComponent, typeof i61.QuestionWidgetDesignerComponent, typeof i62.CreatorLogoImageComponent, typeof i63.QuestionRatingAdornerDesignerComponent, typeof i63.QuestionRatingDesignerComponent, typeof i64.QuestionSpinEditorComponent, typeof i65.ColorItemComponent, typeof i66.QuestionColorComponent, typeof i67.QuestionFileEditorComponent, typeof i68.AddQuestionButtonComponent, typeof i69.QuestionBannerComponent, typeof i70.JsonErrorItemComponent, typeof i71.QuestionTextWithResetComponent, typeof i72.BooleanSwitchComponent, typeof i73.TranslateFromAction, typeof i74.AddQuestionTypeSelectorComponent]>;
|
|
82
83
|
static ɵinj: i0.ɵɵInjectorDeclaration<SurveyCreatorModule>;
|
|
83
84
|
}
|
|
@@ -963,67 +963,57 @@
|
|
|
963
963
|
}] } });
|
|
964
964
|
i1.AngularComponentFactory.Instance.registerComponent("svc-surface-placeholder", SurfacePlaceholderComponent);
|
|
965
965
|
|
|
966
|
-
var
|
|
967
|
-
__extends(
|
|
968
|
-
function
|
|
969
|
-
|
|
966
|
+
var PageWrapperComponent = /** @class */ (function (_super) {
|
|
967
|
+
__extends(PageWrapperComponent, _super);
|
|
968
|
+
function PageWrapperComponent(viewContainerRef, changeDetectorRef) {
|
|
969
|
+
var _this = _super.call(this, viewContainerRef) || this;
|
|
970
|
+
_this.changeDetectorRef = changeDetectorRef;
|
|
971
|
+
_this.id = "PageWrapperCallback_" + ++PageWrapperComponent.ID;
|
|
972
|
+
return _this;
|
|
970
973
|
}
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
};
|
|
989
|
-
PageDesignerComponent.prototype.getPropertiesToTrack = function () {
|
|
990
|
-
return ["creator", "model"];
|
|
991
|
-
};
|
|
992
|
-
PageDesignerComponent.prototype.ngAfterViewChecked = function () {
|
|
993
|
-
var _a;
|
|
994
|
-
_super.prototype.ngAfterViewChecked.call(this);
|
|
995
|
-
if (this.adorner && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
996
|
-
this.adorner.rootElement = this.container.nativeElement;
|
|
974
|
+
PageWrapperComponent.prototype.setupCallback = function (page) {
|
|
975
|
+
var _this = this;
|
|
976
|
+
if (!page)
|
|
977
|
+
return;
|
|
978
|
+
page.registerFunctionOnPropertyValueChanged("name", function () {
|
|
979
|
+
_this.embeddedView ? _this.embeddedView.detectChanges() : _this.changeDetectorRef.detectChanges();
|
|
980
|
+
}, this.id);
|
|
981
|
+
};
|
|
982
|
+
PageWrapperComponent.prototype.clearCallback = function (page) {
|
|
983
|
+
if (!page)
|
|
984
|
+
return;
|
|
985
|
+
page.unRegisterFunctionOnPropertyValueChanged("name");
|
|
986
|
+
};
|
|
987
|
+
PageWrapperComponent.prototype.ngOnChanges = function (changes) {
|
|
988
|
+
if (changes["page"] && changes["page"].currentValue !== changes["page"].previousValue) {
|
|
989
|
+
this.clearCallback(changes["page"].previousValue);
|
|
990
|
+
this.setupCallback(changes["page"].currentValue);
|
|
997
991
|
}
|
|
998
992
|
};
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
this.adorner.dispose();
|
|
993
|
+
PageWrapperComponent.prototype.ngOnDestroy = function () {
|
|
994
|
+
this.clearCallback(this.page);
|
|
1002
995
|
};
|
|
1003
|
-
return
|
|
1004
|
-
}(
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
i0__namespace.ɵɵ
|
|
996
|
+
return PageWrapperComponent;
|
|
997
|
+
}(i1.EmbeddedViewContentComponent));
|
|
998
|
+
PageWrapperComponent.ID = 0;
|
|
999
|
+
PageWrapperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageWrapperComponent, deps: [{ token: i0__namespace.ViewContainerRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1000
|
+
PageWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PageWrapperComponent, selector: "svc-page-wrapper", inputs: { page: "page", isGhost: "isGhost", creator: "creator", className: "className" }, usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div\n [class]=\"className\"\n [attr.data-sv-drop-target-page]=\"page?.name\"\n [attr.data-sv-drop-target-survey-element]=\"isGhost ? 'newGhostPage' : page?.name\"\n >\n <ng-container *ngIf=\"!!page\">\n <ng-template [component]=\"{ name: 'svc-page', data: { model: page, creator, survey: creator.survey, isGhost }}\"></ng-template>\n </ng-container>\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"] }] });
|
|
1001
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageWrapperComponent, decorators: [{
|
|
1008
1002
|
type: i0.Component,
|
|
1009
1003
|
args: [{
|
|
1010
|
-
selector: "svc-page",
|
|
1011
|
-
templateUrl: "./page.component.html",
|
|
1004
|
+
selector: "svc-page-wrapper",
|
|
1005
|
+
templateUrl: "./page-wrapper.component.html",
|
|
1012
1006
|
styles: [":host { display: none; }"]
|
|
1013
1007
|
}]
|
|
1014
|
-
}], propDecorators: {
|
|
1008
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ViewContainerRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { page: [{
|
|
1015
1009
|
type: i0.Input
|
|
1016
|
-
}],
|
|
1010
|
+
}], isGhost: [{
|
|
1017
1011
|
type: i0.Input
|
|
1018
1012
|
}], creator: [{
|
|
1019
1013
|
type: i0.Input
|
|
1020
|
-
}],
|
|
1014
|
+
}], className: [{
|
|
1021
1015
|
type: i0.Input
|
|
1022
|
-
}], container: [{
|
|
1023
|
-
type: i0.ViewChild,
|
|
1024
|
-
args: ["container", { read: i0.ElementRef }]
|
|
1025
1016
|
}] } });
|
|
1026
|
-
i1.AngularComponentFactory.Instance.registerComponent("svc-page", PageDesignerComponent);
|
|
1027
1017
|
|
|
1028
1018
|
var DesignerPagesComponent = /** @class */ (function (_super) {
|
|
1029
1019
|
__extends(DesignerPagesComponent, _super);
|
|
@@ -1050,7 +1040,7 @@
|
|
|
1050
1040
|
return DesignerPagesComponent;
|
|
1051
1041
|
}(i1.BaseAngular));
|
|
1052
1042
|
DesignerPagesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerPagesComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1053
|
-
DesignerPagesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerPagesComponent, selector: "svc-designer-pages", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n
|
|
1043
|
+
DesignerPagesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerPagesComponent, selector: "svc-designer-pages", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <svc-page-wrapper [page]=\"model.pagesController.page2Display\" [creator]=\"creator\" [isGhost]=\"model.pagesController.page2Display == model.newPage\" [className]=\"'svc-page'\"></svc-page-wrapper>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: PageWrapperComponent, selector: "svc-page-wrapper", inputs: ["page", "isGhost", "creator", "className"] }] });
|
|
1054
1044
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerPagesComponent, decorators: [{
|
|
1055
1045
|
type: i0.Component,
|
|
1056
1046
|
args: [{
|
|
@@ -1171,7 +1161,7 @@
|
|
|
1171
1161
|
return DesignerSurveyComponent;
|
|
1172
1162
|
}(i1.BaseAngular));
|
|
1173
1163
|
DesignerSurveyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerSurveyComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1174
|
-
DesignerSurveyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerSurveyComponent, selector: "svc-designer-survey", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.designerCss\" [style.maxWidth]=\"survey.renderedWidth\"\n [style]=\"model.surveyThemeVariables\">\n <div *ngIf=\"creator.allowEditSurveyTitle\" class=\"svc-designer-header\">\n <div *ngIf=\"survey.renderedHasHeader\" [class]=\"survey.css.header\" [survey]=\"survey\" sv-ng-survey-header></div>\n </div>\n\n <ng-container *ngIf=\"creator.pageEditMode !== 'bypage'\">\n <ng-container *ngFor=\"let page of model.pages; trackBy: trackPageBy \">\n <
|
|
1164
|
+
DesignerSurveyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerSurveyComponent, selector: "svc-designer-survey", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.designerCss\" [style.maxWidth]=\"survey.renderedWidth\"\n [style]=\"model.surveyThemeVariables\">\n <div *ngIf=\"creator.allowEditSurveyTitle\" class=\"svc-designer-header\">\n <div *ngIf=\"survey.renderedHasHeader\" [class]=\"survey.css.header\" [survey]=\"survey\" sv-ng-survey-header></div>\n </div>\n\n <ng-container *ngIf=\"creator.pageEditMode !== 'bypage'\">\n <ng-container *ngFor=\"let page of model.pages; trackBy: trackPageBy \">\n <svc-page-wrapper [page]=\"page\" [creator]=\"creator\" [isGhost]=\"model.newPage == page\" [className]=\"'svc-page'\"></svc-page-wrapper>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"model.pagesController.page2Display && creator.pageEditMode === 'bypage'\">\n <svc-designer-pages [model]=\"model\"></svc-designer-pages>\n </ng-container>\n\n </div>\n\n <div *ngIf=\"model.showSurfaceTools\" class=\"svc-tab-designer__tools\">\n <div *ngIf=\"creator.showPageNavigator\" class=\"svc-tab-designer__page-navigator\">\n <svc-page-navigator [pagesController]=\"model.pagesController\" [pageEditMode]=\"creator.pageEditMode\">\n </svc-page-navigator>\n </div>\n <div *ngIf=\"model.showSurfaceToolbar\" class=\"svc-tab-designer__toolbar\">\n <sv-action-bar [model]=\"model.surfaceToolbar\"></sv-action-bar>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: PageWrapperComponent, selector: "svc-page-wrapper", inputs: ["page", "isGhost", "creator", "className"] }, { type: DesignerPagesComponent, selector: "svc-designer-pages", inputs: ["model"] }, { type: PageNavigatorComponent, selector: "svc-page-navigator", inputs: ["pagesController", "pageEditMode"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1175
1165
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerSurveyComponent, decorators: [{
|
|
1176
1166
|
type: i0.Component,
|
|
1177
1167
|
args: [{
|
|
@@ -1208,7 +1198,7 @@
|
|
|
1208
1198
|
return DesignerTabComponent;
|
|
1209
1199
|
}(i1.BaseAngular));
|
|
1210
1200
|
DesignerTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerTabComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1211
|
-
DesignerTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerTabComponent, selector: "svc-tab-designer", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-flex-column\">\n <svc-toolbox *ngIf=\"model.isToolboxVisible\" [model]=\"creator\"></svc-toolbox>\n </div>\n <div class=\"svc-tab-designer\" [class]=\"model.getRootCss()\" (click)=\"model.clickDesigner()\">\n <svc-scroll>\n <div class=\"svc-tab-designer_content\">\n <ng-container *ngIf=\"model.showPlaceholder\">\n <div *ngIf=\"creator.showHeaderInEmptySurvey && creator.allowEditSurveyTitle\" class=\"svc-designer-header\">\n <div *ngIf=\"survey.renderedHasHeader\" [class]=\"survey.css.header\" [survey]=\"survey\" sv-ng-survey-header>\n </div>\n </div>\n <div class=\"svc-designer__placeholder-container\" [attr.data-sv-drop-target-survey-element]=\"'newGhostPage'\">\n <svc-surface-placeholder [name]=\"'designer'\" [placeholderTitleText]=\"model.placeholderTitleText\"\n [placeholderDescriptionText]=\"model.placeholderDescriptionText\">\n </svc-surface-placeholder>\n <
|
|
1201
|
+
DesignerTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DesignerTabComponent, selector: "svc-tab-designer", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-flex-column\">\n <svc-toolbox *ngIf=\"model.isToolboxVisible\" [model]=\"creator\"></svc-toolbox>\n </div>\n <div class=\"svc-tab-designer\" [class]=\"model.getRootCss()\" (click)=\"model.clickDesigner()\">\n <svc-scroll>\n <div class=\"svc-tab-designer_content\">\n <ng-container *ngIf=\"model.showPlaceholder\">\n <div *ngIf=\"creator.showHeaderInEmptySurvey && creator.allowEditSurveyTitle\" class=\"svc-designer-header\">\n <div *ngIf=\"survey.renderedHasHeader\" [class]=\"survey.css.header\" [survey]=\"survey\" sv-ng-survey-header>\n </div>\n </div>\n <div class=\"svc-designer__placeholder-container\" [attr.data-sv-drop-target-survey-element]=\"'newGhostPage'\">\n <svc-surface-placeholder [name]=\"'designer'\" [placeholderTitleText]=\"model.placeholderTitleText\"\n [placeholderDescriptionText]=\"model.placeholderDescriptionText\">\n </svc-surface-placeholder>\n <svc-page-wrapper [page]=\"model.newPage\" [creator]=\"creator\" [isGhost]=\"true\" [className]=\"'svc-designer-placeholder-page'\"></svc-page-wrapper>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!model.showPlaceholder\">\n <svc-designer-survey [model]=\"model\"></svc-designer-survey>\n </ng-container>\n </div>\n </svc-scroll>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: AdaptiveToolboxComponent, selector: "svc-toolbox", inputs: ["model"] }, { type: ScrollComponent, selector: "svc-scroll" }, { type: i1__namespace.SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: SurfacePlaceholderComponent, selector: "svc-surface-placeholder", inputs: ["name", "placeholderTitleText", "placeholderDescriptionText"] }, { type: PageWrapperComponent, selector: "svc-page-wrapper", inputs: ["page", "isGhost", "creator", "className"] }, { type: DesignerSurveyComponent, selector: "svc-designer-survey", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1212
1202
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerTabComponent, decorators: [{
|
|
1213
1203
|
type: i0.Component,
|
|
1214
1204
|
args: [{
|
|
@@ -1951,6 +1941,68 @@
|
|
|
1951
1941
|
}] } });
|
|
1952
1942
|
i1.AngularComponentFactory.Instance.registerComponent("svc-tab-theme", ThemeTabComponent);
|
|
1953
1943
|
|
|
1944
|
+
var PageDesignerComponent = /** @class */ (function (_super) {
|
|
1945
|
+
__extends(PageDesignerComponent, _super);
|
|
1946
|
+
function PageDesignerComponent() {
|
|
1947
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1948
|
+
}
|
|
1949
|
+
PageDesignerComponent.prototype.createModel = function () {
|
|
1950
|
+
if (this.adorner) {
|
|
1951
|
+
this.adorner.dispose();
|
|
1952
|
+
}
|
|
1953
|
+
if (this.model) {
|
|
1954
|
+
this.adorner = new surveyCreatorCore.PageAdorner(this.creator, this.model);
|
|
1955
|
+
this.adorner.isGhost = this.isGhost;
|
|
1956
|
+
}
|
|
1957
|
+
};
|
|
1958
|
+
PageDesignerComponent.prototype.ngDoCheck = function () {
|
|
1959
|
+
_super.prototype.ngDoCheck.call(this);
|
|
1960
|
+
if (this.adorner) {
|
|
1961
|
+
this.adorner.isGhost = this.isGhost;
|
|
1962
|
+
}
|
|
1963
|
+
};
|
|
1964
|
+
PageDesignerComponent.prototype.getModel = function () {
|
|
1965
|
+
return this.adorner;
|
|
1966
|
+
};
|
|
1967
|
+
PageDesignerComponent.prototype.getPropertiesToTrack = function () {
|
|
1968
|
+
return ["creator", "model"];
|
|
1969
|
+
};
|
|
1970
|
+
PageDesignerComponent.prototype.ngAfterViewChecked = function () {
|
|
1971
|
+
var _a;
|
|
1972
|
+
_super.prototype.ngAfterViewChecked.call(this);
|
|
1973
|
+
if (this.adorner && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
1974
|
+
this.adorner.rootElement = this.container.nativeElement;
|
|
1975
|
+
}
|
|
1976
|
+
};
|
|
1977
|
+
PageDesignerComponent.prototype.ngOnDestroy = function () {
|
|
1978
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
1979
|
+
this.adorner.dispose();
|
|
1980
|
+
};
|
|
1981
|
+
return PageDesignerComponent;
|
|
1982
|
+
}(CreatorModelComponent));
|
|
1983
|
+
PageDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1984
|
+
PageDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PageDesignerComponent, selector: "svc-page", inputs: { model: "model", survey: "survey", creator: "creator", isGhost: "isGhost" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n<div *ngIf=\"model && adorner\" class=\"svc-page__content\" [class]=\"adorner.css\" [key2click]\n (click)=\"adorner.select(adorner, $event)\" (dblclick)=\"adorner.dblclick($event)\"\n (mouseover)=\"adorner.hover($event, $event.currentTarget)\" (mouseleave)=\"adorner.hover($event, $event.target)\"\n [id]=\"adorner.page.id\" [attr.data-sv-drop-target-survey-page]=\"adorner.dropTargetName\" #container>\n <div class=\"svc-question__drop-indicator svc-question__drop-indicator--top\"></div>\n <div class=\"svc-question__drop-indicator svc-question__drop-indicator--bottom\"></div>\n <div *ngIf=\"adorner.allowDragging && !adorner.isGhost\" class=\"svc-question__drag-area\"\n (pointerdown)=\"adorner.onPointerDown($event)\">\n <svg class=\"svc-question__drag-element\" [iconName]=\"'icon-drag-area-indicator_24x16'\" [size]=\"'auto'\"\n sv-ng-svg-icon></svg>\n <div class=\"svc-page__content-actions\">\n <sv-action-bar [model]=\"adorner.actionContainer\"></sv-action-bar>\n </div>\n </div>\n <div *ngIf=\"!adorner.allowDragging || adorner.isGhost\" class=\"svc-page__content-actions\">\n <sv-action-bar [model]=\"adorner.actionContainer\"></sv-action-bar>\n </div>\n <page [model]=\"model\" [survey]=\"survey\"></page>\n <div *ngIf=\"adorner.showPlaceholder\" class=\"svc-page__placeholder_frame\">\n <div class=\"svc-panel__placeholder_frame\">\n <div class=\"svc-panel__placeholder\">{{adorner.placeholderText}}</div>\n </div>\n </div>\n <sv-action-bar [model]=\"adorner.footerActionsBar\"></sv-action-bar>\n</div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }, { type: i1__namespace.PageComponent, selector: "page, sv-ng-page", inputs: ["model", "survey"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
1985
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageDesignerComponent, decorators: [{
|
|
1986
|
+
type: i0.Component,
|
|
1987
|
+
args: [{
|
|
1988
|
+
selector: "svc-page",
|
|
1989
|
+
templateUrl: "./page.component.html",
|
|
1990
|
+
styles: [":host { display: none; }"]
|
|
1991
|
+
}]
|
|
1992
|
+
}], propDecorators: { model: [{
|
|
1993
|
+
type: i0.Input
|
|
1994
|
+
}], survey: [{
|
|
1995
|
+
type: i0.Input
|
|
1996
|
+
}], creator: [{
|
|
1997
|
+
type: i0.Input
|
|
1998
|
+
}], isGhost: [{
|
|
1999
|
+
type: i0.Input
|
|
2000
|
+
}], container: [{
|
|
2001
|
+
type: i0.ViewChild,
|
|
2002
|
+
args: ["container", { read: i0.ElementRef }]
|
|
2003
|
+
}] } });
|
|
2004
|
+
i1.AngularComponentFactory.Instance.registerComponent("svc-page", PageDesignerComponent);
|
|
2005
|
+
|
|
1954
2006
|
var AddQuestionButtonComponent = /** @class */ (function (_super) {
|
|
1955
2007
|
__extends(AddQuestionButtonComponent, _super);
|
|
1956
2008
|
function AddQuestionButtonComponent() {
|
|
@@ -3352,7 +3404,7 @@
|
|
|
3352
3404
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3353
3405
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
3354
3406
|
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, QuestionTextWithResetComponent,
|
|
3355
|
-
BooleanSwitchComponent, TranslateFromAction, AddQuestionTypeSelectorComponent], imports: [i2.CommonModule, i3.FormsModule, i1.SurveyModule], exports: [CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarPageComponent, SidebarDefaultHeaderComponent, SidebarPropertyGridHeaderComponent, PropertyGridPlaceholderComponent, SidebarHeaderComponent, TabControlComponent, TabsComponent, TabButtonComponent, ObjectSelectorComponent, PropertyGridComponent, SearchComponent, ScrollComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, QuestionPgErrorComponent, SurfacePlaceholderComponent, SwitcherComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent, ThemeTabComponent,
|
|
3407
|
+
BooleanSwitchComponent, TranslateFromAction, AddQuestionTypeSelectorComponent, PageWrapperComponent], imports: [i2.CommonModule, i3.FormsModule, i1.SurveyModule], exports: [CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarPageComponent, SidebarDefaultHeaderComponent, SidebarPropertyGridHeaderComponent, PropertyGridPlaceholderComponent, SidebarHeaderComponent, TabControlComponent, TabsComponent, TabButtonComponent, ObjectSelectorComponent, PropertyGridComponent, SearchComponent, ScrollComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, QuestionPgErrorComponent, SurfacePlaceholderComponent, SwitcherComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent, ThemeTabComponent,
|
|
3356
3408
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
3357
3409
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3358
3410
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
@@ -3369,7 +3421,7 @@
|
|
|
3369
3421
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3370
3422
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
3371
3423
|
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, QuestionTextWithResetComponent,
|
|
3372
|
-
BooleanSwitchComponent, TranslateFromAction, AddQuestionTypeSelectorComponent],
|
|
3424
|
+
BooleanSwitchComponent, TranslateFromAction, AddQuestionTypeSelectorComponent, PageWrapperComponent],
|
|
3373
3425
|
imports: [
|
|
3374
3426
|
i2.CommonModule, i3.FormsModule, i1.SurveyModule
|
|
3375
3427
|
],
|