survey-creator-angular 3.0.0-beta.0 → 3.0.0-beta.1
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/README.md +1 -1
- package/angular-ui.d.ts +0 -1
- package/angular-ui.module.d.ts +11 -12
- package/bundles/survey-creator-angular.umd.js +17 -34
- package/bundles/survey-creator-angular.umd.js.map +1 -1
- package/creator.component.d.ts +1 -1
- package/esm2015/angular-ui.js +1 -2
- package/esm2015/angular-ui.module.js +5 -6
- package/esm2015/creator.component.js +4 -4
- package/esm2015/questions/question-embedded-survey.component.js +11 -4
- package/esm2015/string-editor.component.js +1 -1
- package/fesm2015/survey-creator-angular.js +18 -28
- package/fesm2015/survey-creator-angular.js.map +1 -1
- package/package.json +4 -4
- package/questions/question-embedded-survey.component.d.ts +3 -0
- package/custom-questions/text-with-reset.component.d.ts +0 -8
- package/esm2015/custom-questions/text-with-reset.component.js +0 -21
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<video src="https://github.com/surveyjs/survey-creator/assets/22315929/884eeb5b-68e6-4d38-a8f9-d2483e6ce386"></video>
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
[](https://dev.azure.com/SurveyJS/V2%20Libraries/_build/latest?definitionId=149&repoName=surveyjs%2Fsurvey-creator&branchName=master)
|
|
8
8
|
<a href="https://www.npmjs.com/package/survey-creator"><img alt="NPM Version" src="https://img.shields.io/npm/v/survey-creator.svg" data-canonical-src="https://img.shields.io/npm/v/survey-creator.svg" style="max-width:100%;"></a>
|
|
9
9
|
|
|
10
10
|
A visual designer that enables you and your users to create and modify surveys and forms in your Angular application.
|
package/angular-ui.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ export * from "./custom-questions/spin-editor.component";
|
|
|
71
71
|
export * from "./custom-questions/color-item.component";
|
|
72
72
|
export * from "./custom-questions/color.component";
|
|
73
73
|
export * from "./custom-questions/file.component";
|
|
74
|
-
export * from "./custom-questions/text-with-reset.component";
|
|
75
74
|
export * from "./custom-questions/boolean-switch.component";
|
|
76
75
|
export * from "./question-banner.component";
|
|
77
76
|
export * from "./question-element-content.component";
|
package/angular-ui.module.d.ts
CHANGED
|
@@ -68,19 +68,18 @@ import * as i66 from "./custom-questions/file.component";
|
|
|
68
68
|
import * as i67 from "./add-question.component";
|
|
69
69
|
import * as i68 from "./question-banner.component";
|
|
70
70
|
import * as i69 from "./tabs/json/json-error-item.component";
|
|
71
|
-
import * as i70 from "./custom-questions/
|
|
72
|
-
import * as i71 from "./
|
|
73
|
-
import * as i72 from "./
|
|
74
|
-
import * as i73 from "./
|
|
75
|
-
import * as i74 from "./
|
|
76
|
-
import * as i75 from "./page-
|
|
77
|
-
import * as i76 from "./
|
|
78
|
-
import * as i77 from "
|
|
79
|
-
import * as i78 from "@angular/
|
|
80
|
-
import * as i79 from "
|
|
81
|
-
import * as i80 from "survey-angular-ui";
|
|
71
|
+
import * as i70 from "./custom-questions/boolean-switch.component";
|
|
72
|
+
import * as i71 from "./tabs/translation/translate-from-action.component";
|
|
73
|
+
import * as i72 from "./add-question-type-selector.component";
|
|
74
|
+
import * as i73 from "./question-element-content.component";
|
|
75
|
+
import * as i74 from "./page-element-content.component";
|
|
76
|
+
import * as i75 from "./page-wrapper.component";
|
|
77
|
+
import * as i76 from "./components/component-container.component";
|
|
78
|
+
import * as i77 from "@angular/common";
|
|
79
|
+
import * as i78 from "@angular/forms";
|
|
80
|
+
import * as i79 from "survey-angular-ui";
|
|
82
81
|
export declare class SurveyCreatorModule {
|
|
83
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyCreatorModule, never>;
|
|
84
|
-
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.TextareaJsonEditorComponent, typeof i22.AceJsonEditorComponent, typeof i23.LogicTabComponent, typeof i24.LogicAddButtonComponent, typeof i25.ActionButtonComponent, typeof i26.QuestionPgErrorComponent, typeof i27.SurfacePlaceholderComponent, typeof i28.SwitcherComponent, typeof i29.LinkValueQuestionComponent, typeof i30.EmbeddedSurveyQuestionComponent, typeof i31.TranslationTabComponent, typeof i32.TranslationSkeletonComponent, typeof i33.SimulatorComponent, typeof i34.TestTabComponent, typeof i35.TestAgainActionComponent, typeof i36.SurveyResultsComponent, typeof i37.SurveyResultsTableRowComponent, typeof i38.ThemeTabComponent, typeof i39.AdaptiveToolboxComponent, typeof i40.ToolboxToolComponent, typeof i41.ToolboxItemComponent, typeof i42.ToolboxItemGroupComponent, typeof i43.ToolboxListComponent, typeof i44.ToolboxCategoryComponent, typeof i45.StringEditorComponent, typeof i46.PageNavigatorComponent, typeof i47.PageNavigatorItemComponent, typeof i48.QuestionDropdownDesignerComponent, typeof i48.QuestionDropdownAdornerDesignerComponent, typeof i49.QuestionImageDesignerComponent, typeof i49.QuestionImageAdornerDesignerComponent, typeof i50.ItemValueDesignerComponent, typeof i51.ImageItemValueDesignerComponent, typeof i52.LogicOperatorComponent, typeof i53.MatrixCellComponent, typeof i54.QuestionEditorComponent, typeof i55.CellQuestionDropdownComponent, typeof i56.CreatorRowComponent, typeof i57.DesignerPagesComponent, typeof i58.DesignerSurveyComponent, typeof i59.CellQuestionComponent, typeof i60.QuestionWidgetDesignerComponent, typeof i61.CreatorLogoImageComponent, typeof i62.QuestionRatingAdornerDesignerComponent, typeof i62.QuestionRatingDesignerComponent, typeof i63.QuestionSpinEditorComponent, typeof i64.ColorItemComponent, typeof i65.QuestionColorComponent, typeof i66.QuestionFileEditorComponent, typeof i67.AddQuestionButtonComponent, typeof i68.QuestionBannerComponent, typeof i69.JsonErrorItemComponent, typeof i70.
|
|
83
|
+
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.TextareaJsonEditorComponent, typeof i22.AceJsonEditorComponent, typeof i23.LogicTabComponent, typeof i24.LogicAddButtonComponent, typeof i25.ActionButtonComponent, typeof i26.QuestionPgErrorComponent, typeof i27.SurfacePlaceholderComponent, typeof i28.SwitcherComponent, typeof i29.LinkValueQuestionComponent, typeof i30.EmbeddedSurveyQuestionComponent, typeof i31.TranslationTabComponent, typeof i32.TranslationSkeletonComponent, typeof i33.SimulatorComponent, typeof i34.TestTabComponent, typeof i35.TestAgainActionComponent, typeof i36.SurveyResultsComponent, typeof i37.SurveyResultsTableRowComponent, typeof i38.ThemeTabComponent, typeof i39.AdaptiveToolboxComponent, typeof i40.ToolboxToolComponent, typeof i41.ToolboxItemComponent, typeof i42.ToolboxItemGroupComponent, typeof i43.ToolboxListComponent, typeof i44.ToolboxCategoryComponent, typeof i45.StringEditorComponent, typeof i46.PageNavigatorComponent, typeof i47.PageNavigatorItemComponent, typeof i48.QuestionDropdownDesignerComponent, typeof i48.QuestionDropdownAdornerDesignerComponent, typeof i49.QuestionImageDesignerComponent, typeof i49.QuestionImageAdornerDesignerComponent, typeof i50.ItemValueDesignerComponent, typeof i51.ImageItemValueDesignerComponent, typeof i52.LogicOperatorComponent, typeof i53.MatrixCellComponent, typeof i54.QuestionEditorComponent, typeof i55.CellQuestionDropdownComponent, typeof i56.CreatorRowComponent, typeof i57.DesignerPagesComponent, typeof i58.DesignerSurveyComponent, typeof i59.CellQuestionComponent, typeof i60.QuestionWidgetDesignerComponent, typeof i61.CreatorLogoImageComponent, typeof i62.QuestionRatingAdornerDesignerComponent, typeof i62.QuestionRatingDesignerComponent, typeof i63.QuestionSpinEditorComponent, typeof i64.ColorItemComponent, typeof i65.QuestionColorComponent, typeof i66.QuestionFileEditorComponent, typeof i67.AddQuestionButtonComponent, typeof i68.QuestionBannerComponent, typeof i69.JsonErrorItemComponent, typeof i70.BooleanSwitchComponent, typeof i71.TranslateFromAction, typeof i72.AddQuestionTypeSelectorComponent, typeof i73.QuestionElementContentComponent, typeof i74.PageElementContentComponent, typeof i75.PageWrapperComponent, typeof i76.ComponentContainerComponent], [typeof i77.CommonModule, typeof i78.FormsModule, typeof i79.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.TextareaJsonEditorComponent, typeof i22.AceJsonEditorComponent, typeof i23.LogicTabComponent, typeof i24.LogicAddButtonComponent, typeof i25.ActionButtonComponent, typeof i26.QuestionPgErrorComponent, typeof i27.SurfacePlaceholderComponent, typeof i28.SwitcherComponent, typeof i29.LinkValueQuestionComponent, typeof i30.EmbeddedSurveyQuestionComponent, typeof i31.TranslationTabComponent, typeof i32.TranslationSkeletonComponent, typeof i33.SimulatorComponent, typeof i34.TestTabComponent, typeof i35.TestAgainActionComponent, typeof i36.SurveyResultsComponent, typeof i37.SurveyResultsTableRowComponent, typeof i38.ThemeTabComponent, typeof i39.AdaptiveToolboxComponent, typeof i40.ToolboxToolComponent, typeof i41.ToolboxItemComponent, typeof i42.ToolboxItemGroupComponent, typeof i43.ToolboxListComponent, typeof i44.ToolboxCategoryComponent, typeof i45.StringEditorComponent, typeof i46.PageNavigatorComponent, typeof i47.PageNavigatorItemComponent, typeof i48.QuestionDropdownDesignerComponent, typeof i48.QuestionDropdownAdornerDesignerComponent, typeof i49.QuestionImageDesignerComponent, typeof i49.QuestionImageAdornerDesignerComponent, typeof i50.ItemValueDesignerComponent, typeof i51.ImageItemValueDesignerComponent, typeof i52.LogicOperatorComponent, typeof i53.MatrixCellComponent, typeof i54.QuestionEditorComponent, typeof i55.CellQuestionDropdownComponent, typeof i56.CreatorRowComponent, typeof i57.DesignerPagesComponent, typeof i58.DesignerSurveyComponent, typeof i59.CellQuestionComponent, typeof i60.QuestionWidgetDesignerComponent, typeof i61.CreatorLogoImageComponent, typeof i62.QuestionRatingAdornerDesignerComponent, typeof i62.QuestionRatingDesignerComponent, typeof i63.QuestionSpinEditorComponent, typeof i64.ColorItemComponent, typeof i65.QuestionColorComponent, typeof i66.QuestionFileEditorComponent, typeof i67.AddQuestionButtonComponent, typeof i68.QuestionBannerComponent, typeof i69.JsonErrorItemComponent, typeof i70.BooleanSwitchComponent, typeof i71.TranslateFromAction, typeof i72.AddQuestionTypeSelectorComponent, typeof i73.QuestionElementContentComponent, typeof i74.PageElementContentComponent, typeof i76.ComponentContainerComponent]>;
|
|
85
84
|
static ɵinj: i0.ɵɵInjectorDeclaration<SurveyCreatorModule>;
|
|
86
85
|
}
|
|
@@ -722,10 +722,9 @@
|
|
|
722
722
|
this.creator.unsubscribeRootElement();
|
|
723
723
|
_super.prototype.ngOnDestroy.call(this);
|
|
724
724
|
};
|
|
725
|
-
Object.defineProperty(CreatorComponent.prototype, "
|
|
725
|
+
Object.defineProperty(CreatorComponent.prototype, "activeTab", {
|
|
726
726
|
get: function () {
|
|
727
|
-
|
|
728
|
-
return this.creator.tabs.filter(function (tab) { return _this.creator.viewType == tab.id && tab.visible; });
|
|
727
|
+
return this.creator.activeTabMenuItem;
|
|
729
728
|
},
|
|
730
729
|
enumerable: false,
|
|
731
730
|
configurable: true
|
|
@@ -743,7 +742,7 @@
|
|
|
743
742
|
return CreatorComponent;
|
|
744
743
|
}(i1.BaseAngular));
|
|
745
744
|
CreatorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
746
|
-
CreatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CreatorComponent, selector: "survey-creator", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"!creator.isCreatorDisposed\">\n <sv-ng-modal-container></sv-ng-modal-container>\n <div [class]=\"creator.getRootCss()\" [attr.style]=\"themeVariablesString\" #container>\n <div>\n <sv-svg-bundle></sv-svg-bundle>\n </div>\n <div class=\"svc-full-container svc-creator__area svc-flex-column\"\n [class.svc-creator__area--with-banner]=\"!creator.haveCommercialLicense\">\n <div class=\"svc-flex-row svc-full-container\"\n [class.svc-creator__side-bar--left]=\"creator.sidebarLocation == 'left'\">\n <div class=\"svc-flex-column svc-flex-row__element svc-flex-row__element--growing\">\n <div class=\"svc-top-bar\">\n <div class=\"svc-tabbed-menu-wrapper\" [visible]=\"creator.showTabs\">\n <svc-tabbed-menu [model]=\"creator.tabbedMenu\"></svc-tabbed-menu>\n </div>\n <div *ngIf=\"creator.showToolbar\" class=\"svc-toolbar-wrapper\" [visible]=\"creator.showToolbar\">\n <sv-action-bar [model]=\"creator.toolbar\"></sv-action-bar>\n </div>\n </div>\n <div class=\"svc-creator__content-wrapper svc-flex-row\"\n [class.svc-creator__content-wrapper--footer-toolbar]=\"creator.isMobileView\">\n <div class=\"svc-creator__content-holder svc-flex-column\">\n <ng-container *
|
|
745
|
+
CreatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CreatorComponent, selector: "survey-creator", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-container *ngIf=\"!creator.isCreatorDisposed\">\n <sv-ng-modal-container></sv-ng-modal-container>\n <div [class]=\"creator.getRootCss()\" [attr.style]=\"themeVariablesString\" #container>\n <div>\n <sv-svg-bundle></sv-svg-bundle>\n </div>\n <div class=\"svc-full-container svc-creator__area svc-flex-column\"\n [class.svc-creator__area--with-banner]=\"!creator.haveCommercialLicense\">\n <div class=\"svc-flex-row svc-full-container\"\n [class.svc-creator__side-bar--left]=\"creator.sidebarLocation == 'left'\">\n <div class=\"svc-flex-column svc-flex-row__element svc-flex-row__element--growing\">\n <div class=\"svc-top-bar\">\n <div class=\"svc-tabbed-menu-wrapper\" [visible]=\"creator.showTabs\">\n <svc-tabbed-menu [model]=\"creator.tabbedMenu\"></svc-tabbed-menu>\n </div>\n <div *ngIf=\"creator.showToolbar\" class=\"svc-toolbar-wrapper\" [visible]=\"creator.showToolbar\">\n <sv-action-bar [model]=\"creator.toolbar\"></sv-action-bar>\n </div>\n </div>\n <div class=\"svc-creator__content-wrapper svc-flex-row\"\n [class.svc-creator__content-wrapper--footer-toolbar]=\"creator.isMobileView\">\n <div class=\"svc-creator__content-holder svc-flex-column\">\n <ng-container *ngIf=\"!!activeTab\">\n <div role=\"tabpanel\" class=\"svc-creator-tab\" [attr.id]=\"'scrollableDiv-' + activeTab.id\"\n [attr.aria-labelledby]=\"'tab-' + activeTab.id\"\n [class.svc-creator__toolbox--right]=\"creator.toolboxLocation == 'right'\">\n <ng-template\n [component]=\"{ name: activeTab.componentContent, data: { data: creator, model: activeTab.data.model } }\"></ng-template>\n </div>\n </ng-container>\n </div>\n </div>\n <div *ngIf=\"creator.isMobileView\" class=\"svc-footer-bar\">\n <div class=\"svc-toolbar-wrapper\" [visible]=\"creator.isMobileView\">\n <sv-action-bar [model]=\"creator.footerToolbar\"></sv-action-bar>\n </div>\n </div>\n </div>\n <svc-side-bar [model]=\"creator.sidebar\" *ngIf=\"creator.isSidebarVisible\"></svc-side-bar>\n </div>\n <div class=\"svc-creator__banner\" *ngIf=\"!creator.haveCommercialLicense\">\n <span class=\"svc-creator__non-commercial-text\" [innerHTML]=\"creator.licenseText | safeHtml\"></span>\n </div>\n <sv-notifier [notifier]=\"creator.notifier\"></sv-notifier>\n </div>\n </div>\n</ng-container>", components: [{ type: i1__namespace.ModalComponent, selector: "sv-ng-modal-container" }, { type: i1__namespace.SvgBundleComponent, selector: "sv-svg-bundle" }, { type: TabbledMenuComponent, selector: "svc-tabbed-menu", inputs: ["model"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }, { type: SidebarComponent, selector: "svc-side-bar", inputs: ["model"] }, { type: i1__namespace.NotifierComponent, selector: "sv-notifier", inputs: ["notifier"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }], pipes: { "safeHtml": i1__namespace.SafeHtmlPipe } });
|
|
747
746
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorComponent, decorators: [{
|
|
748
747
|
type: i0.Component,
|
|
749
748
|
args: [{
|
|
@@ -1620,6 +1619,10 @@
|
|
|
1620
1619
|
enumerable: false,
|
|
1621
1620
|
configurable: true
|
|
1622
1621
|
});
|
|
1622
|
+
EmbeddedSurveyQuestionComponent.prototype.ngAfterViewInit = function () {
|
|
1623
|
+
_super.prototype.ngAfterViewInit.call(this);
|
|
1624
|
+
this.survey.rootElement = this.container.nativeElement;
|
|
1625
|
+
};
|
|
1623
1626
|
EmbeddedSurveyQuestionComponent.prototype.onModelChanged = function () {
|
|
1624
1627
|
var _this = this;
|
|
1625
1628
|
_super.prototype.onModelChanged.call(this);
|
|
@@ -1632,7 +1635,7 @@
|
|
|
1632
1635
|
return EmbeddedSurveyQuestionComponent;
|
|
1633
1636
|
}(i1.QuestionAngular));
|
|
1634
1637
|
EmbeddedSurveyQuestionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EmbeddedSurveyQuestionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1635
|
-
EmbeddedSurveyQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: EmbeddedSurveyQuestionComponent, selector: "svc-embeddedsurvey-question", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <ng-container *ngIf=\"!!model && !!survey && survey.currentPage\">\n
|
|
1638
|
+
EmbeddedSurveyQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: EmbeddedSurveyQuestionComponent, selector: "svc-embeddedsurvey-question", viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div #container style=\"display: contents\">\n <ng-container *ngIf=\"!!model && !!survey && survey.currentPage\">\n <page [model]=\"survey.currentPage\" [survey]=\"survey\"></page>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.PageComponent, selector: "sv-page, page, sv-ng-page", inputs: ["model", "survey"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1636
1639
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EmbeddedSurveyQuestionComponent, decorators: [{
|
|
1637
1640
|
type: i0.Component,
|
|
1638
1641
|
args: [{
|
|
@@ -1640,7 +1643,10 @@
|
|
|
1640
1643
|
templateUrl: "./question-embedded-survey.component.html",
|
|
1641
1644
|
styles: [":host { display: none; }"]
|
|
1642
1645
|
}]
|
|
1643
|
-
}]
|
|
1646
|
+
}], propDecorators: { container: [{
|
|
1647
|
+
type: i0.ViewChild,
|
|
1648
|
+
args: ["container"]
|
|
1649
|
+
}] } });
|
|
1644
1650
|
i1.AngularComponentFactory.Instance.registerComponent("embeddedsurvey-question", EmbeddedSurveyQuestionComponent);
|
|
1645
1651
|
|
|
1646
1652
|
var TranslationTabComponent = /** @class */ (function (_super) {
|
|
@@ -2932,7 +2938,7 @@
|
|
|
2932
2938
|
return StringEditorComponent;
|
|
2933
2939
|
}(CreatorModelComponent));
|
|
2934
2940
|
StringEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StringEditorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2935
|
-
StringEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: StringEditorComponent, selector: "svc-string-editor", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <span [class]=\"className\">\n <span class=\"svc-string-editor__content\">\n <div class=\"svc-string-editor__border svc-string-editor__border--hover\"></div>\n <div class=\"svc-string-editor__border svc-string-editor__border--focus\"></div>\n <span class=\"svc-string-editor__input\">\n <span role=\"textbox\" *ngIf=\"!locString.hasHtml\" class=\"sv-string-editor\" spellcheck=\"false\"\n (focus)=\"onFocus($event)\" (paste)=\"onPaste($event)\" (blur)=\"onBlur($event)\" (beforeinput)=\"baseModel.onBeforeInput($event)\" (input)=\"baseModel.onInput($event)\" (keydown)=\"baseModel.onKeyDown($event)\" (keyup)=\"baseModel.onKeyUp($event)\" (compositionstart)=\"baseModel.onCompositionStart($event)\" (compositionend)=\"baseModel.onCompositionEnd($event)\" (mouseup)=\"baseModel.onMouseUp($event)\" (click)=\"edit($event)\" [textContent]=\"locString.renderedHtml\" [attr.aria-placeholder]=\"placeholder\" [attr.aria-label]=\"ariaLabel\" [attr.contenteditable]=\"contentEditable\" [attr.tabIndex]=\"baseModel.tabIndex\" #container></span>\n <span role=\"textbox\" *ngIf=\"locString.hasHtml\" class=\"sv-string-editor sv-string-editor--html\" spellcheck=\"false\"\n (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\" (keydown)=\"baseModel.onKeyDown($event)\" (keyup)=\"baseModel.onKeyUp($event)\" (compositionstart)=\"baseModel.onCompositionStart($event)\" (compositionend)=\"baseModel.onCompositionEnd($event)\" (mouseup)=\"baseModel.onMouseUp($event)\"\n (click)=\"edit($event)\" [attr.aria-placeholder]=\"placeholder\" [attr.aria-label]=\"ariaLabel\" [attr.contenteditable]=\"contentEditable\" [attr.tabIndex]=\"baseModel.tabIndex\" [innerHtml]=\"locString.renderedHtml | safeHtml\" #container></span>\n <sv-ng-character-counter *ngIf=\"showCharacterCounter\" [counter]=\"characterCounter\" [remainingCharacterCounter]=\"getCharacterCounterClass\"></sv-ng-character-counter>\n </span>\n </span>\n <span *ngIf=\"errorText\" class=\"svc-string-editor__error\">{{errorText}}</span>\n </span>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.CharacterCounterComponent, selector: "sv-ng-character-counter", inputs: ["counter", "remainingCharacterCounter"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "safeHtml": i1__namespace.SafeHtmlPipe } });
|
|
2941
|
+
StringEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: StringEditorComponent, selector: "svc-string-editor", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <span [class]=\"className\">\n <span class=\"svc-string-editor__content\">\n <div class=\"svc-string-editor__border svc-string-editor__border--hover\"></div>\n <div class=\"svc-string-editor__border svc-string-editor__border--focus\"></div>\n <span class=\"svc-string-editor__input\">\n <span role=\"textbox\" *ngIf=\"!locString.hasHtml\" class=\"sv-string-editor\" spellcheck=\"false\"\n (focus)=\"onFocus($event)\" (paste)=\"onPaste($event)\" (blur)=\"onBlur($event)\" (beforeinput)=\"baseModel.onBeforeInput($event)\" (input)=\"baseModel.onInput($event)\" (keydown)=\"baseModel.onKeyDown($event)\" (keyup)=\"baseModel.onKeyUp($event)\" (compositionstart)=\"baseModel.onCompositionStart($event)\" (compositionend)=\"baseModel.onCompositionEnd($event)\" (mouseup)=\"baseModel.onMouseUp($event)\" (click)=\"edit($event)\" [textContent]=\"locString.renderedHtml\" [attr.aria-placeholder]=\"placeholder\" [attr.aria-label]=\"ariaLabel\" [attr.contenteditable]=\"contentEditable\" [attr.tabIndex]=\"baseModel.tabIndex\" #container></span>\n <span role=\"textbox\" *ngIf=\"locString.hasHtml\" class=\"sv-string-editor sv-string-editor--html\" spellcheck=\"false\"\n (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\" (keydown)=\"baseModel.onKeyDown($event)\" (keyup)=\"baseModel.onKeyUp($event)\" (compositionstart)=\"baseModel.onCompositionStart($event)\" (compositionend)=\"baseModel.onCompositionEnd($event)\" (mouseup)=\"baseModel.onMouseUp($event)\"\n (click)=\"edit($event)\" [attr.aria-placeholder]=\"placeholder\" [attr.aria-label]=\"ariaLabel\" [attr.contenteditable]=\"contentEditable\" [attr.tabIndex]=\"baseModel.tabIndex\" [innerHtml]=\"locString.renderedHtml | safeHtml\" #container></span>\n <sv-ng-character-counter *ngIf=\"showCharacterCounter\" [counter]=\"characterCounter\" [remainingCharacterCounter]=\"getCharacterCounterClass\"></sv-ng-character-counter>\n </span>\n </span>\n <span *ngIf=\"errorText\" class=\"svc-string-editor__error\">{{errorText}}</span>\n </span>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.CharacterCounterComponent, selector: "sv-ng-character-counter", inputs: ["counter", "remainingCharacterCounter", "model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "safeHtml": i1__namespace.SafeHtmlPipe } });
|
|
2936
2942
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StringEditorComponent, decorators: [{
|
|
2937
2943
|
type: i0.Component,
|
|
2938
2944
|
args: [{
|
|
@@ -3473,28 +3479,6 @@
|
|
|
3473
3479
|
}] });
|
|
3474
3480
|
i1.AngularComponentFactory.Instance.registerComponent("fileedit-question", QuestionFileEditorComponent);
|
|
3475
3481
|
|
|
3476
|
-
var QuestionTextWithResetComponent = /** @class */ (function (_super) {
|
|
3477
|
-
__extends(QuestionTextWithResetComponent, _super);
|
|
3478
|
-
function QuestionTextWithResetComponent() {
|
|
3479
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
3480
|
-
}
|
|
3481
|
-
QuestionTextWithResetComponent.prototype.getComponentName = function () {
|
|
3482
|
-
return this.model.wrappedQuestionTemplate + "-question";
|
|
3483
|
-
};
|
|
3484
|
-
return QuestionTextWithResetComponent;
|
|
3485
|
-
}(i1.QuestionAngular));
|
|
3486
|
-
QuestionTextWithResetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionTextWithResetComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3487
|
-
QuestionTextWithResetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionTextWithResetComponent, selector: "svc-text-with-reset", usesInheritance: true, ngImport: i0__namespace, template: "<div [class]=\"model.getRootClass()\">\n <ng-template [component]=\"{ name: getComponentName(), data: { model } }\"></ng-template>\n <button [class]=\"model.cssClasses.resetButton\" [disabled]=\"model.resetValueAdorner.isDisabled\"\n (click)=\"model.resetValueAdorner.resetValue()\" [attr.title]=\"model.resetValueAdorner.caption\">\n <svg [iconName]=\"model.cssClasses.resetButtonIcon\" size=\"'auto'\" sv-ng-svg-icon></svg>\n </button>\n</div>", components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
3488
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionTextWithResetComponent, decorators: [{
|
|
3489
|
-
type: i0.Component,
|
|
3490
|
-
args: [{
|
|
3491
|
-
templateUrl: "./text-with-reset.component.html",
|
|
3492
|
-
selector: "svc-text-with-reset"
|
|
3493
|
-
}]
|
|
3494
|
-
}] });
|
|
3495
|
-
i1.AngularComponentFactory.Instance.registerComponent("textwithreset-question", QuestionTextWithResetComponent);
|
|
3496
|
-
i1.AngularComponentFactory.Instance.registerComponent("commentwithreset-question", QuestionTextWithResetComponent);
|
|
3497
|
-
|
|
3498
3482
|
var BooleanSwitchComponent = /** @class */ (function (_super) {
|
|
3499
3483
|
__extends(BooleanSwitchComponent, _super);
|
|
3500
3484
|
function BooleanSwitchComponent() {
|
|
@@ -3576,12 +3560,12 @@
|
|
|
3576
3560
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
3577
3561
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3578
3562
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
3579
|
-
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
|
|
3563
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
|
|
3580
3564
|
BooleanSwitchComponent, TranslateFromAction, AddQuestionTypeSelectorComponent, QuestionElementContentComponent, PageElementContentComponent, PageWrapperComponent, ComponentContainerComponent], 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, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, QuestionPgErrorComponent, SurfacePlaceholderComponent, SwitcherComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent, ThemeTabComponent,
|
|
3581
3565
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
3582
3566
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3583
3567
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
3584
|
-
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
|
|
3568
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, BooleanSwitchComponent, TranslateFromAction,
|
|
3585
3569
|
AddQuestionTypeSelectorComponent, QuestionElementContentComponent, PageElementContentComponent, ComponentContainerComponent] });
|
|
3586
3570
|
SurveyCreatorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyCreatorModule, providers: [], imports: [[
|
|
3587
3571
|
i2.CommonModule, i3.FormsModule, i1.SurveyModule
|
|
@@ -3593,7 +3577,7 @@
|
|
|
3593
3577
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
3594
3578
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3595
3579
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
3596
|
-
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
|
|
3580
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
|
|
3597
3581
|
BooleanSwitchComponent, TranslateFromAction, AddQuestionTypeSelectorComponent, QuestionElementContentComponent, PageElementContentComponent, PageWrapperComponent, ComponentContainerComponent],
|
|
3598
3582
|
imports: [
|
|
3599
3583
|
i2.CommonModule, i3.FormsModule, i1.SurveyModule
|
|
@@ -3603,7 +3587,7 @@
|
|
|
3603
3587
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
3604
3588
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3605
3589
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
3606
|
-
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
|
|
3590
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, BooleanSwitchComponent, TranslateFromAction,
|
|
3607
3591
|
AddQuestionTypeSelectorComponent, QuestionElementContentComponent, PageElementContentComponent, ComponentContainerComponent
|
|
3608
3592
|
],
|
|
3609
3593
|
providers: [],
|
|
@@ -3661,7 +3645,6 @@
|
|
|
3661
3645
|
exports.QuestionRatingAdornerDesignerComponent = QuestionRatingAdornerDesignerComponent;
|
|
3662
3646
|
exports.QuestionRatingDesignerComponent = QuestionRatingDesignerComponent;
|
|
3663
3647
|
exports.QuestionSpinEditorComponent = QuestionSpinEditorComponent;
|
|
3664
|
-
exports.QuestionTextWithResetComponent = QuestionTextWithResetComponent;
|
|
3665
3648
|
exports.QuestionWidgetDesignerComponent = QuestionWidgetDesignerComponent;
|
|
3666
3649
|
exports.SearchComponent = SearchComponent;
|
|
3667
3650
|
exports.SidebarComponent = SidebarComponent;
|