survey-creator-angular 1.9.99 → 1.9.101
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 +17 -12
- package/bundles/survey-creator-angular.umd.js.map +1 -1
- package/esm2015/creator.component.js +3 -5
- package/esm2015/questions/logic-operator.component.js +3 -1
- package/esm2015/tabs/designer/designer-survey.component.js +2 -2
- package/esm2015/tabs/json/json-editor-ace.component.js +3 -2
- package/esm2015/tabs/json/json-editor-textarea.component.js +11 -5
- package/fesm2015/survey-creator-angular.js +14 -9
- package/fesm2015/survey-creator-angular.js.map +1 -1
- package/package.json +1 -1
- package/tabs/json/json-editor-textarea.component.d.ts +3 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('survey-angular-ui'), require('survey-core'), require('survey-creator-core')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('survey-creator-angular', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'survey-angular-ui', 'survey-core', 'survey-creator-core'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["survey-creator-angular"] = {}, global.ng.core, global.ng.common, global.ng.forms, global.i1, global.surveyCore, global.surveyCreatorCore));
|
|
5
|
-
})(this, (function (exports, i0, i2,
|
|
5
|
+
})(this, (function (exports, i0, i2, i2$1, i1, surveyCore, surveyCreatorCore) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
26
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
|
-
var
|
|
27
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
28
28
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
29
|
|
|
30
30
|
/******************************************************************************
|
|
@@ -650,13 +650,11 @@
|
|
|
650
650
|
this.changeDetectorRef.detectChanges();
|
|
651
651
|
};
|
|
652
652
|
CreatorComponent.prototype.ngAfterViewInit = function () {
|
|
653
|
-
this.creator.
|
|
654
|
-
this.creator.initResponsivityManager(this.container.nativeElement);
|
|
653
|
+
this.creator.setRootElement(this.container.nativeElement);
|
|
655
654
|
_super.prototype.ngOnInit.call(this);
|
|
656
655
|
};
|
|
657
656
|
CreatorComponent.prototype.ngOnDestroy = function () {
|
|
658
|
-
this.creator.
|
|
659
|
-
this.creator.resetResponsivityManager();
|
|
657
|
+
this.creator.unsubscribeRootElement();
|
|
660
658
|
_super.prototype.ngOnDestroy.call(this);
|
|
661
659
|
};
|
|
662
660
|
return CreatorComponent;
|
|
@@ -1026,7 +1024,7 @@
|
|
|
1026
1024
|
return DesignerSurveyComponent;
|
|
1027
1025
|
}(i1.BaseAngular));
|
|
1028
1026
|
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 });
|
|
1029
|
-
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 <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 <!-- ko if: survey.isShowProgressBarOnTop -->\n <!-- ko component: { name:
|
|
1027
|
+
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 <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 <!-- ko if: survey.isShowProgressBarOnTop -->\n <!-- ko component: { name: survey.getProgressTypeComponent(), params: { model: survey } } -->\n <!-- /ko -->\n <!-- /ko -->\n <ng-container *ngIf=\"creator.pageEditMode !== 'bypage'\">\n <ng-container *ngFor=\"let page of survey.pages\">\n <ng-container *ngIf=\"!model.showNewPage || page !== model.newPage\">\n <ng-container *ngTemplateOutlet=\"pageContainer; context: { page, isGhost: false }\"></ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"model.showNewPage && model.newPage\">\n <ng-container *ngTemplateOutlet=\"pageContainer; context: { page: model.newPage, isGhost: true }\"></ng-container>\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 <!-- ko if: survey.isShowProgressBarOnBottom -->\n <!-- ko component: { name: survey.getProgressTypeComponent(), params: { model: survey } } -->\n <!-- /ko -->\n <!-- /ko -->\n </div>\n\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</ng-template>\n\n<ng-template let-page=\"page\" let-isGhost=\"isGhost\" #pageContainer>\n <div class=\"svc-page\" [attr.data-sv-drop-target-survey-element]=\"isGhost ? 'newGhostPage' : page.name\"\n [attr.data-sv-drop-target-page]=\"page.name\">\n <ng-template [component]=\"{ name: 'svc-page', data: { model: page, creator, survey, isGhost }}\"></ng-template>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: DesignerPagesComponent, selector: "svc-designer-pages", inputs: ["model"] }, { type: PageNavigatorComponent, selector: "svc-page-navigator", inputs: ["pagesController", "pageEditMode"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1030
1028
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DesignerSurveyComponent, decorators: [{
|
|
1031
1029
|
type: i0.Component,
|
|
1032
1030
|
args: [{
|
|
@@ -1164,10 +1162,13 @@
|
|
|
1164
1162
|
this.model.canShowErrors = false;
|
|
1165
1163
|
_super.prototype.ngOnInit.call(this);
|
|
1166
1164
|
};
|
|
1165
|
+
TextareaJsonEditorComponent.prototype.ngAfterViewInit = function () {
|
|
1166
|
+
this.model.textElement = this.inputEl.nativeElement;
|
|
1167
|
+
};
|
|
1167
1168
|
return TextareaJsonEditorComponent;
|
|
1168
1169
|
}(i1.BaseAngular));
|
|
1169
1170
|
TextareaJsonEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TextareaJsonEditorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1170
|
-
TextareaJsonEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TextareaJsonEditorComponent, selector: "svc-tab-json-editor-textarea", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-creator-tab__content\">\n <div class=\"svc-json-editor-tab__content\">\n <textarea class=\"svc-json-editor-tab__content-area\"
|
|
1171
|
+
TextareaJsonEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TextareaJsonEditorComponent, selector: "svc-tab-json-editor-textarea", inputs: { model: "model" }, viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-creator-tab__content\">\n <div class=\"svc-json-editor-tab__content\">\n <textarea class=\"svc-json-editor-tab__content-area\" [attr.aria-label]=\"model.ariaLabel\"\n [disabled]=\"model.readOnly\" [(ngModel)]=\"model.text\" (keydown)=\"model.checkKey(model, $event)\" #inputEl>\n </textarea>\n <div class=\"svc-json-editor-tab__errros_list\" [visible]=\"model.hasErrors\">\n <sv-ng-list [model]=\"model.errorList\"></sv-ng-list>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.ListComponent, selector: "sv-ng-list, '[sv-ng-list]'", inputs: ["model"] }], directives: [{ type: i2__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.VisibleDirective, selector: "[visible]", inputs: ["visible"] }] });
|
|
1171
1172
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TextareaJsonEditorComponent, decorators: [{
|
|
1172
1173
|
type: i0.Component,
|
|
1173
1174
|
args: [{
|
|
@@ -1177,6 +1178,9 @@
|
|
|
1177
1178
|
}]
|
|
1178
1179
|
}], propDecorators: { model: [{
|
|
1179
1180
|
type: i0.Input
|
|
1181
|
+
}], inputEl: [{
|
|
1182
|
+
type: i0.ViewChild,
|
|
1183
|
+
args: ["inputEl"]
|
|
1180
1184
|
}] } });
|
|
1181
1185
|
i1.AngularComponentFactory.Instance.registerComponent("svc-tab-json-editor-textarea", TextareaJsonEditorComponent);
|
|
1182
1186
|
|
|
@@ -1195,7 +1199,7 @@
|
|
|
1195
1199
|
return AceJsonEditorComponent;
|
|
1196
1200
|
}(i1.BaseAngular));
|
|
1197
1201
|
AceJsonEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AceJsonEditorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1198
|
-
AceJsonEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AceJsonEditorComponent, selector: "svc-tab-json-editor-ace", inputs: { model: "model" }, viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-creator-tab__content\">\n <div class=\"svc-json-editor-tab__content\">\n <div class=\"svc-json-editor-tab__ace-editor\" #inputEl></div>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"] });
|
|
1202
|
+
AceJsonEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AceJsonEditorComponent, selector: "svc-tab-json-editor-ace", inputs: { model: "model" }, viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-creator-tab__content\">\n <div class=\"svc-json-editor-tab__content\">\n <div class=\"svc-json-editor-tab__ace-editor\" #inputEl></div>\n <div class=\"svc-json-editor-tab__errros_list\" [visible]=\"model.hasErrors\">\n <sv-ng-list [model]=\"model.errorList\"></sv-ng-list>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.ListComponent, selector: "sv-ng-list, '[sv-ng-list]'", inputs: ["model"] }], directives: [{ type: i1__namespace.VisibleDirective, selector: "[visible]", inputs: ["visible"] }] });
|
|
1199
1203
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AceJsonEditorComponent, decorators: [{
|
|
1200
1204
|
type: i0.Component,
|
|
1201
1205
|
args: [{
|
|
@@ -2236,6 +2240,7 @@
|
|
|
2236
2240
|
LogicOperatorComponent.prototype.ngOnInit = function () {
|
|
2237
2241
|
_super.prototype.ngOnInit.call(this);
|
|
2238
2242
|
this.dropdownListModel = this.model.dropdownListModel || new surveyCore.DropdownListModel(this.model);
|
|
2243
|
+
surveyCreatorCore.initLogicOperator(this.model);
|
|
2239
2244
|
};
|
|
2240
2245
|
return LogicOperatorComponent;
|
|
2241
2246
|
}(i1.QuestionAngular));
|
|
@@ -2758,13 +2763,13 @@
|
|
|
2758
2763
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
2759
2764
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
2760
2765
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
|
|
2761
|
-
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionCarryForwardComponent], imports: [i2.CommonModule,
|
|
2766
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionCarryForwardComponent], imports: [i2.CommonModule, i2$1.FormsModule, i1.SurveyModule], exports: [CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, SvgBundleComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarTabComponent, ObjectSelectorComponent, PropertyGridComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent, ThemeTabComponent,
|
|
2762
2767
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
2763
2768
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
2764
2769
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
|
|
2765
2770
|
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionCarryForwardComponent] });
|
|
2766
2771
|
SurveyCreatorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyCreatorModule, providers: [], imports: [[
|
|
2767
|
-
i2.CommonModule,
|
|
2772
|
+
i2.CommonModule, i2$1.FormsModule, i1.SurveyModule
|
|
2768
2773
|
]] });
|
|
2769
2774
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyCreatorModule, decorators: [{
|
|
2770
2775
|
type: i0.NgModule,
|
|
@@ -2775,7 +2780,7 @@
|
|
|
2775
2780
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
|
|
2776
2781
|
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionCarryForwardComponent],
|
|
2777
2782
|
imports: [
|
|
2778
|
-
i2.CommonModule,
|
|
2783
|
+
i2.CommonModule, i2$1.FormsModule, i1.SurveyModule
|
|
2779
2784
|
],
|
|
2780
2785
|
exports: [
|
|
2781
2786
|
CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, SvgBundleComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarTabComponent, ObjectSelectorComponent, PropertyGridComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent, ThemeTabComponent,
|